From ac01729efd520bd6523bd7a9e1bc512bbb1b2636 Mon Sep 17 00:00:00 2001 From: Andrei Mihu Date: Wed, 19 Jul 2023 08:53:32 +0100 Subject: [PATCH] Rebuild embedded devconsole UI assets. --- console/ui/dist/prod-nt/3rdpartylicenses.txt | 28 - console/ui/dist/prod-nt/index.html | 4 +- .../ui/dist/prod-nt/main.90406e943321b759.js | 1 + .../ui/dist/prod-nt/main.bf6ffc1e85ec2d2a.js | 1 - .../dist/prod-nt/runtime.72fa9d749641f9d8.js | 1 + .../dist/prod-nt/runtime.df3806e3c4974c23.js | 1 - console/ui/dist/prod/3rdpartylicenses.txt | 28 - console/ui/dist/prod/index.html | 4 +- console/ui/dist/prod/main.2357b54074463f87.js | 1 - console/ui/dist/prod/main.9fe54d698b3be879.js | 1 + .../ui/dist/prod/runtime.72fa9d749641f9d8.js | 1 + .../ui/dist/prod/runtime.df3806e3c4974c23.js | 1 - console/ui/package-lock.json | 12044 ++++++++++------ 13 files changed, 7713 insertions(+), 4403 deletions(-) create mode 100644 console/ui/dist/prod-nt/main.90406e943321b759.js delete mode 100644 console/ui/dist/prod-nt/main.bf6ffc1e85ec2d2a.js create mode 100644 console/ui/dist/prod-nt/runtime.72fa9d749641f9d8.js delete mode 100644 console/ui/dist/prod-nt/runtime.df3806e3c4974c23.js delete mode 100644 console/ui/dist/prod/main.2357b54074463f87.js create mode 100644 console/ui/dist/prod/main.9fe54d698b3be879.js create mode 100644 console/ui/dist/prod/runtime.72fa9d749641f9d8.js delete mode 100644 console/ui/dist/prod/runtime.df3806e3c4974c23.js diff --git a/console/ui/dist/prod-nt/3rdpartylicenses.txt b/console/ui/dist/prod-nt/3rdpartylicenses.txt index 105707051..d79e79f83 100644 --- a/console/ui/dist/prod-nt/3rdpartylicenses.txt +++ b/console/ui/dist/prod-nt/3rdpartylicenses.txt @@ -97,34 +97,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -ace-builds -BSD-3-Clause -Copyright (c) 2010, Ajax.org B.V. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - * Neither the name of Ajax.org B.V. nor the - names of its contributors may be used to endorse or promote products - derived from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - base64-js MIT The MIT License (MIT) diff --git a/console/ui/dist/prod-nt/index.html b/console/ui/dist/prod-nt/index.html index 8da35301a..ee8cf2fea 100644 --- a/console/ui/dist/prod-nt/index.html +++ b/console/ui/dist/prod-nt/index.html @@ -2,12 +2,12 @@ Nakama Console - + - + \ No newline at end of file diff --git a/console/ui/dist/prod-nt/main.90406e943321b759.js b/console/ui/dist/prod-nt/main.90406e943321b759.js new file mode 100644 index 000000000..b3a9d2d51 --- /dev/null +++ b/console/ui/dist/prod-nt/main.90406e943321b759.js @@ -0,0 +1 @@ +(self.webpackChunkui=self.webpackChunkui||[]).push([[179],{440:(Yt,Tn,De)=>{"use strict";function rt(t){return"function"==typeof t}let Oe=!1;const dt={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const n=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+n.stack)}else Oe&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Oe=t},get useDeprecatedSynchronousErrorHandling(){return Oe}};function Ge(t){setTimeout(()=>{throw t},0)}const _e={closed:!0,next(t){},error(t){if(dt.useDeprecatedSynchronousErrorHandling)throw t;Ge(t)},complete(){}},et=Array.isArray||(t=>t&&"number"==typeof t.length);function Ve(t){return null!==t&&"object"==typeof t}const se=(()=>{function t(n){return Error.call(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n,this}return t.prototype=Object.create(Error.prototype),t})();class ue{constructor(n){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,n&&(this._ctorUnsubscribe=!0,this._unsubscribe=n)}unsubscribe(){let n;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof ue)e.remove(this);else if(null!==e)for(let s=0;sn.concat(e instanceof se?e.errors:e),[])}ue.EMPTY=((t=new ue).closed=!0,t);const D="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class O extends ue{constructor(n,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=_e;break;case 1:if(!n){this.destination=_e;break}if("object"==typeof n){n instanceof O?(this.syncErrorThrowable=n.syncErrorThrowable,this.destination=n,n.add(this)):(this.syncErrorThrowable=!0,this.destination=new te(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new te(this,n,e,i)}}[D](){return this}static create(n,e,i){const r=new O(n,e,i);return r.syncErrorThrowable=!1,r}next(n){this.isStopped||this._next(n)}error(n){this.isStopped||(this.isStopped=!0,this._error(n))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(n){this.destination.next(n)}_error(n){this.destination.error(n),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:n}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=n,this}}class te extends O{constructor(n,e,i,r){super(),this._parentSubscriber=n;let o,s=this;rt(e)?o=e:e&&(o=e.next,i=e.error,r=e.complete,e!==_e&&(s=Object.create(e),rt(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=i,this._complete=r}next(n){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;dt.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,n)&&this.unsubscribe():this.__tryOrUnsub(this._next,n)}}error(n){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=dt;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,n),this.unsubscribe()):(this.__tryOrUnsub(this._error,n),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=n,e.syncErrorThrown=!0):Ge(n),this.unsubscribe();else{if(this.unsubscribe(),i)throw n;Ge(n)}}}complete(){if(!this.isStopped){const{_parentSubscriber:n}=this;if(this._complete){const e=()=>this._complete.call(this._context);dt.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?(this.__tryOrSetError(n,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(n,e){try{n.call(this._context,e)}catch(i){if(this.unsubscribe(),dt.useDeprecatedSynchronousErrorHandling)throw i;Ge(i)}}__tryOrSetError(n,e,i){if(!dt.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return dt.useDeprecatedSynchronousErrorHandling?(n.syncErrorValue=r,n.syncErrorThrown=!0,!0):(Ge(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:n}=this;this._context=null,this._parentSubscriber=null,n.unsubscribe()}}const kt="function"==typeof Symbol&&Symbol.observable||"@@observable";function jt(t){return t}function wn(t){return 0===t.length?jt:1===t.length?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}let rn=(()=>{class t{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:o}=this,s=function Je(t,n,e){if(t){if(t instanceof O)return t;if(t[D])return t[D]()}return t||n||e?new O(t,n,e):new O(_e)}(e,i,r);if(s.add(o?o.call(s,this.source):this.source||dt.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),dt.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(i){dt.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function Me(t){for(;t;){const{closed:n,destination:e,isStopped:i}=t;if(n||i)return!1;t=e&&e instanceof O?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=Mi(i))((r,o)=>{let s;s=this.subscribe(a=>{try{e(a)}catch(l){o(l),s&&s.unsubscribe()}},o,r)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[kt](){return this}pipe(...e){return 0===e.length?this:wn(e)(this)}toPromise(e){return new(e=Mi(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return t.create=n=>new t(n),t})();function Mi(t){if(t||(t=dt.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const Xr=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class hs extends ue{constructor(n,e){super(),this.subject=n,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const n=this.subject,e=n.observers;if(this.subject=null,!e||0===e.length||n.isStopped||n.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class Ya extends O{constructor(n){super(n),this.destination=n}}let tr=(()=>{class t extends rn{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[D](){return new Ya(this)}lift(e){const i=new mu(this,this);return i.operator=e,i}next(e){if(this.closed)throw new Xr;if(!this.isStopped){const{observers:i}=this,r=i.length,o=i.slice();for(let s=0;snew mu(n,e),t})();class mu extends tr{constructor(n,e){super(),this.destination=n,this.source=e}next(n){const{destination:e}=this;e&&e.next&&e.next(n)}error(n){const{destination:e}=this;e&&e.error&&this.destination.error(n)}complete(){const{destination:n}=this;n&&n.complete&&this.destination.complete()}_subscribe(n){const{source:e}=this;return e?this.source.subscribe(n):ue.EMPTY}}function Sa(t){return t&&"function"==typeof t.schedule}function yn(t,n){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new Cd(t,n))}}class Cd{constructor(n,e){this.project=n,this.thisArg=e}call(n,e){return e.subscribe(new kd(n,this.project,this.thisArg))}}class kd extends O{constructor(n,e,i){super(n),this.project=e,this.count=0,this.thisArg=i||this}_next(n){let e;try{e=this.project.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const Kn=t=>n=>{for(let e=0,i=t.length;et&&"number"==typeof t.length&&"function"!=typeof t;function pl(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const nc=t=>{if(t&&"function"==typeof t[kt])return(t=>n=>{const e=t[kt]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(n)})(t);if(Zr(t))return Kn(t);if(pl(t))return(t=>n=>(t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,Ge),n))(t);if(t&&"function"==typeof t[Ro])return(t=>n=>{const e=t[Ro]();for(;;){let i;try{i=e.next()}catch(r){return n.error(r),n}if(i.done){n.complete();break}if(n.next(i.value),n.closed)break}return"function"==typeof e.return&&n.add(()=>{e.return&&e.return()}),n})(t);{const e=`You provided ${Ve(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function Oc(t,n){return new rn(e=>{const i=new ue;let r=0;return i.add(n.schedule(function(){r!==t.length?(e.next(t[r++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function co(t,n){return n?function da(t,n){if(null!=t){if(function vu(t){return t&&"function"==typeof t[kt]}(t))return function Sd(t,n){return new rn(e=>{const i=new ue;return i.add(n.schedule(()=>{const r=t[kt]();i.add(r.subscribe({next(o){i.add(n.schedule(()=>e.next(o)))},error(o){i.add(n.schedule(()=>e.error(o)))},complete(){i.add(n.schedule(()=>e.complete()))}}))})),i})}(t,n);if(pl(t))return function Fc(t,n){return new rn(e=>{const i=new ue;return i.add(n.schedule(()=>t.then(r=>{i.add(n.schedule(()=>{e.next(r),i.add(n.schedule(()=>e.complete()))}))},r=>{i.add(n.schedule(()=>e.error(r)))}))),i})}(t,n);if(Zr(t))return Oc(t,n);if(function Ja(t){return t&&"function"==typeof t[Ro]}(t)||"string"==typeof t)return function Dd(t,n){if(!t)throw new Error("Iterable cannot be null");return new rn(e=>{const i=new ue;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(n.schedule(()=>{r=t[Ro](),i.add(n.schedule(function(){if(e.closed)return;let o,s;try{const a=r.next();o=a.value,s=a.done}catch(a){return void e.error(a)}s?e.complete():(e.next(o),this.schedule())}))})),i})}(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,n):t instanceof rn?t:new rn(nc(t))}class ml extends O{constructor(n){super(),this.parent=n}_next(n){this.parent.notifyNext(n)}_error(n){this.parent.notifyError(n),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class W extends O{notifyNext(n){this.destination.next(n)}notifyError(n){this.destination.error(n)}notifyComplete(){this.destination.complete()}}function Fe(t,n){if(!n.closed)return t instanceof rn?t.subscribe(n):nc(t)(n)}function nt(t,n,e=Number.POSITIVE_INFINITY){return"function"==typeof n?i=>i.pipe(nt((r,o)=>co(t(r,o)).pipe(yn((s,a)=>n(r,s,o,a))),e)):("number"==typeof n&&(e=n),i=>i.lift(new zt(t,e)))}class zt{constructor(n,e=Number.POSITIVE_INFINITY){this.project=n,this.concurrent=e}call(n,e){return e.subscribe(new Qt(n,this.project,this.concurrent))}}class Qt extends W{constructor(n,e,i=Number.POSITIVE_INFINITY){super(n),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(n){this.active0?this._next(n.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function A(t=Number.POSITIVE_INFINITY){return nt(jt,t)}function st(t,n){return n?Oc(t,n):new rn(Kn(t))}function Tt(...t){let n=Number.POSITIVE_INFINITY,e=null,i=t[t.length-1];return Sa(i)?(e=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===e&&1===t.length&&t[0]instanceof rn?t[0]:A(n)(st(t,e))}function Ut(){return function(n){return n.lift(new Vt(n))}}class Vt{constructor(n){this.connectable=n}call(n,e){const{connectable:i}=this;i._refCount++;const r=new mn(n,i),o=e.subscribe(r);return r.closed||(r.connection=i.connect()),o}}class mn extends O{constructor(n,e){super(n),this.connectable=e}_unsubscribe(){const{connectable:n}=this;if(!n)return void(this.connection=null);this.connectable=null;const e=n._refCount;if(e<=0)return void(this.connection=null);if(n._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,r=n._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class pe extends rn{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let n=this._connection;return n||(this._isComplete=!1,n=this._connection=new ue,n.add(this.source.subscribe(new Nt(this.getSubject(),this))),n.closed&&(this._connection=null,n=ue.EMPTY)),n}refCount(){return Ut()(this)}}const yt=(()=>{const t=pe.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class Nt extends Ya{constructor(n,e){super(n),this.connectable=e}_error(n){this._unsubscribe(),super._error(n)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const n=this.connectable;if(n){this.connectable=null;const e=n._connection;n._refCount=0,n._subject=null,n._connection=null,e&&e.unsubscribe()}}}class dn{constructor(n,e){this.subjectFactory=n,this.selector=e}call(n,e){const{selector:i}=this,r=this.subjectFactory(),o=i(r).subscribe(n);return o.add(e.subscribe(r)),o}}function qt(){return new tr}function We(){return t=>Ut()(function Pt(t,n){return function(i){let r;if(r="function"==typeof t?t:function(){return t},"function"==typeof n)return i.lift(new dn(r,n));const o=Object.create(i,yt);return o.source=i,o.subjectFactory=r,o}}(qt)(t))}function Xe(t){for(let n in t)if(t[n]===Xe)return n;throw Error("Could not find renamed property on target object.")}function bt(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function Cn(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Cn).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function jr(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const Y0=Xe({__forward_ref__:Xe});function Gi(t){return t.__forward_ref__=Gi,t.toString=function(){return Cn(this())},t}function wi(t){return tT(t)?t():t}function tT(t){return"function"==typeof t&&t.hasOwnProperty(Y0)&&t.__forward_ref__===Gi}function nT(t){return t&&!!t.\u0275providers}const U_="https://g.co/ng/security#xss";class Ot extends Error{constructor(n,e){super(G_(n,e)),this.code=n}}function G_(t,n){return`NG0${Math.abs(t)}${n?": "+n.trim():""}`}function Ri(t){return"string"==typeof t?t:null==t?"":String(t)}function W_(t,n){throw new Ot(-201,!1)}function jc(t,n){null==t&&function to(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(n,t,null,"!=")}function Et(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Ci(t){return{providers:t.providers||[],imports:t.imports||[]}}function q_(t){return _L(t,X_)||_L(t,wL)}function _L(t,n){return t.hasOwnProperty(n)?t[n]:null}function xL(t){return t&&(t.hasOwnProperty(iT)||t.hasOwnProperty(hge))?t[iT]:null}const X_=Xe({\u0275prov:Xe}),iT=Xe({\u0275inj:Xe}),wL=Xe({ngInjectableDef:Xe}),hge=Xe({ngInjectorDef:Xe});var ki=(()=>((ki=ki||{})[ki.Default=0]="Default",ki[ki.Host=1]="Host",ki[ki.Self=2]="Self",ki[ki.SkipSelf=4]="SkipSelf",ki[ki.Optional=8]="Optional",ki))();let rT;function Pc(t){const n=rT;return rT=t,n}function CL(t,n,e){const i=q_(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&ki.Optional?null:void 0!==n?n:void W_(Cn(t))}const $o=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),J0={},oT="__NG_DI_FLAG__",Y_="ngTempTokenPath",pge="ngTokenPath",mge=/\n/gm,gge="\u0275",kL="__source";let K0;function sg(t){const n=K0;return K0=t,n}function vge(t,n=ki.Default){if(void 0===K0)throw new Ot(-203,!1);return null===K0?CL(t,void 0,n):K0.get(t,n&ki.Optional?null:void 0,n)}function ct(t,n=ki.Default){return(function fge(){return rT}()||vge)(wi(t),n)}function ar(t,n=ki.Default){return ct(t,J_(n))}function J_(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function sT(t){const n=[];for(let e=0;e((Td=Td||{})[Td.OnPush=0]="OnPush",Td[Td.Default=1]="Default",Td))(),yu=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(yu||(yu={})),yu))();const kh={},Yr=[],K_=Xe({\u0275cmp:Xe}),aT=Xe({\u0275dir:Xe}),lT=Xe({\u0275pipe:Xe}),DL=Xe({\u0275mod:Xe}),Sh=Xe({\u0275fac:Xe}),Z0=Xe({__NG_ELEMENT_ID__:Xe});let xge=0;function Rt(t){return vf(()=>{const e=!0===t.standalone,i={},r={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Td.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&t.dependencies||null,getStandaloneInjector:null,selectors:t.selectors||Yr,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||yu.Emulated,id:"c"+xge++,styles:t.styles||Yr,_:null,setInput:null,schemas:t.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},o=t.dependencies,s=t.features;return r.inputs=AL(t.inputs,i),r.outputs=AL(t.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(TL).filter(EL):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(vl).filter(EL):null,r})}function TL(t){return no(t)||Ka(t)}function EL(t){return null!==t}function Di(t){return vf(()=>({type:t.type,bootstrap:t.bootstrap||Yr,declarations:t.declarations||Yr,imports:t.imports||Yr,exports:t.exports||Yr,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function AL(t,n){if(null==t)return kh;const e={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,n&&(n[r]=o)}return e}const Zt=Rt;function gl(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function no(t){return t[K_]||null}function Ka(t){return t[aT]||null}function vl(t){return t[lT]||null}function rc(t,n){const e=t[DL]||null;if(!e&&!0===n)throw new Error(`Type ${Cn(t)} does not have '\u0275mod' property.`);return e}const Dh=0,Rn=1,Ji=2,fs=3,bu=4,Ep=5,Qa=6,lg=7,ks=8,Q_=9,Z_=10,ir=11,cT=12,e1=13,ML=14,cg=15,Za=16,t1=17,ug=18,Ed=19,n1=20,IL=21,Bo=22,uT=1,NL=2,ex=7,tx=8,dg=9,yl=10;function oc(t){return Array.isArray(t)&&"object"==typeof t[uT]}function _u(t){return Array.isArray(t)&&!0===t[uT]}function dT(t){return 0!=(4&t.flags)}function i1(t){return t.componentOffset>-1}function nx(t){return 1==(1&t.flags)}function xu(t){return null!==t.template}function kge(t){return 0!=(256&t[Ji])}function Ap(t,n){return t.hasOwnProperty(Sh)?t[Sh]:null}class Tge{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Hn(){return jL}function jL(t){return t.type.prototype.ngOnChanges&&(t.setInput=Age),Ege}function Ege(){const t=LL(this),n=t?.current;if(n){const e=t.previous;if(e===kh)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function Age(t,n,e,i){const r=this.declaredInputs[e],o=LL(t)||function Mge(t,n){return t[PL]=n}(t,{previous:kh,current:null}),s=o.current||(o.current={}),a=o.previous,l=a[r];s[r]=new Tge(l&&l.currentValue,n,a===kh),t[i]=n}Hn.ngInherit=!0;const PL="__ngSimpleChanges__";function LL(t){return t[PL]||null}const Lc=function(t,n,e){},RL="svg";function Ta(t){for(;Array.isArray(t);)t=t[Dh];return t}function ix(t,n){return Ta(n[t])}function sc(t,n){return Ta(n[t.index])}function BL(t,n){return t.data[n]}function hg(t,n){return t[n]}function ac(t,n){const e=n[t];return oc(e)?e:e[Dh]}function rx(t){return 64==(64&t[Ji])}function yf(t,n){return null==n?null:t[n]}function VL(t){t[ug]=0}function fT(t,n){t[Ep]+=n;let e=t,i=t[fs];for(;null!==i&&(1===n&&1===e[Ep]||-1===n&&0===e[Ep]);)i[Ep]+=n,e=i,i=i[fs]}const $i={lFrame:KL(null),bindingsEnabled:!0};function zL(){return $i.bindingsEnabled}function Gt(){return $i.lFrame.lView}function Pr(){return $i.lFrame.tView}function $e(t){return $i.lFrame.contextLView=t,t[ks]}function Be(t){return $i.lFrame.contextLView=null,t}function Ea(){let t=UL();for(;null!==t&&64===t.type;)t=t.parent;return t}function UL(){return $i.lFrame.currentTNode}function Ad(t,n){const e=$i.lFrame;e.currentTNode=t,e.isParent=n}function pT(){return $i.lFrame.isParent}function mT(){$i.lFrame.isParent=!1}function bl(){const t=$i.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function fg(){return $i.lFrame.bindingIndex++}function Eh(t){const n=$i.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function zge(t,n){const e=$i.lFrame;e.bindingIndex=e.bindingRootIndex=t,gT(n)}function gT(t){$i.lFrame.currentDirectiveIndex=t}function XL(){return $i.lFrame.currentQueryIndex}function yT(t){$i.lFrame.currentQueryIndex=t}function Gge(t){const n=t[Rn];return 2===n.type?n.declTNode:1===n.type?t[Qa]:null}function YL(t,n,e){if(e&ki.SkipSelf){let r=n,o=t;for(;!(r=r.parent,null!==r||e&ki.Host||(r=Gge(o),null===r||(o=o[cg],10&r.type))););if(null===r)return!1;n=r,t=o}const i=$i.lFrame=JL();return i.currentTNode=n,i.lView=t,!0}function bT(t){const n=JL(),e=t[Rn];$i.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function JL(){const t=$i.lFrame,n=null===t?null:t.child;return null===n?KL(t):n}function KL(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function QL(){const t=$i.lFrame;return $i.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const ZL=QL;function _T(){const t=QL();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function _l(){return $i.lFrame.selectedIndex}function Mp(t){$i.lFrame.selectedIndex=t}function es(){const t=$i.lFrame;return BL(t.tView,t.selectedIndex)}function at(){$i.lFrame.currentNamespace=RL}function Ip(){!function Yge(){$i.lFrame.currentNamespace=null}()}function ox(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[l]<0&&(t[ug]+=65536),(a>11>16&&(3&t[Ji])===n){t[Ji]+=2048,Lc(4,a,o);try{o.call(a)}finally{Lc(5,a,o)}}}else{Lc(4,a,o);try{o.call(a)}finally{Lc(5,a,o)}}}const pg=-1;class o1{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function CT(t,n,e){let i=0;for(;in){s=o-1;break}}}for(;o>16}(t),i=n;for(;e>0;)i=i[cg],e--;return i}let kT=!0;function ux(t){const n=kT;return kT=t,n}const oR=255,sR=5;let ive=0;const Md={};function dx(t,n){const e=aR(t,n);if(-1!==e)return e;const i=n[Rn];i.firstCreatePass&&(t.injectorIndex=n.length,ST(i.data,t),ST(n,null),ST(i.blueprint,null));const r=DT(t,n),o=t.injectorIndex;if(rR(r)){const s=lx(r),a=cx(r,n),l=a[Rn].data;for(let c=0;c<8;c++)n[o+c]=a[s+c]|l[s+c]}return n[o+8]=r,o}function ST(t,n){t.push(0,0,0,0,0,0,0,0,n)}function aR(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function DT(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;null!==r;){if(i=pR(r),null===i)return pg;if(e++,r=r[cg],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return pg}function TT(t,n,e){!function rve(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Z0)&&(i=e[Z0]),null==i&&(i=e[Z0]=ive++);const r=i&oR;n.data[t+(r>>sR)]|=1<=0?n&oR:lve:n}(e);if("function"==typeof o){if(!YL(n,t,i))return i&ki.Host?lR(r,0,i):cR(n,e,i,r);try{const s=o(i);if(null!=s||i&ki.Optional)return s;W_()}finally{ZL()}}else if("number"==typeof o){let s=null,a=aR(t,n),l=pg,c=i&ki.Host?n[Za][Qa]:null;for((-1===a||i&ki.SkipSelf)&&(l=-1===a?DT(t,n):n[a+8],l!==pg&&fR(i,!1)?(s=n[Rn],a=lx(l),n=cx(l,n)):a=-1);-1!==a;){const u=n[Rn];if(hR(o,a,u.data)){const d=sve(a,n,e,s,i,c);if(d!==Md)return d}l=n[a+8],l!==pg&&fR(i,n[Rn].data[a+8]===c)&&hR(o,a,n)?(s=u,a=lx(l),n=cx(l,n)):a=-1}}return r}function sve(t,n,e,i,r,o){const s=n[Rn],a=s.data[t+8],u=hx(a,s,e,null==i?i1(a)&&kT:i!=s&&0!=(3&a.type),r&ki.Host&&o===a);return null!==u?Np(n,s,u,a):Md}function hx(t,n,e,i,r){const o=t.providerIndexes,s=n.data,a=1048575&o,l=t.directiveStart,u=o>>20,h=r?a+u:t.directiveEnd;for(let f=i?a:a+u;f=l&&p.type===e)return f}if(r){const f=s[l];if(f&&xu(f)&&f.type===e)return l}return null}function Np(t,n,e,i){let r=t[e];const o=n.data;if(function Zge(t){return t instanceof o1}(r)){const s=r;s.resolving&&function rge(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new Ot(-200,`Circular dependency in DI detected for ${t}${e}`)}(function eo(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Ri(t)}(o[e]));const a=ux(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Pc(s.injectImpl):null;YL(t,i,ki.Default);try{r=t[e]=s.factory(void 0,o,t,i),n.firstCreatePass&&e>=i.directiveStart&&function Kge(t,n,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const s=jL(n);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,s)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,r),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,o))}(e,o[e],n)}finally{null!==l&&Pc(l),ux(a),s.resolving=!1,ZL()}}return r}function hR(t,n,e){return!!(e[n+(t>>sR)]&1<{const n=t.prototype.constructor,e=n[Sh]||ET(n),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const o=r[Sh]||ET(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function ET(t){return tT(t)?()=>{const n=ET(wi(t));return n&&n()}:Ap(t)}function pR(t){const n=t[Rn],e=n.type;return 2===e?n.declTNode:1===e?t[Qa]:null}function Ah(t){return function ove(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let r=0;for(;r{const i=function AT(t){return function(...e){if(t){const i=t(...e);for(const r in i)this[r]=i[r]}}}(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(vg)?l[vg]:Object.defineProperty(l,vg,{value:[]})[vg];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class zn{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=Et({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Fp(t,n){t.forEach(e=>Array.isArray(e)?Fp(e,n):n(e))}function gR(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function fx(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function c1(t,n){const e=[];for(let i=0;i=0?t[1|i]=e:(i=~i,function fve(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(1===r)t.push(i,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>n;)t[r]=t[r-2],r--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function IT(t,n){const e=_g(t,n);if(e>=0)return t[1|e]}function _g(t,n){return function vR(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=t[o<n?r=o:i=o+1}return~(r<((Bl=Bl||{})[Bl.Important=1]="Important",Bl[Bl.DashCase=2]="DashCase",Bl))();const LT=new Map;let jve=0;const $T="__ngContext__";function el(t,n){oc(n)?(t[$T]=n[n1],function Lve(t){LT.set(t[n1],t)}(n)):t[$T]=n}let BT;function VT(t,n){return BT(t,n)}function m1(t){const n=t[fs];return _u(n)?n[fs]:n}function HT(t){return LR(t[e1])}function zT(t){return LR(t[bu])}function LR(t){for(;null!==t&&!_u(t);)t=t[bu];return t}function wg(t,n,e,i,r){if(null!=i){let o,s=!1;_u(i)?o=i:oc(i)&&(s=!0,i=i[Dh]);const a=Ta(i);0===t&&null!==e?null==r?zR(n,e,a):Op(n,e,a,r||null,!0):1===t&&null!==e?Op(n,e,a,r||null,!0):2===t?function JT(t,n,e){const i=vx(t,n);i&&function i0e(t,n,e,i){t.removeChild(n,e,i)}(t,i,n,e)}(n,a,s):3===t&&n.destroyNode(a),null!=o&&function s0e(t,n,e,i,r){const o=e[ex];o!==Ta(e)&&wg(n,t,i,o,r);for(let a=yl;a0&&(t[e-1][bu]=i[bu]);const o=fx(t,yl+n);!function Yve(t,n){g1(t,n,n[ir],2,null,null),n[Dh]=null,n[Qa]=null}(i[Rn],i);const s=o[Ed];null!==s&&s.detachView(o[Rn]),i[fs]=null,i[bu]=null,i[Ji]&=-65}return i}function BR(t,n){if(!(128&n[Ji])){const e=n[ir];e.destroyNode&&g1(t,n,e,3,null,null),function Qve(t){let n=t[e1];if(!n)return qT(t[Rn],t);for(;n;){let e=null;if(oc(n))e=n[e1];else{const i=n[yl];i&&(e=i)}if(!e){for(;n&&!n[bu]&&n!==t;)oc(n)&&qT(n[Rn],n),n=n[fs];null===n&&(n=t),oc(n)&&qT(n[Rn],n),e=n&&n[bu]}n=e}}(n)}}function qT(t,n){if(!(128&n[Ji])){n[Ji]&=-65,n[Ji]|=128,function n0e(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i=0?i[r=s]():i[r=-s].unsubscribe(),o+=2}else{const s=i[r=e[o+1]];e[o].call(s)}if(null!==i){for(let o=r+1;o-1){const{encapsulation:o}=t.data[i.directiveStart+r];if(o===yu.None||o===yu.Emulated)return null}return sc(i,e)}}(t,n.parent,e)}function Op(t,n,e,i,r){t.insertBefore(n,e,i,r)}function zR(t,n,e){t.appendChild(n,e)}function UR(t,n,e,i,r){null!==i?Op(t,n,e,i,r):zR(t,n,e)}function vx(t,n){return t.parentNode(n)}function GR(t,n,e){return qR(t,n,e)}let XT,_x,ZT,xx,qR=function WR(t,n,e){return 40&t.type?sc(t,e):null};function yx(t,n,e,i){const r=VR(t,i,n),o=n[ir],a=GR(i.parent||n[Qa],i,n);if(null!=r)if(Array.isArray(e))for(let l=0;lt,createScript:t=>t,createScriptURL:t=>t})}catch{}return _x}()?.createHTML(t)||t}function eE(){if(void 0===xx&&(xx=null,$o.trustedTypes))try{xx=$o.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return xx}function e5(t){return eE()?.createHTML(t)||t}function n5(t){return eE()?.createScriptURL(t)||t}class jp{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${U_})`}}class f0e extends jp{getTypeName(){return"HTML"}}class p0e extends jp{getTypeName(){return"Style"}}class m0e extends jp{getTypeName(){return"Script"}}class g0e extends jp{getTypeName(){return"URL"}}class v0e extends jp{getTypeName(){return"ResourceURL"}}function cc(t){return t instanceof jp?t.changingThisBreaksApplicationSecurity:t}function Id(t,n){const e=function y0e(t){return t instanceof jp&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${U_})`)}return e===n}class k0e{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString(Cg(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class S0e{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const e=this.inertDocument.createElement("template");return e.innerHTML=Cg(n),e}}const T0e=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function wx(t){return(t=String(t)).match(T0e)?t:"unsafe:"+t}function Mh(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function v1(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const r5=Mh("area,br,col,hr,img,wbr"),o5=Mh("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),s5=Mh("rp,rt"),tE=v1(r5,v1(o5,Mh("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),v1(s5,Mh("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),v1(s5,o5)),nE=Mh("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),a5=v1(nE,Mh("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Mh("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),E0e=Mh("script,style,template");class A0e{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!tE.hasOwnProperty(e))return this.sanitizedSomething=!0,!E0e.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let r=0;r"),!0}endElement(n){const e=n.nodeName.toLowerCase();tE.hasOwnProperty(e)&&!r5.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(l5(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const M0e=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,I0e=/([^\#-~ |!])/g;function l5(t){return t.replace(/&/g,"&").replace(M0e,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(I0e,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let Cx;function c5(t,n){let e=null;try{Cx=Cx||function i5(t){const n=new S0e(t);return function D0e(){try{return!!(new window.DOMParser).parseFromString(Cg(""),"text/html")}catch{return!1}}()?new k0e(n):n}(t);let i=n?String(n):"";e=Cx.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=Cx.getInertBodyElement(i)}while(i!==o);return Cg((new A0e).sanitizeChildren(iE(e)||e))}finally{if(e){const i=iE(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function iE(t){return"content"in t&&function N0e(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var ko=(()=>((ko=ko||{})[ko.NONE=0]="NONE",ko[ko.HTML=1]="HTML",ko[ko.STYLE=2]="STYLE",ko[ko.SCRIPT=3]="SCRIPT",ko[ko.URL=4]="URL",ko[ko.RESOURCE_URL=5]="RESOURCE_URL",ko))();function kx(t){const n=b1();return n?e5(n.sanitize(ko.HTML,t)||""):Id(t,"HTML")?e5(cc(t)):c5(function ZR(){return void 0!==ZT?ZT:typeof document<"u"?document:void 0}(),Ri(t))}function y1(t){const n=b1();return n?n.sanitize(ko.URL,t)||"":Id(t,"URL")?cc(t):wx(Ri(t))}function u5(t){const n=b1();if(n)return n5(n.sanitize(ko.RESOURCE_URL,t)||"");if(Id(t,"ResourceURL"))return n5(cc(t));throw new Ot(904,!1)}function b1(){const t=Gt();return t&&t[cT]}const Sx=new zn("ENVIRONMENT_INITIALIZER"),Dx=new zn("INJECTOR",-1),h5=new zn("INJECTOR_DEF_TYPES");class f5{get(n,e=J0){if(e===J0){const i=new Error(`NullInjectorError: No provider for ${Cn(n)}!`);throw i.name="NullInjectorError",i}return e}}function $0e(...t){return{\u0275providers:p5(0,t),\u0275fromNgModule:!0}}function p5(t,...n){const e=[],i=new Set;let r;return Fp(n,o=>{const s=o;rE(s,e,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&m5(r,e),e}function m5(t,n){for(let e=0;e{n.push(o)})}}function rE(t,n,e,i){if(!(t=wi(t)))return!1;let r=null,o=xL(t);const s=!o&&no(t);if(o||s){if(s&&!s.standalone)return!1;r=t}else{const l=t.ngModule;if(o=xL(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)rE(c,n,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{Fp(o.imports,u=>{rE(u,n,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&m5(c,n)}if(!a){const c=Ap(r)||(()=>new r);n.push({provide:r,useFactory:c,deps:Yr},{provide:h5,useValue:r,multi:!0},{provide:Sx,useValue:()=>ct(r),multi:!0})}const l=o.providers;null==l||a||oE(l,u=>{n.push(u)})}}return r!==t&&void 0!==t.providers}function oE(t,n){for(let e of t)nT(e)&&(e=e.\u0275providers),Array.isArray(e)?oE(e,n):n(e)}const B0e=Xe({provide:String,useValue:Xe});function sE(t){return null!==t&&"object"==typeof t&&B0e in t}function Pp(t){return"function"==typeof t}const aE=new zn("Set Injector scope."),Tx={},H0e={};let lE;function Ex(){return void 0===lE&&(lE=new f5),lE}class Nd{}class y5 extends Nd{get destroyed(){return this._destroyed}constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,uE(n,s=>this.processProvider(s)),this.records.set(Dx,kg(void 0,this)),r.has("environment")&&this.records.set(Nd,kg(void 0,this));const o=this.records.get(aE);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(h5.multi,Yr,ki.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();for(const n of this._onDestroyHooks)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(n){this._onDestroyHooks.push(n)}runInContext(n){this.assertNotDestroyed();const e=sg(this),i=Pc(void 0);try{return n()}finally{sg(e),Pc(i)}}get(n,e=J0,i=ki.Default){this.assertNotDestroyed(),i=J_(i);const r=sg(this),o=Pc(void 0);try{if(!(i&ki.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function q0e(t){return"function"==typeof t||"object"==typeof t&&t instanceof zn}(n)&&q_(n);a=l&&this.injectableDefInScope(l)?kg(cE(n),Tx):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(i&ki.Self?Ex():this.parent).get(n,e=i&ki.Optional&&e===J0?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Y_]=s[Y_]||[]).unshift(Cn(n)),r)throw s;return function bge(t,n,e,i){const r=t[Y_];throw n[kL]&&r.unshift(n[kL]),t.message=function _ge(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&t.charAt(1)==gge?t.slice(2):t;let r=Cn(n);if(Array.isArray(n))r=n.map(Cn).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):Cn(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(mge,"\n ")}`}("\n"+t.message,r,e,i),t[pge]=r,t[Y_]=null,t}(s,n,"R3InjectorError",this.source)}throw s}finally{Pc(o),sg(r)}}resolveInjectorInitializers(){const n=sg(this),e=Pc(void 0);try{const i=this.get(Sx.multi,Yr,ki.Self);for(const r of i)r()}finally{sg(n),Pc(e)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(Cn(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Ot(205,!1)}processProvider(n){let e=Pp(n=wi(n))?n:wi(n&&n.provide);const i=function U0e(t){return sE(t)?kg(void 0,t.useValue):kg(b5(t),Tx)}(n);if(Pp(n)||!0!==n.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=kg(void 0,Tx,!0),r.factory=()=>sT(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e){return e.value===Tx&&(e.value=H0e,e.value=e.factory()),"object"==typeof e.value&&e.value&&function W0e(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=wi(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function cE(t){const n=q_(t),e=null!==n?n.factory:Ap(t);if(null!==e)return e;if(t instanceof zn)throw new Ot(204,!1);if(t instanceof Function)return function z0e(t){const n=t.length;if(n>0)throw c1(n,"?"),new Ot(204,!1);const e=function uge(t){const n=t&&(t[X_]||t[wL]);return n?(function dge(t){if(t.hasOwnProperty("name"))return t.name;(""+t).match(/^function\s*([^\s(]+)/)}(t),n):null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new Ot(204,!1)}function b5(t,n,e){let i;if(Pp(t)){const r=wi(t);return Ap(r)||cE(r)}if(sE(t))i=()=>wi(t.useValue);else if(function v5(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...sT(t.deps||[]));else if(function g5(t){return!(!t||!t.useExisting)}(t))i=()=>ct(wi(t.useExisting));else{const r=wi(t&&(t.useClass||t.provide));if(!function G0e(t){return!!t.deps}(t))return Ap(r)||cE(r);i=()=>new r(...sT(t.deps))}return i}function kg(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function uE(t,n){for(const e of t)Array.isArray(e)?uE(e,n):e&&nT(e)?uE(e.\u0275providers,n):n(e)}class X0e{}class _5{}class J0e{resolveComponentFactory(n){throw function Y0e(t){const n=Error(`No component factory found for ${Cn(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let $c=(()=>{class t{}return t.NULL=new J0e,t})();function K0e(){return Sg(Ea(),Gt())}function Sg(t,n){return new ti(sc(t,n))}let ti=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=K0e,t})();function Q0e(t){return t instanceof ti?t.nativeElement:t}class Lp{}let Ss=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function Z0e(){const t=Gt(),e=ac(Ea().index,t);return(oc(e)?e:t)[ir]}(),t})(),e1e=(()=>{class t{}return t.\u0275prov=Et({token:t,providedIn:"root",factory:()=>null}),t})();class _1{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const t1e=new _1("15.2.2"),dE={},hE="ngOriginalError";function fE(t){return t[hE]}class Dg{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&fE(n);for(;e&&fE(e);)e=fE(e);return e||null}}function w5(t){return t.ownerDocument.defaultView}function Ih(t){return t instanceof Function?t():t}function k5(t,n,e){let i=t.length;for(;;){const r=t.indexOf(n,e);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const o=n.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r}e=r+1}}const S5="ng-template";function d1e(t,n,e){let i=0;for(;io?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==k5(f,c,0)||2&i&&c!==h){if(wu(i))return!1;s=!0}}}}else{if(!s&&!wu(i)&&!wu(l))return!1;if(s&&wu(l))continue;s=!1,i=l|1&i}}return wu(i)||s}function wu(t){return 0==(1&t)}function p1e(t,n,e,i){if(null===n)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!wu(s)&&(n+=E5(o,r),r=""),i=s,o=o||!wu(i);e++}return""!==r&&(n+=E5(o,r)),n}const Bi={};function w(t){A5(Pr(),Gt(),_l()+t,!1)}function A5(t,n,e,i){if(!i)if(3==(3&n[Ji])){const o=t.preOrderCheckHooks;null!==o&&sx(n,o,e)}else{const o=t.preOrderHooks;null!==o&&ax(n,o,0,e)}Mp(e)}function F5(t,n=null,e=null,i){const r=O5(t,n,e,i);return r.resolveInjectorInitializers(),r}function O5(t,n=null,e=null,i,r=new Set){const o=[e||Yr,$0e(t)];return i=i||("object"==typeof t?void 0:Cn(t)),new y5(o,n||Ex(),i||null,r)}let Rs=(()=>{class t{static create(e,i){if(Array.isArray(e))return F5({name:""},i,e,"");{const r=e.name??"";return F5({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=J0,t.NULL=new f5,t.\u0275prov=Et({token:t,providedIn:"any",factory:()=>ct(Dx)}),t.__NG_ELEMENT_ID__=-1,t})();function le(t,n=ki.Default){const e=Gt();return null===e?ct(t,n):uR(Ea(),e,wi(t),n)}function H5(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;iBo&&A5(t,n,Bo,!1),Lc(s?2:0,r),e(i,r)}finally{Mp(o),Lc(s?3:1,r)}}function _E(t,n,e){if(dT(n)){const r=n.directiveEnd;for(let o=n.directiveStart;o0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(s)!=a&&s.push(a),s.push(e,i,o)}}(t,n,i,x1(t,e,r.hostVars,Bi),r)}function Fd(t,n,e,i,r,o){const s=sc(t,n);!function DE(t,n,e,i,r,o,s){if(null==o)t.removeAttribute(n,r,e);else{const a=null==s?Ri(o):s(o,i||"",r);t.setAttribute(n,r,a,e)}}(n[ir],s,o,t.value,e,i,r)}function oye(t,n,e,i,r,o){const s=o[n];if(null!==s){const a=i.setInput;for(let l=0;l0&&TE(e)}}function TE(t){for(let i=HT(t);null!==i;i=zT(i))for(let r=yl;r0&&TE(o)}const e=t[Rn].components;if(null!==e)for(let i=0;i0&&TE(r)}}function uye(t,n){const e=ac(n,t),i=e[Rn];(function dye(t,n){for(let e=n.length;e-1&&(WT(n,i),fx(e,i))}this._attachedToViewContainer=!1}BR(this._lView[Rn],this._lView)}onDestroy(n){G5(this._lView[Rn],this._lView,null,n)}markForCheck(){EE(this._cdRefInjectingView||this._lView)}detach(){this._lView[Ji]&=-65}reattach(){this._lView[Ji]|=64}detectChanges(){Fx(this._lView[Rn],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Ot(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Kve(t,n){g1(t,n,n[ir],2,null,null)}(this._lView[Rn],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new Ot(902,!1);this._appRef=n}}class hye extends w1{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;Fx(n[Rn],n,n[ks],!1)}checkNoChanges(){}get context(){return null}}class n8 extends $c{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=no(n);return new C1(e,this.ngModule)}}function i8(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class pye{constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){i=J_(i);const r=this.injector.get(n,dE,i);return r!==dE||e===dE?r:this.parentInjector.get(n,e,i)}}class C1 extends _5{get inputs(){return i8(this.componentDef.inputs)}get outputs(){return i8(this.componentDef.outputs)}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function _1e(t){return t.map(b1e).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}create(n,e,i,r){let o=(r=r||this.ngModule)instanceof Nd?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new pye(n,o):n,a=s.get(Lp,null);if(null===a)throw new Ot(407,!1);const l=s.get(e1e,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=i?function U1e(t,n,e){return t.selectRootElement(n,e===yu.ShadowDom)}(c,i,this.componentDef.encapsulation):GT(c,u,function fye(t){const n=t.toLowerCase();return"svg"===n?RL:"math"===n?"math":null}(u)),h=this.componentDef.onPush?288:272,f=CE(0,null,null,1,0,null,null,null,null,null),p=Mx(null,f,null,h,null,null,a,c,l,s,null);let m,g;bT(p);try{const v=this.componentDef;let y,_=null;v.findHostDirectiveDefs?(y=[],_=new Map,v.findHostDirectiveDefs(v,y,_),y.push(v)):y=[v];const C=function gye(t,n){const e=t[Rn],i=Bo;return t[i]=n,Ag(e,i,2,"#host",null)}(p,d),S=function vye(t,n,e,i,r,o,s,a){const l=r[Rn];!function yye(t,n,e,i){for(const r of t)n.mergedAttrs=s1(n.mergedAttrs,r.hostAttrs);null!==n.mergedAttrs&&(Ox(n,n.mergedAttrs,!0),null!==e&&QR(i,e,n))}(i,t,n,s);const c=o.createRenderer(n,e),u=Mx(r,U5(e),null,e.onPush?32:16,r[t.index],t,o,c,a||null,null,null);return l.firstCreatePass&&SE(l,t,i.length-1),Nx(r,u),r[t.index]=u}(C,d,v,y,p,a,c);g=BL(f,Bo),d&&function _ye(t,n,e,i){if(i)CT(t,e,["ng-version",t1e.full]);else{const{attrs:r,classes:o}=function x1e(t){const n=[],e=[];let i=1,r=2;for(;i0&&KR(t,e,o.join(" "))}}(c,v,d,i),void 0!==e&&function xye(t,n,e){const i=t.projection=[];for(let r=0;r=0;i--){const r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=s1(r.hostAttrs,e=s1(e,r.hostAttrs))}}(i)}function IE(t){return t===kh?{}:t===Yr?[]:t}function kye(t,n){const e=t.viewQuery;t.viewQuery=e?(i,r)=>{n(i,r),e(i,r)}:n}function Sye(t,n){const e=t.contentQueries;t.contentQueries=e?(i,r,o)=>{n(i,r,o),e(i,r,o)}:n}function Dye(t,n){const e=t.hostBindings;t.hostBindings=e?(i,r)=>{n(i,r),e(i,r)}:n}function Px(t){return!!NE(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function NE(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Od(t,n,e){return t[n]=e}function tl(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function Rp(t,n,e,i){const r=tl(t,n,e);return tl(t,n+1,i)||r}function ht(t,n,e,i){const r=Gt();return tl(r,fg(),n)&&(Pr(),Fd(es(),r,t,n,e,i)),ht}function Ig(t,n,e,i){return tl(t,fg(),e)?n+Ri(e)+i:Bi}function Ng(t,n,e,i,r,o){const a=Rp(t,function Th(){return $i.lFrame.bindingIndex}(),e,r);return Eh(2),a?n+Ri(e)+i+Ri(r)+o:Bi}function J(t,n,e,i,r,o,s,a){const l=Gt(),c=Pr(),u=t+Bo,d=c.firstCreatePass?function Pye(t,n,e,i,r,o,s,a,l){const c=n.consts,u=Ag(n,t,4,s||null,yf(c,a));kE(n,e,u,yf(c,l)),ox(n,u);const d=u.tView=CE(2,u,i,r,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c);return null!==n.queries&&(n.queries.template(n,u),d.queries=n.queries.embeddedTView(u)),u}(u,c,l,n,e,i,r,o,s):c.data[u];Ad(d,!1);const h=l[ir].createComment("");yx(c,l,h,d),el(h,l),Nx(l,l[u]=K5(h,l,h,d)),nx(d)&&xE(c,l,d),null!=s&&wE(l,d,a)}function uo(t){return hg(function Vge(){return $i.lFrame.contextLView}(),Bo+t)}function k(t,n,e){const i=Gt();return tl(i,fg(),n)&&uc(Pr(),es(),i,t,n,i[ir],e,!1),k}function FE(t,n,e,i,r){const s=r?"class":"style";ME(t,e,n.inputs[s],s,i)}function b(t,n,e,i){const r=Gt(),o=Pr(),s=Bo+t,a=r[ir],l=o.firstCreatePass?function Rye(t,n,e,i,r,o){const s=n.consts,l=Ag(n,t,2,i,yf(s,r));return kE(n,e,l,yf(s,o)),null!==l.attrs&&Ox(l,l.attrs,!1),null!==l.mergedAttrs&&Ox(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(s,o,r,n,e,i):o.data[s],c=r[s]=GT(a,n,function Jge(){return $i.lFrame.currentNamespace}()),u=nx(l);return Ad(l,!0),QR(a,c,l),32!=(32&l.flags)&&yx(o,r,c,l),0===function Pge(){return $i.lFrame.elementDepthCount}()&&el(c,r),function Lge(){$i.lFrame.elementDepthCount++}(),u&&(xE(o,r,l),_E(o,l,r)),null!==i&&wE(r,l),b}function x(){let t=Ea();pT()?mT():(t=t.parent,Ad(t,!1));const n=t;!function Rge(){$i.lFrame.elementDepthCount--}();const e=Pr();return e.firstCreatePass&&(ox(e,t),dT(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function eve(t){return 0!=(8&t.flags)}(n)&&FE(e,n,Gt(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function tve(t){return 0!=(16&t.flags)}(n)&&FE(e,n,Gt(),n.stylesWithoutHost,!1),x}function ge(t,n,e,i){return b(t,n,e,i),x(),ge}function ta(t,n,e){const i=Gt(),r=Pr(),o=t+Bo,s=r.firstCreatePass?function $ye(t,n,e,i,r){const o=n.consts,s=yf(o,i),a=Ag(n,t,8,"ng-container",s);return null!==s&&Ox(a,s,!0),kE(n,e,a,yf(o,r)),null!==n.queries&&n.queries.elementStart(n,a),a}(o,r,i,n,e):r.data[o];Ad(s,!0);const a=i[o]=i[ir].createComment("");return yx(r,i,a,s),el(a,i),nx(s)&&(xE(r,i,s),_E(r,s,i)),null!=e&&wE(i,s),ta}function na(){let t=Ea();const n=Pr();return pT()?mT():(t=t.parent,Ad(t,!1)),n.firstCreatePass&&(ox(n,t),dT(t)&&n.queries.elementEnd(t)),na}function vt(){return Gt()}function S1(t){return!!t&&"function"==typeof t.then}const OE=function v8(t){return!!t&&"function"==typeof t.subscribe};function ye(t,n,e,i){const r=Gt(),o=Pr(),s=Ea();return function b8(t,n,e,i,r,o,s){const a=nx(i),c=t.firstCreatePass&&Z5(t),u=n[ks],d=Q5(n);let h=!0;if(3&i.type||s){const m=sc(i,n),g=s?s(m):m,v=d.length,y=s?C=>s(Ta(C[i.index])):i.index;let _=null;if(!s&&a&&(_=function Bye(t,n,e,i){const r=t.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(t,n,r,i.index)),null!==_)(_.__ngLastListenerFn__||_).__ngNextListenerFn__=o,_.__ngLastListenerFn__=o,h=!1;else{o=x8(i,n,u,o,!1);const C=e.listen(g,r,o);d.push(o,C),c&&c.push(r,y,v,v+1)}}else o=x8(i,n,u,o,!1);const f=i.outputs;let p;if(h&&null!==f&&(p=f[r])){const m=p.length;if(m)for(let g=0;g-1?ac(t.index,n):n);let l=_8(n,e,i,s),c=o.__ngNextListenerFn__;for(;c;)l=_8(n,e,c,s)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function j(t=1){return function Wge(t){return($i.lFrame.contextLView=function qge(t,n){for(;t>0;)n=n[cg],t--;return n}(t,$i.lFrame.contextLView))[ks]}(t)}function Vye(t,n){let e=null;const i=function m1e(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let r=0;r>17&32767}function jE(t){return 2|t}function Bp(t){return(131068&t)>>2}function PE(t,n){return-131069&t|n<<2}function LE(t){return 1|t}function M8(t,n,e,i,r){const o=t[e+1],s=null===n;let a=i?bf(o):Bp(o),l=!1;for(;0!==a&&(!1===l||s);){const u=t[a+1];qye(t[a],n)&&(l=!0,t[a+1]=i?LE(u):jE(u)),a=i?bf(u):Bp(u)}l&&(t[e+1]=i?jE(o):LE(o))}function qye(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&_g(t,n)>=0}const ia={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function I8(t){return t.substring(ia.key,ia.keyEnd)}function N8(t,n){const e=ia.textEnd;return e===n?-1:(n=ia.keyEnd=function Kye(t,n,e){for(;n32;)n++;return n}(t,ia.key=n,e),$g(t,n,e))}function $g(t,n,e){for(;n=0;e=N8(n,e))lc(t,I8(n),!0)}function Du(t,n,e,i){const r=Gt(),o=Pr(),s=Eh(2);o.firstUpdatePass&&R8(o,t,s,i),n!==Bi&&tl(r,s,n)&&B8(o,o.data[_l()],r,r[ir],t,r[s+1]=function abe(t,n){return null==t||("string"==typeof n?t+=n:"object"==typeof t&&(t=Cn(cc(t)))),t}(n,e),i,s)}function Tu(t,n,e,i){const r=Pr(),o=Eh(2);r.firstUpdatePass&&R8(r,null,o,i);const s=Gt();if(e!==Bi&&tl(s,o,e)){const a=r.data[_l()];if(H8(a,i)&&!L8(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=jr(l,e||"")),FE(r,a,s,e,i)}else!function sbe(t,n,e,i,r,o,s,a){r===Bi&&(r=Yr);let l=0,c=0,u=0=t.expandoStartIndex}function R8(t,n,e,i){const r=t.data;if(null===r[e+1]){const o=r[_l()],s=L8(t,e);H8(o,i)&&null===n&&!s&&(n=!1),n=function tbe(t,n,e,i){const r=function vT(t){const n=$i.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let o=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(e=D1(e=RE(null,t,n,e,i),n.attrs,i),o=null);else{const s=n.directiveStylingLast;if(-1===s||t[s]!==r)if(e=RE(r,t,n,e,i),null===o){let l=function nbe(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==Bp(i))return t[bf(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=RE(null,t,n,l[1],i),l=D1(l,n.attrs,i),function ibe(t,n,e,i){t[bf(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else o=function rbe(t,n,e){let i;const r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0)&&(c=!0)):u=e,r)if(0!==l){const h=bf(t[a+1]);t[i+1]=$x(h,a),0!==h&&(t[h+1]=PE(t[h+1],i)),t[a+1]=function zye(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=$x(a,0),0!==a&&(t[a+1]=PE(t[a+1],i)),a=i;else t[i+1]=$x(l,0),0===a?a=i:t[l+1]=PE(t[l+1],i),l=i;c&&(t[i+1]=jE(t[i+1])),M8(t,u,i,!0),M8(t,u,i,!1),function Wye(t,n,e,i,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof n&&_g(o,n)>=0&&(e[i+1]=LE(e[i+1]))}(n,u,t,i,o),s=$x(a,l),o?n.classBindings=s:n.styleBindings=s}(r,o,n,e,s,i)}}function RE(t,n,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=t[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[r+1];h===Bi&&(h=d?Yr:void 0);let f=d?IT(h,i):u===i?h:void 0;if(c&&!Bx(f)&&(f=IT(l,i)),Bx(f)&&(a=f,s))return a;const p=t[r+1];r=s?bf(p):Bp(p)}if(null!==n){let l=o?n.residualClasses:n.residualStyles;null!=l&&(a=IT(l,i))}return a}function Bx(t){return void 0!==t}function H8(t,n){return 0!=(t.flags&(n?8:16))}function I(t,n=""){const e=Gt(),i=Pr(),r=t+Bo,o=i.firstCreatePass?Ag(i,r,1,n,null):i.data[r],s=e[r]=function UT(t,n){return t.createText(n)}(e[ir],n);yx(i,e,s,o),Ad(o,!1)}function Dt(t){return xn("",t,""),Dt}function xn(t,n,e){const i=Gt(),r=Ig(i,t,n,e);return r!==Bi&&Nh(i,_l(),r),xn}function Ld(t,n,e,i,r){const o=Gt(),s=Ng(o,t,n,e,i,r);return s!==Bi&&Nh(o,_l(),s),Ld}function dc(t,n,e){const i=Gt();return tl(i,fg(),n)&&uc(Pr(),es(),i,t,n,i[ir],e,!0),dc}const Vg="en-US";let u6=Vg;function VE(t,n,e,i,r){if(t=wi(t),Array.isArray(t))for(let o=0;o>20;if(Pp(t)||!t.multi){const f=new o1(l,r,le),p=zE(a,n,r?u:u+h,d);-1===p?(TT(dx(c,s),o,a),HE(o,t,n.length),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(f),s.push(f)):(e[p]=f,s[p]=f)}else{const f=zE(a,n,u+h,d),p=zE(a,n,u,u+h),g=p>=0&&e[p];if(r&&!g||!r&&!(f>=0&&e[f])){TT(dx(c,s),o,a);const v=function x_e(t,n,e,i,r){const o=new o1(t,e,le);return o.multi=[],o.index=n,o.componentProviders=0,O6(o,r,i&&!e),o}(r?__e:b_e,e.length,r,i,l);!r&&g&&(e[p].providerFactory=v),HE(o,t,n.length,0),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(v),s.push(v)}else HE(o,t,f>-1?f:p,O6(e[r?p:f],l,!r&&i));!r&&i&&g&&e[p].componentProviders++}}}function HE(t,n,e,i){const r=Pp(n),o=function V0e(t){return!!t.useClass}(n);if(r||o){const l=(o?wi(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function O6(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function zE(t,n,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function y_e(t,n,e){const i=Pr();if(i.firstCreatePass){const r=xu(t);VE(e,i.data,i.blueprint,r,!0),VE(n,i.data,i.blueprint,r,!1)}}(i,r?r(t):t,n)}}class zg{}class j6{}class P6 extends zg{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new n8(this);const i=rc(n);this._bootstrapComponents=Ih(i.bootstrap),this._r3Injector=O5(n,e,[{provide:zg,useValue:this},{provide:$c,useValue:this.componentFactoryResolver}],Cn(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class GE extends j6{constructor(n){super(),this.moduleType=n}create(n){return new P6(this.moduleType,n)}}class C_e extends zg{constructor(n,e,i){super(),this.componentFactoryResolver=new n8(this),this.instance=null;const r=new y5([...n,{provide:zg,useValue:this},{provide:$c,useValue:this.componentFactoryResolver}],e||Ex(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Gx(t,n,e=null){return new C_e(t,n,e).injector}let k_e=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=p5(0,e.type),r=i.length>0?Gx([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,r)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return t.\u0275prov=Et({token:t,providedIn:"environment",factory:()=>new t(ct(Nd))}),t})();function L6(t){t.getStandaloneInjector=n=>n.get(k_e).getOrCreateStandaloneInjector(t)}function wl(t,n,e){const i=bl()+t,r=Gt();return r[i]===Bi?Od(r,i,e?n.call(e):n()):function k1(t,n){return t[n]}(r,i)}function lr(t,n,e,i){return G6(Gt(),bl(),t,n,e,i)}function Sr(t,n,e,i,r){return function W6(t,n,e,i,r,o,s){const a=n+e;return Rp(t,a,r,o)?Od(t,a+2,s?i.call(s,r,o):i(r,o)):F1(t,a+2)}(Gt(),bl(),t,n,e,i,r)}function Ug(t,n,e,i,r,o){return function q6(t,n,e,i,r,o,s,a){const l=n+e;return function Lx(t,n,e,i,r){const o=Rp(t,n,e,i);return tl(t,n+2,r)||o}(t,l,r,o,s)?Od(t,l+3,a?i.call(a,r,o,s):i(r,o,s)):F1(t,l+3)}(Gt(),bl(),t,n,e,i,r,o)}function F1(t,n){const e=t[n];return e===Bi?void 0:e}function G6(t,n,e,i,r,o){const s=n+e;return tl(t,s,r)?Od(t,s+1,o?i.call(o,r):i(r)):F1(t,s+1)}function XE(t,n,e){const i=t+Bo,r=Gt(),o=hg(r,i);return function O1(t,n){return t[Rn].data[n].pure}(r,i)?G6(r,bl(),n,o.transform,e,o):o.transform(e)}function YE(t){return n=>{setTimeout(t,void 0,n)}}const Ke=class z_e extends tr{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){let r=n,o=e||(()=>null),s=i;if(n&&"object"==typeof n){const l=n;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=YE(o),r&&(r=YE(r)),s&&(s=YE(s)));const a=super.subscribe({next:r,error:o,complete:s});return n instanceof ue&&n.add(a),a}};function U_e(){return this._results[Symbol.iterator]()}class JE{get changes(){return this._changes||(this._changes=new Ke)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=JE.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=U_e)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const r=function Rc(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function dve(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i{class t{}return t.__NG_ELEMENT_ID__=q_e,t})();const G_e=Si,W_e=class extends G_e{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n,e){const i=this._declarationTContainer.tView,r=Mx(this._declarationLView,i,n,16,null,i.declTNode,null,null,null,null,e||null);r[t1]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[Ed];return null!==s&&(r[Ed]=s.createEmbeddedView(i)),bE(i,r,n),new w1(r)}};function q_e(){return Wx(Ea(),Gt())}function Wx(t,n){return 4&t.type?new W_e(n,t,Sg(t,n)):null}let nl=(()=>{class t{}return t.__NG_ELEMENT_ID__=X_e,t})();function X_e(){return Q6(Ea(),Gt())}const Y_e=nl,J6=class extends Y_e{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Sg(this._hostTNode,this._hostLView)}get injector(){return new mg(this._hostTNode,this._hostLView)}get parentInjector(){const n=DT(this._hostTNode,this._hostLView);if(rR(n)){const e=cx(n,this._hostLView),i=lx(n);return new mg(e[Rn].data[i+8],e)}return new mg(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=K6(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-yl}createEmbeddedView(n,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=n.createEmbeddedView(e||{},o);return this.insert(s,r),s}createComponent(n,e,i,r,o){const s=n&&!function l1(t){return"function"==typeof t}(n);let a;if(s)a=e;else{const d=e||{};a=d.index,i=d.injector,r=d.projectableNodes,o=d.environmentInjector||d.ngModuleRef}const l=s?n:new C1(no(n)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const h=(s?c:this.parentInjector).get(Nd,null);h&&(o=h)}const u=l.create(c,r,void 0,o);return this.insert(u.hostView,a),u}insert(n,e){const i=n._lView,r=i[Rn];if(function jge(t){return _u(t[fs])}(i)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const d=i[fs],h=new J6(d,d[Qa],d[fs]);h.detach(h.indexOf(n))}}const o=this._adjustIndex(e),s=this._lContainer;!function Zve(t,n,e,i){const r=yl+i,o=e.length;i>0&&(e[r-1][bu]=n),i0)i.push(s[a/2]);else{const c=o[a+1],u=n[-l];for(let d=yl;d{class t{constructor(e){this.appInits=e,this.resolve=Xx,this.reject=Xx,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(ct(Yx,8))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const P1=new zn("AppId",{providedIn:"root",factory:function x$(){return`${lA()}${lA()}${lA()}`}});function lA(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const w$=new zn("Platform Initializer"),L1=new zn("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),C$=new zn("AnimationModuleType");let xxe=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const hc=new zn("LocaleId",{providedIn:"root",factory:()=>ar(hc,ki.Optional|ki.SkipSelf)||function wxe(){return typeof $localize<"u"&&$localize.locale||Vg}()});class kxe{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let k$=(()=>{class t{compileModuleSync(e){return new GE(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=Ih(rc(e).declarations).reduce((s,a)=>{const l=no(a);return l&&s.push(new C1(l)),s},[]);return new kxe(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Txe=(()=>Promise.resolve(0))();function cA(t){typeof Zone>"u"?Txe.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Wi{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ke(!1),this.onMicrotaskEmpty=new Ke(!1),this.onStable=new Ke(!1),this.onError=new Ke(!1),typeof Zone>"u")throw new Ot(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function Exe(){let t=$o.requestAnimationFrame,n=$o.cancelAnimationFrame;if(typeof Zone<"u"&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function Ixe(t){const n=()=>{!function Mxe(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call($o,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,dA(t),t.isCheckStableRunning=!0,uA(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),dA(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return T$(t),e.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&n(),E$(t)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return T$(t),e.invoke(r,o,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),E$(t)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,dA(t),uA(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Wi.isInAngularZone())throw new Ot(909,!1)}static assertNotInAngularZone(){if(Wi.isInAngularZone())throw new Ot(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,n,Axe,Xx,Xx);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const Axe={};function uA(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function dA(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function T$(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function E$(t){t._nesting--,uA(t)}class Nxe{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ke,this.onMicrotaskEmpty=new Ke,this.onStable=new Ke,this.onError=new Ke}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}}const A$=new zn(""),Kx=new zn("");let pA,hA=(()=>{class t{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,pA||(function Fxe(t){pA=t}(r),r.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Wi.assertNotInAngularZone(),cA(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())cA(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}}return t.\u0275fac=function(e){return new(e||t)(ct(Wi),ct(fA),ct(Kx))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),fA=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return pA?.findTestabilityInTree(this,e,i)??null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const Oh=!1;let _f=null;const M$=new zn("AllowMultipleToken"),mA=new zn("PlatformDestroyListeners"),I$=new zn("appBootstrapListener");class N${constructor(n,e){this.name=n,this.token=e}}function O$(t,n,e=[]){const i=`Platform: ${n}`,r=new zn(i);return(o=[])=>{let s=gA();if(!s||s.injector.get(M$,!1)){const a=[...e,...o,{provide:r,useValue:!0}];t?t(a):function Pxe(t){if(_f&&!_f.get(M$,!1))throw new Ot(400,!1);_f=t;const n=t.get(P$);(function F$(t){const n=t.get(w$,null);n&&n.forEach(e=>e())})(t)}(function j$(t=[],n){return Rs.create({name:n,providers:[{provide:aE,useValue:"platform"},{provide:mA,useValue:new Set([()=>_f=null])},...t]})}(a,i))}return function Rxe(t){const n=gA();if(!n)throw new Ot(401,!1);return n}()}}function gA(){return _f?.get(P$)??null}let P$=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function R$(t,n){let e;return e="noop"===t?new Nxe:("zone.js"===t?void 0:t)||new Wi(n),e}(i?.ngZone,function L$(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:Wi,useValue:r}];return r.run(()=>{const s=Rs.create({providers:o,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(Dg,null);if(!l)throw new Ot(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{Qx(this._modules,a),c.unsubscribe()})}),function $$(t,n,e){try{const i=e();return S1(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(l,r,()=>{const c=a.injector.get(Jx);return c.runInitializers(),c.donePromise.then(()=>(function d6(t){jc(t,"Expected localeId to be defined"),"string"==typeof t&&(u6=t.toLowerCase().replace(/_/g,"-"))}(a.injector.get(hc,Vg)||Vg),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=B$({},i);return function Oxe(t,n,e){const i=new GE(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(Au);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new Ot(-403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Ot(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(mA,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(ct(Rs))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function B$(t,n){return Array.isArray(n)?n.reduce(B$,t):{...t,...n}}let Au=(()=>{class t{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(e,i,r){this._zone=e,this._injector=i,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new rn(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new rn(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{Wi.assertNotInAngularZone(),cA(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{Wi.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=Tt(o,s.pipe(We()))}bootstrap(e,i){const r=e instanceof _5;if(!this._injector.get(Jx).done){!r&&function ag(t){const n=no(t)||Ka(t)||vl(t);return null!==n&&n.standalone}(e);throw new Ot(405,Oh)}let s;s=r?e:this._injector.get($c).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function jxe(t){return t.isBoundToModule}(s)?void 0:this._injector.get(zg),c=s.create(Rs.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get(A$,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Qx(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new Ot(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Qx(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(I$,[]);i.push(...this._bootstrapListeners),i.forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Qx(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new Ot(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return t.\u0275fac=function(e){return new(e||t)(ct(Wi),ct(Nd),ct(Dg))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Qx(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let qo=(()=>{class t{}return t.__NG_ELEMENT_ID__=Bxe,t})();function Bxe(t){return function Vxe(t,n,e){if(i1(t)&&!e){const i=ac(t.index,n);return new w1(i,i)}return 47&t.type?new w1(n[Za],n):null}(Ea(),Gt(),16==(16&t))}class G${constructor(){}supports(n){return Px(n)}create(n){return new qxe(n)}}const Wxe=(t,n)=>n;class qxe{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||Wxe}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const s=!i||e&&e.currentIndex{s=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,r){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new Xxe(e,i),o,r),n}_verifyReinsertion(n,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,o=n._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const r=null===e?this._itHead:e._next;return n._next=r,n._prev=e,null===r?this._itTail=n:r._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new W$),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new W$),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class Xxe{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Yxe{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class W${constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new Yxe,this.map.set(e,i)),i.add(n)}get(n,e){const r=this.map.get(n);return r?r.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function q$(t,n,e){const i=t.previousIndex;if(null===i)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const r=this._records.get(n);this._maybeAddToChanges(r,e);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new Kxe(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class Kxe{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Y$(){return new tw([new G$])}let tw=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Y$()),deps:[[t,new d1,new u1]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new Ot(901,!1)}}return t.\u0275prov=Et({token:t,providedIn:"root",factory:Y$}),t})();function J$(){return new R1([new X$])}let R1=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||J$()),deps:[[t,new d1,new u1]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new Ot(901,!1)}}return t.\u0275prov=Et({token:t,providedIn:"root",factory:J$}),t})();const ewe=O$(null,"core",[]);let twe=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(ct(Au))},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({}),t})();function qg(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}let xA=null;function jh(){return xA}class rwe{}const Ir=new zn("DocumentToken");let wA=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return function owe(){return ct(K$)}()},providedIn:"platform"}),t})();const swe=new zn("Location Initialized");let K$=(()=>{class t extends wA{constructor(e){super(),this._doc=e,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return jh().getBaseHref(this._doc)}onPopState(e){const i=jh().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=jh().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,r){Q$()?this._history.pushState(e,i,r):this._location.hash=r}replaceState(e,i,r){Q$()?this._history.replaceState(e,i,r):this._location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(ct(Ir))},t.\u0275prov=Et({token:t,factory:function(){return function awe(){return new K$(ct(Ir))}()},providedIn:"platform"}),t})();function Q$(){return!!window.history.pushState}function CA(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function Z$(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Ph(t){return t&&"?"!==t[0]?"?"+t:t}let zp=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return ar(tB)},providedIn:"root"}),t})();const eB=new zn("appBaseHref");let tB=(()=>{class t extends zp{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??ar(Ir).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return CA(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Ph(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+Ph(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+Ph(o));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(ct(wA),ct(eB,8))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),lwe=(()=>{class t extends zp{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=CA(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+Ph(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+Ph(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(ct(wA),ct(eB,8))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),kA=(()=>{class t{constructor(e){this._subject=new Ke,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function dwe(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(Z$(nB(i))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Ph(i))}normalize(e){return t.stripTrailingSlash(function uwe(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,nB(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ph(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ph(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return t.normalizeQueryParams=Ph,t.joinWithSlash=CA,t.stripTrailingSlash=Z$,t.\u0275fac=function(e){return new(e||t)(ct(zp))},t.\u0275prov=Et({token:t,factory:function(){return function cwe(){return new kA(ct(zp))}()},providedIn:"root"}),t})();function nB(t){return t.replace(/\/index.html$/,"")}function pB(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}const jA=/\s+/,mB=[];let Rh=(()=>{class t{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this.initialClasses=mB,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(jA):mB}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(jA):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,Boolean(e[i]));this._applyStateDiff()}_updateState(e,i){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(jA).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return t.\u0275fac=function(e){return new(e||t)(le(tw),le(R1),le(ti),le(Ss))},t.\u0275dir=Zt({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),t})();class Gwe{constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let jn=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new Gwe(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),yB(a,r)}});for(let r=0,o=i.length;r{yB(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(le(nl),le(Si),le(tw))},t.\u0275dir=Zt({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function yB(t,n){t.context.$implicit=n.item}let gn=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new qwe,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){bB("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){bB("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(le(nl),le(Si))},t.\u0275dir=Zt({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class qwe{constructor(){this.$implicit=null,this.ngIf=null}}function bB(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Cn(n)}'.`)}class PA{constructor(n,e){this._viewContainerRef=n,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let dw=(()=>{class t{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const i of this._defaultViews)i.enforceState(e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Zt({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),t})(),_B=(()=>{class t{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new PA(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(le(nl),le(Si),le(dw,9))},t.\u0275dir=Zt({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),t})(),wB=(()=>{class t{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[r,o]=e.split("."),s=-1===r.indexOf("-")?void 0:Bl.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${i}${o}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,r,s)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(le(ti),le(R1),le(Ss))},t.\u0275dir=Zt({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),t})(),kl=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:o,ngTemplateOutletInjector:s}=this;this._viewRef=i.createEmbeddedView(r,o,s?{injector:s}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(le(nl))},t.\u0275dir=Zt({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Hn]}),t})(),Vs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({}),t})();const SB="browser";let _Ce=(()=>{class t{}return t.\u0275prov=Et({token:t,providedIn:"root",factory:()=>new xCe(ct(Ir),window)}),t})();class xCe{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function wCe(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=n)}}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=TB(this.window.history)||TB(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function TB(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class EB{}class YCe extends rwe{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class VA extends YCe{static makeCurrent(){!function iwe(t){xA||(xA=t)}(new VA)}onAndCancel(n,e,i){return n.addEventListener(e,i,!1),()=>{n.removeEventListener(e,i,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function JCe(){return H1=H1||document.querySelector("base"),H1?H1.getAttribute("href"):null}();return null==e?null:function KCe(t){pw=pw||document.createElement("a"),pw.setAttribute("href",t);const n=pw.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){H1=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return pB(document.cookie,n)}}let pw,H1=null;const FB=new zn("TRANSITION_ID"),ZCe=[{provide:Yx,useFactory:function QCe(t,n,e){return()=>{e.get(Jx).donePromise.then(()=>{const i=jh(),r=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let o=0;o{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const mw=new zn("EventManagerPlugins");let gw=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let o=0;o{class t{constructor(){this.usageCount=new Map}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)0===this.changeUsageCount(i,-1)&&this.onStyleRemoved(i)}onStyleRemoved(e){}onStyleAdded(e){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(e,i){const r=this.usageCount;let o=r.get(e)??0;return o+=i,o>0?r.set(e,o):r.delete(e),o}ngOnDestroy(){for(const e of this.getAllStyles())this.onStyleRemoved(e);this.usageCount.clear()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),z1=(()=>{class t extends jB{constructor(e){super(),this.doc=e,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.forEach(o=>o.remove()),i.delete(e)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}addStyleToHost(e,i){const r=this.doc.createElement("style");r.textContent=i,e.appendChild(r);const o=this.styleRef.get(i);o?o.push(r):this.styleRef.set(i,[r])}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}}return t.\u0275fac=function(e){return new(e||t)(ct(Ir))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const HA={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},zA=/%COMP%/g,RB=new zn("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function $B(t,n){return n.flat(100).map(e=>e.replace(zA,t))}function BB(t){return n=>{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let vw=(()=>{class t{constructor(e,i,r,o){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestory=o,this.rendererByCompId=new Map,this.defaultRenderer=new UA(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;const r=this.getOrCreateRenderer(e,i);return r instanceof zB?r.applyToHost(e):r instanceof GA&&r.applyStyles(),r}getOrCreateRenderer(e,i){const r=this.rendererByCompId;let o=r.get(i.id);if(!o){const s=this.eventManager,a=this.sharedStylesHost,l=this.removeStylesOnCompDestory;switch(i.encapsulation){case yu.Emulated:o=new zB(s,a,i,this.appId,l);break;case yu.ShadowDom:return new l2e(s,a,e,i);default:o=new GA(s,a,i,l)}o.onDestroy=()=>r.delete(i.id),r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(ct(gw),ct(z1),ct(P1),ct(RB))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();class UA{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(HA[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){(HB(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(HB(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;const o=HA[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const r=HA[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(Bl.DashCase|Bl.Important)?n.style.setProperty(e,i,r&Bl.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&Bl.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,BB(i)):this.eventManager.addEventListener(n,e,BB(i))}}function HB(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class l2e extends UA{constructor(n,e,i,r){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=$B(r.id,r.styles);for(const s of o){const a=document.createElement("style");a.textContent=s,this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class GA extends UA{constructor(n,e,i,r,o=i.id){super(n),this.sharedStylesHost=e,this.removeStylesOnCompDestory=r,this.rendererUsageCount=0,this.styles=$B(o,i.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class zB extends GA{constructor(n,e,i,r,o){const s=r+"-"+i.id;super(n,e,i,o,s),this.contentAttr=function o2e(t){return"_ngcontent-%COMP%".replace(zA,t)}(s),this.hostAttr=function s2e(t){return"_nghost-%COMP%".replace(zA,t)}(s)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}let c2e=(()=>{class t extends OB{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return t.\u0275fac=function(e){return new(e||t)(ct(Ir))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const UB=["alt","control","meta","shift"],u2e={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},d2e={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let h2e=(()=>{class t extends OB{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,r){const o=t.parseEventName(i),s=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>jh().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=t._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),UB.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),s+=c+".")}),s+=o,0!=i.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(e,i){let r=u2e[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),UB.forEach(s=>{s!==r&&(0,d2e[s])(e)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(ct(Ir))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const WB=[{provide:L1,useValue:SB},{provide:w$,useValue:function f2e(){VA.makeCurrent()},multi:!0},{provide:Ir,useFactory:function m2e(){return function h0e(t){ZT=t}(document),document},deps:[]}],g2e=O$(ewe,"browser",WB),qB=new zn(""),XB=[{provide:Kx,useClass:class e2e{addToWindow(n){$o.getAngularTestability=(i,r=!0)=>{const o=n.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},$o.getAllAngularTestabilities=()=>n.getAllTestabilities(),$o.getAllAngularRootElements=()=>n.getAllRootElements(),$o.frameworkStabilizers||($o.frameworkStabilizers=[]),$o.frameworkStabilizers.push(i=>{const r=$o.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,e,i){return null==e?null:n.getTestability(e)??(i?jh().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:A$,useClass:hA,deps:[Wi,fA,Kx]},{provide:hA,useClass:hA,deps:[Wi,fA,Kx]}],YB=[{provide:aE,useValue:"root"},{provide:Dg,useFactory:function p2e(){return new Dg},deps:[]},{provide:mw,useClass:c2e,multi:!0,deps:[Ir,Wi,L1]},{provide:mw,useClass:h2e,multi:!0,deps:[Ir]},{provide:vw,useClass:vw,deps:[gw,z1,P1,RB]},{provide:Lp,useExisting:vw},{provide:jB,useExisting:z1},{provide:z1,useClass:z1,deps:[Ir]},{provide:gw,useClass:gw,deps:[mw,Wi]},{provide:EB,useClass:t2e,deps:[]},[]];let qA=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:P1,useValue:e.appId},{provide:FB,useExisting:P1},ZCe]}}}return t.\u0275fac=function(e){return new(e||t)(ct(qB,12))},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({providers:[...YB,...XB],imports:[Vs,twe]}),t})(),JB=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return t.\u0275fac=function(e){return new(e||t)(ct(Ir))},t.\u0275prov=Et({token:t,factory:function(e){let i=null;return i=e?new e:function y2e(){return new JB(ct(Ir))}(),i},providedIn:"root"}),t})();typeof window<"u"&&window;let ZB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(e){let i=null;return i=e?new(e||t):ct(e7),i},providedIn:"root"}),t})(),e7=(()=>{class t extends ZB{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case ko.NONE:return i;case ko.HTML:return Id(i,"HTML")?cc(i):c5(this._doc,String(i)).toString();case ko.STYLE:return Id(i,"Style")?cc(i):i;case ko.SCRIPT:if(Id(i,"Script"))return cc(i);throw new Error("unsafe value used in a script context");case ko.URL:return Id(i,"URL")?cc(i):wx(String(i));case ko.RESOURCE_URL:if(Id(i,"ResourceURL"))return cc(i);throw new Error(`unsafe value used in a resource URL context (see ${U_})`);default:throw new Error(`Unexpected SecurityContext ${e} (see ${U_})`)}}bypassSecurityTrustHtml(e){return function b0e(t){return new f0e(t)}(e)}bypassSecurityTrustStyle(e){return function _0e(t){return new p0e(t)}(e)}bypassSecurityTrustScript(e){return function x0e(t){return new m0e(t)}(e)}bypassSecurityTrustUrl(e){return function w0e(t){return new g0e(t)}(e)}bypassSecurityTrustResourceUrl(e){return function C0e(t){return new v0e(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(ct(Ir))},t.\u0275prov=Et({token:t,factory:function(e){let i=null;return i=e?new e:function C2e(t){return new e7(t.get(Ir))}(ct(Rs)),i},providedIn:"root"}),t})();function U1(t){return(U1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function K(t,n,e){return(n=function S2e(t){var n=function k2e(t,n){if("object"!==U1(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,n||"default");if("object"!==U1(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"===U1(n)?n:String(n)}(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}class t7{}class D2e{}const $h="*";function il(t,n){return{type:7,name:t,definitions:n,options:{}}}function Ma(t,n=null){return{type:4,styles:n,timings:t}}function n7(t,n=null){return{type:2,steps:t,options:n}}function Dr(t){return{type:6,styles:t,offset:null}}function Ia(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function i7(t){Promise.resolve().then(t)}class G1{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){i7(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class r7{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,r=0;const o=this.players.length;0==o?i7(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const YA="!";function o7(t){return new Ot(3e3,!1)}function ake(){return typeof window<"u"&&typeof window.document<"u"}function JA(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function wf(t){switch(t.length){case 0:return new G1;case 1:return t[0];default:return new r7(t)}}function s7(t,n,e,i,r=new Map,o=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.get("offset"),h=d==l,f=h&&c||new Map;u.forEach((p,m)=>{let g=m,v=p;if("offset"!==m)switch(g=n.normalizePropertyName(g,s),v){case YA:v=r.get(m);break;case $h:v=o.get(m);break;default:v=n.normalizeStyleValue(m,g,v,s)}f.set(g,v)}),h||a.push(f),c=f,l=d}),s.length)throw function Y2e(t){return new Ot(3502,!1)}();return a}function KA(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&QA(e,"start",t)));break;case"done":t.onDone(()=>i(e&&QA(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&QA(e,"destroy",t)))}}function QA(t,n,e){const o=ZA(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),s=t._data;return null!=s&&(o._data=s),o}function ZA(t,n,e,i,r="",o=0,s){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function fc(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function a7(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}let eM=(t,n)=>!1,l7=(t,n,e)=>[],c7=null;function tM(t){const n=t.parentNode||t.host;return n===c7?null:n}(JA()||typeof Element<"u")&&(ake()?(c7=(()=>document.documentElement)(),eM=(t,n)=>{for(;n;){if(n===t)return!0;n=tM(n)}return!1}):eM=(t,n)=>t.contains(n),l7=(t,n,e)=>{if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]});let Up=null,u7=!1;const d7=eM,h7=l7;let f7=(()=>{class t{validateStyleProperty(e){return function cke(t){Up||(Up=function uke(){return typeof document<"u"?document.body:null}()||{},u7=!!Up.style&&"WebkitAppearance"in Up.style);let n=!0;return Up.style&&!function lke(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Up.style,!n&&u7&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Up.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return d7(e,i)}getParentElement(e){return tM(e)}query(e,i,r){return h7(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new G1(r,o)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),nM=(()=>{class t{}return t.NOOP=new f7,t})();const dke=1e3,iM="ng-enter",yw="ng-leave",bw="ng-trigger",_w=".ng-trigger",m7="ng-animating",rM=".ng-animating";function Bh(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:oM(parseFloat(n[1]),n[2])}function oM(t,n){return"s"===n?t*dke:t}function xw(t,n,e){return t.hasOwnProperty("duration")?t:function fke(t,n,e){let r,o=0,s="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(o7()),{duration:0,delay:0,easing:""};r=oM(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=oM(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=t;if(!e){let a=!1,l=n.length;r<0&&(n.push(function T2e(){return new Ot(3100,!1)}()),a=!0),o<0&&(n.push(function E2e(){return new Ot(3101,!1)}()),a=!0),a&&n.splice(l,0,o7())}return{duration:r,delay:o,easing:s}}(t,n,e)}function W1(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function g7(t){const n=new Map;return Object.keys(t).forEach(e=>{n.set(e,t[e])}),n}function Cf(t,n=new Map,e){if(e)for(let[i,r]of e)n.set(i,r);for(let[i,r]of t)n.set(i,r);return n}function y7(t,n,e){return e?n+":"+e+";":""}function b7(t){let n="";for(let e=0;e{const o=aM(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=i}),JA()&&b7(t))}function Gp(t,n){t.style&&(n.forEach((e,i)=>{const r=aM(i);t.style[r]=""}),JA()&&b7(t))}function q1(t){return Array.isArray(t)?1==t.length?t[0]:n7(t):t}const sM=new RegExp("{{\\s*(.+?)\\s*}}","g");function _7(t){let n=[];if("string"==typeof t){let e;for(;e=sM.exec(t);)n.push(e[1]);sM.lastIndex=0}return n}function X1(t,n,e){const i=t.toString(),r=i.replace(sM,(o,s)=>{let a=n[s];return null==a&&(e.push(function M2e(t){return new Ot(3003,!1)}()),a=""),a.toString()});return r==i?t:r}function ww(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const gke=/-+([a-z0-9])/g;function aM(t){return t.replace(gke,(...n)=>n[1].toUpperCase())}function vke(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function pc(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw function I2e(t){return new Ot(3004,!1)}()}}function x7(t,n){return window.getComputedStyle(t)[n]}const Sw="*";function Cke(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function kke(t,n,e){if(":"==t[0]){const l=function Ske(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function U2e(t){return new Ot(3015,!1)}()),n;const r=i[1],o=i[2],s=i[3];n.push(w7(r,s));"<"==o[0]&&!(r==Sw&&s==Sw)&&n.push(w7(s,r))}(i,e,n)):e.push(t),e}const Dw=new Set(["true","1"]),Tw=new Set(["false","0"]);function w7(t,n){const e=Dw.has(t)||Tw.has(t),i=Dw.has(n)||Tw.has(n);return(r,o)=>{let s=t==Sw||t==r,a=n==Sw||n==o;return!s&&e&&"boolean"==typeof r&&(s=r?Dw.has(t):Tw.has(t)),!a&&i&&"boolean"==typeof o&&(a=o?Dw.has(n):Tw.has(n)),s&&a}}const Dke=new RegExp("s*:selfs*,?","g");function lM(t,n,e,i){return new Tke(t).build(n,e,i)}class Tke{constructor(n){this._driver=n}build(n,e,i){const r=new Mke(e);return this._resetContextStyleTimingState(r),pc(this,q1(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],s=[];return"@"==n.name.charAt(0)&&e.errors.push(function F2e(){return new Ot(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,s.push(l)}else e.errors.push(function O2e(){return new Ot(3007,!1)}())}),{type:7,name:n.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{_7(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(ww(o.values()),e.errors.push(function j2e(t,n){return new Ot(3008,!1)}()))}return{type:0,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=pc(this,q1(n.animation),e);return{type:1,matchers:Cke(n.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Wp(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(i=>pc(this,i,e)),options:Wp(n.options)}}visitGroup(n,e){const i=e.currentTime;let r=0;const o=n.steps.map(s=>{e.currentTime=i;const a=pc(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:Wp(n.options)}}visitAnimate(n,e){const i=function Nke(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return cM(xw(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=cM(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=xw(e,n);return cM(r.duration,r.delay,r.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let r,o=n.styles?n.styles:Dr({});if(5==o.type)r=this.visitKeyframes(o,e);else{let s=n.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=Dr(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of r)"string"==typeof a?a===$h?i.push(a):e.errors.push(new Ot(3002,!1)):i.push(g7(a));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:s,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),n.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let d=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(e.errors.push(function L2e(t,n,e,i,r){return new Ot(3010,!1)}()),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),e.options&&function mke(t,n,e){const i=n.params||{},r=_7(t);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function A2e(t){return new Ot(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function R2e(){return new Ot(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=n.steps.map(v=>{const y=this._makeStyleAst(v,e);let _=null!=y.offset?y.offset:function Ike(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(y.styles),C=0;return null!=_&&(o++,C=y.offset=_),l=l||C<0||C>1,a=a||C0&&o{const _=h>0?y==f?1:h*y:s[y],C=_*g;e.currentTime=p+m.delay+C,m.duration=C,this._validateStyleAst(v,e),v.offset=_,i.styles.push(v)}),i}visitReference(n,e){return{type:8,animation:pc(this,q1(n.animation),e),options:Wp(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:Wp(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:Wp(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,r=n.options||{};e.queryCount++,e.currentQuery=n;const[o,s]=function Eke(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(Dke,"")),t=t.replace(/@\*/g,_w).replace(/@\w+/g,e=>_w+"-"+e.slice(1)).replace(/:animating/g,rM),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+o:o,fc(e.collectedStyles,e.currentQuerySelector,new Map);const a=pc(this,q1(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:Wp(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function H2e(){return new Ot(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:xw(n.timings,e.errors,!0);return{type:12,animation:pc(this,q1(n.animation),e),timings:i,options:null}}}class Mke{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Wp(t){return t?(t=W1(t)).params&&(t.params=function Ake(t){return t?W1(t):null}(t.params)):t={},t}function cM(t,n,e){return{duration:t,delay:n,easing:e}}function uM(t,n,e,i,r,o,s=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class Ew{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const jke=new RegExp(":enter","g"),Lke=new RegExp(":leave","g");function dM(t,n,e,i,r,o=new Map,s=new Map,a,l,c=[]){return(new Rke).buildKeyframes(t,n,e,i,r,o,s,a,l,c)}class Rke{buildKeyframes(n,e,i,r,o,s,a,l,c,u=[]){c=c||new Ew;const d=new hM(n,e,c,r,o,u,[]);d.options=l;const h=l.delay?Bh(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),pc(this,i,d);const f=d.timelines.filter(p=>p.containsAnimation());if(f.length&&a.size){let p;for(let m=f.length-1;m>=0;m--){const g=f[m];if(g.element===e){p=g;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,l)}return f.length?f.map(p=>p.buildKeyframes()):[uM(e,[],[],[],0,h,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(n.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(const r of n){const o=r?.delay;if(o){const s="number"==typeof o?o:Bh(X1(o,r?.params??{},e.errors));i.delayNextStep(s)}}}_visitSubInstructions(n,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?Bh(i.duration):null,a=null!=i.delay?Bh(i.delay):null;return 0!==s&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(n,e){e.updateOptions(n.options,!0),pc(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let r=e;const o=n.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Aw);const s=Bh(o.delay);r.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>pc(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let r=e.currentTimeline.currentTime;const o=n.options&&n.options.delay?Bh(n.options.delay):0;n.steps.forEach(s=>{const a=e.createSubContext(n.options);o&&a.delayNextStep(o),pc(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return xw(e.params?X1(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=n.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(o):i.setStyles(n.styles,o,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,r=n.options||{},o=r.delay?Bh(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Aw);let s=i;const a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(n.options,c);o&&d.delayNextStep(o),c===e.element&&(l=d.currentTimeline),pc(this,n.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,r=e.currentTimeline,o=n.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;pc(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Aw={};class hM{constructor(n,e,i,r,o,s,a,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Aw,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Mw(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let r=this.options;null!=i.duration&&(r.duration=Bh(i.duration)),null!=i.delay&&(r.delay=Bh(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=X1(o[a],s,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return n}createSubContext(n=null,e,i){const r=e||this.element,o=new hM(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=Aw,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const r={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},o=new $ke(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,r,o,s){let a=[];if(r&&a.push(this.element),n.length>0){n=(n=n.replace(jke,"."+this._enterClassName)).replace(Lke,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&0==a.length&&s.push(function z2e(t){return new Ot(3014,!1)}()),a}}class Mw{constructor(n,e,i,r){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new Mw(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||$h),this._currentKeyframe.set(e,$h);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},s=function Bke(t,n){const e=new Map;let i;return t.forEach(r=>{if("*"===r){i=i||n.keys();for(let o of i)e.set(o,$h)}else Cf(r,e)}),e}(n,this._globalTimelineStyles);for(let[a,l]of s){const c=X1(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??$h),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Cf(a,new Map,this._backFill);c.forEach((u,d)=>{u===YA?n.add(d):u===$h&&e.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});const o=n.size?ww(n.values()):[],s=e.size?ww(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return uM(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class $ke extends Mw{constructor(n,e,i,r,o,s,a=!1){super(n,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,l=Cf(n[0]);l.set("offset",0),o.push(l);const c=Cf(n[0]);c.set("offset",S7(a)),o.push(c);const u=n.length-1;for(let d=1;d<=u;d++){let h=Cf(n[d]);const f=h.get("offset");h.set("offset",S7((e+f*i)/s)),o.push(h)}i=s,e=0,r="",n=o}return uM(this.element,n,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function S7(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class fM{}const Vke=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Hke extends fM{normalizePropertyName(n,e){return aM(n)}normalizeStyleValue(n,e,i,r){let o="";const s=i.toString().trim();if(Vke.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function N2e(t,n){return new Ot(3005,!1)}())}return s+o}}function D7(t,n,e,i,r,o,s,a,l,c,u,d,h){return{type:0,element:t,triggerName:n,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const pM={};class T7{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,r){return function zke(t,n,e,i,r){return t.some(o=>o(n,e,i,r))}(this.ast.matchers,n,e,i,r)}buildStyles(n,e,i){let r=this._stateStyles.get("*");return void 0!==n&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(e,i):new Map}build(n,e,i,r,o,s,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||pM,p=this.buildStyles(i,a&&a.params||pM,d),m=l&&l.params||pM,g=this.buildStyles(r,m,d),v=new Set,y=new Map,_=new Map,C="void"===r,S={params:Uke(m,h),delay:this.ast.options?.delay},M=u?[]:dM(n,e,this.ast.animation,o,s,p,g,S,c,d);let $=0;if(M.forEach(R=>{$=Math.max(R.duration+R.delay,$)}),d.length)return D7(e,this._triggerName,i,r,C,p,g,[],[],y,_,$,d);M.forEach(R=>{const z=R.element,U=fc(y,z,new Set);R.preStyleProps.forEach(re=>U.add(re));const q=fc(_,z,new Set);R.postStyleProps.forEach(re=>q.add(re)),z!==e&&v.add(z)});const G=ww(v.values());return D7(e,this._triggerName,i,r,C,p,g,M,G,y,_,$)}}function Uke(t,n){const e=W1(n);for(const i in t)t.hasOwnProperty(i)&&null!=t[i]&&(e[i]=t[i]);return e}class Gke{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,r=W1(this.defaultParams);return Object.keys(n).forEach(o=>{const s=n[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=X1(s,r,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(a,s)})}),i}}class qke{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new Gke(r.style,r.options&&r.options.params||{},i))}),E7(this.states,"true","1"),E7(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new T7(n,r,this.states))}),this.fallbackTransition=function Xke(t,n,e){return new T7(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,r){return this.transitionFactories.find(s=>s.match(n,e,i,r))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function E7(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const Yke=new Ew;class Jke{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const i=[],r=[],o=lM(this._driver,e,i,r);if(i.length)throw function J2e(t){return new Ot(3503,!1)}();this._animations.set(n,o)}_buildPlayer(n,e,i){const r=n.element,o=s7(0,this._normalizer,0,n.keyframes,e,i);return this._driver.animate(r,o,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const r=[],o=this._animations.get(n);let s;const a=new Map;if(o?(s=dM(this._driver,e,o,iM,yw,new Map,new Map,i,Yke,r),s.forEach(u=>{const d=fc(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(function K2e(){return new Ot(3300,!1)}()),s=[]),r.length)throw function Q2e(t){return new Ot(3504,!1)}();a.forEach((u,d)=>{u.forEach((h,f)=>{u.set(f,this._driver.computeStyle(d,f,$h))})});const c=wf(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function Z2e(t){return new Ot(3301,!1)}();return e}listen(n,e,i,r){const o=ZA(e,"","","");return KA(this._getPlayer(n),i,o,r),()=>{}}command(n,e,i,r){if("register"==i)return void this.register(n,r[0]);if("create"==i)return void this.create(n,e,r[0]||{});const o=this._getPlayer(n);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n)}}}const A7="ng-animate-queued",mM="ng-animate-disabled",tSe=[],M7={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},nSe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},zc="__ng_removed";class gM{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function sSe(t){return t??null}(i?n.value:n),i){const o=W1(n);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const Y1="void",vM=new gM(Y1);class iSe{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,Uc(e,this._hostClassName)}listen(n,e,i,r){if(!this._triggers.has(e))throw function eke(t,n){return new Ot(3302,!1)}();if(null==i||0==i.length)throw function tke(t){return new Ot(3303,!1)}();if(!function aSe(t){return"start"==t||"done"==t}(i))throw function nke(t,n){return new Ot(3400,!1)}();const o=fc(this._elementListeners,n,[]),s={name:e,phase:i,callback:r};o.push(s);const a=fc(this._engine.statesByElement,n,new Map);return a.has(e)||(Uc(n,bw),Uc(n,bw+"-"+e),a.set(e,vM)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function ike(t){return new Ot(3401,!1)}();return e}trigger(n,e,i,r=!0){const o=this._getTrigger(e),s=new yM(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(Uc(n,bw),Uc(n,bw+"-"+e),this._engine.statesByElement.set(n,a=new Map));let l=a.get(e);const c=new gM(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=vM),c.value!==Y1&&l.value===c.value){if(!function uSe(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let r=0;r{Gp(n,g),Rd(n,v)})}return}const h=fc(this._engine.playersByElement,n,[]);h.forEach(m=>{m.namespaceId==this.id&&m.triggerName==e&&m.queued&&m.destroy()});let f=o.matchTransition(l.value,c.value,n,c.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:p}),p||(Uc(n,A7),s.onStart(()=>{Xg(n,A7)})),s.onDone(()=>{let m=this.players.indexOf(s);m>=0&&this.players.splice(m,1);const g=this._engine.playersByElement.get(n);if(g){let v=g.indexOf(s);v>=0&&g.splice(v,1)}}),this.players.push(s),h.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,_w,!0);i.forEach(r=>{if(r[zc])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,e,i,r){const o=this._engine.statesByElement.get(n),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(n,c,Y1,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,s),i&&wf(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const r=new Set;e.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||vM,u=new gM(Y1),d=new yM(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(n):[];if(o&&o.length)r=!0;else{let s=n;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,e);else{const o=n[zc];(!o||o===M7)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){Uc(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=ZA(o,i.triggerName,i.fromState.value,i.toState.value);l._data=n,KA(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}elementContainsData(n){let e=!1;return this._elementListeners.has(n)&&(e=!0),e=!!this._queue.find(i=>i.element===n)||e,e}}class rSe{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new iSe(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(n)}else i.push(n);return r.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let r=this._namespaceLookup[n];r&&r.register(e,i)&&this.totalAnimations++}destroy(n,e){if(!n)return;const i=this._fetchNamespace(n);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[n];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(n,e,i,r){if(Iw(e)){const o=this._fetchNamespace(n);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(n,e,i,r){if(!Iw(e))return;const o=e[zc];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){const s=this._fetchNamespace(n);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Uc(n,mM)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Xg(n,mM))}removeNode(n,e,i,r){if(Iw(e)){const o=n?this._fetchNamespace(n):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(n,e,!1,r),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==n&&s.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(n,e,i,r,o){this.collectedLeaveElements.push(e),e[zc]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,e,i,r,o){return Iw(e)?this._fetchNamespace(n).listen(e,i,r,o):()=>{}}_buildInstruction(n,e,i,r,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,e,o)}destroyInnerAnimations(n){let e=this.driver.query(n,_w,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,rM,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return wf(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[zc];if(e&&e.setForRemoval){if(n[zc]=M7,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(mM)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?wf(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw function rke(t){return new Ot(3402,!1)}()}_flushAnimations(n,e){const i=new Ew,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(Z=>{u.add(Z);const H=this.driver.query(Z,".ng-animate-queued",!0);for(let he=0;he{const he=iM+m++;p.set(H,he),Z.forEach(E=>Uc(E,he))});const g=[],v=new Set,y=new Set;for(let Z=0;Zv.add(E)):y.add(H))}const _=new Map,C=F7(h,Array.from(v));C.forEach((Z,H)=>{const he=yw+m++;_.set(H,he),Z.forEach(E=>Uc(E,he))}),n.push(()=>{f.forEach((Z,H)=>{const he=p.get(H);Z.forEach(E=>Xg(E,he))}),C.forEach((Z,H)=>{const he=_.get(H);Z.forEach(E=>Xg(E,he))}),g.forEach(Z=>{this.processLeaveNode(Z)})});const S=[],M=[];for(let Z=this._namespaceList.length-1;Z>=0;Z--)this._namespaceList[Z].drainQueuedTransitions(e).forEach(he=>{const E=he.player,N=he.element;if(S.push(E),this.collectedEnterElements.length){const xe=N[zc];if(xe&&xe.setForMove){if(xe.previousTriggersValues&&xe.previousTriggersValues.has(he.triggerName)){const tt=xe.previousTriggersValues.get(he.triggerName),ze=this.statesByElement.get(he.element);if(ze&&ze.has(he.triggerName)){const ot=ze.get(he.triggerName);ot.value=tt,ze.set(he.triggerName,ot)}}return void E.destroy()}}const F=!d||!this.driver.containsElement(d,N),Y=_.get(N),V=p.get(N),oe=this._buildInstruction(he,i,V,Y,F);if(oe.errors&&oe.errors.length)return void M.push(oe);if(F)return E.onStart(()=>Gp(N,oe.fromStyles)),E.onDestroy(()=>Rd(N,oe.toStyles)),void r.push(E);if(he.isFallbackTransition)return E.onStart(()=>Gp(N,oe.fromStyles)),E.onDestroy(()=>Rd(N,oe.toStyles)),void r.push(E);const fe=[];oe.timelines.forEach(xe=>{xe.stretchStartingKeyframe=!0,this.disabledNodes.has(xe.element)||fe.push(xe)}),oe.timelines=fe,i.append(N,oe.timelines),s.push({instruction:oe,player:E,element:N}),oe.queriedElements.forEach(xe=>fc(a,xe,[]).push(E)),oe.preStyleProps.forEach((xe,tt)=>{if(xe.size){let ze=l.get(tt);ze||l.set(tt,ze=new Set),xe.forEach((ot,B)=>ze.add(B))}}),oe.postStyleProps.forEach((xe,tt)=>{let ze=c.get(tt);ze||c.set(tt,ze=new Set),xe.forEach((ot,B)=>ze.add(B))})});if(M.length){const Z=[];M.forEach(H=>{Z.push(function oke(t,n){return new Ot(3505,!1)}())}),S.forEach(H=>H.destroy()),this.reportError(Z)}const $=new Map,G=new Map;s.forEach(Z=>{const H=Z.element;i.has(H)&&(G.set(H,H),this._beforeAnimationBuild(Z.player.namespaceId,Z.instruction,$))}),r.forEach(Z=>{const H=Z.element;this._getPreviousPlayers(H,!1,Z.namespaceId,Z.triggerName,null).forEach(E=>{fc($,H,[]).push(E),E.destroy()})});const R=g.filter(Z=>j7(Z,l,c)),z=new Map;N7(z,this.driver,y,c,$h).forEach(Z=>{j7(Z,l,c)&&R.push(Z)});const q=new Map;f.forEach((Z,H)=>{N7(q,this.driver,new Set(Z),l,YA)}),R.forEach(Z=>{const H=z.get(Z),he=q.get(Z);z.set(Z,new Map([...Array.from(H?.entries()??[]),...Array.from(he?.entries()??[])]))});const re=[],L=[],X={};s.forEach(Z=>{const{element:H,player:he,instruction:E}=Z;if(i.has(H)){if(u.has(H))return he.onDestroy(()=>Rd(H,E.toStyles)),he.disabled=!0,he.overrideTotalTime(E.totalTime),void r.push(he);let N=X;if(G.size>1){let Y=H;const V=[];for(;Y=Y.parentNode;){const oe=G.get(Y);if(oe){N=oe;break}V.push(Y)}V.forEach(oe=>G.set(oe,N))}const F=this._buildAnimation(he.namespaceId,E,$,o,q,z);if(he.setRealPlayer(F),N===X)re.push(he);else{const Y=this.playersByElement.get(N);Y&&Y.length&&(he.parentPlayer=wf(Y)),r.push(he)}}else Gp(H,E.fromStyles),he.onDestroy(()=>Rd(H,E.toStyles)),L.push(he),u.has(H)&&r.push(he)}),L.forEach(Z=>{const H=o.get(Z.element);if(H&&H.length){const he=wf(H);Z.setRealPlayer(he)}}),r.forEach(Z=>{Z.parentPlayer?Z.syncPlayerEvents(Z.parentPlayer):Z.destroy()});for(let Z=0;Z!F.destroyed);N.length?lSe(this,H,N):this.processLeaveNode(H)}return g.length=0,re.forEach(Z=>{this.players.push(Z),Z.onDone(()=>{Z.destroy();const H=this.players.indexOf(Z);this.players.splice(H,1)}),Z.play()}),re}elementContainsData(n,e){let i=!1;const r=e[zc];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(n).elementContainsData(e)||i}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,r,o){let s=[];if(e){const a=this.playersByQueriedElement.get(n);a&&(s=a)}else{const a=this.playersByElement.get(n);if(a){const l=!o||o==Y1;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(n,e,i){const o=e.element,s=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==o,d=fc(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}Gp(o,e.fromStyles)}_buildAnimation(n,e,i,r,o,s){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(p=>{const m=p.element;u.add(m);const g=m[zc];if(g&&g.removedBeforeQueried)return new G1(p.duration,p.delay);const v=m!==l,y=function cSe(t){const n=[];return O7(t,n),n}((i.get(m)||tSe).map($=>$.getRealPlayer())).filter($=>!!$.element&&$.element===m),_=o.get(m),C=s.get(m),S=s7(0,this._normalizer,0,p.keyframes,_,C),M=this._buildPlayer(p,S,y);if(p.subTimeline&&r&&d.add(m),v){const $=new yM(n,a,m);$.setRealPlayer(M),c.push($)}return M});c.forEach(p=>{fc(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function oSe(t,n,e){let i=t.get(n);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>Uc(p,m7));const f=wf(h);return f.onDestroy(()=>{u.forEach(p=>Xg(p,m7)),Rd(l,e.toStyles)}),d.forEach(p=>{fc(r,p,[]).push(f)}),f}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new G1(n.duration,n.delay)}}class yM{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new G1,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>KA(n,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){fc(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function Iw(t){return t&&1===t.nodeType}function I7(t,n){const e=t.style.display;return t.style.display=n??"none",e}function N7(t,n,e,i,r){const o=[];e.forEach(l=>o.push(I7(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=n.computeStyle(c,d,r);u.set(d,h),(!h||0==h.length)&&(c[zc]=nSe,s.push(c))}),t.set(c,u)});let a=0;return e.forEach(l=>I7(l,o[a++])),s}function F7(t,n){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==n.length)return e;const i=1,r=new Set(n),o=new Map;function s(a){if(!a)return i;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?i:s(c),o.set(a,l),l}return n.forEach(a=>{const l=s(a);l!==i&&e.get(l).push(a)}),e}function Uc(t,n){t.classList?.add(n)}function Xg(t,n){t.classList?.remove(n)}function lSe(t,n,e){wf(e).onDone(()=>t.processLeaveNode(n))}function O7(t,n){for(let e=0;er.add(o)):n.set(t,i),e.delete(t),!0}class Nw{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new rSe(n,e,i),this._timelineEngine=new Jke(n,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(n,e,i,r,o){const s=n+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],c=[],u=lM(this._driver,o,l,c);if(l.length)throw function X2e(t,n){return new Ot(3404,!1)}();a=function Wke(t,n,e){return new qke(t,n,e)}(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,r){this._transitionEngine.insertNode(n,e,i,r)}onRemove(n,e,i,r){this._transitionEngine.removeNode(n,e,r||!1,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,r){if("@"==i.charAt(0)){const[o,s]=a7(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(n,e,i,r)}listen(n,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=a7(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(n,e,i,r,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let hSe=(()=>{class t{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=t.initialStylesByElement.get(e);o||t.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Rd(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Rd(this._element,this._initialStyles),this._endStyles&&(Rd(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Gp(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Gp(this._element,this._endStyles),this._endStyles=null),Rd(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function bM(t){let n=null;return t.forEach((e,i)=>{(function fSe(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class P7{constructor(n,e,i,r){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&n.set(r,this._finished?i:x7(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class pSe{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return d7(n,e)}getParentElement(n){return tM(n)}query(n,e,i){return h7(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}animate(n,e,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,u=s.filter(f=>f instanceof P7);(function yke(t,n){return 0===t||0===n})(i,r)&&u.forEach(f=>{f.currentSnapshot.forEach((p,m)=>c.set(m,p))});let d=function pke(t){return t.length?t[0]instanceof Map?t:t.map(n=>g7(n)):[]}(e).map(f=>Cf(f));d=function bke(t,n,e){if(e.size&&n.length){let i=n[0],r=[];if(e.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,x7(t,a)))}}return n}(n,d,c);const h=function dSe(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=bM(n[0]),n.length>1&&(i=bM(n[n.length-1]))):n instanceof Map&&(e=bM(n)),e||i?new hSe(t,e,i):null}(n,d);return new P7(n,d,l,h)}}let mSe=(()=>{class t extends t7{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:yu.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?n7(e):e;return L7(this._renderer,null,i,"register",[r]),new gSe(i,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(ct(Lp),ct(Ir))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();class gSe extends D2e{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new vSe(this._id,n,e||{},this._renderer)}}class vSe{constructor(n,e,i,r){this.id=n,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return L7(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function L7(t,n,e,i,r){return t.setProperty(n,`@@${e}:${i}`,r)}const R7="@.disabled";let ySe=(()=>{class t{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(o);return u||(u=new $7("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,u)),u}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,e,u.name,u)};return i.data.animation.forEach(l),new bSe(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(ct(Lp),ct(Nw),ct(Wi))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();class $7{constructor(n,e,i,r){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=r,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,r=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,r)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,r){this.delegate.setAttribute(n,e,i,r)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,r){this.delegate.setStyle(n,e,i,r)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==R7?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class bSe extends $7{constructor(n,e,i,r,o){super(e,i,r,o),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==R7?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const r=function _Se(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function xSe(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,e,i)}}let wSe=(()=>{class t extends Nw{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(ct(Ir),ct(nM),ct(fM),ct(Au))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const B7=[{provide:t7,useClass:mSe},{provide:fM,useFactory:function CSe(){return new Hke}},{provide:Nw,useClass:wSe},{provide:Lp,useFactory:function kSe(t,n,e){return new ySe(t,n,e)},deps:[vw,Nw,Wi]}],_M=[{provide:nM,useFactory:()=>new pSe},{provide:C$,useValue:"BrowserAnimations"},...B7],xM=[{provide:nM,useClass:f7},{provide:C$,useValue:"NoopAnimations"},...B7];let SSe=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?xM:_M}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({providers:_M,imports:[qA]}),t})(),DSe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({providers:xM,imports:[qA]}),t})();function $n(...t){let n=t[t.length-1];return Sa(n)?(t.pop(),Oc(t,n)):st(t)}class Hs extends tr{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return e&&!e.closed&&n.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Xr;return this._value}next(n){super.next(this._value=n)}}const Ow=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();class wM extends O{notifyNext(n,e,i,r,o){this.destination.next(e)}notifyError(n,e){this.destination.error(n)}notifyComplete(n){this.destination.complete()}}class TSe extends O{constructor(n,e,i){super(),this.parent=n,this.outerValue=e,this.outerIndex=i,this.index=0}_next(n){this.parent.notifyNext(this.outerValue,n,this.outerIndex,this.index++,this)}_error(n){this.parent.notifyError(n,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function CM(t,n,e,i,r=new TSe(t,e,i)){if(!r.closed)return n instanceof rn?n.subscribe(r):nc(n)(r)}const V7={};function jw(...t){let n,e;return Sa(t[t.length-1])&&(e=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&et(t[0])&&(t=t[0]),st(t,e).lift(new ESe(n))}class ESe{constructor(n){this.resultSelector=n}call(n,e){return e.subscribe(new ASe(n,this.resultSelector))}}class ASe extends wM{constructor(n,e){super(n),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(n){this.values.push(V7),this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;it.complete());function Lw(t){return t?function ISe(t){return new rn(n=>t.schedule(()=>n.complete()))}(t):Vh}function H7(t){return new rn(n=>{let e;try{e=t()}catch(r){return void n.error(r)}return(e?co(e):Lw()).subscribe(n)})}function qp(t,n){return new rn(n?e=>n.schedule(NSe,0,{error:t,subscriber:e}):e=>e.error(t))}function NSe({error:t,subscriber:n}){n.error(t)}function zl(t,n){return"function"==typeof n?e=>e.pipe(zl((i,r)=>co(t(i,r)).pipe(yn((o,s)=>n(i,o,r,s))))):e=>e.lift(new FSe(t))}class FSe{constructor(n){this.project=n}call(n,e){return e.subscribe(new OSe(n,this.project))}}class OSe extends W{constructor(n,e){super(n),this.project=e,this.index=0}_next(n){let e;const i=this.index++;try{e=this.project(n,i)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(n){const e=this.innerSubscription;e&&e.unsubscribe();const i=new ml(this),r=this.destination;r.add(i),this.innerSubscription=Fe(n,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:n}=this;(!n||n.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(n){this.destination.next(n)}}const z7=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function Sl(t){return n=>0===t?Lw():n.lift(new jSe(t))}class jSe{constructor(n){if(this.total=n,this.total<0)throw new z7}call(n,e){return e.subscribe(new PSe(n,this.total))}}class PSe extends O{constructor(n,e){super(n),this.total=e,this.count=0}_next(n){const e=this.total,i=++this.count;i<=e&&(this.destination.next(n),i===e&&(this.destination.complete(),this.unsubscribe()))}}function ns(t,n){return function(i){return i.lift(new LSe(t,n))}}class LSe{constructor(n,e){this.predicate=n,this.thisArg=e}call(n,e){return e.subscribe(new RSe(n,this.predicate,this.thisArg))}}class RSe extends O{constructor(n,e,i){super(n),this.predicate=e,this.thisArg=i,this.count=0}_next(n){let e;try{e=this.predicate.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(n)}}function Rw(t=null){return n=>n.lift(new $Se(t))}class $Se{constructor(n){this.defaultValue=n}call(n,e){return e.subscribe(new BSe(n,this.defaultValue))}}class BSe extends O{constructor(n,e){super(n),this.defaultValue=e,this.isEmpty=!0}_next(n){this.isEmpty=!1,this.destination.next(n)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function U7(t=zSe){return n=>n.lift(new VSe(t))}class VSe{constructor(n){this.errorFactory=n}call(n,e){return e.subscribe(new HSe(n,this.errorFactory))}}class HSe extends O{constructor(n,e){super(n),this.errorFactory=e,this.hasValue=!1}_next(n){this.hasValue=!0,this.destination.next(n)}_complete(){if(this.hasValue)return this.destination.complete();{let n;try{n=this.errorFactory()}catch(e){n=e}this.destination.error(n)}}}function zSe(){return new Ow}function kf(t,n){const e=arguments.length>=2;return i=>i.pipe(t?ns((r,o)=>t(r,o,i)):jt,Sl(1),e?Rw(n):U7(()=>new Ow))}function Sf(t,n){return nt(t,n,1)}function Hh(){}function is(t,n,e){return function(r){return r.lift(new USe(t,n,e))}}class USe{constructor(n,e,i){this.nextOrObserver=n,this.error=e,this.complete=i}call(n,e){return e.subscribe(new GSe(n,this.nextOrObserver,this.error,this.complete))}}class GSe extends O{constructor(n,e,i,r){super(n),this._tapNext=Hh,this._tapError=Hh,this._tapComplete=Hh,this._tapError=i||Hh,this._tapComplete=r||Hh,rt(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Hh,this._tapError=e.error||Hh,this._tapComplete=e.complete||Hh)}_next(n){try{this._tapNext.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.next(n)}_error(n){try{this._tapError.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.error(n)}_complete(){try{this._tapComplete.call(this._context)}catch(n){return void this.destination.error(n)}return this.destination.complete()}}function Ul(t){return function(e){const i=new WSe(t),r=e.lift(i);return i.caught=r}}class WSe{constructor(n){this.selector=n}call(n,e){return e.subscribe(new qSe(n,this.selector,this.caught))}}class qSe extends W{constructor(n,e,i){super(n),this.selector=e,this.caught=i}error(n){if(!this.isStopped){let e;try{e=this.selector(n,this.caught)}catch(o){return void super.error(o)}this._unsubscribeAndRecycle();const i=new ml(this);this.add(i);const r=Fe(e,i);r!==i&&this.add(r)}}}function G7(t,n){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new XSe(t,n,e))}}class XSe{constructor(n,e,i=!1){this.accumulator=n,this.seed=e,this.hasSeed=i}call(n,e){return e.subscribe(new YSe(n,this.accumulator,this.seed,this.hasSeed))}}class YSe extends O{constructor(n,e,i,r){super(n),this.accumulator=e,this._seed=i,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(n){this.hasSeed=!0,this._seed=n}_next(n){if(this.hasSeed)return this._tryNext(n);this.seed=n,this.destination.next(n)}_tryNext(n){const e=this.index++;let i;try{i=this.accumulator(this.seed,n,e)}catch(r){this.destination.error(r)}this.seed=i,this.destination.next(i)}}function kM(t){return function(e){return 0===t?Lw():e.lift(new JSe(t))}}class JSe{constructor(n){if(this.total=n,this.total<0)throw new z7}call(n,e){return e.subscribe(new KSe(n,this.total))}}class KSe extends O{constructor(n,e){super(n),this.total=e,this.ring=new Array,this.count=0}_next(n){const e=this.ring,i=this.total,r=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,r=this.ring;for(let o=0;o=2;return i=>i.pipe(t?ns((r,o)=>t(r,o,i)):jt,kM(1),e?Rw(n):U7(()=>new Ow))}class ZSe{constructor(n,e){this.predicate=n,this.inclusive=e}call(n,e){return e.subscribe(new eDe(n,this.predicate,this.inclusive))}}class eDe extends O{constructor(n,e,i){super(n),this.predicate=e,this.inclusive=i,this.index=0}_next(n){const e=this.destination;let i;try{i=this.predicate(n,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(n,i)}nextOrComplete(n,e){const i=this.destination;Boolean(e)?i.next(n):(this.inclusive&&i.next(n),i.complete())}}class nDe{constructor(n){this.value=n}call(n,e){return e.subscribe(new iDe(n,this.value))}}class iDe extends O{constructor(n,e){super(n),this.value=e}_next(n){this.destination.next(this.value)}}function SM(t){return n=>n.lift(new rDe(t))}class rDe{constructor(n){this.callback=n}call(n,e){return e.subscribe(new oDe(n,this.callback))}}class oDe extends O{constructor(n,e){super(n),this.add(new ue(e))}}const zi="primary",K1=Symbol("RouteTitle");class sDe{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Yg(t){return new sDe(t)}function aDe(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.lengthi[o]===r)}return t===n}function X7(t){return Array.prototype.concat.apply([],t)}function Y7(t){return t.length>0?t[t.length-1]:null}function Na(t,n){for(const e in t)t.hasOwnProperty(e)&&n(t[e],e)}function Df(t){return OE(t)?t:S1(t)?co(Promise.resolve(t)):$n(t)}const $w=!1,cDe={exact:function Q7(t,n,e){if(!Xp(t.segments,n.segments)||!Bw(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!Q7(t.children[i],n.children[i],e))return!1;return!0},subset:Z7},J7={exact:function uDe(t,n){return $d(t,n)},subset:function dDe(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>q7(t[e],n[e]))},ignored:()=>!0};function K7(t,n,e){return cDe[e.paths](t.root,n.root,e.matrixParams)&&J7[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function Z7(t,n,e){return e9(t,n,n.segments,e)}function e9(t,n,e,i){if(t.segments.length>e.length){const r=t.segments.slice(0,e.length);return!(!Xp(r,e)||n.hasChildren()||!Bw(r,e,i))}if(t.segments.length===e.length){if(!Xp(t.segments,e)||!Bw(t.segments,e,i))return!1;for(const r in n.children)if(!t.children[r]||!Z7(t.children[r],n.children[r],i))return!1;return!0}{const r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!!(Xp(t.segments,r)&&Bw(t.segments,r,i)&&t.children[zi])&&e9(t.children[zi],n,o,i)}}function Bw(t,n,e){return n.every((i,r)=>J7[e](t[r].parameters,i.parameters))}class Tf{constructor(n=new fr([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Yg(this.queryParams)),this._queryParamMap}toString(){return pDe.serialize(this)}}class fr{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Na(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Vw(this)}}class Q1{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Yg(this.parameters)),this._parameterMap}toString(){return i9(this)}}function Xp(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let Z1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return new DM},providedIn:"root"}),t})();class DM{parse(n){const e=new CDe(n);return new Tf(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${ey(n.root,!0)}`,i=function vDe(t){const n=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(r=>`${Hw(e)}=${Hw(r)}`).join("&"):`${Hw(e)}=${Hw(i)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams),r="string"==typeof n.fragment?`#${function mDe(t){return encodeURI(t)}(n.fragment)}`:"";return`${e}${i}${r}`}}const pDe=new DM;function Vw(t){return t.segments.map(n=>i9(n)).join("/")}function ey(t,n){if(!t.hasChildren())return Vw(t);if(n){const e=t.children[zi]?ey(t.children[zi],!1):"",i=[];return Na(t.children,(r,o)=>{o!==zi&&i.push(`${o}:${ey(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function fDe(t,n){let e=[];return Na(t.children,(i,r)=>{r===zi&&(e=e.concat(n(i,r)))}),Na(t.children,(i,r)=>{r!==zi&&(e=e.concat(n(i,r)))}),e}(t,(i,r)=>r===zi?[ey(t.children[zi],!1)]:[`${r}:${ey(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[zi]?`${Vw(t)}/${e[0]}`:`${Vw(t)}/(${e.join("//")})`}}function t9(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Hw(t){return t9(t).replace(/%3B/gi,";")}function TM(t){return t9(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function zw(t){return decodeURIComponent(t)}function n9(t){return zw(t.replace(/\+/g,"%20"))}function i9(t){return`${TM(t.path)}${function gDe(t){return Object.keys(t).map(n=>`;${TM(n)}=${TM(t[n])}`).join("")}(t.parameters)}`}const yDe=/^[^\/()?;=#]+/;function Uw(t){const n=t.match(yDe);return n?n[0]:""}const bDe=/^[^=?&#]+/,xDe=/^[^&#]+/;class CDe{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new fr([],{}):new fr([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[zi]=new fr(n,e)),i}parseSegment(){const n=Uw(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new Ot(4009,$w);return this.capture(n),new Q1(zw(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=Uw(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=Uw(this.remaining);r&&(i=r,this.capture(i))}n[zw(e)]=zw(i)}parseQueryParam(n){const e=function _De(t){const n=t.match(bDe);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function wDe(t){const n=t.match(xDe);return n?n[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=n9(e),o=n9(i);if(n.hasOwnProperty(r)){let s=n[r];Array.isArray(s)||(s=[s],n[r]=s),s.push(o)}else n[r]=o}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Uw(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new Ot(4010,$w);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=zi);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[zi]:new fr([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new Ot(4011,$w)}}function EM(t){return t.segments.length>0?new fr([],{[zi]:t}):t}function Gw(t){const n={};for(const i of Object.keys(t.children)){const o=Gw(t.children[i]);(o.segments.length>0||o.hasChildren())&&(n[i]=o)}return function kDe(t){if(1===t.numberOfChildren&&t.children[zi]){const n=t.children[zi];return new fr(t.segments.concat(n.segments),n.children)}return t}(new fr(t.segments,n))}function Yp(t){return t instanceof Tf}const AM=!1;function SDe(t,n,e,i,r){if(0===e.length)return Jg(n.root,n.root,n.root,i,r);const o=function l9(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new a9(!0,0,t);let n=0,e=!1;const i=t.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Na(o.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?n++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new a9(e,n,i)}(e);return o.toRoot()?Jg(n.root,n.root,new fr([],{}),i,r):function s(l){const c=function TDe(t,n,e,i){if(t.isAbsolute)return new Kg(n.root,!0,0);if(-1===i)return new Kg(e,e===n.root,0);return function c9(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new Ot(4005,AM&&"Invalid number of '../'");r=i.segments.length}return new Kg(i,!1,r-o)}(e,i+(ty(t.commands[0])?0:1),t.numberOfDoubleDots)}(o,n,t.snapshot?._urlSegment,l),u=c.processChildren?Qg(c.segmentGroup,c.index,o.commands):MM(c.segmentGroup,c.index,o.commands);return Jg(n.root,c.segmentGroup,u,i,r)}(t.snapshot?._lastPathIndex)}function ty(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function ny(t){return"object"==typeof t&&null!=t&&t.outlets}function Jg(t,n,e,i,r){let s,o={};i&&Na(i,(l,c)=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=t===n?e:s9(t,n,e);const a=EM(Gw(s));return new Tf(a,o,r)}function s9(t,n,e){const i={};return Na(t.children,(r,o)=>{i[o]=r===n?e:s9(r,n,e)}),new fr(t.segments,i)}class a9{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&ty(i[0]))throw new Ot(4003,AM&&"Root segment cannot have matrix parameters");const r=i.find(ny);if(r&&r!==Y7(i))throw new Ot(4004,AM&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Kg{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function MM(t,n,e){if(t||(t=new fr([],{})),0===t.segments.length&&t.hasChildren())return Qg(t,n,e);const i=function ADe(t,n,e){let i=0,r=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const s=t.segments[r],a=e[i];if(ny(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!d9(l,c,s))return o;i+=2}else{if(!d9(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=MM(t.children[s],n,o))}),Na(t.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new fr(t.segments,r))}}function IM(t,n,e){const i=t.segments.slice(0,n);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(n[i]=IM(new fr([],{}),0,e))}),n}function u9(t){const n={};return Na(t,(e,i)=>n[i]=`${e}`),n}function d9(t,n,e){return t==e.path&&$d(n,e.parameters)}const iy="imperative";class Bd{constructor(n,e){this.id=n,this.url=e}}class Ww extends Bd{constructor(n,e,i="imperative",r=null){super(n,e),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class zh extends Bd{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ry extends Bd{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class qw extends Bd{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=16}}class Xw extends Bd{constructor(n,e,i,r){super(n,e),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class IDe extends Bd{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class NDe extends Bd{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class FDe extends Bd{constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ODe extends Bd{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class jDe extends Bd{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class PDe{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class LDe{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class RDe{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class $De{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class BDe{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class VDe{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class h9{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let UDe=(()=>{class t{createUrlTree(e,i,r,o,s,a){return SDe(e||i.root,r,o,s,a)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),WDe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(n){return UDe.\u0275fac(n)},providedIn:"root"}),t})();class f9{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=NM(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=NM(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=FM(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return FM(n,this._root).map(e=>e.value)}}function NM(t,n){if(t===n.value)return n;for(const e of n.children){const i=NM(t,e);if(i)return i}return null}function FM(t,n){if(t===n.value)return[n];for(const e of n.children){const i=FM(t,e);if(i.length)return i.unshift(n),i}return[]}class Uh{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function Zg(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class p9 extends f9{constructor(n,e){super(n),this.snapshot=e,OM(this,n)}toString(){return this.snapshot.toString()}}function m9(t,n){const e=function qDe(t,n){const s=new Yw([],{},{},"",{},zi,n,null,t.root,-1,{});return new v9("",new Uh(s,[]))}(t,n),i=new Hs([new Q1("",{})]),r=new Hs({}),o=new Hs({}),s=new Hs({}),a=new Hs(""),l=new Rr(i,r,s,a,o,zi,n,e.root);return l.snapshot=e.root,new p9(new Uh(l,[]),e)}class Rr{constructor(n,e,i,r,o,s,a,l){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.pipe(yn(c=>c[K1]))??$n(void 0),this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(yn(n=>Yg(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(yn(n=>Yg(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function g9(t,n="emptyOnly"){const e=t.pathFromRoot;let i=0;if("always"!==n)for(i=e.length-1;i>=1;){const r=e[i],o=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function XDe(t){return t.reduce((n,e)=>({params:{...n.params,...e.params},data:{...n.data,...e.data},resolve:{...e.data,...n.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(i))}class Yw{get title(){return this.data?.[K1]}constructor(n,e,i,r,o,s,a,l,c,u,d){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Yg(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Yg(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class v9 extends f9{constructor(n,e){super(e),this.url=n,OM(this,e)}toString(){return y9(this._root)}}function OM(t,n){n.value._routerState=t,n.children.forEach(e=>OM(t,e))}function y9(t){const n=t.children.length>0?` { ${t.children.map(y9).join(", ")} } `:"";return`${t.value}${n}`}function jM(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,$d(n.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),n.fragment!==e.fragment&&t.fragment.next(e.fragment),$d(n.params,e.params)||t.params.next(e.params),function lDe(t,n){if(t.length!==n.length)return!1;for(let e=0;e$d(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||PM(t.parent,n.parent))}function oy(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const r=function JDe(t,n,e){return n.children.map(i=>{for(const r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return oy(t,i,r);return oy(t,i)})}(t,n,e);return new Uh(i,r)}{if(t.shouldAttach(n.value)){const o=t.retrieve(n.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>oy(t,a)),s}}const i=function KDe(t){return new Rr(new Hs(t.url),new Hs(t.params),new Hs(t.queryParams),new Hs(t.fragment),new Hs(t.data),t.outlet,t.component,t)}(n.value),r=n.children.map(o=>oy(t,o));return new Uh(i,r)}}const LM="ngNavigationCancelingError";function b9(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=Yp(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=_9(!1,0,n);return r.url=e,r.navigationBehaviorOptions=i,r}function _9(t,n,e){const i=new Error("NavigationCancelingError: "+(t||""));return i[LM]=!0,i.cancellationCode=n,e&&(i.url=e),i}function x9(t){return w9(t)&&Yp(t.url)}function w9(t){return t&&t[LM]}class QDe{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new sy,this.attachRef=null}}let sy=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new QDe,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Jw=!1;let Jp=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=zi,this.activateEvents=new Ke,this.deactivateEvents=new Ke,this.attachEvents=new Ke,this.detachEvents=new Ke,this.parentContexts=ar(sy),this.location=ar(nl),this.changeDetector=ar(qo),this.environmentInjector=ar(Nd)}ngOnChanges(e){if(e.name){const{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Ot(4012,Jw);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Ot(4012,Jw);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Ot(4012,Jw);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new Ot(4013,Jw);this._activatedRoute=e;const r=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new ZDe(e,a,r.injector);if(i&&function eTe(t){return!!t.resolveComponentFactory}(i)){const c=i.resolveComponentFactory(s);this.activated=r.createComponent(c,r.length,l)}else this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Zt({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Hn]}),t})();class ZDe{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===Rr?this.route:n===sy?this.childContexts:this.parent.get(n,e)}}let RM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["ng-component"]],standalone:!0,features:[L6],decls:1,vars:0,template:function(e,i){1&e&&ge(0,"router-outlet")},dependencies:[Jp],encapsulation:2}),t})();function C9(t,n){return t.providers&&!t._injector&&(t._injector=Gx(t.providers,n,`Route: ${t.path}`)),t._injector??n}function BM(t){const n=t.children&&t.children.map(BM),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==zi&&(e.component=RM),e}function Gc(t){return t.outlet||zi}function k9(t,n){const e=t.filter(i=>Gc(i)===n);return e.push(...t.filter(i=>Gc(i)!==n)),e}function ay(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class oTe{constructor(n,e,i,r){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),jM(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const r=Zg(e);n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Na(r,(o,s)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Zg(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Zg(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,e,i){const r=Zg(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new VDe(o.value.snapshot))}),n.children.length&&this.forwardEvent(new $De(n.value.snapshot))}activateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(jM(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),jM(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=ay(r.snapshot),l=a?.get($c)??null;s.attachRef=null,s.route=r,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,i)}}class S9{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class Kw{constructor(n,e){this.component=n,this.route=e}}function sTe(t,n,e){const i=t._root;return ly(i,n?n._root:null,e,[i.value])}function ev(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function cge(t){return null!==q_(t)}(t)?n.get(t):t:i}function ly(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Zg(n);return t.children.forEach(s=>{(function lTe(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function cTe(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!Xp(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Xp(t.url,n.url)||!$d(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!PM(t,n)||!$d(t.queryParams,n.queryParams);default:return!PM(t,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new S9(i)):(o.data=s.data,o._resolvedData=s._resolvedData),ly(t,n,o.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Kw(a.outlet.component,s))}else s&&cy(n,a,r),r.canActivateChecks.push(new S9(i)),ly(t,null,o.component?a?a.children:null:e,i,r)})(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),Na(o,(s,a)=>cy(s,e.getContext(a),r)),r}function cy(t,n,e){const i=Zg(t),r=t.value;Na(i,(o,s)=>{cy(o,r.component?n?n.children.getContext(s):null:n,e)}),e.canDeactivateChecks.push(new Kw(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}function uy(t){return"function"==typeof t}function VM(t){return t instanceof Ow||"EmptyError"===t?.name}const Qw=Symbol("INITIAL_VALUE");function tv(){return zl(t=>jw(t.map(n=>n.pipe(Sl(1),function J1(...t){const n=t[t.length-1];return Sa(n)?(t.pop(),e=>Pw(t,e,n)):e=>Pw(t,e)}(Qw)))).pipe(yn(n=>{for(const e of n)if(!0!==e){if(e===Qw)return Qw;if(!1===e||e instanceof Tf)return e}return!0}),ns(n=>n!==Qw),Sl(1)))}function D9(t){return function Wt(...t){return wn(t)}(is(n=>{if(Yp(n))throw b9(0,n)}),yn(n=>!0===n))}const HM={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function T9(t,n,e,i,r){const o=zM(t,n,e);return o.matched?function DTe(t,n,e,i){const r=n.canMatch;return r&&0!==r.length?$n(r.map(s=>{const a=ev(s,t);return Df(function mTe(t){return t&&uy(t.canMatch)}(a)?a.canMatch(n,e):t.runInContext(()=>a(n,e)))})).pipe(tv(),D9()):$n(!0)}(i=C9(n,i),n,e).pipe(yn(s=>!0===s?o:{...HM})):$n(o)}function zM(t,n,e){if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...HM}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(n.matcher||aDe)(e,t,n);if(!r)return{...HM};const o={};Na(r.posParams,(a,l)=>{o[l]=a.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function Zw(t,n,e,i){if(e.length>0&&function ATe(t,n,e){return e.some(i=>eC(t,n,i)&&Gc(i)!==zi)}(t,e,i)){const o=new fr(n,function ETe(t,n,e,i){const r={};r[zi]=i,i._sourceSegment=t,i._segmentIndexShift=n.length;for(const o of e)if(""===o.path&&Gc(o)!==zi){const s=new fr([],{});s._sourceSegment=t,s._segmentIndexShift=n.length,r[Gc(o)]=s}return r}(t,n,i,new fr(e,t.children)));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function MTe(t,n,e){return e.some(i=>eC(t,n,i))}(t,e,i)){const o=new fr(t.segments,function TTe(t,n,e,i,r){const o={};for(const s of i)if(eC(t,e,s)&&!r[Gc(s)]){const a=new fr([],{});a._sourceSegment=t,a._segmentIndexShift=n.length,o[Gc(s)]=a}return{...r,...o}}(t,n,e,i,t.children));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:e}}const r=new fr(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=n.length,{segmentGroup:r,slicedSegments:e}}function eC(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}function E9(t,n,e,i){return!!(Gc(t)===i||i!==zi&&eC(n,e,t))&&("**"===t.path||zM(n,t,e).matched)}function A9(t,n,e){return 0===n.length&&!t.children[e]}const tC=!1;class nC{constructor(n){this.segmentGroup=n||null}}class M9{constructor(n){this.urlTree=n}}function dy(t){return qp(new nC(t))}function I9(t){return qp(new M9(t))}function ITe(t){return qp(new Ot(4e3,tC&&`Only absolute redirects can have named outlets. redirectTo: '${t}'`))}class OTe{constructor(n,e,i,r,o){this.injector=n,this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const n=Zw(this.urlTree.root,[],[],this.config).segmentGroup,e=new fr(n.segments,n.children);return this.expandSegmentGroup(this.injector,this.config,e,zi).pipe(yn(o=>this.createUrlTree(Gw(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Ul(o=>{if(o instanceof M9)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof nC?this.noMatchError(o):o}))}match(n){return this.expandSegmentGroup(this.injector,this.config,n.root,zi).pipe(yn(r=>this.createUrlTree(Gw(r),n.queryParams,n.fragment))).pipe(Ul(r=>{throw r instanceof nC?this.noMatchError(r):r}))}noMatchError(n){return new Ot(4002,tC&&`Cannot match any routes. URL Segment: '${n.segmentGroup}'`)}createUrlTree(n,e,i){const r=EM(n);return new Tf(r,e,i)}expandSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,e,i).pipe(yn(o=>new fr([],o))):this.expandSegment(n,i,e,i.segments,r,!0)}expandChildren(n,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return co(r).pipe(Sf(o=>{const s=i.children[o],a=k9(e,o);return this.expandSegmentGroup(n,a,s,o).pipe(yn(l=>({segment:l,outlet:o})))}),G7((o,s)=>(o[s.outlet]=s.segment,o),{}),W7())}expandSegment(n,e,i,r,o,s){return co(i).pipe(Sf(a=>this.expandSegmentAgainstRoute(n,e,i,a,r,o,s).pipe(Ul(c=>{if(c instanceof nC)return $n(null);throw c}))),kf(a=>!!a),Ul((a,l)=>{if(VM(a))return A9(e,r,o)?$n(new fr([],{})):dy(e);throw a}))}expandSegmentAgainstRoute(n,e,i,r,o,s,a){return E9(r,e,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,e,r,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s):dy(e):dy(e)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?I9(o):this.lineralizeSegments(i,o).pipe(nt(s=>{const a=new fr(s,{});return this.expandSegment(n,a,e,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=zM(e,r,o);if(!a)return dy(e);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?I9(d):this.lineralizeSegments(r,d).pipe(nt(h=>this.expandSegment(n,e,i,h.concat(c),s,!1)))}matchSegmentAgainstRoute(n,e,i,r,o){return"**"===i.path?(n=C9(i,n),i.loadChildren?(i._loadedRoutes?$n({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(n,i)).pipe(yn(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new fr(r,{})))):$n(new fr(r,{}))):T9(e,i,r,n).pipe(zl(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(n=i._injector??n,i,r).pipe(nt(u=>{const d=u.injector??n,h=u.routes,{segmentGroup:f,slicedSegments:p}=Zw(e,a,l,h),m=new fr(f.segments,f.children);if(0===p.length&&m.hasChildren())return this.expandChildren(d,h,m).pipe(yn(_=>new fr(a,_)));if(0===h.length&&0===p.length)return $n(new fr(a,{}));const g=Gc(i)===o;return this.expandSegment(d,m,h,p,g?zi:o,!0).pipe(yn(y=>new fr(a.concat(y.segments),y.children)))})):dy(e)))}getChildConfig(n,e,i){return e.children?$n({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?$n({routes:e._loadedRoutes,injector:e._loadedInjector}):function STe(t,n,e,i){const r=n.canLoad;return void 0===r||0===r.length?$n(!0):$n(r.map(s=>{const a=ev(s,t);return Df(function dTe(t){return t&&uy(t.canLoad)}(a)?a.canLoad(n,e):t.runInContext(()=>a(n,e)))})).pipe(tv(),D9())}(n,e,i).pipe(nt(r=>r?this.configLoader.loadChildren(n,e).pipe(is(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function NTe(t){return qp(_9(tC&&`Cannot load children because the guard of the route "path: '${t.path}'" returned false`,3))}(e))):$n({routes:[],injector:n})}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return $n(i);if(r.numberOfChildren>1||!r.children[zi])return ITe(n.redirectTo);r=r.children[zi]}}applyRedirectCommands(n,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i)}applyRedirectCreateUrlTree(n,e,i,r){const o=this.createSegmentGroup(n,e.root,i,r);return new Tf(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return Na(n,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[o]=e[a]}else i[o]=r}),i}createSegmentGroup(n,e,i,r){const o=this.createSegments(n,e.segments,i,r);let s={};return Na(e.children,(a,l)=>{s[l]=this.createSegmentGroup(n,a,i,r)}),new fr(o,s)}createSegments(n,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){const r=i[e.path.substring(1)];if(!r)throw new Ot(4001,tC&&`Cannot redirect to '${n}'. Cannot find '${e.path}'.`);return r}findOrReturn(n,e){let i=0;for(const r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}}class PTe{}class $Te{constructor(n,e,i,r,o,s,a){this.injector=n,this.rootComponentType=e,this.config=i,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a}recognize(){const n=Zw(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,zi).pipe(yn(e=>{if(null===e)return null;const i=new Yw([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},zi,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Uh(i,e),o=new v9(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(n){const e=n.value,i=g9(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),n.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,r)}processChildren(n,e,i){return co(Object.keys(i.children)).pipe(Sf(r=>{const o=i.children[r],s=k9(e,r);return this.processSegmentGroup(n,s,o,r)}),G7((r,o)=>r&&o?(r.push(...o),r):null),function QSe(t,n=!1){return e=>e.lift(new ZSe(t,n))}(r=>null!==r),Rw(null),W7(),yn(r=>{if(null===r)return null;const o=F9(r);return function BTe(t){t.sort((n,e)=>n.value.outlet===zi?-1:e.value.outlet===zi?1:n.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(n,e,i,r,o){return co(e).pipe(Sf(s=>this.processSegmentAgainstRoute(s._injector??n,s,i,r,o)),kf(s=>!!s),Ul(s=>{if(VM(s))return A9(i,r,o)?$n([]):$n(null);throw s}))}processSegmentAgainstRoute(n,e,i,r,o){if(e.redirectTo||!E9(e,i,r,o))return $n(null);let s;if("**"===e.path){const a=r.length>0?Y7(r).parameters:{},l=j9(i)+r.length;s=$n({snapshot:new Yw(r,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,P9(e),Gc(e),e.component??e._loadedComponent??null,e,O9(i),l,L9(e)),consumedSegments:[],remainingSegments:[]})}else s=T9(i,e,r,n).pipe(yn(({matched:a,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!a)return null;const d=j9(i)+l.length;return{snapshot:new Yw(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,P9(e),Gc(e),e.component??e._loadedComponent??null,e,O9(i),d,L9(e)),consumedSegments:l,remainingSegments:c}}));return s.pipe(zl(a=>{if(null===a)return $n(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=a;n=e._injector??n;const d=e._loadedInjector??n,h=function VTe(t){return t.children?t.children:t.loadChildren?t._loadedRoutes:[]}(e),{segmentGroup:f,slicedSegments:p}=Zw(i,c,u,h.filter(g=>void 0===g.redirectTo));if(0===p.length&&f.hasChildren())return this.processChildren(d,h,f).pipe(yn(g=>null===g?null:[new Uh(l,g)]));if(0===h.length&&0===p.length)return $n([new Uh(l,[])]);const m=Gc(e)===o;return this.processSegment(d,h,f,p,m?zi:o).pipe(yn(g=>null===g?null:[new Uh(l,g)]))}))}}function HTe(t){const n=t.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function F9(t){const n=[],e=new Set;for(const i of t){if(!HTe(i)){n.push(i);continue}const r=n.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):n.push(i)}for(const i of e){const r=F9(i.children);n.push(new Uh(i.value,r))}return n.filter(i=>!e.has(i))}function O9(t){let n=t;for(;n._sourceSegment;)n=n._sourceSegment;return n}function j9(t){let n=t,e=n._segmentIndexShift??0;for(;n._sourceSegment;)n=n._sourceSegment,e+=n._segmentIndexShift??0;return e-1}function P9(t){return t.data||{}}function L9(t){return t.resolve||{}}function R9(t){return"string"==typeof t.title||null===t.title}function UM(t){return zl(n=>{const e=t(n);return e?co(e).pipe(yn(()=>n)):$n(n)})}const nv=new zn("ROUTES");let GM=(()=>{class t{constructor(e,i){this.injector=e,this.compiler=i,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return $n(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=Df(e.loadComponent()).pipe(yn(B9),is(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),SM(()=>{this.componentLoaders.delete(e)})),r=new pe(i,()=>new tr).pipe(Ut());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return $n({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(yn(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(e).injector,c=X7(l.get(nv,[],ki.Self|ki.Optional)));return{routes:c.map(BM),injector:l}}),SM(()=>{this.childrenLoaders.delete(i)})),s=new pe(o,()=>new tr).pipe(Ut());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(e){return Df(e()).pipe(yn(B9),nt(r=>r instanceof j6||Array.isArray(r)?$n(r):co(this.compiler.compileModuleAsync(r))))}}return t.\u0275fac=function(e){return new(e||t)(ct(Rs),ct(k$))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function B9(t){return function KTe(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let rC=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new tr,this.configLoader=ar(GM),this.environmentInjector=ar(Nd),this.urlSerializer=ar(Z1),this.rootContexts=ar(sy),this.navigationId=0,this.afterPreactivation=()=>$n(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new LDe(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new PDe(r))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:i})}setupNavigations(e){return this.transitions=new Hs({id:0,targetPageId:0,currentUrlTree:e.currentUrlTree,currentRawUrl:e.currentUrlTree,extractedUrl:e.urlHandlingStrategy.extract(e.currentUrlTree),urlAfterRedirects:e.urlHandlingStrategy.extract(e.currentUrlTree),rawUrl:e.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:iy,restoredState:null,currentSnapshot:e.routerState.snapshot,targetSnapshot:null,currentRouterState:e.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ns(i=>0!==i.id),yn(i=>({...i,extractedUrl:e.urlHandlingStrategy.extract(i.rawUrl)})),zl(i=>{let r=!1,o=!1;return $n(i).pipe(is(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),zl(s=>{const a=e.browserUrlTree.toString(),l=!e.navigated||s.extractedUrl.toString()!==a||a!==e.currentUrlTree.toString();if(!l&&"reload"!==(s.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const u="";return this.events.next(new qw(s.id,e.serializeUrl(i.rawUrl),u,0)),e.rawUrlTree=s.rawUrl,s.resolve(null),Vh}if(e.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return V9(s.source)&&(e.browserUrlTree=s.extractedUrl),$n(s).pipe(zl(u=>{const d=this.transitions?.getValue();return this.events.next(new Ww(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),d!==this.transitions?.getValue()?Vh:Promise.resolve(u)}),function jTe(t,n,e,i){return zl(r=>function FTe(t,n,e,i,r){return new OTe(t,n,e,i,r).apply()}(t,n,e,r.extractedUrl,i).pipe(yn(o=>({...r,urlAfterRedirects:o}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,e.config),is(u=>{this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},i.urlAfterRedirects=u.urlAfterRedirects}),function UTe(t,n,e,i,r){return nt(o=>function RTe(t,n,e,i,r,o,s="emptyOnly"){return new $Te(t,n,e,i,r,s,o).recognize().pipe(zl(a=>null===a?function LTe(t){return new rn(n=>n.error(t))}(new PTe):$n(a)))}(t,n,e,o.urlAfterRedirects,i.serialize(o.urlAfterRedirects),i,r).pipe(yn(s=>({...o,targetSnapshot:s}))))}(this.environmentInjector,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),is(u=>{if(i.targetSnapshot=u.targetSnapshot,"eager"===e.urlUpdateStrategy){if(!u.extras.skipLocationChange){const h=e.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);e.setBrowserUrl(h,u)}e.browserUrlTree=u.urlAfterRedirects}const d=new IDe(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}));if(l&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){const{id:u,extractedUrl:d,source:h,restoredState:f,extras:p}=s,m=new Ww(u,this.urlSerializer.serialize(d),h,f);this.events.next(m);const g=m9(d,this.rootComponentType).snapshot;return $n(i={...s,targetSnapshot:g,urlAfterRedirects:d,extras:{...p,skipLocationChange:!1,replaceUrl:!1}})}{const u="";return this.events.next(new qw(s.id,e.serializeUrl(i.extractedUrl),u,1)),e.rawUrlTree=s.rawUrl,s.resolve(null),Vh}}),is(s=>{const a=new NDe(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),yn(s=>i={...s,guards:sTe(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function vTe(t,n){return nt(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?$n({...e,guardsResult:!0}):function yTe(t,n,e,i){return co(t).pipe(nt(r=>function kTe(t,n,e,i,r){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?$n(o.map(a=>{const l=ay(n)??r,c=ev(a,l);return Df(function pTe(t){return t&&uy(t.canDeactivate)}(c)?c.canDeactivate(t,n,e,i):l.runInContext(()=>c(t,n,e,i))).pipe(kf())})).pipe(tv()):$n(!0)}(r.component,r.route,e,n,i)),kf(r=>!0!==r,!0))}(s,i,r,t).pipe(nt(a=>a&&function uTe(t){return"boolean"==typeof t}(a)?function bTe(t,n,e,i){return co(n).pipe(Sf(r=>Pw(function xTe(t,n){return null!==t&&n&&n(new RDe(t)),$n(!0)}(r.route.parent,i),function _Te(t,n){return null!==t&&n&&n(new BDe(t)),$n(!0)}(r.route,i),function CTe(t,n,e){const i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function aTe(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(s)).filter(s=>null!==s).map(s=>H7(()=>$n(s.guards.map(l=>{const c=ay(s.node)??e,u=ev(l,c);return Df(function fTe(t){return t&&uy(t.canActivateChild)}(u)?u.canActivateChild(i,t):c.runInContext(()=>u(i,t))).pipe(kf())})).pipe(tv())));return $n(o).pipe(tv())}(t,r.path,e),function wTe(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return $n(!0);const r=i.map(o=>H7(()=>{const s=ay(n)??e,a=ev(o,s);return Df(function hTe(t){return t&&uy(t.canActivate)}(a)?a.canActivate(n,t):s.runInContext(()=>a(n,t))).pipe(kf())}));return $n(r).pipe(tv())}(t,r.route,e))),kf(r=>!0!==r,!0))}(i,o,t,n):$n(a)),yn(a=>({...e,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),is(s=>{if(i.guardsResult=s.guardsResult,Yp(s.guardsResult))throw b9(0,s.guardsResult);const a=new FDe(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),ns(s=>!!s.guardsResult||(e.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),UM(s=>{if(s.guards.canActivateChecks.length)return $n(s).pipe(is(a=>{const l=new ODe(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),zl(a=>{let l=!1;return $n(a).pipe(function GTe(t,n){return nt(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return $n(e);let o=0;return co(r).pipe(Sf(s=>function WTe(t,n,e,i){const r=t.routeConfig,o=t._resolve;return void 0!==r?.title&&!R9(r)&&(o[K1]=r.title),function qTe(t,n,e,i){const r=function XTe(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===r.length)return $n({});const o={};return co(r).pipe(nt(s=>function YTe(t,n,e,i){const r=ay(n)??i,o=ev(t,r);return Df(o.resolve?o.resolve(n,e):r.runInContext(()=>o(n,e)))}(t[s],n,e,i).pipe(kf(),is(a=>{o[s]=a}))),kM(1),function tDe(t){return n=>n.lift(new nDe(t))}(o),Ul(s=>VM(s)?Vh:qp(s)))}(o,t,n,i).pipe(yn(s=>(t._resolvedData=s,t.data=g9(t,e).resolve,r&&R9(r)&&(t.data[K1]=r.title),null)))}(s.route,i,t,n)),is(()=>o++),kM(1),nt(s=>o===r.length?$n(e):Vh))})}(e.paramsInheritanceStrategy,this.environmentInjector),is({next:()=>l=!0,complete:()=>{l||(e.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),is(a=>{const l=new jDe(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}))}),UM(s=>{const a=l=>{const c=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(l.routeConfig).pipe(is(u=>{l.component=u}),yn(()=>{})));for(const u of l.children)c.push(...a(u));return c};return jw(a(s.targetSnapshot.root)).pipe(Rw(),Sl(1))}),UM(()=>this.afterPreactivation()),yn(s=>{const a=function YDe(t,n,e){const i=oy(t,n._root,e?e._root:void 0);return new p9(i,n)}(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return i={...s,targetRouterState:a}}),is(s=>{e.currentUrlTree=s.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),e.routerState=s.targetRouterState,"deferred"===e.urlUpdateStrategy&&(s.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,s),e.browserUrlTree=s.urlAfterRedirects)}),((t,n,e)=>yn(i=>(new oTe(n,i.targetRouterState,i.currentRouterState,e).activate(t),i)))(this.rootContexts,e.routeReuseStrategy,s=>this.events.next(s)),is({next:s=>{r=!0,this.lastSuccessfulNavigation=this.currentNavigation,e.navigated=!0,this.events.next(new zh(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(e.currentUrlTree))),e.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{r=!0}}),SM(()=>{r||o||this.cancelNavigationTransition(i,"",1),this.currentNavigation?.id===i.id&&(this.currentNavigation=null)}),Ul(s=>{if(o=!0,w9(s)){x9(s)||(e.navigated=!0,e.restoreHistory(i,!0));const a=new ry(i.id,this.urlSerializer.serialize(i.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),x9(s)){const l=e.urlHandlingStrategy.merge(s.url,e.rawUrlTree),c={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy||V9(i.source)};e.scheduleNavigation(l,iy,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}else i.resolve(!1)}else{e.restoreHistory(i,!0);const a=new Xw(i.id,this.urlSerializer.serialize(i.extractedUrl),s,i.targetSnapshot??void 0);this.events.next(a);try{i.resolve(e.errorHandler(s))}catch(l){i.reject(l)}}return Vh}))}))}cancelNavigationTransition(e,i,r){const o=new ry(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),e.resolve(!1)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function V9(t){return t!==iy}let H9=(()=>{class t{buildTitle(e){let i,r=e.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===zi);return i}getResolvedTitleForRoute(e){return e.data[K1]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return ar(QTe)},providedIn:"root"}),t})(),QTe=(()=>{class t extends H9{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}}return t.\u0275fac=function(e){return new(e||t)(ct(JB))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ZTe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return ar(tEe)},providedIn:"root"}),t})();class eEe{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let tEe=(()=>{class t extends eEe{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ji(t)))(i||t)}}(),t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const oC=new zn("",{providedIn:"root",factory:()=>({})});let iEe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return ar(rEe)},providedIn:"root"}),t})(),rEe=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function oEe(t){throw t}function sEe(t,n,e){return n.parse("/")}const aEe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},lEe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let cr=(()=>{class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=ar(xxe),this.isNgZoneEnabled=!1,this.options=ar(oC,{optional:!0})||{},this.errorHandler=this.options.errorHandler||oEe,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||sEe,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=ar(iEe),this.routeReuseStrategy=ar(ZTe),this.urlCreationStrategy=ar(WDe),this.titleStrategy=ar(H9),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=X7(ar(nv,{optional:!0})??[]),this.navigationTransitions=ar(rC),this.urlSerializer=ar(Z1),this.location=ar(kA),this.isNgZoneEnabled=ar(Wi)instanceof Wi&&Wi.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Tf,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=m9(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const e=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),iy,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,i,e.state)},0)}))}navigateToSyncWithBrowser(e,i,r){const o={replaceUrl:!0},s=r?.navigationId?r:null;if(r){const l={...r};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(o.state=l)}const a=this.parseUrl(e);this.scheduleNavigation(a,i,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(e){this.config=e.map(BM),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:s;let u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...o};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=o||null}return null!==u&&(u=this.removeEmptyProps(u)),this.urlCreationStrategy.createUrlTree(r,this.routerState,this.currentUrlTree,e,u,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=Yp(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,iy,null,i)}navigate(e,i={skipLocationChange:!1}){return function cEe(t){for(let n=0;n{const o=e[r];return null!=o&&(i[r]=o),i},{})}scheduleNavigation(e,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c,u;return s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((d,h)=>{a=d,l=h}),u="computed"===this.canceledNavigationResolution?r&&r.\u0275routerPageId?r.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:u,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e),o={...i.extras.state,...this.generateNgRouterState(i.id,i.targetPageId)};this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",o):this.location.go(r,"",o)}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.getCurrentNavigation()?.finalUrl||0===r?this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Nu=(()=>{class t{constructor(e,i,r,o,s,a){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=s,this.locationStrategy=a,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new tr;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof zh&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(e){this._preserveFragment=qg(e)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(e){this._skipLocationChange=qg(e)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(e){this._replaceUrl=qg(e)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,i,r,o,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==e||i||r||o||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const e=null===this.href?null:function d5(t,n,e){return function L0e(t,n){return"src"===n&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===n&&("base"===t||"link"===t)?u5:y1}(n,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",e)}applyAttributeValue(e,i){const r=this.renderer,o=this.el.nativeElement;null!==i?r.setAttribute(o,e,i):r.removeAttribute(o,e)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return t.\u0275fac=function(e){return new(e||t)(le(cr),le(Rr),Ah("tabindex"),le(Ss),le(ti),le(zp))},t.\u0275dir=Zt({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(e,i){1&e&&ye("click",function(o){return i.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),2&e&&ht("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[Hn]}),t})(),hy=(()=>{class t{get isActive(){return this._isActive}constructor(e,i,r,o,s){this.router=e,this.element=i,this.renderer=r,this.cdr=o,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new Ke,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof zh&&this.update()})}ngAfterContentInit(){$n(this.links.changes,$n(null)).pipe(A()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=co(e).pipe(A()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){const i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(r=>!!r)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const e=this.hasActiveLinks();this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.classes.forEach(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),e&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(e))})}isLinkActive(e){const i=function uEe(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>!!r.urlTree&&e.isActive(r.urlTree,i)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}}return t.\u0275fac=function(e){return new(e||t)(le(cr),le(ti),le(Ss),le(qo),le(Nu,8))},t.\u0275dir=Zt({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(e,i,r){if(1&e&&ni(r,Nu,5),2&e){let o;cn(o=un())&&(i.links=o)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Hn]}),t})();class z9{}let dEe=(()=>{class t{constructor(e,i,r,o,s){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(ns(e=>e instanceof zh),Sf(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=Gx(o.providers,e,`Route: ${o.path}`));const s=o._injector??e,a=o._loadedInjector??s;o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent?r.push(this.preloadConfig(s,o)):(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return co(r).pipe(A())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):$n(null);const o=r.pipe(nt(s=>null===s?$n(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));return i.loadComponent&&!i._loadedComponent?co([o,this.loader.loadComponent(i)]).pipe(A()):o})}}return t.\u0275fac=function(e){return new(e||t)(ct(cr),ct(k$),ct(Nd),ct(z9),ct(GM))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const qM=new zn("");let U9=(()=>{class t{constructor(e,i,r,o,s={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Ww?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof zh&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof h9&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new h9(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return t.\u0275fac=function(e){!function V5(){throw new Error("invalid")}()},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();var mc=(()=>((mc=mc||{})[mc.COMPLETE=0]="COMPLETE",mc[mc.FAILED=1]="FAILED",mc[mc.REDIRECTING=2]="REDIRECTING",mc))();const iv=!1;function Ef(t,n){return{\u0275kind:t,\u0275providers:n}}const XM=new zn("",{providedIn:"root",factory:()=>!1});function W9(){const t=ar(Rs);return n=>{const e=t.get(Au);if(n!==e.components[0])return;const i=t.get(cr),r=t.get(q9);1===t.get(YM)&&i.initialNavigation(),t.get(X9,null,ki.Optional)?.setUpPreloading(),t.get(qM,null,ki.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.unsubscribe())}}const q9=new zn(iv?"bootstrap done indicator":"",{factory:()=>new tr}),YM=new zn(iv?"initial navigation":"",{providedIn:"root",factory:()=>1});function gEe(){let t=[];return t=iv?[{provide:Sx,multi:!0,useFactory:()=>{const n=ar(cr);return()=>n.events.subscribe(e=>{console.group?.(`Router Event: ${e.constructor.name}`),console.log(function HDe(t){if(!("type"in t))return`Unknown Router Event: ${t.constructor.name}`;switch(t.type){case 14:return`ActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state}, shouldActivate: ${t.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 2:return`NavigationCancel(id: ${t.id}, url: '${t.url}')`;case 16:return`NavigationSkipped(id: ${t.id}, url: '${t.url}')`;case 1:return`NavigationEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${t.id}, url: '${t.url}', error: ${t.error})`;case 0:return`NavigationStart(id: ${t.id}, url: '${t.url}')`;case 6:return`ResolveEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 5:return`ResolveStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 10:return`RouteConfigLoadEnd(path: ${t.route.path})`;case 9:return`RouteConfigLoadStart(path: ${t.route.path})`;case 4:return`RoutesRecognized(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 15:return`Scroll(anchor: '${t.anchor}', position: '${t.position?`${t.position[0]}, ${t.position[1]}`:null}')`}}(e)),console.log(e),console.groupEnd?.()})}}]:[],Ef(1,t)}const X9=new zn(iv?"router preloader":"");function vEe(t){return Ef(0,[{provide:X9,useExisting:dEe},{provide:z9,useExisting:t}])}const fy=!1,Y9=new zn(fy?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),yEe=[kA,{provide:Z1,useClass:DM},cr,sy,{provide:Rr,useFactory:function G9(t){return t.routerState.root},deps:[cr]},GM,fy?{provide:XM,useValue:!0}:[]];function bEe(){return new N$("Router",cr)}let J9=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[yEe,fy&&i?.enableTracing?gEe().\u0275providers:[],{provide:nv,multi:!0,useValue:e},{provide:Y9,useFactory:CEe,deps:[[cr,new u1,new d1]]},{provide:oC,useValue:i||{}},i?.useHash?{provide:zp,useClass:lwe}:{provide:zp,useClass:tB},{provide:qM,useFactory:()=>{const t=ar(_Ce),n=ar(Wi),e=ar(oC),i=ar(rC),r=ar(Z1);return e.scrollOffset&&t.setOffset(e.scrollOffset),new U9(r,i,t,n,e)}},i?.preloadingStrategy?vEe(i.preloadingStrategy).\u0275providers:[],{provide:N$,multi:!0,useFactory:bEe},i?.initialNavigation?kEe(i):[],[{provide:K9,useFactory:W9},{provide:I$,multi:!0,useExisting:K9}]]}}static forChild(e){return{ngModule:t,providers:[{provide:nv,multi:!0,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)(ct(Y9,8))},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[RM]}),t})();function CEe(t){if(fy&&t)throw new Ot(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function kEe(t){return["disabled"===t.initialNavigation?Ef(3,[{provide:Yx,multi:!0,useFactory:()=>{const n=ar(cr);return()=>{n.setUpLocationChangeListener()}}},{provide:YM,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Ef(2,[{provide:YM,useValue:0},{provide:Yx,multi:!0,deps:[Rs],useFactory:n=>{const e=n.get(swe,Promise.resolve());return()=>e.then(()=>new Promise(i=>{const r=n.get(cr),o=n.get(q9);(function hEe(t,n){t.events.pipe(ns(e=>e instanceof zh||e instanceof ry||e instanceof Xw||e instanceof qw),yn(e=>e instanceof zh||e instanceof qw?mc.COMPLETE:e instanceof ry&&(0===e.code||1===e.code)?mc.REDIRECTING:mc.FAILED),ns(e=>e!==mc.REDIRECTING),Sl(1)).subscribe(()=>{n()})})(r,()=>{i(!0)}),n.get(rC).afterPreactivation=()=>(i(!0),o.closed?$n(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const K9=new zn(fy?"Router Initializer":"");function sC(t,n){return new rn(e=>{const i=t.length;if(0===i)return void e.complete();const r=new Array(i);let o=0,s=0;for(let a=0;a{c||(c=!0,s++),r[a]=u},error:u=>e.error(u),complete:()=>{o++,(o===i||!c)&&(s===i&&e.next(n?n.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),e.complete())}}))}})}let Q9=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(le(Ss),le(ti))},t.\u0275dir=Zt({type:t}),t})(),Kp=(()=>{class t extends Q9{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ji(t)))(i||t)}}(),t.\u0275dir=Zt({type:t,features:[vi]}),t})();const ha=new zn("NgValueAccessor"),TEe={provide:ha,useExisting:Gi(()=>aC),multi:!0};let aC=(()=>{class t extends Kp{writeValue(e){this.setProperty("checked",e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ji(t)))(i||t)}}(),t.\u0275dir=Zt({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,i){1&e&&ye("change",function(o){return i.onChange(o.target.checked)})("blur",function(){return i.onTouched()})},features:[Lr([TEe]),vi]}),t})();const EEe={provide:ha,useExisting:Gi(()=>Fa),multi:!0},MEe=new zn("CompositionEventMode");let Fa=(()=>{class t extends Q9{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function AEe(){const t=jh()?jh().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return t.\u0275fac=function(e){return new(e||t)(le(Ss),le(ti),le(MEe,8))},t.\u0275dir=Zt({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&ye("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[Lr([EEe]),vi]}),t})();const IEe=!1;function Af(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function Z9(t){return null!=t&&"number"==typeof t.length}const Oa=new zn("NgValidators"),Mf=new zn("NgAsyncValidators"),NEe=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Do{static min(n){return eV(n)}static max(n){return function tV(t){return n=>{if(Af(n.value)||Af(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return nV(n)}static requiredTrue(n){return function iV(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function rV(t){return Af(t.value)||NEe.test(t.value)?null:{email:!0}}(n)}static minLength(n){return function oV(t){return n=>Af(n.value)||!Z9(n.value)?null:n.value.lengthZ9(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}(n)}static pattern(n){return function aV(t){if(!t)return lC;let n,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(Af(i.value))return null;const r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(n)}static nullValidator(n){return null}static compose(n){return fV(n)}static composeAsync(n){return pV(n)}}function eV(t){return n=>{if(Af(n.value)||Af(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function dV(t,n){return n.map(e=>e(t))}function hV(t){return t.map(n=>function FEe(t){return!t.validate}(n)?n:e=>n.validate(e))}function fV(t){if(!t)return null;const n=t.filter(lV);return 0==n.length?null:function(e){return uV(dV(e,n))}}function JM(t){return null!=t?fV(hV(t)):null}function pV(t){if(!t)return null;const n=t.filter(lV);return 0==n.length?null:function(e){return function DEe(...t){if(1===t.length){const n=t[0];if(et(n))return sC(n,null);if(Ve(n)&&Object.getPrototypeOf(n)===Object.prototype){const e=Object.keys(n);return sC(e.map(i=>n[i]),e)}}if("function"==typeof t[t.length-1]){const n=t.pop();return sC(t=1===t.length&&et(t[0])?t[0]:t,null).pipe(yn(e=>n(...e)))}return sC(t,null)}(dV(e,n).map(cV)).pipe(yn(uV))}}function KM(t){return null!=t?pV(hV(t)):null}function mV(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function gV(t){return t._rawValidators}function vV(t){return t._rawAsyncValidators}function QM(t){return t?Array.isArray(t)?t:[t]:[]}function cC(t,n){return Array.isArray(t)?t.includes(n):t===n}function yV(t,n){const e=QM(n);return QM(t).forEach(r=>{cC(e,r)||e.push(r)}),e}function bV(t,n){return QM(n).filter(e=>!cC(t,e))}class _V{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=JM(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=KM(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class Dl extends _V{get formDirective(){return null}get path(){return null}}class If extends _V{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class xV{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let rl=(()=>{class t extends xV{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(le(If,2))},t.\u0275dir=Zt({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&Mn("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[vi]}),t})(),ol=(()=>{class t extends xV{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(le(Dl,10))},t.\u0275dir=Zt({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&Mn("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[vi]}),t})();function wV(t,n){return t?`with name: '${n}'`:`at index: ${n}`}const t3=!1,py="VALID",dC="INVALID",rv="PENDING",my="DISABLED";function n3(t){return(hC(t)?t.validators:t)||null}function i3(t,n){return(hC(n)?n.asyncValidators:t)||null}function hC(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function CV(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new Ot(1e3,t3?function LEe(t){return`\n There are no form controls registered with this ${t?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(n):"");if(!i[e])throw new Ot(1001,t3?function REe(t,n){return`Cannot find form control ${wV(t,n)}`}(n,e):"")}function kV(t,n,e){t._forEachChild((i,r)=>{if(void 0===e[r])throw new Ot(1002,t3?function $Ee(t,n){return`Must supply a value for form control ${wV(t,n)}`}(n,r):"")})}class fC{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===py}get invalid(){return this.status===dC}get pending(){return this.status==rv}get disabled(){return this.status===my}get enabled(){return this.status!==my}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(yV(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(yV(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(bV(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(bV(n,this._rawAsyncValidators))}hasValidator(n){return cC(this._rawValidators,n)}hasAsyncValidator(n){return cC(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=rv,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=my,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=py,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===py||this.status===rv)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?my:py}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=rv,this._hasOwnPendingAsyncValidator=!0;const e=cV(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new Ke,this.statusChanges=new Ke}_calculateStatus(){return this._allControlsDisabled()?my:this.errors?dC:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(rv)?rv:this._anyControlsHaveStatus(dC)?dC:py}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){hC(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function BEe(t){return Array.isArray(t)?JM(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function VEe(t){return Array.isArray(t)?KM(t):t||null}(this._rawAsyncValidators)}}class gy extends fC{constructor(n,e,i){super(n3(e),i3(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){kV(this,!0,n),Object.keys(n).forEach(i=>{CV(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{const r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class SV extends gy{}const Qp=new zn("CallSetDisabledState",{providedIn:"root",factory:()=>vy}),vy="always";function yy(t,n,e=vy){r3(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function zEe(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&DV(t,n)})}(t,n),function GEe(t,n){const e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function UEe(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&DV(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function HEe(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function mC(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),vC(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function gC(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function r3(t,n){const e=gV(t);null!==n.validator?t.setValidators(mV(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=vV(t);null!==n.asyncValidator?t.setAsyncValidators(mV(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();gC(n._rawValidators,r),gC(n._rawAsyncValidators,r)}function vC(t,n){let e=!1;if(null!==t){if(null!==n.validator){const r=gV(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(null!==n.asyncValidator){const r=vV(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}const i=()=>{};return gC(n._rawValidators,i),gC(n._rawAsyncValidators,i),e}function DV(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function AV(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function MV(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const _y=class extends fC{constructor(n=null,e,i){super(n3(e),i3(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),hC(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=MV(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){AV(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){AV(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){MV(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};let sl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Zt({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const eAe={provide:ha,useExisting:Gi(()=>c3),multi:!0};let c3=(()=>{class t extends Kp{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ji(t)))(i||t)}}(),t.\u0275dir=Zt({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,i){1&e&&ye("input",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},features:[Lr([eAe]),vi]}),t})(),jV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({}),t})();const u3=new zn("NgModelWithFormControlWarning"),oAe={provide:Dl,useExisting:Gi(()=>fa)};let fa=(()=>{class t extends Dl{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ke,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(vC(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return yy(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){mC(e.control||null,e,!1),function YEe(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,function EV(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(mC(i||null,e),(t=>t instanceof _y)(r)&&(yy(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);(function TV(t,n){r3(t,n)})(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function WEe(t,n){return vC(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){r3(this.form,this),this._oldForm&&vC(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(le(Oa,10),le(Mf,10),le(Qp,8))},t.\u0275dir=Zt({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&ye("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Lr([oAe]),vi,Hn]}),t})();const lAe={provide:If,useExisting:Gi(()=>ja)};let ja=(()=>{class t extends If{set isDisabled(e){}constructor(e,i,r,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new Ke,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function a3(t,n){if(!n)return null;let e,i,r;return Array.isArray(n),n.forEach(o=>{o.constructor===Fa?e=o:function XEe(t){return Object.getPrototypeOf(t.constructor)===Kp}(o)?i=o:r=o}),r||i||e||null}(0,o)}ngOnChanges(e){this._added||this._setUpControl(),function s3(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return function pC(t,n){return[...n.path,t]}(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return t._ngModelWarningSentOnce=!1,t.\u0275fac=function(e){return new(e||t)(le(Dl,13),le(Oa,10),le(Mf,10),le(ha,10),le(u3,8))},t.\u0275dir=Zt({type:t,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Lr([lAe]),vi,Hn]}),t})();const cAe={provide:ha,useExisting:Gi(()=>ov),multi:!0};function BV(t,n){return null==t?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let ov=(()=>{class t extends Kp{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const r=BV(this._getOptionId(e),e);this.setProperty("value",r)}registerOnChange(e){this.onChange=i=>{this.value=this._getOptionValue(i),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const i of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(i),e))return i;return null}_getOptionValue(e){const i=function uAe(t){return t.split(":")[0]}(e);return this._optionMap.has(i)?this._optionMap.get(i):e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ji(t)))(i||t)}}(),t.\u0275dir=Zt({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,i){1&e&&ye("change",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[Lr([cAe]),vi]}),t})(),xy=(()=>{class t{constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(BV(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(le(ti),le(Ss),le(ov,9))},t.\u0275dir=Zt({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const dAe={provide:ha,useExisting:Gi(()=>f3),multi:!0};function VV(t,n){return null==t?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let f3=(()=>{class t extends Kp{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let i;if(this.value=e,Array.isArray(e)){const r=e.map(o=>this._getOptionId(o));i=(o,s)=>{o._setSelected(r.indexOf(s.toString())>-1)}}else i=(r,o)=>{r._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(e){this.onChange=i=>{const r=[],o=i.selectedOptions;if(void 0!==o){const s=o;for(let a=0;a{class t{constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(VV(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(VV(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(le(ti),le(Ss),le(f3,9))},t.\u0275dir=Zt({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();let Zp=(()=>{class t{constructor(){this._validator=lC}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):lC,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Zt({type:t,features:[Hn]}),t})();const pAe={provide:Oa,useExisting:Gi(()=>p3),multi:!0};let p3=(()=>{class t extends Zp{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>function zV(t){return"number"==typeof t?t:parseFloat(t)}(e),this.createValidator=e=>eV(e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ji(t)))(i||t)}}(),t.\u0275dir=Zt({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(e,i){2&e&&ht("min",i._enabled?i.min:null)},inputs:{min:"min"},features:[Lr([pAe]),vi]}),t})();const mAe={provide:Oa,useExisting:Gi(()=>Nf),multi:!0};let Nf=(()=>{class t extends Zp{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=qg,this.createValidator=e=>nV}enabled(e){return e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ji(t)))(i||t)}}(),t.\u0275dir=Zt({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,i){2&e&&ht("required",i._enabled?"":null)},inputs:{required:"required"},features:[Lr([mAe]),vi]}),t})(),JV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[jV]}),t})();class KV extends fC{constructor(n,e,i){super(n3(e),i3(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){kV(this,!1,n),n.forEach((i,r)=>{CV(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function QV(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let xAe=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,i=null){const r=this._reduceControls(e);let o={};return QV(i)?o=i:null!==i&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new gy(r,o)}record(e,i=null){const r=this._reduceControls(e);return new SV(r,i)}control(e,i,r){let o={};return this.useNonNullable?(QV(i)?o=i:(o.validators=i,o.asyncValidators=r),new _y(e,{...o,nonNullable:!0})):new _y(e,i,r)}array(e,i,r){const o=e.map(s=>this._createControl(s));return new KV(o,i,r)}_reduceControls(e){const i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){return e instanceof _y||e instanceof fC?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Tl=(()=>{class t extends xAe{group(e,i=null){return super.group(e,i)}control(e,i,r){return super.control(e,i,r)}array(e,i,r){return super.array(e,i,r)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ji(t)))(i||t)}}(),t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ZV=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Qp,useValue:e.callSetDisabledState??vy}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[JV]}),t})(),wAe=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:u3,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Qp,useValue:e.callSetDisabledState??vy}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[JV]}),t})();const m3=new zn("ngx-segment-analytics.config"),CAe={debug:!1,loadOnInitialization:!0,segmentHost:"cdn.segment.com",segmentUri:"/analytics.js/v1/$API_KEY$/analytics.min.js"};let g3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),yC=(()=>{class t{constructor(e,i,r){if(this._w=e,this._doc=i,this._config=Object.assign(Object.assign({},CAe),r),this._config.loadOnInitialization&&(typeof this._config.apiKey>"u"||""===this._config.apiKey))console.error("The API Key cannot be an empty string if Segment must be loaded on initialization.");else if(typeof this._w.analytics>"u"||typeof this._w.analytics.initialize>"u"||!1===this._w.analytics.initialize){if(typeof this._w.analytics<"u"&&!0===this._w.analytics.invoked)return void console.error("Segment snippet included twice.");this._config.debug&&console.log("Segment initialization..."),this._w.analytics=[],this._w.analytics.invoked=!0,this._w.analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware"],this._w.analytics.factory=o=>(...s)=>(s.unshift(o),this._w.analytics.push(s),this._w.analytics),this._w.analytics.methods.forEach(o=>{this._w.analytics[o]=this._w.analytics.factory(o)}),this._w.analytics.load=(o,s)=>{const a=this._doc.createElement("script");a.type="text/javascript",a.async=!0,a.src="https://"+this._config.segmentHost+this._config.segmentUri.replace("$API_KEY$",o);const l=this._doc.getElementsByTagName("script")[0];l.parentNode.insertBefore(a,l),this._w.analytics._loadOptions=s},this._w.analytics.SNIPPET_VERSION="4.1.0",this._config.loadOnInitialization&&this.load(this._config.apiKey)}}load(e,i){this._w.analytics.load(e,i),this._config.debug&&console.log("Segment initialized"),this.debug(this._config.debug)}identify(e,i,r){return new Promise(o=>{this._w.analytics.identify(e,i,r,s=>o(this))})}track(e,i,r){return new Promise(o=>{this._w.analytics.track(e,i,r,s=>o(this))})}page(e,i,r,o){return new Promise(s=>{this._w.analytics.page(e,i,r,o,a=>s(this))})}group(e,i){return new Promise(r=>{this._w.analytics.group(e,i,o=>r(this))})}alias(e,i,r){return new Promise(o=>{this._w.analytics.alias(e,i,r,s=>o(this))})}ready(){return new Promise(e=>{this._w.analytics.ready(i=>e(this))})}user(){return this._w.analytics.user()}id(){return this._w.analytics.id()}traits(){return this._w.analytics.traits()}reset(){this._w.analytics.reset()}debug(e){this._w.analytics.debug(e)}on(e,i){this._w.analytics.on(e,i)}trackLink(e,i,r){this._w.analytics.trackLink(e,i,r)}trackForm(e,i,r){this._w.analytics.trackForm(e,i,r)}timeout(e){this._w.analytics.timeout(e)}addSourceMiddleware(e){this._w.analytics.addSourceMiddleware(e)}get plugins(){return this._w.analytics.plugins}}return t.\u0275fac=function(e){return new(e||t)(ct(g3),ct(Ir),ct(m3))},t.\u0275prov=Et({factory:function(){return new t(ct(g3),ct(Ir),ct(m3))},token:t,providedIn:"root"}),t})();function kAe(t){return function DB(t){return t===SB}(t)?window:{}}let SAe=(()=>{class t{constructor(e){if(e)throw new Error("SegmentModule is already loaded. Import it in the AppModule only")}static forRoot(e){return{ngModule:t,providers:[{provide:m3,useValue:e},yC]}}}return t.\u0275fac=function(e){return new(e||t)(ct(t,12))},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({providers:[{provide:g3,useFactory:kAe,deps:[L1]}],imports:[Vs]}),t})();class bC{}class v3{}class Fu{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(n).forEach(e=>{let i=n[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof Fu?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new Fu;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Fu?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const r=("a"===n.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=n.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class DAe{encodeKey(n){return eH(n)}encodeValue(n){return eH(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const EAe=/%(\d[a-f0-9])/gi,AAe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function eH(t){return encodeURIComponent(t).replace(EAe,(n,e)=>AAe[e]??n)}function _C(t){return`${t}`}class In{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new DAe,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function TAe(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],r=Array.isArray(i)?i.map(_C):[_C(i)];this.map.set(e,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new In({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(_C(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const r=i.indexOf(_C(n.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class MAe{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function tH(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function nH(t){return typeof Blob<"u"&&t instanceof Blob}function iH(t){return typeof FormData<"u"&&t instanceof FormData}class Cy{constructor(n,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function IAe(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Fu),this.context||(this.context=new MAe),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ad.set(h,n.setHeaders[h]),l)),n.setParams&&(c=Object.keys(n.setParams).reduce((d,h)=>d.set(h,n.setParams[h]),c)),new Cy(e,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var zs=(()=>((zs=zs||{})[zs.Sent=0]="Sent",zs[zs.UploadProgress=1]="UploadProgress",zs[zs.ResponseHeader=2]="ResponseHeader",zs[zs.DownloadProgress=3]="DownloadProgress",zs[zs.Response=4]="Response",zs[zs.User=5]="User",zs))();class y3{constructor(n,e=200,i="OK"){this.headers=n.headers||new Fu,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class b3 extends y3{constructor(n={}){super(n),this.type=zs.ResponseHeader}clone(n={}){return new b3({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class xC extends y3{constructor(n={}){super(n),this.type=zs.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new xC({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class rH extends y3{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function _3(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let wC=(()=>{class t{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof Cy)o=e;else{let l,c;l=r.headers instanceof Fu?r.headers:new Fu(r.headers),r.params&&(c=r.params instanceof In?r.params:new In({fromObject:r.params})),o=new Cy(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const s=$n(o).pipe(Sf(l=>this.handler.handle(l)));if(e instanceof Cy||"events"===r.observe)return s;const a=s.pipe(ns(l=>l instanceof xC));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(yn(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(yn(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(yn(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(yn(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new In).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,_3(r,i))}post(e,i,r={}){return this.request("POST",e,_3(r,i))}put(e,i,r={}){return this.request("PUT",e,_3(r,i))}}return t.\u0275fac=function(e){return new(e||t)(ct(bC))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();function oH(t,n){return n(t)}function FAe(t,n){return(e,i)=>n.intercept(e,{handle:r=>t(r,i)})}const x3=new zn("HTTP_INTERCEPTORS"),ky=new zn("HTTP_INTERCEPTOR_FNS");function jAe(){let t=null;return(n,e)=>(null===t&&(t=(ar(x3,{optional:!0})??[]).reduceRight(FAe,oH)),t(n,e))}let sH=(()=>{class t extends bC{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=Array.from(new Set(this.injector.get(ky)));this.chain=i.reduceRight((r,o)=>function OAe(t,n,e){return(i,r)=>e.runInContext(()=>n(i,o=>t(o,r)))}(r,o,this.injector),oH)}return this.chain(e,i=>this.backend.handle(i))}}return t.\u0275fac=function(e){return new(e||t)(ct(v3),ct(Nd))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const $Ae=/^\)\]\}',?\n/;let lH=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new rn(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((f,p)=>r.setRequestHeader(f,p.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const f=e.detectContentTypeHeader();null!==f&&r.setRequestHeader("Content-Type",f)}if(e.responseType){const f=e.responseType.toLowerCase();r.responseType="json"!==f?f:"text"}const o=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const f=r.statusText||"OK",p=new Fu(r.getAllResponseHeaders()),m=function BAe(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new b3({headers:p,status:r.status,statusText:f,url:m}),s},l=()=>{let{headers:f,status:p,statusText:m,url:g}=a(),v=null;204!==p&&(v=typeof r.response>"u"?r.responseText:r.response),0===p&&(p=v?200:0);let y=p>=200&&p<300;if("json"===e.responseType&&"string"==typeof v){const _=v;v=v.replace($Ae,"");try{v=""!==v?JSON.parse(v):null}catch(C){v=_,y&&(y=!1,v={error:C,text:v})}}y?(i.next(new xC({body:v,headers:f,status:p,statusText:m,url:g||void 0})),i.complete()):i.error(new rH({error:v,headers:f,status:p,statusText:m,url:g||void 0}))},c=f=>{const{url:p}=a(),m=new rH({error:f,status:r.status||0,statusText:r.statusText||"Unknown Error",url:p||void 0});i.error(m)};let u=!1;const d=f=>{u||(i.next(a()),u=!0);let p={type:zs.DownloadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),"text"===e.responseType&&r.responseText&&(p.partialText=r.responseText),i.next(p)},h=f=>{let p={type:zs.UploadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),i.next(p)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",d),null!==o&&r.upload&&r.upload.addEventListener("progress",h)),r.send(o),i.next({type:zs.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",d),null!==o&&r.upload&&r.upload.removeEventListener("progress",h)),r.readyState!==r.DONE&&r.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(ct(EB))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const w3=new zn("XSRF_ENABLED"),cH=new zn("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),uH=new zn("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class dH{}let zAe=(()=>{class t{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=pB(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(ct(Ir),ct(L1),ct(cH))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();function UAe(t,n){const e=t.url.toLowerCase();if(!ar(w3)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const i=ar(dH).getToken(),r=ar(uH);return null!=i&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,i)})),n(t)}var Ts=(()=>((Ts=Ts||{})[Ts.Interceptors=0]="Interceptors",Ts[Ts.LegacyInterceptors=1]="LegacyInterceptors",Ts[Ts.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Ts[Ts.NoXsrfProtection=3]="NoXsrfProtection",Ts[Ts.JsonpSupport=4]="JsonpSupport",Ts[Ts.RequestsMadeViaParent=5]="RequestsMadeViaParent",Ts))();function sv(t,n){return{\u0275kind:t,\u0275providers:n}}function GAe(...t){const n=[wC,lH,sH,{provide:bC,useExisting:sH},{provide:v3,useExisting:lH},{provide:ky,useValue:UAe,multi:!0},{provide:w3,useValue:!0},{provide:dH,useClass:zAe}];for(const e of t)n.push(...e.\u0275providers);return function R0e(t){return{\u0275providers:t}}(n)}const hH=new zn("LEGACY_INTERCEPTOR_FN");let qAe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({providers:[GAe(sv(Ts.LegacyInterceptors,[{provide:hH,useFactory:jAe},{provide:ky,useExisting:hH,multi:!0}]))]}),t})();var oi=(()=>(function(t){t[t.USER_ROLE_UNKNOWN=0]="USER_ROLE_UNKNOWN",t[t.USER_ROLE_ADMIN=1]="USER_ROLE_ADMIN",t[t.USER_ROLE_DEVELOPER=2]="USER_ROLE_DEVELOPER",t[t.USER_ROLE_MAINTAINER=3]="USER_ROLE_MAINTAINER",t[t.USER_ROLE_READONLY=4]="USER_ROLE_READONLY"}(oi||(oi={})),oi))(),Sy=(()=>(function(t){t[t.APPLE_APP_STORE=0]="APPLE_APP_STORE",t[t.GOOGLE_PLAY_STORE=1]="GOOGLE_PLAY_STORE",t[t.HUAWEI_APP_GALLERY=2]="HUAWEI_APP_GALLERY"}(Sy||(Sy={})),Sy))();class C3{constructor(){K(this,"host",void 0),K(this,"timeoutMs",void 0)}}let xi=(()=>{class t{constructor(e,i){K(this,"httpClient",void 0),K(this,"config",void 0),this.httpClient=e,this.config=i||{host:"http://127.0.0.1:7120",timeoutMs:5e3}}deleteAccounts(e){let r=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+"/v2/console/account",{params:r,headers:this.getTokenAuthHeaders(e)})}listAccounts(e,i,r,o){let a=new In({encoder:new Xn});return i&&(a=a.set("filter",i)),(r||!1===r)&&(a=a.set("tombstones",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+"/v2/console/account",{params:a,headers:this.getTokenAuthHeaders(e)})}getWalletLedger(e,i,r,o){const s=`/v2/console/account/${i=encodeURIComponent(String(i))}/wallet`;let a=new In({encoder:new Xn});return r&&(a=a.set("limit",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+s,{params:a,headers:this.getTokenAuthHeaders(e)})}deleteAccount(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}`;let s=new In({encoder:new Xn});return(r||!1===r)&&(s=s.set("record_deletion",String(r))),this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}getAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}`;let o=new In({encoder:new Xn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}updateAccount(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}`;let s=new In({encoder:new Xn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}banAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/ban`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}exportAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/export`;let o=new In({encoder:new Xn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getFriends(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/friend`;let o=new In({encoder:new Xn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteFriend(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/friend/${r=encodeURIComponent(String(r))}`;let s=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}getGroups(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/group`;let o=new In({encoder:new Xn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteGroupUser(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/group/${r=encodeURIComponent(String(r))}`;let s=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}unbanAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unban`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkApple(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/apple`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkCustom(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/custom`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkDevice(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/device`;let s=new In({encoder:new Xn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}unlinkEmail(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/email`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkFacebook(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/facebook`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkFacebookInstantGame(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/facebookinstantgame`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkGameCenter(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/gamecenter`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkGoogle(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/google`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkSteam(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/steam`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteWalletLedger(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/wallet/${r=encodeURIComponent(String(r))}`;let s=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}deleteAllData(e){let r=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+"/v2/console/all",{params:r,headers:this.getTokenAuthHeaders(e)})}listApiEndpoints(e){let r=new In({encoder:new Xn});return this.httpClient.get(this.config.host+"/v2/console/api/endpoints",{params:r,headers:this.getTokenAuthHeaders(e)})}callRpcEndpoint(e,i,r){const o=`/v2/console/api/endpoints/rpc/${i=encodeURIComponent(String(i))}`;let s=new In({encoder:new Xn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}callApiEndpoint(e,i,r){const o=`/v2/console/api/endpoints/${i=encodeURIComponent(String(i))}`;let s=new In({encoder:new Xn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}authenticate(e){let r=new In({encoder:new Xn});return this.httpClient.post(this.config.host+"/v2/console/authenticate",e,{params:r})}authenticateLogout(e,i){let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+"/v2/console/authenticate/logout",i,{params:o,headers:this.getTokenAuthHeaders(e)})}listChannelMessages(e,i,r,o,s,a,l){let u=new In({encoder:new Xn});return i&&(u=u.set("type",i)),r&&(u=u.set("label",r)),o&&(u=u.set("group_id",o)),s&&(u=u.set("user_id_one",s)),a&&(u=u.set("user_id_two",a)),l&&(u=u.set("cursor",l)),this.httpClient.get(this.config.host+"/v2/console/channel",{params:u,headers:this.getTokenAuthHeaders(e)})}getConfig(e){let r=new In({encoder:new Xn});return this.httpClient.get(this.config.host+"/v2/console/config",{params:r,headers:this.getTokenAuthHeaders(e)})}listGroups(e,i,r){let s=new In({encoder:new Xn});return i&&(s=s.set("filter",i)),r&&(s=s.set("cursor",r)),this.httpClient.get(this.config.host+"/v2/console/group",{params:s,headers:this.getTokenAuthHeaders(e)})}demoteGroupMember(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}/account/${r=encodeURIComponent(String(r))}/demote`;let s=new In({encoder:new Xn});return this.httpClient.post(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}promoteGroupMember(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}/account/${r=encodeURIComponent(String(r))}/promote`;let s=new In({encoder:new Xn});return this.httpClient.post(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}addGroupUsers(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}/add`;let s=new In({encoder:new Xn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}deleteGroup(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}`;let o=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getGroup(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}`;let o=new In({encoder:new Xn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}updateGroup(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}`;let s=new In({encoder:new Xn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}exportGroup(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}/export`;let o=new In({encoder:new Xn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getMembers(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}/member`;let o=new In({encoder:new Xn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}listLeaderboards(e,i){let o=new In({encoder:new Xn});return i&&(o=o.set("cursor",i)),this.httpClient.get(this.config.host+"/v2/console/leaderboard",{params:o,headers:this.getTokenAuthHeaders(e)})}deleteLeaderboard(e,i){const r=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}`;let o=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getLeaderboard(e,i){const r=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}`;let o=new In({encoder:new Xn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteLeaderboardRecord(e,i,r){const o=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}/owner/${r=encodeURIComponent(String(r))}`;let s=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}listLeaderboardRecords(e,i,r,o,s,a){const l=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}/records`;let c=new In({encoder:new Xn});return r&&r.forEach(u=>c=c.append("owner_ids",String(u))),o&&(c=c.set("limit",String(o))),s&&(c=c.set("cursor",s)),a&&(c=c.set("expiry",a)),this.httpClient.get(this.config.host+l,{params:c,headers:this.getTokenAuthHeaders(e)})}listMatches(e,i,r,o,s,a,l,c,u){let h=new In({encoder:new Xn});return i&&(h=h.set("limit",String(i))),(r||!1===r)&&(h=h.set("authoritative",String(r))),o&&(h=h.set("label",o)),s&&(h=h.set("min_size",String(s))),a&&(h=h.set("max_size",String(a))),l&&(h=h.set("match_id",l)),c&&(h=h.set("query",c)),u&&(h=h.set("node",u)),this.httpClient.get(this.config.host+"/v2/console/match",{params:h,headers:this.getTokenAuthHeaders(e)})}getMatchState(e,i){const r=`/v2/console/match/${i=encodeURIComponent(String(i))}/state`;let o=new In({encoder:new Xn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteChannelMessages(e,i,r){let s=new In({encoder:new Xn});return i&&(s=s.set("before",i)),r&&r.forEach(a=>s=s.append("ids",String(a))),this.httpClient.delete(this.config.host+"/v2/console/message",{params:s,headers:this.getTokenAuthHeaders(e)})}listPurchases(e,i,r,o){let a=new In({encoder:new Xn});return i&&(a=a.set("user_id",i)),r&&(a=a.set("limit",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+"/v2/console/purchase",{params:a,headers:this.getTokenAuthHeaders(e)})}getRuntime(e){let r=new In({encoder:new Xn});return this.httpClient.get(this.config.host+"/v2/console/runtime",{params:r,headers:this.getTokenAuthHeaders(e)})}getStatus(e){let r=new In({encoder:new Xn});return this.httpClient.get(this.config.host+"/v2/console/status",{params:r,headers:this.getTokenAuthHeaders(e)})}deleteStorage(e){let r=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+"/v2/console/storage",{params:r,headers:this.getTokenAuthHeaders(e)})}listStorage(e,i,r,o,s){let l=new In({encoder:new Xn});return i&&(l=l.set("user_id",i)),r&&(l=l.set("key",r)),o&&(l=l.set("collection",o)),s&&(l=l.set("cursor",s)),this.httpClient.get(this.config.host+"/v2/console/storage",{params:l,headers:this.getTokenAuthHeaders(e)})}listStorageCollections(e){let r=new In({encoder:new Xn});return this.httpClient.get(this.config.host+"/v2/console/storage/collections",{params:r,headers:this.getTokenAuthHeaders(e)})}deleteStorageObject(e,i,r,o,s){const a=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}`;let l=new In({encoder:new Xn});return s&&(l=l.set("version",s)),this.httpClient.delete(this.config.host+a,{params:l,headers:this.getTokenAuthHeaders(e)})}getStorage(e,i,r,o){const s=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}`;let a=new In({encoder:new Xn});return this.httpClient.get(this.config.host+s,{params:a,headers:this.getTokenAuthHeaders(e)})}writeStorageObject(e,i,r,o,s){const a=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}`;let l=new In({encoder:new Xn});return this.httpClient.put(this.config.host+a,s,{params:l,headers:this.getTokenAuthHeaders(e)})}deleteStorageObject2(e,i,r,o,s){const a=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}/${s=encodeURIComponent(String(s))}`;let l=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+a,{params:l,headers:this.getTokenAuthHeaders(e)})}listSubscriptions(e,i,r,o){let a=new In({encoder:new Xn});return i&&(a=a.set("user_id",i)),r&&(a=a.set("limit",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+"/v2/console/subscription",{params:a,headers:this.getTokenAuthHeaders(e)})}deleteUser(e,i){let o=new In({encoder:new Xn});return i&&(o=o.set("username",i)),this.httpClient.delete(this.config.host+"/v2/console/user",{params:o,headers:this.getTokenAuthHeaders(e)})}listUsers(e){let r=new In({encoder:new Xn});return this.httpClient.get(this.config.host+"/v2/console/user",{params:r,headers:this.getTokenAuthHeaders(e)})}addUser(e,i){let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+"/v2/console/user",i,{params:o,headers:this.getTokenAuthHeaders(e)})}getTokenAuthHeaders(e){return(new Fu).set("Authorization","Bearer "+e)}getBasicAuthHeaders(e,i){return(new Fu).set("Authorization","Basic "+btoa(e+":"+i))}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(wC),ct(C3,8))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();class Xn{encodeKey(n){return encodeURIComponent(n)}encodeValue(n){return encodeURIComponent(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const fH=new zn("window"),JAe=[{provide:fH,useFactory:()=>window}],k3="currentSession";let Xo=(()=>{class t{constructor(e,i,r,o){K(this,"window",void 0),K(this,"segment",void 0),K(this,"http",void 0),K(this,"consoleService",void 0),K(this,"currentSessionSubject",void 0),K(this,"currentSession",void 0),this.window=e,this.segment=i,this.http=r,this.consoleService=o;const s=JSON.parse(localStorage.getItem(k3));this.currentSessionSubject=new Hs(s),this.currentSession=this.currentSessionSubject.asObservable()}get currentSessionValue(){return this.currentSessionSubject.getValue()}get username(){const e=this.currentSessionSubject.getValue().token;return JSON.parse(atob(e.split(".")[1])).usn}get sessionRole(){const e=this.currentSessionSubject.getValue().token;switch(JSON.parse(atob(e.split(".")[1])).rol){case 1:return oi.USER_ROLE_ADMIN;case 2:return oi.USER_ROLE_DEVELOPER;case 3:return oi.USER_ROLE_MAINTAINER;case 4:return oi.USER_ROLE_READONLY;default:return oi.USER_ROLE_UNKNOWN}}login(e,i){return this.consoleService.authenticate({username:e,password:i}).pipe(is(r=>{localStorage.setItem(k3,JSON.stringify(r)),this.currentSessionSubject.next(r)}))}logout(){return this.currentSessionSubject.getValue()?this.consoleService.authenticateLogout("",{token:this.currentSessionSubject.getValue()?.token}).pipe(is(()=>{localStorage.removeItem(k3),this.currentSessionSubject.next(null)})):Vh}segmentIdentify(e){const r=JSON.parse(atob(e.token.split(".")[1]));this.segment.identify(null,{username:r.usn,email:r.ema,cookie:r.cki})}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(fH),ct(yC),ct(wC),ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function KAe(t,n){if(1&t&&(b(0,"div",17),I(1),x()),2&t){const e=j();w(1),xn(" ",e.error," ")}}const QAe=function(t){return{"was-validated":t}},pH=function(t){return{"is-invalid":t}};let ZAe=(()=>{class t{constructor(e,i,r,o,s){K(this,"segment",void 0),K(this,"formBuilder",void 0),K(this,"route",void 0),K(this,"router",void 0),K(this,"authenticationService",void 0),K(this,"error",""),K(this,"loginForm",void 0),K(this,"submitted",void 0),K(this,"returnUrl",void 0),this.segment=e,this.formBuilder=i,this.route=r,this.router=o,this.authenticationService=s}ngOnInit(){this.loginForm=this.formBuilder.group({username:["",Do.compose([Do.required])],password:["",Do.compose([Do.required,Do.minLength(8)])]}),this.returnUrl=this.route.snapshot.queryParams.next||"/"}onSubmit(){this.submitted=!0,this.error="",!this.loginForm.invalid&&this.authenticationService.login(this.f.username.value,this.f.password.value).subscribe(e=>{this.loginForm.reset(),this.submitted=!1,this.router.navigate([this.returnUrl])},e=>{this.error=e,this.submitted=!1})}get f(){return this.loginForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(yC),le(Tl),le(Rr),le(cr),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:26,vars:14,consts:[[1,"bg-grad","d-flex","h-100"],[1,"align-self-center","mx-auto"],[1,"text-center","mb-4"],["src","/static/svg/logo.svg","alt","Nakama Logo","width","175"],["class","alert alert-warning","role","alert",4,"ngIf"],[1,"card"],[1,"card-body"],[1,"text-center"],[3,"formGroup","ngClass","ngSubmit"],[1,"form-group","form-row"],[1,"col-sm-12"],["for","username"],["type","text","id","username","formControlName","username","required","","autofocus","",1,"form-control",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","password"],["type","password","id","password","formControlName","password","required","",1,"form-control",3,"ngClass"],[1,"btn","btn-primary","btn-lg","btn-block",3,"disabled"],["role","alert",1,"alert","alert-warning"]],template:function(e,i){1&e&&(b(0,"div",0)(1,"div",1)(2,"h1",2),ge(3,"img",3),x(),J(4,KAe,2,1,"div",4),b(5,"div",5)(6,"div",6)(7,"h3",7),I(8,"Login"),x(),b(9,"form",8),ye("ngSubmit",function(){return i.onSubmit()}),b(10,"div",9)(11,"div",10)(12,"label",11),I(13,"Username"),x(),ge(14,"input",12),b(15,"div",13),I(16,"Please enter a username."),x()()(),b(17,"div",9)(18,"div",10)(19,"label",14),I(20,"Password"),x(),ge(21,"input",15),b(22,"div",13),I(23,"Password must be at least 8 characters."),x()()(),b(24,"button",16),I(25,"Login"),x()()()()()()),2&e&&(w(4),k("ngIf",i.error),w(5),k("formGroup",i.loginForm)("ngClass",lr(8,QAe,i.submitted)),w(5),k("ngClass",lr(10,pH,i.f.username.dirty&&i.f.username.errors)),w(1),k("hidden",i.f.username.disabled||i.f.username.valid||i.f.username.pristine),w(6),k("ngClass",lr(12,pH,i.f.password.dirty&&i.f.password.errors)),w(1),k("hidden",i.f.password.disabled||i.f.password.valid||i.f.password.pristine),w(2),k("disabled",!i.loginForm.valid||i.submitted))},dependencies:[Rh,gn,sl,Fa,rl,ol,Nf,fa,ja],styles:["div[_ngcontent-%COMP%] .mx-auto[_ngcontent-%COMP%]{width:420px}"]})),t})(),eMe=(()=>{class t{constructor(e,i){K(this,"authService",void 0),K(this,"router",void 0),this.authService=e,this.router=i}canActivate(e,i){return!this.authService.currentSessionValue||(this.router.navigate(["/"]),!1)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(Xo),ct(cr))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})(),tMe=(()=>{class t{constructor(e,i){K(this,"router",void 0),K(this,"authenticationService",void 0),this.router=e,this.authenticationService=i}canActivate(e,i){return!!this.authenticationService.currentSessionValue||(this.router.navigate(["/login"],{queryParams:{next:i.url}}),!1)}canActivateChild(e,i){return this.canActivate(e,i)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(cr),ct(Xo))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();class nMe extends ue{constructor(n,e){super()}schedule(n,e=0){return this}}class S3 extends nMe{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){if(this.closed)return this;this.state=n;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(n,e,i=0){return setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let r,i=!1;try{this.work(n)}catch(o){i=!0,r=!!o&&o||new Error(o)}if(i)return this.unsubscribe(),r}_unsubscribe(){const n=this.id,e=this.scheduler,i=e.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null}}let mH=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return t.now=()=>Date.now(),t})();class Hd extends mH{constructor(n,e=mH.now){super(n,()=>Hd.delegate&&Hd.delegate!==this?Hd.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(n,e=0,i){return Hd.delegate&&Hd.delegate!==this?Hd.delegate.schedule(n,e,i):super.schedule(n,e,i)}flush(n){const{actions:e}=this;if(this.active)return void e.push(n);let i;this.active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this.active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const Dy=new Hd(S3);class rMe{constructor(n,e,i,r){this.bufferTimeSpan=n,this.bufferCreationInterval=e,this.maxBufferSize=i,this.scheduler=r}call(n,e){return e.subscribe(new sMe(n,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}class oMe{constructor(){this.buffer=[]}}class sMe extends O{constructor(n,e,i,r,o){super(n),this.bufferTimeSpan=e,this.bufferCreationInterval=i,this.maxBufferSize=r,this.scheduler=o,this.contexts=[];const s=this.openContext();if(this.timespanOnly=null==i||i<0,this.timespanOnly)this.add(s.closeAction=o.schedule(gH,e,{subscriber:this,context:s,bufferTimeSpan:e}));else{const l={bufferTimeSpan:e,bufferCreationInterval:i,subscriber:this,scheduler:o};this.add(s.closeAction=o.schedule(vH,e,{subscriber:this,context:s})),this.add(o.schedule(aMe,i,l))}}_next(n){const e=this.contexts,i=e.length;let r;for(let o=0;o0;){const i=n.shift();e.next(i.buffer)}super._complete()}_unsubscribe(){this.contexts=null}onBufferFull(n){this.closeContext(n);const e=n.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){n=this.openContext();const i=this.bufferTimeSpan;this.add(n.closeAction=this.scheduler.schedule(gH,i,{subscriber:this,context:n,bufferTimeSpan:i}))}}openContext(){const n=new oMe;return this.contexts.push(n),n}closeContext(n){this.destination.next(n.buffer);const e=this.contexts;(e?e.indexOf(n):-1)>=0&&e.splice(e.indexOf(n),1)}}function gH(t){const n=t.subscriber,e=t.context;e&&n.closeContext(e),n.closed||(t.context=n.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function aMe(t){const{bufferCreationInterval:n,bufferTimeSpan:e,subscriber:i,scheduler:r}=t,o=i.openContext();i.closed||(i.add(o.closeAction=r.schedule(vH,e,{subscriber:i,context:o})),this.schedule(t,n))}function vH(t){const{subscriber:n,context:e}=t;n.closeContext(e)}class lMe{constructor(n,e){this.compare=n,this.keySelector=e}call(n,e){return e.subscribe(new cMe(n,this.compare,this.keySelector))}}class cMe extends O{constructor(n,e,i){super(n),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(n,e){return n===e}_next(n){let e;try{const{keySelector:r}=this;e=r?r(n):n}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(n))}}function Es(t,n,e,i){return rt(e)&&(i=e,e=void 0),i?Es(t,n,e).pipe(yn(r=>et(r)?i(...r):i(r))):new rn(r=>{yH(t,n,function o(s){r.next(arguments.length>1?Array.prototype.slice.call(arguments):s)},r,e)})}function yH(t,n,e,i,r){let o;if(function hMe(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const s=t;t.addEventListener(n,e,r),o=()=>s.removeEventListener(n,e,r)}else if(function dMe(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const s=t;t.on(n,e),o=()=>s.off(n,e)}else if(function uMe(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const s=t;t.addListener(n,e),o=()=>s.removeListener(n,e)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let s=0,a=t.length;s=0}function av(t=0,n,e){let i=-1;return bH(n)?i=Number(n)<1?1:Number(n):Sa(n)&&(e=n),Sa(e)||(e=Dy),new rn(r=>{const o=bH(t)?t:+t-e.now();return e.schedule(fMe,o,{index:0,period:i,subscriber:r})})}function fMe(t){const{index:n,period:e,subscriber:i}=t;if(i.next(n),!i.closed){if(-1===e)return i.complete();t.index=n+1,this.schedule(t,e)}}function _H(...t){if(1===t.length){if(!et(t[0]))return t[0];t=t[0]}return st(t,void 0).lift(new pMe)}class pMe{call(n,e){return e.subscribe(new mMe(n))}}class mMe extends wM{constructor(n){super(n),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(n){this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{for(let i=0;ithis.index}hasCompleted(){return this.array.length===this.index}}class _Me extends W{constructor(n,e,i){super(n),this.parent=e,this.observable=i,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[Ro](){return this}next(){const n=this.buffer;return 0===n.length&&this.isComplete?{value:null,done:!0}:{value:n.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(n){this.buffer.push(n),this.parent.checkIterators()}subscribe(){return Fe(this.observable,new ml(this))}}function yo(t){return n=>n.lift(new wMe(t))}class wMe{constructor(n){this.notifier=n}call(n,e){const i=new CMe(n),r=Fe(this.notifier,new ml(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class CMe extends W{constructor(n){super(n),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function D3(...t){return n=>{let e;return"function"==typeof t[t.length-1]&&(e=t.pop()),n.lift(new kMe(t,e))}}class kMe{constructor(n,e){this.observables=n,this.project=e}call(n,e){return e.subscribe(new SMe(n,this.observables,this.project))}}class SMe extends wM{constructor(n,e,i){super(n),this.observables=e,this.project=i,this.toRespond=[];const r=e.length;this.values=new Array(r);for(let o=0;o0){const o=r.indexOf(i);-1!==o&&r.splice(o,1)}}notifyComplete(){}_next(n){if(0===this.toRespond.length){const e=[n,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(n){let e;try{e=this.project.apply(this,n)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}class Ou{constructor(n,e,i){this.kind=n,this.value=e,this.error=i,this.hasValue="N"===n}observe(n){switch(this.kind){case"N":return n.next&&n.next(this.value);case"E":return n.error&&n.error(this.error);case"C":return n.complete&&n.complete()}}do(n,e,i){switch(this.kind){case"N":return n&&n(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(n,e,i){return n&&"function"==typeof n.next?this.observe(n):this.do(n,e,i)}toObservable(){switch(this.kind){case"N":return $n(this.value);case"E":return qp(this.error);case"C":return Lw()}throw new Error("unexpected notification kind value")}static createNext(n){return typeof n<"u"?new Ou("N",n):Ou.undefinedValueNotification}static createError(n){return new Ou("E",void 0,n)}static createComplete(){return Ou.completeNotification}}function T3(t,n=Dy){const i=function DMe(t){return t instanceof Date&&!isNaN(+t)}(t)?+t-n.now():Math.abs(t);return r=>r.lift(new TMe(i,n))}Ou.completeNotification=new Ou("C"),Ou.undefinedValueNotification=new Ou("N",void 0);class TMe{constructor(n,e){this.delay=n,this.scheduler=e}call(n,e){return e.subscribe(new E3(n,this.delay,this.scheduler))}}class E3 extends O{constructor(n,e,i){super(n),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(n){const e=n.source,i=e.queue,r=n.scheduler,o=n.destination;for(;i.length>0&&i[0].time-r.now()<=0;)i.shift().notification.observe(o);if(i.length>0){const s=Math.max(0,i[0].time-r.now());this.schedule(n,s)}else this.unsubscribe(),e.active=!1}_schedule(n){this.active=!0,this.destination.add(n.schedule(E3.dispatch,this.delay,{source:this,destination:this.destination,scheduler:n}))}scheduleNotification(n){if(!0===this.errored)return;const e=this.scheduler,i=new EMe(e.now()+this.delay,n);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(n){this.scheduleNotification(Ou.createNext(n))}_error(n){this.errored=!0,this.queue=[],this.destination.error(n),this.unsubscribe()}_complete(){this.scheduleNotification(Ou.createComplete()),this.unsubscribe()}}class EMe{constructor(n,e){this.time=n,this.notification=e}}function $Me(t,n){if(1&t){const e=vt();b(0,"button",1),ye("click",function(){return $e(e),Be(j().close())}),b(1,"span",2),I(2,"\xd7"),x()()}}const lv=["*"],b3e=["dialog"];function Ff(t){return null!=t}typeof Element<"u"&&!Element.prototype.closest&&(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(t){let n=this;if(!document.documentElement.contains(n))return null;do{if(n.matches(t))return n;n=n.parentElement||n.parentNode}while(null!==n&&1===n.nodeType);return null});const CH={animation:!0,transitionTimerDelayMs:5};let pa=(()=>{class t{constructor(){this.animation=CH.animation}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({factory:function(){return new t},token:t,providedIn:"root"}),t})();const TIe=()=>{},{transitionTimerDelayMs:EIe}=CH,EC=new Map,ma=(t,n,e)=>{let i=e.context||{};const r=EC.get(t);if(r)switch(e.runningTransition){case"continue":return Vh;case"stop":r.transition$.complete(),i=Object.assign(r.context,i),EC.delete(t)}!function TC(t){return(t||document.body).offsetHeight}(t);const o=n(t,i)||TIe;if(!e.animation||"none"===window.getComputedStyle(t).transitionProperty)return o(),$n(void 0);const s=new tr,a=s.pipe(function xMe(...t){return n=>Pw(n,$n(...t))}(!0));EC.set(t,{transition$:s,context:i});const l=function DIe(t){const{transitionDelay:n,transitionDuration:e}=window.getComputedStyle(t);return 1e3*(parseFloat(n)+parseFloat(e))}(t),c=Es(t,"transitionend").pipe(yo(a),ns(({target:d})=>d===t));return _H(av(l+EIe).pipe(yo(a)),c).pipe(yo(a)).subscribe(()=>{EC.delete(t),o(),s.next(),s.complete()}),s.asObservable()};let AH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})(),IIe=(()=>{class t{constructor(e){this.dismissible=!0,this.type="warning",this.animation=e.animation}}return t.\u0275fac=function(e){return new(e||t)(ct(pa))},t.\u0275prov=Et({factory:function(){return new t(ct(pa))},token:t,providedIn:"root"}),t})();const NIe=({classList:t})=>{t.remove("show")};let To=(()=>{class t{constructor(e,i,r){this._renderer=i,this._element=r,this.closed=new Ke,this.dismissible=e.dismissible,this.type=e.type,this.animation=e.animation}close(){const e=ma(this._element.nativeElement,NIe,{animation:this.animation,runningTransition:"continue"});return e.subscribe(()=>this.closed.emit()),e}ngOnChanges(e){const i=e.type;i&&!i.firstChange&&(this._renderer.removeClass(this._element.nativeElement,`alert-${i.previousValue}`),this._renderer.addClass(this._element.nativeElement,`alert-${i.currentValue}`))}ngOnInit(){this._renderer.addClass(this._element.nativeElement,`alert-${this.type}`)}}return t.\u0275fac=function(e){return new(e||t)(le(IIe),le(Ss),le(ti))},t.\u0275cmp=Rt({type:t,selectors:[["ngb-alert"]],hostAttrs:["role","alert",1,"alert","show"],hostVars:4,hostBindings:function(e,i){2&e&&Mn("fade",i.animation)("alert-dismissible",i.dismissible)},inputs:{dismissible:"dismissible",type:"type",animation:"animation"},outputs:{closed:"closed"},exportAs:["ngbAlert"],features:[Hn],ngContentSelectors:lv,decls:2,vars:1,consts:function(){let n;return n=$localize`:@@ngb.alert.close␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`,[["type","button","class","close","aria-label",n,3,"click",4,"ngIf"],["type","button","aria-label",n,1,"close",3,"click"],["aria-hidden","true"]]},template:function(e,i){1&e&&(Cu(),ku(0),J(1,$Me,3,0,"button",0)),2&e&&(w(1),k("ngIf",i.dismissible))},dependencies:[gn],styles:["ngb-alert{display:block}"],encapsulation:2,changeDetection:0}),t})(),MH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})(),AC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Zt({type:t,selectors:[["","ngbButtonLabel",""]],hostVars:8,hostBindings:function(e,i){2&e&&Mn("btn",!0)("active",i.active)("disabled",i.disabled)("focus",i.focused)}}),t})(),OIe=0,N3=(()=>{class t{constructor(){this._radios=new Set,this._value=null,this.name="ngb-radio-"+OIe++,this.onChange=e=>{},this.onTouched=()=>{}}get disabled(){return this._disabled}set disabled(e){this.setDisabledState(e)}onRadioChange(e){this.writeValue(e.value),this.onChange(e.value)}onRadioValueUpdate(){this._updateRadiosValue()}register(e){this._radios.add(e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._disabled=e,this._updateRadiosDisabled()}unregister(e){this._radios.delete(e)}writeValue(e){this._value=e,this._updateRadiosValue()}_updateRadiosValue(){this._radios.forEach(e=>e.updateValue(this._value))}_updateRadiosDisabled(){this._radios.forEach(e=>e.updateDisabled())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Zt({type:t,selectors:[["","ngbRadioGroup",""]],hostAttrs:["role","radiogroup"],inputs:{name:"name"},features:[Lr([{provide:ha,useExisting:Gi(()=>t),multi:!0}])]}),t})(),IH=(()=>{class t{constructor(e,i,r,o,s){this._group=e,this._label=i,this._renderer=r,this._element=o,this._cd=s,this._value=null,this._group.register(this),this.updateDisabled()}set value(e){this._value=e;const i=e?e.toString():"";this._renderer.setProperty(this._element.nativeElement,"value",i),this._group.onRadioValueUpdate()}set disabled(e){this._disabled=!1!==e,this.updateDisabled()}set focused(e){this._label&&(this._label.focused=e),e||this._group.onTouched()}get checked(){return this._checked}get disabled(){return this._group.disabled||this._disabled}get value(){return this._value}get nameAttr(){return this.name||this._group.name}ngOnDestroy(){this._group.unregister(this)}onChange(){this._group.onRadioChange(this)}updateValue(e){this.value!==e&&this._cd.markForCheck(),this._checked=this.value===e,this._label.active=this._checked}updateDisabled(){this._label.disabled=this.disabled}}return t.\u0275fac=function(e){return new(e||t)(le(N3),le(AC),le(Ss),le(ti),le(qo))},t.\u0275dir=Zt({type:t,selectors:[["","ngbButton","","type","radio"]],hostVars:3,hostBindings:function(e,i){1&e&&ye("change",function(){return i.onChange()})("focus",function(){return i.focused=!0})("blur",function(){return i.focused=!1}),2&e&&dc("checked",i.checked)("disabled",i.disabled)("name",i.nameAttr)},inputs:{value:"value",disabled:"disabled",name:"name"}}),t})(),NH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({}),t})(),PH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})(),LH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({}),t})();var ur=(()=>(function(t){t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown"}(ur||(ur={})),ur))();const FC=(t,n)=>!!n&&n.some(e=>e.contains(t)),VH=(t,n)=>!n||null!=function kIe(t,n){return!n||typeof t.closest>"u"?null:t.closest(n)}(t,n),sNe=typeof navigator<"u"&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent)),aNe=t=>sNe?()=>setTimeout(()=>t(),100):t;function Ey(t,n,e,i,r,o,s,a){e&&t.runOutsideAngular(aNe(()=>{const c=Es(n,"keydown").pipe(yo(r),ns(h=>h.which===ur.Escape),is(h=>h.preventDefault())),u=Es(n,"mousedown").pipe(yn(h=>{const f=h.target;return 2!==h.button&&!FC(f,s)&&("inside"===e?FC(f,o)&&VH(f,a):"outside"===e?!FC(f,o):VH(f,a)||!FC(f,o))}),yo(r)),d=Es(n,"mouseup").pipe(D3(u),ns(([h,f])=>f),T3(0),yo(r));_H([c.pipe(yn(h=>0)),d.pipe(yn(h=>1))]).subscribe(h=>t.run(()=>i(h)))}))}const HH=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function zH(t){const n=Array.from(t.querySelectorAll(HH)).filter(e=>-1!==e.tabIndex);return[n[0],n[n.length-1]]}const cNe=/\s+/,GH=new class lNe{getAllStyles(n){return window.getComputedStyle(n)}getStyle(n,e){return this.getAllStyles(n)[e]}isStaticPositioned(n){return"static"===(this.getStyle(n,"position")||"static")}offsetParent(n){let e=n.offsetParent||document.documentElement;for(;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement}position(n,e=!0){let i,r={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(n,"position"))i=n.getBoundingClientRect(),i={top:i.top,bottom:i.bottom,left:i.left,right:i.right,height:i.height,width:i.width};else{const o=this.offsetParent(n);i=this.offset(n,!1),o!==document.documentElement&&(r=this.offset(o,!1)),r.top+=o.clientTop,r.left+=o.clientLeft}return i.top-=r.top,i.bottom-=r.top,i.left-=r.left,i.right-=r.left,e&&(i.top=Math.round(i.top),i.bottom=Math.round(i.bottom),i.left=Math.round(i.left),i.right=Math.round(i.right)),i}offset(n,e=!0){const i=n.getBoundingClientRect(),r_top=window.pageYOffset-document.documentElement.clientTop,r_left=window.pageXOffset-document.documentElement.clientLeft;let o={height:i.height||n.offsetHeight,width:i.width||n.offsetWidth,top:i.top+r_top,bottom:i.bottom+r_top,left:i.left+r_left,right:i.right+r_left};return e&&(o.height=Math.round(o.height),o.width=Math.round(o.width),o.top=Math.round(o.top),o.bottom=Math.round(o.bottom),o.left=Math.round(o.left),o.right=Math.round(o.right)),o}positionElements(n,e,i,r){const[o="top",s="center"]=i.split("-"),a=r?this.offset(n,!1):this.position(n,!1),l=this.getAllStyles(e),c=parseFloat(l.marginTop),u=parseFloat(l.marginBottom),d=parseFloat(l.marginLeft),h=parseFloat(l.marginRight);let f=0,p=0;switch(o){case"top":f=a.top-(e.offsetHeight+c+u);break;case"bottom":f=a.top+a.height;break;case"left":p=a.left-(e.offsetWidth+d+h);break;case"right":p=a.left+a.width}switch(s){case"top":f=a.top;break;case"bottom":f=a.top+a.height-e.offsetHeight;break;case"left":p=a.left;break;case"right":p=a.left+a.width-e.offsetWidth;break;case"center":"top"===o||"bottom"===o?p=a.left+a.width/2-e.offsetWidth/2:f=a.top+a.height/2-e.offsetHeight/2}e.style.transform=`translate(${Math.round(p)}px, ${Math.round(f)}px)`;const m=e.getBoundingClientRect(),g=document.documentElement,v=window.innerHeight||g.clientHeight,y=window.innerWidth||g.clientWidth;return m.left>=0&&m.top>=0&&m.right<=y&&m.bottom<=v}};function Ay(t,n,e,i,r){let o=Array.isArray(e)?e:e.split(cNe);const s=["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"],a=n.classList,l=f=>{const[p,m]=f.split("-"),g=[];return r&&(g.push(`${r}-${p}`),m&&g.push(`${r}-${p}-${m}`),g.forEach(v=>{a.add(v)})),g};r&&s.forEach(f=>{a.remove(`${r}-${f}`)});let c=o.findIndex(f=>"auto"===f);c>=0&&s.forEach(function(f){null==o.find(p=>-1!==p.search("^"+f))&&o.splice(c++,1,f)});const u=n.style;u.position="absolute",u.top="0",u.left="0",u["will-change"]="transform";let d=null,h=!1;for(d of o){let f=l(d);if(GH.positionElements(t,n,d,i)){h=!0;break}r&&f.forEach(p=>{a.remove(p)})}return h||(d=o[0],l(d),GH.positionElements(t,n,d,i)),d}new Date(1882,10,12),new Date(2174,10,25);let ZH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs,ZV]}),t})(),xNe=(()=>{class t{constructor(){this.autoClose=!0,this.placement=["bottom-left","bottom-right","top-left","top-right"]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({factory:function(){return new t},token:t,providedIn:"root"}),t})(),ez=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Zt({type:t,selectors:[["",8,"navbar"]]}),t})(),jf=(()=>{class t{constructor(e){this.elementRef=e,this._disabled=!1}set disabled(e){this._disabled=""===e||!0===e}get disabled(){return this._disabled}}return t.\u0275fac=function(e){return new(e||t)(le(ti))},t.\u0275dir=Zt({type:t,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:2,hostBindings:function(e,i){2&e&&Mn("disabled",i.disabled)},inputs:{disabled:"disabled"}}),t})(),Pf=(()=>{class t{constructor(e,i){this.dropdown=e,this.placement="bottom",this.isOpen=!1,this.nativeElement=i.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(le(Gi(()=>Pu)),le(ti))},t.\u0275dir=Zt({type:t,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(e,i,r){if(1&e&&ni(r,jf,4),2&e){let o;cn(o=un())&&(i.menuItems=o)}},hostVars:5,hostBindings:function(e,i){1&e&&ye("keydown.ArrowUp",function(o){return i.dropdown.onKeyDown(o)})("keydown.ArrowDown",function(o){return i.dropdown.onKeyDown(o)})("keydown.Home",function(o){return i.dropdown.onKeyDown(o)})("keydown.End",function(o){return i.dropdown.onKeyDown(o)})("keydown.Enter",function(o){return i.dropdown.onKeyDown(o)})("keydown.Space",function(o){return i.dropdown.onKeyDown(o)})("keydown.Tab",function(o){return i.dropdown.onKeyDown(o)})("keydown.Shift.Tab",function(o){return i.dropdown.onKeyDown(o)}),2&e&&(ht("x-placement",i.placement),Mn("dropdown-menu",!0)("show",i.dropdown.isOpen()))}}),t})(),LC=(()=>{class t{constructor(e,i){this.dropdown=e,this.nativeElement=i.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(le(Gi(()=>Pu)),le(ti))},t.\u0275dir=Zt({type:t,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,i){2&e&&ht("aria-expanded",i.dropdown.isOpen())}}),t})(),rm=(()=>{class t extends LC{constructor(e,i){super(e,i)}}return t.\u0275fac=function(e){return new(e||t)(le(Gi(()=>Pu)),le(ti))},t.\u0275dir=Zt({type:t,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,i){1&e&&ye("click",function(){return i.dropdown.toggle()})("keydown.ArrowUp",function(o){return i.dropdown.onKeyDown(o)})("keydown.ArrowDown",function(o){return i.dropdown.onKeyDown(o)})("keydown.Home",function(o){return i.dropdown.onKeyDown(o)})("keydown.End",function(o){return i.dropdown.onKeyDown(o)})("keydown.Tab",function(o){return i.dropdown.onKeyDown(o)})("keydown.Shift.Tab",function(o){return i.dropdown.onKeyDown(o)}),2&e&&ht("aria-expanded",i.dropdown.isOpen())},features:[Lr([{provide:LC,useExisting:Gi(()=>t)}]),vi]}),t})(),Pu=(()=>{class t{constructor(e,i,r,o,s,a,l){this._changeDetector=e,this._document=r,this._ngZone=o,this._elementRef=s,this._renderer=a,this._closed$=new tr,this._bodyContainer=null,this._open=!1,this.openChange=new Ke,this.placement=i.placement,this.container=i.container,this.autoClose=i.autoClose,this.display=l?"static":"dynamic",this._zoneSubscription=o.onStable.subscribe(()=>{this._positionMenu()})}ngAfterContentInit(){this._ngZone.onStable.pipe(Sl(1)).subscribe(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()})}ngOnChanges(e){e.container&&this._open&&this._applyContainer(this.container),e.placement&&!e.placement.isFirstChange&&this._applyPlacementClasses()}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&this._anchor.nativeElement.focus())}_setCloseHandlers(){Ey(this._ngZone,this._document,this.autoClose,e=>{this.close(),0===e&&this._anchor.nativeElement.focus()},this._closed$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._closed$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this._resetContainer(),this._closed$.next(),this._zoneSubscription.unsubscribe()}onKeyDown(e){const i=e.which,r=this._getMenuElements();let o=-1,s=null;const a=this._isEventFromToggle(e);if(!a&&r.length&&r.forEach((l,c)=>{l.contains(e.target)&&(s=l),l===this._document.activeElement&&(o=c)}),i!==ur.Space&&i!==ur.Enter){if(i!==ur.Tab){if(a||s){if(this.open(),r.length){switch(i){case ur.ArrowDown:o=Math.min(o+1,r.length-1);break;case ur.ArrowUp:if(this._isDropup()&&-1===o){o=r.length-1;break}o=Math.max(o-1,0);break;case ur.Home:o=0;break;case ur.End:o=r.length-1}r[o].focus()}e.preventDefault()}}else if(e.target&&this.isOpen()&&this.autoClose){if(this._anchor.nativeElement===e.target)return void("body"!==this.container||e.shiftKey?e.shiftKey&&this.close():(this._renderer.setAttribute(this._menu.nativeElement,"tabindex","0"),this._menu.nativeElement.focus(),this._renderer.removeAttribute(this._menu.nativeElement,"tabindex")));if("body"===this.container){const l=this._menu.nativeElement.querySelectorAll(HH);e.shiftKey&&e.target===l[0]?(this._anchor.nativeElement.focus(),e.preventDefault()):!e.shiftKey&&e.target===l[l.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else Es(e.target,"focusout").pipe(Sl(1)).subscribe(({relatedTarget:l})=>{this._elementRef.nativeElement.contains(l)||this.close()})}}else s&&(!0===this.autoClose||"inside"===this.autoClose)&&Es(s,"click").pipe(Sl(1)).subscribe(()=>this.close())}_isDropup(){return this._elementRef.nativeElement.classList.contains("dropup")}_isEventFromToggle(e){return this._anchor.nativeElement.contains(e.target)}_getMenuElements(){const e=this._menu;return null==e?[]:e.menuItems.filter(i=>!i.disabled).map(i=>i.elementRef.nativeElement)}_positionMenu(){const e=this._menu;this.isOpen()&&e&&this._applyPlacementClasses("dynamic"===this.display?Ay(this._anchor.nativeElement,this._bodyContainer||this._menu.nativeElement,this.placement,"body"===this.container):this._getFirstPlacement(this.placement))}_getFirstPlacement(e){return Array.isArray(e)?e[0]:e.split(" ")[0]}_resetContainer(){const e=this._renderer;if(this._menu){const r=this._menu.nativeElement;e.appendChild(this._elementRef.nativeElement,r),e.removeStyle(r,"position"),e.removeStyle(r,"transform")}this._bodyContainer&&(e.removeChild(this._document.body,this._bodyContainer),this._bodyContainer=null)}_applyContainer(e=null){if(this._resetContainer(),"body"===e){const i=this._renderer,r=this._menu.nativeElement,o=this._bodyContainer=this._bodyContainer||i.createElement("div");i.setStyle(o,"position","absolute"),i.setStyle(r,"position","static"),i.setStyle(o,"z-index","1050"),i.appendChild(o,r),i.appendChild(this._document.body,o)}}_applyPlacementClasses(e){const i=this._menu;if(i){e||(e=this._getFirstPlacement(this.placement));const r=this._renderer,o=this._elementRef.nativeElement;r.removeClass(o,"dropup"),r.removeClass(o,"dropdown"),i.placement="static"===this.display?null:e;const s=-1!==e.search("^top")?"dropup":"dropdown";r.addClass(o,s);const a=this._bodyContainer;a&&(r.removeClass(a,"dropup"),r.removeClass(a,"dropdown"),r.addClass(a,s))}}}return t.\u0275fac=function(e){return new(e||t)(le(qo),le(xNe),le(Ir),le(Wi),le(ti),le(Ss),le(ez,8))},t.\u0275dir=Zt({type:t,selectors:[["","ngbDropdown",""]],contentQueries:function(e,i,r){if(1&e&&(ni(r,Pf,5),ni(r,LC,5)),2&e){let o;cn(o=un())&&(i._menu=o.first),cn(o=un())&&(i._anchor=o.first)}},hostVars:2,hostBindings:function(e,i){2&e&&Mn("show",i.isOpen())},inputs:{_open:["open","_open"],placement:"placement",container:"container",autoClose:"autoClose",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],features:[Hn]}),t})(),tz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({}),t})(),nz=(()=>{class t{constructor(e){this.backdrop=!0,this.keyboard=!0,this.animation=e.animation}}return t.\u0275fac=function(e){return new(e||t)(ct(pa))},t.\u0275prov=Et({factory:function(){return new t(ct(pa))},token:t,providedIn:"root"}),t})();class om{constructor(n,e,i){this.nodes=n,this.viewRef=e,this.componentRef=i}}class V3{constructor(n,e,i,r,o,s,a){this._type=n,this._injector=e,this._viewContainerRef=i,this._renderer=r,this._ngZone=o,this._componentFactoryResolver=s,this._applicationRef=a,this._windowRef=null,this._contentRef=null}open(n,e,i=!1){this._windowRef||(this._contentRef=this._getContentRef(n,e),this._windowRef=this._viewContainerRef.createComponent(this._componentFactoryResolver.resolveComponentFactory(this._type),this._viewContainerRef.length,this._injector,this._contentRef.nodes));const{nativeElement:r}=this._windowRef.location,s=this._ngZone.onStable.asObservable().pipe(Sl(1)).pipe(nt(()=>this._ngZone.run(()=>ma(r,({classList:a})=>a.add("show"),{animation:i,runningTransition:"continue"}))));return{windowRef:this._windowRef,transition$:s}}close(n=!1){return this._windowRef?ma(this._windowRef.location.nativeElement,({classList:e})=>e.remove("show"),{animation:n,runningTransition:"stop"}).pipe(is(()=>{var e;this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),null!==(e=this._contentRef)&&void 0!==e&&e.viewRef&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):$n(void 0)}_getContentRef(n,e){if(n){if(n instanceof Si){const i=n.createEmbeddedView(e);return this._applicationRef.attachView(i),new om([i.rootNodes],i)}return new om([[this._renderer.createText(`${n}`)]])}return new om([])}}const wNe=()=>{};let iz=(()=>{class t{constructor(e){this._document=e}compensate(){const e=this._getWidth();return this._isPresent(e)?this._adjustBody(e):wNe}_adjustBody(e){const i=this._document.body,r=i.style.paddingRight,o=parseFloat(window.getComputedStyle(i)["padding-right"]);return i.style["padding-right"]=`${o+e}px`,()=>i.style["padding-right"]=r}_isPresent(e){const i=this._document.body.getBoundingClientRect();return window.innerWidth-(i.left+i.right)>=e-.1*e}_getWidth(){const e=this._document.createElement("div");e.className="modal-scrollbar-measure";const i=this._document.body;i.appendChild(e);const r=e.getBoundingClientRect().width-e.clientWidth;return i.removeChild(e),r}}return t.\u0275fac=function(e){return new(e||t)(ct(Ir))},t.\u0275prov=Et({factory:function(){return new t(ct(Ir))},token:t,providedIn:"root"}),t})(),CNe=(()=>{class t{constructor(e,i){this._el=e,this._zone=i}ngOnInit(){this._zone.onStable.asObservable().pipe(Sl(1)).subscribe(()=>{ma(this._el.nativeElement,({classList:e})=>e.add("show"),{animation:this.animation,runningTransition:"continue"})})}hide(){return ma(this._el.nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return t.\u0275fac=function(e){return new(e||t)(le(ti),le(Wi))},t.\u0275cmp=Rt({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:6,hostBindings:function(e,i){2&e&&(Su("modal-backdrop"+(i.backdropClass?" "+i.backdropClass:"")),Mn("show",!i.animation)("fade",i.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})();class rz{close(n){}dismiss(n){}}class kNe{constructor(n,e,i,r){this._windowCmptRef=n,this._contentRef=e,this._backdropCmptRef=i,this._beforeDismiss=r,this._closed=new tr,this._dismissed=new tr,this._hidden=new tr,n.instance.dismissEvent.subscribe(o=>{this.dismiss(o)}),this.result=new Promise((o,s)=>{this._resolve=o,this._reject=s}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(yo(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(yo(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(n){this._windowCmptRef&&(this._closed.next(n),this._resolve(n),this._removeModalElements())}_dismiss(n){this._dismissed.next(n),this._reject(n),this._removeModalElements()}dismiss(n){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();e&&e.then?e.then(i=>{!1!==i&&this._dismiss(n)},()=>{}):!1!==e&&this._dismiss(n)}else this._dismiss(n)}_removeModalElements(){const n=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():$n(void 0);n.subscribe(()=>{const{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),kC(n,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var Ny=(()=>(function(t){t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC"}(Ny||(Ny={})),Ny))();let SNe=(()=>{class t{constructor(e,i,r){this._document=e,this._elRef=i,this._zone=r,this._closed$=new tr,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new Ke,this.shown=new tr,this.hidden=new tr}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement}ngAfterViewInit(){this._show()}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:e}=this._elRef,i={animation:this.animation,runningTransition:"stop"},s=kC(ma(e,()=>e.classList.remove("show"),i),ma(this._dialogEl.nativeElement,()=>{},i));return s.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),s}_show(){const{nativeElement:e}=this._elRef,i={animation:this.animation,runningTransition:"continue"};kC(ma(e,()=>e.classList.add("show"),i),ma(this._dialogEl.nativeElement,()=>{},i)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:e}=this._elRef;this._zone.runOutsideAngular(()=>{Es(e,"keydown").pipe(yo(this._closed$),ns(r=>r.which===ur.Escape)).subscribe(r=>{this.keyboard?requestAnimationFrame(()=>{r.defaultPrevented||this._zone.run(()=>this.dismiss(Ny.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let i=!1;Es(this._dialogEl.nativeElement,"mousedown").pipe(yo(this._closed$),is(()=>i=!1),zl(()=>Es(e,"mouseup").pipe(yo(this._closed$),Sl(1))),ns(({target:r})=>e===r)).subscribe(()=>{i=!0}),Es(e,"click").pipe(yo(this._closed$)).subscribe(({target:r})=>{e===r&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!i&&this._zone.run(()=>this.dismiss(Ny.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:e}=this._elRef;if(!e.contains(document.activeElement)){const i=e.querySelector("[ngbAutofocus]"),r=zH(e)[0];(i||r||e).focus()}}_restoreFocus(){const e=this._document.body,i=this._elWithFocus;let r;r=i&&i.focus&&e.contains(i)?i:e,this._zone.runOutsideAngular(()=>{setTimeout(()=>r.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&ma(this._elRef.nativeElement,({classList:e})=>(e.add("modal-static"),()=>e.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return t.\u0275fac=function(e){return new(e||t)(le(Ir),le(ti),le(Wi))},t.\u0275cmp=Rt({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(e,i){if(1&e&&io(b3e,7),2&e){let r;cn(r=un())&&(i._dialogEl=r.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(e,i){2&e&&(ht("aria-modal",!0)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy),Su("modal d-block"+(i.windowClass?" "+i.windowClass:"")),Mn("fade",i.animation))},inputs:{backdrop:"backdrop",keyboard:"keyboard",animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",centered:"centered",scrollable:"scrollable",size:"size",windowClass:"windowClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:lv,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(e,i){1&e&&(Cu(),b(0,"div",0,1)(2,"div",2),ku(3),x()()),2&e&&Su("modal-dialog"+(i.size?" modal-"+i.size:"")+(i.centered?" modal-dialog-centered":"")+(i.scrollable?" modal-dialog-scrollable":""))},styles:["ngb-modal-window .component-host-scrollable{-ms-flex-direction:column;display:-ms-flexbox;display:flex;flex-direction:column;overflow:hidden}"],encapsulation:2}),t})(),oz=(()=>{class t{constructor(e,i,r,o,s,a){this._applicationRef=e,this._injector=i,this._document=r,this._scrollBar=o,this._rendererFactory=s,this._ngZone=a,this._activeWindowCmptHasChanged=new tr,this._ariaHiddenValues=new Map,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","keyboard","scrollable","size","windowClass"],this._windowCmpts=[],this._activeInstances=new Ke,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const l=this._windowCmpts[this._windowCmpts.length-1];((t,n,e,i=!1)=>{t.runOutsideAngular(()=>{const r=Es(n,"focusin").pipe(yo(e),yn(o=>o.target));Es(n,"keydown").pipe(yo(e),ns(o=>o.which===ur.Tab),D3(r)).subscribe(([o,s])=>{const[a,l]=zH(n);(s===a||s===n)&&o.shiftKey&&(l.focus(),o.preventDefault()),s===l&&!o.shiftKey&&(a.focus(),o.preventDefault())}),i&&Es(n,"click").pipe(yo(e),D3(r),yn(o=>o[1])).subscribe(o=>o.focus())})})(this._ngZone,l.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(l.location.nativeElement)}})}open(e,i,r,o){const s=o.container instanceof HTMLElement?o.container:Ff(o.container)?this._document.querySelector(o.container):this._document.body,a=this._rendererFactory.createRenderer(null,null),l=this._scrollBar.compensate(),c=()=>{this._modalRefs.length||(a.removeClass(this._document.body,"modal-open"),this._revertAriaHidden())};if(!s)throw new Error(`The specified modal container "${o.container||"body"}" was not found in the DOM.`);const u=new rz,d=this._getContentRef(e,o.injector||i,r,u,o);let h=!1!==o.backdrop?this._attachBackdrop(e,s):void 0,f=this._attachWindowComponent(e,s,d),p=new kNe(f,d,h,o.beforeDismiss);return this._registerModalRef(p),this._registerWindowCmpt(f),p.result.then(l,l),p.result.then(c,c),u.close=m=>{p.close(m)},u.dismiss=m=>{p.dismiss(m)},this._applyWindowOptions(f.instance,o),1===this._modalRefs.length&&a.addClass(this._document.body,"modal-open"),h&&h.instance&&this._applyBackdropOptions(h.instance,o),p}get activeInstances(){return this._activeInstances}dismissAll(e){this._modalRefs.forEach(i=>i.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e,i){let o=e.resolveComponentFactory(CNe).create(this._injector);return this._applicationRef.attachView(o.hostView),i.appendChild(o.location.nativeElement),o}_attachWindowComponent(e,i,r){let s=e.resolveComponentFactory(SNe).create(this._injector,r.nodes);return this._applicationRef.attachView(s.hostView),i.appendChild(s.location.nativeElement),s}_applyWindowOptions(e,i){this._windowAttributes.forEach(r=>{Ff(i[r])&&(e[r]=i[r])})}_applyBackdropOptions(e,i){this._backdropAttributes.forEach(r=>{Ff(i[r])&&(e[r]=i[r])})}_getContentRef(e,i,r,o,s){return r?r instanceof Si?this._createFromTemplateRef(r,o):function DC(t){return"string"==typeof t}(r)?this._createFromString(r):this._createFromComponent(e,i,r,o,s):new om([])}_createFromTemplateRef(e,i){const o=e.createEmbeddedView({$implicit:i,close(s){i.close(s)},dismiss(s){i.dismiss(s)}});return this._applicationRef.attachView(o),new om([o.rootNodes],o)}_createFromString(e){const i=this._document.createTextNode(`${e}`);return new om([[i]])}_createFromComponent(e,i,r,o,s){const a=e.resolveComponentFactory(r),l=Rs.create({providers:[{provide:rz,useValue:o}],parent:i}),c=a.create(l),u=c.location.nativeElement;return s.scrollable&&u.classList.add("component-host-scrollable"),this._applicationRef.attachView(c.hostView),new om([[u]],c.hostView,c)}_setAriaHidden(e){const i=e.parentElement;i&&e!==this._document.body&&(Array.from(i.children).forEach(r=>{r!==e&&"SCRIPT"!==r.nodeName&&(this._ariaHiddenValues.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((e,i)=>{e?i.setAttribute("aria-hidden",e):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(e){const i=()=>{const r=this._modalRefs.indexOf(e);r>-1&&(this._modalRefs.splice(r,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(e),this._activeInstances.emit(this._modalRefs),e.result.then(i,i)}_registerWindowCmpt(e){this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(()=>{const i=this._windowCmpts.indexOf(e);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}}return t.\u0275fac=function(e){return new(e||t)(ct(Au),ct(Rs),ct(Ir),ct(iz),ct(Lp),ct(Wi))},t.\u0275prov=Et({factory:function(){return new t(ct(Au),ct(Dx),ct(Ir),ct(iz),ct(Lp),ct(Wi))},token:t,providedIn:"root"}),t})(),H3=(()=>{class t{constructor(e,i,r,o){this._moduleCFR=e,this._injector=i,this._modalStack=r,this._config=o}open(e,i={}){const r=Object.assign({},this._config,i);return this._modalStack.open(this._moduleCFR,this._injector,e,r)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return t.\u0275fac=function(e){return new(e||t)(ct($c),ct(Rs),ct(oz),ct(nz))},t.\u0275prov=Et({factory:function(){return new t(ct($c),ct(Dx),ct(oz),ct(nz))},token:t,providedIn:"root"}),t})(),sz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({providers:[H3]}),t})(),DNe=(()=>{class t{constructor(e){this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist",this.keyboard=!1,this.animation=e.animation}}return t.\u0275fac=function(e){return new(e||t)(ct(pa))},t.\u0275prov=Et({factory:function(){return new t(ct(pa))},token:t,providedIn:"root"}),t})();const az=t=>Ff(t)&&""!==t;let TNe=0,lz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(le(Si))},t.\u0275dir=Zt({type:t,selectors:[["ng-template","ngbNavContent",""]]}),t})(),sm=(()=>{class t{constructor(e,i){this.elementRef=i,this.disabled=!1,this.shown=new Ke,this.hidden=new Ke,this._nav=e}ngAfterContentChecked(){this.contentTpl=this.contentTpls.first}ngOnInit(){Ff(this.domId)||(this.domId="ngb-nav-"+TNe++)}get active(){return this._nav.activeId===this.id}get id(){return az(this._id)?this._id:this.domId}get panelDomId(){return`${this.domId}-panel`}isPanelInDom(){return(Ff(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}}return t.\u0275fac=function(e){return new(e||t)(le(Gi(()=>am)),le(ti))},t.\u0275dir=Zt({type:t,selectors:[["","ngbNavItem",""]],contentQueries:function(e,i,r){if(1&e&&ni(r,lz,4),2&e){let o;cn(o=un())&&(i.contentTpls=o)}},hostVars:2,hostBindings:function(e,i){2&e&&Mn("nav-item",!0)},inputs:{disabled:"disabled",domId:"domId",destroyOnHide:"destroyOnHide",_id:["ngbNavItem","_id"]},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbNavItem"]}),t})(),am=(()=>{class t{constructor(e,i,r,o){this.role=e,this._cd=r,this._document=o,this.activeIdChange=new Ke,this.shown=new Ke,this.hidden=new Ke,this.destroy$=new tr,this.navItemChange$=new tr,this.navChange=new Ke,this.animation=i.animation,this.destroyOnHide=i.destroyOnHide,this.orientation=i.orientation,this.roles=i.roles,this.keyboard=i.keyboard}click(e){e.disabled||this._updateActiveId(e.id)}onKeyDown(e){if("tablist"!==this.roles||!this.keyboard)return;const i=e.which,r=this.links.filter(a=>!a.navItem.disabled),{length:o}=r;let s=-1;if(r.forEach((a,l)=>{a.elRef.nativeElement===this._document.activeElement&&(s=l)}),o){switch(i){case ur.ArrowLeft:if("vertical"===this.orientation)return;s=(s-1+o)%o;break;case ur.ArrowRight:if("vertical"===this.orientation)return;s=(s+1)%o;break;case ur.ArrowDown:if("horizontal"===this.orientation)return;s=(s+1)%o;break;case ur.ArrowUp:if("horizontal"===this.orientation)return;s=(s-1+o)%o;break;case ur.Home:s=0;break;case ur.End:s=o-1}"changeWithArrows"===this.keyboard&&this.select(r[s].navItem.id),r[s].elRef.nativeElement.focus(),e.preventDefault()}}select(e){this._updateActiveId(e,!1)}ngAfterContentInit(){if(!Ff(this.activeId)){const e=this.items.first?this.items.first.id:null;az(e)&&(this._updateActiveId(e,!1),this._cd.detectChanges())}this.items.changes.pipe(yo(this.destroy$)).subscribe(()=>this._notifyItemChanged(this.activeId))}ngOnChanges({activeId:e}){e&&!e.firstChange&&this._notifyItemChanged(e.currentValue)}ngOnDestroy(){this.destroy$.next()}_updateActiveId(e,i=!0){if(this.activeId!==e){let r=!1;i&&this.navChange.emit({activeId:this.activeId,nextId:e,preventDefault:()=>{r=!0}}),r||(this.activeId=e,this.activeIdChange.emit(e),this._notifyItemChanged(e))}}_notifyItemChanged(e){this.navItemChange$.next(this._getItemById(e))}_getItemById(e){return this.items&&this.items.find(i=>i.id===e)||null}}return t.\u0275fac=function(e){return new(e||t)(Ah("role"),le(DNe),le(qo),le(Ir))},t.\u0275dir=Zt({type:t,selectors:[["","ngbNav",""]],contentQueries:function(e,i,r){if(1&e&&(ni(r,sm,4),ni(r,fv,5)),2&e){let o;cn(o=un())&&(i.items=o),cn(o=un())&&(i.links=o)}},hostVars:6,hostBindings:function(e,i){1&e&&ye("keydown.arrowLeft",function(o){return i.onKeyDown(o)})("keydown.arrowRight",function(o){return i.onKeyDown(o)})("keydown.arrowDown",function(o){return i.onKeyDown(o)})("keydown.arrowUp",function(o){return i.onKeyDown(o)})("keydown.Home",function(o){return i.onKeyDown(o)})("keydown.End",function(o){return i.onKeyDown(o)}),2&e&&(ht("aria-orientation","vertical"===i.orientation&&"tablist"===i.roles?"vertical":void 0)("role",i.role?i.role:i.roles?"tablist":void 0),Mn("nav",!0)("flex-column","vertical"===i.orientation))},inputs:{animation:"animation",destroyOnHide:"destroyOnHide",orientation:"orientation",roles:"roles",keyboard:"keyboard",activeId:"activeId"},outputs:{activeIdChange:"activeIdChange",shown:"shown",hidden:"hidden",navChange:"navChange"},exportAs:["ngbNav"],features:[Hn]}),t})(),fv=(()=>{class t{constructor(e,i,r,o){this.role=e,this.navItem=i,this.nav=r,this.elRef=o}hasNavItemClass(){return this.navItem.elementRef.nativeElement.nodeType===Node.COMMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(Ah("role"),le(sm),le(am),le(ti))},t.\u0275dir=Zt({type:t,selectors:[["a","ngbNavLink",""]],hostAttrs:["href",""],hostVars:14,hostBindings:function(e,i){1&e&&ye("click",function(o){return i.nav.click(i.navItem),o.preventDefault()}),2&e&&(dc("id",i.navItem.domId),ht("role",i.role?i.role:i.nav.roles?"tab":void 0)("tabindex",i.navItem.disabled?-1:void 0)("aria-controls",i.navItem.isPanelInDom()?i.navItem.panelDomId:null)("aria-selected",i.navItem.active)("aria-disabled",i.navItem.disabled),Mn("nav-link",!0)("nav-item",i.hasNavItemClass())("active",i.navItem.active)("disabled",i.navItem.disabled))}}),t})(),cz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})(),gz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})();class NNe{constructor(n,e){this.open=n,this.close=e,e||(this.close=n)}isManual(){return"manual"===this.open||"manual"===this.close}}const FNe={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},vz=t=>t>0?T3(t):n=>n;let bz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})(),_z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})(),xz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})(),Sz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})(),Dz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})(),QNe=(()=>{class t{constructor(e){this.autoClose=!0,this.placement="auto",this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0,this.animation=e.animation}}return t.\u0275fac=function(e){return new(e||t)(ct(pa))},t.\u0275prov=Et({factory:function(){return new t(ct(pa))},token:t,providedIn:"root"}),t})(),ZNe=0,eFe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(e,i){2&e&&(dc("id",i.id),Su("tooltip"+(i.tooltipClass?" "+i.tooltipClass:"")),Mn("fade",i.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},ngContentSelectors:lv,decls:3,vars:0,consts:[[1,"arrow"],[1,"tooltip-inner"]],template:function(e,i){1&e&&(Cu(),ge(0,"div",0),b(1,"div",1),ku(2),x())},styles:["ngb-tooltip-window.bs-tooltip-bottom .arrow,ngb-tooltip-window.bs-tooltip-top .arrow{left:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-bottom-left .arrow,ngb-tooltip-window.bs-tooltip-top-left .arrow{left:1em}ngb-tooltip-window.bs-tooltip-bottom-right .arrow,ngb-tooltip-window.bs-tooltip-top-right .arrow{left:auto;right:.8rem}ngb-tooltip-window.bs-tooltip-left .arrow,ngb-tooltip-window.bs-tooltip-right .arrow{top:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-left-top .arrow,ngb-tooltip-window.bs-tooltip-right-top .arrow{top:.4rem}ngb-tooltip-window.bs-tooltip-left-bottom .arrow,ngb-tooltip-window.bs-tooltip-right-bottom .arrow{bottom:.4rem;top:auto}"],encapsulation:2,changeDetection:0}),t})(),tFe=(()=>{class t{constructor(e,i,r,o,s,a,l,c,u,d){this._elementRef=e,this._renderer=i,this._ngZone=l,this._document=c,this._changeDetector=u,this.shown=new Ke,this.hidden=new Ke,this._ngbTooltipWindowId="ngb-tooltip-"+ZNe++,this._windowRef=null,this.animation=a.animation,this.autoClose=a.autoClose,this.placement=a.placement,this.triggers=a.triggers,this.container=a.container,this.disableTooltip=a.disableTooltip,this.tooltipClass=a.tooltipClass,this.openDelay=a.openDelay,this.closeDelay=a.closeDelay,this._popupService=new V3(eFe,r,s,i,this._ngZone,o,d),this._zoneSubscription=l.onStable.subscribe(()=>{this._windowRef&&Ay(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container,"bs-tooltip")})}set ngbTooltip(e){this._ngbTooltip=e,!e&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(e){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:i,transition$:r}=this._popupService.open(this._ngbTooltip,e,this.animation);this._windowRef=i,this._windowRef.instance.animation=this.animation,this._windowRef.instance.tooltipClass=this.tooltipClass,this._windowRef.instance.id=this._ngbTooltipWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),Ey(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),r.subscribe(()=>this.shown.emit())}}close(){null!=this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(this.animation).subscribe(()=>{this._windowRef=null,this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=function yz(t,n,e,i,r,o,s=0,a=0){const l=function ONe(t,n=FNe){const e=(t||"").trim();if(0===e.length)return[];const i=e.split(/\s+/).map(o=>o.split(":")).map(o=>{let s=n[o[0]]||o;return new NNe(s[0],s[1])}),r=i.filter(o=>o.isManual());if(r.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===r.length&&i.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return i}(e);if(1===l.length&&l[0].isManual())return()=>{};const c=function jNe(t,n,e,i){return new rn(r=>{const o=[],s=()=>r.next(!0),a=()=>r.next(!1),l=()=>r.next(!i());return e.forEach(c=>{c.open===c.close?o.push(t.listen(n,c.open,l)):o.push(t.listen(n,c.open,s),t.listen(n,c.close,a))}),()=>{o.forEach(c=>c())}})}(t,n,l,i).pipe(function PNe(t,n,e){return i=>{let r=null;const o=i.pipe(yn(l=>({open:l})),ns(l=>{const c=e();return c===l.open||r&&r.open!==c?(r&&r.open!==l.open&&(r=null),!1):(r=l,!0)}),We());return Tt(o.pipe(ns(l=>l.open),vz(t)),o.pipe(ns(l=>!l.open),vz(n))).pipe(ns(l=>l===r&&(r=null,l.open!==e())),yn(l=>l.open))}}(s,a,i)).subscribe(u=>u?r():o());return()=>c.unsubscribe()}(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:e}){e&&this.isOpen()&&(this._windowRef.instance.tooltipClass=e.currentValue)}ngOnDestroy(){this.close(),this._unregisterListenersFn&&this._unregisterListenersFn(),this._zoneSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(le(ti),le(Ss),le(Rs),le($c),le(nl),le(QNe),le(Wi),le(Ir),le(qo),le(Au))},t.\u0275dir=Zt({type:t,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",triggers:"triggers",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],features:[Hn]}),t})(),Tz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({}),t})();new zn("live announcer delay",{providedIn:"root",factory:function rFe(){return 100}});let Mz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})();const lFe=[AH,MH,NH,PH,LH,ZH,tz,sz,cz,gz,bz,_z,xz,Sz,Dz,Tz,Mz];let cFe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[lFe,AH,MH,NH,PH,LH,ZH,tz,sz,cz,gz,bz,_z,xz,Sz,Dz,Tz,Mz]}),t})(),Iz=(()=>{class t{constructor(){K(this,"restrictedPages",new Map([["users",oi.USER_ROLE_ADMIN],["config",oi.USER_ROLE_DEVELOPER],["modules",oi.USER_ROLE_DEVELOPER],["apiexplorer",oi.USER_ROLE_DEVELOPER]]))}}return K(t,"\u0275fac",function(e){return new(e||t)}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function uFe(t,n){if(1&t&&(ta(0,5),b(1,"a",27),ge(2,"img",28),b(3,"span",12),I(4),x()(),na()),2&t){const e=j().$implicit;k("ngbNavItem",e.navItem),w(1),k("routerLink",e.routerLink),w(1),$p("src","/static/svg/",e.icon,".svg",y1),w(2),Dt(e.label)}}function dFe(t,n){1&t&&ge(0,"hr")}function hFe(t,n){if(1&t&&(J(0,uFe,5,4,"ng-container",26),J(1,dFe,1,0,"hr",25)),2&t){const e=n.$implicit;k("ngIf",j().getSessionRole()<=e.minRole),w(1),k("ngIf",e.separator)}}function fFe(t,n){if(1&t&&(b(0,"div",29)(1,"h2",30),ge(2,"img",31),I(3,"An error has occurred!"),x(),b(4,"h6",32),I(5),x(),b(6,"p"),I(7,"Please refresh the page to try again."),x()()),2&t){const e=j();w(5),Dt(e.error)}}function pFe(t,n){1&t&&(b(0,"div",33),ge(1,"img",34),x())}function mFe(t,n){1&t&&ge(0,"router-outlet")}const gFe=function(){return["/"]},vFe=function(){return["/login"]};let yFe=(()=>{class t{constructor(e,i,r,o,s){K(this,"route",void 0),K(this,"router",void 0),K(this,"segment",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"routerSub",void 0),K(this,"segmentRouterSub",void 0),K(this,"loading",!0),K(this,"error",""),K(this,"routes",[{navItem:"status",routerLink:["/status"],label:"Status",minRole:oi.USER_ROLE_READONLY,icon:"status"},{navItem:"users",routerLink:["/users"],label:"User Management",minRole:oi.USER_ROLE_ADMIN,icon:"user-management"},{navItem:"config",routerLink:["/config"],label:"Configuration",minRole:oi.USER_ROLE_DEVELOPER,icon:"configuration"},{navItem:"modules",routerLink:["/modules"],label:"Runtime Modules",minRole:oi.USER_ROLE_DEVELOPER,separator:!0,icon:"runtime-modules"},{navItem:"accounts",routerLink:["/accounts"],label:"Accounts",minRole:oi.USER_ROLE_READONLY,icon:"accounts"},{navItem:"groups",routerLink:["/groups"],label:"Groups",minRole:oi.USER_ROLE_READONLY,icon:"groups"},{navItem:"storage",routerLink:["/storage"],label:"Storage",minRole:oi.USER_ROLE_READONLY,icon:"storage"},{navItem:"leaderboards",routerLink:["/leaderboards"],label:"Leaderboards",minRole:oi.USER_ROLE_READONLY,icon:"leaderboard"},{navItem:"chat",routerLink:["/chat"],label:"Chat Messages",minRole:oi.USER_ROLE_READONLY,icon:"chat"},{navItem:"matches",routerLink:["/matches"],label:"Matches",minRole:oi.USER_ROLE_READONLY,icon:"running-matches"},{navItem:"apiexplorer",routerLink:["/apiexplorer"],label:"API Explorer",minRole:oi.USER_ROLE_DEVELOPER,icon:"api-explorer"}]),this.route=e,this.router=i,this.segment=r,this.consoleService=o,this.authService=s,this.loading=!1,this.routerSub=this.router.events.pipe(function iMe(t){let n=arguments.length,e=Dy;Sa(arguments[arguments.length-1])&&(e=arguments[arguments.length-1],n--);let i=null;n>=2&&(i=arguments[1]);let r=Number.POSITIVE_INFINITY;return n>=3&&(r=arguments[2]),function(s){return s.lift(new rMe(t,i,r,e))}}(2e3)).subscribe(a=>{if(0===a.length)return;const l=a[a.length-1];l instanceof Ww&&(this.loading=!0),l instanceof zh&&(this.loading=!1),l instanceof ry&&(this.loading=!1),l instanceof Xw&&(this.loading=!1,this.error=l.error)}),this.segmentRouterSub=i.events.pipe(function CC(t,n){return e=>e.lift(new lMe(t,n))}((a,l)=>!(l instanceof zh)||a.url===l.url)).subscribe(a=>{})}ngOnInit(){this.route.data.subscribe(e=>{this.error=e.error?e.error:""})}getSessionRole(){return this.authService.sessionRole}getUsername(){return this.authService.username}logout(){this.authService.logout().subscribe(()=>{this.router.navigate(["/login"])})}ngOnDestroy(){this.segmentRouterSub.unsubscribe(),this.routerSub.unsubscribe()}onSidebarNavChange(e){}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(yC),le(xi),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:40,vars:11,consts:[[1,"container-fluid"],[1,"row"],["ngbNav","",1,"col-md-2","d-none","d-md-block","sidebar","position-fixed","px-0",3,"navChange"],["sidenav","ngbNav"],[1,"flex-column","text-uppercase"],[3,"ngbNavItem"],[3,"routerLink"],["src","/static/svg/logo.svg","alt","","width","175","height","",1,"logo-full","mx-3","mt-3","mb-1"],["src","/static/svg/logo-icon.svg","alt","","width","32","height","",1,"logo-icon","mx-3","mt-3","mb-1"],["ngFor","",3,"ngForOf"],["href","https://cloud.heroiclabs.com","target","_blank",1,"nav-link"],["src","/static/svg/heroiccloud.svg","alt","","width","24","height","",1,"link-icon","mr-1"],[1,"link-text"],["href","https://heroiclabs.com/docs","target","_blank",1,"nav-link"],["src","/static/svg/docs.svg","alt","","width","24","height","",1,"link-icon","mr-1"],["href","https://forum.heroiclabs.com","target","_blank",1,"nav-link"],["src","/static/svg/forum.svg","alt","","width","24","height","",1,"link-icon","mr-1"],["href","https://heroiclabs.com/blog","target","_blank",1,"nav-link"],["src","/static/svg/blog.svg","alt","","width","24","height","",1,"link-icon","mr-1"],[1,"logged-in-as","nav-link","disabled"],["ngbNavLink","","routerLinkActive","active",3,"routerLink","click"],["src","/static/svg/log-out.svg","alt","","width","24","height","",1,"mr-1"],["role","main",1,"ml-sm-auto","col-md-10","col-lg-10","main-extended","px-4","py-4"],["class","mx-auto",4,"ngIf"],["class","loading mx-auto",4,"ngIf"],[4,"ngIf"],[3,"ngbNavItem",4,"ngIf"],["ngbNavLink","","routerLinkActive","active",3,"routerLink"],["alt","","width","24","height","",1,"link-icon","mr-1",3,"src"],[1,"mx-auto"],[1,"pb-2"],["src","/static/svg/red-triangle.svg",1,"mr-2",2,"width","1em","height","1em"],[1,"mr-2","d-inline","font-weight-bold"],[1,"loading","mx-auto"],["src","/static/spinner.svg",1,"p-1","loading"]],template:function(e,i){1&e&&(b(0,"div",0)(1,"div",1)(2,"nav",2,3),ye("navChange",function(o){return i.onSidebarNavChange(o)}),b(4,"div",4),ta(5,5),b(6,"a",6),ge(7,"img",7)(8,"img",8),x(),na(),ge(9,"hr"),J(10,hFe,2,2,"ng-template",9),ge(11,"hr"),b(12,"a",10),ge(13,"img",11),b(14,"span",12),I(15,"Heroic Cloud"),x()(),b(16,"a",13),ge(17,"img",14),b(18,"span",12),I(19,"Documentation"),x()(),b(20,"a",15),ge(21,"img",16),b(22,"span",12),I(23,"Forum"),x()(),b(24,"a",17),ge(25,"img",18),b(26,"span",12),I(27,"Heroic Labs Blog"),x()(),ge(28,"hr"),b(29,"div",19),I(30),x(),ta(31,5),b(32,"a",20),ye("click",function(){return i.logout()}),ge(33,"img",21),b(34,"span",12),I(35,"Logout"),x()(),na(),x()(),b(36,"main",22),J(37,fFe,8,1,"div",23),J(38,pFe,2,0,"div",24),J(39,mFe,1,0,"router-outlet",25),x()()()),2&e&&(w(5),k("ngbNavItem","logo"),w(1),k("routerLink",wl(9,gFe)),w(4),k("ngForOf",i.routes),w(20),xn("Logged in as: ",i.getUsername(),""),w(1),k("ngbNavItem","logout"),w(1),k("routerLink",wl(10,vFe)),w(5),k("ngIf",i.error),w(1),k("ngIf",!i.error&&i.loading),w(1),k("ngIf",!i.error&&!i.loading))},dependencies:[Jp,Nu,hy,jn,gn,am,sm,fv],styles:[".nav-link.no-active[_ngcontent-%COMP%]{background-color:transparent!important}.nav-item[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-top-color:#708090}.sidebar[_ngcontent-%COMP%]{background-color:#333564;position:fixed;top:0;bottom:0;left:0;z-index:100;font-family:Montserrat,sans-serif;overflow-y:auto}.sidebar[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{color:#fff;font-size:12px;letter-spacing:.1em;opacity:.6;font-weight:500!important}.sidebar[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover{opacity:1;background-color:#e1e1e11a}.sidebar[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-color:#fff;opacity:.2}.active[_ngcontent-%COMP%]{opacity:1}.nav-link.active[_ngcontent-%COMP%]{opacity:1;color:#a69bff}.navbar-collapse[_ngcontent-%COMP%]{letter-spacing:0;text-transform:capitalize}.logo-icon[_ngcontent-%COMP%]{display:none}.link-text[_ngcontent-%COMP%]{padding-left:4px}@media screen and (max-width: 1200px){.main-extended[_ngcontent-%COMP%]{width:94.333333%!important;max-width:94.333333%!important;flex:0 0 94.333333%!important}.sidebar[_ngcontent-%COMP%]{min-width:65px!important;width:5.66%!important;max-width:5.66%!important}.sidebar[_ngcontent-%COMP%] .logo-full[_ngcontent-%COMP%]{display:none}.sidebar[_ngcontent-%COMP%] .logo-icon[_ngcontent-%COMP%]{display:block}.sidebar[_ngcontent-%COMP%] .link-icon[_ngcontent-%COMP%]{width:30px}.sidebar[_ngcontent-%COMP%] .link-text[_ngcontent-%COMP%], .sidebar[_ngcontent-%COMP%] .logged-in-as[_ngcontent-%COMP%]{display:none}}"]})),t})(),bFe=(()=>{class t{constructor(e,i,r){K(this,"authService",void 0),K(this,"router",void 0),K(this,"globals",void 0),this.authService=e,this.router=i,this.globals=r}canActivate(e,i){return!0}canActivateChild(e,i){const r=this.globals.restrictedPages.get(e.url[0].path);return!(null!==r&&r{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let r;return n.viewContainerRef?(r=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(n.injector||this._defaultInjector||Rs.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=n,r}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}class kFe extends CFe{}class EFe{constructor(n,e){this.dueTime=n,this.scheduler=e}call(n,e){return e.subscribe(new AFe(n,this.dueTime,this.scheduler))}}class AFe extends O{constructor(n,e,i){super(n),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(n){this.clearDebounce(),this.lastValue=n,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(MFe,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:n}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(n)}}clearDebounce(){const n=this.debouncedSubscription;null!==n&&(this.remove(n),n.unsubscribe(),this.debouncedSubscription=null)}}function MFe(t){t.debouncedNext()}function IFe(){}function W3(t){return null==t?IFe:function(){return this.querySelector(t)}}function FFe(){return[]}function Lz(t){return null==t?FFe:function(){return this.querySelectorAll(t)}}function Rz(t){return function(){return this.matches(t)}}function $z(t){return new Array(t.length)}function $C(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}$C.prototype={constructor:$C,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Bz="$";function RFe(t,n,e,i,r,o){for(var a,s=0,l=n.length,c=o.length;sn?1:t>=n?0:NaN}var q3="http://www.w3.org/1999/xhtml";const Vz={svg:"http://www.w3.org/2000/svg",xhtml:q3,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function BC(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Vz.hasOwnProperty(n)?{space:Vz[n],local:t}:t}function ZFe(t){return function(){this.removeAttribute(t)}}function eOe(t){return function(){this.removeAttributeNS(t.space,t.local)}}function tOe(t,n){return function(){this.setAttribute(t,n)}}function nOe(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function iOe(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function rOe(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function Hz(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function sOe(t){return function(){this.style.removeProperty(t)}}function aOe(t,n,e){return function(){this.style.setProperty(t,n,e)}}function lOe(t,n,e){return function(){var i=n.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,e)}}function pv(t,n){return t.style.getPropertyValue(n)||Hz(t).getComputedStyle(t,null).getPropertyValue(n)}function uOe(t){return function(){delete this[t]}}function dOe(t,n){return function(){this[t]=n}}function hOe(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function zz(t){return t.trim().split(/^|\s+/)}function X3(t){return t.classList||new Uz(t)}function Uz(t){this._node=t,this._names=zz(t.getAttribute("class")||"")}function Gz(t,n){for(var e=X3(t),i=-1,r=n.length;++i=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Xz={},Vr=null;function HOe(t,n,e){return t=Yz(t,n,e),function(i){var r=i.relatedTarget;(!r||r!==this&&!(8&r.compareDocumentPosition(this)))&&t.call(this,i)}}function Yz(t,n,e){return function(i){var r=Vr;Vr=i;try{t.call(this,this.__data__,n,e)}finally{Vr=r}}}function UOe(t){return function(){var n=this.__on;if(n){for(var o,e=0,i=-1,r=n.length;e=_&&(_=y+1);!(S=g[_])&&++_=0;)(s=i[r])&&(o&&4^s.compareDocumentPosition(o)&&o.parentNode.insertBefore(s,o),o=s);return this},sort:function GFe(t){function n(d,h){return d&&h?t(d.__data__,h.__data__):!d-!h}t||(t=WFe);for(var e=this._groups,i=e.length,r=new Array(i),o=0;o1?this.each((null==n?sOe:"function"==typeof n?lOe:aOe)(t,n,e??"")):pv(this.node(),t)},property:function fOe(t,n){return arguments.length>1?this.each((null==n?uOe:"function"==typeof n?hOe:dOe)(t,n)):this.node()[t]},classed:function vOe(t,n){var e=zz(t+"");if(arguments.length<2){for(var i=X3(this.node()),r=-1,o=e.length;++r=0&&(e=n.slice(i+1),n=n.slice(0,i)),{type:n,name:e}})}(t+""),o=i.length;if(!(arguments.length<2)){for(a=n?GOe:UOe,null==e&&(e=!1),r=0;r=0&&(i=e.slice(r+1),e=e.slice(0,r)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:i}})}(t+"",e),o=-1,s=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o0)for(var r,o,e=new Array(r),i=0;i>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?zC(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?zC(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=i4e.exec(t))?new vc(n[1],n[2],n[3],1):(n=r4e.exec(t))?new vc(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=o4e.exec(t))?zC(n[1],n[2],n[3],n[4]):(n=s4e.exec(t))?zC(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=a4e.exec(t))?cU(n[1],n[2]/100,n[3]/100,1):(n=l4e.exec(t))?cU(n[1],n[2]/100,n[3]/100,n[4]):iU.hasOwnProperty(t)?sU(iU[t]):"transparent"===t?new vc(NaN,NaN,NaN,0):null}function sU(t){return new vc(t>>16&255,t>>8&255,255&t,1)}function zC(t,n,e,i){return i<=0&&(t=n=e=NaN),new vc(t,n,e,i)}function Ly(t,n,e,i){return 1===arguments.length?function u4e(t){return t instanceof Oy||(t=lm(t)),t?new vc((t=t.rgb()).r,t.g,t.b,t.opacity):new vc}(t):new vc(t,n,e,i??1)}function vc(t,n,e,i){this.r=+t,this.g=+n,this.b=+e,this.opacity=+i}function aU(){return"#"+K3(this.r)+K3(this.g)+K3(this.b)}function lU(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function K3(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function cU(t,n,e,i){return i<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Ud(t,n,e,i)}function uU(t){if(t instanceof Ud)return new Ud(t.h,t.s,t.l,t.opacity);if(t instanceof Oy||(t=lm(t)),!t)return new Ud;if(t instanceof Ud)return t;var n=(t=t.rgb()).r/255,e=t.g/255,i=t.b/255,r=Math.min(n,e,i),o=Math.max(n,e,i),s=NaN,a=o-r,l=(o+r)/2;return a?(s=n===o?(e-i)/a+6*(e0&&l<1?0:s,new Ud(s,a,l,t.opacity)}function Ud(t,n,e,i){this.h=+t,this.s=+n,this.l=+e,this.opacity=+i}function Q3(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function dU(t,n,e,i,r){var o=t*t,s=o*t;return((1-3*t+3*o-s)*n+(4-6*o+3*s)*e+(1+3*t+3*o-3*s)*i+s*r)/6}function Z3(t){return function(){return t}}function fU(t,n){var e=n-t;return e?function hU(t,n){return function(e){return t+e*n}}(t,e):Z3(isNaN(t)?n:t)}J3(Oy,lm,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:rU,formatHex:rU,formatHsl:function c4e(){return uU(this).formatHsl()},formatRgb:oU,toString:oU}),J3(vc,Ly,nU(Oy,{brighter:function(t){return t=null==t?HC:Math.pow(HC,t),new vc(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new vc(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:aU,formatHex:aU,formatRgb:lU,toString:lU})),J3(Ud,function d4e(t,n,e,i){return 1===arguments.length?uU(t):new Ud(t,n,e,i??1)},nU(Oy,{brighter:function(t){return t=null==t?HC:Math.pow(HC,t),new Ud(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Ud(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,i=e+(e<.5?e:1-e)*n,r=2*e-i;return new vc(Q3(t>=240?t-240:t+120,r,i),Q3(t,r,i),Q3(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const UC=function t(n){var e=function m4e(t){return 1==(t=+t)?fU:function(n,e){return e-n?function p4e(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(i){return Math.pow(t+i*n,e)}}(n,e,t):Z3(isNaN(n)?e:n)}}(n);function i(r,o){var s=e((r=Ly(r)).r,(o=Ly(o)).r),a=e(r.g,o.g),l=e(r.b,o.b),c=fU(r.opacity,o.opacity);return function(u){return r.r=s(u),r.g=a(u),r.b=l(u),r.opacity=c(u),r+""}}return i.gamma=t,i}(1);function pU(t){return function(n){var s,a,e=n.length,i=new Array(e),r=new Array(e),o=new Array(e);for(s=0;s=1?(e=1,n-1):Math.floor(e*n),r=t[i],o=t[i+1];return dU((e-i/n)*n,i>0?t[i-1]:2*r-o,r,o,ie&&(o=n.slice(e,o),a[s]?a[s]+=o:a[++s]=o),(i=i[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,l.push({i:s,x:Lu(i,r)})),e=tI.lastIndex;return e=0&&t._call.call(null,n),t=t._next;--gv}()}finally{gv=0,function T4e(){for(var t,e,n=GC,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:GC=e);By=t,nI(i)}(),um=0}}function D4e(){var t=Vy.now(),n=t-WC;n>bU&&(qC-=n,WC=t)}function nI(t){gv||(Ry&&(Ry=clearTimeout(Ry)),t-um>24?(t<1/0&&(Ry=setTimeout(wU,t-Vy.now()-qC)),$y&&($y=clearInterval($y))):($y||(WC=Vy.now(),$y=setInterval(D4e,bU)),gv=1,_U(wU)))}function CU(t,n,e){var i=new YC;return i.restart(function(r){i.stop(),t(r+n)},n=null==n?0:+n,e),i}YC.prototype=xU.prototype={constructor:YC,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?XC():+e)+(null==n?0:+n),!this._next&&By!==this&&(By?By._next=this:GC=this,By=this),this._call=t,this._time=e,nI()},stop:function(){this._call&&(this._call=null,this._time=1/0,nI())}};var E4e=tU("start","end","cancel","interrupt"),A4e=[],kU=0,SU=1,iI=2,JC=3,DU=4,rI=5,KC=6;function QC(t,n,e,i,r,o){var s=t.__transition;if(s){if(e in s)return}else t.__transition={};!function M4e(t,n,e){var r,i=t.__transition;function s(c){var u,d,h,f;if(e.state!==SU)return l();for(u in i)if((f=i[u]).name===e.name){if(f.state===JC)return CU(s);f.state===DU?(f.state=KC,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[u]):+ukU)throw new Error("too late; already scheduled");return e}function Gh(t,n){var e=Ru(t,n);if(e.state>JC)throw new Error("too late; already running");return e}function Ru(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function sI(t,n){var i,r,s,e=t.__transition,o=!0;if(e){for(s in n=null==n?null:n+"",e)(i=e[s]).name===n?(r=i.state>iI&&i.state180?u+=360:u-c>180&&(c+=360),h.push({i:d.push(r(d)+"rotate(",null,i)-2,x:Lu(c,u)})):u&&d.push(r(d)+"rotate("+u+i)}(c.rotate,u.rotate,d,h),function a(c,u,d,h){c!==u?h.push({i:d.push(r(d)+"skewX(",null,i)-2,x:Lu(c,u)}):u&&d.push(r(d)+"skewX("+u+i)}(c.skewX,u.skewX,d,h),function l(c,u,d,h,f,p){if(c!==d||u!==h){var m=f.push(r(f)+"scale(",null,",",null,")");p.push({i:m-4,x:Lu(c,d)},{i:m-2,x:Lu(u,h)})}else(1!==d||1!==h)&&f.push(r(f)+"scale("+d+","+h+")")}(c.scaleX,c.scaleY,u.scaleX,u.scaleY,d,h),c=u=null,function(f){for(var g,p=-1,m=h.length;++p=0&&(n=n.slice(0,e)),!n||"start"===n})}(n)?oI:Gh;return function(){var s=o(this,t),a=s.on;a!==i&&(r=(i=a).copy()).on(n,e),s.on=r}}(e,t,n))},attr:function G4e(t,n){var e=BC(t),i="transform"===e?j4e:IU;return this.attrTween(t,"function"==typeof n?(e.local?U4e:z4e)(e,i,cI(this,"attr."+t,n)):null==n?(e.local?B4e:$4e)(e):(e.local?H4e:V4e)(e,i,n))},attrTween:function J4e(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var i=BC(t);return this.tween(e,(i.local?X4e:Y4e)(i,n))},style:function _je(t,n,e){var i="transform"==(t+="")?O4e:IU;return null==n?this.styleTween(t,function gje(t,n){var e,i,r;return function(){var o=pv(this,t),s=(this.style.removeProperty(t),pv(this,t));return o===s?null:o===e&&s===i?r:r=n(e=o,i=s)}}(t,i)).on("end.style."+t,NU(t)):"function"==typeof n?this.styleTween(t,function yje(t,n,e){var i,r,o;return function(){var s=pv(this,t),a=e(this),l=a+"";return null==a&&(this.style.removeProperty(t),l=a=pv(this,t)),s===l?null:s===i&&l===r?o:(r=l,o=n(i=s,a))}}(t,i,cI(this,"style."+t,n))).each(function bje(t,n){var e,i,r,a,o="style."+n,s="end."+o;return function(){var l=Gh(this,t),c=l.on,u=null==l.value[o]?a||(a=NU(n)):void 0;(c!==e||r!==u)&&(i=(e=c).copy()).on(s,r=u),l.on=i}}(this._id,t)):this.styleTween(t,function vje(t,n,e){var i,o,r=e+"";return function(){var s=pv(this,t);return s===r?null:s===i?o:o=n(i=s,e)}}(t,i,n),e).on("end.style."+t,null)},styleTween:function Cje(t,n,e){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==n)return this.tween(i,null);if("function"!=typeof n)throw new Error;return this.tween(i,function wje(t,n,e){var i,r;function o(){var s=n.apply(this,arguments);return s!==r&&(i=(r=s)&&function xje(t,n,e){return function(i){this.style.setProperty(t,n.call(this,i),e)}}(t,s,e)),i}return o._value=n,o}(t,n,e??""))},text:function Dje(t){return this.tween("text","function"==typeof t?function Sje(t){return function(){var n=t(this);this.textContent=n??""}}(cI(this,"text",t)):function kje(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function Aje(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,function Eje(t){var n,e;function i(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&function Tje(t){return function(n){this.textContent=t.call(this,n)}}(r)),n}return i._value=t,i}(t))},remove:function dje(){return this.on("end.remove",function uje(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function R4e(t,n){var e=this._id;if(t+="",arguments.length<2){for(var s,i=Ru(this.node(),e).tween,r=0,o=i.length;r0&&(R=z-N),C<0?he=E-F:C>0&&(q=re-F),y=fI,B.attr("cursor",qh.selection),Ie());break;default:return}hI()},!0).on("keyup.brush",function _t(){switch(Vr.keyCode){case 16:V&&(oe=fe=V=!1,Ie());break;case 18:y===bv&&(_<0?X=Z:_>0&&(R=z),C<0?he=E:C>0&&(q=re),y=yv,Ie());break;case 32:y===fI&&(Vr.altKey?(_&&(X=Z-N*_,R=z+N*_),C&&(he=E-F*C,q=re+F*C),y=bv):(_<0?X=Z:_>0&&(R=z),C<0?he=E:C>0&&(q=re),y=yv),B.attr("cursor",qh[v]),Ie());break;default:return}hI()},!0),function e4e(t){var n=t.document.documentElement,e=va(t).on("dragstart.drag",Y3,!0);"onselectstart"in n?e.on("selectstart.drag",Y3,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}(Vr.view)}OU(),sI(g),c.call(g),ze.start()}function ie(){var At=Ne(g);V&&!oe&&!fe&&(Math.abs(At[0]-tt[0])>Math.abs(At[1]-tt[1])?fe=!0:oe=!0),tt=At,Y=!0,hI(),Ie()}function Ie(){var At;switch(N=tt[0]-xe[0],F=tt[1]-xe[1],y){case fI:case jU:_&&(N=Math.max(G-R,Math.min(L-X,N)),z=R+N,Z=X+N),C&&(F=Math.max(U-q,Math.min(H-he,F)),re=q+F,E=he+F);break;case yv:_<0?(N=Math.max(G-R,Math.min(L-R,N)),z=R+N,Z=X):_>0&&(N=Math.max(G-X,Math.min(L-X,N)),z=R,Z=X+N),C<0?(F=Math.max(U-q,Math.min(H-q,F)),re=q+F,E=he):C>0&&(F=Math.max(U-he,Math.min(H-he,F)),re=q,E=he+F);break;case bv:_&&(z=Math.max(G,Math.min(L,R-N*_)),Z=Math.max(G,Math.min(L,X+N*_))),C&&(re=Math.max(U,Math.min(H,q-F*C)),E=Math.max(U,Math.min(H,he+F*C)))}Zn?1:t>=n?0:NaN}function yI(t){let n=t,e=t;function i(s,a,l,c){for(null==l&&(l=0),null==c&&(c=s.length);l>>1;e(s[u],a)<0?l=u+1:c=u}return l}return 1===t.length&&(n=(s,a)=>t(s)-a,e=function Xje(t){return(n,e)=>vI(t(n),e)}(t)),{left:i,center:function o(s,a,l,c){null==l&&(l=0),null==c&&(c=s.length);const u=i(s,a,l,c-1);return u>l&&n(s[u-1],a)>-n(s[u],a)?u-1:u},right:function r(s,a,l,c){for(null==l&&(l=0),null==c&&(c=s.length);l>>1;e(s[u],a)>0?c=u:l=u+1}return l}}}var bI=Math.sqrt(50),_I=Math.sqrt(10),xI=Math.sqrt(2);function $U(t,n,e){var i=(n-t)/Math.max(0,e),r=Math.floor(Math.log(i)/Math.LN10),o=i/Math.pow(10,r);return r>=0?(o>=bI?10:o>=_I?5:o>=xI?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=bI?10:o>=_I?5:o>=xI?2:1)}function wI(t,n,e){var i=Math.abs(n-t)/Math.max(0,e),r=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/r;return o>=bI?r*=10:o>=_I?r*=5:o>=xI&&(r*=2),n0))return l;do{l.push(c=new Date(+o)),n(o,a),t(o)}while(c=s)for(;t(s),!o(s);)s.setTime(s-1)},function(s,a){if(s>=s)if(a<0)for(;++a<=0;)for(;n(s,-1),!o(s););else for(;--a>=0;)for(;n(s,1),!o(s););})},e&&(r.count=function(o,s){return CI.setTime(+o),kI.setTime(+s),t(CI),t(kI),Math.floor(e(CI,kI))},r.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?r.filter(i?function(s){return i(s)%o==0}:function(s){return r.count(0,s)%o==0}):r:null}),r}var SI=$u(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});SI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?$u(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const Jje=SI;var BU=$u(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,n){t.setMonth(t.getMonth()+n)},function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())},function(t){return t.getMonth()});const Kje=BU;var Uy=6e4,Zje=6048e5;function dm(t){return $u(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*Uy)/Zje})}var HU=dm(0),zU=(dm(1),dm(2),dm(3),dm(4),dm(5),dm(6),$u(t=>t.setHours(0,0,0,0),(t,n)=>t.setDate(t.getDate()+n),(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Uy)/864e5,t=>t.getDate()-1));const sPe=zU;var UU=$u(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-t.getMinutes()*Uy)},function(t,n){t.setTime(+t+36e5*n)},function(t,n){return(n-t)/36e5},function(t){return t.getHours()});const aPe=UU;var GU=$u(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},function(t,n){t.setTime(+t+n*Uy)},function(t,n){return(n-t)/Uy},function(t){return t.getMinutes()});const lPe=GU;var WU=$u(function(t){t.setTime(t-t.getMilliseconds())},function(t,n){t.setTime(+t+1e3*n)},function(t,n){return(n-t)/1e3},function(t){return t.getUTCSeconds()});const cPe=WU;var i2=$u(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});i2.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?$u(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):i2:null};const uPe=i2;var DI=new Date,TI=new Date;function Xh(t,n,e,i){function r(o){return t(o=0===arguments.length?new Date:new Date(+o)),o}return r.floor=function(o){return t(o=new Date(+o)),o},r.ceil=function(o){return t(o=new Date(o-1)),n(o,1),t(o),o},r.round=function(o){var s=r(o),a=r.ceil(o);return o-s0))return l;do{l.push(c=new Date(+o)),n(o,a),t(o)}while(c=s)for(;t(s),!o(s);)s.setTime(s-1)},function(s,a){if(s>=s)if(a<0)for(;++a<=0;)for(;n(s,-1),!o(s););else for(;--a>=0;)for(;n(s,1),!o(s););})},e&&(r.count=function(o,s){return DI.setTime(+o),TI.setTime(+s),t(DI),t(TI),Math.floor(e(DI,TI))},r.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?r.filter(i?function(s){return i(s)%o==0}:function(s){return r.count(0,s)%o==0}):r:null}),r}var qU=6e4,YU=6048e5;function hm(t){return Xh(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCDate(n.getUTCDate()+7*e)},function(n,e){return(e-n)/YU})}var JU=hm(0),r2=hm(1),_v=(hm(2),hm(3),hm(4)),KU=(hm(5),hm(6),Xh(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/864e5},function(t){return t.getUTCDate()-1}));const QU=KU;function fm(t){return Xh(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*qU)/YU})}var ZU=fm(0),o2=fm(1),xv=(fm(2),fm(3),fm(4)),eG=(fm(5),fm(6),Xh(function(t){t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*qU)/864e5},function(t){return t.getDate()-1}));const tG=eG;var EI=Xh(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});EI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Xh(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const Gy=EI;var AI=Xh(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});AI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Xh(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};const Wy=AI;function MI(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function II(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function qy(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var wv,gG,nG={"-":"",_:" ",0:"0"},ya=/^\s*\d+/,_Pe=/^%/,xPe=/[\\^$*+?|[\]().{}]/g;function Gr(t,n,e){var i=t<0?"-":"",r=(i?-t:t)+"",o=r.length;return i+(o68?1900:2e3),e+i[0].length):-1}function EPe(t,n,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function APe(t,n,e){var i=ya.exec(n.slice(e,e+1));return i?(t.q=3*i[0]-3,e+i[0].length):-1}function MPe(t,n,e){var i=ya.exec(n.slice(e,e+2));return i?(t.m=i[0]-1,e+i[0].length):-1}function oG(t,n,e){var i=ya.exec(n.slice(e,e+2));return i?(t.d=+i[0],e+i[0].length):-1}function IPe(t,n,e){var i=ya.exec(n.slice(e,e+3));return i?(t.m=0,t.d=+i[0],e+i[0].length):-1}function sG(t,n,e){var i=ya.exec(n.slice(e,e+2));return i?(t.H=+i[0],e+i[0].length):-1}function NPe(t,n,e){var i=ya.exec(n.slice(e,e+2));return i?(t.M=+i[0],e+i[0].length):-1}function FPe(t,n,e){var i=ya.exec(n.slice(e,e+2));return i?(t.S=+i[0],e+i[0].length):-1}function OPe(t,n,e){var i=ya.exec(n.slice(e,e+3));return i?(t.L=+i[0],e+i[0].length):-1}function jPe(t,n,e){var i=ya.exec(n.slice(e,e+6));return i?(t.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function PPe(t,n,e){var i=_Pe.exec(n.slice(e,e+1));return i?e+i[0].length:-1}function LPe(t,n,e){var i=ya.exec(n.slice(e));return i?(t.Q=+i[0],e+i[0].length):-1}function RPe(t,n,e){var i=ya.exec(n.slice(e));return i?(t.s=+i[0],e+i[0].length):-1}function aG(t,n){return Gr(t.getDate(),n,2)}function $Pe(t,n){return Gr(t.getHours(),n,2)}function BPe(t,n){return Gr(t.getHours()%12||12,n,2)}function VPe(t,n){return Gr(1+tG.count(Gy(t),t),n,3)}function lG(t,n){return Gr(t.getMilliseconds(),n,3)}function HPe(t,n){return lG(t,n)+"000"}function zPe(t,n){return Gr(t.getMonth()+1,n,2)}function UPe(t,n){return Gr(t.getMinutes(),n,2)}function GPe(t,n){return Gr(t.getSeconds(),n,2)}function WPe(t){var n=t.getDay();return 0===n?7:n}function qPe(t,n){return Gr(ZU.count(Gy(t)-1,t),n,2)}function cG(t){var n=t.getDay();return n>=4||0===n?xv(t):xv.ceil(t)}function XPe(t,n){return t=cG(t),Gr(xv.count(Gy(t),t)+(4===Gy(t).getDay()),n,2)}function YPe(t){return t.getDay()}function JPe(t,n){return Gr(o2.count(Gy(t)-1,t),n,2)}function KPe(t,n){return Gr(t.getFullYear()%100,n,2)}function QPe(t,n){return Gr((t=cG(t)).getFullYear()%100,n,2)}function ZPe(t,n){return Gr(t.getFullYear()%1e4,n,4)}function eLe(t,n){var e=t.getDay();return Gr((t=e>=4||0===e?xv(t):xv.ceil(t)).getFullYear()%1e4,n,4)}function tLe(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Gr(n/60|0,"0",2)+Gr(n%60,"0",2)}function uG(t,n){return Gr(t.getUTCDate(),n,2)}function nLe(t,n){return Gr(t.getUTCHours(),n,2)}function iLe(t,n){return Gr(t.getUTCHours()%12||12,n,2)}function rLe(t,n){return Gr(1+QU.count(Wy(t),t),n,3)}function dG(t,n){return Gr(t.getUTCMilliseconds(),n,3)}function oLe(t,n){return dG(t,n)+"000"}function sLe(t,n){return Gr(t.getUTCMonth()+1,n,2)}function aLe(t,n){return Gr(t.getUTCMinutes(),n,2)}function lLe(t,n){return Gr(t.getUTCSeconds(),n,2)}function cLe(t){var n=t.getUTCDay();return 0===n?7:n}function uLe(t,n){return Gr(JU.count(Wy(t)-1,t),n,2)}function hG(t){var n=t.getUTCDay();return n>=4||0===n?_v(t):_v.ceil(t)}function dLe(t,n){return t=hG(t),Gr(_v.count(Wy(t),t)+(4===Wy(t).getUTCDay()),n,2)}function hLe(t){return t.getUTCDay()}function fLe(t,n){return Gr(r2.count(Wy(t)-1,t),n,2)}function pLe(t,n){return Gr(t.getUTCFullYear()%100,n,2)}function mLe(t,n){return Gr((t=hG(t)).getUTCFullYear()%100,n,2)}function gLe(t,n){return Gr(t.getUTCFullYear()%1e4,n,4)}function vLe(t,n){var e=t.getUTCDay();return Gr((t=e>=4||0===e?_v(t):_v.ceil(t)).getUTCFullYear()%1e4,n,4)}function yLe(){return"+0000"}function fG(){return"%"}function pG(t){return+t}function mG(t){return Math.floor(+t/1e3)}function vG(t){return null===t?NaN:+t}!function wLe(t){wv=function bPe(t){var n=t.dateTime,e=t.date,i=t.time,r=t.periods,o=t.days,s=t.shortDays,a=t.months,l=t.shortMonths,c=Xy(r),u=Yy(r),d=Xy(o),h=Yy(o),f=Xy(s),p=Yy(s),m=Xy(a),g=Yy(a),v=Xy(l),y=Yy(l),_={a:function H(ze){return s[ze.getDay()]},A:function he(ze){return o[ze.getDay()]},b:function E(ze){return l[ze.getMonth()]},B:function N(ze){return a[ze.getMonth()]},c:null,d:aG,e:aG,f:HPe,g:QPe,G:eLe,H:$Pe,I:BPe,j:VPe,L:lG,m:zPe,M:UPe,p:function F(ze){return r[+(ze.getHours()>=12)]},q:function Y(ze){return 1+~~(ze.getMonth()/3)},Q:pG,s:mG,S:GPe,u:WPe,U:qPe,V:XPe,w:YPe,W:JPe,x:null,X:null,y:KPe,Y:ZPe,Z:tLe,"%":fG},C={a:function V(ze){return s[ze.getUTCDay()]},A:function oe(ze){return o[ze.getUTCDay()]},b:function fe(ze){return l[ze.getUTCMonth()]},B:function Ne(ze){return a[ze.getUTCMonth()]},c:null,d:uG,e:uG,f:oLe,g:mLe,G:vLe,H:nLe,I:iLe,j:rLe,L:dG,m:sLe,M:aLe,p:function xe(ze){return r[+(ze.getUTCHours()>=12)]},q:function tt(ze){return 1+~~(ze.getUTCMonth()/3)},Q:pG,s:mG,S:lLe,u:cLe,U:uLe,V:dLe,w:hLe,W:fLe,x:null,X:null,y:pLe,Y:gLe,Z:yLe,"%":fG},S={a:function z(ze,ot,B){var ne=f.exec(ot.slice(B));return ne?(ze.w=p[ne[0].toLowerCase()],B+ne[0].length):-1},A:function U(ze,ot,B){var ne=d.exec(ot.slice(B));return ne?(ze.w=h[ne[0].toLowerCase()],B+ne[0].length):-1},b:function q(ze,ot,B){var ne=v.exec(ot.slice(B));return ne?(ze.m=y[ne[0].toLowerCase()],B+ne[0].length):-1},B:function re(ze,ot,B){var ne=m.exec(ot.slice(B));return ne?(ze.m=g[ne[0].toLowerCase()],B+ne[0].length):-1},c:function L(ze,ot,B){return G(ze,n,ot,B)},d:oG,e:oG,f:jPe,g:rG,G:iG,H:sG,I:sG,j:IPe,L:OPe,m:MPe,M:NPe,p:function R(ze,ot,B){var ne=c.exec(ot.slice(B));return ne?(ze.p=u[ne[0].toLowerCase()],B+ne[0].length):-1},q:APe,Q:LPe,s:RPe,S:FPe,u:kPe,U:SPe,V:DPe,w:CPe,W:TPe,x:function X(ze,ot,B){return G(ze,e,ot,B)},X:function Z(ze,ot,B){return G(ze,i,ot,B)},y:rG,Y:iG,Z:EPe,"%":PPe};function M(ze,ot){return function(B){var Le,_t,At,ne=[],ie=-1,Ie=0,Ye=ze.length;for(B instanceof Date||(B=new Date(+B));++ie53)return null;"w"in ne||(ne.w=1),"Z"in ne?(Ye=(Ie=II(qy(ne.y,0,1))).getUTCDay(),Ie=Ye>4||0===Ye?r2.ceil(Ie):r2(Ie),Ie=QU.offset(Ie,7*(ne.V-1)),ne.y=Ie.getUTCFullYear(),ne.m=Ie.getUTCMonth(),ne.d=Ie.getUTCDate()+(ne.w+6)%7):(Ye=(Ie=MI(qy(ne.y,0,1))).getDay(),Ie=Ye>4||0===Ye?o2.ceil(Ie):o2(Ie),Ie=tG.offset(Ie,7*(ne.V-1)),ne.y=Ie.getFullYear(),ne.m=Ie.getMonth(),ne.d=Ie.getDate()+(ne.w+6)%7)}else("W"in ne||"U"in ne)&&("w"in ne||(ne.w="u"in ne?ne.u%7:"W"in ne?1:0),Ye="Z"in ne?II(qy(ne.y,0,1)).getUTCDay():MI(qy(ne.y,0,1)).getDay(),ne.m=0,ne.d="W"in ne?(ne.w+6)%7+7*ne.W-(Ye+5)%7:ne.w+7*ne.U-(Ye+6)%7);return"Z"in ne?(ne.H+=ne.Z/100|0,ne.M+=ne.Z%100,II(ne)):MI(ne)}}function G(ze,ot,B,ne){for(var Le,_t,ie=0,Ie=ot.length,Ye=B.length;ie=Ye)return-1;if(37===(Le=ot.charCodeAt(ie++))){if(Le=ot.charAt(ie++),!(_t=S[Le in nG?ot.charAt(ie++):Le])||(ne=_t(ze,B,ne))<0)return-1}else if(Le!=B.charCodeAt(ne++))return-1}return ne}return _.x=M(e,_),_.X=M(i,_),_.c=M(n,_),C.x=M(e,C),C.X=M(i,C),C.c=M(n,C),{format:function(ze){var ot=M(ze+="",_);return ot.toString=function(){return ze},ot},parse:function(ze){var ot=$(ze+="",!1);return ot.toString=function(){return ze},ot},utcFormat:function(ze){var ot=M(ze+="",C);return ot.toString=function(){return ze},ot},utcParse:function(ze){var ot=$(ze+="",!0);return ot.toString=function(){return ze},ot}}}(t),gG=wv.format}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const CLe=yI(vI).right,bG=(yI(vG),CLe);function kLe(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function DLe(t){return+t}var _G=[0,1];function Cv(t){return t}function NI(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:function SLe(t){return function(){return t}}(isNaN(n)?NaN:.5)}function ELe(t,n,e){var i=t[0],r=t[1],o=n[0],s=n[1];return rn&&(e=t,t=n,n=e),function(i){return Math.max(t,Math.min(n,i))}}(t[0],t[h-1])),a=h>2?ALe:ELe,l=c=null,d}function d(h){return isNaN(h=+h)?o:(l||(l=a(t.map(i),n,e)))(i(s(h)))}return d.invert=function(h){return s(r((c||(c=a(n,t.map(i),Lu)))(h)))},d.domain=function(h){return arguments.length?(t=Array.from(h,DLe),u()):t.slice()},d.range=function(h){return arguments.length?(n=Array.from(h),u()):n.slice()},d.rangeRound=function(h){return n=Array.from(h),e=kLe,u()},d.clamp=function(h){return arguments.length?(s=!!h||Cv,u()):s!==Cv},d.interpolate=function(h){return arguments.length?(e=h,u()):e},d.unknown=function(h){return arguments.length?(o=h,d):o},function(h,f){return i=h,r=f,u()}}()(Cv,Cv)}function Jy(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}var Ky=1e3,Qy=60*Ky,Zy=60*Qy,eb=24*Zy,NLe=7*eb,CG=30*eb,FI=365*eb;function FLe(t){return new Date(t)}function OLe(t){return t instanceof Date?+t:+new Date(+t)}function kG(t,n,e,i,r,o,s,a,l){var c=wG(),u=c.invert,d=c.domain,h=l(".%L"),f=l(":%S"),p=l("%I:%M"),m=l("%I %p"),g=l("%a %d"),v=l("%b %d"),y=l("%B"),_=l("%Y"),C=[[s,1,Ky],[s,5,5*Ky],[s,15,15*Ky],[s,30,30*Ky],[o,1,Qy],[o,5,5*Qy],[o,15,15*Qy],[o,30,30*Qy],[r,1,Zy],[r,3,3*Zy],[r,6,6*Zy],[r,12,12*Zy],[i,1,eb],[i,2,2*eb],[e,1,NLe],[n,1,CG],[n,3,3*CG],[t,1,FI]];function S($){return(s($)<$?h:o($)<$?f:r($)<$?p:i($)<$?m:n($)<$?e($)<$?g:v:t($)<$?y:_)($)}function M($,G,R){if(null==$&&($=10),"number"==typeof $){var q,z=Math.abs(R-G)/$,U=yI(function(re){return re[2]}).right(C,z);return U===C.length?(q=wI(G/FI,R/FI,$),$=t):U?(q=(U=C[z/C[U-1][2]=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function s2(t){if(!(n=jLe.exec(t)))throw new Error("invalid format: "+t);var n;return new OI({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function OI(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function a2(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,i=t.slice(0,e);return[i.length>1?i[0]+i.slice(2):i,+t.slice(e+1)]}function kv(t){return(t=a2(Math.abs(t)))?t[1]:NaN}function DG(t,n){var e=a2(t,n);if(!e)return t+"";var i=e[0],r=e[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}s2.prototype=OI.prototype,OI.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const TG={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function PLe(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return DG(100*t,n)},r:DG,s:function VLe(t,n){var e=a2(t,n);if(!e)return t+"";var i=e[0],r=e[1],o=r-(SG=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,s=i.length;return o===s?i:o>s?i+new Array(o-s+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+a2(t,Math.max(0,n+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function EG(t){return t}var l2,jI,IG,AG=Array.prototype.map,MG=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function qLe(t){var n=t.domain;return t.ticks=function(e){var i=n();return function Yje(t,n,e){var i,o,s,a,r=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((i=n0)for(t=Math.ceil(t/a),n=Math.floor(n/a),s=new Array(o=Math.ceil(n-t+1));++r0;){if((c=$U(s,a,e))===l)return i[r]=s,i[o]=a,n(i);if(c>0)s=Math.floor(s/c)*c,a=Math.ceil(a/c)*c;else{if(!(c<0))break;s=Math.ceil(s*c)/c,a=Math.floor(a*c)/c}l=c}return t},t}function bo(){var t=wG();return t.copy=function(){return xG(t,bo())},Jy.apply(t,arguments),qLe(t)}function NG(t,n,e){t=+t,n=+n,e=(r=arguments.length)<2?(n=t,t=0,1):r<3?1:+e;for(var i=-1,r=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(r);++i0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),o.push(e.substring(r-=a,r+a)),!((l+=a+1)>i));)a=t[s=(s+1)%t.length];return o.reverse().join(n)}}(AG.call(t.grouping,Number),t.thousands+""),e=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",r=void 0===t.decimal?".":t.decimal+"",o=void 0===t.numerals?EG:function $Le(t){return function(n){return n.replace(/[0-9]/g,function(e){return t[+e]})}}(AG.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",a=void 0===t.minus?"-":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function c(d){var h=(d=s2(d)).fill,f=d.align,p=d.sign,m=d.symbol,g=d.zero,v=d.width,y=d.comma,_=d.precision,C=d.trim,S=d.type;"n"===S?(y=!0,S="g"):TG[S]||(void 0===_&&(_=12),C=!0,S="g"),(g||"0"===h&&"="===f)&&(g=!0,h="0",f="=");var M="$"===m?e:"#"===m&&/[boxX]/.test(S)?"0"+S.toLowerCase():"",$="$"===m?i:/[%p]/.test(S)?s:"",G=TG[S],R=/[defgprs%]/.test(S);function z(U){var L,X,Z,q=M,re=$;if("c"===S)re=G(U)+re,U="";else{var H=(U=+U)<0||1/U<0;if(U=isNaN(U)?l:G(Math.abs(U),_),C&&(U=function BLe(t){e:for(var r,n=t.length,e=1,i=-1;e0&&(i=0)}return i>0?t.slice(0,i)+t.slice(r+1):t}(U)),H&&0==+U&&"+"!==p&&(H=!1),q=(H?"("===p?p:a:"-"===p||"("===p?"":p)+q,re=("s"===S?MG[8+SG/3]:"")+re+(H&&"("===p?")":""),R)for(L=-1,X=U.length;++L(Z=U.charCodeAt(L))||Z>57){re=(46===Z?r+U.slice(L+1):U.slice(L))+re,U=U.slice(0,L);break}}y&&!g&&(U=n(U,1/0));var he=q.length+U.length+re.length,E=he>1)+q+U+re+E.slice(he);break;default:U=E+q+U+re}return o(U)}return _=void 0===_?6:/[gprs]/.test(S)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_)),z.toString=function(){return d+""},z}return{format:c,formatPrefix:function u(d,h){var f=c(((d=s2(d)).type="f",d)),p=3*Math.max(-8,Math.min(8,Math.floor(kv(h)/3))),m=Math.pow(10,-p),g=MG[8+p/3];return function(v){return f(m*v)+g}}}}(t),jI=l2.format,IG=l2.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});const FG=Symbol("implicit");function PI(){var t=new Map,n=[],e=[],i=FG;function r(o){var s=o+"",a=t.get(s);if(!a){if(i!==FG)return i;t.set(s,a=n.push(o))}return e[(a-1)%e.length]}return r.domain=function(o){if(!arguments.length)return n.slice();n=[],t=new Map;for(const s of o){const a=s+"";t.has(a)||t.set(a,n.push(s))}return r},r.range=function(o){return arguments.length?(e=Array.from(o),r):e.slice()},r.unknown=function(o){return arguments.length?(i=o,r):i},r.copy=function(){return PI(n,e).unknown(i)},Jy.apply(r,arguments),r}function La(){var o,s,t=PI().unknown(void 0),n=t.domain,e=t.range,i=0,r=1,a=!1,l=0,c=0,u=.5;function d(){var h=n().length,f=r=1)return+e(t[i-1],i-1,t);var i,r=(i-1)*n,o=Math.floor(r),s=+e(t[o],o,t);return s+(+e(t[o+1],o+1,t)-s)*(r-o)}}function jG(){var i,t=[],n=[],e=[];function r(){var s=0,a=Math.max(1,n.length);for(e=new Array(a-1);++s0?e[a-1]:t[0],avm)if(Math.abs(u*a-l*c)>vm&&r){var h=e-o,f=i-s,p=a*a+l*l,m=h*h+f*f,g=Math.sqrt(p),v=Math.sqrt(d),y=r*Math.tan((LI-Math.acos((p+d-m)/(2*g*v)))/2),_=y/v,C=y/g;Math.abs(_-1)>vm&&(this._+="L"+(t+_*c)+","+(n+_*u)),this._+="A"+r+","+r+",0,0,"+ +(u*h>c*f)+","+(this._x1=t+C*a)+","+(this._y1=n+C*l)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,i,r,o){t=+t,n=+n,o=!!o;var s=(e=+e)*Math.cos(i),a=e*Math.sin(i),l=t+s,c=n+a,u=1^o,d=o?i-r:r-i;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>vm||Math.abs(this._y1-c)>vm)&&(this._+="L"+l+","+c),e&&(d<0&&(d=d%RI+RI),d>YLe?this._+="A"+e+","+e+",0,1,"+u+","+(t-s)+","+(n-a)+"A"+e+","+e+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):d>vm&&(this._+="A"+e+","+e+",0,"+ +(d>=LI)+","+u+","+(this._x1=t+e*Math.cos(r))+","+(this._y1=n+e*Math.sin(r))))},rect:function(t,n,e,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}};const BI=LG;function mo(t){return function(){return t}}function RG(t){return t[0]}function $G(t){return t[1]}function c2(){var t=RG,n=$G,e=mo(!0),i=null,r=gm,o=null;function s(a){var l,u,h,c=a.length,d=!1;for(null==i&&(o=r(h=BI())),l=0;l<=c;++l)!(l=h;--f)a.point(y[f],_[f]);a.lineEnd(),a.areaEnd()}g&&(y[d]=+t(m,d,u),_[d]=+e(m,d,u),a.point(n?+n(m,d,u):y[d],i?+i(m,d,u):_[d]))}if(v)return a=null,v+""||null}function c(){return c2().defined(r).curve(s).context(o)}return l.x=function(u){return arguments.length?(t="function"==typeof u?u:mo(+u),n=null,l):t},l.x0=function(u){return arguments.length?(t="function"==typeof u?u:mo(+u),l):t},l.x1=function(u){return arguments.length?(n=null==u?null:"function"==typeof u?u:mo(+u),l):n},l.y=function(u){return arguments.length?(e="function"==typeof u?u:mo(+u),i=null,l):e},l.y0=function(u){return arguments.length?(e="function"==typeof u?u:mo(+u),l):e},l.y1=function(u){return arguments.length?(i=null==u?null:"function"==typeof u?u:mo(+u),l):i},l.lineX0=l.lineY0=function(){return c().x(t).y(e)},l.lineY1=function(){return c().x(t).y(i)},l.lineX1=function(){return c().x(n).y(e)},l.defined=function(u){return arguments.length?(r="function"==typeof u?u:mo(!!u),l):r},l.curve=function(u){return arguments.length?(s=u,null!=o&&(a=s(o)),l):s},l.context=function(u){return arguments.length?(null==u?o=a=null:a=s(o=u),l):o},l}function BG(){}function VI(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function VG(t,n){this._context=t,this._k=(1-n)/6}function HG(t,n){this._context=t,this._k=(1-n)/6}function zG(t){this._curve=t}function fRe(t,n,e,i,r){for(var s,o=t.children,a=-1,l=o.length,c=t.value&&(i-n)/t.value;++a=0;)n+=e[i].value;else n=1;t.value=n}function XG(t,n){var r,s,a,l,c,e=new rb(t),i=+t.value&&(e.value=t.value),o=[e];for(null==n&&(n=FRe);r=o.pop();)if(i&&(r.value=+r.data.value),(a=n(r.data))&&(c=a.length))for(r.children=new Array(c),l=c-1;l>=0;--l)o.push(s=r.children[l]=new rb(a[l])),s.parent=r,s.depth=r.depth+1;return e.eachBefore(YG)}function FRe(t){return t.children}function ORe(t){t.data=t.data.data}function YG(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function rb(t){this.data=t,this.depth=this.height=0,this.parent=null}VG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:VI(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:VI(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(n){function e(i){return new VG(i,n)}return e.tension=function(i){return t(+i)},e}(0),HG.prototype={areaStart:BG,areaEnd:BG,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:VI(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(n){function e(i){return new HG(i,n)}return e.tension=function(i){return t(+i)},e}(0),function UG(t){function n(e){return new zG(t(e))}return n._curve=t,n}(gm),zG.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}},Math,Math,Math,Math,Math,Math,Math,Math,function t(n){function e(i,r,o,s,a){!function gRe(t,n,e,i,r,o){for(var l,c,f,p,g,v,y,_,C,S,M,s=[],a=n.children,u=0,d=0,h=a.length,m=n.value;uy&&(y=c),M=g*g*S,(_=Math.max(y/M,M/v))>C){g-=c;break}C=_}s.push(l={value:g,dice:f1?i:1)},e}((1+Math.sqrt(5))/2),rb.prototype=XG.prototype={constructor:rb,count:function _Re(){return this.eachAfter(bRe)},each:function xRe(t){var e,r,o,s,n=this,i=[n];do{for(e=i.reverse(),i=[];n=e.pop();)if(t(n),r=n.children)for(o=0,s=r.length;o=0;--r)e.push(i[r]);return this},sum:function kRe(t){return this.eachAfter(function(n){for(var e=+t(n.data)||0,i=n.children,r=i&&i.length;--r>=0;)e+=i[r].value;n.value=e})},sort:function SRe(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})},path:function DRe(t){for(var n=this,e=function TRe(t,n){if(t===n)return t;var e=t.ancestors(),i=n.ancestors(),r=null;for(t=e.pop(),n=i.pop();t===n;)r=t,t=e.pop(),n=i.pop();return r}(n,t),i=[n];n!==e;)i.push(n=n.parent);for(var r=i.length;t!==e;)i.splice(r,0,t),t=t.parent;return i},ancestors:function ERe(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function ARe(){var t=[];return this.each(function(n){t.push(n)}),t},leaves:function MRe(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t},links:function IRe(){var t=this,n=[];return t.each(function(e){e!==t&&n.push({source:e.parent,target:e})}),n},copy:function NRe(){return XG(this).eachBefore(ORe)}};const $Re=["caretElm"];function BRe(t,n){}const VRe=function(t){return{model:t}};function HRe(t,n){if(1&t&&(b(0,"span"),J(1,BRe,0,0,"ng-template",5),x()),2&t){const e=j();w(1),k("ngTemplateOutlet",e.template)("ngTemplateOutletContext",lr(2,VRe,e.context))}}function zRe(t,n){1&t&&ge(0,"span",6),2&t&&k("innerHTML",j().title,kx)}function URe(t,n){if(1&t&&(at(),Ip(),ge(0,"ngx-charts-scale-legend",4)),2&t){const e=j();k("horizontal",e.legendOptions&&"below"===e.legendOptions.position)("valueRange",e.legendOptions.domain)("colors",e.legendOptions.colors)("height",e.view[1])("width",e.legendWidth)}}function GRe(t,n){if(1&t){const e=vt();at(),Ip(),b(0,"ngx-charts-legend",5),ye("labelClick",function(r){return $e(e),Be(j().legendLabelClick.emit(r))})("labelActivate",function(r){return $e(e),Be(j().legendLabelActivate.emit(r))})("labelDeactivate",function(r){return $e(e),Be(j().legendLabelDeactivate.emit(r))}),x()}if(2&t){const e=j();k("horizontal",e.legendOptions&&"below"===e.legendOptions.position)("data",e.legendOptions.domain)("title",e.legendOptions.title)("colors",e.legendOptions.colors)("height",e.view[1])("width",e.legendWidth)("activeEntries",e.activeEntries)}}const QG=["*"],WRe=["ngx-charts-axis-label",""],ZG=["ticksel"],qRe=["ngx-charts-x-axis-ticks",""];function XRe(t,n){if(1&t&&(at(),b(0,"g",3)(1,"title"),I(2),x(),b(3,"text",4),I(4),x()()),2&t){const e=n.$implicit,i=j();ht("transform",i.tickTransform(e)),w(2),Dt(i.tickFormat(e)),w(1),rr("font-size","12px"),ht("text-anchor",i.textAnchor)("transform",i.textTransform),w(1),xn(" ",i.tickTrim(i.tickFormat(e))," ")}}function YRe(t,n){if(1&t&&(at(),b(0,"g"),ge(1,"line",6),x()),2&t){const e=j(2);ht("transform",e.gridLineTransform()),w(1),ht("y1",-e.gridLineHeight)}}function JRe(t,n){if(1&t&&(at(),b(0,"g"),J(1,YRe,2,2,"g",5),x()),2&t){const e=n.$implicit,i=j();ht("transform",i.tickTransform(e)),w(1),k("ngIf",i.showGridLines)}}const KRe=["ngx-charts-x-axis",""];function QRe(t,n){if(1&t){const e=vt();at(),b(0,"g",2),ye("dimensionsChanged",function(r){return $e(e),Be(j().emitTicksHeight(r))}),x()}if(2&t){const e=j();k("trimTicks",e.trimTicks)("rotateTicks",e.rotateTicks)("maxTickLength",e.maxTickLength)("tickFormatting",e.tickFormatting)("tickArguments",e.tickArguments)("tickStroke",e.tickStroke)("scale",e.xScale)("orient",e.xOrient)("showGridLines",e.showGridLines)("gridLineHeight",e.dims.height)("width",e.dims.width)("tickValues",e.ticks)}}function ZRe(t,n){if(1&t&&(at(),ge(0,"g",3)),2&t){const e=j();k("label",e.labelText)("offset",e.labelOffset)("orient","bottom")("height",e.dims.height)("width",e.dims.width)}}const e5e=["ngx-charts-y-axis-ticks",""];function t5e(t,n){if(1&t&&(at(),b(0,"g",4)(1,"title"),I(2),x(),b(3,"text",5),I(4),x()()),2&t){const e=n.$implicit,i=j();ht("transform",i.transform(e)),w(2),Dt(i.tickFormat(e)),w(1),rr("font-size","12px"),ht("dy",i.dy)("x",i.x1)("y",i.y1)("text-anchor",i.textAnchor),w(1),xn(" ",i.tickTrim(i.tickFormat(e))," ")}}function n5e(t,n){if(1&t&&(at(),ge(0,"path",6)),2&t){const e=j();ht("d",e.referenceAreaPath)("transform",e.gridLineTransform())}}function i5e(t,n){1&t&&(at(),ge(0,"line",9)),2&t&&ht("x2",j(3).gridLineWidth)}function r5e(t,n){1&t&&(at(),ge(0,"line",9)),2&t&&ht("x2",-j(3).gridLineWidth)}function o5e(t,n){if(1&t&&(at(),b(0,"g"),J(1,i5e,1,1,"line",8),J(2,r5e,1,1,"line",8),x()),2&t){const e=j(2);ht("transform",e.gridLineTransform()),w(1),k("ngIf","left"===e.orient),w(1),k("ngIf","right"===e.orient)}}function s5e(t,n){if(1&t&&(at(),b(0,"g"),J(1,o5e,3,3,"g",7),x()),2&t){const e=n.$implicit,i=j();ht("transform",i.transform(e)),w(1),k("ngIf",i.showGridLines)}}function a5e(t,n){if(1&t&&(at(),b(0,"g")(1,"title"),I(2),x(),b(3,"text",11),I(4),x()()),2&t){const e=j(2).$implicit,i=j();w(2),Dt(i.tickTrim(i.tickFormat(e.value))),w(1),ht("dy",i.dy)("y",-6)("x",i.gridLineWidth)("text-anchor",i.textAnchor),w(1),xn(" ",e.name," ")}}function l5e(t,n){if(1&t&&(at(),b(0,"g"),ge(1,"line",10),J(2,a5e,5,6,"g",7),x()),2&t){const e=j().$implicit,i=j();ht("transform",i.transform(e.value)),w(1),ht("x2",i.gridLineWidth)("transform",i.gridLineTransform()),w(1),k("ngIf",i.showRefLabels)}}function c5e(t,n){if(1&t&&(at(),b(0,"g"),J(1,l5e,3,4,"g",7),x()),2&t){const e=j();w(1),k("ngIf",e.showRefLines)}}const u5e=["ngx-charts-y-axis",""];function d5e(t,n){if(1&t){const e=vt();at(),b(0,"g",2),ye("dimensionsChanged",function(r){return $e(e),Be(j().emitTicksWidth(r))}),x()}if(2&t){const e=j();k("trimTicks",e.trimTicks)("maxTickLength",e.maxTickLength)("tickFormatting",e.tickFormatting)("tickArguments",e.tickArguments)("tickValues",e.ticks)("tickStroke",e.tickStroke)("scale",e.yScale)("orient",e.yOrient)("showGridLines",e.showGridLines)("gridLineWidth",e.dims.width)("referenceLines",e.referenceLines)("showRefLines",e.showRefLines)("showRefLabels",e.showRefLabels)("height",e.dims.height)}}function h5e(t,n){if(1&t&&(at(),ge(0,"g",3)),2&t){const e=j();k("label",e.labelText)("offset",e.labelOffset)("orient",e.yOrient)("height",e.dims.height)("width",e.dims.width)}}const f5e=["ngx-charts-circle-series",""];function p5e(t,n){if(1&t&&(at(),ge(0,"rect",4)),2&t){const e=j(2);k("@animationState","active"),ht("x",e.circle.cx-e.circle.radius)("y",e.circle.cy)("width",2*e.circle.radius)("height",e.circle.height)("fill",e.gradientFill)}}const m5e=function(t){return{name:t}};function g5e(t,n){if(1&t){const e=vt();at(),b(0,"g")(1,"defs"),ge(2,"g",1),x(),J(3,p5e,1,6,"rect",2),b(4,"g",3),ye("select",function(){$e(e);const r=j();return Be(r.onClick(r.circle.data))})("activate",function(){return $e(e),Be(j().activateCircle())})("deactivate",function(){return $e(e),Be(j().deactivateCircle())}),x()()}if(2&t){const e=j();w(2),k("name",e.gradientId)("stops",e.circle.gradientStops),w(1),k("ngIf",e.barVisible&&"standard"===e.type),w(1),Mn("active",e.isActive(lr(18,m5e,e.circle.seriesName))),k("cx",e.circle.cx)("cy",e.circle.cy)("r",e.circle.radius)("fill",e.circle.color)("pointerEvents",0===e.circle.value?"none":"all")("data",e.circle.value)("classNames",e.circle.classNames)("tooltipDisabled",e.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",e.tooltipTemplate?void 0:e.getTooltipText(e.circle))("tooltipTemplate",e.tooltipTemplate)("tooltipContext",e.circle.data)}}const v5e=["ngx-charts-circle",""],x5e=["ngx-charts-svg-linear-gradient",""];function w5e(t,n){if(1&t&&(at(),ge(0,"stop")),2&t){const e=n.$implicit;rr("stop-color",e.color)("stop-opacity",e.opacity),ht("offset",e.offset+"%")}}const S5e=["ngx-charts-area",""];function D5e(t,n){if(1&t&&(at(),b(0,"defs"),ge(1,"g",2),x()),2&t){const e=j();w(1),k("name",e.gradientId)("stops",e.gradientStops)}}const E5e=["tooltipAnchor"],A5e=["ngx-charts-tooltip-area",""];function M5e(t,n){if(1&t&&(b(0,"div",6),ge(1,"span",7),I(2),x()),2&t){const e=n.$implicit,i=j(2);w(1),rr("background-color",e.color),w(1),xn(" ",i.getToolTipText(e)," ")}}function I5e(t,n){if(1&t&&(at(),Ip(),b(0,"div",4),J(1,M5e,3,3,"div",5),x()),2&t){const e=n.model;w(1),k("ngForOf",e)}}const N5e=["ngx-charts-timeline",""];function F5e(t,n){if(1&t&&(b(0,"header",4)(1,"span",5),I(2),x()()),2&t){const e=j();w(2),Dt(e.title)}}function O5e(t,n){if(1&t){const e=vt();b(0,"li",6)(1,"ngx-charts-legend-entry",7),ye("select",function(r){return $e(e),Be(j().labelClick.emit(r))})("activate",function(r){return $e(e),Be(j().activate(r))})("deactivate",function(r){return $e(e),Be(j().deactivate(r))}),x()()}if(2&t){const e=n.$implicit,i=j();w(1),k("label",e.label)("formattedLabel",e.formattedLabel)("color",e.color)("isActive",i.isActive(e))}}const Us=["tooltipTemplate"],p2=["seriesTooltipTemplate"],Eo=function(t,n){return[t,n]},n6e=["ngx-charts-line",""];function i6e(t,n){if(1&t){const e=vt();at(),b(0,"g",7),ye("dimensionsChanged",function(r){return $e(e),Be(j().updateXAxisHeight(r))}),x()}if(2&t){const e=j();k("xScale",e.xScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)}}function r6e(t,n){if(1&t){const e=vt();at(),b(0,"g",8),ye("dimensionsChanged",function(r){return $e(e),Be(j().updateYAxisWidth(r))}),x()}if(2&t){const e=j();k("yScale",e.yScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)("referenceLines",e.referenceLines)("showRefLines",e.showRefLines)("showRefLabels",e.showRefLabels)}}function o6e(t,n){if(1&t&&(at(),b(0,"g"),ge(1,"g",9),x()),2&t){const e=n.$implicit,i=j();k("@animationState","active"),w(1),k("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("activeEntries",i.activeEntries)("scaleType",i.scaleType)("curve",i.curve)("rangeFillOpacity",i.rangeFillOpacity)("hasRange",i.hasRange)("animations",i.animations)}}function s6e(t,n){if(1&t){const e=vt();at(),b(0,"g")(1,"g",13),ye("select",function(r){return $e(e),Be(j(2).onClick(r))})("activate",function(r){return $e(e),Be(j(2).onActivate(r))})("deactivate",function(r){return $e(e),Be(j(2).onDeactivate(r))}),x()()}if(2&t){const e=n.$implicit,i=j(2);w(1),k("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("visibleValue",i.hoveredVertical)("activeEntries",i.activeEntries)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)}}function a6e(t,n){if(1&t){const e=vt();at(),b(0,"g",10),ye("mouseleave",function(){return $e(e),Be(j().hideCircles())}),b(1,"g",11),ye("hover",function(r){return $e(e),Be(j().updateHoveredVertical(r))}),x(),J(2,s6e,2,9,"g",12),x()}if(2&t){const e=j();w(1),k("dims",e.dims)("xSet",e.xSet)("xScale",e.xScale)("yScale",e.yScale)("results",e.results)("colors",e.colors)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.seriesTooltipTemplate),w(1),k("ngForOf",e.results)}}function l6e(t,n){if(1&t&&(at(),b(0,"g"),ge(1,"g",15),x()),2&t){const e=n.$implicit,i=j(2);w(1),k("xScale",i.timelineXScale)("yScale",i.timelineYScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("curve",i.curve)("hasRange",i.hasRange)("animations",i.animations)}}function c6e(t,n){if(1&t){const e=vt();at(),b(0,"g",14),ye("onDomainChange",function(r){return $e(e),Be(j().updateDomain(r))}),J(1,l6e,2,8,"g",4),x()}if(2&t){const e=j();k("results",e.results)("view",Sr(10,Eo,e.timelineWidth,e.height))("height",e.timelineHeight)("scheme",e.scheme)("customColors",e.customColors)("scaleType",e.scaleType)("legend",e.legend),ht("transform",e.timelineTransform),w(1),k("ngForOf",e.results)("ngForTrackBy",e.trackBy)}}const u6e=["ngx-charts-line-series",""];function d6e(t,n){if(1&t&&(at(),ge(0,"g",4)),2&t){const e=j();k("name",e.gradientId)("stops",e.gradientStops)}}function h6e(t,n){if(1&t&&(at(),ge(0,"g",5)),2&t){const e=j();Mn("active",e.isActive(e.data))("inactive",e.isInactive(e.data)),k("data",e.data)("path",e.outerPath)("fill",e.hasGradient?e.gradientUrl:e.colors.getColor(e.data.name))("opacity",e.rangeFillOpacity)("animations",e.animations)}}let iW=(()=>{class t{constructor(e,i,r){this.applicationRef=e,this.componentFactoryResolver=i,this.injector=r}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(e){this._container=e}getComponentRootNode(e){return function a$e(t){return t.element}(e)?e.element.nativeElement:e.hostView&&e.hostView.rootNodes.length>0?e.hostView.rootNodes[0]:e.location.nativeElement}getRootViewContainerNode(e){return this.getComponentRootNode(e)}projectComponentBindings(e,i){if(i){if(void 0!==i.inputs){const r=Object.getOwnPropertyNames(i.inputs);for(const o of r)e.instance[o]=i.inputs[o]}if(void 0!==i.outputs){const r=Object.getOwnPropertyNames(i.outputs);for(const o of r)e.instance[o]=i.outputs[o]}}return e}appendComponent(e,i={},r){r||(r=this.getRootViewContainer());const o=this.getComponentRootNode(r),s=new kFe(o,this.componentFactoryResolver,this.applicationRef,this.injector),a=new Nz(e),l=s.attach(a);return this.projectComponentBindings(l,i),l}}return t.\u0275fac=function(e){return new(e||t)(ct(Au),ct($c),ct(Rs))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t})();function l$e(t,n,e){e=e||{};let i,r,o,s=null,a=0;function l(){a=!1===e.leading?0:+new Date,s=null,o=t.apply(i,r)}return function(){const c=+new Date;!a&&!1===e.leading&&(a=c);const u=n-(c-a);return i=this,r=arguments,u<=0?(clearTimeout(s),s=null,a=c,o=t.apply(i,r)):!s&&!1!==e.trailing&&(s=setTimeout(l,u)),o}}function c$e(t,n){return function(i,r,o){return{configurable:!0,enumerable:o.enumerable,get:function(){return Object.defineProperty(this,r,{configurable:!0,enumerable:o.enumerable,value:l$e(o.value,t,n)}),this[r]}}}}var Gs=(()=>(function(t){t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right"}(Gs||(Gs={})),Gs))();const Lf=7;function rW(t,n,e){return"top"===e?t.top-Lf:"bottom"===e?t.top+t.height-n.height+Lf:"center"===e?t.top+t.height/2-n.height/2:void 0}function oW(t,n,e){return"left"===e?t.left-Lf:"right"===e?t.left+t.width-n.width+Lf:"center"===e?t.left+t.width/2-n.width/2:void 0}class yc{static calculateVerticalAlignment(n,e,i){let r=rW(n,e,i);return r+e.height>window.innerHeight&&(r=window.innerHeight-e.height),r}static calculateVerticalCaret(n,e,i,r){let o;"top"===r&&(o=n.height/2-i.height/2+Lf),"bottom"===r&&(o=e.height-n.height/2-i.height/2-Lf),"center"===r&&(o=e.height/2-i.height/2);const s=rW(n,e,r);return s+e.height>window.innerHeight&&(o+=s+e.height-window.innerHeight),o}static calculateHorizontalAlignment(n,e,i){let r=oW(n,e,i);return r+e.width>window.innerWidth&&(r=window.innerWidth-e.width),r}static calculateHorizontalCaret(n,e,i,r){let o;"left"===r&&(o=n.width/2-i.width/2+Lf),"right"===r&&(o=e.width-n.width/2-i.width/2-Lf),"center"===r&&(o=e.width/2-i.width/2);const s=oW(n,e,r);return s+e.width>window.innerWidth&&(o+=s+e.width-window.innerWidth),o}static shouldFlip(n,e,i,r){let o=!1;return"right"===i&&n.left+n.width+e.width+r>window.innerWidth&&(o=!0),"left"===i&&n.left-e.width-r<0&&(o=!0),"top"===i&&n.top-e.height-r<0&&(o=!0),"bottom"===i&&n.top+n.height+e.height+r>window.innerHeight&&(o=!0),o}static positionCaret(n,e,i,r,o){let s=0,a=0;return n===Gs.right?(a=-7,s=yc.calculateVerticalCaret(i,e,r,o)):n===Gs.left?(a=e.width,s=yc.calculateVerticalCaret(i,e,r,o)):n===Gs.top?(s=e.height,a=yc.calculateHorizontalCaret(i,e,r,o)):n===Gs.bottom&&(s=-7,a=yc.calculateHorizontalCaret(i,e,r,o)),{top:s,left:a}}static positionContent(n,e,i,r,o){let s=0,a=0;return n===Gs.right?(a=i.left+i.width+r,s=yc.calculateVerticalAlignment(i,e,o)):n===Gs.left?(a=i.left-e.width-r,s=yc.calculateVerticalAlignment(i,e,o)):n===Gs.top?(s=i.top-e.height-r,a=yc.calculateHorizontalAlignment(i,e,o)):n===Gs.bottom&&(s=i.top+i.height+r,a=yc.calculateHorizontalAlignment(i,e,o)),{top:s,left:a}}static determinePlacement(n,e,i,r){if(yc.shouldFlip(i,e,n,r)){if(n===Gs.right)return Gs.left;if(n===Gs.left)return Gs.right;if(n===Gs.top)return Gs.bottom;if(n===Gs.bottom)return Gs.top}return n}}let u$e=(()=>{class t{constructor(e,i){this.element=e,this.renderer=i}get cssClasses(){let e="ngx-charts-tooltip-content";return e+=` position-${this.placement}`,e+=` type-${this.type}`,e+=` ${this.cssClass}`,e}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){const e=this.element.nativeElement,i=this.host.nativeElement.getBoundingClientRect();if(!i.height&&!i.width)return;const r=e.getBoundingClientRect();this.checkFlip(i,r),this.positionContent(e,i,r),this.showCaret&&this.positionCaret(i,r),setTimeout(()=>this.renderer.addClass(e,"animate"),1)}positionContent(e,i,r){const{top:o,left:s}=yc.positionContent(this.placement,r,i,this.spacing,this.alignment);this.renderer.setStyle(e,"top",`${o}px`),this.renderer.setStyle(e,"left",`${s}px`)}positionCaret(e,i){const r=this.caretElm.nativeElement,o=r.getBoundingClientRect(),{top:s,left:a}=yc.positionCaret(this.placement,i,e,o,this.alignment);this.renderer.setStyle(r,"top",`${s}px`),this.renderer.setStyle(r,"left",`${a}px`)}checkFlip(e,i){this.placement=yc.determinePlacement(this.placement,i,e,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(le(ti),le(Ss))},t.\u0275cmp=Rt({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(e,i){if(1&e&&io($Re,5),2&e){let r;cn(r=un())&&(i.caretElm=r.first)}},hostVars:2,hostBindings:function(e,i){1&e&&ye("resize",function(){return i.onWindowResize()},0,w5),2&e&&Su(i.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(e,i){1&e&&(b(0,"div"),ge(1,"span",0,1),b(3,"div",2),J(4,HRe,2,4,"span",3),J(5,zRe,1,1,"span",4),x()()),2&e&&(w(1),function J8(t,n,e){Tu(lc,Pd,Ig(Gt(),t,n,e),!0)}("tooltip-caret position-",i.placement,""),k("hidden",!i.showCaret),w(3),k("ngIf",!i.title),w(1),k("ngIf",i.title))},dependencies:[gn,kl],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),function SFe(t,n,e,i){var s,r=arguments.length,o=r<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,n,e,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(r<3?s(o):r>3?s(n,e,o):s(n,e))||o);r>3&&o&&Object.defineProperty(n,e,o)}([c$e(100)],t.prototype,"onWindowResize",null),t})();class d$e{constructor(n){this.injectionService=n,this.defaults={},this.components=new Map}getByType(n=this.type){return this.components.get(n)}create(n){return this.createByType(this.type,n)}createByType(n,e){e=this.assignDefaults(e);const i=this.injectComponent(n,e);return this.register(n,i),i}destroy(n){const e=this.components.get(n.componentType);if(e&&e.length){const i=e.indexOf(n);i>-1&&(e[i].destroy(),e.splice(i,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(n){const e=this.components.get(n);if(e&&e.length){let i=e.length-1;for(;i>=0;)this.destroy(e[i--])}}injectComponent(n,e){return this.injectionService.appendComponent(n,e)}assignDefaults(n){const e=Object.assign({},this.defaults.inputs),i=Object.assign({},this.defaults.outputs);return!n.inputs&&!n.outputs&&(n={inputs:n}),e&&(n.inputs=Object.assign(Object.assign({},e),n.inputs)),i&&(n.outputs=Object.assign(Object.assign({},i),n.outputs)),n}register(n,e){this.components.has(n)||this.components.set(n,[]),this.components.get(n).push(e)}}let UI=(()=>{class t extends d$e{constructor(e){super(e),this.type=u$e}}return t.\u0275fac=function(e){return new(e||t)(ct(iW))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),os=(()=>{class t{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new Ke,this.legendLabelActivate=new Ke,this.legendLabelDeactivate=new Ke}ngOnChanges(e){this.update()}update(){let e=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||"right"===this.legendOptions.position)&&(e="scaleLegend"===this.legendType?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-e)/12),this.legendWidth=this.legendOptions&&"right"!==this.legendOptions.position?this.chartWidth:Math.floor(this.view[0]*e/12)}getLegendType(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",data:"data",legendData:"legendData",colors:"colors",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[Lr([UI]),Hn],ngContentSelectors:QG,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(e,i){1&e&&(Cu(),b(0,"div",0),at(),b(1,"svg",1),ku(2),x(),J(3,URe,1,5,"ngx-charts-scale-legend",2),J(4,GRe,1,7,"ngx-charts-legend",3),x()),2&e&&(rr("width",i.view[0],"px"),k("@animationState","active")("@.disabled",!i.animations),w(1),ht("width",i.chartWidth)("height",i.view[1]),w(2),k("ngIf",i.showLegend&&"scaleLegend"===i.legendType),w(1),k("ngIf",i.showLegend&&"legend"===i.legendType))},dependencies:function(){return[gn,vW,bW]},encapsulation:2,data:{animation:[il("animationState",[Ia(":enter",[Dr({opacity:0}),Ma("500ms 100ms",Dr({opacity:1}))])])]},changeDetection:0}),t})(),h$e=(()=>{class t{constructor(e,i){this.element=e,this.zone=i,this.visible=new Ke,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const e=()=>{if(!this.element)return;const{offsetHeight:i,offsetWidth:r}=this.element.nativeElement;i&&r?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e())})}}return t.\u0275fac=function(e){return new(e||t)(le(ti),le(Wi))},t.\u0275dir=Zt({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t})(),ss=(()=>{class t{constructor(e,i,r){this.chartElement=e,this.zone=i,this.cd=r,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new Ke}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new h$e(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(e){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const e=this.getContainerDims();e&&(this.width=e.width,this.height=e.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let e,i;const r=this.chartElement.nativeElement;if(null!==r.parentNode){const o=r.parentNode.getBoundingClientRect();e=o.width,i=o.height}return e&&i?{width:e,height:i}:null}formatDates(){for(let e=0;ee.lift(new EFe(t,n))}(200)).subscribe(r=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=i}cloneData(e){const i=[];for(const r of e){const o={name:r.name};if(void 0!==r.value&&(o.value=r.value),void 0!==r.series){o.series=[];for(const s of r.series){const a=Object.assign({},s);o.series.push(a)}}void 0!==r.extra&&(o.extra=JSON.parse(JSON.stringify(r.extra))),i.push(o)}return i}}return t.\u0275fac=function(e){return new(e||t)(le(ti),le(Wi),le(qo))},t.\u0275cmp=Rt({type:t,selectors:[["base-chart"]],inputs:{scheme:"scheme",schemeType:"schemeType",animations:"animations",results:"results",view:"view",customColors:"customColors"},outputs:{select:"select"},features:[Hn],decls:1,vars:0,template:function(e,i){1&e&&ge(0,"div")},encapsulation:2}),t})(),GI=(()=>{class t{constructor(e){this.textHeight=25,this.margin=5,this.element=e.nativeElement}ngOnChanges(e){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case"top":case"bottom":this.y=this.offset,this.x=this.width/2;break;case"left":this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case"right":this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return t.\u0275fac=function(e){return new(e||t)(le(ti))},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[Hn],attrs:WRe,decls:2,vars:6,template:function(e,i){1&e&&(at(),b(0,"text"),I(1),x()),2&e&&(ht("stroke-width",i.strokeWidth)("x",i.x)("y",i.y)("text-anchor",i.textAnchor)("transform",i.transform),w(1),xn(" ",i.label," "))},encapsulation:2,changeDetection:0}),t})();function Rf(t,n=16){return"string"!=typeof t?"number"==typeof t?t+"":"":(t=t.trim()).length<=n?t:`${t.slice(0,n)}...`}function sW(t,n){if(t.length>n){const e=[],i=Math.floor(t.length/n);for(let r=0;r{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.dimensionsChanged=new Ke,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor="middle",this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0}ngOnChanges(e){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);e!==this.height&&(this.height=e,this.dimensionsChanged.emit({height:e}),setTimeout(()=>this.updateDims()))}update(){const e=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(r){return"Date"===r.constructor.name?r.toLocaleDateString():r.toLocaleString()};const i=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(r){return this.scale(r)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",i&&0!==i?(this.textTransform=`rotate(${i})`,this.textAnchor="end",this.verticalSpacing=10):this.textAnchor="middle",setTimeout(()=>this.updateDims())}getRotationAngle(e){let i=0;this.maxTicksLength=0;for(let c=0;cthis.maxTicksLength&&(this.maxTicksLength=d)}const s=8*Math.min(this.maxTicksLength,this.maxAllowedLength);let a=s;const l=Math.floor(this.width/e.length);for(;a>l&&i>-90;)i-=30,a=Math.cos(i*(Math.PI/180))*s;return i}getTicks(){let e;const i=this.getMaxTicks(20),r=this.getMaxTicks(100);return this.tickValues?e=this.tickValues:this.scale.ticks?e=this.scale.ticks.apply(this.scale,[r]):(e=this.scale.domain(),e=sW(e,i)),e}getMaxTicks(e){return Math.floor(this.width/e)}tickTransform(e){return"translate("+this.adjustedScale(e)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(e){return this.trimTicks?Rf(e,this.maxTickLength):e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(e,i){if(1&e&&io(ZG,5),2&e){let r;cn(r=un())&&(i.ticksElement=r.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",rotateTicks:"rotateTicks",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineHeight:"gridLineHeight",width:"width"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[Hn],attrs:qRe,decls:4,vars:2,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[4,"ngIf"],["y2","0",1,"gridline-path","gridline-path-vertical"]],template:function(e,i){1&e&&(at(),b(0,"g",null,0),J(2,XRe,5,7,"g",1),x(),J(3,JRe,2,2,"g",2)),2&e&&(w(2),k("ngForOf",i.ticks),w(1),k("ngForOf",i.ticks))},dependencies:[jn,gn],encapsulation:2,changeDetection:0}),t})(),Wl=(()=>{class t{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient="bottom",this.xAxisOffset=0,this.dimensionsChanged=new Ke,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5}ngOnChanges(e){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,typeof this.xAxisTickCount<"u"&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:e}){const i=e+25+5;i!==this.labelOffset&&(this.labelOffset=i,setTimeout(()=>{this.dimensionsChanged.emit({height:e})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(e,i){if(1&e&&io(aW,5),2&e){let r;cn(r=un())&&(i.ticksComponent=r.first)}},inputs:{rotateTicks:"rotateTicks",showGridLines:"showGridLines",xOrient:"xOrient",xAxisOffset:"xAxisOffset",xScale:"xScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickInterval:"xAxisTickInterval",xAxisTickCount:"xAxisTickCount"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[Hn],attrs:KRe,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(e,i){1&e&&(at(),b(0,"g"),J(1,QRe,1,12,"g",0),J(2,ZRe,1,5,"g",1),x()),2&e&&(ht("class",i.xAxisClassName)("transform",i.transform),w(1),k("ngIf",i.xScale),w(1),k("ngIf",i.showLabel))},dependencies:[gn,GI,aW],encapsulation:2,changeDetection:0}),t})();let lW=(()=>{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new Ke,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor="middle",this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0}ngOnChanges(e){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);e!==this.width&&(this.width=e,this.dimensionsChanged.emit({width:e}),setTimeout(()=>this.updateDims()))}update(){let e;const i="top"===this.orient||"right"===this.orient?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,e=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(r){return"Date"===r.constructor.name?r.toLocaleDateString():r.toLocaleString()},this.adjustedScale=e.bandwidth?function(r){return e(r)+.5*e.bandwidth()}:e,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case"top":case"bottom":this.transform=function(r){return"translate("+this.adjustedScale(r)+",0)"},this.textAnchor="middle",this.y2=this.innerTickSize*i,this.y1=this.tickSpacing*i,this.dy=i<0?"0em":".71em";break;case"left":this.transform=function(r){return"translate(0,"+this.adjustedScale(r)+")"},this.textAnchor="end",this.x2=this.innerTickSize*-i,this.x1=this.tickSpacing*-i,this.dy=".32em";break;case"right":this.transform=function(r){return"translate(0,"+this.adjustedScale(r)+")"},this.textAnchor="start",this.x2=this.innerTickSize*-i,this.x1=this.tickSpacing*-i,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(e=>e.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(e=>e.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=function Yh(t,n,e,i,r,[o,s,a,l]){let c="";return c=`M${[t+r,n]}`,c+="h"+((e=0===(e=Math.floor(e))?1:e)-2*r),c+=s?`a${[r,r]} 0 0 1 ${[r,r]}`:`h${r}v${r}`,c+="v"+((i=0===(i=Math.floor(i))?1:i)-2*r),c+=l?`a${[r,r]} 0 0 1 ${[-r,r]}`:`v${r}h${-r}`,c+="h"+(2*r-e),c+=a?`a${[r,r]} 0 0 1 ${[-r,-r]}`:`h${-r}v${-r}`,c+="v"+(2*r-i),c+=o?`a${[r,r]} 0 0 1 ${[r,-r]}`:`v${-r}h${r}`,c+="z",c}(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let e;const i=this.getMaxTicks(20),r=this.getMaxTicks(50);return this.tickValues?e=this.tickValues:this.scale.ticks?e=this.scale.ticks.apply(this.scale,[r]):(e=this.scale.domain(),e=sW(e,i)),e}getMaxTicks(e){return Math.floor(this.height/e)}tickTransform(e){return`translate(${this.adjustedScale(e)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(e){return this.trimTicks?Rf(e,this.maxTickLength):e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(e,i){if(1&e&&io(ZG,5),2&e){let r;cn(r=un())&&(i.ticksElement=r.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[Hn],attrs:e5e,decls:6,vars:4,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[1,"reference-area"],[4,"ngIf"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(e,i){1&e&&(at(),b(0,"g",null,0),J(2,t5e,5,9,"g",1),x(),J(3,n5e,1,2,"path",2),J(4,s5e,2,2,"g",3),J(5,c5e,2,1,"g",3)),2&e&&(w(2),k("ngForOf",i.ticks),w(1),k("ngIf",i.referenceLineLength>1&&i.refMax&&i.refMin&&i.showRefLines),w(1),k("ngForOf",i.ticks),w(1),k("ngForOf",i.referenceLines))},dependencies:[jn,gn],encapsulation:2,changeDetection:0}),t})(),El=(()=>{class t{constructor(){this.showGridLines=!1,this.yOrient="left",this.yAxisOffset=0,this.dimensionsChanged=new Ke,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(e){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),"right"===this.yOrient?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):(this.offset=this.offset,this.transform=`translate(${this.offset} , 0)`),void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:e}){e!==this.labelOffset&&"right"===this.yOrient?(this.labelOffset=e+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:e})},0)):e!==this.labelOffset&&(this.labelOffset=e,setTimeout(()=>{this.dimensionsChanged.emit({width:e})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(e,i){if(1&e&&io(lW,5),2&e){let r;cn(r=un())&&(i.ticksComponent=r.first)}},inputs:{showGridLines:"showGridLines",yOrient:"yOrient",yAxisOffset:"yAxisOffset",yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showLabel:"showLabel",labelText:"labelText",yAxisTickInterval:"yAxisTickInterval",yAxisTickCount:"yAxisTickCount",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[Hn],attrs:u5e,decls:3,vars:4,consts:[["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(e,i){1&e&&(at(),b(0,"g"),J(1,d5e,1,14,"g",0),J(2,h5e,1,5,"g",1),x()),2&e&&(ht("class",i.yAxisClassName)("transform",i.transform),w(1),k("ngIf",i.yScale),w(1),k("ngIf",i.showLabel))},dependencies:[gn,GI,lW],encapsulation:2,changeDetection:0}),t})(),cW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})();var m2=(()=>(function(t){t[t.popover="popover"]="popover",t[t.tooltip="tooltip"]="tooltip"}(m2||(m2={})),m2))(),g2=(()=>(function(t){t[t.left="left"]="left",t[t.center="center"]="center",t[t.right="right"]="right"}(g2||(g2={})),g2))(),$f=(()=>(function(t){t[t.all="all"]="all",t[t.focus="focus"]="focus",t[t.mouseover="mouseover"]="mouseover"}($f||($f={})),$f))();let Bu=(()=>{class t{constructor(e,i,r){this.tooltipService=e,this.viewContainerRef=i,this.renderer=r,this.tooltipCssClass="",this.tooltipTitle="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=Gs.top,this.tooltipAlignment=g2.center,this.tooltipType=m2.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=$f.all,this.tooltipImmediateExit=!1,this.show=new Ke,this.hide=new Ke}get listensForFocus(){return this.tooltipShowEvent===$f.all||this.tooltipShowEvent===$f.focus}get listensForHover(){return this.tooltipShowEvent===$f.all||this.tooltipShowEvent===$f.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(e){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(e))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(e){if(this.component||this.tooltipDisabled)return;const i=e?0:this.tooltipShowTimeout;clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const r=this.createBoundOptions();this.component=this.tooltipService.create(r),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},i)}addHideListeners(e){this.mouseEnterContentEvent=this.renderer.listen(e,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(e,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen(document,"click",i=>{e.contains(i.target)||this.hideTooltip()}))}hideTooltip(e=!1){if(!this.component)return;const i=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),e?i():this.timeout=setTimeout(i,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return t.\u0275fac=function(e){return new(e||t)(le(UI),le(nl),le(Ss))},t.\u0275dir=Zt({type:t,selectors:[["","ngx-tooltip",""]],hostBindings:function(e,i){1&e&&ye("focusin",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(o){return i.onMouseLeave(o.target)})("click",function(){return i.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),t})(),uW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({providers:[iW,UI],imports:[Vs]}),t})();function Ra(t){return t instanceof Date?t.toLocaleDateString():t.toLocaleString()}function oa(t){return t.toLocaleString().replace(/[&'`"<>]/g,n=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[n]))}const dW={};function Al(){let t=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return t=`a${t}`,dW[t]?Al():(dW[t]=!0,t)}let YI,ob=(()=>{class t{constructor(){this.type="standard",this.tooltipDisabled=!1,this.select=new Ke,this.activate=new Ke,this.deactivate=new Ke,this.barVisible=!1}ngOnInit(){this.gradientId="grad"+Al().toString(),this.gradientFill=`url(#${this.gradientId})`}ngOnChanges(e){this.update()}update(){this.circle=this.getActiveCircle()}getActiveCircle(){const e=this.data.series.findIndex(i=>{const r=i.name;return r&&this.visibleValue&&r.toString()===this.visibleValue.toString()&&void 0!==i.value});if(-1!==e)return this.mapDataPointToCircle(this.data.series[e],e)}mapDataPointToCircle(e,i){const r=this.data.name,o=e.value,s=e.name,a=Ra(s);let l;l=this.xScale("time"===this.scaleType?s:"linear"===this.scaleType?Number(s):s);const c=this.yScale("standard"===this.type?o:e.d1),d=this.yScale.range()[0]-c;let f;return f=this.colors.getColor("linear"===this.colors.scaleType?"standard"===this.type?o:e.d1:r),{classNames:[`circle-data-${i}`],value:o,label:s,data:Object.assign({},e,{series:r,value:o,name:s}),cx:l,cy:c,radius:5,height:d,tooltipLabel:a,color:f,opacity:1,seriesName:r,gradientStops:this.getGradientStops(f),min:e.min,max:e.max}}getTooltipText({tooltipLabel:e,value:i,seriesName:r,min:o,max:s}){return`\n ${oa(r)} \u2022 ${oa(e)}\n ${i.toLocaleString()}${this.getTooltipMinMaxText(o,s)}\n `}getTooltipMinMaxText(e,i){if(void 0!==e||void 0!==i){let r=" (";return void 0!==e?(void 0===i&&(r+="\u2265"),r+=e.toLocaleString(),void 0!==i&&(r+=" - ")):void 0!==i&&(r+="\u2264"),void 0!==i&&(r+=i.toLocaleString()),r+=")",r}return""}getGradientStops(e){return[{offset:0,color:e,opacity:.2},{offset:100,color:e,opacity:1}]}onClick(e){this.select.emit(e)}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(r=>e.name===r.name)}activateCircle(){this.barVisible=!0,this.activate.emit({name:this.data.name})}deactivateCircle(){this.barVisible=!1,this.circle.opacity=0,this.deactivate.emit({name:this.data.name})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-circle-series",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",visibleValue:"visibleValue",activeEntries:"activeEntries",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[Hn],attrs:f5e,decls:1,vars:1,consts:[[4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],["class","tooltip-bar",4,"ngIf"],["ngx-charts-circle","","ngx-tooltip","",1,"circle",3,"cx","cy","r","fill","pointerEvents","data","classNames","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"],[1,"tooltip-bar"]],template:function(e,i){1&e&&J(0,g5e,5,20,"g",0),2&e&&k("ngIf",i.circle)},dependencies:function(){return[gn,Bu,v2,bm]},encapsulation:2,data:{animation:[il("animationState",[Ia(":enter",[Dr({opacity:0}),Ma(250,Dr({opacity:1}))])])]},changeDetection:0}),t})(),v2=(()=>{class t{constructor(){this.select=new Ke,this.activate=new Ke,this.deactivate=new Ke}onClick(){this.select.emit(this.data)}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}ngOnChanges(e){this.classNames=Array.isArray(this.classNames)?this.classNames.join(" "):"",this.classNames+="circle"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-circle",""]],hostBindings:function(e,i){1&e&&ye("click",function(){return i.onClick()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{classNames:"classNames",cx:"cx",cy:"cy",r:"r",fill:"fill",stroke:"stroke",data:"data",circleOpacity:"circleOpacity",pointerEvents:"pointerEvents"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[Hn],attrs:v5e,decls:1,vars:8,template:function(e,i){1&e&&(at(),ge(0,"circle")),2&e&&ht("cx",i.cx)("cy",i.cy)("r",i.r)("fill",i.fill)("stroke",i.stroke)("opacity",i.circleOpacity)("class",i.classNames)("pointer-events",i.pointerEvents)},encapsulation:2,changeDetection:0}),t})(),bm=(()=>{class t{constructor(){this.orientation="vertical"}ngOnChanges(e){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%","horizontal"===this.orientation?this.x2="100%":"vertical"===this.orientation&&(this.y1="100%")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[Hn],attrs:x5e,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(e,i){1&e&&(at(),b(0,"linearGradient",0),J(1,w5e,1,5,"stop",1),x()),2&e&&(k("id",i.name),ht("x1",i.x1)("y1",i.y1)("x2",i.x2)("y2",i.y2),w(1),k("ngForOf",i.stops))},dependencies:[jn],encapsulation:2,changeDetection:0}),t})(),XI=(()=>{class t{constructor(e){this.opacity=1,this.startOpacity=.5,this.endOpacity=1,this.gradient=!1,this.animations=!0,this.select=new Ke,this.initialized=!1,this.hasGradient=!1,this.element=e.nativeElement}ngOnChanges(e){this.initialized?this.update():(this.loadAnimation(),this.initialized=!0)}update(){this.gradientId="grad"+Al().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl()}loadAnimation(){this.areaPath=this.startingPath,setTimeout(this.update.bind(this),100)}updatePathEl(){const e=va(this.element).select(".area");this.animations?e.transition().duration(750).attr("d",this.path):e.attr("d",this.path)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.startOpacity},{offset:100,color:this.fill,opacity:this.endOpacity}]}}return t.\u0275fac=function(e){return new(e||t)(le(ti))},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-area",""]],inputs:{opacity:"opacity",startOpacity:"startOpacity",endOpacity:"endOpacity",gradient:"gradient",animations:"animations",data:"data",path:"path",startingPath:"startingPath",fill:"fill",activeLabel:"activeLabel",stops:"stops"},outputs:{select:"select"},features:[Hn],attrs:S5e,decls:2,vars:5,consts:[[4,"ngIf"],[1,"area"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"]],template:function(e,i){1&e&&(J(0,D5e,2,2,"defs",0),at(),ge(1,"path",1)),2&e&&(k("ngIf",i.gradient),w(1),rr("opacity",i.opacity),ht("d",i.areaPath)("fill",i.gradient?i.gradientFill:i.fill))},dependencies:[gn,bm],encapsulation:2,changeDetection:0}),t})();typeof window<"u"?YI=window:typeof global<"u"&&(YI=global);const gW=YI.MouseEvent;function JI(t,n=!1,e=!0){if("function"==typeof gW)return new gW(t,{bubbles:n,cancelable:e});{const i=document.createEvent("MouseEvent");return i.initEvent(t,n,e),i}}let sb=(()=>{class t{constructor(){this.anchorOpacity=0,this.anchorPos=-1,this.anchorValues=[],this.showPercentage=!1,this.tooltipDisabled=!1,this.hover=new Ke}getValues(e){const i=[];for(const r of this.results){const o=r.series.find(a=>a.name.toString()===e.toString());let s=r.name;if(s instanceof Date&&(s=s.toLocaleDateString()),o){const a=o.name;let c,l=o.value;if(this.showPercentage&&(l=(o.d1-o.d0).toFixed(2)+"%"),"linear"===this.colors.scaleType){let d=l;o.d1&&(d=o.d1),c=this.colors.getColor(d)}else c=this.colors.getColor(r.name);const u=Object.assign({},o,{value:l,name:a,series:s,min:o.min,max:o.max,color:c});i.push(u)}}return i}mouseMove(e){const i=e.pageX-e.target.getBoundingClientRect().left,r=this.findClosestPointIndex(i),o=this.xSet[r];if(this.anchorPos=this.xScale(o),this.anchorPos=Math.max(0,this.anchorPos),this.anchorPos=Math.min(this.dims.width,this.anchorPos),this.anchorValues=this.getValues(o),this.anchorPos!==this.lastAnchorPos){const s=JI("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(s),this.anchorOpacity=.7,this.hover.emit({value:o}),this.showTooltip(),this.lastAnchorPos=this.anchorPos}}findClosestPointIndex(e){let i=0,r=this.xSet.length-1,o=Number.MAX_VALUE,s=0;for(;i<=r;){const a=(i+r)/2|0,l=this.xScale(this.xSet[a]),c=Math.abs(l-e);if(ce)){o=0,s=a;break}r=a-1}}return s}showTooltip(){const e=JI("mouseenter");this.tooltipAnchor.nativeElement.dispatchEvent(e)}hideTooltip(){const e=JI("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(e),this.anchorOpacity=0,this.lastAnchorPos=-1}getToolTipText(e){let i="";return i+=void 0!==e.series?e.series:"???",i+=": ",void 0!==e.value&&(i+=e.value.toLocaleString()),(void 0!==e.min||void 0!==e.max)&&(i+=" (",void 0!==e.min?(void 0===e.max&&(i+="\u2265"),i+=e.min.toLocaleString(),void 0!==e.max&&(i+=" - ")):void 0!==e.max&&(i+="\u2264"),void 0!==e.max&&(i+=e.max.toLocaleString()),i+=")"),i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-tooltip-area",""]],viewQuery:function(e,i){if(1&e&&io(E5e,5),2&e){let r;cn(r=un())&&(i.tooltipAnchor=r.first)}},inputs:{showPercentage:"showPercentage",tooltipDisabled:"tooltipDisabled",dims:"dims",xSet:"xSet",xScale:"xScale",yScale:"yScale",results:"results",colors:"colors",tooltipTemplate:"tooltipTemplate"},outputs:{hover:"hover"},attrs:A5e,decls:6,vars:18,consts:[["y","0",1,"tooltip-area",2,"opacity","0","cursor","auto",3,"mousemove","mouseleave"],["defaultTooltipTemplate",""],["y","0","ngx-tooltip","",1,"tooltip-anchor",3,"tooltipDisabled","tooltipPlacement","tooltipType","tooltipSpacing","tooltipTemplate","tooltipContext","tooltipImmediateExit"],["tooltipAnchor",""],[1,"area-tooltip-container"],["class","tooltip-item",4,"ngFor","ngForOf"],[1,"tooltip-item"],[1,"tooltip-item-color"]],template:function(e,i){if(1&e&&(at(),b(0,"g")(1,"rect",0),ye("mousemove",function(o){return i.mouseMove(o)})("mouseleave",function(){return i.hideTooltip()}),x(),J(2,I5e,2,1,"ng-template",null,1,Ur),ge(4,"rect",2,3),x()),2&e){const r=uo(3);w(1),ht("x",0)("width",i.dims.width)("height",i.dims.height),w(3),rr("opacity",i.anchorOpacity)("pointer-events","none"),k("@animationState",0!==i.anchorOpacity?"active":"inactive")("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement","right")("tooltipType","tooltip")("tooltipSpacing",15)("tooltipTemplate",i.tooltipTemplate?i.tooltipTemplate:r)("tooltipContext",i.anchorValues)("tooltipImmediateExit",!0),ht("x",i.anchorPos)("width",1)("height",i.dims.height)}},dependencies:[jn,Bu],encapsulation:2,data:{animation:[il("animationState",[Ia("inactive => active",[Dr({opacity:0}),Ma(250,Dr({opacity:.7}))]),Ia("active => inactive",[Dr({opacity:.7}),Ma(250,Dr({opacity:0}))])])]},changeDetection:0}),t})(),ab=(()=>{class t{constructor(e,i){this.cd=i,this.height=50,this.select=new Ke,this.onDomainChange=new Ke,this.initialized=!1,this.element=e.nativeElement}ngOnChanges(e){this.update(),this.initialized||(this.addBrush(),this.initialized=!0)}update(){this.dims=this.getDims(),this.height=this.dims.height;const e=this.view[1]-this.height;this.xDomain=this.getXDomain(),this.xScale=this.getXScale(),this.brush&&this.updateBrush(),this.transform=`translate(0 , ${e})`,this.filterId="filter"+Al().toString(),this.filter=`url(#${this.filterId})`,this.cd.markForCheck()}getXDomain(){let e=[];for(const r of this.results)for(const o of r.series)e.includes(o.name)||e.push(o.name);let i=[];return"time"===this.scaleType?i=[Math.min(...e),Math.max(...e)]:"linear"===this.scaleType?(e=e.map(s=>Number(s)),i=[Math.min(...e),Math.max(...e)]):i=e,i}getXScale(){let e;return"time"===this.scaleType?e=pm().range([0,this.dims.width]).domain(this.xDomain):"linear"===this.scaleType?e=bo().range([0,this.dims.width]).domain(this.xDomain):"ordinal"===this.scaleType&&(e=mm().range([0,this.dims.width]).padding(.1).domain(this.xDomain)),e}addBrush(){if(this.brush)return;const e=this.height,i=this.view[0];this.brush=function qje(){return gI(e2)}().extent([[0,0],[i,e]]).on("brush end",()=>{const o=(Vr.selection||this.xScale.range()).map(this.xScale.invert);this.onDomainChange.emit(o),this.cd.markForCheck()}),va(this.element).select(".brush").call(this.brush)}updateBrush(){this.brush&&(this.brush.extent([[0,0],[this.view[0],this.height]]),va(this.element).select(".brush").call(this.brush),va(this.element).select(".selection").attr("fill",void 0).attr("stroke",void 0).attr("fill-opacity",void 0),this.cd.markForCheck())}getDims(){return{width:this.view[0],height:this.height}}}return t.\u0275fac=function(e){return new(e||t)(le(ti),le(qo))},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-timeline",""]],inputs:{height:"height",view:"view",state:"state",results:"results",scheme:"scheme",customColors:"customColors",legend:"legend",miniChart:"miniChart",autoScale:"autoScale",scaleType:"scaleType"},outputs:{select:"select",onDomainChange:"onDomainChange"},features:[Hn],attrs:N5e,ngContentSelectors:QG,decls:7,vars:4,consts:[[1,"timeline"],["in","SourceGraphic","type","matrix","values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"],[1,"embedded-chart"],["x","0","y","0",1,"brush-background"],[1,"brush"]],template:function(e,i){1&e&&(Cu(),at(),b(0,"g",0)(1,"filter"),ge(2,"feColorMatrix",1),x(),b(3,"g",2),ku(4),x(),ge(5,"rect",3)(6,"g",4),x()),2&e&&(ht("transform",i.transform),w(1),ht("id",i.filterId),w(4),ht("width",i.view[0])("height",i.height))},styles:[".timeline .brush-background{fill:rgba(0,0,0,.05)}.timeline .brush .selection{fill:rgba(0,0,0,.1);stroke:#888;stroke-width:1px}.timeline .brush .handle{fill-opacity:0}.timeline .embedded-chart{opacity:.6}"],encapsulation:2,changeDetection:0}),t})(),vW=(()=>{class t{constructor(e){this.cd=e,this.horizontal=!1,this.labelClick=new Ke,this.labelActivate=new Ke,this.labelDeactivate=new Ke,this.legendEntries=[]}ngOnChanges(e){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const e=[];for(const i of this.data){const r=Ra(i);-1===e.findIndex(s=>s.label===r)&&e.push({label:i,formattedLabel:r,color:this.colors.getColor(i)})}return e}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(r=>e.label===r.name)}activate(e){this.labelActivate.emit(e)}deactivate(e){this.labelDeactivate.emit(e)}trackBy(e,i){return i.label}}return t.\u0275fac=function(e){return new(e||t)(le(qo))},t.\u0275cmp=Rt({type:t,selectors:[["ngx-charts-legend"]],inputs:{horizontal:"horizontal",data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[Hn],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(e,i){1&e&&(b(0,"div"),J(1,F5e,3,1,"header",0),b(2,"div",1)(3,"ul",2),J(4,O5e,2,4,"li",3),x()()()),2&e&&(rr("width",i.width,"px"),w(1),k("ngIf",(null==i.title?null:i.title.length)>0),w(2),rr("max-height",i.height-45,"px"),Mn("horizontal-legend",i.horizontal),w(1),k("ngForOf",i.legendEntries)("ngForTrackBy",i.trackBy))},dependencies:function(){return[jn,gn,yW]},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{font-size:14px;font-weight:700;margin-bottom:5px;margin-left:10px;overflow:hidden;white-space:nowrap}.chart-legend li,.chart-legend ul{list-style:none;margin:0;padding:0}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{background:rgba(0,0,0,.05);border-radius:3px;float:left;line-height:85%;list-style:none;overflow-x:hidden;overflow-y:auto;text-align:left;white-space:nowrap;width:100%}.chart-legend .legend-label{color:#afb7c8;cursor:pointer;font-size:90%;margin:8px}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{border-radius:3px;color:#5b646b;display:inline-block;height:15px;margin-right:5px;width:15px}.chart-legend .legend-label-text{font-size:12px;line-height:15px;vertical-align:top;width:calc(100% - 20px)}.chart-legend .legend-label-text,.chart-legend .legend-title-text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-legend .legend-title-text{line-height:16px;vertical-align:bottom}"],encapsulation:2,changeDetection:0}),t})(),yW=(()=>{class t{constructor(){this.isActive=!1,this.select=new Ke,this.activate=new Ke,this.deactivate=new Ke,this.toggle=new Ke}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(e,i){1&e&&ye("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(e,i){1&e&&(b(0,"span",0),ye("click",function(){return i.select.emit(i.formattedLabel)}),b(1,"span",1),ye("click",function(){return i.toggle.emit(i.formattedLabel)}),x(),b(2,"span",2),I(3),x()()),2&e&&(Mn("active",i.isActive),k("title",i.formattedLabel),w(1),rr("background-color",i.color),w(2),xn(" ",i.trimmedLabel," "))},encapsulation:2,changeDetection:0}),t})(),bW=(()=>{class t{constructor(e){this.sanitizer=e,this.horizontal=!1}ngOnChanges(e){const i=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle(`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${i})`)}gradientString(e,i){i.push(1);const r=[];return e.reverse().forEach((o,s)=>{r.push(`${o} ${Math.round(100*i[s])}%`)}),r.join(", ")}}return t.\u0275fac=function(e){return new(e||t)(le(ZB))},t.\u0275cmp=Rt({type:t,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[Hn],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(e,i){1&e&&(b(0,"div",0)(1,"div",1)(2,"span"),I(3),x()(),ge(4,"div",2),b(5,"div",1)(6,"span"),I(7),x()()()),2&e&&(rr("height",i.horizontal?void 0:i.height,"px")("width",i.width,"px"),Mn("horizontal-legend",i.horizontal),w(3),Dt(i.valueRange[1].toLocaleString()),w(1),rr("background",i.gradient),w(3),Dt(i.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{display:flex;flex-direction:column;text-align:center}.chart-legend .scale-legend-wrap{border-radius:5px;display:inline-block;flex:1;margin:0 auto;width:30px}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{height:30px;margin:0 16px;width:auto}"],encapsulation:2,changeDetection:0}),t})(),Vu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs,cW,uW,Vs,cW,uW]}),t})();let xW=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class vs{constructor(n,e,i,r){"string"==typeof n&&(n=xW.find(o=>o.name===n)),this.colorDomain=n.domain,this.scaleType=e,this.domain=i,this.customColors=r,this.scale=this.generateColorScheme(n,e,this.domain)}generateColorScheme(n,e,i){let r;if("string"==typeof n&&(n=xW.find(o=>o.name===n)),"quantile"===e)r=jG().range(n.domain).domain(i);else if("ordinal"===e)r=PI().range(n.domain).domain(i);else if("linear"===e){const o=[...n.domain];1===o.length&&(o.push(o[0]),this.colorDomain=o);const s=NG(0,1,1/o.length);r=bo().domain(s).range(o)}return r}getColor(n){if(null==n)throw new Error("Value can not be null");if("linear"===this.scaleType){const e=bo().domain(this.domain).range([0,1]);return this.scale(e(n))}{if("function"==typeof this.customColors)return this.customColors(n);const e=n.toString();let i;return this.customColors&&this.customColors.length>0&&(i=this.customColors.find(r=>r.name.toLowerCase()===e.toLowerCase())),i?i.value:this.scale(n)}}getLinearGradientStops(n,e){void 0===e&&(e=this.domain[0]);const i=bo().domain(this.domain).range([0,1]),r=La().domain(this.colorDomain).range([0,1]),o=this.getColor(n),s=i(e),a=this.getColor(e),l=i(n);let c=1,u=s;const d=[];for(d.push({color:a,offset:s,originalOffset:s,opacity:1});u=(l-r.bandwidth()).toFixed(4))break;d.push({color:h,offset:f,opacity:1}),u=f,c++}}if(d[d.length-1].offset<100&&d.push({color:o,offset:l,opacity:1}),l===s)d[0].offset=0,d[1].offset=100;else if(100!==d[d.length-1].offset)for(const h of d)h.offset=(h.offset-s)/(l-s)*100;return d}}let f$e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu]}),t})(),CW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu]}),t})(),m$e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu]}),t})(),y$e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu]}),t})(),DW=(()=>{class t{constructor(e){this.element=e,this.fill="none",this.animations=!0,this.select=new Ke,this.initialized=!1}ngOnChanges(e){this.initialized?this.updatePathEl():(this.initialized=!0,this.initialPath=this.path)}updatePathEl(){const e=va(this.element.nativeElement).select(".line");this.animations?e.transition().duration(750).attr("d",this.path):e.attr("d",this.path)}}return t.\u0275fac=function(e){return new(e||t)(le(ti))},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-line",""]],inputs:{fill:"fill",animations:"animations",path:"path",stroke:"stroke",data:"data"},outputs:{select:"select"},features:[Hn],attrs:n6e,decls:1,vars:4,consts:[["stroke-width","1.5px",1,"line"]],template:function(e,i){1&e&&(at(),ge(0,"path",0)),2&e&&(k("@animationState","active"),ht("d",i.initialPath)("fill",i.fill)("stroke",i.stroke))},encapsulation:2,data:{animation:[il("animationState",[Ia(":enter",[Dr({strokeDasharray:2e3,strokeDashoffset:2e3}),Ma(1e3,Dr({strokeDashoffset:0}))])])]},changeDetection:0}),t})(),b$e=(()=>{class t extends ss{constructor(){super(...arguments),this.legendTitle="Legend",this.legendPosition="right",this.showGridLines=!0,this.curve=gm,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.showRefLines=!1,this.showRefLabels=!0,this.activate=new Ke,this.deactivate=new Ke,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.timelineHeight=50,this.timelinePadding=10}update(){super.update(),this.dims=function gs({width:t,height:n,margins:e,showXAxis:i=!1,showYAxis:r=!1,xAxisHeight:o=0,yAxisWidth:s=0,showXLabel:a=!1,showYLabel:l=!1,showLegend:c=!1,legendType:u="ordinal",legendPosition:d="right",columns:h=12}){let f=e[3],p=t,m=n-e[0]-e[2];return c&&"right"===d&&(h-="ordinal"===u?2:1),p=p*h/12,p=p-e[1]-e[3],i&&(m-=5,m-=o,a&&(m-=30)),r&&(p-=5,p-=s,f+=s,f+=10,l&&(p-=30,f+=30)),p=Math.max(0,p),m=Math.max(0,m),{width:Math.floor(p),height:Math.floor(m),xOffset:Math.floor(f)}}({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height),this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`,this.clipPathId="clip"+Al().toString(),this.clipPath=`url(#${this.clipPathId})`}updateTimeline(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform=`translate(${this.dims.xOffset}, ${-this.margin[2]})`)}getXDomain(){let e=function b2(t){const n=new Set;for(const e of t)for(const i of e.series)n.add(i.name);return Array.from(n)}(this.results);this.scaleType=function Bf(t,n=!0){return n&&t.every(r=>r instanceof Date)?"time":t.every(i=>"number"==typeof i)?"linear":"ordinal"}(e);let r,o,i=[];return"linear"===this.scaleType&&(e=e.map(s=>Number(s))),("time"===this.scaleType||"linear"===this.scaleType)&&(r=this.xScaleMin?this.xScaleMin:Math.min(...e),o=this.xScaleMax?this.xScaleMax:Math.max(...e)),"time"===this.scaleType?(i=[new Date(r),new Date(o)],this.xSet=[...e].sort((s,a)=>{const l=s.getTime(),c=a.getTime();return l>c?1:c>l?-1:0})):"linear"===this.scaleType?(i=[r,o],this.xSet=[...e].sort((s,a)=>s-a)):(i=e,this.xSet=e),i}getYDomain(){const e=[];for(const s of this.results)for(const a of s.series)e.indexOf(a.value)<0&&e.push(a.value),void 0!==a.min&&(this.hasRange=!0,e.indexOf(a.min)<0&&e.push(a.min)),void 0!==a.max&&(this.hasRange=!0,e.indexOf(a.max)<0&&e.push(a.max));const i=[...e];return this.autoScale||i.push(0),[this.yScaleMin?this.yScaleMin:Math.min(...i),this.yScaleMax?this.yScaleMax:Math.max(...i)]}getSeriesDomain(){return this.results.map(e=>e.name)}getXScale(e,i){let r;return"time"===this.scaleType?r=pm().range([0,i]).domain(e):"linear"===this.scaleType?(r=bo().range([0,i]).domain(e),this.roundDomains&&(r=r.nice())):"ordinal"===this.scaleType&&(r=mm().range([0,i]).padding(.1).domain(e)),r}getYScale(e,i){const r=bo().range([i,0]).domain(e);return this.roundDomains?r.nice():r}updateDomain(e){this.filteredDomain=e,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)}updateHoveredVertical(e){this.hoveredVertical=e.value,this.deactivateAll()}hideCircles(){this.hoveredVertical=null,this.deactivateAll()}onClick(e){this.select.emit(e)}trackBy(e,i){return i.name}setColors(){let e;e="ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.colors=new vs(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===e.scaleType?(e.domain=this.seriesDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.yDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onActivate(e){this.deactivateAll(),!(this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value)>-1)&&(this.activeEntries=[e],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const e of this.activeEntries)this.deactivate.emit({value:e,entries:[]});this.activeEntries=[]}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ji(t)))(i||t)}}(),t.\u0275cmp=Rt({type:t,selectors:[["ngx-charts-line-chart"]],contentQueries:function(e,i,r){if(1&e&&(ni(r,Us,5),ni(r,p2,5)),2&e){let o;cn(o=un())&&(i.tooltipTemplate=o.first),cn(o=un())&&(i.seriesTooltipTemplate=o.first)}},hostBindings:function(e,i){1&e&&ye("mouseleave",function(){return i.hideCircles()})},inputs:{legendTitle:"legendTitle",legendPosition:"legendPosition",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",showRefLines:"showRefLines",showRefLabels:"showRefLabels",legend:"legend",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",autoScale:"autoScale",timeline:"timeline",gradient:"gradient",schemeType:"schemeType",rangeFillOpacity:"rangeFillOpacity",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",referenceLines:"referenceLines",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",yScaleMin:"yScaleMin",yScaleMax:"yScaleMax"},outputs:{activate:"activate",deactivate:"deactivate"},features:[vi],decls:11,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"line-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","activeEntries","scaleType","curve","rangeFillOpacity","hasRange","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","tooltipDisabled","tooltipTemplate","hover"],[4,"ngFor","ngForOf"],["ngx-charts-circle-series","",3,"xScale","yScale","colors","data","scaleType","visibleValue","activeEntries","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","scaleType","curve","hasRange","animations"]],template:function(e,i){1&e&&(b(0,"ngx-charts-chart",0),ye("legendLabelClick",function(o){return i.onClick(o)})("legendLabelActivate",function(o){return i.onActivate(o)})("legendLabelDeactivate",function(o){return i.onDeactivate(o)}),at(),b(1,"defs")(2,"clipPath"),ge(3,"rect"),x()(),b(4,"g",1),J(5,i6e,1,10,"g",2),J(6,r6e,1,12,"g",3),b(7,"g"),J(8,o6e,2,11,"g",4),J(9,a6e,3,9,"g",5),x()(),J(10,c6e,2,13,"g",6),x()),2&e&&(k("view",Sr(17,Eo,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),w(2),ht("id",i.clipPathId),w(1),ht("width",i.dims.width+10)("height",i.dims.height+10)("transform","translate(-5, -5)"),w(1),ht("transform",i.transform),w(1),k("ngIf",i.xAxis),w(1),k("ngIf",i.yAxis),w(1),ht("clip-path",i.clipPath),w(1),k("ngForOf",i.results)("ngForTrackBy",i.trackBy),w(1),k("ngIf",!i.tooltipDisabled),w(1),k("ngIf",i.timeline&&"ordinal"!=i.scaleType))},dependencies:function(){return[jn,gn,Wl,El,sb,os,ob,ab,_$e]},styles:[".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:none}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:none}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{opacity:.2;transition:opacity .1s ease-in-out}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{fill:none;stroke:#ddd;stroke-width:1}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-dasharray:5;stroke-dashoffset:5;stroke-width:1}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill:#000;fill-opacity:.05}.ngx-charts .gridline-path-dotted{fill:none;stroke:#ddd;stroke-dasharray:1,20;stroke-dashoffset:3;stroke-width:1}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}"],encapsulation:2,data:{animation:[il("animationState",[Ia(":leave",[Dr({opacity:1}),Ma(500,Dr({opacity:0}))])])]},changeDetection:0}),t})(),_$e=(()=>{class t{constructor(){this.animations=!0}ngOnChanges(e){this.update()}update(){this.updateGradients();const e=this.sortData(this.data.series),i=this.getLineGenerator();this.path=i(e)||"";const r=this.getAreaGenerator();if(this.areaPath=r(e)||"",this.hasRange){const o=this.getRangeGenerator();this.outerPath=o(e)||""}if(this.hasGradient){this.stroke=this.gradientUrl;const o=this.data.series.map(l=>l.value),s=Math.max(...o);s===Math.min(...o)&&(this.stroke=this.colors.getColor(s))}else this.stroke=this.colors.getColor(this.data.name)}getLineGenerator(){return c2().x(e=>{const i=e.name;let r;return r=this.xScale("time"===this.scaleType?i:"linear"===this.scaleType?Number(i):i),r}).y(e=>this.yScale(e.value)).curve(this.curve)}getRangeGenerator(){return Sv().x(e=>{const i=e.name;let r;return r=this.xScale("time"===this.scaleType?i:"linear"===this.scaleType?Number(i):i),r}).y0(e=>this.yScale("number"==typeof e.min?e.min:e.value)).y1(e=>this.yScale("number"==typeof e.max?e.max:e.value)).curve(this.curve)}getAreaGenerator(){return Sv().x(i=>this.xScale(i.name)).y0(()=>this.yScale.range()[0]).y1(i=>this.yScale(i.value)).curve(this.curve)}sortData(e){return"linear"===this.scaleType?function KI(t,n,e="asc"){return t.sort((i,r)=>"asc"===e?i[n]-r[n]:r[n]-i[n])}(e,"name"):"time"===this.scaleType?function ZI(t,n,e="asc"){return t.sort((i,r)=>{const o=i[n].getTime(),s=r[n].getTime();return"asc"===e?o>s?1:s>o?-1:0:o>s?-1:s>o?1:0})}(e,"name"):function QI(t,n,e="asc",i){return t.sort((r,o)=>{const a=o[n],l=i.indexOf(r[n]),c=i.indexOf(a);return"asc"===e?l-c:c-l})}(e,"name","asc",this.xScale.domain())}updateGradients(){if("linear"===this.colors.scaleType){this.hasGradient=!0,this.gradientId="grad"+Al().toString(),this.gradientUrl=`url(#${this.gradientId})`;const e=this.data.series.map(o=>o.value),i=Math.max(...e),r=Math.min(...e);this.gradientStops=this.colors.getLinearGradientStops(i,r),this.areaGradientStops=this.colors.getLinearGradientStops(i)}else this.hasGradient=!1,this.gradientStops=void 0,this.areaGradientStops=void 0}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(r=>e.name===r.name)}isInactive(e){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(r=>e.name===r.name)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-line-series",""]],inputs:{animations:"animations",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",curve:"curve",activeEntries:"activeEntries",rangeFillOpacity:"rangeFillOpacity",hasRange:"hasRange"},features:[Hn],attrs:u6e,decls:6,vars:22,consts:[["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops",4,"ngIf"],["ngx-charts-area","",1,"line-highlight",3,"data","path","fill","opacity","startOpacity","gradient","stops","animations"],["ngx-charts-line","",1,"line-series",3,"data","path","stroke","animations"],["ngx-charts-area","","class","line-series-range",3,"data","path","fill","active","inactive","opacity","animations",4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],["ngx-charts-area","",1,"line-series-range",3,"data","path","fill","opacity","animations"]],template:function(e,i){1&e&&(at(),b(0,"g")(1,"defs"),J(2,d6e,1,2,"g",0),x(),ge(3,"g",1)(4,"g",2),J(5,h6e,1,9,"g",3),x()),2&e&&(w(2),k("ngIf",i.hasGradient),w(1),Mn("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),k("data",i.data)("path",i.areaPath)("fill",i.hasGradient?i.gradientUrl:i.colors.getColor(i.data.name))("opacity",.25)("startOpacity",0)("gradient",!0)("stops",i.areaGradientStops)("animations",i.animations),w(1),Mn("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),k("data",i.data)("path",i.path)("stroke",i.stroke)("animations",i.animations),w(1),k("ngIf",i.hasRange))},dependencies:[gn,XI,bm,DW],encapsulation:2,changeDetection:0}),t})(),TW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu]}),t})();Math;let iN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu]}),t})(),S$e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu,iN,TW]}),t})(),A$e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu]}),t})(),N$e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu]}),t})(),j$e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu,iN,CW]}),t})(),L$e=(()=>{class t{constructor(){!function P$e(){typeof SVGElement<"u"&&typeof SVGElement.prototype.contains>"u"&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu,f$e,CW,m$e,y$e,TW,S$e,A$e,iN,N$e,j$e]}),t})();function R$e(t,n){if(1&t&&(b(0,"ngb-alert",19),ge(1,"img",20),b(2,"h6",21),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function $$e(t,n){1&t&&ge(0,"img",31)}function B$e(t,n){1&t&&ge(0,"img",32)}function V$e(t,n){1&t&&ge(0,"img",33)}function H$e(t,n){1&t&&ge(0,"img",34)}function z$e(t,n){if(1&t&&(b(0,"tr",24)(1,"td"),ta(2,25),J(3,$$e,1,0,"img",26),J(4,B$e,1,0,"img",27),J(5,V$e,1,0,"img",28),J(6,H$e,1,0,"img",29),na(),b(7,"span"),I(8),x()(),b(9,"td"),I(10),b(11,"span",30),I(12),x()(),b(13,"td"),I(14),b(15,"span",30),I(16),x()(),b(17,"td"),I(18),b(19,"span",30),I(20),x()(),b(21,"td"),I(22),b(23,"span",30),I(24),x()()()),2&t){const e=n.$implicit,i=j(2);w(2),k("ngSwitch",e.health),w(1),k("ngSwitchCase",0),w(1),k("ngSwitchCase",1),w(1),k("ngSwitchCase",2),w(1),k("ngSwitchCase",3),w(2),Dt(e.name),w(2),xn("",e.session_count," "),w(1),k("hidden",!i.showDelta),w(1),xn("(",i.getMaxSessionCount()-e.session_count," delta)"),w(2),xn("",e.presence_count," "),w(1),k("hidden",!i.showDelta),w(1),xn("(",i.getMaxPresenceCount()-e.presence_count," delta)"),w(2),xn("",e.match_count," "),w(1),k("hidden",!i.showDelta),w(1),xn("(",i.getMaxMatchCount()-e.match_count," delta)"),w(2),xn("",e.goroutine_count," "),w(1),k("hidden",!i.showDelta),w(1),xn("(",i.getMaxGoroutineCount()-e.goroutine_count," delta)")}}function U$e(t,n){if(1&t&&(b(0,"tbody"),J(1,z$e,25,18,"tr",22),b(2,"tr",3),ge(3,"td",23),b(4,"th",3),I(5),x(),b(6,"th",3),I(7),x(),b(8,"th",3),I(9),x(),b(10,"th",3),I(11),x()()()),2&t){const e=j();w(1),k("ngForOf",e.statusData.nodes),w(4),Dt(e.getTotalSessionCount()),w(2),Dt(e.getMaxPresenceCount()),w(2),Dt(e.getTotalMatchCount()),w(2),Dt(e.getTotalGorountineCount())}}function G$e(t,n){if(1&t&&(b(0,"option",35),I(1),x()),2&t){const e=n.$implicit,i=j();Fh("value",e),w(1),Dt(i.ranges[e])}}const w2=function(t){return{"background-color":t}};function W$e(t,n){if(1&t&&(b(0,"span"),ge(1,"br")(2,"span",41),b(3,"span",42),I(4),x()()),2&t){const e=n.$implicit;w(2),k("ngStyle",lr(3,w2,e.color)),w(2),Ld("",e.series,": ",e.value,"")}}function q$e(t,n){if(1&t&&(b(0,"div",39),I(1),J(2,W$e,5,5,"span",40),x()),2&t){const e=n.model;w(1),xn(" ",e[0].name.toLocaleString()," "),w(1),k("ngForOf",e)}}function X$e(t,n){if(1&t&&(b(0,"div",36)(1,"ngx-charts-line-chart",37),J(2,q$e,3,2,"ng-template",null,38,Ur),x()()),2&t){const e=j();w(1),k("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.latencyGraphData)}}function Y$e(t,n){if(1&t&&(b(0,"span"),ge(1,"br")(2,"span",41),b(3,"span",42),I(4),x()()),2&t){const e=n.$implicit;w(2),k("ngStyle",lr(3,w2,e.color)),w(2),Ld("",e.series,": ",e.value,"")}}function J$e(t,n){if(1&t&&(b(0,"div",39),I(1),J(2,Y$e,5,5,"span",40),x()),2&t){const e=n.model;w(1),xn(" ",e[0].name.toLocaleString()," "),w(1),k("ngForOf",e)}}function K$e(t,n){if(1&t&&(b(0,"div",36)(1,"ngx-charts-line-chart",43),J(2,J$e,3,2,"ng-template",null,38,Ur),x()()),2&t){const e=j();w(1),k("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.rateGraphData)}}function Q$e(t,n){if(1&t&&(b(0,"span"),ge(1,"br")(2,"span",41),b(3,"span",42),I(4),x()()),2&t){const e=n.$implicit;w(2),k("ngStyle",lr(3,w2,e.color)),w(2),Ld("",e.series,": ",e.value,"")}}function Z$e(t,n){if(1&t&&(b(0,"div",39),I(1),J(2,Q$e,5,5,"span",40),x()),2&t){const e=n.model;w(1),xn(" ",e[0].name.toLocaleString()," "),w(1),k("ngForOf",e)}}function eBe(t,n){if(1&t&&(b(0,"div",36)(1,"ngx-charts-line-chart",44),J(2,Z$e,3,2,"ng-template",null,38,Ur),x()()),2&t){const e=j();w(1),k("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.inputGraphData)}}function tBe(t,n){if(1&t&&(b(0,"span"),ge(1,"br")(2,"span",41),b(3,"span",42),I(4),x()()),2&t){const e=n.$implicit;w(2),k("ngStyle",lr(3,w2,e.color)),w(2),Ld("",e.series,": ",e.value,"")}}function nBe(t,n){if(1&t&&(b(0,"div",39),I(1),J(2,tBe,5,5,"span",40),x()),2&t){const e=n.model;w(1),xn(" ",e[0].name.toLocaleString()," "),w(1),k("ngForOf",e)}}function iBe(t,n){if(1&t&&(b(0,"div",36)(1,"ngx-charts-line-chart",45),J(2,nBe,3,2,"ng-template",null,38,Ur),x()()),2&t){const e=j();w(1),k("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.outputGraphData)}}let rBe=(()=>{class t{constructor(e,i,r){K(this,"route",void 0),K(this,"consoleService",void 0),K(this,"formBuilder",void 0),K(this,"error",""),K(this,"showDelta",!1),K(this,"statusData",void 0),K(this,"rateGraphData",[]),K(this,"latencyGraphData",[]),K(this,"inputGraphData",[]),K(this,"outputGraphData",[]),K(this,"rangeForm",void 0),K(this,"ranges",{1:"last 1 minute",10:"last 10 minutes",30:"last 30 minutes",60:"last 1 hour",1440:"last 24 hours"}),K(this,"rangesKeys",Object.keys(this.ranges).map(o=>+o)),K(this,"colorScheme",{domain:["#5AA454","#E44D25","#1e59cf","#7aa3e5","#a8385d","#d0bd00"]}),K(this,"samples",60),K(this,"refreshTimer",void 0),K(this,"$refreshTimer",void 0),this.route=e,this.consoleService=i,this.formBuilder=r}ngOnInit(){this.rangeForm=this.formBuilder.group({rangeMinutes:[10]}),this.route.data.subscribe(e=>{this.initData(e[0]),this.refresh(),this.refreshTimer=av(0,1e3*this.getPeriod()),this.$refreshTimer=this.refreshTimer.subscribe(r=>this.refresh())},e=>{this.error=e})}refresh(){this.consoleService.getStatus("").subscribe(e=>{this.statusData=e,this.rateGraphData=this.updateData(this.rateGraphData,"avg_rate_sec",e),this.latencyGraphData=this.updateData(this.latencyGraphData,"avg_latency_ms",e),this.inputGraphData=this.updateData(this.inputGraphData,"avg_input_kbs",e),this.outputGraphData=this.updateData(this.outputGraphData,"avg_output_kbs",e)})}generateSeries(){let e=new Date;e.setMilliseconds(0);const i=[];for(let r=0;r({name:r,value:0}))}initData(e){const i=this.generateSeries();this.latencyGraphData=e.map(r=>({name:r,series:i})),this.rateGraphData=e.map(r=>({name:r,series:i})),this.inputGraphData=e.map(r=>({name:r,series:i})),this.outputGraphData=e.map(r=>({name:r,series:i}))}updateData(e,i,r){const o=r.nodes,s=[],a=r.timestamp,l=e.map(d=>d.name),c=o.map(d=>d.name),u=this.diff(l,c);for(const d of e)u.includes(d.name)&&s.push({name:d.name,series:this.shiftData(d.series,0,a)});for(const d of o){let h=[],f={};const p=e.find(m=>m.name===d.name)?.series;h=this.shiftData(p||this.generateSeries(),d[i],a),f={name:d.name,series:h},s.push(f)}return s}shiftData(e,i,r){const o=e.slice(1);return o.push({name:new Date(r),value:i}),o}getPeriod(){return Math.floor(60*this.f.rangeMinutes.value/this.samples)}setRange(e){this.rangeForm.reset({rangeMinutes:+e.target.value}),this.reset()}reset(){this.consoleService.getStatus("").subscribe(e=>{this.initData(e.nodes.map(i=>i.name)),this.$refreshTimer?.unsubscribe(),this.refreshTimer=av(0,1e3*this.getPeriod()),this.$refreshTimer=this.refreshTimer.subscribe(i=>this.refresh())},e=>{this.error=e})}diff(e,i){const r=new Set(e);for(const o of i)r.delete(o);return Array.from(r)}get f(){return this.rangeForm.controls}ngOnDestroy(){this.$refreshTimer.unsubscribe()}getTotalSessionCount(){return this.statusData.nodes.reduce((e,i)=>e+i.session_count,0)}getMaxSessionCount(){return Math.max(...this.statusData.nodes.map(e=>e.session_count))}getMaxPresenceCount(){return Math.max(...this.statusData.nodes.map(e=>e.presence_count))}getMaxMatchCount(){return Math.max(...this.statusData.nodes.map(e=>e.match_count))}getTotalMatchCount(){return this.statusData.nodes.reduce((e,i)=>e+i.match_count,0)}getMaxGoroutineCount(){return Math.max(...this.statusData.nodes.map(e=>e.goroutine_count))}getTotalGorountineCount(){return this.statusData.nodes.reduce((e,i)=>e+i.goroutine_count,0)}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(xi),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["app-status"]],decls:62,vars:10,consts:[[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],[1,"status-table","table","table-sm","table-striped","mb-4",3,"mouseover","mouseout"],[1,"thead-light"],["scope","col"],[4,"ngIf"],[3,"formGroup"],[1,"row","no-gutters","justify-content-end"],[1,"col-12","text-right"],["ngbDropdown","","role","group",1,"btn-group"],["formControlName","rangeMinutes",1,"custom-select","custom-select-sm","ml-3",3,"change"],[3,"value",4,"ngFor","ngForOf"],[1,"row"],[1,"col-6","d-inline-flex","justify-content-between","align-items-center"],[1,"graph-title"],[1,"d-inline"],[1,"col-6"],["class","graph",4,"ngIf"],[1,"row","mt-4"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["class","clickable",4,"ngFor","ngForOf"],[1,"border-0"],[1,"clickable"],[3,"ngSwitch"],["class","mr-2","src","/static/svg/green-tick.svg","alt","","width","15","height","","ngbTooltip","OK",4,"ngSwitchCase"],["class","mr-2","src","/static/svg/red-triangle.svg","alt","","width","15","height","","ngbTooltip","Error",4,"ngSwitchCase"],["class","mr-2","src","/static/blue-spinner.svg","alt","","width","15","height","","ngbTooltip","Connecting",4,"ngSwitchCase"],["class","mr-2","src","/static/red-spinner.svg","alt","","width","15","height","","ngbTooltip","Disconnecting",4,"ngSwitchCase"],[1,"text-muted","small",3,"hidden"],["src","/static/svg/green-tick.svg","alt","","width","15","height","","ngbTooltip","OK",1,"mr-2"],["src","/static/svg/red-triangle.svg","alt","","width","15","height","","ngbTooltip","Error",1,"mr-2"],["src","/static/blue-spinner.svg","alt","","width","15","height","","ngbTooltip","Connecting",1,"mr-2"],["src","/static/red-spinner.svg","alt","","width","15","height","","ngbTooltip","Disconnecting",1,"mr-2"],[3,"value"],[1,"graph"],["xAxisLabel","Time","yAxisLabel","Latency (ms)",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"],["seriesTooltipTemplate",""],[1,"chart-legend"],[4,"ngFor","ngForOf"],[1,"legend-label-color",3,"ngStyle"],[1,"legend-label-text"],["xAxisLabel","Time","yAxisLabel","Request Count",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"],["xAxisLabel","Time","yAxisLabel","Input (kb/s)",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"],["xAxisLabel","Time","yAxisLabel","Output (kb/s)",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"Status"),x(),J(2,R$e,4,2,"ngb-alert",1),b(3,"table",2),ye("mouseover",function(){return i.showDelta=!0})("mouseout",function(){return i.showDelta=!1}),b(4,"thead",3)(5,"tr")(6,"th",4),I(7,"Node name"),x(),b(8,"th",4),I(9,"Sessions"),x(),b(10,"th",4),I(11,"Presences"),x(),b(12,"th",4),I(13,"Authoritative Matches"),x(),b(14,"th",4),I(15,"Goroutines"),x()()(),J(16,U$e,12,5,"tbody",5),x(),b(17,"form",6)(18,"div",7)(19,"div",8)(20,"span"),I(21,"View:"),x(),b(22,"div",9)(23,"select",10),ye("change",function(o){return i.setRange(o)}),J(24,G$e,2,2,"option",11),function qE(t,n){const e=Pr();let i;const r=t+Bo;e.firstCreatePass?(i=function R_e(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=Ap(i.type)),s=Pc(le);try{const a=ux(!1),l=o();return ux(a),function Lye(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,Gt(),r,l),l}finally{Pc(s)}}(25,"sortNumbers"),x()()()()(),b(26,"div",12)(27,"div",13)(28,"div",14)(29,"h5",15),I(30,"Processing Latency"),x(),b(31,"small"),I(32," (ms)"),x()()(),b(33,"div",13)(34,"div",14)(35,"h5",15),I(36,"Rate"),x(),b(37,"small"),I(38," (rpc/s)"),x()()()(),b(39,"div",12)(40,"div",16),J(41,X$e,4,12,"div",17),x(),b(42,"div",16),J(43,K$e,4,12,"div",17),x()(),b(44,"div",18)(45,"div",13)(46,"div",14)(47,"h5",15),I(48,"Input"),x(),b(49,"small"),I(50," (kb/s)"),x()()(),b(51,"div",13)(52,"div",14)(53,"h5",15),I(54,"Output"),x(),b(55,"small"),I(56," (kb/s)"),x()()()(),b(57,"div",12)(58,"div",16),J(59,eBe,4,12,"div",17),x(),b(60,"div",16),J(61,iBe,4,12,"div",17),x()()),2&e&&(w(2),k("ngIf",i.error),w(14),k("ngIf",i.statusData),w(1),k("formGroup",i.rangeForm),w(7),k("ngForOf",XE(25,8,i.rangesKeys)),w(17),k("ngIf",i.latencyGraphData.length>0),w(2),k("ngIf",i.rateGraphData.length>0),w(16),k("ngIf",i.inputGraphData.length>0),w(2),k("ngIf",i.outputGraphData.length>0))},dependencies:function(){return[jn,gn,wB,dw,_B,To,Pu,tFe,b$e,sl,xy,wy,ov,rl,ol,fa,ja,sBe]},styles:[".graph[_ngcontent-%COMP%]{height:450px;border-radius:5px;border:solid 1px #dadae9}.graph-title[_ngcontent-%COMP%]{padding:.5rem .5rem .5rem 0}.table[_ngcontent-%COMP%]{table-layout:fixed}h4[_ngcontent-%COMP%]{margin-bottom:0}.status-table[_ngcontent-%COMP%]{empty-cells:hide}.status-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fff}.status-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:solid 1px #dadae9;padding:.6em 1em;font-weight:500}.status-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:solid 1px #dadae9;padding:.6em 1em}.status-table[_ngcontent-%COMP%] .total-row[_ngcontent-%COMP%]{border:solid 2px #dadae9;background-color:#f5f5f5}.status-table[_ngcontent-%COMP%] .total-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:solid 2px #dadae9}"]})),t})(),oBe=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.getStatus("").pipe(nt(r=>$n(r.nodes.map(o=>o.name)))).pipe(Ul(r=>(e.data={...e.data,error:r},$n([]))))}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})(),sBe=(()=>{class t{transform(e){return e.sort((i,r)=>i-r)}}return K(t,"\u0275fac",function(e){return new(e||t)}),K(t,"\u0275pipe",gl({name:"sortNumbers",type:t,pure:!1})),t})();var aBe=De(870),rN=De(327);const lBe=["fileSelector"];function cBe(t,n){if(1&t&&(b(0,"div",8),I(1),x()),2&t){const e=j(2);w(1),Dt(e.dropZoneLabel)}}function uBe(t,n){if(1&t){const e=vt();b(0,"div")(1,"input",9),ye("click",function(r){return $e(e),Be(j(2).openFileSelector(r))}),x()()}if(2&t){const e=j(2);w(1),Fh("value",e.browseBtnLabel),k("className",e.browseBtnClassName)}}function dBe(t,n){if(1&t&&(J(0,cBe,2,1,"div",6),J(1,uBe,2,2,"div",7)),2&t){const e=j();k("ngIf",e.dropZoneLabel),w(1),k("ngIf",e.showBrowseBtn)}}function hBe(t,n){}const fBe=function(t){return{openFileSelector:t}};class C2{constructor(n,e){this.relativePath=n,this.fileEntry=e}}let OW=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(le(Si))},t.\u0275dir=Zt({type:t,selectors:[["","ngx-file-drop-content-tmp",""]]}),t})(),jW=(()=>{class t{constructor(e,i){this.zone=e,this.renderer=i,this.accept="*",this.directory=!1,this.multiple=!0,this.dropZoneLabel="",this.dropZoneClassName="ngx-file-drop__drop-zone",this.useDragEnter=!1,this.contentClassName="ngx-file-drop__content",this.showBrowseBtn=!1,this.browseBtnClassName="btn btn-primary btn-xs ngx-file-drop__browse-btn",this.browseBtnLabel="Browse files",this.onFileDrop=new Ke,this.onFileOver=new Ke,this.onFileLeave=new Ke,this.isDraggingOverDropZone=!1,this.globalDraggingInProgress=!1,this.files=[],this.numOfActiveReadEntries=0,this.helperFormEl=null,this.fileInputPlaceholderEl=null,this.dropEventTimerSubscription=null,this._disabled=!1,this.openFileSelector=r=>{this.fileSelector&&this.fileSelector.nativeElement&&this.fileSelector.nativeElement.click()},this.globalDragStartListener=this.renderer.listen("document","dragstart",r=>{this.globalDraggingInProgress=!0}),this.globalDragEndListener=this.renderer.listen("document","dragend",r=>{this.globalDraggingInProgress=!1})}get disabled(){return this._disabled}set disabled(e){this._disabled=null!=e&&"false"!=`${e}`}ngOnDestroy(){this.dropEventTimerSubscription&&(this.dropEventTimerSubscription.unsubscribe(),this.dropEventTimerSubscription=null),this.globalDragStartListener(),this.globalDragEndListener(),this.files=[],this.helperFormEl=null,this.fileInputPlaceholderEl=null}onDragOver(e){this.useDragEnter?(this.preventAndStop(e),e.dataTransfer&&(e.dataTransfer.dropEffect="copy")):!this.isDropzoneDisabled()&&!this.useDragEnter&&e.dataTransfer&&(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(e)),this.preventAndStop(e),e.dataTransfer.dropEffect="copy")}onDragEnter(e){!this.isDropzoneDisabled()&&this.useDragEnter&&(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(e)),this.preventAndStop(e))}onDragLeave(e){this.isDropzoneDisabled()||(this.isDraggingOverDropZone&&(this.isDraggingOverDropZone=!1,this.onFileLeave.emit(e)),this.preventAndStop(e))}dropFiles(e){if(!this.isDropzoneDisabled()&&(this.isDraggingOverDropZone=!1,e.dataTransfer)){let i;i=e.dataTransfer.items?e.dataTransfer.items:e.dataTransfer.files,this.preventAndStop(e),this.checkFiles(i)}}uploadFiles(e){!this.isDropzoneDisabled()&&e.target&&(this.checkFiles(e.target.files||[]),this.resetFileInput())}checkFiles(e){for(let i=0;il(r)},a=new C2(s.name,s);this.addToQueue(a)}}this.dropEventTimerSubscription&&this.dropEventTimerSubscription.unsubscribe(),this.dropEventTimerSubscription=av(200,200).subscribe(()=>{if(this.files.length>0&&0===this.numOfActiveReadEntries){const i=this.files;this.files=[],this.onFileDrop.emit(i)}})}traverseFileTree(e,i){if(e.isFile){const r=new C2(i,e);this.files.push(r)}else{i+="/";const r=e.createReader();let o=[];const s=()=>{this.numOfActiveReadEntries++,r.readEntries(a=>{if(a.length)o=o.concat(a),s();else if(0===o.length){const l=new C2(i,e);this.zone.run(()=>{this.addToQueue(l)})}else for(let l=0;l{this.traverseFileTree(o[l],i+o[l].name)});this.numOfActiveReadEntries--})};s()}}resetFileInput(){if(this.fileSelector&&this.fileSelector.nativeElement){const e=this.fileSelector.nativeElement,i=e.parentElement,r=this.getHelperFormElement(),o=this.getFileInputPlaceholderElement();i!==r&&(this.renderer.insertBefore(i,o,e),this.renderer.appendChild(r,e),r.reset(),this.renderer.insertBefore(i,e,o),this.renderer.removeChild(i,o))}}getHelperFormElement(){return this.helperFormEl||(this.helperFormEl=this.renderer.createElement("form")),this.helperFormEl}getFileInputPlaceholderElement(){return this.fileInputPlaceholderEl||(this.fileInputPlaceholderEl=this.renderer.createElement("div")),this.fileInputPlaceholderEl}canGetAsEntry(e){return!!e.webkitGetAsEntry}isDropzoneDisabled(){return this.globalDraggingInProgress||this.disabled}addToQueue(e){this.files.push(e)}preventAndStop(e){e.stopPropagation(),e.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(le(Wi),le(Ss))},t.\u0275cmp=Rt({type:t,selectors:[["ngx-file-drop"]],contentQueries:function(e,i,r){if(1&e&&ni(r,OW,5,Si),2&e){let o;cn(o=un())&&(i.contentTemplate=o.first)}},viewQuery:function(e,i){if(1&e&&io(lBe,7),2&e){let r;cn(r=un())&&(i.fileSelector=r.first)}},inputs:{accept:"accept",directory:"directory",multiple:"multiple",dropZoneLabel:"dropZoneLabel",dropZoneClassName:"dropZoneClassName",useDragEnter:"useDragEnter",contentClassName:"contentClassName",showBrowseBtn:"showBrowseBtn",browseBtnClassName:"browseBtnClassName",browseBtnLabel:"browseBtnLabel",disabled:"disabled"},outputs:{onFileDrop:"onFileDrop",onFileOver:"onFileOver",onFileLeave:"onFileLeave"},decls:7,vars:15,consts:[[3,"className","drop","dragover","dragenter","dragleave"],[3,"className"],["type","file",1,"ngx-file-drop__file-input",3,"accept","multiple","change"],["fileSelector",""],["defaultContentTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ngx-file-drop__drop-zone-label",4,"ngIf"],[4,"ngIf"],[1,"ngx-file-drop__drop-zone-label"],["type","button",3,"className","value","click"]],template:function(e,i){if(1&e&&(b(0,"div",0),ye("drop",function(o){return i.dropFiles(o)})("dragover",function(o){return i.onDragOver(o)})("dragenter",function(o){return i.onDragEnter(o)})("dragleave",function(o){return i.onDragLeave(o)}),b(1,"div",1)(2,"input",2,3),ye("change",function(o){return i.uploadFiles(o)}),x(),J(4,dBe,2,2,"ng-template",null,4,Ur),J(6,hBe,0,0,"ng-template",5),x()()),2&e){const r=uo(5);Mn("ngx-file-drop__drop-zone--over",i.isDraggingOverDropZone),k("className",i.dropZoneClassName),w(1),k("className",i.contentClassName),w(1),k("accept",i.accept)("multiple",i.multiple),ht("directory",i.directory||void 0)("webkitdirectory",i.directory||void 0)("mozdirectory",i.directory||void 0)("msdirectory",i.directory||void 0)("odirectory",i.directory||void 0),w(4),k("ngTemplateOutlet",i.contentTemplate||r)("ngTemplateOutletContext",lr(13,fBe,i.openFileSelector))}},dependencies:[gn,kl],styles:[".ngx-file-drop__drop-zone[_ngcontent-%COMP%]{border:2px dotted #0782d0;border-radius:30px;height:100px;margin:auto}.ngx-file-drop__drop-zone--over[_ngcontent-%COMP%]{background-color:hsla(0,0%,57.6%,.5)}.ngx-file-drop__content[_ngcontent-%COMP%]{align-items:center;color:#0782d0;display:flex;height:100px;justify-content:center}.ngx-file-drop__drop-zone-label[_ngcontent-%COMP%]{text-align:center}.ngx-file-drop__file-input[_ngcontent-%COMP%]{display:none}"]}),t})(),pBe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t,bootstrap:function(){return[jW]}}),t.\u0275inj=Ci({imports:[Vs]}),t})();function mBe(t,n){1&t&&(b(0,"ngb-alert",22),ge(1,"img",23),b(2,"h6",24),I(3,"Failed to retrieve configuration."),x()()),2&t&&k("dismissible",!1)}function gBe(t,n){if(1&t&&(b(0,"span",33),I(1),x()),2&t){const e=j(2).$implicit;k("id",e.name),w(1),Dt(e.value)}}function vBe(t,n){1&t&&(b(0,"span",34),I(1,"(empty)"),x()),2&t&&k("id",j(2).$implicit.name)}function yBe(t,n){if(1&t&&(b(0,"div",35)(1,"b"),I(2),x(),b(3,"label",27)(4,"a",28),ge(5,"img",10),x()()()),2&t){const e=j(2).index,i=j();w(2),Dt(i.flatConfig[e+1].name),w(1),k("for",i.flatConfig[e+1].name),w(1),$p("href","https://heroiclabs.com/docs/install-configuration/#",i.flatConfig[e+1].name,"",y1)}}function bBe(t,n){if(1&t&&(b(0,"span",33),I(1),x()),2&t){const e=j(3).index,i=j();k("id",i.flatConfig[e+1].name),w(1),Dt(i.flatConfig[e+1].value)}}function _Be(t,n){if(1&t&&(b(0,"span",34),I(1,"(empty)"),x()),2&t){const e=j(3).index;k("id",j().flatConfig[e+1].name)}}function xBe(t,n){if(1&t&&(b(0,"div",36),J(1,bBe,2,2,"span",29),J(2,_Be,2,1,"span",30),x()),2&t){const e=j(2).index,i=j();w(1),k("ngIf",!i.isEmpty(i.flatConfig[e+1].value)),w(1),k("ngIf",i.isEmpty(i.flatConfig[e+1].value))}}function wBe(t,n){if(1&t&&(b(0,"div",26)(1,"div",7)(2,"b"),I(3),x(),b(4,"label",27)(5,"a",28),ge(6,"img",10),x()()(),b(7,"div",7),J(8,gBe,2,2,"span",29),J(9,vBe,2,1,"span",30),x(),J(10,yBe,6,3,"div",31),J(11,xBe,3,2,"div",32),x()),2&t){const e=j(),i=e.index,r=e.$implicit,o=j();Mn("border-top-0",i>0),w(3),Dt(r.name),w(1),k("for",r.name),w(1),$p("href","https://heroiclabs.com/docs/install-configuration/#",r.value.name,"",y1),w(3),k("ngIf",!o.isEmpty(r.value)),w(1),k("ngIf",o.isEmpty(r.value)),w(1),k("ngIf",i{class t{constructor(e,i,r,o,s,a){K(this,"config",void 0),K(this,"route",void 0),K(this,"httpClient",void 0),K(this,"modalService",void 0),K(this,"consoleService",void 0),K(this,"formBuilder",void 0),K(this,"configError",""),K(this,"uploadError",""),K(this,"deleteError",""),K(this,"jsonConfig",void 0),K(this,"flatConfig",void 0),K(this,"nakamaVersion",void 0),K(this,"file",void 0),K(this,"uploading",!1),K(this,"uploadSuccess",!1),K(this,"deleteSuccess",!1),K(this,"deleting",!1),K(this,"confirmDeleteForm",void 0),K(this,"apiConfig",void 0),this.config=e,this.route=i,this.httpClient=r,this.modalService=o,this.consoleService=s,this.formBuilder=a,this.apiConfig=e}ngOnInit(){this.route.data.subscribe(e=>{this.nakamaVersion=e[0].server_version;const i=JSON.parse(e[0].config);this.jsonConfig=i,this.flatConfig=this.flattenConfig(i)},e=>{this.configError=e}),this.confirmDeleteForm=this.formBuilder.group({delete:["",Do.compose([Do.required,Do.pattern("DELETE")])]})}flattenConfig(e){const i=[];return this.traverseConfig("",e,i),i.sort((o,s)=>o.name.localeCompare(s.name))}traverseConfig(e,i,r){for(const o in i)"env"!==o&&(Array.isArray(i[o])?r.push({name:e+o,value:i[o].join(", ")}):"object"==typeof i[o]?this.traverseConfig(o+".",i[o],r):r.push({name:e+o,value:i[o]}))}isEmpty(e){return""===e||0===e}exportYaml(){const e=new Blob([(0,aBe.safeDump)(this.jsonConfig)],{type:"text/yaml;charset=utf-8"});rN.saveAs(e,"config.yaml")}dropped(e){this.uploadError="",this.uploadSuccess=!1;for(const i of e)if(i.fileEntry.isFile){const r=i.fileEntry.name.split(".");r.length>1&&["json","csv"].includes(r[r.length-1].toLowerCase())?i.fileEntry.file(a=>{this.uploadFile(a)}):this.uploadError="Invalid file: must have extension .json or .csv"}}uploadFile(e){const i=new FormData;i.append(e.name,e),this.uploading=!0,this.httpClient.post(this.apiConfig.host+"/v2/console/storage/import",i,{headers:{Authorization:"Bearer "}}).subscribe(()=>{this.uploading=!1,this.uploadSuccess=!0},o=>{this.uploading=!1,this.uploadError=o})}deleteData(){this.deleteError="",this.deleting=!0,this.consoleService.deleteAllData("").pipe(T3(2e3)).subscribe(()=>{this.deleting=!1,this.deleteError="",this.deleteSuccess=!0},e=>{this.deleting=!1,this.deleteError=e})}openDeleteDataModal(e){this.modalService.open(e,{centered:!0}).result.then(()=>{this.deleteData(),this.confirmDeleteForm.controls.delete.setValue("")},()=>{this.confirmDeleteForm.controls.delete.setValue("")})}get f(){return this.confirmDeleteForm.controls}ngOnDestroy(){}}return K(t,"\u0275fac",function(e){return new(e||t)(le(C3),le(Rr),le(wC),le(H3),le(xi),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:43,vars:11,consts:[["type","danger",3,"dismissible",4,"ngIf"],[1,"pb-4"],[1,"d-flex","justify-content-between","mb-4","align-items-baseline"],[1,"btn","btn-primary","btn-sm",3,"click"],[1,"config-table"],[4,"ngFor","ngForOf"],[1,"row","py-2","border","border-top-0","add-border-larger","mb-5"],[1,"col-lg-3"],[1,"pl-1"],["target","_blank","href","https://heroiclabs.com/docs/install-configuration/#runtime.env",1,"d-inline"],["src","/static/svg/hint.svg","alt","","width","16","height",""],[1,"col-lg-9"],[4,"ngIf"],[1,"section-divider","d-flex","mb-4"],["type","success",3,"dismissible","close",4,"ngIf"],["accept",".json,.csv","dropZoneClassName","drop-zone","contentClassName","drop-zone-content","dropZoneLabel","Drop CSV or JSON file here",3,"disabled","onFileDrop"],["ngx-file-drop-content-tmp",""],["role","alert",1,"alert","alert-danger","d-flex","justify-content-between","align-items-center"],["src","/static/svg/red-triangle.svg","alt","","width","16","height",""],[1,"pl-2"],["confirmDelete",""],["type","button",1,"btn","btn-danger",3,"disabled","click"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["class","row py-2 border",3,"border-top-0",4,"ngIf"],[1,"row","py-2","border"],[1,"pl-1",3,"for"],["target","_blank",1,"d-inline",3,"href"],["class","text-break-all",3,"id",4,"ngIf"],["class","text-muted",3,"id",4,"ngIf"],["class","col-md-3 left-line",4,"ngIf"],["class","col-md-3",4,"ngIf"],[1,"text-break-all",3,"id"],[1,"text-muted",3,"id"],[1,"col-md-3","left-line"],[1,"col-md-3"],["class","mb-0 text-break-all",4,"ngFor","ngForOf"],[1,"mb-0","text-break-all"],[1,"mb-0","text-muted"],[1,"mb-0","pl-4"],["type","success",3,"dismissible","close"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","button",1,"btn","btn-primary",3,"click"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-describedby","modal-title",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"d-flex","flex-column","justify-content-center"],[1,"mt-2"],["autocomplete","off",3,"formGroup"],["type","text","id","delete-confirm","placeholder","Type 'DELETE' to confirm","formControlName","delete",1,"form-control",3,"ngClass"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"]],template:function(e,i){if(1&e){const r=vt();J(0,mBe,4,1,"ngb-alert",0),b(1,"h2",1),I(2,"Server Configuration"),x(),b(3,"div",2)(4,"h5")(5,"b"),I(6,"Server version:"),x(),I(7),x(),b(8,"button",3),ye("click",function(){return i.exportYaml()}),I(9,"Export Configuration"),x()(),b(10,"div",4),J(11,CBe,2,1,"ng-container",5),b(12,"div",6)(13,"div",7)(14,"b"),I(15,"runtime.env"),x(),b(16,"label",8)(17,"a",9),ge(18,"img",10),x()()(),b(19,"div",11),J(20,SBe,2,1,"div",12),J(21,DBe,3,0,"div",12),x()()(),b(22,"h5",13),I(23,"Import storage data"),x(),b(24,"p"),I(25,"Import storage objects from a CSV or JSON file by dragging and dropping it below."),x(),J(26,TBe,6,2,"ngb-alert",0),J(27,EBe,4,1,"ngb-alert",14),b(28,"ngx-file-drop",15),ye("onFileDrop",function(s){return i.dropped(s)}),J(29,ABe,2,0,"ng-template",16),x(),b(30,"h5",13),I(31,"Delete all data"),x(),J(32,MBe,6,2,"ngb-alert",0),J(33,IBe,4,1,"ngb-alert",14),b(34,"div",17)(35,"div"),ge(36,"img",18),b(37,"small",19),I(38,"Warning - this operation is not reversible!"),x()(),J(39,FBe,19,5,"ng-template",null,20,Ur),b(41,"button",21),ye("click",function(){$e(r);const s=uo(40);return Be(i.openDeleteDataModal(s))}),I(42,"Delete all"),x()()}2&e&&(k("ngIf",i.configError),w(7),xn(" ",i.nakamaVersion,""),w(4),k("ngForOf",i.flatConfig),w(9),k("ngIf",i.jsonConfig.runtime&&i.jsonConfig.runtime.env&&i.jsonConfig.runtime.env.length>0),w(1),k("ngIf",i.jsonConfig.runtime&&i.jsonConfig.runtime.env&&0===i.jsonConfig.runtime.env.length),w(5),k("ngIf",i.uploadError),w(1),k("ngIf",i.uploadSuccess),w(1),k("disabled",i.uploading),w(4),k("ngIf",i.deleteError),w(1),k("ngIf",i.deleteSuccess),w(8),k("disabled",i.deleting))},dependencies:[jW,OW,Rh,jn,gn,To,sl,Fa,rl,ol,fa,ja],styles:["label[_ngcontent-%COMP%]{margin-bottom:0}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.text-break-all[_ngcontent-%COMP%]{word-break:break-all;word-wrap:anywhere}.config-table[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:nth-child(even){background-color:#fafafc}.config-table[_ngcontent-%COMP%] .left-line[_ngcontent-%COMP%]{border-left:solid 1px #dadae9}"]})),t})(),jBe=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.getConfig("")}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function PBe(t,n){if(1&t&&(b(0,"ngb-alert",48),ge(1,"img",49),b(2,"h6",50),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function LBe(t,n){1&t&&(b(0,"tr")(1,"td",51),I(2,"No additional users are setup. Create a new user below."),x()()),2&t&&(w(1),k("colSpan",4))}function RBe(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td"),I(2),x(),b(3,"td"),I(4),x(),b(5,"td")(6,"span",36),I(7,"Administrator"),x(),b(8,"span",36),I(9,"Developer"),x(),b(10,"span",36),I(11,"Maintainer"),x(),b(12,"span",36),I(13,"View Only"),x()(),b(14,"td")(15,"button",52),ye("click",function(){const o=$e(e).$implicit;return Be(j().deleteUser(o.username))}),I(16,"Delete"),x()()()}if(2&t){const e=n.$implicit,i=j();w(2),Dt(e.username),w(2),Dt(e.email),w(2),k("hidden",e.role!==i.adminRole),w(2),k("hidden",e.role!==i.developerRole),w(2),k("hidden",e.role!==i.maintainerRole),w(2),k("hidden",e.role!==i.readonlyRole)}}function $Be(t,n){if(1&t&&(b(0,"ngb-alert",48),ge(1,"img",49),b(2,"h6",50),I(3,"An error occurred:"),x(),b(4,"p",53),I(5),x()()),2&t){const e=j();k("dismissible",!1),w(5),Dt(e.userCreateError)}}const oN=function(t){return{"is-invalid":t}};let BBe=(()=>{class t{constructor(e,i,r){K(this,"route",void 0),K(this,"consoleService",void 0),K(this,"formBuilder",void 0),K(this,"error",""),K(this,"userCreateError",""),K(this,"users",[]),K(this,"createUserForm",void 0),K(this,"adminRole",oi.USER_ROLE_ADMIN),K(this,"developerRole",oi.USER_ROLE_DEVELOPER),K(this,"maintainerRole",oi.USER_ROLE_MAINTAINER),K(this,"readonlyRole",oi.USER_ROLE_READONLY),this.route=e,this.consoleService=i,this.formBuilder=r}ngOnInit(){this.createUserForm=this.formBuilder.group({username:["",Do.required],email:["",[Do.required,Do.email]],password:["",Do.compose([Do.required,Do.minLength(8)])],role:[+this.readonlyRole,Do.required],newsletter:[!1]}),this.route.data.subscribe(e=>{const i=e[0];this.users.length=0,this.users.push(...i.users)},e=>{this.error=e})}deleteUser(e){this.error="",this.consoleService.deleteUser("",e).pipe(nt(()=>this.consoleService.listUsers(""))).subscribe(i=>{this.error="",this.users.length=0,this.users.push(...i.users)},i=>{this.error=i})}addUser(){this.userCreateError="",this.createUserForm.disable();let e=oi.USER_ROLE_READONLY;switch(this.f.role.value){case 1:e=oi.USER_ROLE_ADMIN;break;case 2:e=oi.USER_ROLE_DEVELOPER;break;case 3:e=oi.USER_ROLE_MAINTAINER;break;case 4:e=oi.USER_ROLE_READONLY}this.consoleService.addUser("",{username:this.f.username.value,email:this.f.email.value,password:this.f.password.value,role:e,newsletter_subscription:this.f.newsletter.value}).pipe(nt(()=>this.consoleService.listUsers(""))).subscribe(r=>{this.userCreateError="",this.createUserForm.reset({role:+e}),this.createUserForm.enable(),this.users.length=0,this.users.push(...r.users)},r=>{this.userCreateError=r,this.createUserForm.enable()})}get f(){return this.createUserForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(xi),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["app-users"]],decls:121,vars:24,consts:[[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],[1,"user-details","mb-5","table","table-bordered","table-sm","table-striped"],[1,"thead-light"],[2,"width","400px"],[2,"width","300px"],[2,"width","90px"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"section-divider","d-flex","mb-4"],[1,"mb-4","alert-permissions",3,"type"],[1,"alert-title","font-weight-bold"],[1,"d-flex","flex-wrap","flex-row"],[1,"col","col-md-3","p-4","flex-fill","flex-grow-1"],[1,"d-flex","align-items-center","mb-3"],["src","/static/svg/role-admin.svg","alt","","width","30","height","",1,"mr-2"],[1,"m-0","font-weight-bold"],["src","/static/svg/role-developer.svg","alt","","width","30","height","",1,"mr-2"],["src","/static/svg/role-maintainer.svg","alt","","width","30","height","",1,"mr-2"],["src","/static/svg/role-viewonly.svg","alt","","width","30","height","",1,"mr-2"],[1,"add-border","rounded"],[3,"formGroup","ngSubmit"],[1,"row","no-gutters"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"col-md-3"],["for","email",1,"d-inline"],[1,"col-md-9","ml-0","p-0"],["type","email","id","email","placeholder","email@example.com","required","","formControlName","email",1,"form-control",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","username",1,"d-inline"],["type","text","id","username","placeholder","Username","required","","formControlName","username",1,"form-control",3,"ngClass"],["for","password",1,"d-inline"],["type","password","id","password","placeholder","Password","required","","formControlName","password",1,"form-control",3,"ngClass"],[1,"d-inline"],[1,"btn-group"],["disabled","",1,"btn","btn-outline-dark","disabled"],[3,"hidden"],["ngbDropdown","","role","group",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-primary","dropdown-toggle-split"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click"],[1,"row","no-gutters","add-border-single-row-bottom","mb-4"],[1,"col","d-flex","align-items-center"],[1,"custom-control","custom-checkbox"],["type","checkbox","id","newsletter","formControlName","newsletter",1,"custom-control-input","mr-2","my-2"],["for","newsletter",1,"form-check-label","custom-control-label"],[1,""],["type","submit",1,"btn","btn-primary",3,"disabled"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[1,"text-muted",3,"colSpan"],["type","button",1,"btn","btn-danger","btn-outline-dark",3,"click"],[1,"mb-0","pl-4"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"User Management"),x(),J(2,PBe,4,2,"ngb-alert",1),b(3,"table",2)(4,"thead",3)(5,"tr")(6,"th",4),I(7,"Username"),x(),b(8,"th"),I(9,"Email"),x(),b(10,"th",5),I(11,"Role"),x(),b(12,"th",6),I(13,"Action"),x()()(),b(14,"tbody"),J(15,LBe,3,1,"tr",7),J(16,RBe,17,6,"tr",8),x()(),b(17,"h5",9),I(18,"Add new user"),x(),b(19,"ngb-alert",10)(20,"h6",11),I(21,"User roles"),x(),b(22,"div",12)(23,"div",13)(24,"div",14),ge(25,"img",15),b(26,"h6",16),I(27,"Administrator"),x()(),b(28,"small"),I(29," Owners have complete control over the server, its users and resources. "),x()(),b(30,"div",13)(31,"div",14),ge(32,"img",17),b(33,"h6",16),I(34,"Developer"),x()(),b(35,"small"),I(36," Like Administrators, Developers have complete control over the server, resources and data. However they cannot add, change or delete console users. "),x()(),b(37,"div",13)(38,"div",14),ge(39,"img",18),b(40,"h6",16),I(41,"Maintainer"),x()(),b(42,"small"),I(43," Maintainers have access to adding, changing and delete client resources such as accounts, storage and leaderboard records. They don't have access to the API Explorer or the console users. "),x()(),b(44,"div",13)(45,"div",14),ge(46,"img",19),b(47,"h6",16),I(48,"View Only"),x()(),b(49,"small"),I(50," View Only users can only view client resources but cannot make any changes to the data whatsoever. "),x()()()(),J(51,$Be,6,2,"ngb-alert",1),b(52,"div",20)(53,"form",21),ye("ngSubmit",function(){return i.addUser()}),b(54,"div",22)(55,"div",23)(56,"div",24)(57,"label",25),I(58,"Email"),x()(),b(59,"div",26),ge(60,"input",27),b(61,"div",28),I(62,"Email is required"),x()()()(),b(63,"div",22)(64,"div",23)(65,"div",24)(66,"label",29),I(67,"Username"),x()(),b(68,"div",26),ge(69,"input",30),b(70,"div",28),I(71,"Username is required"),x()()()(),b(72,"div",22)(73,"div",23)(74,"div",24)(75,"label",31),I(76,"Password"),x()(),b(77,"div",26),ge(78,"input",32),b(79,"div",28),I(80,"Password is required, must be 8 chars or longer and consist of at least a capital letter, a small letter and a number."),x()()()(),b(81,"div",22)(82,"div",23)(83,"div",24)(84,"label",33),I(85,"Role"),x()(),b(86,"div",26)(87,"div",34)(88,"button",35)(89,"span",36),I(90,"Administrator"),x(),b(91,"span",36),I(92,"Developer"),x(),b(93,"span",36),I(94,"Maintainer"),x(),b(95,"span",36),I(96,"View Only"),x()(),b(97,"div",37),ge(98,"button",38),b(99,"div",39)(100,"button",40),ye("click",function(){return i.f.role.setValue(+i.adminRole)}),I(101,"Administrator"),x(),b(102,"button",40),ye("click",function(){return i.f.role.setValue(+i.developerRole)}),I(103,"Developer"),x(),b(104,"button",40),ye("click",function(){return i.f.role.setValue(+i.maintainerRole)}),I(105,"Maintainer"),x(),b(106,"button",40),ye("click",function(){return i.f.role.setValue(+i.readonlyRole)}),I(107,"View Only"),x()()()(),b(108,"div",28),I(109,"Role is required"),x()()()(),b(110,"div",41)(111,"div",42),ge(112,"div",24),b(113,"div",26)(114,"div",43),ge(115,"input",44),b(116,"label",45),I(117,"Subscribe to Heroic Labs' newsletters to receive latest updates to Nakama and other news."),x()()()()(),b(118,"div",46)(119,"button",47),I(120,"Save"),x()()()()),2&e&&(w(2),k("ngIf",i.error),w(13),k("ngIf",0===i.users.length),w(1),k("ngForOf",i.users),w(3),k("type","secondary"),w(32),k("ngIf",i.userCreateError),w(2),k("formGroup",i.createUserForm),w(7),k("ngClass",lr(18,oN,i.f.email.dirty&&i.f.email.errors)),w(1),k("hidden",i.f.email.disabled||i.f.email.valid||i.f.email.pristine),w(8),k("ngClass",lr(20,oN,i.f.username.dirty&&i.f.username.errors)),w(1),k("hidden",i.f.username.disabled||i.f.username.valid||i.f.username.pristine),w(8),k("ngClass",lr(22,oN,i.f.password.dirty&&i.f.password.errors)),w(1),k("hidden",i.f.password.disabled||i.f.password.valid||i.f.password.pristine),w(10),k("hidden",i.f.role.value!==+i.adminRole),w(2),k("hidden",i.f.role.value!==+i.developerRole),w(2),k("hidden",i.f.role.value!==+i.maintainerRole),w(2),k("hidden",i.f.role.value!==+i.readonlyRole),w(13),k("hidden",i.f.role.disabled||i.f.role.valid||i.f.role.pristine),w(11),k("disabled",i.createUserForm.invalid))},dependencies:[Rh,jn,gn,To,Pu,rm,Pf,jf,sl,Fa,aC,rl,ol,Nf,fa,ja],styles:[".user-details[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fff}.user-details[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:.6em 1em;font-weight:500}.user-details[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.6em 1em}.alert-permissions[_ngcontent-%COMP%]{padding:0}.alert-permissions[_ngcontent-%COMP%] .alert-title[_ngcontent-%COMP%]{padding:1rem}.alert-permissions[_ngcontent-%COMP%] .flex-row[_ngcontent-%COMP%]{border-top:solid 1px #dadae9;margin:0}.alert-permissions[_ngcontent-%COMP%] .flex-row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]{border-right:solid 1px #dadae9}.alert-permissions[_ngcontent-%COMP%] .flex-row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]:last-child{border-right:none}"]})),t})(),VBe=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.listUsers("")}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function HBe(t,n){if(1&t&&(b(0,"ngb-alert",10),ge(1,"img",11),b(2,"h6",12),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Failed to retrieve runtime information: ",e.error,"")}}function zBe(t,n){if(1&t&&(b(0,"tr")(1,"td"),I(2),x(),b(3,"td",13),I(4),x()()),2&t){const e=n.$implicit;w(2),Dt(e.path),w(2),Dt(e.mod_time)}}function UBe(t,n){1&t&&(b(0,"tr")(1,"td",14),I(2,"No Go modules were found."),x(),ge(3,"td"),x())}function GBe(t,n){if(1&t&&(b(0,"tr")(1,"td"),I(2),x(),b(3,"td",13),I(4),x()()),2&t){const e=n.$implicit;w(2),Dt(e.path),w(2),Dt(e.mod_time)}}function WBe(t,n){1&t&&(b(0,"tr")(1,"td",14),I(2,"No Lua modules were found."),x(),ge(3,"td"),x())}function qBe(t,n){if(1&t&&(b(0,"tr")(1,"td"),I(2),x(),b(3,"td",13),I(4),x()()),2&t){const e=n.$implicit;w(2),Dt(e.path),w(2),Dt(e.mod_time)}}function XBe(t,n){1&t&&(b(0,"tr")(1,"td",14),I(2,"No JavaScript modules were found."),x(),ge(3,"td"),x())}const sN=function(){return["/apiexplorer"]},aN=function(t){return{endpoint:t}};function YBe(t,n){if(1&t&&(b(0,"tr")(1,"td")(2,"code"),I(3),x()(),b(4,"td",15)(5,"a",16),I(6,"API Explorer"),x()()()),2&t){const e=n.$implicit;w(3),Dt(e),w(2),k("routerLink",wl(3,sN))("queryParams",lr(4,aN,e))}}function JBe(t,n){1&t&&(b(0,"tr")(1,"td",17),I(2,"No Go RPC functions were found."),x()())}function KBe(t,n){if(1&t&&(b(0,"tr")(1,"td")(2,"code"),I(3),x()(),b(4,"td",15)(5,"a",16),I(6,"API Explorer"),x()()()),2&t){const e=n.$implicit;w(3),Dt(e),w(2),k("routerLink",wl(3,sN))("queryParams",lr(4,aN,e))}}function QBe(t,n){1&t&&(b(0,"tr")(1,"td",17),I(2,"No Lua RPC functions were found."),x()())}function ZBe(t,n){if(1&t&&(b(0,"tr")(1,"td")(2,"code"),I(3),x()(),b(4,"td",15)(5,"a",16),I(6,"API Explorer"),x()()()),2&t){const e=n.$implicit;w(3),Dt(e),w(2),k("routerLink",wl(3,sN))("queryParams",lr(4,aN,e))}}function e7e(t,n){1&t&&(b(0,"tr")(1,"td",17),I(2,"No JavaScript RPC functions were found."),x()())}let t7e=(()=>{class t{constructor(e,i){K(this,"route",void 0),K(this,"consoleService",void 0),K(this,"error",""),K(this,"runtimeInfo",void 0),this.route=e,this.consoleService=i}ngOnInit(){this.route.data.subscribe(e=>{this.runtimeInfo=e[0]},e=>{this.error=e})}ngOnDestroy(){}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(xi))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:51,vars:13,consts:[[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],[1,"runtime-table","mb-4","table","table-sm","table-bordered","mb-5"],[1,"thead-light"],[2,"width","180px"],[4,"ngFor","ngForOf"],[4,"ngIf"],["colspan","2"],[1,"mb-4","section-divider","d-flex"],[1,"runtime-table","table","table-sm","table-bordered"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","200px"],[1,"text-muted"],[2,"width","180px","text-align","center"],[1,"btn","btn-sm","btn-secondary",3,"routerLink","queryParams"],["colspan","2",1,"text-muted"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"Runtime Modules"),x(),J(2,HBe,4,2,"ngb-alert",1),b(3,"table",2)(4,"thead",3)(5,"tr")(6,"th"),I(7,"Go Modules"),x(),b(8,"th",4),I(9,"Last Modified"),x()()(),b(10,"tbody"),J(11,zBe,5,2,"tr",5),J(12,UBe,4,0,"tr",6),x(),b(13,"thead",3)(14,"tr")(15,"th",7),I(16,"Lua Modules"),x()()(),b(17,"tbody"),J(18,GBe,5,2,"tr",5),J(19,WBe,4,0,"tr",6),x(),b(20,"thead",3)(21,"tr")(22,"th",7),I(23,"JavaScript Modules"),x()()(),b(24,"tbody"),J(25,qBe,5,2,"tr",5),J(26,XBe,4,0,"tr",6),x()(),b(27,"h4",8),I(28,"Registered RPC Functions"),x(),b(29,"table",9)(30,"thead",3)(31,"tr")(32,"th",7),I(33,"Go RPC Functions"),x()()(),b(34,"tbody"),J(35,YBe,7,6,"tr",5),J(36,JBe,3,0,"tr",6),x(),b(37,"thead",3)(38,"tr")(39,"th",7),I(40,"Lua RPC Functions"),x()()(),b(41,"tbody"),J(42,KBe,7,6,"tr",5),J(43,QBe,3,0,"tr",6),x(),b(44,"thead",3)(45,"tr")(46,"th",7),I(47,"JavaScript RPC Functions"),x()()(),b(48,"tbody"),J(49,ZBe,7,6,"tr",5),J(50,e7e,3,0,"tr",6),x()()),2&e&&(w(2),k("ngIf",i.error),w(9),k("ngForOf",i.runtimeInfo.go_modules),w(1),k("ngIf",0===i.runtimeInfo.go_modules.length),w(6),k("ngForOf",i.runtimeInfo.lua_modules),w(1),k("ngIf",0===i.runtimeInfo.lua_modules.length),w(6),k("ngForOf",i.runtimeInfo.js_modules),w(1),k("ngIf",0===i.runtimeInfo.js_modules.length),w(9),k("ngForOf",i.runtimeInfo.go_rpc_functions),w(1),k("ngIf",0===i.runtimeInfo.go_rpc_functions.length),w(6),k("ngForOf",i.runtimeInfo.lua_rpc_functions),w(1),k("ngIf",0===i.runtimeInfo.lua_rpc_functions.length),w(6),k("ngForOf",i.runtimeInfo.js_rpc_functions),w(1),k("ngIf",0===i.runtimeInfo.js_rpc_functions.length))},dependencies:[Nu,jn,gn,To],styles:["label[_ngcontent-%COMP%]{margin-bottom:0}.opaque[_ngcontent-%COMP%]{opacity:40%}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.runtime-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fff}.runtime-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:.6em 1em;font-weight:500}.runtime-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-left:1em;padding-right:1em;vertical-align:middle}"]})),t})(),n7e=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.getRuntime("")}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function i7e(t,n){1&t&&(b(0,"span"),I(1,"Filter by collection"),x())}function r7e(t,n){if(1&t&&(b(0,"span"),I(1),x()),2&t){const e=j();w(1),Dt(e.f.collection.value)}}function o7e(t,n){if(1&t){const e=vt();b(0,"button",34),ye("click",function(){const o=$e(e).$implicit;return Be(j().f.collection.setValue(o))}),I(1),x()}if(2&t){const e=n.$implicit;w(1),Dt(e)}}function s7e(t,n){if(1&t&&(b(0,"ngb-alert",35),ge(1,"img",36),b(2,"h6",37),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Error when querying storage objects: ",e.error,"")}}function a7e(t,n){1&t&&(b(0,"th",38),I(1,"Remove"),x())}function l7e(t,n){1&t&&(b(0,"tr")(1,"td",39),I(2,"No storage objects found - change the filter criteria or add new objects."),x()())}function c7e(t,n){if(1&t){const e=vt();b(0,"td",42)(1,"button",43),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteObject(r,s,a))}),I(2,"Delete"),x()()}}function u7e(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td",40),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewObject(o))}),I(2),x(),b(3,"td",40),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewObject(o))}),I(4),x(),b(5,"td",40),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewObject(o))}),I(6),x(),b(7,"td",40),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewObject(o))}),I(8),x(),J(9,c7e,3,0,"td",41),x()}if(2&t){const e=n.$implicit,i=j();w(2),Dt(e.collection),w(2),Dt(e.key),w(2),Dt(e.user_id),w(2),Dt(e.update_time),w(1),k("ngIf",i.deleteAllowed())}}let d7e=(()=>{class t{constructor(e,i,r,o,s){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"formBuilder",void 0),K(this,"systemUserId","00000000-0000-0000-0000-000000000000"),K(this,"error",""),K(this,"collections",[]),K(this,"objects",[]),K(this,"objectCount",0),K(this,"nextCursor",""),K(this,"prevCursor",""),K(this,"searchForm",void 0),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.searchForm=this.formBuilder.group({collection:[""],key:[""],user_id:[""]});const e=this.route.snapshot.queryParamMap;this.f.collection.setValue(e.get("collection")),this.f.key.setValue(e.get("key")),this.f.user_id.setValue(e.get("user_id")),this.nextCursor=e.get("cursor"),this.nextCursor&&""!==this.nextCursor?this.search(1):(this.f.collection.value||this.f.user_id.value)&&this.search(0),this.route.data.subscribe(i=>{this.collections.length=0,this.collections.push(...i[0].collections),this.objectCount=i[1].total_count,this.nextCursor=i[1].next_cursor,this.prevCursor=i[1].prev_cursor,this.objects.length=0,this.objects.push(...i[1].objects)},i=>{this.error=i})}disableSearch(){return!(!this.f.key.value||""===this.f.key.value||this.f.collection.value&&""!==this.f.collection.value)}search(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listStorage("",this.f.user_id.value,this.f.key.value,this.f.collection.value,i).subscribe(r=>{this.error="",this.objectCount=r.total_count,this.nextCursor=r.next_cursor,this.objects.length=0,this.objects.push(...r.objects),this.router.navigate([],{relativeTo:this.route,queryParams:{collection:this.f.collection.value,key:this.f.key.value,user_id:this.f.user_id.value,cursor:i},queryParamsHandling:"merge"})},r=>{this.error=r})}deleteObject(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteStorageObject("",r.collection,r.key,r.user_id,r.version).subscribe(()=>{this.error="",this.objectCount--,this.objects.splice(i,1)},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}viewObject(e){this.router.navigate(["/storage",e.collection,e.key,e.user_id],{relativeTo:this.route})}get f(){return this.searchForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:50,vars:15,consts:[[1,"pb-1"],[1,"pb-4"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],[1,"input-group-prepend"],["ngbDropdown","",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary","dropdown-radius",3,"disabled"],[4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",1,"btn","btn-secondary","text-secondary",3,"hidden","click"],[1,"dropdown-divider",3,"hidden"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],["type","text","formControlName","key","placeholder","Filter by key",1,"form-control"],["type","text","formControlName","user_id","placeholder","Filter by user ID",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"input-group-text",3,"click"],["src","/static/svg/purple-cog-1.svg","alt","","width","20","height","",1,"mr-1"],["type","submit",1,"btn","btn-primary",3,"disabled","click"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngFor","ngForOf"],["type","button","ngbDropdownItem","",3,"click"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"Storage Objects"),x(),b(2,"h6",1),I(3),x(),b(4,"div",2)(5,"div",3)(6,"div",4)(7,"form",5),ye("ngSubmit",function(){return i.search(0)}),b(8,"div",6)(9,"div",7)(10,"div",8)(11,"button",9),J(12,i7e,2,0,"span",10),J(13,r7e,2,1,"span",10),x(),b(14,"div",11)(15,"button",12),ye("click",function(){return i.f.collection.reset()}),I(16,"\u2718 Deselect collection"),x(),ge(17,"div",13),J(18,o7e,2,1,"button",14),x()()(),ge(19,"input",15)(20,"input",16),b(21,"div",17)(22,"span",18),ye("click",function(){return i.f.user_id.setValue(i.systemUserId)}),ge(23,"img",19),x()(),b(24,"div",17)(25,"button",20),ye("click",function(){return i.search(0)}),I(26,"Search"),x()()()()(),b(27,"div",21)(28,"div",22)(29,"button",23),ye("click",function(){return i.search(0)}),ge(30,"img",24),x(),b(31,"button",23),ye("click",function(){return i.search(1)}),ge(32,"img",25),x()()()()(),J(33,s7e,4,2,"ngb-alert",26),b(34,"div",27)(35,"table",28)(36,"thead",29)(37,"tr")(38,"th"),I(39,"Collection Name"),x(),b(40,"th"),I(41,"Key Name"),x(),b(42,"th",30),I(43,"User ID"),x(),b(44,"th",31),I(45,"Last Update"),x(),J(46,a7e,2,0,"th",32),x()(),b(47,"tbody"),J(48,l7e,3,0,"tr",10),J(49,u7e,10,5,"tr",33),x()()()),2&e&&(w(3),xn("",i.objectCount," objects found."),w(4),k("formGroup",i.searchForm),w(4),k("disabled",0===i.collections.length),w(1),k("ngIf",!i.f.collection.value||""===i.f.collection.value),w(1),k("ngIf",i.f.collection.value&&""!==i.f.collection.value),w(2),k("hidden",!i.f.collection.value||""===i.f.collection.value),w(2),k("hidden",!i.f.collection.value||""===i.f.collection.value),w(1),k("ngForOf",i.collections),w(7),k("disabled",i.disableSearch()),w(4),k("disabled",0===i.objects.length),w(2),k("disabled",""===i.nextCursor),w(2),k("ngIf",i.error),w(13),k("ngIf",i.deleteAllowed()),w(2),k("ngIf",0===i.objects.length),w(1),k("ngForOf",i.objects))},dependencies:[jn,gn,To,Pu,rm,Pf,jf,sl,Fa,rl,ol,fa,ja],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})),t})(),h7e=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.listStorageCollections("")}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})(),f7e=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.queryParamMap.get("collection"),o=e.queryParamMap.get("key"),s=e.queryParamMap.get("user_id");return this.consoleService.listStorage("",s,o,r,null)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();var lN,PW,LW,RW,$W,BW,VW,HW,zW,UW,GW,WW,qW,XW,YW,JW,KW,QW,ZW,eq,tq,nq,iq,rq,oq,sq,aq,lq,cq,uq,dq,hq,fq,pq,mq,gq,vq,yq,bq,_q,xq,wq,Cq,kq,Sq,Dq,Tq,Eq,Aq,Mq,Iq,Nq,Fq,Oq,jq,Pq,Lq,Rq,$q,Bq,Vq,Hq,zq,Uq,Gq,Wq,qq,Xq,Yq,Jq,Kq,Qq,Zq,eX,tX,nX,iX,rX,oX,sX,aX,lX,cX,uX,dX,hX,fX,pX,mX,gX,vX,yX,bX,_X,xX,wX,CX,kX,SX,DX,TX,EX,AX,MX,IX,NX,FX,OX,jX,PX,LX,RX,$X,BX,VX,HX,zX,UX,GX,WX,qX,XX,YX,JX,KX,QX,ZX,eY,tY,nY,iY,rY,oY,sY,aY,lY,cY,uY,dY,hY,fY,pY,mY,gY,vY,yY,bY,_Y,xY,wY,CY,kY,SY,DY,TY,EY,AY,MY,IY,NY,FY,OY,jY,PY,LY,RY,$Y,BY,VY,HY,zY,UY,GY,WY,qY,XY,YY,JY,KY,QY,ZY,eJ,tJ,nJ,iJ,rJ,oJ,sJ,aJ,lJ,cJ,uJ,dJ,hJ,fJ,pJ,mJ,gJ,vJ,yJ,bJ,_J,xJ,wJ,CJ,kJ,SJ,DJ,TJ,EJ,AJ,MJ,IJ,NJ,FJ,OJ,jJ,PJ,LJ,RJ,$J,BJ,VJ,HJ,zJ,UJ,GJ,WJ,qJ,XJ,YJ,JJ,KJ,QJ,ZJ,eK,tK,nK,iK,rK,oK,sK,aK,lK,cK,uK,dK,hK,fK,pK,mK,gK,vK,yK,bK,_K,xK,wK,CK,kK,SK,DK,TK,EK,AK,MK,IK,NK,FK,OK,jK,PK,LK,RK,$K,BK,VK,HK,zK,UK,GK,WK,qK,p7e=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],m7e=["mainAxis","crossAxis","limiter"];function lb(t){var n="function"==typeof Map?new Map:void 0;return lb=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return cN(e,arguments,qi(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),cb(r,e)},lb(t)}function cN(t,n,e){return(cN=ZK()?Reflect.construct.bind():function(i,r,o){var s=[null];s.push.apply(s,r);var a=new(Function.bind.apply(i,s));return o&&cb(a,o.prototype),a}).apply(null,arguments)}function Ae(t,n){return n||(n=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))}function XK(t,n){if(null==t)return{};var e,i,r=function(s,a){if(null==s)return{};var l,c,u={},d=Object.keys(s);for(c=0;c=0||(u[l]=s[l]);return u}(t,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(r[e]=t[e])}return r}function Re(t,n){var e=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=k2(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(l){throw l},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){e=e.call(t)},n:function(){var l=e.next();return s=l.done,l},e:function(l){a=!0,o=l},f:function(){try{s||null==e.return||e.return()}finally{if(a)throw o}}}}function vn(){vn=function(){return t};var t={},n=Object.prototype,e=n.hasOwnProperty,i=Object.defineProperty||function(q,re,L){q[re]=L.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function l(q,re,L){return Object.defineProperty(q,re,{value:L,enumerable:!0,configurable:!0,writable:!0}),q[re]}try{l({},"")}catch{l=function(re,L,X){return re[L]=X}}function c(q,re,L,X){var H=Object.create((re&&re.prototype instanceof h?re:h).prototype),he=new R(X||[]);return i(H,"_invoke",{value:S(q,L,he)}),H}function u(q,re,L){try{return{type:"normal",arg:q.call(re,L)}}catch(X){return{type:"throw",arg:X}}}t.wrap=c;var d={};function h(){}function f(){}function p(){}var m={};l(m,o,function(){return this});var g=Object.getPrototypeOf,v=g&&g(g(z([])));v&&v!==n&&e.call(v,o)&&(m=v);var y=p.prototype=h.prototype=Object.create(m);function _(q){["next","throw","return"].forEach(function(re){l(q,re,function(L){return this._invoke(re,L)})})}function C(q,re){function L(Z,H,he,E){var N=u(q[Z],q,H);if("throw"!==N.type){var F=N.arg,Y=F.value;return Y&&"object"==bn(Y)&&e.call(Y,"__await")?re.resolve(Y.__await).then(function(V){L("next",V,he,E)},function(V){L("throw",V,he,E)}):re.resolve(Y).then(function(V){F.value=V,he(F)},function(V){return L("throw",V,he,E)})}E(N.arg)}var X;i(this,"_invoke",{value:function(Z,H){function he(){return new re(function(E,N){L(Z,H,E,N)})}return X=X?X.then(he,he):he()}})}function S(q,re,L){var X="suspendedStart";return function(Z,H){if("executing"===X)throw new Error("Generator is already running");if("completed"===X){if("throw"===Z)throw H;return{value:void 0,done:!0}}for(L.method=Z,L.arg=H;;){var he=L.delegate;if(he){var E=M(he,L);if(E){if(E===d)continue;return E}}if("next"===L.method)L.sent=L._sent=L.arg;else if("throw"===L.method){if("suspendedStart"===X)throw X="completed",L.arg;L.dispatchException(L.arg)}else"return"===L.method&&L.abrupt("return",L.arg);X="executing";var N=u(q,re,L);if("normal"===N.type){if(X=L.done?"completed":"suspendedYield",N.arg===d)continue;return{value:N.arg,done:L.done}}"throw"===N.type&&(X="completed",L.method="throw",L.arg=N.arg)}}}function M(q,re){var L=re.method,X=q.iterator[L];if(void 0===X)return re.delegate=null,"throw"===L&&q.iterator.return&&(re.method="return",re.arg=void 0,M(q,re),"throw"===re.method)||"return"!==L&&(re.method="throw",re.arg=new TypeError("The iterator does not provide a '"+L+"' method")),d;var Z=u(X,q.iterator,re.arg);if("throw"===Z.type)return re.method="throw",re.arg=Z.arg,re.delegate=null,d;var H=Z.arg;return H?H.done?(re[q.resultName]=H.value,re.next=q.nextLoc,"return"!==re.method&&(re.method="next",re.arg=void 0),re.delegate=null,d):H:(re.method="throw",re.arg=new TypeError("iterator result is not an object"),re.delegate=null,d)}function $(q){var re={tryLoc:q[0]};1 in q&&(re.catchLoc=q[1]),2 in q&&(re.finallyLoc=q[2],re.afterLoc=q[3]),this.tryEntries.push(re)}function G(q){var re=q.completion||{};re.type="normal",delete re.arg,q.completion=re}function R(q){this.tryEntries=[{tryLoc:"root"}],q.forEach($,this),this.reset(!0)}function z(q){if(q){var re=q[o];if(re)return re.call(q);if("function"==typeof q.next)return q;if(!isNaN(q.length)){var L=-1,X=function Z(){for(;++L=0;--X){var Z=this.tryEntries[X],H=Z.completion;if("root"===Z.tryLoc)return L("end");if(Z.tryLoc<=this.prev){var he=e.call(Z,"catchLoc"),E=e.call(Z,"finallyLoc");if(he&&E){if(this.prev=0;--L){var X=this.tryEntries[L];if(X.tryLoc<=this.prev&&e.call(X,"finallyLoc")&&this.prev=0;--re){var L=this.tryEntries[re];if(L.finallyLoc===q)return this.complete(L.completion,L.afterLoc),G(L),d}},catch:function(q){for(var re=this.tryEntries.length-1;re>=0;--re){var L=this.tryEntries[re];if(L.tryLoc===q){var X=L.completion;if("throw"===X.type){var Z=X.arg;G(L)}return Z}}throw new Error("illegal catch attempt")},delegateYield:function(q,re,L){return this.delegate={iterator:z(q),resultName:re,nextLoc:L},"next"===this.method&&(this.arg=void 0),d}},t}function YK(t,n,e,i,r,o,s){try{var a=t[o](s),l=a.value}catch(c){return void e(c)}a.done?n(l):Promise.resolve(l).then(i,r)}function Zi(t){return function(){var n=this,e=arguments;return new Promise(function(i,r){var o=t.apply(n,e);function s(l){YK(o,i,r,s,a,"next",l)}function a(l){YK(o,i,r,s,a,"throw",l)}s(void 0)})}}function Un(t,n){return KK(t)||function(e,i){var r=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,s,a,l,c=[],u=!0,d=!1;try{if(a=(r=r.call(e)).next,0===i){if(Object(r)!==r)return;u=!1}else for(;!(u=(o=a.call(r)).done)&&(c.push(o.value),c.length!==i);u=!0);}catch(h){d=!0,s=h}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(d)throw s}}return c}}(t,n)||k2(t,n)||JK()}function JK(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function KK(t){if(Array.isArray(t))return t}function QK(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,i)}return e}function Ze(t){for(var n=1;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qi(t){return(qi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function ke(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function eQ(t,n){for(var e=0;et.length)&&(n=t.length);for(var e=0,i=new Array(n);e32){for(var n=[],e=t.ctx.length/32,i=0;i2&&void 0!==arguments[2]?arguments[2]:{},i=e.bubbles,r=void 0!==i&&i,o=e.cancelable,s=void 0!==o&&o,a=document.createEvent("CustomEvent");return a.initCustomEvent(t,r,s,n),a}function qd(t,n){return new t(n)}var db,D2=new Map,fN=0;function fQ(t,n,e,i,r,o,s){for(var a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,l=16.666/i,c="{\n",u=0;u<=1;u+=l){var d=n+(e-n)*o(u);c+=100*u+"%{".concat(s(d,1-d),"}\n")}var h=c+"100% {".concat(s(e,1-e),"}\n}"),f="__svelte_".concat(function x7e(t){for(var n=5381,e=t.length;e--;)n=(n<<5)-n^t.charCodeAt(e);return n>>>0}(h),"_").concat(a),p=hN(t),m=D2.get(p)||function w7e(t,n){var e={stylesheet:b7e(n),rules:{}};return D2.set(t,e),e}(p,t),g=m.stylesheet,v=m.rules;v[f]||(v[f]=!0,g.insertRule("@keyframes ".concat(f," ").concat(h),g.cssRules.length));var y=t.style.animation||"";return t.style.animation="".concat(y?"".concat(y,", "):"").concat(f," ").concat(i,"ms linear ").concat(r,"ms 1 both"),fN+=1,f}function hb(t){db=t}function Tv(){if(!db)throw new Error("Function called outside component initialization");return db}function Wc(t){Tv().$$.on_mount.push(t)}function Hu(t){Tv().$$.on_destroy.push(t)}function pQ(){var t=Tv();return function(n,e){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).cancelable,s=t.$$.callbacks[n];if(s){var a=hQ(n,e,{cancelable:void 0!==r&&r});return s.slice().forEach(function(l){l.call(t,a)}),!a.defaultPrevented}return!0}}function mQ(t,n){return Tv().$$.context.set(t,n),n}function xa(t){return Tv().$$.context.get(t)}function T2(t,n){var e=this,i=t.$$.callbacks[n.type];i&&i.slice().forEach(function(r){return r.call(e,n)})}var Ev=[],Vi=[],E2=[],pN=[],gQ=Promise.resolve(),mN=!1;function vQ(){mN||(mN=!0,gQ.then(yQ))}function Xl(){return vQ(),gQ}function _m(t){E2.push(t)}function zu(t){pN.push(t)}var A2,gN=new Set,Av=0;function yQ(){if(0===Av){var t=db;do{try{for(;Avl.start&&(a=d(l,_),l=null,vN(t,a.b,"start"),G&&(u(),c=fQ(t,s,a.b,a.duration,0,S,o.css))),a&&(z>=a.end?($(s=a.b,1-s),vN(t,a.b,"end"),l||(a.b?u():--a.group.r||ho(a.group.c)),a=null):z>=a.start&&(s=a.a+a.d*S((z-a.start)/a.duration),$(s,1-s))),!(!a&&!l)},0===ub.size&&dN(lQ),new Promise(function(z){ub.add({c:p,f:z})}))}return{run:function(f){ba(o)?(A2||(A2=Promise.resolve()).then(function(){A2=null}),A2).then(function(){o=o(r),h(f)}):h(f)},end:function(){u(),a=l=null}}}var yN=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function D7e(t,n){t.d(1),n.delete(t.key)}function bN(t,n){ce(t,1,1,function(){n.delete(t.key)})}function N2(t,n,e,i,r,o,s,a,l,c,u,d){for(var h=t.length,f=o.length,p=h,m={};p--;)m[t[p].key]=p;var g=[],v=new Map,y=new Map;for(p=f;p--;){var _=d(r,o,p),C=e(_),S=s.get(C);S?i&&S.p(_,n):(S=c(C,_)).c(),v.set(C,g[p]=S),C in m&&y.set(C,Math.abs(p-m[C]))}var M=new Set,$=new Set;function G(L){Q(L,1),L.m(a,u),s.set(L.key,L),u=L.first,f--}for(;h&&f;){var R=g[f-1],z=t[h-1],U=R.key,q=z.key;R===z?(u=R.first,h--,f--):v.has(q)?!s.has(U)||M.has(U)?G(R):$.has(q)?h--:y.get(U)>y.get(q)?($.add(U),G(R)):(M.add(q),h--):(l(z,s),h--)}for(;h--;){var re=t[h];v.has(re.key)||l(re,s)}for(;f;)G(g[f-1]);return g}function xm(t,n){for(var e={},i={},r={$$scope:1},o=t.length;o--;){var s=t[o],a=n[o];if(a){for(var l in s)l in a||(i[l]=1);for(var c in a)r[c]||(e[c]=a[c],r[c]=1);t[o]=a}else for(var u in s)r[u]=1}for(var d in i)d in e||(e[d]=void 0);return e}function F2(t){return"object"===bn(t)&&null!==t?t:{}}function Uu(t,n,e){var i=t.$$.props[n];void 0!==i&&(t.$$.bound[i]=e,e(t.$$.ctx[i]))}function mt(t){t&&t.c()}function ft(t,n,e,i){var r=t.$$,o=r.fragment,s=r.after_update;o&&o.m(n,e),i||_m(function(){var a,l=t.$$.on_mount.map(rQ).filter(ba);t.$$.on_destroy?(a=t.$$.on_destroy).push.apply(a,si(l)):ho(l),t.$$.on_mount=[]}),s.forEach(_m)}function pt(t,n){var e=t.$$;null!==e.fragment&&(ho(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function Pn(t,n,e,i,r,o,s){var a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1],l=db;hb(t);var c=t.$$={fragment:null,ctx:[],props:o,update:Lt,not_equal:r,bound:oQ(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(l?l.$$.context:[])),callbacks:oQ(),dirty:a,skip_bound:!1,root:n.target||l.$$.root};s&&s(c.root);var u=!1;if(c.ctx=e?e(t,n.props||{},function(h,f){var p=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:f;return c.ctx&&r(c.ctx[h],c.ctx[h]=p)&&(!c.skip_bound&&c.bound[h]&&c.bound[h](p),u&&function T7e(t,n){-1===t.$$.dirty[0]&&(Ev.push(t),vQ(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<1&&void 0!==arguments[1]?arguments[1]:!!function M7e(t){try{if(typeof window<"u"&&void 0!==window.localStorage)return window.localStorage[t]}catch{}}("debug");if(n){var e=function I7e(t){for(var n=0,e=0;e1&&void 0!==arguments[1]?arguments[1]:{},e=n.delay,i=void 0===e?0:e,r=n.duration,o=void 0===r?400:r,s=n.easing,a=void 0===s?iQ:s,l=+getComputedStyle(t).opacity;return{delay:i,duration:o,easing:a,css:function(c){return"opacity: ".concat(c*l)}}}var F7e=yN.window;function O7e(t){pi(t,"svelte-n7cvum",".svelte-n7cvum{box-sizing:border-box}.bg.svelte-n7cvum{position:fixed;z-index:1000;top:0;left:0;display:flex;flex-direction:column;justify-content:center;width:100vw;height:100vh;background:rgba(0, 0, 0, 0.66)}@supports (-webkit-touch-callout: none){}.wrap.svelte-n7cvum{position:relative;margin:2rem;max-height:100%}.window.svelte-n7cvum{position:relative;width:40rem;max-width:100%;max-height:100%;margin:2rem auto;color:black;border-radius:0.5rem;background:white}.content.svelte-n7cvum{position:relative;padding:1rem;max-height:calc(100vh - 4rem);overflow:auto}.close.svelte-n7cvum{display:block;box-sizing:border-box;position:absolute;z-index:1000;top:1rem;right:1rem;margin:0;padding:0;width:1.5rem;height:1.5rem;border:0;color:black;border-radius:1.5rem;background:white;box-shadow:0 0 0 1px black;transition:transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),\n background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);-webkit-appearance:none}.close.svelte-n7cvum:before,.close.svelte-n7cvum:after{content:'';display:block;box-sizing:border-box;position:absolute;top:50%;width:1rem;height:1px;background:black;transform-origin:center;transition:height 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),\n background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1)}.close.svelte-n7cvum:before{-webkit-transform:translate(0, -50%) rotate(45deg);-moz-transform:translate(0, -50%) rotate(45deg);transform:translate(0, -50%) rotate(45deg);left:0.25rem}.close.svelte-n7cvum:after{-webkit-transform:translate(0, -50%) rotate(-45deg);-moz-transform:translate(0, -50%) rotate(-45deg);transform:translate(0, -50%) rotate(-45deg);left:0.25rem}.close.svelte-n7cvum:hover{background:black}.close.svelte-n7cvum:hover:before,.close.svelte-n7cvum:hover:after{height:2px;background:white}.close.svelte-n7cvum:focus{border-color:#3399ff;box-shadow:0 0 0 2px #3399ff}.close.svelte-n7cvum:active{transform:scale(0.9)}.close.svelte-n7cvum:hover,.close.svelte-n7cvum:focus,.close.svelte-n7cvum:active{outline:none}")}function _Q(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_=t[1].closeButton&&xQ(t),C=t[2];return C&&(s=qd(C,{})),{c:function(){n=be("div"),e=be("div"),i=be("div"),_&&_.c(),r=it(),o=be("div"),s&&mt(s.$$.fragment),P(o,"class",a=Ao(t[1].classContent)+" svelte-n7cvum"),P(o,"style",t[9]),Mt(o,"content",!t[0]),P(i,"class",l=Ao(t[1].classWindow)+" svelte-n7cvum"),P(i,"role","dialog"),P(i,"aria-modal","true"),P(i,"aria-label",c=t[1].ariaLabelledBy?null:t[1].ariaLabel||null),P(i,"aria-labelledby",u=t[1].ariaLabelledBy||null),P(i,"style",t[8]),Mt(i,"window",!t[0]),P(e,"class",h=Ao(t[1].classWindowWrap)+" svelte-n7cvum"),P(e,"style",t[7]),Mt(e,"wrap",!t[0]),P(n,"id",f=t[1].id),P(n,"class",p=Ao(t[1].classBg)+" svelte-n7cvum"),P(n,"style",t[6]),Mt(n,"bg",!t[0])},m:function(S,M){Pe(S,n,M),de(n,e),de(e,i),_&&_.m(i,null),de(i,r),de(i,o),s&&ft(s,o,null),t[50](i),t[51](e),t[52](n),g=!0,v||(y=[Ft(i,"introstart",function(){ba(t[13])&&t[13].apply(this,arguments)}),Ft(i,"outrostart",function(){ba(t[14])&&t[14].apply(this,arguments)}),Ft(i,"introend",function(){ba(t[15])&&t[15].apply(this,arguments)}),Ft(i,"outroend",function(){ba(t[16])&&t[16].apply(this,arguments)}),Ft(n,"mousedown",t[20]),Ft(n,"mouseup",t[21])],v=!0)},p:function(S,M){if((t=S)[1].closeButton?_?(_.p(t,M),2&M[0]&&Q(_,1)):((_=xQ(t)).c(),Q(_,1),_.m(i,r)):_&&($t(),ce(_,1,1,function(){_=null}),Bt()),C!==(C=t[2])){if(s){$t();var $=s;ce($.$$.fragment,1,0,function(){pt($,1)}),Bt()}C?(mt((s=qd(C,{})).$$.fragment),Q(s.$$.fragment,1),ft(s,o,null)):s=null}(!g||2&M[0]&&a!==(a=Ao(t[1].classContent)+" svelte-n7cvum"))&&P(o,"class",a),(!g||512&M[0])&&P(o,"style",t[9]),(!g||3&M[0])&&Mt(o,"content",!t[0]),(!g||2&M[0]&&l!==(l=Ao(t[1].classWindow)+" svelte-n7cvum"))&&P(i,"class",l),(!g||2&M[0]&&c!==(c=t[1].ariaLabelledBy?null:t[1].ariaLabel||null))&&P(i,"aria-label",c),(!g||2&M[0]&&u!==(u=t[1].ariaLabelledBy||null))&&P(i,"aria-labelledby",u),(!g||256&M[0])&&P(i,"style",t[8]),(!g||3&M[0])&&Mt(i,"window",!t[0]),(!g||2&M[0]&&h!==(h=Ao(t[1].classWindowWrap)+" svelte-n7cvum"))&&P(e,"class",h),(!g||128&M[0])&&P(e,"style",t[7]),(!g||3&M[0])&&Mt(e,"wrap",!t[0]),(!g||2&M[0]&&f!==(f=t[1].id))&&P(n,"id",f),(!g||2&M[0]&&p!==(p=Ao(t[1].classBg)+" svelte-n7cvum"))&&P(n,"class",p),(!g||64&M[0])&&P(n,"style",t[6]),(!g||3&M[0])&&Mt(n,"bg",!t[0])},i:function(S){g||(Q(_),s&&Q(s.$$.fragment,S),_m(function(){d||(d=I2(i,t[12],t[1].transitionWindowProps,!0)),d.run(1)}),_m(function(){m||(m=I2(n,t[11],t[1].transitionBgProps,!0)),m.run(1)}),g=!0)},o:function(S){ce(_),s&&ce(s.$$.fragment,S),d||(d=I2(i,t[12],t[1].transitionWindowProps,!1)),d.run(0),m||(m=I2(n,t[11],t[1].transitionBgProps,!1)),m.run(0),g=!1},d:function(S){S&&je(n),_&&_.d(),s&&pt(s),t[50](null),S&&d&&d.end(),t[51](null),t[52](null),S&&m&&m.end(),v=!1,ho(y)}}}function xQ(t){var n,e,i,r,o,s=[P7e,j7e],a=[];function l(c,u){return 2&u[0]&&(n=null),null==n&&(n=!!c[17](c[1].closeButton)),n?0:1}return e=l(t,[-1,-1,-1]),i=a[e]=s[e](t),{c:function(){i.c(),r=_r()},m:function(c,u){a[e].m(c,u),Pe(c,r,u),o=!0},p:function(c,u){var d=e;(e=l(c,u))===d?a[e].p(c,u):($t(),ce(a[d],1,1,function(){a[d]=null}),Bt(),(i=a[e])?i.p(c,u):(i=a[e]=s[e](c)).c(),Q(i,1),i.m(r.parentNode,r))},i:function(c){o||(Q(i),o=!0)},o:function(c){ce(i),o=!1},d:function(c){a[e].d(c),c&&je(r)}}}function j7e(t){var n,e,i,r;return{c:function(){P(n=be("button"),"class",e=Ao(t[1].classCloseButton)+" svelte-n7cvum"),P(n,"aria-label","Close modal"),P(n,"style",t[10]),P(n,"type","button"),Mt(n,"close",!t[0])},m:function(o,s){Pe(o,n,s),i||(r=Ft(n,"click",t[18]),i=!0)},p:function(o,s){2&s[0]&&e!==(e=Ao(o[1].classCloseButton)+" svelte-n7cvum")&&P(n,"class",e),1024&s[0]&&P(n,"style",o[10]),3&s[0]&&Mt(n,"close",!o[0])},i:Lt,o:Lt,d:function(o){o&&je(n),i=!1,r()}}}function P7e(t){var n,e,i,r=t[1].closeButton;function o(s){return{props:{onClose:s[18]}}}return r&&(n=qd(r,o(t))),{c:function(){n&&mt(n.$$.fragment),e=_r()},m:function(s,a){n&&ft(n,s,a),Pe(s,e,a),i=!0},p:function(s,a){if(r!==(r=s[1].closeButton)){if(n){$t();var l=n;ce(l.$$.fragment,1,0,function(){pt(l,1)}),Bt()}r?(mt((n=qd(r,o(s))).$$.fragment),Q(n.$$.fragment,1),ft(n,e.parentNode,e)):n=null}},i:function(s){i||(n&&Q(n.$$.fragment,s),i=!0)},o:function(s){n&&ce(n.$$.fragment,s),i=!1},d:function(s){s&&je(e),n&&pt(n,s)}}}function L7e(t){var n,e,i,r,o=t[2]&&_Q(t),s=t[49].default,a=Ms(s,t,t[48],null);return{c:function(){o&&o.c(),n=it(),a&&a.c()},m:function(l,c){o&&o.m(l,c),Pe(l,n,c),a&&a.m(l,c),e=!0,i||(r=Ft(F7e,"keydown",t[19]),i=!0)},p:function(l,c){l[2]?o?(o.p(l,c),4&c[0]&&Q(o,1)):((o=_Q(l)).c(),Q(o,1),o.m(n.parentNode,n)):o&&($t(),ce(o,1,1,function(){o=null}),Bt()),a&&a.p&&(!e||131072&c[1])&&Ns(a,s,l,l[48],e?Is(s,l[48],c,null):Fs(l[48]),null)},i:function(l){e||(Q(o),Q(a,l),e=!0)},o:function(l){ce(o),ce(a,l),e=!1},d:function(l){o&&o.d(l),l&&je(n),a&&a.d(l),i=!1,r()}}}function wQ(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e){return new t(Ze(Ze({},e),{},{props:Ze(Ze({},n),e.props)}))}}function R7e(t,n,e){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y=n.$$slots,_=void 0===y?{}:y,C=n.$$scope,S=pQ(),$=n.isTabbable,G=void 0===$?function(Ue){return Ue.tabIndex>=0&&!Ue.hidden&&!Ue.disabled&&"none"!==Ue.style.display&&"hidden"!==Ue.type&&Boolean(Ue.offsetWidth||Ue.offsetHeight||Ue.getClientRects().length)}:$,R=n.show,z=void 0===R?null:R,U=n.id,q=void 0===U?null:U,re=n.key,L=void 0===re?"simple-modal":re,X=n.ariaLabel,Z=void 0===X?null:X,H=n.ariaLabelledBy,he=void 0===H?null:H,E=n.closeButton,N=void 0===E||E,F=n.closeOnEsc,Y=void 0===F||F,V=n.closeOnOuterClick,oe=void 0===V||V,fe=n.styleBg,Ne=void 0===fe?{}:fe,xe=n.styleWindowWrap,tt=void 0===xe?{}:xe,ze=n.styleWindow,ot=void 0===ze?{}:ze,B=n.styleContent,ne=void 0===B?{}:B,ie=n.styleCloseButton,Ie=void 0===ie?{}:ie,Ye=n.classBg,Le=void 0===Ye?null:Ye,_t=n.classWindowWrap,At=void 0===_t?null:_t,_n=n.classWindow,ci=void 0===_n?null:_n,on=n.classContent,Ni=void 0===on?null:on,pn=n.classCloseButton,Fr=void 0===pn?null:pn,$r=n.unstyled,wr=void 0!==$r&&$r,Or=n.setContext,Ai=void 0===Or?mQ:Or,Wr=n.transitionBg,jo=void 0===Wr?N7e:Wr,Fn=n.transitionBgProps,xt=void 0===Fn?{duration:250}:Fn,ui=n.transitionWindow,Fi=void 0===ui?jo:ui,Cr=n.transitionWindowProps,xo=void 0===Cr?xt:Cr,Qo=n.disableFocusTrap,gt=void 0!==Qo&&Qo,On={id:q,ariaLabel:Z,ariaLabelledBy:he,closeButton:N,closeOnEsc:Y,closeOnOuterClick:oe,styleBg:Ne,styleWindowWrap:tt,styleWindow:ot,styleContent:ne,styleCloseButton:Ie,classBg:Le,classWindowWrap:At,classWindow:ci,classContent:Ni,classCloseButton:Fr,transitionBg:jo,transitionBgProps:xt,transitionWindow:Fi,transitionWindowProps:xo,disableFocusTrap:gt,isTabbable:G,unstyled:wr},ai=Ze({},On),bi=null,Er=function(Ue){return Ue?Object.keys(Ue).reduce(function(Dn,ii){return"".concat(Dn,"; ").concat((hi=ii,hi.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()),": ").concat(Ue[ii]);var hi},""):""},qr=function(Ue){return!!(Ue&&Ue.constructor&&Ue.call&&Ue.apply)},ao=function(){e(6,a=Er(Object.assign({},{width:window.innerWidth,height:window.innerHeight},ai.styleBg))),e(7,l=Er(ai.styleWindowWrap)),e(8,c=Er(ai.styleWindow)),e(9,u=Er(ai.styleContent)),e(10,d=Er(ai.styleCloseButton)),e(11,h=ai.transitionBg),e(12,f=ai.transitionWindow)},Js=function(){},vr=Js,Ks=Js,qa=Js,Xa=Js,Ic=function(Ue){var ii=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},hi=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e(2,bi=wQ(Ue,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})),e(1,ai=Ze(Ze({},On),ii)),ao(),He(),e(13,vr=function(di){hi.onOpen&&hi.onOpen(di),S("open"),S("opening")}),e(14,Ks=function(di){hi.onClose&&hi.onClose(di),S("close"),S("closing")}),e(15,qa=function(di){hi.onOpened&&hi.onOpened(di),S("opened")}),e(16,Xa=function(di){hi.onClosed&&hi.onClosed(di),S("closed")})},we=function(){var Ue=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};bi&&(e(14,Ks=Ue.onClose||Ks),e(16,Xa=Ue.onClosed||Xa),e(2,bi=null),qe())},He=function(){s=window.scrollY,p=document.body.style.position,m=document.body.style.overflow,g=document.body.style.width,document.body.style.position="fixed",document.body.style.top="-".concat(s,"px"),document.body.style.overflow="hidden",document.body.style.width="100%"},qe=function(){document.body.style.position=p||"",document.body.style.top="",document.body.style.overflow=m||"",document.body.style.width=g||"",window.scrollTo({top:s,left:0,behavior:"instant"})};Ai(L,{open:Ic,close:we});var ut=!1;return Hu(function(){ut&&we()}),Wc(function(){e(47,ut=!0)}),t.$$set=function(Ue){"isTabbable"in Ue&&e(22,G=Ue.isTabbable),"show"in Ue&&e(23,z=Ue.show),"id"in Ue&&e(24,q=Ue.id),"key"in Ue&&e(25,L=Ue.key),"ariaLabel"in Ue&&e(26,Z=Ue.ariaLabel),"ariaLabelledBy"in Ue&&e(27,he=Ue.ariaLabelledBy),"closeButton"in Ue&&e(28,N=Ue.closeButton),"closeOnEsc"in Ue&&e(29,Y=Ue.closeOnEsc),"closeOnOuterClick"in Ue&&e(30,oe=Ue.closeOnOuterClick),"styleBg"in Ue&&e(31,Ne=Ue.styleBg),"styleWindowWrap"in Ue&&e(32,tt=Ue.styleWindowWrap),"styleWindow"in Ue&&e(33,ot=Ue.styleWindow),"styleContent"in Ue&&e(34,ne=Ue.styleContent),"styleCloseButton"in Ue&&e(35,Ie=Ue.styleCloseButton),"classBg"in Ue&&e(36,Le=Ue.classBg),"classWindowWrap"in Ue&&e(37,At=Ue.classWindowWrap),"classWindow"in Ue&&e(38,ci=Ue.classWindow),"classContent"in Ue&&e(39,Ni=Ue.classContent),"classCloseButton"in Ue&&e(40,Fr=Ue.classCloseButton),"unstyled"in Ue&&e(0,wr=Ue.unstyled),"setContext"in Ue&&e(41,Ai=Ue.setContext),"transitionBg"in Ue&&e(42,jo=Ue.transitionBg),"transitionBgProps"in Ue&&e(43,xt=Ue.transitionBgProps),"transitionWindow"in Ue&&e(44,Fi=Ue.transitionWindow),"transitionWindowProps"in Ue&&e(45,xo=Ue.transitionWindowProps),"disableFocusTrap"in Ue&&e(46,gt=Ue.disableFocusTrap),"$$scope"in Ue&&e(48,C=Ue.$$scope)},t.$$.update=function(){8388608&t.$$.dirty[0]|65536&t.$$.dirty[1]&&ut&&(qr(z)?Ic(z):we())},[wr,ai,bi,i,r,o,a,l,c,u,d,h,f,vr,Ks,qa,Xa,qr,we,function(Ue){if(ai.closeOnEsc&&bi&&"Escape"===Ue.key&&(Ue.preventDefault(),we()),bi&&"Tab"===Ue.key&&!ai.disableFocusTrap){var Dn=o.querySelectorAll("*"),ii=Array.from(Dn).filter(ai.isTabbable).sort(function(di,kr){return di.tabIndex-kr.tabIndex}),hi=ii.indexOf(document.activeElement);-1===hi&&Ue.shiftKey&&(hi=0),hi+=ii.length+(Ue.shiftKey?-1:1),ii[hi%=ii.length].focus(),Ue.preventDefault()}},function(Ue){!ai.closeOnOuterClick||Ue.target!==i&&Ue.target!==r||(v=Ue.target)},function(Ue){ai.closeOnOuterClick&&Ue.target===v&&(Ue.preventDefault(),we())},G,z,q,L,Z,he,N,Y,oe,Ne,tt,ot,ne,Ie,Le,At,ci,Ni,Fr,Ai,jo,xt,Fi,xo,gt,ut,C,_,function(Ue){Vi[Ue?"unshift":"push"](function(){e(5,o=Ue)})},function(Ue){Vi[Ue?"unshift":"push"](function(){e(4,r=Ue)})},function(Ue){Vi[Ue?"unshift":"push"](function(){e(3,i=Ue)})}]}var Jo,ro,Gu,Xd,Wu,qc,CQ=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,R7e,L7e,ys,{isTabbable:22,show:23,id:24,key:25,ariaLabel:26,ariaLabelledBy:27,closeButton:28,closeOnEsc:29,closeOnOuterClick:30,styleBg:31,styleWindowWrap:32,styleWindow:33,styleContent:34,styleCloseButton:35,classBg:36,classWindowWrap:37,classWindow:38,classContent:39,classCloseButton:40,unstyled:0,setContext:41,transitionBg:42,transitionBgProps:43,transitionWindow:44,transitionWindowProps:45,disableFocusTrap:46},O7e,[-1,-1,-1]),r}return Se(e)}();(function(t){t.text="text",t.tree="tree",t.table="table"})(Jo||(Jo={})),function(t){t.after="after",t.inside="inside",t.key="key",t.value="value",t.multi="multi"}(ro||(ro={})),function(t){t.after="after",t.key="key",t.value="value",t.inside="inside"}(Gu||(Gu={})),function(t){t.info="info",t.warning="warning",t.error="error"}(Xd||(Xd={})),function(t){t.key="key",t.value="value"}(Wu||(Wu={})),function(t){t.asc="asc",t.desc="desc"}(qc||(qc={}));var wm=[{start:0,end:100}],Cm={closeButton:!1,classBg:"jse-modal-bg",classWindow:"jse-modal-window",classWindowWrap:"jse-modal-window-wrap",classContent:"jse-modal-content"},$7e=Ze(Ze({},Cm),{},{classWindow:"jse-modal-window jse-modal-window-sort"}),B7e=Ze(Ze({},Cm),{},{classWindow:"jse-modal-window jse-modal-window-transform"}),kQ=Ze(Ze({},Cm),{},{classWindow:"jse-modal-window jse-modal-window-jsoneditor"}),_N="Insert or paste contents, enter [ insert a new array, enter { to insert a new object, or start typing to insert a new value",xN="Open context menu (Click here, right click on the selection, or use the context menu button or Ctrl+Q)",V7e="NO",wN="SELF",CN="NEXT_INSIDE",H7e=(ql(lN={},qc.asc,"ascending"),ql(lN,qc.desc,"descending"),lN),z7e=0;function fb(){return++z7e}function Uf(t){return(Uf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function oo(t){return Array.isArray(t)}function Mo(t){return null!==t&&"object"===Uf(t)&&t.constructor===Object}function SQ(t){return!(!t||"object"!==Uf(t))&&"add"===t.op}function DQ(t){return!(!t||"object"!==Uf(t))&&"remove"===t.op}function kN(t){return!(!t||"object"!==Uf(t))&&"replace"===t.op}function SN(t){return!(!t||"object"!==Uf(t))&&"copy"===t.op}function Mv(t){return!(!t||"object"!==Uf(t))&&"move"===t.op}function DN(t){return(DN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function U7e(t,n){return t===n}function TQ(t){return t.slice(0,t.length-1)}function EQ(t){return"object"===DN(t)&&null!==t}function pb(t){return(pb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function AQ(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,i)}return e}function G7e(t,n,e){return r=function(o,s){if("object"!==pb(o)||null===o)return o;var a=o[Symbol.toPrimitive];if(void 0!==a){var l=a.call(o,"string");if("object"!==pb(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(o)}(n),(n="symbol"===pb(r)?r:String(r))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t;var r}function TN(t){if(oo(t)){var n=t.slice();return Object.getOwnPropertySymbols(t).forEach(function(i){n[i]=t[i]}),n}if(Mo(t)){var e=function(i){for(var r=1;r3&&void 0!==arguments[3]&&arguments[3];if(0===n.length)return e;var r=n[0],o=qu(t?t[r]:void 0,n.slice(1),e,i);if(Mo(t)||oo(t))return EN(t,r,o);if(i){var s=W7e.test(r)?[]:{};return s[r]=o,s}throw new Error("Path does not exist")}var W7e=/^\d+$/;function MQ(t,n,e){if(0===n.length)return e(t);if(!EQ(t))throw new Error("Path doesn't exist");var i=n[0];return EN(t,i,MQ(t[i],n.slice(1),e))}function AN(t,n){if(0===n.length)return t;if(!EQ(t))throw new Error("Path does not exist");if(1===n.length){var e=n[0];if(e in t){var i=TN(t);return oo(i)&&i.splice(parseInt(e),1),Mo(i)&&delete i[e],i}return t}var r=n[0];return EN(t,r,AN(t[r],n.slice(1)))}function MN(t,n,e){var i=n.slice(0,n.length-1),r=n[n.length-1];return MQ(t,i,function(o){if(!Array.isArray(o))throw new TypeError("Array expected at path "+JSON.stringify(i));var s=TN(o);return s.splice(parseInt(r),0,e),s})}function Xc(t,n){return void 0!==t&&(0===n.length||null!==t&&Xc(t[n[0]],n.slice(1)))}function Xu(t){var n=t.split("/");return n.shift(),n.map(function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")})}function ln(t){return t.map(IQ).join("")}function IQ(t){return"/"+String(t).replace(/~/g,"~0").replace(/\//g,"~1")}function IN(t,n){return t+IQ(n)}function Iv(t,n){return t.startsWith(n)&&(t.length===n.length||"/"===t[n.length])}function Yu(t,n,e){for(var i=t,r=0;rt.length)&&(n=t.length);for(var e=0,i=new Array(n);e2&&void 0!==arguments[2]?arguments[2]:U7e;if(p.length=0?G=function(){var z="",U=!0;"-"==t[s]&&(z+=h()),z+="0"==t[s]?h():m(),"."==t[s]&&(z+=h()+m(),U=!1),"e"!=t[s]&&"E"!=t[s]||(z+=h(),"+"!=t[s]&&"-"!=t[s]||(z+=h()),z+=m(),U=!1);var q=+z;return a&&U&&(q>Number.MAX_SAFE_INTEGER||q="a"&&G<="f"?$+=G.charCodeAt()-n9e+10:G>="0"&&G<="9"?$+=+G:C()}return String.fromCharCode($)}function m(){for(var M="";t[s]>="0"&&t[s]<="9";)M+=h();if(M.length)return M;S(),_()}function g(M,$){v(M,$,y())}function v(M,$,G){i[M]=i[M]||{},i[M][$]=G}function y(){return{line:r,column:o,pos:s}}function _(){throw new SyntaxError("Unexpected token "+t[s]+" in JSON at position "+s)}function C(){f(),_()}function S(){if(s>=t.length)throw new SyntaxError("Unexpected end of JSON input")}},O2.stringify=function(t,n,e){if(j2(t)){var i,r,o=0,s="object"==bn(e)?e.space:e;switch(bn(s)){case"number":var a=s>10?10:s<0?0:Math.floor(s);s=a&&y(a," "),i=a,r=a;break;case"string":s=s.slice(0,10),i=0,r=0;for(var l=0;l=0}var r9e=/"|\\/g,o9e=/[\b]/g,s9e=/\f/g,a9e=/\n/g,l9e=/\r/g,c9e=/\t/g;function P2(t){return'"'+(t=t.replace(r9e,"\\$&").replace(s9e,"\\f").replace(o9e,"\\b").replace(a9e,"\\n").replace(l9e,"\\r").replace(c9e,"\\t"))+'"'}var u9e=/~/g,d9e=/\//g;function ON(t){return t.replace(u9e,"~0").replace(d9e,"~1")}function jN(t){return(jN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function PN(t){var n="function"==typeof Map?new Map:void 0;return PN=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return LN(e,arguments,vb(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),gb(r,e)},PN(t)}function LN(t,n,e){return(LN=RQ()?Reflect.construct.bind():function(i,r,o){var s=[null];s.push.apply(s,r);var a=new(Function.bind.apply(i,s));return o&&gb(a,o.prototype),a}).apply(null,arguments)}function RQ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function gb(t,n){return(gb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,i){return e.__proto__=i,e})(t,n)}function vb(t){return(vb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}var Gf=function(t){!function(l,c){if("function"!=typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(c&&c.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),c&&gb(l,c)}(a,PN(Error));var n,e,i,s=(n=a,e=RQ(),function(){var l,c=vb(n);if(e){var u=vb(this).constructor;l=Reflect.construct(c,arguments,u)}else l=c.apply(this,arguments);return function h9e(t,n){if(n&&("object"===jN(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}(this,l)});function a(l,c){var u;return function(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}(this,a),(u=s.call(this,l+" at position "+c)).position=c,u}return i=a,Object.defineProperty(i,"prototype",{writable:!1}),i}();function L2(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function R2(t){return t>=48&&t<=57}function f9e(t){return t>=32&&t<=1114111}var p9e=/^[,:[\]{}()\n]$/;function $Q(t){return m9e.test(t)||t&&B2(t.charCodeAt(0))}var m9e=/^[[{\w-]$/;function g9e(t){return 10===t||13===t||9===t||8===t||12===t}function $2(t){return 32===t||10===t||9===t||13===t}function v9e(t){return 160===t||t>=8192&&t<=8202||8239===t||8287===t||12288===t}function B2(t){return BQ(t)||RN(t)}function BQ(t){return 34===t||8220===t||8221===t}function RN(t){return 39===t||8216===t||8217===t||96===t||180===t}function yb(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t.lastIndexOf(n);return-1!==i?t.substring(0,i)+(e?"":t.substring(i+1)):t}function km(t,n){var e=t.length;if(!$2(t.charCodeAt(e-1)))return t+n;for(;$2(t.charCodeAt(e-1));)e--;return t.substring(0,e)+n+t.substring(e)}function y9e(t,n,e){return t.substring(0,n)+t.substring(n+e)}var b9e={"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},_9e={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function Yd(t){var n=0,e="";r()||function(){throw new Gf("Unexpected end of json string",t.length)}();var i=l(44);if(i&&o(),$Q(t[n])&&/[,\n][ \t\r]*$/.test(e)?(i||(e=km(e,",")),function(){for(var _=!0,C=!0;C;)_?_=!1:l(44)||(e=km(e,",")),C=r();C||(e=yb(e,",")),e="[\n".concat(e,"\n]")}()):i&&(e=yb(e,",")),n>=t.length)return e;function r(){o();var _=function(){if(123===t.charCodeAt(n)){e+="{",n++,o();for(var C=!0;n=49&&S<=57)for(n++;R2(t.charCodeAt(n));)n++;if(46===t.charCodeAt(n))for(n++,f(C);R2(t.charCodeAt(n));)n++;if(101===t.charCodeAt(n)||69===t.charCodeAt(n))for(n++,45!==t.charCodeAt(n)&&43!==t.charCodeAt(n)||n++,f(C);R2(t.charCodeAt(n));)n++;return n>C&&(e+=t.slice(C,n),!0)}()||d("true","true")||d("false","false")||d("null","null")||d("True","true")||d("False","false")||d("None","null")||h();return o(),_}function o(){var _=n,C=s();do{(C=a())&&(C=s())}while(C);return n>_}function s(){for(var _,C="";(_=$2(t.charCodeAt(n)))||v9e(t.charCodeAt(n));)C+=_?t[n]:" ",n++;return C.length>0&&(e+=C,!0)}function a(){if(47===t.charCodeAt(n)&&42===t.charCodeAt(n+1)){for(;nC){if(40===t.charCodeAt(n))return n++,r(),41===t.charCodeAt(n)&&(n++,59===t.charCodeAt(n)&&n++),!0;for(;$2(t.charCodeAt(n-1))&&n>0;)n--;var S=t.slice(C,n);return e+=JSON.stringify(S),!0}}function f(_){if(!R2(t.charCodeAt(n))){var C=t.slice(_,n);throw new Gf("Invalid number '".concat(C,"', expecting a digit ").concat(t[n]?"but got '".concat(t[n],"'"):"but reached end of input"),2)}}function p(_){throw new Gf("Invalid character "+JSON.stringify(_),n)}function m(){throw new Gf("Object key expected",n)}function g(){throw new Gf("Object value expected",n)}function v(){throw new Gf("Colon expected",n)}function y(_){for(var C=_+2;/\w/.test(t[C]);)C++;var S=t.slice(_,C);throw new Gf('Invalid unicode character "'.concat(S,'"'),n)}!function(){throw new Gf("Unexpected character "+JSON.stringify(t[n]),n)}()}function x9e(t,n){return"*"===t[n]&&"/"===t[n+1]}function Ws(t){return parseInt(t,10)}function $N(t){return w9e.test(t)}var w9e=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function Io(t){return"object"===bn(t)&&null!==t&&t.constructor===Object}function Ho(t){return"object"===bn(t)&&null!==t&&(t.constructor===Object||t.constructor===Array)}function BN(t){if("number"==typeof t)return t>9466848e5&&isFinite(t)&&Math.floor(t)===t&&!isNaN(new Date(t).valueOf());if("bigint"==typeof t)return BN(Number(t));try{var n=t&&t.valueOf();if(n!==t)return BN(n)}catch{return!1}return!1}function VQ(t){var n=window.document.createElement("div");n.style.color=t;var e=n.style.color;return""!==e?e.replace(/\s+/g,"").toLowerCase():null}function VN(t,n){if("number"==typeof t||"string"==typeof t||"boolean"==typeof t||void 0===t)return bn(t);if("bigint"==typeof t)return"number";if(null===t)return"null";if(Array.isArray(t))return"array";if(Io(t))return"object";var e=n.stringify(t);return e&&$N(e)?"number":"true"===e||"false"===e?"boolean":"null"===e?"null":"unknown"}var C9e=/^https?:\/\/\S+$/;function V2(t){return"string"==typeof t&&C9e.test(t)}function Nv(t,n){if(""===t)return"";var e=t.trim();return"null"===e?null:"true"===e||"false"!==e&&($N(e)?n.parse(e):t)}var k9e=/^-?[0-9]+$/,zQ="object"==(typeof global>"u"?"undefined":bn(global))&&global&&global.Object===Object&&global,S9e="object"==(typeof self>"u"?"undefined":bn(self))&&self&&self.Object===Object&&self,Ca=zQ||S9e||Function("return this")(),ll=Ca.Symbol,UQ=Object.prototype,D9e=UQ.hasOwnProperty,T9e=UQ.toString,bb=ll?ll.toStringTag:void 0,E9e=Object.prototype.toString,GQ=ll?ll.toStringTag:void 0;function Ml(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":GQ&&GQ in Object(t)?function(n){var e=D9e.call(n,bb),i=n[bb];try{n[bb]=void 0;var r=!0}catch{}var o=T9e.call(n);return r&&(e?n[bb]=i:delete n[bb]),o}(t):E9e.call(t)}function ls(t){return null!=t&&"object"==bn(t)}function Yl(t){return"symbol"==bn(t)||ls(t)&&"[object Symbol]"==Ml(t)}function WQ(t){return"number"==typeof t?t:Yl(t)?NaN:+t}function Ko(t,n){for(var e=-1,i=null==t?0:t.length,r=Array(i);++e0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var lZ=aZ(nZ),K9e=/\{\n\/\* \[wrapped with (.+)\] \*/,Q9e=/,? & /,Z9e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function q2(t){return function(){return t}}var eVe=function(){try{var t=Dm(Object,"defineProperty");return t({},"",{}),t}catch{}}(),X2=eVe,tVe=X2?function(t,n){return X2(t,"toString",{configurable:!0,enumerable:!1,value:q2(n),writable:!0})}:cl,UN=aZ(tVe);function Jc(t,n){for(var e=-1,i=null==t?0:t.length;++e-1}var nVe=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function uZ(t,n,e){var o,i=n+"";return UN(t,function(r,o){var s=o.length;if(!s)return r;var a=s-1;return o[a]=(s>1?"& ":"")+o[a],o=o.join(s>2?", ":" "),r.replace(Z9e,"{\n/* [wrapped with "+o+"] */\n")}(i,function(r,o){return Jc(nVe,function(s){var a="_."+s[0];o&s[1]&&!J2(r,a)&&r.push(a)}),r.sort()}((o=i.match(K9e))?o[1].split(Q9e):[],e)))}function dZ(t,n,e,i,r,o,s,a,l,c){var u=8&n;n|=u?32:64,4&(n&=~(u?64:32))||(n&=-4);var d=[t,n,r,u?o:void 0,u?s:void 0,u?void 0:o,u?void 0:s,a,l,c],h=e.apply(void 0,d);return zN(t)&&lZ(h,d),h.placeholder=i,uZ(h,t,n)}function Pv(t){return t.placeholder}var iVe=/^(?:0|[1-9]\d*)$/;function Zh(t,n){var e=bn(t);return!!(n=n??9007199254740991)&&("number"==e||"symbol"!=e&&iVe.test(t))&&t>-1&&t%1==0&&t1&&y.reverse(),u&&l-1&&t%1==0&&t<=9007199254740991}function Il(t){return null!=t&&Cb(t.length)&&!Kd(t)}function Nl(t,n,e){if(!zo(e))return!1;var i=bn(n);return!!("number"==i?Il(e)&&Zh(n,e.length):"string"==i&&n in e)&&Kc(e[n],t)}function Lv(t){return dr(function(n,e){var i=-1,r=e.length,o=r>1?e[r-1]:void 0,s=r>2?e[2]:void 0;for(o=t.length>3&&"function"==typeof o?(r--,o):void 0,s&&Nl(e[0],e[1],s)&&(o=r<3?void 0:o,r=1),n=Object(n);++i"u"?"undefined":bn(exports))&&exports&&!exports.nodeType&&exports,yZ=vZ&&"object"==(typeof module>"u"?"undefined":bn(module))&&module&&!module.nodeType&&module,bZ=yZ&&yZ.exports===vZ?Ca.Buffer:void 0,nf=(bZ?bZ.isBuffer:void 0)||Q2,Uo={};function Cc(t){return function(n){return t(n)}}Uo["[object Float32Array]"]=Uo["[object Float64Array]"]=Uo["[object Int8Array]"]=Uo["[object Int16Array]"]=Uo["[object Int32Array]"]=Uo["[object Uint8Array]"]=Uo["[object Uint8ClampedArray]"]=Uo["[object Uint16Array]"]=Uo["[object Uint32Array]"]=!0,Uo["[object Arguments]"]=Uo["[object Array]"]=Uo["[object ArrayBuffer]"]=Uo["[object Boolean]"]=Uo["[object DataView]"]=Uo["[object Date]"]=Uo["[object Error]"]=Uo["[object Function]"]=Uo["[object Map]"]=Uo["[object Number]"]=Uo["[object Object]"]=Uo["[object RegExp]"]=Uo["[object Set]"]=Uo["[object String]"]=Uo["[object WeakMap]"]=!1;var _Z="object"==(typeof exports>"u"?"undefined":bn(exports))&&exports&&!exports.nodeType&&exports,Sb=_Z&&"object"==(typeof module>"u"?"undefined":bn(module))&&module&&!module.nodeType&&module,qN=Sb&&Sb.exports===_Z&&zQ.process,Qc=function(){try{return Sb&&Sb.require&&Sb.require("util").types||qN&&qN.binding&&qN.binding("util")}catch{}}(),xZ=Qc&&Qc.isTypedArray,Tm=xZ?Cc(xZ):function(t){return ls(t)&&Cb(t.length)&&!!Uo[Ml(t)]},hVe=Object.prototype.hasOwnProperty;function wZ(t,n){var e=Pi(t),i=!e&&qf(t),r=!e&&!i&&nf(t),o=!e&&!i&&!r&&Tm(t),s=e||i||r||o,a=s?WN(t.length,String):[],l=a.length;for(var c in t)!n&&!hVe.call(t,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Zh(c,l))||a.push(c);return a}function CZ(t,n){return function(e){return t(n(e))}}var fVe=CZ(Object.keys,Object),pVe=Object.prototype.hasOwnProperty;function XN(t){if(!kb(t))return fVe(t);var n=[];for(var e in Object(t))pVe.call(t,e)&&"constructor"!=e&&n.push(e);return n}function qs(t){return Il(t)?wZ(t):XN(t)}var mVe=Object.prototype.hasOwnProperty,gVe=Lv(function(t,n){if(kb(n)||Il(n))Qd(n,qs(n),t);else for(var e in n)mVe.call(n,e)&&wb(t,e,n[e])}),kZ=gVe,vVe=Object.prototype.hasOwnProperty;function Fl(t){return Il(t)?wZ(t,!0):function yVe(t){if(!zo(t))return function(r){var o=[];if(null!=r)for(var s in Object(r))o.push(s);return o}(t);var n=kb(t),e=[];for(var i in t)("constructor"!=i||!n&&vVe.call(t,i))&&e.push(i);return e}(t)}var bVe=Lv(function(t,n){Qd(n,Fl(n),t)}),Z2=bVe,_Ve=Lv(function(t,n,e,i){Qd(n,Fl(n),t,i)}),Rv=_Ve,xVe=Lv(function(t,n,e,i){Qd(n,qs(n),t,i)}),SZ=xVe,wVe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,CVe=/^\w*$/;function YN(t,n){if(Pi(t))return!1;var e=bn(t);return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!Yl(t))||CVe.test(t)||!wVe.test(t)||null!=n&&t in Object(n)}var Db=Dm(Object,"create"),kVe=Object.prototype.hasOwnProperty,SVe=Object.prototype.hasOwnProperty;function Em(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n-1},rf.prototype.set=function(t,n){var e=this.__data__,i=ek(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this};var Tb=Dm(Ca,"Map");function tk(t,n){var i,r,e=t.__data__;return("string"==(r=bn(i=n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==i:null===i)?e["string"==typeof n?"string":"hash"]:e.map}function sf(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n0&&e(a)?n>1?$a(a,n-1,e,i,r):Yf(r,a):i||(r[r.length]=a)}return r}function KN(t){return null!=t&&t.length?$a(t,1):[]}function af(t){return UN(pZ(t,void 0,KN),t+"")}var EZ=af(JN),ik=CZ(Object.getPrototypeOf,Object),AZ=Function.prototype.toString,FVe=Object.prototype.hasOwnProperty,OVe=AZ.call(Object);function Bv(t){if(!ls(t)||"[object Object]"!=Ml(t))return!1;var n=ik(t);if(null===n)return!0;var e=FVe.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&AZ.call(e)==OVe}function rk(t){if(!ls(t))return!1;var n=Ml(t);return"[object Error]"==n||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!Bv(t)}var jVe=dr(function(t,n){try{return wc(t,void 0,n)}catch(e){return rk(e)?e:new Error(e)}}),QN=jVe;function ZN(t,n){var e;if("function"!=typeof n)throw new TypeError("Expected a function");return t=Ui(t),function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=void 0),e}}var eF=dr(function(t,n,e){var i=1;if(e.length){var r=Wf(e,Pv(eF));i|=32}return ef(t,i,n,e,r)});eF.placeholder={};var tF=eF,PVe=af(function(t,n){return Jc(n,function(e){e=Zd(e),tf(t,e,tF(t[e],t))}),t}),MZ=PVe,nF=dr(function(t,n,e){var i=3;if(e.length){var r=Wf(e,Pv(nF));i|=32}return ef(n,i,t,e,r)});nF.placeholder={};var IZ=nF;function Zc(t,n,e){var i=-1,r=t.length;n<0&&(n=-n>r?0:r+n),(e=e>r?r:e)<0&&(e+=r),r=n>e?0:e-n>>>0,n>>>=0;for(var o=Array(r);++i=i?t:Zc(t,n,e)}var LVe=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Vv(t){return LVe.test(t)}var iF="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",rF="\\ud83c[\\udffb-\\udfff]",NZ="[^\\ud800-\\udfff]",FZ="(?:\\ud83c[\\udde6-\\uddff]){2}",OZ="[\\ud800-\\udbff][\\udc00-\\udfff]",jZ="(?:"+iF+"|"+rF+")?",$Ve="[\\ufe0e\\ufe0f]?"+jZ+"(?:\\u200d(?:"+[NZ,FZ,OZ].join("|")+")[\\ufe0e\\ufe0f]?"+jZ+")*",BVe="(?:"+[NZ+iF+"?",iF,FZ,OZ,"[\\ud800-\\udfff]"].join("|")+")",VVe=RegExp(rF+"(?="+rF+")|"+BVe+$Ve,"g");function Ku(t){return Vv(t)?function(n){return n.match(VVe)||[]}(t):function(n){return n.split("")}(t)}function PZ(t){return function(n){var e=Vv(n=Jr(n))?Ku(n):void 0,i=e?e[0]:n.charAt(0),r=e?Jf(e,1).join(""):n.slice(1);return i[t]()+r}}var ok=PZ("toUpperCase");function oF(t){return ok(Jr(t).toLowerCase())}function sF(t,n,e,i){var r=-1,o=null==t?0:t.length;for(i&&o&&(e=t[++r]);++r=n?t:n)),t}function JZ(t,n,e){return void 0===e&&(e=n,n=void 0),void 0!==e&&(e=(e=xc(e))==e?e:0),void 0!==n&&(n=(n=xc(n))==n?n:0),Mm(xc(t),n,e)}function Qu(t){var n=this.__data__=new rf(t);this.size=n.size}function KZ(t,n){return t&&Qd(n,qs(n),t)}Qu.prototype.clear=function(){this.__data__=new rf,this.size=0},Qu.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},Qu.prototype.get=function(t){return this.__data__.get(t)},Qu.prototype.has=function(t){return this.__data__.has(t)},Qu.prototype.set=function(t,n){var e=this.__data__;if(e instanceof rf){var i=e.__data__;if(!Tb||i.length<199)return i.push([t,n]),this.size=++e.size,this;e=this.__data__=new sf(i)}return e.set(t,n),this.size=e.size,this};var QZ="object"==(typeof exports>"u"?"undefined":bn(exports))&&exports&&!exports.nodeType&&exports,ZZ=QZ&&"object"==(typeof module>"u"?"undefined":bn(module))&&module&&!module.nodeType&&module,eee=ZZ&&ZZ.exports===QZ?Ca.Buffer:void 0,tee=eee?eee.allocUnsafe:void 0;function nee(t,n){if(n)return t.slice();var e=t.length,i=tee?tee(e):new t.constructor(e);return t.copy(i),i}function Kf(t,n){for(var e=-1,i=null==t?0:t.length,r=0,o=[];++ea))return!1;var c=o.get(t),u=o.get(n);if(c&&u)return c==n&&u==t;var d=-1,h=!0,f=2&e?new Nm:void 0;for(o.set(t,n),o.set(n,t);++d=n||C<0||d&&_-c>=o}function g(){var C,S,_=Mb();if(m(_))return v(_);a=setTimeout(g,(S=n-((C=_)-l),d?CHe(S,o-(C-c)):S))}function v(_){return a=void 0,h&&i?f(_):(i=r=void 0,s)}function y(){var _=Mb(),C=m(_);if(i=arguments,r=this,l=_,C){if(void 0===a)return function p(_){return c=_,a=setTimeout(g,n),u?f(_):s}(l);if(d)return clearTimeout(a),a=setTimeout(g,n),f(l)}return void 0===a&&(a=setTimeout(g,n)),s}return n=xc(n)||0,zo(e)&&(u=!!e.leading,o=(d="maxWait"in e)?wHe(xc(e.maxWait)||0,n):o,h="trailing"in e?!!e.trailing:h),y.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=l=r=a=void 0},y.flush=function(){return void 0===a?s:v(Mb())},y}function Fee(t,n){return null==t||t!=t?n:t}var Oee=Object.prototype,kHe=Oee.hasOwnProperty,SHe=dr(function(t,n){t=Object(t);var e=-1,i=n.length,r=i>2?n[2]:void 0;for(r&&Nl(n[0],n[1],r)&&(i=1);++e=200&&(o=Eb,s=!1,n=new Nm(n));e:for(;++r=0&&t.slice(e,r)==n}function Qee(t){return function(n){var i,r,o,e=eh(n);return"[object Map]"==e?CF(n):"[object Set]"==e?(i=n,r=-1,o=Array(i.size),i.forEach(function(s){o[++r]=[s,s]}),o):function(i,r){return Ko(r,function(o){return[o,i[o]]})}(n,t(n))}}var vk=Qee(qs),yk=Qee(Fl),FHe=aF({"&":"&","<":"<",">":">",'"':""","'":"'"}),Zee=/[&<>"']/g,OHe=RegExp(Zee.source);function PF(t){return(t=Jr(t))&&OHe.test(t)?t.replace(Zee,FHe):t}var ete=/[\\^$.*+?()[\]{}|]/g,jHe=RegExp(ete.source);function tte(t){return(t=Jr(t))&&jHe.test(t)?t.replace(ete,"\\$&"):t}function nte(t,n){for(var e=-1,i=null==t?0:t.length;++ec?0:c+a),(l=void 0===l||l>c?c:Ui(l))<0&&(l+=c),l=a>l?0:LF(l);a-1?r[o?n[s]:s]:void 0}}var LHe=Math.max;function RF(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=null==e?0:Ui(e);return r<0&&(r=LHe(i+r,0)),Y2(t,Li(n),r)}var lte=ate(RF);function cte(t,n,e){var i;return e(t,function(r,o,s){if(n(r,o,s))return i=o,!1}),i}function ute(t,n){return cte(t,Li(n),th)}var RHe=Math.max,$He=Math.min;function $F(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=i-1;return void 0!==e&&(r=Ui(e),r=e<0?RHe(i+r,0):$He(r,i-1)),Y2(t,Li(n),r,!0)}var dte=ate($F);function hte(t,n){return cte(t,Li(n),jF)}function sa(t){return t&&t.length?t[0]:void 0}function fte(t,n){var e=-1,i=Il(t)?Array(t.length):[];return Qf(t,function(r,o,s){i[++e]=n(r,o,s)}),i}function Wv(t,n){return(Pi(t)?Ko:fte)(t,Li(n))}function pte(t,n){return $a(Wv(t,n),1)}function mte(t,n){return $a(Wv(t,n),1/0)}function gte(t,n,e){return e=void 0===e?1:Ui(e),$a(Wv(t,n),e)}function vte(t){return null!=t&&t.length?$a(t,1/0):[]}function yte(t,n){return null!=t&&t.length?$a(t,n=void 0===n?1:Ui(n)):[]}function bte(t){return ef(t,512)}var _te=uF("floor");function xte(t){return af(function(n){var e=n.length,i=e,r=Yc.prototype.thru;for(t&&n.reverse();i--;){var o=n[i];if("function"!=typeof o)throw new TypeError("Expected a function");if(r&&!s&&"wrapper"==W2(o))var s=new Yc([],!0)}for(i=s?i:e;++in}function _k(t){return function(n,e){return"string"==typeof n&&"string"==typeof e||(n=xc(n),e=xc(e)),t(n,e)}}var Ite=_k(BF),Nte=_k(function(t,n){return t>=n}),HHe=Object.prototype.hasOwnProperty;function zHe(t,n){return null!=t&&HHe.call(t,n)}function Fte(t,n){return null!=t&&Cee(t,n,zHe)}var UHe=Math.max,GHe=Math.min;function Ote(t,n,e){return n=Jd(n),void 0===e?(e=n,n=0):e=Jd(e),(i=t=xc(t))>=GHe(r=n,o=e)&&i-1:!!r&&jv(t,n,e)>-1}var qHe=Math.max;function Pte(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=null==e?0:Ui(e);return r<0&&(r=qHe(i+r,0)),jv(t,n,r)}function Xi(t){return null!=t&&t.length?Zc(t,0,-1):[]}var XHe=Math.min;function HF(t,n,e){for(var i=e?OF:J2,r=t[0].length,o=t.length,s=o,a=Array(o),l=1/0,c=[];s--;){var u=t[s];s&&n&&(u=Ko(u,Cc(n))),l=XHe(u.length,l),a[s]=!e&&(n||r>=120&&u.length>=120)?new Nm(s&&u):void 0}u=t[0];var d=-1,h=a[0];e:for(;++d=-9007199254740991&&t<=9007199254740991}function cne(t){return void 0===t}function une(t){return ls(t)&&"[object WeakMap]"==eh(t)}function dne(t){return ls(t)&&"[object WeakSet]"==Ml(t)}function hne(t){return Li("function"==typeof t?t:eu(t,1))}var oze=Array.prototype.join;function fne(t,n){return null==t?"":oze.call(t,n)}var sze=zv(function(t,n,e){return t+(e?"-":"")+n.toLowerCase()}),pne=sze,aze=dk(function(t,n,e){tf(t,e,n)}),mne=aze,lze=Math.max,cze=Math.min;function gne(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=i;return void 0!==e&&(r=(r=Ui(e))<0?lze(i+r,0):cze(r,i-1)),n==n?function(o,s,a){for(var l=a+1;l--;)if(o[l]===s)return l;return l}(t,n,r):Y2(t,cZ,r,!0)}var uze=zv(function(t,n,e){return t+(e?" ":"")+n.toLowerCase()}),vne=uze,yne=PZ("toLowerCase");function WF(t,n){return t=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}}function One(t,n){var e=t.length;if(e)return Zh(n+=n<0?e:0,e)?t[n]:void 0}function jne(t,n){return t&&t.length?One(t,Ui(n)):void 0}function Pne(t){return t=Ui(t),dr(function(n){return One(n,t)})}function ZF(t,n){return null==(t=Ute(t,n=Xf(n,t)))||delete t[Zd(Ln(n))]}function pze(t){return Bv(t)?void 0:t}var mze=af(function(t,n){var e={};if(null==t)return e;var i=!1;n=Ko(n,function(o){return o=Xf(o,t),i||(i=o.length>1),o}),Qd(t,pF(t),e),i&&(e=eu(e,7,pze));for(var r=n.length;r--;)ZF(e,n[r]);return e}),Lne=mze;function jb(t,n,e,i){if(!zo(t))return t;for(var r=-1,o=(n=Xf(n,t)).length,s=o-1,a=t;null!=a&&++rn||o&&s&&l&&!a&&!c||i&&s&&l||!e&&l||!r)return 1;if(!i&&!o&&!c&&t=p?m:m*("desc"==c[u]?-1:1)}return a.index-l.index}(o,s,e)});a--;)o[a]=o[a].value;return o}(fte(t,function(o,s,a){return{criteria:Ko(n,function(c){return c(o)}),index:++i,value:o}}))}function zne(t,n,e,i){return null==t?[]:(Pi(n)||(n=null==n?[]:[n]),Pi(e=i?void 0:e)||(e=null==e?[]:[e]),Hne(t,n,e))}function tO(t){return af(function(n){return n=Ko(n,Cc(Li)),dr(function(e){var i=this;return t(n,function(r){return wc(r,i,e)})})})}var Une=tO(Ko),vze=Math.min,yze=dr(function(t,n){var e=(n=1==n.length&&Pi(n[0])?Ko(n[0],Cc(Li)):Ko($a(n,1),Cc(Li))).length;return dr(function(i){for(var r=-1,o=vze(i.length,e);++r9007199254740991)return e;do{n%2&&(e+=t),(n=bze(n/2))&&(t+=t)}while(n);return e}var _ze=TF("length"),iO="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",rO="\\ud83c[\\udffb-\\udfff]",Xne="[^\\ud800-\\udfff]",Yne="(?:\\ud83c[\\udde6-\\uddff]){2}",Jne="[\\ud800-\\udbff][\\udc00-\\udfff]",Kne="(?:"+iO+"|"+rO+")?",wze="[\\ufe0e\\ufe0f]?"+Kne+"(?:\\u200d(?:"+[Xne,Yne,Jne].join("|")+")[\\ufe0e\\ufe0f]?"+Kne+")*",Cze="(?:"+[Xne+iO+"?",iO,Yne,Jne,"[\\ud800-\\udfff]"].join("|")+")",Qne=RegExp(rO+"(?="+rO+")|"+Cze+wze,"g");function Jv(t){return Vv(t)?function(n){for(var e=Qne.lastIndex=0;Qne.test(n);)++e;return e}(t):_ze(t)}var kze=Math.ceil;function Ck(t,n){var e=(n=void 0===n?" ":_c(n)).length;if(e<2)return e?nO(n,t):n;var i=nO(n,kze(t/Jv(n)));return Vv(n)?Jf(Ku(i),0,t).join(""):i.slice(0,t)}var Sze=Math.ceil,Dze=Math.floor;function Zne(t,n,e){t=Jr(t);var i=(n=Ui(n))?Jv(t):0;if(!n||i>=n)return t;var r=(n-i)/2;return Ck(Dze(r),e)+t+Ck(Sze(r),e)}function eie(t,n,e){t=Jr(t);var i=(n=Ui(n))?Jv(t):0;return n&&i-1;)a!==t&&sie.call(a,l,1),sie.call(t,l,1);return t}function dO(t,n){return t&&t.length&&n&&n.length?uO(t,n):t}var aie=dr(dO);function lie(t,n,e){return t&&t.length&&n&&n.length?uO(t,n,Li(e)):t}function cie(t,n,e){return t&&t.length&&n&&n.length?uO(t,n,void 0,e):t}var Nze=Array.prototype.splice;function uie(t,n){for(var e=t?n.length:0,i=e-1;e--;){var r=n[e];if(e==i||r!==o){var o=r;Zh(r)?Nze.call(t,r,1):ZF(t,r)}}return t}var Fze=af(function(t,n){var e=null==t?0:t.length,i=JN(t,n);return uie(t,Ko(n,function(r){return Zh(r,e)?+r:r}).sort(Vne)),i}),die=Fze,Oze=Math.floor,jze=Math.random;function hO(t,n){return t+Oze(jze()*(n-t+1))}var Pze=parseFloat,Lze=Math.min,Rze=Math.random;function hie(t,n,e){if(e&&"boolean"!=typeof e&&Nl(t,n,e)&&(n=e=void 0),void 0===e&&("boolean"==typeof n?(e=n,n=void 0):"boolean"==typeof t&&(e=t,t=void 0)),void 0===t&&void 0===n?(t=0,n=1):(t=Jd(t),void 0===n?(n=t,t=0):n=Jd(n)),t>n){var i=t;t=n,n=i}if(e||t%1||n%1){var r=Rze();return Lze(t+r*(n-t+Pze("1e-"+((r+"").length-1))),n)}return hO(t,n)}var $ze=Math.ceil,Bze=Math.max;function fie(t){return function(n,e,i){return i&&"number"!=typeof i&&Nl(n,e,i)&&(e=i=void 0),n=Jd(n),void 0===e?(e=n,n=0):e=Jd(e),function(r,o,s,a){for(var l=-1,c=Bze($ze((o-r)/(s||1)),0),u=Array(c);c--;)u[a?c:++l]=r,r+=s;return u}(n,e,i=void 0===i?n1&&Nl(t,n[0],n[1])?n=[]:e>2&&Nl(n[0],n[1],n[2])&&(n=[n[0]]),Hne(t,$a(n,1),[])}),pO=Kze,Qze=Math.floor,Zze=Math.min;function mO(t,n,e,i){var r=0,o=null==t?0:t.length;if(0===o)return 0;for(var s=(n=e(n))!=n,a=null===n,l=Yl(n),c=void 0===n;r>>1,s=t[o];null!==s&&!Yl(s)&&(e?s<=n:s>>0)?(t=Jr(t))&&("string"==typeof n||null!=n&&!xk(n))&&!(n=_c(n))&&Vv(t)?Jf(Ku(t),0,e):t.split(n,e):[]}var eUe=Math.max;function Wie(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return n=null==n?0:eUe(Ui(n),0),dr(function(e){var i=e[n],r=Jf(e,0,n);return i&&Yf(r,i),wc(t,this,r)})}var tUe=zv(function(t,n,e){return t+(e?" ":"")+ok(n)}),qie=tUe;function Xie(t,n,e){return t=Jr(t),e=null==e?0:Mm(Ui(e),0,t.length),n=_c(n),t.slice(e,e+n.length)==n}function Yie(){return{}}function Jie(){return""}function Kie(){return!0}var Qie=H2(function(t,n){return t-n},0);function Zie(t){return t&&t.length?XF(t,cl):0}function ere(t,n){return t&&t.length?XF(t,Li(n)):0}function tre(t){var n=null==t?0:t.length;return n?Zc(t,1,n):[]}function nre(t,n,e){return t&&t.length?Zc(t,0,(n=e||void 0===n?1:Ui(n))<0?0:n):[]}function ire(t,n,e){var i=null==t?0:t.length;return i?Zc(t,(n=i-(n=e||void 0===n?1:Ui(n)))<0?0:n,i):[]}function rre(t,n){return t&&t.length?mk(t,Li(n),!1,!0):[]}function ore(t,n){return t&&t.length?mk(t,Li(n)):[]}function sre(t,n){return n(t),t}var are=Object.prototype,nUe=are.hasOwnProperty;function lre(t,n,e,i){return void 0===t||Kc(t,are[e])&&!nUe.call(i,e)?n:t}var iUe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function rUe(t){return"\\"+iUe[t]}var cre=/<%=([\s\S]+?)%>/g,Tk={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:cre,variable:"",imports:{_:{escape:PF}}},oUe=/\b__p \+= '';/g,sUe=/\b(__p \+=) '' \+/g,aUe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,lUe=/[()=,{}\[\]\/\s]/,cUe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ek=/($^)/,uUe=/['\n\r\u2028\u2029\\]/g,ure=Object.prototype.hasOwnProperty;function dre(t,n,e){var i=Tk.imports._.templateSettings||Tk;e&&Nl(t,n,e)&&(n=void 0),t=Jr(t),n=Rv({},n,i,lre);var r,o,s=Rv({},n.imports,i.imports,lre),a=qs(s),l=VF(s,a),c=0,u=n.interpolate||Ek,d="__p += '",h=RegExp((n.escape||Ek).source+"|"+u.source+"|"+(u===cre?cUe:Ek).source+"|"+(n.evaluate||Ek).source+"|$","g"),f=ure.call(n,"sourceURL")?"//# sourceURL="+(n.sourceURL+"").replace(/\s/g," ")+"\n":"";t.replace(h,function(g,v,y,_,C,S){return y||(y=_),d+=t.slice(c,S).replace(uUe,rUe),v&&(r=!0,d+="' +\n__e("+v+") +\n'"),C&&(o=!0,d+="';\n"+C+";\n__p += '"),y&&(d+="' +\n((__t = ("+y+")) == null ? '' : __t) +\n'"),c=S+g.length,g}),d+="';\n";var p=ure.call(n,"variable")&&n.variable;if(p){if(lUe.test(p))throw new Error("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(o?d.replace(oUe,""):d).replace(sUe,"$1").replace(aUe,"$1;"),d="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=QN(function(){return Function(a,f+"return "+d).apply(void 0,l)});if(m.source=d,rk(m))throw m;return m}function gO(t,n,e){var i=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return zo(e)&&(i="leading"in e?!!e.leading:i,r="trailing"in e?!!e.trailing:r),Gv(t,n,{leading:i,maxWait:n,trailing:r})}function Kv(t,n){return n(t)}var dUe=Math.min;function vO(t,n){if((t=Ui(t))<1||t>9007199254740991)return[];var e=4294967295,i=dUe(t,4294967295);t-=4294967295;for(var r=WN(i,n=nh(n));++e-1;);return e}function bre(t,n){for(var e=-1,i=t.length;++e-1;);return e}function _re(t,n,e){if((t=Jr(t))&&(e||void 0===n))return KQ(t);if(!t||!(n=_c(n)))return t;var i=Ku(t),r=Ku(n);return Jf(i,bre(i,r),yre(i,r)+1).join("")}function xre(t,n,e){if((t=Jr(t))&&(e||void 0===n))return t.slice(0,JQ(t)+1);if(!t||!(n=_c(n)))return t;var i=Ku(t);return Jf(i,0,yre(i,Ku(n))+1).join("")}var hUe=/^\s+/;function wre(t,n,e){if((t=Jr(t))&&(e||void 0===n))return t.replace(hUe,"");if(!t||!(n=_c(n)))return t;var i=Ku(t);return Jf(i,bre(i,Ku(n))).join("")}var fUe=/\w*$/;function Cre(t,n){var e=30,i="...";if(zo(n)){var r="separator"in n?n.separator:r;e="length"in n?Ui(n.length):e,i="omission"in n?_c(n.omission):i}var o=(t=Jr(t)).length;if(Vv(t)){var s=Ku(t);o=s.length}if(e>=o)return t;var a=e-Jv(i);if(a<1)return i;var l=s?Jf(s,0,a).join(""):t.slice(0,a);if(void 0===r)return l+i;if(s&&(a+=l.length-a),xk(r)){if(t.slice(a).search(r)){var c,u=l;for(r.global||(r=RegExp(r.source,Jr(fUe.exec(r))+"g")),r.lastIndex=0;c=r.exec(u);)var d=c.index;l=l.slice(0,void 0===d?a:d)}}else if(t.indexOf(_c(r),a)!=a){var h=l.lastIndexOf(r);h>-1&&(l=l.slice(0,h))}return l+i}function kre(t){return GN(t,1)}var pUe=aF({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Sre=/&(?:amp|lt|gt|quot|#39);/g,mUe=RegExp(Sre.source);function Dre(t){return(t=Jr(t))&&mUe.test(t)?t.replace(Sre,pUe):t}var gUe=Uv&&1/lk(new Uv([,-0]))[1]==1/0?function(t){return new Uv(t)}:go,vUe=gUe;function Zf(t,n,e){var i=-1,r=J2,o=t.length,s=!0,a=[],l=a;if(e)s=!1,r=OF;else if(o>=200){var c=n?null:vUe(t);if(c)return lk(c);s=!1,r=Eb,l=new Nm}else l=n?[]:a;e:for(;++i1||this.__actions__.length)&&i instanceof Tr&&Zh(e)?((i=i.slice(e,+e+(n?1:0))).__actions__.push({func:Kv,args:[r],thisArg:void 0}),new Yc(i,this.__chain__).thru(function(o){return n&&!o.length&&o.push(void 0),o})):this.thru(r)}),Vre=CUe;function Hre(){return dF(this)}function zre(){var t=this.__wrapped__;if(t instanceof Tr){var n=t;return this.__actions__.length&&(n=new Tr(this)),(n=n.reverse()).__actions__.push({func:Kv,args:[kk],thisArg:void 0}),new Yc(n,this.__chain__)}return this.thru(kk)}function _O(t,n,e){var i=t.length;if(i<2)return i?Zf(t[0]):[];for(var r=-1,o=Array(i);++r1?t[n-1]:void 0;return e="function"==typeof e?(t.pop(),e):void 0,bO(t,e)}),Kre=SUe,Gn={chunk:YZ,compact:mee,concat:gee,difference:Vee,differenceBy:Hee,differenceWith:zee,drop:Gee,dropRight:Wee,dropRightWhile:qee,dropWhile:Xee,fill:rte,findIndex:RF,findLastIndex:$F,first:sa,flatten:KN,flattenDeep:vte,flattenDepth:yte,fromPairs:Ete,head:sa,indexOf:Pte,initial:Xi,intersection:Lte,intersectionBy:Rte,intersectionWith:$te,join:fne,last:Ln,lastIndexOf:gne,nth:jne,pull:aie,pullAll:dO,pullAllBy:lie,pullAllWith:cie,pullAt:die,remove:_ie,reverse:kk,slice:Fie,sortedIndex:Pie,sortedIndexBy:Lie,sortedIndexOf:Rie,sortedLastIndex:$ie,sortedLastIndexBy:Bie,sortedLastIndexOf:Vie,sortedUniq:zie,sortedUniqBy:Uie,tail:tre,take:nre,takeRight:ire,takeRightWhile:rre,takeWhile:ore,union:Tre,unionBy:Ere,unionWith:Are,uniq:Mre,uniqBy:Ire,uniqWith:Nre,unzip:Ak,unzipWith:bO,without:$re,xor:Ure,xorBy:Gre,xorWith:Wre,zip:qre,zipObject:Yre,zipObjectDeep:Jre,zipWith:Kre},vo={countBy:Iee,each:gk,eachRight:Nb,every:ite,filter:ste,find:lte,findLast:dte,flatMap:pte,flatMapDeep:mte,flatMapDepth:gte,forEach:gk,forEachRight:Nb,groupBy:qv,includes:jte,invokeMap:Wte,keyBy:mne,map:Wv,orderBy:zne,partition:lO,reduce:vie,reduceRight:yie,reject:bie,sample:Tie,sampleSize:Eie,shuffle:Iie,size:Nie,some:jie,sortBy:pO},DUe={now:Mb},_s={after:QQ,ary:GN,before:ZN,bind:tF,bindKey:IZ,curry:hk,curryRight:fk,debounce:Gv,defer:$ee,delay:Bee,flip:bte,memoize:$v,negate:Yv,once:Bne,overArgs:Gne,partial:sO,partialRight:iie,rearg:mie,rest:Cie,spread:Wie,throttle:gO,unary:kre,wrap:Bre},mi={castArray:qZ,clone:hee,cloneDeep:fee,cloneDeepWith:_F,cloneWith:pee,conformsTo:Eee,eq:Kc,gt:Ite,gte:Nte,isArguments:qf,isArray:Pi,isArrayBuffer:Xte,isArrayLike:Il,isArrayLikeObject:bs,isBoolean:Yte,isBuffer:nf,isDate:Kte,isElement:Qte,isEmpty:Hi,isEqual:or,isEqualWith:Zte,isError:rk,isFinite:ene,isFunction:Kd,isInteger:UF,isLength:Cb,isMap:yF,isMatch:tne,isMatchWith:nne,isNaN:ine,isNative:rne,isNil:one,isNull:sne,isNumber:GF,isObject:zo,isObjectLike:ls,isPlainObject:Bv,isRegExp:xk,isSafeInteger:lne,isSet:bF,isString:Fb,isSymbol:Yl,isTypedArray:Tm,isUndefined:cne,isWeakMap:une,isWeakSet:dne,lt:bne,lte:_ne,toArray:KF,toFinite:Jd,toInteger:Ui,toLength:LF,toNumber:xc,toPlainObject:NF,toSafeInteger:mre,toString:Jr},Ol={add:YQ,ceil:XZ,divide:Uee,floor:_te,max:kne,maxBy:Sne,mean:Tne,meanBy:Ene,min:Nne,minBy:Xv,multiply:Fne,round:Sie,subtract:Qie,sum:Zie,sumBy:ere},TUe=JZ,EUe=Ote,AUe=hie,Ii={assign:kZ,assignIn:Z2,assignInWith:Rv,assignWith:SZ,at:EZ,create:Nee,defaults:jee,defaultsDeep:Lee,entries:vk,entriesIn:yk,extend:Z2,extendWith:Rv,findKey:ute,findLastKey:hte,forIn:kte,forInRight:Ste,forOwn:Dte,forOwnRight:Tte,functions:Ate,functionsIn:Mte,get:nk,has:Fte,hasIn:uk,invert:Vte,invertBy:zte,invoke:Gte,keys:qs,keysIn:Fl,mapKeys:xne,mapValues:qF,merge:Ane,mergeWith:FF,omit:Lne,omitBy:$ne,pick:rie,pickBy:eO,result:kie,set:Aie,setWith:Mie,toPairs:vk,toPairsIn:yk,transform:vre,unset:Fre,update:jre,updateWith:Pre,values:Fm,valuesIn:Rre},ih={at:Vre,chain:dF,commit:xF,lodash:me,next:QF,plant:cO,reverse:zre,tap:sre,thru:Kv,toIterator:yO,toJSON:Om,value:Om,valueOf:Om,wrapperChain:Hre},Kr={camelCase:WZ,capitalize:oF,deburr:lF,endsWith:Kee,escape:PF,escapeRegExp:tte,kebabCase:pne,lowerCase:vne,lowerFirst:yne,pad:Zne,padEnd:eie,padStart:tie,parseInt:nie,repeat:xie,replace:wie,snakeCase:Oie,split:Gie,startCase:qie,startsWith:Xie,template:dre,templateSettings:Tk,toLower:fre,toUpper:gre,trim:_re,trimEnd:xre,trimStart:wre,truncate:Cre,unescape:Dre,upperCase:Lre,upperFirst:ok,words:cF},so={attempt:QN,bindAll:MZ,cond:See,conforms:Tee,constant:q2,defaultTo:Fee,flow:wte,flowRight:Cte,identity:cl,iteratee:hne,matches:wne,matchesProperty:Cne,method:Mne,methodOf:Ine,mixin:YF,noop:go,nthArg:Pne,over:Une,overEvery:Wne,overSome:qne,property:EF,propertyOf:oie,range:fO,rangeRight:pie,stubArray:sk,stubFalse:Q2,stubObject:Yie,stubString:Jie,stubTrue:Kie,times:vO,toPath:pre,uniqueId:ep},MUe=Math.max,IUe=Math.min,NUe=Math.min,FUe=Array.prototype,Qre=Object.prototype.hasOwnProperty,Zre=ll?ll.iterator:void 0,OUe=Math.max,eoe=Math.min,wO=function(t){return function(n,e,i){if(null==i){var r=zo(e),o=r&&qs(e),s=o&&o.length&&bk(e,o);(s?s.length:r)||(i=e,e=n,n=this)}return t(n,e,i)}}(YF);me.after=_s.after,me.ary=_s.ary,me.assign=Ii.assign,me.assignIn=Ii.assignIn,me.assignInWith=Ii.assignInWith,me.assignWith=Ii.assignWith,me.at=Ii.at,me.before=_s.before,me.bind=_s.bind,me.bindAll=so.bindAll,me.bindKey=_s.bindKey,me.castArray=mi.castArray,me.chain=ih.chain,me.chunk=Gn.chunk,me.compact=Gn.compact,me.concat=Gn.concat,me.cond=so.cond,me.conforms=so.conforms,me.constant=so.constant,me.countBy=vo.countBy,me.create=Ii.create,me.curry=_s.curry,me.curryRight=_s.curryRight,me.debounce=_s.debounce,me.defaults=Ii.defaults,me.defaultsDeep=Ii.defaultsDeep,me.defer=_s.defer,me.delay=_s.delay,me.difference=Gn.difference,me.differenceBy=Gn.differenceBy,me.differenceWith=Gn.differenceWith,me.drop=Gn.drop,me.dropRight=Gn.dropRight,me.dropRightWhile=Gn.dropRightWhile,me.dropWhile=Gn.dropWhile,me.fill=Gn.fill,me.filter=vo.filter,me.flatMap=vo.flatMap,me.flatMapDeep=vo.flatMapDeep,me.flatMapDepth=vo.flatMapDepth,me.flatten=Gn.flatten,me.flattenDeep=Gn.flattenDeep,me.flattenDepth=Gn.flattenDepth,me.flip=_s.flip,me.flow=so.flow,me.flowRight=so.flowRight,me.fromPairs=Gn.fromPairs,me.functions=Ii.functions,me.functionsIn=Ii.functionsIn,me.groupBy=vo.groupBy,me.initial=Gn.initial,me.intersection=Gn.intersection,me.intersectionBy=Gn.intersectionBy,me.intersectionWith=Gn.intersectionWith,me.invert=Ii.invert,me.invertBy=Ii.invertBy,me.invokeMap=vo.invokeMap,me.iteratee=so.iteratee,me.keyBy=vo.keyBy,me.keys=qs,me.keysIn=Ii.keysIn,me.map=vo.map,me.mapKeys=Ii.mapKeys,me.mapValues=Ii.mapValues,me.matches=so.matches,me.matchesProperty=so.matchesProperty,me.memoize=_s.memoize,me.merge=Ii.merge,me.mergeWith=Ii.mergeWith,me.method=so.method,me.methodOf=so.methodOf,me.mixin=wO,me.negate=Yv,me.nthArg=so.nthArg,me.omit=Ii.omit,me.omitBy=Ii.omitBy,me.once=_s.once,me.orderBy=vo.orderBy,me.over=so.over,me.overArgs=_s.overArgs,me.overEvery=so.overEvery,me.overSome=so.overSome,me.partial=_s.partial,me.partialRight=_s.partialRight,me.partition=vo.partition,me.pick=Ii.pick,me.pickBy=Ii.pickBy,me.property=so.property,me.propertyOf=so.propertyOf,me.pull=Gn.pull,me.pullAll=Gn.pullAll,me.pullAllBy=Gn.pullAllBy,me.pullAllWith=Gn.pullAllWith,me.pullAt=Gn.pullAt,me.range=so.range,me.rangeRight=so.rangeRight,me.rearg=_s.rearg,me.reject=vo.reject,me.remove=Gn.remove,me.rest=_s.rest,me.reverse=Gn.reverse,me.sampleSize=vo.sampleSize,me.set=Ii.set,me.setWith=Ii.setWith,me.shuffle=vo.shuffle,me.slice=Gn.slice,me.sortBy=vo.sortBy,me.sortedUniq=Gn.sortedUniq,me.sortedUniqBy=Gn.sortedUniqBy,me.split=Kr.split,me.spread=_s.spread,me.tail=Gn.tail,me.take=Gn.take,me.takeRight=Gn.takeRight,me.takeRightWhile=Gn.takeRightWhile,me.takeWhile=Gn.takeWhile,me.tap=ih.tap,me.throttle=_s.throttle,me.thru=Kv,me.toArray=mi.toArray,me.toPairs=Ii.toPairs,me.toPairsIn=Ii.toPairsIn,me.toPath=so.toPath,me.toPlainObject=mi.toPlainObject,me.transform=Ii.transform,me.unary=_s.unary,me.union=Gn.union,me.unionBy=Gn.unionBy,me.unionWith=Gn.unionWith,me.uniq=Gn.uniq,me.uniqBy=Gn.uniqBy,me.uniqWith=Gn.uniqWith,me.unset=Ii.unset,me.unzip=Gn.unzip,me.unzipWith=Gn.unzipWith,me.update=Ii.update,me.updateWith=Ii.updateWith,me.values=Ii.values,me.valuesIn=Ii.valuesIn,me.without=Gn.without,me.words=Kr.words,me.wrap=_s.wrap,me.xor=Gn.xor,me.xorBy=Gn.xorBy,me.xorWith=Gn.xorWith,me.zip=Gn.zip,me.zipObject=Gn.zipObject,me.zipObjectDeep=Gn.zipObjectDeep,me.zipWith=Gn.zipWith,me.entries=Ii.toPairs,me.entriesIn=Ii.toPairsIn,me.extend=Ii.assignIn,me.extendWith=Ii.assignInWith,wO(me,me),me.add=Ol.add,me.attempt=so.attempt,me.camelCase=Kr.camelCase,me.capitalize=Kr.capitalize,me.ceil=Ol.ceil,me.clamp=TUe,me.clone=mi.clone,me.cloneDeep=mi.cloneDeep,me.cloneDeepWith=mi.cloneDeepWith,me.cloneWith=mi.cloneWith,me.conformsTo=mi.conformsTo,me.deburr=Kr.deburr,me.defaultTo=so.defaultTo,me.divide=Ol.divide,me.endsWith=Kr.endsWith,me.eq=mi.eq,me.escape=Kr.escape,me.escapeRegExp=Kr.escapeRegExp,me.every=vo.every,me.find=vo.find,me.findIndex=Gn.findIndex,me.findKey=Ii.findKey,me.findLast=vo.findLast,me.findLastIndex=Gn.findLastIndex,me.findLastKey=Ii.findLastKey,me.floor=Ol.floor,me.forEach=vo.forEach,me.forEachRight=vo.forEachRight,me.forIn=Ii.forIn,me.forInRight=Ii.forInRight,me.forOwn=Ii.forOwn,me.forOwnRight=Ii.forOwnRight,me.get=Ii.get,me.gt=mi.gt,me.gte=mi.gte,me.has=Ii.has,me.hasIn=Ii.hasIn,me.head=Gn.head,me.identity=cl,me.includes=vo.includes,me.indexOf=Gn.indexOf,me.inRange=EUe,me.invoke=Ii.invoke,me.isArguments=mi.isArguments,me.isArray=Pi,me.isArrayBuffer=mi.isArrayBuffer,me.isArrayLike=mi.isArrayLike,me.isArrayLikeObject=mi.isArrayLikeObject,me.isBoolean=mi.isBoolean,me.isBuffer=mi.isBuffer,me.isDate=mi.isDate,me.isElement=mi.isElement,me.isEmpty=mi.isEmpty,me.isEqual=mi.isEqual,me.isEqualWith=mi.isEqualWith,me.isError=mi.isError,me.isFinite=mi.isFinite,me.isFunction=mi.isFunction,me.isInteger=mi.isInteger,me.isLength=mi.isLength,me.isMap=mi.isMap,me.isMatch=mi.isMatch,me.isMatchWith=mi.isMatchWith,me.isNaN=mi.isNaN,me.isNative=mi.isNative,me.isNil=mi.isNil,me.isNull=mi.isNull,me.isNumber=mi.isNumber,me.isObject=zo,me.isObjectLike=mi.isObjectLike,me.isPlainObject=mi.isPlainObject,me.isRegExp=mi.isRegExp,me.isSafeInteger=mi.isSafeInteger,me.isSet=mi.isSet,me.isString=mi.isString,me.isSymbol=mi.isSymbol,me.isTypedArray=mi.isTypedArray,me.isUndefined=mi.isUndefined,me.isWeakMap=mi.isWeakMap,me.isWeakSet=mi.isWeakSet,me.join=Gn.join,me.kebabCase=Kr.kebabCase,me.last=Ln,me.lastIndexOf=Gn.lastIndexOf,me.lowerCase=Kr.lowerCase,me.lowerFirst=Kr.lowerFirst,me.lt=mi.lt,me.lte=mi.lte,me.max=Ol.max,me.maxBy=Ol.maxBy,me.mean=Ol.mean,me.meanBy=Ol.meanBy,me.min=Ol.min,me.minBy=Ol.minBy,me.stubArray=so.stubArray,me.stubFalse=so.stubFalse,me.stubObject=so.stubObject,me.stubString=so.stubString,me.stubTrue=so.stubTrue,me.multiply=Ol.multiply,me.nth=Gn.nth,me.noop=so.noop,me.now=DUe.now,me.pad=Kr.pad,me.padEnd=Kr.padEnd,me.padStart=Kr.padStart,me.parseInt=Kr.parseInt,me.random=AUe,me.reduce=vo.reduce,me.reduceRight=vo.reduceRight,me.repeat=Kr.repeat,me.replace=Kr.replace,me.result=Ii.result,me.round=Ol.round,me.sample=vo.sample,me.size=vo.size,me.snakeCase=Kr.snakeCase,me.some=vo.some,me.sortedIndex=Gn.sortedIndex,me.sortedIndexBy=Gn.sortedIndexBy,me.sortedIndexOf=Gn.sortedIndexOf,me.sortedLastIndex=Gn.sortedLastIndex,me.sortedLastIndexBy=Gn.sortedLastIndexBy,me.sortedLastIndexOf=Gn.sortedLastIndexOf,me.startCase=Kr.startCase,me.startsWith=Kr.startsWith,me.subtract=Ol.subtract,me.sum=Ol.sum,me.sumBy=Ol.sumBy,me.template=Kr.template,me.times=so.times,me.toFinite=mi.toFinite,me.toInteger=Ui,me.toLength=mi.toLength,me.toLower=Kr.toLower,me.toNumber=mi.toNumber,me.toSafeInteger=mi.toSafeInteger,me.toString=mi.toString,me.toUpper=Kr.toUpper,me.trim=Kr.trim,me.trimEnd=Kr.trimEnd,me.trimStart=Kr.trimStart,me.truncate=Kr.truncate,me.unescape=Kr.unescape,me.uniqueId=so.uniqueId,me.upperCase=Kr.upperCase,me.upperFirst=Kr.upperFirst,me.each=vo.forEach,me.eachRight=vo.forEachRight,me.first=Gn.head,wO(me,(xO={},th(me,function(t,n){Qre.call(me.prototype,n)||(xO[n]=t)}),xO),{chain:!1}),me.VERSION="4.17.21",(me.templateSettings=Kr.templateSettings).imports._=me,Jc(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){me[t].placeholder=me}),Jc(["drop","take"],function(t,n){Tr.prototype[t]=function(e){e=void 0===e?1:OUe(Ui(e),0);var i=this.__filtered__&&!n?new Tr(this):this.clone();return i.__filtered__?i.__takeCount__=eoe(e,i.__takeCount__):i.__views__.push({size:eoe(e,4294967295),type:t+(i.__dir__<0?"Right":"")}),i},Tr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),Jc(["filter","map","takeWhile"],function(t,n){var e=n+1,i=1==e||3==e;Tr.prototype[t]=function(r){var o=this.clone();return o.__iteratees__.push({iteratee:Li(r),type:e}),o.__filtered__=o.__filtered__||i,o}}),Jc(["head","last"],function(t,n){var e="take"+(n?"Right":"");Tr.prototype[t]=function(){return this[e](1).value()[0]}}),Jc(["initial","tail"],function(t,n){var e="drop"+(n?"":"Right");Tr.prototype[t]=function(){return this.__filtered__?new Tr(this):this[e](1)}}),Tr.prototype.compact=function(){return this.filter(cl)},Tr.prototype.find=function(t){return this.filter(t).head()},Tr.prototype.findLast=function(t){return this.reverse().find(t)},Tr.prototype.invokeMap=dr(function(t,n){return"function"==typeof t?new Tr(this):this.map(function(e){return Ob(e,t,n)})}),Tr.prototype.reject=function(t){return this.filter(Yv(Li(t)))},Tr.prototype.slice=function(t,n){t=Ui(t);var e=this;return e.__filtered__&&(t>0||n<0)?new Tr(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),void 0!==n&&(e=(n=Ui(n))<0?e.dropRight(-n):e.take(n-t)),e)},Tr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Tr.prototype.toArray=function(){return this.take(4294967295)},th(Tr.prototype,function(t,n){var e=/^(?:filter|find|map|reject)|While$/.test(n),i=/^(?:head|last)$/.test(n),r=me[i?"take"+("last"==n?"Right":""):n],o=i||/^find/.test(n);r&&(me.prototype[n]=function(){var s=this.__wrapped__,a=i?[1]:arguments,l=s instanceof Tr,c=a[0],u=l||Pi(s),d=function(v){var y=r.apply(me,Yf([v],a));return i&&h?y[0]:y};u&&e&&"function"==typeof c&&1!=c.length&&(l=u=!1);var h=this.__chain__,p=o&&!h,m=l&&!this.__actions__.length;if(!o&&u){s=m?s:new Tr(this);var g=t.apply(s,a);return g.__actions__.push({func:Kv,args:[d],thisArg:void 0}),new Yc(g,h)}return p&&m?t.apply(this,a):(g=this.thru(d),p?i?g.value()[0]:g.value():g)})}),Jc(["pop","push","shift","sort","splice","unshift"],function(t){var n=FUe[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);me.prototype[t]=function(){var r=arguments;if(i&&!this.__chain__){var o=this.value();return n.apply(Pi(o)?o:[],r)}return this[e](function(s){return n.apply(Pi(s)?s:[],r)})}}),th(Tr.prototype,function(t,n){var e=me[n];if(e){var i=e.name+"";Qre.call(Ov,i)||(Ov[i]=[]),Ov[i].push({name:n,func:e})}}),Ov[K2(void 0,2).name]=[{name:"wrapper",func:void 0}],Tr.prototype.clone=function(){var t=new Tr(this.__wrapped__);return t.__actions__=Jl(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Jl(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Jl(this.__views__),t},Tr.prototype.reverse=function(){if(this.__filtered__){var t=new Tr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Tr.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=Pi(t),i=n<0,r=e?t.length:0,o=function(S,M,$){for(var G=-1,R=$.length;++G1&&void 0!==arguments[1]&&arguments[1],e={};if(!Array.isArray(t))throw new TypeError("Array expected");function i(l,c){(!Array.isArray(l)&&!Io(l)||n&&c.length>0)&&(e[ln(c)]=!0),Io(l)&&Object.keys(l).forEach(function(u){i(l[u],c.concat(u))})}for(var r=Math.min(t.length,1e4),o=0;on?t.slice(0,n):t}function noe(t){return Ze({},t)}function ioe(t){return Object.values(t)}function roe(t,n,e,i){var r=t.slice(0),o=r.splice(n,e);return r.splice.apply(r,[n+i,0].concat(si(o))),r}function kO(t,n){try{return n.parse(t)}catch{return n.parse(Yd(t))}}function ooe(t,n){try{return kO(t,n)}catch{return}}function Ik(t,n){t=t.replace(aoe,"");try{return n(t)}catch{}try{return n("["+t+"]")}catch{}try{return n("{"+t+"}")}catch{}throw new Error("Failed to parse partial JSON")}function soe(t){t=t.replace(aoe,"");try{return Yd(t)}catch{}try{var n=Yd("["+t+"]");return n.substring(1,n.length-1)}catch{}try{var e=Yd("{"+t+"}");return e.substring(1,e.length-1)}catch{}throw new Error("Failed to repair partial JSON")}var aoe=/,\s*$/;function Nk(t,n){var e=uoe.exec(n);if(e){var i=Ws(e[2]),r=function(f,p){for(var g=arguments.length>3&&void 0!==arguments[3]?arguments[3]:f.length,v=0,y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;y1&&void 0!==arguments[1]?arguments[1]:void 0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:JSON;return Qv(t)?t:{text:e.stringify(t.json,null,n)}}function loe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:JSON;return DO(t)?t:{json:n.parse(t.text)}}function Fk(t,n,e){return Zv(t,n,e).text}function coe(t,n){return function RUe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;if(Qv(t))return t.text.length;var i=0;return function r(o){if(Array.isArray(o)){if((i+=o.length-1+2)>n)return i;for(var s=0;sn)return i}else if(Io(o)){var a=Object.keys(o);i+=2+a.length+(a.length-1);for(var l=0;ln}var uoe=/(position|char) (\d+)/,$Ue=/line (\d+)/,BUe=/column (\d+)/;function hoe(t){return VUe.test(t)&&t.length>2}var VUe=/^[[{]\S/;function TO(t){var e=t.escapeUnicodeCharacters;return t.escapeControlCharacters?e?HUe:zUe:e?UUe:GUe}var HUe={escapeValue:function(t){return foe(goe(String(t)))},unescapeValue:function(t){return voe(poe(t))}},zUe={escapeValue:function(t){return goe(String(t))},unescapeValue:function(t){return voe(t)}},UUe={escapeValue:function(t){return foe(String(t))},unescapeValue:function(t){return poe(t)}},GUe={escapeValue:function(t){return String(t)},unescapeValue:function(t){return t}};function foe(t){return t.replace(/[^\x20-\x7F]/g,function(n){var e;return"\b"===n||"\f"===n||"\n"===n||"\r"===n||"\t"===n?n:"\\u"+("000"+(null===(e=n.codePointAt(0))||void 0===e?void 0:e.toString(16))).slice(-4)})}function poe(t){return t.replace(/\\u[a-fA-F0-9]{4}/g,function(n){try{var e=JSON.parse('"'+n+'"');return moe[e]||e}catch{return n}})}var moe={'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},WUe={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"};function goe(t){return t.replace(/["\b\f\n\r\t\\]/g,function(n){return moe[n]||n})}function voe(t){return t.replace(/\\["bfnrt\\]/g,function(n){return WUe[n]||n})}function jm(t){return"string"!=typeof t?String(t):t.endsWith("\n")?t+"\n":t}function yoe(t,n){return Pb(t,function(e){return e.nodeName.toUpperCase()===n.toUpperCase()})}function Pm(t,n,e){return Pb(t,function(i){return s=e,"function"==typeof(r=i).getAttribute&&r.getAttribute(n)===s;var r,s})}function Pb(t,n){return!!EO(t,n)}function EO(t,n){for(var e=t;e&&!n(e);)e=e.parentNode;return e||void 0}function boe(t){if(null!=t.firstChild){var n=document.createRange(),e=window.getSelection();n.setStart(t,1),n.collapse(!0),e?.removeAllRanges(),e?.addRange(n)}else t.focus()}function Ok(t,n,e){var i=e0(t);if(i){var r=i.document.activeElement?i.document.activeElement:null;r&&r.isContentEditable&&(r.textContent=e?n:r.textContent+n,boe(r))}}function e0(t){return t&&t.ownerDocument?t.ownerDocument.defaultView:null}function jk(t){var e=e0(t)?.document.activeElement;return!!e&&Pb(e,function(i){return i===t})}function _oe(t,n){return EO(t,function(e){return e.nodeName===n})}function AO(t){return Pm(t,"data-type","selectable-key")?ro.key:Pm(t,"data-type","selectable-value")?ro.value:Pm(t,"data-type","insert-selection-area-inside")?ro.inside:Pm(t,"data-type","insert-selection-area-after")?ro.after:ro.multi}function t0(t){return encodeURIComponent(ln(t))}function xoe(t){var e=EO(t,function(i){return!(null==i||!i.hasAttribute)&&i.hasAttribute("data-path")})?.getAttribute("data-path");return e?Xu(decodeURIComponent(e)):null}function tp(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"+",e=[];t.ctrlKey&&e.push("Ctrl"),t.metaKey&&e.push("Ctrl"),t.altKey&&e.push("Alt"),t.shiftKey&&e.push("Shift");var i=1===t.key.length?t.key.toUpperCase():t.key;return i in XUe||e.push(i),e.join(n)}var XUe={Ctrl:!0,Command:!0,Control:!0,Alt:!0,Option:!0,Shift:!0},MO=yN.window;function YUe(t){pi(t,"svelte-1r8q3m8",".jse-absolute-popup.svelte-1r8q3m8.svelte-1r8q3m8{position:relative;left:0;top:0;width:0;height:0;z-index:1001}.jse-absolute-popup.svelte-1r8q3m8 .jse-hidden-input.svelte-1r8q3m8{position:fixed;left:0;top:0;width:0;height:0;padding:0;margin:0;border:none;outline:none;overflow:hidden}.jse-absolute-popup.svelte-1r8q3m8 .jse-absolute-popup-content.svelte-1r8q3m8{position:absolute}")}function woe(t){var n,e,i,r,o,s,a=[t[0].props],l=t[0].component;function c(u){for(var d={},h=0;hwindow.innerHeight&&C>h,G="left"===v||_+u>window.innerWidth&&_>u;return{left:G?y.right-g:_+g,top:$?C-p:y.bottom+p,positionAbove:$,positionLeft:G}}if("number"==typeof n.left&&"number"==typeof n.top){var R=n.left,z=n.top,U=n.width,q=void 0===U?0:U,re=n.height,L=void 0===re?0:re;return{left:R,top:z,positionAbove:z+L>window.innerHeight&&z>L,positionLeft:R+q>window.innerWidth&&R>q}}throw new Error('Invalid config: pass either "left" and "top", or pass "anchor"')}(),r=i.left,o=i.top,a=i.positionLeft;return(i.positionAbove?"bottom: ".concat(e.top-o,"px;"):"top: ".concat(o-e.top,"px;"))+(a?"right: ".concat(e.left-r,"px;"):"left: ".concat(r-e.left,"px;"))}function QUe(t,n,e){var i,r,o=n.popup,s=n.closeAbsolutePopup;function a(l){o.options&&o.options.closeOnOuterClick&&!Pb(l.target,function(c){return c===i})&&s(o.id)}return Wc(function(){r&&r.focus()}),t.$$set=function(l){"popup"in l&&e(0,o=l.popup),"closeAbsolutePopup"in l&&e(6,s=l.closeAbsolutePopup)},[o,i,r,function(l){a(l)},function(l){"Escape"===tp(l)&&s(o.id)},function(l){a(l)},s,function(l){Vi[l?"unshift":"push"](function(){e(2,r=l)})},function(l){Vi[l?"unshift":"push"](function(){e(1,i=l)})}]}var ZUe=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,QUe,JUe,ys,{popup:0,closeAbsolutePopup:6},YUe),r}return Se(e)}();function koe(t,n,e){var i=t.slice();return i[6]=n[e],i}function Soe(t){var n,e;return n=new ZUe({props:{popup:t[6],closeAbsolutePopup:t[1]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};1&r&&(o.popup=i[6]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function eGe(t){for(var n,e,i=t[0],r=[],o=0;o0;){var i=n.match(iGe);if(!i)throw new SyntaxError('Cannot parse path: unexpected part "'.concat(n,'" at position ').concat(t.length-n.length));e.push(i[1]||i[2]||i[3]),n=n.substring(i[0].length)}var r;return e}var iGe=new RegExp(["^\\.([A-zA-Z$_][a-zA-Z$_0-9]*)","^\\[([0-9]+)]","^\\['(.*)']"].join("|"));function Lb(t){return{value:t,label:Hi(t)?"(whole item)":tu(Kl(t))}}function rh(t){return t.map(function(n){return NO.test(n)?"?.[".concat(n,"]"):IO.test(n)?"?.".concat(n):"?.[".concat(JSON.stringify(n),"]")}).join("")}var IO=/^[a-zA-Z$_][a-zA-Z$_\d]*$/,NO=/^\d+$/;function Rb(t,n){for(var e=new Set(n),i=t.replace(/ \(copy( \d+)?\)$/,""),r=t,o=1;e.has(r);){var s="copy"+(o>1?" "+o:"");r="".concat(i," (").concat(s,")"),o++}return r}function oh(t,n){return t.length>n?t.substring(0,n-3)+"...":t}var rGe={id:"javascript",name:"JavaScript",description:"\n

\n Enter a JavaScript function to filter, sort, or transform the data.\n

\n",createQuery:function(t,n){var e=n.filter,i=n.sort,r=n.projection,o=[" return data\n"];if(e&&e.path&&e.relation&&e.value){var s="item => item".concat(rh(e.path)),a=function FO(t){if(""===t)return"";var n=t.toLowerCase();if("null"===n)return null;if("true"===n)return!0;if("false"===n)return!1;if("undefined"!==n){var e=Number(t),i=parseFloat(t);return isNaN(e)||isNaN(i)?t:e}}(e.value),l="string"==typeof a?"'".concat(e.value,"'"):function HQ(t){return k9e.test(t)}(e.value)&&!Number.isSafeInteger(a)?"".concat(e.value,"n"):e.value;o.push(" .filter(".concat(s," ").concat(e.relation," ").concat(l,")\n"))}if(i&&i.path&&i.direction&&o.push("desc"===i.direction?" .slice()\n .sort((a, b) => {\n // sort descending\n"+" const valueA = a".concat(rh(i.path),"\n")+" const valueB = b".concat(rh(i.path),"\n")+" return valueA > valueB ? -1 : valueA < valueB ? 1 : 0\n })\n":" .slice()\n .sort((a, b) => {\n // sort ascending\n"+" const valueA = a".concat(rh(i.path),"\n")+" const valueB = b".concat(rh(i.path),"\n")+" return valueA > valueB ? 1 : valueA < valueB ? -1 : 0\n })\n"),r&&r.paths)if(r.paths.length>1){var c=r.paths.map(function(d){var h=d[d.length-1]||"item",f="item".concat(rh(d));return" ".concat(JSON.stringify(h),": ").concat(f)});o.push(" .map(item => ({\n".concat(c.join(",\n"),"})\n )\n"))}else{var u="item".concat(rh(r.paths[0]));o.push(" .map(item => ".concat(u,")\n"))}return"function query (data) {\n".concat(o.join(""),"}")},executeQuery:function(t,n){var e=new Function('"use strict";\n\n'+n+'\n\nif (typeof query !== "function") {\n throw new Error("Cannot execute query: expecting a function named \'query\' but is undefined")\n}\n\nreturn query;\n')()(t);return void 0!==e?e:null}},oGe={prefix:"far",iconName:"lightbulb",icon:[384,512,[128161],"f0eb","M281.2 248.9C295.6 228.3 304 203.2 304 176c0-70.7-57.3-128-128-128S48 105.3 48 176c0 27.2 8.4 52.3 22.8 72.9c3.7 5.3 8.1 11.3 12.8 17.7l0 0c12.9 17.7 28.3 38.9 39.8 59.8c10.4 19 15.7 38.8 18.3 57.5H93c-2.2-12-5.9-23.7-11.8-34.5c-9.9-18-22.2-34.9-34.5-51.8l0 0 0 0c-5.2-7.1-10.4-14.2-15.4-21.4C11.6 247.9 0 213.3 0 176C0 78.8 78.8 0 176 0s176 78.8 176 176c0 37.3-11.6 71.9-31.4 100.3c-5 7.2-10.2 14.3-15.4 21.4l0 0 0 0c-12.3 16.8-24.6 33.7-34.5 51.8c-5.9 10.8-9.6 22.5-11.8 34.5H210.4c2.6-18.7 7.9-38.6 18.3-57.5c11.5-20.9 26.9-42.1 39.8-59.8l0 0 0 0 0 0c4.7-6.4 9-12.4 12.7-17.7zM176 128c-26.5 0-48 21.5-48 48c0 8.8-7.2 16-16 16s-16-7.2-16-16c0-44.2 35.8-80 80-80c8.8 0 16 7.2 16 16s-7.2 16-16 16zm0 384c-44.2 0-80-35.8-80-80V416H256v16c0 44.2-35.8 80-80 80z"]},$b={prefix:"far",iconName:"square-check",icon:[448,512,[9745,9989,61510,"check-square"],"f14a","M211.8 339.8C200.9 350.7 183.1 350.7 172.2 339.8L108.2 275.8C97.27 264.9 97.27 247.1 108.2 236.2C119.1 225.3 136.9 225.3 147.8 236.2L192 280.4L300.2 172.2C311.1 161.3 328.9 161.3 339.8 172.2C350.7 183.1 350.7 200.9 339.8 211.8L211.8 339.8zM0 96C0 60.65 28.65 32 64 32H384C419.3 32 448 60.65 448 96V416C448 451.3 419.3 480 384 480H64C28.65 480 0 451.3 0 416V96zM48 96V416C48 424.8 55.16 432 64 432H384C392.8 432 400 424.8 400 416V96C400 87.16 392.8 80 384 80H64C55.16 80 48 87.16 48 96z"]},Bb={prefix:"far",iconName:"square",icon:[448,512,[9632,9723,9724,61590],"f0c8","M384 32C419.3 32 448 60.65 448 96V416C448 451.3 419.3 480 384 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H384zM384 80H64C55.16 80 48 87.16 48 96V416C48 424.8 55.16 432 64 432H384C392.8 432 400 424.8 400 416V96C400 87.16 392.8 80 384 80z"]},sGe={prefix:"far",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]};function aGe(t){for(var n,e=[t[0]],i={},r=0;r300},{anchor:h.target,closeOnOuterClick:!0,onClose:d,offsetTop:18,offsetLeft:-8,height:300})}},o,l,c]}var OGe=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,FGe,NGe,Ei,{path:4,value:0,readOnly:1,onPatch:5,focus:6},IGe),r}return Se(e)}();function Poe(t){for(var n=pO(t,function(a){return a.start}),e=[n[0]],i=0;i=e.start&&n0){var d=Rk(n,u);jO(l,d,function(g){o[c]=String(g),a(l[g])}),o.pop()}}}else if(Io(l)&&i(o)){r[ln(o)]=!0;var h=Object.keys(l);if(h.length>0){var f,p=Re(h);try{for(p.s();!(f=p.n()).done;){var m=f.value;o[c]=m,a(l[m])}}catch(g){p.e(g)}finally{p.f()}o.pop()}}}(s),Ze(Ze({},n),{},{expandedMap:r})}function Loe(t,n){var e=n0(t.expandedMap,n),i=n0(t.enforceStringMap,n),r=n0(t.visibleSectionsMap,n);return Ze(Ze({},t),{},{expandedMap:e,enforceStringMap:i,visibleSectionsMap:r})}function Roe(t,n,e){if(e){var i=Ze({},t.enforceStringMap);return i[n]=e,Ze(Ze({},t),{},{enforceStringMap:i})}if("boolean"==typeof t.enforceStringMap[n]){var r=Ze({},t.enforceStringMap);return delete r[n],Ze(Ze({},t),{},{enforceStringMap:r})}return t}function $oe(t,n,e){var i=Yu(t,e),r=e.reduce(function(o,s){return SQ(s)?Boe(i,o,s):DQ(s)?Voe(i,o,s):kN(s)?(u=(c=s).path,d=BO(a=i,(l=o).expandedMap),h=BO(a,l.enforceStringMap),f=BO(a,l.visibleSectionsMap),Mo(c.value)||oo(c.value)||delete d[u],oo(c.value)||delete f[u],(Mo(c.value)||oo(c.value))&&delete h[u],Ze(Ze({},l),{},{expandedMap:d,enforceStringMap:h,visibleSectionsMap:f})):SN(s)||Mv(s)?function(a,l,c){if(Mv(c)&&c.from===c.path)return l;var u=function(y){return c.path+y.substring(c.from.length)},d=$O(LO(l.expandedMap,c.from),u),h=$O(LO(l.enforceStringMap,c.from),u),f=$O(LO(l.visibleSectionsMap,c.from),u),p=l;Mv(c)&&(p=Voe(a,p,{op:"remove",path:c.from}));var m=RO((p=Boe(a,p,{op:"add",path:c.path,value:null})).expandedMap,d),g=RO(p.enforceStringMap,h),v=RO(p.visibleSectionsMap,f);return Ze(Ze({},l),{},{expandedMap:m,enforceStringMap:g,visibleSectionsMap:v})}(i,o,s):o;var a,l,c,u,d,h,f},n);return{json:i,documentState:r}}function Boe(t,n,e){var i=Ju(t,e.path),r=Xi(i),o=ln(r);if(oo(Sn(t,r))){var s=Ws(Ln(i)),a=r0(n.expandedMap,r,s,1),l=r0(n.enforceStringMap,r,s,1),c=r0(n.visibleSectionsMap,r,s,1);return c=Hoe(c,o,function(u){return zoe(u,s,1)}),Ze(Ze({},n),{},{expandedMap:a,enforceStringMap:l,visibleSectionsMap:c})}return n}function Voe(t,n,e){var i=Ju(t,e.path),r=Xi(i),o=ln(r),s=Sn(t,r),a=n.expandedMap,l=n.enforceStringMap,c=n.visibleSectionsMap;if(a=n0(a,i),l=n0(l,i),c=n0(c,i),oo(s)){var u=Ws(Ln(i));a=r0(a,r,u,-1),l=r0(l,r,u,-1),c=Hoe(c=r0(c,r,u,-1),o,function(d){return zoe(d,u,-1)})}return Ze(Ze({},n),{},{expandedMap:a,enforceStringMap:l,visibleSectionsMap:c})}function n0(t,n){var e={},i=ln(n);return Object.keys(t).forEach(function(r){Iv(r,i)||(e[r]=t[r])}),e}function LO(t,n){var e={};return Object.keys(t).forEach(function(i){Iv(i,n)&&(e[i]=t[i])}),e}function RO(t,n){return Ze(Ze({},t),n)}function $O(t,n){var e={};return Object.keys(t).forEach(function(i){var r=n(i);e[r]=t[i]}),e}function r0(t,n,e,i){for(var r=n.length,o=ln(n),s=[],a=0,l=Object.keys(t);a=e&&(u[r]=String(d+i),s.push({oldPointer:c,newPointer:ln(u),value:t[c]}))}}if(0===s.length)return t;var h=Ze({},t);return s.forEach(function(f){delete h[f.oldPointer]}),s.forEach(function(f){h[f.newPointer]=f.value}),h}function BO(t,n){var e={};return Object.keys(n).filter(function(i){return Xc(t,Ju(t,i))}).forEach(function(i){e[i]=n[i]}),e}function Hoe(t,n,e){var i=t[n];if(n in t){var r=e(i);if(!or(i,r)){var o=Ze({},t);return void 0===r?delete o[n]:o[n]=r,o}}return t}function zoe(t,n,e){return t.map(function(i){return{start:i.start>n?i.start+e:i.start,end:i.end>=n?i.end+e:i.end}})}function lf(t,n,e,i){var o,r=n?n[e]:void 0;return"boolean"==typeof r?r:"string"==typeof(o=t)&&"string"!=typeof Nv(o,i)}function Vb(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t.indexOf(n);return-1!==i?t.slice(e?i:i+1):[]}function VO(t,n){var e=[];return function i(r,o){e.push(o);var s=ln(o);if(r&&!0===n.expandedMap[s]){if(oo(r)){var a=Rk(n,s);jO(r,a,function(l){i(r[l],o.concat(String(l)))})}Mo(r)&&Object.keys(r).forEach(function(l){i(r[l],o.concat(l))})}}(t,[]),e}function Uoe(t,n){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=[];return function r(o,s){i.push({path:s,type:Gu.value});var a=ln(s);if(o&&!0===n.expandedMap[a]){if(e&&i.push({path:s,type:Gu.inside}),oo(o)){var l=Rk(n,a);jO(o,l,function(c){var u=s.concat(String(c));r(o[c],u),e&&i.push({path:u,type:Gu.after})})}Mo(o)&&Object.keys(o).forEach(function(c){var u=s.concat(c);i.push({path:u,type:Gu.key}),r(o[c],u),e&&i.push({path:u,type:Gu.after})})}}(t,[]),i}function HO(t,n,e){var i=VO(t,n),r=i.map(ln).indexOf(ln(e));return-1!==r&&r0;){if(!0===t.pointersMap[ln(i)])return!0;i.pop()}return xs(t)?e===ro.key&&or(t.focusPath,n):!(!Yi(t)||!(e===ro.value&&or(t.focusPath,n)||l0(n,t.focusPath)&&n.length>t.focusPath.length&&(e===ro.key||e===ro.value||e===ro.multi)))}function qoe(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n.selection;if(!r)return null;var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3]||!Nr(r)?r.focusPath:sa(r.paths),s=function LGe(t,n,e){var i=VO(t,n),r=i.map(ln),o=ln(e),s=r.indexOf(o);return-1!==s&&s>0?i[s-1]:null}(t,n,o);if(null===s)return null;var a=s,l=s;if(e)return Zu(r)||Xs(r)?Os(t,r.anchorPath,r.anchorPath):Os(t,r.anchorPath,l);if(xs(r)){var u=Sn(t,Xi(s));return Array.isArray(u)||Hi(s)?mr(s,!1):iu(s,!1)}return Yi(r)?mr(s,!1):Zu(r)||Xs(r)?Os(t,o,o):Os(t,a,l)}function Xoe(t,n,e){var i=n.selection;if(!i)return{caret:null,previous:null,next:null};var r=Uoe(t,n,e),o=r.findIndex(function(s){return or(s.path,i.focusPath)&&String(s.type)===String(i.type)});return{caret:-1!==o?r[o]:null,previous:-1!==o&&o>0?r[o-1]:null,next:-1!==o&&oe[i].length;)i++;var r=e[i];return 0===r.length||Array.isArray(Sn(t,Xi(r)))?mr(r,!1):iu(r,!1)}function a0(t,n){if(1===n.length){var e=sa(n);if("replace"===e.op||"move"===e.op)return mr(Ju(t,e.path),!1)}if(!Hi(n)&&n.every(function(s){return"move"===s.op})){var i=sa(n),r=n.slice(1);if((SN(i)||Mv(i))&&i.from!==i.path&&r.every(function(s){return(SN(s)||Mv(s))&&s.from===s.path}))return iu(Ju(t,i.path),!1)}var o=n.filter(function(s){return"test"!==s.op&&"remove"!==s.op&&("move"!==s.op||s.from!==s.path)&&"string"==typeof s.path}).map(function(s){return Ju(t,s.path)});if(!Hi(o))return{type:ro.multi,paths:o,anchorPath:sa(o),focusPath:Ln(o),pointersMap:Yoe(o)}}function Yoe(t){var n={};return t.forEach(function(e){n[ln(e)]=!0}),n}function Bk(t){return ql({},ln(t),!0)}function zb(t){return void 0!==t&&(xs(t)||Yi(t)||Nr(t)&&1===t.paths.length)}function Joe(t,n){return zb(n)&&Ho(Sn(t,n.focusPath))?n.focusPath:Xi(n.focusPath)}function l0(t,n){if(t.length0?0:-1,e=t.items[n],i=t.items.map(function(r,o){return Ze(Ze({},r),{},{active:o===n})});return Ze(Ze({},t),{},{items:i,itemsMap:qv(i,function(r){return ln(r.path)}),activeItem:e,activeIndex:n})}function WGe(t){var n=t.activeIndex>0?t.activeIndex-1:t.items.length-1,e=t.items[n],i=t.items.map(function(r,o){return Ze(Ze({},r),{},{active:o===n})});return Ze(Ze({},t),{},{items:i,itemsMap:qv(i,function(r){return ln(r.path)}),activeItem:e,activeIndex:n})}function ase(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,i=[],r=[];function o(l){i.length=e)return;r.pop()}else if(Mo(c)){var h=Object.keys(c),f=r.length;r.push("");for(var p=0,m=h;p=e)return}r.pop()}else lse(String(c),l,r,Wu.value,o)}(t.toLowerCase(),n),i}function lse(t,n,e,i,r){var o=t.toLowerCase(),s=0,a=-1,l=-1;do{-1!==(l=o.indexOf(n,a))&&(a=l+n.length,r({path:e.slice(0),field:i,fieldIndex:s,start:l,end:a}),s++)}while(-1!==l)}function WO(t,n,e,i){return t.substring(0,e)+n+t.substring(i)}function cse(t,n,e){var i=t;return Nb(e,function(r){i=WO(i,n,r.start,r.end)}),i}function qGe(t,n,e,i,r){var o=i.field,s=i.path,a=i.start,l=i.end;if(o===Wu.key){var c=Xi(s),u=Sn(t,c),d=Ln(s),h=Gb(c,Object.keys(u),d,WO(d,e,a,l));return{newSelection:a0(t,h),operations:h}}if(o===Wu.value){var f=Sn(t,s);if(void 0===f)throw new Error("Cannot replace: path not found ".concat(ln(s)));var p="string"==typeof f?f:String(f),m=ln(s),g=lf(f,n.enforceStringMap,m,r),v=WO(p,e,a,l),y=[{op:"replace",path:ln(s),value:g?v:Nv(v,r)}];return{newSelection:a0(t,y),operations:y}}throw new Error("Cannot replace: unknown type of search result field ".concat(o))}function XGe(t,n,e,i,r){for(var o=ase(e,t,1/0),s=[],a=0;an.floating[o]&&(s=Xk(s)),{main:s,cross:Xk(s)}}var OWe={start:"end",end:"start"};function e4(t){return t.replace(/start|end/g,function(n){return OWe[n]})}var jWe=function(t){return void 0===t&&(t={}),{name:"flip",options:t,fn:function(n){return Zi(vn().mark(function e(){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,C,S,M,$,G,R,z,U,q,re,L,X,he,E,N,F,Y,V,oe;return vn().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return r=n.placement,o=n.middlewareData,s=n.rects,a=n.initialPlacement,l=n.platform,c=n.elements,d=(u=t).mainAxis,h=void 0===d||d,p=void 0===(f=u.crossAxis)||f,m=u.fallbackPlacements,v=void 0===(g=u.fallbackStrategy)?"bestFit":g,_=void 0===(y=u.fallbackAxisSideDirection)?"none":y,S=void 0===(C=u.flipAlignment)||C,M=XK(u,p7e),$=Bm(r),G=Bm(a)===a,fe.next=23,null==l.isRTL?void 0:l.isRTL(c.floating);case 23:return R=fe.sent,z=m||(G||!S?[Xk(a)]:(void 0,xe=Xk(Ne=a),[e4(Ne),xe,e4(xe)])),m||"none"===_||z.push.apply(z,si(function(Ne,xe,tt,ze){var ot=Wk(Ne),B=function(ne,ie,Ie){var Ye=["left","right"],Le=["right","left"];switch(ne){case"top":case"bottom":return Ie?ie?Le:Ye:ie?Ye:Le;case"left":case"right":return ie?["top","bottom"]:["bottom","top"];default:return[]}}(Bm(Ne),"start"===tt,ze);return ot&&(B=B.map(function(ne){return ne+"-"+ot}),xe&&(B=B.concat(B.map(e4)))),B}(a,S,_,R))),U=[a].concat(si(z)),fe.next=29,Sse(n,M);case 29:if(q=fe.sent,re=[],L=(null==(i=o.flip)?void 0:i.overflows)||[],h&&re.push(q[$]),p&&(X=FWe(r,s,R),re.push(q[X.main],q[X.cross])),L=[].concat(si(L),[{placement:r,overflows:re}]),re.every(function(Ne){return Ne<=0})){fe.next=48;break}if(N=((null==(he=o.flip)?void 0:he.index)||0)+1,!(F=U[N])){fe.next=37;break}return fe.abrupt("return",{data:{index:N,overflows:L},reset:{placement:F}});case 37:if(Y=null==(E=L.filter(function(Ne){return Ne.overflows[0]<=0}).sort(function(Ne,xe){return Ne.overflows[1]-xe.overflows[1]})[0])?void 0:E.placement,Y){fe.next=46;break}fe.t0=v,fe.next="bestFit"===fe.t0?42:"initialPlacement"===fe.t0?45:46;break;case 42:return oe=null==(V=L.map(function(Ne){return[Ne.placement,Ne.overflows.filter(function(xe){return xe>0}).reduce(function(xe,tt){return xe+tt},0)]}).sort(function(Ne,xe){return Ne[1]-xe[1]})[0])?void 0:V[0],oe&&(Y=oe),fe.abrupt("break",46);case 45:Y=a;case 46:if(r===Y){fe.next=48;break}return fe.abrupt("return",{reset:{placement:Y}});case 48:return fe.abrupt("return",{});case 49:case"end":return fe.stop()}var Ne,xe},e)}))()}}},PWe=function(t){return void 0===t&&(t=0),{name:"offset",options:t,fn:function(n){return Zi(vn().mark(function e(){var i,r,o;return vn().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return i=n.x,r=n.y,s.next=4,function(){var a=Zi(vn().mark(function l(c,u){var d,h,f,p,m,g,v,y,_,C,S,M,$,G;return vn().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return d=c.placement,h=c.platform,f=c.elements,R.next=5,null==h.isRTL?void 0:h.isRTL(f.floating);case 5:return p=R.sent,m=Bm(d),g=Wk(d),v="x"===qk(d),y=["left","top"].includes(m)?-1:1,_=p&&v?-1:1,C="function"==typeof u?u(c):u,S="number"==typeof C?{mainAxis:C,crossAxis:0,alignmentAxis:null}:Ze({mainAxis:0,crossAxis:0,alignmentAxis:null},C),M=S.mainAxis,$=S.crossAxis,G=S.alignmentAxis,R.abrupt("return",(g&&"number"==typeof G&&($="end"===g?-1*G:G),v?{x:$*_,y:M*y}:{x:M*y,y:$*_}));case 14:case"end":return R.stop()}},l)}));return function(l,c){return a.apply(this,arguments)}}()(n,t);case 4:return s.abrupt("return",{x:i+(o=s.sent).x,y:r+o.y,data:o});case 6:case"end":return s.stop()}},e)}))()}}};function LWe(t){return"x"===t?"y":"x"}var RWe=function(t){return void 0===t&&(t={}),{name:"shift",options:t,fn:function(n){return Zi(vn().mark(function e(){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,C,$;return vn().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return r=n.x,o=n.y,s=n.placement,l=(a=t).mainAxis,c=void 0===l||l,d=void 0!==(u=a.crossAxis)&&u,f=void 0===(h=a.limiter)?{fn:function(R){return{x:R.x,y:R.y}}}:h,p=XK(a,m7e),m={x:r,y:o},G.next=14,Sse(n,p);case 14:return g=G.sent,v=qk(Bm(s)),y=LWe(v),_=m[v],C=m[y],c&&(_=Dse(_+g["y"===v?"top":"left"],_,_-g["y"===v?"bottom":"right"])),d&&(C=Dse(C+g["y"===y?"top":"left"],C,C-g["y"===y?"bottom":"right"])),$=f.fn(Ze(Ze({},n),{},(ql(i={},v,_),ql(i,y,C),i))),G.abrupt("return",Ze(Ze({},$),{},{data:{x:$.x-r,y:$.y-o}}));case 22:case"end":return G.stop()}},e)}))()}}};function kc(t){var n;return(null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function lh(t){return kc(t).getComputedStyle(t)}var t4,Tse=Math.min,qb=Math.max,Yk=Math.round;function Ese(t){var n=lh(t),e=parseFloat(n.width),i=parseFloat(n.height),r=t.offsetWidth,o=t.offsetHeight,s=Yk(e)!==r||Yk(i)!==o;return s&&(e=r,i=o),{width:e,height:i,fallback:s}}function ap(t){return Mse(t)?(t.nodeName||"").toLowerCase():""}function Ase(){if(t4)return t4;var t=navigator.userAgentData;return t&&Array.isArray(t.brands)?t4=t.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function ch(t){return t instanceof kc(t).HTMLElement}function td(t){return t instanceof kc(t).Element}function Mse(t){return t instanceof kc(t).Node}function Ise(t){return typeof ShadowRoot<"u"&&(t instanceof kc(t).ShadowRoot||t instanceof ShadowRoot)}function Jk(t){var n=lh(t),o=n.display;return/auto|scroll|overlay|hidden|clip/.test(n.overflow+n.overflowY+n.overflowX)&&!["inline","contents"].includes(o)}function $We(t){return["table","td","th"].includes(ap(t))}function n4(t){var n=/firefox/i.test(Ase()),e=lh(t),i=e.backdropFilter||e.WebkitBackdropFilter;return"none"!==e.transform||"none"!==e.perspective||!!i&&"none"!==i||n&&"filter"===e.willChange||n&&!!e.filter&&"none"!==e.filter||["transform","perspective"].some(function(r){return e.willChange.includes(r)})||["paint","layout","strict","content"].some(function(r){var o=e.contain;return null!=o&&o.includes(r)})}function i4(){return/^((?!chrome|android).)*safari/i.test(Ase())}function r4(t){return["html","body","#document"].includes(ap(t))}function Nse(t){return td(t)?t:t.contextElement}var Fse={x:1,y:1};function m0(t){var n=Nse(t);if(!ch(n))return Fse;var e=n.getBoundingClientRect(),i=Ese(n),r=i.width,o=i.height,s=i.fallback,a=(s?Yk(e.width):e.width)/r,l=(s?Yk(e.height):e.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}function Vm(t,n,e,i){var r,o;void 0===n&&(n=!1),void 0===e&&(e=!1);var s=t.getBoundingClientRect(),a=Nse(t),l=Fse;n&&(i?td(i)&&(l=m0(i)):l=m0(t));var c=a?kc(a):window,u=i4()&&e,d=(s.left+(u&&(null==(r=c.visualViewport)?void 0:r.offsetLeft)||0))/l.x,h=(s.top+(u&&(null==(o=c.visualViewport)?void 0:o.offsetTop)||0))/l.y,f=s.width/l.x,p=s.height/l.y;if(a)for(var m=kc(a),g=i&&td(i)?kc(i):i,v=m.frameElement;v&&i&&g!==m;){var y=m0(v),_=v.getBoundingClientRect(),C=getComputedStyle(v);_.x+=(v.clientLeft+parseFloat(C.paddingLeft))*y.x,_.y+=(v.clientTop+parseFloat(C.paddingTop))*y.y,d*=y.x,h*=y.y,f*=y.x,p*=y.y,d+=_.x,h+=_.y,v=kc(v).frameElement}return{width:f,height:p,top:h,right:d+f,bottom:h+p,left:d,x:d,y:h}}function lp(t){return((Mse(t)?t.ownerDocument:t.document)||window.document).documentElement}function Kk(t){return td(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ose(t){return Vm(lp(t)).left+Kk(t).scrollLeft}function Xb(t){if("html"===ap(t))return t;var n=t.assignedSlot||t.parentNode||Ise(t)&&t.host||lp(t);return Ise(n)?n.host:n}function jse(t){var n=Xb(t);return r4(n)?n.ownerDocument.body:ch(n)&&Jk(n)?n:jse(n)}function Yb(t,n){var e;void 0===n&&(n=[]);var i=jse(t),r=i===(null==(e=t.ownerDocument)?void 0:e.body),o=kc(i);return r?n.concat(o,o.visualViewport||[],Jk(i)?i:[]):n.concat(i,Yb(i))}function Pse(t,n,e){var i,l,c,u,d,h,f,p,m;if("viewport"===n)i=function(l,c){var u=kc(l),d=lp(l),h=u.visualViewport,f=d.clientWidth,p=d.clientHeight,m=0,g=0;if(h){f=h.width,p=h.height;var v=i4();(!v||v&&"fixed"===c)&&(m=h.offsetLeft,g=h.offsetTop)}return{width:f,height:p,x:m,y:g}}(t,e);else if("document"===n)l=lp(t),c=lp(l),u=Kk(l),h=qb(c.scrollWidth,c.clientWidth,(d=l.ownerDocument.body).scrollWidth,d.clientWidth),f=qb(c.scrollHeight,c.clientHeight,d.scrollHeight,d.clientHeight),p=-u.scrollLeft+Ose(l),m=-u.scrollTop,"rtl"===lh(d).direction&&(p+=qb(c.clientWidth,d.clientWidth)-h),i={width:h,height:f,x:p,y:m};else if(td(n))i=function(l,c){var u=Vm(l,!0,"fixed"===c),d=u.top+l.clientTop,h=u.left+l.clientLeft,f=ch(l)?m0(l):{x:1,y:1};return{width:l.clientWidth*f.x,height:l.clientHeight*f.y,x:h*f.x,y:d*f.y}}(n,e);else{var r=Ze({},n);if(i4()){var o,s,a=kc(t);r.x-=(null==(o=a.visualViewport)?void 0:o.offsetLeft)||0,r.y-=(null==(s=a.visualViewport)?void 0:s.offsetTop)||0}i=r}return QO(i)}function Lse(t,n){return ch(t)&&"fixed"!==lh(t).position?n?n(t):t.offsetParent:null}function Rse(t,n){for(var e=kc(t),i=Lse(t,n);i&&$We(i)&&"static"===lh(i).position;)i=Lse(i,n);return i&&("html"===ap(i)||"body"===ap(i)&&"static"===lh(i).position&&!n4(i))?e:i||function(r){for(var o=Xb(r);ch(o)&&!r4(o);){if(n4(o))return o;o=Xb(o)}return null}(t)||e}function BWe(t,n,e){var i=ch(n),r=lp(n),o=Vm(t,!0,"fixed"===e,n),s={scrollLeft:0,scrollTop:0},a={x:0,y:0};if(i||!i&&"fixed"!==e)if(("body"!==ap(n)||Jk(r))&&(s=Kk(n)),ch(n)){var l=Vm(n,!0);a.x=l.x+n.clientLeft,a.y=l.y+n.clientTop}else r&&(a.x=Ose(r));return{x:o.left+s.scrollLeft-a.x,y:o.top+s.scrollTop-a.y,width:o.width,height:o.height}}var VWe={getClippingRect:function(t){var n=t.element,e=t.boundary,i=t.rootBoundary,r=t.strategy,o="clippingAncestors"===e?function(c,u){var d=u.get(c);if(d)return d;for(var h=Yb(c).filter(function(y){return td(y)&&"body"!==ap(y)}),f=null,p="fixed"===lh(c).position,m=p?Xb(c):c;td(m)&&!r4(m);){var g=lh(m),v=n4(m);"fixed"===g.position?f=null:(p?v||f:v||"static"!==g.position||!f||!["absolute","fixed"].includes(f.position))?f=g:h=h.filter(function(y){return y!==m}),m=Xb(m)}return u.set(c,h),h}(n,this._c):[].concat(e),s=[].concat(si(o),[i]),l=s.reduce(function(c,u){var d=Pse(n,u,r);return c.top=qb(d.top,c.top),c.right=Tse(d.right,c.right),c.bottom=Tse(d.bottom,c.bottom),c.left=qb(d.left,c.left),c},Pse(n,s[0],r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){var n=t.rect,e=t.offsetParent,i=t.strategy,r=ch(e),o=lp(e);if(e===o)return n;var s={scrollLeft:0,scrollTop:0},a={x:1,y:1},l={x:0,y:0};if((r||!r&&"fixed"!==i)&&(("body"!==ap(e)||Jk(o))&&(s=Kk(e)),ch(e))){var c=Vm(e);a=m0(e),l.x=c.x+e.clientLeft,l.y=c.y+e.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-s.scrollLeft*a.x+l.x,y:n.y*a.y-s.scrollTop*a.y+l.y}},isElement:td,getDimensions:function(t){return ch(t)?Ese(t):t.getBoundingClientRect()},getOffsetParent:Rse,getDocumentElement:lp,getScale:m0,getElementRects:function(t){var n=this;return Zi(vn().mark(function e(){var i,r,o,s,a;return vn().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return i=t.reference,r=t.floating,o=t.strategy,s=n.getOffsetParent||Rse,a=n.getDimensions,l.t0=BWe,l.t1=i,l.next=6,s(r);case 6:return l.t2=l.sent,l.t3=o,l.t4=(0,l.t0)(l.t1,l.t2,l.t3),l.t5=Ze,l.t6={x:0,y:0},l.next=13,a(r);case 13:return l.t7=l.sent,l.t8=(0,l.t5)(l.t6,l.t7),l.abrupt("return",{reference:l.t4,floating:l.t8});case 16:case"end":return l.stop()}},e)}))()},getClientRects:function(t){return Array.from(t.getClientRects())},isRTL:function(t){return"rtl"===lh(t).direction}};function UWe(t){var e=t.filterText,i=t.items,r=t.multiple,o=t.value,s=t.itemId,a=t.groupBy,l=t.filterSelectedItems,c=t.itemFilter,u=t.convertStringItemsToObjects,d=t.filterGroupedItems,h=t.label;if(i&&t.loadOptions)return i;if(!i)return[];i&&i.length>0&&"object"!==bn(i[0])&&(i=u(i));var f=i.filter(function(p){var m=c(p[h],e,p);return m&&r&&null!=o&&o.length&&(m=!o.some(function(g){return!!l&&g[s]===p[s]})),m});return a&&(f=d(f)),f}function GWe(t){return o4.apply(this,arguments)}function o4(){return o4=Zi(vn().mark(function t(n){var e,i,r,o,s;return vn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return e=n.dispatch,i=n.loadOptions,r=n.convertStringItemsToObjects,o=n.filterText,a.next=3,i(o).catch(function(l){console.warn("svelte-select loadOptions error :>> ",l),e("error",{type:"loadOptions",details:l})});case 3:if(!(s=a.sent)||s.cancelled){a.next=7;break}return s?(s&&s.length>0&&"object"!==bn(s[0])&&(s=r(s)),e("loaded",{items:s})):s=[],a.abrupt("return",{filteredItems:s,loading:!1,focused:!0,listOpen:!0});case 7:case"end":return a.stop()}},t)})),o4.apply(this,arguments)}function WWe(t){pi(t,"svelte-qbd276","svg.svelte-qbd276{width:var(--chevron-icon-width, 20px);height:var(--chevron-icon-width, 20px);color:var(--chevron-icon-colour, currentColor)}")}function qWe(t){var n,e;return{c:function(){n=Wd("svg"),P(e=Wd("path"),"fill","currentColor"),P(e,"d","M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747\n 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0\n 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502\n 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0\n 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"),P(n,"width","100%"),P(n,"height","100%"),P(n,"viewBox","0 0 20 20"),P(n,"focusable","false"),P(n,"aria-hidden","true"),P(n,"class","svelte-qbd276")},m:function(i,r){Pe(i,n,r),de(n,e)},p:Lt,i:Lt,o:Lt,d:function(i){i&&je(n)}}}var XWe=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,null,qWe,ys,{},WWe),r}return Se(e)}();function YWe(t){pi(t,"svelte-whdbu1","svg.svelte-whdbu1{width:var(--clear-icon-width, 20px);height:var(--clear-icon-width, 20px);color:var(--clear-icon-color, currentColor)}")}function JWe(t){var n,e;return{c:function(){n=Wd("svg"),P(e=Wd("path"),"fill","currentColor"),P(e,"d","M34.923,37.251L24,26.328L13.077,37.251L9.436,33.61l10.923-10.923L9.436,11.765l3.641-3.641L24,19.047L34.923,8.124\n l3.641,3.641L27.641,22.688L38.564,33.61L34.923,37.251z"),P(n,"width","100%"),P(n,"height","100%"),P(n,"viewBox","-2 -2 50 50"),P(n,"focusable","false"),P(n,"aria-hidden","true"),P(n,"role","presentation"),P(n,"class","svelte-whdbu1")},m:function(i,r){Pe(i,n,r),de(n,e)},p:Lt,i:Lt,o:Lt,d:function(i){i&&je(n)}}}var Qk=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,null,JWe,ys,{},YWe),r}return Se(e)}();function KWe(t){pi(t,"svelte-1p3nqvd",".loading.svelte-1p3nqvd{width:var(--spinner-width, 20px);height:var(--spinner-height, 20px);color:var(--spinner-color, var(--icons-color));animation:svelte-1p3nqvd-rotate 0.75s linear infinite;transform-origin:center center;transform:none}.circle_path.svelte-1p3nqvd{stroke-dasharray:90;stroke-linecap:round}@keyframes svelte-1p3nqvd-rotate{100%{transform:rotate(360deg)}}")}function QWe(t){var n,e;return{c:function(){n=Wd("svg"),P(e=Wd("circle"),"class","circle_path svelte-1p3nqvd"),P(e,"cx","50"),P(e,"cy","50"),P(e,"r","20"),P(e,"fill","none"),P(e,"stroke","currentColor"),P(e,"stroke-width","5"),P(e,"stroke-miterlimit","10"),P(n,"class","loading svelte-1p3nqvd"),P(n,"viewBox","25 25 50 50")},m:function(i,r){Pe(i,n,r),de(n,e)},p:Lt,i:Lt,o:Lt,d:function(i){i&&je(n)}}}var ZWe=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,null,QWe,ys,{},KWe),r}return Se(e)}();function eqe(t){pi(t,"svelte-tyxmms",".svelte-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{--borderRadius:var(--border-radius);--clearSelectColor:var(--clear-select-color);--clearSelectWidth:var(--clear-select-width);--disabledBackground:var(--disabled-background);--disabledBorderColor:var(--disabled-border-color);--disabledColor:var(--disabled-color);--disabledPlaceholderColor:var(--disabled-placeholder-color);--disabledPlaceholderOpacity:var(--disabled-placeholder-opacity);--errorBackground:var(--error-background);--errorBorder:var(--error-border);--groupItemPaddingLeft:var(--group-item-padding-left);--groupTitleColor:var(--group-title-color);--groupTitleFontSize:var(--group-title-font-size);--groupTitleFontWeight:var(--group-title-font-weight);--groupTitlePadding:var(--group-title-padding);--groupTitleTextTransform:var(--group-title-text-transform);--indicatorColor:var(--chevron-color);--indicatorHeight:var(--chevron-height);--indicatorWidth:var(--chevron-width);--inputColor:var(--input-color);--inputLeft:var(--input-left);--inputLetterSpacing:var(--input-letter-spacing);--inputMargin:var(--input-margin);--inputPadding:var(--input-padding);--itemActiveBackground:var(--item-active-background);--itemColor:var(--item-color);--itemFirstBorderRadius:var(--item-first-border-radius);--itemHoverBG:var(--item-hover-bg);--itemHoverColor:var(--item-hover-color);--itemIsActiveBG:var(--item-is-active-bg);--itemIsActiveColor:var(--item-is-active-color);--itemIsNotSelectableColor:var(--item-is-not-selectable-color);--itemPadding:var(--item-padding);--listBackground:var(--list-background);--listBorder:var(--list-border);--listBorderRadius:var(--list-border-radius);--listEmptyColor:var(--list-empty-color);--listEmptyPadding:var(--list-empty-padding);--listEmptyTextAlign:var(--list-empty-text-align);--listMaxHeight:var(--list-max-height);--listPosition:var(--list-position);--listShadow:var(--list-shadow);--listZIndex:var(--list-z-index);--multiItemBG:var(--multi-item-bg);--multiItemBorderRadius:var(--multi-item-border-radius);--multiItemDisabledHoverBg:var(--multi-item-disabled-hover-bg);--multiItemDisabledHoverColor:var(--multi-item-disabled-hover-color);--multiItemHeight:var(--multi-item-height);--multiItemMargin:var(--multi-item-margin);--multiItemPadding:var(--multi-item-padding);--multiSelectInputMargin:var(--multi-select-input-margin);--multiSelectInputPadding:var(--multi-select-input-padding);--multiSelectPadding:var(--multi-select-padding);--placeholderColor:var(--placeholder-color);--placeholderOpacity:var(--placeholder-opacity);--selectedItemPadding:var(--selected-item-padding);--spinnerColor:var(--spinner-color);--spinnerHeight:var(--spinner-height);--spinnerWidth:var(--spinner-width);--internal-padding:0 0 0 16px;border:var(--border, 1px solid #d8dbdf);border-radius:var(--border-radius, 6px);min-height:var(--height, 42px);position:relative;display:flex;align-items:stretch;padding:var(--padding, var(--internal-padding));background:var(--background, #fff);margin:var(--margin, 0);width:var(--width, 100%);font-size:var(--font-size, 16px)}.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{box-sizing:var(--box-sizing, border-box)}.svelte-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:hover{border:var(--border-hover, 1px solid #b2b8bf)}.value-container.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;flex:1 1 0%;flex-wrap:wrap;align-items:center;gap:5px 10px;padding:5px 0;position:relative;overflow:hidden;align-self:stretch}.prepend.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.indicators.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;flex-shrink:0;align-items:center}input.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{position:absolute;cursor:default;border:none;color:var(--input-color, var(--item-color));padding:var(--input-padding, 0);letter-spacing:var(--input-letter-spacing, inherit);margin:var(--input-margin, 0);min-width:10px;top:0;right:0;bottom:0;left:0;background:transparent;font-size:var(--font-size, 16px)}.svelte-tyxmms:not(.multi)>.value-container.svelte-tyxmms>input.svelte-tyxmms{width:100%;height:100%}input.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms::placeholder{color:var(--placeholder-color, #78848f);opacity:var(--placeholder-opacity, 1)}input.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:focus{outline:none}.svelte-select.focused.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{border:var(--border-focused, 1px solid #006fe8);border-radius:var(--border-radius-focused, var(--border-radius, 6px))}.disabled.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{background:var(--disabled-background, #ebedef);border-color:var(--disabled-border-color, #ebedef);color:var(--disabled-color, #c1c6cc)}.disabled.svelte-tyxmms input.svelte-tyxmms.svelte-tyxmms::placeholder{color:var(--disabled-placeholder-color, #c1c6cc);opacity:var(--disabled-placeholder-opacity, 1)}.selected-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{position:relative;overflow:var(--selected-item-overflow, hidden);padding:var(--selected-item-padding, 0 20px 0 0);text-overflow:ellipsis;white-space:nowrap;color:var(--selected-item-color, inherit);font-size:var(--font-size, 16px)}.multi.svelte-tyxmms .selected-item.svelte-tyxmms.svelte-tyxmms{position:absolute;line-height:var(--height, 42px);height:var(--height, 42px)}.selected-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:focus{outline:none}.hide-selected-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{opacity:0}.icon.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;align-items:center;justify-content:center}.clear-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{all:unset;display:flex;align-items:center;justify-content:center;width:var(--clear-select-width, 40px);height:var(--clear-select-height, 100%);color:var(--clear-select-color, var(--icons-color));margin:var(--clear-select-margin, 0);pointer-events:all;flex-shrink:0}.clear-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:focus{outline:var(--clear-select-focus-outline, 1px solid #006fe8)}.loading.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{width:var(--loading-width, 40px);height:var(--loading-height);color:var(--loading-color, var(--icons-color));margin:var(--loading--margin, 0);flex-shrink:0}.chevron.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{width:var(--chevron-width, 40px);height:var(--chevron-height, 40px);background:var(--chevron-background, transparent);pointer-events:var(--chevron-pointer-events, none);color:var(--chevron-color, var(--icons-color));border:var(--chevron-border, 0 0 0 1px solid #d8dbdf);flex-shrink:0}.multi.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{padding:var(--multi-select-padding, var(--internal-padding))}.multi.svelte-tyxmms input.svelte-tyxmms.svelte-tyxmms{padding:var(--multi-select-input-padding, 0);position:relative;margin:var(--multi-select-input-margin, 5px 0);flex:1 1 40px}.svelte-select.error.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{border:var(--error-border, 1px solid #ff2d55);background:var(--error-background, #fff)}.a11y-text.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{z-index:9999;border:0px;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0px;white-space:nowrap}.multi-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{background:var(--multi-item-bg, #ebedef);margin:var(--multi-item-margin, 0);outline:var(--multi-item-outline, 1px solid #ddd);border-radius:var(--multi-item-border-radius, 4px);height:var(--multi-item-height, 25px);line-height:var(--multi-item-height, 25px);display:flex;cursor:default;padding:var(--multi-item-padding, 0 5px);overflow:hidden;gap:var(--multi-item-gap, 4px);outline-offset:-1px;max-width:var(--multi-max-width, none);color:var(--multi-item-color, var(--item-color))}.multi-item.disabled.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:hover{background:var(--multi-item-disabled-hover-bg, #ebedef);color:var(--multi-item-disabled-hover-color, #c1c6cc)}.multi-item-text.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.multi-item-clear.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;align-items:center;justify-content:center;--clear-icon-color:var(--multi-item-clear-icon-color, #000)}.multi-item.active.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{outline:var(--multi-item-active-outline, 1px solid #006fe8)}.svelte-select-list.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{box-shadow:var(--list-shadow, 0 2px 3px 0 rgba(44, 62, 80, 0.24));border-radius:var(--list-border-radius, 4px);max-height:var(--list-max-height, 252px);overflow-y:auto;background:var(--list-background, #fff);position:var(--list-position, absolute);z-index:var(--list-z-index, 2);border:var(--list-border)}.prefloat.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{opacity:0;pointer-events:none}.list-group-title.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{color:var(--group-title-color, #8f8f8f);cursor:default;font-size:var(--group-title-font-size, 16px);font-weight:var(--group-title-font-weight, 600);height:var(--height, 42px);line-height:var(--height, 42px);padding:var(--group-title-padding, 0 20px);text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap;text-transform:var(--group-title-text-transform, uppercase)}.empty.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{text-align:var(--list-empty-text-align, center);padding:var(--list-empty-padding, 20px 0);color:var(--list-empty-color, #78848f)}.item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{cursor:default;height:var(--item-height, var(--height, 42px));line-height:var(--item-line-height, var(--height, 42px));padding:var(--item-padding, 0 20px);color:var(--item-color, inherit);text-overflow:ellipsis;overflow:hidden;white-space:nowrap;transition:var(--item-transition, all 0.2s);align-items:center;width:100%}.item.group-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{padding-left:var(--group-item-padding-left, 40px)}.item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:active{background:var(--item-active-background, #b9daff)}.item.active.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{background:var(--item-is-active-bg, #007aff);color:var(--item-is-active-color, #fff)}.item.first.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{border-radius:var(--item-first-border-radius, 4px 4px 0 0)}.item.hover.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:not(.active){background:var(--item-hover-bg, #e7f2ff);color:var(--item-hover-color, inherit)}.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.item.hover.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.item.active.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:active{color:var(--item-is-not-selectable-color, #999);background:transparent}.required.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{opacity:0;z-index:-1;position:absolute;top:0;left:0;bottom:0;right:0}")}var tqe=function(t){return{value:8&t[0]}},$se=function(t){return{value:t[3]}},nqe=function(t){return{listOpen:64&t[0]}},Bse=function(t){return{listOpen:t[6]}},iqe=function(t){return{}},Vse=function(t){return{}},rqe=function(t){return{}},Hse=function(t){return{}},oqe=function(t){return{selection:8&t[0]}},zse=function(t){return{selection:t[3]}};function Use(t,n,e){var i=t.slice();return i[127]=n[e],i[129]=e,i}var sqe=function(t){return{}},Gse=function(t){return{}},aqe=function(t){return{selection:8&t[0]}},Wse=function(t){return{selection:t[127],index:t[129]}},lqe=function(t){return{}},qse=function(t){return{}},cqe=function(t){return{}},Xse=function(t){return{}};function Yse(t,n,e){var i=t.slice();return i[127]=n[e],i[129]=e,i}var uqe=function(t){return{item:16777216&t[0]}},Jse=function(t){return{item:t[127],index:t[129]}},dqe=function(t){return{filteredItems:16777216&t[0]}},Kse=function(t){return{filteredItems:t[24]}};function Qse(t){var n,e,i,r,o,s,a=[pqe,fqe,hqe],l=[];function c(u,d){return u[51].list?0:u[24].length>0?1:u[19]?-1:2}return~(e=c(t))&&(i=l[e]=a[e](t)),{c:function(){n=be("div"),i&&i.c(),P(n,"class","svelte-select-list svelte-tyxmms"),Mt(n,"prefloat",t[28])},m:function(u,d){Pe(u,n,d),~e&&l[e].m(n,null),t[91](n),r=!0,o||(s=[_a(t[49].call(null,n)),Ft(n,"scroll",t[41]),Ft(n,"pointerdown",Jh(t[50])),Ft(n,"pointerup",Kh(Jh(t[86])))],o=!0)},p:function(u,d){var h=e;(e=c(u))===h?~e&&l[e].p(u,d):(i&&($t(),ce(l[h],1,1,function(){l[h]=null}),Bt()),~e?((i=l[e])?i.p(u,d):(i=l[e]=a[e](u)).c(),Q(i,1),i.m(n,null)):i=null),(!r||268435456&d[0])&&Mt(n,"prefloat",u[28])},i:function(u){r||(Q(i),r=!0)},o:function(u){ce(i),r=!1},d:function(u){u&&je(n),~e&&l[e].d(),t[91](null),o=!1,ho(s)}}}function hqe(t){var n,e,i=t[83].empty,r=Ms(i,t,t[82],Xse),o=r||{c:function(){(e=be("div")).textContent="No options",P(e,"class","empty svelte-tyxmms")},m:function(s,a){Pe(s,e,a)},p:Lt,d:function(s){s&&je(e)}};return{c:function(){o&&o.c()},m:function(s,a){o&&o.m(s,a),n=!0},p:function(s,a){r&&r.p&&(!n||1048576&a[2])&&Ns(r,i,s,s[82],n?Is(i,s[82],a,cqe):Fs(s[82]),Xse)},i:function(s){n||(Q(o,s),n=!0)},o:function(s){ce(o,s),n=!1},d:function(s){o&&o.d(s)}}}function fqe(t){for(var n,e,i=t[24],r=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:1;clearTimeout(h),h=setTimeout(Qe,Jn)}:Dn,hi=n.debounceWait,di=void 0===hi?300:hi,kr=n.hideEmptyState,Qr=void 0!==kr&&kr,gi=n.inputAttributes,yr=void 0===gi?{}:gi,Ee=n.listAutoWidth,St=void 0===Ee||Ee,Ht=n.showChevron,sn=void 0!==Ht&&Ht,hn=n.listOffset,ri=void 0===hn?5:hn,Oi=n.hoverItemIndex,Bn=void 0===Oi?0:Oi,ei=n.floatingConfig,Yn=void 0===ei?{}:ei,br=n.class,Ar=void 0===br?"":br;function Po(Qe){var Jn=[],er={};Qe.forEach(function(wd){var Br=$r(wd);Jn.includes(Br)||(Jn.push(Br),er[Br]=[],Br&&er[Br].push(Object.assign(Js(Br,wd),{id:Br,groupHeader:!0,selectable:Wr}))),er[Br].push(Object.assign({groupItem:!!Br},wd))});var Qs=[];return Or(Jn).forEach(function(wd){er[wd]&&Qs.push.apply(Qs,si(er[wd]))}),Qs}function ca(){var Qe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,Jn=arguments.length>1?arguments[1]:void 0;e(7,Bn=Qe<0?0:Qe),!Jn&&$r&&c[Bn]&&!c[Bn].selectable&&wo(1)}function md(){var Qe=!0;if(B){var Jn=[],er=[];B.forEach(function(Qs){Jn.includes(Qs[Fn])?Qe=!1:(Jn.push(Qs[Fn]),er.push(Qs))}),Qe||e(3,B=er)}return Qe}function hu(Qe){var Jn=Qe?Qe[Fn]:B[Fn];return _n.find(function(er){return er[Fn]===Jn})}function ua(Qe){return Rl.apply(this,arguments)}function Rl(){return(Rl=Zi(vn().mark(function Qe(Jn){var er;return vn().wrap(function(Qs){for(;;)switch(Qs.prev=Qs.next){case 0:er=B[Jn],e(3,B=1===B.length?void 0:B.filter(function(wd){return wd!==er})),$("clear",er);case 3:case"end":return Qs.stop()}},Qe)}))).apply(this,arguments)}function gd(Qe){var Jn;ze&&F===(null===(Jn=document)||void 0===Jn?void 0:Jn.activeElement)||(Qe&&$("focus",Qe),F.focus(),e(2,ze=!0))}function Ps(Qe){return vd.apply(this,arguments)}function vd(){return(vd=Zi(vn().mark(function Qe(Jn){return vn().wrap(function(er){for(;;)switch(er.prev=er.next){case 0:if(!fi&&!z_){er.next=2;break}return er.abrupt("return");case 2:(Ue||ze)&&($("blur",Jn),yd(),e(2,ze=!1),e(26,f=void 0),F.blur());case 3:case"end":return er.stop()}},Qe)}))).apply(this,arguments)}function yd(){e(4,ie=""),e(6,Ue=!1)}y=Zi(vn().mark(function Qe(){return vn().wrap(function(Jn){for(;;)switch(Jn.prev=Jn.next){case 0:e(78,p=B),e(79,m=ie),e(80,g=V);case 3:case"end":return Jn.stop()}},Qe)})),Tv().$$.before_update.push(y),Wc(function(){Ue&&e(2,ze=!0),ze&&F&&F.focus()});var an,eT=n.ariaValues,Ce=void 0===eT?function(Qe){return"Option ".concat(Qe,", selected.")}:eT,lt=n.ariaListOpen,It=void 0===lt?function(Qe,Jn){return"You are currently focused on option ".concat(Qe,". There are ").concat(Jn," results available.")}:lt,Jt=n.ariaFocused,nn=void 0===Jt?function(){return"Select is focused, type to refine list, press down to open the menu."}:Jt,Vn=null;function li(){clearTimeout(an),an=setTimeout(function(){fi=!1},100)}Hu(function(){var Qe;null===(Qe=Vn)||void 0===Qe||Qe.remove()});var fi=!1;function Lo(Qe){Qe&&!1!==Qe.selectable&&function(Jn){if(Jn){e(4,ie="");var er=Object.assign({},Jn);if(er.groupHeader&&!er.selectable)return;e(3,B=V?B?B.concat([er]):[er]:e(3,B=er)),setTimeout(function(){qr&&yd(),e(26,f=void 0),$("change",B),$("select",Jn)})}}(Qe)}function Ls(Qe){fi||e(7,Bn=Qe)}function Zo(Qe){var Qs,Jn=Qe.item,er=Qe.i;if(!1!==Jn?.selectable){if(B&&!V&&B[Fn]===Jn[Fn])return yd();((Qs=Jn).groupHeader&&Qs.selectable||Qs.selectable||!Qs.hasOwnProperty("selectable"))&&(e(7,Bn=er),Lo(Jn)),z_=!1}}function wo(Qe){if(0===c.filter(function(er){return!Object.hasOwn(er,"selectable")||!0===er.selectable}).length)return e(7,Bn=0);e(7,Qe>0&&Bn===c.length-1?Bn=0:Qe<0&&0===Bn?Bn=c.length-1:Bn+=Qe);var Jn=c[Bn];Jn&&!1===Jn.selectable&&(1!==Qe&&-1!==Qe||wo(Qe))}var $l=bd,wh=bd;function bd(Qe){return{update:function(Jn){Jn.scroll&&(li(),Qe.scrollIntoView({behavior:"auto",block:"nearest"}))}}}var Mr={strategy:"absolute",placement:"bottom-start",middleware:[PWe(ri),jWe(),RWe()],autoUpdate:!1},tc=Un(function zWe(t){var n,e,i={autoUpdate:!0},r=t,o=function(l){return Ze(Ze(Ze({},i),t||{}),l||{})},s=function(l){var c,u,d,h,f,p;n&&e&&(r=o(l),(c=n,u=e,d=r,h=new Map,f=Ze({platform:VWe},d),p=Ze(Ze({},f.platform),{},{_c:h}),EWe(c,u,Ze(Ze({},f),{},{platform:p}))).then(function(c){var u;Object.assign(e.style,{position:c.strategy,left:"".concat(c.x,"px"),top:"".concat(c.y,"px")}),null!==(u=r)&&void 0!==u&&u.onComputed&&r.onComputed(c)}))};return[function(l){if("subscribe"in l)return function(l){Hu(l.subscribe(function(c){void 0===n?(n=c,s()):(Object.assign(n,c),s())}))}(l),{};n=l,s()},function(l,c){var u;e=l,r=o(c),setTimeout(function(){return s(c)},0),s(c);var d=function(){u&&(u(),u=void 0)},h=function(){var p=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:r||{}).autoUpdate;if(d(),!1!==p)return function HWe(t,n,e,i){void 0===i&&(i={});var o=i.ancestorScroll,a=i.ancestorResize,l=void 0===a||a,c=i.elementResize,u=void 0===c||c,d=i.animationFrame,h=void 0!==d&&d,f=(void 0===o||o)&&!h,p=f||l?[].concat(si(td(t)?Yb(t):t.contextElement?Yb(t.contextElement):[]),si(Yb(n))):[];p.forEach(function(_){f&&_.addEventListener("scroll",e,{passive:!0}),l&&_.addEventListener("resize",e)});var m,g=null;if(u){var v=!0;g=new ResizeObserver(function(){v||e(),v=!1}),td(t)&&!h&&g.observe(t),td(t)||!t.contextElement||h||g.observe(t.contextElement),g.observe(n)}var y=h?Vm(t):null;return h&&function _(){var C=Vm(t);!y||C.x===y.x&&C.y===y.y&&C.width===y.width&&C.height===y.height||e(),y=C,m=requestAnimationFrame(_)}(),e(),function(){var _;p.forEach(function(C){f&&C.removeEventListener("scroll",e),l&&C.removeEventListener("resize",e)}),null==(_=g)||_.disconnect(),g=null,h&&cancelAnimationFrame(m)}}(n,e,function(){return s(r)},!0===p?{}:p)};return u=h(),{update:function(f){s(f),u=h(f)},destroy:function(){d()}}},s]}(Mr),3),fu=tc[0],_d=tc[1],Ch=tc[2],xd=!0,z_=!1;return t.$$set=function(Qe){"justValue"in Qe&&e(53,R=Qe.justValue),"filter"in Qe&&e(54,U=Qe.filter),"getItems"in Qe&&e(55,re=Qe.getItems),"id"in Qe&&e(56,X=Qe.id),"name"in Qe&&e(8,H=Qe.name),"container"in Qe&&e(0,E=Qe.container),"input"in Qe&&e(1,F=Qe.input),"multiple"in Qe&&e(9,V=Qe.multiple),"multiFullItemClearable"in Qe&&e(10,fe=Qe.multiFullItemClearable),"disabled"in Qe&&e(11,xe=Qe.disabled),"focused"in Qe&&e(2,ze=Qe.focused),"value"in Qe&&e(3,B=Qe.value),"filterText"in Qe&&e(4,ie=Qe.filterText),"placeholder"in Qe&&e(57,Ye=Qe.placeholder),"placeholderAlwaysShow"in Qe&&e(58,_t=Qe.placeholderAlwaysShow),"items"in Qe&&e(52,_n=Qe.items),"label"in Qe&&e(12,on=Qe.label),"itemFilter"in Qe&&e(59,pn=Qe.itemFilter),"groupBy"in Qe&&e(60,$r=Qe.groupBy),"groupFilter"in Qe&&e(61,Or=Qe.groupFilter),"groupHeaderSelectable"in Qe&&e(62,Wr=Qe.groupHeaderSelectable),"itemId"in Qe&&e(13,Fn=Qe.itemId),"loadOptions"in Qe&&e(63,ui=Qe.loadOptions),"containerStyles"in Qe&&e(14,Cr=Qe.containerStyles),"hasError"in Qe&&e(15,Qo=Qe.hasError),"filterSelectedItems"in Qe&&e(64,On=Qe.filterSelectedItems),"required"in Qe&&e(16,bi=Qe.required),"closeListOnChange"in Qe&&e(65,qr=Qe.closeListOnChange),"createGroupHeaderItem"in Qe&&e(66,Js=Qe.createGroupHeaderItem),"searchable"in Qe&&e(17,Ks=Qe.searchable),"inputStyles"in Qe&&e(18,Xa=Qe.inputStyles),"clearable"in Qe&&e(68,we=Qe.clearable),"loading"in Qe&&e(5,qe=Qe.loading),"listOpen"in Qe&&e(6,Ue=Qe.listOpen),"debounce"in Qe&&e(69,ii=Qe.debounce),"debounceWait"in Qe&&e(70,di=Qe.debounceWait),"hideEmptyState"in Qe&&e(19,Qr=Qe.hideEmptyState),"inputAttributes"in Qe&&e(71,yr=Qe.inputAttributes),"listAutoWidth"in Qe&&e(72,St=Qe.listAutoWidth),"showChevron"in Qe&&e(20,sn=Qe.showChevron),"listOffset"in Qe&&e(73,ri=Qe.listOffset),"hoverItemIndex"in Qe&&e(7,Bn=Qe.hoverItemIndex),"floatingConfig"in Qe&&e(74,Yn=Qe.floatingConfig),"class"in Qe&&e(21,Ar=Qe.class),"ariaValues"in Qe&&e(75,Ce=Qe.ariaValues),"ariaListOpen"in Qe&&e(76,It=Qe.ariaListOpen),"ariaFocused"in Qe&&e(77,nn=Qe.ariaFocused),"$$scope"in Qe&&e(82,S=Qe.$$scope)},t.$$.update=function(){var Qe,Jn,er,Qs,wd,Br;8&t.$$.dirty[0]|2097152&t.$$.dirty[1]&&B&&function(){if("string"==typeof B){var Br,Zs=(_n||[]).find(function(pu){return pu[Fn]===B});e(3,B=Zs||(ql(Br={},Fn,B),ql(Br,"label",B),Br))}else V&&Array.isArray(B)&&B.length>0&&e(3,B=B.map(function(pu){return"string"==typeof pu?{value:pu,label:pu}:pu}))}(),131072&t.$$.dirty[0]|512&t.$$.dirty[2]&&(!yr&&Ks||(e(27,v=Object.assign({autocapitalize:"none",autocomplete:"off",autocorrect:"off",spellcheck:!1,tabindex:0,type:"text","aria-autocomplete":"list"},yr)),X&&e(27,v.id=X,v),Ks||e(27,v.readonly=!0,v))),512&t.$$.dirty[0]&&V&&B&&(Array.isArray(B)?e(3,B=si(B)):e(3,B=[B])),512&t.$$.dirty[0]|262144&t.$$.dirty[2]&&g&&!V&&B&&e(3,B=null),520&t.$$.dirty[0]&&V&&B&&B.length>1&&md(),8&t.$$.dirty[0]&&B&&(V?JSON.stringify(B)!==JSON.stringify(p)&&md()&&$("input",B):p&&JSON.stringify(B[Fn])===JSON.stringify(p[Fn])||$("input",B)),520&t.$$.dirty[0]|65536&t.$$.dirty[2]&&!B&&V&&p&&$("input",B),6&t.$$.dirty[0]&&!ze&&F&&yd(),16&t.$$.dirty[0]|131072&t.$$.dirty[2]&&ie!==m&&(ui||0!==ie.length)&&(ui?ii(Zi(vn().mark(function Br(){var Zs;return vn().wrap(function(pu){for(;;)switch(pu.prev=pu.next){case 0:return e(5,qe=!0),pu.next=3,re({dispatch:$,loadOptions:ui,convertStringItemsToObjects:lae,filterText:ie});case 3:(Zs=pu.sent)?(e(5,qe=Zs.loading),e(6,Ue=Ue?Zs.listOpen:ie.length>0),e(2,ze=Ue&&Zs.focused),e(52,_n=$r?Po(Zs.filteredItems):Zs.filteredItems)):(e(5,qe=!1),e(2,ze=!0),e(6,Ue=!0));case 5:case"end":return pu.stop()}},Br)})),di):(e(6,Ue=!0),V&&e(26,f=void 0))),12824&t.$$.dirty[0]|815792128&t.$$.dirty[1]|6&t.$$.dirty[2]&&e(24,c=U({loadOptions:ui,filterText:ie,items:_n,multiple:V,value:B,itemId:Fn,groupBy:$r,label:on,filterSelectedItems:On,itemFilter:pn,convertStringItemsToObjects:lae,filterGroupedItems:Po})),16777800&t.$$.dirty[0]&&!V&&Ue&&B&&c&&(Qe=c.findIndex(function(Br){return Br[Fn]===B[Fn]}),ca(Qe,!0)),576&t.$$.dirty[0]&&Ue&&V&&e(7,Bn=0),16&t.$$.dirty[0]&&ie&&e(7,Bn=0),128&t.$$.dirty[0]&&$("hoverItem",Bn),520&t.$$.dirty[0]&&e(25,i=V?B&&B.length>0:B),33554448&t.$$.dirty[0]&&e(35,r=i&&ie.length>0),33556512&t.$$.dirty[0]|64&t.$$.dirty[2]&&e(34,o=i&&we&&!xe&&!qe),520&t.$$.dirty[0]|201326592&t.$$.dirty[1]&&e(33,s=_t&&V||V&&0===(null===(Jn=B)||void 0===Jn?void 0:Jn.length)?Ye:B?"":Ye),520&t.$$.dirty[0]&&e(32,a=B?(er=V&&B.length>0?B.map(function(Br){return Br[on]}).join(", "):B[on],Ce(er)):""),16777412&t.$$.dirty[0]&&e(31,l=function(){if(!c||0===c.length)return"";var Br=c[Bn];return Ue&&Br?It(Br[on],c?c.length:0):nn()}()),2097152&t.$$.dirty[1]&&(Br=_n)&&0!==Br.length&&!Br.some(function(Zs){return"object"!==bn(Zs)})&&B&&(V?!B.some(function(Zs){return!Zs||!Zs[Fn]}):B[Fn])&&(Array.isArray(B)?e(3,B=B.map(function(Zs){return hu(Zs)||Zs})):e(3,B=hu()||B)),8712&t.$$.dirty[0]&&e(53,R=V?B?B.map(function(Br){return Br[Fn]}):null:B&&B[Fn]),520&t.$$.dirty[0]|65536&t.$$.dirty[2]&&(V||!p||B||$("input",B)),16777800&t.$$.dirty[0]&&Ue&&c&&!V&&!B&&ca(),16777216&t.$$.dirty[0]&&function(Br){Ue&&$("filter",Br)}(c),1&t.$$.dirty[0]|4096&t.$$.dirty[2]&&E&&void 0===(null===(Qs=Yn)||void 0===Qs?void 0:Qs.autoUpdate)&&e(81,Mr.autoUpdate=!0,Mr),1&t.$$.dirty[0]|528384&t.$$.dirty[2]&&E&&Yn&&Ch(Object.assign(Mr,Yn)),8388608&t.$$.dirty[0]&&e(30,u=!!Vn),8388672&t.$$.dirty[0]&&function(Br,Zs){if(!Br||!Zs)return e(28,xd=!0);setTimeout(function(){e(28,xd=!1)},0)}(Vn,Ue),8388673&t.$$.dirty[0]&&Ue&&E&&Vn&&(wd=E.getBoundingClientRect().width,e(23,Vn.style.width=St?wd+"px":"auto",Vn)),128&t.$$.dirty[0]&&e(29,d=Bn),70&t.$$.dirty[0]&&F&&Ue&&!ze&&gd()},[E,F,ze,B,ie,qe,Ue,Bn,H,V,fe,xe,on,Fn,Cr,Qo,bi,Ks,Xa,Qr,sn,Ar,function(){$("clear",B),e(3,B=void 0),yd(),gd()},Vn,c,i,f,v,xd,d,u,l,a,s,o,r,ua,function(Qe){if(ze)switch(Qe.stopPropagation(),Qe.key){case"Escape":Qe.preventDefault(),yd();break;case"Enter":if(Qe.preventDefault(),Ue){if(0===c.length)break;if(B&&!V&&B[Fn]===c[Bn][Fn]){yd();break}Lo(c[Bn])}break;case"ArrowDown":Qe.preventDefault(),Ue?wo(1):(e(6,Ue=!0),e(26,f=void 0));break;case"ArrowUp":Qe.preventDefault(),Ue?wo(-1):(e(6,Ue=!0),e(26,f=void 0));break;case"Tab":if(Ue&&ze){if(0===c.length||B&&B[Fn]===c[Bn][Fn])return yd();Qe.preventDefault(),Lo(c[Bn]),yd()}break;case"Backspace":if(!V||ie.length>0)return;if(V&&B&&B.length>0){if(ua(void 0!==f?f:B.length-1),0===f||void 0===f)break;e(26,f=B.length>f?f-1:void 0)}break;case"ArrowLeft":if(!B||!V||ie.length>0)return;void 0===f?e(26,f=B.length-1):B.length>f&&0!==f&&e(26,f-=1);break;case"ArrowRight":if(!B||!V||ie.length>0||void 0===f)return;f===B.length-1?e(26,f=void 0):f",">="].map(function(X){return{value:X,label:X}}),R=[{value:"asc",label:"ascending"},{value:"desc",label:"descending"}],z=null!==(i=M)&&void 0!==i&&null!==(r=i.filter)&&void 0!==r&&r.path?Lb(M.filter.path):null,U=null!==(o=M)&&void 0!==o&&null!==(s=o.filter)&&void 0!==s&&s.relation?G.find(function(X){var Z;return X.value===(null===(Z=M.filter)||void 0===Z?void 0:Z.relation)}):null,q=(null===(a=M)||void 0===a||null===(l=a.filter)||void 0===l?void 0:l.value)||"",re=null!==(c=M)&&void 0!==c&&null!==(u=c.sort)&&void 0!==u&&u.path?Lb(M.sort.path):null,L=null!==(d=M)&&void 0!==d&&null!==(h=d.sort)&&void 0!==h&&h.direction?R.find(function(X){var Z;return X.value===(null===(Z=M.sort)||void 0===Z?void 0:Z.direction)}):null;return t.$$set=function(X){"json"in X&&e(11,C=X.json),"queryOptions"in X&&e(10,M=X.queryOptions),"onChange"in X&&e(12,$=X.onChange)},t.$$.update=function(){var X,Z,H,he,E,N,F,Y,V,oe,fe,Ne,xe,tt,ze,ot,B,ne,ie,Ie,Ye;2048&t.$$.dirty&&e(15,f=Array.isArray(C)),34816&t.$$.dirty&&e(14,p=f?CO(C):[]),34816&t.$$.dirty&&e(13,m=f?CO(C,!0):[]),16384&t.$$.dirty&&e(7,g=p.map(Lb)),8192&t.$$.dirty&&e(6,v=m?m.map(Lb):[]),1088&t.$$.dirty&&e(5,y=null!==(X=M)&&void 0!==X&&null!==(Z=X.projection)&&void 0!==Z&&Z.paths&&v?M.projection.paths.map(function(ie){return v.find(function(Ie){return or(Ie.value,ie)})}).filter(function(ie){return!!ie}):null),1&t.$$.dirty&&(he=(null===(H=z)||void 0===H?void 0:H.value)||null,or(null===(E=M)||void 0===E||null===(N=E.filter)||void 0===N?void 0:N.path,he)||(_("changeFilterPath",he),e(10,M=qu(M,["filter","path"],he,!0)),$(M))),2&t.$$.dirty&&(Y=(null===(F=U)||void 0===F?void 0:F.value)||null,or(null===(V=M)||void 0===V||null===(oe=V.filter)||void 0===oe?void 0:oe.relation,Y)||(_("changeFilterRelation",Y),e(10,M=qu(M,["filter","relation"],Y,!0)),$(M))),4&t.$$.dirty&&(or(null===(Ne=M)||void 0===Ne||null===(xe=Ne.filter)||void 0===xe?void 0:xe.value,fe=q||null)||(_("changeFilterValue",fe),e(10,M=qu(M,["filter","value"],fe,!0)),$(M))),8&t.$$.dirty&&(ie=(null===(tt=re)||void 0===tt?void 0:tt.value)||null,or(null===(Ie=M)||void 0===Ie||null===(Ye=Ie.sort)||void 0===Ye?void 0:Ye.path,ie)||(_("changeSortPath",ie),e(10,M=qu(M,["sort","path"],ie,!0)),$(M))),16&t.$$.dirty&&(ot=(null===(ze=L)||void 0===ze?void 0:ze.value)||null,or(null===(B=M)||void 0===B||null===(ne=B.sort)||void 0===ne?void 0:ne.direction,ot)||(_("changeSortDirection",ot),e(10,M=qu(M,["sort","direction"],ot,!0)),$(M))),32&t.$$.dirty&&function(ie){var Ie,Ye;or(null===(Ie=M)||void 0===Ie||null===(Ye=Ie.projection)||void 0===Ye?void 0:Ye.paths,ie)||(_("changeProjectionPaths",ie),e(10,M=qu(M,["projection","paths"],ie,!0)),$(M))}(y?y.map(function(ie){return ie.value}):null)},[z,U,q,re,L,y,v,g,G,R,M,C,$,m,p,f,function(X){e(0,z=X)},function(X){e(1,U=X)},function(){e(2,q=this.value)},function(X){e(3,re=X)},function(X){e(4,L=X)},function(X){e(5,y=X),e(10,M),e(6,v),e(13,m),e(15,f),e(11,C)}]}var wqe=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,xqe,_qe,Ei,{json:11,queryOptions:10,onChange:12},bqe),r}return Se(e)}();function Cqe(t){pi(t,"svelte-19cxesy",".jse-select-query-language.svelte-19cxesy.svelte-19cxesy{position:relative;width:32px}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container.svelte-19cxesy{position:absolute;top:0;right:0;display:flex;flex-direction:column;box-shadow:var(--jse-controls-box-shadow)}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container .jse-query-language.svelte-19cxesy{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;text-align:left;padding:var(--jse-padding) calc(2 * var(--jse-padding));white-space:nowrap;color:var(--jse-context-menu-color);background:var(--jse-context-menu-background)}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container .jse-query-language.svelte-19cxesy:hover{background:var(--jse-context-menu-background-highlight)}")}function cae(t,n,e){var i=t.slice();return i[5]=n[e],i}function kqe(t){var n,e;return n=new sr({props:{data:Bb}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:Lt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function Sqe(t){var n,e;return n=new sr({props:{data:$b}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:Lt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function uae(t){var n,e,i,r,o,s,a,l,c,u,d=t[5].name+"",h=[Sqe,kqe],f=[];function p(g,v){return g[5].id===g[0]?0:1}function m(){return t[4](t[5])}return e=p(t),i=f[e]=h[e](t),{c:function(){n=be("button"),i.c(),r=it(),o=tn(d),s=it(),P(n,"type","button"),P(n,"class","jse-query-language svelte-19cxesy"),P(n,"title",a="Select ".concat(t[5].name," as query language")),Mt(n,"selected",t[5].id===t[0])},m:function(g,v){Pe(g,n,v),f[e].m(n,null),de(n,r),de(n,o),de(n,s),l=!0,c||(u=Ft(n,"click",m),c=!0)},p:function(g,v){var y=e;(e=p(t=g))===y?f[e].p(t,v):($t(),ce(f[y],1,1,function(){f[y]=null}),Bt(),(i=f[e])?i.p(t,v):(i=f[e]=h[e](t)).c(),Q(i,1),i.m(n,r)),(!l||2&v)&&d!==(d=t[5].name+"")&&qn(o,d),(!l||2&v&&a!==(a="Select ".concat(t[5].name," as query language")))&&P(n,"title",a),(!l||3&v)&&Mt(n,"selected",t[5].id===t[0])},i:function(g){l||(Q(i),l=!0)},o:function(g){ce(i),l=!1},d:function(g){g&&je(n),f[e].d(),c=!1,u()}}}function Dqe(t){for(var n,e,i,r=t[1],o=[],s=0;s1&&dae(t);return s=new sr({props:{data:p0}}),{c:function(){n=be("div"),(e=be("div")).textContent="Transform",i=it(),u&&u.c(),r=it(),o=be("button"),mt(s.$$.fragment),P(e,"class","jse-title svelte-d01h2s"),P(o,"type","button"),P(o,"class","jse-close svelte-d01h2s"),P(n,"class","jse-header svelte-d01h2s")},m:function(d,h){Pe(d,n,h),de(n,e),de(n,i),u&&u.m(n,null),de(n,r),de(n,o),ft(s,o,null),a=!0,l||(c=Ft(o,"click",t[2]),l=!0)},p:function(d,h){var f=Un(h,1)[0];d[0].length>1?u?(u.p(d,f),1&f&&Q(u,1)):((u=dae(d)).c(),Q(u,1),u.m(n,r)):u&&($t(),ce(u,1,1,function(){u=null}),Bt())},i:function(d){a||(Q(u),Q(s.$$.fragment,d),a=!0)},o:function(d){ce(u),ce(s.$$.fragment,d),a=!1},d:function(d){d&&je(n),u&&u.d(),pt(s),l=!1,c()}}}function Iqe(t,n,e){var i,r,o=n.queryLanguages,s=n.queryLanguageId,a=n.onChangeQueryLanguage,l=xa("simple-modal").close,c=xa("absolute-popup"),u=c.openAbsolutePopup,d=c.closeAbsolutePopup;return t.$$set=function(h){"queryLanguages"in h&&e(0,o=h.queryLanguages),"queryLanguageId"in h&&e(4,s=h.queryLanguageId),"onChangeQueryLanguage"in h&&e(5,a=h.onChangeQueryLanguage)},[o,i,l,function(){r=u(Eqe,{queryLanguages:o,queryLanguageId:s,onChangeQueryLanguage:function(h){d(r),a(h)}},{position:"bottom",offsetTop:-2,offsetLeft:0,anchor:i,closeOnOuterClick:!0})},s,a,function(h){Vi[h?"unshift":"push"](function(){e(1,i=h)})}]}var Nqe=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,Iqe,Mqe,Ei,{queryLanguages:0,queryLanguageId:4,onChangeQueryLanguage:5},Aqe),r}return Se(e)}(),s4=wa("jsoneditor:AutoScrollHandler"),Fqe=function(t,n,e,i){return(t/=i/2)<1?e/2*t*t+n:-e/2*(--t*(t-2)-1)+n},hae=function(){var t,n,e,i,r,o,s,a,l,c,u,d,h;function p(v){return v.getBoundingClientRect().top-(t.getBoundingClientRect?t.getBoundingClientRect().top:0)+e}function m(v){t.scrollTo?t.scrollTo(t.scrollLeft,v):t.scrollTop=v}function g(v){c||(c=v),m(o(u=v-c,e,a,l)),h=!0,u1&&void 0!==arguments[1]?arguments[1]:{};switch(l=1e3,r=y.offset||0,d=void 0,o=y.easing||Fqe,s=y.a11y||!1,bn(y.container)){case"object":t=y.container;break;case"string":t=document.querySelector(y.container);break;default:t=window.document.documentElement}switch(e=function f(){return t.scrollTop}(),bn(v)){case"number":n=void 0,s=!1,i=e+v;break;case"object":i=p(n=v);break;case"string":n=document.querySelector(v),i=p(n)}switch(a=i-e+r,bn(y.duration)){case"number":l=y.duration;break;case"function":l=y.duration(a)}h?c=0:requestAnimationFrame(g)}},Zk=wa("jsoneditor:History");function fae(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.maxItems||1e3,e=[],i=0;function r(){return i0}function s(){return{canUndo:r(),canRedo:o(),length:e.length}}function a(){t.onChange&&t.onChange(s())}return{add:function l(h){Zk("add",h),e=[h].concat(e.slice(i)).slice(0,n),i=0,a()},clear:function c(){Zk("clear"),e=[],i=0,a()},getState:s,undo:function u(){if(r()){var h=e[i];return i+=1,Zk("undo",h),a(),h}},redo:function d(){if(o())return Zk("redo",e[i-=1]),a(),e[i]}}}function g0(t,n){var e=Date.now(),i=t();return n(Date.now()-e),i}var v0=wa("validation");function pae(t,n,e,i){return v0("validateJSON"),n?n(e!==i?i.parse(e.stringify(t)):t):[]}function Oqe(t,n,e,i){if(v0("validateText"),t.length>104857600)return{validationErrors:[{path:[],message:"Validation turned off: the document is too large",severity:Xd.info}]};if(0===t.length)return null;try{var r=g0(function(){return e.parse(t)},function(l){return v0("validate: parsed json in ".concat(l," ms"))});if(!n)return null;var o=e===i?r:g0(function(){return i.parse(t)},function(l){return v0("validate: parsed json with the validationParser in ".concat(l," ms"))}),s=g0(function(){return n(o)},function(l){return v0("validate: validated json in ".concat(l," ms"))});return Hi(s)?null:{validationErrors:s}}catch(l){var a=g0(function(){return function(c,u){if(c.length>1048576)return!1;try{return u.parse(Yd(c)),!0}catch{return!1}}(t,e)},function(c){return v0("validate: checked whether repairable in ".concat(c," ms"))});return{parseError:Nk(t,l.message||l.toString()),isRepairable:a}}}var eS=wa("jsoneditor:FocusTracker");function a4(t){var n,i=t.onDestroy,r=t.getWindow,o=t.hasFocus,s=t.onFocus,a=t.onBlur,l=!1;function c(){var d=o();d&&(clearTimeout(n),l||(eS("focus"),s(),l=d))}function u(){l&&(clearTimeout(n),n=setTimeout(function(){eS("blur"),l=!1,a()}))}(0,t.onMount)(function(){eS("mount FocusTracker");var d=r();d&&(d.addEventListener("focusin",c,!0),d.addEventListener("focusout",u,!0))}),i(function(){eS("destroy FocusTracker");var d=r();d&&(d.removeEventListener("focusin",c,!0),d.removeEventListener("focusout",u,!0))})}function jqe(t){pi(t,"svelte-fqu1ku",".jse-message.svelte-fqu1ku.svelte-fqu1ku{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);padding:var(--jse-padding);display:flex;gap:var(--jse-padding);flex-wrap:wrap;align-items:stretch}.jse-message.jse-success.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-success-background);color:var(--jse-message-success-color)}.jse-message.svelte-fqu1ku .jse-text.svelte-fqu1ku{display:flex;flex:1;min-width:60%;align-items:center}.jse-message.svelte-fqu1ku .jse-text.jse-clickable.svelte-fqu1ku{cursor:pointer}.jse-message.svelte-fqu1ku .jse-text.jse-clickable.svelte-fqu1ku:hover{background-color:rgba(255, 255, 255, 0.1)}.jse-message.jse-error.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-error-background);color:var(--jse-message-error-color)}.jse-message.jse-warning.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-warning-background);color:var(--jse-message-warning-color)}.jse-message.jse-info.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-info-background);color:var(--jse-message-info-color)}.jse-message.svelte-fqu1ku .jse-actions.svelte-fqu1ku{display:flex;gap:var(--jse-padding)}.jse-message.svelte-fqu1ku .jse-actions button.jse-action.svelte-fqu1ku{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-message-action-background);color:inherit;padding:calc(0.5 * var(--jse-padding)) var(--jse-padding)}.jse-message.svelte-fqu1ku .jse-actions button.jse-action.svelte-fqu1ku:hover{background:var(--jse-message-action-background-highlight)}")}function mae(t,n,e){var i=t.slice();return i[8]=n[e],i}function gae(t){var n,e;return n=new sr({props:{data:t[1]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};2&r&&(o.data=i[1]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function vae(t){var n,e;return n=new sr({props:{data:t[8].icon}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};8&r&&(o.data=i[8].icon),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function yae(t){var n,e,i,r,o,s,a,l,c,u=t[8].text+"",d=t[8].icon&&vae(t);function h(){return t[6](t[8])}function f(){return t[7](t[8])}return{c:function(){n=be("button"),d&&d.c(),e=it(),i=tn(u),r=it(),P(n,"type","button"),P(n,"class","jse-button jse-action jse-primary svelte-fqu1ku"),P(n,"title",o=t[8].title),n.disabled=s=t[8].disabled},m:function(p,m){Pe(p,n,m),d&&d.m(n,null),de(n,e),de(n,i),de(n,r),a=!0,l||(c=[Ft(n,"click",h),Ft(n,"mousedown",f)],l=!0)},p:function(p,m){(t=p)[8].icon?d?(d.p(t,m),8&m&&Q(d,1)):((d=vae(t)).c(),Q(d,1),d.m(n,e)):d&&($t(),ce(d,1,1,function(){d=null}),Bt()),(!a||8&m)&&u!==(u=t[8].text+"")&&qn(i,u),(!a||8&m&&o!==(o=t[8].title))&&P(n,"title",o),(!a||8&m&&s!==(s=t[8].disabled))&&(n.disabled=s)},i:function(p){a||(Q(d),a=!0)},o:function(p){ce(d),a=!1},d:function(p){p&&je(n),d&&d.d(),l=!1,ho(c)}}}function Pqe(t){for(var n,e,i,r,o,s,a,l,c,u,d,h=t[1]&&gae(t),f=t[3],p=[],m=0;m100&&Cae(t);return{c:function(){n=be("table"),e=be("tbody");for(var u=0;u100?c?c.p(u,d):((c=Cae(u)).c(),c.m(e,null)):c&&(c.d(1),c=null)},i:function(u){if(!r){for(var d=0;d1&&xae(t);function y(){return t[6](t[7])}return{c:function(){n=be("tr"),e=be("td"),mt(i.$$.fragment),r=it(),o=be("td"),s=tn(m),a=it(),l=be("td"),c=tn(g),u=it(),d=be("td"),v&&v.c(),P(e,"class","jse-validation-error-icon svelte-1oe8e8r"),P(o,"class","svelte-1oe8e8r"),P(l,"class","svelte-1oe8e8r"),P(d,"class","jse-validation-error-action svelte-1oe8e8r"),P(n,"class","jse-validation-error svelte-1oe8e8r")},m:function(_,C){Pe(_,n,C),de(n,e),ft(i,e,null),de(n,r),de(n,o),de(o,s),de(n,a),de(n,l),de(l,c),de(n,u),de(n,d),v&&v.m(d,null),h=!0,f||(p=Ft(n,"click",y),f=!0)},p:function(_,C){t=_,(!h||1&C)&&m!==(m=tu(Kl(t[7].path))+"")&&qn(s,m),(!h||1&C)&&g!==(g=t[7].message+"")&&qn(c,g),0===t[9]&&t[0].length>1?v?(v.p(t,C),1&C&&Q(v,1)):((v=xae(t)).c(),Q(v,1),v.m(d,null)):v&&($t(),ce(v,1,1,function(){v=null}),Bt())},i:function(_){h||(Q(i.$$.fragment,_),Q(v),h=!0)},o:function(_){ce(i.$$.fragment,_),ce(v),h=!1},d:function(_){_&&je(n),pt(i),v&&v.d(),f=!1,p()}}}function Cae(t){var n,e,i,r,o,s,a,l,c,u,d,h=t[3]-100+"";return{c:function(){n=be("tr"),e=be("td"),i=it(),r=be("td"),o=it(),s=be("td"),a=tn("(and "),l=tn(h),c=tn(" more errors)"),u=it(),d=be("td"),P(e,"class","svelte-1oe8e8r"),P(r,"class","svelte-1oe8e8r"),P(s,"class","svelte-1oe8e8r"),P(d,"class","svelte-1oe8e8r"),P(n,"class","jse-validation-error svelte-1oe8e8r")},m:function(f,p){Pe(f,n,p),de(n,e),de(n,i),de(n,r),de(n,o),de(n,s),de(s,a),de(s,l),de(s,c),de(n,u),de(n,d)},p:function(f,p){8&p&&h!==(h=f[3]-100+"")&&qn(l,h)},d:function(f){f&&je(n)}}}function Vqe(t){var n,e,i=!Hi(t[0]),r=i&&_ae(t);return{c:function(){r&&r.c(),n=_r()},m:function(o,s){r&&r.m(o,s),Pe(o,n,s),e=!0},p:function(o,s){var a=Un(s,1)[0];1&a&&(i=!Hi(o[0])),i?r?(r.p(o,a),1&a&&Q(r,1)):((r=_ae(o)).c(),Q(r,1),r.m(n.parentNode,n)):r&&($t(),ce(r,1,1,function(){r=null}),Bt())},i:function(o){e||(Q(r),e=!0)},o:function(o){ce(r),e=!1},d:function(o){r&&r.d(o),o&&je(n)}}}function Hqe(t,n,e){var i,r=n.validationErrors,o=n.selectError,s=!0;return t.$$set=function(a){"validationErrors"in a&&e(0,r=a.validationErrors),"selectError"in a&&e(1,o=a.selectError)},t.$$.update=function(){1&t.$$.dirty&&e(3,i=r.length)},[r,o,s,i,function(){e(2,s=!1)},function(){e(2,s=!0)},function(a){setTimeout(function(){return o(a)})}]}var l4=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,Hqe,Vqe,Ei,{validationErrors:0,selectError:1},Rqe),r}return Se(e)}(),zqe=typeof navigator<"u"&&navigator.platform.toUpperCase().indexOf("MAC")>=0;function Uqe(t){pi(t,"svelte-d01h2s",".jse-header.svelte-d01h2s.svelte-d01h2s{display:flex;background:var(--jse-theme-color);color:var(--jse-menu-color)}.jse-header.svelte-d01h2s .jse-title.svelte-d01h2s{flex:1;padding:5px;vertical-align:middle}.jse-header.svelte-d01h2s button.svelte-d01h2s{border:none;background:transparent;min-width:32px;color:inherit;cursor:pointer}.jse-header.svelte-d01h2s button.svelte-d01h2s:hover{background:rgba(255, 255, 255, 0.1)}")}function Gqe(t){var n,e,i,r,o,s,a,l,c;return s=new sr({props:{data:p0}}),{c:function(){n=be("div"),e=be("div"),i=tn(t[0]),r=it(),o=be("button"),mt(s.$$.fragment),P(e,"class","jse-title svelte-d01h2s"),P(o,"type","button"),P(o,"class","jse-close svelte-d01h2s"),P(n,"class","jse-header svelte-d01h2s")},m:function(u,d){Pe(u,n,d),de(n,e),de(e,i),de(n,r),de(n,o),ft(s,o,null),a=!0,l||(c=Ft(o,"click",t[3]),l=!0)},p:function(u,d){var h=Un(d,1)[0];(!a||1&h)&&qn(i,u[0])},i:function(u){a||(Q(s.$$.fragment,u),a=!0)},o:function(u){ce(s.$$.fragment,u),a=!1},d:function(u){u&&je(n),pt(s),l=!1,c()}}}function Wqe(t,n,e){var i=n.title,r=void 0===i?"Modal":i,o=n.onClose,s=void 0===o?void 0:o,a=xa("simple-modal").close;return t.$$set=function(l){"title"in l&&e(0,r=l.title),"onClose"in l&&e(1,s=l.onClose)},[r,s,a,function(){s?s():a()}]}var c4=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,Wqe,Gqe,Ei,{title:0,onClose:1},Uqe),r}return Se(e)}();function qqe(t){pi(t,"svelte-1olothd",".jse-modal.svelte-1olothd.svelte-1olothd{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-1olothd .jse-modal-contents.svelte-1olothd{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions.svelte-1olothd{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-copy-paste.svelte-1olothd .jse-shortcuts.svelte-1olothd{display:flex;flex-wrap:wrap;justify-content:space-around;margin:calc(2 * var(--jse-padding)) 0}.jse-modal.jse-copy-paste.svelte-1olothd .jse-shortcuts .jse-shortcut .jse-key.svelte-1olothd{font-size:200%;color:var(--jse-theme-color)}")}function Xqe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,C,S,M,$,G;return e=new c4({props:{title:"Copying and pasting"}}),{c:function(){n=be("div"),mt(e.$$.fragment),i=it(),r=be("div"),(o=be("div")).textContent="These actions are unavailable via the menu. Please use:",s=it(),a=be("div"),l=be("div"),(c=be("div")).textContent="".concat(t[1],"+C"),u=tn("\n for copy"),d=it(),h=be("div"),(f=be("div")).textContent="".concat(t[1],"+X"),p=tn("\n for cut"),m=it(),g=be("div"),(v=be("div")).textContent="".concat(t[1],"+V"),y=tn("\n for paste"),_=it(),C=be("div"),(S=be("button")).textContent="Close",P(c,"class","jse-key svelte-1olothd"),P(l,"class","jse-shortcut"),P(f,"class","jse-key svelte-1olothd"),P(h,"class","jse-shortcut"),P(v,"class","jse-key svelte-1olothd"),P(g,"class","jse-shortcut"),P(a,"class","jse-shortcuts svelte-1olothd"),P(S,"type","button"),P(S,"class","jse-primary svelte-1olothd"),P(C,"class","jse-actions svelte-1olothd"),P(r,"class","jse-modal-contents svelte-1olothd"),P(n,"class","jse-modal jse-copy-paste svelte-1olothd")},m:function(R,z){Pe(R,n,z),ft(e,n,null),de(n,i),de(n,r),de(r,o),de(r,s),de(r,a),de(a,l),de(l,c),de(l,u),de(a,d),de(a,h),de(h,f),de(h,p),de(a,m),de(a,g),de(g,v),de(g,y),de(r,_),de(r,C),de(C,S),M=!0,$||(G=Ft(S,"click",t[0]),$=!0)},p:Lt,i:function(R){M||(Q(e.$$.fragment,R),M=!0)},o:function(R){ce(e.$$.fragment,R),M=!1},d:function(R){R&&je(n),pt(e),$=!1,G()}}}function Yqe(t){return[xa("simple-modal").close,zqe?"\u2318":"Ctrl"]}var kae=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,Yqe,Xqe,Ei,{},qqe),r}return Se(e)}();function Sae(t){return!!t&&("space"===t.type||!0===t.space)}function tS(t){return!!t&&("separator"===t.type||!0===t.separator)}function Jb(t){return!!t&&"function"==typeof t.onClick}function u4(t){return!!t&&"dropdown-button"===t.type&&Jb(t.main)&&Array.isArray(t.items)}function Dae(t){return Io(t)&&Io(t.parseError)}function Kqe(t){pi(t,"svelte-497ud4",".jse-menu.svelte-497ud4.svelte-497ud4{background:var(--jse-theme-color);border-bottom:1px solid var(--jse-theme-color);color:var(--jse-menu-color);display:flex;flex-wrap:wrap;align-items:center;position:relative}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4{width:var(--jse-menu-button-size);height:var(--jse-menu-button-size);border:none;background:transparent;color:inherit;cursor:pointer;padding:calc(0.5 * var(--jse-padding));margin:0;border-radius:0}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:hover,.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:focus{background:var(--jse-theme-color-highlight)}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:disabled{color:var(--jse-menu-color);opacity:0.5;background:transparent}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4{border:1px solid var(--jse-menu-color);padding:0 calc(0.5 * var(--jse-padding));margin:calc(0.5 * var(--jse-padding)) 0;height:calc(var(--jse-menu-button-size) - var(--jse-padding));width:auto}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:not(.jse-last){border-right:none}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-first.svelte-497ud4{margin-left:calc(0.5 * var(--jse-padding))}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-last.svelte-497ud4{margin-right:calc(0.5 * var(--jse-padding))}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:hover,.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:focus{background:var(--jse-theme-color-highlight)}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-selected.svelte-497ud4{background:var(--jse-menu-color);color:var(--jse-theme-color)}.jse-menu.svelte-497ud4 .jse-space.svelte-497ud4{flex:1}.jse-menu.svelte-497ud4 .jse-separator.svelte-497ud4{background:var(--jse-menu-color);opacity:0.3;box-sizing:border-box;width:1px;height:calc(var(--jse-menu-button-size) - 6px);margin:3px}")}var Qqe=function(t){return{}},Tae=function(t){return{}};function Eae(t,n,e){var i=t.slice();return i[3]=n[e],i}var Zqe=function(t){return{}},Aae=function(t){return{}};function eXe(t){var n,e=Fae(t[3])+"";return{c:function(){n=tn(e)},m:function(i,r){Pe(i,n,r)},p:function(i,r){1&r&&e!==(e=Fae(i[3])+"")&&qn(n,e)},i:Lt,o:Lt,d:function(i){i&&je(n)}}}function tXe(t){var n,e,i,r,o,s,a,l,c=t[3].icon&&Mae(t),u=t[3].text&&Iae(t);return{c:function(){n=be("button"),c&&c.c(),e=it(),u&&u.c(),P(n,"type","button"),P(n,"class",i="jse-button "+t[3].className+" svelte-497ud4"),P(n,"title",r=t[3].title),n.disabled=o=t[3].disabled||!1},m:function(d,h){Pe(d,n,h),c&&c.m(n,null),de(n,e),u&&u.m(n,null),s=!0,a||(l=Ft(n,"click",function(){ba(t[3].onClick)&&t[3].onClick.apply(this,arguments)}),a=!0)},p:function(d,h){(t=d)[3].icon?c?(c.p(t,h),1&h&&Q(c,1)):((c=Mae(t)).c(),Q(c,1),c.m(n,e)):c&&($t(),ce(c,1,1,function(){c=null}),Bt()),t[3].text?u?u.p(t,h):((u=Iae(t)).c(),u.m(n,null)):u&&(u.d(1),u=null),(!s||1&h&&i!==(i="jse-button "+t[3].className+" svelte-497ud4"))&&P(n,"class",i),(!s||1&h&&r!==(r=t[3].title))&&P(n,"title",r),(!s||1&h&&o!==(o=t[3].disabled||!1))&&(n.disabled=o)},i:function(d){s||(Q(c),s=!0)},o:function(d){ce(c),s=!1},d:function(d){d&&je(n),c&&c.d(),u&&u.d(),a=!1,l()}}}function nXe(t){var n;return{c:function(){P(n=be("div"),"class","jse-space svelte-497ud4")},m:function(e,i){Pe(e,n,i)},p:Lt,i:Lt,o:Lt,d:function(e){e&&je(n)}}}function iXe(t){var n;return{c:function(){P(n=be("div"),"class","jse-separator svelte-497ud4")},m:function(e,i){Pe(e,n,i)},p:Lt,i:Lt,o:Lt,d:function(e){e&&je(n)}}}function Mae(t){var n,e;return n=new sr({props:{data:t[3].icon}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};1&r&&(o.data=i[3].icon),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function Iae(t){var n,e=t[3].text+"";return{c:function(){n=tn(e)},m:function(i,r){Pe(i,n,r)},p:function(i,r){1&r&&e!==(e=i[3].text+"")&&qn(n,e)},d:function(i){i&&je(n)}}}function Nae(t){var n,e,i,r,o,s,a,l=[iXe,nXe,tXe,eXe],c=[];function u(d,h){return 1&h&&(n=null),1&h&&(e=null),1&h&&(i=null),null==n&&(n=!!tS(d[3])),n?0:(null==e&&(e=!!Sae(d[3])),e?1:(null==i&&(i=!!Jb(d[3])),i?2:3))}return r=u(t,-1),o=c[r]=l[r](t),{c:function(){o.c(),s=_r()},m:function(d,h){c[r].m(d,h),Pe(d,s,h),a=!0},p:function(d,h){var f=r;(r=u(d,h))===f?c[r].p(d,h):($t(),ce(c[f],1,1,function(){c[f]=null}),Bt(),(o=c[r])?o.p(d,h):(o=c[r]=l[r](d)).c(),Q(o,1),o.m(s.parentNode,s))},i:function(d){a||(Q(o),a=!0)},o:function(d){ce(o),a=!1},d:function(d){c[r].d(d),d&&je(s)}}}function rXe(t){for(var n,e,i,r,o=t[2].left,s=Ms(o,t,t[1],Aae),a=t[0],l=[],c=0;c0&&_.height>0}),u),c=u(e);function u(y){var _=y.getBoundingClientRect();return{x:_.left+_.width/2,y:_.top+_.height/2,rect:_,element:y}}function d(y,_){var S=y.x-_.x,M=(y.y-_.y)*(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1);return Math.sqrt(S*S+M*M)}var h=function(y){return d(y,c)};if("Left"===i||"Right"===i){var f=l.filter("Left"===i?function(y){return y.rect.left+ac.rect.right+a});return(Xv(f.filter(function(y){return Math.abs(y.y-c.y)c.y+a});return(Xv(g.filter(function(y){return o(y.element)}),h)||Xv(g,h))?.element}}({allElements:Array.from(i.querySelectorAll("button:not([disabled])")),currentElement:a.target,direction:c,hasPrio:function(d){return"jse-open-dropdown"!==d.getAttribute("data-type")}});u&&u.focus()}},function(a){Vi[a?"unshift":"push"](function(){e(2,i=a)})}]}var Jae=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,GXe,UXe,Ei,{items:0,tip:1},EXe),r}return Se(e)}();function WXe(t){var n,e;return n=new Jae({props:{items:t[1],tip:t[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};2&r[0]&&(o.items=i[1]),1&r[0]&&(o.tip=i[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function qXe(t,n,e){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,C,S,M,$=n.json,G=n.documentState,R=n.parser,z=n.showTip,U=n.onCloseContextMenu,q=n.onEditKey,re=n.onEditValue,L=n.onToggleEnforceString,X=n.onCut,Z=n.onCopy,H=n.onPaste,he=n.onRemove,E=n.onDuplicate,N=n.onExtract,F=n.onInsertBefore,Y=n.onInsert,V=n.onConvert,oe=n.onInsertAfter,fe=n.onSort,Ne=n.onTransform;function xe(){U(),q()}function tt(){U(),re()}function ze(){U(),L()}function ot(){U(),X(!0)}function B(){U(),X(!1)}function ne(){U(),Z(!0)}function ie(){U(),Z(!1)}function Ie(){U(),H()}function Ye(){U(),he()}function Le(){U(),E()}function _t(){U(),N()}function At(pn){U(),c?V(pn):Y(pn)}function _n(){U(),fe()}function ci(){U(),Ne()}function on(){U(),F()}function Ni(){U(),oe()}return t.$$set=function(pn){"json"in pn&&e(2,$=pn.json),"documentState"in pn&&e(3,G=pn.documentState),"parser"in pn&&e(4,R=pn.parser),"showTip"in pn&&e(0,z=pn.showTip),"onCloseContextMenu"in pn&&e(5,U=pn.onCloseContextMenu),"onEditKey"in pn&&e(6,q=pn.onEditKey),"onEditValue"in pn&&e(7,re=pn.onEditValue),"onToggleEnforceString"in pn&&e(8,L=pn.onToggleEnforceString),"onCut"in pn&&e(9,X=pn.onCut),"onCopy"in pn&&e(10,Z=pn.onCopy),"onPaste"in pn&&e(11,H=pn.onPaste),"onRemove"in pn&&e(12,he=pn.onRemove),"onDuplicate"in pn&&e(13,E=pn.onDuplicate),"onExtract"in pn&&e(14,N=pn.onExtract),"onInsertBefore"in pn&&e(15,F=pn.onInsertBefore),"onInsert"in pn&&e(16,Y=pn.onInsert),"onConvert"in pn&&e(17,V=pn.onConvert),"onInsertAfter"in pn&&e(18,oe=pn.onInsertAfter),"onSort"in pn&&e(19,fe=pn.onSort),"onTransform"in pn&&e(20,Ne=pn.onTransform)},t.$$.update=function(){8&t.$$.dirty[0]&&e(37,i=G.selection),4&t.$$.dirty[0]&&e(39,r=void 0!==$),64&t.$$.dirty[1]&&e(31,o=null!=i),65&t.$$.dirty[1]&&e(21,s=o&&Hi(i.focusPath)),4&t.$$.dirty[0]|65&t.$$.dirty[1]&&e(38,a=o?Sn($,i.focusPath):void 0),128&t.$$.dirty[1]&&e(35,l=Array.isArray(a)?"Edit array":Io(a)?"Edit object":"Edit value"),320&t.$$.dirty[1]&&e(22,c=r&&(Nr(i)||xs(i)||Yi(i))),6291456&t.$$.dirty[0]|256&t.$$.dirty[1]&&e(30,u=r&&c&&!s),2097152&t.$$.dirty[0]|320&t.$$.dirty[1]&&e(29,d=r&&null!=i&&(Nr(i)||Yi(i))&&!s),2097156&t.$$.dirty[0]|320&t.$$.dirty[1]&&e(36,h=r&&null!=i&&zb(i)&&!s&&!Array.isArray(Sn($,Xi(i.focusPath)))),320&t.$$.dirty[1]&&e(34,f=r&&null!=i&&zb(i)),136&t.$$.dirty[1]&&e(32,p=f&&!Ho(a)),4194304&t.$$.dirty[0]&&e(25,m=c),33554432&t.$$.dirty[0]&&e(24,g=m?"Convert to:":"Insert:"),33554432&t.$$.dirty[0]|1&t.$$.dirty[1]&&e(28,v=!m&&o),33554432&t.$$.dirty[0]|193&t.$$.dirty[1]&&e(27,y=m?Lm(i)&&!Io(a):o),33554432&t.$$.dirty[0]|193&t.$$.dirty[1]&&e(26,_=m?Lm(i)&&!Array.isArray(a):o),33554432&t.$$.dirty[0]|193&t.$$.dirty[1]&&e(23,C=m?Lm(i)&&Ho(a):o),24&t.$$.dirty[0]|192&t.$$.dirty[1]&&e(33,S=null!=i&&lf(a,G.enforceStringMap,ln(i.focusPath),R)),2145386496&t.$$.dirty[0]|63&t.$$.dirty[1]&&e(1,M=[{type:"row",items:[{type:"button",onClick:xe,icon:h0,text:"Edit key",title:"Edit the key (Double-click on the key)",disabled:!h},{type:"dropdown-button",main:{type:"button",onClick:tt,icon:h0,text:l,title:"Edit the value (Double-click on the value)",disabled:!f},width:"11em",items:[{type:"button",icon:h0,text:l,title:"Edit the value (Double-click on the value)",onClick:tt,disabled:!f},{type:"button",icon:S?$b:Bb,text:"Enforce string",title:"Enforce keeping the value as string when it contains a numeric value",onClick:ze,disabled:!p}]}]},{type:"separator"},{type:"row",items:[{type:"dropdown-button",main:{type:"button",onClick:ot,icon:d0,text:"Cut",title:"Cut selected contents, formatted with indentation (Ctrl+X)",disabled:!c},width:"10em",items:[{type:"button",icon:d0,text:"Cut formatted",title:"Cut selected contents, formatted with indentation (Ctrl+X)",onClick:ot,disabled:!c},{type:"button",icon:d0,text:"Cut compacted",title:"Cut selected contents, without indentation (Ctrl+Shift+X)",onClick:B,disabled:!c}]},{type:"dropdown-button",main:{type:"button",onClick:ne,icon:sp,text:"Copy",title:"Copy selected contents, formatted with indentation (Ctrl+C)",disabled:!c},width:"12em",items:[{type:"button",icon:sp,text:"Copy formatted",title:"Copy selected contents, formatted with indentation (Ctrl+C)",onClick:ne,disabled:!c},{type:"button",icon:sp,text:"Copy compacted",title:"Copy selected contents, without indentation (Ctrl+Shift+C)",onClick:ie,disabled:!c}]},{type:"button",onClick:Ie,icon:mse,text:"Paste",title:"Paste clipboard contents (Ctrl+V)",disabled:!o}]},{type:"separator"},{type:"row",items:[{type:"column",items:[{type:"button",onClick:Le,icon:wse,text:"Duplicate",title:"Duplicate selected contents (Ctrl+D)",disabled:!u},{type:"button",onClick:_t,icon:wWe,text:"Extract",title:"Extract selected contents",disabled:!d},{type:"button",onClick:_n,icon:Gk,text:"Sort",title:"Sort array or object contents",disabled:!c},{type:"button",onClick:ci,icon:Hk,text:"Transform",title:"Transform array or object contents (filter, sort, project)",disabled:!c},{type:"button",onClick:Ye,icon:XO,text:"Remove",title:"Remove selected contents (Delete)",disabled:!c}]},{type:"column",items:[{type:"label",text:g},{type:"button",onClick:function(){return At("structure")},icon:m?Uk:f0,text:"Structure",title:g+" structure",disabled:!v},{type:"button",onClick:function(){return At("object")},icon:m?Uk:f0,text:"Object",title:g+" structure",disabled:!y},{type:"button",onClick:function(){return At("array")},icon:m?Uk:f0,text:"Array",title:g+" array",disabled:!_},{type:"button",onClick:function(){return At("value")},icon:m?Uk:f0,text:"Value",title:g+" value",disabled:!C}]}]},{type:"separator"},{type:"row",items:[{type:"button",onClick:on,icon:_We,text:"Insert before",title:"Select area before current entry to insert or paste contents",disabled:!c||s},{type:"button",onClick:Ni,icon:vWe,text:"Insert after",title:"Select area after current entry to insert or paste contents",disabled:!c||s}]}])},[z,M,$,G,R,U,q,re,L,X,Z,H,he,E,N,F,Y,V,oe,fe,Ne,s,c,C,g,m,_,y,v,d,u,o,p,S,f,l,h,i,a,r]}var XXe=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,qXe,WXe,Ei,{json:2,documentState:3,parser:4,showTip:0,onCloseContextMenu:5,onEditKey:6,onEditValue:7,onToggleEnforceString:8,onCut:9,onCopy:10,onPaste:11,onRemove:12,onDuplicate:13,onExtract:14,onInsertBefore:15,onInsert:16,onConvert:17,onInsertAfter:18,onSort:19,onTransform:20},null,[-1,-1]),r}return Se(e)}();function YXe(t){pi(t,"svelte-1kai5ns","div.jse-collapsed-items.svelte-1kai5ns.svelte-1kai5ns{font-family:var(--jse-font-family);font-size:var(--jse-font-size);color:var(--jse-collapsed-items-link-color);padding:calc(0.5 * var(--jse-padding));border:8px solid transparent;border-width:8px 0;background-color:var(--jse-contents-background-color);background-image:linear-gradient(var(--jse-collapsed-items-background-color), var(--jse-collapsed-items-background-color)), linear-gradient(to bottom right, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to bottom left, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to top right, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to top left, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%);background-repeat:repeat, repeat-x, repeat-x, repeat-x, repeat-x;background-position:0 0, 8px 0, 8px 0, 8px 100%, 8px 100%;background-size:auto auto, 16px 16px, 16px 16px, 16px 16px, 16px 16px;background-clip:padding-box, border-box, border-box, border-box, border-box;background-origin:padding-box, border-box, border-box, border-box, border-box;display:flex}div.jse-collapsed-items.svelte-1kai5ns div.jse-text.svelte-1kai5ns,div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns{margin:0 calc(0.5 * var(--jse-padding))}div.jse-collapsed-items.svelte-1kai5ns div.jse-text.svelte-1kai5ns{display:inline}div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns{font-family:inherit;font-size:inherit;color:var(--jse-collapsed-items-link-color);background:none;border:none;padding:0;text-decoration:underline;cursor:pointer}div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns:hover,div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns:focus{color:var(--jse-collapsed-items-link-color-highlight)}")}function Kae(t,n,e){var i=t.slice();return i[13]=n[e],i}function Qae(t){var n,e,i,r,o,s,a,l,c=t[13].start+"",u=t[13].end+"";function d(){return t[12](t[13])}return{c:function(){n=be("button"),e=tn("show "),i=tn(c),r=tn("-"),o=tn(u),s=it(),P(n,"type","button"),P(n,"class","jse-expand-items svelte-1kai5ns")},m:function(h,f){Pe(h,n,f),de(n,e),de(n,i),de(n,r),de(n,o),de(n,s),a||(l=Ft(n,"click",d),a=!0)},p:function(h,f){t=h,16&f&&c!==(c=t[13].start+"")&&qn(i,c),16&f&&u!==(u=t[13].end+"")&&qn(o,u)},d:function(h){h&&je(n),a=!1,l()}}}function JXe(t){for(var n,e,i,r,o,s,a,l,c,u,d,h=t[4],f=[],p=0;p=v.end&&_.end<=M.start)&&$.push(_),M.start>=(G?_.end:v.end)&&$.push(M),a=$))},[d,p,o,r,a,s,l,c,u,h,f,i,function(m){return p(d,m)}]}var ZXe=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,QXe,JXe,Ei,{visibleSections:6,sectionIndex:7,total:8,path:0,pointer:9,selection:10,onExpandSection:1},YXe),r}return Se(e)}();function eYe(t){pi(t,"svelte-1yzl4st",".jse-context-menu-pointer.svelte-1yzl4st{position:absolute;top:calc(-0.5 * var(--jse-context-menu-pointer-size));right:calc(-0.5 * var(--jse-context-menu-pointer-size));width:var(--jse-context-menu-pointer-size);height:var(--jse-context-menu-pointer-size);padding:0;margin:0;cursor:pointer;background:transparent;border-radius:2px;background:var(--jse-context-menu-pointer-background);color:var(--jse-context-menu-pointer-color);border:none;box-shadow:var(--jse-controls-box-shadow)}.jse-context-menu-pointer.svelte-1yzl4st:hover{background:var(--jse-context-menu-pointer-background-highlight)}")}function tYe(t){var n,e,i,r,o;return e=new sr({props:{data:ru}}),{c:function(){n=be("button"),mt(e.$$.fragment),P(n,"type","button"),P(n,"class","jse-context-menu-pointer svelte-1yzl4st"),P(n,"title",xN),Mt(n,"jse-selected",t[0])},m:function(s,a){Pe(s,n,a),ft(e,n,null),i=!0,r||(o=Ft(n,"click",t[1]),r=!0)},p:function(s,a){var l=Un(a,1)[0];(!i||1&l)&&Mt(n,"jse-selected",s[0])},i:function(s){i||(Q(e.$$.fragment,s),i=!0)},o:function(s){ce(e.$$.fragment,s),i=!1},d:function(s){s&&je(n),pt(e),r=!1,o()}}}function nYe(t,n,e){var i=n.selected,r=n.onContextMenu;return t.$$set=function(o){"selected"in o&&e(0,i=o.selected),"onContextMenu"in o&&e(2,r=o.onContextMenu)},[i,function(o){for(var s=o.target;s&&"BUTTON"!==s.nodeName;)s=s.parentNode;s&&r({anchor:s,left:0,top:0,width:260,height:336,offsetTop:2,offsetLeft:0,showTip:!0})},r]}var cp=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,nYe,tYe,Ei,{selected:0,onContextMenu:2},eYe),r}return Se(e)}();function iYe(t){pi(t,"svelte-24a1b2",'.jse-key.svelte-24a1b2{display:inline-block;min-width:2em;padding:0 5px;box-sizing:border-box;outline:none;border-radius:1px;vertical-align:top;color:var(--jse-key-color);cursor:var(--jse-contents-cursor);word-break:normal;overflow-wrap:normal;white-space:pre-wrap}.jse-key.svelte-24a1b2:hover{background:var(--jse-hover-background-color)}.jse-key.svelte-24a1b2:hover{background:var(--jse-hover-background-color)}.jse-key.jse-empty.svelte-24a1b2{min-width:3em;outline:1px dotted var(--jse-tag-background);-moz-outline-radius:2px}.jse-key.jse-empty.svelte-24a1b2::after{pointer-events:none;color:var(--jse-tag-background);content:"key"}')}function rYe(t){var n,e,i,r,o,s,a,l=[aYe,sYe],c=[];function u(d,h){return d[1]?0:1}return e=u(t),i=c[e]=l[e](t),{c:function(){n=be("div"),i.c(),P(n,"data-type","selectable-key"),P(n,"class",r=Ao(t[6](t[0]))+" svelte-24a1b2")},m:function(d,h){Pe(d,n,h),c[e].m(n,null),o=!0,s||(a=Ft(n,"dblclick",t[5]),s=!0)},p:function(d,h){var f=e;(e=u(d))===f?c[e].p(d,h):($t(),ce(c[f],1,1,function(){c[f]=null}),Bt(),(i=c[e])?i.p(d,h):(i=c[e]=l[e](d)).c(),Q(i,1),i.m(n,null)),(!o||1&h&&r!==(r=Ao(d[6](d[0]))+" svelte-24a1b2"))&&P(n,"class",r)},i:function(d){o||(Q(i),o=!0)},o:function(d){ce(i),o=!1},d:function(d){d&&je(n),c[e].d(),s=!1,a()}}}function oYe(t){var n,e;return n=new tse({props:{value:t[2].normalization.escapeValue(t[0]),shortText:!0,onChange:t[7],onCancel:t[8],onFind:t[2].onFind}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};5&r&&(o.value=i[2].normalization.escapeValue(i[0])),4&r&&(o.onFind=i[2].onFind),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function sYe(t){var n,e=jm(t[2].normalization.escapeValue(t[0]))+"";return{c:function(){n=tn(e)},m:function(i,r){Pe(i,n,r)},p:function(i,r){5&r&&e!==(e=jm(i[2].normalization.escapeValue(i[0]))+"")&&qn(n,e)},i:Lt,o:Lt,d:function(i){i&&je(n)}}}function aYe(t){var n,e;return n=new pse({props:{text:t[2].normalization.escapeValue(t[0]),searchResultItems:t[1]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};5&r&&(o.text=i[2].normalization.escapeValue(i[0])),2&r&&(o.searchResultItems=i[1]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function ele(t){var n,e;return n=new cp({props:{selected:!0,onContextMenu:t[2].onContextMenu}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};4&r&&(o.onContextMenu=i[2].onContextMenu),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function lYe(t){var n,e,i,r,o,s=[oYe,rYe],a=[];function l(u,d){return u[4]?0:1}n=l(t),e=a[n]=s[n](t);var c=!t[2].readOnly&&t[3]&&!t[4]&&ele(t);return{c:function(){e.c(),i=it(),c&&c.c(),r=_r()},m:function(u,d){a[n].m(u,d),Pe(u,i,d),c&&c.m(u,d),Pe(u,r,d),o=!0},p:function(u,d){var h=Un(d,1)[0],f=n;(n=l(u))===f?a[n].p(u,h):($t(),ce(a[f],1,1,function(){a[f]=null}),Bt(),(e=a[n])?e.p(u,h):(e=a[n]=s[n](u)).c(),Q(e,1),e.m(i.parentNode,i)),u[2].readOnly||!u[3]||u[4]?c&&($t(),ce(c,1,1,function(){c=null}),Bt()):c?(c.p(u,h),28&h&&Q(c,1)):((c=ele(u)).c(),Q(c,1),c.m(r.parentNode,r))},i:function(u){o||(Q(e),Q(c),o=!0)},o:function(u){ce(e),ce(c),o=!1},d:function(u){a[n].d(u),u&&je(i),c&&c.d(u),u&&je(r)}}}function cYe(t,n,e){var i,r,o=n.path,s=n.pointer,a=n.key,l=n.selection,c=n.searchResultItems,u=n.onUpdateKey,d=n.context;return t.$$set=function(h){"path"in h&&e(9,o=h.path),"pointer"in h&&e(10,s=h.pointer),"key"in h&&e(0,a=h.key),"selection"in h&&e(11,l=h.selection),"searchResultItems"in h&&e(1,c=h.searchResultItems),"onUpdateKey"in h&&e(12,u=h.onUpdateKey),"context"in h&&e(2,d=h.context)},t.$$.update=function(){3072&t.$$.dirty&&e(3,i=l?!0===l.pointersMap[s]&&xs(l):void 0),2056&t.$$.dirty&&e(4,r=i&&ip(l))},[a,c,d,i,r,function(h){r||d.readOnly||(h.preventDefault(),d.onSelect(iu(o,!0)))},function(h){return ah("jse-key",{"jse-empty":""===h})},function(h,f){var p=u(a,d.normalization.unescapeValue(h)),m=Xi(o).concat(p);d.onSelect(f===CN?mr(m,!1):iu(m,!1)),f!==wN&&d.focus()},function(){d.onSelect(iu(o,!1)),d.focus()},o,s,l,u]}var uYe=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,cYe,lYe,Ei,{path:9,pointer:10,key:0,selection:11,searchResultItems:1,onUpdateKey:12,context:2},iYe),r}return Se(e)}();function tle(t,n,e){var i=t.slice();return i[8]=n[e],i}function nle(t){var n,e,i,r=[t[8].props],o=t[8].component;function s(a){for(var l={},c=0;cy+g()/2;)y+=g(),v-=1;return v!==m&&void 0!==d[v]?{beforePath:d[v].path,offset:v-m}:void 0}({json:n,selection:o,deltaY:i,items:r}):function(u){for(var d,h=u.json,f=u.items,m=u.deltaY,g=$k(u.selection),v=f.findIndex(function(z){return or(z.path,g)}),y=0,_=v,C=function(){var z;return null===(z=f[_+1])||void 0===z?void 0:z.height};void 0!==C()&&Math.abs(m)>y+C()/2;)y+=C(),_+=1;var M=Sn(h,Xi(g)),$=Array.isArray(M),G=null===(d=f[$?_:_+1])||void 0===d?void 0:d.path,R=_-v;return G?{beforePath:G,offset:R}:{append:!0,offset:R}}({json:n,selection:o,deltaY:i,items:r});if(!s||0===s.offset)return{operations:void 0,updatedSelection:void 0,offset:0};var u,d,h,f,p,m,g,v,y,_,C,a=function(u,d,h){if(!d)return[];var f="beforePath"in h?h.beforePath:void 0,p="append"in h?h.append:void 0,m=Xi(d.focusPath),g=Sn(u,m);if(!(p||f&&l0(f,m)&&f.length>m.length))return[];var v=o0(d),y=$k(d),_=Ln(v),C=Ln(y),S=f?f[m.length]:void 0;if(!Mo(g)){if(oo(g)){var M=Ws(_),$=Ws(C),G=void 0!==S?Ws(S):g.length;return vO($-M+1,Gz?[].concat(si(R.slice(z,U+1)),si(R.slice(q,R.length))).map(function(re){return Rm(m,re)}):[].concat(si(R.slice(q,z)),si(R.slice(U+1,R.length))).map(function(re){return Rm(m,re)}):[]}(n,o,s),l=Sn(n,Xi(o0(o)));return Array.isArray(l)?{operations:a,updatedSelection:(f=(u={items:r,json:n,selection:o,offset:s.offset}).items,p=u.json,g=u.offset,v=o0(m=u.selection),y=$k(m),_=f.findIndex(function($){return or($.path,v)}),C=f.findIndex(function($){return or($.path,y)}),Os(p,null===(d=f[_+g])||void 0===d?void 0:d.path,null===(h=f[C+g])||void 0===h?void 0:h.path)),offset:s.offset}:{operations:a,updatedSelection:void 0,offset:s.offset}}function uh(t,n){return function(e,i){if(e){for(var r={},o=0,s=Object.keys(e);o0?r:void 0}}(t,function(e){return Iv(e,n)})}function mYe(t){pi(t,"svelte-pz3g1j","button.jse-validation-error.svelte-pz3g1j{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;padding:0;margin:0;vertical-align:top;display:inline-flex;color:var(--jse-warning-color)}")}function gYe(t){var n,e,i,r,o,s;return e=new sr({props:{data:$m}}),{c:function(){n=be("button"),mt(e.$$.fragment),P(n,"type","button"),P(n,"class","jse-validation-error svelte-pz3g1j")},m:function(a,l){Pe(a,n,l),ft(e,n,null),r=!0,o||(s=[Ft(n,"click",function(){ba(t[0])&&t[0].apply(this,arguments)}),_a(i=qO.call(null,n,Ze({text:t[1]},t[2])))],o=!0)},p:function(a,l){var c=Un(l,1)[0];t=a,i&&ba(i.update)&&2&c&&i.update.call(null,Ze({text:t[1]},t[2]))},i:function(a){r||(Q(e.$$.fragment,a),r=!0)},o:function(a){ce(e.$$.fragment,a),r=!1},d:function(a){a&&je(n),pt(e),o=!1,ho(s)}}}function vYe(t,n,e){var i,r=xa("absolute-popup"),o=n.validationError,s=n.onExpand;return t.$$set=function(a){"validationError"in a&&e(3,o=a.validationError),"onExpand"in a&&e(0,s=a.onExpand)},t.$$.update=function(){8&t.$$.dirty&&e(1,i=o.isChildError?"Contains invalid data":o.message)},[s,i,r,o]}var _0=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,vYe,gYe,ys,{validationError:3,onExpand:0},mYe),r}return Se(e)}();function yYe(t){pi(t,"svelte-1wlxti1",".jse-json-node.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative;color:var(--jse-text-color)}.jse-json-node.jse-root.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{min-height:100%;padding-bottom:2px;box-sizing:border-box}.jse-json-node.jse-root.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1 .jse-context-menu-pointer,.jse-json-node.jse-root.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1 .jse-context-menu-pointer{top:0;right:calc(-2px - var(--jse-context-menu-pointer-size))}.jse-json-node.jse-root.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1.svelte-1wlxti1{padding-left:0}.jse-json-node.svelte-1wlxti1 .jse-props.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-items.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-header-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-footer-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-header .jse-meta.svelte-1wlxti1>.jse-meta-inner.svelte-1wlxti1.svelte-1wlxti1{display:flex;justify-content:center}.jse-json-node.svelte-1wlxti1 .jse-contents-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;flex-direction:row;align-items:start}.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding-left:var(--jse-indent-size)}.jse-json-node.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:inline-flex;padding-left:calc(var(--jse-indent-size) + 5px)}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-contents-background-color)}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{visibility:hidden;padding:0 calc(0.5 * var(--jse-padding));flex:1}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.jse-inside.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:inline-flex;align-items:center}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.jse-after.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;align-items:flex-end}.jse-json-node.svelte-1wlxti1 .jse-context-menu-pointer-anchor.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-insert-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;position:relative;z-index:1;max-width:250px;min-width:100px;height:0;margin-right:calc(0.5 * var(--jse-padding));outline:1px solid}.jse-json-node.svelte-1wlxti1 .jse-insert-area.svelte-1wlxti1 .jse-context-menu-pointer{right:-1px;background:var(--jse-context-menu-pointer-hover-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-hovered.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{outline-color:var(--jse-context-menu-pointer-hover-background)}.jse-json-node.svelte-1wlxti1:hover>.jse-contents-outer .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected),.jse-json-node.svelte-1wlxti1 .jse-header-outer.svelte-1wlxti1:hover>.jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected),.jse-json-node.svelte-1wlxti1 .jse-footer-outer:hover .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected){visibility:visible}.jse-json-node.jse-hovered.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-hover-background-color)}.jse-json-node.jse-selected.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-selected.svelte-1wlxti1 .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-selection-background-color)}.jse-json-node.jse-selected-key.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1>.jse-identifier>.jse-key,.jse-json-node.jse-selected-key.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-identifier>.jse-key{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1>.jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.svelte-1wlxti1 .jse-collapsed-items.jse-selected,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-collapsed-items,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-collapsed-items{background-color:var(--jse-selection-background-color);--jse-collapsed-items-background-color:var(--jse-collapsed-items-selected-background-color)}.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-selection-background-color)}.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1 .jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-readonly.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{--jse-contents-selected-cursor:pointer}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{outline-color:var(--jse-context-menu-pointer-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1 .jse-context-menu-pointer{background:var(--jse-context-menu-pointer-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1 .jse-context-menu-pointer:hover{background:var(--jse-context-menu-pointer-background-highlight)}.jse-main:not(.jse-focus) .jse-json-node.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{--jse-selection-background-color:var(--jse-selection-background-inactive-color);--jse-context-menu-pointer-background:var(--jse-context-menu-pointer-hover-background)}.jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{width:var(--jse-indent-size);padding:0;margin:0;border:none;cursor:pointer;background:transparent;color:var(--jse-delimiter-color);font-size:var(--jse-font-size-mono);height:var(--jse-line-height)}.jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:hover{opacity:0.8}.jse-meta.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-separator.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-index.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-bracket.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{vertical-align:top;color:var(--jse-delimiter-color)}.jse-index.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding:0 calc(0.5 * var(--jse-padding))}.jse-bracket.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding:0 2px}.jse-bracket.jse-expanded.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding-right:var(--jse-padding)}.jse-tag.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{border:none;font-size:80%;font-family:var(--jse-font-family);color:var(--jse-tag-color);background:var(--jse-tag-background);border-radius:2px;cursor:pointer;display:inline-block;padding:0 4px;line-height:normal;margin:1px 0}.jse-tag.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:hover{opacity:0.8}.jse-tag.jse-expanded.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{opacity:0.7;cursor:inherit}.jse-identifier.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{vertical-align:top;position:relative}")}var bYe=function(t){return{}},ile=function(t){return{}};function rle(t,n,e){var i=t.slice();return i[53]=n[e],i}var _Ye=function(t){return{}},ole=function(t){return{}};function sle(t,n,e){var i=t.slice();return i[47]=n[e],i[49]=e,i}function ale(t,n,e){var i=t.slice();return i[50]=n[e],i}var xYe=function(t){return{}},lle=function(t){return{}};function wYe(t){var n,e,i,r,o,s,a,l,c,u=!t[8].readOnly&&t[16]&&t[7]&&(Yi(t[7])||Nr(t[7]))&&!t[7].edit&&or(t[7].focusPath,t[1]),d=t[34].identifier,h=Ms(d,t,t[35],ile),f=!t[17]&&cle();o=new pYe({props:{path:t[1],value:t[0],enforceString:t[13],selection:t[16]?t[7]:void 0,searchResultItems:dse(t[6],t[9]),context:t[8]}});var p=u&&ule(t),m=t[15]&&dle(t),g=!t[17]&&hle(t);return{c:function(){n=be("div"),e=be("div"),h&&h.c(),i=it(),f&&f.c(),r=it(),mt(o.$$.fragment),s=it(),p&&p.c(),a=it(),m&&m.c(),l=it(),g&&g.c(),P(e,"class","jse-contents svelte-1wlxti1"),P(n,"class","jse-contents-outer svelte-1wlxti1"),P(n,"style",t[18])},m:function(v,y){Pe(v,n,y),de(n,e),h&&h.m(e,null),de(e,i),f&&f.m(e,null),de(e,r),ft(o,e,null),de(e,s),p&&p.m(e,null),de(n,a),m&&m.m(n,null),de(n,l),g&&g.m(n,null),c=!0},p:function(v,y){h&&h.p&&(!c||16&y[1])&&Ns(h,d,v,v[35],c?Is(d,v[35],y,bYe):Fs(v[35]),ile),v[17]?f&&(f.d(1),f=null):f||((f=cle()).c(),f.m(e,r));var _={};2&y[0]&&(_.path=v[1]),1&y[0]&&(_.value=v[0]),8192&y[0]&&(_.enforceString=v[13]),65664&y[0]&&(_.selection=v[16]?v[7]:void 0),576&y[0]&&(_.searchResultItems=dse(v[6],v[9])),256&y[0]&&(_.context=v[8]),o.$set(_),65922&y[0]&&(u=!v[8].readOnly&&v[16]&&v[7]&&(Yi(v[7])||Nr(v[7]))&&!v[7].edit&&or(v[7].focusPath,v[1])),u?p?(p.p(v,y),65922&y[0]&&Q(p,1)):((p=ule(v)).c(),Q(p,1),p.m(e,null)):p&&($t(),ce(p,1,1,function(){p=null}),Bt()),v[15]?m?(m.p(v,y),32768&y[0]&&Q(m,1)):((m=dle(v)).c(),Q(m,1),m.m(n,l)):m&&($t(),ce(m,1,1,function(){m=null}),Bt()),v[17]?g&&(g.d(1),g=null):g?g.p(v,y):((g=hle(v)).c(),g.m(n,null)),(!c||262144&y[0])&&P(n,"style",v[18])},i:function(v){c||(Q(h,v),Q(o.$$.fragment,v),Q(p),Q(m),c=!0)},o:function(v){ce(h,v),ce(o.$$.fragment,v),ce(p),ce(m),c=!1},d:function(v){v&&je(n),h&&h.d(v),f&&f.d(),pt(o),p&&p.d(),m&&m.d(),g&&g.d()}}}function CYe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_=!t[8].readOnly&&t[16]&&t[7]&&(Yi(t[7])||Nr(t[7]))&&!t[7].edit&&or(t[7].focusPath,t[1]),C=[DYe,SYe],S=[];function M(E,N){return E[12]?0:1}r=M(t),o=S[r]=C[r](t);var $=t[34].identifier,G=Ms($,t,t[35],ole),R=!t[17]&&fle();function z(E,N){return E[12]?EYe:TYe}var U=z(t),q=U(t),re=_&&ple(t),L=t[15]&&(!t[12]||!t[15].isChildError)&&mle(t);function X(E,N){return E[12]?MYe:E[17]?void 0:AYe}var Z=X(t),H=Z&&Z(t),he=t[12]&&gle(t);return{c:function(){n=be("div"),e=be("div"),i=be("button"),o.c(),s=it(),G&&G.c(),a=it(),R&&R.c(),l=it(),c=be("div"),u=be("div"),q.c(),d=it(),re&&re.c(),h=it(),L&&L.c(),f=it(),H&&H.c(),p=it(),he&&he.c(),m=_r(),P(i,"type","button"),P(i,"class","jse-expand svelte-1wlxti1"),P(i,"title","Expand or collapse this object (Ctrl+Click to expand/collapse recursively)"),P(u,"class","jse-meta-inner svelte-1wlxti1"),P(c,"class","jse-meta svelte-1wlxti1"),P(c,"data-type","selectable-value"),P(e,"class","jse-header svelte-1wlxti1"),P(n,"class","jse-header-outer svelte-1wlxti1"),P(n,"style",t[18])},m:function(E,N){Pe(E,n,N),de(n,e),de(e,i),S[r].m(i,null),de(e,s),G&&G.m(e,null),de(e,a),R&&R.m(e,null),de(e,l),de(e,c),de(c,u),q.m(u,null),de(e,d),re&&re.m(e,null),de(n,h),L&&L.m(n,null),de(n,f),H&&H.m(n,null),Pe(E,p,N),he&&he.m(E,N),Pe(E,m,N),g=!0,v||(y=Ft(i,"click",t[21]),v=!0)},p:function(E,N){var F=r;(r=M(E))===F?S[r].p(E,N):($t(),ce(S[F],1,1,function(){S[F]=null}),Bt(),(o=S[r])?o.p(E,N):(o=S[r]=C[r](E)).c(),Q(o,1),o.m(i,null)),G&&G.p&&(!g||16&N[1])&&Ns(G,$,E,E[35],g?Is($,E[35],N,_Ye):Fs(E[35]),ole),E[17]?R&&(R.d(1),R=null):R||((R=fle()).c(),R.m(e,l)),U===(U=z(E))&&q?q.p(E,N):(q.d(1),(q=U(E))&&(q.c(),q.m(u,null))),65922&N[0]&&(_=!E[8].readOnly&&E[16]&&E[7]&&(Yi(E[7])||Nr(E[7]))&&!E[7].edit&&or(E[7].focusPath,E[1])),_?re?(re.p(E,N),65922&N[0]&&Q(re,1)):((re=ple(E)).c(),Q(re,1),re.m(e,null)):re&&($t(),ce(re,1,1,function(){re=null}),Bt()),!E[15]||E[12]&&E[15].isChildError?L&&($t(),ce(L,1,1,function(){L=null}),Bt()):L?(L.p(E,N),36864&N[0]&&Q(L,1)):((L=mle(E)).c(),Q(L,1),L.m(n,f)),Z===(Z=X(E))&&H?H.p(E,N):(H&&H.d(1),(H=Z&&Z(E))&&(H.c(),H.m(n,null))),(!g||262144&N[0])&&P(n,"style",E[18]),E[12]?he?(he.p(E,N),4096&N[0]&&Q(he,1)):((he=gle(E)).c(),Q(he,1),he.m(m.parentNode,m)):he&&($t(),ce(he,1,1,function(){he=null}),Bt())},i:function(E){g||(Q(o),Q(G,E),Q(re),Q(L),Q(he),g=!0)},o:function(E){ce(o),ce(G,E),ce(re),ce(L),ce(he),g=!1},d:function(E){E&&je(n),S[r].d(),G&&G.d(E),R&&R.d(),q.d(),re&&re.d(),L&&L.d(),H&&H.d(),E&&je(p),he&&he.d(E),E&&je(m),v=!1,y()}}}function kYe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_=!t[8].readOnly&&t[16]&&t[7]&&(Yi(t[7])||Nr(t[7]))&&!t[7].edit&&or(t[7].focusPath,t[1]),C=[FYe,NYe],S=[];function M(E,N){return E[12]?0:1}r=M(t),o=S[r]=C[r](t);var $=t[34].identifier,G=Ms($,t,t[35],lle),R=!t[17]&&_le();function z(E,N){return E[12]?jYe:OYe}var U=z(t),q=U(t),re=_&&xle(t),L=t[15]&&(!t[12]||!t[15].isChildError)&&wle(t);function X(E,N){return E[12]?LYe:PYe}var Z=X(t),H=Z(t),he=t[12]&&Cle(t);return{c:function(){n=be("div"),e=be("div"),i=be("button"),o.c(),s=it(),G&&G.c(),a=it(),R&&R.c(),l=it(),c=be("div"),u=be("div"),q.c(),d=it(),re&&re.c(),h=it(),L&&L.c(),f=it(),H.c(),p=it(),he&&he.c(),m=_r(),P(i,"type","button"),P(i,"class","jse-expand svelte-1wlxti1"),P(i,"title","Expand or collapse this array (Ctrl+Click to expand/collapse recursively)"),P(u,"class","jse-meta-inner svelte-1wlxti1"),P(u,"data-type","selectable-value"),P(c,"class","jse-meta svelte-1wlxti1"),P(e,"class","jse-header svelte-1wlxti1"),P(n,"class","jse-header-outer svelte-1wlxti1"),P(n,"style",t[18])},m:function(E,N){Pe(E,n,N),de(n,e),de(e,i),S[r].m(i,null),de(e,s),G&&G.m(e,null),de(e,a),R&&R.m(e,null),de(e,l),de(e,c),de(c,u),q.m(u,null),de(e,d),re&&re.m(e,null),de(n,h),L&&L.m(n,null),de(n,f),H.m(n,null),Pe(E,p,N),he&&he.m(E,N),Pe(E,m,N),g=!0,v||(y=Ft(i,"click",t[21]),v=!0)},p:function(E,N){var F=r;(r=M(E))===F?S[r].p(E,N):($t(),ce(S[F],1,1,function(){S[F]=null}),Bt(),(o=S[r])?o.p(E,N):(o=S[r]=C[r](E)).c(),Q(o,1),o.m(i,null)),G&&G.p&&(!g||16&N[1])&&Ns(G,$,E,E[35],g?Is($,E[35],N,xYe):Fs(E[35]),lle),E[17]?R&&(R.d(1),R=null):R||((R=_le()).c(),R.m(e,l)),U===(U=z(E))&&q?q.p(E,N):(q.d(1),(q=U(E))&&(q.c(),q.m(u,null))),65922&N[0]&&(_=!E[8].readOnly&&E[16]&&E[7]&&(Yi(E[7])||Nr(E[7]))&&!E[7].edit&&or(E[7].focusPath,E[1])),_?re?(re.p(E,N),65922&N[0]&&Q(re,1)):((re=xle(E)).c(),Q(re,1),re.m(e,null)):re&&($t(),ce(re,1,1,function(){re=null}),Bt()),!E[15]||E[12]&&E[15].isChildError?L&&($t(),ce(L,1,1,function(){L=null}),Bt()):L?(L.p(E,N),36864&N[0]&&Q(L,1)):((L=wle(E)).c(),Q(L,1),L.m(n,f)),Z===(Z=X(E))&&H?H.p(E,N):(H.d(1),(H=Z(E))&&(H.c(),H.m(n,null))),(!g||262144&N[0])&&P(n,"style",E[18]),E[12]?he?(he.p(E,N),4096&N[0]&&Q(he,1)):((he=Cle(E)).c(),Q(he,1),he.m(m.parentNode,m)):he&&($t(),ce(he,1,1,function(){he=null}),Bt())},i:function(E){g||(Q(o),Q(G,E),Q(re),Q(L),Q(he),g=!0)},o:function(E){ce(o),ce(G,E),ce(re),ce(L),ce(he),g=!1},d:function(E){E&&je(n),S[r].d(),G&&G.d(E),R&&R.d(),q.d(),re&&re.d(),L&&L.d(),H.d(),E&&je(p),he&&he.d(E),E&&je(m),v=!1,y()}}}function cle(t){var n;return{c:function(){(n=be("div")).textContent=":",P(n,"class","jse-separator svelte-1wlxti1")},m:function(e,i){Pe(e,n,i)},d:function(e){e&&je(n)}}}function ule(t){var n,e,i;return e=new cp({props:{selected:!0,onContextMenu:t[8].onContextMenu}}),{c:function(){n=be("div"),mt(e.$$.fragment),P(n,"class","jse-context-menu-pointer-anchor svelte-1wlxti1")},m:function(r,o){Pe(r,n,o),ft(e,n,null),i=!0},p:function(r,o){var s={};256&o[0]&&(s.onContextMenu=r[8].onContextMenu),e.$set(s)},i:function(r){i||(Q(e.$$.fragment,r),i=!0)},o:function(r){ce(e.$$.fragment,r),i=!1},d:function(r){r&&je(n),pt(e)}}}function dle(t){var n,e;return n=new _0({props:{validationError:t[15],onExpand:t[22]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};32768&r[0]&&(o.validationError=i[15]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function hle(t){var n,e,i;return{c:function(){P(n=be("div"),"class","jse-insert-selection-area jse-after svelte-1wlxti1"),P(n,"data-type","insert-selection-area-after")},m:function(r,o){Pe(r,n,o),e||(i=Ft(n,"click",t[30]),e=!0)},p:Lt,d:function(r){r&&je(n),e=!1,i()}}}function SYe(t){var n,e;return n=new sr({props:{data:rp}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:Lt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function DYe(t){var n,e;return n=new sr({props:{data:ru}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:Lt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function fle(t){var n;return{c:function(){(n=be("div")).textContent=":",P(n,"class","jse-separator svelte-1wlxti1")},m:function(e,i){Pe(e,n,i)},d:function(e){e&&je(n)}}}function TYe(t){var n,e,i,r,o,s,a,l,c,u,d=Object.keys(t[0]).length+"",h=1===Object.keys(t[0]).length?"prop":"props";return{c:function(){(n=be("div")).textContent="{",e=it(),i=be("button"),r=tn(d),o=it(),s=tn(h),a=it(),(l=be("div")).textContent="}",P(n,"class","jse-bracket svelte-1wlxti1"),P(i,"type","button"),P(i,"class","jse-tag svelte-1wlxti1"),P(l,"class","jse-bracket svelte-1wlxti1")},m:function(f,p){Pe(f,n,p),Pe(f,e,p),Pe(f,i,p),de(i,r),de(i,o),de(i,s),Pe(f,a,p),Pe(f,l,p),c||(u=Ft(i,"click",t[22]),c=!0)},p:function(f,p){1&p[0]&&d!==(d=Object.keys(f[0]).length+"")&&qn(r,d),1&p[0]&&h!==(h=1===Object.keys(f[0]).length?"prop":"props")&&qn(s,h)},d:function(f){f&&je(n),f&&je(e),f&&je(i),f&&je(a),f&&je(l),c=!1,u()}}}function EYe(t){var n;return{c:function(){(n=be("div")).textContent="{",P(n,"class","jse-bracket jse-expanded svelte-1wlxti1")},m:function(e,i){Pe(e,n,i)},p:Lt,d:function(e){e&&je(n)}}}function ple(t){var n,e,i;return e=new cp({props:{selected:!0,onContextMenu:t[8].onContextMenu}}),{c:function(){n=be("div"),mt(e.$$.fragment),P(n,"class","jse-context-menu-pointer-anchor svelte-1wlxti1")},m:function(r,o){Pe(r,n,o),ft(e,n,null),i=!0},p:function(r,o){var s={};256&o[0]&&(s.onContextMenu=r[8].onContextMenu),e.$set(s)},i:function(r){i||(Q(e.$$.fragment,r),i=!0)},o:function(r){ce(e.$$.fragment,r),i=!1},d:function(r){r&&je(n),pt(e)}}}function mle(t){var n,e;return n=new _0({props:{validationError:t[15],onExpand:t[22]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};32768&r[0]&&(o.validationError=i[15]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function AYe(t){var n,e,i;return{c:function(){P(n=be("div"),"class","jse-insert-selection-area jse-after svelte-1wlxti1"),P(n,"data-type","insert-selection-area-after")},m:function(r,o){Pe(r,n,o),e||(i=Ft(n,"click",t[30]),e=!0)},p:Lt,d:function(r){r&&je(n),e=!1,i()}}}function MYe(t){var n,e,i;return{c:function(){P(n=be("div"),"class","jse-insert-selection-area jse-inside svelte-1wlxti1"),P(n,"data-type","insert-selection-area-inside")},m:function(r,o){Pe(r,n,o),e||(i=Ft(n,"click",t[29]),e=!0)},p:Lt,d:function(r){r&&je(n),e=!1,i()}}}function gle(t){for(var n,e,i,r,o,s,a,l=!t[8].readOnly&&("hover-insert-inside"===t[10]||t[16]&&Xs(t[7])),c=l&&vle(t),u=t[19](t[1],t[0],t[2],t[3],t[4],t[5],t[6],t[7],t[11]),d=[],h=0;h}',s=it(),p&&p.c(),P(n,"class","jse-props svelte-1wlxti1"),P(o,"data-type","selectable-value"),P(o,"class","jse-footer svelte-1wlxti1"),P(r,"class","jse-footer-outer svelte-1wlxti1"),P(r,"style",t[18])},m:function(m,g){Pe(m,n,g),c&&c.m(n,null),de(n,e);for(var v=0;v]',s=it(),v&&v.c(),P(n,"class","jse-items svelte-1wlxti1"),P(o,"data-type","selectable-value"),P(o,"class","jse-footer svelte-1wlxti1"),P(r,"class","jse-footer-outer svelte-1wlxti1"),P(r,"style",t[18])},m:function(y,_){Pe(y,n,_),d&&d.m(n,null),de(n,e);for(var C=0;C=Le.start&&ne<=Le.end});if(!ie)return null;toe(ie.start,Math.min(p.length,ie.end),function(Le){return tt(String(Le))})}else Object.keys(p).forEach(tt);return xe}(S,l||wm);if(G("dragSelectionStart",{selection:S,items:F}),F){var Y=o0(S),V=F.findIndex(function(fe){return or(fe.path,Y)}),oe=f4({json:M.getJson(),documentState:M.getDocumentState(),deltaY:0,items:F}).offset;e(11,U={initialTarget:E.target,initialClientY:E.clientY,initialContentTop:X(),selectionStartIndex:V,selectionItemsCount:Qoe(S).length,items:F,offset:oe,didMoveItems:!1}),aa.dragging=!0,document.addEventListener("mousemove",H,!0),document.addEventListener("mouseup",he)}else G("Cannot drag the current selection (probably spread over multiple sections)")}else $(E)}},function(E){aa.selecting||aa.dragging||(E.stopPropagation(),Pm(E.target,"data-type","selectable-value")?e(10,R="hover-collection"):Pm(E.target,"data-type","insert-selection-area-inside")?e(10,R="hover-insert-inside"):Pm(E.target,"data-type","insert-selection-area-after")&&e(10,R="hover-insert-after"),clearTimeout(z))},function(E){E.stopPropagation(),z=setTimeout(function(){return e(10,R=void 0)})},function(E){E.shiftKey||(E.stopPropagation(),E.preventDefault(),M.onSelect(cf(m)))},function(E){E.shiftKey||(E.stopPropagation(),E.preventDefault(),M.onSelect(uf(m)))},function(E){M.onSelect(cf(m)),M.onContextMenu(E)},function(E){M.onSelect(uf(m)),M.onContextMenu(E)},$,h,f]}var p4=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,BYe,$Ye,Ei,{value:0,path:1,expandedMap:2,enforceStringMap:3,visibleSectionsMap:4,validationErrorsMap:5,searchResultItemsMap:6,selection:7,context:8,onDragSelectionStart:33},yYe,[-1,-1]),r}return Se(e)}(),VYe=p4,HYe={prefix:"fas",iconName:"jsoneditor-expand",icon:[512,512,[],"","M 0,448 V 512 h 512 v -64 z M 0,0 V 64 H 512 V 0 Z M 256,96 128,224 h 256 z M 256,416 384,288 H 128 Z"]},zYe={prefix:"fas",iconName:"jsoneditor-collapse",icon:[512,512,[],"","m 0,224 v 64 h 512 v -64 z M 256,192 384,64 H 128 Z M 256,320 128,448 h 256 z"]},m4={prefix:"fas",iconName:"jsoneditor-format",icon:[512,512,[],"","M 0,32 v 64 h 416 v -64 z M 160,160 v 64 h 352 v -64 z M 160,288 v 64 h 288 v -64 z M 0,416 v 64 h 320 v -64 z"]},UYe={prefix:"fas",iconName:"jsoneditor-compact",icon:[512,512,[],"","M 0,32 v 64 h 512 v -64 z M 0,160 v 64 h 512 v -64 z M 0,288 v 64 h 352 v -64 z"]};function GYe(t){var n,e;return n=new nS({props:{items:t[0]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};1&Un(r,1)[0]&&(o.items=i[0]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function WYe(t,n,e){var i,r,o,s,a,l,c,u=n.json,d=n.selection,h=n.readOnly,f=n.showSearch,p=void 0!==f&&f,m=n.historyState,g=n.onExpandAll,v=n.onCollapseAll,y=n.onUndo,_=n.onRedo,C=n.onSort,S=n.onTransform,M=n.onContextMenu,$=n.onCopy,G=n.onRenderMenu;function R(){e(1,p=!p)}return t.$$set=function(z){"json"in z&&e(2,u=z.json),"selection"in z&&e(3,d=z.selection),"readOnly"in z&&e(4,h=z.readOnly),"showSearch"in z&&e(1,p=z.showSearch),"historyState"in z&&e(5,m=z.historyState),"onExpandAll"in z&&e(6,g=z.onExpandAll),"onCollapseAll"in z&&e(7,v=z.onCollapseAll),"onUndo"in z&&e(8,y=z.onUndo),"onRedo"in z&&e(9,_=z.onRedo),"onSort"in z&&e(10,C=z.onSort),"onTransform"in z&&e(11,S=z.onTransform),"onContextMenu"in z&&e(12,M=z.onContextMenu),"onCopy"in z&&e(13,$=z.onCopy),"onRenderMenu"in z&&e(14,G=z.onRenderMenu)},t.$$.update=function(){4&t.$$.dirty&&e(20,i=void 0!==u),1048584&t.$$.dirty&&e(19,r=i&&(Nr(d)||xs(d)||Yi(d))),68&t.$$.dirty&&e(15,s={type:"button",icon:HYe,title:"Expand all",className:"jse-expand-all",onClick:g,disabled:!Ho(u)}),132&t.$$.dirty&&e(16,a={type:"button",icon:zYe,title:"Collapse all",className:"jse-collapse-all",onClick:v,disabled:!Ho(u)}),4&t.$$.dirty&&e(17,l={type:"button",icon:KO,title:"Search (Ctrl+F)",className:"jse-search",onClick:R,disabled:void 0===u}),769844&t.$$.dirty&&e(18,c=h?[s,a,{type:"separator"},{type:"button",icon:sp,title:"Copy (Ctrl+C)",className:"jse-copy",onClick:$,disabled:!r},{type:"separator"},l,{type:"space"}]:[s,a,{type:"separator"},{type:"button",icon:Gk,title:"Sort",className:"jse-sort",onClick:C,disabled:h||void 0===u},{type:"button",icon:Hk,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:S,disabled:h||void 0===u},l,{type:"button",icon:bse,title:xN,className:"jse-contextmenu",onClick:M},{type:"separator"},{type:"button",icon:JO,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:y,disabled:!m.canUndo},{type:"button",icon:YO,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:_,disabled:!m.canRedo},{type:"space"}]),278528&t.$$.dirty&&e(0,o=G(c)||c)},[o,p,u,d,h,m,g,v,y,_,C,S,M,$,G,s,a,l,c,r,i]}var qYe=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,WYe,GYe,Ei,{json:2,selection:3,readOnly:4,showSearch:1,historyState:5,onExpandAll:6,onCollapseAll:7,onUndo:8,onRedo:9,onSort:10,onTransform:11,onContextMenu:12,onCopy:13,onRenderMenu:14}),r}return Se(e)}();function XYe(t){pi(t,"svelte-1q2qkk2",'@charset "UTF-8";.jse-welcome.svelte-1q2qkk2.svelte-1q2qkk2{flex:1;overflow:auto;font-family:var(--jse-font-family);font-size:var(--jse-font-size);display:flex;flex-direction:column;align-items:center;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-welcome.svelte-1q2qkk2.svelte-1q2qkk2:last-child{border-bottom:var(--jse-main-border)}.jse-welcome.svelte-1q2qkk2 .jse-space.jse-before.svelte-1q2qkk2{flex:1}.jse-welcome.svelte-1q2qkk2 .jse-space.jse-after.svelte-1q2qkk2{flex:2}.jse-welcome.svelte-1q2qkk2 .jse-contents.svelte-1q2qkk2{margin:2em var(--jse-padding) 0;color:var(--jse-panel-color-readonly)}.jse-welcome.svelte-1q2qkk2 .jse-contents ul.svelte-1q2qkk2{list-style:"\u25cf";list-style-position:outside;padding-left:20px}.jse-welcome.svelte-1q2qkk2 .jse-contents ul li.svelte-1q2qkk2{padding-left:10px}.jse-welcome.svelte-1q2qkk2 .jse-contents ul li span.jse-bold.svelte-1q2qkk2{font-family:var(--jse-font-family-mono);font-weight:bold}')}function Mle(t){var n;return{c:function(){(n=be("ul")).innerHTML='
  • Click inside the editor
  • \n
  • Paste clipboard data using Ctrl+V
  • \n
  • Create a new object by typing {
  • \n
  • Create a new array by typing [
  • ',P(n,"class","svelte-1q2qkk2")},m:function(e,i){Pe(e,n,i)},d:function(e){e&&je(n)}}}function YYe(t){var n,e,i,r,o,s,a,l=!t[0]&&Mle();return{c:function(){n=be("div"),e=be("div"),i=it(),r=be("div"),o=tn("Empty document\n "),l&&l.c(),s=it(),a=be("div"),P(e,"class","jse-space jse-before svelte-1q2qkk2"),P(r,"class","jse-contents svelte-1q2qkk2"),P(a,"class","jse-space jse-after svelte-1q2qkk2"),P(n,"class","jse-welcome svelte-1q2qkk2")},m:function(c,u){Pe(c,n,u),de(n,e),de(n,i),de(n,r),de(r,o),l&&l.m(r,null),de(n,s),de(n,a)},p:function(c,u){Un(u,1),c[0]?l&&(l.d(1),l=null):l||((l=Mle()).c(),l.m(r,null))},i:Lt,o:Lt,d:function(c){c&&je(n),l&&l.d()}}}function JYe(t,n,e){var i=n.readOnly;return t.$$set=function(r){"readOnly"in r&&e(0,i=r.readOnly)},[i]}var KYe=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,JYe,YYe,Ei,{readOnly:0},XYe),r}return Se(e)}(),g4={},QYe={get exports(){return g4},set exports(t){g4=t}},Ile=function(t,n){var e,i,r=1,o=0,s=0,a=String.alphabet;function l(c,u,d){if(d){for(e=u;(d=l(c,e))<76&&d>65;)++e;return+c.slice(u-1,e)}return(d=a&&a.indexOf(c.charAt(u)))>-1?d+76:(d=c.charCodeAt(u)||0)<45||d>127?d:d<46?65:d<48?d-1:d<58?d+18:d<65?d-11:d<91?d+11:d<97?d-37:d<123?d+5:d-63}if((t+="")!=(n+=""))for(;r;)if(i=l(t,o++),r=l(n,s++),i<76&&r<76&&i>66&&r>66&&(i=l(t,o,o),r=l(n,s,o=e),s=e),i!=r)return i1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(oo(Sn(t,n))){if(void 0===e)throw new Error("Cannot sort: no property selected by which to sort the array");return function eJe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=function tJe(t,n){return function(e,i){var r=Sn(e,t),o=Sn(i,t);return void 0===r?n:void 0===o?-n:"string"!=typeof r&&"string"!=typeof o?r>o?n:r2&&void 0!==arguments[2]?arguments[2]:[],arguments.length>3&&void 0!==arguments[3]?arguments[3]:1),o=Sn(t,n);return[{op:"replace",path:ln(n),value:o.slice(0).sort(r)}]}(t,n,e,i)}if(Io(t))return function ZYe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=Sn(t,n),o=Object.keys(i).slice();o.sort(function(u,d){return e*v4(u,d)});for(var s=[],a=0;aQb&&jle();return{c:function(){n=be("div");for(var d=0;dQb?u?u.p(d,f):((u=jle()).c(),u.m(n,null)):u&&(u.d(1),u=null)},i:Lt,o:Lt,d:function(d){d&&je(n);for(var h=0;h0&&(a("scrollTo ",g),o.scrollTo({left:g,behavior:"smooth"}))}})},[l,d,h,i,o,s,f,r,function(g){a("get items for path",g);var v=Sn(l,g);if(Array.isArray(v))return fO(0,v.length).map(String);if(Io(v)){var y=Object.keys(v).slice(0);return y.sort(v4),y}return[]},function(g){return Xc(l,g)},p,function(){e(6,f=!f)},m,function(g){m(),p(g)},c,u,function(g){Vi[g?"unshift":"push"](function(){e(5,s=g)})},function(g){Vi[g?"unshift":"push"](function(){e(4,o=g)})}]}var yJe=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,vJe,gJe,Ei,{json:0,documentState:14,onSelect:15,onError:1,pathParser:2},fJe),r}return Se(e)}();function bJe(t){pi(t,"svelte-3lbrbf",".jse-search-box.svelte-3lbrbf.svelte-3lbrbf{border:var(--jse-panel-border);border-radius:3px;font-family:var(--jse-font-family);font-size:var(--jse-font-size);background:var(--jse-panel-background);color:var(--jse-panel-color-readonly);box-shadow:var(--jse-controls-box-shadow);display:inline-block;width:400px;max-width:100%;overflow:auto}.jse-search-box.svelte-3lbrbf .jse-search-form.svelte-3lbrbf{display:flex;align-items:stretch}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf,.jse-search-box.svelte-3lbrbf .jse-search-form input.svelte-3lbrbf{font-family:inherit;font-size:inherit}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf{display:block;text-align:center;border:none;padding:0 5px;margin:0;cursor:pointer;color:var(--jse-panel-button-color);background:var(--jse-panel-button-background)}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf:hover{color:var(--jse-panel-button-color-highlight);background:var(--jse-panel-button-background-highlight)}.jse-search-box.svelte-3lbrbf .jse-search-form input.svelte-3lbrbf{color:var(--jse-panel-color);border:var(--jse-input-border);border-radius:3px;background:var(--jse-input-background);height:28px;padding:0 5px;margin:0;flex:1;width:0;min-width:50px;outline:none}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-replace-toggle.svelte-3lbrbf{padding:var(--jse-padding) calc(0.5 * var(--jse-padding));min-width:20px;background:var(--jse-panel-button-background-highlight)}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents.svelte-3lbrbf{flex:1;display:flex;flex-direction:column;padding:calc(0.5 * var(--jse-padding));gap:calc(0.5 * var(--jse-padding))}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section.svelte-3lbrbf{flex:1;display:flex;align-items:center;position:relative;padding-left:32px}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-icon.svelte-3lbrbf{color:inherit;cursor:inherit;background:inherit;position:absolute;top:calc(0.5 * var(--jse-padding));left:calc(0.5 * var(--jse-padding))}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section label.jse-search-input-label.svelte-3lbrbf{flex:1;display:flex}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-count.svelte-3lbrbf{color:inherit;font-size:80%;visibility:hidden;padding:0 5px;min-width:36px;text-align:center}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-count.jse-visible.svelte-3lbrbf{visibility:visible}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-replace-section.svelte-3lbrbf{padding-left:32px;flex:1;display:flex}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-replace-section button.svelte-3lbrbf{width:auto}")}function Ule(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,C,S,M,$,G,R,z,U,q,re=(-1!==t[3]?"".concat(t[3]+1,"/"):"")+"",L=!t[4]&&Gle(t),X=[xJe,_Je],Z=[];function H(E,N){return E[2]?0:1}a=H(t),l=Z[a]=X[a](t),y=new sr({props:{data:DWe}}),S=new sr({props:{data:bWe}}),G=new sr({props:{data:p0}});var he=t[0]&&!t[4]&&Wle(t);return{c:function(){n=be("div"),e=be("form"),L&&L.c(),i=it(),r=be("div"),o=be("div"),s=be("div"),l.c(),c=it(),u=be("label"),d=be("input"),h=it(),f=be("div"),p=tn(re),m=tn(t[10]),g=it(),v=be("button"),mt(y.$$.fragment),_=it(),C=be("button"),mt(S.$$.fragment),M=it(),$=be("button"),mt(G.$$.fragment),R=it(),he&&he.c(),P(s,"class","jse-search-icon svelte-3lbrbf"),P(d,"class","jse-search-input svelte-3lbrbf"),P(d,"title","Enter text to search"),P(d,"type","text"),P(d,"placeholder","Find"),P(u,"class","jse-search-input-label svelte-3lbrbf"),P(u,"about","jse-search input"),P(f,"class","jse-search-count svelte-3lbrbf"),Mt(f,"jse-visible",""!==t[8]),P(v,"type","button"),P(v,"class","jse-search-next svelte-3lbrbf"),P(v,"title","Go to next search result (Enter)"),P(C,"type","button"),P(C,"class","jse-search-previous svelte-3lbrbf"),P(C,"title","Go to previous search result (Shift+Enter)"),P($,"type","button"),P($,"class","jse-search-clear svelte-3lbrbf"),P($,"title","Close search box (Esc)"),P(o,"class","jse-search-section svelte-3lbrbf"),P(r,"class","jse-search-contents svelte-3lbrbf"),P(e,"class","jse-search-form svelte-3lbrbf"),P(n,"class","jse-search-box svelte-3lbrbf")},m:function(E,N){Pe(E,n,N),de(n,e),L&&L.m(e,null),de(e,i),de(e,r),de(r,o),de(o,s),Z[a].m(s,null),de(o,c),de(o,u),de(u,d),Hf(d,t[8]),de(o,h),de(o,f),de(f,p),de(f,m),de(o,g),de(o,v),ft(y,v,null),de(o,_),de(o,C),ft(S,C,null),de(o,M),de(o,$),ft(G,$,null),de(r,R),he&&he.m(r,null),z=!0,U||(q=[Ft(d,"input",t[21]),_a(CJe.call(null,d)),Ft(v,"click",t[22]),Ft(C,"click",t[23]),Ft($,"click",t[24]),Ft(e,"submit",t[12]),Ft(e,"keydown",t[13])],U=!0)},p:function(E,N){E[4]?L&&($t(),ce(L,1,1,function(){L=null}),Bt()):L?(L.p(E,N),16&N&&Q(L,1)):((L=Gle(E)).c(),Q(L,1),L.m(e,i));var F=a;(a=H(E))===F?Z[a].p(E,N):($t(),ce(Z[F],1,1,function(){Z[F]=null}),Bt(),(l=Z[a])?l.p(E,N):(l=Z[a]=X[a](E)).c(),Q(l,1),l.m(s,null)),256&N&&d.value!==E[8]&&Hf(d,E[8]),(!z||8&N)&&re!==(re=(-1!==E[3]?"".concat(E[3]+1,"/"):"")+"")&&qn(p,re),(!z||1024&N)&&qn(m,E[10]),(!z||256&N)&&Mt(f,"jse-visible",""!==E[8]),E[0]&&!E[4]?he?he.p(E,N):((he=Wle(E)).c(),he.m(r,null)):he&&(he.d(1),he=null)},i:function(E){z||(Q(L),Q(l),Q(y.$$.fragment,E),Q(S.$$.fragment,E),Q(G.$$.fragment,E),z=!0)},o:function(E){ce(L),ce(l),ce(y.$$.fragment,E),ce(S.$$.fragment,E),ce(G.$$.fragment,E),z=!1},d:function(E){E&&je(n),L&&L.d(),Z[a].d(),pt(y),pt(S),pt(G),he&&he.d(),U=!1,ho(q)}}}function Gle(t){var n,e,i,r,o;return e=new sr({props:{data:t[0]?ru:rp}}),{c:function(){n=be("button"),mt(e.$$.fragment),P(n,"type","button"),P(n,"class","jse-replace-toggle svelte-3lbrbf"),P(n,"title","Toggle visibility of replace options (Ctrl+H)")},m:function(s,a){Pe(s,n,a),ft(e,n,null),i=!0,r||(o=Ft(n,"click",t[11]),r=!0)},p:function(s,a){var l={};1&a&&(l.data=s[0]?ru:rp),e.$set(l)},i:function(s){i||(Q(e.$$.fragment,s),i=!0)},o:function(s){ce(e.$$.fragment,s),i=!1},d:function(s){s&&je(n),pt(e),r=!1,o()}}}function _Je(t){var n,e;return n=new sr({props:{data:KO}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:Lt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function xJe(t){var n,e;return n=new sr({props:{data:gWe,spin:!0}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:Lt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function Wle(t){var n,e,i,r,o,s,a,l;return{c:function(){n=be("div"),e=be("input"),i=it(),(r=be("button")).textContent="Replace",o=it(),(s=be("button")).textContent="All",P(e,"class","jse-replace-input svelte-3lbrbf"),P(e,"title","Enter replacement text"),P(e,"type","text"),P(e,"placeholder","Replace"),P(r,"type","button"),P(r,"title","Replace current occurrence (Ctrl+Enter)"),P(r,"class","svelte-3lbrbf"),P(s,"type","button"),P(s,"title","Replace all occurrences"),P(s,"class","svelte-3lbrbf"),P(n,"class","jse-replace-section svelte-3lbrbf")},m:function(c,u){Pe(c,n,u),de(n,e),Hf(e,t[9]),de(n,i),de(n,r),de(n,o),de(n,s),a||(l=[Ft(e,"input",t[25]),Ft(r,"click",t[14]),Ft(s,"click",t[15])],a=!0)},p:function(c,u){512&u&&e.value!==c[9]&&Hf(e,c[9])},d:function(c){c&&je(n),a=!1,ho(l)}}}function wJe(t){var n,e,i=t[1]&&Ule(t);return{c:function(){i&&i.c(),n=_r()},m:function(r,o){i&&i.m(r,o),Pe(r,n,o),e=!0},p:function(r,o){var s=Un(o,1)[0];r[1]?i?(i.p(r,s),2&s&&Q(i,1)):((i=Ule(r)).c(),Q(i,1),i.m(n.parentNode,n)):i&&($t(),ce(i,1,1,function(){i=null}),Bt())},i:function(r){e||(Q(i),e=!0)},o:function(r){ce(i),e=!1},d:function(r){i&&i.d(r),r&&je(n)}}}function CJe(t){t.select()}function kJe(t,n,e){var i,r,o=n.show,s=void 0!==o&&o,a=n.searching,l=n.resultCount,c=void 0===l?0:l,u=n.activeIndex,d=void 0===u?0:u,h=n.showReplace,f=void 0!==h&&h,p=n.readOnly,m=void 0!==p&&p,g=n.onChange,v=void 0===g?go:g,y=n.onPrevious,_=void 0===y?go:y,C=n.onNext,S=void 0===C?go:C,M=n.onReplace,$=void 0===M?go:M,G=n.onReplaceAll,R=void 0===G?go:G,z=n.onClose,U=void 0===z?go:z,q="",re="",L="";function X(){e(0,f=!f&&!m)}function Z(){m||$(q,L)}return t.$$set=function(H){"show"in H&&e(1,s=H.show),"searching"in H&&e(2,a=H.searching),"resultCount"in H&&e(16,c=H.resultCount),"activeIndex"in H&&e(3,d=H.activeIndex),"showReplace"in H&&e(0,f=H.showReplace),"readOnly"in H&&e(4,m=H.readOnly),"onChange"in H&&e(17,v=H.onChange),"onPrevious"in H&&e(5,_=H.onPrevious),"onNext"in H&&e(6,S=H.onNext),"onReplace"in H&&e(18,$=H.onReplace),"onReplaceAll"in H&&e(19,R=H.onReplaceAll),"onClose"in H&&e(7,U=H.onClose)},t.$$.update=function(){65536&t.$$.dirty&&e(10,i=c>=1e3?"".concat(999,"+"):String(c)),131072&t.$$.dirty&&e(20,r=Gv(v,300)),1048832&t.$$.dirty&&r(q),2&t.$$.dirty&&s&&""!==q&&v(q)},[f,s,a,d,m,_,S,U,q,L,i,X,function(H){H.preventDefault(),q!==re?(re=q,r.cancel(),v(q)):S()},function(H){H.stopPropagation();var he=tp(H);"Enter"===he&&(H.preventDefault(),S()),"Shift+Enter"===he&&(H.preventDefault(),_()),"Ctrl+Enter"===he&&(H.preventDefault(),f?Z():S()),"Ctrl+H"===he&&(H.preventDefault(),X()),"Escape"===he&&(H.preventDefault(),U())},Z,function(){m||R(q,L)},c,v,$,R,r,function(){e(8,q=this.value)},function(){return S()},function(){return _()},function(){return U()},function(){e(9,L=this.value)}]}var SJe=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,kJe,wJe,Ei,{show:1,searching:2,resultCount:16,activeIndex:3,showReplace:0,readOnly:4,onChange:17,onPrevious:5,onNext:6,onReplace:18,onReplaceAll:19,onClose:7},bJe),r}return Se(e)}(),qle=Number.isNaN||function(t){return"number"==typeof t&&t!=t};function DJe(t,n){if(t.length!==n.length)return!1;for(var e=0;e \n
    loading...
    ',P(n,"class","jse-contents svelte-qojdc1")},m:function(e,i){Pe(e,n,i)},p:Lt,i:Lt,o:Lt,d:function(e){e&&je(n)}}}function HJe(t){var n,e,i,r,o,s,a,l,c,u=[UJe,zJe],d=[];function h(f,p){return void 0===f[10]?0:1}return r=h(t),o=d[r]=u[r](t),{c:function(){n=be("label"),e=be("input"),i=it(),o.c(),s=_r(),P(e,"type","text"),e.readOnly="readonly",P(e,"tabindex","-1"),P(e,"class","jse-hidden-input svelte-qojdc1"),P(n,"class","jse-hidden-input-label svelte-qojdc1")},m:function(f,p){Pe(f,n,p),de(n,e),t[76](e),Pe(f,i,p),d[r].m(f,p),Pe(f,s,p),a=!0,l||(c=Ft(e,"paste",t[34]),l=!0)},p:function(f,p){var m=r;(r=h(f))===m?d[r].p(f,p):($t(),ce(d[m],1,1,function(){d[m]=null}),Bt(),(o=d[r])?o.p(f,p):(o=d[r]=u[r](f)).c(),Q(o,1),o.m(s.parentNode,s))},i:function(f){a||(Q(o),a=!0)},o:function(f){ce(o),a=!1},d:function(f){f&&je(n),t[76](null),f&&je(i),d[r].d(f),f&&je(s),l=!1,c()}}}function zJe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p;s=new SJe({props:{show:t[19],resultCount:(null===(n=t[17])||void 0===n||null===(e=n.items)||void 0===e?void 0:e.length)||0,activeIndex:(null===(i=t[17])||void 0===i?void 0:i.activeIndex)||0,showReplace:t[20],searching:t[21],readOnly:t[0],onChange:t[26],onNext:t[27],onPrevious:t[28],onReplace:t[29],onReplaceAll:t[30],onClose:t[31]}}),c=new VYe({props:{value:t[10],path:[],expandedMap:t[16].expandedMap,enforceStringMap:t[16].enforceStringMap,visibleSectionsMap:t[16].visibleSectionsMap,validationErrorsMap:t[24],searchResultItemsMap:null===(r=t[17])||void 0===r?void 0:r.itemsMap,selection:t[16].selection,context:t[13],onDragSelectionStart:go}});var m=t[18]&&rce(t),g=t[23]&&oce(t);return f=new l4({props:{validationErrors:t[12],selectError:t[32]}}),{c:function(){o=be("div"),mt(s.$$.fragment),a=it(),l=be("div"),mt(c.$$.fragment),u=it(),m&&m.c(),d=it(),g&&g.c(),h=it(),mt(f.$$.fragment),P(o,"class","jse-search-box-container svelte-qojdc1"),P(l,"class","jse-contents svelte-qojdc1"),P(l,"data-jsoneditor-scrollable-contents",!0)},m:function(v,y){Pe(v,o,y),ft(s,o,null),Pe(v,a,y),Pe(v,l,y),ft(c,l,null),t[77](l),Pe(v,u,y),m&&m.m(v,y),Pe(v,d,y),g&&g.m(v,y),Pe(v,h,y),ft(f,v,y),p=!0},p:function(v,y){var _,C,S,M,$={};524288&y[0]&&($.show=v[19]),131072&y[0]&&($.resultCount=(null===(_=v[17])||void 0===_||null===(C=_.items)||void 0===C?void 0:C.length)||0),131072&y[0]&&($.activeIndex=(null===(S=v[17])||void 0===S?void 0:S.activeIndex)||0),1048576&y[0]&&($.showReplace=v[20]),2097152&y[0]&&($.searching=v[21]),1&y[0]&&($.readOnly=v[0]),s.$set($);var G={};1024&y[0]&&(G.value=v[10]),65536&y[0]&&(G.expandedMap=v[16].expandedMap),65536&y[0]&&(G.enforceStringMap=v[16].enforceStringMap),65536&y[0]&&(G.visibleSectionsMap=v[16].visibleSectionsMap),16777216&y[0]&&(G.validationErrorsMap=v[24]),131072&y[0]&&(G.searchResultItemsMap=null===(M=v[17])||void 0===M?void 0:M.itemsMap),65536&y[0]&&(G.selection=v[16].selection),8192&y[0]&&(G.context=v[13]),c.$set(G),v[18]?m?(m.p(v,y),262144&y[0]&&Q(m,1)):((m=rce(v)).c(),Q(m,1),m.m(d.parentNode,d)):m&&($t(),ce(m,1,1,function(){m=null}),Bt()),v[23]?g?(g.p(v,y),8388608&y[0]&&Q(g,1)):((g=oce(v)).c(),Q(g,1),g.m(h.parentNode,h)):g&&($t(),ce(g,1,1,function(){g=null}),Bt());var R={};4096&y[0]&&(R.validationErrors=v[12]),f.$set(R)},i:function(v){p||(Q(s.$$.fragment,v),Q(c.$$.fragment,v),Q(m),Q(g),Q(f.$$.fragment,v),p=!0)},o:function(v){ce(s.$$.fragment,v),ce(c.$$.fragment,v),ce(m),ce(g),ce(f.$$.fragment,v),p=!1},d:function(v){v&&je(o),pt(s),v&&je(a),v&&je(l),pt(c),t[77](null),v&&je(u),m&&m.d(v),v&&je(d),g&&g.d(v),v&&je(h),pt(f,v)}}}function UJe(t){var n,e,i,r,o=[WJe,GJe],s=[];function a(l,c){return""===l[11]||void 0===l[11]?0:1}return n=a(t),e=s[n]=o[n](t),{c:function(){e.c(),i=_r()},m:function(l,c){s[n].m(l,c),Pe(l,i,c),r=!0},p:function(l,c){var u=n;(n=a(l))===u?s[n].p(l,c):($t(),ce(s[u],1,1,function(){s[u]=null}),Bt(),(e=s[n])?e.p(l,c):(e=s[n]=o[n](l)).c(),Q(e,1),e.m(i.parentNode,i))},i:function(l){r||(Q(e),r=!0)},o:function(l){ce(e),r=!1},d:function(l){s[n].d(l),l&&je(i)}}}function rce(t){var n,e;return n=new nd({props:{type:"info",message:"You pasted a JSON ".concat(Array.isArray(t[18].contents)?"array":"object"," as text"),actions:[{icon:zk,text:"Paste as JSON instead",onMouseDown:t[45]},{text:"Leave as is",onClick:t[46]}]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};262144&r[0]&&(o.message="You pasted a JSON ".concat(Array.isArray(i[18].contents)?"array":"object"," as text")),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function oce(t){var n,e;return n=new nd({props:{type:"success",message:"The loaded JSON document was invalid but is successfully repaired.",actions:t[0]?[]:[{icon:Wb,text:"Ok",onClick:t[8]},{icon:op,text:"Repair manually instead",onClick:t[47]}]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};1&r[0]&&(o.actions=i[0]?[]:[{icon:Wb,text:"Ok",onClick:i[8]},{icon:op,text:"Repair manually instead",onClick:i[47]}]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function GJe(t){var n,e,i,r;return n=new nd({props:{type:"error",message:"The loaded JSON document is invalid and could not be repaired automatically.",actions:t[0]?[]:[{icon:op,text:"Repair manually",onClick:t[47]}]}}),i=new tce({props:{text:t[11],json:t[10],indentation:t[5],parser:t[3]}}),{c:function(){mt(n.$$.fragment),e=it(),mt(i.$$.fragment)},m:function(o,s){ft(n,o,s),Pe(o,e,s),ft(i,o,s),r=!0},p:function(o,s){var a={};1&s[0]&&(a.actions=o[0]?[]:[{icon:op,text:"Repair manually",onClick:o[47]}]),n.$set(a);var l={};2048&s[0]&&(l.text=o[11]),1024&s[0]&&(l.json=o[10]),32&s[0]&&(l.indentation=o[5]),8&s[0]&&(l.parser=o[3]),i.$set(l)},i:function(o){r||(Q(n.$$.fragment,o),Q(i.$$.fragment,o),r=!0)},o:function(o){ce(n.$$.fragment,o),ce(i.$$.fragment,o),r=!1},d:function(o){pt(n,o),o&&je(e),pt(i,o)}}}function WJe(t){var n,e;return n=new KYe({props:{readOnly:t[0]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};1&r[0]&&(o.readOnly=i[0]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function qJe(t){var n,e,i,r,o,s,a,l,c=t[1]&&nce(t),u=t[2]&&ice(t),h=[];return o=h[r=t[25]?1:0]=[HJe,VJe][r](t),{c:function(){n=be("div"),c&&c.c(),e=it(),u&&u.c(),i=it(),o.c(),P(n,"class","jse-tree-mode svelte-qojdc1"),Mt(n,"no-main-menu",!t[1])},m:function(f,p){Pe(f,n,p),c&&c.m(n,null),de(n,e),u&&u.m(n,null),de(n,i),h[r].m(n,null),t[78](n),s=!0,a||(l=[Ft($Je,"mousedown",t[49]),Ft(n,"keydown",t[41]),Ft(n,"mousedown",t[42]),Ft(n,"contextmenu",t[43])],a=!0)},p:function(f,p){f[1]?c?(c.p(f,p),2&p[0]&&Q(c,1)):((c=nce(f)).c(),Q(c,1),c.m(n,e)):c&&($t(),ce(c,1,1,function(){c=null}),Bt()),f[2]?u?(u.p(f,p),4&p[0]&&Q(u,1)):((u=ice(f)).c(),Q(u,1),u.m(n,i)):u&&($t(),ce(u,1,1,function(){u=null}),Bt()),o.p(f,p),(!s||2&p[0])&&Mt(n,"no-main-menu",!f[1])},i:function(f){s||(Q(c),Q(u),Q(o),s=!0)},o:function(f){ce(c),ce(u),ce(o),s=!1},d:function(f){f&&je(n),c&&c.d(),u&&u.d(),h[r].d(),t[78](null),a=!1,ho(l)}}}function XJe(t,n,e){var i,r=wa("jsoneditor:TreeMode"),o=typeof window>"u";r("isSSR:",o);var s,a,l,c,u,d=xa("simple-modal").open,h=ep(),f=ep(),p=xa("absolute-popup"),m=p.openAbsolutePopup,g=p.closeAbsolutePopup,v=!1,y=hae(),_=n.readOnly,C=n.externalContent,S=n.mainMenuBar,M=n.navigationBar,$=n.escapeControlCharacters,G=n.escapeUnicodeCharacters,R=n.parser,z=n.parseMemoizeOne,U=n.validator,q=n.validationParser,re=n.pathParser,L=n.indentation,X=n.onError,Z=n.onChange,H=n.onChangeMode,he=n.onRenderValue,E=n.onRenderMenu,N=n.onClassName,F=n.onFocus,Y=n.onBlur,V=n.onSortModal,oe=n.onTransformModal,fe=n.onJSONEditorModal,Ne=!1;a4({onMount:Wc,onDestroy:Hu,getWindow:function(){return e0(l)},hasFocus:function(){return Ne&&document.hasFocus()||jk(l)},onFocus:function(){v=!0,F&&F()},onBlur:function(){v=!1,Y&&Y()}});var xe=void 0;function tt(Ce){r("updateSelection",Ce);var lt="function"==typeof Ce?Ce(ie.selection):Ce;or(lt,ie.selection)||e(16,ie=Ze(Ze({},ie),{},{selection:lt}))}var ze,ot,B,ne=!1,ie=Lk(),Ie=!1,Ye=!1,Le=!1,_t="";function At(Ce){return _n.apply(this,arguments)}function _n(){return(_n=Zi(vn().mark(function Ce(lt){return vn().wrap(function(It){for(;;)switch(It.prev=It.next){case 0:return r("search text updated",lt),e(74,_t=lt),It.next=4,Xl();case 4:return It.next=6,Fr();case 6:case"end":return It.stop()}},Ce)}))).apply(this,arguments)}function ci(){return(ci=Zi(vn().mark(function Ce(){return vn().wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:return e(17,ze=ze?GGe(ze):void 0),lt.next=3,Fr();case 3:case"end":return lt.stop()}},Ce)}))).apply(this,arguments)}function on(){return(on=Zi(vn().mark(function Ce(){return vn().wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:return e(17,ze=ze?WGe(ze):void 0),lt.next=3,Fr();case 3:case"end":return lt.stop()}},Ce)}))).apply(this,arguments)}function Ni(){return(Ni=Zi(vn().mark(function Ce(lt,It){var Jt,nn,an,li;return vn().wrap(function(fi){for(;;)switch(fi.prev=fi.next){case 0:if(nn=null===(Jt=ze)||void 0===Jt?void 0:Jt.activeItem,r("handleReplace",{replacementText:It,activeItem:nn}),nn){fi.next=4;break}return fi.abrupt("return");case 4:return an=qGe(c,ie,It,nn,R),li=an.newSelection,Yn(an.operations,function(Lo,Ls){return{state:Ze(Ze({},Ls),{},{selection:li})}}),fi.next=8,Xl();case 8:return fi.next=10,Fr();case 10:case"end":return fi.stop()}},Ce)}))).apply(this,arguments)}function pn(){return(pn=Zi(vn().mark(function Ce(lt,It){var Jt,an;return vn().wrap(function(Vn){for(;;)switch(Vn.prev=Vn.next){case 0:return r("handleReplaceAll",{text:lt,replacementText:It}),Jt=XGe(c,ie,lt,It,R),an=Jt.newSelection,Yn(Jt.operations,function(li,fi){return{state:Ze(Ze({},fi),{},{selection:an})}}),Vn.next=5,Xl();case 5:return Vn.next=7,Fr();case 7:case"end":return Vn.stop()}},Ce)}))).apply(this,arguments)}function Fr(){return $r.apply(this,arguments)}function $r(){return($r=Zi(vn().mark(function Ce(){var lt,It,Jt;return vn().wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:if(It=null===(lt=ze)||void 0===lt?void 0:lt.activeItem,r("focusActiveSearchResult",ze),!It){nn.next=9;break}return e(16,ie=Ze(Ze({},PO(c,ie,Jt=It.path)),{},{selection:void 0})),nn.next=7,Xl();case 7:return nn.next=9,hn(Jt);case 9:case"end":return nn.stop()}},Ce)}))).apply(this,arguments)}var Ai,Wr,wr=fae({onChange:function(Ce){e(22,Or=Ce)}}),Or=wr.getState(),jo=gO(function(Ce,lt){if(""===Ce)return r("clearing search result"),void(void 0!==ze&&e(17,ze=void 0));e(21,Le=!0),setTimeout(function(){r("searching...",Ce);var nn,an,Vn,li,fi,Lo,Ls,It=ase(Ce,lt,1e3);e(17,(nn=It,Vn=null!=(an=ze)&&an.activeItem?use(an.activeItem):void 0,li=nn.findIndex(function(Zo){return or(Vn,use(Zo))}),fi=-1!==li?li:void 0!==an?.activeIndex&&an?.activeIndex0?0:-1,Ls=(Lo=nn.map(function(Zo,wo){return Ze(Ze({},Zo),{},{active:wo===fi})}))[fi],ze={items:Lo,itemsMap:qv(Lo,function(Zo){return ln(Zo.path)}),activeItem:Ls,activeIndex:fi})),e(21,Le=!1)})},300),Fn=!1,xt=[],ui=Zb(pae);function Fi(Ce,lt,It,Jt){g0(function(){var nn;try{nn=ui(Ce,lt,It,Jt)}catch(an){nn=[{path:[],message:"Failed to validate: "+an.message,severity:Xd.warning}]}or(nn,xt)||(r("validationErrors changed:",nn),e(12,xt=nn))},function(nn){return r("validationErrors updated in ".concat(nn," ms"))})}function Cr(){return r("validate"),xe?{parseError:xe,isRepairable:!1}:(Fi(c,U,R,q),Hi(xt)?null:{validationErrors:xt})}function xo(){return c}function Qo(){return ie}function On(Ce){ne||(ne=!0,e(16,ie=nu(Ce,ie,[],coe({json:Ce},10240)?sh:Hb)))}function ai(Ce){void 0!==ie.selection&&(ie.selection&&Xc(Ce,ie.selection.anchorPath)&&Xc(Ce,ie.selection.focusPath)||(r("clearing selection: path does not exist anymore",ie.selection),e(16,ie=Ze(Ze({},ie),{},{selection:s0(Ce,ie)}))))}function bi(Ce){var lt=Ce.previousJson,It=Ce.previousState,Jt=Ce.previousText,nn=Ce.previousTextIsRepaired;void 0===lt&&void 0===Jt||(void 0!==c?wr.add(void 0!==lt?{undo:{patch:[{op:"replace",path:"",value:lt}],state:ul(It),json:void 0,text:Jt,textIsRepaired:nn},redo:{patch:[{op:"replace",path:"",value:c}],state:ul(ie),json:void 0,text:u,textIsRepaired:Fn}}:{undo:{patch:void 0,json:void 0,text:Jt,state:ul(It),textIsRepaired:nn},redo:{patch:void 0,json:c,state:ul(ie),text:u,textIsRepaired:Fn}}):void 0!==lt&&wr.add({undo:{patch:void 0,json:lt,state:ul(It),text:Jt,textIsRepaired:nn},redo:{patch:void 0,json:void 0,text:u,textIsRepaired:Fn,state:ul(ie)}}))}function Er(Ce,lt){if(r("patch",Ce,lt),void 0===c)throw new Error("Cannot apply patch: no JSON");var It={json:c,text:u},Jt=c,nn=ie,an=u,Vn=Fn,li=ose(c,Ce),fi=$oe(c,ie,Ce),Lo=a0(c,Ce),Ls=function(wh,bd){return void 0!==bd||!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?Ze(Ze({},wh),{},{selection:bd}):wh}(fi.documentState,Lo,!1);r("patch updatedSelection",Lo);var Zo="function"==typeof lt?lt(fi.json,Ls):void 0;e(10,c=Zo&&void 0!==Zo.json?Zo.json:fi.json);var wo=Zo&&void 0!==Zo.state?Zo.state:Ls;e(16,ie=wo),e(11,u=void 0),e(23,Fn=!1),e(18,B=void 0),ai(c),wr.add({undo:{patch:li,json:void 0,text:an,state:ul(nn),textIsRepaired:Vn},redo:{patch:Ce,json:void 0,state:ul(wo),text:u,textIsRepaired:Fn}});var $l={json:c,previousJson:Jt,undo:li,redo:Ce};return ei(It,$l),$l}function qr(){!_&&ie.selection&&tt(iu(ie.selection.focusPath,!0))}function ao(){if(!_&&ie.selection){var Ce=ie.selection.focusPath,lt=Sn(c,Ce);Ho(lt)?(r("openJSONEditorModal",{path:It=Ce,value:Jt=lt}),Ne=!0,fe({content:{json:Jt},path:It,onPatch:Wr.onPatch,onClose:function(){Ne=!1,Ps()}})):tt(mr(Ce,!0))}var It,Jt}function Js(){if(!_&&Yi(ie.selection)){var Ce=ie.selection.focusPath,lt=ln(Ce),It=Sn(c,Ce),Jt=!lf(It,ie.enforceStringMap,lt,R),nn=Jt?String(It):Nv(String(It),R);r("handleToggleEnforceString",{enforceString:Jt,value:It,updatedValue:nn}),Yn([{op:"replace",path:lt,value:nn}],function(an,Vn){return{state:Roe(Vn,lt,Jt)}})}}function vr(){return Ks.apply(this,arguments)}function Ks(){return Ks=Zi(vn().mark(function Ce(){var lt,It=arguments;return vn().wrap(function(Jt){for(;;)switch(Jt.prev=Jt.next){case 0:return lt=!(It.length>0&&void 0!==It[0])||It[0],Jt.next=3,Jle({json:c,documentState:ie,indentation:lt?L:void 0,readOnly:_,parser:R,onPatch:Yn});case 3:case"end":return Jt.stop()}},Ce)})),Ks.apply(this,arguments)}function qa(){return Xa.apply(this,arguments)}function Xa(){return Xa=Zi(vn().mark(function Ce(){var lt,It=arguments;return vn().wrap(function(Jt){for(;;)switch(Jt.prev=Jt.next){case 0:if(lt=!(It.length>0&&void 0!==It[0])||It[0],void 0!==c){Jt.next=3;break}return Jt.abrupt("return");case 3:return Jt.next=5,Kle({json:c,documentState:ie,indentation:lt?L:void 0,parser:R});case 5:case"end":return Jt.stop()}},Ce)})),Xa.apply(this,arguments)}function Ic(){d(kae,{},Ze(Ze({},Cm),{},{styleWindow:{width:"450px"}}),{onClose:function(){return Ps()}})}function we(Ce,lt){d(jae,{text:Ce,onParse:Ik,onRepair:soe,onApply:lt},Ze(Ze({},Cm),{},{styleWindow:{width:"600px",height:"500px"},styleContent:{padding:0,height:"100%"}}),{onClose:function(){return Ps()}})}function He(){Zle({json:c,text:u,documentState:ie,keepSelection:!1,readOnly:_,onChange:Z,onPatch:Yn})}function qe(){!_&&void 0!==c&&ie.selection&&c0(ie.selection)&&!Hi(ie.selection.focusPath)&&(r("duplicate",{selection:ie.selection}),Yn(nse(c,Qoe(ie.selection))))}function ut(){_||!ie.selection||!Nr(ie.selection)&&!Yi(ie.selection)||Hi(ie.selection.focusPath)||(r("extract",{selection:ie.selection}),Yn(function(lt,It){if(Yi(It))return[{op:"move",from:ln(It.focusPath),path:""}];if(!Nr(It))throw new Error("Cannot create extract operations: parent must be an Object or Array");var Jt=Sn(lt,Xi(It.focusPath));if(oo(Jt))return[{op:"replace",path:"",value:It.paths.map(function(an){var Vn=Ws(Ln(an));return Jt[Vn]})}];if(Mo(Jt)){var nn={};return It.paths.forEach(function(an){var Vn=String(Ln(an));nn[Vn]=Jt[Vn]}),[{op:"replace",path:"",value:nn}]}throw new Error("Cannot extract: unsupported type of selection "+JSON.stringify(It))}(c,ie.selection),function(lt,It){if(Ho(lt))return{state:np(lt,It,[])}}))}function Ue(Ce){void 0!==c&&rS({insertType:Ce,selectInside:!0,refJsonEditor:l,json:c,documentState:ie,readOnly:_,parser:R,onPatch:Yn,onReplaceJson:br})}function Dn(Ce){xs(ie.selection)&&tt(mr(ie.selection.focusPath,!1)),Ue(Ce)}function ii(Ce){if(!_&&ie.selection)if(Lm(ie.selection))try{var lt=ie.selection.anchorPath,It=Sn(c,lt),Jt=function(an,Vn,li){if("array"===Vn){if(Array.isArray(an))return an;if(Io(an))return ioe(an);if("string"==typeof an)try{var fi=li.parse(an);if(Array.isArray(fi))return fi;if(Io(fi))return ioe(fi)}catch{return[an]}return[an]}if("object"===Vn){if(Array.isArray(an))return noe(an);if(Io(an))return an;if("string"==typeof an)try{var Lo=li.parse(an);if(Io(Lo))return Lo;if(Array.isArray(Lo))return noe(Lo)}catch{return{value:an}}return{value:an}}if("value"===Vn)return Ho(an)?li.stringify(an):an;throw new Error("Cannot convert ".concat(VN(an,li)," to ").concat(Vn))}(It,Ce,R);if(Jt===It)return;var nn=[{op:"replace",path:ln(lt),value:Jt}];r("handleConvert",{selection:ie.selection,path:lt,type:Ce,operations:nn}),Yn(nn,function(an,Vn){return{state:np(an,Vn,ie.selection.focusPath)}})}catch(an){X(an)}else X(new Error("Cannot convert current selection to ".concat(Ce)))}function hi(){var Ce=qoe(c,ie,!1),lt=Xi(ie.selection.focusPath);!Hi(Ce.focusPath)&&or(lt,Xi(Ce.focusPath))?tt(uf(Ce.focusPath)):tt(cf(lt)),r("insert before",{selection:ie.selection,selectionBefore:Ce,parentPath:lt}),Xl().then(Rl)}function di(){var Ce=Nr(ie.selection)?Ln(ie.selection.paths):ie.selection.focusPath;r("insert after",Ce),tt(uf(Ce)),Xl().then(Rl)}function kr(Ce){return Qr.apply(this,arguments)}function Qr(){return(Qr=Zi(vn().mark(function Ce(lt){return vn().wrap(function(It){for(;;)switch(It.prev=It.next){case 0:return It.next=2,ece({char:lt,selectInside:!0,refJsonEditor:l,json:c,documentState:ie,readOnly:_,parser:R,onPatch:Yn,onReplaceJson:br,onSelect:tt});case 2:case"end":return It.stop()}},Ce)}))).apply(this,arguments)}function gi(){if(!_&&wr.getState().canUndo){var Ce=wr.undo();if(Ce){var lt={json:c,text:u};e(10,c=Ce.undo.patch?Yu(c,Ce.undo.patch):Ce.undo.json),e(16,ie=Ce.undo.state),e(11,u=Ce.undo.text),e(23,Fn=Ce.undo.textIsRepaired),r("undo",{item:Ce,json:c,documentState:ie}),ei(lt,{json:c,previousJson:lt.json,redo:Ce.undo.patch,undo:Ce.redo.patch}),Ps(),ie.selection&&hn(ie.selection.focusPath,!1)}}}function yr(){if(!_&&wr.getState().canRedo){var Ce=wr.redo();if(Ce){var lt={json:c,text:u};e(10,c=Ce.redo.patch?Yu(c,Ce.redo.patch):Ce.redo.json),e(16,ie=Ce.redo.state),e(11,u=Ce.redo.text),e(23,Fn=Ce.redo.textIsRepaired),r("redo",{item:Ce,json:c,documentState:ie}),ei(lt,{json:c,previousJson:lt.json,redo:Ce.redo.patch,undo:Ce.undo.patch}),Ps(),ie.selection&&hn(ie.selection.focusPath,!1)}}}function Ee(Ce){var lt;_||void 0===c||(Ne=!0,V({id:h,json:c,rootPath:Ce,onSort:(lt=Zi(vn().mark(function It(Jt){var nn;return vn().wrap(function(an){for(;;)switch(an.prev=an.next){case 0:r("onSort",Ce,nn=Jt.operations),Yn(nn,function(Vn,li){return{state:Ze(Ze({},np(Vn,li,Ce)),{},{selection:mr(Ce,!1)})}});case 3:case"end":return an.stop()}},It)})),function(It){return lt.apply(this,arguments)}),onClose:function(){Ne=!1,Ps()}}))}function St(){ie.selection&&Ee(Joe(c,ie.selection))}function Ht(Ce){var It=Ce.rootPath,Jt=Ce.onTransform,nn=Ce.onClose;void 0!==c&&It&&(Ne=!0,oe({id:Ce.id||f,json:c,rootPath:It,onTransform:Jt?function(an){Jt({operations:an,json:c,transformedJson:Yu(c,an)})}:function(an){r("onTransform",It,an),Yn(an,function(Vn,li){return{state:Ze(Ze({},np(Vn,li,It)),{},{selection:mr(It,!1)})}})},onClose:function(){Ne=!1,Ps(),nn&&nn()}}))}function sn(){ie.selection&&Ht({rootPath:Joe(c,ie.selection)})}function hn(Ce){return ri.apply(this,arguments)}function ri(){return ri=Zi(vn().mark(function Ce(lt){var It,Jt,nn,an,li=arguments;return vn().wrap(function(fi){for(;;)switch(fi.prev=fi.next){case 0:return It=!(li.length>1&&void 0!==li[1])||li[1],e(16,ie=PO(c,ie,Xi(lt))),fi.next=4,Xl();case 4:if(!(Jt=Oi(lt))){fi.next=14;break}if(r("scrollTo",{path:lt,elem:Jt,refContents:s}),nn=s.getBoundingClientRect(),an=Jt.getBoundingClientRect(),It){fi.next=12;break}if(!(an.bottom>nn.top&&an.topIt.bottom-20&&y(lt,{container:s,offset:-(It.height-nn-20),duration:0})}}function ei(Ce,lt){(void 0!==Ce.json||void 0!==Ce?.text)&&(void 0!==u?Z({text:u,json:void 0},Ce,{contentErrors:Cr(),patchResult:lt}):void 0!==c&&Z({text:void 0,json:c},Ce,{contentErrors:Cr(),patchResult:lt}))}function Yn(Ce,lt){if(!_)return r("handlePatch",Ce,lt),Er(Ce,lt)}function br(Ce,lt){var It=ie,Jt=c,nn=u,an={json:c,text:u},Vn=Fn,li=nu(c,ie,[],sh),fi="function"==typeof lt?lt(Ce,li):void 0;e(10,c=fi&&void 0!==fi.json?fi.json:Ce),e(16,ie=fi&&void 0!==fi.state?fi.state:li),e(11,u=void 0),e(23,Fn=!1),ai(c),bi({previousJson:Jt,previousState:It,previousText:nn,previousTextIsRepaired:Vn}),ei(an,null)}function Ar(Ce,lt){r("handleChangeText");var It=ie,Jt=c,nn=u,an={json:c,text:u},Vn=Fn;try{e(10,c=z(Ce)),e(16,ie=nu(c,ie,[],sh)),e(11,u=void 0),e(23,Fn=!1)}catch{try{e(10,c=z(Yd(Ce))),e(16,ie=nu(c,ie,[],sh)),e(11,u=Ce),e(23,Fn=!0)}catch{e(10,c=void 0),e(16,ie=Lk({json:c,expand:sh})),e(11,u=Ce),e(23,Fn=!1)}}if("function"==typeof lt){var li=lt(c,ie);e(10,c=li&&li.json?li.json:c),e(16,ie=li&&li.state?li.state:ie)}ai(c),bi({previousJson:Jt,previousState:It,previousText:nn,previousTextIsRepaired:Vn}),ei(an,null)}function Po(Ce,lt){var It=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r("expand",{path:Ce,expanded:lt,recursive:It}),e(16,ie=lt?It?nu(c,ie,Ce,Hb):function PGe(t,n){return Ze(Ze({},t),{},{expandedMap:Ze(Ze({},t.expandedMap),{},ql({},ln(n),!0))})}(ie,Ce):Loe(ie,Ce)),ie.selection&&!lt&&function RGe(t,n){return l0(t.focusPath,n)&&(t.focusPath.length>n.length||Xs(t))}(ie.selection,Ce)&&tt(void 0),setTimeout(function(){jk(l)||Ps()})}function ca(Ce){r("openFind",{findAndReplace:Ce}),e(19,Ie=!1),e(20,Ye=!1),Xl().then(function(){e(19,Ie=!0),e(20,Ye=Ce)})}function md(Ce,lt){r("handleExpandSection",Ce,lt);var nn,an,Vn,It=ln(Ce);e(16,(an=It,Vn=lt,ie=Ze(Ze({},nn=ie),{},{visibleSectionsMap:Ze(Ze({},nn.visibleSectionsMap),{},ql({},an,Poe(Rk(nn,an).concat(Vn))))})))}function hu(Ce){r("pasted json as text",Ce),e(18,B=Ce)}function ua(Ce){Ne=!0;var Lo=m(XXe,{json:c,documentState:ie,parser:R,showTip:Ce.showTip,onEditKey:qr,onEditValue:ao,onToggleEnforceString:Js,onCut:vr,onCopy:qa,onPaste:Ic,onRemove:He,onDuplicate:qe,onExtract:ut,onInsertBefore:hi,onInsert:Dn,onConvert:ii,onInsertAfter:di,onSort:St,onTransform:sn,onCloseContextMenu:function(){g(Lo),Ps()}},{left:Ce.left,top:Ce.top,offsetTop:Ce.offsetTop,offsetLeft:Ce.offsetLeft,width:Ce.width,height:Ce.height,anchor:Ce.anchor,closeOnOuterClick:!0,onClose:function(){Ne=!1,Ps()}})}function Rl(Ce){if(!_&&!ip(ie.selection)){if(Ce&&(Ce.stopPropagation(),Ce.preventDefault()),Ce&&"contextmenu"===Ce.type&&Ce.target!==a)ua({left:Ce.clientX,top:Ce.clientY,width:260,height:336,showTip:!1});else{var lt,It=null===(lt=s)||void 0===lt?void 0:lt.querySelector(".jse-context-menu-pointer.jse-selected");if(It)ua({anchor:It,offsetTop:2,width:260,height:336,showTip:!1});else{var Jt,nn=null===(Jt=s)||void 0===Jt?void 0:Jt.getBoundingClientRect();nn&&ua({top:nn.top+2,left:nn.left+2,width:260,height:336,showTip:!1})}}return!1}}function gd(){return(gd=Zi(vn().mark(function Ce(){var lt,It,Jt;return vn().wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:return r("apply pasted json",B),It=(lt=B).path,Jt=lt.contents,tt(mr(It,!1)),nn.next=5,Xl();case 5:Yn([{op:"replace",path:ln(It),value:Jt}],function(an,Vn){return{state:np(an,Vn,It)}});case 7:case"end":return nn.stop()}},Ce)}))).apply(this,arguments)}function Ps(){r("focus"),a&&(a.focus(),a.select())}function vd(Ce){return lt=c,It=ie,nn=Xi(Jt=Ce),an=[Ln(Jt)],(li=(Vn=Sn(lt,nn))?HO(Vn,It,an):void 0)?mr(nn.concat(li),!1):uf(Jt);var lt,It,Jt,nn,an,Vn,li}function yd(Ce){i&&i.onDrag(Ce)}function eT(){i&&i.onDragEnd()}return t.$$set=function(Ce){"readOnly"in Ce&&e(0,_=Ce.readOnly),"externalContent"in Ce&&e(50,C=Ce.externalContent),"mainMenuBar"in Ce&&e(1,S=Ce.mainMenuBar),"navigationBar"in Ce&&e(2,M=Ce.navigationBar),"escapeControlCharacters"in Ce&&e(51,$=Ce.escapeControlCharacters),"escapeUnicodeCharacters"in Ce&&e(52,G=Ce.escapeUnicodeCharacters),"parser"in Ce&&e(3,R=Ce.parser),"parseMemoizeOne"in Ce&&e(53,z=Ce.parseMemoizeOne),"validator"in Ce&&e(54,U=Ce.validator),"validationParser"in Ce&&e(55,q=Ce.validationParser),"pathParser"in Ce&&e(4,re=Ce.pathParser),"indentation"in Ce&&e(5,L=Ce.indentation),"onError"in Ce&&e(6,X=Ce.onError),"onChange"in Ce&&e(56,Z=Ce.onChange),"onChangeMode"in Ce&&e(57,H=Ce.onChangeMode),"onRenderValue"in Ce&&e(58,he=Ce.onRenderValue),"onRenderMenu"in Ce&&e(7,E=Ce.onRenderMenu),"onClassName"in Ce&&e(59,N=Ce.onClassName),"onFocus"in Ce&&e(60,F=Ce.onFocus),"onBlur"in Ce&&e(61,Y=Ce.onBlur),"onSortModal"in Ce&&e(62,V=Ce.onSortModal),"onTransformModal"in Ce&&e(63,oe=Ce.onTransformModal),"onJSONEditorModal"in Ce&&e(64,fe=Ce.onJSONEditorModal)},t.$$.update=function(){var Ce,lt;3145728&t.$$.dirty[1]&&e(73,ot=TO({escapeControlCharacters:$,escapeUnicodeCharacters:G})),524288&t.$$.dirty[1]&&function gt(Ce){void 0!==Ce.json&&function(lt){if(void 0!==lt){var It=!or(c,lt);if(r("update external json",{isChanged:It,currentlyText:void 0===c}),It){var Jt={json:c,text:u},nn=ie,an=c,Vn=u,li=Fn;e(10,c=lt),On(c),e(11,u=void 0),e(23,Fn=!1),ai(c),bi({previousJson:an,previousState:nn,previousText:Vn,previousTextIsRepaired:li}),ei(Jt,null)}}}(Ce.json),void 0!==Ce.text&&function(lt){if(void 0!==lt&&void 0===C.json){var It=lt!==u;if(r("update external text",{isChanged:It}),It){var Jt={json:c,text:u},nn=c,an=ie,Vn=u,li=Fn;try{e(10,c=z(lt)),On(c),e(11,u=lt),e(23,Fn=!1),xe=void 0}catch(fi){try{e(10,c=z(Yd(lt))),On(c),e(11,u=lt),e(23,Fn=!0),xe=void 0,ai(c)}catch{e(10,c=void 0),e(11,u=C.text),e(23,Fn=!1),xe=Nk(u,fi.message||fi.toString())}}ai(c),bi({previousJson:nn,previousState:an,previousText:Vn,previousTextIsRepaired:li}),ei(Jt,null)}}}(Ce.text)}(C),1024&t.$$.dirty[0]|4096&t.$$.dirty[2]&&jo(_t,c),1032&t.$$.dirty[0]|25165824&t.$$.dirty[1]&&Fi(c,U,R,q),4096&t.$$.dirty[0]&&e(24,(lt={},(Ce=xt).forEach(function(It){lt[ln(It.path)]=It}),Ce.forEach(function(It){for(var Jt=It.path;Jt.length>0;){var nn=ln(Jt=Xi(Jt));nn in lt||(lt[nn]={isChildError:!0,path:Jt,message:"Contains invalid data",severity:Xd.warning})}}),Ai=lt)),512&t.$$.dirty[0]&&(i=s?function(Ce){var lt,It;function Jt(li){return li<20?200:li<50?400:1200}function nn(){Ce&&(Ce.scrollTop+=.05*(lt||0))}function an(li){It&&li===lt||(Vn(),s4("startAutoScroll",li),lt=li,It=setInterval(nn,50))}function Vn(){It&&(s4("stopAutoScroll"),clearInterval(It),It=void 0,lt=void 0)}return s4("createAutoScrollHandler",Ce),{onDrag:function(li){if(Ce){var fi=li.clientY,Lo=Ce.getBoundingClientRect(),Ls=Lo.top,Zo=Lo.bottom;fiZo?an(Jt(fi-Zo)):Vn()}},onDragEnd:function(){Vn()}}}(s):void 0),9&t.$$.dirty[0]|402653184&t.$$.dirty[1]|2048&t.$$.dirty[2]&&e(13,Wr={readOnly:_,parser:R,normalization:ot,getJson:xo,getDocumentState:Qo,findElement:Oi,findNextInside:vd,focus:Ps,onPatch:Yn,onInsert:Ue,onExpand:Po,onSelect:tt,onFind:ca,onExpandSection:md,onPasteJson:hu,onRenderValue:he,onContextMenu:ua,onClassName:N||function(){},onDrag:yd,onDragEnd:eT}),8192&t.$$.dirty[0]&&r("context changed",Wr)},[_,S,M,R,re,L,X,E,function(){return Fn&&void 0!==c&&br(c),{json:c,text:u}},s,c,u,xt,Wr,a,l,ie,ze,B,Ie,Ye,Le,Or,Fn,Ai,o,At,function(){return ci.apply(this,arguments)},function(){return on.apply(this,arguments)},function(Ce,lt){return Ni.apply(this,arguments)},function(Ce,lt){return pn.apply(this,arguments)},function(){e(19,Ie=!1),e(20,Ye=!1),At(""),Ps()},function(Ce){r("select validation error",Ce),tt(mr(Ce.path,!1)),hn(Ce.path)},qa,function(Ce){Ce.preventDefault(),Qle({clipboardText:Ce.clipboardData.getData("text/plain"),json:c,documentState:ie,readOnly:_,parser:R,onPatch:Yn,onChangeText:Ar,openRepairModal:we})},gi,yr,function(){Ee([])},function(){Ht({rootPath:[]})},function(){Po([],!0,!0)},function(){Po([],!1,!0)},function(Ce){var lt=tp(Ce),It=Ce.shiftKey;if(r("keydown",{combo:lt,key:Ce.key}),"Ctrl+X"===lt&&(Ce.preventDefault(),vr(!0)),"Ctrl+Shift+X"===lt&&(Ce.preventDefault(),vr(!1)),"Ctrl+C"===lt&&(Ce.preventDefault(),qa(!0)),"Ctrl+Shift+C"===lt&&(Ce.preventDefault(),qa(!1)),"Ctrl+D"===lt&&(Ce.preventDefault(),qe()),"Delete"!==lt&&"Backspace"!==lt||(Ce.preventDefault(),He()),"Insert"===lt&&(Ce.preventDefault(),Ue("structure")),"Ctrl+A"===lt&&(Ce.preventDefault(),tt(mr([],!1))),"Ctrl+Q"===lt&&Rl(Ce),"ArrowUp"===lt||"Shift+ArrowUp"===lt){Ce.preventDefault();var Jt=ie.selection?qoe(c,ie,It,!0)||ie.selection:s0(c,ie);tt(Jt),Bn(Jt.focusPath)}if("ArrowDown"===lt||"Shift+ArrowDown"===lt){Ce.preventDefault();var nn=ie.selection?function(wo,$l){var wh=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Mr=$l.selection;if(!Mr)return null;var tc=arguments.length>3&&void 0!==arguments[3]&&arguments[3]||!Nr(Mr)?Mr.focusPath:Ln(Mr.paths),fu=HO(wo,$l,tc),_d=fu,Ch=fu;if(null===fu||null==_d||null==Ch)return null;if(wh){var xd=HO(wo,Ho(Sn(wo,tc))?Loe($l,tc):$l,tc);return null===xd?null:Zu(Mr)?Os(wo,xd,xd):Xs(Mr)?Os(wo,_d,Ch):Os(wo,Mr.anchorPath,xd)}if(xs(Mr)){var z_=Sn(wo,Xi(fu));return Array.isArray(z_)?mr(Ch,!1):iu(Ch,!1)}return Yi(Mr)?mr(Ch,!1):Xs(Mr)?Os(wo,_d,Ch):Os(wo,fu,fu)}(c,ie,It,!0)||ie.selection:s0(c,ie);tt(nn),Bn(nn.focusPath)}if("ArrowLeft"===lt||"Shift+ArrowLeft"===lt){Ce.preventDefault();var an=ie.selection?function(wo,$l){var wh=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Mr=$l.selection;if(!Mr)return null;var tc=Xoe(wo,$l,!(arguments.length>3&&void 0!==arguments[3])||arguments[3]),fu=tc.caret,_d=tc.previous;if(wh)return Nr(Mr)?null:Os(wo,Mr.anchorPath,Mr.focusPath);if(fu&&_d)return zO(_d);var xd=Sn(wo,Xi(Mr.focusPath));return Yi(Mr)&&Array.isArray(xd)?Os(wo,Mr.focusPath,Mr.focusPath):Nr(Mr)&&!Array.isArray(xd)?iu(Mr.focusPath,!1):null}(c,ie,It,!_)||ie.selection:s0(c,ie);tt(an),Bn(an.focusPath)}if("ArrowRight"===lt||"Shift+ArrowRight"===lt){Ce.preventDefault();var Vn=ie.selection&&void 0!==c?function(wo,$l){var wh=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Mr=$l.selection;if(!Mr)return null;var tc=Xoe(wo,$l,!(arguments.length>3&&void 0!==arguments[3])||arguments[3]),fu=tc.caret,_d=tc.next;return wh?Nr(Mr)?null:Os(wo,Mr.anchorPath,Mr.focusPath):fu&&_d?zO(_d):Nr(Mr)?mr(Mr.focusPath,!1):null}(c,ie,It,!_)||ie.selection:s0(c,ie);tt(Vn),Bn(Vn.focusPath)}if("Enter"===lt&&ie.selection){if(!_&&Nr(ie.selection)&&1===ie.selection.paths.length){var li=ie.selection.focusPath,fi=Sn(c,Xi(li));Array.isArray(fi)&&tt(mr(li,!1))}!_&&xs(ie.selection)&&(Ce.preventDefault(),tt(Ze(Ze({},ie.selection),{},{edit:!0}))),Yi(ie.selection)&&(Ce.preventDefault(),Ho(Sn(c,ie.selection.focusPath))?Po(ie.selection.focusPath,!0):_||tt(Ze(Ze({},ie.selection),{},{edit:!0})))}if(1===lt.replace(/^Shift\+/,"").length&&ie.selection)return Ce.preventDefault(),void kr(Ce.key);if("Enter"===lt&&(Zu(ie.selection)||Xs(ie.selection)))return Ce.preventDefault(),void kr("");if("Ctrl+Enter"===lt&&Yi(ie.selection)){var Lo=Sn(c,ie.selection.focusPath);V2(Lo)&&window.open(String(Lo),"_blank")}if("Escape"===lt&&ie.selection&&(Ce.preventDefault(),tt(void 0)),"Ctrl+F"===lt&&(Ce.preventDefault(),ca(!1)),"Ctrl+H"===lt&&(Ce.preventDefault(),ca(!0)),"Ctrl+Z"===lt){Ce.preventDefault();var Ls=document.activeElement;Ls&&Ls.blur&&Ls.focus?(Ls.blur(),setTimeout(function(){gi(),setTimeout(function(){return Ls.select()})})):gi()}if("Ctrl+Shift+Z"===lt){Ce.preventDefault();var Zo=document.activeElement;Zo&&Zo.blur&&Zo.focus?(Zo.blur(),setTimeout(function(){yr(),setTimeout(function(){return Zo.select()})})):yr()}},function(Ce){r("handleMouseDown",Ce),setTimeout(function(){setTimeout(function(){v||yoe(Ce.target,"BUTTON")||(Ps(),ie.selection||void 0!==c||""!==u&&void 0!==u||(r("createDefaultSelection"),e(16,ie=Ze(Ze({},ie),{},{selection:Os(c||{},[],[])}))))})})},Rl,function(Ce){_||ua({anchor:_oe(Ce.target,"BUTTON"),offsetTop:0,width:260,height:336,showTip:!0})},function(){return gd.apply(this,arguments)},function(){r("clear pasted json"),e(18,B=void 0)},function(){H(Jo.text)},function(Ce){tt(Ce),Ps(),hn(Ce.focusPath)},function(Ce){!Pb(Ce.target,function(It){return It===l})&&ip(ie.selection)&&(r("click outside the editor, stop edit mode"),tt(function(It){return xs(It)||Yi(It)?Ze(Ze({},It),{},{edit:!1}):It}),v&&a&&(a.focus(),a.blur()),Xl().then(function(){setTimeout(function(){a&&a.blur()})}))},C,$,G,z,U,q,Z,H,he,N,F,Y,V,oe,fe,function(){var Ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Hb;r("expand");var lt=Ze(Ze({},ie),{},{expandedMap:{},visibleSectionsMap:{}});e(16,ie=nu(c,lt,[],Ce))},Cr,xo,Er,Ht,hn,Oi,Ps,ot,_t,function(Ce){e(19,Ie=Ce)},function(Ce){Vi[Ce?"unshift":"push"](function(){e(14,a=Ce)})},function(Ce){Vi[Ce?"unshift":"push"](function(){e(9,s=Ce)})},function(Ce){Vi[Ce?"unshift":"push"](function(){e(15,l=Ce)})}]}var k4=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,XJe,qJe,Ei,{readOnly:0,externalContent:50,mainMenuBar:1,navigationBar:2,escapeControlCharacters:51,escapeUnicodeCharacters:52,parser:3,parseMemoizeOne:53,validator:54,validationParser:55,pathParser:4,indentation:5,onError:6,onChange:56,onChangeMode:57,onRenderValue:58,onRenderMenu:7,onClassName:59,onFocus:60,onBlur:61,onSortModal:62,onTransformModal:63,onJSONEditorModal:64,expand:65,validate:66,getJson:67,patch:68,acceptAutoRepair:8,openTransformModal:69,scrollTo:70,findElement:71,focus:72},BJe,[-1,-1,-1,-1,-1]),r}return Se(e,[{key:"expand",get:function(){return this.$$.ctx[65]}},{key:"validate",get:function(){return this.$$.ctx[66]}},{key:"getJson",get:function(){return this.$$.ctx[67]}},{key:"patch",get:function(){return this.$$.ctx[68]}},{key:"acceptAutoRepair",get:function(){return this.$$.ctx[8]}},{key:"openTransformModal",get:function(){return this.$$.ctx[69]}},{key:"scrollTo",get:function(){return this.$$.ctx[70]}},{key:"findElement",get:function(){return this.$$.ctx[71]}},{key:"focus",get:function(){return this.$$.ctx[72]}}]),e}();function YJe(t){pi(t,"svelte-107mggt",".jse-modal.svelte-107mggt.svelte-107mggt{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-107mggt .jse-modal-contents.svelte-107mggt{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions.svelte-107mggt{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column;color:inherit;min-height:0;padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents.svelte-107mggt{flex:1;display:flex;gap:calc(2 * var(--jse-padding));min-height:0;box-sizing:border-box;padding:0 calc(2 * var(--jse-padding)) var(--jse-padding)}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p{margin:var(--jse-padding) 0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p:first-child{margin-top:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p:last-child{margin-bottom:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt code{background:var(--jse-modal-code-background);font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono)}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents textarea.jse-query.svelte-107mggt{flex:1;outline:none;resize:vertical}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column;gap:calc(2 * var(--jse-padding))}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-original-data.svelte-107mggt{flex:1;display:flex;flex-direction:column;min-height:0;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-original-data.jse-hide.svelte-107mggt{flex:none}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-preview-data.svelte-107mggt{flex:1;display:flex;flex-direction:column;min-height:0;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.jse-hide-original-data.svelte-107mggt{flex-direction:column;gap:0;margin-bottom:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-actions.svelte-107mggt{padding:var(--jse-padding) calc(2 * var(--jse-padding)) calc(2 * var(--jse-padding))}@media screen and (max-width: 1200px){.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents.svelte-107mggt{flex-direction:column;overflow:auto}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents textarea.jse-query.svelte-107mggt{min-height:150px;flex:none}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.svelte-107mggt .jse-tree-mode{height:300px;flex:none}}.jse-modal.jse-transform.svelte-107mggt .jse-label.svelte-107mggt{font-weight:bold;display:block;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-label .jse-label-inner.svelte-107mggt{margin-top:calc(2 * var(--jse-padding));margin-bottom:calc(0.5 * var(--jse-padding));box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-label .jse-label-inner button.svelte-107mggt{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;font-weight:bold;padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-tree-mode{flex:1;background:var(--jse-input-background-readonly);box-shadow:none;box-sizing:border-box;--jse-main-border:var(--jse-input-border)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt{border:var(--jse-input-border);outline:none;box-sizing:border-box;padding:calc(0.5 * var(--jse-padding));font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:inherit;background:var(--jse-input-background)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt:focus,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt:focus{border:var(--jse-input-border-focus)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt:read-only,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt:read-only{background:var(--jse-input-background-readonly)}.jse-modal.jse-transform.svelte-107mggt .jse-preview.jse-error.svelte-107mggt{flex:1;background:var(--jse-input-background-readonly);border:var(--jse-input-border);color:var(--jse-error-color);padding:calc(0.5 * var(--jse-padding))}.jse-modal.jse-transform.svelte-107mggt a{color:var(--jse-a-color)}.jse-modal.jse-transform.svelte-107mggt a:hover{color:var(--jse-a-color-highlight)}")}function sce(t){var n,e,i,r,o,s=[KJe,JJe],a=[];function l(c,u){return 16384&u[0]&&(n=null),null==n&&(n=!!Array.isArray(c[14])),n?0:1}return e=l(t,[-1,-1]),i=a[e]=s[e](t),{c:function(){i.c(),r=_r()},m:function(c,u){a[e].m(c,u),Pe(c,r,u),o=!0},p:function(c,u){var d=e;(e=l(c,u))===d?a[e].p(c,u):($t(),ce(a[d],1,1,function(){a[d]=null}),Bt(),(i=a[e])?i.p(c,u):(i=a[e]=s[e](c)).c(),Q(i,1),i.m(r.parentNode,r))},i:function(c){o||(Q(i),o=!0)},o:function(c){ce(i),o=!1},d:function(c){a[e].d(c),c&&je(r)}}}function JJe(t){var n;return{c:function(){n=tn("(Only available for arrays, not for objects)")},m:function(e,i){Pe(e,n,i)},p:Lt,i:Lt,o:Lt,d:function(e){e&&je(n)}}}function KJe(t){var n,e;return n=new wqe({props:{queryOptions:t[12],json:t[14],onChange:t[22]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};4096&r[0]&&(o.queryOptions=i[12]),16384&r[0]&&(o.json=i[14]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function ace(t){var n,e;return n=new k4({props:{externalContent:t[19],readOnly:!0,mainMenuBar:!1,navigationBar:!1,indentation:t[2],escapeControlCharacters:t[3],escapeUnicodeCharacters:t[4],parser:t[5],parseMemoizeOne:t[6],onRenderValue:t[10],onRenderMenu:go,onError:console.error,onChange:go,onChangeMode:go,onFocus:go,onBlur:go,onSortModal:go,onTransformModal:go,onJSONEditorModal:go,onClassName:t[11],validator:null,validationParser:t[7],pathParser:t[8]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};524288&r[0]&&(o.externalContent=i[19]),4&r[0]&&(o.indentation=i[2]),8&r[0]&&(o.escapeControlCharacters=i[3]),16&r[0]&&(o.escapeUnicodeCharacters=i[4]),32&r[0]&&(o.parser=i[5]),64&r[0]&&(o.parseMemoizeOne=i[6]),1024&r[0]&&(o.onRenderValue=i[10]),2048&r[0]&&(o.onClassName=i[11]),128&r[0]&&(o.validationParser=i[7]),256&r[0]&&(o.pathParser=i[8]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function QJe(t){var n,e;return{c:function(){n=be("div"),e=tn(t[17]),P(n,"class","jse-preview jse-error svelte-107mggt")},m:function(i,r){Pe(i,n,r),de(n,e)},p:function(i,r){131072&r[0]&&qn(e,i[17])},i:Lt,o:Lt,d:function(i){i&&je(n)}}}function ZJe(t){var n,e;return n=new k4({props:{externalContent:t[18],readOnly:!0,mainMenuBar:!1,navigationBar:!1,indentation:t[2],escapeControlCharacters:t[3],escapeUnicodeCharacters:t[4],parser:t[5],parseMemoizeOne:t[6],onRenderValue:t[10],onRenderMenu:go,onError:console.error,onChange:go,onChangeMode:go,onFocus:go,onBlur:go,onSortModal:go,onTransformModal:go,onJSONEditorModal:go,onClassName:t[11],validator:null,validationParser:t[7],pathParser:t[8]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};262144&r[0]&&(o.externalContent=i[18]),4&r[0]&&(o.indentation=i[2]),8&r[0]&&(o.escapeControlCharacters=i[3]),16&r[0]&&(o.escapeUnicodeCharacters=i[4]),32&r[0]&&(o.parser=i[5]),64&r[0]&&(o.parseMemoizeOne=i[6]),1024&r[0]&&(o.onRenderValue=i[10]),2048&r[0]&&(o.onClassName=i[11]),128&r[0]&&(o.validationParser=i[7]),256&r[0]&&(o.pathParser=i[8]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function eKe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,C,S,M,$,G,R,z,U,q,re,L,X,Z,H,he,E,N,F,Y,V,oe,fe,Ne,xe,tt,ze,ot,B,ne=t[21](t[0]).description+"";n=new Nqe({props:{queryLanguages:t[9],queryLanguageId:t[0],onChangeQueryLanguage:t[27]}}),y=new sr({props:{data:t[15]?ru:rp}});var ie=t[15]&&sce(t);X=new sr({props:{data:t[16]?ru:rp}});var Ie=t[16]&&ace(t),Ye=[ZJe,QJe],Le=[];function _t(At,_n){return At[17]?1:0}return Y=_t(t),V=Le[Y]=Ye[Y](t),{c:function(){mt(n.$$.fragment),e=it(),i=be("div"),r=be("div"),o=be("div"),(s=be("div")).innerHTML='
    Language
    ',a=it(),l=be("div"),c=it(),(u=be("div")).innerHTML='
    Path
    ',d=it(),h=be("input"),p=it(),m=be("div"),g=be("div"),v=be("button"),mt(y.$$.fragment),_=tn("\n Wizard"),C=it(),ie&&ie.c(),S=it(),(M=be("div")).innerHTML='
    Query
    ',$=it(),G=be("textarea"),R=it(),z=be("div"),U=be("div"),q=be("div"),re=be("div"),L=be("button"),mt(X.$$.fragment),Z=tn("\n Original"),H=it(),Ie&&Ie.c(),he=it(),E=be("div"),(N=be("div")).innerHTML='
    Preview
    ',F=it(),V.c(),oe=it(),fe=be("div"),Ne=be("button"),xe=tn("Transform"),P(s,"class","jse-label svelte-107mggt"),P(l,"class","jse-description svelte-107mggt"),P(u,"class","jse-label svelte-107mggt"),P(h,"class","jse-path svelte-107mggt"),P(h,"type","text"),h.readOnly=!0,P(h,"title","Selected path"),h.value=f=Hi(t[1])?"(whole document)":tu(Kl(t[1])),P(v,"type","button"),P(v,"class","svelte-107mggt"),P(g,"class","jse-label-inner svelte-107mggt"),P(m,"class","jse-label svelte-107mggt"),P(M,"class","jse-label svelte-107mggt"),P(G,"class","jse-query svelte-107mggt"),P(G,"spellcheck","false"),G.value=t[13],P(o,"class","jse-query-contents svelte-107mggt"),P(L,"type","button"),P(L,"class","svelte-107mggt"),P(re,"class","jse-label-inner svelte-107mggt"),P(q,"class","jse-label svelte-107mggt"),P(U,"class","jse-original-data svelte-107mggt"),Mt(U,"jse-hide",!t[16]),P(N,"class","jse-label svelte-107mggt"),P(E,"class","jse-preview-data svelte-107mggt"),P(z,"class","jse-data-contents svelte-107mggt"),Mt(z,"jse-hide-original-data",!t[16]),P(r,"class","jse-main-contents svelte-107mggt"),P(Ne,"type","button"),P(Ne,"class","jse-primary svelte-107mggt"),Ne.disabled=tt=!!t[17],P(fe,"class","jse-actions svelte-107mggt"),P(i,"class","jse-modal-contents svelte-107mggt")},m:function(At,_n){ft(n,At,_n),Pe(At,e,_n),Pe(At,i,_n),de(i,r),de(r,o),de(o,s),de(o,a),de(o,l),l.innerHTML=ne,de(o,c),de(o,u),de(o,d),de(o,h),de(o,p),de(o,m),de(m,g),de(g,v),ft(y,v,null),de(v,_),de(o,C),ie&&ie.m(o,null),de(o,S),de(o,M),de(o,$),de(o,G),de(r,R),de(r,z),de(z,U),de(U,q),de(q,re),de(re,L),ft(X,L,null),de(L,Z),de(U,H),Ie&&Ie.m(U,null),de(z,he),de(z,E),de(E,N),de(E,F),Le[Y].m(E,null),de(i,oe),de(i,fe),de(fe,Ne),de(Ne,xe),ze=!0,ot||(B=[Ft(v,"click",t[25]),Ft(G,"input",t[23]),Ft(L,"click",t[26]),Ft(Ne,"click",t[24]),_a(nKe.call(null,Ne))],ot=!0)},p:function(At,_n){var ci={};512&_n[0]&&(ci.queryLanguages=At[9]),1&_n[0]&&(ci.queryLanguageId=At[0]),n.$set(ci),(!ze||1&_n[0])&&ne!==(ne=At[21](At[0]).description+"")&&(l.innerHTML=ne),(!ze||2&_n[0]&&f!==(f=Hi(At[1])?"(whole document)":tu(Kl(At[1])))&&h.value!==f)&&(h.value=f);var on={};32768&_n[0]&&(on.data=At[15]?ru:rp),y.$set(on),At[15]?ie?(ie.p(At,_n),32768&_n[0]&&Q(ie,1)):((ie=sce(At)).c(),Q(ie,1),ie.m(o,S)):ie&&($t(),ce(ie,1,1,function(){ie=null}),Bt()),(!ze||8192&_n[0])&&(G.value=At[13]);var Ni={};65536&_n[0]&&(Ni.data=At[16]?ru:rp),X.$set(Ni),At[16]?Ie?(Ie.p(At,_n),65536&_n[0]&&Q(Ie,1)):((Ie=ace(At)).c(),Q(Ie,1),Ie.m(U,null)):Ie&&($t(),ce(Ie,1,1,function(){Ie=null}),Bt()),(!ze||65536&_n[0])&&Mt(U,"jse-hide",!At[16]);var pn=Y;(Y=_t(At))===pn?Le[Y].p(At,_n):($t(),ce(Le[pn],1,1,function(){Le[pn]=null}),Bt(),(V=Le[Y])?V.p(At,_n):(V=Le[Y]=Ye[Y](At)).c(),Q(V,1),V.m(E,null)),(!ze||65536&_n[0])&&Mt(z,"jse-hide-original-data",!At[16]),(!ze||131072&_n[0]&&tt!==(tt=!!At[17]))&&(Ne.disabled=tt)},i:function(At){ze||(Q(n.$$.fragment,At),Q(y.$$.fragment,At),Q(ie),Q(X.$$.fragment,At),Q(Ie),Q(V),ze=!0)},o:function(At){ce(n.$$.fragment,At),ce(y.$$.fragment,At),ce(ie),ce(X.$$.fragment,At),ce(Ie),ce(V),ze=!1},d:function(At){pt(n,At),At&&je(e),At&&je(i),pt(y),ie&&ie.d(),pt(X),Ie&&Ie.d(),Le[Y].d(),ot=!1,ho(B)}}}function tKe(t){var n,e,i,r,o;return e=new Doe({props:{$$slots:{default:[eKe]},$$scope:{ctx:t}}}),{c:function(){n=be("div"),mt(e.$$.fragment),P(n,"class","jse-modal jse-transform svelte-107mggt")},m:function(s,a){Pe(s,n,a),ft(e,n,null),i=!0,r||(o=_a(iS.call(null,n,t[20])),r=!0)},p:function(s,a){var l={};1048575&a[0]|256&a[1]&&(l.$$scope={dirty:a,ctx:s}),e.$set(l)},i:function(s){i||(Q(e.$$.fragment,s),i=!0)},o:function(s){ce(e.$$.fragment,s),i=!1},d:function(s){s&&je(n),pt(e),r=!1,o()}}}function nKe(t){t.focus()}function iKe(t,n,e){var i,r,o=wa("jsoneditor:TransformModal"),s=n.id,a=void 0===s?"transform-modal-"+fb():s,l=n.json,c=n.rootPath,u=void 0===c?[]:c,d=n.indentation,h=n.escapeControlCharacters,f=n.escapeUnicodeCharacters,p=n.parser,m=n.parseMemoizeOne,g=n.validationParser,v=n.pathParser,y=n.queryLanguages,_=n.queryLanguageId,C=n.onChangeQueryLanguage,S=n.onRenderValue,M=n.onClassName,$=n.onTransform,G=xa("simple-modal").close,R="".concat(a,":").concat(ln(u)),z=ed[R]||{},U=!1!==ed.showWizard,q=!1!==ed.showOriginal,re=z.queryOptions||{},L=_===z.queryLanguageId&&z.query?z.query:he(_).createQuery(l,z.queryOptions||{}),X=z.isManual||!1,Z=void 0,H={text:""};function he(N){return y.find(function(F){return F.id===N})||y[0]}var E=Gv(function(N,F){try{o("previewTransform",{query:F});var Y=he(_).executeQuery(N,F,p);e(18,H={json:Y}),e(17,Z=void 0)}catch(V){e(18,H={text:""}),e(17,Z=V.toString())}},300);return t.$$set=function(N){"id"in N&&e(28,a=N.id),"json"in N&&e(29,l=N.json),"rootPath"in N&&e(1,u=N.rootPath),"indentation"in N&&e(2,d=N.indentation),"escapeControlCharacters"in N&&e(3,h=N.escapeControlCharacters),"escapeUnicodeCharacters"in N&&e(4,f=N.escapeUnicodeCharacters),"parser"in N&&e(5,p=N.parser),"parseMemoizeOne"in N&&e(6,m=N.parseMemoizeOne),"validationParser"in N&&e(7,g=N.validationParser),"pathParser"in N&&e(8,v=N.pathParser),"queryLanguages"in N&&e(9,y=N.queryLanguages),"queryLanguageId"in N&&e(0,_=N.queryLanguageId),"onChangeQueryLanguage"in N&&e(30,C=N.onChangeQueryLanguage),"onRenderValue"in N&&e(10,S=N.onRenderValue),"onClassName"in N&&e(11,M=N.onClassName),"onTransform"in N&&e(31,$=N.onTransform)},t.$$.update=function(){536870914&t.$$.dirty[0]&&e(14,i=Sn(l,u)),16384&t.$$.dirty[0]&&e(19,r={json:i}),24576&t.$$.dirty[0]&&E(i,L),12289&t.$$.dirty[0]|6&t.$$.dirty[1]&&(e(32,ed[R]={queryOptions:re,query:L,queryLanguageId:_,isManual:X},ed),o("store state in memory",R,ed[R]))},[_,u,d,h,f,p,m,g,v,y,S,M,re,L,i,U,q,Z,H,r,G,he,function(N){e(12,re=N),e(13,L=he(_).createQuery(l,N)),e(33,X=!1),o("updateQueryByWizard",{queryOptions:re,query:L,isManual:X})},function(N){e(13,L=N.target.value),e(33,X=!0),o("handleChangeQuery",{query:L,isManual:X})},function(){try{o("handleTransform",{query:L});var N=he(_).executeQuery(i,L,p);$([{op:"replace",path:ln(u),value:N}]),G()}catch(F){console.error(F),e(18,H={text:""}),e(17,Z=F.toString())}},function(){e(15,U=!U),e(32,ed.showWizard=U,ed)},function(){e(16,q=!q),e(32,ed.showOriginal=q,ed)},function(N){o("handleChangeQueryLanguage",N),e(0,_=N),C(N);var F=he(_);e(13,L=F.createQuery(l,re)),e(33,X=!1)},a,l,C,$,ed,X]}var rKe=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,iKe,tKe,Ei,{id:28,json:29,rootPath:1,indentation:2,escapeControlCharacters:3,escapeUnicodeCharacters:4,parser:5,parseMemoizeOne:6,validationParser:7,pathParser:8,queryLanguages:9,queryLanguageId:0,onChangeQueryLanguage:30,onRenderValue:10,onClassName:11,onTransform:31},YJe,[-1,-1]),r}return Se(e)}(),up={};function oKe(t){pi(t,"svelte-1y818v2",".jse-modal.svelte-1y818v2.svelte-1y818v2{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-1y818v2 .jse-modal-contents.svelte-1y818v2{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions.svelte-1y818v2{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-sort.svelte-1y818v2 table.svelte-1y818v2{width:100%;border-collapse:collapse;border-spacing:0}.jse-modal.jse-sort.svelte-1y818v2 table th.svelte-1y818v2,.jse-modal.jse-sort.svelte-1y818v2 table td.svelte-1y818v2{text-align:left;vertical-align:middle;font-weight:normal;padding-bottom:var(--jse-padding)}.jse-modal.jse-sort.svelte-1y818v2 table th input.jse-path.svelte-1y818v2,.jse-modal.jse-sort.svelte-1y818v2 table td input.jse-path.svelte-1y818v2{width:100%;box-sizing:border-box;padding:6px 16px;border:var(--jse-input-border);border-radius:var(--jse-input-radius);font-family:inherit;font-size:inherit;background:inherit;color:inherit;outline:none}.jse-modal.jse-sort.svelte-1y818v2 table th input.jse-path.svelte-1y818v2:read-only,.jse-modal.jse-sort.svelte-1y818v2 table td input.jse-path.svelte-1y818v2:read-only{background:var(--jse-input-background-readonly)}.jse-modal.jse-sort.svelte-1y818v2 table th.svelte-1y818v2 .svelte-select input,.jse-modal.jse-sort.svelte-1y818v2 table td.svelte-1y818v2 .svelte-select input{box-sizing:border-box}.jse-modal.jse-sort.svelte-1y818v2 .jse-space.svelte-1y818v2{height:200px}.jse-modal.jse-sort.svelte-1y818v2 .jse-space .jse-error.svelte-1y818v2{color:var(--jse-error-color)}")}function lce(t){var n,e,i,r,o,s,a;function l(u){t[14](u)}var c={showChevron:!0,items:t[3]};return void 0!==t[1]&&(c.value=t[1]),o=new Hm({props:c}),Vi.push(function(){return Uu(o,"value",l)}),{c:function(){n=be("tr"),(e=be("th")).textContent="Property",i=it(),r=be("td"),mt(o.$$.fragment),P(e,"class","svelte-1y818v2"),P(r,"class","svelte-1y818v2")},m:function(u,d){Pe(u,n,d),de(n,e),de(n,i),de(n,r),ft(o,r,null),a=!0},p:function(u,d){var h={};8&d&&(h.items=u[3]),!s&&2&d&&(s=!0,h.value=u[1],zu(function(){return s=!1})),o.$set(h)},i:function(u){a||(Q(o.$$.fragment,u),a=!0)},o:function(u){ce(o.$$.fragment,u),a=!1},d:function(u){u&&je(n),pt(o)}}}function cce(t){var n,e;return{c:function(){n=be("div"),e=tn(t[5]),P(n,"class","jse-error svelte-1y818v2")},m:function(i,r){Pe(i,n,r),de(n,e)},p:function(i,r){32&r&&qn(e,i[5])},d:function(i){i&&je(n)}}}function sKe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,C,S,M,$,G,R,z,U,q,re,L,X,Z;e=new c4({props:{title:t[4]?"Sort array items":"Sort object keys"}});var H=t[4]&&(t[3].length>1||void 0===t[1])&&lce(t);function he(F){t[15](F)}var E={showChevron:!0,clearable:!1,items:t[7]};void 0!==t[2]&&(E.value=t[2]),S=new Hm({props:E}),Vi.push(function(){return Uu(S,"value",he)});var N=t[5]&&cce(t);return{c:function(){n=be("div"),mt(e.$$.fragment),i=it(),r=be("div"),o=be("table"),(s=be("colgroup")).innerHTML=' \n ',a=it(),l=be("tbody"),c=be("tr"),(u=be("th")).textContent="Path",d=it(),h=be("td"),f=be("input"),m=it(),H&&H.c(),g=it(),v=be("tr"),(y=be("th")).textContent="Direction",_=it(),C=be("td"),mt(S.$$.fragment),$=it(),G=be("div"),N&&N.c(),R=it(),z=be("div"),U=be("button"),q=tn("Sort"),P(u,"class","svelte-1y818v2"),P(f,"class","jse-path svelte-1y818v2"),P(f,"type","text"),f.readOnly=!0,P(f,"title","Selected path"),f.value=p=Hi(t[0])?"(whole document)":tu(Kl(t[0])),P(h,"class","svelte-1y818v2"),P(y,"class","svelte-1y818v2"),P(C,"class","svelte-1y818v2"),P(o,"class","svelte-1y818v2"),P(G,"class","jse-space svelte-1y818v2"),P(U,"type","button"),P(U,"class","jse-primary svelte-1y818v2"),U.disabled=re=!!t[4]&&!t[1],P(z,"class","jse-actions svelte-1y818v2"),P(r,"class","jse-modal-contents svelte-1y818v2"),P(n,"class","jse-modal jse-sort svelte-1y818v2")},m:function(F,Y){Pe(F,n,Y),ft(e,n,null),de(n,i),de(n,r),de(r,o),de(o,s),de(o,a),de(o,l),de(l,c),de(c,u),de(c,d),de(c,h),de(h,f),de(l,m),H&&H.m(l,null),de(l,g),de(l,v),de(v,y),de(v,_),de(v,C),ft(S,C,null),de(r,$),de(r,G),N&&N.m(G,null),de(r,R),de(r,z),de(z,U),de(U,q),L=!0,X||(Z=[Ft(U,"click",t[8]),_a(aKe.call(null,U)),_a(iS.call(null,n,t[6]))],X=!0)},p:function(F,Y){var V=Un(Y,1)[0],oe={};16&V&&(oe.title=F[4]?"Sort array items":"Sort object keys"),e.$set(oe),(!L||1&V&&p!==(p=Hi(F[0])?"(whole document)":tu(Kl(F[0])))&&f.value!==p)&&(f.value=p),F[4]&&(F[3].length>1||void 0===F[1])?H?(H.p(F,V),26&V&&Q(H,1)):((H=lce(F)).c(),Q(H,1),H.m(l,g)):H&&($t(),ce(H,1,1,function(){H=null}),Bt());var fe={};!M&&4&V&&(M=!0,fe.value=F[2],zu(function(){return M=!1})),S.$set(fe),F[5]?N?N.p(F,V):((N=cce(F)).c(),N.m(G,null)):N&&(N.d(1),N=null),(!L||18&V&&re!==(re=!!F[4]&&!F[1]))&&(U.disabled=re)},i:function(F){L||(Q(e.$$.fragment,F),Q(H),Q(S.$$.fragment,F),L=!0)},o:function(F){ce(e.$$.fragment,F),ce(H),ce(S.$$.fragment,F),L=!1},d:function(F){F&&je(n),pt(e),H&&H.d(),pt(S),N&&N.d(),X=!1,ho(Z)}}}function aKe(t){t.focus()}function lKe(t,n,e){var i,r,o,s=wa("jsoneditor:SortModal"),a=n.id,l=n.json,c=n.rootPath,u=n.onSort,d=xa("simple-modal").close,h="".concat(a,":").concat(ln(c)),f=Sn(l,c),p={value:1,label:"ascending"},m=[p,{value:-1,label:"descending"}],g=up[h]&&up[h].selectedProperty||void 0,v=up[h]&&up[h].selectedDirection||p,y=void 0;return t.$$set=function(_){"id"in _&&e(9,a=_.id),"json"in _&&e(10,l=_.json),"rootPath"in _&&e(0,c=_.rootPath),"onSort"in _&&e(11,u=_.onSort)},t.$$.update=function(){16&t.$$.dirty&&e(13,r=i&&void 0!==f?CO(f):void 0),8192&t.$$.dirty&&e(3,o=r?r.map(Lb):void 0),10&t.$$.dirty&&void 0===g&&o&&1===o.length&&e(1,g=o[0]),4102&t.$$.dirty&&(e(12,up[h]={selectedProperty:g,selectedDirection:v},up),s("store state in memory",h,up[h]))},e(4,i=Array.isArray(f)),[c,g,v,o,i,y,d,m,function(){try{var _,C;e(5,y=void 0);var S=null===(_=g)||void 0===_?void 0:_.value,M=null===(C=v)||void 0===C?void 0:C.value,$=Nle(l,c,S,M);u({operations:$,rootPath:c,itemPath:S,direction:M}),d()}catch(G){e(5,y=G.toString())}},a,l,u,up,r,function(_){e(1,g=_),e(3,o),e(13,r),e(4,i)},function(_){e(2,v=_)}]}var cKe=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,lKe,sKe,Ei,{id:9,json:10,rootPath:0,onSort:11},oKe),r}return Se(e)}();function dh(){}function sS(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(t<.9*n)return t.toFixed()+" B";var e=t/n;if(e<.9*n)return e.toFixed(1)+" KB";var i=e/n;if(i<.9*n)return i.toFixed(1)+" MB";var r=i/n;return r<.9*n?r.toFixed(1)+" GB":(r/n).toFixed(1)+" TB"}function uKe(t){var n,e;return n=new nS({props:{items:t[0]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};1&Un(r,1)[0]&&(o.items=i[0]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function dKe(t,n,e){var i,r,o=n.readOnly,s=void 0!==o&&o,a=n.onFormat,l=n.onCompact,c=n.onSort,u=n.onTransform,d=n.onToggleSearch,h=n.onUndo,f=n.onRedo,p=n.canUndo,m=n.canRedo,g=n.canFormat,v=n.canCompact,y=n.canSort,_=n.canTransform,C=n.onRenderMenu;return t.$$set=function(S){"readOnly"in S&&e(1,s=S.readOnly),"onFormat"in S&&e(2,a=S.onFormat),"onCompact"in S&&e(3,l=S.onCompact),"onSort"in S&&e(4,c=S.onSort),"onTransform"in S&&e(5,u=S.onTransform),"onToggleSearch"in S&&e(6,d=S.onToggleSearch),"onUndo"in S&&e(7,h=S.onUndo),"onRedo"in S&&e(8,f=S.onRedo),"canUndo"in S&&e(9,p=S.canUndo),"canRedo"in S&&e(10,m=S.canRedo),"canFormat"in S&&e(11,g=S.canFormat),"canCompact"in S&&e(12,v=S.canCompact),"canSort"in S&&e(13,y=S.canSort),"canTransform"in S&&e(14,_=S.canTransform),"onRenderMenu"in S&&e(15,C=S.onRenderMenu)},t.$$.update=function(){32766&t.$$.dirty&&e(16,r=s?[{type:"space"}]:[{type:"button",icon:m4,title:"Format JSON: add proper indentation and new lines (Ctrl+I)",className:"jse-format",onClick:a,disabled:s||!g},{type:"button",icon:UYe,title:"Compact JSON: remove all white spacing and new lines (Ctrl+Shift+I)",className:"jse-compact",onClick:l,disabled:s||!v},{type:"separator"},{type:"button",icon:Gk,title:"Sort",className:"jse-sort",onClick:c,disabled:s||!y},{type:"button",icon:Hk,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:u,disabled:s||!_},{type:"button",icon:KO,title:"Search (Ctrl+F)",className:"jse-search",onClick:d},{type:"separator"},{type:"button",icon:JO,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:h,disabled:!p},{type:"button",icon:YO,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:f,disabled:!m},{type:"space"}]),98304&t.$$.dirty&&e(0,i=C(r)||r)},[i,s,a,l,c,u,d,h,f,p,m,g,v,y,_,C,r]}var hKe=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,dKe,uKe,Ei,{readOnly:1,onFormat:2,onCompact:3,onSort:4,onTransform:5,onToggleSearch:6,onUndo:7,onRedo:8,canUndo:9,canRedo:10,canFormat:11,canCompact:12,canSort:13,canTransform:14,onRenderMenu:15}),r}return Se(e)}(),fo=function(){function t(){ke(this,t)}return Se(t,[{key:"lineAt",value:function(n){if(n<0||n>this.length)throw new RangeError("Invalid position ".concat(n," in document of length ").concat(this.length));return this.lineInner(n,!1,1,0)}},{key:"line",value:function(n){if(n<1||n>this.lines)throw new RangeError("Invalid line number ".concat(n," in ").concat(this.lines,"-line document"));return this.lineInner(n,!0,1,0)}},{key:"replace",value:function(n,e,i){var r=[];return this.decompose(0,n,r,2),i.length&&i.decompose(0,i.length,r,3),this.decompose(e,this.length,r,1),aS.from(r,this.length-(e-n)+i.length)}},{key:"append",value:function(n){return this.replace(this.length,this.length,n)}},{key:"slice",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,i=[];return this.decompose(n,e,i,0),aS.from(i,e-n)}},{key:"eq",value:function(n){if(n==this)return!0;if(n.length!=this.length||n.lines!=this.lines)return!1;for(var e=this.scanIdentical(n,1),i=this.length-this.scanIdentical(n,-1),r=new t_(this),o=new t_(n),s=e,a=e;;){if(r.next(s),o.next(s),s=0,r.lineBreak!=o.lineBreak||r.done!=o.done||r.value!=o.value)return!1;if(a+=r.value.length,r.done||a>=i)return!0}}},{key:"iter",value:function(){return new t_(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)}},{key:"iterRange",value:function(n){return new dce(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length)}},{key:"iterLines",value:function(n,e){var i;if(null==n)i=this.iter();else{null==e&&(e=this.lines+1);var r=this.line(n).from;i=this.iterRange(r,Math.max(r,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new hce(i)}},{key:"toString",value:function(){return this.sliceString(0)}},{key:"toJSON",value:function(){var n=[];return this.flatten(n),n}}],[{key:"of",value:function(n){if(0==n.length)throw new RangeError("A document must have at least one line");return 1!=n.length||n[0]?n.length<=32?new id(n):aS.from(id.split(n,[])):t.empty}}]),t}(),id=function(t){wt(e,fo);var n=Ct(e);function e(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function fKe(t){var n,e=-1,i=Re(t);try{for(i.s();!(n=i.n()).done;)e+=n.value.length+1}catch(r){i.e(r)}finally{i.f()}return e}(i);return ke(this,e),(r=n.call(this)).text=i,r.length=o,r}return Se(e,[{key:"lines",get:function(){return this.text.length}},{key:"children",get:function(){return null}},{key:"lineInner",value:function(i,r,o,s){for(var a=0;;a++){var l=this.text[a],c=s+l.length;if((r?o:c)>=i)return new pKe(s,c,o,l);s=c+1,o++}}},{key:"decompose",value:function(i,r,o,s){var a=i<=0&&r>=this.length?this:new e(uce(this.text,i,r),Math.min(r,this.length)-Math.max(0,i));if(1&s){var l=o.pop(),c=lS(a.text,l.text.slice(),0,a.length);if(c.length<=32)o.push(new e(c,l.length+a.length));else{var u=c.length>>1;o.push(new e(c.slice(0,u)),new e(c.slice(u)))}}else o.push(a)}},{key:"replace",value:function(i,r,o){if(!(o instanceof e))return pr(qi(e.prototype),"replace",this).call(this,i,r,o);var s=lS(this.text,lS(o.text,uce(this.text,0,i)),r),a=this.length+o.length-(r-i);return s.length<=32?new e(s,a):aS.from(e.split(s,[]),a)}},{key:"sliceString",value:function(i){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",s="",a=0,l=0;a<=r&&li&&l&&(s+=o),ia&&(s+=c.slice(Math.max(0,i-a),r-a)),a=u+1}return s}},{key:"flatten",value:function(i){var r,o=Re(this.text);try{for(o.s();!(r=o.n()).done;)i.push(r.value)}catch(a){o.e(a)}finally{o.f()}}},{key:"scanIdentical",value:function(){return 0}}],[{key:"split",value:function(i,r){var o,s=[],a=-1,l=Re(i);try{for(l.s();!(o=l.n()).done;){var c=o.value;s.push(c),a+=c.length+1,32==s.length&&(r.push(new e(s,a)),s=[],a=-1)}}catch(u){l.e(u)}finally{l.f()}return a>-1&&r.push(new e(s,a)),r}}]),e}(),aS=function(t){wt(e,fo);var n=Ct(e);function e(i,r){var o;ke(this,e),(o=n.call(this)).children=i,o.length=r,o.lines=0;var s,a=Re(i);try{for(a.s();!(s=a.n()).done;)o.lines+=s.value.lines}catch(c){a.e(c)}finally{a.f()}return o}return Se(e,[{key:"lineInner",value:function(i,r,o,s){for(var a=0;;a++){var l=this.children[a],c=s+l.length,u=o+l.lines-1;if((r?u:c)>=i)return l.lineInner(i,r,o,s);s=c+1,o=u+1}}},{key:"decompose",value:function(i,r,o,s){for(var a=0,l=0;l<=r&&a=l){var d=s&((l<=i?1:0)|(u>=r?2:0));l>=i&&u<=r&&!d?o.push(c):c.decompose(i-l,r-l,o,d)}l=u+1}}},{key:"replace",value:function(i,r,o){if(o.lines=a&&r<=c){var u=l.replace(i-a,r-a,o),d=this.lines-l.lines+u.lines;if(u.lines>4&&u.lines>d>>6){var h=this.children.slice();return h[s]=u,new e(h,this.length-(r-i)+o.length)}return pr(qi(e.prototype),"replace",this).call(this,a,c,u)}a=c+1}return pr(qi(e.prototype),"replace",this).call(this,i,r,o)}},{key:"sliceString",value:function(i){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",s="",a=0,l=0;ai&&a&&(s+=o),il&&(s+=c.sliceString(i-l,r-l,o)),l=u+1}return s}},{key:"flatten",value:function(i){var r,o=Re(this.children);try{for(o.s();!(r=o.n()).done;)r.value.flatten(i)}catch(s){o.e(s)}finally{o.f()}}},{key:"scanIdentical",value:function(i,r){if(!(i instanceof e))return 0;for(var o=0,s=Un(r>0?[0,0,this.children.length,i.children.length]:[this.children.length-1,i.children.length-1,-1,-1],4),a=s[0],l=s[1],c=s[2],u=s[3];;a+=r,l+=r){if(a==c||l==u)return o;var d=this.children[a],h=i.children[l];if(d!=h)return o+d.scanIdentical(h,r);o+=d.length+1}}}],[{key:"from",value:function(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.reduce(function(R,z){return R+z.length+1},-1),s=0,a=Re(i);try{for(a.s();!(r=a.n()).done;)s+=r.value.lines}catch(R){a.e(R)}finally{a.f()}if(s<32){var c,u=[],d=Re(i);try{for(d.s();!(c=d.n()).done;)c.value.flatten(u)}catch(R){d.e(R)}finally{d.f()}return new id(u,o)}var f=Math.max(32,s>>5),p=f<<1,m=f>>1,g=[],v=0,y=-1,_=[];function C(R){var z;if(R.lines>p&&R instanceof e){var U,q=Re(R.children);try{for(q.s();!(U=q.n()).done;)C(U.value)}catch(re){q.e(re)}finally{q.f()}}else R.lines>m&&(v>m||!v)?(S(),g.push(R)):R instanceof id&&v&&(z=_[_.length-1])instanceof id&&R.lines+z.lines<=32?(v+=R.lines,y+=R.length+1,_[_.length-1]=new id(z.text.concat(R.text),z.length+1+R.length)):(v+R.lines>f&&S(),v+=R.lines,y+=R.length+1,_.push(R))}function S(){0!=v&&(g.push(1==_.length?_[0]:e.from(_,y)),y=-1,v=_.length=0)}var M,$=Re(i);try{for($.s();!(M=$.n()).done;)C(M.value)}catch(R){$.e(R)}finally{$.f()}return S(),1==g.length?g[0]:new e(g,o)}}]),e}();function lS(t,n){for(var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e9,r=0,o=0,s=!0;o=e&&(l>i&&(a=a.slice(0,i-r)),r1&&void 0!==arguments[1]?arguments[1]:1;ke(this,t),this.dir=e,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[n],this.offsets=[e>0?1:(n instanceof id?n.text.length:n.children.length)<<1]}return Se(t,[{key:"nextInner",value:function(n,e){for(this.done=this.lineBreak=!1;;){var i=this.nodes.length-1,r=this.nodes[i],o=this.offsets[i],s=o>>1;if(s==(e>0?r instanceof id?r.text.length:r.children.length:0)){if(0==i)return this.done=!0,this.value="",this;e>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&o)==(e>0?0:1)){if(this.offsets[i]+=e,0==n)return this.lineBreak=!0,this.value="\n",this;n--}else if(r instanceof id){var l=r.text[s+(e<0?-1:0)];if(this.offsets[i]+=e,l.length>Math.max(0,n))return this.value=0==n?l:e>0?l.slice(n):l.slice(0,l.length-n),this;n-=l.length}else{var c=r.children[s+(e<0?-1:0)];n>c.length?(n-=c.length,this.offsets[i]+=e):(e<0&&this.offsets[i]--,this.nodes.push(c),this.offsets.push(e>0?1:(c instanceof id?c.text.length:c.children.length)<<1))}}}},{key:"next",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return n<0&&(this.nextInner(-n,-this.dir),n=this.value.length),this.nextInner(n,this.dir)}}]),t}(),dce=function(){function t(n,e,i){ke(this,t),this.value="",this.done=!1,this.cursor=new t_(n,e>i?-1:1),this.pos=e>i?n.length:0,this.from=Math.min(e,i),this.to=Math.max(e,i)}return Se(t,[{key:"nextInner",value:function(n,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;n+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);var i=e<0?this.pos-this.from:this.to-this.pos;n>i&&(n=i),i-=n;var r=this.cursor.next(n).value;return this.pos+=(r.length+n)*e,this.value=r.length<=i?r:e<0?r.slice(r.length-i):r.slice(0,i),this.done=!this.value,this}},{key:"next",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return n<0?n=Math.max(n,this.from-this.pos):n>0&&(n=Math.min(n,this.to-this.pos)),this.nextInner(n,this.cursor.dir)}},{key:"lineBreak",get:function(){return this.cursor.lineBreak&&""!=this.value}}]),t}(),hce=function(){function t(n){ke(this,t),this.inner=n,this.afterBreak=!0,this.value="",this.done=!1}return Se(t,[{key:"next",value:function(){var e=this.inner.next(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0),r=e.lineBreak,o=e.value;return e.done?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=o,this.afterBreak=!1),this}},{key:"lineBreak",get:function(){return!1}}]),t}();typeof Symbol<"u"&&(fo.prototype[Symbol.iterator]=function(){return this.iter()},t_.prototype[Symbol.iterator]=dce.prototype[Symbol.iterator]=hce.prototype[Symbol.iterator]=function(){return this});for(var pKe=function(){function t(n,e,i,r){ke(this,t),this.from=n,this.to=e,this.number=i,this.text=r}return Se(t,[{key:"length",get:function(){return this.to-this.from}}]),t}(),w0="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(function(t){return t?parseInt(t,36):1}),cS=1;cSt)return w0[n-1]<=t;return!1}function fce(t){return t>=127462&&t<=127487}function Pl(t,n){return(arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?gKe:pce)(t,n,!(arguments.length>3&&void 0!==arguments[3])||arguments[3])}function pce(t,n,e){if(n==t.length)return n;n&&mce(t.charCodeAt(n))&&gce(t.charCodeAt(n-1))&&n--;var i=Ba(t,n);for(n+=Sc(i);n=0&&fce(Ba(t,s));)o++,s-=2;if(o%2==0)break;n+=2}}return n}function gKe(t,n,e){for(;n>0;){var i=pce(t,n-2,e);if(i=56320&&t<57344}function gce(t){return t>=55296&&t<56320}function Ba(t,n){var e=t.charCodeAt(n);if(!gce(e)||n+1==t.length)return e;var i=t.charCodeAt(n+1);return mce(i)?i-56320+(e-55296<<10)+65536:e}function S4(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}function Sc(t){return t<65536?1:2}var D4=/\r\n?|\n/,Ll=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(Ll||(Ll={})),C0=function(){function t(n){ke(this,t),this.sections=n}return Se(t,[{key:"length",get:function(){for(var n=0,e=0;e1&&void 0!==arguments[1]&&arguments[1])}},{key:"invertedDesc",get:function(){for(var n=[],e=0;e1&&void 0!==arguments[1]&&arguments[1])}},{key:"mapPos",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ll.Simple,r=0,o=0,s=0;sn)return o+(n-r);o+=a}else{if(i!=Ll.Simple&&c>=n&&(i==Ll.TrackDel&&rn||i==Ll.TrackBefore&&rn))return null;if(c>n||c==n&&e<0&&!a)return n==r||e<0?o:o+l;o+=l}r=c}if(n>r)throw new RangeError("Position ".concat(n," is out of range for changeset of length ").concat(r));return o}},{key:"touchesRange",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,i=0,r=0;i=0&&r<=e&&a>=n)return!(re)||"cover";r=a}return!1}},{key:"toString",value:function(){for(var n="",e=0;e=0?":"+r:"")}return n}},{key:"toJSON",value:function(){return this.sections}}],[{key:"fromJSON",value:function(n){if(!Array.isArray(n)||n.length%2||n.some(function(e){return"number"!=typeof e}))throw new RangeError("Invalid JSON representation of ChangeDesc");return new t(n)}},{key:"create",value:function(n){return new t(n)}}]),t}(),rd=function(t){wt(e,C0);var n=Ct(e);function e(i,r){var o;return ke(this,e),(o=n.call(this,i)).inserted=r,o}return Se(e,[{key:"apply",value:function(i){if(this.length!=i.length)throw new RangeError("Applying change set to a document with the wrong length");return T4(this,function(r,o,s,a,l){return i=i.replace(s,s+(o-r),l)},!1),i}},{key:"mapDesc",value:function(i){return E4(this,i,arguments.length>1&&void 0!==arguments[1]&&arguments[1],!0)}},{key:"invert",value:function(i){for(var r=this.sections.slice(),o=[],s=0,a=0;s=0){r[s]=c,r[s+1]=l;for(var u=s>>1;o.length1&&void 0!==arguments[1]&&arguments[1],!0)}},{key:"iterChanges",value:function(i){T4(this,i,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}},{key:"desc",get:function(){return C0.create(this.sections)}},{key:"filter",value:function(i){var r=[],o=[],s=[],a=new n_(this);e:for(var l=0,c=0;;){for(var u=l==i.length?1e9:i[l++];c0&&dp(o,r,a.text),a.forward(d),c+=d}for(var f=i[l++];c>1].toJSON()))}return i}}],[{key:"of",value:function(i,r,o){var s=[],a=[],l=0,c=null;function u(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||s.length){lv||m<0||v>r)throw new RangeError("Invalid change range ".concat(m," to ").concat(v," (in doc of length ").concat(r,")"));var _=y?"string"==typeof y?fo.of(y.split(o||D4)):y:fo.empty,C=_.length;if(m==v&&0==C)return;ml&&dl(s,m-l,-1),dl(s,v-m,C),dp(a,s,_),l=v}}(i),u(!c),c}},{key:"empty",value:function(i){return new e(i?[i,-1]:[],[])}},{key:"fromJSON",value:function(i){if(!Array.isArray(i))throw new RangeError("Invalid JSON representation of ChangeSet");for(var r=[],o=[],s=0;s3&&void 0!==arguments[3]&&arguments[3];if(!(0==n&&e<=0)){var r=t.length-2;r>=0&&e<=0&&e==t[r+1]?t[r]+=n:0==n&&0==t[r]?t[r+1]+=e:i?(t[r]+=n,t[r+1]+=e):t.push(n,e)}}function dp(t,n,e){if(0!=e.length){var i=n.length-2>>1;if(i>1])),!(e||s==t.sections.length||t.sections[s+1]<0);)a=t.sections[s++],l=t.sections[s++];n(r,c,o,u,d),r=c,o=u}}}function E4(t,n,e){for(var r=[],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3]?[]:null,s=new n_(t),a=new n_(n),l=-1;;)if(-1==s.ins&&-1==a.ins){var c=Math.min(s.len,a.len);dl(r,c,-1),s.forward(c),a.forward(c)}else if(a.ins>=0&&(s.ins<0||l==s.i||0==s.off&&(a.len=0&&l=0)){if(s.done&&a.done)return o?rd.createSet(r,o):C0.create(r);throw new Error("Mismatched change set lengths")}for(var h=0,f=s.len;f;)if(-1==a.ins){var p=Math.min(f,a.len);h+=p,f-=p,a.forward(p)}else{if(!(0==a.ins&&a.len2&&void 0!==arguments[2]&&arguments[2]?[]:null,o=new n_(t),s=new n_(n),a=!1;;){if(o.done&&s.done)return r?rd.createSet(i,r):C0.create(i);if(0==o.ins)dl(i,o.len,0,a),o.next();else if(0!=s.len||s.done){if(o.done||s.done)throw new Error("Mismatched change set lengths");var l=Math.min(o.len2,s.len),c=i.length;if(-1==o.ins){var u=-1==s.ins?-1:s.off?0:s.ins;dl(i,l,u,a),r&&u&&dp(r,i,s.text)}else-1==s.ins?(dl(i,o.off?0:o.len,l,a),r&&dp(r,i,o.textBit(l))):(dl(i,o.off?0:o.len,s.off?0:s.ins,a),r&&!s.off&&dp(r,i,s.text));a=(o.ins>l||s.ins>=0&&s.len>l)&&(a||i.length>c),o.forward2(l),s.forward(l)}else dl(i,0,s.ins,a),r&&dp(r,i,s.text),s.next()}}var n_=function(){function t(n){ke(this,t),this.set=n,this.i=0,this.next()}return Se(t,[{key:"next",value:function(){var n=this.set.sections;this.i>1;return e>=n.length?fo.empty:n[e]}},{key:"textBit",value:function(n){var e=this.set.inserted,i=this.i-2>>1;return i>=e.length&&!n?fo.empty:e[i].slice(this.off,null==n?void 0:this.off+n)}},{key:"forward",value:function(n){n==this.len?this.next():(this.len-=n,this.off+=n)}},{key:"forward2",value:function(n){-1==this.ins?this.forward(n):n==this.ins?this.next():(this.ins-=n,this.off+=n)}}]),t}(),uS=function(){function t(n,e,i){ke(this,t),this.from=n,this.to=e,this.flags=i}return Se(t,[{key:"anchor",get:function(){return 16&this.flags?this.to:this.from}},{key:"head",get:function(){return 16&this.flags?this.from:this.to}},{key:"empty",get:function(){return this.from==this.to}},{key:"assoc",get:function(){return 4&this.flags?-1:8&this.flags?1:0}},{key:"bidiLevel",get:function(){var n=3&this.flags;return 3==n?null:n}},{key:"goalColumn",get:function(){var n=this.flags>>5;return 33554431==n?void 0:n}},{key:"map",value:function(n){var e,i;return this.empty?e=i=n.mapPos(this.from,arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1):(e=n.mapPos(this.from,1),i=n.mapPos(this.to,-1)),e==this.from&&i==this.to?this:new t(e,i,this.flags)}},{key:"extend",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;if(n<=this.anchor&&e>=this.anchor)return en.range(n,e);var i=Math.abs(n-this.anchor)>Math.abs(e-this.anchor)?n:e;return en.range(this.anchor,i)}},{key:"eq",value:function(n){return this.anchor==n.anchor&&this.head==n.head}},{key:"toJSON",value:function(){return{anchor:this.anchor,head:this.head}}}],[{key:"fromJSON",value:function(n){if(!n||"number"!=typeof n.anchor||"number"!=typeof n.head)throw new RangeError("Invalid JSON representation for SelectionRange");return en.range(n.anchor,n.head)}},{key:"create",value:function(n,e,i){return new t(n,e,i)}}]),t}(),en=function(){function t(n,e){ke(this,t),this.ranges=n,this.mainIndex=e}return Se(t,[{key:"map",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return n.empty?this:t.create(this.ranges.map(function(i){return i.map(n,e)}),this.mainIndex)}},{key:"eq",value:function(n){if(this.ranges.length!=n.ranges.length||this.mainIndex!=n.mainIndex)return!1;for(var e=0;e1&&void 0!==arguments[1])||arguments[1];return t.create([n].concat(this.ranges),e?0:this.mainIndex+1)}},{key:"replaceRange",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.mainIndex,i=this.ranges.slice();return i[e]=n,t.create(i,this.mainIndex)}},{key:"toJSON",value:function(){return{ranges:this.ranges.map(function(n){return n.toJSON()}),main:this.mainIndex}}}],[{key:"fromJSON",value:function(n){if(!n||!Array.isArray(n.ranges)||"number"!=typeof n.main||n.main>=n.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new t(n.ranges.map(function(e){return uS.fromJSON(e)}),n.main)}},{key:"single",value:function(n){return new t([t.range(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n)],0)}},{key:"create",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0==n.length)throw new RangeError("A selection needs at least one range");for(var i=0,r=0;r1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return uS.create(n,n,(0==e?0:e<0?4:8)|(null==i?3:Math.min(2,i))|(r??33554431)<<5)}},{key:"range",value:function(n,e,i,r){var o=(i??33554431)<<5|(null==r?3:Math.min(2,r));return en?4:0)|o)}},{key:"normalized",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=n[e];n.sort(function(c,u){return c.from-u.from}),e=n.indexOf(i);for(var r=1;ro.head?t.range(l,a):t.range(a,l))}}return new t(n,e)}}]),t}();function yce(t,n){var e,i=Re(t.ranges);try{for(i.s();!(e=i.n()).done;)if(e.value.to>n)throw new RangeError("Selection points outside of document")}catch(r){i.e(r)}finally{i.f()}}var A4=0,Qn=function(){function t(n,e,i,r,o){ke(this,t),this.combine=n,this.compareInput=e,this.compare=i,this.isStatic=r,this.id=A4++,this.default=n([]),this.extensions="function"==typeof o?o(this):o}return Se(t,[{key:"of",value:function(n){return new dS([],this,0,n)}},{key:"compute",value:function(n,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new dS(n,this,1,e)}},{key:"computeN",value:function(n,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new dS(n,this,2,e)}},{key:"from",value:function(n,e){return e||(e=function(i){return i}),this.compute([n],function(i){return e(i.field(n))})}}],[{key:"define",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t(n.combine||function(e){return e},n.compareInput||function(e,i){return e===i},n.compare||(n.combine?function(e,i){return e===i}:M4),!!n.static,n.enables)}}]),t}();function M4(t,n){return t==n||t.length==n.length&&t.every(function(e,i){return e===n[i]})}var dS=function(){function t(n,e,i,r){ke(this,t),this.dependencies=n,this.facet=e,this.type=i,this.value=r,this.id=A4++}return Se(t,[{key:"dynamicSlot",value:function(n){var e,i,r=this,o=this.value,s=this.facet.compareInput,a=this.id,l=n[a]>>1,c=2==this.type,u=!1,d=!1,h=[],f=Re(this.dependencies);try{for(f.s();!(i=f.n()).done;){var p=i.value;"doc"==p?u=!0:"selection"==p?d=!0:!(1&(null!==(e=n[p.id])&&void 0!==e?e:1))&&h.push(n[p.id])}}catch(m){f.e(m)}finally{f.f()}return{create:function(m){return m.values[l]=o(m),1},update:function(m,g){if(u&&g.docChanged||d&&(g.docChanged||g.selection)||I4(m,h)){var v=o(m);if(c?!bce(v,m.values[l],s):!s(v,m.values[l]))return m.values[l]=v,1}return 0},reconfigure:function(m,g){var v,y=g.config.address[a];if(null!=y){var _=hS(g,y);if(r.dependencies.every(function(C){return C instanceof Qn?g.facet(C)===m.facet(C):!(C instanceof Va)||g.field(C,!1)==m.field(C,!1)})||(c?bce(v=o(m),_,s):s(v=o(m),_)))return m.values[l]=_,0}else v=o(m);return m.values[l]=v,1}}}}]),t}();function bce(t,n,e){if(t.length!=n.length)return!1;for(var i=0;i>1;return{create:function(r){return r.values[i]=e.create(r),1},update:function(r,o){var s=r.values[i],a=e.updateF(s,o);return e.compareF(s,a)?0:(r.values[i]=a,1)},reconfigure:function(r,o){return null!=o.config.address[e.id]?(r.values[i]=o.field(e),0):(r.values[i]=e.create(r),1)}}}},{key:"init",value:function(n){return[this,_ce.of({field:this,create:n})]}},{key:"extension",get:function(){return this}}],[{key:"define",value:function(n){var e=new t(A4++,n.create,n.update,n.compare||function(i,r){return i===r},n);return n.provide&&(e.provides=n.provide(e)),e}}]),t}();function i_(t){return function(n){return new xce(n,t)}}var k0={highest:i_(0),high:i_(1),default:i_(2),low:i_(3),lowest:i_(4)},xce=Se(function t(n,e){ke(this,t),this.inner=n,this.prec=e}),hp=function(){function t(){ke(this,t)}return Se(t,[{key:"of",value:function(n){return new F4(this,n)}},{key:"reconfigure",value:function(n){return t.reconfigure.of({compartment:this,extension:n})}},{key:"get",value:function(n){return n.config.compartments.get(this)}}]),t}(),F4=Se(function t(n,e){ke(this,t),this.compartment=n,this.inner=e}),wce=function(){function t(n,e,i,r,o,s){for(ke(this,t),this.base=n,this.compartments=e,this.dynamicSlots=i,this.address=r,this.staticValues=o,this.facets=s,this.statusTemplate=[];this.statusTemplate.length>1]}}],[{key:"resolve",value:function(n,e,i){var r,C,S,M,$,G,o=[],s=Object.create(null),a=new Map,l=Re((C=n,S=e,M=a,$=[[],[],[],[],[]],G=new Map,function R(z,U){var q=G.get(z);if(null!=q){if(q<=U)return;var re=$[q].indexOf(z);re>-1&&$[q].splice(re,1),z instanceof F4&&M.delete(z.compartment)}if(G.set(z,U),Array.isArray(z)){var L,X=Re(z);try{for(X.s();!(L=X.n()).done;)R(L.value,U)}catch(he){X.e(he)}finally{X.f()}}else if(z instanceof F4){if(M.has(z.compartment))throw new RangeError("Duplicate use of compartment in extensions");var Z=S.get(z.compartment)||z.inner;M.set(z.compartment,Z),R(Z,U)}else if(z instanceof xce)R(z.inner,z.prec);else if(z instanceof Va)$[U].push(z),z.provides&&R(z.provides,U);else if(z instanceof dS)$[U].push(z),z.facet.extensions&&R(z.facet.extensions,2);else{var H=z.extension;if(!H)throw new Error("Unrecognized extension value in extension set (".concat(z,"). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks."));R(H,U)}}(C,2),$.reduce(function(z,U){return z.concat(U)})));try{for(l.s();!(r=l.n()).done;){var c=r.value;c instanceof Va?o.push(c):(s[c.facet.id]||(s[c.facet.id]=[])).push(c)}}catch(C){l.e(C)}finally{l.f()}for(var u=Object.create(null),d=[],h=[],f=function(){var C=m[p];u[C.id]=h.length<<1,h.push(function(S){return C.slot(S)})},p=0,m=o;p>1;function N(F){for(var Y=[],V=0;V>1,i=t.status[e];if(4==i)throw new Error("Cyclic dependency between fields and/or facets");if(2&i)return i;t.status[e]=4;var r=t.computeSlot(t,t.config.dynamicSlots[e]);return t.status[e]=2|r}function hS(t,n){return 1&n?t.config.staticValues[n>>1]:t.values[n>>1]}var Cce=Qn.define(),kce=Qn.define({combine:function(t){return t.some(function(n){return n})},static:!0}),Sce=Qn.define({combine:function(t){return t.length?t[0]:void 0},static:!0}),Dce=Qn.define(),Tce=Qn.define(),Ece=Qn.define(),Ace=Qn.define({combine:function(t){return!!t.length&&t[0]}}),fp=function(){function t(n,e){ke(this,t),this.type=n,this.value=e}return Se(t,null,[{key:"define",value:function(){return new _Ke}}]),t}(),_Ke=function(){function t(){ke(this,t)}return Se(t,[{key:"of",value:function(n){return new fp(this,n)}}]),t}(),xKe=function(){function t(n){ke(this,t),this.map=n}return Se(t,[{key:"of",value:function(n){return new hr(this,n)}}]),t}(),hr=function(){function t(n,e){ke(this,t),this.type=n,this.value=e}return Se(t,[{key:"map",value:function(n){var e=this.type.map(this.value,n);return void 0===e?void 0:e==this.value?this:new t(this.type,e)}},{key:"is",value:function(n){return this.type==n}}],[{key:"define",value:function(){return new xKe((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).map||function(e){return e})}},{key:"mapEffects",value:function(n,e){if(!n.length)return n;var i,r=[],o=Re(n);try{for(o.s();!(i=o.n()).done;){var s=i.value.map(e);s&&r.push(s)}}catch(a){o.e(a)}finally{o.f()}return r}}]),t}();hr.reconfigure=hr.define(),hr.appendConfig=hr.define();var Ql=function(){function t(n,e,i,r,o,s){ke(this,t),this.startState=n,this.changes=e,this.selection=i,this.effects=r,this.annotations=o,this.scrollIntoView=s,this._doc=null,this._state=null,i&&yce(i,e.newLength),o.some(function(a){return a.type==t.time})||(this.annotations=o.concat(t.time.of(Date.now())))}return Se(t,[{key:"newDoc",get:function(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}},{key:"newSelection",get:function(){return this.selection||this.startState.selection.map(this.changes)}},{key:"state",get:function(){return this._state||this.startState.applyTransaction(this),this._state}},{key:"annotation",value:function(n){var e,i=Re(this.annotations);try{for(i.s();!(e=i.n()).done;){var r=e.value;if(r.type==n)return r.value}}catch(o){i.e(o)}finally{i.f()}}},{key:"docChanged",get:function(){return!this.changes.empty}},{key:"reconfigured",get:function(){return this.startState.config!=this.state.config}},{key:"isUserEvent",value:function(n){var e=this.annotation(t.userEvent);return!(!e||!(e==n||e.length>n.length&&e.slice(0,n.length)==n&&"."==e[n.length]))}}],[{key:"create",value:function(n,e,i,r,o,s){return new t(n,e,i,r,o,s)}}]),t}();function wKe(t,n){for(var e=[],i=0,r=0;;){var o=void 0,s=void 0;if(i=t[i]))o=t[i++],s=t[i++];else{if(!(r=0;d--){var h=c[d](a);h&&Object.keys(h).length&&(u=Mce(u,O4(l,h,a.changes.newLength),!0))}return u==a?a:Ql.create(l,a.changes,a.selection,u.effects,u.annotations,u.scrollIntoView)}(e?function(a){var l,c=a.startState,u=!0,d=Re(c.facet(Dce));try{for(d.s();!(l=d.n()).done;){var h=(0,l.value)(a);if(!1===h){u=!1;break}Array.isArray(h)&&(u=!0===u?h:wKe(u,h))}}catch(_){d.e(_)}finally{d.f()}if(!0!==u){var f,p;if(!1===u)p=a.changes.invertedDesc,f=rd.empty(c.doc.length);else{var m=a.changes.filter(u);f=m.changes,p=m.filtered.mapDesc(m.changes).invertedDesc}a=Ql.create(c,f,a.selection&&a.selection.map(p),hr.mapEffects(a.effects,p),a.annotations,a.scrollIntoView)}for(var g=c.facet(Tce),v=g.length-1;v>=0;v--){var y=g[v](a);a=y instanceof Ql?y:Array.isArray(y)&&1==y.length&&y[0]instanceof Ql?y[0]:Ice(c,S0(y),!1)}return a}(s):s)}Ql.time=fp.define(),Ql.userEvent=fp.define(),Ql.addToHistory=fp.define(),Ql.remote=fp.define();var CKe=[];function S0(t){return null==t?CKe:Array.isArray(t)?t:[t]}var j4,cs=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(cs||(cs={})),kKe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{j4=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}var Fo=function(){function t(n,e,i,r,o,s){ke(this,t),this.config=n,this.doc=e,this.selection=i,this.values=r,this.status=n.statusTemplate.slice(),this.computeSlot=o,s&&(s._state=this);for(var a=0;a1&&void 0!==arguments[1])||arguments[1],i=this.config.address[n.id];if(null!=i)return r_(this,i),hS(this,i);if(e)throw new RangeError("Field is not present in this state")}},{key:"update",value:function(){for(var n=arguments.length,e=new Array(n),i=0;i0&&void 0!==arguments[0]?arguments[0]:[];return n instanceof rd?n:rd.of(n,this.doc.length,this.facet(t.lineSeparator))}},{key:"toText",value:function(n){return fo.of(n.split(this.facet(t.lineSeparator)||D4))}},{key:"sliceDoc",value:function(){return this.doc.sliceString(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.doc.length,this.lineBreak)}},{key:"facet",value:function(n){var e=this.config.address[n.id];return null==e?n.default:(r_(this,e),hS(this,e))}},{key:"toJSON",value:function(n){var e={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(n)for(var i in n){var r=n[i];r instanceof Va&&null!=this.config.address[r.id]&&(e[i]=r.spec.toJSON(this.field(n[i]),this))}return e}},{key:"tabSize",get:function(){return this.facet(t.tabSize)}},{key:"lineBreak",get:function(){return this.facet(t.lineSeparator)||"\n"}},{key:"readOnly",get:function(){return this.facet(Ace)}},{key:"phrase",value:function(n){for(var e=arguments.length,i=new Array(e>1?e-1:0),r=1;ri.length?l:i[u-1]})),n}},{key:"languageDataAt",value:function(n,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,o=[],s=Re(this.facet(Cce));try{for(s.s();!(i=s.n()).done;){var a,c=Re((0,i.value)(this,e,r));try{for(c.s();!(a=c.n()).done;){var u=a.value;Object.prototype.hasOwnProperty.call(u,n)&&o.push(u[n])}}catch(d){c.e(d)}finally{c.f()}}}catch(d){s.e(d)}finally{s.f()}return o}},{key:"charCategorizer",value:function(n){return function SKe(t){return function(n){if(!/\S/.test(n))return cs.Space;if(function(i){if(j4)return j4.test(i);for(var r=0;r"\x80"&&(o.toUpperCase()!=o.toLowerCase()||kKe.test(o)))return!0}return!1}(n))return cs.Word;for(var e=0;e-1)return cs.Word;return cs.Other}}(this.languageDataAt("wordChars",n).join(""))}},{key:"wordAt",value:function(n){for(var e=this.doc.lineAt(n),i=e.text,r=e.from,o=e.length,s=this.charCategorizer(n),a=n-r,l=n-r;a>0;){var c=Pl(i,a,!1);if(s(i.slice(c,a))!=cs.Word)break;a=c}for(;l1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;if(!n||"string"!=typeof n.doc)throw new RangeError("Invalid JSON representation for EditorState");var r=[];if(i)for(var o in i)Object.prototype.hasOwnProperty.call(n,o)&&function(){var s=i[o],a=n[o];r.push(s.init(function(l){return s.spec.fromJSON(a,l)}))}();return t.create({doc:n.doc,selection:en.fromJSON(n.selection),extensions:e.extensions?r.concat([e.extensions]):r})}},{key:"create",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=wce.resolve(n.extensions||[],new Map),i=n.doc instanceof fo?n.doc:fo.of((n.doc||"").split(e.staticFacet(t.lineSeparator)||D4)),r=n.selection?n.selection instanceof en?n.selection:en.single(n.selection.anchor,n.selection.head):en.single(0);return yce(r,i.length),e.staticFacet(kce)||(r=r.asSingle()),new t(e,i,r,e.dynamicSlots.map(function(){return null}),function(o,s){return s.create(o)},null)}}]),t}();function su(t,n){var e,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={},o=Re(t);try{for(o.s();!(e=o.n()).done;)for(var s=e.value,a=0,l=Object.keys(s);a1&&void 0!==arguments[1]?arguments[1]:n,this)}}]),t}();Um.prototype.startSide=Um.prototype.endSide=0,Um.prototype.point=!1,Um.prototype.mapMode=Ll.TrackDel;var P4=function(){function t(n,e,i){ke(this,t),this.from=n,this.to=e,this.value=i}return Se(t,null,[{key:"create",value:function(n,e,i){return new t(n,e,i)}}]),t}();function L4(t,n){return t.from-n.from||t.value.startSide-n.value.startSide}var DKe=function(){function t(n,e,i,r){ke(this,t),this.from=n,this.to=e,this.value=i,this.maxPoint=r}return Se(t,[{key:"length",get:function(){return this.to[this.to.length-1]}},{key:"findIndex",value:function(n,e,i){for(var o=i?this.to:this.from,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=o.length;;){if(s==a)return s;var l=s+a>>1,c=o[l]-n||(i?this.value[l].endSide:this.value[l].startSide)-e;if(l==s)return c>=0?s:a;c>=0?a=l:s=l+1}}},{key:"between",value:function(n,e,i,r){for(var o=this.findIndex(e,-1e9,!0),s=this.findIndex(i,1e9,!1,o);o(f=e.mapPos(d,c.endSide))||h==f&&c.startSide>0&&c.endSide<=0)continue;(f-h||c.endSide-c.startSide)<0||(s<0&&(s=h),c.point&&(a=Math.max(a,f-h)),i.push(c),r.push(h-s),o.push(f-s))}return{mapped:i.length?new t(r,o,i,a):null,pos:s}}}]),t}(),Go=function(){function t(n,e,i,r){ke(this,t),this.chunkPos=n,this.chunk=e,this.nextLayer=i,this.maxPoint=r}return Se(t,[{key:"length",get:function(){var n=this.chunk.length-1;return n<0?0:Math.max(this.chunkEnd(n),this.nextLayer.length)}},{key:"size",get:function(){if(this.isEmpty)return 0;var n,e=this.nextLayer.size,i=Re(this.chunk);try{for(i.s();!(n=i.n()).done;)e+=n.value.value.length}catch(r){i.e(r)}finally{i.f()}return e}},{key:"chunkEnd",value:function(n){return this.chunkPos[n]+this.chunk[n].length}},{key:"update",value:function(n){var e=n.add,i=void 0===e?[]:e,r=n.sort,s=n.filterFrom,a=void 0===s?0:s,l=n.filterTo,c=void 0===l?this.length:l,u=n.filter;if(0==i.length&&!u)return this;if(void 0!==r&&r&&(i=i.slice().sort(L4)),this.isEmpty)return i.length?t.of(i):this;for(var d=new Fce(this,null,-1).goto(0),h=0,f=[],p=new Gm;d.value||h=0){var m=i[h++];p.addInner(m.from,m.to,m.value)||f.push(m)}else 1==d.rangeIndex&&d.chunkIndexthis.chunkEnd(d.chunkIndex)||cd.to||c=o&&n<=o+s.length&&!1===s.between(o,n-o,e-o,i))return}this.nextLayer.between(n,e,i)}}},{key:"iter",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return R4.from([this]).goto(n)}},{key:"isEmpty",get:function(){return this.nextLayer==this}}],[{key:"create",value:function(n,e,i,r){return new t(n,e,i,r)}},{key:"iter",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return R4.from(n).goto(e)}},{key:"compare",value:function(n,e,i,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,s=n.filter(function(d){return d.maxPoint>0||!d.isEmpty&&d.maxPoint>=o}),a=e.filter(function(d){return d.maxPoint>0||!d.isEmpty&&d.maxPoint>=o}),l=Nce(s,a,i),c=new o_(s,l,o),u=new o_(a,l,o);i.iterGaps(function(d,h,f){return Oce(c,d,u,h,f,r)}),i.empty&&0==i.length&&Oce(c,0,u,0,0,r)}},{key:"eq",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0;null==r&&(r=999999999);var o=n.filter(function(u){return!u.isEmpty&&e.indexOf(u)<0}),s=e.filter(function(u){return!u.isEmpty&&n.indexOf(u)<0});if(o.length!=s.length)return!1;if(!o.length)return!0;for(var a=Nce(o,s),l=new o_(o,a,0).goto(i),c=new o_(s,a,0).goto(i);;){if(l.to!=c.to||!B4(l.active,c.active)||l.point&&(!c.point||!l.point.eq(c.point)))return!1;if(l.to>r)return!0;l.next(),c.next()}}},{key:"spans",value:function(n,e,i,r){for(var s=new o_(n,null,arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1).goto(e),a=e,l=s.openStart;;){var c=Math.min(s.to,i);if(s.point){var u=s.activeForPoint(s.to),d=s.pointFroma&&(r.span(a,c,s.active,l),l=s.openEnd(c));if(s.to>i)return l+(s.point&&s.to>i?1:0);a=s.to,s.next()}}},{key:"of",value:function(n){var e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=new Gm,o=Re(n instanceof P4?[n]:i?function TKe(t){if(t.length>1)for(var n=t[0],e=1;e0)return t.slice().sort(L4);n=i}return t}(n):n);try{for(o.s();!(e=o.n()).done;){var s=e.value;r.add(s.from,s.to,s.value)}}catch(a){o.e(a)}finally{o.f()}return r.finish()}}]),t}();Go.empty=new Go([],[],null,-1),Go.empty.nextLayer=Go.empty;var Gm=function(){function t(){ke(this,t),this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}return Se(t,[{key:"finishChunk",value:function(n){this.chunks.push(new DKe(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,n&&(this.from=[],this.to=[],this.value=[])}},{key:"add",value:function(n,e,i){this.addInner(n,e,i)||(this.nextLayer||(this.nextLayer=new t)).add(n,e,i)}},{key:"addInner",value:function(n,e,i){var r=n-this.lastTo||i.startSide-this.last.endSide;if(r<=0&&(n-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0||(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=n),this.from.push(n-this.chunkStart),this.to.push(e-this.chunkStart),this.last=i,this.lastFrom=n,this.lastTo=e,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,e-n)),0))}},{key:"addChunk",value:function(n,e){if((n-this.lastTo||e.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,e.maxPoint),this.chunks.push(e),this.chunkPos.push(n);var i=e.value.length-1;return this.last=e.value[i],this.lastFrom=e.from[i]+n,this.lastTo=e.to[i]+n,!0}},{key:"finish",value:function(){return this.finishInner(Go.empty)}},{key:"finishInner",value:function(n){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return n;var e=Go.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(n):n,this.setMaxPoint);return this.from=null,e}}]),t}();function Nce(t,n,e){var i,r=new Map,o=Re(t);try{for(o.s();!(i=o.n()).done;)for(var s=i.value,a=0;a3&&void 0!==arguments[3]?arguments[3]:0;ke(this,t),this.layer=n,this.skip=e,this.minPoint=i,this.rank=r}return Se(t,[{key:"startSide",get:function(){return this.value?this.value.startSide:0}},{key:"endSide",get:function(){return this.value?this.value.endSide:0}},{key:"goto",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.chunkIndex=this.rangeIndex=0,this.gotoInner(n,e,!1),this}},{key:"gotoInner",value:function(n,e,i){for(;this.chunkIndex=this.minPoint)break}}},{key:"setRangeIndex",value:function(n){if(n==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex1&&void 0!==arguments[1]?arguments[1]:-1e9,r=Re(this.heap);try{for(r.s();!(e=r.n()).done;)e.value.goto(n,i)}catch(a){r.e(a)}finally{r.f()}for(var s=this.heap.length>>1;s>=0;s--)$4(this.heap,s);return this.next(),this}},{key:"forward",value:function(n,e){var i,r=Re(this.heap);try{for(r.s();!(i=r.n()).done;)i.value.forward(n,e)}catch(s){r.e(s)}finally{r.f()}for(var o=this.heap.length>>1;o>=0;o--)$4(this.heap,o);(this.to-n||this.value.endSide-e)<0&&this.next()}},{key:"next",value:function(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{var n=this.heap[0];this.from=n.from,this.to=n.to,this.value=n.value,this.rank=n.rank,n.value&&n.next(),$4(this.heap,0)}}}],[{key:"from",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=[],o=0;o=i&&r.push(new Fce(s,e,i,o));return 1==r.length?r[0]:new t(r)}}]),t}();function $4(t,n){for(var e=t[n];;){var i=1+(n<<1);if(i>=t.length)break;var r=t[i];if(i+1=0&&(r=t[i+1],i++),e.compare(r)<0)break;t[i]=e,t[n]=r,n=i}}var o_=function(){function t(n,e,i){ke(this,t),this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=R4.from(n,e,i)}return Se(t,[{key:"goto",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.cursor.goto(n,e),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=n,this.endSide=e,this.openStart=-1,this.next(),this}},{key:"forward",value:function(n,e){for(;this.minActive>-1&&(this.activeTo[this.minActive]-n||this.active[this.minActive].endSide-e)<0;)this.removeActive(this.minActive);this.cursor.forward(n,e)}},{key:"removeActive",value:function(n){fS(this.active,n),fS(this.activeTo,n),fS(this.activeRank,n),this.minActive=jce(this.active,this.activeTo)}},{key:"addActive",value:function(n){for(var e=0,i=this.cursor,r=i.value,o=i.to,s=i.rank;e-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>n){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),i&&fS(i,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>n){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}var o=this.cursor.value;if(o.point){if(!(e&&this.cursor.to==this.to&&this.cursor.from=0&&i[s]=0&&!(this.activeRank[i]n||this.activeTo[i]==n&&this.active[i].endSide>=this.point.endSide)&&e.push(this.active[i]);return e.reverse()}},{key:"openEnd",value:function(n){for(var e=0,i=this.activeTo.length-1;i>=0&&this.activeTo[i]>n;i--)e++;return e}}]),t}();function Oce(t,n,e,i,r,o){t.goto(n),e.goto(i);for(var s=i+r,a=i,l=i-n;;){var c=t.to+l-e.to||t.endSide-e.endSide,u=c<0?t.to+l:e.to,d=Math.min(u,s);if(t.point||e.point?t.point&&e.point&&(t.point==e.point||t.point.eq(e.point))&&B4(t.activeForPoint(t.to+l),e.activeForPoint(e.to))||o.comparePoint(a,d,t.point,e.point):d>a&&!B4(t.active,e.active)&&o.compareRange(a,d,t.active,e.active),u>s)break;a=u,c<=0&&t.next(),c>=0&&e.next()}}function B4(t,n){if(t.length!=n.length)return!1;for(var e=0;e=n;i--)t[i+1]=t[i];t[n]=e}function jce(t,n){for(var e=-1,i=1e9,r=0;r2&&void 0!==arguments[2]?arguments[2]:t.length,i=0,r=0;r=n)return r;if(r==t.length)break;o+=9==t.charCodeAt(r)?e-o%e:1,r=Pl(t,r)}return!0===i?-1:t.length}for(var Pce=typeof Symbol>"u"?"__\u037c":Symbol.for("\u037c"),H4=typeof Symbol>"u"?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),Lce=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{},pp=function(){function t(n,e){ke(this,t),this.rules=[];var i=(e||{}).finish;function r(a){return/^@/.test(a)?[a]:a.split(/,\s*/)}function o(a,l,c,u){var d=[],h=/^@(\w+)\b/.exec(a[0]),f=h&&"keyframes"==h[1];if(h&&null==l)return c.push(a[0]+";");for(var p in l){var m=l[p];if(/&/.test(p))o(p.split(/,\s*/).map(function(g){return a.map(function(v){return g.replace(/&/,v)})}).reduce(function(g,v){return g.concat(v)}),m,c);else if(m&&"object"==bn(m)){if(!h)throw new RangeError("The value of a property ("+p+") should be a primitive value.");o(r(p),m,d,f)}else null!=m&&d.push(p.replace(/_.*/,"").replace(/[A-Z]/g,function(g){return"-"+g.toLowerCase()})+": "+m+";")}(d.length||f)&&c.push((!i||h||u?a:a.map(i)).join(", ")+" {"+d.join(" ")+"}")}for(var s in n)o(r(s),n[s],this.rules)}return Se(t,[{key:"getRules",value:function(){return this.rules.join("\n")}}],[{key:"newName",value:function(){var n=Lce[Pce]||1;return Lce[Pce]=n+1,"\u037c"+n.toString(36)}},{key:"mount",value:function(n,e){(n[H4]||new EKe(n)).mount(Array.isArray(e)?e:[e])}}]),t}(),mS=null,EKe=function(){function t(n){if(ke(this,t),!n.head&&n.adoptedStyleSheets&&typeof CSSStyleSheet<"u"){if(mS)return n.adoptedStyleSheets=[mS.sheet].concat(n.adoptedStyleSheets),n[H4]=mS;this.sheet=new CSSStyleSheet,n.adoptedStyleSheets=[this.sheet].concat(n.adoptedStyleSheets),mS=this}else{this.styleTag=(n.ownerDocument||n).createElement("style");var e=n.head||n;e.insertBefore(this.styleTag,e.firstChild)}this.modules=[],n[H4]=this}return Se(t,[{key:"mount",value:function(n){for(var e=this.sheet,i=0,r=0,o=0;o-1&&(this.modules.splice(a,1),r--,a=-1),-1==a){if(this.modules.splice(r++,0,s),e)for(var l=0;l",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Rce=typeof navigator<"u"&&/Chrome\/(\d+)/.exec(navigator.userAgent),AKe=typeof navigator<"u"&&/Mac/.test(navigator.platform),MKe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),IKe=AKe||Rce&&+Rce[1]<57,Ha=0;Ha<10;Ha++)mp[48+Ha]=mp[96+Ha]=String(Ha);for(Ha=1;Ha<=24;Ha++)mp[Ha+111]="F"+Ha;for(Ha=65;Ha<=90;Ha++)mp[Ha]=String.fromCharCode(Ha+32),a_[Ha]=String.fromCharCode(Ha);for(var z4 in mp)a_.hasOwnProperty(z4)||(a_[z4]=mp[z4]);function gS(t){return(11==t.nodeType?t.getSelection?t:t.ownerDocument:t).getSelection()}function D0(t,n){return!!n&&(t==n||t.contains(1!=n.nodeType?n.parentNode:n))}function vS(t,n){if(!n.anchorNode)return!1;try{return D0(t,n.anchorNode)}catch{return!1}}function l_(t){return 3==t.nodeType?E0(t,0,t.nodeValue.length).getClientRects():1==t.nodeType?t.getClientRects():[]}function yS(t,n,e,i){return!!e&&($ce(t,n,e,i,-1)||$ce(t,n,e,i,1))}function bS(t){for(var n=0;;n++)if(!(t=t.previousSibling))return n}function $ce(t,n,e,i,r){for(;;){if(t==e&&n==i)return!0;if(n==(r<0?0:c_(t))){if("DIV"==t.nodeName)return!1;var o=t.parentNode;if(!o||1!=o.nodeType)return!1;n=bS(t)+(r<0?0:1),t=o}else{if(1!=t.nodeType||1==(t=t.childNodes[n+(r<0?-1:0)]).nodeType&&"false"==t.contentEditable)return!1;n=r<0?c_(t):0}}}function c_(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}var Bce={left:0,right:0,top:0,bottom:0};function U4(t,n){var e=n?t.left:t.right;return{left:e,right:e,top:t.top,bottom:t.bottom}}function NKe(t){return{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}var Vce,FKe=function(){function t(){ke(this,t),this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}return Se(t,[{key:"eq",value:function(n){return this.anchorNode==n.anchorNode&&this.anchorOffset==n.anchorOffset&&this.focusNode==n.focusNode&&this.focusOffset==n.focusOffset}},{key:"setRange",value:function(n){this.set(n.anchorNode,n.anchorOffset,n.focusNode,n.focusOffset)}},{key:"set",value:function(n,e,i,r){this.anchorNode=n,this.anchorOffset=e,this.focusNode=i,this.focusOffset=r}}]),t}(),T0=null;function Hce(t){if(t.setActive)return t.setActive();if(T0)return t.focus(T0);for(var n=[],e=t;e&&(n.push(e,e.scrollTop,e.scrollLeft),e!=e.ownerDocument);e=e.parentNode);if(t.focus(null==T0?{get preventScroll(){return T0={preventScroll:!0},!0}}:void 0),!T0){T0=!1;for(var i=0;i2&&void 0!==arguments[2]?arguments[2]:n,i=Vce||(Vce=document.createRange());return i.setEnd(t,e),i.setStart(t,n),i}function A0(t,n,e){var i={key:n,code:n,keyCode:e,which:e,cancelable:!0},r=new KeyboardEvent("keydown",i);r.synthetic=!0,t.dispatchEvent(r);var o=new KeyboardEvent("keyup",i);return o.synthetic=!0,t.dispatchEvent(o),r.defaultPrevented||o.defaultPrevented}function zce(t){for(;t.attributes.length;)t.removeAttributeNode(t.attributes[0])}var Dc=function(){function t(n,e){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];ke(this,t),this.node=n,this.offset=e,this.precise=i}return Se(t,null,[{key:"before",value:function(n,e){return new t(n.parentNode,bS(n),e)}},{key:"after",value:function(n,e){return new t(n.parentNode,bS(n)+1,e)}}]),t}(),G4=[],ws=function(){function t(){ke(this,t),this.parent=null,this.dom=null,this.dirty=2}return Se(t,[{key:"overrideDOMText",get:function(){return null}},{key:"posAtStart",get:function(){return this.parent?this.parent.posBefore(this):0}},{key:"posAtEnd",get:function(){return this.posAtStart+this.length}},{key:"posBefore",value:function(n){var e,i=this.posAtStart,r=Re(this.children);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(o==n)return i;i+=o.length+o.breakAfter}}catch(s){r.e(s)}finally{r.f()}throw new RangeError("Invalid child in posBefore")}},{key:"posAfter",value:function(n){return this.posBefore(n)+n.length}},{key:"coordsAt",value:function(n,e){return null}},{key:"sync",value:function(n,e){if(2&this.dirty){var i,r,o=this.dom,s=null,a=Re(this.children);try{for(a.s();!(r=a.n()).done;){var l=r.value;if(l.dirty){if(!l.dom&&(i=s?s.nextSibling:o.firstChild)){var c=t.get(i);(!c||!c.parent&&c.canReuseDOM(l))&&l.reuseDOM(i)}l.sync(n,e),l.dirty=0}if(i=s?s.nextSibling:o.firstChild,e&&!e.written&&e.node==o&&i!=l.dom&&(e.written=!0),l.dom.parentNode==o)for(;i&&i!=l.dom;)i=Uce(i);else o.insertBefore(l.dom,i);s=l.dom}}catch(f){a.e(f)}finally{a.f()}for((i=s?s.nextSibling:o.firstChild)&&e&&e.node==o&&(e.written=!0);i;)i=Uce(i)}else if(1&this.dirty){var u,d=Re(this.children);try{for(d.s();!(u=d.n()).done;){var h=u.value;h.dirty&&(h.sync(n,e),h.dirty=0)}}catch(f){d.e(f)}finally{d.f()}}}},{key:"reuseDOM",value:function(n){}},{key:"localPosFromDOM",value:function(n,e){var i;if(n==this.dom)i=this.dom.childNodes[e];else{for(var r=0==c_(n)?0:0==e?-1:1;;){var o=n.parentNode;if(o==this.dom)break;0==r&&o.firstChild!=o.lastChild&&(r=n==o.firstChild?-1:1),n=o}i=r<0?n:n.nextSibling}if(i==this.dom.firstChild)return 0;for(;i&&!t.get(i);)i=i.nextSibling;if(!i)return this.length;for(var s=0,a=0;;s++){var l=this.children[s];if(l.dom==i)return a;a+=l.length+l.breakAfter}}},{key:"domBoundsAround",value:function(n,e){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=-1,o=-1,s=-1,a=-1,l=0,c=i,u=i;le)return d.domBoundsAround(n,e,c);if(h>=n&&-1==r&&(r=l,o=c),c>e&&d.dom.parentNode==this.dom){s=l,a=u;break}u=h,c=h+d.breakAfter}return{from:o,to:a<0?i+this.length:a,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:s=0?this.children[s].dom:null}}},{key:"markDirty",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.dirty|=2,this.markParentsDirty(n)}},{key:"markParentsDirty",value:function(n){for(var e=this.parent;e;e=e.parent){if(n&&(e.dirty|=2),1&e.dirty)return;e.dirty|=1,n=!1}}},{key:"setParent",value:function(n){this.parent!=n&&(this.parent=n,this.dirty&&this.markParentsDirty(!0))}},{key:"setDOM",value:function(n){this.dom&&(this.dom.cmView=null),this.dom=n,n.cmView=this}},{key:"rootView",get:function(){for(var n=this;;){var e=n.parent;if(!e)return n;n=e}}},{key:"replaceChildren",value:function(n,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:G4;this.markDirty();for(var o=n;o0&&void 0!==arguments[0]?arguments[0]:this.length,this.children.length)}},{key:"childPos",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.childCursor().findPos(n,e)}},{key:"toString",value:function(){var n=this.constructor.name.replace("View","");return n+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==n?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}},{key:"isEditable",get:function(){return!0}},{key:"isWidget",get:function(){return!1}},{key:"merge",value:function(n,e,i,r,o,s){return!1}},{key:"become",value:function(n){return!1}},{key:"canReuseDOM",value:function(n){return n.constructor==this.constructor}},{key:"getSide",value:function(){return 0}},{key:"destroy",value:function(){this.parent=null}}],[{key:"get",value:function(n){return n.cmView}}]),t}();function Uce(t){var n=t.nextSibling;return t.parentNode.removeChild(t),n}ws.prototype.breakAfter=0;var Gce=function(){function t(n,e,i){ke(this,t),this.children=n,this.pos=e,this.i=i,this.off=0}return Se(t,[{key:"findPos",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;;){if(n>this.pos||n==this.pos&&(e>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=n-this.pos,this;var i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}]),t}();function Wce(t,n,e,i,r,o,s,a,l){var c=t.children,u=c.length?c[n]:null,d=o.length?o[o.length-1]:null,h=d?d.breakAfter:s;if(!(n==i&&u&&!s&&!h&&o.length<2&&u.merge(e,r,o.length?d:null,0==e,a,l))){if(i0&&(!s&&o.length&&u.merge(e,u.length,o[0],!1,a,0)?u.breakAfter=o.shift().breakAfter:(e2),Zn={mac:Qce||/Mac/.test(Tc.platform),windows:/Win/.test(Tc.platform),linux:/Linux|X11/.test(Tc.platform),ie:_S,ie_version:Xce?W4.documentMode||6:X4?+X4[1]:q4?+q4[1]:0,gecko:Yce,gecko_version:Yce?+(/Firefox\/(\d+)/.exec(Tc.userAgent)||[0,0])[1]:0,chrome:!!Y4,chrome_version:Y4?+Y4[1]:0,ios:Qce,android:/Android\b/.test(Tc.userAgent),webkit:Jce,safari:Kce,webkit_version:Jce?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=W4.documentElement.style.tabSize?"tab-size":"-moz-tab-size"},u_=function(t){wt(e,ws);var n=Ct(e);function e(i){var r;return ke(this,e),(r=n.call(this)).text=i,r}return Se(e,[{key:"length",get:function(){return this.text.length}},{key:"createDOM",value:function(i){this.setDOM(i||document.createTextNode(this.text))}},{key:"sync",value:function(i,r){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(r&&r.node==this.dom&&(r.written=!0),this.dom.nodeValue=this.text)}},{key:"reuseDOM",value:function(i){3==i.nodeType&&this.createDOM(i)}},{key:"merge",value:function(i,r,o){return(!o||o instanceof e&&!(this.length-(r-i)+o.length>256))&&(this.text=this.text.slice(0,i)+(o?o.text:"")+this.text.slice(r),this.markDirty(),!0)}},{key:"split",value:function(i){var r=new e(this.text.slice(i));return this.text=this.text.slice(0,i),this.markDirty(),r}},{key:"localPosFromDOM",value:function(i,r){return i==this.dom?r:r?this.text.length:0}},{key:"domAtPos",value:function(i){return new Dc(this.dom,i)}},{key:"domBoundsAround",value:function(i,r,o){return{from:o,to:o+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}},{key:"coordsAt",value:function(i,r){return J4(this.dom,i,r)}}]),e}(),Wm=function(t){wt(e,ws);var n=Ct(e);function e(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;ke(this,e),(r=n.call(this)).mark=i,r.children=o,r.length=s;var a,l=Re(o);try{for(l.s();!(a=l.n()).done;)a.value.setParent(An(r))}catch(u){l.e(u)}finally{l.f()}return r}return Se(e,[{key:"setAttrs",value:function(i){if(zce(i),this.mark.class&&(i.className=this.mark.class),this.mark.attrs)for(var r in this.mark.attrs)i.setAttribute(r,this.mark.attrs[r]);return i}},{key:"reuseDOM",value:function(i){i.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(i),this.dirty|=6)}},{key:"sync",value:function(i,r){this.dom?4&this.dirty&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),pr(qi(e.prototype),"sync",this).call(this,i,r)}},{key:"merge",value:function(i,r,o,s,a,l){return!(o&&(!(o instanceof e&&o.mark.eq(this.mark))||i&&a<=0||ri&&o.push(s=i&&(a=l),s=d,l++}}catch(f){c.e(f)}finally{c.f()}var h=this.length-i;return this.length=i,a>-1&&(this.children.length=a,this.markDirty()),new e(this.mark,o,h)}},{key:"domAtPos",value:function(i){return tue(this,i)}},{key:"coordsAt",value:function(i,r){return iue(this,i,r)}}]),e}();function J4(t,n,e){var i=t.nodeValue.length;n>i&&(n=i);var r=n,o=n,s=0;0==n&&e<0||n==i&&e>=0?Zn.chrome||Zn.gecko||(n?(r--,s=1):o=0)?0:a.length-1];return Zn.safari&&!s&&0==l.width&&(l=Array.prototype.find.call(a,function(c){return c.width})||l),s?U4(l,s<0):l||null}var K4=function(t){wt(e,ws);var n=Ct(e);function e(i,r,o){var s;return ke(this,e),(s=n.call(this)).widget=i,s.length=r,s.side=o,s.prevWidget=null,s}return Se(e,[{key:"split",value:function(i){var r=e.create(this.widget,this.length-i,this.side);return this.length-=i,r}},{key:"sync",value:function(i){this.dom&&this.widget.updateDOM(this.dom,i)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(i)),this.dom.contentEditable="false")}},{key:"getSide",value:function(){return this.side}},{key:"merge",value:function(i,r,o,s,a,l){return!(o&&(!(o instanceof e&&this.widget.compare(o.widget))||i>0&&a<=0||r0?o.length-1:0;s=o[a],!(i>0?0==a:a==o.length-1||s.top0?-1:1);return this.length?s:U4(s,this.side>0)}},{key:"isEditable",get:function(){return!1}},{key:"isWidget",get:function(){return!0}},{key:"destroy",value:function(){pr(qi(e.prototype),"destroy",this).call(this),this.dom&&this.widget.destroy(this.dom)}}],[{key:"create",value:function(i,r,o){return new(i.customView||e)(i,r,o)}}]),e}(),Zce=function(t){wt(e,K4);var n=Ct(e);function e(){return ke(this,e),n.apply(this,arguments)}return Se(e,[{key:"domAtPos",value:function(i){var r=this.widget,o=r.topView,s=r.text;return o?Q4(i,0,o,s,function(a,l){return a.domAtPos(l)},function(a){return new Dc(s,Math.min(a,s.nodeValue.length))}):new Dc(s,Math.min(i,s.nodeValue.length))}},{key:"sync",value:function(){this.setDOM(this.widget.toDOM())}},{key:"localPosFromDOM",value:function(i,r){var o=this.widget,s=o.topView;return s?eue(i,r,s,o.text):Math.min(r,this.length)}},{key:"ignoreMutation",value:function(){return!1}},{key:"overrideDOMText",get:function(){return null}},{key:"coordsAt",value:function(i,r){var o=this.widget,s=o.topView,a=o.text;return s?Q4(i,r,s,a,function(l,c,u){return l.coordsAt(c,u)},function(l,c){return J4(a,l,c)}):J4(a,i,r)}},{key:"destroy",value:function(){var i;pr(qi(e.prototype),"destroy",this).call(this),null===(i=this.widget.topView)||void 0===i||i.destroy()}},{key:"isEditable",get:function(){return!0}},{key:"canReuseDOM",value:function(){return!0}}]),e}();function Q4(t,n,e,i,r,o){if(e instanceof Wm){for(var s=e.dom.firstChild;s;s=s.nextSibling){var a=ws.get(s);if(!a)return o(t,n);var l=D0(s,i),c=a.length+(l?i.nodeValue.length:0);if(t=0;)if(a<0?c>0:c0?-1:1);return o&&o.topr.top?{left:r.left,right:r.right,top:o.top,bottom:o.bottom}:r}},{key:"overrideDOMText",get:function(){return fo.empty}}]),e}();function tue(t,n){for(var e=t.dom,i=t.children,r=0,o=0;ro&&n0;l--){var c=i[l-1];if(c.dom.parentNode==e)return c.domAtPos(c.length)}for(var u=r;u0&&n instanceof Wm&&r.length&&(i=r[r.length-1])instanceof Wm&&i.mark.eq(n.mark)?nue(i,n.children[0],e-1):(r.push(n),n.setParent(t)),t.length+=n.length}function iue(t,n,e){var i=null,r=-1,o=null,s=-1;!function l(c,u){for(var d=0,h=0;d=u&&(f.children.length?l(f,u-h):!o&&(p>u||h==p&&f.getSide()>0)?(o=f,s=u-h):(h-1}}],[{key:"mark",value:function(i){return new rue(i)}},{key:"widget",value:function(i){var r=i.side||0,o=!!i.block;return new d_(i,r+=o?r>0?3e8:-4e8:r>0?1e8:-1e8,r,o,i.widget||null,!1)}},{key:"replace",value:function(i){var r,o,s=!!i.block;if(i.isBlockGap)r=-5e8,o=4e8;else{var a=oue(i,s);r=(a.start?s?-3e8:-1:5e8)-1,o=1+(a.end?s?2e8:1:-6e8)}return new d_(i,r,o,s,i.widget||null,!0)}},{key:"line",value:function(i){return new ij(i)}},{key:"set",value:function(i){return Go.of(i,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}}]),e}();yi.none=Go.empty;var rue=function(t){wt(e,yi);var n=Ct(e);function e(i){var r;ke(this,e);var o=oue(i);return(r=n.call(this,o.start?-1:5e8,o.end?1:-6e8,null,i)).tagName=i.tagName||"span",r.class=i.class||"",r.attrs=i.attributes||null,r}return Se(e,[{key:"eq",value:function(i){return this==i||i instanceof e&&this.tagName==i.tagName&&this.class==i.class&&tj(this.attrs,i.attrs)}},{key:"range",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(i>=r)throw new RangeError("Mark decorations may not be empty");return pr(qi(e.prototype),"range",this).call(this,i,r)}}]),e}();rue.prototype.point=!1;var ij=function(t){wt(e,yi);var n=Ct(e);function e(i){return ke(this,e),n.call(this,-2e8,-2e8,null,i)}return Se(e,[{key:"eq",value:function(i){return i instanceof e&&this.spec.class==i.spec.class&&tj(this.spec.attributes,i.spec.attributes)}},{key:"range",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(r!=i)throw new RangeError("Line decoration ranges must be zero-length");return pr(qi(e.prototype),"range",this).call(this,i,r)}}]),e}();ij.prototype.mapMode=Ll.TrackBefore,ij.prototype.point=!0;var d_=function(t){wt(e,yi);var n=Ct(e);function e(i,r,o,s,a,l){var c;return ke(this,e),(c=n.call(this,r,o,a,i)).block=s,c.isReplace=l,c.mapMode=s?r<=0?Ll.TrackBefore:Ll.TrackAfter:Ll.TrackDel,c}return Se(e,[{key:"type",get:function(){return this.startSide=5}},{key:"eq",value:function(i){return i instanceof e&&((r=this.widget)==(o=i.widget)||!!(r&&o&&r.compare(o)))&&this.block==i.block&&this.startSide==i.startSide&&this.endSide==i.endSide;var r,o}},{key:"range",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(this.isReplace&&(i>r||i==r&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&r!=i)throw new RangeError("Widget decorations can only have zero-length ranges");return pr(qi(e.prototype),"range",this).call(this,i,r)}}]),e}();function oue(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=t.inclusiveStart,i=t.inclusiveEnd;return null==e&&(e=t.inclusive),null==i&&(i=t.inclusive),{start:e??n,end:i??n}}function rj(t,n,e){var r=e.length-1;r>=0&&e[r]+(arguments.length>3&&void 0!==arguments[3]?arguments[3]:0)>=t?e[r]=Math.max(e[r],n):e.push(t,n)}d_.prototype.point=!0;var od=function(t){wt(e,ws);var n=Ct(e);function e(){var i;return ke(this,e),(i=n.apply(this,arguments)).children=[],i.length=0,i.prevAttrs=void 0,i.attrs=null,i.breakAfter=0,i}return Se(e,[{key:"merge",value:function(i,r,o,s,a,l){if(o){if(!(o instanceof e))return!1;this.dom||o.transferDOM(this)}return s&&this.setDeco(o?o.attrs:null),qce(this,i,r,o?o.children:[],a,l),!0}},{key:"split",value:function(i){var r=new e;if(r.breakAfter=this.breakAfter,0==this.length)return r;var o=this.childPos(i),s=o.i,a=o.off;a&&(r.append(this.children[s].split(a),0),this.children[s].merge(a,this.children[s].length,null,!1,0,0),s++);for(var l=s;l0&&0==this.children[s-1].length;)this.children[--s].destroy();return this.children.length=s,this.markDirty(),this.length=i,r}},{key:"transferDOM",value:function(i){this.dom&&(this.markDirty(),i.setDOM(this.dom),i.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}},{key:"setDeco",value:function(i){tj(this.attrs,i)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=i)}},{key:"append",value:function(i,r){nue(this,i,r)}},{key:"addLineDeco",value:function(i){var r=i.spec.attributes,o=i.spec.class;r&&(this.attrs=ej(r,this.attrs||{})),o&&(this.attrs=ej({class:o},this.attrs||{}))}},{key:"domAtPos",value:function(i){return tue(this,i)}},{key:"reuseDOM",value:function(i){"DIV"==i.nodeName&&(this.setDOM(i),this.dirty|=6)}},{key:"sync",value:function(i,r){var o;this.dom?4&this.dirty&&(zce(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(nj(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),pr(qi(e.prototype),"sync",this).call(this,i,r);for(var s=this.dom.lastChild;s&&ws.get(s)instanceof Wm;)s=s.lastChild;if(!(s&&this.length&&("BR"==s.nodeName||0!=(null===(o=ws.get(s))||void 0===o?void 0:o.isEditable)||Zn.ios&&this.children.some(function(l){return l instanceof u_})))){var a=document.createElement("BR");a.cmIgnore=!0,this.dom.appendChild(a)}}},{key:"measureTextSize",value:function(){if(0==this.children.length||this.length>20)return null;var i,r=0,o=Re(this.children);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(!(s instanceof u_)||/[^ -~]/.test(s.text))return null;var a=l_(s.dom);if(1!=a.length)return null;r+=a[0].width}}catch(l){o.e(l)}finally{o.f()}return r?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:r/this.length}:null}},{key:"coordsAt",value:function(i,r){return iue(this,i,r)}},{key:"become",value:function(i){return!1}},{key:"type",get:function(){return _o.Text}}],[{key:"find",value:function(i,r){for(var o=0,s=0;o=r){if(a instanceof e)return a;if(l>r)break}s=l+a.breakAfter}return null}}]),e}(),oj=function(t){wt(e,ws);var n=Ct(e);function e(i,r,o){var s;return ke(this,e),(s=n.call(this)).widget=i,s.length=r,s.type=o,s.breakAfter=0,s.prevWidget=null,s}return Se(e,[{key:"merge",value:function(i,r,o,s,a,l){return!(o&&(!(o instanceof e&&this.widget.compare(o.widget))||i>0&&a<=0||r0&&void 0!==arguments[0]?arguments[0]:this.bufferMarks;this.pendingBuffer&&(this.curLine.append(xS(new Z4(-1),n),n.length),this.pendingBuffer=0)}},{key:"addBlockWidget",value:function(n){this.flushBuffer(),this.curLine=null,this.content.push(n)}},{key:"finish",value:function(n){this.pendingBuffer&&n<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||this.getLine()}},{key:"buildText",value:function(n,e,i){for(;n>0;){if(this.textOff==this.text.length){var r=this.cursor.next(this.skip),o=r.value,s=r.lineBreak,a=r.done;if(this.skip=0,a)throw new Error("Ran out of text content when drawing inline views");if(s){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,n--;continue}this.text=o,this.textOff=0}var l=Math.min(this.text.length-this.textOff,n,512);this.flushBuffer(e.slice(e.length-i)),this.getLine().append(xS(new u_(this.text.slice(this.textOff,this.textOff+l)),e),i),this.atCursorPos=!0,this.textOff+=l,n-=l,i=0}}},{key:"span",value:function(n,e,i,r){this.buildText(e-n,i,r),this.pos=e,this.openStart<0&&(this.openStart=r)}},{key:"point",value:function(n,e,i,r,o,s){if(this.disallowBlockEffectsFor[s]&&i instanceof d_){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(e>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}var a=e-n;if(i instanceof d_)if(i.block){var l=i.type;l!=_o.WidgetAfter||this.posCovered()||this.getLine(),this.addBlockWidget(new oj(i.widget||new sue("div"),a,l))}else{var c=K4.create(i.widget||new sue("span"),a,a?0:i.startSide),u=this.atCursorPos&&!c.isEditable&&o<=r.length&&(n0),d=!c.isEditable&&(nr.length||i.startSide<=0),h=this.getLine();2!=this.pendingBuffer||u||(this.pendingBuffer=0),this.flushBuffer(r),u&&(h.append(xS(new Z4(1),r),o),o=r.length+Math.max(0,o-r.length)),h.append(xS(c,r),o),this.atCursorPos=d,this.pendingBuffer=d?nr.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=e),this.openStart<0&&(this.openStart=o)}}],[{key:"build",value:function(n,e,i,r,o){var s=new t(n,e,i,o);return s.openEnd=Go.spans(r,e,i,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}}]),t}();function xS(t,n){var e,i=Re(n);try{for(i.s();!(e=i.n()).done;)t=new Wm(e.value,[t],t.length)}catch(o){i.e(o)}finally{i.f()}return t}var sue=function(t){wt(e,gp);var n=Ct(e);function e(i){var r;return ke(this,e),(r=n.call(this)).tag=i,r}return Se(e,[{key:"eq",value:function(i){return i.tag==this.tag}},{key:"toDOM",value:function(){return document.createElement(this.tag)}},{key:"updateDOM",value:function(i){return i.nodeName.toLowerCase()==this.tag}}]),e}(),aue=Qn.define(),lue=Qn.define(),cue=Qn.define(),uue=Qn.define(),sj=Qn.define(),due=Qn.define(),hue=Qn.define(),fue=Qn.define({combine:function(t){return t.some(function(n){return n})}}),pue=Qn.define({combine:function(t){return t.some(function(n){return n})}}),mue=function(){function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"nearest",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"nearest",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:5;ke(this,t),this.range=n,this.y=e,this.x=i,this.yMargin=r,this.xMargin=o}return Se(t,[{key:"map",value:function(n){return n.empty?this:new t(this.range.map(n),this.y,this.x,this.yMargin,this.xMargin)}}]),t}(),gue=hr.define({map:function(t,n){return t.map(n)}});function Ec(t,n,e){var i=t.facet(uue);i.length?i[0](n):window.onerror?window.onerror(String(n),e,void 0,void 0,n):e?console.error(e+":",n):console.error(n)}var wS=Qn.define({combine:function(t){return!t.length||t[0]}}),PKe=0,h_=Qn.define(),ka=function(){function t(n,e,i,r){ke(this,t),this.id=n,this.create=e,this.domEventHandlers=i,this.extension=r(this)}return Se(t,null,[{key:"define",value:function(n,e){var i=e||{},o=i.provide,s=i.decorations;return new t(PKe++,n,i.eventHandlers,function(a){var l=[h_.of(a)];return s&&l.push(f_.of(function(c){var u=c.plugin(a);return u?s(u):yi.none})),o&&l.push(o(a)),l})}},{key:"fromClass",value:function(n,e){return t.define(function(i){return new n(i)},e)}}]),t}(),aj=function(){function t(n){ke(this,t),this.spec=n,this.mustUpdate=null,this.value=null}return Se(t,[{key:"update",value:function(n){if(this.value){if(this.mustUpdate){var e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(i){if(Ec(e.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(n)}catch(i){Ec(n.state,i,"CodeMirror plugin crashed"),this.deactivate()}return this}},{key:"destroy",value:function(n){var e;if(null!==(e=this.value)&&void 0!==e&&e.destroy)try{this.value.destroy()}catch(i){Ec(n.state,i,"CodeMirror plugin crashed")}}},{key:"deactivate",value:function(){this.spec=this.value=null}}]),t}(),vue=Qn.define(),lj=Qn.define(),f_=Qn.define(),yue=Qn.define(),bue=Qn.define(),p_=Qn.define(),M0=function(){function t(n,e,i,r){ke(this,t),this.fromA=n,this.toA=e,this.fromB=i,this.toB=r}return Se(t,[{key:"join",value:function(n){return new t(Math.min(this.fromA,n.fromA),Math.max(this.toA,n.toA),Math.min(this.fromB,n.fromB),Math.max(this.toB,n.toB))}},{key:"addToSet",value:function(n){for(var e=n.length,i=this;e>0;e--){var r=n[e-1];if(!(r.fromA>i.toA)){if(r.toAu)break;o+=2}if(!l)return i;new t(l.fromA,l.toA,l.fromB,l.toB).addToSet(i),s=l.toA,a=l.toB}}}]),t}(),_ue=function(){function t(n,e,i){ke(this,t),this.view=n,this.state=e,this.transactions=i,this.flags=0,this.startState=n.state,this.changes=rd.empty(this.startState.doc.length);var r,o=Re(i);try{for(o.s();!(r=o.n()).done;)this.changes=this.changes.compose(r.value.changes)}catch(l){o.e(l)}finally{o.f()}var a=[];this.changes.iterChangedRanges(function(l,c,u,d){return a.push(new M0(l,c,u,d))}),this.changedRanges=a}return Se(t,[{key:"viewportChanged",get:function(){return(4&this.flags)>0}},{key:"heightChanged",get:function(){return(2&this.flags)>0}},{key:"geometryChanged",get:function(){return this.docChanged||(10&this.flags)>0}},{key:"focusChanged",get:function(){return(1&this.flags)>0}},{key:"docChanged",get:function(){return!this.changes.empty}},{key:"selectionSet",get:function(){return this.transactions.some(function(n){return n.selection})}},{key:"empty",get:function(){return 0==this.flags&&0==this.transactions.length}}],[{key:"create",value:function(n,e,i){return new t(n,e,i)}}]),t}(),us=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(us||(us={})),cj=us.LTR,LKe=us.RTL;function xue(t){for(var n=[],e=0;e=e){if(a.level==i)return s;(o<0||(0!=r?r<0?a.frome:n[o].level>a.level))&&(o=s)}}if(o<0)throw new RangeError("Index out of range");return o}}]),t}(),ds=[];function Due(t){return[new I0(0,t,0)]}var Tue="";function HKe(t,n,e,i,r){var o,s=i.head-t.from,a=-1;if(0==s){if(!r||!t.length)return null;n[0].level!=e&&(s=n[0].side(!1,e),a=0)}else if(s==t.length){if(r)return null;var l=n[n.length-1];l.level!=e&&(s=l.side(!0,e),a=n.length-1)}a<0&&(a=I0.find(n,s,null!==(o=i.bidiLevel)&&void 0!==o?o:-1,i.assoc));var c=n[a];s==c.side(r,e)&&(s=(c=n[a+=r?1:-1]).side(!r,e));var u=r==(c.dir==e),d=Pl(t.text,s,u);if(Tue=t.text.slice(Math.min(s,d),Math.max(s,d)),d!=c.side(r,e))return en.cursor(d+t.from,u?-1:1,c.level);var h=a==(r?n.length-1:0)?null:n[a+(r?1:-1)];return h||c.level==e?h&&h.level1){var d,h=Re(this.points);try{for(h.s();!(d=h.n()).done;){var f=d.value;f.node==n&&f.pos>this.text.length&&(f.pos-=c-1)}}catch(p){h.e(p)}finally{h.f()}}s=l+c}}},{key:"readNode",value:function(n){if(!n.cmIgnore){var e=ws.get(n),i=e&&e.overrideDOMText;if(null!=i){this.findPointInside(n,i.length);for(var r=i.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else 3==n.nodeType?this.readTextNode(n):"BR"==n.nodeName?n.nextSibling&&this.lineBreak():1==n.nodeType&&this.readRange(n.firstChild,null)}}},{key:"findPointBefore",value:function(n,e){var i,r=Re(this.points);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.node==n&&n.childNodes[o.offset]==e&&(o.pos=this.text.length)}}catch(s){r.e(s)}finally{r.f()}}},{key:"findPointInside",value:function(n,e){var i,r=Re(this.points);try{for(r.s();!(i=r.n()).done;){var o=i.value;(3==n.nodeType?o.node==n:n.contains(o.node))&&(o.pos=this.text.length+Math.min(e,o.offset))}}catch(s){r.e(s)}finally{r.f()}}}]),t}();function Aue(t){return 1==t.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}var Mue=Se(function t(n,e){ke(this,t),this.node=n,this.offset=e,this.pos=-1}),Iue=function(t){wt(e,ws);var n=Ct(e);function e(i){var r;return ke(this,e),(r=n.call(this)).view=i,r.compositionDeco=yi.none,r.decorations=[],r.dynamicDecorationMap=[],r.minWidth=0,r.minWidthFrom=0,r.minWidthTo=0,r.impreciseAnchor=null,r.impreciseHead=null,r.forceSelection=!1,r.lastUpdate=Date.now(),r.setDOM(i.contentDOM),r.children=[new od],r.children[0].setParent(An(r)),r.updateDeco(),r.updateInner([new M0(0,0,0,i.state.doc.length)],0),r}return Se(e,[{key:"length",get:function(){return this.view.state.doc.length}},{key:"update",value:function(i){var r=this,o=i.changedRanges;this.minWidth>0&&o.length&&(o.every(function(a){return a.toAr.minWidthTo})?(this.minWidthFrom=i.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=i.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.view.inputState.composing<0?this.compositionDeco=yi.none:(i.transactions.length||this.dirty)&&(this.compositionDeco=function(a,l){var c=Fue(a);if(!c)return yi.none;var d=c.to,h=c.node,f=c.text,p=l.mapPos(c.from,1),m=Math.max(p,l.mapPos(d,-1)),g=a.state,v=3==h.nodeType?h.nodeValue:new Eue([],g).readRange(h.firstChild,null).text;if(m-p=0?i[s]:null;if(!a)break;var l=a.fromA,c=a.toA,h=jKe.build(this.view.state.doc,a.fromB,a.toB,this.decorations,this.dynamicDecorationMap),f=h.content,p=h.breakAtStart,m=h.openStart,g=h.openEnd,v=o.findPos(c,1),y=v.i,_=v.off,C=o.findPos(l,-1);Wce(this,C.i,C.off,y,_,f,p,m,g)}}},{key:"updateSelection",value:function(){var i=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange(),o||this.mayControlSelection()){var s=this.forceSelection;this.forceSelection=!1;var a=this.view.state.selection.main,l=this.domAtPos(a.anchor),c=a.empty?l:this.domAtPos(a.head);if(Zn.gecko&&a.empty&&function zKe(t){return 1==t.node.nodeType&&t.node.firstChild&&(0==t.offset||"false"==t.node.childNodes[t.offset-1].contentEditable)&&(t.offset==t.node.childNodes.length||"false"==t.node.childNodes[t.offset].contentEditable)}(l)){var u=document.createTextNode("");this.view.observer.ignore(function(){return l.node.insertBefore(u,l.node.childNodes[l.offset]||null)}),l=c=new Dc(u,0),s=!0}var d=this.view.observer.selectionRange;!s&&d.focusNode&&yS(l.node,l.offset,d.anchorNode,d.anchorOffset)&&yS(c.node,c.offset,d.focusNode,d.focusOffset)||(this.view.observer.ignore(function(){Zn.android&&Zn.chrome&&i.dom.contains(d.focusNode)&&function qKe(t,n){for(var e=t;e&&e!=n;e=e.assignedSlot||e.parentNode)if(1==e.nodeType&&"false"==e.contentEditable)return!0;return!1}(d.focusNode,i.dom)&&(i.dom.blur(),i.dom.focus({preventScroll:!0}));var h=gS(i.view.root);if(h)if(a.empty){if(Zn.gecko){var f=function GKe(t,n){return 1!=t.nodeType?0:(n&&"false"==t.childNodes[n-1].contentEditable?1:0)|(na.head){var g=[c,l];l=g[0],c=g[1]}m.setEnd(c.node,c.offset),m.setStart(l.node,l.offset),h.removeAllRanges(),h.addRange(m)}}),this.view.observer.setSelectionRange(l,c)),this.impreciseAnchor=l.precise?null:new Dc(d.anchorNode,d.anchorOffset),this.impreciseHead=c.precise?null:new Dc(d.focusNode,d.focusOffset)}}},{key:"enforceCursorAssoc",value:function(){if(!this.compositionDeco.size){var i=this.view,r=i.state.selection.main,o=gS(i.root),s=i.observer.selectionRange,a=s.anchorNode,l=s.anchorOffset;if(o&&r.empty&&r.assoc&&o.modify){var c=od.find(this,r.head);if(c){var u=c.posAtStart;if(r.head!=u&&r.head!=u+c.length){var d=this.coordsAt(r.head,-1),h=this.coordsAt(r.head,1);if(d&&h&&!(d.bottom>h.top)){var f=this.domAtPos(r.head+r.assoc);o.collapse(f.node,f.offset),o.modify("move",r.assoc<0?"forward":"backward","lineboundary"),i.observer.readSelectionRange();var p=i.observer.selectionRange;i.docView.posFromDOM(p.anchorNode,p.anchorOffset)!=r.from&&o.collapse(a,l)}}}}}}},{key:"mayControlSelection",value:function(){var i=this.view.root.activeElement;return i==this.dom||vS(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i))}},{key:"nearest",value:function(i){for(var r=i;r;){var o=ws.get(r);if(o&&o.rootView==this)return o;r=r.parentNode}return null}},{key:"posFromDOM",value:function(i,r){var o=this.nearest(i);if(!o)throw new RangeError("Trying to find position for a DOM position outside of the document");return o.localPosFromDOM(i,r)+o.posAtStart}},{key:"domAtPos",value:function(i){for(var r=this.childCursor().findPos(i,-1),o=r.i,s=r.off;ol||i==l&&a.type!=_o.WidgetBefore&&a.type!=_o.WidgetAfter&&(!s||2==r||this.children[s-1].breakAfter||this.children[s-1].type==_o.WidgetBefore&&r>-2))return a.coordsAt(i-l,r);o=l}}},{key:"measureVisibleLineHeights",value:function(i){for(var r=[],o=i.from,s=i.to,a=this.view.contentDOM.clientWidth,l=a>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,c=-1,u=this.view.textDirection==us.LTR,d=0,h=0;hs)break;if(d>=o){var m=f.dom.getBoundingClientRect();if(r.push(m.height),l){var g=f.dom.lastChild,v=g?l_(g):[];if(v.length){var y=v[v.length-1],_=u?y.right-m.left:m.right-y.left;_>c&&(c=_,this.minWidth=a,this.minWidthFrom=d,this.minWidthTo=p)}}}d=p+f.breakAfter}return r}},{key:"textDirectionAt",value:function(i){var r=this.childPos(i,1).i;return"rtl"==getComputedStyle(this.children[r].dom).direction?us.RTL:us.LTR}},{key:"measureTextSize",value:function(){var i,r=this,o=Re(this.children);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(s instanceof od){var a=s.measureTextSize();if(a)return a}}}catch(d){o.e(d)}finally{o.f()}var l,c,u=document.createElement("div");return u.className="cm-line",u.style.width="99999px",u.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(function(){r.dom.appendChild(u);var d=l_(u.firstChild)[0];l=u.getBoundingClientRect().height,c=d?d.width/27:7,u.remove()}),{lineHeight:l,charWidth:c}}},{key:"childCursor",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.length,r=this.children.length;return r&&(i-=this.children[--r].length),new Gce(this.children,i,r)}},{key:"computeBlockGapDeco",value:function(){for(var i=[],r=this.view.viewState,o=0,s=0;;s++){var a=s==r.viewports.length?null:r.viewports[s],l=a?a.from-1:this.length;if(l>o){var c=r.lineBlockAt(l).bottom-r.lineBlockAt(o).top;i.push(yi.replace({widget:new Nue(c),block:!0,inclusive:!0,isBlockGap:!0}).range(o,l))}if(!a)break;o=a.to+1}return yi.set(i)}},{key:"updateDeco",value:function(){for(var i=this,r=this.view.state.facet(f_).map(function(s,a){return(i.dynamicDecorationMap[a]="function"==typeof s)?s(i.view):s}),o=r.length;os.anchor?-1:1);if(a){!s.empty&&(r=this.coordsAt(s.anchor,s.anchor>s.head?-1:1))&&(a={left:Math.min(a.left,r.left),top:Math.min(a.top,r.top),right:Math.max(a.right,r.right),bottom:Math.max(a.bottom,r.bottom)});var l,c=0,u=0,d=0,h=0,f=Re(this.view.state.facet(bue).map(function(C){return C(o.view)}));try{for(f.s();!(l=f.n()).done;){var p=l.value;if(p){var m=p.left,g=p.right,v=p.top,y=p.bottom;null!=m&&(c=Math.max(c,m)),null!=g&&(u=Math.max(u,g)),null!=v&&(d=Math.max(d,v)),null!=y&&(h=Math.max(h,y))}}}catch(C){f.e(C)}finally{f.f()}!function(C,S,M,$,G,R,z,U){for(var q=C.ownerDocument,re=q.defaultView||window,L=C;L;)if(1==L.nodeType){var X=void 0,Z=L==q.body;if(Z)X=NKe(re);else{if(L.scrollHeight<=L.clientHeight&&L.scrollWidth<=L.clientWidth){L=L.assignedSlot||L.parentNode;continue}var H=L.getBoundingClientRect();X={left:H.left,right:H.left+L.clientWidth,top:H.top,bottom:H.top+L.clientHeight}}var he=0,E=0;if("nearest"==G)S.top0&&S.bottom>X.bottom+E&&(E=S.bottom-X.bottom+E+z)):S.bottom>X.bottom&&(E=S.bottom-X.bottom+z,M<0&&S.top-E0&&S.right>X.right+he&&(he=S.right-X.right+he+R)):S.right>X.right&&(he=S.right-X.right+R,M<0&&S.left0&&e<=0)n=c_(t=t.childNodes[n-1]);else{if(!(1==t.nodeType&&n=0))return null;t=t.childNodes[n],n=0}}}var WKe=function(){function t(){ke(this,t),this.changes=[]}return Se(t,[{key:"compareRange",value:function(n,e){rj(n,e,this.changes)}},{key:"comparePoint",value:function(n,e){rj(n,e,this.changes)}}]),t}();function XKe(t,n){return n.left>t?n.left-t:Math.max(0,t-n.right)}function YKe(t,n){return n.top>t?n.top-t:Math.max(0,t-n.bottom)}function hj(t,n){return t.topn.top+1}function jue(t,n){return nt.bottom?{top:t.top,left:t.left,right:t.right,bottom:n}:t}function fj(t,n,e){for(var i,r,o,s,a,l,c,u,d=!1,h=t.firstChild;h;h=h.nextSibling)for(var f=l_(h),p=0;pv||s==v&&o>g){i=h,r=m,o=g,s=v;var y=v?e0?p0)}0==g?e>m.bottom&&(!c||c.bottomm.top)&&(l=h,u=m):c&&hj(c,m)?c=Pue(c,m.bottom):u&&hj(u,m)&&(u=jue(u,m.top))}if(c&&c.bottom>=e?(i=a,r=c):u&&u.top<=e&&(i=l,r=u),!i)return{node:t,offset:0};var _=Math.max(r.left,Math.min(r.right,n));return 3==i.nodeType?Lue(i,_,e):d&&"false"!=i.contentEditable?fj(i,_,e):{node:t,offset:Array.prototype.indexOf.call(t.childNodes,i)+(n>=(r.left+r.right)/2?1:0)}}function Lue(t,n,e){for(var i=t.nodeValue.length,r=-1,o=1e9,s=0,a=0;ae?u.top-e:e-u.bottom)-1;if(u.left-1<=n&&u.right+1>=n&&d=(u.left+u.right)/2,f=h;if((Zn.chrome||Zn.gecko)&&E0(t,a).getBoundingClientRect().left==u.right&&(f=!h),d<=0)return{node:t,offset:a+(f?1:0)};r=a+(f?1:0),o=d}}}return{node:t,offset:r>-1?r:s>0?t.nodeValue.length:0}}function Rue(t,n,e){var i,r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,s=t.contentDOM.getBoundingClientRect(),a=s.top+t.viewState.paddingTop,l=t.viewState.docHeight,c=n.x,u=n.y,d=u-a;if(d<0)return 0;if(d>l)return t.state.doc.length;for(var h=t.defaultLineHeight/2,f=!1;(r=t.elementAtHeight(d)).type!=_o.Text;)for(;!((d=o>0?r.bottom+h:r.top-h)>=0&&d<=l);){if(f)return e?null:0;f=!0,o=-o}u=a+d;var p=r.from;if(pt.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:e?null:$ue(t,s,r,c,u);var m=t.dom.ownerDocument,g=t.root.elementFromPoint?t.root:m,v=g.elementFromPoint(c,u);v&&!t.contentDOM.contains(v)&&(v=null),v||(c=Math.max(s.left+1,Math.min(s.right-1,c)),(v=g.elementFromPoint(c,u))&&!t.contentDOM.contains(v)&&(v=null));var y,_=-1;if(v&&0!=(null===(i=t.docView.nearest(v))||void 0===i?void 0:i.isEditable))if(m.caretPositionFromPoint){var C=m.caretPositionFromPoint(c,u);C&&(y=C.offsetNode,_=C.offset)}else if(m.caretRangeFromPoint){var S=m.caretRangeFromPoint(c,u);S&&(_=S.startOffset,(!t.contentDOM.contains(y=S.startContainer)||Zn.safari&&function JKe(t,n,e){var i;if(3!=t.nodeType||n!=(i=t.nodeValue.length))return!1;for(var r=t.nextSibling;r;r=r.nextSibling)if(1!=r.nodeType||"BR"!=r.nodeName)return!1;return E0(t,i-1,i).getBoundingClientRect().left>e}(y,_,c)||Zn.chrome&&function KKe(t,n,e){if(0!=n)return!1;for(var i=t;;){var r=i.parentNode;if(!r||1!=r.nodeType||r.firstChild!=i)return!1;if(r.classList.contains("cm-line"))break;i=r}return e-(1==t.nodeType?t.getBoundingClientRect():E0(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect()).left>5}(y,_,c))&&(y=void 0))}if(!y||!t.docView.dom.contains(y)){var M=od.find(t.docView,p);if(!M)return d>r.top+r.height/2?r.to:r.from;var $=fj(M.dom,c,u);y=$.node,_=$.offset}var G=t.docView.nearest(y);if(!G)return null;if(G.isWidget){var R=G.dom.getBoundingClientRect();return n.y1.5*t.defaultLineHeight&&(o+=Math.floor((r-e.top)/t.defaultLineHeight)*t.viewState.heightOracle.lineLength);var s=t.state.sliceDoc(e.from,e.to);return e.from+V4(s,o,t.state.tabSize)}function Bue(t,n,e,i){for(var r=t.state.doc.lineAt(n.head),o=t.bidiSpans(r),s=t.textDirectionAt(r.from),a=n,l=null;;){var c=HKe(r,o,s,a,e),u=Tue;if(!c){if(r.number==(e?t.state.doc.lines:1))return a;u="\n",r=t.state.doc.line(r.number+(e?1:-1)),o=t.bidiSpans(r),c=en.cursor(e?r.from:r.to)}if(l){if(!l(u))return a}else{if(!i)return c;l=i(u)}a=c}}function pj(t,n,e){for(var i=t.state.facet(yue).map(function(a){return a(t)});;){var r,o=!1,s=Re(i);try{for(s.s();!(r=s.n()).done;)r.value.between(e.from-1,e.from+1,function(a,l,c){e.from>a&&e.frome.from?en.cursor(a,1):en.cursor(l,-1),o=!0)})}catch(a){s.e(a)}finally{s.f()}if(!o)return e}}var ZKe=function(){function t(n){var e=this;ke(this,t),this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.chromeScrollHack=-1,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.mouseSelection=null;var i=function(s,a){e.ignoreDuringComposition(a)||"keydown"==a.type&&e.keydown(n,a)||(e.mustFlushObserver(a)&&n.observer.forceFlush(),e.runCustomHandlers(a.type,n,a)?a.preventDefault():s(n,a))},r=function(s){var a=la[s];n.contentDOM.addEventListener(s,function(l){zue(n,l)&&i(a,l)},mj[s]),e.registeredEvents.push(s)};for(var o in la)r(o);n.scrollDOM.addEventListener("mousedown",function(s){s.target==n.scrollDOM&&s.clientY>n.contentDOM.getBoundingClientRect().bottom&&i(la.mousedown,s)}),Zn.chrome&&102==Zn.chrome_version&&n.scrollDOM.addEventListener("wheel",function(){e.chromeScrollHack<0?n.contentDOM.style.pointerEvents="none":window.clearTimeout(e.chromeScrollHack),e.chromeScrollHack=setTimeout(function(){e.chromeScrollHack=-1,n.contentDOM.style.pointerEvents=""},100)},{passive:!0}),this.notifiedFocused=n.hasFocus,Zn.safari&&n.contentDOM.addEventListener("input",function(){return null})}return Se(t,[{key:"setSelectionOrigin",value:function(n){this.lastSelectionOrigin=n,this.lastSelectionTime=Date.now()}},{key:"ensureHandlers",value:function(n,e){var i,r,o=this;this.customHandlers=[];var s,a=Re(e);try{for(a.s();!(s=a.n()).done;){var l=s.value;if(r=null===(i=l.update(n).spec)||void 0===i?void 0:i.domEventHandlers){this.customHandlers.push({plugin:l.value,handlers:r});var c=function(d){o.registeredEvents.indexOf(d)<0&&"scroll"!=d&&(o.registeredEvents.push(d),n.contentDOM.addEventListener(d,function(h){zue(n,h)&&o.runCustomHandlers(d,n,h)&&h.preventDefault()}))};for(var u in r)c(u)}}}catch(d){a.e(d)}finally{a.f()}}},{key:"runCustomHandlers",value:function(n,e,i){var r,o=Re(this.customHandlers);try{for(o.s();!(r=o.n()).done;){var s=r.value,a=s.handlers[n];if(a)try{if(a.call(s.plugin,i,e)||i.defaultPrevented)return!0}catch(l){Ec(e.state,l)}}}catch(l){o.e(l)}finally{o.f()}return!1}},{key:"runScrollHandlers",value:function(n,e){this.lastScrollTop=n.scrollDOM.scrollTop,this.lastScrollLeft=n.scrollDOM.scrollLeft;var i,r=Re(this.customHandlers);try{for(r.s();!(i=r.n()).done;){var o=i.value,s=o.handlers.scroll;if(s)try{s.call(o.plugin,e,n)}catch(a){Ec(n.state,a)}}}catch(a){r.e(a)}finally{r.f()}}},{key:"keydown",value:function(n,e){var i,r=this;return this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&Date.now()-1&&e.ctrlKey&&!e.shiftKey)||(this.pendingIOSKey=i||e,setTimeout(function(){return r.flushIOSKey(n)},250),0)):(n.observer.delayAndroidKey(e.key,e.keyCode),!0))}},{key:"flushIOSKey",value:function(n){var e=this.pendingIOSKey;return!!e&&(this.pendingIOSKey=void 0,A0(n.contentDOM,e.key,e.keyCode))}},{key:"ignoreDuringComposition",value:function(n){return!!/^key/.test(n.type)&&(this.composing>0||!!(Zn.safari&&!Zn.ios&&Date.now()-this.compositionEndedAt<100)&&(this.compositionEndedAt=0,!0))}},{key:"mustFlushObserver",value:function(n){return"keydown"==n.type&&229!=n.keyCode}},{key:"startMouseSelection",value:function(n){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=n}},{key:"update",value:function(n){this.mouseSelection&&this.mouseSelection.update(n),n.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}},{key:"destroy",value:function(){this.mouseSelection&&this.mouseSelection.destroy()}}]),t}(),Vue=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],eQe="dthko",Hue=[16,17,18,20,91,92,224,225];function CS(t){return.7*t+8}var tQe=function(){function t(n,e,i,r){ke(this,t),this.view=n,this.style=i,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=e,this.scrollParent=function(s){for(var a=s.ownerDocument,l=s.parentNode;l&&l!=a.body;)if(1==l.nodeType){if(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth)return l;l=l.assignedSlot||l.parentNode}else{if(11!=l.nodeType)break;l=l.host}return null}(n.contentDOM);var a,l,o=n.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=e.shiftKey,this.multiple=n.state.facet(Fo.allowMultipleSelections)&&(a=e,(l=n.state.facet(aue)).length?l[0](a):Zn.mac?a.metaKey:a.ctrlKey),this.dragMove=function(s,a){var l=s.state.facet(lue);return l.length?l[0](a):Zn.mac?!a.altKey:!a.ctrlKey}(n,e),this.dragging=!(!function(s,a){if(s.state.selection.main.empty)return!1;var l=gS(s.root);if(!l||0==l.rangeCount)return!0;for(var c=l.getRangeAt(0).getClientRects(),u=0;u=a.clientX&&d.top<=a.clientY&&d.bottom>=a.clientY)return!0}return!1}(n,e)||1!=Zue(e))&&null}return Se(t,[{key:"start",value:function(n){!1===this.dragging&&(n.preventDefault(),this.select(n))}},{key:"move",value:function(n){var e;if(0==n.buttons)return this.destroy();if(!1===this.dragging){this.select(this.lastEvent=n);var i=0,r=0,o=(null===(e=this.scrollParent)||void 0===e?void 0:e.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight};n.clientX<=o.left?i=-CS(o.left-n.clientX):n.clientX>=o.right&&(i=CS(n.clientX-o.right)),n.clientY<=o.top?r=-CS(o.top-n.clientY):n.clientY>=o.bottom&&(r=CS(n.clientY-o.bottom)),this.setScrollSpeed(i,r)}}},{key:"up",value:function(n){null==this.dragging&&this.select(this.lastEvent),this.dragging||n.preventDefault(),this.destroy()}},{key:"destroy",value:function(){this.setScrollSpeed(0,0);var n=this.view.contentDOM.ownerDocument;n.removeEventListener("mousemove",this.move),n.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}},{key:"setScrollSpeed",value:function(n,e){var i=this;this.scrollSpeed={x:n,y:e},n||e?this.scrolling<0&&(this.scrolling=setInterval(function(){return i.scroll()},50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}},{key:"scroll",value:function(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}},{key:"select",value:function(n){var e=this.style.get(n,this.extend,this.multiple);!this.mustSelect&&e.eq(this.view.state.selection)&&e.main.assoc==this.view.state.selection.main.assoc||this.view.dispatch({selection:e,userEvent:"select.pointer"}),this.mustSelect=!1}},{key:"update",value:function(n){var e=this;n.docChanged&&this.dragging&&(this.dragging=this.dragging.map(n.changes)),this.style.update(n)&&setTimeout(function(){return e.select(e.lastEvent)},20)}}]),t}();function zue(t,n){if(!n.bubbles)return!0;if(n.defaultPrevented)return!1;for(var e,i=n.target;i!=t.contentDOM;i=i.parentNode)if(!i||11==i.nodeType||(e=ws.get(i))&&e.ignoreEvent(n))return!1;return!0}var la=Object.create(null),mj=Object.create(null),Uue=Zn.ie&&Zn.ie_version<15||Zn.ios&&Zn.webkit_version<604;function Gue(t,n){var e,i=t.state,r=1,o=i.toText(n),s=o.lines==i.selection.ranges.length;if(null!=gj&&i.selection.ranges.every(function(c){return c.empty})&&gj==o.toString()){var l=-1;e=i.changeByRange(function(c){var u=i.doc.lineAt(c.from);if(u.from==l)return{range:c};l=u.from;var d=i.toText((s?o.line(r++).text:n)+i.lineBreak);return{changes:{from:u.from,insert:d},range:en.cursor(c.from+d.length)}})}else e=s?i.changeByRange(function(c){var u=o.line(r++);return{changes:{from:c.from,to:c.to,insert:u.text},range:en.cursor(c.from+u.length)}}):i.replaceSelection(o);t.dispatch(e,{userEvent:"input.paste",scrollIntoView:!0})}function Wue(t,n,e,i){if(1==i)return en.cursor(n,e);if(2==i)return function(l,c){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,d=l.charCategorizer(c),h=l.doc.lineAt(c),f=c-h.from;if(0==h.length)return en.cursor(c);0==f?u=1:f==h.length&&(u=-1);var p=f,m=f;u<0?p=Pl(h.text,f,!1):m=Pl(h.text,f);for(var g=d(h.text.slice(p,m));p>0;){var v=Pl(h.text,p,!1);if(d(h.text.slice(v,p))!=g)break;p=v}for(;mDate.now()-2e3)){var e,i=null,r=Re(t.state.facet(cue));try{for(r.s();!(e=r.n()).done&&!(i=(0,e.value)(t,n)););}catch(s){r.e(s)}finally{r.f()}if(i||0!=n.button||(l=Yue(s=t,a=n),c=Zue(a),u=s.state.selection,i={update:function(d){d.docChanged&&(l.pos=d.changes.mapPos(l.pos),u=u.map(d.changes))},get:function(d,h,f){var p=Yue(s,d),m=Wue(s,p.pos,p.bias,c);if(l.pos!=p.pos&&!h){var g=Wue(s,l.pos,l.bias,c),v=Math.min(g.from,m.from),y=Math.max(g.to,m.to);m=v1&&u.ranges.some(function(_){return _.eq(m)})?function(_,C){for(var S=0;;S++)if(_.ranges[S].eq(C))return en.create(_.ranges.slice(0,S).concat(_.ranges.slice(S+1)),_.mainIndex==S?0:_.mainIndex-(_.mainIndex>S?1:0))}(u,m):f?u.addRange(m):en.create([m])}}),i){var o=t.root.activeElement!=t.contentDOM;t.inputState.startMouseSelection(new tQe(t,n,i,o)),o&&t.observer.ignore(function(){return Hce(t.contentDOM)}),t.inputState.mouseSelection&&t.inputState.mouseSelection.start(n)}}var s,a,l,c,u};var que=function(t,n){return t>=n.top&&t<=n.bottom},Xue=function(t,n,e){return que(n,e)&&t>=e.left&&t<=e.right};function nQe(t,n,e,i){var r=od.find(t.docView,n);if(!r)return 1;var o=n-r.posAtStart;if(0==o)return 1;if(o==r.length)return-1;var s=r.coordsAt(o,-1);if(s&&Xue(e,i,s))return-1;var a=r.coordsAt(o,1);return a&&Xue(e,i,a)?1:s&&que(i,s)?-1:1}function Yue(t,n){var e=t.posAtCoords({x:n.clientX,y:n.clientY},!1);return{pos:e,bias:nQe(t,e,n.clientX,n.clientY)}}var iQe=Zn.ie&&Zn.ie_version<=11,Jue=null,Kue=0,Que=0;function Zue(t){if(!iQe)return t.detail;var n=Jue,e=Que;return Jue=t,Que=Date.now(),Kue=!n||e>Date.now()-400&&Math.abs(n.clientX-t.clientX)<2&&Math.abs(n.clientY-t.clientY)<2?(Kue+1)%3:1}function ede(t,n,e,i){if(e){var r=t.posAtCoords({x:n.clientX,y:n.clientY},!1);n.preventDefault();var o=t.inputState.mouseSelection,s=i&&o&&o.dragging&&o.dragMove?{from:o.dragging.from,to:o.dragging.to}:null,a={from:r,insert:e},l=t.state.changes(s?[s,a]:a);t.focus(),t.dispatch({changes:l,selection:{anchor:l.mapPos(r,-1),head:l.mapPos(r,1)},userEvent:s?"move.drop":"input.drop"})}}la.dragstart=function(t,n){var e=t.state.selection.main,i=t.inputState.mouseSelection;i&&(i.dragging=e),n.dataTransfer&&(n.dataTransfer.setData("Text",t.state.sliceDoc(e.from,e.to)),n.dataTransfer.effectAllowed="copyMove")},la.drop=function(t,n){if(n.dataTransfer){if(t.state.readOnly)return n.preventDefault();var e=n.dataTransfer.files;e&&e.length?function(){n.preventDefault();for(var i=Array(e.length),r=0,o=function(){++r==e.length&&ede(t,n,i.filter(function(l){return null!=l}).join(t.state.lineBreak),!1)},s=function(l){var c=new FileReader;c.onerror=o,c.onload=function(){/[\x00-\x08\x0e-\x1f]{2}/.test(c.result)||(i[l]=c.result),o()},c.readAsText(e[l])},a=0;am&&(c.push(y.text),u.push({from:y.from,to:Math.min(a.doc.length,y.to+1)})),m=y.number}}catch(_){g.e(_)}finally{g.f()}d=!0}return{text:c.join(a.lineBreak),ranges:u,linewise:d}}(t.state),i=e.text,r=e.ranges,o=e.linewise;if(i||o){gj=o?i:null;var s=Uue?null:n.clipboardData;s?(n.preventDefault(),s.clearData(),s.setData("text/plain",i)):function(a,l){var c=a.dom.parentNode;if(c){var u=c.appendChild(document.createElement("textarea"));u.style.cssText="position: fixed; left: -10000px; top: 10px",u.value=l,u.focus(),u.selectionEnd=l.length,u.selectionStart=0,setTimeout(function(){u.remove(),a.focus()},50)}}(t,i),"cut"!=n.type||t.state.readOnly||t.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"})}};var tde=fp.define();function nde(t,n){var e,i=[],r=Re(t.facet(hue));try{for(r.s();!(e=r.n()).done;){var o=(0,e.value)(t,n);o&&i.push(o)}}catch(s){r.e(s)}finally{r.f()}return i?t.update({effects:i,annotations:tde.of(!0)}):null}function ide(t){setTimeout(function(){var n=t.hasFocus;if(n!=t.inputState.notifiedFocused){var e=nde(t.state,n);e?t.dispatch(e):t.update([])}},10)}la.focus=function(t){t.inputState.lastFocusTime=Date.now(),t.scrollDOM.scrollTop||!t.inputState.lastScrollTop&&!t.inputState.lastScrollLeft||(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),ide(t)},la.blur=function(t){t.observer.clearSelectionRange(),ide(t)},la.compositionstart=la.compositionupdate=function(t){null==t.inputState.compositionFirstChange&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0)},la.compositionend=function(t){t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionFirstChange=null,Zn.chrome&&Zn.android&&t.observer.flushSoon(),setTimeout(function(){t.inputState.composing<0&&t.docView.compositionDeco.size&&t.update([])},50)},la.contextmenu=function(t){t.inputState.lastContextMenu=Date.now()},la.beforeinput=function(t,n){var e,i;if(Zn.chrome&&Zn.android&&(i=Vue.find(function(o){return o.inputType==n.inputType}))&&(t.observer.delayAndroidKey(i.key,i.keyCode),"Backspace"==i.key||"Delete"==i.key)){var r=(null===(e=window.visualViewport)||void 0===e?void 0:e.height)||0;setTimeout(function(){var o;((null===(o=window.visualViewport)||void 0===o?void 0:o.height)||0)>r+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}};var rde=["pre-wrap","normal","pre-line","break-spaces"],rQe=function(){function t(n){ke(this,t),this.lineWrapping=n,this.doc=fo.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.lineLength=30,this.heightChanged=!1}return Se(t,[{key:"heightForGap",value:function(n,e){var i=this.doc.lineAt(e).number-this.doc.lineAt(n).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((e-n-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}},{key:"heightForLine",value:function(n){return this.lineWrapping?(1+Math.max(0,Math.ceil((n-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}},{key:"setDoc",value:function(n){return this.doc=n,this}},{key:"mustRefreshForWrapping",value:function(n){return rde.indexOf(n)>-1!=this.lineWrapping}},{key:"mustRefreshForHeights",value:function(n){for(var e=!1,i=0;i-1,a=Math.round(e)!=Math.round(this.lineHeight)||this.lineWrapping!=s;if(this.lineWrapping=s,this.lineHeight=e,this.charWidth=i,this.lineLength=r,a){this.heightSamples={};for(var l=0;l2&&void 0!==arguments[2]?arguments[2]:2;ke(this,t),this.length=n,this.height=e,this.flags=i}return Se(t,[{key:"outdated",get:function(){return(2&this.flags)>0},set:function(n){this.flags=(n?2:0)|-3&this.flags}},{key:"setHeight",value:function(n,e){this.height!=e&&(Math.abs(this.height-e)>.001&&(n.heightChanged=!0),this.height=e)}},{key:"replace",value:function(n,e,i){return t.of(i)}},{key:"decomposeLeft",value:function(n,e){e.push(this)}},{key:"decomposeRight",value:function(n,e){e.push(this)}},{key:"applyChanges",value:function(n,e,i,r){for(var o=this,s=i.doc,a=r.length-1;a>=0;a--){var l=r[a],c=l.fromA,u=l.toA,d=l.fromB,h=l.toB,f=o.lineAt(c,Wo.ByPosNoHeight,i.setDoc(e),0,0),p=f.to>=u?f:o.lineAt(u,Wo.ByPosNoHeight,i,0,0);for(h+=p.to-u,u=p.to;a>0&&f.from<=r[a-1].toA;)c=r[a-1].fromA,d=r[a-1].fromB,a--,c2*o){var s=n[e-1];s.break?n.splice(--e,1,s.left,null,s.right):n.splice(--e,1,s.left,s.right),i+=1+s.break,r-=s.size}else{if(!(o>2*r))break;var a=n[i];a.break?n.splice(i,1,a.left,null,a.right):n.splice(i,1,a.left,a.right),i+=2+a.break,o-=a.size}else if(r=a&&l(this.blockAt(0,o,s,a))}},{key:"updateHeight",value:function(i){var o=arguments.length>3?arguments[3]:void 0;return o&&o.from<=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)&&o.more&&this.setHeight(i,o.heights[o.index++]),this.outdated=!1,this}},{key:"toString",value:function(){return"block(".concat(this.length,")")}}]),e}(),fh=function(t){wt(e,ode);var n=Ct(e);function e(i,r){var o;return ke(this,e),(o=n.call(this,i,r,_o.Text)).collapsed=0,o.widgetHeight=0,o}return Se(e,[{key:"replace",value:function(i,r,o){var s=o[0];return 1==o.length&&(s instanceof e||s instanceof N0&&4&s.flags)&&Math.abs(this.length-s.length)<10?(s instanceof N0?s=new e(s.length,this.height):s.height=this.height,this.outdated||(s.outdated=!1),s):sd.of(o)}},{key:"updateHeight",value:function(i){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0;return s&&s.from<=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)&&s.more?this.setHeight(i,s.heights[s.index++]):(o||this.outdated)&&this.setHeight(i,Math.max(this.widgetHeight,i.heightForLine(this.length-this.collapsed))),this.outdated=!1,this}},{key:"toString",value:function(){return"line(".concat(this.length).concat(this.collapsed?-this.collapsed:"").concat(this.widgetHeight?":"+this.widgetHeight:"",")")}}]),e}(),N0=function(t){wt(e,sd);var n=Ct(e);function e(i){return ke(this,e),n.call(this,i,0)}return Se(e,[{key:"heightMetrics",value:function(i,r){var o,s=i.doc.lineAt(r).number,a=i.doc.lineAt(r+this.length).number,l=a-s+1,c=0;if(i.lineWrapping){var u=Math.min(this.height,i.lineHeight*l);o=u/l,c=(this.height-u)/(this.length-l-1)}else o=this.height/l;return{firstLine:s,lastLine:a,perLine:o,perChar:c}}},{key:"blockAt",value:function(i,r,o,s){var a=this.heightMetrics(r,s),l=a.firstLine,c=a.lastLine,u=a.perLine,d=a.perChar;if(r.lineWrapping){var h=s+Math.round(Math.max(0,Math.min(1,(i-o)/this.height))*this.length),f=r.doc.lineAt(h),p=u+f.length*d,m=Math.max(o,i-p/2);return new qm(f.from,f.length,m,p,_o.Text)}var g=Math.max(0,Math.min(c-l,Math.floor((i-o)/u))),v=r.doc.line(l+g);return new qm(v.from,v.length,o+u*g,u,_o.Text)}},{key:"lineAt",value:function(i,r,o,s,a){if(r==Wo.ByHeight)return this.blockAt(i,o,s,a);if(r==Wo.ByPosNoHeight){var l=o.doc.lineAt(i),c=l.from;return new qm(c,l.to-c,0,0,_o.Text)}var d=this.heightMetrics(o,a),h=d.firstLine,f=d.perLine,p=d.perChar,m=o.doc.lineAt(i),g=f+m.length*p,v=m.number-h;return new qm(m.from,m.length,Math.max(s,Math.min(s+f*v+p*(m.from-a-v),s+this.height-g)),g,_o.Text)}},{key:"forEachLine",value:function(i,r,o,s,a,l){i=Math.max(i,a),r=Math.min(r,a+this.length);for(var c=this.heightMetrics(o,a),u=c.firstLine,d=c.perLine,h=c.perChar,f=i,p=s;f<=r;){var m=o.doc.lineAt(f);if(f==i){var g=m.number-u;p+=d*g+h*(i-a-g)}var v=d+h*m.length;l(new qm(m.from,m.length,p,v,_o.Text)),p+=v,f=m.to+1}}},{key:"replace",value:function(i,r,o){var s=this.length-r;if(s>0){var a=o[o.length-1];a instanceof e?o[o.length-1]=new e(a.length+s):o.push(null,new e(s-1))}if(i>0){var l=o[0];l instanceof e?o[0]=new e(i+l.length):o.unshift(new e(i-1),null)}return sd.of(o)}},{key:"decomposeLeft",value:function(i,r){r.push(new e(i-1),null)}},{key:"decomposeRight",value:function(i,r){r.push(null,new e(this.length-i-1))}},{key:"updateHeight",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0,a=r+this.length;if(s&&s.from<=r+this.length&&s.more){var l=[],c=Math.max(r,s.from),u=-1;for(s.from>r&&l.push(new e(s.from-r-1).updateHeight(i,r));c<=a&&s.more;){var d=i.doc.lineAt(c).length;l.length&&l.push(null);var h=s.heights[s.index++];-1==u?u=h:Math.abs(h-u)>=.001&&(u=-2);var f=new fh(d,h);f.outdated=!1,l.push(f),c+=d+1}c<=a&&l.push(null,new e(a-c).updateHeight(i,c));var p=sd.of(l);return(u<0||Math.abs(p.height-this.height)>=.001||Math.abs(u-this.heightMetrics(i,r).perLine)>=.001)&&(i.heightChanged=!0),p}return(o||this.outdated)&&(this.setHeight(i,i.heightForGap(r,r+this.length)),this.outdated=!1),this}},{key:"toString",value:function(){return"gap(".concat(this.length,")")}}]),e}(),sQe=function(t){wt(e,sd);var n=Ct(e);function e(i,r,o){var s;return ke(this,e),(s=n.call(this,i.length+r+o.length,i.height+o.height,r|(i.outdated||o.outdated?2:0))).left=i,s.right=o,s.size=i.size+o.size,s}return Se(e,[{key:"break",get:function(){return 1&this.flags}},{key:"blockAt",value:function(i,r,o,s){var a=o+this.left.height;return ic))return d;var h=r==Wo.ByPosNoHeight?Wo.ByPosNoHeight:Wo.ByPos;return u?d.join(this.right.lineAt(c,h,o,l,c)):this.left.lineAt(c,h,o,s,a).join(d)}},{key:"forEachLine",value:function(i,r,o,s,a,l){var c=s+this.left.height,u=a+this.left.length+this.break;if(this.break)i=u&&this.right.forEachLine(i,r,o,c,u,l);else{var d=this.lineAt(u,Wo.ByPos,o,s,a);i=i&&d.from<=r&&l(d),r>d.to&&this.right.forEachLine(d.to+1,r,o,c,u,l)}}},{key:"replace",value:function(i,r,o){var s=this.left.length+this.break;if(rthis.left.length)return this.balanced(this.left,this.right.replace(i-s,r-s,o));var a=[];i>0&&this.decomposeLeft(i,a);var l,c=a.length,u=Re(o);try{for(u.s();!(l=u.n()).done;)a.push(l.value)}catch(f){u.e(f)}finally{u.f()}if(i>0&&sde(a,c-1),r=++o&&r.push(null),i>o&&this.right.decomposeLeft(i-o,r)}},{key:"decomposeRight",value:function(i,r){var o=this.left.length,s=o+this.break;if(i>=s)return this.right.decomposeRight(i-s,r);i2*r.size||r.size>2*i.size?sd.of(this.break?[i,null,r]:[i,r]):(this.left=i,this.right=r,this.height=i.height+r.height,this.outdated=i.outdated||r.outdated,this.size=i.size+r.size,this.length=i.length+this.break+r.length,this)}},{key:"updateHeight",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0,a=this.left,l=this.right,c=r+a.length+this.break,u=null;return s&&s.from<=r+a.length&&s.more?u=a=a.updateHeight(i,r,o,s):a.updateHeight(i,r,o),s&&s.from<=c+l.length&&s.more?u=l=l.updateHeight(i,c,o,s):l.updateHeight(i,c,o),u?this.balanced(a,l):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}},{key:"toString",value:function(){return this.left+(this.break?" ":"-")+this.right}}]),e}();function sde(t,n){var e,i;null==t[n]&&(e=t[n-1])instanceof N0&&(i=t[n+1])instanceof N0&&t.splice(n-1,3,new N0(e.length+1+i.length))}var aQe=function(){function t(n,e){ke(this,t),this.pos=n,this.oracle=e,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=n}return Se(t,[{key:"isCovered",get:function(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}},{key:"span",value:function(n,e){if(this.lineStart>-1){var i=Math.min(e,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof fh?r.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new fh(i-this.pos,-1)),this.writtenTo=i,e>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=e}},{key:"point",value:function(n,e,i){if(n=5)&&this.addLineDeco(r,o)}else e>n&&this.span(n,e);this.lineEnd>-1&&this.lineEnd-1)){var n=this.oracle.doc.lineAt(this.pos),e=n.from,i=n.to;this.lineStart=e,this.lineEnd=i,this.writtenToe&&this.nodes.push(new fh(this.pos-e,-1)),this.writtenTo=this.pos}}},{key:"blankContent",value:function(n,e){var i=new N0(e-n);return this.oracle.doc.lineAt(n).to==e&&(i.flags|=4),i}},{key:"ensureLine",value:function(){this.enterLine();var n=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(n instanceof fh)return n;var e=new fh(0,-1);return this.nodes.push(e),e}},{key:"addBlock",value:function(n){this.enterLine(),n.type!=_o.WidgetAfter||this.isCovered||this.ensureLine(),this.nodes.push(n),this.writtenTo=this.pos=this.pos+n.length,n.type!=_o.WidgetBefore&&(this.covering=n)}},{key:"addLineDeco",value:function(n,e){var i=this.ensureLine();i.length+=e,i.collapsed+=e,i.widgetHeight=Math.max(i.widgetHeight,n),this.writtenTo=this.pos=this.pos+e}},{key:"finish",value:function(n){var e=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||e instanceof fh||this.isCovered?(this.writtenTou.clientHeight||u.scrollWidth>u.clientWidth)&&"visible"!=d.overflow){var h=u.getBoundingClientRect();o=Math.max(o,h.left),s=Math.min(s,h.right),a=Math.max(a,h.top),l=c==t.parentNode?h.bottom:Math.min(l,h.bottom)}c="absolute"==d.position||"fixed"==d.position?u.offsetParent:u.parentNode}else{if(11!=c.nodeType)break;c=c.host}return{left:o-e.left,right:Math.max(o,s)-e.left,top:a-(e.top+n),bottom:Math.max(a,l)-(e.top+n)}}function dQe(t,n){var e=t.getBoundingClientRect();return{left:0,right:e.right-e.left,top:n,bottom:e.bottom-(e.top+n)}}var vj=function(){function t(n,e,i){ke(this,t),this.from=n,this.to=e,this.size=i}return Se(t,[{key:"draw",value:function(n){return yi.replace({widget:new hQe(this.size,n)}).range(this.from,this.to)}}],[{key:"same",value:function(n,e){if(n.length!=e.length)return!1;for(var i=0;i=d.from&&a<=d.to})){var l=n.lineBlockAt(a);e.push(new kS(l.from,l.to))}},o=0;o<=1;o++)r(o);this.viewports=e.sort(function(s,a){return s.from-a.from}),this.scaler=this.heightMap.height<=7e6?lde:new pQe(this.heightOracle,this.heightMap,this.viewports)}},{key:"updateViewportLines",value:function(){var n=this;this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,function(e){n.viewportLines.push(1==n.scaler.scale?e:m_(e,n.scaler))})}},{key:"update",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.state=n.state;var i=this.stateDeco;this.stateDeco=this.state.facet(f_).filter(function(c){return"function"!=typeof c});var o=M0.extendWithRanges(n.changedRanges,function lQe(t,n,e){var i=new cQe;return Go.compare(t,n,e,i,0),i.changes}(i,this.stateDeco,n?n.changes:rd.empty(this.state.doc.length))),s=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(this.stateDeco,n.startState.doc,this.heightOracle.setDoc(this.state.doc),o),this.heightMap.height!=s&&(n.flags|=2);var a=o.length?this.mapViewport(this.viewport,n.changes):this.viewport;(e&&(e.range.heada.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,e));var l=!n.changes.empty||2&n.flags||a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,this.updateForViewport(),l&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,n.changes))),n.flags|=this.computeVisibleRanges(),e&&(this.scrollTarget=e),!this.mustEnforceCursorAssoc&&n.selectionSet&&n.view.lineWrapping&&n.state.selection.main.empty&&n.state.selection.main.assoc&&!n.state.facet(pue)&&(this.mustEnforceCursorAssoc=!0)}},{key:"measure",value:function(n){var e=n.contentDOM,i=window.getComputedStyle(e),r=this.heightOracle,o=i.whiteSpace;this.defaultTextDirection="rtl"==i.direction?us.RTL:us.LTR;var s=this.heightOracle.mustRefreshForWrapping(o),a=e.getBoundingClientRect(),l=s||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;var c=0,u=0,d=parseInt(i.paddingTop)||0,h=parseInt(i.paddingBottom)||0;this.paddingTop==d&&this.paddingBottom==h||(this.paddingTop=d,this.paddingBottom=h,c|=10),this.editorWidth!=n.scrollDOM.clientWidth&&(r.lineWrapping&&(l=!0),this.editorWidth=n.scrollDOM.clientWidth,c|=8);var f=(this.printing?dQe:uQe)(e,this.paddingTop),p=f.top-this.pixelViewport.top,m=f.bottom-this.pixelViewport.bottom;this.pixelViewport=f;var g=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(g!=this.inView&&(this.inView=g,g&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;var v=a.width;if(this.contentDOMWidth==v&&this.editorHeight==n.scrollDOM.clientHeight||(this.contentDOMWidth=a.width,this.editorHeight=n.scrollDOM.clientHeight,c|=8),l){var y=n.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(y)&&(s=!0),s||r.lineWrapping&&Math.abs(v-this.contentDOMWidth)>r.charWidth){var _=n.docView.measureTextSize(),C=_.lineHeight,S=_.charWidth;(s=C>0&&r.refresh(o,C,S,v/S,y))&&(n.docView.minWidth=0,c|=8)}p>0&&m>0?u=Math.max(p,m):p<0&&m<0&&(u=Math.min(p,m)),r.heightChanged=!1;var M,$=Re(this.viewports);try{for($.s();!(M=$.n()).done;){var G=M.value,R=G.from==this.viewport.from?y:n.docView.measureVisibleLineHeights(G);this.heightMap=(s?sd.empty().applyChanges(this.stateDeco,fo.empty,this.heightOracle,[new M0(0,0,0,n.state.doc.length)]):this.heightMap).updateHeight(r,0,s,new oQe(G.from,R))}}catch(U){$.e(U)}finally{$.f()}r.heightChanged&&(c|=2)}var z=!this.viewportIsAppropriate(this.viewport,u)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return z&&(this.viewport=this.getViewport(u,this.scrollTarget)),this.updateForViewport(),(2&c||z)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,n)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,n.docView.enforceCursorAssoc()),c}},{key:"visibleTop",get:function(){return this.scaler.fromDOM(this.pixelViewport.top)}},{key:"visibleBottom",get:function(){return this.scaler.fromDOM(this.pixelViewport.bottom)}},{key:"getViewport",value:function(n,e){var i=.5-Math.max(-.5,Math.min(.5,n/1e3/2)),r=this.heightMap,o=this.heightOracle,a=this.visibleBottom,l=new kS(r.lineAt(this.visibleTop-1e3*i,Wo.ByHeight,o,0,0).from,r.lineAt(a+1e3*(1-i),Wo.ByHeight,o,0,0).to);if(e){var c=e.range.head;if(cl.to){var u,d=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),h=r.lineAt(c,Wo.ByPos,o,0,0);l=new kS(r.lineAt((u="center"==e.y?(h.top+h.bottom)/2-d/2:"start"==e.y||"nearest"==e.y&&c1&&void 0!==arguments[1]?arguments[1]:0;if(!this.inView)return!0;var s=this.heightMap.lineAt(e,Wo.ByPos,this.heightOracle,0,0).top,l=this.heightMap.lineAt(i,Wo.ByPos,this.heightOracle,0,0).bottom,c=this.visibleTop,u=this.visibleBottom;return(0==e||s<=c-Math.max(10,Math.min(-r,250)))&&(i==this.state.doc.length||l>=u+Math.max(10,Math.min(r,250)))&&s>c-2e3&&l>1,a=o<<1;if(this.defaultTextDirection!=us.LTR&&!r)return[];var l,c=[],u=function q(re,L,X,Z){if(!(L-rere&&F=X.from&&oe.to<=X.to&&Math.abs(oe.from-re)fe})});if(!Y){if(L=L})){var V=e.moveToLineBoundary(en.cursor(L),!1,!0).head;V>re&&(L=V)}Y=new vj(re,L,i.gapSize(X,re,L,Z))}c.push(Y)}},d=Re(this.viewportLines);try{for(d.s();!(l=d.n()).done;){var h=l.value;if(!(h.lengthh.from&&u(h.from,m,h,f),g=this.viewport.from&&n<=this.viewport.to&&this.viewportLines.find(function(e){return e.from<=n&&e.to>=n})||m_(this.heightMap.lineAt(n,Wo.ByPos,this.heightOracle,0,0),this.scaler)}},{key:"lineBlockAtHeight",value:function(n){return m_(this.heightMap.lineAt(this.scaler.fromDOM(n),Wo.ByHeight,this.heightOracle,0,0),this.scaler)}},{key:"elementAtHeight",value:function(n){return m_(this.heightMap.blockAt(this.scaler.fromDOM(n),this.heightOracle,0,0),this.scaler)}},{key:"docHeight",get:function(){return this.scaler.toDOM(this.heightMap.height)}},{key:"contentHeight",get:function(){return this.docHeight+this.paddingTop+this.paddingBottom}}]),t}(),kS=Se(function t(n,e){ke(this,t),this.from=n,this.to=e});function fQe(t,n,e){var i=[],r=t,o=0;return Go.spans(e,t,n,{span:function(){},point:function(s,a){s>r&&(i.push({from:r,to:s}),o+=s-r),r=a}},20),r=1)return i[i.length-1].to;for(var r=Math.floor(t.total*n),o=0;;o++){var s=i[o],a=s.from,l=s.to-a;if(r<=l)return a+r;r-=l}}function DS(t,n){var e,i=0,r=Re(t.ranges);try{for(r.s();!(e=r.n()).done;){var o=e.value,s=o.from,a=o.to;if(n<=a){i+=n-s;break}i+=a-s}}catch(l){r.e(l)}finally{r.f()}return i/t.total}var lde={toDOM:function(t){return t},fromDOM:function(t){return t},scale:1},pQe=function(){function t(n,e,i){ke(this,t);var r=0,o=0,s=0;this.viewports=i.map(function(u){var d=u.from,h=u.to,f=e.lineAt(d,Wo.ByPos,n,0,0).top,p=e.lineAt(h,Wo.ByPos,n,0,0).bottom;return r+=p-f,{from:d,to:h,top:f,bottom:p,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(e.height-r);var a,l=Re(this.viewports);try{for(l.s();!(a=l.n()).done;){var c=a.value;c.domTop=s+(c.top-o)*this.scale,s=c.domBottom=c.domTop+(c.bottom-c.top),o=c.bottom}}catch(u){l.e(u)}finally{l.f()}}return Se(t,[{key:"toDOM",value:function(n){for(var e=0,i=0,r=0;;e++){var o=e-1}}),bj=pp.newName(),cde=pp.newName(),ude=pp.newName(),dde={"&light":"."+cde,"&dark":"."+ude};function _j(t,n,e){return new pp(n,{finish:function(i){return/&/.test(i)?i.replace(/&\w*/,function(r){if("&"==r)return t;if(!e||!e[r])throw new RangeError("Unsupported selector: ".concat(r));return e[r]}):t+" "+i}})}var mQe=_j("."+bj,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",left:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},dde),gQe=Se(function t(n,e,i,r){ke(this,t),this.typeOver=r,this.bounds=null,this.text="";var o=n.docView,s=o.impreciseHead,a=o.impreciseAnchor;if(n.state.readOnly&&e>-1)this.newSel=null;else if(e>-1&&(this.bounds=n.docView.domBoundsAround(e,i,0))){var l=s||a?[]:function(f){var p=[];if(f.root.activeElement!=f.contentDOM)return p;var m=f.observer.selectionRange,g=m.anchorNode,v=m.anchorOffset,y=m.focusNode,_=m.focusOffset;return g&&(p.push(new Mue(g,v)),y==g&&_==v||p.push(new Mue(y,_))),p}(n),c=new Eue(l,n.state);c.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=c.text,this.newSel=function(f,p){if(0==f.length)return null;var m=f[0].pos,g=2==f.length?f[1].pos:m;return m>-1&&g>-1?en.single(m+p,g+p):null}(l,this.bounds.from)}else{var u=n.observer.selectionRange,d=s&&s.node==u.focusNode&&s.offset==u.focusOffset||!D0(n.contentDOM,u.focusNode)?n.state.selection.main.head:n.docView.posFromDOM(u.focusNode,u.focusOffset),h=a&&a.node==u.anchorNode&&a.offset==u.anchorOffset||!D0(n.contentDOM,u.anchorNode)?n.state.selection.main.anchor:n.docView.posFromDOM(u.anchorNode,u.anchorOffset);this.newSel=en.single(h,d)}});function hde(t,n){var e,i=n.newSel,r=t.state.selection.main;if(n.bounds){var o=n.bounds,s=o.from,a=o.to,l=r.from,c=null;(8===t.inputState.lastKeyCode&&t.inputState.lastKeyTime>Date.now()-100||Zn.android&&n.text.length0&&Z>0&&R.charCodeAt(X-1)==z.charCodeAt(Z-1);)X--,Z--;return"end"==q&&(U-=X+Math.max(0,L-Math.min(X,Z))-L),X=X?L-U:0)+(Z-X),X=L):Z=Z?L-U:0)+(X-Z),Z=L),{from:L,toA:X,toB:Z}}(t.state.doc.sliceString(s,a,"\uffff"),n.text,l-s,c);u&&(Zn.chrome&&13==t.inputState.lastKeyCode&&u.toB==u.from+2&&"\uffff\uffff"==n.text.slice(u.from,u.toB)&&u.toB--,e={from:s+u.from,to:s+u.toA,insert:fo.of(n.text.slice(u.from,u.toB).split("\uffff"))})}else i&&(!t.hasFocus&&t.state.facet(wS)||i.main.eq(r))&&(i=null);if(!e&&!i)return!1;if(!e&&n.typeOver&&!r.empty&&i&&i.main.empty?e={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,r.to)}:e&&e.from>=r.from&&e.to<=r.to&&(e.from!=r.from||e.to!=r.to)&&r.to-r.from-(e.to-e.from)<=4?e={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,e.from).append(e.insert).append(t.state.doc.slice(e.to,r.to))}:(Zn.mac||Zn.android)&&e&&e.from==e.to&&e.from==r.head-1&&/^\. ?$/.test(e.insert.toString())&&"off"==t.contentDOM.getAttribute("autocorrect")?(i&&2==e.insert.length&&(i=en.single(i.main.anchor-1,i.main.head-1)),e={from:r.from,to:r.to,insert:fo.of([" "])}):Zn.chrome&&e&&e.from==e.to&&e.from==r.head&&"\n "==e.insert.toString()&&t.lineWrapping&&(i&&(i=en.single(i.main.anchor-1,i.main.head-1)),e={from:r.from,to:r.to,insert:fo.of([" "])}),e){var d=t.state;if(Zn.ios&&t.inputState.flushIOSKey(t)||Zn.android&&(e.from==r.from&&e.to==r.to&&1==e.insert.length&&2==e.insert.lines&&A0(t.contentDOM,"Enter",13)||e.from==r.from-1&&e.to==r.to&&0==e.insert.length&&A0(t.contentDOM,"Backspace",8)||e.from==r.from&&e.to==r.to+1&&0==e.insert.length&&A0(t.contentDOM,"Delete",46)))return!0;var h,f=e.insert.toString();if(t.state.facet(due).some(function(R){return R(t,e.from,e.to,f)}))return!0;if(t.inputState.composing>=0&&t.inputState.composing++,e.from>=r.from&&e.to<=r.to&&e.to-e.from>=(r.to-r.from)/3&&(!i||i.main.empty&&i.main.from==e.from+e.insert.length)&&t.inputState.composing<0){var p=r.frome.to?d.sliceDoc(e.to,r.to):"";h=d.replaceSelection(t.state.toText(p+e.insert.sliceString(0,void 0,t.state.lineBreak)+m))}else{var g=d.changes(e),v=i&&!d.selection.main.eq(i.main)&&i.main.to<=g.newLength?i.main:void 0;if(d.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=r.to&&e.to>=r.to-10){var y=t.state.sliceDoc(e.from,e.to),_=Fue(t)||t.state.doc.lineAt(r.head),C=r.to-e.to,S=r.to-r.from;h=d.changeByRange(function(R){if(R.from==r.from&&R.to==r.to)return{changes:g,range:v||R.map(g)};var z=R.to-C,U=z-y.length;if(R.to-R.from!=S||t.state.sliceDoc(U,z)!=y||_&&R.to>=_.from&&R.from<=_.to)return{range:R};var q=d.changes({from:U,to:z,insert:e.insert}),re=R.to-r.to;return{changes:q,range:v?en.range(Math.max(0,v.anchor+re),Math.max(0,v.head+re)):R.map(q)}})}else h={changes:g,selection:v&&d.selection.replaceRange(v)}}var M="input.type";return t.composing&&(M+=".compose",t.inputState.compositionFirstChange&&(M+=".start",t.inputState.compositionFirstChange=!1)),t.dispatch(h,{scrollIntoView:!0,userEvent:M}),!0}if(i&&!i.main.eq(r)){var $=!1,G="select";return t.inputState.lastSelectionTime>Date.now()-50&&("select"==t.inputState.lastSelectionOrigin&&($=!0),G=t.inputState.lastSelectionOrigin),t.dispatch({selection:i,scrollIntoView:$,userEvent:G}),!0}return!1}var vQe={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},xj=Zn.ie&&Zn.ie_version<=11,yQe=function(){function t(n){var e=this;ke(this,t),this.view=n,this.active=!1,this.selectionRange=new FKe,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.resizeContent=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=n.contentDOM,this.observer=new MutationObserver(function(i){var r,o=Re(i);try{for(o.s();!(r=o.n()).done;)e.queue.push(r.value)}catch(a){o.e(a)}finally{o.f()}(Zn.ie&&Zn.ie_version<=11||Zn.ios&&n.composing)&&i.some(function(a){return"childList"==a.type&&a.removedNodes.length||"characterData"==a.type&&a.oldValue.length>a.target.nodeValue.length})?e.flushSoon():e.flush()}),xj&&(this.onCharData=function(i){e.queue.push({target:i.target,type:"characterData",oldValue:i.prevValue}),e.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver(function(){var i;(null===(i=e.view.docView)||void 0===i?void 0:i.lastUpdate)0&&i[i.length-1].intersectionRatio>0!=e.intersecting&&(e.intersecting=!e.intersecting,e.intersecting!=e.view.inView&&e.onScrollChanged(document.createEvent("Event")))},{}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(function(i){i.length>0&&i[i.length-1].intersectionRatio>0&&e.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}return Se(t,[{key:"onScrollChanged",value:function(n){this.view.inputState.runScrollHandlers(this.view,n),this.intersecting&&this.view.measure()}},{key:"onScroll",value:function(n){this.intersecting&&this.flush(!1),this.onScrollChanged(n)}},{key:"onResize",value:function(){var n=this;this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(function(){n.resizeTimeout=-1,n.view.requestMeasure()},50))}},{key:"onPrint",value:function(){var n=this;this.view.viewState.printing=!0,this.view.measure(),setTimeout(function(){n.view.viewState.printing=!1,n.view.requestMeasure()},500)}},{key:"updateGaps",value:function(n){if(this.gapIntersection&&(n.length!=this.gaps.length||this.gaps.some(function(o,s){return o!=n[s]}))){this.gapIntersection.disconnect();var e,i=Re(n);try{for(i.s();!(e=i.n()).done;)this.gapIntersection.observe(e.value)}catch(o){i.e(o)}finally{i.f()}this.gaps=n}}},{key:"onSelectionChange",value:function(n){var e=this.selectionChanged;if(this.readSelectionRange()&&!this.delayedAndroidKey){var i=this.view,r=this.selectionRange;if(i.state.facet(wS)?i.root.activeElement==this.dom:vS(i.dom,r)){var o=r.anchorNode&&i.docView.nearest(r.anchorNode);o&&o.ignoreEvent(n)?e||(this.selectionChanged=!1):(Zn.ie&&Zn.ie_version<=11||Zn.android&&Zn.chrome)&&!i.state.selection.main.empty&&r.focusNode&&yS(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}}}},{key:"readSelectionRange",value:function(){var n=this.view,e=Zn.safari&&11==n.root.nodeType&&function(r){for(var o=r.activeElement;o&&o.shadowRoot;)o=o.shadowRoot.activeElement;return o}(this.dom.ownerDocument)==this.dom&&function(r){var o=null;function s(f){f.preventDefault(),f.stopImmediatePropagation(),o=f.getTargetRanges()[0]}if(r.contentDOM.addEventListener("beforeinput",s,!0),r.dom.ownerDocument.execCommand("indent"),r.contentDOM.removeEventListener("beforeinput",s,!0),!o)return null;var a=o.startContainer,l=o.startOffset,c=o.endContainer,u=o.endOffset,d=r.docView.domAtPos(r.state.selection.main.anchor);if(yS(d.node,d.offset,c,u)){var h=[c,u,a,l];a=h[0],l=h[1],c=h[2],u=h[3]}return{anchorNode:a,anchorOffset:l,focusNode:c,focusOffset:u}}(this.view)||gS(n.root);if(!e||this.selectionRange.eq(e))return!1;var i=vS(this.dom,e);return i&&!this.selectionChanged&&n.inputState.lastFocusTime>Date.now()-200&&n.inputState.lastTouchTime=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}},{key:"processRecords",value:function(){var n,e=this.queue,i=Re(this.observer.takeRecords());try{for(i.s();!(n=i.n()).done;)e.push(n.value)}catch(h){i.e(h)}finally{i.f()}e.length&&(this.queue=[]);var o,s=-1,a=-1,l=!1,c=Re(e);try{for(c.s();!(o=c.n()).done;){var d=this.readMutation(o.value);d&&(d.typeOver&&(l=!0),-1==s?(s=d.from,a=d.to):(s=Math.min(d.from,s),a=Math.max(d.to,a)))}}catch(h){c.e(h)}finally{c.f()}return{from:s,to:a,typeOver:l}}},{key:"readChange",value:function(){var n=this.processRecords(),e=n.from,i=n.to,r=n.typeOver,o=this.selectionChanged&&vS(this.dom,this.selectionRange);return e<0&&!o?null:(e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1,new gQe(this.view,e,i,r))}},{key:"flush",value:function(){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&this.readSelectionRange();var e=this.readChange();if(!e)return!1;var i=this.view.state,r=hde(this.view,e);return this.view.state==i&&this.view.update([]),r}},{key:"readMutation",value:function(n){var e=this.view.docView.nearest(n.target);if(!e||e.ignoreMutation(n))return null;if(e.markDirty("attributes"==n.type),"attributes"==n.type&&(e.dirty|=4),"childList"==n.type){var i=fde(e,n.previousSibling||n.target.previousSibling,-1),r=fde(e,n.nextSibling||n.target.nextSibling,1);return{from:i?e.posAfter(i):e.posAtStart,to:r?e.posBefore(r):e.posAtEnd,typeOver:!1}}return"characterData"==n.type?{from:e.posAtStart,to:e.posAtEnd,typeOver:n.target.nodeValue==n.oldValue}:null}},{key:"setWindow",value:function(n){n!=this.win&&(this.removeWindowListeners(this.win),this.win=n,this.addWindowListeners(this.win))}},{key:"addWindowListeners",value:function(n){n.addEventListener("resize",this.onResize),n.addEventListener("beforeprint",this.onPrint),n.addEventListener("scroll",this.onScroll),n.document.addEventListener("selectionchange",this.onSelectionChange)}},{key:"removeWindowListeners",value:function(n){n.removeEventListener("scroll",this.onScroll),n.removeEventListener("resize",this.onResize),n.removeEventListener("beforeprint",this.onPrint),n.document.removeEventListener("selectionchange",this.onSelectionChange)}},{key:"destroy",value:function(){var n,e,i,r;this.stop(),null===(n=this.intersection)||void 0===n||n.disconnect(),null===(e=this.gapIntersection)||void 0===e||e.disconnect(),null===(i=this.resizeScroll)||void 0===i||i.disconnect(),null===(r=this.resizeContent)||void 0===r||r.disconnect();var o,s=Re(this.scrollTargets);try{for(s.s();!(o=s.n()).done;)o.value.removeEventListener("scroll",this.onScroll)}catch(a){s.e(a)}finally{s.f()}this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}]),t}();function fde(t,n,e){for(;n;){var i=ws.get(n);if(i&&i.parent==t)return i;var r=n.parentNode;n=r!=t.dom?r:e>0?n.nextSibling:n.previousSibling}return null}var Wn=function(){function t(){var n=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ke(this,t),this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: fixed; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),this._dispatch=e.dispatch||function(s){return n.update([s])},this.dispatch=this.dispatch.bind(this),this._root=e.root||function OKe(t){for(;t;){if(t&&(9==t.nodeType||11==t.nodeType&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}(e.parent)||document,this.viewState=new ade(e.state||Fo.create(e)),this.plugins=this.state.facet(h_).map(function(s){return new aj(s)});var i,r=Re(this.plugins);try{for(r.s();!(i=r.n()).done;)i.value.update(this)}catch(s){r.e(s)}finally{r.f()}this.observer=new yQe(this),this.inputState=new ZKe(this),this.inputState.ensureHandlers(this,this.plugins),this.docView=new Iue(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}return Se(t,[{key:"state",get:function(){return this.viewState.state}},{key:"viewport",get:function(){return this.viewState.viewport}},{key:"visibleRanges",get:function(){return this.viewState.visibleRanges}},{key:"inView",get:function(){return this.viewState.inView}},{key:"composing",get:function(){return this.inputState.composing>0}},{key:"compositionStarted",get:function(){return this.inputState.composing>=0}},{key:"root",get:function(){return this._root}},{key:"win",get:function(){return this.dom.ownerDocument.defaultView||window}},{key:"dispatch",value:function(){var n;this._dispatch(1==arguments.length&&(arguments.length<=0?void 0:arguments[0])instanceof Ql?arguments.length<=0?void 0:arguments[0]:(n=this.state).update.apply(n,arguments))}},{key:"update",value:function(n){var e=this;if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");var i,r,o=!1,s=!1,a=this.state,l=Re(n);try{for(l.s();!(r=l.n()).done;){var c=r.value;if(c.startState!=a)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");a=c.state}}catch(R){l.e(R)}finally{l.f()}if(this.destroyed)this.viewState.state=a;else{var u=this.hasFocus,d=0,h=null;n.some(function(R){return R.annotation(tde)})?(this.inputState.notifiedFocused=u,d=1):u!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=u,(h=nde(a,u))||(d=1));var f=this.observer.delayedAndroidKey,p=null;if(f?(this.observer.clearDelayedAndroidKey(),((p=this.observer.readChange())&&!this.state.doc.eq(a.doc)||!this.state.selection.eq(a.selection))&&(p=null)):this.observer.clear(),a.facet(Fo.phrases)!=this.state.facet(Fo.phrases))return this.setState(a);(i=_ue.create(this,a,n)).flags|=d;var m=this.viewState.scrollTarget;try{this.updateState=2;var g,v=Re(n);try{for(v.s();!(g=v.n()).done;){var y=g.value;if(m&&(m=m.map(y.changes)),y.scrollIntoView){var _=y.state.selection.main;m=new mue(_.empty?_:en.cursor(_.head,_.head>_.anchor?-1:1))}var C,S=Re(y.effects);try{for(S.s();!(C=S.n()).done;){var M=C.value;M.is(gue)&&(m=M.value)}}catch(R){S.e(R)}finally{S.f()}}}catch(R){v.e(R)}finally{v.f()}this.viewState.update(i,m),this.bidiCache=mde.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),o=this.docView.update(i),this.state.facet(p_)!=this.styleModules&&this.mountStyles(),s=this.updateAttrs(),this.showAnnouncements(n),this.docView.updateSelection(o,n.some(function(R){return R.isUserEvent("select.pointer")}))}finally{this.updateState=0}if(i.startState.facet(TS)!=i.state.facet(TS)&&(this.viewState.mustMeasureContent=!0),(o||s||m||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!i.empty){var $,G=Re(this.state.facet(sj));try{for(G.s();!($=G.n()).done;)(0,$.value)(i)}catch(R){G.e(R)}finally{G.f()}}(h||p)&&Promise.resolve().then(function(){h&&e.state==h.startState&&e.dispatch(h),p&&!hde(e,p)&&f.force&&A0(e.contentDOM,f.key,f.keyCode)})}}},{key:"setState",value:function(n){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)this.viewState.state=n;else{this.updateState=2;var e=this.hasFocus;try{var i,r=Re(this.plugins);try{for(r.s();!(i=r.n()).done;)i.value.destroy(this)}catch(a){r.e(a)}finally{r.f()}this.viewState=new ade(n),this.plugins=n.facet(h_).map(function(a){return new aj(a)}),this.pluginMap.clear();var o,s=Re(this.plugins);try{for(s.s();!(o=s.n()).done;)o.value.update(this)}catch(a){s.e(a)}finally{s.f()}this.docView=new Iue(this),this.inputState.ensureHandlers(this,this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}e&&this.focus(),this.requestMeasure()}}},{key:"updatePlugins",value:function(n){var e=n.startState.facet(h_),i=n.state.facet(h_);if(e!=i){var r,o=[],s=Re(i);try{for(s.s();!(r=s.n()).done;){var a=r.value,l=e.indexOf(a);if(l<0)o.push(new aj(a));else{var c=this.plugins[l];c.mustUpdate=n,o.push(c)}}}catch(g){s.e(g)}finally{s.f()}var u,d=Re(this.plugins);try{for(d.s();!(u=d.n()).done;){var h=u.value;h.mustUpdate!=n&&h.destroy(this)}}catch(g){d.e(g)}finally{d.f()}this.plugins=o,this.pluginMap.clear(),this.inputState.ensureHandlers(this,this.plugins)}else{var f,p=Re(this.plugins);try{for(p.s();!(f=p.n()).done;)f.value.mustUpdate=n}catch(g){p.e(g)}finally{p.f()}}for(var m=0;m0&&void 0!==arguments[0])||arguments[0];if(!this.destroyed){this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.measureScheduled=0,e&&this.observer.forceFlush();var i=null,r=this.scrollDOM,o=r.scrollHeight,s=r.scrollTop,l=s>o-r.clientHeight-4?o:s;try{for(var c=0;;c++){this.updateState=1;var u=this.viewport,d=this.viewState.lineBlockAtHeight(l),h=this.viewState.measure(this);if(!h&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(c>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}var f=[];if(!(4&h)){var p=[f,this.measureRequests];this.measureRequests=p[0],f=p[1]}var m=f.map(function(R){try{return R.read(n)}catch(z){return Ec(n.state,z),pde}}),g=_ue.create(this,this.state,[]),v=!1,y=!1;g.flags|=h,i?i.flags|=h:i=g,this.updateState=2,g.empty||(this.updatePlugins(g),this.inputState.update(g),this.updateAttrs(),v=this.docView.update(g));for(var _=0;_1||S<-1)&&(this.scrollDOM.scrollTop+=S,y=!0)}if(v&&this.docView.updateSelection(!0),this.viewport.from==u.from&&this.viewport.to==u.to&&!y&&0==this.measureRequests.length)break}}finally{this.updateState=0,this.measureScheduled=-1}if(i&&!i.empty){var M,$=Re(this.state.facet(sj));try{for($.s();!(M=$.n()).done;)(0,M.value)(i)}catch(R){$.e(R)}finally{$.f()}}}}},{key:"themeClasses",get:function(){return bj+" "+(this.state.facet(yj)?ude:cde)+" "+this.state.facet(TS)}},{key:"updateAttrs",value:function(){var n=this,e=gde(this,vue,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),i={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(wS)?"true":"false",class:"cm-content",style:"".concat(Zn.tabSize,": ").concat(this.state.tabSize),role:"textbox","aria-multiline":"true"};this.state.readOnly&&(i["aria-readonly"]="true"),gde(this,lj,i);var r=this.observer.ignore(function(){var o=nj(n.contentDOM,n.contentAttrs,i),s=nj(n.dom,n.editorAttrs,e);return o||s});return this.editorAttrs=e,this.contentAttrs=i,r}},{key:"showAnnouncements",value:function(n){var e,i=!0,r=Re(n);try{for(r.s();!(e=r.n()).done;){var o,s=Re(e.value.effects);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.is(t.announce)&&(i&&(this.announceDOM.textContent=""),i=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=a.value)}}catch(l){s.e(l)}finally{s.f()}}}catch(l){r.e(l)}finally{r.f()}}},{key:"mountStyles",value:function(){this.styleModules=this.state.facet(p_),pp.mount(this.root,this.styleModules.concat(mQe).reverse())}},{key:"readMeasured",value:function(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}},{key:"requestMeasure",value:function(n){var e=this;if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(function(){return e.measure()})),n){if(this.measureRequests.indexOf(n)>-1)return;if(null!=n.key)for(var i=0;ir.from?n.head-1:n.head):null;if(o){var s=t.dom.getBoundingClientRect(),a=t.textDirectionAt(r.from),l=t.posAtCoords({x:e==(a==us.LTR)?s.right-1:s.left+1,y:(o.top+o.bottom)/2});if(null!=l)return en.cursor(l,e?-1:1)}var c=od.find(t.docView,n.head);return en.cursor(c?e?c.posAtEnd:c.posAtStart:e?r.to:r.from,e?-1:1)}(this,n,e,!(arguments.length>2&&void 0!==arguments[2])||arguments[2])}},{key:"moveVertically",value:function(n,e,i){return pj(this,n,function(r,o,s,a){var l=o.head,c=s?1:-1;if(l==(s?r.state.doc.length:0))return en.cursor(l,o.assoc);var u,d=o.goalColumn,h=r.contentDOM.getBoundingClientRect(),f=r.coordsAtPos(l),p=r.documentTop;if(f)null==d&&(d=f.left-h.left),u=c<0?f.top:f.bottom;else{var m=r.viewState.lineBlockAt(l);null==d&&(d=Math.min(h.right-h.left,r.defaultCharacterWidth*(l-m.from))),u=(c<0?m.top:m.bottom)+p}for(var g=h.left+d,v=a??r.defaultLineHeight>>1,y=0;;y+=10){var _=u+(v+y)*c,C=Rue(r,{x:g,y:_},!1,c);if(_h.bottom||(c<0?Cl))return en.cursor(C,o.assoc,void 0,d)}}(this,n,e,i))}},{key:"domAtPos",value:function(n){return this.docView.domAtPos(n)}},{key:"posAtDOM",value:function(n){return this.docView.posFromDOM(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)}},{key:"posAtCoords",value:function(n){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.readMeasured(),Rue(this,n,e)}},{key:"coordsAtPos",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.readMeasured();var i=this.docView.coordsAt(n,e);if(!i||i.left==i.right)return i;var r=this.state.doc.lineAt(n),o=this.bidiSpans(r);return U4(i,o[I0.find(o,n-r.from,-1,e)].dir==us.LTR==e>0)}},{key:"defaultCharacterWidth",get:function(){return this.viewState.heightOracle.charWidth}},{key:"defaultLineHeight",get:function(){return this.viewState.heightOracle.lineHeight}},{key:"textDirection",get:function(){return this.viewState.defaultTextDirection}},{key:"textDirectionAt",value:function(n){return!this.state.facet(fue)||nthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(n))}},{key:"lineWrapping",get:function(){return this.viewState.heightOracle.lineWrapping}},{key:"bidiSpans",value:function(n){if(n.length>bQe)return Due(n.length);var e,i=this.textDirectionAt(n.from),r=Re(this.bidiCache);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(o.from==n.from&&o.dir==i)return o.order}}catch(a){r.e(a)}finally{r.f()}var s=function(a,l){var c=a.length,u=l==cj?1:2,d=l==cj?2:1;if(!a||1==u&&!VKe.test(a))return Due(c);for(var h=0,f=u,p=u;h=0;re-=3)if(hh[re+1]==-G){var L=hh[re+2],X=2&L?u:4&L?1&L?d:u:0;X&&(ds[z]=ds[hh[re]]=X),U=re;break}}else{if(189==hh.length)break;hh[U++]=z,hh[U++]=$,hh[U++]=q}else if(2==(R=ds[z])||1==R){var Z=R==u;q=Z?0:1;for(var H=U-3;H>=0;H-=3){var he=hh[H+2];if(2&he)break;if(Z)hh[H+2]|=2;else{if(4&he)break;hh[H+2]|=4}}}for(var E=0;ENe;){for(var ze=tt,ot=2!=ds[--tt];tt>Ne&&ot==(2!=ds[tt-1]);)tt--;oe.push(new I0(tt,ze,ot?2:1))}else oe.push(new I0(Ne,fe,0))}else for(var B=0;BDate.now()-3e4)&&this.root.activeElement==this.contentDOM}},{key:"focus",value:function(){var n=this;this.observer.ignore(function(){Hce(n.contentDOM),n.docView.updateSelection()})}},{key:"setRoot",value:function(n){this._root!=n&&(this._root=n,this.observer.setWindow((9==n.nodeType?n:n.ownerDocument).defaultView||window),this.mountStyles())}},{key:"destroy",value:function(){var n,e=Re(this.plugins);try{for(e.s();!(n=e.n()).done;)n.value.destroy(this)}catch(i){e.e(i)}finally{e.f()}this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}}],[{key:"scrollIntoView",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return gue.of(new mue("number"==typeof n?en.cursor(n):n,e.y,e.x,e.yMargin,e.xMargin))}},{key:"domEventHandlers",value:function(n){return ka.define(function(){return{}},{eventHandlers:n})}},{key:"theme",value:function(n,e){var i=pp.newName(),r=[TS.of(i),p_.of(_j(".".concat(i),n))];return e&&e.dark&&r.push(yj.of(!0)),r}},{key:"baseTheme",value:function(n){return k0.lowest(p_.of(_j("."+bj,n,dde)))}},{key:"findFromDOM",value:function(n){var e,i=n.querySelector(".cm-content");return(null===(e=(i&&ws.get(i)||ws.get(n))?.rootView)||void 0===e?void 0:e.view)||null}}]),t}();Wn.styleModule=p_,Wn.inputHandler=due,Wn.focusChangeEffect=hue,Wn.perLineTextDirection=fue,Wn.exceptionSink=uue,Wn.updateListener=sj,Wn.editable=wS,Wn.mouseSelectionStyle=cue,Wn.dragMovesSelection=lue,Wn.clickAddsSelectionRange=aue,Wn.decorations=f_,Wn.atomicRanges=yue,Wn.scrollMargins=bue,Wn.darkTheme=yj,Wn.contentAttributes=lj,Wn.editorAttributes=vue,Wn.lineWrapping=Wn.contentAttributes.of({class:"cm-lineWrapping"}),Wn.announce=hr.define();var bQe=4096,pde={},mde=function(){function t(n,e,i,r){ke(this,t),this.from=n,this.to=e,this.dir=i,this.order=r}return Se(t,null,[{key:"update",value:function(n,e){if(e.empty)return n;for(var i=[],r=n.length?n[n.length-1].dir:us.LTR,o=Math.max(0,n.length-10);o=0;r--){var o=i[r],s="function"==typeof o?o(t):o;s&&ej(s,e)}return e}var _Qe=Zn.mac?"mac":Zn.windows?"win":Zn.linux?"linux":"key";function ES(t,n,e){return n.altKey&&(t="Alt-"+t),n.ctrlKey&&(t="Ctrl-"+t),n.metaKey&&(t="Meta-"+t),!1!==e&&n.shiftKey&&(t="Shift-"+t),t}var wQe=k0.default(Wn.domEventHandlers({keydown:function(t,n){return bde(yde(n.state),t,n,"editor")}})),AS=Qn.define({enables:wQe}),vde=new WeakMap;function yde(t){var n=t.facet(AS),e=vde.get(n);return e||vde.set(n,e=function(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_Qe,s=Object.create(null),a=Object.create(null),l=function(M,$){var G=a[M];if(null==G)a[M]=$;else if(G!=$)throw new Error("Key binding "+M+" is used both as a regular binding and as a multi-stroke prefix")},c=function(M,$,G,R){for(var z,U,q=s[M]||(s[M]=Object.create(null)),re=$.split(/ (?!$)/).map(function(he){return function xQe(t,n){var e,i,r,o,s=t.split(/-(?!$)/),a=s[s.length-1];"Space"==a&&(a=" ");for(var l=0;l=t.viewport.to)return[];var i=Math.max(e.from,t.viewport.from),r=Math.min(e.to,t.viewport.to),o=t.textDirection==us.LTR,s=t.contentDOM,a=s.getBoundingClientRect(),l=_de(t),c=window.getComputedStyle(s.firstChild),u=a.left+parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)),d=a.right-parseInt(c.paddingRight),h=wde(t,i),f=wde(t,r),p=h.type==_o.Text?h:null,m=f.type==_o.Text?f:null;if(t.lineWrapping&&(p&&(p=xde(t,i,p)),m&&(m=xde(t,r,m))),p&&m&&p.from==m.from)return C(S(e.from,e.to,p));var g=p?S(e.from,null,p):M(h,!1),v=m?S(null,e.to,m):M(f,!0),y=[];return(p||h).to<(m||f).from-1?y.push(_(u,g.bottom,d,v.top)):g.bottomX&&he.from=N)break;Ne>E&&re(Math.max(fe,E),null==$&&fe<=X,Math.min(Ne,N),null==G&&Ne>=Z,oe.dir)}}catch(xe){V.e(xe)}finally{V.f()}if((E=Y.to+1)>=N)break}}}catch(xe){H.e(xe)}finally{H.f()}return 0==q.length&&re(X,null==$,Z,null==G,t.textDirection),{top:z,bottom:U,horizontal:q}}function M($,G){var R=a.top+(G?$.top:$.bottom);return{top:R,bottom:R,horizontal:[]}}}(n,e,i)}}]),t}();function _de(t){var n=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==us.LTR?n.left:n.right-t.scrollDOM.clientWidth)-t.scrollDOM.scrollLeft,top:n.top-t.scrollDOM.scrollTop}}function xde(t,n,e){var i=en.cursor(n);return{from:Math.max(e.from,t.moveToLineBoundary(i,!1,!0).from),to:Math.min(e.to,t.moveToLineBoundary(i,!0,!0).from),type:_o.Text}}function wde(t,n){var e=t.lineBlockAt(n);if(Array.isArray(e.type)){var i,r=Re(e.type);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.to>n||o.to==n&&(o.to==e.to||o.type==_o.Text))return o}}catch(s){r.e(s)}finally{r.f()}}return e}var kQe=function(){function t(n,e){ke(this,t),this.view=n,this.layer=e,this.drawn=[],this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=n.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),e.above&&this.dom.classList.add("cm-layer-above"),e.class&&this.dom.classList.add(e.class),this.dom.setAttribute("aria-hidden","true"),this.setOrder(n.state),n.requestMeasure(this.measureReq),e.mount&&e.mount(this.dom,n)}return Se(t,[{key:"update",value:function(n){n.startState.facet(MS)!=n.state.facet(MS)&&this.setOrder(n.state),(this.layer.update(n,this.dom)||n.geometryChanged)&&n.view.requestMeasure(this.measureReq)}},{key:"setOrder",value:function(n){for(var e=0,i=n.facet(MS);e0&&void 0!==arguments[0]?arguments[0]:{}),DQe,TQe,EQe,pue.of(!0)]}function Sde(t){return t.startState.facet(g_)!=t.state.facet(g_)}var DQe=Cde({above:!0,markers:function(t){var n,e=t.state,i=e.facet(g_),r=[],o=Re(e.selection.ranges);try{for(o.s();!(n=o.n()).done;){var s=n.value,a=s==e.selection.main;if(s.empty?!a||kde:i.drawRangeCursor){var l,c=a?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",u=s.empty?s:en.cursor(s.head,s.head>s.anchor?-1:1),d=Re(wj.forRange(t,c,u));try{for(d.s();!(l=d.n()).done;)r.push(l.value)}catch(f){d.e(f)}finally{d.f()}}}}catch(f){o.e(f)}finally{o.f()}return r},update:function(t,n){t.transactions.some(function(i){return i.selection})&&(n.style.animationName="cm-blink"==n.style.animationName?"cm-blink2":"cm-blink");var e=Sde(t);return e&&Dde(t.state,n),t.docChanged||t.selectionSet||e},mount:function(t,n){Dde(n.state,t)},class:"cm-cursorLayer"});function Dde(t,n){n.style.animationDuration=t.facet(g_).cursorBlinkRate+"ms"}var TQe=Cde({above:!1,markers:function(t){return t.state.selection.ranges.map(function(n){return n.empty?[]:wj.forRange(t,"cm-selectionBackground",n)}).reduce(function(n,e){return n.concat(e)})},update:function(t,n){return t.docChanged||t.selectionSet||t.viewportChanged||Sde(t)},class:"cm-selectionLayer"}),Tde={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};kde&&(Tde[".cm-line"].caretColor="transparent !important");var EQe=k0.highest(Wn.theme(Tde)),Ede=hr.define({map:function(t,n){return null==t?null:n.mapPos(t)}}),v_=Va.define({create:function(){return null},update:function(t,n){return null!=t&&(t=n.changes.mapPos(t)),n.effects.reduce(function(e,i){return i.is(Ede)?i.value:e},t)}}),AQe=ka.fromClass(function(){function t(n){ke(this,t),this.view=n,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}return Se(t,[{key:"update",value:function(n){var e,i=n.state.field(v_);null==i?null!=this.cursor&&(null===(e=this.cursor)||void 0===e||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(n.startState.field(v_)!=i||n.docChanged||n.geometryChanged)&&this.view.requestMeasure(this.measureReq))}},{key:"readPos",value:function(){var n=this.view.state.field(v_),e=null!=n&&this.view.coordsAtPos(n);if(!e)return null;var i=this.view.scrollDOM.getBoundingClientRect();return{left:e.left-i.left+this.view.scrollDOM.scrollLeft,top:e.top-i.top+this.view.scrollDOM.scrollTop,height:e.bottom-e.top}}},{key:"drawCursor",value:function(n){this.cursor&&(n?(this.cursor.style.left=n.left+"px",this.cursor.style.top=n.top+"px",this.cursor.style.height=n.height+"px"):this.cursor.style.left="-100000px")}},{key:"destroy",value:function(){this.cursor&&this.cursor.remove()}},{key:"setDropPos",value:function(n){this.view.state.field(v_)!=n&&this.view.dispatch({effects:Ede.of(n)})}}]),t}(),{eventHandlers:{dragover:function(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave:function(t){t.target!=this.view.contentDOM&&this.view.contentDOM.contains(t.relatedTarget)||this.setDropPos(null)},dragend:function(){this.setDropPos(null)},drop:function(){this.setDropPos(null)}}});function Ade(t,n,e,i,r){n.lastIndex=0;for(var o,s=t.iterRange(e,i),a=e;!s.next().done;a+=s.value.length)if(!s.lineBreak)for(;o=n.exec(s.value);)r(a+o.index,o)}var MQe=function(){function t(n){ke(this,t);var e=n.regexp,i=n.decoration,r=n.decorate,o=n.boundary,s=n.maxLength,a=void 0===s?1e3:s;if(!e.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=e,r)this.addMatch=function(l,c,u,d){return r(d,u,u+l[0].length,l,c)};else if("function"==typeof i)this.addMatch=function(l,c,u,d){var h=i(l,c,u);h&&d(u,u+l[0].length,h)};else{if(!i)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=function(l,c,u,d){return d(u,u+l[0].length,i)}}this.boundary=o,this.maxLength=a}return Se(t,[{key:"createDeco",value:function(n){var e,i=this,r=new Gm,o=r.add.bind(r),s=Re(function(u,d){var h=u.visibleRanges;if(1==h.length&&h[0].from==u.viewport.from&&h[0].to==u.viewport.to)return h;var f,p=[],m=Re(h);try{for(m.s();!(f=m.n()).done;){var g=f.value,v=g.from,y=g.to;v=Math.max(u.state.doc.lineAt(v).from,v-d),y=Math.min(u.state.doc.lineAt(y).to,y+d),p.length&&p[p.length-1].to>=v?p[p.length-1].to=y:p.push({from:v,to:y})}}catch(_){m.e(_)}finally{m.f()}return p}(n,this.maxLength));try{for(s.s();!(e=s.n()).done;){var a=e.value;Ade(n.state.doc,this.regexp,a.from,a.to,function(u,d){return i.addMatch(d,n,u,o)})}}catch(u){s.e(u)}finally{s.f()}return r.finish()}},{key:"updateDeco",value:function(n,e){var i=1e9,r=-1;return n.docChanged&&n.changes.iterChanges(function(o,s,a,l){l>n.view.viewport.from&&a1e3?this.createDeco(n.view):r>-1?this.updateRange(n.view,e.map(n.changes),i,r):e}},{key:"updateRange",value:function(n,e,i,r){var o,s=this,a=Re(n.visibleRanges);try{for(a.s();!(o=a.n()).done;){var l=o.value,c=Math.max(l.from,i),u=Math.min(l.to,r);u>c&&function(){var d=n.state.doc.lineAt(c),h=d.tod.from;c--)if(s.boundary.test(d.text[c-1-d.from])){f=c;break}for(;up},add:m})}()}}catch(d){a.e(d)}finally{a.f()}return e}}]),t}(),Cj=null!=/x/.unicode?"gu":"g",IQe=new RegExp("[\0-\b\n-\x1f\x7f-\x9f\xad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]",Cj),NQe={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},kj=null,IS=Qn.define({combine:function(t){var n=su(t,{render:null,specialChars:IQe,addSpecialChars:null});return(n.replaceTabs=!function(){var e;if(null==kj&&typeof document<"u"&&document.body){var i=document.body.style;kj=null!=(null!==(e=i.tabSize)&&void 0!==e?e:i.MozTabSize)}return kj||!1}())&&(n.specialChars=new RegExp("\t|"+n.specialChars.source,Cj)),n.addSpecialChars&&(n.specialChars=new RegExp(n.specialChars.source+"|"+n.addSpecialChars.source,Cj)),n}});function FQe(){return[IS.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Mde||(Mde=ka.fromClass(function(){function t(n){ke(this,t),this.view=n,this.decorations=yi.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(n.state.facet(IS)),this.decorations=this.decorator.createDeco(n)}return Se(t,[{key:"makeDecorator",value:function(n){var e=this;return new MQe({regexp:n.specialChars,decoration:function(i,r,o){var s=r.state.doc,a=Ba(i[0],0);if(9==a){var l=s.lineAt(o),c=r.state.tabSize,u=s_(l.text,c,o-l.from);return yi.replace({widget:new PQe((c-u%c)*e.view.defaultCharacterWidth)})}return e.decorationCache[a]||(e.decorationCache[a]=yi.replace({widget:new jQe(n,a)}))},boundary:n.replaceTabs?void 0:/[^]/})}},{key:"update",value:function(n){var e=n.state.facet(IS);n.startState.facet(IS)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(n.view)):this.decorations=this.decorator.updateDeco(n,this.decorations)}}]),t}(),{decorations:function(t){return t.decorations}}))]}var Mde=null,jQe=function(t){wt(e,gp);var n=Ct(e);function e(i,r){var o;return ke(this,e),(o=n.call(this)).options=i,o.code=r,o}return Se(e,[{key:"eq",value:function(i){return i.code==this.code}},{key:"toDOM",value:function(i){var l,r=(l=this.code)>=32?"\u2022":10==l?"\u2424":String.fromCharCode(9216+l),o=i.state.phrase("Control character")+" "+(NQe[this.code]||"0x"+this.code.toString(16)),s=this.options.render&&this.options.render(this.code,o,r);if(s)return s;var a=document.createElement("span");return a.textContent=r,a.title=o,a.setAttribute("aria-label",o),a.className="cm-specialChar",a}},{key:"ignoreEvent",value:function(){return!1}}]),e}(),PQe=function(t){wt(e,gp);var n=Ct(e);function e(i){var r;return ke(this,e),(r=n.call(this)).width=i,r}return Se(e,[{key:"eq",value:function(i){return i.width==this.width}},{key:"toDOM",value:function(){var i=document.createElement("span");return i.textContent="\t",i.className="cm-tab",i.style.width=this.width+"px",i}},{key:"ignoreEvent",value:function(){return!1}}]),e}(),LQe=yi.line({class:"cm-activeLine"}),RQe=ka.fromClass(function(){function t(n){ke(this,t),this.decorations=this.getDeco(n)}return Se(t,[{key:"update",value:function(n){(n.docChanged||n.selectionSet)&&(this.decorations=this.getDeco(n.view))}},{key:"getDeco",value:function(n){var e,i=-1,r=[],o=Re(n.state.selection.ranges);try{for(o.s();!(e=o.n()).done;){var a=n.lineBlockAt(e.value.head);a.from>i&&(r.push(LQe.range(a.from)),i=a.from)}}catch(l){o.e(l)}finally{o.f()}return yi.set(r)}}]),t}(),{decorations:function(t){return t.decorations}});function Ide(t,n){var s,a,l,e=t.posAtCoords({x:n.clientX,y:n.clientY},!1),i=t.state.doc.lineAt(e),r=e-i.from,o=r>2e3?-1:r==i.length?(a=n.clientX,(l=(s=t).coordsAtPos(s.viewport.from))?Math.round(Math.abs((l.left-a)/s.defaultCharacterWidth)):-1):s_(i.text,t.state.tabSize,e-i.from);return{line:i.number,col:o,off:r}}function BQe(t){var n=t?.eventFilter||function(e){return e.altKey&&0==e.button};return Wn.mouseSelectionStyle.of(function(e,i){return n(i)?function $Qe(t,n){var e=Ide(t,n),i=t.state.selection;return e?{update:function(r){if(r.docChanged){var o=r.changes.mapPos(r.startState.doc.line(e.line).from),s=r.state.doc.lineAt(o);e={line:s.number,col:e.col,off:Math.min(e.off,s.length)},i=i.map(r.changes)}},get:function(r,o,s){var a=Ide(t,r);if(!a)return i;var l=function(c,u,d){var h=Math.min(u.line,d.line),f=Math.max(u.line,d.line),p=[];if(u.off>2e3||d.off>2e3||u.col<0||d.col<0)for(var m=Math.min(u.off,d.off),g=Math.max(u.off,d.off),v=h;v<=f;v++){var y=c.doc.line(v);y.length<=g&&p.push(en.range(y.from+m,y.to+g))}else for(var _=Math.min(u.col,d.col),C=Math.max(u.col,d.col),S=h;S<=f;S++){var M=c.doc.line(S),$=V4(M.text,_,c.tabSize,!0);if($<0)p.push(en.cursor(M.to));else{var G=V4(M.text,C,c.tabSize);p.push(en.range(M.from+$,M.from+G))}}return p}(t.state,e,a);return l.length?en.create(s?l.concat(i.ranges):l):i}}:null}(e,i):null})}var VQe={Alt:[18,function(t){return t.altKey}],Control:[17,function(t){return t.ctrlKey}],Shift:[16,function(t){return t.shiftKey}],Meta:[91,function(t){return t.metaKey}]},HQe={style:"cursor: crosshair"};function zQe(){var n=Un(VQe[(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).key||"Alt"],2),e=n[0],i=n[1],r=ka.fromClass(function(){function o(s){ke(this,o),this.view=s,this.isDown=!1}return Se(o,[{key:"set",value:function(s){this.isDown!=s&&(this.isDown=s,this.view.update([]))}}]),o}(),{eventHandlers:{keydown:function(o){this.set(o.keyCode==e||i(o))},keyup:function(o){o.keyCode!=e&&i(o)||this.set(!1)},mousemove:function(o){this.set(i(o))}}});return[r,Wn.contentAttributes.of(function(o){var s;return null!==(s=o.plugin(r))&&void 0!==s&&s.isDown?HQe:null})]}var Nde=function(){function t(n,e,i){ke(this,t),this.facet=e,this.createTooltipView=i,this.input=n.state.facet(e),this.tooltips=this.input.filter(function(r){return r}),this.tooltipViews=this.tooltips.map(i)}return Se(t,[{key:"update",value:function(n){var e,i=n.state.facet(this.facet),r=i.filter(function(y){return y});if(i===this.input){var o,s=Re(this.tooltipViews);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.update&&a.update(n)}}catch(y){s.e(y)}finally{s.f()}return!1}for(var l=[],c=0;ce.lastTransaction-50&&r.length>0&&r[r.length-1].intersectionRatio<1&&e.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),n.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}return Se(t,[{key:"createContainer",value:function(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}},{key:"observeIntersection",value:function(){if(this.intersectionObserver){this.intersectionObserver.disconnect();var n,e=Re(this.manager.tooltipViews);try{for(e.s();!(n=e.n()).done;)this.intersectionObserver.observe(n.value.dom)}catch(r){e.e(r)}finally{e.f()}}}},{key:"measureSoon",value:function(){var n=this;this.measureTimeout<0&&(this.measureTimeout=setTimeout(function(){n.measureTimeout=-1,n.maybeMeasure()},50))}},{key:"update",value:function(n){n.transactions.length&&(this.lastTransaction=Date.now());var e=this.manager.update(n);e&&this.observeIntersection();var i=e||n.geometryChanged,r=n.state.facet(Sj);if(r.position!=this.position){this.position=r.position;var o,s=Re(this.manager.tooltipViews);try{for(s.s();!(o=s.n()).done;)o.value.dom.style.position=this.position}catch(u){s.e(u)}finally{s.f()}i=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();var a,l=Re(this.manager.tooltipViews);try{for(l.s();!(a=l.n()).done;)this.container.appendChild(a.value.dom)}catch(u){l.e(u)}finally{l.f()}i=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);i&&this.maybeMeasure()}},{key:"createTooltip",value:function(n){var e=n.create(this.view);if(e.dom.classList.add("cm-tooltip"),n.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){var i=document.createElement("div");i.className="cm-tooltip-arrow",e.dom.appendChild(i)}return e.dom.style.position=this.position,e.dom.style.top="-10000px",this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}},{key:"destroy",value:function(){var n,e;this.view.win.removeEventListener("resize",this.measureSoon);var i,r=Re(this.manager.tooltipViews);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.dom.remove(),null===(n=o.destroy)||void 0===n||n.call(o)}}catch(s){r.e(s)}finally{r.f()}null===(e=this.intersectionObserver)||void 0===e||e.disconnect(),clearTimeout(this.measureTimeout)}},{key:"readMeasure",value:function(){var n=this,e=this.view.dom.getBoundingClientRect();return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map(function(i,r){var o=n.manager.tooltipViews[r];return o.getCoords?o.getCoords(i.pos):n.view.coordsAtPos(i.pos)}),size:this.manager.tooltipViews.map(function(i){return i.dom.getBoundingClientRect()}),space:this.view.state.facet(Sj).tooltipSpace(this.view)}}},{key:"writeMeasure",value:function(n){for(var e,i=n.editor,r=n.space,o=[],s=0;s=Math.min(i.bottom,r.bottom)||u.rightMath.min(i.right,r.right)+.1)c.style.top="-10000px";else{var h=a.arrow?l.dom.querySelector(".cm-tooltip-arrow"):null,f=h?7:0,p=d.right-d.left,m=null!==(e=Fde.get(l))&&void 0!==e?e:d.bottom-d.top,g=l.offset||WQe,v=this.view.textDirection==us.LTR,y=d.width>r.right-r.left?v?r.left:r.right-d.width:v?Math.min(u.left-(h?14:0)+g.x,r.right-p):Math.max(r.left,u.left-p+(h?14:0)-g.x),_=!!a.above;!a.strictSide&&(_?u.top-(d.bottom-d.top)-g.yr.bottom)&&_==r.bottom-u.bottom>u.top-r.top&&(_=!_);var C=(_?u.top-r.top:r.bottom-u.bottom)-f;if(Cy&&R.topS&&(S=_?R.top-m-2-f:R.bottom+f+2)}}catch(z){G.e(z)}finally{G.f()}}"absolute"==this.position?(c.style.top=S-n.parent.top+"px",c.style.left=y-n.parent.left+"px"):(c.style.top=S+"px",c.style.left=y+"px"),h&&(h.style.left="".concat(u.left+(v?g.x:-g.x)-(y+14-7),"px")),!0!==l.overlap&&o.push({left:y,top:S,right:M,bottom:S+m}),c.classList.toggle("cm-tooltip-above",_),c.classList.toggle("cm-tooltip-below",!_),l.positioned&&l.positioned(n.space)}}}},{key:"maybeMeasure",value:function(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView))){var n,e=Re(this.manager.tooltipViews);try{for(e.s();!(n=e.n()).done;)n.value.dom.style.top="-10000px"}catch(i){e.e(i)}finally{e.f()}}}}]),t}(),{eventHandlers:{scroll:function(){this.maybeMeasure()}}}),GQe=Wn.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"".concat(7,"px"),width:"".concat(14,"px"),position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"".concat(7,"px solid transparent"),borderRight:"".concat(7,"px solid transparent")},".cm-tooltip-above &":{bottom:"-".concat(7,"px"),"&:before":{borderTop:"".concat(7,"px solid #bbb")},"&:after":{borderTop:"".concat(7,"px solid #f5f5f5"),bottom:"1px"}},".cm-tooltip-below &":{top:"-".concat(7,"px"),"&:before":{borderBottom:"".concat(7,"px solid #bbb")},"&:after":{borderBottom:"".concat(7,"px solid #f5f5f5"),top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),WQe={x:0,y:0},NS=Qn.define({enables:[Ode,GQe]}),FS=Qn.define(),qQe=function(){function t(n){var e=this;ke(this,t),this.view=n,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Nde(n,FS,function(i){return e.createHostedView(i)})}return Se(t,[{key:"createHostedView",value:function(n){var e=n.create(this.view);return e.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(e.dom),this.mounted&&e.mount&&e.mount(this.view),e}},{key:"mount",value:function(n){var e,i=Re(this.manager.tooltipViews);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.mount&&r.mount(n)}}catch(o){i.e(o)}finally{i.f()}this.mounted=!0}},{key:"positioned",value:function(n){var e,i=Re(this.manager.tooltipViews);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.positioned&&r.positioned(n)}}catch(o){i.e(o)}finally{i.f()}}},{key:"update",value:function(n){this.manager.update(n)}}],[{key:"create",value:function(n){return new t(n)}}]),t}(),XQe=NS.compute([FS],function(t){var n=t.facet(FS).filter(function(e){return e});return 0===n.length?null:{pos:Math.min.apply(Math,si(n.map(function(e){return e.pos}))),end:Math.max.apply(Math,si(n.filter(function(e){return null!=e.end}).map(function(e){return e.end}))),create:qQe.create,above:n[0].above,arrow:n.some(function(e){return e.arrow})}}),YQe=function(){function t(n,e,i,r,o){ke(this,t),this.view=n,this.source=e,this.field=i,this.setHover=r,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:n.dom,time:0},this.checkHover=this.checkHover.bind(this),n.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),n.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}return Se(t,[{key:"update",value:function(){var n=this;this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(function(){return n.startHover()},20))}},{key:"active",get:function(){return this.view.state.field(this.field)}},{key:"checkHover",value:function(){if(this.hoverTimeout=-1,!this.active){var n=Date.now()-this.lastMove.time;nr.bottom||e.xr.right+this.view.defaultCharacterWidth)){var o=this.view.bidiSpans(this.view.state.doc.lineAt(i)).find(function(c){return c.from<=i&&c.to>=i}),s=o&&o.dir==us.RTL?-1:1,a=this.source(this.view,i,e.x1&&void 0!==arguments[1]?arguments[1]:{},e=hr.define(),i=Va.define({create:function(){return null},update:function(r,o){if(r&&(n.hideOnChange&&(o.docChanged||o.selection)||n.hideOn&&n.hideOn(o,r)))return null;if(r&&o.docChanged){var s=o.changes.mapPos(r.pos,-1,Ll.TrackDel);if(null==s)return null;var a=Object.assign(Object.create(null),r);a.pos=s,null!=r.end&&(a.end=o.changes.mapPos(r.end)),r=a}var l,c=Re(o.effects);try{for(c.s();!(l=c.n()).done;){var u=l.value;u.is(e)&&(r=u.value),u.is(QQe)&&(r=null)}}catch(d){c.e(d)}finally{c.f()}return r},provide:function(r){return FS.from(r)}});return[i,ka.define(function(r){return new YQe(r,t,i,e,n.hoverTime||300)}),XQe]}var QQe=hr.define(),Pde=Qn.define({combine:function(t){var n,e,i,r=Re(t);try{for(r.s();!(i=r.n()).done;){var o=i.value;n=n||o.topContainer,e=e||o.bottomContainer}}catch(s){r.e(s)}finally{r.f()}return{topContainer:n,bottomContainer:e}}});function y_(t,n){var e=t.plugin(Lde),i=e?e.specs.indexOf(n):-1;return i>-1?e.panels[i]:null}var Lde=ka.fromClass(function(){function t(n){ke(this,t),this.input=n.state.facet(b_),this.specs=this.input.filter(function(s){return s}),this.panels=this.specs.map(function(s){return s(n)});var e=n.state.facet(Pde);this.top=new OS(n,!0,e.topContainer),this.bottom=new OS(n,!1,e.bottomContainer),this.top.sync(this.panels.filter(function(s){return s.top})),this.bottom.sync(this.panels.filter(function(s){return!s.top}));var i,r=Re(this.panels);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.dom.classList.add("cm-panel"),o.mount&&o.mount()}}catch(s){r.e(s)}finally{r.f()}}return Se(t,[{key:"update",value:function(n){var e=n.state.facet(Pde);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new OS(n.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new OS(n.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();var i=n.state.facet(b_);if(i!=this.input){var r,o=i.filter(function(C){return C}),s=[],a=[],l=[],c=[],u=Re(o);try{for(u.s();!(r=u.n()).done;){var d=r.value,h=this.specs.indexOf(d),f=void 0;h<0?(f=d(n.view),c.push(f)):(f=this.panels[h]).update&&f.update(n),s.push(f),(f.top?a:l).push(f)}}catch(C){u.e(C)}finally{u.f()}this.specs=o,this.panels=s,this.top.sync(a),this.bottom.sync(l);for(var p=0,m=c;pthis.i;){var e=n.elements.pop();n.dom.removeChild(e.dom),e.destroy()}}}]),t}(),zde=function(){function t(n,e){var i=this;ke(this,t),this.view=n,this.config=e,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");var r=function(s){i.dom.addEventListener(s,function(a){var l,c=a.target;if(c!=i.dom&&i.dom.contains(c)){for(;c.parentNode!=i.dom;)c=c.parentNode;var u=c.getBoundingClientRect();l=(u.top+u.bottom)/2}else l=a.clientY;var d=n.lineBlockAtHeight(l-n.documentTop);e.domEventHandlers[s](n,d,a)&&a.preventDefault()})};for(var o in e.domEventHandlers)r(o);this.markers=Vde(e.markers(n)),e.initialSpacer&&(this.spacer=new Ude(n,0,0,[e.initialSpacer(n)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}return Se(t,[{key:"update",value:function(n){var e=this.markers;if(this.markers=Vde(this.config.markers(n.view)),this.spacer&&this.config.updateSpacer){var i=this.config.updateSpacer(this.spacer.markers[0],n);i!=this.spacer.markers[0]&&this.spacer.update(n.view,0,0,[i])}var r=n.view.viewport;return!Go.eq(this.markers,e,r.from,r.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(n)}},{key:"destroy",value:function(){var n,e=Re(this.elements);try{for(e.s();!(n=e.n()).done;)n.value.destroy()}catch(i){e.e(i)}finally{e.f()}}}]),t}(),Ude=function(){function t(n,e,i,r){ke(this,t),this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(n,e,i,r)}return Se(t,[{key:"update",value:function(n,e,i,r){this.height!=e&&(this.dom.style.height=(this.height=e)+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),function(o,s){if(o.length!=s.length)return!1;for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:{}),Bde(),iZe]}function Gde(t){for(var n=9;ni&&(i=s,e.push(oZe.range(s)))}}catch(a){r.e(a)}finally{r.f()}return Go.of(e)}),aZe=0,Aj=Se(function t(n,e){ke(this,t),this.from=n,this.to=e}),gr=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ke(this,t),this.id=aZe++,this.perNode=!!n.perNode,this.deserialize=n.deserialize||function(){throw new Error("This node type doesn't define a deserialize function")}}return Se(t,[{key:"add",value:function(n){var e=this;if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof n&&(n=au.match(n)),function(i){var r=n(i);return void 0===r?null:[e,r]}}}]),t}();gr.closedBy=new gr({deserialize:function(t){return t.split(" ")}}),gr.openedBy=new gr({deserialize:function(t){return t.split(" ")}}),gr.group=new gr({deserialize:function(t){return t.split(" ")}}),gr.contextHash=new gr({perNode:!0}),gr.lookAhead=new gr({perNode:!0}),gr.mounted=new gr({perNode:!0});var lZe=Object.create(null),au=function(){function t(n,e,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;ke(this,t),this.name=n,this.props=e,this.id=i,this.flags=r}return Se(t,[{key:"prop",value:function(n){return this.props[n.id]}},{key:"isTop",get:function(){return(1&this.flags)>0}},{key:"isSkipped",get:function(){return(2&this.flags)>0}},{key:"isError",get:function(){return(4&this.flags)>0}},{key:"isAnonymous",get:function(){return(8&this.flags)>0}},{key:"is",value:function(n){if("string"==typeof n){if(this.name==n)return!0;var e=this.prop(gr.group);return!!e&&e.indexOf(n)>-1}return this.id==n}}],[{key:"define",value:function(n){var e=n.props&&n.props.length?Object.create(null):lZe,r=new t(n.name||"",e,n.id,(n.top?1:0)|(n.skipped?2:0)|(n.error?4:0)|(null==n.name?8:0));if(n.props){var o,s=Re(n.props);try{for(s.s();!(o=s.n()).done;){var a=o.value;if(Array.isArray(a)||(a=a(r)),a){if(a[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");e[a[0].id]=a[1]}}}catch(l){s.e(l)}finally{s.f()}}return r}},{key:"match",value:function(n){var e=Object.create(null);for(var i in n){var r,o=Re(i.split(" "));try{for(o.s();!(r=o.n()).done;)e[r.value]=n[i]}catch(a){o.e(a)}finally{o.f()}}return function(a){for(var l=a.prop(gr.group),c=-1;c<(l?l.length:0);c++){var u=e[c<0?a.name:l[c]];if(u)return u}}}}]),t}();au.none=new au("",Object.create(null),0,8);var za,cZe=function(){function t(n){ke(this,t),this.types=n;for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"cursorAt",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=PS.get(this)||this.topNode,r=new $S(i);return r.moveTo(n,e),PS.set(this,r._tree),r}},{key:"topNode",get:function(){return new w_(this,0,0,null)}},{key:"resolve",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=O0(PS.get(this)||this.topNode,n,e,!1);return PS.set(this,i),i}},{key:"resolveInner",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=O0(Wde.get(this)||this.topNode,n,e,!0);return Wde.set(this,i),i}},{key:"iterate",value:function(n){for(var e=n.enter,i=n.leave,r=n.from,o=void 0===r?0:r,s=n.to,a=void 0===s?this.length:s,l=this.cursor((n.mode||0)|za.IncludeAnonymous);;){var c=!1;if(l.from<=a&&l.to>=o&&(l.type.isAnonymous||!1!==e(l))){if(l.firstChild())continue;c=!0}for(;c&&i&&!l.type.isAnonymous&&i(l),!l.nextSibling();){if(!l.parent())return;c=!0}}}},{key:"prop",value:function(n){return n.perNode?this.props?this.props[n.id]:void 0:this.type.prop(n)}},{key:"propValues",get:function(){var n=[];if(this.props)for(var e in this.props)n.push([+e,this.props[e]]);return n}},{key:"balance",value:function(){var n=this;return this.children.length<=8?this:Nj(au.none,this.children,this.positions,0,this.children.length,0,this.length,function(i,r,o){return new t(n.type,i,r,o,n.propValues)},(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).makeTree||function(i,r,o){return new t(au.none,i,r,o)})}}],[{key:"build",value:function(n){return function hZe(t){var n,e=t.buffer,i=t.nodeSet,r=t.maxBufferLength,o=void 0===r?1024:r,s=t.reused,a=void 0===s?[]:s,l=t.minRepeatType,c=void 0===l?i.types.length:l,u=Array.isArray(e)?new uZe(e,e.length):e,d=i.types,h=0,f=0;function p(S,M,$,G,R){for(var z=u.id,U=u.start,q=u.end,re=u.size,L=f;re<0;){if(u.next(),-1==re)return $.push(a[z]),void G.push(U-S);if(-3==re)return void(h=z);if(-4==re)return void(f=z);throw new RangeError("Unrecognized record size: ".concat(re))}var Z,H,ot,he=d[z],E=U-S;if(q-U<=o&&(H=function(ot,B){var ne=u.fork(),ie=0,Ie=0,Ye=0,Le=ne.end-o,_t={size:0,start:0,skip:0};e:for(var At=ne.pos-ot;ne.pos>At;){var _n=ne.size;if(ne.id==B&&_n>=0)_t.size=ie,_t.start=Ie,_t.skip=Ye,Ye+=4,ie+=4,ne.next();else{var ci=ne.pos-_n;if(_n<0||ci=c?4:0,Ni=ne.start;for(ne.next();ne.pos>ci;){if(ne.size<0){if(-3!=ne.size)break e;on+=4}else ne.id>=c&&(on+=4);ne.next()}Ie=Ni,ie+=_n,Ye+=on}}return(B<0||ie==ot)&&(_t.size=ie,_t.start=Ie,_t.skip=Ye),_t.size>4?_t:void 0}(u.pos-M,R))){for(var N=new Uint16Array(H.size-H.skip),F=u.pos-H.size,Y=N.length;u.pos>F;)Y=v(H.start,N,Y);Z=new x_(N,q-H.start,i),E=H.start-S}else{var V=u.pos-re;u.next();for(var oe=[],fe=[],Ne=z>=c?z:-1,xe=0,tt=q;u.pos>V;)Ne>=0&&u.id==Ne&&u.size>=0?(u.end<=tt-o&&(m(oe,fe,U,xe,u.end,tt,Ne,L),xe=oe.length,tt=u.end),u.next()):p(U,V,oe,fe,Ne);if(Ne>=0&&xe>0&&xe-1&&xe>0){var ze=(ot=he,function(B,ne,ie){var Ie,Ye,Le=0,_t=B.length-1;if(_t>=0&&(Ie=B[_t])instanceof Ua){if(!_t&&Ie.type==ot&&Ie.length==ie)return Ie;(Ye=Ie.prop(gr.lookAhead))&&(Le=ne[_t]+Ie.length+Ye)}return g(ot,B,ne,ie,Le)});Z=Nj(he,oe,fe,0,oe.length,0,q-U,ze,ze)}else Z=g(he,oe,fe,q-U,L-q)}$.push(Z),G.push(E)}function m(S,M,$,G,R,z,U,q){for(var re=[],L=[];S.length>G;)re.push(S.pop()),L.push(M.pop()+$-R);S.push(g(i.types[U],re,L,z-R,q-z)),M.push(R-$)}function g(S,M,$,G){var R=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,z=arguments.length>5?arguments[5]:void 0;if(h){var U=[gr.contextHash,h];z=z?[U].concat(z):[U]}if(R>25){var q=[gr.lookAhead,R];z=z?[q].concat(z):[q]}return new Ua(S,M,$,G,z)}function v(S,M,$){var G=u.id,R=u.start,z=u.end,U=u.size;if(u.next(),U>=0&&G4)for(var re=u.pos-(U-4);u.pos>re;)$=v(S,M,$);M[--$]=q,M[--$]=z-S,M[--$]=R-S,M[--$]=G}else-3==U?h=G:-4==U&&(f=G);return $}for(var y=[],_=[];u.pos>0;)p(t.start||0,t.bufferStart||0,y,_,-1);var C=null!==(n=t.length)&&void 0!==n?n:y.length?_[0]+y[0].length:0;return new Ua(d[t.topID],y.reverse(),_.reverse(),C)}(n)}}]),t}();Ua.empty=new Ua(au.none,[],[],0);var uZe=function(){function t(n,e){ke(this,t),this.buffer=n,this.index=e}return Se(t,[{key:"id",get:function(){return this.buffer[this.index-4]}},{key:"start",get:function(){return this.buffer[this.index-3]}},{key:"end",get:function(){return this.buffer[this.index-2]}},{key:"size",get:function(){return this.buffer[this.index-1]}},{key:"pos",get:function(){return this.index}},{key:"next",value:function(){this.index-=4}},{key:"fork",value:function(){return new t(this.buffer,this.index)}}]),t}(),x_=function(){function t(n,e,i){ke(this,t),this.buffer=n,this.length=e,this.set=i}return Se(t,[{key:"type",get:function(){return au.none}},{key:"toString",value:function(){for(var n=[],e=0;e0));l=s[l+3]);return a}},{key:"slice",value:function(n,e,i,r){for(var o=this.buffer,s=new Uint16Array(e-n),a=n,l=0;a=n&&en;case 1:return e<=n&&i>n;case 2:return i>n;case 4:return!0}}function Xde(t,n){for(var e=t.childBefore(n);e;){var i=e.lastChild;if(!i||i.to!=e.to)break;i.type.isError&&i.from==i.to?(t=e,e=i.prevSibling):e=i}return t}function O0(t,n,e,i){for(var r;t.from==t.to||(e<1?t.from>=n:t.from>n)||(e>-1?t.to<=n:t.to4&&void 0!==arguments[4]?arguments[4]:0,s=this;;){for(var a=s._tree,l=a.children,c=a.positions,u=e>0?l.length:-1;n!=u;n+=e){var d=l[n],h=c[n]+s.from;if(qde(r,i,h,h+d.length))if(d instanceof x_){if(o&za.ExcludeBuffers)continue;var f=d.findChild(0,d.buffer.length,e,i-h,r);if(f>-1)return new Mj(new dZe(s,d,n,h),null,f)}else if(o&za.IncludeAnonymous||!d.type.isAnonymous||Ij(d)){var p=void 0;if(!(o&za.IgnoreMounts)&&d.props&&(p=d.prop(gr.mounted))&&!p.overlay)return new t(p.tree,h,n,s);var m=new t(d,h,n,s);return o&za.IncludeAnonymous||!m.type.isAnonymous?m:m.nextChild(e<0?d.children.length-1:0,e,i,r)}}if(o&za.IncludeAnonymous||!s.type.isAnonymous||(n=s.index>=0?s.index+e:e<0?-1:s._parent._tree.children.length,!(s=s._parent)))return null}}},{key:"firstChild",get:function(){return this.nextChild(0,1,0,4)}},{key:"lastChild",get:function(){return this.nextChild(this._tree.children.length-1,-1,0,4)}},{key:"childAfter",value:function(n){return this.nextChild(0,1,n,2)}},{key:"childBefore",value:function(n){return this.nextChild(this._tree.children.length-1,-1,n,-2)}},{key:"enter",value:function(n,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!(r&za.IgnoreOverlays)&&(i=this._tree.prop(gr.mounted))&&i.overlay){var o,s=n-this.from,a=Re(i.overlay);try{for(a.s();!(o=a.n()).done;){var l=o.value,c=l.from,u=l.to;if((e>0?c<=s:c=s:u>s))return new t(i.tree,i.overlay[0].from+this.from,-1,this)}}catch(d){a.e(d)}finally{a.f()}}return this.nextChild(0,1,n,e,r)}},{key:"nextSignificantParent",value:function(){for(var n=this;n.type.isAnonymous&&n._parent;)n=n._parent;return n}},{key:"parent",get:function(){return this._parent?this._parent.nextSignificantParent():null}},{key:"nextSibling",get:function(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}},{key:"prevSibling",get:function(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}},{key:"cursor",value:function(){return new $S(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"tree",get:function(){return this._tree}},{key:"toTree",value:function(){return this._tree}},{key:"resolve",value:function(n){return O0(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!1)}},{key:"resolveInner",value:function(n){return O0(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!0)}},{key:"enterUnfinishedNodesBefore",value:function(n){return Xde(this,n)}},{key:"getChild",value:function(n){var r=LS(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null);return r.length?r[0]:null}},{key:"getChildren",value:function(n){return LS(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}},{key:"toString",value:function(){return this._tree.toString()}},{key:"node",get:function(){return this}},{key:"matchContext",value:function(n){return RS(this,n)}}]),t}();function LS(t,n,e,i){var r=t.cursor(),o=[];if(!r.firstChild())return o;if(null!=e)for(;!r.type.is(e);)if(!r.nextSibling())return o;for(;;){if(null!=i&&r.type.is(i))return o;if(r.type.is(n)&&o.push(r.node),!r.nextSibling())return null==i?o:[]}}function RS(t,n){for(var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.length-1,i=t.parent;e>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(n[e]&&n[e]!=i.name)return!1;e--}}return!0}var dZe=Se(function t(n,e,i,r){ke(this,t),this.parent=n,this.buffer=e,this.index=i,this.start=r}),Mj=function(){function t(n,e,i){ke(this,t),this.context=n,this._parent=e,this.index=i,this.type=n.buffer.set.types[n.buffer.buffer[i]]}return Se(t,[{key:"name",get:function(){return this.type.name}},{key:"from",get:function(){return this.context.start+this.context.buffer.buffer[this.index+1]}},{key:"to",get:function(){return this.context.start+this.context.buffer.buffer[this.index+2]}},{key:"child",value:function(n,e,i){var r=this.context.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],n,e-this.context.start,i);return o<0?null:new t(this.context,this,o)}},{key:"firstChild",get:function(){return this.child(1,0,4)}},{key:"lastChild",get:function(){return this.child(-1,0,4)}},{key:"childAfter",value:function(n){return this.child(1,n,2)}},{key:"childBefore",value:function(n){return this.child(-1,n,-2)}},{key:"enter",value:function(n,e){if((arguments.length>2&&void 0!==arguments[2]?arguments[2]:0)&za.ExcludeBuffers)return null;var r=this.context.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],e>0?1:-1,n-this.context.start,e);return o<0?null:new t(this.context,this,o)}},{key:"parent",get:function(){return this._parent||this.context.parent.nextSignificantParent()}},{key:"externalSibling",value:function(n){return this._parent?null:this.context.parent.nextChild(this.context.index+n,n,0,4)}},{key:"nextSibling",get:function(){var n=this.context.buffer,e=n.buffer[this.index+3];return e<(this._parent?n.buffer[this._parent.index+3]:n.buffer.length)?new t(this.context,this._parent,e):this.externalSibling(1)}},{key:"prevSibling",get:function(){var n=this.context.buffer,e=this._parent?this._parent.index+4:0;return this.index==e?this.externalSibling(-1):new t(this.context,this._parent,n.findChild(e,this.index,-1,0,4))}},{key:"cursor",value:function(){return new $S(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"tree",get:function(){return null}},{key:"toTree",value:function(){var n=[],e=[],i=this.context.buffer,r=this.index+4,o=i.buffer[this.index+3];return o>r&&(n.push(i.slice(r,o,i.buffer[this.index+1],i.buffer[this.index+2])),e.push(0)),new Ua(this.type,n,e,this.to-this.from)}},{key:"resolve",value:function(n){return O0(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!1)}},{key:"resolveInner",value:function(n){return O0(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!0)}},{key:"enterUnfinishedNodesBefore",value:function(n){return Xde(this,n)}},{key:"toString",value:function(){return this.context.buffer.childString(this.index)}},{key:"getChild",value:function(n){var r=LS(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null);return r.length?r[0]:null}},{key:"getChildren",value:function(n){return LS(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}},{key:"node",get:function(){return this}},{key:"matchContext",value:function(n){return RS(this,n)}}]),t}(),$S=function(){function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(ke(this,t),this.mode=e,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,n instanceof w_)this.yieldNode(n);else{this._tree=n.context.parent,this.buffer=n.context;for(var i=n._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=n,this.yieldBuf(n.index)}}return Se(t,[{key:"name",get:function(){return this.type.name}},{key:"yieldNode",value:function(n){return!!n&&(this._tree=n,this.type=n.type,this.from=n.from,this.to=n.to,!0)}},{key:"yieldBuf",value:function(n,e){this.index=n;var i=this.buffer,r=i.start,o=i.buffer;return this.type=e||o.set.types[o.buffer[n]],this.from=r+o.buffer[n+1],this.to=r+o.buffer[n+2],!0}},{key:"yield",value:function(n){return!!n&&(n instanceof w_?(this.buffer=null,this.yieldNode(n)):(this.buffer=n.context,this.yieldBuf(n.index,n.type)))}},{key:"toString",value:function(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}},{key:"enterChild",value:function(n,e,i){if(!this.buffer)return this.yield(this._tree.nextChild(n<0?this._tree._tree.children.length-1:0,n,e,i,this.mode));var r=this.buffer.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],n,e-this.buffer.start,i);return!(o<0)&&(this.stack.push(this.index),this.yieldBuf(o))}},{key:"firstChild",value:function(){return this.enterChild(1,0,4)}},{key:"lastChild",value:function(){return this.enterChild(-1,0,4)}},{key:"childAfter",value:function(n){return this.enterChild(1,n,2)}},{key:"childBefore",value:function(n){return this.enterChild(-1,n,-2)}},{key:"enter",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.mode;return this.buffer?!(i&za.ExcludeBuffers)&&this.enterChild(1,n,e):this.yield(this._tree.enter(n,e,i))}},{key:"parent",value:function(){if(!this.buffer)return this.yieldNode(this.mode&za.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());var n=this.mode&za.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(n)}},{key:"sibling",value:function(n){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+n,n,0,4,this.mode));var e=this.buffer.buffer,i=this.stack.length-1;if(n<0){var r=i<0?0:this.stack[i]+4;if(this.index!=r)return this.yieldBuf(e.findChild(r,this.index,-1,0,4))}else{var o=e.buffer[this.index+3];if(o<(i<0?e.buffer.length:e.buffer[this.stack[i]+3]))return this.yieldBuf(o)}return i<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+n,n,0,4,this.mode))}},{key:"nextSibling",value:function(){return this.sibling(1)}},{key:"prevSibling",value:function(){return this.sibling(-1)}},{key:"atLastNode",value:function(n){var e,i,r=this.buffer;if(r){if(n>0){if(this.index-1)for(var l=e+n,c=n<0?-1:i._tree.children.length;l!=c;l+=n){var u=i._tree.children[l];if(this.mode&za.IncludeAnonymous||u instanceof x_||!u.type.isAnonymous||Ij(u))return!1}}return!0}},{key:"move",value:function(n,e){if(e&&this.enterChild(n,0,4))return!0;for(;;){if(this.sibling(n))return!0;if(this.atLastNode(n)||!this.parent())return!1}}},{key:"next",value:function(){return this.move(1,!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"prev",value:function(){return this.move(-1,!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"moveTo",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(this.from==this.to||(e<1?this.from>=n:this.from>n)||(e>-1?this.to<=n:this.to=0;){for(var s=n;s;s=s._parent)if(s.index==r){if(r==this.index)return s;e=s,i=o+1;break e}r=this.stack[--o]}for(var a=i;a=0;o--){if(o<0)return RS(this.node,n,r);var s=i[e.buffer[this.stack[o]]];if(!s.isAnonymous){if(n[r]&&n[r]!=s.name)return!1;r--}}return!0}}]),t}();function Ij(t){return t.children.some(function(n){return n instanceof x_||!n.type.isAnonymous||Ij(n)})}var Yde=new WeakMap;function BS(t,n){if(!t.isAnonymous||n instanceof x_||n.type!=t)return 1;var e=Yde.get(n);if(null==e){e=1;var i,r=Re(n.children);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.type!=t||!(o instanceof Ua)){e=1;break}e+=BS(t,o)}}catch(s){r.e(s)}finally{r.f()}Yde.set(n,e)}return e}function Nj(t,n,e,i,r,o,s,a,l){for(var c=0,u=i;u=d)break;$+=G}if(C==S+1){if($>d){var R=m[S];p(R.children,R.positions,0,R.children.length,g[S]+_);continue}h.push(m[S])}else h.push(Nj(t,m,g,S,C,M,g[C-1]+m[C-1].length-M,null,l));f.push(M+_-o)}}(n,e,i,r,0),(a||l)(h,f,s)}var VS=function(){function t(n,e,i,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];ke(this,t),this.from=n,this.to=e,this.tree=i,this.offset=r,this.open=(o?1:0)|(s?2:0)}return Se(t,[{key:"openStart",get:function(){return(1&this.open)>0}},{key:"openEnd",get:function(){return(2&this.open)>0}}],[{key:"addTree",value:function(n){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=[new t(0,n.length,n,0,!1,arguments.length>2&&void 0!==arguments[2]&&arguments[2])],s=Re(i);try{for(s.s();!(e=s.n()).done;){var a=e.value;a.to>n.length&&o.push(a)}}catch(l){s.e(l)}finally{s.f()}return o}},{key:"applyChanges",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:128;if(!e.length)return n;for(var r=[],o=1,s=n.length?n[0]:null,a=0,l=0,c=0;;a++){var u=a=i)for(;s&&s.from=h.from||d<=h.to||c){var f=Math.max(h.from,l)-c,p=Math.min(h.to,d)-c;h=f>=p?null:new t(f,p,h.tree,h.offset+c,a>0,!!u)}if(h&&r.push(h),s.to>d)break;s=o-1?e:Kde.get(e.base||e,e.modified.concat(n).sort(function(i,r){return i.id-r.id}))}}}]),t}(),mZe=0,Kde=function(){function t(){ke(this,t),this.instances=[],this.id=mZe++}return Se(t,null,[{key:"get",value:function(n,e){if(!e.length)return n;var i=e[0].instances.find(function(m){return m.base==n&&(g=e).length==(v=m.modified).length&&g.every(function(y,_){return y==v[_]});var g,v});if(i)return i;var r,o=[],s=new yp(o,n,e),a=Re(e);try{for(a.s();!(r=a.n()).done;)r.value.instances.push(s)}catch(m){a.e(m)}finally{a.f()}var l,c=Qde(e),u=Re(n.set);try{for(u.s();!(l=u.n()).done;){var d,h=l.value,f=Re(c);try{for(f.s();!(d=f.n()).done;)o.push(t.get(h,d.value))}catch(m){f.e(m)}finally{f.f()}}}catch(m){u.e(m)}finally{u.f()}return s}}]),t}();function Qde(t){for(var n=[t],e=0;e0&&u+3==s.length){l=1;break}var d=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(c);if(!d)throw new RangeError("Invalid path: "+s);if(a.push("*"==d[0]?"":'"'==d[0][0]?JSON.parse(d[0]):d[0]),(u+=d[0].length)==s.length)break;var h=s[u++];if(u==s.length&&"!"==h){l=0;break}if("/"!=h)throw new RangeError("Invalid path: "+s);c=s.slice(u)}var f=a.length-1,p=a[f];if(!p)throw new RangeError("Invalid path: "+s);var m=new gZe(i,l,f>0?a.slice(0,f):null);n[p]=m.sort(n[p])}}}catch(g){o.e(g)}finally{o.f()}}return ehe.add(n)}var ehe=new gr,gZe=function(){function t(n,e,i,r){ke(this,t),this.tags=n,this.mode=e,this.context=i,this.next=r}return Se(t,[{key:"sort",value:function(n){return!n||n.depth3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t.length,o=new bZe(i,Array.isArray(n)?n:[n],e);o.highlightRange(t.cursor(),i,r,"",o.highlighters),o.flush(r)}var Fj,bZe=function(){function t(n,e,i){ke(this,t),this.at=n,this.highlighters=e,this.span=i,this.class=""}return Se(t,[{key:"startSpan",value:function(n,e){e!=this.class&&(this.flush(n),n>this.at&&(this.at=n),this.class=e)}},{key:"flush",value:function(n){n>this.at&&this.class&&this.span(this.at,n,this.class)}},{key:"highlightRange",value:function(n,e,i,r,o){var s=n.type,a=n.from,l=n.to;if(!(a>=i||l<=e)){s.isTop&&(o=this.highlighters.filter(function($){return!$.scope||$.scope(s)}));for(var c=r,u=s.prop(ehe),d=!1;u;){if(!u.context||n.matchContext(u.context)){var h=vZe(o,u.tags);h&&(c&&(c+=" "),c+=h,1==u.mode?r+=(r?" ":"")+h:0==u.mode&&(d=!0));break}u=u.next}if(this.startSpan(n.from,c),!d){var f=n.tree&&n.tree.prop(gr.mounted);if(f&&f.overlay){for(var p=n.node.enter(f.overlay[0].from+a,1),m=this.highlighters.filter(function($){return!$.scope||$.scope(f.tree.type)}),g=n.firstChild(),v=0,y=a;;v++){var _=v=C)&&n.nextSibling()););if(!_||C>i)break;(y=_.to+a)>e&&(this.highlightRange(p.cursor(),Math.max(e,_.from+a),Math.min(i,y),r,m),this.startSpan(y,c))}g&&n.parent()}else if(n.firstChild()){do{if(!(n.to<=e)){if(n.from>=i)break;this.highlightRange(n,e,i,r,o),this.startSpan(Math.min(i,n.to),c)}}while(n.nextSibling());n.parent()}}}}}]),t}(),kn=yp.define,HS=kn(),bp=kn(),nhe=kn(bp),ihe=kn(bp),_p=kn(),zS=kn(_p),Oj=kn(_p),mh=kn(),Xm=kn(mh),gh=kn(),vh=kn(),jj=kn(),C_=kn(jj),US=kn(),fn={comment:HS,lineComment:kn(HS),blockComment:kn(HS),docComment:kn(HS),name:bp,variableName:kn(bp),typeName:nhe,tagName:kn(nhe),propertyName:ihe,attributeName:kn(ihe),className:kn(bp),labelName:kn(bp),namespace:kn(bp),macroName:kn(bp),literal:_p,string:zS,docString:kn(zS),character:kn(zS),attributeValue:kn(zS),number:Oj,integer:kn(Oj),float:kn(Oj),bool:kn(_p),regexp:kn(_p),escape:kn(_p),color:kn(_p),url:kn(_p),keyword:gh,self:kn(gh),null:kn(gh),atom:kn(gh),unit:kn(gh),modifier:kn(gh),operatorKeyword:kn(gh),controlKeyword:kn(gh),definitionKeyword:kn(gh),moduleKeyword:kn(gh),operator:vh,derefOperator:kn(vh),arithmeticOperator:kn(vh),logicOperator:kn(vh),bitwiseOperator:kn(vh),compareOperator:kn(vh),updateOperator:kn(vh),definitionOperator:kn(vh),typeOperator:kn(vh),controlOperator:kn(vh),punctuation:jj,separator:kn(jj),bracket:C_,angleBracket:kn(C_),squareBracket:kn(C_),paren:kn(C_),brace:kn(C_),content:mh,heading:Xm,heading1:kn(Xm),heading2:kn(Xm),heading3:kn(Xm),heading4:kn(Xm),heading5:kn(Xm),heading6:kn(Xm),contentSeparator:kn(mh),list:kn(mh),quote:kn(mh),emphasis:kn(mh),strong:kn(mh),link:kn(mh),monospace:kn(mh),strikethrough:kn(mh),inserted:kn(),deleted:kn(),changed:kn(),invalid:kn(),meta:US,documentMeta:kn(US),annotation:kn(US),processingInstruction:kn(US),definition:yp.defineModifier(),constant:yp.defineModifier(),function:yp.defineModifier(),standard:yp.defineModifier(),local:yp.defineModifier(),special:yp.defineModifier()};the([{tag:fn.link,class:"tok-link"},{tag:fn.heading,class:"tok-heading"},{tag:fn.emphasis,class:"tok-emphasis"},{tag:fn.strong,class:"tok-strong"},{tag:fn.keyword,class:"tok-keyword"},{tag:fn.atom,class:"tok-atom"},{tag:fn.bool,class:"tok-bool"},{tag:fn.url,class:"tok-url"},{tag:fn.labelName,class:"tok-labelName"},{tag:fn.inserted,class:"tok-inserted"},{tag:fn.deleted,class:"tok-deleted"},{tag:fn.literal,class:"tok-literal"},{tag:fn.string,class:"tok-string"},{tag:fn.number,class:"tok-number"},{tag:[fn.regexp,fn.escape,fn.special(fn.string)],class:"tok-string2"},{tag:fn.variableName,class:"tok-variableName"},{tag:fn.local(fn.variableName),class:"tok-variableName tok-local"},{tag:fn.definition(fn.variableName),class:"tok-variableName tok-definition"},{tag:fn.special(fn.variableName),class:"tok-variableName2"},{tag:fn.definition(fn.propertyName),class:"tok-propertyName tok-definition"},{tag:fn.typeName,class:"tok-typeName"},{tag:fn.namespace,class:"tok-namespace"},{tag:fn.className,class:"tok-className"},{tag:fn.macroName,class:"tok-macroName"},{tag:fn.propertyName,class:"tok-propertyName"},{tag:fn.operator,class:"tok-operator"},{tag:fn.comment,class:"tok-comment"},{tag:fn.meta,class:"tok-meta"},{tag:fn.invalid,class:"tok-invalid"},{tag:fn.punctuation,class:"tok-punctuation"}]);var j0=new gr,_Ze=new gr,ad=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";ke(this,t),this.data=n,this.name=r,Fo.prototype.hasOwnProperty("tree")||Object.defineProperty(Fo.prototype,"tree",{get:function(){return hl(this)}}),this.parser=e,this.extension=[xp.of(this),Fo.languageData.of(function(o,s,a){var l=rhe(o,s,a),c=l.type.prop(j0);if(!c)return[];var u=o.facet(c),d=l.type.prop(_Ze);if(d){var h,f=l.resolve(s-l.from,a),p=Re(d);try{for(p.s();!(h=p.n()).done;){var m=h.value;if(m.test(f,o)){var g=o.facet(m.facet);return"replace"==m.type?g:g.concat(u)}}}catch(v){p.e(v)}finally{p.f()}}return u})].concat(i)}return Se(t,[{key:"isActiveAt",value:function(n,e){return rhe(n,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1).type.prop(j0)==this.data}},{key:"findRegions",value:function(n){var e=this,i=n.facet(xp);if(i?.data==this.data)return[{from:0,to:n.doc.length}];if(!i||!i.allowsNesting)return[];var r=[];return function o(s,a){if(s.prop(j0)!=e.data){var l=s.prop(gr.mounted);if(l){if(l.tree.prop(j0)==e.data){if(l.overlay){var c,u=Re(l.overlay);try{for(u.s();!(c=u.n()).done;){var d=c.value;r.push({from:d.from+a,to:d.to+a})}}catch(m){u.e(m)}finally{u.f()}}else r.push({from:a,to:a+s.length});return}if(l.overlay){var h=r.length;if(o(l.tree,l.overlay[0].from+a),r.length>h)return}}for(var f=0;f=this.cursorPos?this.doc.sliceString(n,e):this.string.slice(n-i,e-i)}}]),t}(),k_=null,CZe=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0;ke(this,t),this.parser=n,this.state=e,this.fragments=i,this.tree=r,this.treeLen=o,this.viewport=s,this.skipped=a,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}return Se(t,[{key:"startParse",value:function(){return this.parser.startParse(new wZe(this.state.doc),this.fragments)}},{key:"work",value:function(n,e){var i=this;return null!=e&&e>=this.state.doc.length&&(e=void 0),this.tree!=Ua.empty&&this.isDone(e??this.state.doc.length)?(this.takeTree(),!0):this.withContext(function(){var r;if("number"==typeof n){var o=Date.now()+n;n=function(){return Date.now()>o}}for(i.parse||(i.parse=i.startParse()),null!=e&&(null==i.parse.stoppedAt||i.parse.stoppedAt>e)&&e=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>n)&&this.parse.stopAt(n),this.withContext(function(){for(;!(e=i.parse.advance()););}),this.treeLen=n,this.tree=e,this.fragments=this.withoutTempSkipped(VS.addTree(this.tree,this.fragments,!0)),this.parse=null)}},{key:"withContext",value:function(n){var e=k_;k_=this;try{return n()}finally{k_=e}}},{key:"withoutTempSkipped",value:function(n){for(var e;e=this.tempSkipped.pop();)n=ohe(n,e.from,e.to);return n}},{key:"changes",value:function(n,e){var i=this.fragments,r=this.tree,o=this.treeLen,s=this.viewport,a=this.skipped;if(this.takeTree(),!n.empty){var l=[];if(n.iterChangedRanges(function(p,m,g,v){return l.push({fromA:p,toA:m,fromB:g,toB:v})}),i=VS.applyChanges(i,l),r=Ua.empty,o=0,s={from:n.mapPos(s.from,-1),to:n.mapPos(s.to,1)},this.skipped.length){a=[];var c,u=Re(this.skipped);try{for(u.s();!(c=u.n()).done;){var d=c.value,h=n.mapPos(d.from,1),f=n.mapPos(d.to,-1);hn.from&&(this.fragments=ohe(this.fragments,o,s),this.skipped.splice(i--,1))}return!(this.skipped.length>=e||(this.reset(),0))}},{key:"reset",value:function(){this.parse&&(this.takeTree(),this.parse=null)}},{key:"skipUntilInView",value:function(n,e){this.skipped.push({from:n,to:e})}},{key:"isDone",value:function(n){n=Math.min(n,this.state.doc.length);var e=this.fragments;return this.treeLen>=n&&e.length&&0==e[0].from&&e[0].to>=n}}],[{key:"create",value:function(n,e,i){return new t(n,e,[],Ua.empty,0,i,[],null)}},{key:"getSkippingParser",value:function(n){return new(function(e){wt(r,Jde);var i=Ct(r);function r(){return ke(this,r),i.apply(this,arguments)}return Se(r,[{key:"createParse",value:function(o,s,a){var l=a[0].from,c=a[a.length-1].to;return{parsedPos:l,advance:function(){var u=k_;if(u){var d,h=Re(a);try{for(h.s();!(d=h.n()).done;)u.tempSkipped.push(d.value)}catch(p){h.e(p)}finally{h.f()}n&&(u.scheduleOn=u.scheduleOn?Promise.all([u.scheduleOn,n]):n)}return this.parsedPos=c,new Ua(au.none,[],[],c-l)},stoppedAt:null,stopAt:function(){}}}}]),r}())}},{key:"get",value:function(){return k_}}]),t}();function ohe(t,n,e){return VS.applyChanges(t,[{fromA:n,toA:e,fromB:n,toB:e}])}var Pj=function(){function t(n){ke(this,t),this.context=n,this.tree=n.tree}return Se(t,[{key:"apply",value:function(n){if(!n.docChanged&&this.tree==this.context.tree)return this;var e=this.context.changes(n.changes,n.state),i=this.context.treeLen==n.startState.doc.length?void 0:Math.max(n.changes.mapPos(this.context.treeLen),e.viewport.to);return e.work(20,i)||e.takeTree(),new t(e)}}],[{key:"init",value:function(n){var e=Math.min(3e3,n.doc.length),i=CZe.create(n.facet(xp).parser,n,{from:0,to:e});return i.work(20,e)||i.takeTree(),new t(i)}}]),t}();ad.state=Va.define({create:Pj.init,update:function(t,n){var e,i=Re(n.effects);try{for(i.s();!(e=i.n()).done;){var r=e.value;if(r.is(ad.setState))return r.value}}catch(o){i.e(o)}finally{i.f()}return n.startState.facet(xp)!=n.state.facet(xp)?Pj.init(n.state):t.apply(n)}});var she=function(t){var n=setTimeout(function(){return t()},500);return function(){return clearTimeout(n)}};typeof requestIdleCallback<"u"&&(she=function(t){var n=-1,e=setTimeout(function(){n=requestIdleCallback(t,{timeout:400})},100);return function(){return n<0?clearTimeout(e):cancelIdleCallback(n)}});var Lj=typeof navigator<"u"&&null!==(Fj=navigator.scheduling)&&void 0!==Fj&&Fj.isInputPending?function(){return navigator.scheduling.isInputPending()}:null,kZe=ka.fromClass(function(){function t(n){ke(this,t),this.view=n,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}return Se(t,[{key:"update",value:function(n){var e=this.view.state.field(ad.state).context;(e.updateViewport(n.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),n.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}},{key:"scheduleWork",value:function(){if(!this.working){var n=this.view.state,e=n.field(ad.state);e.tree==e.context.tree&&e.context.isDone(n.doc.length)||(this.working=she(this.work))}}},{key:"work",value:function(n){this.working=null;var e=Date.now();if(this.chunkEndo+1e3,c=s.context.work(function(){return Lj&&Lj()||Date.now()>a},o+(l?0:1e5));this.chunkBudget-=Date.now()-e,(c||this.chunkBudget<=0)&&(s.context.takeTree(),this.view.dispatch({effects:ad.setState.of(new Pj(s.context))})),this.chunkBudget>0&&(!c||l)&&this.scheduleWork(),this.checkAsyncSchedule(s.context)}}}},{key:"checkAsyncSchedule",value:function(n){var e=this;n.scheduleOn&&(this.workScheduled++,n.scheduleOn.then(function(){return e.scheduleWork()}).catch(function(i){return Ec(e.view.state,i)}).then(function(){return e.workScheduled--}),n.scheduleOn=null)}},{key:"destroy",value:function(){this.working&&this.working()}},{key:"isWorking",value:function(){return!!(this.working||this.workScheduled>0)}}]),t}(),{eventHandlers:{focus:function(){this.scheduleWork()}}}),xp=Qn.define({combine:function(t){return t.length?t[0]:null},enables:function(t){return[ad.state,kZe,Wn.contentAttributes.compute([t],function(n){var e=n.facet(t);return e&&e.name?{"data-language":e.name}:{}})]}}),SZe=Se(function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];ke(this,t),this.language=n,this.support=e,this.extension=[n,e]}),DZe=Qn.define(),GS=Qn.define({combine:function(t){if(!t.length)return" ";var n=t[0];if(!n||/\S/.test(n)||Array.from(n).some(function(e){return e!=n[0]}))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return n}});function P0(t){var n=t.facet(GS);return 9==n.charCodeAt(0)?t.tabSize*n.length:n.length}function S_(t,n){var e="",i=t.tabSize,r=t.facet(GS)[0];if("\t"==r){for(;n>=i;)e+="\t",n-=i;r=" "}for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:{};ke(this,t),this.state=n,this.options=e,this.unit=P0(n)}return Se(t,[{key:"lineAt",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=this.state.doc.lineAt(n),r=this.options,o=r.simulateBreak;return null!=o&&o>=i.from&&o<=i.to?r.simulateDoubleBreak&&o==n?{text:"",from:n}:(e<0?o1&&void 0!==arguments[1]?arguments[1]:1),r=i.text,o=i.from;return r.slice(n-o,Math.min(r.length,n+100-o))}},{key:"column",value:function(n){var i=this.lineAt(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),r=i.text,o=i.from,s=this.countColumn(r,n-o),a=this.options.overrideIndentation?this.options.overrideIndentation(o):-1;return a>-1&&(s+=a-this.countColumn(r,r.search(/\S|$/))),s}},{key:"countColumn",value:function(n){return s_(n,this.state.tabSize,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.length)}},{key:"lineIndent",value:function(n){var i=this.lineAt(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),r=i.text,s=this.options.overrideIndentation;if(s){var a=s(i.from);if(a>-1)return a}return this.countColumn(r,r.search(/\S|$/))}},{key:"simulatedBreak",get:function(){return this.options.simulateBreak||null}}]),t}(),ahe=new gr;function TZe(t){var n=t.type.prop(ahe);if(n)return n;var e,i=t.firstChild;if(i&&(e=i.type.prop(gr.closedBy))){var r=t.lastChild,o=r&&e.indexOf(r.name)>-1;return function(s){return function(a,l,c,u,d){var f=a.textAfter.match(/^\s*/)[0].length,p=d==a.pos+f,m=function(g){var v=g.node,y=v.childAfter(v.from),_=v.lastChild;if(!y)return null;for(var C=g.options.simulateBreak,S=g.state.doc.lineAt(y.from),M=null==C||C<=S.from?S.to:Math.min(S.to,C),$=y.to;;){var G=v.childAfter($);if(!G||G==_)return null;if(!G.type.isSkipped)return G.from0&&void 0!==arguments[0]?arguments[0]:{},n=t.except,e=t.units,i=void 0===e?1:e;return function(r){var o=n&&n.test(r.textAfter);return r.baseIndent+(o?0:i*r.unit)}}var IZe=Qn.define(),uhe=new gr;function qS(t,n,e){var i,r=Re(t.facet(IZe));try{for(r.s();!(i=r.n()).done;){var o=(0,i.value)(t,n,e);if(o)return o}}catch(s){r.e(s)}finally{r.f()}return function(s,a,l){var c=hl(s);if(c.lengthl)){if(h&&f.from=a&&m.to>l&&(h=m)}}return h}(t,n,e)}function dhe(t,n){var e=n.mapPos(t.from,1),i=n.mapPos(t.to,-1);return e>=i?void 0:{from:e,to:i}}var XS=hr.define({map:dhe}),D_=hr.define({map:dhe});function hhe(t){var n,e=[],i=Re(t.state.selection.ranges);try{var r=function(){var o=n.value.head;if(e.some(function(s){return s.from<=o&&s.to>=o}))return"continue";e.push(t.lineBlockAt(o))};for(i.s();!(n=i.n()).done;)r()}catch(o){i.e(o)}finally{i.f()}return e}var Ym=Va.define({create:function(){return yi.none},update:function(t,n){t=t.map(n.changes);var e,i=Re(n.effects);try{var r=function(){var c,u,d,a=e.value;a.is(XS)&&(u=a.value.to,d=!1,t.between(c=a.value.from,c,function(h,f){h==c&&f==u&&(d=!0)}),!d)?t=t.update({add:[vhe.range(a.value.from,a.value.to)]}):a.is(D_)&&(t=t.update({filter:function(l,c){return a.value.from!=l||a.value.to!=c},filterFrom:a.value.from,filterTo:a.value.to}))};for(i.s();!(e=i.n()).done;)r()}catch(a){i.e(a)}finally{i.f()}if(n.selection){var o=!1,s=n.selection.main.head;t.between(s,s,function(a,l){as&&(o=!0)}),o&&(t=t.update({filterFrom:s,filterTo:s,filter:function(a,l){return l<=s||a>=s}}))}return t},provide:function(t){return Wn.decorations.from(t)},toJSON:function(t,n){var e=[];return t.between(0,n.doc.length,function(i,r){e.push(i,r)}),e},fromJSON:function(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");for(var n=[],e=0;eo)&&(r={from:o,to:s})}),r}function fhe(t,n){return t.field(Ym,!1)?n:n.concat(hr.appendConfig.of(ghe()))}function phe(t,n){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=t.state.doc.lineAt(n.from).number,r=t.state.doc.lineAt(n.to).number;return Wn.announce.of("".concat(t.state.phrase(e?"Folded lines":"Unfolded lines")," ").concat(i," ").concat(t.state.phrase("to")," ").concat(r,"."))}var NZe=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:function(t){var n,e=Re(hhe(t));try{for(e.s();!(n=e.n()).done;){var i=n.value,r=qS(t.state,i.from,i.to);if(r)return t.dispatch({effects:fhe(t.state,[XS.of(r),phe(t,r)])}),!0}}catch(o){e.e(o)}finally{e.f()}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:function(t){if(!t.state.field(Ym,!1))return!1;var n,e=[],i=Re(hhe(t));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=YS(t.state,r.from,r.to);o&&e.push(D_.of(o),phe(t,o,!1))}}catch(s){i.e(s)}finally{i.f()}return e.length&&t.dispatch({effects:e}),e.length>0}},{key:"Ctrl-Alt-[",run:function(t){for(var n=t.state,e=[],i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=Object.assign(Object.assign({},OZe),t),e=new $j(n,!0),i=new $j(n,!1),r=ka.fromClass(function(){function s(a){ke(this,s),this.from=a.viewport.from,this.markers=this.buildMarkers(a)}return Se(s,[{key:"update",value:function(a){(a.docChanged||a.viewportChanged||a.startState.facet(xp)!=a.state.facet(xp)||a.startState.field(Ym,!1)!=a.state.field(Ym,!1)||hl(a.startState)!=hl(a.state)||n.foldingChanged(a))&&(this.markers=this.buildMarkers(a.view))}},{key:"buildMarkers",value:function(a){var l,c=new Gm,u=Re(a.viewportLineBlocks);try{for(u.s();!(l=u.n()).done;){var d=l.value,h=YS(a.state,d.from,d.to)?i:qS(a.state,d.from,d.to)?e:null;h&&c.add(d.from,d.from,h)}}catch(f){u.e(f)}finally{u.f()}return c.finish()}}]),s}()),o=n.domEventHandlers;return[r,$de({class:"cm-foldGutter",markers:function(s){var a;return(null===(a=s.plugin(r))||void 0===a?void 0:a.markers)||Go.empty},initialSpacer:function(){return new $j(n,!1)},domEventHandlers:Object.assign(Object.assign({},o),{click:function(s,a,l){if(o.click&&o.click(s,a,l))return!0;var c=YS(s.state,a.from,a.to);if(c)return s.dispatch({effects:D_.of(c)}),!0;var u=qS(s.state,a.from,a.to);return!!u&&(s.dispatch({effects:XS.of(u)}),!0)}})}),ghe()]}var PZe=Wn.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}}),Bj=function(){function t(n,e){var i;function r(a){var l=pp.newName();return(i||(i=Object.create(null)))["."+l]=a,l}ke(this,t),this.specs=n;var o="string"==typeof e.all?e.all:e.all?r(e.all):void 0,s=e.scope;this.scope=s instanceof ad?function(a){return a.prop(j0)==s.data}:s?function(a){return a==s}:void 0,this.style=the(n.map(function(a){return{tag:a.tag,class:a.class||r(Object.assign({},a,{tag:null}))}}),{all:o}).style,this.module=i?new pp(i):null,this.themeType=e.themeType}return Se(t,null,[{key:"define",value:function(n,e){return new t(n,e||{})}}]),t}(),Vj=Qn.define(),yhe=Qn.define({combine:function(t){return t.length?[t[0]]:null}});function Hj(t){var n=t.facet(Vj);return n.length?n:t.facet(yhe)}function bhe(t,n){var e,i=[RZe];return t instanceof Bj&&(t.module&&i.push(Wn.styleModule.of(t.module)),e=t.themeType),i.push(n?.fallback?yhe.of(t):e?Vj.computeN([Wn.darkTheme],function(r){return r.facet(Wn.darkTheme)==("dark"==e)?[t]:[]}):Vj.of(t)),i}var LZe=function(){function t(n){ke(this,t),this.markCache=Object.create(null),this.tree=hl(n.state),this.decorations=this.buildDeco(n,Hj(n.state))}return Se(t,[{key:"update",value:function(n){var e=hl(n.state),i=Hj(n.state),r=i!=Hj(n.startState);e.length0&&yh(n.state,s.head-1,1,r)||r.afterCursor&&(yh(n.state,s.head,1,r)||s.head0&&void 0!==arguments[0]?arguments[0]:{}),GZe]}var qZe=new gr;function zj(t,n,e){var i=t.prop(n<0?gr.openedBy:gr.closedBy);if(i)return i;if(1==t.name.length){var r=e.indexOf(t.name);if(r>-1&&r%2==(n<0?1:0))return[e[r+n]]}return null}function Uj(t){var n=t.type.prop(qZe);return n?n(t.node):t}function yh(t,n,e){for(var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=i.maxScanDistance||1e4,o=i.brackets||"()[]{}",s=hl(t),a=s.resolveInner(n,e),l=a;l;l=l.parent){var c=zj(l.type,e,o);if(c&&l.from0?n>=u.from&&nu.from&&n<=u.to))return XZe(0,0,e,l,u,c,o)}}return function YZe(t,n,e,i,r,o,s){var a=e<0?t.sliceDoc(n-1,n):t.sliceDoc(n,n+1),l=s.indexOf(a);if(l<0||l%2==0!=e>0)return null;for(var c={from:e<0?n-1:n,to:e>0?n+1:n},u=t.doc.iterRange(n,e>0?t.doc.length:0),d=0,h=0;!u.next().done&&h<=o;){var f=u.value;e<0&&(h+=f.length);for(var p=n+h*e,m=e>0?0:f.length-1,g=e>0?f.length:-1;m!=g;m+=e){var v=s.indexOf(f[m]);if(!(v<0||i.resolveInner(p+m,1).type!=r))if(v%2==0==e>0)d++;else{if(1==d)return{start:c,end:{from:p+m,to:p+m+1},matched:v>>1==l>>1};d--}}e>0&&(h+=f.length)}return u.done?{start:c,matched:!1}:null}(t,n,e,s,a.type,r,o)}function XZe(t,n,e,i,r,o,s){var l={from:r.from,to:r.to},c=0,u=i.parent?.cursor();if(u&&(e<0?u.childBefore(i.from):u.childAfter(i.to)))do{if(e<0?u.to<=i.from:u.from>=i.to){if(0==c&&o.indexOf(u.type.name)>-1&&u.from-1||(whe.push(t),console.warn(n))}function eet(t,n){var e,i=null,r=Re(n.split("."));try{for(r.s();!(e=r.n()).done;){var o=e.value,s=t[o]||fn[o];s?"function"==typeof s?i?i=s(i):Wj(o,"Modifier ".concat(o," used at start of tag")):i?Wj(o,"Tag ".concat(o," used as modifier")):i=s:Wj(o,"Unknown highlighting tag ".concat(o))}}catch(c){r.e(c)}finally{r.f()}if(!i)return 0;var a=n.replace(/ /g,"_"),l=au.define({id:xhe.length,name:a,props:[Zde(ql({},a,i))]});return xhe.push(l),l.id}function qj(t,n){return function(e){var i=e.state,r=e.dispatch;if(i.readOnly)return!1;var o=t(n,i);return!!o&&(r(i.update(o)),!0)}}var tet=qj(function oet(t,n){var e,r=[],o=-1,s=Re(arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.selection.ranges);try{for(s.s();!(e=s.n()).done;){for(var a=e.value,l=a.from,c=a.to,u=r.length,d=1e9,h=l;h<=c;){var f=n.doc.lineAt(h);if(f.from>o&&(l==c||c>f.from)){o=f.from;var p=Xj(n,f.from).line;if(!p)continue;var m=/^\s*/.exec(f.text)[0].length,g=m==f.length,v=f.text.slice(m,m+p.length)==p?m:-1;m=0})){var re,L=[],X=Re(r);try{for(X.s();!(re=X.n()).done;){var Z=re.value,H=Z.line,he=Z.comment;if(he>=0){var N=H.from+he,F=N+Z.token.length;" "==H.text[F-H.from]&&F++,L.push({from:N,to:F})}}}catch(Y){X.e(Y)}finally{X.f()}return{changes:L}}return null},0),net=qj(She,0),iet=qj(function(t,n){return She(t,n,function(e){var i,r=[],o=Re(e.selection.ranges);try{for(o.s();!(i=o.n()).done;){var s=i.value,a=e.doc.lineAt(s.from),l=s.to<=a.to?a:e.doc.lineAt(s.to),c=r.length-1;c>=0&&r[c].to>a.from?r[c].to=l.to:r.push({from:a.from,to:l.to})}}catch(u){o.e(u)}finally{o.f()}return r}(n))},0);function Xj(t,n){var e=t.languageDataAt("commentTokens",n);return e.length?e[0]:{}}function She(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.selection.ranges,i=e.map(function(h){return Xj(n,h.from).block});if(!i.every(function(h){return h}))return null;var r=e.map(function(h,f){return function ret(t,n,e,i){var r,o,s=n.open,a=n.close,l=t.sliceDoc(e-50,e),c=t.sliceDoc(i,i+50),u=/\s*$/.exec(l)[0].length,d=/^\s*/.exec(c)[0].length,h=l.length-u;if(l.slice(h-s.length,h)==s&&c.slice(d,d+a.length)==a)return{open:{pos:e-u,margin:u&&1},close:{pos:i+d,margin:d&&1}};i-e<=100?r=o=t.sliceDoc(e,i):(r=t.sliceDoc(e,e+50),o=t.sliceDoc(i-50,i));var f=/^\s*/.exec(r)[0].length,p=/\s*$/.exec(o)[0].length,m=o.length-p-a.length;return r.slice(f,f+s.length)==s&&o.slice(m,m+a.length)==a?{open:{pos:e+f+s.length,margin:/\s/.test(r.charAt(f+s.length))?1:0},close:{pos:i-p-a.length,margin:/\s/.test(o.charAt(m-1))?1:0}}:null}(n,i[f],h.from,h.to)});if(2!=t&&!r.every(function(h){return h}))return{changes:n.changes(e.map(function(h,f){return r[f]?[]:[{from:h.from,insert:i[f].open+" "},{from:h.to,insert:" "+i[f].close}]}))};if(1!=t&&r.some(function(h){return h})){for(var o,s=[],a=0;a0&&void 0!==arguments[0]?arguments[0]:{}),Wn.domEventHandlers({beforeinput:function(n,e){var i="historyUndo"==n.inputType?Kj:"historyRedo"==n.inputType?KS:null;return!!i&&(n.preventDefault(),i(e))}})]}function JS(t,n){return function(e){var i=e.state,r=e.dispatch;if(!n&&i.readOnly)return!1;var o=i.field(Jj,!1);if(!o)return!1;var s=o.pop(t,i,n);return!!s&&(r(s),!0)}}var Kj=JS(0,!1),KS=JS(1,!1),uet=JS(0,!0),det=JS(1,!0);function The(t){return function(n){var e=n.field(Jj,!1);if(!e)return 0;var i=0==t?e.done:e.undone;return i.length-(i.length&&!i[0].changes?1:0)}}var het=The(0),fet=The(1),df=function(){function t(n,e,i,r,o){ke(this,t),this.changes=n,this.effects=e,this.mapped=i,this.startSelection=r,this.selectionsAfter=o}return Se(t,[{key:"setSelAfter",value:function(n){return new t(this.changes,this.effects,this.mapped,this.startSelection,n)}},{key:"toJSON",value:function(){var n,e,i;return{changes:null===(n=this.changes)||void 0===n?void 0:n.toJSON(),mapped:null===(e=this.mapped)||void 0===e?void 0:e.toJSON(),startSelection:null===(i=this.startSelection)||void 0===i?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(function(r){return r.toJSON()})}}}],[{key:"fromJSON",value:function(n){return new t(n.changes&&rd.fromJSON(n.changes),[],n.mapped&&C0.fromJSON(n.mapped),n.startSelection&&en.fromJSON(n.startSelection),n.selectionsAfter.map(en.fromJSON))}},{key:"fromTransaction",value:function(n,e){var i,r=lu,o=Re(n.startState.facet(aet));try{for(o.s();!(i=o.n()).done;){var s=(0,i.value)(n);s.length&&(r=r.concat(s))}}catch(a){o.e(a)}finally{o.f()}return!r.length&&n.changes.empty?null:new t(n.changes.invert(n.startState.doc),r,void 0,e||n.startState.selection,lu)}},{key:"selection",value:function(n){return new t(void 0,lu,void 0,void 0,n)}}]),t}();function QS(t,n,e,i){var o=t.slice(n+1>e+20?n-e-1:0,n);return o.push(i),o}function Ehe(t,n){return t.length?n.length?t.concat(n):t:n}var lu=[];function Ahe(t,n){if(t.length){var e=t[t.length-1],i=e.selectionsAfter.slice(Math.max(0,e.selectionsAfter.length-200));return i.length&&i[i.length-1].eq(n)?t:(i.push(n),QS(t,t.length-1,1e9,e.setSelAfter(i)))}return[df.selection([n])]}function pet(t){var n=t[t.length-1],e=t.slice();return e[t.length-1]=n.setSelAfter(n.selectionsAfter.slice(0,n.selectionsAfter.length-1)),e}function Qj(t,n){if(!t.length)return t;for(var e=t.length,i=lu;e;){var r=met(t[e-1],n,i);if(r.changes&&!r.changes.empty||r.effects.length){var o=t.slice(0,e);return o[e-1]=r,o}n=r.mapped,e--,i=r.selectionsAfter}return i.length?[df.selection(i)]:lu}function met(t,n,e){var i=Ehe(t.selectionsAfter.length?t.selectionsAfter.map(function(a){return a.map(n)}):lu,e);if(!t.changes)return df.selection(i);var r=t.changes.map(n),o=n.mapDesc(t.changes,!0),s=t.mapped?t.mapped.composeDesc(o):o;return new df(r,hr.mapEffects(t.effects,n),s,t.startSelection.map(o),i)}var get=/^(input\.type|delete)($|\.)/,T_=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;ke(this,t),this.done=n,this.undone=e,this.prevTime=i,this.prevUserEvent=r}return Se(t,[{key:"isolate",value:function(){return this.prevTime?new t(this.done,this.undone):this}},{key:"addChanges",value:function(n,e,i,r,o){var c,u,d,s=this.done,a=s[s.length-1];return new t(s=a&&a.changes&&!a.changes.empty&&n.changes&&(!i||get.test(i))&&(!a.selectionsAfter.length&&e-this.prevTime=v&&p<=y&&(d=!0)}}),d))||"input.type.compose"==i)?QS(s,s.length-1,r.minDepth,new df(n.changes.compose(a.changes),Ehe(n.effects,a.effects),a.mapped,a.startSelection,lu)):QS(s,s.length,r.minDepth,n),lu,e,i)}},{key:"addSelection",value:function(n,e,i,r){var s,a,o=this.done.length?this.done[this.done.length-1].selectionsAfter:lu;return o.length>0&&e-this.prevTime2||/[^\s,.;:]/.test(t.sliceDoc(n.from,n.to)))||n.firstChild}function eD(t,n,e){for(var i=hl(t).resolveInner(n.head),r=e?gr.closedBy:gr.openedBy,o=n.head;;){var s=e?i.childAfter(o):i.childBefore(o);if(!s)break;yet(t,s,r)?i=s:o=e?s.to:s.from}var a,l;return l=i.type.prop(r)&&(a=e?yh(t,i.from,1):yh(t,i.to,-1))&&a.matched?e?a.end.to:a.end.from:e?i.to:i.from,en.cursor(l,e?-1:1)}function Ohe(t,n){return ld(t,function(e){if(!e.empty)return ZS(e,n);var i=t.moveVertically(e,n);return i.head!=e.head?i:t.moveToLineBoundary(e,n)})}var jhe=function(t){return Ohe(t,!1)},Phe=function(t){return Ohe(t,!0)};function Lhe(t){var n,e=t.scrollDOM.clientHeightl&&s.bottoms&&(e="delete.forward",l=nD(t,l,!0)),s=Math.min(s,l),a=Math.max(a,l)}else s=nD(t,s,!1),a=nD(t,a,!0);return s==a?{range:o}:{changes:{from:s,to:a},range:en.cursor(s)}});return!r.changes.empty&&(t.dispatch(i.update(r,{scrollIntoView:!0,userEvent:e,effects:"delete.selection"==e?Wn.announce.of(i.phrase("Selection deleted")):void 0})),!0)}function nD(t,n,e){if(t instanceof Wn){var i,r=Re(t.state.facet(Wn.atomicRanges).map(function(o){return o(t)}));try{for(r.s();!(i=r.n()).done;)i.value.between(n,n,function(o,s){on&&(n=e?s:o)})}catch(o){r.e(o)}finally{r.f()}}return n}var efe=function(t,n){return tD(t,function(e){var i,r,o=t.state,s=o.doc.lineAt(e);if(!n&&e>s.from&&e=s.number){var l=e[e.length-1];l.to=a.to,l.ranges.push(o)}else e.push({from:s.from,to:a.to,ranges:[o]});i=a.number+1}}catch(c){r.e(c)}finally{r.f()}return e}function ofe(t,n,e){if(t.readOnly)return!1;var i,r=[],o=[],s=Re(iD(t));try{for(s.s();!(i=s.n()).done;){var a=i.value;if(e?a.to!=t.doc.length:0!=a.from){var l=t.doc.lineAt(e?a.to+1:a.from-1),c=l.length+1;if(e){r.push({from:a.to,to:l.to},{from:a.from,insert:l.text+t.lineBreak});var u,d=Re(a.ranges);try{for(d.s();!(u=d.n()).done;){var h=u.value;o.push(en.range(Math.min(t.doc.length,h.anchor+c),Math.min(t.doc.length,h.head+c)))}}catch(g){d.e(g)}finally{d.f()}}else{r.push({from:l.from,to:a.from},{from:a.to,insert:t.lineBreak+l.text});var f,p=Re(a.ranges);try{for(p.s();!(f=p.n()).done;){var m=f.value;o.push(en.range(m.anchor-c,m.head-c))}}catch(g){p.e(g)}finally{p.f()}}}}}catch(g){s.e(g)}finally{s.f()}return!!r.length&&(n(t.update({changes:r,scrollIntoView:!0,selection:en.create(o,t.selection.mainIndex),userEvent:"move.line"})),!0)}function sfe(t,n,e){if(t.readOnly)return!1;var i,r=[],o=Re(iD(t));try{for(o.s();!(i=o.n()).done;){var s=i.value;r.push(e?{from:s.from,insert:t.doc.slice(s.from,s.to)+t.lineBreak}:{from:s.to,insert:t.lineBreak+t.doc.slice(s.from,s.to)})}}catch(a){o.e(a)}finally{o.f()}return n(t.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}var bet=afe(!1),_et=afe(!0);function afe(t){return function(n){var e=n.state,i=n.dispatch;if(e.readOnly)return!1;var r=e.changeByRange(function(o){var s=o.from,a=o.to,l=e.doc.lineAt(s),c=!t&&s==a&&function(f,p){if(/\(\)|\[\]|\{\}/.test(f.sliceDoc(p-1,p+1)))return{from:p,to:p};var m,g=hl(f).resolveInner(p),v=g.childBefore(p),y=g.childAfter(p);return v&&y&&v.to<=p&&y.from>=p&&(m=v.type.prop(gr.closedBy))&&m.indexOf(y.name)>-1&&f.doc.lineAt(v.to).from==f.doc.lineAt(y.from).from?{from:v.to,to:y.from}:null}(e,s);t&&(s=a=(a<=l.to?l:e.doc.lineAt(a)).to);var u=new WS(e,{simulateBreak:s,simulateDoubleBreak:!!c}),d=Rj(u,s);for(null==d&&(d=/^\s*/.exec(e.doc.lineAt(s).text)[0].length);al.from&&se&&(i.empty||i.to>s.from)&&(n(s,r,i),e=s.number),o=s.to+1}var a=t.changes(r);return{changes:r,range:en.range(a.mapPos(i.anchor,1),a.mapPos(i.head,1))}})}var lfe=function(t){var n=t.state;return!n.readOnly&&((0,t.dispatch)(n.update(tP(n,function(i,r){r.push({from:i.from,insert:n.facet(GS)})}),{userEvent:"input.indent"})),!0)},cfe=function(t){var n=t.state;return!n.readOnly&&((0,t.dispatch)(n.update(tP(n,function(i,r){var o=/^\s*/.exec(i.text)[0];if(o){for(var s=s_(o,n.tabSize),a=0,l=S_(n,Math.max(0,s-P0(n)));ae?e:Math.max(0,n-1)})}},{mac:"Mod-Delete",run:rfe}].concat(xet.map(function(t){return{mac:t.key,run:t.run,shift:t.shift}})),Cet=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:function(t){return ld(t,function(n){return eD(t.state,n,!fl(t))})},shift:function(t){return cu(t,function(n){return eD(t.state,n,!fl(t))})}},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:function(t){return ld(t,function(n){return eD(t.state,n,fl(t))})},shift:function(t){return cu(t,function(n){return eD(t.state,n,fl(t))})}},{key:"Alt-ArrowUp",run:function(t){return ofe(t.state,t.dispatch,!1)}},{key:"Shift-Alt-ArrowUp",run:function(t){return sfe(t.state,t.dispatch,!1)}},{key:"Alt-ArrowDown",run:function(t){return ofe(t.state,t.dispatch,!0)}},{key:"Shift-Alt-ArrowDown",run:function(t){return sfe(t.state,t.dispatch,!0)}},{key:"Escape",run:function(t){var n=t.state,e=t.dispatch,i=n.selection,r=null;return i.ranges.length>1?r=en.create([i.main]):i.main.empty||(r=en.create([en.cursor(i.main.head)])),!!r&&(e(bh(n,r)),!0)}},{key:"Mod-Enter",run:_et},{key:"Alt-l",mac:"Ctrl-l",run:function(t){var n=t.state,e=t.dispatch,i=iD(n).map(function(r){return en.range(r.from,Math.min(r.to+1,n.doc.length))});return e(n.update({selection:en.create(i),userEvent:"select"})),!0}},{key:"Mod-i",run:function(t){var n=t.state,e=t.dispatch,i=L0(n.selection,function(r){for(var o,s=hl(n).resolveInner(r.head,1);!(s.from=r.to||s.to>r.to&&s.from<=r.from)&&null!==(o=s.parent)&&void 0!==o&&o.parent;)s=s.parent;return en.range(s.to,s.from)});return e(bh(n,i)),!0},preventDefault:!0},{key:"Mod-[",run:cfe},{key:"Mod-]",run:lfe},{key:"Mod-Alt-\\",run:function(t){var n=t.state,e=t.dispatch;if(n.readOnly)return!1;var i=Object.create(null),r=new WS(n,{overrideIndentation:function(s){return i[s]??-1}}),o=tP(n,function(s,a,l){var c=Rj(r,s.from);if(null!=c){/\S/.test(s.text)||(c=0);var u=/^\s*/.exec(s.text)[0],d=S_(n,c);(u!=d||l.from0?o--:s0&&yh(n,s.head-1,1)||s.head2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.length,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0;ke(this,t),this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=n.iterRange(i,r),this.bufferStart=i,this.normalize=o?function(a){return o(dfe(a))}:dfe,this.query=this.normalize(e)}return Se(t,[{key:"peek",value:function(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Ba(this.buffer,this.bufferPos)}},{key:"next",value:function(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}},{key:"nextOverlapping",value:function(){for(;;){var n=this.peek();if(n<0)return this.done=!0,this;var e=S4(n),i=this.bufferStart+this.bufferPos;this.bufferPos+=Sc(n);for(var r=this.normalize(e),o=0,s=i;;o++){var a=r.charCodeAt(o),l=this.match(a,s);if(l)return this.value=l,this;if(o==r.length-1)break;s==i&&o3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:n.length;if(ke(this,t),this.text=n,this.to=o,this.curLine="",this.done=!1,this.value=hfe,/\\[sWDnr]|\n|\r|\[\^/.test(e))return new mfe(n,e,i,r,o);this.re=new RegExp(e,nP+(i?.ignoreCase?"i":"")),this.test=i?.test,this.iter=n.iter();var s=n.lineAt(r);this.curLineStart=s.from,this.matchPos=rD(n,r),this.getLine(this.curLineStart)}return Se(t,[{key:"getLine",value:function(n){this.iter.next(n),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}},{key:"nextLine",value:function(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}},{key:"next",value:function(){for(var n=this.matchPos-this.curLineStart;;){this.re.lastIndex=n;var e=this.matchPos<=this.to&&this.re.exec(this.curLine);if(e){var i=this.curLineStart+e.index,r=i+e[0].length;if(this.matchPos=rD(this.text,r+(i==r?1:0)),i==this.curLineStart+this.curLine.length&&this.nextLine(),(ithis.value.to)&&(!this.test||this.test(i,r,e)))return this.value={from:i,to:r,match:e},this;n=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=i||r.to<=e){var o=new t(e,n.sliceString(e,i));return iP.set(n,o),o}if(r.from==e&&r.to==i)return r;var s=r.text,a=r.from;return a>e&&(s=n.sliceString(e,a)+s,a=e),r.to=this.to?this.to:this.text.lineAt(n).to}},{key:"next",value:function(){for(;;){var n=this.re.lastIndex=this.matchPos-this.flat.from,e=this.re.exec(this.flat.text);if(e&&!e[0]&&e.index==n&&(this.re.lastIndex=n+1,e=this.re.exec(this.flat.text)),e){var i=this.flat.from+e.index,r=i+e[0].length;if((this.flat.to>=this.to||e.index+e[0].length<=this.flat.text.length-10)&&(!this.test||this.test(i,r,e)))return this.value={from:i,to:r,match:e},this.matchPos=rD(this.text,r+(i==r?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=pfe.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}]),t}();function rD(t,n){if(n>=t.length)return n;for(var e,i=t.lineAt(n);n=56320&&e<57344;)n++;return n}function rP(t){var n=Oo("input",{class:"cm-textfield",name:"line"});function e(){var i=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(i){var r=t.state,o=r.doc.lineAt(r.selection.main.head),s=Un(i,5),a=s[1],l=s[2],c=s[3],u=s[4],d=c?+c.slice(1):0,h=l?+l:o.number;if(l&&u){var f=h/100;a&&(f=f*("-"==a?-1:1)+o.number/r.doc.lines),h=Math.round(r.doc.lines*f)}else l&&a&&(h=h*("-"==a?-1:1)+o.number);var p=r.doc.line(Math.max(1,Math.min(r.doc.lines,h)));t.dispatch({effects:oD.of(!1),selection:en.cursor(p.from+Math.max(0,Math.min(d,p.length))),scrollIntoView:!0}),t.focus()}}return{dom:Oo("form",{class:"cm-gotoLine",onkeydown:function(i){27==i.keyCode?(i.preventDefault(),t.dispatch({effects:oD.of(!1)}),t.focus()):13==i.keyCode&&(i.preventDefault(),e())},onsubmit:function(i){i.preventDefault(),e()}},Oo("label",t.state.phrase("Go to line"),": ",n)," ",Oo("button",{class:"cm-button",type:"submit"},t.state.phrase("go")))}}typeof Symbol<"u"&&(ffe.prototype[Symbol.iterator]=mfe.prototype[Symbol.iterator]=function(){return this});var oD=hr.define(),gfe=Va.define({create:function(){return!0},update:function(t,n){var e,i=Re(n.effects);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.is(oD)&&(t=r.value)}}catch(o){i.e(o)}finally{i.f()}return t},provide:function(t){return b_.from(t,function(n){return n?rP:null})}}),Det=Wn.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),Tet={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},vfe=Qn.define({combine:function(t){return su(t,Tet,{highlightWordAroundCursor:function(n,e){return n||e},minSelectionLength:Math.min,maxMatches:Math.min})}}),Eet=yi.mark({class:"cm-selectionMatch"}),Aet=yi.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function yfe(t,n,e,i){return!(0!=e&&t(n.sliceDoc(e-1,e))==cs.Word||i!=n.doc.length&&t(n.sliceDoc(i,i+1))==cs.Word)}var Met=ka.fromClass(function(){function t(n){ke(this,t),this.decorations=this.getDeco(n)}return Se(t,[{key:"update",value:function(n){(n.selectionSet||n.docChanged||n.viewportChanged)&&(this.decorations=this.getDeco(n.view))}},{key:"getDeco",value:function(n){var e=n.state.facet(vfe),i=n.state,r=i.selection;if(r.ranges.length>1)return yi.none;var o,y,_,C,S,s=r.main,a=null;if(s.empty){if(!e.highlightWordAroundCursor)return yi.none;var l=i.wordAt(s.head);if(!l)return yi.none;a=i.charCategorizer(s.head),o=i.sliceDoc(l.from,l.to)}else{var c=s.to-s.from;if(c200)return yi.none;if(e.wholeWords){if(o=i.sliceDoc(s.from,s.to),!yfe(a=i.charCategorizer(s.head),i,s.from,s.to)||(S=s.to,(y=a)((_=i).sliceDoc(C=s.from,C+1))!=cs.Word||y(_.sliceDoc(S-1,S))!=cs.Word))return yi.none}else if(!(o=i.sliceDoc(s.from,s.to).trim()))return yi.none}var u,d=[],h=Re(n.visibleRanges);try{for(h.s();!(u=h.n()).done;)for(var f=u.value,p=new R0(i.doc,o,f.from,f.to);!p.next().done;){var m=p.value,g=m.from,v=m.to;if((!a||yfe(a,i,g,v))&&(s.empty&&g<=s.from&&v>=s.to?d.push(Aet.range(g,v)):(g>=s.to||v<=s.from)&&d.push(Eet.range(g,v)),d.length>e.maxMatches))return yi.none}}catch(y){h.e(y)}finally{h.f()}return yi.set(d)}}]),t}(),{decorations:function(t){return t.decorations}}),Iet=Wn.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),sD=Qn.define({combine:function(t){return su(t,{top:!1,caseSensitive:!1,literal:!1,wholeWord:!1,createPanel:function(n){return new Vet(n)}})}});function Net(t){return t?[sD.of(t),hP]:hP}var bfe=function(){function t(n){ke(this,t),this.search=n.search,this.caseSensitive=!!n.caseSensitive,this.literal=!!n.literal,this.regexp=!!n.regexp,this.replace=n.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,nP),!0}catch{return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!n.wholeWord}return Se(t,[{key:"unquote",value:function(n){return this.literal?n:n.replace(/\\([nrt\\])/g,function(e,i){return"n"==i?"\n":"r"==i?"\r":"t"==i?"\t":"\\"})}},{key:"eq",value:function(n){return this.search==n.search&&this.replace==n.replace&&this.caseSensitive==n.caseSensitive&&this.regexp==n.regexp&&this.wholeWord==n.wholeWord}},{key:"create",value:function(){return this.regexp?new Oet(this):new Fet(this)}},{key:"getCursor",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0,r=n.doc?n:Fo.create({doc:n});return null==i&&(i=r.doc.length),this.regexp?B0(this,r,e,i):$0(this,r,e,i)}}]),t}(),_fe=Se(function t(n){ke(this,t),this.spec=n});function $0(t,n,e,i){return new R0(n.doc,t.unquoted,e,i,t.caseSensitive?void 0:function(r){return r.toLowerCase()},t.wholeWord?(r=n.doc,o=n.charCategorizer(n.selection.main.head),function(s,a,l,c){return(c>s||c+l.length=r)return null;s.push(o.value)}return s}},{key:"highlight",value:function(i,r,o,s){for(var a=$0(this.spec,i,Math.max(0,r-this.spec.unquoted.length),Math.min(o+this.spec.unquoted.length,i.doc.length));!a.next().done;)s(a.value.from,a.value.to)}}]),e}();function B0(t,n,e,i){return new ffe(n.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?(r=n.charCategorizer(n.selection.main.head),function(o,s,a){return!a[0].length||(r(aD(a.input,a.index))!=cs.Word||r(lD(a.input,a.index))!=cs.Word)&&(r(lD(a.input,a.index+a[0].length))!=cs.Word||r(aD(a.input,a.index+a[0].length))!=cs.Word)}):void 0},e,i);var r}function aD(t,n){return t.slice(Pl(t,n,!1),n)}function lD(t,n){return t.slice(n,Pl(t,n))}var Oet=function(t){wt(e,_fe);var n=Ct(e);function e(){return ke(this,e),n.apply(this,arguments)}return Se(e,[{key:"nextMatch",value:function(i,r,o){var s=B0(this.spec,i,o,i.doc.length).next();return s.done&&(s=B0(this.spec,i,0,r).next()),s.done?null:s.value}},{key:"prevMatchInRange",value:function(i,r,o){for(var s=1;;s++){for(var a=Math.max(r,o-1e4*s),l=B0(this.spec,i,a,o),c=null;!l.next().done;)c=l.value;if(c&&(a==r||c.from>a+10))return c;if(a==r)return null}}},{key:"prevMatch",value:function(i,r,o){return this.prevMatchInRange(i,0,r)||this.prevMatchInRange(i,o,i.doc.length)}},{key:"getReplacement",value:function(i){return this.spec.unquote(this.spec.replace.replace(/\$([$&\d+])/g,function(r,o){return"$"==o?"$":"&"==o?i.match[0]:"0"!=o&&+o=r)return null;s.push(o.value)}return s}},{key:"highlight",value:function(i,r,o,s){for(var a=B0(this.spec,i,Math.max(0,r-250),Math.min(o+250,i.doc.length));!a.next().done;)s(a.value.from,a.value.to)}}]),e}(),E_=hr.define(),oP=hr.define(),Cp=Va.define({create:function(t){return new sP(lP(t).create(),null)},update:function(t,n){var e,i=Re(n.effects);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.is(E_)?t=new sP(r.value.create(),t.panel):r.is(oP)&&(t=new sP(t.query,r.value?aP:null))}}catch(o){i.e(o)}finally{i.f()}return t},provide:function(t){return b_.from(t,function(n){return n.panel})}}),sP=Se(function t(n,e){ke(this,t),this.query=n,this.panel=e}),jet=yi.mark({class:"cm-searchMatch"}),Pet=yi.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Let=ka.fromClass(function(){function t(n){ke(this,t),this.view=n,this.decorations=this.highlight(n.state.field(Cp))}return Se(t,[{key:"update",value:function(n){var e=n.state.field(Cp);(e!=n.startState.field(Cp)||n.docChanged||n.selectionSet||n.viewportChanged)&&(this.decorations=this.highlight(e))}},{key:"highlight",value:function(n){var e=n.query;if(!n.panel||!e.spec.valid)return yi.none;for(var i=this.view,r=new Gm,o=0,s=i.visibleRanges,a=s.length;os[o+1].from-500;)u=s[++o].to;e.highlight(i.state,c,u,function(d,h){var f=i.state.selection.ranges.some(function(p){return p.from==d&&p.to==h});r.add(d,h,f?Pet:jet)})}return r.finish()}}]),t}(),{decorations:function(t){return t.decorations}});function A_(t){return function(n){var e=n.state.field(Cp,!1);return e&&e.query.spec.valid?t(n,e):cP(n)}}var cD=A_(function(t,n){var i=t.state.selection.main.to,r=n.query.nextMatch(t.state,i,i);return!!r&&(t.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:dP(t,r),userEvent:"select.search"}),!0)}),uD=A_(function(t,n){var i=t.state,r=i.selection.main.from,o=n.query.prevMatch(i,r,r);return!!o&&(t.dispatch({selection:{anchor:o.from,head:o.to},scrollIntoView:!0,effects:dP(t,o),userEvent:"select.search"}),!0)}),Ret=A_(function(t,n){var e=n.query.matchAll(t.state,1e3);return!(!e||!e.length||(t.dispatch({selection:en.create(e.map(function(i){return en.range(i.from,i.to)})),userEvent:"select.search.matches"}),0))}),xfe=A_(function(t,n){var e=n.query,i=t.state,r=i.selection.main,o=r.from,s=r.to;if(i.readOnly)return!1;var a=e.nextMatch(i,o,o);if(!a)return!1;var l,c,u=[],d=[];if(a.from==o&&a.to==s&&(c=i.toText(e.getReplacement(a)),u.push({from:a.from,to:a.to,insert:c}),a=e.nextMatch(i,a.from,a.to),d.push(Wn.announce.of(i.phrase("replaced match on line $",i.doc.lineAt(o).number)+"."))),a){var h=0==u.length||u[0].from>=a.to?0:a.to-a.from-c.length;l={anchor:a.from-h,head:a.to-h},d.push(dP(t,a))}return t.dispatch({changes:u,selection:l,scrollIntoView:!!l,effects:d,userEvent:"input.replace"}),!0}),$et=A_(function(t,n){var e=n.query;if(t.state.readOnly)return!1;var i=e.matchAll(t.state,1e9).map(function(o){return{from:o.from,to:o.to,insert:e.getReplacement(o)}});if(!i.length)return!1;var r=t.state.phrase("replaced $ matches",i.length)+".";return t.dispatch({changes:i,effects:Wn.announce.of(r),userEvent:"input.replace.all"}),!0});function aP(t){return t.state.facet(sD).createPanel(t)}function lP(t,n){var e,i,r,o,s=t.selection.main,a=s.empty||s.to>s.from+100?"":t.sliceDoc(s.from,s.to);if(n&&!a)return n;var l=t.facet(sD);return new bfe({search:(null!==(e=n?.literal)&&void 0!==e?e:l.literal)?a:a.replace(/\n/g,"\\n"),caseSensitive:null!==(i=n?.caseSensitive)&&void 0!==i?i:l.caseSensitive,literal:null!==(r=n?.literal)&&void 0!==r?r:l.literal,wholeWord:null!==(o=n?.wholeWord)&&void 0!==o?o:l.wholeWord})}var cP=function(t){var n=t.state.field(Cp,!1);if(n&&n.panel){var e=y_(t,aP);if(!e)return!1;var i=e.dom.querySelector("[main-field]");if(i&&i!=t.root.activeElement){var r=lP(t.state,n.query.spec);r.valid&&t.dispatch({effects:E_.of(r)}),i.focus(),i.select()}}else t.dispatch({effects:[oP.of(!0),n?E_.of(lP(t.state,n.query.spec)):hr.appendConfig.of(hP)]});return!0},uP=function(t){var n=t.state.field(Cp,!1);if(!n||!n.panel)return!1;var e=y_(t,aP);return e&&e.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:oP.of(!1)}),!0},Bet=[{key:"Mod-f",run:cP,scope:"editor search-panel"},{key:"F3",run:cD,shift:uD,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:cD,shift:uD,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:uP,scope:"editor search-panel"},{key:"Mod-Shift-l",run:function(t){var n=t.state,e=t.dispatch,i=n.selection;if(i.ranges.length>1||i.main.empty)return!1;for(var r=i.main,o=r.from,a=[],l=0,c=new R0(n.doc,n.sliceDoc(o,r.to));!c.next().done;){if(a.length>1e3)return!1;c.value.from==o&&(l=a.length),a.push(en.range(c.value.from,c.value.to))}return e(n.update({selection:en.create(a,l),userEvent:"select.search.matches"})),!0}},{key:"Alt-g",run:function(t){var n=y_(t,rP);if(!n){var e=[oD.of(!0)];null==t.state.field(gfe,!1)&&e.push(hr.appendConfig.of([gfe,Det])),t.dispatch({effects:e}),n=y_(t,rP)}return n&&n.dom.querySelector("input").focus(),!0}},{key:"Mod-d",run:function(t){var s,a,l,c,u,n=t.state,e=t.dispatch,i=n.selection.ranges;if(i.some(function(s){return s.from===s.to}))return l=(s={state:n,dispatch:e}).dispatch,!(u=en.create((c=(a=s.state).selection).ranges.map(function(d){return a.wordAt(d.head)||en.cursor(d.head)}),c.mainIndex)).eq(c)&&(l(a.update({selection:u})),!0);var r=n.sliceDoc(i[0].from,i[0].to);if(n.selection.ranges.some(function(s){return n.sliceDoc(s.from,s.to)!=r}))return!1;var o=function(s,a){for(var l=s.selection,c=l.main,u=l.ranges,d=s.wordAt(c.head),h=d&&d.from==c.from&&d.to==c.to,f=function(v,y){if(y.next(),!y.done){if(v&&u.some(function(C){return C.from==y.value.from}))return m=y,p=v,"continue";if(h){var _=s.wordAt(y.value.from);if(!_||_.from!=y.value.from||_.to!=y.value.to)return m=y,p=v,"continue"}return p=v,m=y,{v:y.value}}if(v)return m=y,p=v,{v:null};y=new R0(s.doc,a,0,Math.max(0,u[u.length-1].from-1)),p=v=!0,m=y},p=!1,m=new R0(s.doc,a,u[u.length-1].to);;){var g=f(p,m);if("continue"!==g&&"object"===bn(g))return g.v}}(n,r);return!!o&&(e(n.update({selection:n.selection.addRange(en.range(o.from,o.to),!1),effects:Wn.scrollIntoView(o.to)})),!0)},preventDefault:!0}],Vet=function(){function t(n){var e=this;ke(this,t),this.view=n;var i=this.query=n.state.field(Cp).query.spec;function r(o,s,a){return Oo("button",{class:"cm-button",name:o,onclick:s,type:"button"},a)}this.commit=this.commit.bind(this),this.searchField=Oo("input",{value:i.search,placeholder:Ac(n,"Find"),"aria-label":Ac(n,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Oo("input",{value:i.replace,placeholder:Ac(n,"Replace"),"aria-label":Ac(n,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Oo("input",{type:"checkbox",name:"case",form:"",checked:i.caseSensitive,onchange:this.commit}),this.reField=Oo("input",{type:"checkbox",name:"re",form:"",checked:i.regexp,onchange:this.commit}),this.wordField=Oo("input",{type:"checkbox",name:"word",form:"",checked:i.wholeWord,onchange:this.commit}),this.dom=Oo("div",{onkeydown:function(o){return e.keydown(o)},class:"cm-search"},[this.searchField,r("next",function(){return cD(n)},[Ac(n,"next")]),r("prev",function(){return uD(n)},[Ac(n,"previous")]),r("select",function(){return Ret(n)},[Ac(n,"all")]),Oo("label",null,[this.caseField,Ac(n,"match case")]),Oo("label",null,[this.reField,Ac(n,"regexp")]),Oo("label",null,[this.wordField,Ac(n,"by word")])].concat(si(n.state.readOnly?[]:[Oo("br"),this.replaceField,r("replace",function(){return xfe(n)},[Ac(n,"replace")]),r("replaceAll",function(){return $et(n)},[Ac(n,"replace all")])]),[Oo("button",{name:"close",onclick:function(){return uP(n)},"aria-label":Ac(n,"close"),type:"button"},["\xd7"])]))}return Se(t,[{key:"commit",value:function(){var n=new bfe({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});n.eq(this.query)||(this.query=n,this.view.dispatch({effects:E_.of(n)}))}},{key:"keydown",value:function(n){!function(e,i,r){return bde(yde(e.state),i,e,"search-panel")}(this.view,n)?13==n.keyCode&&n.target==this.searchField?(n.preventDefault(),(n.shiftKey?uD:cD)(this.view)):13==n.keyCode&&n.target==this.replaceField&&(n.preventDefault(),xfe(this.view)):n.preventDefault()}},{key:"update",value:function(n){var e,i=Re(n.transactions);try{for(i.s();!(e=i.n()).done;){var r,o=Re(e.value.effects);try{for(o.s();!(r=o.n()).done;){var s=r.value;s.is(E_)&&!s.value.eq(this.query)&&this.setQuery(s.value)}}catch(a){o.e(a)}finally{o.f()}}}catch(a){i.e(a)}finally{i.f()}}},{key:"setQuery",value:function(n){this.query=n,this.searchField.value=n.search,this.replaceField.value=n.replace,this.caseField.checked=n.caseSensitive,this.reField.checked=n.regexp,this.wordField.checked=n.wholeWord}},{key:"mount",value:function(){this.searchField.select()}},{key:"pos",get:function(){return 80}},{key:"top",get:function(){return this.view.state.facet(sD).top}}]),t}();function Ac(t,n){return t.state.phrase(n)}var dD=/[\s\.,:;?!]/;function dP(t,n){var e=n.from,i=n.to,r=t.state.doc.lineAt(e),o=t.state.doc.lineAt(i).to,s=Math.max(r.from,e-30),a=Math.min(o,i+30),l=t.state.sliceDoc(s,a);if(s!=r.from)for(var c=0;c<30;c++)if(!dD.test(l[c+1])&&dD.test(l[c])){l=l.slice(c);break}if(a!=o)for(var u=l.length-1;u>l.length-30;u--)if(!dD.test(l[u-1])&&dD.test(l[u])){l=l.slice(0,u);break}return Wn.announce.of("".concat(t.state.phrase("current match"),". ").concat(l," ").concat(t.state.phrase("on line")," ").concat(r.number,"."))}var Het=Wn.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),hP=[Cp,k0.lowest(Let),Het],wfe=function(){function t(n,e,i){ke(this,t),this.state=n,this.pos=e,this.explicit=i,this.abortListeners=[]}return Se(t,[{key:"tokenBefore",value:function(n){for(var e=hl(this.state).resolveInner(this.pos,-1);e&&n.indexOf(e.name)<0;)e=e.parent;return e?{from:e.from,to:this.pos,text:this.state.sliceDoc(e.from,this.pos),type:e.type}:null}},{key:"matchBefore",value:function(n){var e=this.state.doc.lineAt(this.pos),i=Math.max(e.from,this.pos-250),r=e.text.slice(i-e.from,this.pos-e.from),o=r.search(Sfe(n,!1));return o<0?null:{from:i+o,to:this.pos,text:r.slice(o)}}},{key:"aborted",get:function(){return null==this.abortListeners}},{key:"addEventListener",value:function(n,e){"abort"==n&&this.abortListeners&&this.abortListeners.push(e)}}]),t}();function Cfe(t){var n=Object.keys(t).join(""),e=/\w/.test(n);return e&&(n=n.replace(/\w/g,"")),"[".concat(e?"\\w":"").concat(n.replace(/[^\w\s]/g,"\\$&"),"]")}var kfe=Se(function t(n,e,i){ke(this,t),this.completion=n,this.source=e,this.match=i});function kp(t){return t.selection.main.head}function Sfe(t,n){var e,i=t.source,r=n&&"^"!=i[0],o="$"!=i[i.length-1];return r||o?new RegExp("".concat(r?"^":"","(?:").concat(i,")").concat(o?"$":""),null!==(e=t.flags)&&void 0!==e?e:t.ignoreCase?"i":""):t}function Dfe(t,n){var r,o,s,a,e=n.completion.apply||n.completion.label,i=n.source;"string"==typeof e?t.dispatch((r=t.state,o=e,s=i.from,a=i.to,Object.assign(Object.assign({},r.changeByRange(function(l){if(l==r.selection.main)return{changes:{from:s,to:a,insert:o},range:en.cursor(s+o.length)};var c=a-s;return!l.empty||c&&r.sliceDoc(l.from-c,l.from)!=r.sliceDoc(s,a)?{range:l}:{changes:{from:l.from-c,to:l.from,insert:o},range:en.cursor(l.from-c+o.length)}})),{userEvent:"input.complete"}))):e(t,n.completion,i.from,i.to)}var Tfe=new WeakMap;function Uet(t){if(!Array.isArray(t))return t;var n=Tfe.get(t);return n||Tfe.set(t,n=function zet(t){var n=t.map(function(s){return"string"==typeof s?{label:s}:s}),i=Un(n.every(function(s){return/^\w+$/.test(s.label)})?[/\w*$/,/\w+$/]:function(s){var a,l=Object.create(null),c=Object.create(null),u=Re(s);try{for(u.s();!(a=u.n()).done;){var d=a.value.label;l[d[0]]=!0;for(var h=1;h=48&&R<=57||R>=97&&R<=122?2:R>=65&&R<=90?1:0:(z=S4(R))!=z.toLowerCase()?1:z!=z.toUpperCase()?2:0;(!M||1==U&&C||0==G&&0!=U)&&(e[m]==R||i[m]==R&&(g=!0)?s[m++]=M:s.length&&(S=!1)),G=U,M+=Sc(R)}return m==c&&0==s[0]&&S?this.result((g?-200:0)-100,s,n):v==c&&0==y?[-200-n.length,0,_]:l>-1?[-700-n.length,l,l+this.pattern.length]:v==c?[-900-n.length,y,_]:m==c?this.result((g?-200:0)-100-700+(S?0:-1100),s,n):2==e.length?null:this.result((r[0]?-700:0)-200-1100,r,n)}},{key:"result",value:function(n,e,i){var r,o=[n-i.length],s=1,a=Re(e);try{for(a.s();!(r=a.n()).done;){var l=r.value,c=l+(this.astral?Sc(Ba(i,l)):1);s>1&&o[s-1]==l?o[s-1]=c:(o[s++]=l,o[s++]=c)}}catch(u){a.e(u)}finally{a.f()}return o}}]),t}(),_h=Qn.define({combine:function(t){return su(t,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,optionClass:function(){return""},aboveCursor:!1,icons:!0,addToOptions:[],compareCompletions:function(n,e){return n.label.localeCompare(e.label)}},{defaultKeymap:function(n,e){return n&&e},closeOnBlur:function(n,e){return n&&e},icons:function(n,e){return n&&e},optionClass:function(n,e){return function(i){return r=n(i),o=e(i),r?o?r+" "+o:r:o;var r,o}},addToOptions:function(n,e){return n.concat(e)}})}});function Efe(t,n,e){if(t<=e)return{from:0,to:t};if(n<0&&(n=0),n<=t>>1){var i=Math.floor(n/e);return{from:i*e,to:(i+1)*e}}var r=Math.floor((t-n)/e);return{from:t-(r+1)*e,to:t-r*e}}var Wet=function(){function t(n,e){var i=this;ke(this,t),this.view=n,this.stateField=e,this.info=null,this.placeInfo={read:function(){return i.measureInfo()},write:function(c){return i.positionInfo(c)},key:this};var c,u,r=n.state.field(e),o=r.open,s=o.options,a=o.selected,l=n.state.facet(_h);this.optionContent=(u=(c=l).addToOptions.slice(),c.icons&&u.push({render:function(d){var h,f=document.createElement("div");return f.classList.add("cm-completionIcon"),d.type&&(h=f.classList).add.apply(h,si(d.type.split(/\s+/g).map(function(p){return"cm-completionIcon-"+p}))),f.setAttribute("aria-hidden","true"),f},position:20}),u.push({render:function(d,h,f){var p=document.createElement("span");p.className="cm-completionLabel";for(var m=d.label,g=0,v=1;vg&&p.appendChild(document.createTextNode(m.slice(g,y)));var C=p.appendChild(document.createElement("span"));C.appendChild(document.createTextNode(m.slice(y,_))),C.className="cm-completionMatchedText",g=_}return g=this.range.to)&&(this.range=Efe(i.options.length,i.selected,this.view.state.facet(_h).maxRenderedOptions),this.list.remove(),this.list=this.dom.appendChild(this.createListBox(i.options,e.id,this.range)),this.list.addEventListener("scroll",function(){n.info&&n.view.requestMeasure(n.placeInfo)})),this.updateSelectedOption(i.selected)){this.info&&(this.info.remove(),this.info=null);var r=i.options[i.selected].completion,o=r.info;if(!o)return;var s="string"==typeof o?document.createTextNode(o):o(r);if(!s)return;"then"in s?s.then(function(a){a&&n.view.state.field(n.stateField,!1)==e&&n.addInfoPane(a)}).catch(function(a){return Ec(n.view.state,a,"completion info")}):this.addInfoPane(s)}}},{key:"addInfoPane",value:function(n){var e=this.info=document.createElement("div");e.className="cm-tooltip cm-completionInfo",e.appendChild(n),this.dom.appendChild(e),this.view.requestMeasure(this.placeInfo)}},{key:"updateSelectedOption",value:function(n){for(var e=null,i=this.list.firstChild,r=this.range.from;i;i=i.nextSibling,r++)r==n?i.hasAttribute("aria-selected")||(i.setAttribute("aria-selected","true"),e=i):i.hasAttribute("aria-selected")&&i.removeAttribute("aria-selected");return e&&(s=e,a=(o=this.list).getBoundingClientRect(),(l=s.getBoundingClientRect()).topa.bottom&&(o.scrollTop+=l.bottom-a.bottom)),e;var o,s,a,l}},{key:"measureInfo",value:function(){var n=this.dom.querySelector("[aria-selected]");if(!n||!this.info)return null;var e=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),r=n.getBoundingClientRect();if(r.top>Math.min(innerHeight,e.bottom)-10||r.bottom=this.options.length?this:new t(this.options,Mfe(e,n),this.tooltip,this.timestamp,n)}},{key:"map",value:function(n){return new t(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:n.mapPos(this.tooltip.pos)}),this.timestamp,this.selected)}}],[{key:"build",value:function(n,e,i,r,o){var s=function(d,h){var f,p=[],m=0,g=Re(d);try{for(g.s();!(f=g.n()).done;){var v=f.value;if(v.hasResult())if(!1===v.result.filter){var y,_=v.result.getMatch,C=Re(v.result.options);try{for(C.s();!(y=C.n()).done;){var S=y.value,M=[1e9-m++];if(_){var $,G=Re(_(S));try{for(G.s();!($=G.n()).done;)M.push($.value)}catch(F){G.e(F)}finally{G.f()}}p.push(new kfe(S,v,M))}}catch(F){C.e(F)}finally{C.f()}}else{var z,U=new Get(h.sliceDoc(v.from,v.to)),q=void 0,re=Re(v.result.options);try{for(re.s();!(z=re.n()).done;){var L=z.value;(q=U.match(L.label))&&(null!=L.boost&&(q[0]+=L.boost),p.push(new kfe(L,v,q)))}}catch(F){re.e(F)}finally{re.f()}}}}catch(F){g.e(F)}finally{g.f()}var X,Z=[],H=null,he=h.facet(_h).compareCompletions,E=Re(p.sort(function(F,Y){return Y.match[0]-F.match[0]||he(F.completion,Y.completion)}));try{for(E.s();!(X=E.n()).done;){var N=X.value;!H||H.label!=N.completion.label||H.detail!=N.completion.detail||null!=H.type&&null!=N.completion.type&&H.type!=N.completion.type||H.apply!=N.completion.apply?Z.push(N):Afe(N.completion)>Afe(H)&&(Z[Z.length-1]=N),H=N.completion}}catch(F){E.e(F)}finally{E.f()}return Z}(n,e);if(!s.length)return null;var a,l=e.facet(_h).selectOnOpen?0:-1;if(r&&r.selected!=l&&-1!=r.selected)for(var c=r.options[r.selected].completion,u=0;u-1&&(e["aria-activedescendant"]=t+"-"+n),e}var Jet=[];function fP(t){return t.isUserEvent("input.type")?"input":t.isUserEvent("delete.backward")?"delete":null}var Jm=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;ke(this,t),this.source=n,this.state=e,this.explicitPos=i}return Se(t,[{key:"hasResult",value:function(){return!1}},{key:"update",value:function(n,e){var i=fP(n),r=this;i?r=r.handleUserEvent(n,i,e):n.docChanged?r=r.handleChange(n):n.selection&&0!=r.state&&(r=new t(r.source,0));var o,s=Re(n.effects);try{for(s.s();!(o=s.n()).done;){var a=o.value;if(a.is(pP))r=new t(r.source,1,a.value?kp(n.state):-1);else if(a.is(hD))r=new t(r.source,0);else if(a.is(Ife)){var l,c=Re(a.value);try{for(c.s();!(l=c.n()).done;){var u=l.value;u.source==r.source&&(r=u)}}catch(d){c.e(d)}finally{c.f()}}}}catch(d){s.e(d)}finally{s.f()}return r}},{key:"handleUserEvent",value:function(n,e,i){return"delete"!=e&&i.activateOnTyping?new t(this.source,1):this.map(n.changes)}},{key:"handleChange",value:function(n){return n.changes.touchesRange(kp(n.startState))?new t(this.source,0):this.map(n.changes)}},{key:"map",value:function(n){return n.empty||this.explicitPos<0?this:new t(this.source,this.state,n.mapPos(this.explicitPos))}}]),t}(),Ket=function(t){wt(e,Jm);var n=Ct(e);function e(i,r,o,s,a){var l;return ke(this,e),(l=n.call(this,i,2,r)).result=o,l.from=s,l.to=a,l}return Se(e,[{key:"hasResult",value:function(){return!0}},{key:"handleUserEvent",value:function(i,r,o){var s,a=i.changes.mapPos(this.from),l=i.changes.mapPos(this.to,1),c=kp(i.state);if((this.explicitPos<0?c<=a:cl||"delete"==r&&kp(i.startState)==this.from)return new Jm(this.source,"input"==r&&o.activateOnTyping?1:0);var u,d=this.explicitPos<0?-1:i.changes.mapPos(this.explicitPos);return function(h,f,p,m){if(!h)return!1;var g=f.sliceDoc(p,m);return"function"==typeof h?h(g,p,m,f):Sfe(h,!0).test(g)}(this.result.validFor,i.state,a,l)?new e(this.source,d,this.result,a,l):this.result.update&&(u=this.result.update(this.result,a,l,new wfe(i.state,c,d>=0)))?new e(this.source,d,u,u.from,null!==(s=u.to)&&void 0!==s?s:kp(i.state)):new Jm(this.source,1,d)}},{key:"handleChange",value:function(i){return i.changes.touchesRange(this.from,this.to)?new Jm(this.source,0):this.map(i.changes)}},{key:"map",value:function(i){return i.empty?this:new e(this.source,this.explicitPos<0?-1:i.mapPos(this.explicitPos),this.result,i.mapPos(this.from),i.mapPos(this.to,1))}}]),e}(),pP=hr.define(),hD=hr.define(),Ife=hr.define({map:function(t,n){return t.map(function(e){return e.map(n)})}}),Nfe=hr.define(),uu=Va.define({create:function(){return Xet.start()},update:function(t,n){return t.update(n)},provide:function(t){return[NS.from(t,function(n){return n.tooltip}),Wn.contentAttributes.from(t,function(n){return n.attrs})]}});function fD(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"option";return function(e){var i=e.state.field(uu,!1);if(!i||!i.open||Date.now()-i.open.timestamp<75)return!1;var r,o=1;"page"==n&&(r=function KQe(t,n){var e=t.plugin(Ode);if(!e)return null;var i=e.manager.tooltips.indexOf(n);return i<0?null:e.manager.tooltipViews[i]}(e,i.open.tooltip))&&(o=Math.max(2,Math.floor(r.dom.offsetHeight/r.dom.querySelector("li").offsetHeight)-1));var s=i.open.options.length,a=i.open.selected>-1?i.open.selected+o*(t?1:-1):t?0:s-1;return a<0?a="page"==n?0:s-1:a>=s&&(a="page"==n?s-1:0),e.dispatch({effects:Nfe.of(a)}),!0}}var Qet=Se(function t(n,e){ke(this,t),this.active=n,this.context=e,this.time=Date.now(),this.updates=[],this.done=void 0}),Zet=ka.fromClass(function(){function t(n){ke(this,t),this.view=n,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;var e,i=Re(n.state.field(uu).active);try{for(i.s();!(e=i.n()).done;){var r=e.value;1==r.state&&this.startQuery(r)}}catch(o){i.e(o)}finally{i.f()}}return Se(t,[{key:"update",value:function(n){var e=this,i=n.state.field(uu);if(n.selectionSet||n.docChanged||n.startState.field(uu)!=i){for(var r=n.transactions.some(function(p){return(p.selection||p.docChanged)&&!fP(p)}),o=0;o50&&Date.now()-s.time>1e3){var a,l=Re(s.context.abortListeners);try{for(l.s();!(a=l.n()).done;){var c=a.value;try{c()}catch(p){Ec(this.view.state,p)}}}catch(p){l.e(p)}finally{l.f()}s.context.abortListeners=null,this.running.splice(o--,1)}else{var u;(u=s.updates).push.apply(u,si(n.transactions))}}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=i.active.some(function(p){return 1==p.state&&!e.running.some(function(m){return m.active.source==p.source})})?setTimeout(function(){return e.startUpdate()},50):-1,0!=this.composing){var d,h=Re(n.transactions);try{for(h.s();!(d=h.n()).done;){var f=d.value;"input"==fP(f)?this.composing=2:2==this.composing&&f.selection&&(this.composing=3)}}catch(p){h.e(p)}finally{h.f()}}}}},{key:"startUpdate",value:function(){var n=this;this.debounceUpdate=-1;var e,i=Re(this.view.state.field(uu).active);try{var r=function(){var o=e.value;1!=o.state||n.running.some(function(s){return s.active.source==o.source})||n.startQuery(o)};for(i.s();!(e=i.n()).done;)r()}catch(o){i.e(o)}finally{i.f()}}},{key:"startQuery",value:function(n){var e=this,i=this.view.state,r=kp(i),o=new wfe(i,r,n.explicitPos==r),s=new Qet(n,o);this.running.push(s),Promise.resolve(n.source(o)).then(function(a){s.context.aborted||(s.done=a||null,e.scheduleAccept())},function(a){e.view.dispatch({effects:hD.of(null)}),Ec(e.view.state,a)})}},{key:"scheduleAccept",value:function(){var n=this;this.running.every(function(e){return void 0!==e.done})?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(function(){return n.accept()},50))}},{key:"accept",value:function(){var n,e=this;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;for(var i=[],r=this.view.state.facet(_h),o=function(a){var l=e.running[a];if(void 0===l.done)return s=a,"continue";if(e.running.splice(a--,1),l.done){var c,u=new Ket(l.active.source,l.active.explicitPos,l.done,l.done.from,null!==(n=l.done.to)&&void 0!==n?n:kp(l.updates.length?l.updates[0].startState:e.view.state)),d=Re(l.updates);try{for(d.s();!(c=d.n()).done;)u=u.update(c.value,r)}catch(y){d.e(y)}finally{d.f()}if(u.hasResult())return i.push(u),s=a,"continue"}var f=e.view.state.field(uu).active.find(function(y){return y.source==l.active.source});if(f&&1==f.state)if(null==l.done){var p,m=new Jm(l.active.source,0),g=Re(l.updates);try{for(g.s();!(p=g.n()).done;)m=m.update(p.value,r)}catch(y){g.e(y)}finally{g.f()}1!=m.state&&i.push(m)}else e.startQuery(f);s=a},s=0;s ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",listStyle:"none",margin:0,padding:0,"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer",padding:"1px 3px",lineHeight:1.2}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"300px"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25cb'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25cc'"}},".cm-completionIcon-variable":{"&:after":{content:"'\u{1d465}'"}},".cm-completionIcon-constant":{"&:after":{content:"'\u{1d436}'"}},".cm-completionIcon-type":{"&:after":{content:"'\u{1d461}'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222a'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25a1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\u{1f511}\ufe0e'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25a2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),pD={brackets:["(","[","{","'",'"'],before:")]}:;>"},Km=hr.define({map:function(t,n){return n.mapPos(t,-1,Ll.TrackAfter)??void 0}}),mP=hr.define({map:function(t,n){return n.mapPos(t)}}),gP=new(function(t){wt(e,Um);var n=Ct(e);function e(){return ke(this,e),n.apply(this,arguments)}return Se(e)}());gP.startSide=1,gP.endSide=-1;var Ffe=Va.define({create:function(){return Go.empty},update:function(t,n){if(n.selection){var e=n.state.doc.lineAt(n.selection.main.head).from,i=n.startState.doc.lineAt(n.startState.selection.main.head).from;e!=n.changes.mapPos(i,-1)&&(t=Go.empty)}t=t.map(n.changes);var r,o=Re(n.effects);try{var s=function(){var a=r.value;a.is(Km)?t=t.update({add:[gP.range(a.value,a.value+1)]}):a.is(mP)&&(t=t.update({filter:function(l){return l!=a.value}}))};for(o.s();!(r=o.n()).done;)s()}catch(a){o.e(a)}finally{o.f()}return t}});function Ofe(t){for(var n=0;n<8;n+=2)if("()[]{}<>".charCodeAt(n)==t)return"()[]{}<>".charAt(n+1);return S4(t<128?t:t+1)}function jfe(t,n){return t.languageDataAt("closeBrackets",n)[0]||pD}var ttt="object"==(typeof navigator>"u"?"undefined":bn(navigator))&&/Android\b/.test(navigator.userAgent),ntt=Wn.inputHandler.of(function(t,n,e,i){if((ttt?t.composing:t.compositionStarted)||t.state.readOnly)return!1;var r=t.state.selection.main;if(i.length>2||2==i.length&&1==Sc(Ba(i,0))||n!=r.from||e!=r.to)return!1;var o=function(s,a){var l,c=jfe(s,s.selection.main.head),u=c.brackets||pD.brackets,d=Re(u);try{for(d.s();!(l=d.n()).done;){var h=l.value,f=Ofe(Ba(h,0));if(a==h)return f==h?stt(s,h,u.indexOf(h+h+h)>-1):rtt(s,h,f,c.before||pD.before);if(a==f&&Pfe(s,s.selection.main.from))return ott(s,0,f)}}catch(p){d.e(p)}finally{d.f()}return null}(t.state,i);return!!o&&(t.dispatch(o),!0)}),itt=[{key:"Backspace",run:function(t){var n=t.state,e=t.dispatch;if(n.readOnly)return!1;var i=jfe(n,n.selection.main.head).brackets||pD.brackets,r=null,o=n.changeByRange(function(s){if(s.empty){var a,l=Sc(Ba(f=(d=n.doc).sliceString((h=s.head)-2,h),0))==f.length?f:f.slice(1),c=Re(i);try{for(c.s();!(a=c.n()).done;){var u=a.value;if(u==l&&mD(n.doc,s.head)==Ofe(Ba(u,0)))return{changes:{from:s.head-u.length,to:s.head+u.length},range:en.cursor(s.head-u.length),userEvent:"delete.backward"}}}catch(d){c.e(d)}finally{c.f()}}var d,h,f;return{range:r=s}});return r||e(n.update(o,{scrollIntoView:!0})),!r}}];function Pfe(t,n){var e=!1;return t.field(Ffe).between(0,t.doc.length,function(i){i==n&&(e=!0)}),e}function mD(t,n){var e=t.sliceString(n,n+2);return e.slice(0,Sc(Ba(e,0)))}function rtt(t,n,e,i){var r=null,o=t.changeByRange(function(s){if(!s.empty)return{changes:[{insert:n,from:s.from},{insert:e,from:s.to}],effects:Km.of(s.to+n.length),range:en.range(s.anchor+n.length,s.head+n.length)};var a=mD(t.doc,s.head);return!a||/\s/.test(a)||i.indexOf(a)>-1?{changes:{insert:n+e,from:s.head},effects:Km.of(s.head+n.length),range:en.cursor(s.head+n.length)}:{range:r=s}});return r?null:t.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function ott(t,n,e){var i=null,r=t.selection.ranges.map(function(o){return o.empty&&mD(t.doc,o.head)==e?en.cursor(o.head+e.length):i=o});return i?null:t.update({selection:en.create(r,t.selection.mainIndex),scrollIntoView:!0,effects:t.selection.ranges.map(function(o){return mP.of(o.from)})})}function stt(t,n,e){var i=null,r=t.changeByRange(function(o){if(!o.empty)return{changes:[{insert:n,from:o.from},{insert:n,from:o.to}],effects:Km.of(o.to+n.length),range:en.range(o.anchor+n.length,o.head+n.length)};var s=o.head,a=mD(t.doc,s);if(a==n){if(Lfe(t,s))return{changes:{insert:n+n,from:s},effects:Km.of(s+n.length),range:en.cursor(s+n.length)};if(Pfe(t,s)){var l=e&&t.sliceDoc(s,s+3*n.length)==n+n+n;return{range:en.cursor(s+n.length*(l?3:1)),effects:mP.of(s)}}}else{if(e&&t.sliceDoc(s-2*n.length,s)==n+n&&Lfe(t,s-2*n.length))return{changes:{insert:n+n+n+n,from:s},effects:Km.of(s+n.length),range:en.cursor(s+n.length)};if(t.charCategorizer(s)(a)!=cs.Word){var c=t.sliceDoc(s-1,s);if(c!=n&&t.charCategorizer(s)(c)!=cs.Word&&!function(u,d,h){for(var f=hl(u).resolveInner(d,-1),p=0;p<5;p++){if(u.sliceDoc(f.from,f.from+h.length)==h){for(var m=f.firstChild;m&&m.from==f.from&&m.to-m.from>h.length;){if(u.sliceDoc(m.to-h.length,m.to)==h)return!1;m=m.firstChild}return!0}var g=f.to==d&&f.parent;if(!g)break;f=g}return!1}(t,s,n))return{changes:{insert:n+n,from:s},effects:Km.of(s+n.length),range:en.cursor(s+n.length)}}}return{range:i=o}});return i?null:t.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function Lfe(t,n){var e=hl(t).resolveInner(n+1);return e.parent&&e.from==n}function att(){return[uu,_h.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Zet,ltt,ett]}var Rfe=[{key:"Ctrl-Space",run:function(t){return!!t.state.field(uu,!1)&&(t.dispatch({effects:pP.of(!0)}),!0)}},{key:"Escape",run:function(t){var n=t.state.field(uu,!1);return!(!n||!n.active.some(function(e){return 0!=e.state})||(t.dispatch({effects:hD.of(null)}),0))}},{key:"ArrowDown",run:fD(!0)},{key:"ArrowUp",run:fD(!1)},{key:"PageDown",run:fD(!0,"page")},{key:"PageUp",run:fD(!1,"page")},{key:"Enter",run:function(t){var n=t.state.field(uu,!1);return!(t.state.readOnly||!n||!n.open||Date.now()-n.open.timestamp<75||n.open.selected<0||(Dfe(t,n.open.options[n.open.selected]),0))}}],ltt=k0.highest(AS.computeN([_h],function(t){return t.facet(_h).defaultKeymap?[Rfe]:[]})),ctt=Se(function t(n,e,i){ke(this,t),this.from=n,this.to=e,this.diagnostic=i}),M_=function(){function t(n,e,i){ke(this,t),this.diagnostics=n,this.panel=e,this.selected=i}return Se(t,null,[{key:"init",value:function(n,e,i){var r=n,o=i.facet(Qm).markerFilter;o&&(r=o(r));var s=yi.set(r.map(function(a){return a.from==a.to||a.from==a.to-1&&i.doc.lineAt(a.from).to==a.from?yi.widget({widget:new ptt(a),diagnostic:a}).range(a.from):yi.mark({attributes:{class:"cm-lintRange cm-lintRange-"+a.severity},diagnostic:a}).range(a.from,a.to)}),!0);return new t(s,e,V0(s))}}]),t}();function V0(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=null;return t.between(arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,1e9,function(r,o,s){var a=s.spec;if(!n||a.diagnostic==n)return i=new ctt(r,o,a.diagnostic),!1}),i}function $fe(t,n){return!(!t.effects.some(function(e){return e.is(gD)})&&!t.changes.touchesRange(n.pos))}function Bfe(t,n){return t.field(Mc,!1)?n:n.concat(hr.appendConfig.of([Mc,Wn.decorations.compute([Mc],function(e){var i=e.field(Mc),r=i.selected;return r&&i.panel&&r.from!=r.to?yi.set([utt.range(r.from,r.to)]):yi.none}),JQe(dtt,{hideOn:$fe}),mtt]))}var gD=hr.define(),vP=hr.define(),Vfe=hr.define(),Mc=Va.define({create:function(){return new M_(yi.none,null,null)},update:function(t,n){if(n.docChanged){var e=t.diagnostics.map(n.changes),i=null;if(t.selected){var r=n.changes.mapPos(t.selected.from,1);i=V0(e,t.selected.diagnostic,r)||V0(e,null,r)}t=new M_(e,t.panel,i)}var o,s=Re(n.effects);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.is(gD)?t=M_.init(a.value,t.panel,n.state):a.is(vP)?t=new M_(t.diagnostics,a.value?qfe.open:null,t.selected):a.is(Vfe)&&(t=new M_(t.diagnostics,t.panel,a.value))}}catch(l){s.e(l)}finally{s.f()}return t},provide:function(t){return[b_.from(t,function(n){return n.panel}),Wn.decorations.from(t,function(n){return n.diagnostics})]}}),utt=yi.mark({class:"cm-lintRange cm-lintRange-active"});function dtt(t,n,e){var i=t.state.field(Mc).diagnostics,r=[],o=2e8,s=0;i.between(n-(e<0?1:0),n+(e>0?1:0),function(l,c,u){n>=l&&n<=c&&(l==c||(n>l||e>0)&&(n=65&&i.keyCode<=90&&e.selectedIndex>=0))return;for(var r=e.items[e.selectedIndex].diagnostic,o=Ufe(r.actions),s=0;so&&(n.items.splice(o,f-o),s=!0)),r&&d.diagnostic==r.diagnostic?d.dom.hasAttribute("aria-selected")||(d.dom.setAttribute("aria-selected","true"),a=d):d.dom.hasAttribute("aria-selected")&&d.dom.removeAttribute("aria-selected"),o++});ou.bottom&&(n.list.scrollTop+=c.bottom-u.bottom)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),s&&this.sync()}},{key:"sync",value:function(){var n=this.list.firstChild;function e(){var s=n;n=s.nextSibling,s.remove()}var i,r=Re(this.items);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.dom.parentNode==this.list){for(;n!=o.dom;)e();n=o.dom.nextSibling}else this.list.insertBefore(o.dom,n)}}catch(s){r.e(s)}finally{r.f()}for(;n;)e()}},{key:"moveSelection",value:function(n){if(!(this.selectedIndex<0)){var e=V0(this.view.state.field(Mc).diagnostics,this.items[n].diagnostic);e&&this.view.dispatch({selection:{anchor:e.from,head:e.to},scrollIntoView:!0,effects:Vfe.of(e)})}}}],[{key:"open",value:function(n){return new t(n)}}]),t}();function vD(t){return'url(\'data:image/svg+xml,1&&void 0!==arguments[1]?arguments[1]:'viewBox="0 0 40 40"',">").concat(encodeURIComponent(t),"')")}function yP(t){return vD(''),'width="6" height="3"')}var mtt=Wn.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:yP("#d11")},".cm-lintRange-warning":{backgroundImage:yP("orange")},".cm-lintRange-info":{backgroundImage:yP("#999")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),gtt=function(t){wt(e,ph);var n=Ct(e);function e(i){var r;return ke(this,e),(r=n.call(this)).diagnostics=i,r.severity=i.reduce(function(o,s){var a=s.severity;return"error"==a||"warning"==a&&"info"==o?a:o},"info"),r}return Se(e,[{key:"toDOM",value:function(i){var r=document.createElement("div");r.className="cm-lint-marker cm-lint-marker-"+this.severity;var o=this.diagnostics,s=i.state.facet(yD).tooltipFilter;return s&&(o=s(o)),o.length&&(r.onmouseover=function(){return function(a,l,c){function u(){var p,m,f=a.elementAtHeight(l.getBoundingClientRect().top+5-a.documentTop);a.coordsAtPos(f.from)&&a.dispatch({effects:bP.of({pos:f.from,above:!1,create:function(){return{dom:Hfe(a,c),getCoords:function(){return l.getBoundingClientRect()}}}})}),l.onmouseout=l.onmousemove=null,p=a,m=l,window.addEventListener("mousemove",function v(y){var _=m.getBoundingClientRect();if(!(y.clientX>_.left-10&&y.clientX<_.right+10&&y.clientY>_.top-10&&y.clientY<_.bottom+10)){for(var C=y.target;C;C=C.parentNode)if(1==C.nodeType&&C.classList.contains("cm-tooltip-lint"))return;window.removeEventListener("mousemove",v),p.state.field(Yfe)&&p.dispatch({effects:bP.of(null)})}})}var d=a.state.facet(yD).hoverTime,h=setTimeout(u,d);l.onmouseout=function(){clearTimeout(h),l.onmouseout=l.onmousemove=null},l.onmousemove=function(){clearTimeout(h),h=setTimeout(u,d)}}(i,r,o)}),r}}]),e}();function vtt(t,n){var e,i=Object.create(null),r=Re(n);try{for(r.s();!(e=r.n()).done;){var o=e.value,s=t.lineAt(o.from);(i[s.from]||(i[s.from]=[])).push(o)}}catch(c){r.e(c)}finally{r.f()}var a=[];for(var l in i)a.push(new gtt(i[l]).range(+l));return Go.of(a,!0)}var ytt=$de({class:"cm-gutter-lint",markers:function(t){return t.state.field(Xfe)}}),Xfe=Va.define({create:function(){return Go.empty},update:function(t,n){t=t.map(n.changes);var e,i=n.state.facet(yD).markerFilter,r=Re(n.effects);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(o.is(gD)){var s=o.value;i&&(s=i(s||[])),t=vtt(n.state.doc,s.slice(0))}}}catch(a){r.e(a)}finally{r.f()}return t}}),bP=hr.define(),Yfe=Va.define({create:function(){return null},update:function(t,n){return t&&n.docChanged&&(t=$fe(n,t)?null:Object.assign(Object.assign({},t),{pos:n.changes.mapPos(t.pos)})),n.effects.reduce(function(e,i){return i.is(bP)?i.value:e},t)},provide:function(t){return NS.from(t)}}),btt=Wn.baseTheme({".cm-gutter-lint":{width:"1.4em","& .cm-gutterElement":{padding:".2em"}},".cm-lint-marker":{width:"1em",height:"1em"},".cm-lint-marker-info":{content:vD('')},".cm-lint-marker-warning":{content:vD('')},".cm-lint-marker-error":{content:vD('')}}),yD=Qn.define({combine:function(t){return su(t,{hoverTime:300,markerFilter:null,tooltipFilter:null})}});function _tt(){return[yD.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Xfe,ytt,btt,Yfe]}var Jfe,xtt=function(){return[rZe(),sZe,FQe(),cet(),jZe(),SQe(),[v_,AQe],Fo.allowMultipleSelections.of(!0),Fo.transactionFilter.of(function(e){if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;var i=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!i.length)return e;var r=e.newDoc,o=e.newSelection.main.head,s=r.lineAt(o);if(o>s.from+200)return e;var a=r.sliceString(s.from,o);if(!i.some(function(y){return y.test(a)}))return e;var l,c=e.state,u=-1,d=[],h=Re(c.selection.ranges);try{for(h.s();!(l=h.n()).done;){var p=c.doc.lineAt(l.value.head);if(p.from!=u){u=p.from;var m=Rj(c,p.from);if(null!=m){var g=/^\s*/.exec(p.text)[0],v=S_(c,m);g!=v&&d.push({from:p.from,to:p.from+g.length,insert:v})}}}}catch(y){h.e(y)}finally{h.f()}return d.length?[e,{changes:d,sequential:!0}]:e}),bhe($Ze,{fallback:!0}),WZe(),[ntt,Ffe],att(),BQe(),zQe(),RQe,(n=[Iet,Met],n),AS.of([].concat(itt,si(Cet),Bet,vet,NZe,Rfe,htt))];var n}(),wtt=function(){function t(n,e,i,r,o,s,a,l,c){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,d=arguments.length>10?arguments[10]:void 0;ke(this,t),this.p=n,this.stack=e,this.state=i,this.reducePos=r,this.pos=o,this.score=s,this.buffer=a,this.bufferBase=l,this.curContext=c,this.lookAhead=u,this.parent=d}return Se(t,[{key:"toString",value:function(){return"[".concat(this.stack.filter(function(n,e){return e%3==0}).concat(this.state),"]@").concat(this.pos).concat(this.score?"!"+this.score:"")}},{key:"context",get:function(){return this.curContext?this.curContext.context:null}},{key:"pushState",value:function(n,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=n}},{key:"reduce",value:function(n){var e=n>>19,i=65535&n,r=this.p.parser,o=r.dynamicPrecedence(i);if(o&&(this.score+=o),0==e)return this.pushState(r.getGoto(this.state,i,!0),this.reducePos),is;)this.stack.pop();this.reduceContext(i,a)}},{key:"storeNode",value:function(n,e,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:4,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(0==n&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==s.buffer[a-4]&&s.buffer[a-1]>-1){if(e==i)return;if(s.buffer[a-2]>=e)return void(s.buffer[a-2]=i)}}if(o&&this.pos!=i){var l=this.buffer.length;if(l>0&&0!=this.buffer[l-4])for(;l>0&&this.buffer[l-2]>i;)this.buffer[l]=this.buffer[l-4],this.buffer[l+1]=this.buffer[l-3],this.buffer[l+2]=this.buffer[l-2],this.buffer[l+3]=this.buffer[l-1],l-=4,r>4&&(r-=4);this.buffer[l]=n,this.buffer[l+1]=e,this.buffer[l+2]=i,this.buffer[l+3]=r}else this.buffer.push(n,e,i,r)}},{key:"shift",value:function(n,e,i){var r=this.pos;if(131072&n)this.pushState(65535&n,this.pos);else if(262144&n)this.pos=i,this.shiftContext(e,r),e<=this.p.parser.maxNode&&this.buffer.push(e,r,i,4);else{var o=n,s=this.p.parser;(i>this.pos||e<=s.maxNode)&&(this.pos=i,s.stateFlag(o,1)||(this.reducePos=i)),this.pushState(o,r),this.shiftContext(e,r),e<=s.maxNode&&this.buffer.push(e,r,i,4)}}},{key:"apply",value:function(n,e,i){65536&n?this.reduce(n):this.shift(n,e,i)}},{key:"useNode",value:function(n,e){var i=this.p.reused.length-1;(i<0||this.p.reused[i]!=n)&&(this.p.reused.push(n),i++);var r=this.pos;this.reducePos=this.pos=r+n.length,this.pushState(e,r),this.buffer.push(i,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,n,this,this.p.stream.reset(this.pos-n.length)))}},{key:"split",value:function(){for(var n=this,e=n.buffer.length;e>0&&n.buffer[e-2]>n.reducePos;)e-=4;for(var i=n.buffer.slice(e),r=n.bufferBase+e;n&&r==n.bufferBase;)n=n.parent;return new t(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,r,this.curContext,this.lookAhead,n)}},{key:"recoverByDelete",value:function(n,e){var i=n<=this.p.parser.maxNode;i&&this.storeNode(n,this.pos,e,4),this.storeNode(0,this.pos,e,i?8:4),this.pos=this.reducePos=e,this.score-=190}},{key:"canShift",value:function(n){for(var e=new Ctt(this);;){var i=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,n);if(!(65536&i))return!0;if(0==i)return!1;e.reduce(i)}}},{key:"recoverByInsert",value:function(n){if(this.stack.length>=300)return[];var e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){for(var i,r=[],o=0;o>19);if(o<0||e.getGoto(this.stack[o],65535&n,!1)<0)return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}},{key:"forceAll",value:function(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}},{key:"deadEnd",get:function(){if(3!=this.stack.length)return!1;var n=this.p.parser;return 65535==n.data[n.stateSlot(this.state,1)]&&!n.stateSlot(this.state,4)}},{key:"restart",value:function(){this.state=this.stack[0],this.stack.length=0}},{key:"sameState",value:function(n){if(this.state!=n.state||this.stack.length!=n.stack.length)return!1;for(var e=0;ethis.lookAhead&&(this.emitLookAhead(),this.lookAhead=n)}},{key:"close",value:function(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}],[{key:"start",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=n.parser.context;return new t(n,[],e,i,i,0,[],0,r?new Kfe(r,r.start):null,0,null)}}]),t}(),Kfe=Se(function t(n,e){ke(this,t),this.tracker=n,this.context=e,this.hash=n.strict?n.hash(e):0});!function(t){t[t.Insert=200]="Insert",t[t.Delete=190]="Delete",t[t.Reduce=100]="Reduce",t[t.MaxNext=4]="MaxNext",t[t.MaxInsertStackDepth=300]="MaxInsertStackDepth",t[t.DampenInsertStackDepth=120]="DampenInsertStackDepth"}(Jfe||(Jfe={}));var Ctt=function(){function t(n){ke(this,t),this.start=n,this.state=n.state,this.stack=n.stack,this.base=this.stack.length}return Se(t,[{key:"reduce",value:function(n){var e=65535&n,i=n>>19;0==i?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(i-1);var r=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=r}}]),t}(),ktt=function(){function t(n,e,i){ke(this,t),this.stack=n,this.pos=e,this.index=i,this.buffer=n.buffer,0==this.index&&this.maybeNext()}return Se(t,[{key:"maybeNext",value:function(){var n=this.stack.parent;null!=n&&(this.index=this.stack.bufferBase-n.bufferBase,this.stack=n,this.buffer=n.buffer)}},{key:"id",get:function(){return this.buffer[this.index-4]}},{key:"start",get:function(){return this.buffer[this.index-3]}},{key:"end",get:function(){return this.buffer[this.index-2]}},{key:"size",get:function(){return this.buffer[this.index-1]}},{key:"next",value:function(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}},{key:"fork",value:function(){return new t(this.stack,this.pos,this.index)}}],[{key:"create",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.bufferBase+n.buffer.length;return new t(n,e,e-n.bufferBase)}}]),t}(),bD=Se(function t(){ke(this,t),this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}),Qfe=new bD,Stt=function(){function t(n,e){ke(this,t),this.input=n,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Qfe,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}return Se(t,[{key:"resolveOffset",value:function(n,e){for(var i=this.range,r=this.rangeIndex,o=this.pos+n;oi.to:o>=i.to;){if(r==this.ranges.length-1)return null;var a=this.ranges[++r];o+=a.from-i.to,i=a}return o}},{key:"clipPos",value:function(n){if(n>=this.range.from&&nn)return Math.max(n,r.from)}}catch(o){i.e(o)}finally{i.f()}return this.end}},{key:"peek",value:function(n){var e,i,r=this.chunkOff+n;if(r>=0&&r=this.chunk2Pos&&ea.to&&(this.chunk2=this.chunk2.slice(0,a.to-e)),i=this.chunk2.charCodeAt(0)}}return e>=this.token.lookAhead&&(this.token.lookAhead=e+1),i}},{key:"acceptToken",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=e?this.resolveOffset(e,-1):this.pos;if(null==i||i=this.chunk2Pos&&this.posthis.range.to?i.slice(0,this.range.to-this.pos):i,this.chunkPos=this.pos,this.chunkOff=0}}},{key:"readNext",value:function(){return this.next=this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?-1:this.chunk.charCodeAt(this.chunkOff)}},{key:"advance",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;for(this.chunkOff+=n;this.pos+n>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();n-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=n,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}},{key:"setDone",value:function(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}},{key:"reset",value:function(n,e){if(e?(this.token=e,e.start=n,e.lookAhead=n+1,e.value=e.extended=-1):this.token=Qfe,this.pos!=n){if(this.pos=n,n==this.end)return this.setDone(),this;for(;n=this.range.to;)this.range=this.ranges[++this.rangeIndex];n>=this.chunkPos&&n=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(n-this.chunkPos,e-this.chunkPos);if(n>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(n-this.chunk2Pos,e-this.chunk2Pos);if(n>=this.range.from&&e<=this.range.to)return this.input.read(n,e);var i,r="",o=Re(this.ranges);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(s.from>=e)break;s.to>n&&(r+=this.input.read(Math.max(s.from,n),Math.min(s.to,e)))}}catch(a){o.e(a)}finally{o.f()}return r}}]),t}(),_D=function(){function t(n,e){ke(this,t),this.data=n,this.id=e}return Se(t,[{key:"token",value:function(n,e){!function(i,r,o,s){var a=0,l=1<0){var f=i[h];if(u.allows(f)&&(-1==r.token.value||r.token.value==f||c.overrides(f,r.token.value))){r.acceptToken(f);break}}var p=r.next,m=0,g=i[a+2];if(!(r.next<0&&g>m&&65535==i[d+3*g-3])){for(;m>1,y=d+v+(v<<1);if(p=i[y+1])){a=i[y+2],r.advance();continue e}m=v+1}}break}a=i[d+3*g-1]}}(this.data,n,e,this.id)}}]),t}();function xD(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Uint16Array;if("string"!=typeof t)return t;for(var e=null,i=0,r=0;i=92&&s--,s>=34&&s--;var l=s-32;if(l>=46&&(l-=46,a=!0),o+=l,a)break;o*=46}e?e[r++]=o:e=new n(o)}return e}_D.prototype.contextual=_D.prototype.fallback=_D.prototype.extend=!1;var Zfe,cd=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG),_P=null;function epe(t,n,e){var i=t.cursor(za.IncludeAnonymous);for(i.moveTo(n);;)if(!(e<0?i.childBefore(n):i.childAfter(n)))for(;;){if((e<0?i.ton)&&!i.type.isError)return e<0?Math.max(0,Math.min(i.to-1,n-25)):Math.min(t.length,Math.max(i.from+1,n+25));if(e<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return e<0?0:t.length}}!function(t){t[t.Margin=25]="Margin"}(Zfe||(Zfe={}));var tpe,Dtt=function(){function t(n,e){ke(this,t),this.fragments=n,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}return Se(t,[{key:"nextFragment",value:function(){var n=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(n){for(this.safeFrom=n.openStart?epe(n.tree,n.from+n.offset,1)-n.offset:n.from,this.safeTo=n.openEnd?epe(n.tree,n.to+n.offset,-1)-n.offset:n.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(n.tree),this.start.push(-n.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}},{key:"nodeAt",value:function(n){if(nn)return this.nextStart=s,null;if(o instanceof Ua){if(s==n){if(s=Math.max(this.safeFrom,n)&&(this.trees.push(o),this.start.push(s),this.index.push(0))}else this.index[e]++,this.nextStart=s+o.length}else this.trees.pop(),this.start.pop(),this.index.pop()}}}]),t}(),Ttt=function(){function t(n,e){ke(this,t),this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=n.tokenizers.map(function(i){return new bD})}return Se(t,[{key:"getActions",value:function(n){for(var e=0,i=null,r=n.p.parser,o=r.tokenizers,s=r.stateSlot(n.state,3),a=n.curContext?n.curContext.hash:0,l=0,c=0;cd.end+25&&(l=Math.max(d.lookAhead,l)),0!=d.value)){var h=e;if(d.extended>-1&&(e=this.addActions(n,d.extended,d.end,e)),e=this.addActions(n,d.value,d.end,e),!u.extend&&(i=d,e>h))break}}for(;this.actions.length>e;)this.actions.pop();return l&&n.setLookAhead(l),i||n.pos!=this.stream.end||((i=new bD).value=n.p.parser.eofTerm,i.start=i.end=n.pos,e=this.addActions(n,i.value,i.end,e)),this.mainToken=i,this.actions}},{key:"getMainToken",value:function(n){if(this.mainToken)return this.mainToken;var e=new bD,i=n.pos,r=n.p;return e.start=i,e.end=Math.min(i+1,r.stream.end),e.value=i==r.stream.end?r.parser.eofTerm:0,e}},{key:"updateCachedToken",value:function(n,e,i){var r=this.stream.clipPos(i.pos);if(e.token(this.stream.reset(r,n),i),n.value>-1){for(var o=i.p.parser,s=0;s=0&&i.p.parser.dialect.allows(a>>1)){1&a?n.extended=a>>1:n.value=a>>1;break}}}else n.value=0,n.end=this.stream.clipPos(r+1)}},{key:"putAction",value:function(n,e,i,r){for(var o=0;o4*n.bufferLength?new Dtt(i,n.nodeSet):null}return Se(t,[{key:"parsedPos",get:function(){return this.minStackPos}},{key:"advance",value:function(){for(var n,e,i=this.stacks,r=this.minStackPos,o=this.stacks=[],s=0;sr)o.push(a);else{if(this.advanceStack(a,o,i))continue;n||(n=[],e=[]),n.push(a);var l=this.tokens.getMainToken(a);e.push(l.value,l.end)}break}if(!o.length){var c=n&&function(v){var y,_=null,C=Re(v);try{for(C.s();!(y=C.n()).done;){var S=y.value,M=S.p.stoppedAt;(S.pos==S.p.stream.end||null!=M&&S.pos>M)&&S.p.parser.stateFlag(S.state,2)&&(!_||_.scorethis.stoppedAt?n[0]:this.runRecovery(n,e,o);if(u)return this.stackToTree(u.forceAll())}if(this.recovering){var d=1==this.recovering?1:3*this.recovering;if(o.length>d)for(o.sort(function(v,y){return y.score-v.score});o.length>d;)o.pop();o.some(function(v){return v.reducePos>r})&&this.recovering--}else if(o.length>1)e:for(var h=0;h500&&m.buffer.length>500){if(!((f.score-m.score||f.buffer.length-m.buffer.length)>0)){o.splice(h--,1);continue e}o.splice(p--,1)}}this.minStackPos=o[0].pos;for(var g=1;g ":"";if(null!=this.stoppedAt&&r>this.stoppedAt)return n.forceReduce()?n:null;if(this.fragments)for(var a=n.curContext&&n.curContext.tracker.strict,l=a?n.curContext.hash:0,c=this.fragments.nodeAt(r);c;){var u=this.parser.nodeSet.types[c.type.id]==c.type?o.getGoto(n.state,c.type.id):-1;if(u>-1&&c.length&&(!a||(c.prop(gr.contextHash)||0)==l))return n.useNode(c,u),cd&&console.log(s+this.stackID(n)+" (via reuse of ".concat(o.getName(c.type.id),")")),!0;if(!(c instanceof Ua)||0==c.children.length||c.positions[0]>0)break;var d=c.children[0];if(!(d instanceof Ua&&0==c.positions[0]))break;c=d}var h=o.stateSlot(n.state,4);if(h>0)return n.reduce(h),cd&&console.log(s+this.stackID(n)+" (via always-reduce ".concat(o.getName(65535&h),")")),!0;if(n.stack.length>=15e3)for(;n.stack.length>9e3&&n.forceReduce(););for(var f=this.tokens.getActions(n),p=0;pr?e.push(_):i.push(_)}return!1}},{key:"advanceFully",value:function(n,e){for(var i=n.pos;;){if(!this.advanceStack(n,null,null))return!1;if(n.pos>i)return npe(n,e),!0}}},{key:"runRecovery",value:function(n,e,i){for(var r=null,o=!1,s=0;s ":"";if(!a.deadEnd||!o&&(o=!0,a.restart(),cd&&console.log(u+this.stackID(a)+" (restarted)"),!this.advanceFully(a,i))){for(var d=a.split(),h=u,f=0;d.forceReduce()&&f<10&&(cd&&console.log(h+this.stackID(d)+" (via force-reduce)"),!this.advanceFully(d,i));f++)cd&&(h=this.stackID(d)+" -> ");var p,m=Re(a.recoverByInsert(l));try{for(m.s();!(p=m.n()).done;){var g=p.value;cd&&console.log(u+this.stackID(g)+" (via recover-insert)"),this.advanceFully(g,i)}}catch(v){m.e(v)}finally{m.f()}this.stream.end>a.pos?(c==a.pos&&(c++,l=0),a.recoverByDelete(l,c),cd&&console.log(u+this.stackID(a)+" (via recover-delete ".concat(this.parser.getName(l),")")),npe(a,i)):(!r||r.score=0)d(v,m,p[g++]);else{for(var y=p[g+-v],_=-v;_>0;_--)d(p[g++],m,y);g++}}}}catch(M){f.e(M)}finally{f.f()}}o.nodeSet=new cZe(s.map(function(M,$){return au.define({name:$>=o.minRepeatTerm?void 0:M,id:$,props:c[$],top:l.indexOf($)>-1,error:0==$,skipped:i.skippedNodes&&i.skippedNodes.indexOf($)>-1})})),i.propSources&&(o.nodeSet=(r=o.nodeSet).extend.apply(r,si(i.propSources))),o.strict=!1,o.bufferLength=1024;var C=xD(i.tokenData);o.context=i.context,o.specializerSpecs=i.specialized||[],o.specialized=new Uint16Array(o.specializerSpecs.length);for(var S=0;S2&&void 0!==arguments[2]&&arguments[2],s=this.goto;if(r>=s[0])return-1;for(var a=s[r+1];;){var l=s[a++],c=1&l,u=s[a++];if(c&&o)return u;for(var d=a+(l>>1);a0}},{key:"validAction",value:function(i,r){if(r==this.stateSlot(i,4))return!0;for(var o=this.stateSlot(i,1);;o+=3){if(65535==this.data[o]){if(1!=this.data[o+1])return!1;o=hf(this.data,o+2)}if(r==hf(this.data,o+1))return!0}}},{key:"nextStates",value:function(i){for(var r=this,o=[],s=this.stateSlot(i,1);;s+=3){if(65535==this.data[s]){if(1!=this.data[s+1])break;s=hf(this.data,s+2)}!(1&this.data[s+2])&&function(){var a=r.data[s+1];o.some(function(l,c){return 1&c&&l==a})||o.push(r.data[s],a)}()}return o}},{key:"overrides",value:function(i,r){var o=ipe(this.data,this.tokenPrecTable,r);return o<0||ipe(this.data,this.tokenPrecTable,i)0}},{key:"getName",value:function(i){return this.termNames?this.termNames[i]:String(i<=this.maxNode&&this.nodeSet.types[i].name||i)}},{key:"eofTerm",get:function(){return this.maxNode+1}},{key:"topNode",get:function(){return this.nodeSet.types[this.top[1]]}},{key:"dynamicPrecedence",value:function(i){var r=this.dynamicPrecedences;return null==r?0:r[i]||0}},{key:"parseDialect",value:function(i){var r=Object.keys(this.dialects),o=r.map(function(){return!1});if(i){var s,a=Re(i.split(" "));try{for(a.s();!(s=a.n()).done;){var c=r.indexOf(s.value);c>=0&&(o[c]=!0)}}catch(p){a.e(p)}finally{a.f()}}for(var u=null,d=0;d0&&ape(t);return{c:function(){n=be("div"),r&&r.c(),e=it(),o&&o.c(),i=it(),s&&s.c(),P(n,"class","jse-status-bar svelte-1oo7hnc")},m:function(a,l){Pe(a,n,l),r&&r.m(n,null),de(n,e),o&&o.m(n,null),de(n,i),s&&s.m(n,null)},p:function(a,l){var c=Un(l,1)[0];void 0!==a[0]?r?r.p(a,c):((r=ope(a)).c(),r.m(n,e)):r&&(r.d(1),r=null),void 0!==a[1]?o?o.p(a,c):((o=spe(a)).c(),o.m(n,i)):o&&(o.d(1),o=null),void 0!==a[2]&&a[2]>0?s?s.p(a,c):((s=ape(a)).c(),s.m(n,null)):s&&(s.d(1),s=null)},i:Lt,o:Lt,d:function(a){a&&je(n),r&&r.d(),o&&o.d(),s&&s.d()}}}function Ptt(t,n,e){var i,r,o,s,a,l=n.editorState;return t.$$set=function(c){"editorState"in c&&e(3,l=c.editorState)},t.$$.update=function(){var c,u,d,h,f,p,m,g;8&t.$$.dirty&&e(4,i=null===(c=l)||void 0===c||null===(u=c.selection)||void 0===u||null===(d=u.main)||void 0===d?void 0:d.head),24&t.$$.dirty&&e(5,r=null===(h=l)||void 0===h||null===(f=h.doc)||void 0===f?void 0:f.lineAt(i)),32&t.$$.dirty&&e(0,o=r?r.number:void 0),48&t.$$.dirty&&e(1,s=r?i-r.from+1:void 0),8&t.$$.dirty&&e(2,a=null===(p=l)||void 0===p||null===(m=p.selection)||void 0===m||null===(g=m.ranges)||void 0===g?void 0:g.reduce(function(v,y){return v+y.to-y.from},0))},[o,s,a,l,i,r]}var Ltt=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,Ptt,jtt,ys,{editorState:3},Ott),r}return Se(e)}(),xP=Bj.define([{tag:fn.propertyName,color:"var(--jse-key-color)"},{tag:fn.number,color:"var(--jse-value-color-number)"},{tag:fn.bool,color:"var(--jse-value-color-boolean)"},{tag:fn.string,color:"var(--jse-value-color-string)"},{tag:fn.keyword,color:"var(--jse-value-color-null)"}]),Rtt=bhe(xP),$tt=xP.style;function wP(t){return t.doc.lineAt(t.selection.main.head)}function lpe(t,n){var e=0;e:for(var i=0;i=r.level?i.level:i.empty&&0===i.level&&0!==r.level?0:r.level>i.level?i.level+1:r.level)}var o=lpe(n.text,this.state.tabSize),s=Math.floor(o/this.unitWidth);return this.set(n,o,s)}},{key:"closestNonEmpty",value:function(n,e){for(var i=n.number+e;-1===e?i>=1:i<=this.state.doc.lines;){if(this.has(i)){var r=this.get(i);if(!r.empty)return r}var o=this.state.doc.line(i);if(o.text.trim().length){var s=lpe(o.text,this.state.tabSize),a=Math.floor(s/this.unitWidth);return this.set(o,s,a)}i+=e}var l=this.state.doc.line(-1===e?1:this.state.doc.lines);return this.set(l,0,0)}},{key:"findAndSetActiveLines",value:function(){var n=wP(this.state);if(this.has(n)){var e=this.get(n);if(this.has(e.line.number+1)){var i=this.get(e.line.number+1);i.level>e.level&&(e=i)}if(this.has(e.line.number-1)){var r=this.get(e.line.number-1);r.level>e.level&&(e=r)}if(0!==e.level){var o,s;for(e.active=e.level,o=e.line.number;o>1;o--)if(this.has(o-1)){var a=this.get(o-1);if(a.level1&&void 0!==arguments[1]?arguments[1]:d.state,p=new Set,m=Re(d.visibleRanges);try{for(m.s();!(h=m.n()).done;)for(var g=h.value,y=g.to,_=g.from;_<=y;){var C=f.doc.lineAt(_);p.has(C)||p.add(C),_=C.to+1}}catch(S){m.e(S)}finally{m.f()}return p}(this.view,n),o=new Btt(r,n,this.unitWidth),s=n.facet(wD).hideFirstIndent,a=Re(r);try{for(a.s();!(e=a.n()).done;){var l=e.value,c=o.get(l.number);if(c?.level){var u=Htt(c,this.unitWidth,s);i.add(l.from,l.from,yi.line({class:"cm-indent-markers",attributes:{style:"--indent-markers: ".concat(u)}}))}}}catch(d){a.e(d)}finally{a.f()}this.decorations=i.finish()}}]),t}();function Utt(){return[wD.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Vtt,ka.fromClass(ztt,{decorations:function(n){return n.decorations}})]}function Gtt(t){pi(t,"svelte-1yqirn0",'.jse-text-mode.svelte-1yqirn0.svelte-1yqirn0{flex:1;box-sizing:border-box;display:flex;flex-direction:column;background:var(--jse-background-color)}.jse-text-mode.no-main-menu.svelte-1yqirn0.svelte-1yqirn0{border-top:var(--jse-main-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0{flex:1;display:flex;position:relative;flex-direction:column;overflow:hidden;min-width:0;min-height:0;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0:last-child{border-bottom:var(--jse-main-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.jse-hidden.svelte-1yqirn0{visibility:hidden;position:absolute;top:0;left:0}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor{flex:1;overflow:hidden}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-scroller{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);line-height:var(--jse-line-height);color:var(--jse-delimiter-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-gutters{background:var(--jse-panel-background);color:var(--jse-panel-color-readonly);border-right:var(--jse-panel-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-activeLine,.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-activeLineGutter{background:var(--jse-active-line-background-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-selectionBackground{background:var(--jse-selection-background-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-searchMatch{background-color:var(--jse-search-match-color);outline:var(--jse-search-match-outline)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-searchMatch.cm-searchMatch-selected{background-color:var(--jse-search-match-active-color);outline:var(--jse-search-match-active-outline)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-selectionMatch{background-color:var(--jse-search-match-background-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-foldPlaceholder{background:var(--jse-tag-background);color:var(--jse-tag-color);border:none;padding:0 var(--jse-padding)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-tooltip{font-size:var(--jse-font-size);font-family:var(--jse-font-family);color:var(--jse-tooltip-color);background:var(--jse-tooltip-background);border:var(--jse-tooltip-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-diagnosticAction{background:var(--jse-tooltip-action-button-color);background:var(--jse-tooltip-action-button-background)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-panels{border-bottom:var(--jse-panel-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search{background:var(--jse-panel-background);color:var(--jse-panel-color);font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search input{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);color:var(--jse-input-color);border:var(--jse-input-border);background:var(--jse-input-background);margin-right:2px}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search button{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);color:var(--jse-panel-button-color);background:var(--jse-panel-button-background);border:none;cursor:pointer;text-transform:capitalize;padding:calc(0.5 * var(--jse-padding)) var(--jse-padding);margin:0}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search button:hover{color:var(--jse-panel-button-color-highlight);background:var(--jse-panel-button-background-highlight)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search label{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);padding-left:var(--jse-padding)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search label input{margin-right:2px}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search button[name="close"]{width:32px;height:32px;font-size:24px;line-height:24px;padding:0;right:0;top:-4px}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-cursor-primary{border-color:var(--jse-text-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents .jse-loading-space.svelte-1yqirn0{flex:1}.jse-text-mode.svelte-1yqirn0 .jse-contents .jse-loading.svelte-1yqirn0{flex:2;text-align:center;color:var(--jse-panel-color-readonly);box-sizing:border-box;font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-text-mode.svelte-1yqirn0 .jse-contents.jse-preview.svelte-1yqirn0{flex:1;color:var(--jse-panel-color-readonly);overflow:auto;white-space:pre-wrap;word-break:break-word;padding:2px}')}function CP(t){var n=t.slice();return n[93]=0===n[10].length,n}function cpe(t){var n,e;return n=new hKe({props:{readOnly:t[0],onFormat:t[16],onCompact:t[17],onSort:t[18],onTransform:t[19],onToggleSearch:t[20],onUndo:t[21],onRedo:t[22],canFormat:!t[93],canCompact:!t[93],canSort:!t[93],canTransform:!t[93],canUndo:t[11],canRedo:t[12],onRenderMenu:t[3]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};1&r[0]&&(o.readOnly=i[0]),1024&r[0]&&(o.canFormat=!i[93]),1024&r[0]&&(o.canCompact=!i[93]),1024&r[0]&&(o.canSort=!i[93]),1024&r[0]&&(o.canTransform=!i[93]),2048&r[0]&&(o.canUndo=i[11]),4096&r[0]&&(o.canRedo=i[12]),8&r[0]&&(o.onRenderMenu=i[3]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function Wtt(t){var n;return{c:function(){(n=be("div")).innerHTML='
    \n
    loading...
    ',P(n,"class","jse-contents svelte-1yqirn0")},m:function(e,i){Pe(e,n,i)},p:Lt,i:Lt,o:Lt,d:function(e){e&&je(n)}}}function qtt(t){var n,e,i,r,o,s=t[92]&&upe(t),a=!t[92]&&dpe(t);return{c:function(){n=be("div"),e=it(),s&&s.c(),i=it(),a&&a.c(),r=_r(),P(n,"class","jse-contents svelte-1yqirn0"),Mt(n,"jse-hidden",t[92])},m:function(l,c){Pe(l,n,c),t[50](n),Pe(l,e,c),s&&s.m(l,c),Pe(l,i,c),a&&a.m(l,c),Pe(l,r,c),o=!0},p:function(l,c){(!o||134218880&c[0])&&Mt(n,"jse-hidden",l[92]),l[92]?s?(s.p(l,c),1152&c[0]&&Q(s,1)):((s=upe(l)).c(),Q(s,1),s.m(i.parentNode,i)):s&&($t(),ce(s,1,1,function(){s=null}),Bt()),l[92]?a&&($t(),ce(a,1,1,function(){a=null}),Bt()):a?(a.p(l,c),1152&c[0]&&Q(a,1)):((a=dpe(l)).c(),Q(a,1),a.m(r.parentNode,r))},i:function(l){o||(Q(s),Q(a),o=!0)},o:function(l){ce(s),ce(a),o=!1},d:function(l){l&&je(n),t[50](null),l&&je(e),s&&s.d(l),l&&je(i),a&&a.d(l),l&&je(r)}}}function upe(t){var n,e,i,r,o,s=oh(t[10]||"",2e4)+"";return n=new nd({props:{icon:$m,type:"error",message:"The JSON document is larger than ".concat(sS(10485760,1024),", ")+"and may crash your browser when loading it in text mode. Actual size: ".concat(sS(t[10].length,1024),"."),actions:[{text:"Open anyway",title:"Open the document in text mode. This may freeze or crash your browser.",onClick:t[23]},{text:"Open in tree mode",title:"Open the document in tree mode. Tree mode can handle large documents.",onClick:t[24]},{text:"Cancel",title:"Cancel opening this large document.",onClick:t[25]}]}}),{c:function(){mt(n.$$.fragment),e=it(),i=be("div"),r=tn(s),P(i,"class","jse-contents jse-preview svelte-1yqirn0")},m:function(a,l){ft(n,a,l),Pe(a,e,l),Pe(a,i,l),de(i,r),o=!0},p:function(a,l){var c={};1024&l[0]&&(c.message="The JSON document is larger than ".concat(sS(10485760,1024),", ")+"and may crash your browser when loading it in text mode. Actual size: ".concat(sS(a[10].length,1024),".")),n.$set(c),(!o||1024&l[0])&&s!==(s=oh(a[10]||"",2e4)+"")&&qn(r,s)},i:function(a){o||(Q(n.$$.fragment,a),o=!0)},o:function(a){ce(n.$$.fragment,a),o=!1},d:function(a){pt(n,a),a&&je(e),a&&je(i)}}}function dpe(t){var n,e,i,r,o,s=!t[13]&&t[8]&&hoe(t[10]),a=t[2]&&hpe(t),l=t[13]&&fpe(t),c=s&&ppe(t);return r=new l4({props:{validationErrors:t[9],selectError:t[26]}}),{c:function(){a&&a.c(),n=it(),l&&l.c(),e=it(),c&&c.c(),i=it(),mt(r.$$.fragment)},m:function(u,d){a&&a.m(u,d),Pe(u,n,d),l&&l.m(u,d),Pe(u,e,d),c&&c.m(u,d),Pe(u,i,d),ft(r,u,d),o=!0},p:function(u,d){u[2]?a?(a.p(u,d),4&d[0]&&Q(a,1)):((a=hpe(u)).c(),Q(a,1),a.m(n.parentNode,n)):a&&($t(),ce(a,1,1,function(){a=null}),Bt()),u[13]?l?(l.p(u,d),8192&d[0]&&Q(l,1)):((l=fpe(u)).c(),Q(l,1),l.m(e.parentNode,e)):l&&($t(),ce(l,1,1,function(){l=null}),Bt()),9472&d[0]&&(s=!u[13]&&u[8]&&hoe(u[10])),s?c?(c.p(u,d),9472&d[0]&&Q(c,1)):((c=ppe(u)).c(),Q(c,1),c.m(i.parentNode,i)):c&&($t(),ce(c,1,1,function(){c=null}),Bt());var h={};512&d[0]&&(h.validationErrors=u[9]),r.$set(h)},i:function(u){o||(Q(a),Q(l),Q(c),Q(r.$$.fragment,u),o=!0)},o:function(u){ce(a),ce(l),ce(c),ce(r.$$.fragment,u),o=!1},d:function(u){a&&a.d(u),u&&je(n),l&&l.d(u),u&&je(e),c&&c.d(u),u&&je(i),pt(r,u)}}}function hpe(t){var n,e;return n=new Ltt({props:{editorState:t[6]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};64&r[0]&&(o.editorState=i[6]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function fpe(t){var n,e;return n=new nd({props:{type:"error",icon:$m,message:t[13].message,actions:t[14],onClick:t[28]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};8192&r[0]&&(o.message=i[13].message),16384&r[0]&&(o.actions=i[14]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function ppe(t){var n,e;return n=new nd({props:{type:"success",message:"Do you want to format the JSON?",actions:[{icon:m4,text:"Format",title:"Format JSON: add proper indentation and new lines (Ctrl+I)",onClick:t[16]},{icon:p0,text:"No thanks",title:"Close this message",onClick:t[51]}]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};256&r[0]&&(o.actions=[{icon:m4,text:"Format",title:"Format JSON: add proper indentation and new lines (Ctrl+I)",onClick:i[16]},{icon:p0,text:"No thanks",title:"Close this message",onClick:i[51]}]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function Xtt(t){var n,e,i,r,o,s=t[1]&&cpe(CP(t)),l=[];function c(u,d){return 0===d?(p=(f=u.slice())[27](f[10],f[7]),f[92]=p,f):u;var f,p}return r=l[i=t[15]?1:0]=[qtt,Wtt][i](c(t,i)),{c:function(){n=be("div"),s&&s.c(),e=it(),r.c(),P(n,"class","jse-text-mode svelte-1yqirn0"),Mt(n,"no-main-menu",!t[1])},m:function(u,d){Pe(u,n,d),s&&s.m(n,null),de(n,e),l[i].m(n,null),t[52](n),o=!0},p:function(u,d){u[1]?s?(s.p(CP(u),d),2&d[0]&&Q(s,1)):((s=cpe(CP(u))).c(),Q(s,1),s.m(n,e)):s&&($t(),ce(s,1,1,function(){s=null}),Bt()),r.p(c(u,i),d),(!o||2&d[0])&&Mt(n,"no-main-menu",!u[1])},i:function(u){o||(Q(s),Q(r),o=!0)},o:function(u){ce(s),ce(r),o=!1},d:function(u){u&&je(n),s&&s.d(),l[i].d(),t[52](null)}}}function mpe(t){return{from:t.from||0,to:t.to||0,message:t.message||"",actions:t.actions,severity:t.severity}}function Ytt(t,n,e){var i,r,o,s,a,l,c=n.readOnly,u=n.mainMenuBar,d=n.statusBar,h=n.externalContent,f=n.indentation,p=n.tabSize,m=n.escapeUnicodeCharacters,g=n.parser,v=n.validator,y=n.validationParser,_=n.onChange,C=n.onChangeMode,S=n.onError,M=n.onFocus,$=n.onBlur,G=n.onRenderMenu,R=n.onSortModal,z=n.onTransformModal,U=wa("jsoneditor:TextMode"),q={key:"Mod-i",run:ie,shift:Ie,preventDefault:!0},re=typeof window>"u";U("isSSR:",re);var L=!1,X=!0,Z=[],H=new hp,he=new hp,E=new hp,N=new hp,F=new hp,Y=new hp,V=h,oe=Fk(V,f,g),fe=m;Wc(Zi(vn().mark(function gt(){return vn().wrap(function(On){for(;;)switch(On.prev=On.next){case 0:if(!re){On.next=2;break}return On.abrupt("return");case 2:try{s=ci({target:o,initialText:jo(oe,L)?"":i.escapeValue(oe),readOnly:c,indentation:f})}catch(ai){console.error(ai)}case 3:case"end":return On.stop()}},gt)}))),Hu(function(){s&&(U("Destroy CodeMirror editor"),s.destroy())});var Ne=!1,xe=!1,tt=ep(),ze=ep();function ot(){s&&(U("focus"),s.focus())}var B=!1;function ne(gt){U("patch",gt);var On=g.parse(oe),ai=Yu(On,gt),bi=NQ(On,gt);return Fr({text:g.stringify(ai,null,f)}),{json:ai,previousJson:On,undo:bi,redo:gt}}function ie(){if(U("format"),c)return!1;try{var gt=g.parse(oe);return Fr({text:g.stringify(gt,null,f)}),e(8,X=!0),!0}catch(On){S(On)}return!1}function Ie(){if(U("compact"),c)return!1;try{var gt=g.parse(oe);return Fr({text:g.stringify(gt)}),e(8,X=!1),!0}catch(On){S(On)}return!1}function Ye(){if(U("repair"),!c)try{Fr({text:Yd(oe)}),e(49,Fn="valid"),e(13,xt=null)}catch(gt){S(gt)}}function Le(gt){var On=gt.id,ai=gt.rootPath,bi=gt.onTransform,Er=gt.onClose;try{var qr=g.parse(oe);B=!0,z({id:On||ze,json:qr,rootPath:ai||[],onTransform:function(ao){bi?bi({operations:ao,json:qr,transformedJson:Yu(qr,ao)}):(U("onTransform",ao),ne(ao))},onClose:function(){B=!1,ot(),Er&&Er()}})}catch(ao){S(ao)}}function _t(gt,On){U("setSelection",{anchor:gt,head:On}),s&&s.dispatch(s.state.update({selection:{anchor:gt,head:On},scrollIntoView:!0}))}function At(gt,On){if(1===On.state.selection.ranges.length){var ai=On.state.selection.ranges[0],bi=oe.slice(ai.from,ai.to);if("{"===bi||"["===bi){var Er=O2.parse(oe),qr=Object.keys(Er.pointers).find(function(Js){var vr;return(null===(vr=Er.pointers[Js].value)||void 0===vr?void 0:vr.pos)===ai.from}),ao=Er.pointers[qr];qr&&ao&&ao.value&&ao.valueEnd&&(U("pointer found, selecting inner contents of path:",qr,ao),_t(ao.value.pos+1,ao.valueEnd.pos-1))}}}function _n(){return function(gt){return Qm.of({source:gt,config:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}})}(ui,{delay:300})}function ci(gt){var On=gt.target,ai=gt.initialText,bi=gt.readOnly,Er=gt.indentation;U("Create CodeMirror editor",{readOnly:bi,indentation:Er});var qr=Fo.create({doc:ai,extensions:[AS.of([ket,q]),H.of(_n()),_tt(),xtt,Rtt,Utt({hideFirstIndent:!0}),Wn.domEventHandlers({dblclick:At}),Wn.updateListener.of(function(ao){e(6,l=ao.state),ao.docChanged&&Ai()}),new SZe(Ftt),Net({top:!0}),E.of(Fo.readOnly.of(bi)),he.of(Wn.editable.of(!bi)),F.of(Fo.tabSize.of(p)),N.of(wr(Er)),Y.of(Wn.theme({},{dark:on()})),Wn.lineWrapping]});return s=new Wn({state:qr,parent:On})}function on(){return!!o&&getComputedStyle(o).getPropertyValue("--jse-theme").includes("dark")}function Ni(gt){var On=gt.path,ai=gt.message,bi=function(Er,qr){try{var ao=O2.parse(Er),Js=ln(qr),vr=ao.pointers[Js];if(vr)return{path:qr,line:vr.key?vr.key.line:vr.value?vr.value.line:0,column:vr.key?vr.key.column:vr.value?vr.value.column:0,from:vr.key?vr.key.pos:vr.value?vr.value.pos:0,to:vr.keyEnd?vr.keyEnd.pos:vr.valueEnd?vr.valueEnd.pos:0}}catch(Ks){console.error(Ks)}return null}(i.escapeValue(oe),On);return{path:On,line:bi.line,column:bi.column,from:bi.from,to:bi.to,message:ai,severity:Xd.warning,actions:[]}}function pn(gt,On){var Er=gt.position;return{path:[],line:gt.line,column:gt.column,from:Er,to:Er,severity:Xd.error,message:gt.message,actions:On&&!c?[{name:"Auto repair",apply:function(){return Ye()}}]:null}}function Fr(gt){var On=arguments.length>1&&void 0!==arguments[1]&&arguments[1],ai=Fk(gt,f,g),bi=!or(gt,V),Er=V;V=gt,e(10,oe=ai),U("setCodeMirrorContent",{isChanged:bi,forceUpdate:On}),s&&(bi||On)&&(jo(oe,L)||s.dispatch({changes:{from:0,to:s.state.doc.length,insert:i.escapeValue(oe)}}),Or(),bi&&Wr(V,Er))}function $r(){if(s){var gt=s?i.unescapeValue(s.state.doc.toString()):"",On=gt!==oe;if(U("onChangeCodeMirrorValue",{isChanged:On}),On){var ai=V;e(10,oe=gt),V={text:oe},Or(),Wr(V,ai)}}}function wr(gt){return GS.of("number"==typeof gt?" ".repeat(gt):gt)}function Or(){e(11,Ne=het(s.state)>0),e(12,xe=fet(s.state)>0),U({canUndo:Ne,canRedo:xe})}a4({onMount:Wc,onDestroy:Hu,getWindow:function(){return e0(a)},hasFocus:function(){return B&&document.hasFocus()||jk(a)},onFocus:M,onBlur:$});var Ai=Gv($r,300);function Wr(gt,On){_&&_(gt,On,{contentErrors:Fi(),patchResult:null})}function jo(gt,On){return!!gt&>.length>10485760&&!On}var Fn="valid",xt=null;function ui(){if(jo(oe,L))return[];var gt=Fi();return Dae(gt)?[mpe(pn(gt.parseError,gt.isRepairable))]:function Jqe(t){return Io(t)&&Array.isArray(t.validationErrors)}(gt)?gt.validationErrors.map(Ni).map(mpe):[]}function Fi(){U("validate:start"),Ai.flush();var gt=Cr(i.escapeValue(oe),v,g,y);return Dae(gt)?(e(49,Fn=gt.isRepairable?"repairable":"invalid"),e(13,xt=gt.parseError),e(9,Z=[])):(e(49,Fn="valid"),e(13,xt=null),e(9,Z=gt?.validationErrors||[])),U("validate:end"),gt}var Cr=Zb(Oqe);function xo(){xt&&function(gt){U("select parse error",gt);var On=pn(gt,!1);_t(On.from,On.to),ot()}(xt)}var Qo={icon:xWe,text:"Show me",title:"Move to the parse error location",onClick:xo};return t.$$set=function(gt){"readOnly"in gt&&e(0,c=gt.readOnly),"mainMenuBar"in gt&&e(1,u=gt.mainMenuBar),"statusBar"in gt&&e(2,d=gt.statusBar),"externalContent"in gt&&e(29,h=gt.externalContent),"indentation"in gt&&e(30,f=gt.indentation),"tabSize"in gt&&e(31,p=gt.tabSize),"escapeUnicodeCharacters"in gt&&e(32,m=gt.escapeUnicodeCharacters),"parser"in gt&&e(33,g=gt.parser),"validator"in gt&&e(34,v=gt.validator),"validationParser"in gt&&e(35,y=gt.validationParser),"onChange"in gt&&e(36,_=gt.onChange),"onChangeMode"in gt&&e(37,C=gt.onChangeMode),"onError"in gt&&e(38,S=gt.onError),"onFocus"in gt&&e(39,M=gt.onFocus),"onBlur"in gt&&e(40,$=gt.onBlur),"onRenderMenu"in gt&&e(3,G=gt.onRenderMenu),"onSortModal"in gt&&e(41,R=gt.onSortModal),"onTransformModal"in gt&&e(42,z=gt.onTransformModal)},t.$$.update=function(){var gt;2&t.$$.dirty[1]&&(i=TO({escapeControlCharacters:!1,escapeUnicodeCharacters:m})),536870912&t.$$.dirty[0]&&Fr(h),8&t.$$.dirty[1]&&(U("updateLinter",v),s&&s.dispatch({effects:H.reconfigure(_n())})),1073741824&t.$$.dirty[0]&&(gt=f,s&&(U("updateIndentation",gt),s.dispatch({effects:N.reconfigure(wr(gt))}))),1&t.$$.dirty[1]&&function(gt){s&&(U("updateTabSize",gt),s.dispatch({effects:F.reconfigure(Fo.tabSize.of(gt))}))}(p),1&t.$$.dirty[0]&&function(gt){s&&(U("updateReadOnly",gt),s.dispatch({effects:[E.reconfigure(Fo.readOnly.of(gt)),he.reconfigure(Wn.editable.of(!gt))]}))}(c),131074&t.$$.dirty[1]&&fe!==m&&(e(48,fe=m),U("forceUpdateText",{escapeUnicodeCharacters:m}),s&&s.dispatch({changes:{from:0,to:s.state.doc.length,insert:i.escapeValue(oe)}})),1&t.$$.dirty[0]|262144&t.$$.dirty[1]&&e(14,r="repairable"!==Fn||c?[Qo]:[{icon:zk,text:"Auto repair",title:"Automatically repair JSON",onClick:Ye},Qo])},[c,u,d,G,o,a,l,L,X,Z,oe,Ne,xe,xt,r,re,ie,Ie,function(){var gt;if(!c)try{var On=g.parse(oe);B=!0,R({id:tt,json:On,rootPath:[],onSort:(gt=Zi(vn().mark(function ai(bi){var Er;return vn().wrap(function(qr){for(;;)switch(qr.prev=qr.next){case 0:U("onSort",Er=bi.operations),ne(Er);case 3:case"end":return qr.stop()}},ai)})),function(ai){return gt.apply(this,arguments)}),onClose:function(){B=!1,ot()}})}catch(ai){S(ai)}},function(){c||Le({rootPath:[]})},function(){s&&(o&&o.querySelector(".cm-search")?uP(s):cP(s))},function(){c||s&&(Kj(s),ot())},function(){c||s&&(KS(s),ot())},function(){e(7,L=!0),Fr(h,!0)},function(){C(Jo.tree)},function(){$r()},function(gt){U("select validation error",gt);var On=Ni(gt);_t(On.from,On.to),ot()},jo,xo,h,f,p,m,g,v,y,_,C,S,M,$,R,z,ot,ne,Le,function(){U("refresh"),Xl().then(function(){if(s){var gt=on();U("updateTheme",{dark:gt}),s.dispatch({effects:[Y.reconfigure(Wn.theme({},{dark:gt}))]})}})},Fi,fe,Fn,function(gt){Vi[gt?"unshift":"push"](function(){e(4,o=gt)})},function(){return e(8,X=!1)},function(gt){Vi[gt?"unshift":"push"](function(){e(5,a=gt)})}]}var Jtt=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,Ytt,Xtt,Ei,{readOnly:0,mainMenuBar:1,statusBar:2,externalContent:29,indentation:30,tabSize:31,escapeUnicodeCharacters:32,parser:33,validator:34,validationParser:35,onChange:36,onChangeMode:37,onError:38,onFocus:39,onBlur:40,onRenderMenu:3,onSortModal:41,onTransformModal:42,focus:43,patch:44,openTransformModal:45,refresh:46,validate:47},Gtt,[-1,-1,-1,-1]),r}return Se(e,[{key:"focus",get:function(){return this.$$.ctx[43]}},{key:"patch",get:function(){return this.$$.ctx[44]}},{key:"openTransformModal",get:function(){return this.$$.ctx[45]}},{key:"refresh",get:function(){return this.$$.ctx[46]}},{key:"validate",get:function(){return this.$$.ctx[47]}}]),e}();function Ktt(t){var n,e;return n=new nS({props:{items:t[0]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};1&Un(r,1)[0]&&(o.items=i[0]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function Qtt(t,n,e){var i,r,o=n.json,s=n.readOnly,a=n.historyState,l=n.onSort,c=n.onTransform,u=n.onContextMenu,d=n.onUndo,h=n.onRedo,f=n.onRenderMenu;return t.$$set=function(p){"json"in p&&e(1,o=p.json),"readOnly"in p&&e(2,s=p.readOnly),"historyState"in p&&e(3,a=p.historyState),"onSort"in p&&e(4,l=p.onSort),"onTransform"in p&&e(5,c=p.onTransform),"onContextMenu"in p&&e(6,u=p.onContextMenu),"onUndo"in p&&e(7,d=p.onUndo),"onRedo"in p&&e(8,h=p.onRedo),"onRenderMenu"in p&&e(9,f=p.onRenderMenu)},t.$$.update=function(){510&t.$$.dirty&&e(10,i=s?[{type:"space"}]:[{type:"button",icon:Gk,title:"Sort",className:"jse-sort",onClick:l,disabled:s||void 0===o},{type:"button",icon:Hk,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:c,disabled:s||void 0===o},{type:"button",icon:bse,title:xN,className:"jse-contextmenu",onClick:u},{type:"separator"},{type:"button",icon:JO,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:d,disabled:!a.canUndo},{type:"button",icon:YO,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:h,disabled:!a.canRedo},{type:"space"}]),1536&t.$$.dirty&&e(0,r=f(i)||i)},[r,o,s,a,l,c,u,d,h,f,i]}var Ztt=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,Qtt,Ktt,Ei,{json:1,readOnly:2,historyState:3,onSort:4,onTransform:5,onContextMenu:6,onUndo:7,onRedo:8,onRenderMenu:9}),r}return Se(e)}();function gpe(t,n,e){var i=t.slice();return i[9]=n[e],i}function vpe(t){var n,e,i,r=[t[9].props],o=t[9].component;function s(a){for(var l={},c=0;c0){for(var y=[g],_=Xi(v);_.length>0&&!Xc(m,_);)y.unshift({op:"add",path:ln(_),value:{}}),_=Xi(_);return y}}return g})),f);var p,m}return t.$$set=function(h){"path"in h&&e(1,o=h.path),"value"in h&&e(2,s=h.value),"context"in h&&e(3,a=h.context),"enforceString"in h&&e(4,l=h.enforceString),"selection"in h&&e(5,c=h.selection),"searchResultItems"in h&&e(6,u=h.searchResultItems)},t.$$.update=function(){40&t.$$.dirty&&e(7,i=!a.readOnly&&Yi(c)&&ip(c)),254&t.$$.dirty&&e(0,r=a.onRenderValue({path:o,value:s,readOnly:a.readOnly,enforceString:l,isEditing:i,parser:a.parser,normalization:a.normalization,selection:c,searchResultItems:u,onPatch:d,onPasteJson:a.onPasteJson,onSelect:a.onSelect,onFind:a.onFind,findNextInside:a.findNextInside,focus:a.focus}))},[r,o,s,a,l,c,u,i]}var nnt=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,tnt,ent,Ei,{path:1,value:2,context:3,enforceString:4,selection:5,searchResultItems:6}),r}return Se(e)}();function int(t){pi(t,"svelte-l28mqd",".jse-inline-value.svelte-l28mqd{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);line-height:var(--jse-line-height);border:none;padding:0 calc(0.5 * var(--jse-padding));background:transparent;color:inherit;cursor:pointer}.jse-inline-value.svelte-l28mqd:hover{background:var(--jse-hover-background-color)}.jse-inline-value.jse-selected.svelte-l28mqd{background:var(--jse-selection-background-color)}")}function rnt(t){var n,e,i,r,o=oh(t[2].stringify(t[1]),50)+"";return{c:function(){n=be("button"),e=tn(o),P(n,"type","button"),P(n,"class","jse-inline-value svelte-l28mqd"),Mt(n,"jse-selected",t[3])},m:function(s,a){Pe(s,n,a),de(n,e),i||(r=Ft(n,"dblclick",t[6]),i=!0)},p:function(s,a){var l=Un(a,1)[0];6&l&&o!==(o=oh(s[2].stringify(s[1]),50)+"")&&qn(e,o),8&l&&Mt(n,"jse-selected",s[3])},i:Lt,o:Lt,d:function(s){s&&je(n),i=!1,r()}}}function ont(t,n,e){var i,r=n.path,o=n.value,s=n.parser,a=n.isSelected,l=n.onEdit;return t.$$set=function(c){"path"in c&&e(0,r=c.path),"value"in c&&e(1,o=c.value),"parser"in c&&e(2,s=c.parser),"isSelected"in c&&e(3,a=c.isSelected),"onEdit"in c&&e(4,l=c.onEdit)},t.$$.update=function(){2&t.$$.dirty&&e(5,i=oo(o)?o.length:Object.keys(o).length)},[r,o,s,a,l,i,function(){return l(r)}]}var snt=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,ont,rnt,Ei,{path:0,value:1,parser:2,isSelected:3,onEdit:4},int),r}return Se(e)}();function ant(t){pi(t,"svelte-h4fort",".jse-column-header.svelte-h4fort.svelte-h4fort{background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;display:flex;gap:var(--jse-padding);padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding));width:100%}.jse-column-header.svelte-h4fort.svelte-h4fort:hover{background:var(--jse-table-header-background-highlight)}.jse-column-header.svelte-h4fort.svelte-h4fort:not(.jse-column-header.jse-readonly){cursor:pointer}.jse-column-header.svelte-h4fort span.jse-column-sort-icon.svelte-h4fort{height:1em}")}function ype(t){var n,e,i,r;return e=new sr({props:{data:t[1]===qc.asc?ru:yse}}),{c:function(){n=be("span"),mt(e.$$.fragment),P(n,"class","jse-column-sort-icon svelte-h4fort"),P(n,"title",i="Currently sorted in ".concat(t[2]," order"))},m:function(o,s){Pe(o,n,s),ft(e,n,null),r=!0},p:function(o,s){var a={};2&s&&(a.data=o[1]===qc.asc?ru:yse),e.$set(a),(!r||4&s&&i!==(i="Currently sorted in ".concat(o[2]," order")))&&P(n,"title",i)},i:function(o){r||(Q(e.$$.fragment,o),r=!0)},o:function(o){ce(e.$$.fragment,o),r=!1},d:function(o){o&&je(n),pt(e)}}}function lnt(t){var n,e,i,r,o,s,a,l,c=oh(t[3],50)+"",u=void 0!==t[1]&&ype(t);return{c:function(){n=be("button"),e=be("span"),i=tn(c),r=it(),u&&u.c(),P(e,"class","jse-column-name"),P(n,"type","button"),P(n,"class","jse-column-header svelte-h4fort"),P(n,"title",o=t[0]?t[3]:t[3]+" (Click to sort the data by this column)"),Mt(n,"jse-readonly",t[0])},m:function(d,h){Pe(d,n,h),de(n,e),de(e,i),de(n,r),u&&u.m(n,null),s=!0,a||(l=Ft(n,"click",t[4]),a=!0)},p:function(d,h){var f=Un(h,1)[0];(!s||8&f)&&c!==(c=oh(d[3],50)+"")&&qn(i,c),void 0!==d[1]?u?(u.p(d,f),2&f&&Q(u,1)):((u=ype(d)).c(),Q(u,1),u.m(n,null)):u&&($t(),ce(u,1,1,function(){u=null}),Bt()),(!s||9&f&&o!==(o=d[0]?d[3]:d[3]+" (Click to sort the data by this column)"))&&P(n,"title",o),(!s||1&f)&&Mt(n,"jse-readonly",d[0])},i:function(d){s||(Q(u),s=!0)},o:function(d){ce(u),s=!1},d:function(d){d&&je(n),u&&u.d(),a=!1,l()}}}function cnt(t,n,e){var i,r,o,s=n.path,a=n.sortedColumn,l=n.readOnly,c=n.onSort;return t.$$set=function(u){"path"in u&&e(5,s=u.path),"sortedColumn"in u&&e(6,a=u.sortedColumn),"readOnly"in u&&e(0,l=u.readOnly),"onSort"in u&&e(7,c=u.onSort)},t.$$.update=function(){var u;32&t.$$.dirty&&e(3,i=Hi(s)?"values":tu(Kl(s))),96&t.$$.dirty&&e(1,r=or(s,null===(u=a)||void 0===u?void 0:u.path)?a.sortDirection:void 0),2&t.$$.dirty&&e(2,o=H7e[r])},[l,r,o,i,function(){l||c({path:s,sortDirection:r===qc.asc?qc.desc:qc.asc})},s,a,c]}var CD,kD,unt=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,cnt,lnt,Ei,{path:5,sortedColumn:6,readOnly:0,onSort:7},ant),r}return Se(e)}();function bpe(t,n){return CD||(kD=new WeakMap,CD=new ResizeObserver(function(e){var i,r=Re(e);try{for(r.s();!(i=r.n()).done;){var o=i.value,s=kD.get(o.target);s&&s(o.target)}}catch(a){r.e(a)}finally{r.f()}})),kD.set(t,n),CD.observe(t),{destroy:function(){kD.delete(t),CD.unobserve(t)}}}function dnt(t){var n,e;return n=new Jae({props:{items:t[1],tip:t[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};2&r[0]&&(o.items=i[1]),1&r[0]&&(o.tip=i[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function hnt(t,n,e){var i,r,o,s,a,l,c,u,d,h,f,p=n.json,m=n.documentState,g=n.parser,v=n.showTip,y=n.onCloseContextMenu,_=n.onEditValue,C=n.onEditRow,S=n.onToggleEnforceString,M=n.onCut,$=n.onCopy,G=n.onPaste,R=n.onRemove,z=n.onDuplicateRow,U=n.onInsertBeforeRow,q=n.onInsertAfterRow,re=n.onRemoveRow;function L(){y(),_()}function X(){y(),C()}function Z(){y(),S()}function H(){y(),M(!0)}function he(){y(),M(!1)}function E(){y(),$(!0)}function N(){y(),$(!1)}function F(){y(),G()}function Y(){y(),R()}function V(){y(),z()}function oe(){y(),U()}function fe(){y(),q()}function Ne(){y(),re()}return t.$$set=function(xe){"json"in xe&&e(2,p=xe.json),"documentState"in xe&&e(3,m=xe.documentState),"parser"in xe&&e(4,g=xe.parser),"showTip"in xe&&e(0,v=xe.showTip),"onCloseContextMenu"in xe&&e(5,y=xe.onCloseContextMenu),"onEditValue"in xe&&e(6,_=xe.onEditValue),"onEditRow"in xe&&e(7,C=xe.onEditRow),"onToggleEnforceString"in xe&&e(8,S=xe.onToggleEnforceString),"onCut"in xe&&e(9,M=xe.onCut),"onCopy"in xe&&e(10,$=xe.onCopy),"onPaste"in xe&&e(11,G=xe.onPaste),"onRemove"in xe&&e(12,R=xe.onRemove),"onDuplicateRow"in xe&&e(13,z=xe.onDuplicateRow),"onInsertBeforeRow"in xe&&e(14,U=xe.onInsertBeforeRow),"onInsertAfterRow"in xe&&e(15,q=xe.onInsertAfterRow),"onRemoveRow"in xe&&e(16,re=xe.onRemoveRow)},t.$$.update=function(){8&t.$$.dirty[0]&&e(22,i=m.selection),4&t.$$.dirty[0]&&e(25,r=void 0!==p),4194304&t.$$.dirty[0]&&e(17,o=null!=i),4194304&t.$$.dirty[0]&&e(26,s=null!=i&&Hi(i.focusPath)),4194308&t.$$.dirty[0]&&e(23,a=void 0!==p&&null!=i?Sn(p,i.focusPath):void 0),37748736&t.$$.dirty[0]&&e(18,l=r&&(Nr(i)||xs(i)||Yi(i))),104857600&t.$$.dirty[0]&&r&&null!=i&&(Nr(i)||Yi(i)),71303172&t.$$.dirty[0]&&void 0!==p&&null!=i&&zb(i)&&!s&&Array.isArray(Sn(p,Xi(i.focusPath))),37748736&t.$$.dirty[0]&&e(21,c=r&&null!=i&&zb(i)),10485760&t.$$.dirty[0]&&e(19,u=c&&!Ho(a)),262144&t.$$.dirty[0]&&e(24,d=l),29491200&t.$$.dirty[0]&&d&&Lm(i)&&Io(a),29491200&t.$$.dirty[0]&&d&&Lm(i)&&Array.isArray(a),29491200&t.$$.dirty[0]&&d&&Lm(i)&&Ho(a),12582936&t.$$.dirty[0]&&e(20,h=null!=i&&lf(a,m.enforceStringMap,ln(i.focusPath),g)),4063232&t.$$.dirty[0]&&e(1,f=[{type:"separator"},{type:"row",items:[{type:"column",items:[{type:"label",text:"Table cell:"},{type:"dropdown-button",main:{type:"button",onClick:L,icon:h0,text:"Edit",title:"Edit the value (Double-click on the value)",disabled:!c},width:"11em",items:[{type:"button",icon:h0,text:"Edit",title:"Edit the value (Double-click on the value)",onClick:L,disabled:!c},{type:"button",icon:h?$b:Bb,text:"Enforce string",title:"Enforce keeping the value as string when it contains a numeric value",onClick:Z,disabled:!u}]},{type:"dropdown-button",main:{type:"button",onClick:H,icon:d0,text:"Cut",title:"Cut selected contents, formatted with indentation (Ctrl+X)",disabled:!l},width:"10em",items:[{type:"button",icon:d0,text:"Cut formatted",title:"Cut selected contents, formatted with indentation (Ctrl+X)",onClick:H,disabled:!l},{type:"button",icon:d0,text:"Cut compacted",title:"Cut selected contents, without indentation (Ctrl+Shift+X)",onClick:he,disabled:!l}]},{type:"dropdown-button",main:{type:"button",onClick:E,icon:sp,text:"Copy",title:"Copy selected contents, formatted with indentation (Ctrl+C)",disabled:!l},width:"12em",items:[{type:"button",icon:sp,text:"Copy formatted",title:"Copy selected contents, formatted with indentation (Ctrl+C)",onClick:E,disabled:!l},{type:"button",icon:sp,text:"Copy compacted",title:"Copy selected contents, without indentation (Ctrl+Shift+C)",onClick:N,disabled:!l}]},{type:"button",onClick:F,icon:mse,text:"Paste",title:"Paste clipboard contents (Ctrl+V)",disabled:!o},{type:"button",onClick:Y,icon:XO,text:"Remove",title:"Remove selected contents (Delete)",disabled:!l}]},{type:"column",items:[{type:"label",text:"Table row:"},{type:"button",onClick:X,icon:h0,text:"Edit row",title:"Edit the current row",disabled:!l},{type:"button",onClick:V,icon:wse,text:"Duplicate row",title:"Duplicate the current row",disabled:!o},{type:"button",onClick:oe,icon:f0,text:"Insert before",title:"Insert a row before the current row",disabled:!o},{type:"button",onClick:fe,icon:f0,text:"Insert after",title:"Insert a row after the current row",disabled:!o},{type:"button",onClick:Ne,icon:XO,text:"Remove row",title:"Remove current row",disabled:!o}]}]}])},[v,f,p,m,g,y,_,C,S,M,$,G,R,z,U,q,re,o,l,u,h,c,i,a,d,r,s]}var fnt=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,hnt,dnt,Ei,{json:2,documentState:3,parser:4,showTip:0,onCloseContextMenu:5,onEditValue:6,onEditRow:7,onToggleEnforceString:8,onCut:9,onCopy:10,onPaste:11,onRemove:12,onDuplicateRow:13,onInsertBeforeRow:14,onInsertAfterRow:15,onRemoveRow:16},null,[-1,-1]),r}return Se(e)}();function pnt(t){pi(t,"svelte-1te5h1h",".jse-table-mode-welcome.svelte-1te5h1h.svelte-1te5h1h{flex:1;display:flex;flex-direction:column;overflow:auto;align-items:center;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-table-mode-welcome.svelte-1te5h1h.svelte-1te5h1h:last-child{border-bottom:var(--jse-main-border)}.jse-table-mode-welcome.svelte-1te5h1h .jse-space.jse-before.svelte-1te5h1h{flex:1}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays.svelte-1te5h1h{display:flex;flex-direction:column;gap:var(--jse-padding);max-width:300px;margin:var(--jse-padding);font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays .jse-nested-arrays-info.svelte-1te5h1h{color:var(--jse-panel-color-readonly)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px;text-align:left}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h:hover{background:var(--jse-button-primary-background-highlight)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h:disabled{background:var(--jse-button-primary-background-disabled)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action .jse-nested-array-count.svelte-1te5h1h{opacity:0.5;white-space:nowrap}.jse-table-mode-welcome.svelte-1te5h1h .jse-space.jse-after.svelte-1te5h1h{flex:2}")}function _pe(t,n,e){var i=t.slice();i[12]=n[e];var r=Sn(i[0],i[12]).length;return i[13]=r,i}function mnt(t){var n,e;return{c:function(){n=tn(t[5]),e=tn(" cannot be opened in table mode. You can open the document in tree mode instead.")},m:function(i,r){Pe(i,n,r),Pe(i,e,r)},p:function(i,r){32&r&&qn(n,i[5])},d:function(i){i&&je(n),i&&je(e)}}}function gnt(t){var n;return{c:function(){n=tn("An object cannot be opened in table mode. You can open a nested array instead, or open the\n document in tree mode.")},m:function(e,i){Pe(e,n,i)},p:Lt,d:function(e){e&&je(n)}}}function xpe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p=tu(Kl(t[12]))+"",m=t[13]+"",g=1!==t[13]?"items":"item";function v(){return t[10](t[12])}return{c:function(){n=be("button"),e=tn(t[6]),i=tn(' "'),r=tn(p),o=tn('"\n '),s=be("span"),a=tn("("),l=tn(m),c=it(),u=tn(g),d=tn(")"),P(s,"class","jse-nested-array-count svelte-1te5h1h"),P(n,"type","button"),P(n,"class","jse-nested-array-action svelte-1te5h1h")},m:function(y,_){Pe(y,n,_),de(n,e),de(n,i),de(n,r),de(n,o),de(n,s),de(s,a),de(s,l),de(s,c),de(s,u),de(s,d),h||(f=Ft(n,"click",v),h=!0)},p:function(y,_){t=y,64&_&&qn(e,t[6]),8&_&&p!==(p=tu(Kl(t[12]))+"")&&qn(r,p),9&_&&m!==(m=t[13]+"")&&qn(l,m),9&_&&g!==(g=1!==t[13]?"items":"item")&&qn(u,g)},d:function(y){y&&je(n),h=!1,f()}}}function vnt(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v;function y(G,R){return G[4]?gnt:mnt}for(var _=y(t),C=_(t),S=t[3],M=[],$=0;$1&&void 0!==arguments[1]?arguments[1]:2,m=[];return function g(v,y){Mo(v)&&y.length0}):[]),8&t.$$.dirty&&e(4,r=!Hi(s)),657&t.$$.dirty&&e(5,o=r?"Object with nested arrays":void 0!==l||""!==a&&void 0!==a?Mo(l)?"An object":oo(l)?"An empty array":"A ".concat(VN(l,u)):"An empty document")},[l,d,h,s,r,o,i,a,c,u,function(f){return d(f)},function(){return h(Jo.tree)}]}var bnt=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,ynt,vnt,Ei,{text:7,json:0,readOnly:8,parser:9,openJSONEditorModal:1,onChangeMode:2},pnt),r}return Se(e)}();function _nt(t){pi(t,"svelte-h4fort",".jse-column-header.svelte-h4fort{background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;display:flex;gap:var(--jse-padding);padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding));width:100%}.jse-column-header.svelte-h4fort:hover{background:var(--jse-table-header-background-highlight)}.jse-column-header.svelte-h4fort:not(.jse-column-header.jse-readonly){cursor:pointer}")}function xnt(t){var n,e,i,r,o,s;return e=new sr({props:{data:TWe}}),{c:function(){n=be("button"),mt(e.$$.fragment),P(n,"type","button"),P(n,"class","jse-column-header svelte-h4fort"),P(n,"title",i="The Columns are created by sampling ".concat(t[1]," items out of ").concat(t[0],". ")+"If you're missing a column, click here to sample all of the items instead of a subset. This is slower.")},m:function(a,l){Pe(a,n,l),ft(e,n,null),r=!0,o||(s=Ft(n,"click",t[3]),o=!0)},p:function(a,l){var c=Un(l,1)[0];(!r||3&c&&i!==(i="The Columns are created by sampling ".concat(a[1]," items out of ").concat(a[0],". ")+"If you're missing a column, click here to sample all of the items instead of a subset. This is slower."))&&P(n,"title",i)},i:function(a){r||(Q(e.$$.fragment,a),r=!0)},o:function(a){ce(e.$$.fragment,a),r=!1},d:function(a){a&&je(n),pt(e),o=!1,s()}}}function wnt(t,n,e){var i=n.count,r=n.maxSampleCount,o=n.onRefresh;return t.$$set=function(s){"count"in s&&e(0,i=s.count),"maxSampleCount"in s&&e(1,r=s.maxSampleCount),"onRefresh"in s&&e(2,o=s.onRefresh)},[i,r,o,function(){return o()}]}var Cnt=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,wnt,xnt,Ei,{count:0,maxSampleCount:1,onRefresh:2},_nt),r}return Se(e)}();function knt(t){pi(t,"svelte-hs49xj",".jse-table-mode.svelte-hs49xj.svelte-hs49xj{flex:1;display:flex;flex-direction:column;position:relative;background:var(--jse-background-color);min-width:0;min-height:0;font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:var(--jse-text-color)}.jse-table-mode.no-main-menu.svelte-hs49xj.svelte-hs49xj{border-top:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-hidden-input-label.svelte-hs49xj{position:fixed;right:0;top:0;width:0;height:0}.jse-table-mode.svelte-hs49xj .jse-hidden-input-label .jse-hidden-input.svelte-hs49xj{width:0;height:0;padding:0;border:0;outline:none}.jse-table-mode.svelte-hs49xj .jse-contents.svelte-hs49xj{flex:1;align-items:start;flex-direction:column;display:flex;overflow:auto;overflow-anchor:none;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-contents.svelte-hs49xj:last-child{border-bottom:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main.svelte-hs49xj{border-collapse:collapse;border-spacing:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-start-section td.svelte-hs49xj,.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-hs49xj{margin:0;padding:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-hs49xj{padding-bottom:var(--jse-padding)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row.svelte-hs49xj:hover{background-color:var(--jse-table-row-odd-background)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj{padding:0 var(--jse-padding) 0 0;vertical-align:top;white-space:nowrap;height:var(--jse-line-height)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-hs49xj,.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-hs49xj{font-weight:normal;text-align:left;color:var(--jse-text-readonly);background:var(--jse-table-header-background)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-hs49xj{padding:0;position:sticky;top:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header .jse-table-root-error.svelte-hs49xj{padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding))}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-hs49xj{padding:0 var(--jse-padding) 0 calc(0.5 * var(--jse-padding))}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-selected-value.svelte-hs49xj>.jse-value{background:var(--jse-selection-background-color)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj div{display:inline-flex}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj div.jse-value{overflow-wrap:normal;white-space:nowrap;vertical-align:top;display:inline-block}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell .jse-context-menu-anchor.svelte-hs49xj{position:relative;vertical-align:top}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading.svelte-hs49xj{align-items:unset}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading .jse-loading-space.svelte-hs49xj{flex:1}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading .jse-loading.svelte-hs49xj{flex:2;text-align:center;color:var(--jse-panel-color-readonly);box-sizing:border-box;font-family:var(--jse-font-family);font-size:var(--jse-font-size)}")}function wpe(t,n,e){var i=t.slice();return i[120]=n[e],i[124]=e,i[121]=i[22].startIndex+i[124],i[122]=i[21].rows[i[121]],i}function Cpe(t,n,e){var i,r=t.slice();r[125]=n[e],r[131]=e;var o=[String(r[121])].concat(r[125]);r[126]=o;var s=Sn(r[120],r[125]);r[127]=s;var a=r[46](r[126],r[10].selection);r[128]=a;var l=null===(i=r[122])||void 0===i?void 0:i.columns[r[131]];return r[129]=l,r}function kpe(t,n,e){var i=t.slice();return i[125]=n[e],i}function Spe(t){var n,e;return n=new Ztt({props:{json:t[7],readOnly:t[0],historyState:t[19],onSort:t[40],onTransform:t[41],onUndo:t[42],onRedo:t[43],onContextMenu:t[32],onRenderMenu:t[5]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};128&r[0]&&(o.json=i[7]),1&r[0]&&(o.readOnly=i[0]),524288&r[0]&&(o.historyState=i[19]),32&r[0]&&(o.onRenderMenu=i[5]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function Snt(t){var n;return{c:function(){(n=be("div")).innerHTML='
    \n
    loading...
    ',P(n,"class","jse-contents jse-contents-loading svelte-hs49xj")},m:function(e,i){Pe(e,n,i)},p:Lt,i:Lt,o:Lt,d:function(e){e&&je(n)}}}function Dnt(t){var n,e,i,r,o,s,a,l,c,u=[Ant,Ent,Tnt],d=[];function h(f,p){return f[24]?0:f[16]&&void 0!==f[15]&&""!==f[15]?1:2}return r=h(t),o=d[r]=u[r](t),{c:function(){n=be("label"),e=be("input"),i=it(),o.c(),s=_r(),P(e,"type","text"),e.readOnly="readonly",P(e,"tabindex","-1"),P(e,"class","jse-hidden-input svelte-hs49xj"),P(n,"class","jse-hidden-input-label svelte-hs49xj")},m:function(f,p){Pe(f,n,p),de(n,e),t[71](e),Pe(f,i,p),d[r].m(f,p),Pe(f,s,p),a=!0,l||(c=Ft(e,"paste",t[37]),l=!0)},p:function(f,p){var m=r;(r=h(f))===m?d[r].p(f,p):($t(),ce(d[m],1,1,function(){d[m]=null}),Bt(),(o=d[r])?o.p(f,p):(o=d[r]=u[r](f)).c(),Q(o,1),o.m(s.parentNode,s))},i:function(f){a||(Q(o),a=!0)},o:function(f){ce(o),a=!1},d:function(f){f&&je(n),t[71](null),f&&je(i),d[r].d(f),f&&je(s),l=!1,c()}}}function Tnt(t){var n,e;return n=new bnt({props:{text:t[15],json:t[7],readOnly:t[0],parser:t[2],openJSONEditorModal:t[39],onChangeMode:t[4]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};32768&r[0]&&(o.text=i[15]),128&r[0]&&(o.json=i[7]),1&r[0]&&(o.readOnly=i[0]),4&r[0]&&(o.parser=i[2]),16&r[0]&&(o.onChangeMode=i[4]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function Ent(t){var n,e,i,r;return n=new nd({props:{type:"error",message:"The loaded JSON document is invalid and could not be repaired automatically.",actions:t[0]?[]:[{icon:op,text:"Repair manually",onClick:t[35]}]}}),i=new tce({props:{text:t[15]||"",json:t[7],indentation:t[3],parser:t[2]}}),{c:function(){mt(n.$$.fragment),e=it(),mt(i.$$.fragment)},m:function(o,s){ft(n,o,s),Pe(o,e,s),ft(i,o,s),r=!0},p:function(o,s){var a={};1&s[0]&&(a.actions=o[0]?[]:[{icon:op,text:"Repair manually",onClick:o[35]}]),n.$set(a);var l={};32768&s[0]&&(l.text=o[15]||""),128&s[0]&&(l.json=o[7]),8&s[0]&&(l.indentation=o[3]),4&s[0]&&(l.parser=o[2]),i.$set(l)},i:function(o){r||(Q(n.$$.fragment,o),Q(i.$$.fragment,o),r=!0)},o:function(o){ce(n.$$.fragment,o),ce(i.$$.fragment,o),r=!1},d:function(o){pt(n,o),o&&je(e),pt(i,o)}}}function Ant(t){for(var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,C,S,M,$,G,R=!Hi(null===(n=t[21])||void 0===n?void 0:n.root),z=R&&Dpe(t),U=t[9],q=[],re=0;re"u";a("isSSR:",m);var g,v,y,_,C,S,M=n.readOnly,$=n.externalContent,G=n.mainMenuBar,R=n.escapeControlCharacters,z=n.escapeUnicodeCharacters,U=n.flattenColumns,q=n.parser,re=n.parseMemoizeOne,L=n.validator,X=n.validationParser,Z=n.indentation,H=n.onChange,he=n.onChangeMode,E=n.onRenderValue,N=n.onRenderMenu,F=n.onFocus,Y=n.onBlur,V=n.onSortModal,oe=n.onTransformModal,fe=n.onJSONEditorModal;a4({onMount:Wc,onDestroy:Hu,getWindow:function(){return e0(v)},hasFocus:function(){return ot&&document.hasFocus()||jk(v)},onFocus:function(){F&&F()},onBlur:function(){Y&&Y()}});var Ne,xe=void 0,tt=1e4,ze=[],ot=!1,B={},ne=600,ie=0;function Ie(Ee){a("updateSelection",Ee);var St="function"==typeof Ee?Ee(Le.selection):Ee;or(St,Le.selection)||e(10,Le=Ze(Ze({},Le),{},{selection:St}))}function Ye(Ee){void 0!==Le.selection&&void 0!==Ee&&(Le.selection&&Xc(Ee,Le.selection.anchorPath)&&Xc(Ee,Le.selection.focusPath)||(a("clearing selection: path does not exist anymore",Le.selection),e(10,Le=Ze(Ze({},Le),{},{selection:s0(Ee,Le)}))))}var At,Le=Lk(),_t=!1,_n=fae({onChange:function(Ee){e(19,ci=Ee)}}),ci=_n.getState();function Ni(Ee){var St=Ee.previousJson,Ht=Ee.previousState,sn=Ee.previousText,hn=Ee.previousTextIsRepaired;void 0===St&&void 0===sn||(void 0!==C?_n.add(void 0!==St?{undo:{patch:[{op:"replace",path:"",value:St}],state:ul(Ht),json:void 0,text:sn,textIsRepaired:hn},redo:{patch:[{op:"replace",path:"",value:C}],state:ul(Le),json:void 0,text:S,textIsRepaired:_t}}:{undo:{patch:void 0,json:void 0,text:sn,state:ul(Ht),textIsRepaired:hn},redo:{patch:void 0,json:C,state:ul(Le),text:S,textIsRepaired:_t}}):void 0!==St&&_n.add({undo:{patch:void 0,json:St,state:ul(Ht),text:sn,textIsRepaired:hn},redo:{patch:void 0,json:void 0,text:S,textIsRepaired:_t,state:ul(Le)}}))}var pn=[],Fr=Zb(pae);function $r(Ee,St,Ht,sn){g0(function(){var hn;try{hn=Fr(Ee,St,Ht,sn)}catch(ri){hn=[{path:[],message:"Failed to validate: "+ri.message,severity:Xd.warning}]}or(hn,pn)||(a("validationErrors changed:",hn),e(11,pn=hn))},function(hn){return a("validationErrors updated in ".concat(hn," ms"))})}function wr(){return a("validate"),xe?{parseError:xe,isRepairable:!1}:($r(C,L,q,X),Hi(pn)?null:{validationErrors:pn})}function Or(Ee,St){if(a("patch",Ee,St),void 0===C)throw new Error("Cannot apply patch: no JSON");var Ht={json:C},sn=C,hn=Le,ri=_t,Oi=ose(C,Ee),Bn=$oe(C,Le,Ee).json,ei=function MJe(t,n,e){return n.some(function(i){return function(r,o,s){if(!r)return!1;if("replace"===o.op){var a=ou(Xu(o.path),s),l=a.rowIndex,c=a.columnIndex,u=s.findIndex(function(d){return or(d,r.path)});if(-1!==l&&-1!==c&&c!==u)return!1}return!0}(t.sortedColumn,i,e)})?Ze(Ze({},t),{},{sortedColumn:void 0}):t}(Le,Ee,ze),Yn="function"==typeof St?St(Bn,ei):void 0;e(7,C=Yn&&void 0!==Yn.json?Yn.json:Bn);var br=Yn&&void 0!==Yn.state?Yn.state:ei;e(10,Le=br),e(15,S=void 0),e(18,_t=!1),e(17,Ne=void 0),_n.add({undo:{patch:Oi,json:void 0,text:void 0,state:ul(hn),textIsRepaired:ri},redo:{patch:Ee,json:void 0,state:ul(br),text:void 0,textIsRepaired:_t}});var Ar={json:C,previousJson:sn,undo:Oi,redo:Ee};return Wr(Ht,Ar),Ar}function Ai(Ee,St){if(!M)return Or(Ee,St)}function Wr(Ee,St){(void 0!==Ee.json||void 0!==Ee?.text)&&(void 0!==S?H({text:S,json:void 0},Ee,{contentErrors:wr(),patchResult:St}):void 0!==C&&H({text:void 0,json:C},Ee,{contentErrors:wr(),patchResult:St}))}function jo(Ee){a("handleFind",Ee)}function Fn(Ee){a("pasted json as text",Ee),e(17,Ne=Ee)}function xt(Ee){var St=parseInt(Ee[0]),Ht=[String(St+1)].concat(si(Ee.slice(1)));return Xc(C,Ht)?mr(Ht,!1):mr(Ee,!1)}function ui(){_&&(_.focus(),_.select())}function Fi(){Le.selection||Ie(function(){if(oo(C)&&!Hi(C)&&!Hi(ze))return mr(["0"].concat(si(ze[0])),!1)}())}function Cr(Ee){var St=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],Ht=b4(Ee,ze,B,18),sn=Ht-ie,hn=gt(Ee);a("scrollTo",{path:Ee,top:Ht,scrollTop:ie,elem:hn});var ri=y.getBoundingClientRect();if(hn&&!St){var Oi=hn.getBoundingClientRect();if(Oi.bottom>ri.top&&Oi.topHt.right&&e(13,y.scrollLeft+=sn.right-Ht.right,y),sn.left(Bn=ie+ri.height-18)&&e(13,y.scrollTop+=hn-Bn,y),sn0&&void 0!==Ht[0])||Ht[0],void 0!==C){sn.next=3;break}return sn.abrupt("return");case 3:return sn.next=5,Kle({json:C,documentState:Le,indentation:St?Z:void 0,parser:q});case 5:case"end":return sn.stop()}},Ee)})),Xa.apply(this,arguments)}function Ic(){Zle({json:C,text:S,documentState:Le,keepSelection:!0,readOnly:M,onChange:H,onPatch:Ai})}function we(){!function IJe(t){var n=t.json,e=t.documentState,i=t.columns,o=t.onPatch;if(!t.readOnly&&void 0!==n&&e.selection&&c0(e.selection)){var s=ou(e.selection.focusPath,i),a=s.rowIndex,l=s.columnIndex;jl("duplicate row",{rowIndex:a});var c=[String(a)];o(nse(n,[c]),function(u,d){var h=mr(zm({rowIndex:a0?a-1:void 0,h=void 0!==d?mr(zm({rowIndex:d,columnIndex:l},i),!1):void 0;return jl("remove row new selection",{rowIndex:a,newRowIndex:d,newSelection:h}),{state:Ze(Ze({},u),{},{selection:h})}})}}({json:C,documentState:Le,columns:ze,readOnly:M,onPatch:Ai})}function Ue(){return(Ue=Zi(vn().mark(function Ee(St){return vn().wrap(function(Ht){for(;;)switch(Ht.prev=Ht.next){case 0:return Ht.next=2,ece({char:St,selectInside:!1,refJsonEditor:v,json:C,documentState:Le,readOnly:M,parser:q,onPatch:Ai,onReplaceJson:Dn,onSelect:Ie});case 2:case"end":return Ht.stop()}},Ee)}))).apply(this,arguments)}function Dn(Ee,St){var Ht=Le,sn=C,hn=S,ri={json:C,text:S},Oi=_t,Bn=nu(C,Le,[],sh),ei="function"==typeof St?St(Ee,Bn):void 0;e(7,C=ei&&void 0!==ei.json?ei.json:Ee),e(10,Le=ei&&void 0!==ei.state?ei.state:Bn),e(15,S=void 0),e(18,_t=!1),Ye(C),Ni({previousJson:sn,previousState:Ht,previousText:hn,previousTextIsRepaired:Oi}),Wr(ri,null)}function ii(Ee,St){a("handleChangeText");var Ht=Le,sn=C,hn=S,ri={json:C,text:S},Oi=_t;try{e(7,C=re(Ee)),e(10,Le=nu(C,Le,[],sh)),e(15,S=void 0),e(18,_t=!1)}catch{try{e(7,C=re(Yd(Ee))),e(10,Le=nu(C,Le,[],sh)),e(15,S=Ee),e(18,_t=!0)}catch{e(7,C=void 0),e(10,Le=Lk({json:C,expand:sh})),e(15,S=Ee),e(18,_t=!1)}}if("function"==typeof St){var Bn=St(C,Le);e(7,C=Bn&&Bn.json?Bn.json:C),e(10,Le=Bn&&Bn.state?Bn.state:Le)}Ye(C),Ni({previousJson:sn,previousState:Ht,previousText:hn,previousTextIsRepaired:Oi}),Wr(ri,null)}function hi(Ee){var Ht=Ee.rootPath,sn=Ee.onTransform,hn=Ee.onClose;M||void 0===C||(ot=!0,oe({id:Ee.id||p,json:C,rootPath:Ht||[],onTransform:sn?function(ri){sn({operations:ri,json:C,transformedJson:Yu(C,ri)})}:function(ri){a("onTransform",Ht,ri),Ai(ri)},onClose:function(){ot=!1,ui(),hn&&hn()}}))}function di(Ee){a("openJSONEditorModal",{path:Ee}),ot=!0,fe({content:{json:Sn(C,Ee)},path:Ee,onPatch:At.onPatch,onClose:function(){ot=!1,ui()}})}function kr(Ee,St){l(jae,{text:Ee,onParse:Ik,onRepair:soe,onApply:St},Ze(Ze({},Cm),{},{styleWindow:{width:"600px",height:"500px"},styleContent:{padding:0,height:"100%"}}),{onClose:function(){return ui()}})}function Qr(){if(!M&&_n.getState().canUndo){var Ee=_n.undo();if(Ee){var St={json:C,text:S};e(7,C=Ee.undo.patch?Yu(C,Ee.undo.patch):Ee.undo.json),e(10,Le=Ee.undo.state),e(15,S=Ee.undo.text),e(18,_t=Ee.undo.textIsRepaired),a("undo",{item:Ee,json:C}),Wr(St,{json:C,previousJson:St.json,redo:Ee.undo.patch,undo:Ee.redo.patch}),ui(),Le.selection&&Cr(Le.selection.focusPath,!1)}}}function gi(){if(!M&&_n.getState().canRedo){var Ee=_n.redo();if(Ee){var St={json:C,text:S};e(7,C=Ee.redo.patch?Yu(C,Ee.redo.patch):Ee.redo.json),e(10,Le=Ee.redo.state),e(15,S=Ee.redo.text),e(18,_t=Ee.redo.textIsRepaired),a("redo",{item:Ee,json:C}),Wr(St,{json:C,previousJson:St.json,redo:Ee.redo.patch,undo:Ee.undo.patch}),ui(),Le.selection&&Cr(Le.selection.focusPath,!1)}}}function yr(Ee,St){e(68,B[St]=Ee.getBoundingClientRect().height,B)}return t.$$set=function(Ee){"readOnly"in Ee&&e(0,M=Ee.readOnly),"externalContent"in Ee&&e(47,$=Ee.externalContent),"mainMenuBar"in Ee&&e(1,G=Ee.mainMenuBar),"escapeControlCharacters"in Ee&&e(48,R=Ee.escapeControlCharacters),"escapeUnicodeCharacters"in Ee&&e(49,z=Ee.escapeUnicodeCharacters),"flattenColumns"in Ee&&e(50,U=Ee.flattenColumns),"parser"in Ee&&e(2,q=Ee.parser),"parseMemoizeOne"in Ee&&e(51,re=Ee.parseMemoizeOne),"validator"in Ee&&e(52,L=Ee.validator),"validationParser"in Ee&&e(53,X=Ee.validationParser),"indentation"in Ee&&e(3,Z=Ee.indentation),"onChange"in Ee&&e(54,H=Ee.onChange),"onChangeMode"in Ee&&e(4,he=Ee.onChangeMode),"onRenderValue"in Ee&&e(55,E=Ee.onRenderValue),"onRenderMenu"in Ee&&e(5,N=Ee.onRenderMenu),"onFocus"in Ee&&e(56,F=Ee.onFocus),"onBlur"in Ee&&e(57,Y=Ee.onBlur),"onSortModal"in Ee&&e(58,V=Ee.onSortModal),"onTransformModal"in Ee&&e(59,oe=Ee.onTransformModal),"onJSONEditorModal"in Ee&&e(60,fe=Ee.onJSONEditorModal)},t.$$.update=function(){393216&t.$$.dirty[1]&&e(67,g=TO({escapeControlCharacters:R,escapeUnicodeCharacters:z})),65536&t.$$.dirty[1]&&function on(Ee){var St=C,Ht=Qv(Ee)?Ee.text!==S:!or(St,Ee.json);if(a("update external content",{isChanged:Ht}),Ht){var sn={json:C,text:S},hn=C,ri=Le,Oi=S,Bn=_t;if(Qv(Ee))try{e(7,C=re(Ee.text)),e(15,S=Ee.text),e(18,_t=!1),e(16,xe=void 0)}catch(ei){try{e(7,C=re(Yd(Ee.text))),e(15,S=Ee.text),e(18,_t=!0),e(16,xe=void 0)}catch{e(7,C=void 0),e(15,S=$.text),e(18,_t=!1),e(16,xe=Nk(S,ei.message||ei.toString()))}}else e(7,C=Ee.json),e(15,S=void 0),e(18,_t=!1),e(16,xe=void 0);Ye(C),Le.sortedColumn&&e(10,Le=Ze(Ze({},Le),{},{sortedColumn:void 0})),Ni({previousJson:hn,previousState:ri,previousText:Oi,previousTextIsRepaired:Bn}),Wr(sn,null)}}($),896&t.$$.dirty[0]|524288&t.$$.dirty[1]&&e(9,ze=oo(C)?function(Ee,St){var Ht,sn=new Set(St.map(ln)),hn=new Set(Ee.map(ln)),ri=Re(sn);try{for(ri.s();!(Ht=ri.n()).done;){var Oi=Ht.value;hn.has(Oi)||sn.delete(Oi)}}catch(br){ri.e(br)}finally{ri.f()}var Bn,ei=Re(hn);try{for(ei.s();!(Bn=ei.n()).done;){var Yn=Bn.value;sn.has(Yn)||sn.add(Yn)}}catch(br){ei.e(br)}finally{ei.f()}return si(sn).map(Xu)}(function(Ee,St){var Ht=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,sn={};Array.isArray(Ee)&&function LUe(t,n,e){if(t.length1?(t.length-1)/(n-1):t.length,r=0;rtt),128&t.$$.dirty[0]|448&t.$$.dirty[2]&&e(22,o=function(Ee,St,Ht,sn,hn){for(var ri=arguments.length>5&&void 0!==arguments[5]?arguments[5]:80,Oi=oo(Ht)?Ht.length:0,Bn=function TJe(t,n){var e=Object.values(t);return Hi(e)?n:e.reduce(function(r,o){return r+o})/e.length}(sn,hn),ei=Ee-ri,Yn=St+2*ri,br=function(gd){return sn[gd]||hn},Ar=0,Po=0;Po0&&(Po-=br(--Ar));for(var ca=Ar,md=0;md0?mr(zm({rowIndex:br.rowIndex,columnIndex:Po-1},ei),!1):Yn;Ie(Ht),Qo(Ht.focusPath)}if("ArrowRight"===St&&(Ee.preventDefault(),Fi(),Le.selection)){var sn=function(ei,Yn){var br=ou(Yn.focusPath,ei),Po=br.columnIndex;return Po0?mr(zm({rowIndex:Ar-1,columnIndex:br.columnIndex},ei),!1):Yn}(ze,Le.selection);Ie(hn),Qo(hn.focusPath)}if("ArrowDown"===St&&(Ee.preventDefault(),Fi(),Le.selection)){var ri=function(ei,Yn,br){var Ar=ou(br.focusPath,Yn),Po=Ar.rowIndex;return Po1?" (".concat(t[18].length,")"):""),onClose:t[23]}}),h=new Rpe({props:{mode:Ln(t[18]).mode,content:Ln(t[18]).content,readOnly:t[0],indentation:t[1],tabSize:t[2],statusBar:t[5],mainMenuBar:t[3],navigationBar:t[4],escapeControlCharacters:t[6],escapeUnicodeCharacters:t[7],flattenColumns:t[8],parser:t[9],parseMemoizeOne:t[20],validator:t[10],validationParser:t[11],pathParser:t[12],insideModal:!0,onError:t[26],onChange:t[24],onChangeMode:t[25],onRenderValue:t[13],onClassName:t[14],onFocus:dh,onBlur:dh,onRenderMenu:t[15],onSortModal:t[16],onTransformModal:t[17],onJSONEditorModal:t[27]}});var C=t[19]&&$pe(t),S=t[18].length>1&&Bpe(t);function M(R,z){return R[0]?Vnt:Hnt}var $=M(t),G=$(t);return{c:function(){n=be("div"),mt(e.$$.fragment),i=it(),r=be("div"),(o=be("div")).innerHTML='
    Path
    ',s=it(),a=be("input"),l=it(),(c=be("div")).innerHTML='
    Contents
    ',u=it(),d=be("div"),mt(h.$$.fragment),f=it(),p=be("div"),C&&C.c(),m=it(),S&&S.c(),g=it(),G.c(),P(o,"class","jse-label svelte-1hibiw3"),P(a,"class","jse-path svelte-1hibiw3"),P(a,"type","text"),a.readOnly=!0,P(a,"title","Selected path"),a.value=t[21],P(c,"class","jse-label svelte-1hibiw3"),P(d,"class","jse-modal-inline-editor svelte-1hibiw3"),P(p,"class","jse-actions svelte-1hibiw3"),P(r,"class","jse-modal-contents svelte-1hibiw3"),P(n,"class","jse-modal jse-jsoneditor-modal svelte-1hibiw3")},m:function(R,z){Pe(R,n,z),ft(e,n,null),de(n,i),de(n,r),de(r,o),de(r,s),de(r,a),de(r,l),de(r,c),de(r,u),de(r,d),ft(h,d,null),de(r,f),de(r,p),C&&C.m(p,null),de(p,m),S&&S.m(p,null),de(p,g),G.m(p,null),v=!0,y||(_=_a(iS.call(null,n,t[23])),y=!0)},p:function(R,z){var U={};262144&z[0]&&(U.title="Edit nested content "+(R[18].length>1?" (".concat(R[18].length,")"):"")),e.$set(U),(!v||2097152&z[0]&&a.value!==R[21])&&(a.value=R[21]);var q={};262144&z[0]&&(q.mode=Ln(R[18]).mode),262144&z[0]&&(q.content=Ln(R[18]).content),1&z[0]&&(q.readOnly=R[0]),2&z[0]&&(q.indentation=R[1]),4&z[0]&&(q.tabSize=R[2]),32&z[0]&&(q.statusBar=R[5]),8&z[0]&&(q.mainMenuBar=R[3]),16&z[0]&&(q.navigationBar=R[4]),64&z[0]&&(q.escapeControlCharacters=R[6]),128&z[0]&&(q.escapeUnicodeCharacters=R[7]),256&z[0]&&(q.flattenColumns=R[8]),512&z[0]&&(q.parser=R[9]),1048576&z[0]&&(q.parseMemoizeOne=R[20]),1024&z[0]&&(q.validator=R[10]),2048&z[0]&&(q.validationParser=R[11]),4096&z[0]&&(q.pathParser=R[12]),8192&z[0]&&(q.onRenderValue=R[13]),16384&z[0]&&(q.onClassName=R[14]),32768&z[0]&&(q.onRenderMenu=R[15]),65536&z[0]&&(q.onSortModal=R[16]),131072&z[0]&&(q.onTransformModal=R[17]),h.$set(q),R[19]?C?C.p(R,z):((C=$pe(R)).c(),C.m(p,m)):C&&(C.d(1),C=null),R[18].length>1?S?(S.p(R,z),262144&z[0]&&Q(S,1)):((S=Bpe(R)).c(),Q(S,1),S.m(p,g)):S&&($t(),ce(S,1,1,function(){S=null}),Bt()),$===($=M(R))&&G?G.p(R,z):(G.d(1),(G=$(R))&&(G.c(),G.m(p,null)))},i:function(R){v||(Q(e.$$.fragment,R),Q(h.$$.fragment,R),Q(S),v=!0)},o:function(R){ce(e.$$.fragment,R),ce(h.$$.fragment,R),ce(S),v=!1},d:function(R){R&&je(n),pt(e),pt(h),C&&C.d(),S&&S.d(),G.d(),y=!1,_()}}}function Vpe(t){t.focus()}function Unt(t,n,e){var i,r,o,s=wa("jsoneditor:JSONEditorModal"),a=n.content,l=n.path,c=n.onPatch,u=n.readOnly,d=n.indentation,h=n.tabSize,f=n.mainMenuBar,p=n.navigationBar,m=n.statusBar,g=n.escapeControlCharacters,v=n.escapeUnicodeCharacters,y=n.flattenColumns,_=n.parser,C=n.validator,S=n.validationParser,M=n.pathParser,$=n.onRenderValue,G=n.onClassName,R=n.onRenderMenu,z=n.onSortModal,U=n.onTransformModal,q=xa("simple-modal").close,re=[{mode:X(a),content:a,relativePath:l}],L=void 0;function X(H){return DO(H)&&oo(H.json)?Jo.table:Jo.tree}function Z(H){s("handleChange",H);var he=Ze(Ze({},Ln(re)),{},{content:H});e(18,re=[].concat(si(Xi(re)),[he]))}return t.$$set=function(H){"content"in H&&e(28,a=H.content),"path"in H&&e(29,l=H.path),"onPatch"in H&&e(30,c=H.onPatch),"readOnly"in H&&e(0,u=H.readOnly),"indentation"in H&&e(1,d=H.indentation),"tabSize"in H&&e(2,h=H.tabSize),"mainMenuBar"in H&&e(3,f=H.mainMenuBar),"navigationBar"in H&&e(4,p=H.navigationBar),"statusBar"in H&&e(5,m=H.statusBar),"escapeControlCharacters"in H&&e(6,g=H.escapeControlCharacters),"escapeUnicodeCharacters"in H&&e(7,v=H.escapeUnicodeCharacters),"flattenColumns"in H&&e(8,y=H.flattenColumns),"parser"in H&&e(9,_=H.parser),"validator"in H&&e(10,C=H.validator),"validationParser"in H&&e(11,S=H.validationParser),"pathParser"in H&&e(12,M=H.pathParser),"onRenderValue"in H&&e(13,$=H.onRenderValue),"onClassName"in H&&e(14,G=H.onClassName),"onRenderMenu"in H&&e(15,R=H.onRenderMenu),"onSortModal"in H&&e(16,z=H.onSortModal),"onTransformModal"in H&&e(17,U=H.onTransformModal)},t.$$.update=function(){262144&t.$$.dirty[0]&&e(31,i=re.flatMap(function(H){return H.relativePath})),1&t.$$.dirty[1]&&e(21,r=Hi(i)?"(whole document)":tu(Kl(i))),512&t.$$.dirty[0]&&e(20,o=Zb(_.parse))},[u,d,h,f,p,m,g,v,y,_,C,S,M,$,G,R,z,U,re,L,o,r,function(){if(s("handleApply"),!u)try{e(19,L=void 0);var H=[{op:"replace",path:ln(Ln(re).relativePath),value:loe(Ln(re).content,_).json}];if(re.length>1){var he={json:Yu(loe(re[re.length-2].content,_).json,H)};e(18,re=Xi(re)),Z(he)}else c(H),q()}catch(E){e(19,L=E.toString())}},function(){s("handleClose"),re.length>1?(e(18,re=Xi(re)),e(19,L=void 0)):q()},Z,function(H){s("handleChangeMode",H);var he=Ze(Ze({},Ln(re)),{},{mode:H});e(18,re=[].concat(si(Xi(re)),[he]))},function(H){e(19,L=H.toString()),console.error(H)},function(H){var he=H.content,E=H.path;s("handleJSONEditorModal",{content:he,path:E});var N={mode:X(he),content:he,relativePath:E};e(18,re=[].concat(si(re),[N]))},a,l,c,i]}var Gnt=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,Unt,znt,Ei,{content:28,path:29,onPatch:30,readOnly:0,indentation:1,tabSize:2,mainMenuBar:3,navigationBar:4,statusBar:5,escapeControlCharacters:6,escapeUnicodeCharacters:7,flattenColumns:8,parser:9,validator:10,validationParser:11,pathParser:12,onRenderValue:13,onClassName:14,onRenderMenu:15,onSortModal:16,onTransformModal:17},Bnt,[-1,-1]),r}return Se(e)}();function Wnt(t,n,e){var i=xa("simple-modal");return[i.open,i.close]}var qnt=function(t){wt(e,Nn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,Wnt,null,Ei,{open:0,close:1}),r}return Se(e,[{key:"open",get:function(){return this.$$.ctx[0]}},{key:"close",get:function(){return this.$$.ctx[1]}}]),e}();function Xnt(t){pi(t,"svelte-sxaskb",':root{--jse-theme:light;--jse-font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,\n Cantarell, "Helvetica Neue", sans-serif;--jse-font-family-mono:consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace;--jse-font-size-mono:14px;--jse-font-size:16px;--jse-font-size-text-mode-search:80%;--jse-line-height:calc(1em + 4px);--jse-indent-size:calc(1em + 4px);--jse-color-picker-button-size:1em;--jse-padding:10px;--jse-theme-color:#3883fa;--jse-theme-color-highlight:#5f9dff;--jse-background-color:#fff;--jse-text-color:#4d4d4d;--jse-text-readonly:#8d8d8d;--jse-text-color-inverse:#fff;--jse-error-color:#ee5341;--jse-warning-color:#fdc539;--jse-main-border:1px solid #d7d7d7;--jse-menu-color:var(--jse-text-color-inverse);--jse-menu-button-size:32px;--jse-modal-background:#f5f5f5;--jse-modal-overlay-background:rgba(0, 0, 0, 0.3);--jse-modal-code-background:rgba(0, 0, 0, 0.05);--jse-modal-theme-color:#707070;--jse-modal-theme-color-highlight:#646464;--jse-tooltip-color:var(--jse-text-color);--jse-tooltip-background:var(--jse-modal-background);--jse-tooltip-border:var(--jse-main-border);--jse-tooltip-action-button-color:var(--jse-text-color-inverse);--jse-tooltip-action-button-background:#4d4d4d;--jse-panel-background:#ebebeb;--jse-panel-color:var(--jse-text-color);--jse-panel-color-readonly:#b2b2b2;--jse-panel-border:var(--jse-main-border);--jse-panel-button-color:inherit;--jse-panel-button-background:transparent;--jse-panel-button-color-highlight:var(--jse-text-color);--jse-panel-button-background-highlight:#e0e0e0;--jse-navigation-bar-background:var(--jse-background-color);--jse-navigation-bar-background-highlight:#e5e5e5;--jse-navigation-bar-dropdown-color:#656565;--jse-context-menu-background:#656565;--jse-context-menu-background-highlight:#7a7a7a;--jse-context-menu-color:var(--jse-text-color-inverse);--jse-context-menu-color-disabled:#9d9d9d;--jse-context-menu-separator-color:#7a7a7a;--jse-context-menu-pointer-hover-background:#b2b2b2;--jse-context-menu-pointer-background:var(--jse-context-menu-background);--jse-context-menu-pointer-background-highlight:var(--jse-context-menu-background-highlight);--jse-context-menu-pointer-color:var(--jse-context-menu-color);--jse-context-menu-pointer-size:calc(1em + 4px);--jse-context-menu-tip-background:rgba(255, 255, 255, 0.2);--jse-context-menu-tip-color:inherit;--jse-key-color:#1a1a1a;--jse-value-color:#1a1a1a;--jse-value-color-number:#ee422e;--jse-value-color-boolean:#ff8c00;--jse-value-color-null:#004ed0;--jse-value-color-string:#008000;--jse-value-color-url:#008000;--jse-delimiter-color:rgba(0, 0, 0, 0.38);--jse-edit-outline:2px solid #656565;--jse-contents-background-color:transparent;--jse-contents-cursor:pointer;--jse-contents-selected-cursor:grab;--jse-selection-background-color:#d3d3d3;--jse-selection-background-inactive-color:#e8e8e8;--jse-hover-background-color:rgba(0, 0, 0, 0.06);--jse-active-line-background-color:rgba(0, 0, 0, 0.06);--jse-search-match-background-color:#99ff7780;--jse-collapsed-items-background-color:#f5f5f5;--jse-collapsed-items-selected-background-color:#c2c2c2;--jse-collapsed-items-link-color:rgba(0, 0, 0, 0.38);--jse-collapsed-items-link-color-highlight:#ee5341;--jse-search-match-color:#ffe665;--jse-search-match-outline:1px solid #ffd700;--jse-search-match-active-color:#ffd700;--jse-search-match-active-outline:1px solid #e1be00;--jse-tag-background:rgba(0, 0, 0, 0.2);--jse-tag-color:var(--jse-text-color-inverse);--jse-table-header-background:#f5f5f5;--jse-table-header-background-highlight:#e8e8e8;--jse-table-row-odd-background:rgba(0, 0, 0, 0.05);--jse-controls-box-shadow:0 2px 6px 0 rgba(0, 0, 0, 0.24);--jse-input-background:var(--jse-background-color);--jse-input-background-readonly:transparent;--jse-input-border:1px solid #d8dbdf;--jse-input-border-focus:1px solid var(--jse-theme-color);--jse-input-radius:3px;--jse-button-background:#e0e0e0;--jse-button-background-highlight:#e7e7e7;--jse-button-color:var(--jse-text-color);--jse-button-primary-background:var(--jse-theme-color);--jse-button-primary-background-highlight:var(--jse-theme-color-highlight);--jse-button-primary-background-disabled:#9d9d9d;--jse-button-primary-color:var(--jse-text-color-inverse);--jse-button-secondary-background:#d3d3d3;--jse-button-secondary-background-highlight:#e1e1e1;--jse-button-secondary-background-disabled:#9d9d9d;--jse-button-secondary-color:var(--jse-text-color);--jse-a-color:#156fc5;--jse-a-color-highlight:#0f508d;--jse-message-error-background:var(--jse-error-color);--jse-message-error-color:var(--jse-text-color-inverse);--jse-message-warning-background:#ffde5c;--jse-message-warning-color:var(--jse-text-color);--jse-message-success-background:#9ac45d;--jse-message-success-color:var(--jse-text-color-inverse);--jse-message-info-background:#4f91ff;--jse-message-info-color:var(--jse-text-color-inverse);--jse-message-action-background:rgba(255, 255, 255, 0.2);--jse-message-action-background-highlight:rgba(255, 255, 255, 0.3);--item-is-active-bg:#3883fa;--border:1px solid #d8dbdf;--border-radius:3px;--background:#fff;--padding:0 10px;--multi-select-padding:0 10px;--jse-color-picker-background:var(--jse-panel-background);--jse-color-picker-border-box-shadow:#cbcbcb 0 0 0 1px}.jse-main.svelte-sxaskb{width:100%;height:100%;min-width:0;min-height:150px;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;position:relative;display:flex;flex-direction:row}')}function Hpe(t){var n,e;return n=new Rpe({props:{mode:t[1],content:t[0],readOnly:t[2],indentation:t[3],tabSize:t[4],statusBar:t[7],mainMenuBar:t[5],navigationBar:t[6],escapeControlCharacters:t[8],escapeUnicodeCharacters:t[9],flattenColumns:t[10],parser:t[11],parseMemoizeOne:t[24],validator:t[12],validationParser:t[13],pathParser:t[14],insideModal:!1,onError:t[18],onChange:t[25],onChangeMode:t[28],onRenderValue:t[15],onClassName:t[16],onFocus:t[26],onBlur:t[27],onRenderMenu:t[17],onSortModal:t[30],onTransformModal:t[29],onJSONEditorModal:t[31]}}),t[56](n),{c:function(){mt(n.$$.fragment)},m:function(r,o){ft(n,r,o),e=!0},p:function(r,o){var s={};2&o[0]&&(s.mode=r[1]),1&o[0]&&(s.content=r[0]),4&o[0]&&(s.readOnly=r[2]),8&o[0]&&(s.indentation=r[3]),16&o[0]&&(s.tabSize=r[4]),128&o[0]&&(s.statusBar=r[7]),32&o[0]&&(s.mainMenuBar=r[5]),64&o[0]&&(s.navigationBar=r[6]),256&o[0]&&(s.escapeControlCharacters=r[8]),512&o[0]&&(s.escapeUnicodeCharacters=r[9]),1024&o[0]&&(s.flattenColumns=r[10]),2048&o[0]&&(s.parser=r[11]),16777216&o[0]&&(s.parseMemoizeOne=r[24]),4096&o[0]&&(s.validator=r[12]),8192&o[0]&&(s.validationParser=r[13]),16384&o[0]&&(s.pathParser=r[14]),262144&o[0]&&(s.onError=r[18]),32768&o[0]&&(s.onRenderValue=r[15]),65536&o[0]&&(s.onClassName=r[16]),131072&o[0]&&(s.onRenderMenu=r[17]),n.$set(s)},i:function(r){e||(Q(n.$$.fragment,r),e=!0)},o:function(r){ce(n.$$.fragment,r),e=!1},d:function(r){t[56](null),pt(n,r)}}}function Ynt(t){var n,e,i,r,o,s=t[19];function a(u){t[55](u)}var l={};void 0!==t[22]&&(l.open=t[22]),n=new qnt({props:l}),Vi.push(function(){return Uu(n,"open",a)});var c=Hpe(t);return{c:function(){mt(n.$$.fragment),i=it(),r=be("div"),c.c(),P(r,"class","jse-main svelte-sxaskb"),Mt(r,"jse-focus",t[20])},m:function(u,d){ft(n,u,d),Pe(u,i,d),Pe(u,r,d),c.m(r,null),o=!0},p:function(u,d){var h={};!e&&4194304&d[0]&&(e=!0,h.open=u[22],zu(function(){return e=!1})),n.$set(h),524288&d[0]&&Ei(s,s=u[19])?($t(),ce(c,1,1,Lt),Bt(),(c=Hpe(u)).c(),Q(c,1),c.m(r,null)):c.p(u,d),(!o||1048576&d[0])&&Mt(r,"jse-focus",u[20])},i:function(u){o||(Q(n.$$.fragment,u),Q(c),o=!0)},o:function(u){ce(n.$$.fragment,u),ce(c),o=!1},d:function(u){pt(n,u),u&&je(i),u&&je(r),c.d(u)}}}function Jnt(t){var n,e;return n=new CQ({props:{closeOnEsc:!1,$$slots:{default:[Ynt]},$$scope:{ctx:t}}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};25165823&r[0]|268435456&r[1]&&(o.$$scope={dirty:r,ctx:i}),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function Knt(t){for(var n,e,i,r=[{show:null===(n=t[23])||void 0===n?void 0:n.component},kQ,{closeOnEsc:!1}],o={$$slots:{default:[Jnt]},$$scope:{ctx:t}},s=0;s1)return!1;var p=this._items[0];return""===p||'""'===p}},{key:"str",get:function(){var p;return null!==(p=this._str)&&void 0!==p?p:this._str=this._items.reduce(function(m,g){return"".concat(m).concat(g)},"")}},{key:"names",get:function(){var p;return null!==(p=this._names)&&void 0!==p?p:this._names=this._items.reduce(function(m,g){return g instanceof e&&(m[g.str]=(m[g.str]||0)+1),m},{})}}]),f}(n);function r(d){for(var h=[d[0]],f=0,p=arguments.length,m=new Array(p>1?p-1:0),g=1;g1?p-1:0),g=1;g0&&void 0!==arguments[0]?arguments[0]:{},u=c.prefixes,d=c.parent;ke(this,l),this._names={},this._prefixes=u,this._parent=d}return Se(l,[{key:"toName",value:function(c){return c instanceof e.Name?c:this.name(c)}},{key:"name",value:function(c){return new e.Name(this._newName(c))}},{key:"_newName",value:function(c){var u=this._names[c]||this._nameGroup(c);return"".concat(c).concat(u.index++)}},{key:"_nameGroup",value:function(c){var u,d;if(null!==(d=null===(u=this._parent)||void 0===u?void 0:u._prefixes)&&void 0!==d&&d.has(c)||this._prefixes&&!this._prefixes.has(c))throw new Error('CodeGen: prefix "'.concat(c,'" is not allowed in this scope'));return this._names[c]={prefix:c,index:0}}}]),l}();t.Scope=r;var o=function(l){wt(u,l);var c=Ct(u);function u(d,h){var f;return ke(this,u),(f=c.call(this,h)).prefix=d,f}return Se(u,[{key:"setValue",value:function(d,h){var f=h.property,p=h.itemIndex;this.value=d,this.scopePath=(0,e._)(RW||(RW=Ae([".","[","]"])),new e.Name(f),p)}}]),u}(e.Name);t.ValueScopeName=o;var s=(0,e._)($W||($W=Ae(["\n"],["\\n"]))),a=function(l){wt(u,l);var c=Ct(u);function u(d){var h;return ke(this,u),(h=c.call(this,d))._values={},h._scope=d.scope,h.opts=Ze(Ze({},d),{},{_n:d.lines?s:e.nil}),h}return Se(u,[{key:"get",value:function(){return this._scope}},{key:"name",value:function(d){return new o(d,this._newName(d))}},{key:"value",value:function(d,h){var f;if(void 0===h.ref)throw new Error("CodeGen: ref must be passed in value");var p=this.toName(d),m=p.prefix,g=null!==(f=h.key)&&void 0!==f?f:h.ref,v=this._values[m];if(v){var y=v.get(g);if(y)return y}else v=this._values[m]=new Map;v.set(g,p);var _=this._scope[m]||(this._scope[m]=[]),C=_.length;return _[C]=h.ref,p.setValue(h,{property:m,itemIndex:C}),p}},{key:"getValue",value:function(d,h){var f=this._values[d];if(f)return f.get(h)}},{key:"scopeRefs",value:function(d){return this._reduceValues(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._values,function(f){if(void 0===f.scopePath)throw new Error('CodeGen: name "'.concat(f,'" has no value'));return(0,e._)(BW||(BW=Ae(["","",""])),d,f.scopePath)})}},{key:"scopeCode",value:function(){return this._reduceValues(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._values,function(p){if(void 0===p.value)throw new Error('CodeGen: name "'.concat(p,'" has no value'));return p.value.code},arguments.length>1?arguments[1]:void 0,arguments.length>2?arguments[2]:void 0)}},{key:"_reduceValues",value:function(d,h){var f=this,p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},m=arguments.length>3?arguments[3]:void 0,g=e.nil,v=function(_){var C=d[_];if(!C)return"continue";var S=p[_]=p[_]||new Map;C.forEach(function(M){if(!S.has(M)){S.set(M,n.Started);var $=h(M);if($){var G=f.opts.es5?t.varKinds.var:t.varKinds.const;g=(0,e._)(VW||(VW=Ae(["",""," "," = ",";",""])),g,G,M,$,f.opts._n)}else{if(!($=m?.(M)))throw new i(M);g=(0,e._)(HW||(HW=Ae(["","","",""])),g,$,f.opts._n)}S.set(M,n.Completed)}})};for(var y in d)v(y);return g}}]),u}(r);t.ValueScope=a}(eme)),eme}function xr(){return Zpe||(Zpe=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;var n=DD(),e=tme(),i=DD();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return i.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return i.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return i.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return i.Name}});var r=tme();Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return r.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return r.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return r.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return r.varKinds}}),t.operators={GT:new n._Code(">"),GTE:new n._Code(">="),LT:new n._Code("<"),LTE:new n._Code("<="),EQ:new n._Code("==="),NEQ:new n._Code("!=="),NOT:new n._Code("!"),OR:new n._Code("||"),AND:new n._Code("&&"),ADD:new n._Code("+")};var o=function(){function F(){ke(this,F)}return Se(F,[{key:"optimizeNodes",value:function(){return this}},{key:"optimizeNames",value:function(Y,V){return this}}]),F}(),s=function(F){wt(V,F);var Y=Ct(V);function V(oe,fe,Ne){var xe;return ke(this,V),(xe=Y.call(this)).varKind=oe,xe.name=fe,xe.rhs=Ne,xe}return Se(V,[{key:"render",value:function(oe){var Ne=oe._n,xe=oe.es5?e.varKinds.var:this.varKind,tt=void 0===this.rhs?"":" = ".concat(this.rhs);return"".concat(xe," ").concat(this.name).concat(tt,";")+Ne}},{key:"optimizeNames",value:function(oe,fe){if(oe[this.name.str])return this.rhs&&(this.rhs=L(this.rhs,oe,fe)),this}},{key:"names",get:function(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}]),V}(o),a=function(F){wt(V,F);var Y=Ct(V);function V(oe,fe,Ne){var xe;return ke(this,V),(xe=Y.call(this)).lhs=oe,xe.rhs=fe,xe.sideEffects=Ne,xe}return Se(V,[{key:"render",value:function(oe){var fe=oe._n;return"".concat(this.lhs," = ").concat(this.rhs,";")+fe}},{key:"optimizeNames",value:function(oe,fe){if(!(this.lhs instanceof n.Name)||oe[this.lhs.str]||this.sideEffects)return this.rhs=L(this.rhs,oe,fe),this}},{key:"names",get:function(){return re(this.lhs instanceof n.Name?{}:Ze({},this.lhs.names),this.rhs)}}]),V}(o),l=function(F){wt(V,F);var Y=Ct(V);function V(oe,fe,Ne,xe){var tt;return ke(this,V),(tt=Y.call(this,oe,Ne,xe)).op=fe,tt}return Se(V,[{key:"render",value:function(oe){var fe=oe._n;return"".concat(this.lhs," ").concat(this.op,"= ").concat(this.rhs,";")+fe}}]),V}(a),c=function(F){wt(V,F);var Y=Ct(V);function V(oe){var fe;return ke(this,V),(fe=Y.call(this)).label=oe,fe.names={},fe}return Se(V,[{key:"render",value:function(oe){var fe=oe._n;return"".concat(this.label,":")+fe}}]),V}(o),u=function(F){wt(V,F);var Y=Ct(V);function V(oe){var fe;return ke(this,V),(fe=Y.call(this)).label=oe,fe.names={},fe}return Se(V,[{key:"render",value:function(oe){var fe=oe._n,Ne=this.label?" ".concat(this.label):"";return"break".concat(Ne,";")+fe}}]),V}(o),d=function(F){wt(V,F);var Y=Ct(V);function V(oe){var fe;return ke(this,V),(fe=Y.call(this)).error=oe,fe}return Se(V,[{key:"render",value:function(oe){var fe=oe._n;return"throw ".concat(this.error,";")+fe}},{key:"names",get:function(){return this.error.names}}]),V}(o),h=function(F){wt(V,F);var Y=Ct(V);function V(oe){var fe;return ke(this,V),(fe=Y.call(this)).code=oe,fe}return Se(V,[{key:"render",value:function(oe){var fe=oe._n;return"".concat(this.code,";")+fe}},{key:"optimizeNodes",value:function(){return"".concat(this.code)?this:void 0}},{key:"optimizeNames",value:function(oe,fe){return this.code=L(this.code,oe,fe),this}},{key:"names",get:function(){return this.code instanceof n._CodeOrName?this.code.names:{}}}]),V}(o),f=function(F){wt(V,F);var Y=Ct(V);function V(){var oe,fe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return ke(this,V),(oe=Y.call(this)).nodes=fe,oe}return Se(V,[{key:"render",value:function(oe){return this.nodes.reduce(function(fe,Ne){return fe+Ne.render(oe)},"")}},{key:"optimizeNodes",value:function(){for(var oe=this.nodes,fe=oe.length;fe--;){var Ne=oe[fe].optimizeNodes();Array.isArray(Ne)?oe.splice.apply(oe,[fe,1].concat(si(Ne))):Ne?oe[fe]=Ne:oe.splice(fe,1)}return oe.length>0?this:void 0}},{key:"optimizeNames",value:function(oe,fe){for(var Ne=this.nodes,xe=Ne.length;xe--;){var tt=Ne[xe];tt.optimizeNames(oe,fe)||(X(oe,tt.names),Ne.splice(xe,1))}return Ne.length>0?this:void 0}},{key:"names",get:function(){return this.nodes.reduce(function(oe,fe){return q(oe,fe.names)},{})}}]),V}(o),p=function(F){wt(V,F);var Y=Ct(V);function V(){return ke(this,V),Y.apply(this,arguments)}return Se(V,[{key:"render",value:function(oe){return"{"+oe._n+pr(qi(V.prototype),"render",this).call(this,oe)+"}"+oe._n}}]),V}(f),m=function(F){wt(V,F);var Y=Ct(V);function V(){return ke(this,V),Y.apply(this,arguments)}return Se(V)}(f),g=function(F){wt(V,F);var Y=Ct(V);function V(){return ke(this,V),Y.apply(this,arguments)}return Se(V)}(p);g.kind="else";var v=function(F){wt(V,F);var Y=Ct(V);function V(oe,fe){var Ne;return ke(this,V),(Ne=Y.call(this,fe)).condition=oe,Ne}return Se(V,[{key:"render",value:function(oe){var fe="if(".concat(this.condition,")")+pr(qi(V.prototype),"render",this).call(this,oe);return this.else&&(fe+="else "+this.else.render(oe)),fe}},{key:"optimizeNodes",value:function(){pr(qi(V.prototype),"optimizeNodes",this).call(this);var oe=this.condition;if(!0===oe)return this.nodes;var fe=this.else;if(fe){var Ne=fe.optimizeNodes();fe=this.else=Array.isArray(Ne)?new g(Ne):Ne}return fe?!1===oe?fe instanceof V?fe:fe.nodes:this.nodes.length?this:new V(Z(oe),fe instanceof V?[fe]:fe.nodes):!1!==oe&&this.nodes.length?this:void 0}},{key:"optimizeNames",value:function(oe,fe){var Ne;if(this.else=null===(Ne=this.else)||void 0===Ne?void 0:Ne.optimizeNames(oe,fe),pr(qi(V.prototype),"optimizeNames",this).call(this,oe,fe)||this.else)return this.condition=L(this.condition,oe,fe),this}},{key:"names",get:function(){var oe=pr(qi(V.prototype),"names",this);return re(oe,this.condition),this.else&&q(oe,this.else.names),oe}}]),V}(p);v.kind="if";var y=function(F){wt(V,F);var Y=Ct(V);function V(){return ke(this,V),Y.apply(this,arguments)}return Se(V)}(p);y.kind="for";var _=function(F){wt(V,F);var Y=Ct(V);function V(oe){var fe;return ke(this,V),(fe=Y.call(this)).iteration=oe,fe}return Se(V,[{key:"render",value:function(oe){return"for(".concat(this.iteration,")")+pr(qi(V.prototype),"render",this).call(this,oe)}},{key:"optimizeNames",value:function(oe,fe){if(pr(qi(V.prototype),"optimizeNames",this).call(this,oe,fe))return this.iteration=L(this.iteration,oe,fe),this}},{key:"names",get:function(){return q(pr(qi(V.prototype),"names",this),this.iteration.names)}}]),V}(y),C=function(F){wt(V,F);var Y=Ct(V);function V(oe,fe,Ne,xe){var tt;return ke(this,V),(tt=Y.call(this)).varKind=oe,tt.name=fe,tt.from=Ne,tt.to=xe,tt}return Se(V,[{key:"render",value:function(oe){var Ne=this.name,xe=this.from,tt=this.to;return"for(".concat(oe.es5?e.varKinds.var:this.varKind," ").concat(Ne,"=").concat(xe,"; ").concat(Ne,"<").concat(tt,"; ").concat(Ne,"++)")+pr(qi(V.prototype),"render",this).call(this,oe)}},{key:"names",get:function(){var oe=re(pr(qi(V.prototype),"names",this),this.from);return re(oe,this.to)}}]),V}(y),S=function(F){wt(V,F);var Y=Ct(V);function V(oe,fe,Ne,xe){var tt;return ke(this,V),(tt=Y.call(this)).loop=oe,tt.varKind=fe,tt.name=Ne,tt.iterable=xe,tt}return Se(V,[{key:"render",value:function(oe){return"for(".concat(this.varKind," ").concat(this.name," ").concat(this.loop," ").concat(this.iterable,")")+pr(qi(V.prototype),"render",this).call(this,oe)}},{key:"optimizeNames",value:function(oe,fe){if(pr(qi(V.prototype),"optimizeNames",this).call(this,oe,fe))return this.iterable=L(this.iterable,oe,fe),this}},{key:"names",get:function(){return q(pr(qi(V.prototype),"names",this),this.iterable.names)}}]),V}(y),M=function(F){wt(V,F);var Y=Ct(V);function V(oe,fe,Ne){var xe;return ke(this,V),(xe=Y.call(this)).name=oe,xe.args=fe,xe.async=Ne,xe}return Se(V,[{key:"render",value:function(oe){return"".concat(this.async?"async ":"","function ").concat(this.name,"(").concat(this.args,")")+pr(qi(V.prototype),"render",this).call(this,oe)}}]),V}(p);M.kind="func";var $=function(F){wt(V,F);var Y=Ct(V);function V(){return ke(this,V),Y.apply(this,arguments)}return Se(V,[{key:"render",value:function(oe){return"return "+pr(qi(V.prototype),"render",this).call(this,oe)}}]),V}(f);$.kind="return";var G=function(F){wt(V,F);var Y=Ct(V);function V(){return ke(this,V),Y.apply(this,arguments)}return Se(V,[{key:"render",value:function(oe){var fe="try"+pr(qi(V.prototype),"render",this).call(this,oe);return this.catch&&(fe+=this.catch.render(oe)),this.finally&&(fe+=this.finally.render(oe)),fe}},{key:"optimizeNodes",value:function(){var oe,fe;return pr(qi(V.prototype),"optimizeNodes",this).call(this),null===(oe=this.catch)||void 0===oe||oe.optimizeNodes(),null===(fe=this.finally)||void 0===fe||fe.optimizeNodes(),this}},{key:"optimizeNames",value:function(oe,fe){var Ne,xe;return pr(qi(V.prototype),"optimizeNames",this).call(this,oe,fe),null===(Ne=this.catch)||void 0===Ne||Ne.optimizeNames(oe,fe),null===(xe=this.finally)||void 0===xe||xe.optimizeNames(oe,fe),this}},{key:"names",get:function(){var oe=pr(qi(V.prototype),"names",this);return this.catch&&q(oe,this.catch.names),this.finally&&q(oe,this.finally.names),oe}}]),V}(p),R=function(F){wt(V,F);var Y=Ct(V);function V(oe){var fe;return ke(this,V),(fe=Y.call(this)).error=oe,fe}return Se(V,[{key:"render",value:function(oe){return"catch(".concat(this.error,")")+pr(qi(V.prototype),"render",this).call(this,oe)}}]),V}(p);R.kind="catch";var z=function(F){wt(V,F);var Y=Ct(V);function V(){return ke(this,V),Y.apply(this,arguments)}return Se(V,[{key:"render",value:function(oe){return"finally"+pr(qi(V.prototype),"render",this).call(this,oe)}}]),V}(p);z.kind="finally";var U=function(){function F(Y){var V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ke(this,F),this._values={},this._blockStarts=[],this._constants={},this.opts=Ze(Ze({},V),{},{_n:V.lines?"\n":""}),this._extScope=Y,this._scope=new e.Scope({parent:Y}),this._nodes=[new m]}return Se(F,[{key:"toString",value:function(){return this._root.render(this.opts)}},{key:"name",value:function(Y){return this._scope.name(Y)}},{key:"scopeName",value:function(Y){return this._extScope.name(Y)}},{key:"scopeValue",value:function(Y,V){var oe=this._extScope.value(Y,V);return(this._values[oe.prefix]||(this._values[oe.prefix]=new Set)).add(oe),oe}},{key:"getScopeValue",value:function(Y,V){return this._extScope.getValue(Y,V)}},{key:"scopeRefs",value:function(Y){return this._extScope.scopeRefs(Y,this._values)}},{key:"scopeCode",value:function(){return this._extScope.scopeCode(this._values)}},{key:"_def",value:function(Y,V,oe,fe){var Ne=this._scope.toName(V);return void 0!==oe&&fe&&(this._constants[Ne.str]=oe),this._leafNode(new s(Y,Ne,oe)),Ne}},{key:"const",value:function(Y,V,oe){return this._def(e.varKinds.const,Y,V,oe)}},{key:"let",value:function(Y,V,oe){return this._def(e.varKinds.let,Y,V,oe)}},{key:"var",value:function(Y,V,oe){return this._def(e.varKinds.var,Y,V,oe)}},{key:"assign",value:function(Y,V,oe){return this._leafNode(new a(Y,V,oe))}},{key:"add",value:function(Y,V){return this._leafNode(new l(Y,t.operators.ADD,V))}},{key:"code",value:function(Y){return"function"==typeof Y?Y():Y!==n.nil&&this._leafNode(new h(Y)),this}},{key:"object",value:function(){for(var Y=["{"],V=arguments.length,oe=new Array(V),fe=0;fe1&&Y.push(","),Y.push(ze),(ze!==ot||this.opts.es5)&&(Y.push(":"),(0,n.addCodeArg)(Y,ot))}return Y.push("}"),new n._Code(Y)}},{key:"if",value:function(Y,V,oe){if(this._blockNode(new v(Y)),V&&oe)this.code(V).else().code(oe).endIf();else if(V)this.code(V).endIf();else if(oe)throw new Error('CodeGen: "else" body without "then" body');return this}},{key:"elseIf",value:function(Y){return this._elseNode(new v(Y))}},{key:"else",value:function(){return this._elseNode(new g)}},{key:"endIf",value:function(){return this._endBlockNode(v,g)}},{key:"_for",value:function(Y,V){return this._blockNode(Y),V&&this.code(V).endFor(),this}},{key:"for",value:function(Y,V){return this._for(new _(Y),V)}},{key:"forRange",value:function(Y,V,oe,fe){var Ne=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.opts.es5?e.varKinds.var:e.varKinds.let,xe=this._scope.toName(Y);return this._for(new C(Ne,xe,V,oe),function(){return fe(xe)})}},{key:"forOf",value:function(Y,V,oe){var fe=this,Ne=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.varKinds.const,xe=this._scope.toName(Y);if(this.opts.es5){var tt=V instanceof n.Name?V:this.var("_arr",V);return this.forRange("_i",0,(0,n._)(zW||(zW=Ae(["",".length"])),tt),function(ze){fe.var(xe,(0,n._)(UW||(UW=Ae(["","[","]"])),tt,ze)),oe(xe)})}return this._for(new S("of",Ne,xe,V),function(){return oe(xe)})}},{key:"forIn",value:function(Y,V,oe){var fe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.es5?e.varKinds.var:e.varKinds.const;if(this.opts.ownProperties)return this.forOf(Y,(0,n._)(GW||(GW=Ae(["Object.keys(",")"])),V),oe);var Ne=this._scope.toName(Y);return this._for(new S("in",fe,Ne,V),function(){return oe(Ne)})}},{key:"endFor",value:function(){return this._endBlockNode(y)}},{key:"label",value:function(Y){return this._leafNode(new c(Y))}},{key:"break",value:function(Y){return this._leafNode(new u(Y))}},{key:"return",value:function(Y){var V=new $;if(this._blockNode(V),this.code(Y),1!==V.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode($)}},{key:"try",value:function(Y,V,oe){if(!V&&!oe)throw new Error('CodeGen: "try" without "catch" and "finally"');var fe=new G;if(this._blockNode(fe),this.code(Y),V){var Ne=this.name("e");this._currNode=fe.catch=new R(Ne),V(Ne)}return oe&&(this._currNode=fe.finally=new z,this.code(oe)),this._endBlockNode(R,z)}},{key:"throw",value:function(Y){return this._leafNode(new d(Y))}},{key:"block",value:function(Y,V){return this._blockStarts.push(this._nodes.length),Y&&this.code(Y).endBlock(V),this}},{key:"endBlock",value:function(Y){var V=this._blockStarts.pop();if(void 0===V)throw new Error("CodeGen: not in self-balancing block");var oe=this._nodes.length-V;if(oe<0||void 0!==Y&&oe!==Y)throw new Error("CodeGen: wrong number of nodes: ".concat(oe," vs ").concat(Y," expected"));return this._nodes.length=V,this}},{key:"func",value:function(Y){var fe=arguments.length>3?arguments[3]:void 0;return this._blockNode(new M(Y,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.nil,arguments.length>2?arguments[2]:void 0)),fe&&this.code(fe).endFunc(),this}},{key:"endFunc",value:function(){return this._endBlockNode(M)}},{key:"optimize",value:function(){for(var Y=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;Y-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}},{key:"_leafNode",value:function(Y){return this._currNode.nodes.push(Y),this}},{key:"_blockNode",value:function(Y){this._currNode.nodes.push(Y),this._nodes.push(Y)}},{key:"_endBlockNode",value:function(Y,V){var oe=this._currNode;if(oe instanceof Y||V&&oe instanceof V)return this._nodes.pop(),this;throw new Error('CodeGen: not in block "'.concat(V?"".concat(Y.kind,"/").concat(V.kind):Y.kind,'"'))}},{key:"_elseNode",value:function(Y){var V=this._currNode;if(!(V instanceof v))throw new Error('CodeGen: "else" without "if"');return this._currNode=V.else=Y,this}},{key:"_root",get:function(){return this._nodes[0]}},{key:"_currNode",get:function(){var Y=this._nodes;return Y[Y.length-1]},set:function(Y){var V=this._nodes;V[V.length-1]=Y}}]),F}();function q(F,Y){for(var V in Y)F[V]=(F[V]||0)+(Y[V]||0);return F}function re(F,Y){return Y instanceof n._CodeOrName?q(F,Y.names):F}function L(F,Y,V){return F instanceof n.Name?oe(F):(fe=F)instanceof n._Code&&fe._items.some(function(Ne){return Ne instanceof n.Name&&1===Y[Ne.str]&&void 0!==V[Ne.str]})?new n._Code(F._items.reduce(function(fe,Ne){return Ne instanceof n.Name&&(Ne=oe(Ne)),Ne instanceof n._Code?fe.push.apply(fe,si(Ne._items)):fe.push(Ne),fe},[])):F;var fe;function oe(fe){var Ne=V[fe.str];return void 0===Ne||1!==Y[fe.str]?fe:(delete Y[fe.str],Ne)}}function X(F,Y){for(var V in Y)F[V]=(F[V]||0)-(Y[V]||0)}function Z(F){return"boolean"==typeof F||"number"==typeof F||null===F?!F:(0,n._)(WW||(WW=Ae(["!",""])),N(F))}t.CodeGen=U,t.not=Z;var H=E(t.operators.AND);t.and=function(){for(var F=arguments.length,Y=new Array(F),V=0;V1&&void 0!==arguments[1]?arguments[1]:f.schema;if(f.opts.strictSchema&&"boolean"!=typeof p){var v=f.self.RULES.keywords;for(var y in p)v[y]||h(f,'unknown keyword: "'.concat(y,'"'))}}function r(f,p){if("boolean"==typeof f)return!f;for(var m in f)if(p[m])return!0;return!1}function o(f){return"number"==typeof f?"".concat(f):f.replace(/~/g,"~0").replace(/\//g,"~1")}function s(f){return f.replace(/~1/g,"/").replace(/~0/g,"~")}function a(f){var p=f.mergeNames,m=f.mergeToName,g=f.mergeValues,v=f.resultToName;return function(y,_,C,S){var M=void 0===C?_:C instanceof n.Name?(_ instanceof n.Name?p(y,_,C):m(y,_,C),C):_ instanceof n.Name?(m(y,C,_),_):g(_,C);return S!==n.Name||M instanceof n.Name?M:v(y,M)}}function l(f,p){if(!0===p)return f.var("props",!0);var m=f.var("props",(0,n._)(aq||(aq=Ae(["{}"]))));return void 0!==p&&c(f,m,p),m}function c(f,p,m){Object.keys(m).forEach(function(g){return f.assign((0,n._)(lq||(lq=Ae(["","",""])),p,(0,n.getProperty)(g)),!0)})}t.toHash=function(f){var p,m={},g=Re(f);try{for(g.s();!(p=g.n()).done;)m[p.value]=!0}catch(v){g.e(v)}finally{g.f()}return m},t.alwaysValidSchema=function(f,p){return"boolean"==typeof p?p:0===Object.keys(p).length||(i(f,p),!r(p,f.self.RULES.all))},t.checkUnknownRules=i,t.schemaHasRules=r,t.schemaHasRulesButRef=function(f,p){if("boolean"==typeof f)return!f;for(var m in f)if("$ref"!==m&&p.all[m])return!0;return!1},t.schemaRefOrVal=function(f,p,m,g){var v=f.topSchemaRef,y=f.schemaPath;if(!g){if("number"==typeof p||"boolean"==typeof p)return p;if("string"==typeof p)return(0,n._)(YW||(YW=Ae(["",""])),p)}return(0,n._)(JW||(JW=Ae(["","","",""])),v,y,(0,n.getProperty)(m))},t.unescapeFragment=function(f){return s(decodeURIComponent(f))},t.escapeFragment=function(f){return encodeURIComponent(o(f))},t.escapeJsonPointer=o,t.unescapeJsonPointer=s,t.eachItem=function(f,p){if(Array.isArray(f)){var m,g=Re(f);try{for(g.s();!(m=g.n()).done;)p(m.value)}catch(v){g.e(v)}finally{g.f()}}else p(f)},t.mergeEvaluated={props:a({mergeNames:function(f,p,m){return f.if((0,n._)(KW||(KW=Ae([""," !== true && "," !== undefined"])),m,p),function(){f.if((0,n._)(QW||(QW=Ae([""," === true"])),p),function(){return f.assign(m,!0)},function(){return f.assign(m,(0,n._)(ZW||(ZW=Ae([""," || {}"])),m)).code((0,n._)(eq||(eq=Ae(["Object.assign(",", ",")"])),m,p))})})},mergeToName:function(f,p,m){return f.if((0,n._)(tq||(tq=Ae([""," !== true"])),m),function(){!0===p?f.assign(m,!0):(f.assign(m,(0,n._)(nq||(nq=Ae([""," || {}"])),m)),c(f,m,p))})},mergeValues:function(f,p){return!0===f||Ze(Ze({},f),p)},resultToName:l}),items:a({mergeNames:function(f,p,m){return f.if((0,n._)(iq||(iq=Ae([""," !== true && "," !== undefined"])),m,p),function(){return f.assign(m,(0,n._)(rq||(rq=Ae([""," === true ? true : "," > "," ? "," : ",""])),p,m,p,m,p))})},mergeToName:function(f,p,m){return f.if((0,n._)(oq||(oq=Ae([""," !== true"])),m),function(){return f.assign(m,!0===p||(0,n._)(sq||(sq=Ae([""," > "," ? "," : ",""])),m,p,m,p))})},mergeValues:function(f,p){return!0===f||Math.max(f,p)},resultToName:function(f,p){return f.var("items",p)}})},t.evaluatedPropsToName=l,t.setEvaluated=c;var u,f,d={};function h(f,p){var m=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.opts.strictSchema;if(m){if(p="strict mode: ".concat(p),!0===m)throw new Error(p);f.self.logger.warn(p)}}t.useFunc=function(f,p){return f.scopeValue("func",{ref:p,code:d[p.code]||(d[p.code]=new e._Code(p.code))})},(f=u=t.Type||(t.Type={}))[f.Num=0]="Num",f[f.Str=1]="Str",t.getErrorPath=function(f,p,m){if(f instanceof n.Name){var g=p===u.Num;return(0,n._)(m?g?cq||(cq=Ae(['"[" + ',' + "]"'])):uq||(uq=Ae(['"[\'" + ',' + "\']"'])):g?dq||(dq=Ae(['"/" + ',""])):hq||(hq=Ae(['"/" + ','.replace(/~/g, "~0").replace(/\\//g, "~1")'],['"/" + ','.replace(/~/g, "~0").replace(/\\\\//g, "~1")'])),f)}return m?(0,n.getProperty)(f).toString():"/"+o(f)},t.checkStrictMode=h}(Hr);var nme,ime,rme,TD={};function Sp(){if(nme)return TD;nme=1,Object.defineProperty(TD,"__esModule",{value:!0});var t=xr(),n={data:new t.Name("data"),valCxt:new t.Name("valCxt"),instancePath:new t.Name("instancePath"),parentData:new t.Name("parentData"),parentDataProperty:new t.Name("parentDataProperty"),rootData:new t.Name("rootData"),dynamicAnchors:new t.Name("dynamicAnchors"),vErrors:new t.Name("vErrors"),errors:new t.Name("errors"),this:new t.Name("this"),self:new t.Name("self"),scope:new t.Name("scope"),json:new t.Name("json"),jsonPos:new t.Name("jsonPos"),jsonLen:new t.Name("jsonLen"),jsonPart:new t.Name("jsonPart")};return TD.default=n,TD}function ED(){return ime||(ime=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;var n=xr(),e=Hr,i=Sp();function r(d,h){var f=d.const("err",h);d.if((0,n._)(Dq||(Dq=Ae([""," === null"])),i.default.vErrors),function(){return d.assign(i.default.vErrors,(0,n._)(Tq||(Tq=Ae(["[","]"])),f))},(0,n._)(Eq||(Eq=Ae(["",".push(",")"])),i.default.vErrors,f)),d.code((0,n._)(Aq||(Aq=Ae(["","++"])),i.default.errors))}function o(d,h){var f=d.gen,p=d.validateName;d.schemaEnv.$async?f.throw((0,n._)(Mq||(Mq=Ae(["new ","(",")"])),d.ValidationError,h)):(f.assign((0,n._)(Iq||(Iq=Ae(["",".errors"])),p),h),f.return(!1))}t.keywordError={message:function(d){var h=d.keyword;return(0,n.str)(fq||(fq=Ae(['must pass "','" keyword validation'])),h)}},t.keyword$DataError={message:function(d){var h=d.keyword,f=d.schemaType;return f?(0,n.str)(pq||(pq=Ae(['"','" keyword must be '," ($data)"])),h,f):(0,n.str)(mq||(mq=Ae(['"','" keyword is invalid ($data)'])),h)}},t.reportError=function(d){var p=arguments.length>3?arguments[3]:void 0,m=d.it,g=m.gen,v=m.compositeRule,y=m.allErrors,_=a(d,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.keywordError,arguments.length>2?arguments[2]:void 0);p??(v||y)?r(g,_):o(m,(0,n._)(gq||(gq=Ae(["[","]"])),_))},t.reportExtraError=function(d){var p=d.it,g=p.compositeRule,v=p.allErrors;r(p.gen,a(d,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.keywordError,arguments.length>2?arguments[2]:void 0)),g||v||o(p,i.default.vErrors)},t.resetErrorsCount=function(d,h){d.assign(i.default.errors,h),d.if((0,n._)(vq||(vq=Ae([""," !== null"])),i.default.vErrors),function(){return d.if(h,function(){return d.assign((0,n._)(yq||(yq=Ae(["",".length"])),i.default.vErrors),h)},function(){return d.assign(i.default.vErrors,null)})})},t.extendErrors=function(d){var h=d.gen,f=d.keyword,p=d.schemaValue,m=d.data,g=d.errsCount,v=d.it;if(void 0===g)throw new Error("ajv implementation error");var y=h.name("err");h.forRange("i",g,i.default.errors,function(_){h.const(y,(0,n._)(bq||(bq=Ae(["","[","]"])),i.default.vErrors,_)),h.if((0,n._)(_q||(_q=Ae(["",".instancePath === undefined"])),y),function(){return h.assign((0,n._)(xq||(xq=Ae(["",".instancePath"])),y),(0,n.strConcat)(i.default.instancePath,v.errorPath))}),h.assign((0,n._)(wq||(wq=Ae(["",".schemaPath"])),y),(0,n.str)(Cq||(Cq=Ae(["","/",""])),v.errSchemaPath,f)),v.opts.verbose&&(h.assign((0,n._)(kq||(kq=Ae(["",".schema"])),y),p),h.assign((0,n._)(Sq||(Sq=Ae(["",".data"])),y),m))})};var s={keyword:new n.Name("keyword"),schemaPath:new n.Name("schemaPath"),params:new n.Name("params"),propertyName:new n.Name("propertyName"),message:new n.Name("message"),schema:new n.Name("schema"),parentSchema:new n.Name("parentSchema")};function a(d,h,f){return!1===d.it.createErrors?(0,n._)(Nq||(Nq=Ae(["{}"]))):function(p,m){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},v=p.gen,y=[l(p.it,g),c(p,g)];return function u(d,h,f){var p=h.params,m=h.message,v=d.data,y=d.schemaValue,_=d.it,C=_.opts,S=_.propertyName,M=_.topSchemaRef,$=_.schemaPath;f.push([s.keyword,d.keyword],[s.params,"function"==typeof p?p(d):p||(0,n._)(Pq||(Pq=Ae(["{}"])))]),C.messages&&f.push([s.message,"function"==typeof m?m(d):m]),C.verbose&&f.push([s.schema,y],[s.parentSchema,(0,n._)(Lq||(Lq=Ae(["","",""])),M,$)],[i.default.data,v]),S&&f.push([s.propertyName,S])}(p,m,y),v.object.apply(v,y)}(d,h,f)}function l(d,h){var f=d.errorPath,p=h.instancePath,m=p?(0,n.str)(Fq||(Fq=Ae(["","",""])),f,(0,e.getErrorPath)(p,e.Type.Str)):f;return[i.default.instancePath,(0,n.strConcat)(i.default.instancePath,m)]}function c(d,h){var f=d.keyword,p=d.it.errSchemaPath,m=h.schemaPath,g=h.parentSchema?p:(0,n.str)(Oq||(Oq=Ae(["","/",""])),p,f);return m&&(g=(0,n.str)(jq||(jq=Ae(["","",""])),g,(0,e.getErrorPath)(m,e.Type.Str))),[s.schemaPath,g]}}(Ype)),Ype}var I_={},tg={};Object.defineProperty(tg,"__esModule",{value:!0}),tg.getRules=tg.isJSONType=void 0;var ait=new Set(["string","number","integer","boolean","null","object","array"]);tg.isJSONType=function(t){return"string"==typeof t&&ait.has(t)},tg.getRules=function(){var t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:Ze(Ze({},t),{},{integer:!0,boolean:!0,null:!0}),rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}};var ome,pf={};function sme(){if(ome)return pf;function t(e,i){return i.rules.some(function(r){return n(e,r)})}function n(e,i){var r;return void 0!==e[i.keyword]||(null===(r=i.definition.implements)||void 0===r?void 0:r.some(function(o){return void 0!==e[o]}))}return ome=1,Object.defineProperty(pf,"__esModule",{value:!0}),pf.shouldUseRule=pf.shouldUseGroup=pf.schemaHasRulesForType=void 0,pf.schemaHasRulesForType=function(e,i){var o=e.self.RULES.types[i];return o&&!0!==o&&t(e.schema,o)},pf.shouldUseGroup=t,pf.shouldUseRule=n,pf}!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;var n,f,e=tg,i=sme(),r=ED(),o=xr(),s=Hr;function a(f){var p=Array.isArray(f)?f:f?[f]:[];if(p.every(e.isJSONType))return p;throw new Error("type must be JSONType or JSONType[]: "+p.join(","))}(f=n=t.DataType||(t.DataType={}))[f.Correct=0]="Correct",f[f.Wrong=1]="Wrong",t.getSchemaTypes=function(f){var p=a(f.type);if(p.includes("null")){if(!1===f.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!p.length&&void 0!==f.nullable)throw new Error('"nullable" cannot be used without "type"');!0===f.nullable&&p.push("null")}return p},t.getJSONTypes=a,t.coerceAndCheckDataType=function(f,p){var M,m=f.gen,g=f.data,v=f.opts,y=(M=v.coerceTypes)?p.filter(function($){return l.has($)||"array"===M&&"array"===$}):[],_=p.length>0&&!(0===y.length&&1===p.length&&(0,i.schemaHasRulesForType)(f,p[0]));if(_){var C=u(p,g,v.strictNumbers,n.Wrong);m.if(C,function(){y.length?function(S,M,$){var G=S.gen,R=S.data,z=S.opts,U=G.let("dataType",(0,o._)($q||($q=Ae(["typeof ",""])),R)),q=G.let("coerced",(0,o._)(Bq||(Bq=Ae(["undefined"]))));"array"===z.coerceTypes&&G.if((0,o._)(Vq||(Vq=Ae([""," == 'object' && Array.isArray(",") && ",".length == 1"])),U,R,R),function(){return G.assign(R,(0,o._)(Hq||(Hq=Ae(["","[0]"])),R)).assign(U,(0,o._)(zq||(zq=Ae(["typeof ",""])),R)).if(u(M,R,z.strictNumbers),function(){return G.assign(q,R)})}),G.if((0,o._)(Uq||(Uq=Ae([""," !== undefined"])),q));var re,L=Re($);try{for(L.s();!(re=L.n()).done;){var X=re.value;(l.has(X)||"array"===X&&"array"===z.coerceTypes)&&Z(X)}}catch(H){L.e(H)}finally{L.f()}function Z(H){switch(H){case"string":return void G.elseIf((0,o._)(Wq||(Wq=Ae(["",' == "number" || ',' == "boolean"'])),U,U)).assign(q,(0,o._)(qq||(qq=Ae(['"" + ',""])),R)).elseIf((0,o._)(Xq||(Xq=Ae([""," === null"])),R)).assign(q,(0,o._)(Yq||(Yq=Ae(['""']))));case"number":return void G.elseIf((0,o._)(Jq||(Jq=Ae(["",' == "boolean" || '," === null\n || (",' == "string" && '," && "," == +",")"])),U,R,U,R,R,R)).assign(q,(0,o._)(Kq||(Kq=Ae(["+",""])),R));case"integer":return void G.elseIf((0,o._)(Qq||(Qq=Ae(["",' === "boolean" || '," === null\n || (",' === "string" && '," && "," == +"," && !("," % 1))"])),U,R,U,R,R,R,R)).assign(q,(0,o._)(Zq||(Zq=Ae(["+",""])),R));case"boolean":return void G.elseIf((0,o._)(eX||(eX=Ae(["",' === "false" || '," === 0 || "," === null"])),R,R,R)).assign(q,!1).elseIf((0,o._)(tX||(tX=Ae(["",' === "true" || '," === 1"])),R,R)).assign(q,!0);case"null":return G.elseIf((0,o._)(nX||(nX=Ae(["",' === "" || '," === 0 || "," === false"])),R,R,R)),void G.assign(q,null);case"array":G.elseIf((0,o._)(iX||(iX=Ae(["",' === "string" || ',' === "number"\n || ',' === "boolean" || '," === null"])),U,U,U,R)).assign(q,(0,o._)(rX||(rX=Ae(["[","]"])),R))}}G.else(),h(S),G.endIf(),G.if((0,o._)(Gq||(Gq=Ae([""," !== undefined"])),q),function(){var H,he,E,N,F;G.assign(R,q),he=q,N=(H=S).parentData,F=H.parentDataProperty,(E=H.gen).if((0,o._)(oX||(oX=Ae([""," !== undefined"])),N),function(){return E.assign((0,o._)(sX||(sX=Ae(["","[","]"])),N,F),he)})})}(f,p,y):h(f)})}return _};var l=new Set(["string","number","integer","boolean","null"]);function c(f,p,m){var g,v=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.Correct,y=v===n.Correct?o.operators.EQ:o.operators.NEQ;switch(f){case"null":return(0,o._)(aX||(aX=Ae([""," "," null"])),p,y);case"array":g=(0,o._)(lX||(lX=Ae(["Array.isArray(",")"])),p);break;case"object":g=(0,o._)(cX||(cX=Ae([""," && typeof ",' == "object" && !Array.isArray(',")"])),p,p,p);break;case"integer":g=_((0,o._)(uX||(uX=Ae(["!("," % 1) && !isNaN(",")"])),p,p));break;case"number":g=_();break;default:return(0,o._)(dX||(dX=Ae(["typeof "," "," ",""])),p,y,f)}return v===n.Correct?g:(0,o.not)(g);function _(){var C=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.nil;return(0,o.and)((0,o._)(hX||(hX=Ae(["typeof ",' == "number"'])),p),C,m?(0,o._)(fX||(fX=Ae(["isFinite(",")"])),p):o.nil)}}function u(f,p,m,g){if(1===f.length)return c(f[0],p,m,g);var v,y=(0,s.toHash)(f);if(y.array&&y.object){var _=(0,o._)(pX||(pX=Ae(["typeof ",' != "object"'])),p);v=y.null?_:(0,o._)(mX||(mX=Ae(["!"," || ",""])),p,_),delete y.null,delete y.array,delete y.object}else v=o.nil;for(var C in y.number&&delete y.integer,y)v=(0,o.and)(v,c(C,p,m,g));return v}t.checkDataType=c,t.checkDataTypes=u;var d={message:function(f){return"must be ".concat(f.schema)},params:function(f){var p=f.schema,m=f.schemaValue;return"string"==typeof p?(0,o._)(gX||(gX=Ae(["{type: ","}"])),p):(0,o._)(vX||(vX=Ae(["{type: ","}"])),m)}};function h(f){var m,g,v,y,_,p=(g=(m=f).gen,v=m.data,_=(0,s.schemaRefOrVal)(m,y=m.schema,"type"),{gen:g,keyword:"type",data:v,schema:y.type,schemaCode:_,schemaValue:_,parentSchema:y,params:{},it:m});(0,r.reportError)(p,d)}t.reportTypeError=h}(I_);var ame,lme,cme,N_={},ud={},po={};function dd(){if(lme)return po;lme=1,Object.defineProperty(po,"__esModule",{value:!0}),po.validateUnion=po.validateArray=po.usePattern=po.callValidateCode=po.schemaProperties=po.allSchemaProperties=po.noPropertyInData=po.propertyInData=po.isOwnProperty=po.hasPropFunc=po.reportMissingProp=po.checkMissingProp=po.checkReportMissingProp=void 0;var t=xr(),n=Hr,e=Sp(),i=Hr;function r(c){return c.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,t._)(kX||(kX=Ae(["Object.prototype.hasOwnProperty"])))})}function o(c,u,d){return(0,t._)(SX||(SX=Ae(["",".call(",", ",")"])),r(c),u,d)}function s(c,u,d,h){var f=(0,t._)(EX||(EX=Ae(["",""," === undefined"])),u,(0,t.getProperty)(d));return h?(0,t.or)(f,(0,t.not)(o(c,u,d))):f}function a(c){return c?Object.keys(c).filter(function(u){return"__proto__"!==u}):[]}po.checkReportMissingProp=function(c,u){var d=c.gen;d.if(s(d,c.data,u,c.it.opts.ownProperties),function(){c.setParams({missingProperty:(0,t._)(wX||(wX=Ae(["",""])),u)},!0),c.error()})},po.checkMissingProp=function(c,u,d){var h=c.gen,f=c.data,p=c.it.opts;return t.or.apply(void 0,si(u.map(function(m){return(0,t.and)(s(h,f,m,p.ownProperties),(0,t._)(CX||(CX=Ae([""," = ",""])),d,m))})))},po.reportMissingProp=function(c,u){c.setParams({missingProperty:u},!0),c.error()},po.hasPropFunc=r,po.isOwnProperty=o,po.propertyInData=function(c,u,d,h){var f=(0,t._)(DX||(DX=Ae(["",""," !== undefined"])),u,(0,t.getProperty)(d));return h?(0,t._)(TX||(TX=Ae([""," && ",""])),f,o(c,u,d)):f},po.noPropertyInData=s,po.allSchemaProperties=a,po.schemaProperties=function(c,u){return a(u).filter(function(d){return!(0,n.alwaysValidSchema)(c,u[d])})},po.callValidateCode=function(c,u,d,h){var f=c.schemaCode,p=c.data,m=c.it,g=m.gen,v=m.topSchemaRef,y=m.schemaPath,_=m.errorPath,C=c.it,S=h?(0,t._)(AX||(AX=Ae(["",", ",", ","",""])),f,p,v,y):p,M=[[e.default.instancePath,(0,t.strConcat)(e.default.instancePath,_)],[e.default.parentData,C.parentData],[e.default.parentDataProperty,C.parentDataProperty],[e.default.rootData,e.default.rootData]];C.opts.dynamicRef&&M.push([e.default.dynamicAnchors,e.default.dynamicAnchors]);var $=(0,t._)(MX||(MX=Ae(["",", ",""])),S,g.object.apply(g,M));return d!==t.nil?(0,t._)(IX||(IX=Ae(["",".call(",", ",")"])),u,d,$):(0,t._)(NX||(NX=Ae(["","(",")"])),u,$)};var l=(0,t._)(FX||(FX=Ae(["new RegExp"])));return po.usePattern=function(c,u){var d=c.gen,h=c.it.opts,f=h.unicodeRegExp?"u":"",p=h.code.regExp,m=p(u,f);return d.scopeValue("pattern",{key:m.toString(),ref:m,code:(0,t._)(OX||(OX=Ae(["","(",", ",")"])),"new RegExp"===p.code?l:(0,i.useFunc)(d,p),u,f)})},po.validateArray=function(c){var u=c.gen,d=c.data,h=c.keyword,f=c.it,p=u.name("valid");if(f.allErrors){var m=u.let("valid",!0);return g(function(){return u.assign(m,!1)}),m}return u.var(p,!0),g(function(){return u.break()}),p;function g(v){var y=u.const("len",(0,t._)(jX||(jX=Ae(["",".length"])),d));u.forRange("i",0,y,function(_){c.subschema({keyword:h,dataProp:_,dataPropType:n.Type.Num},p),u.if((0,t.not)(p),v)})}},po.validateUnion=function(c){var u=c.gen,d=c.schema,h=c.keyword,f=c.it;if(!Array.isArray(d))throw new Error("ajv implementation error");if(!d.some(function(g){return(0,n.alwaysValidSchema)(f,g)})||f.opts.unevaluated){var p=u.let("valid",!1),m=u.name("_valid");u.block(function(){return d.forEach(function(g,v){var y=c.subschema({keyword:h,schemaProp:v,compositeRule:!0},m);u.assign(p,(0,t._)(PX||(PX=Ae([""," || ",""])),p,m)),c.mergeValidEvaluated(y,m)||u.if((0,t.not)(p))})}),c.result(p,function(){return c.reset()},function(){return c.error(!0)})}},po}var ume,mf={},Ga={},dme=function t(n,e){if(n===e)return!0;if(n&&e&&"object"==bn(n)&&"object"==bn(e)){if(n.constructor!==e.constructor)return!1;var i,r,o;if(Array.isArray(n)){if((i=n.length)!=e.length)return!1;for(r=i;0!=r--;)if(!t(n[r],e[r]))return!1;return!0}if(n.constructor===RegExp)return n.source===e.source&&n.flags===e.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===e.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===e.toString();if((i=(o=Object.keys(n)).length)!==Object.keys(e).length)return!1;for(r=i;0!=r--;)if(!Object.prototype.hasOwnProperty.call(e,o[r]))return!1;for(r=i;0!=r--;){var s=o[r];if(!t(n[s],e[s]))return!1}return!0}return n!=n&&e!=e},kP={},cit={get exports(){return kP},set exports(t){kP=t}},Dp=cit.exports=function(t,n,e){"function"==typeof n&&(e=n,n={}),AD(n,"function"==typeof(e=n.cb||e)?e:e.pre||function(){},e.post||function(){},t,"",t)};function AD(t,n,e,i,r,o,s,a,l,c){if(i&&"object"==bn(i)&&!Array.isArray(i)){for(var u in n(i,r,o,s,a,l,c),i){var d=i[u];if(Array.isArray(d)){if(u in Dp.arrayKeywords)for(var h=0;h1&&void 0!==arguments[1])||arguments[1];return"boolean"==typeof t||(!0===n?!SP(t):!!n&&hme(t)<=n)};var pit=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function SP(t){for(var n in t){if(pit.has(n))return!0;var e=t[n];if(Array.isArray(e)&&e.some(SP)||"object"==bn(e)&&SP(e))return!0}return!1}function hme(t){var n=0;for(var e in t)if("$ref"===e||(n++,!fit.has(e)&&("object"==bn(t[e])&&(0,uit.eachItem)(t[e],function(i){return n+=hme(i)}),n===1/0)))return 1/0;return n}function fme(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";!1!==(arguments.length>2?arguments[2]:void 0)&&(n=z0(n));var i=t.parse(n);return pme(t,i)}function pme(t,n){return t.serialize(n).split("#")[0]+"#"}Ga.getFullPath=fme,Ga._getFullPath=pme;var mit=/#\/?$/;function z0(t){return t?t.replace(mit,""):""}Ga.normalizeId=z0,Ga.resolveUrl=function(t,n,e){return e=z0(e),t.resolve(n,e)};var mme,git=/^[a-z_][-a-z0-9._]*$/i;function MD(){if(mme)return ff;mme=1,Object.defineProperty(ff,"__esModule",{value:!0}),ff.getData=ff.KeywordCxt=ff.validateFunctionCode=void 0;var t=function(){if(rme)return eg;rme=1,Object.defineProperty(eg,"__esModule",{value:!0}),eg.boolOrEmptySchema=eg.topBoolOrEmptySchema=void 0;var L=ED(),X=xr(),Z=Sp(),H={message:"boolean schema is false"};function he(E,N){(0,L.reportError)({gen:E.gen,keyword:"false schema",data:E.data,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:E},H,void 0,N)}return eg.topBoolOrEmptySchema=function(E){var N=E.gen,F=E.schema,Y=E.validateName;!1===F?he(E,!1):"object"==bn(F)&&!0===F.$async?N.return(Z.default.data):(N.assign((0,X._)(Rq||(Rq=Ae(["",".errors"])),Y),null),N.return(!0))},eg.boolOrEmptySchema=function(E,N){var F=E.gen;!1===E.schema?(F.var(N,!1),he(E)):F.var(N,!0)},eg}(),n=I_,e=sme(),i=I_,r=function(){if(ame)return N_;ame=1,Object.defineProperty(N_,"__esModule",{value:!0}),N_.assignDefaults=void 0;var L=xr(),X=Hr;function Z(H,he,E){var N=H.gen,F=H.compositeRule,Y=H.data,V=H.opts;if(void 0!==E){var oe=(0,L._)(yX||(yX=Ae(["","",""])),Y,(0,L.getProperty)(he));if(F)(0,X.checkStrictMode)(H,"default is ignored for: ".concat(oe));else{var fe=(0,L._)(bX||(bX=Ae([""," === undefined"])),oe);"empty"===V.useDefaults&&(fe=(0,L._)(_X||(_X=Ae([""," || "," === null || ",' === ""'])),fe,oe,oe)),N.if(fe,(0,L._)(xX||(xX=Ae([""," = ",""])),oe,(0,L.stringify)(E)))}}}return N_.assignDefaults=function(H,he){var E=H.schema,N=E.properties,F=E.items;if("object"===he&&N)for(var Y in N)Z(H,Y,N[Y].default);else"array"===he&&Array.isArray(F)&&F.forEach(function(V,oe){return Z(H,oe,V.default)})},N_}(),o=function lit(){if(cme)return ud;cme=1,Object.defineProperty(ud,"__esModule",{value:!0}),ud.validateKeywordUsage=ud.validSchemaType=ud.funcKeywordCode=ud.macroKeywordCode=void 0;var t=xr(),n=Sp(),e=dd(),i=ED();function r(s){var a=s.gen,l=s.data,c=s.it;a.if(c.parentData,function(){return a.assign(l,(0,t._)(zX||(zX=Ae(["","[","]"])),c.parentData,c.parentDataProperty))})}function o(s,a,l){if(void 0===l)throw new Error('keyword "'.concat(a,'" failed to compile'));return s.scopeValue("keyword","function"==typeof l?{ref:l}:{ref:l,code:(0,t.stringify)(l)})}return ud.macroKeywordCode=function(s,a){var l=s.gen,c=s.keyword,h=s.it,f=a.macro.call(h.self,s.schema,s.parentSchema,h),p=o(l,c,f);!1!==h.opts.validateSchema&&h.self.validateSchema(f,!0);var m=l.name("valid");s.subschema({schema:f,schemaPath:t.nil,errSchemaPath:"".concat(h.errSchemaPath,"/").concat(c),topSchemaRef:p,compositeRule:!0},m),s.pass(m,function(){return s.error(!0)})},ud.funcKeywordCode=function(s,a){var l,c=s.gen,u=s.keyword,d=s.schema,h=s.parentSchema,f=s.$data,p=s.it;!function(C,S){if(S.async&&!C.schemaEnv.$async)throw new Error("async keyword in sync schema")}(p,a);var m=!f&&a.compile?a.compile.call(p.self,d,h,p):a.validate,g=o(c,u,m),v=c.let("valid");function y(){var C=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.async?(0,t._)(VX||(VX=Ae(["await "]))):t.nil,S=p.opts.passContext?n.default.this:n.default.self,M=!("compile"in a&&!f||!1===a.schema);c.assign(v,(0,t._)(HX||(HX=Ae(["","",""])),C,(0,e.callValidateCode)(s,g,S,M)),a.modifying)}function _(C){var S;c.if((0,t.not)(null!==(S=a.valid)&&void 0!==S?S:v),C)}s.block$data(v,function(){if(!1===a.errors)y(),a.modifying&&r(s),_(function(){return s.error()});else{var C=a.async?(M=c.let("ruleErrs",null),c.try(function(){return y((0,t._)(LX||(LX=Ae(["await "]))))},function($){return c.assign(v,!1).if((0,t._)(RX||(RX=Ae([""," instanceof ",""])),$,p.ValidationError),function(){return c.assign(M,(0,t._)($X||($X=Ae(["",".errors"])),$))},function(){return c.throw($)})}),M):(S=(0,t._)(BX||(BX=Ae(["",".errors"])),g),c.assign(S,null),y(t.nil),S);a.modifying&&r(s),_(function(){return function(M,$){var G=M.gen;G.if((0,t._)(UX||(UX=Ae(["Array.isArray(",")"])),$),function(){G.assign(n.default.vErrors,(0,t._)(GX||(GX=Ae([""," === null ? "," : ",".concat(",")"])),n.default.vErrors,$,n.default.vErrors,$)).assign(n.default.errors,(0,t._)(WX||(WX=Ae(["",".length"])),n.default.vErrors)),(0,i.extendErrors)(M)},function(){return M.error()})}(s,C)})}var M,S}),s.ok(null!==(l=a.valid)&&void 0!==l?l:v)},ud.validSchemaType=function(s,a){var l=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!a.length||a.some(function(c){return"array"===c?Array.isArray(s):"object"===c?s&&"object"==bn(s)&&!Array.isArray(s):bn(s)==c||l&&void 0===s})},ud.validateKeywordUsage=function(s,a,l){var c=s.schema,u=s.opts,d=s.self,h=s.errSchemaPath;if(Array.isArray(a.keyword)?!a.keyword.includes(l):a.keyword!==l)throw new Error("ajv implementation error");var f=a.dependencies;if(f?.some(function(m){return!Object.prototype.hasOwnProperty.call(c,m)}))throw new Error("parent schema must have dependencies of ".concat(l,": ").concat(f.join(",")));if(a.validateSchema&&!a.validateSchema(c[l])){var p='keyword "'.concat(l,'" value is invalid at path "').concat(h,'": ')+d.errorsText(a.validateSchema.errors);if("log"!==u.validateSchema)throw new Error(p);d.logger.error(p)}},ud}(),s=function(){if(ume)return mf;ume=1,Object.defineProperty(mf,"__esModule",{value:!0}),mf.extendSubschemaMode=mf.extendSubschemaData=mf.getSubschema=void 0;var L=xr(),X=Hr;return mf.getSubschema=function(Z,H){var he=H.keyword,E=H.schemaProp,N=H.schema,F=H.schemaPath,Y=H.errSchemaPath,V=H.topSchemaRef;if(void 0!==he&&void 0!==N)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==he){var oe=Z.schema[he];return void 0===E?{schema:oe,schemaPath:(0,L._)(qX||(qX=Ae(["","",""])),Z.schemaPath,(0,L.getProperty)(he)),errSchemaPath:"".concat(Z.errSchemaPath,"/").concat(he)}:{schema:oe[E],schemaPath:(0,L._)(XX||(XX=Ae(["","","",""])),Z.schemaPath,(0,L.getProperty)(he),(0,L.getProperty)(E)),errSchemaPath:"".concat(Z.errSchemaPath,"/").concat(he,"/").concat((0,X.escapeFragment)(E))}}if(void 0!==N){if(void 0===F||void 0===Y||void 0===V)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:N,schemaPath:F,topSchemaRef:V,errSchemaPath:Y}}throw new Error('either "keyword" or "schema" must be passed')},mf.extendSubschemaData=function(Z,H,he){var E=he.dataProp,N=he.dataPropType,F=he.data,Y=he.dataTypes,V=he.propertyName;if(void 0!==F&&void 0!==E)throw new Error('both "data" and "dataProp" passed, only one allowed');var oe=H.gen;if(void 0!==E){var fe=H.errorPath,Ne=H.dataPathArr,xe=H.opts;tt(oe.let("data",(0,L._)(YX||(YX=Ae(["","",""])),H.data,(0,L.getProperty)(E)),!0)),Z.errorPath=(0,L.str)(JX||(JX=Ae(["","",""])),fe,(0,X.getErrorPath)(E,N,xe.jsPropertySyntax)),Z.parentDataProperty=(0,L._)(KX||(KX=Ae(["",""])),E),Z.dataPathArr=[].concat(si(Ne),[Z.parentDataProperty])}function tt(ze){Z.data=ze,Z.dataLevel=H.dataLevel+1,Z.dataTypes=[],H.definedProperties=new Set,Z.parentData=H.data,Z.dataNames=[].concat(si(H.dataNames),[ze])}void 0!==F&&(tt(F instanceof L.Name?F:oe.let("data",F,!0)),void 0!==V&&(Z.propertyName=V)),Y&&(Z.dataTypes=Y)},mf.extendSubschemaMode=function(Z,H){var he=H.jtdDiscriminator,E=H.jtdMetadata,N=H.compositeRule,F=H.createErrors,Y=H.allErrors;void 0!==N&&(Z.compositeRule=N),void 0!==F&&(Z.createErrors=F),void 0!==Y&&(Z.allErrors=Y),Z.jtdDiscriminator=he,Z.jtdMetadata=E},mf}(),a=xr(),l=Sp(),c=Ga,u=Hr,d=ED();function h(L,X){var F,Z=L.gen,H=L.validateName,he=L.schema,E=L.schemaEnv,N=L.opts;N.code.es5?Z.func(H,(0,a._)(QX||(QX=Ae(["",", ",""])),l.default.data,l.default.valCxt),E.$async,function(){var F,Y;Z.code((0,a._)(ZX||(ZX=Ae(['"use strict"; ',""])),f(he,N))),Y=N,(F=Z).if(l.default.valCxt,function(){F.var(l.default.instancePath,(0,a._)(iY||(iY=Ae(["",".",""])),l.default.valCxt,l.default.instancePath)),F.var(l.default.parentData,(0,a._)(rY||(rY=Ae(["",".",""])),l.default.valCxt,l.default.parentData)),F.var(l.default.parentDataProperty,(0,a._)(oY||(oY=Ae(["",".",""])),l.default.valCxt,l.default.parentDataProperty)),F.var(l.default.rootData,(0,a._)(sY||(sY=Ae(["",".",""])),l.default.valCxt,l.default.rootData)),Y.dynamicRef&&F.var(l.default.dynamicAnchors,(0,a._)(aY||(aY=Ae(["",".",""])),l.default.valCxt,l.default.dynamicAnchors))},function(){F.var(l.default.instancePath,(0,a._)(lY||(lY=Ae(['""'])))),F.var(l.default.parentData,(0,a._)(cY||(cY=Ae(["undefined"])))),F.var(l.default.parentDataProperty,(0,a._)(uY||(uY=Ae(["undefined"])))),F.var(l.default.rootData,l.default.data),Y.dynamicRef&&F.var(l.default.dynamicAnchors,(0,a._)(dY||(dY=Ae(["{}"]))))}),Z.code(X)}):Z.func(H,(0,a._)(eY||(eY=Ae(["",", ",""])),l.default.data,(F=N,(0,a._)(tY||(tY=Ae(["{",'="", ',", ",", ","=","","}={}"])),l.default.instancePath,l.default.parentData,l.default.parentDataProperty,l.default.rootData,l.default.data,F.dynamicRef?(0,a._)(nY||(nY=Ae([", ","={}"])),l.default.dynamicAnchors):a.nil))),E.$async,function(){return Z.code(f(he,N)).code(X)})}function f(L,X){var Z="object"==bn(L)&&L[X.schemaId];return Z&&(X.code.source||X.code.process)?(0,a._)(bY||(bY=Ae(["/*# sourceURL="," */"])),Z):a.nil}function m(L){var X=L.schema,Z=L.self;if("boolean"==typeof X)return!X;for(var H in X)if(Z.RULES.all[H])return!0;return!1}function g(L){return"boolean"!=typeof L.schema}function v(L){var X,Z,H,E;(0,u.checkUnknownRules)(L),H=(X=L).errSchemaPath,E=X.self,(Z=X.schema).$ref&&X.opts.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(Z,E.RULES)&&E.logger.warn('$ref: keywords ignored in schema at path "'.concat(H,'"'))}function y(L,X){if(L.opts.jtd)return C(L,[],!1,X);var Z=(0,n.getSchemaTypes)(L.schema);C(L,Z,!(0,n.coerceAndCheckDataType)(L,Z),X)}function _(L){var X=L.gen,Z=L.schemaEnv,he=L.errSchemaPath,E=L.opts,N=L.schema.$comment;if(!0===E.$comment)X.code((0,a._)(xY||(xY=Ae(["",".logger.log(",")"])),l.default.self,N));else if("function"==typeof E.$comment){var F=(0,a.str)(wY||(wY=Ae(["","/$comment"])),he),Y=X.scopeValue("root",{ref:Z.root});X.code((0,a._)(CY||(CY=Ae(["",".opts.$comment(",", ",", ",".schema)"])),l.default.self,N,F,Y))}}function C(L,X,Z,H){var fe,Ne,xe,tt,he=L.gen,E=L.schema,N=L.data,F=L.allErrors,Y=L.opts,V=L.self.RULES;function oe(fe){(0,e.shouldUseGroup)(E,fe)&&(fe.type?(he.if((0,i.checkDataType)(fe.type,N,Y.strictNumbers)),S(L,fe),1===X.length&&X[0]===fe.type&&Z&&(he.else(),(0,i.reportTypeError)(L)),he.endIf()):S(L,fe),F||he.if((0,a._)(MY||(MY=Ae([""," === ",""])),l.default.errors,H||0)))}!E.$ref||!Y.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(E,V)?(Y.jtd||(Ne=X,(fe=L).schemaEnv.meta||!fe.opts.strictTypes||(function(xe,tt){if(tt.length){if(!xe.dataTypes.length)return void(xe.dataTypes=tt);tt.forEach(function(ze){$(xe.dataTypes,ze)||G(xe,'type "'.concat(ze,'" not allowed by context "').concat(xe.dataTypes.join(","),'"'))}),function(ze,ot){var B,ne=[],ie=Re(ze.dataTypes);try{for(ie.s();!(B=ie.n()).done;){var Ie=B.value;$(ot,Ie)?ne.push(Ie):ot.includes("integer")&&"number"===Ie&&ne.push("integer")}}catch(Ye){ie.e(Ye)}finally{ie.f()}ze.dataTypes=ne}(xe,tt)}}(fe,Ne),fe.opts.allowUnionTypes||(xe=fe,(tt=Ne).length>1&&(2!==tt.length||!tt.includes("null"))&&G(xe,"use allowUnionTypes to allow union type keyword")),function(xe,tt){var ze=xe.self.RULES.all;for(var ot in ze){var B=ze[ot];if("object"==bn(B)&&(0,e.shouldUseRule)(xe.schema,B)){var ne=B.definition.type;ne.length&&!ne.some(function(ie){return M(tt,ie)})&&G(xe,'missing type "'.concat(ne.join(","),'" for keyword "').concat(ot,'"'))}}}(fe,fe.dataTypes))),he.block(function(){var fe,Ne=Re(V.rules);try{for(Ne.s();!(fe=Ne.n()).done;)oe(fe.value)}catch(xe){Ne.e(xe)}finally{Ne.f()}oe(V.post)})):he.block(function(){return z(L,"$ref",V.all.$ref.definition)})}function S(L,X){var Z=L.gen,H=L.schema;L.opts.useDefaults&&(0,r.assignDefaults)(L,X.type),Z.block(function(){var he,E=Re(X.rules);try{for(E.s();!(he=E.n()).done;){var N=he.value;(0,e.shouldUseRule)(H,N)&&z(L,N.keyword,N.definition,X.type)}}catch(F){E.e(F)}finally{E.f()}})}function M(L,X){return L.includes(X)||"number"===X&&L.includes("integer")}function $(L,X){return L.includes(X)||"integer"===X&&L.includes("number")}function G(L,X){X+=' at "'.concat(L.schemaEnv.baseId+L.errSchemaPath,'" (strictTypes)'),(0,u.checkStrictMode)(L,X,L.opts.strictTypes)}ff.validateFunctionCode=function(L){var X,Z,H,he;g(L)&&(v(L),m(L))?(Z=(X=L).schema,H=X.opts,he=X.gen,h(X,function(){var E,F;H.$comment&&Z.$comment&&_(X),F=(E=X).opts,void 0!==E.schema.default&&F.useDefaults&&F.strictSchema&&(0,u.checkStrictMode)(E,"default is ignored in the schema root"),he.let(l.default.vErrors,null),he.let(l.default.errors,0),H.unevaluated&&function(E){var N=E.gen,F=E.validateName;E.evaluated=N.const("evaluated",(0,a._)(hY||(hY=Ae(["",".evaluated"])),F)),N.if((0,a._)(fY||(fY=Ae(["",".dynamicProps"])),E.evaluated),function(){return N.assign((0,a._)(pY||(pY=Ae(["",".props"])),E.evaluated),(0,a._)(mY||(mY=Ae(["undefined"]))))}),N.if((0,a._)(gY||(gY=Ae(["",".dynamicItems"])),E.evaluated),function(){return N.assign((0,a._)(vY||(vY=Ae(["",".items"])),E.evaluated),(0,a._)(yY||(yY=Ae(["undefined"]))))})}(X),y(X),function(E){var fe,Ne,xe,tt,ze,N=E.gen,Y=E.validateName,V=E.ValidationError,oe=E.opts;E.schemaEnv.$async?N.if((0,a._)(kY||(kY=Ae([""," === 0"])),l.default.errors),function(){return N.return(l.default.data)},function(){return N.throw((0,a._)(SY||(SY=Ae(["new ","(",")"])),V,l.default.vErrors))}):(N.assign((0,a._)(DY||(DY=Ae(["",".errors"])),Y),l.default.vErrors),oe.unevaluated&&(Ne=(fe=E).gen,xe=fe.evaluated,ze=fe.items,(tt=fe.props)instanceof a.Name&&Ne.assign((0,a._)(EY||(EY=Ae(["",".props"])),xe),tt),ze instanceof a.Name&&Ne.assign((0,a._)(AY||(AY=Ae(["",".items"])),xe),ze)),N.return((0,a._)(TY||(TY=Ae([""," === 0"])),l.default.errors)))}(X)})):h(L,function(){return(0,t.topBoolOrEmptySchema)(L)})};var R=function(){function L(X,Z,H){if(ke(this,L),(0,o.validateKeywordUsage)(X,Z,H),this.gen=X.gen,this.allErrors=X.allErrors,this.keyword=H,this.data=X.data,this.schema=X.schema[H],this.$data=Z.$data&&X.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)(X,this.schema,H,this.$data),this.schemaType=Z.schemaType,this.parentSchema=X.schema,this.params={},this.it=X,this.def=Z,this.$data)this.schemaCode=X.gen.const("vSchema",re(this.$data,X));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,Z.schemaType,Z.allowUndefined))throw new Error("".concat(H," value must be ").concat(JSON.stringify(Z.schemaType)));("code"in Z?Z.trackErrors:!1!==Z.errors)&&(this.errsCount=X.gen.const("_errs",l.default.errors))}return Se(L,[{key:"result",value:function(X,Z,H){this.failResult((0,a.not)(X),Z,H)}},{key:"failResult",value:function(X,Z,H){this.gen.if(X),H?H():this.error(),Z?(this.gen.else(),Z(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}},{key:"pass",value:function(X,Z){this.failResult((0,a.not)(X),void 0,Z)}},{key:"fail",value:function(X){if(void 0===X)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(X),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}},{key:"fail$data",value:function(X){if(!this.$data)return this.fail(X);var Z=this.schemaCode;this.fail((0,a._)(IY||(IY=Ae([""," !== undefined && (",")"])),Z,(0,a.or)(this.invalid$data(),X)))}},{key:"error",value:function(X,Z,H){if(Z)return this.setParams(Z),this._error(X,H),void this.setParams({});this._error(X,H)}},{key:"_error",value:function(X,Z){(X?d.reportExtraError:d.reportError)(this,this.def.error,Z)}},{key:"$dataError",value:function(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}},{key:"reset",value:function(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,d.resetErrorsCount)(this.gen,this.errsCount)}},{key:"ok",value:function(X){this.allErrors||this.gen.if(X)}},{key:"setParams",value:function(X,Z){Z?Object.assign(this.params,X):this.params=X}},{key:"block$data",value:function(X,Z){var H=this,he=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.nil;this.gen.block(function(){H.check$data(X,he),Z()})}},{key:"check$data",value:function(){var X=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.nil,Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.nil;if(this.$data){var H=this.gen,he=this.schemaCode,E=this.schemaType,N=this.def;H.if((0,a.or)((0,a._)(NY||(NY=Ae([""," === undefined"])),he),Z)),X!==a.nil&&H.assign(X,!0),(E.length||N.validateSchema)&&(H.elseIf(this.invalid$data()),this.$dataError(),X!==a.nil&&H.assign(X,!1)),H.else()}}},{key:"invalid$data",value:function(){var X=this.gen,Z=this.schemaCode,H=this.schemaType,he=this.def,E=this.it;return(0,a.or)(function(){if(H.length){if(!(Z instanceof a.Name))throw new Error("ajv implementation error");var N=Array.isArray(H)?H:[H];return(0,a._)(FY||(FY=Ae(["",""])),(0,i.checkDataTypes)(N,Z,E.opts.strictNumbers,i.DataType.Wrong))}return a.nil}(),function(){if(he.validateSchema){var N=X.scopeValue("validate$data",{ref:he.validateSchema});return(0,a._)(OY||(OY=Ae(["!","(",")"])),N,Z)}return a.nil}())}},{key:"subschema",value:function(X,Z){var H=(0,s.getSubschema)(this.it,X);(0,s.extendSubschemaData)(H,this.it,X),(0,s.extendSubschemaMode)(H,X);var he=Ze(Ze(Ze({},this.it),H),{},{items:void 0,props:void 0});return function p(L,X){g(L)&&(v(L),m(L))?function(Z,H){var F,Y,E=Z.gen;Z.opts.$comment&&Z.schema.$comment&&_(Z),(Y=(F=Z).schema[F.opts.schemaId])&&(F.baseId=(0,c.resolveUrl)(F.opts.uriResolver,F.baseId,Y)),function(F){if(F.schema.$async&&!F.schemaEnv.$async)throw new Error("async schema in sync schema")}(Z);var N=E.const("_errs",l.default.errors);y(Z,N),E.var(H,(0,a._)(_Y||(_Y=Ae([""," === ",""])),N,l.default.errors))}(L,X):(0,t.boolOrEmptySchema)(L,X)}(he,Z),he}},{key:"mergeEvaluated",value:function(X,Z){var H=this.it,he=this.gen;H.opts.unevaluated&&(!0!==H.props&&void 0!==X.props&&(H.props=u.mergeEvaluated.props(he,X.props,H.props,Z)),!0!==H.items&&void 0!==X.items&&(H.items=u.mergeEvaluated.items(he,X.items,H.items,Z)))}},{key:"mergeValidEvaluated",value:function(X,Z){var H=this,he=this.it;if(he.opts.unevaluated&&(!0!==he.props||!0!==he.items))return this.gen.if(Z,function(){return H.mergeEvaluated(X,a.Name)}),!0}}]),L}();function z(L,X,Z,H){var he=new R(L,Z,X);"code"in Z?Z.code(he,H):he.$data&&Z.validate?(0,o.funcKeywordCode)(he,Z):"macro"in Z?(0,o.macroKeywordCode)(he,Z):(Z.compile||Z.validate)&&(0,o.funcKeywordCode)(he,Z)}ff.KeywordCxt=R;var U=/^\/(?:[^~]|~0|~1)*$/,q=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function re(L,X){var Z,H,he=X.dataLevel,E=X.dataNames,N=X.dataPathArr;if(""===L)return l.default.rootData;if("/"===L[0]){if(!U.test(L))throw new Error("Invalid JSON-pointer: ".concat(L));Z=L,H=l.default.rootData}else{var F=q.exec(L);if(!F)throw new Error("Invalid JSON-pointer: ".concat(L));var Y=+F[1];if("#"===(Z=F[2])){if(Y>=he)throw new Error(xe("property/index",Y));return N[he-Y]}if(Y>he)throw new Error(xe("data",Y));if(H=E[he-Y],!Z)return H}var V,oe=H,fe=Re(Z.split("/"));try{for(fe.s();!(V=fe.n()).done;){var Ne=V.value;Ne&&(H=(0,a._)(jY||(jY=Ae(["","",""])),H,(0,a.getProperty)((0,u.unescapeJsonPointer)(Ne))),oe=(0,a._)(PY||(PY=Ae([""," && ",""])),oe,H))}}catch(tt){fe.e(tt)}finally{fe.f()}return oe;function xe(tt,ze){return"Cannot access ".concat(tt," ").concat(ze," levels up, current level is ").concat(he)}}return ff.getData=re,ff}Ga.getSchemaRefs=function(t,n){var e=this;if("boolean"==typeof t)return{};var i=this.opts,r=i.schemaId,o=i.uriResolver,s=z0(t[r]||n),a={"":s},l=fme(o,s,!1),c={},u=new Set;return hit(t,{allKeys:!0},function(f,p,m,g){if(void 0!==g){var v=l+p,y=a[g];"string"==typeof f[r]&&(y=_.call(e,f[r])),C.call(e,f.$anchor),C.call(e,f.$dynamicAnchor),a[p]=y}function _(S){if(S=z0(y?(0,this.opts.uriResolver.resolve)(y,S):S),u.has(S))throw h(S);u.add(S);var $=this.refs[S];return"string"==typeof $&&($=this.refs[$]),"object"==bn($)?d(f,$.schema,S):S!==z0(v)&&("#"===S[0]?(d(f,c[S],S),c[S]=f):this.refs[S]=v),S}function C(S){if("string"==typeof S){if(!git.test(S))throw new Error('invalid anchor "'.concat(S,'"'));_.call(this,"#".concat(S))}}}),c;function d(f,p,m){if(void 0!==p&&!dit(f,p))throw h(m)}function h(f){return new Error('reference "'.concat(f,'" resolves to more than one schema'))}};var gme,ID={};function DP(){if(gme)return ID;gme=1,Object.defineProperty(ID,"__esModule",{value:!0});var t=function(n){wt(i,lb(Error));var e=Ct(i);function i(r){var o;return ke(this,i),(o=e.call(this,"validation failed")).errors=r,o.ajv=o.validation=!0,o}return Se(i)}();return ID.default=t,ID}var vme,ND={};function TP(){if(vme)return ND;vme=1,Object.defineProperty(ND,"__esModule",{value:!0});var t=Ga,n=function(e){wt(r,lb(Error));var i=Ct(r);function r(o,s,a,l){var c;return ke(this,r),(c=i.call(this,l||"can't resolve reference ".concat(a," from id ").concat(s))).missingRef=(0,t.resolveUrl)(o,s,a),c.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(o,c.missingRef)),c}return Se(r)}();return ND.default=n,ND}var Zl={};Object.defineProperty(Zl,"__esModule",{value:!0}),Zl.resolveSchema=Zl.getCompilingSchema=Zl.resolveRef=Zl.compileSchema=Zl.SchemaEnv=void 0;var hd=xr(),vit=DP(),ng=Sp(),fd=Ga,yme=Hr,yit=MD(),FD=Se(function t(n){var e,i;ke(this,t),this.refs={},this.dynamicAnchors={},"object"==bn(n.schema)&&(i=n.schema),this.schema=n.schema,this.schemaId=n.schemaId,this.root=n.root||this,this.baseId=null!==(e=n.baseId)&&void 0!==e?e:(0,fd.normalizeId)(i?.[n.schemaId||"$id"]),this.schemaPath=n.schemaPath,this.localRefs=n.localRefs,this.meta=n.meta,this.$async=i?.$async,this.refs={}});function EP(t){var n=bme.call(this,t);if(n)return n;var e,i=(0,fd.getFullPath)(this.opts.uriResolver,t.root.baseId),r=this.opts.code,l=new hd.CodeGen(this.scope,{es5:r.es5,lines:r.lines,ownProperties:this.opts.ownProperties});t.$async&&(e=l.scopeValue("Error",{ref:vit.default,code:(0,hd._)(LY||(LY=Ae(['require("ajv/dist/runtime/validation_error").default'])))}));var c=l.scopeName("validate");t.validateName=c;var u,d={gen:l,allErrors:this.opts.allErrors,data:ng.default.data,parentData:ng.default.parentData,parentDataProperty:ng.default.parentDataProperty,dataNames:[ng.default.data],dataPathArr:[hd.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:l.scopeValue("schema",!0===this.opts.code.source?{ref:t.schema,code:(0,hd.stringify)(t.schema)}:{ref:t.schema}),validateName:c,ValidationError:e,schema:t.schema,schemaEnv:t,rootId:i,baseId:t.baseId||i,schemaPath:hd.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,hd._)(RY||(RY=Ae(['""']))),opts:this.opts,self:this};try{this._compilations.add(t),(0,yit.validateFunctionCode)(d),l.optimize(this.opts.code.optimize);var h=l.toString();u="".concat(l.scopeRefs(ng.default.scope),"return ").concat(h),this.opts.code.process&&(u=this.opts.code.process(u,t));var f=new Function("".concat(ng.default.self),"".concat(ng.default.scope),u)(this,this.scope.get());if(this.scope.value(c,{ref:f}),f.errors=null,f.schema=t.schema,f.schemaEnv=t,t.$async&&(f.$async=!0),!0===this.opts.code.source&&(f.source={validateName:c,validateCode:h,scopeValues:l._values}),this.opts.unevaluated){var p=d.props,m=d.items;f.evaluated={props:p instanceof hd.Name?void 0:p,items:m instanceof hd.Name?void 0:m,dynamicProps:p instanceof hd.Name,dynamicItems:m instanceof hd.Name},f.source&&(f.source.evaluated=(0,hd.stringify)(f.evaluated))}return t.validate=f,t}catch(g){throw delete t.validate,delete t.validateName,u&&this.logger.error("Error compiling schema, function code:",u),g}finally{this._compilations.delete(t)}}function bit(t){return(0,fd.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:EP.call(this,t)}function bme(t){var n,e,i,r=Re(this._compilations);try{for(r.s();!(n=r.n()).done;){var o=n.value;if((e=o).schema===(i=t).schema&&e.root===i.root&&e.baseId===i.baseId)return o}}catch(s){r.e(s)}finally{r.f()}}function _it(t,n){for(var e;"string"==typeof(e=this.refs[n]);)n=e;return e||this.schemas[n]||OD.call(this,t,n)}function OD(t,n){var e=this.opts.uriResolver.parse(n),i=(0,fd._getFullPath)(this.opts.uriResolver,e),r=(0,fd.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&i===r)return AP.call(this,e,t);var o=(0,fd.normalizeId)(i),s=this.refs[o]||this.schemas[o];if("string"==typeof s){var a=OD.call(this,t,s);return"object"!==bn(a?.schema)?void 0:AP.call(this,e,a)}if("object"===bn(s?.schema)){if(s.validate||EP.call(this,s),o===(0,fd.normalizeId)(n)){var l=s.schema,c=this.opts.schemaId,u=l[c];return u&&(r=(0,fd.resolveUrl)(this.opts.uriResolver,r,u)),new FD({schema:l,schemaId:c,root:t,baseId:r})}return AP.call(this,e,s)}}Zl.SchemaEnv=FD,Zl.compileSchema=EP,Zl.resolveRef=function(t,n,e){var i;e=(0,fd.resolveUrl)(this.opts.uriResolver,n,e);var r=t.refs[e];if(r)return r;var o=_it.call(this,t,e);if(void 0===o){var s=null===(i=t.localRefs)||void 0===i?void 0:i[e];s&&(o=new FD({schema:s,schemaId:this.opts.schemaId,root:t,baseId:n}))}return void 0!==o?t.refs[e]=bit.call(this,o):void 0},Zl.getCompilingSchema=bme,Zl.resolveSchema=OD;var xit=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function AP(t,n){var e,i=n.baseId,r=n.schema,o=n.root;if("/"===(null===(e=t.fragment)||void 0===e?void 0:e[0])){var s,a,l=Re(t.fragment.slice(1).split("/"));try{for(l.s();!(s=l.n()).done;){var c=s.value;if("boolean"==typeof r)return;var u=r[(0,yme.unescapeFragment)(c)];if(void 0===u)return;var d="object"===bn(r=u)&&r[this.opts.schemaId];!xit.has(c)&&d&&(i=(0,fd.resolveUrl)(this.opts.uriResolver,i,d))}}catch(p){l.e(p)}finally{l.f()}if("boolean"!=typeof r&&r.$ref&&!(0,yme.schemaHasRulesButRef)(r,this.RULES)){var h=(0,fd.resolveUrl)(this.opts.uriResolver,i,r.$ref);a=OD.call(this,o,h)}return(a=a||new FD({schema:r,schemaId:this.opts.schemaId,root:o,baseId:i})).schema!==a.root.schema?a:void 0}}var wit={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1},MP={},_me={};(function(t){function n(){for(var we=arguments.length,He=Array(we),qe=0;qe1){He[0]=He[0].slice(0,-1);for(var ut=He.length-1,Ue=1;Ue= 0x80 (not a basic code point)","invalid-input":"Invalid input"},z=Math.floor,U=String.fromCharCode;function q(we){throw new RangeError(G[we])}function L(we,He){var qe=we.split("@"),ut="";return qe.length>1&&(ut=qe[0]+"@",we=qe[1]),ut+function re(we,He){for(var qe=[],ut=we.length;ut--;)qe[ut]=He(we[ut]);return qe}((we=we.replace($,".")).split("."),He).join(".")}function X(we){for(var He=[],qe=0,ut=we.length;qe=55296&&Ue<=56319&&qe>1,we+=z(we/He);we>455;ut+=f)we=z(we/35);return z(ut+36*we/(we+38))},N=function(we){var He=[],qe=we.length,ut=0,Ue=128,Dn=72,ii=we.lastIndexOf("-");ii<0&&(ii=0);for(var hi=0;hi=128&&q("not-basic"),He.push(we.charCodeAt(hi));for(var di=ii>0?ii+1:0;di=qe&&q("invalid-input");var yr=H(we.charCodeAt(di++));(yr>=f||yr>z((h-ut)/Qr))&&q("overflow"),ut+=yr*Qr;var Ee=gi<=Dn?1:gi>=Dn+26?26:gi-Dn;if(yrz(h/St)&&q("overflow"),Qr*=St}var Ht=He.length+1;Dn=E(ut-kr,Ht,0==kr),z(ut/Ht)>h-Ue&&q("overflow"),Ue+=z(ut/Ht),ut%=Ht,He.splice(ut++,0,Ue)}return String.fromCodePoint.apply(String,He)},F=function(we){var He=[],qe=(we=X(we)).length,ut=128,Ue=0,Dn=72,ii=!0,hi=!1,di=void 0;try{for(var kr,Qr=we[Symbol.iterator]();!(ii=(kr=Qr.next()).done);ii=!0){var gi=kr.value;gi<128&&He.push(U(gi))}}catch(vd){hi=!0,di=vd}finally{try{!ii&&Qr.return&&Qr.return()}finally{if(hi)throw di}}var yr=He.length,Ee=yr;for(yr&&He.push("-");Ee=ut&&Bnz((h-Ue)/ei)&&q("overflow"),Ue+=(St-ut)*ei,ut=St;var Yn=!0,br=!1,Ar=void 0;try{for(var Po,ca=we[Symbol.iterator]();!(Yn=(Po=ca.next()).done);Yn=!0){var md=Po.value;if(mdh&&q("overflow"),md==ut){for(var hu=Ue,ua=f;;ua+=f){var Rl=ua<=Dn?1:ua>=Dn+26?26:ua-Dn;if(hu>6|192).toString(16).toUpperCase()+"%"+(63&He|128).toString(16).toUpperCase():"%"+(He>>12|224).toString(16).toUpperCase()+"%"+(He>>6&63|128).toString(16).toUpperCase()+"%"+(63&He|128).toString(16).toUpperCase()}function xe(we){for(var He="",qe=0,ut=we.length;qe=194&&Ue<224){if(ut-qe>=6){var Dn=parseInt(we.substr(qe+4,2),16);He+=String.fromCharCode((31&Ue)<<6|63&Dn)}else He+=we.substr(qe,6);qe+=6}else if(Ue>=224){if(ut-qe>=9){var ii=parseInt(we.substr(qe+4,2),16),hi=parseInt(we.substr(qe+7,2),16);He+=String.fromCharCode((15&Ue)<<12|(63&ii)<<6|63&hi)}else He+=we.substr(qe,9);qe+=9}else He+=we.substr(qe,3),qe+=3}return He}function tt(we,He){function qe(ut){var Ue=xe(ut);return Ue.match(He.UNRESERVED)?Ue:ut}return we.scheme&&(we.scheme=String(we.scheme).replace(He.PCT_ENCODED,qe).toLowerCase().replace(He.NOT_SCHEME,"")),void 0!==we.userinfo&&(we.userinfo=String(we.userinfo).replace(He.PCT_ENCODED,qe).replace(He.NOT_USERINFO,Ne).replace(He.PCT_ENCODED,r)),void 0!==we.host&&(we.host=String(we.host).replace(He.PCT_ENCODED,qe).toLowerCase().replace(He.NOT_HOST,Ne).replace(He.PCT_ENCODED,r)),void 0!==we.path&&(we.path=String(we.path).replace(He.PCT_ENCODED,qe).replace(we.scheme?He.NOT_PATH:He.NOT_PATH_NOSCHEME,Ne).replace(He.PCT_ENCODED,r)),void 0!==we.query&&(we.query=String(we.query).replace(He.PCT_ENCODED,qe).replace(He.NOT_QUERY,Ne).replace(He.PCT_ENCODED,r)),void 0!==we.fragment&&(we.fragment=String(we.fragment).replace(He.PCT_ENCODED,qe).replace(He.NOT_FRAGMENT,Ne).replace(He.PCT_ENCODED,r)),we}function ze(we){return we.replace(/^0*(.*)/,"$1")||"0"}function ot(we,He){var qe=we.match(He.IPV4ADDRESS)||[],ut=u(qe,2)[1];return ut?ut.split(".").map(ze).join("."):we}function B(we,He){var qe=we.match(He.IPV6ADDRESS)||[],ut=u(qe,3),Ue=ut[1],Dn=ut[2];if(Ue){for(var ii=Ue.toLowerCase().split("::").reverse(),hi=u(ii,2),di=hi[0],kr=hi[1],Qr=kr?kr.split(":").map(ze):[],gi=di.split(":").map(ze),yr=He.IPV4ADDRESS.test(gi[gi.length-1]),Ee=yr?7:8,St=gi.length-Ee,Ht=Array(Ee),sn=0;sn1){var Oi=Ht.slice(0,hn.index),Bn=Ht.slice(hn.index+hn.length);ri=Oi.join(":")+"::"+Bn.join(":")}else ri=Ht.join(":");return Dn&&(ri+="%"+Dn),ri}return we}var ne=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,ie=void 0==="".match(/(){0}/)[1];function Ie(we){var He=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},qe={},ut=!1!==He.iri?c:l;"suffix"===He.reference&&(we=(He.scheme?He.scheme+":":"")+"//"+we);var Ue=we.match(ne);if(Ue){ie?(qe.scheme=Ue[1],qe.userinfo=Ue[3],qe.host=Ue[4],qe.port=parseInt(Ue[5],10),qe.path=Ue[6]||"",qe.query=Ue[7],qe.fragment=Ue[8],isNaN(qe.port)&&(qe.port=Ue[5])):(qe.scheme=Ue[1]||void 0,qe.userinfo=-1!==we.indexOf("@")?Ue[3]:void 0,qe.host=-1!==we.indexOf("//")?Ue[4]:void 0,qe.port=parseInt(Ue[5],10),qe.path=Ue[6]||"",qe.query=-1!==we.indexOf("?")?Ue[7]:void 0,qe.fragment=-1!==we.indexOf("#")?Ue[8]:void 0,isNaN(qe.port)&&(qe.port=we.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Ue[4]:void 0)),qe.host&&(qe.host=B(ot(qe.host,ut),ut)),qe.reference=void 0!==qe.scheme||void 0!==qe.userinfo||void 0!==qe.host||void 0!==qe.port||qe.path||void 0!==qe.query?void 0===qe.scheme?"relative":void 0===qe.fragment?"absolute":"uri":"same-document",He.reference&&"suffix"!==He.reference&&He.reference!==qe.reference&&(qe.error=qe.error||"URI is not a "+He.reference+" reference.");var Dn=fe[(He.scheme||qe.scheme||"").toLowerCase()];if(He.unicodeSupport||Dn&&Dn.unicodeSupport)tt(qe,ut);else{if(qe.host&&(He.domainHost||Dn&&Dn.domainHost))try{qe.host=oe.toASCII(qe.host.replace(ut.PCT_ENCODED,xe).toLowerCase())}catch(ii){qe.error=qe.error||"Host's domain name can not be converted to ASCII via punycode: "+ii}tt(qe,l)}Dn&&Dn.parse&&Dn.parse(qe,He)}else qe.error=qe.error||"URI can not be parsed.";return qe}var Le=/^\.\.?\//,_t=/^\/\.(\/|$)/,At=/^\/\.\.(\/|$)/,_n=/^\/?(?:.|\n)*?(?=\/|$)/;function ci(we){for(var He=[];we.length;)if(we.match(Le))we=we.replace(Le,"");else if(we.match(_t))we=we.replace(_t,"/");else if(we.match(At))we=we.replace(At,"/"),He.pop();else if("."===we||".."===we)we="";else{var qe=we.match(_n);if(!qe)throw new Error("Unexpected dot segment condition");var ut=qe[0];we=we.slice(ut.length),He.push(ut)}return He.join("")}function on(we){var He=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},qe=He.iri?c:l,ut=[],Ue=fe[(He.scheme||we.scheme||"").toLowerCase()];if(Ue&&Ue.serialize&&Ue.serialize(we,He),we.host&&!qe.IPV6ADDRESS.test(we.host)&&(He.domainHost||Ue&&Ue.domainHost))try{we.host=He.iri?oe.toUnicode(we.host):oe.toASCII(we.host.replace(qe.PCT_ENCODED,xe).toLowerCase())}catch(hi){we.error=we.error||"Host's domain name can not be converted to "+(He.iri?"Unicode":"ASCII")+" via punycode: "+hi}tt(we,qe),"suffix"!==He.reference&&we.scheme&&(ut.push(we.scheme),ut.push(":"));var Dn=function Ye(we,He){var qe=!1!==He.iri?c:l,ut=[];return void 0!==we.userinfo&&(ut.push(we.userinfo),ut.push("@")),void 0!==we.host&&ut.push(B(ot(String(we.host),qe),qe).replace(qe.IPV6ADDRESS,function(Ue,Dn,ii){return"["+Dn+(ii?"%25"+ii:"")+"]"})),"number"!=typeof we.port&&"string"!=typeof we.port||(ut.push(":"),ut.push(String(we.port))),ut.length?ut.join(""):void 0}(we,He);if(void 0!==Dn&&("suffix"!==He.reference&&ut.push("//"),ut.push(Dn),we.path&&"/"!==we.path.charAt(0)&&ut.push("/")),void 0!==we.path){var ii=we.path;He.absolutePath||Ue&&Ue.absolutePath||(ii=ci(ii)),void 0===Dn&&(ii=ii.replace(/^\/\//,"/%2F")),ut.push(ii)}return void 0!==we.query&&(ut.push("?"),ut.push(we.query)),void 0!==we.fragment&&(ut.push("#"),ut.push(we.fragment)),ut.join("")}function Ni(we,He){var qe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},ut={};return arguments[3]||(we=Ie(on(we,qe),qe),He=Ie(on(He,qe),qe)),!(qe=qe||{}).tolerant&&He.scheme?(ut.scheme=He.scheme,ut.userinfo=He.userinfo,ut.host=He.host,ut.port=He.port,ut.path=ci(He.path||""),ut.query=He.query):(void 0!==He.userinfo||void 0!==He.host||void 0!==He.port?(ut.userinfo=He.userinfo,ut.host=He.host,ut.port=He.port,ut.path=ci(He.path||""),ut.query=He.query):(He.path?("/"===He.path.charAt(0)?ut.path=ci(He.path):(ut.path=void 0===we.userinfo&&void 0===we.host&&void 0===we.port||we.path?we.path?we.path.slice(0,we.path.lastIndexOf("/")+1)+He.path:He.path:"/"+He.path,ut.path=ci(ut.path)),ut.query=He.query):(ut.path=we.path,ut.query=void 0!==He.query?He.query:we.query),ut.userinfo=we.userinfo,ut.host=we.host,ut.port=we.port),ut.scheme=we.scheme),ut.fragment=He.fragment,ut}function Or(we,He){return we&&we.toString().replace(He&&He.iri?c.PCT_ENCODED:l.PCT_ENCODED,xe)}var Ai={scheme:"http",domainHost:!0,parse:function(we,He){return we.host||(we.error=we.error||"HTTP URIs must have a host."),we},serialize:function(we,He){var qe="https"===String(we.scheme).toLowerCase();return we.port!==(qe?443:80)&&""!==we.port||(we.port=void 0),we.path||(we.path="/"),we}},Wr={scheme:"https",domainHost:Ai.domainHost,parse:Ai.parse,serialize:Ai.serialize};function jo(we){return"boolean"==typeof we.secure?we.secure:"wss"===String(we.scheme).toLowerCase()}var Fn={scheme:"ws",domainHost:!0,parse:function(we,He){var qe=we;return qe.secure=jo(qe),qe.resourceName=(qe.path||"/")+(qe.query?"?"+qe.query:""),qe.path=void 0,qe.query=void 0,qe},serialize:function(we,He){if(we.port!==(jo(we)?443:80)&&""!==we.port||(we.port=void 0),"boolean"==typeof we.secure&&(we.scheme=we.secure?"wss":"ws",we.secure=void 0),we.resourceName){var qe=we.resourceName.split("?"),ut=u(qe,2),Ue=ut[0],Dn=ut[1];we.path=Ue&&"/"!==Ue?Ue:void 0,we.query=Dn,we.resourceName=void 0}return we.fragment=void 0,we}},xt={scheme:"wss",domainHost:Fn.domainHost,parse:Fn.parse,serialize:Fn.serialize},ui={},Fi="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Cr="[0-9A-Fa-f]",xo=e(e("%[EFef]"+Cr+"%"+Cr+Cr+"%"+Cr+Cr)+"|"+e("%[89A-Fa-f]"+Cr+"%"+Cr+Cr)+"|"+e("%"+Cr+Cr)),gt=n("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),ai=new RegExp(Fi,"g"),bi=new RegExp(xo,"g"),Er=new RegExp(n("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',gt),"g"),qr=new RegExp(n("[^]",Fi,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),ao=qr;function Js(we){var He=xe(we);return He.match(ai)?He:we}var vr={scheme:"mailto",parse:function(we,He){var qe=we,ut=qe.to=qe.path?qe.path.split(","):[];if(qe.path=void 0,qe.query){for(var Ue=!1,Dn={},ii=qe.query.split("&"),hi=0,di=ii.length;hi string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},v={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},_=function(){function E(){var N=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ke(this,E),this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,N=this.opts=Ze(Ze({},N),function y(E){var N,F,Y,V,oe,fe,Ne,xe,tt,ze,ot,B,ne,ie,Ie,Ye,Le,_t,At,_n,ci,on,Ni,pn,Fr,$r=E.strict,wr=null===(N=E.code)||void 0===N?void 0:N.optimize,Or=!0===wr||void 0===wr?1:wr||0,Ai=null!==(Y=null===(F=E.code)||void 0===F?void 0:F.regExp)&&void 0!==Y?Y:f,Wr=null!==(V=E.uriResolver)&&void 0!==V?V:h.default;return{strictSchema:null===(fe=null!==(oe=E.strictSchema)&&void 0!==oe?oe:$r)||void 0===fe||fe,strictNumbers:null===(xe=null!==(Ne=E.strictNumbers)&&void 0!==Ne?Ne:$r)||void 0===xe||xe,strictTypes:null!==(ze=null!==(tt=E.strictTypes)&&void 0!==tt?tt:$r)&&void 0!==ze?ze:"log",strictTuples:null!==(B=null!==(ot=E.strictTuples)&&void 0!==ot?ot:$r)&&void 0!==B?B:"log",strictRequired:null!==(ie=null!==(ne=E.strictRequired)&&void 0!==ne?ne:$r)&&void 0!==ie&&ie,code:E.code?Ze(Ze({},E.code),{},{optimize:Or,regExp:Ai}):{optimize:Or,regExp:Ai},loopRequired:null!==(Ie=E.loopRequired)&&void 0!==Ie?Ie:200,loopEnum:null!==(Ye=E.loopEnum)&&void 0!==Ye?Ye:200,meta:null===(Le=E.meta)||void 0===Le||Le,messages:null===(_t=E.messages)||void 0===_t||_t,inlineRefs:null===(At=E.inlineRefs)||void 0===At||At,schemaId:null!==(_n=E.schemaId)&&void 0!==_n?_n:"$id",addUsedSchema:null===(ci=E.addUsedSchema)||void 0===ci||ci,validateSchema:null===(on=E.validateSchema)||void 0===on||on,validateFormats:null===(Ni=E.validateFormats)||void 0===Ni||Ni,unicodeRegExp:null===(pn=E.unicodeRegExp)||void 0===pn||pn,int32range:null===(Fr=E.int32range)||void 0===Fr||Fr,uriResolver:Wr}}(N));var F=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:m,es5:F.es5,lines:F.lines}),this.logger=function U(E){if(!1===E)return z;if(void 0===E)return console;if(E.log&&E.warn&&E.error)return E;throw new Error("logger must implement log, warn and error methods")}(N.logger);var oe=N.validateFormats;N.validateFormats=!1,this.RULES=(0,o.getRules)(),C.call(this,g,N,"NOT SUPPORTED"),C.call(this,v,N,"DEPRECATED","warn"),this._metaOpts=R.call(this),N.formats&&$.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),N.keywords&&G.call(this,N.keywords),"object"==bn(N.meta)&&this.addMetaSchema(N.meta),M.call(this),N.validateFormats=oe}return Se(E,[{key:"_addVocabularies",value:function(){this.addKeyword("$async")}},{key:"_addDefaultMetaSchema",value:function(){var N=this.opts,F=N.$data,Y=N.meta,V=N.schemaId,oe=d;"id"===V&&((oe=Ze({},d)).id=oe.$id,delete oe.$id),Y&&F&&this.addMetaSchema(oe,oe[V],!1)}},{key:"defaultMeta",value:function(){var N=this.opts,F=N.meta,Y=N.schemaId;return this.opts.defaultMeta="object"==bn(F)?F[Y]||F:void 0}},{key:"validate",value:function(N,F){var Y;if("string"==typeof N){if(!(Y=this.getSchema(N)))throw new Error('no schema with key or ref "'.concat(N,'"'))}else Y=this.compile(N);var V=Y(F);return"$async"in Y||(this.errors=Y.errors),V}},{key:"compile",value:function(N,F){var Y=this._addSchema(N,F);return Y.validate||this._compileSchemaEnv(Y)}},{key:"compileAsync",value:function(N,F){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");var Y=this.opts.loadSchema;return V.call(this,N,F);function V(Ie,Ye){return oe.apply(this,arguments)}function oe(){return(oe=Zi(vn().mark(function Ie(Ye,Le){var _t;return vn().wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return At.next=2,fe.call(this,Ye.$schema);case 2:return _t=this._addSchema(Ye,Le),At.abrupt("return",_t.validate||xe.call(this,_t));case 4:case"end":return At.stop()}},Ie,this)}))).apply(this,arguments)}function fe(Ie){return Ne.apply(this,arguments)}function Ne(){return(Ne=Zi(vn().mark(function Ie(Ye){return vn().wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:if(!Ye||this.getSchema(Ye)){Le.next=3;break}return Le.next=3,V.call(this,{$ref:Ye},!0);case 3:case"end":return Le.stop()}},Ie,this)}))).apply(this,arguments)}function xe(Ie){return tt.apply(this,arguments)}function tt(){return(tt=Zi(vn().mark(function Ie(Ye){return vn().wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return Le.prev=0,Le.abrupt("return",this._compileSchemaEnv(Ye));case 4:if(Le.prev=4,Le.t0=Le.catch(0),Le.t0 instanceof r.default){Le.next=8;break}throw Le.t0;case 8:return ze.call(this,Le.t0),Le.next=11,ot.call(this,Le.t0.missingSchema);case 11:return Le.abrupt("return",xe.call(this,Ye));case 12:case"end":return Le.stop()}},Ie,this,[[0,4]])}))).apply(this,arguments)}function ze(Ie){var Ye=Ie.missingSchema,Le=Ie.missingRef;if(this.refs[Ye])throw new Error("AnySchema ".concat(Ye," is loaded but ").concat(Le," cannot be resolved"))}function ot(Ie){return B.apply(this,arguments)}function B(){return(B=Zi(vn().mark(function Ie(Ye){var Le;return vn().wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return _t.next=2,ne.call(this,Ye);case 2:if(Le=_t.sent,this.refs[Ye]){_t.next=6;break}return _t.next=6,fe.call(this,Le.$schema);case 6:this.refs[Ye]||this.addSchema(Le,Ye,F);case 7:case"end":return _t.stop()}},Ie,this)}))).apply(this,arguments)}function ne(Ie){return ie.apply(this,arguments)}function ie(){return(ie=Zi(vn().mark(function Ie(Ye){var Le;return vn().wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:if(!(Le=this._loading[Ye])){_t.next=3;break}return _t.abrupt("return",Le);case 3:return _t.prev=3,_t.next=6,this._loading[Ye]=Y(Ye);case 6:return _t.abrupt("return",_t.sent);case 7:return _t.prev=7,delete this._loading[Ye],_t.finish(7);case 10:case"end":return _t.stop()}},Ie,this,[[3,,7,10]])}))).apply(this,arguments)}}},{key:"addSchema",value:function(N,F,Y){var V,oe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.validateSchema;if(Array.isArray(N)){var fe,Ne=Re(N);try{for(Ne.s();!(fe=Ne.n()).done;)this.addSchema(fe.value,void 0,Y,oe)}catch(ze){Ne.e(ze)}finally{Ne.f()}return this}if("object"===bn(N)){var tt=this.opts.schemaId;if(void 0!==(V=N[tt])&&"string"!=typeof V)throw new Error("schema ".concat(tt," must be string"))}return F=(0,l.normalizeId)(F||V),this._checkUnique(F),this.schemas[F]=this._addSchema(N,Y,F,oe,!0),this}},{key:"addMetaSchema",value:function(N,F){return this.addSchema(N,F,!0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.opts.validateSchema),this}},{key:"validateSchema",value:function(N,F){if("boolean"==typeof N)return!0;var Y;if(void 0!==(Y=N.$schema)&&"string"!=typeof Y)throw new Error("$schema must be a string");if(!(Y=Y||this.opts.defaultMeta||this.defaultMeta()))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var V=this.validate(Y,N);if(!V&&F){var oe="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(oe);this.logger.error(oe)}return V}},{key:"getSchema",value:function(N){for(var F;"string"==typeof(F=S.call(this,N));)N=F;if(void 0===F){var V=new s.SchemaEnv({schema:{},schemaId:this.opts.schemaId});if(!(F=s.resolveSchema.call(this,V,N)))return;this.refs[N]=F}return F.validate||this._compileSchemaEnv(F)}},{key:"removeSchema",value:function(N){if(N instanceof RegExp)return this._removeAllSchemas(this.schemas,N),this._removeAllSchemas(this.refs,N),this;switch(bn(N)){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":var F=S.call(this,N);return"object"==bn(F)&&this._cache.delete(F.schema),delete this.schemas[N],delete this.refs[N],this;case"object":this._cache.delete(N);var V=N[this.opts.schemaId];return V&&(V=(0,l.normalizeId)(V),delete this.schemas[V],delete this.refs[V]),this;default:throw new Error("ajv.removeSchema: invalid parameter")}}},{key:"addVocabulary",value:function(N){var F,Y=Re(N);try{for(Y.s();!(F=Y.n()).done;)this.addKeyword(F.value)}catch(oe){Y.e(oe)}finally{Y.f()}return this}},{key:"addKeyword",value:function(N,F){var Y,V=this;if("string"==typeof N)Y=N,"object"==bn(F)&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),F.keyword=Y);else{if("object"!=bn(N)||void 0!==F)throw new Error("invalid addKeywords parameters");if(Y=(F=N).keyword,Array.isArray(Y)&&!Y.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(re.call(this,Y,F),!F)return(0,u.eachItem)(Y,function(fe){return L.call(V,fe)}),this;Z.call(this,F);var oe=Ze(Ze({},F),{},{type:(0,c.getJSONTypes)(F.type),schemaType:(0,c.getJSONTypes)(F.schemaType)});return(0,u.eachItem)(Y,0===oe.type.length?function(fe){return L.call(V,fe,oe)}:function(fe){return oe.type.forEach(function(Ne){return L.call(V,fe,oe,Ne)})}),this}},{key:"getKeyword",value:function(N){var F=this.RULES.all[N];return"object"==bn(F)?F.definition:!!F}},{key:"removeKeyword",value:function(N){var F=this.RULES;delete F.keywords[N],delete F.all[N];var Y,V=Re(F.rules);try{for(V.s();!(Y=V.n()).done;){var oe=Y.value,fe=oe.rules.findIndex(function(Ne){return Ne.keyword===N});fe>=0&&oe.rules.splice(fe,1)}}catch(Ne){V.e(Ne)}finally{V.f()}return this}},{key:"addFormat",value:function(N,F){return"string"==typeof F&&(F=new RegExp(F)),this.formats[N]=F,this}},{key:"errorsText",value:function(){var N=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.errors,F=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Y=F.separator,V=void 0===Y?", ":Y,oe=F.dataVar,fe=void 0===oe?"data":oe;return N&&0!==N.length?N.map(function(Ne){return"".concat(fe).concat(Ne.instancePath," ").concat(Ne.message)}).reduce(function(Ne,xe){return Ne+V+xe}):"No errors"}},{key:"$dataMetaSchema",value:function(N,F){var Y=this.RULES.all;N=JSON.parse(JSON.stringify(N));var V,oe=Re(F);try{for(oe.s();!(V=oe.n()).done;){var fe,Ne=V.value.split("/").slice(1),xe=N,tt=Re(Ne);try{for(tt.s();!(fe=tt.n()).done;)xe=xe[fe.value]}catch(ie){tt.e(ie)}finally{tt.f()}for(var ze in Y){var ot=Y[ze];if("object"==bn(ot)){var ne=xe[ze];ot.definition.$data&&ne&&(xe[ze]=he(ne))}}}}catch(ie){oe.e(ie)}finally{oe.f()}return N}},{key:"_removeAllSchemas",value:function(N,F){for(var Y in N){var V=N[Y];F&&!F.test(Y)||("string"==typeof V?delete N[Y]:V&&!V.meta&&(this._cache.delete(V.schema),delete N[Y]))}}},{key:"_addSchema",value:function(N,F,Y){var V,oe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.validateSchema,fe=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.opts.addUsedSchema,Ne=this.opts.schemaId;if("object"==bn(N))V=N[Ne];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof N)throw new Error("schema must be object or boolean")}var xe=this._cache.get(N);if(void 0!==xe)return xe;Y=(0,l.normalizeId)(V||Y);var tt=l.getSchemaRefs.call(this,N,Y);return xe=new s.SchemaEnv({schema:N,schemaId:Ne,meta:F,baseId:Y,localRefs:tt}),this._cache.set(xe.schema,xe),fe&&!Y.startsWith("#")&&(Y&&this._checkUnique(Y),this.refs[Y]=xe),oe&&this.validateSchema(N,!0),xe}},{key:"_checkUnique",value:function(N){if(this.schemas[N]||this.refs[N])throw new Error('schema with key or id "'.concat(N,'" already exists'))}},{key:"_compileSchemaEnv",value:function(N){if(N.meta?this._compileMetaSchema(N):s.compileSchema.call(this,N),!N.validate)throw new Error("ajv implementation error");return N.validate}},{key:"_compileMetaSchema",value:function(N){var F=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,N)}finally{this.opts=F}}}]),E}();function C(E,N,F){var Y=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"error";for(var V in E){var oe=V;oe in N&&this.logger[Y]("".concat(F,": option ").concat(V,". ").concat(E[oe]))}}function S(E){return E=(0,l.normalizeId)(E),this.schemas[E]||this.refs[E]}function M(){var E=this.opts.schemas;if(E)if(Array.isArray(E))this.addSchema(E);else for(var N in E)this.addSchema(E[N],N)}function $(){for(var E in this.opts.formats){var N=this.opts.formats[E];N&&this.addFormat(E,N)}}function G(E){if(Array.isArray(E))this.addVocabulary(E);else for(var N in this.logger.warn("keywords option as map is deprecated, pass array"),E){var F=E[N];F.keyword||(F.keyword=N),this.addKeyword(F)}}function R(){var E,N=Ze({},this.opts),F=Re(p);try{for(F.s();!(E=F.n()).done;)delete N[E.value]}catch(Y){F.e(Y)}finally{F.f()}return N}t.default=_,_.ValidationError=i.default,_.MissingRefError=r.default;var z={log:function(){},warn:function(){},error:function(){}},q=/^[a-z_$][a-z0-9_$:-]*$/i;function re(E,N){var F=this.RULES;if((0,u.eachItem)(E,function(Y){if(F.keywords[Y])throw new Error("Keyword ".concat(Y," is already defined"));if(!q.test(Y))throw new Error("Keyword ".concat(Y," has invalid name"))}),N&&N.$data&&!("code"in N)&&!("validate"in N))throw new Error('$data keyword must have "code" or "validate" function')}function L(E,N,F){var Y,V=this,oe=N?.post;if(F&&oe)throw new Error('keyword with "post" flag cannot have "type"');var fe=this.RULES,Ne=oe?fe.post:fe.rules.find(function(tt){return tt.type===F});if(Ne||fe.rules.push(Ne={type:F,rules:[]}),fe.keywords[E]=!0,N){var xe={keyword:E,definition:Ze(Ze({},N),{},{type:(0,c.getJSONTypes)(N.type),schemaType:(0,c.getJSONTypes)(N.schemaType)})};N.before?X.call(this,Ne,xe,N.before):Ne.rules.push(xe),fe.all[E]=xe,null===(Y=N.implements)||void 0===Y||Y.forEach(function(tt){return V.addKeyword(tt)})}}function X(E,N,F){var Y=E.rules.findIndex(function(V){return V.keyword===F});Y>=0?E.rules.splice(Y,0,N):(E.rules.push(N),this.logger.warn("rule ".concat(F," is not defined")))}function Z(E){var N=E.metaSchema;void 0!==N&&(E.$data&&this.opts.$data&&(N=he(N)),E.validateSchema=this.compile(N,!0))}var H={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function he(E){return{anyOf:[E,H]}}}(Xpe);var IP={},NP={},FP={};Object.defineProperty(FP,"__esModule",{value:!0}),FP.default={keyword:"id",code:function(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};var ig={};Object.defineProperty(ig,"__esModule",{value:!0}),ig.callRef=ig.getValidate=void 0;var kit=TP(),wme=dd(),ec=xr(),U0=Sp(),Cme=Zl,jD=Hr,Sit={keyword:"$ref",schemaType:"string",code:function(t){var n=t.gen,e=t.schema,i=t.it,r=i.baseId,o=i.schemaEnv,s=i.validateName,a=i.opts,l=i.self,c=o.root;if(("#"===e||"#/"===e)&&r===c.baseId)return function(){if(o===c)return PD(t,s,o,o.$async);var m=n.scopeValue("root",{ref:c});return PD(t,(0,ec._)($Y||($Y=Ae(["",".validate"])),m),c,c.$async)}();var u,d,h,f,m,g,p=Cme.resolveRef.call(l,c,r,e);if(void 0===p)throw new kit.default(i.opts.uriResolver,r,e);return p instanceof Cme.SchemaEnv?(g=kme(t,m=p),void PD(t,g,m,m.$async)):(u=p,d=n.scopeValue("schema",!0===a.code.source?{ref:u,code:(0,ec.stringify)(u)}:{ref:u}),h=n.name("valid"),f=t.subschema({schema:u,dataTypes:[],schemaPath:ec.nil,topSchemaRef:d,errSchemaPath:e},h),t.mergeEvaluated(f),void t.ok(h))}};function kme(t,n){var e=t.gen;return n.validate?e.scopeValue("validate",{ref:n.validate}):(0,ec._)(BY||(BY=Ae(["",".validate"])),e.scopeValue("wrapper",{ref:n}))}function PD(t,n,e,i){var r=t.gen,o=t.it,s=o.allErrors,a=o.schemaEnv,l=o.opts.passContext?U0.default.this:ec.nil;function c(d){var h=(0,ec._)(zY||(zY=Ae(["",".errors"])),d);r.assign(U0.default.vErrors,(0,ec._)(UY||(UY=Ae([""," === null ? "," : ",".concat(",")"])),U0.default.vErrors,h,U0.default.vErrors,h)),r.assign(U0.default.errors,(0,ec._)(GY||(GY=Ae(["",".length"])),U0.default.vErrors))}function u(d){var h;if(o.opts.unevaluated){var f=null===(h=e?.validate)||void 0===h?void 0:h.evaluated;if(!0!==o.props)if(f&&!f.dynamicProps)void 0!==f.props&&(o.props=jD.mergeEvaluated.props(r,f.props,o.props));else{var p=r.var("props",(0,ec._)(WY||(WY=Ae(["",".evaluated.props"])),d));o.props=jD.mergeEvaluated.props(r,p,o.props,ec.Name)}if(!0!==o.items)if(f&&!f.dynamicItems)void 0!==f.items&&(o.items=jD.mergeEvaluated.items(r,f.items,o.items));else{var m=r.var("items",(0,ec._)(qY||(qY=Ae(["",".evaluated.items"])),d));o.items=jD.mergeEvaluated.items(r,m,o.items,ec.Name)}}}i?function(){if(!a.$async)throw new Error("async schema referenced by sync schema");var d=r.let("valid");r.try(function(){r.code((0,ec._)(VY||(VY=Ae(["await ",""])),(0,wme.callValidateCode)(t,n,l))),u(n),s||r.assign(d,!0)},function(h){r.if((0,ec._)(HY||(HY=Ae(["!("," instanceof ",")"])),h,o.ValidationError),function(){return r.throw(h)}),c(h),s||r.assign(d,!1)}),t.ok(d)}():t.result((0,wme.callValidateCode)(t,n,l),function(){return u(n)},function(){return c(n)})}ig.getValidate=kme,ig.callRef=PD,ig.default=Sit,Object.defineProperty(NP,"__esModule",{value:!0}),NP.default=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",FP.default,ig.default];var OP={},jP={};Object.defineProperty(jP,"__esModule",{value:!0});var LD=xr(),Tp=LD.operators,RD={maximum:{okStr:"<=",ok:Tp.LTE,fail:Tp.GT},minimum:{okStr:">=",ok:Tp.GTE,fail:Tp.LT},exclusiveMaximum:{okStr:"<",ok:Tp.LT,fail:Tp.GTE},exclusiveMinimum:{okStr:">",ok:Tp.GT,fail:Tp.LTE}},Eit={message:function(t){var n=t.keyword,e=t.schemaCode;return(0,LD.str)(XY||(XY=Ae(["must be "," ",""])),RD[n].okStr,e)},params:function(t){var n=t.keyword,e=t.schemaCode;return(0,LD._)(YY||(YY=Ae(["{comparison: ",", limit: ","}"])),RD[n].okStr,e)}},Ait={keyword:Object.keys(RD),type:"number",schemaType:"number",$data:!0,error:Eit,code:function(t){var n=t.keyword,e=t.data,i=t.schemaCode;t.fail$data((0,LD._)(JY||(JY=Ae([""," "," "," || isNaN(",")"])),e,RD[n].fail,i,e))}};jP.default=Ait;var PP={};Object.defineProperty(PP,"__esModule",{value:!0});var F_=xr(),Mit={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:function(t){var n=t.schemaCode;return(0,F_.str)(KY||(KY=Ae(["must be multiple of ",""])),n)},params:function(t){var n=t.schemaCode;return(0,F_._)(QY||(QY=Ae(["{multipleOf: ","}"])),n)}},code:function(t){var e=t.data,i=t.schemaCode,r=t.it.opts.multipleOfPrecision,o=t.gen.let("res"),s=r?(0,F_._)(ZY||(ZY=Ae(["Math.abs(Math.round(",") - ",") > 1e-",""])),o,o,r):(0,F_._)(eJ||(eJ=Ae([""," !== parseInt(",")"])),o,o);t.fail$data((0,F_._)(tJ||(tJ=Ae(["("," === 0 || ("," = ","/",", ","))"])),i,o,e,i,s))}};PP.default=Mit;var LP={},RP={};function Sme(t){for(var n,e=t.length,i=0,r=0;r=55296&&n<=56319&&r=a.loopRequired;if(s.allErrors?function(){if(l||o)t.block$data(P_.nil,g);else{var v,y=Re(e);try{for(y.s();!(v=y.n()).done;)(0,j_.checkReportMissingProp)(t,v.value)}catch(C){y.e(C)}finally{y.f()}}}():function(){var v=n.let("missing");if(l||o){var y=n.let("valid",!0);t.block$data(y,function(){return C=y,t.setParams({missingProperty:_=v}),void n.forOf(_,i,function(){n.assign(C,(0,j_.propertyInData)(n,r,_,a.ownProperties)),n.if((0,P_.not)(C),function(){t.error(),n.break()})},P_.nil);var _,C}),t.ok(y)}else n.if((0,j_.checkMissingProp)(t,e,v)),(0,j_.reportMissingProp)(t,v),n.else()}(),a.strictRequired){var c,u=t.parentSchema.properties,d=t.it.definedProperties,h=Re(e);try{for(h.s();!(c=h.n()).done;){var f=c.value;if(void 0===u?.[f]&&!d.has(f)){var p=s.schemaEnv.baseId+s.errSchemaPath,m='required property "'.concat(f,'" is not defined at "').concat(p,'" (strictRequired)');(0,$it.checkStrictMode)(s,m,s.opts.strictRequired)}}}catch(v){h.e(v)}finally{h.f()}}}function g(){n.forOf("prop",i,function(v){t.setParams({missingProperty:v}),n.if((0,j_.noPropertyInData)(n,r,v,a.ownProperties),function(){return t.error()})})}}};VP.default=Bit;var HP={};Object.defineProperty(HP,"__esModule",{value:!0});var L_=xr(),Vit={message:function(t){var e=t.schemaCode,i="maxItems"===t.keyword?"more":"fewer";return(0,L_.str)(gJ||(gJ=Ae(["must NOT have "," than "," items"])),i,e)},params:function(t){var n=t.schemaCode;return(0,L_._)(vJ||(vJ=Ae(["{limit: ","}"])),n)}},Hit={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Vit,code:function(t){var e=t.data,i=t.schemaCode,r="maxItems"===t.keyword?L_.operators.GT:L_.operators.LT;t.fail$data((0,L_._)(yJ||(yJ=Ae(["",".length "," ",""])),e,r,i))}};HP.default=Hit;var zP={},R_={};Object.defineProperty(R_,"__esModule",{value:!0});var Dme=dme;Dme.code='require("ajv/dist/runtime/equal").default',R_.default=Dme,Object.defineProperty(zP,"__esModule",{value:!0});var UP=I_,Wa=xr(),zit=Hr,Uit=R_,Git={message:function(t){var n=t.params,e=n.i,i=n.j;return(0,Wa.str)(bJ||(bJ=Ae(["must NOT have duplicate items (items ## "," and "," are identical)"])),i,e)},params:function(t){var n=t.params,e=n.i,i=n.j;return(0,Wa._)(_J||(_J=Ae(["{i: ",", j: ","}"])),e,i)}},Wit={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Git,code:function(t){var n=t.gen,e=t.data,o=t.parentSchema,s=t.schemaCode,a=t.it;if(t.$data||t.schema){var l=n.let("valid"),c=o.items?(0,UP.getSchemaTypes)(o.items):[];t.block$data(l,function(){var h=n.let("i",(0,Wa._)(wJ||(wJ=Ae(["",".length"])),e)),f=n.let("j");t.setParams({i:h,j:f}),n.assign(l,!0),n.if((0,Wa._)(CJ||(CJ=Ae([""," > 1"])),h),function(){return(c.length>0&&!c.some(function(p){return"object"===p||"array"===p})?u:d)(h,f)})},(0,Wa._)(xJ||(xJ=Ae([""," === false"])),s)),t.ok(l)}function u(h,f){var p=n.name("item"),m=(0,UP.checkDataTypes)(c,p,a.opts.strictNumbers,UP.DataType.Wrong),g=n.const("indices",(0,Wa._)(kJ||(kJ=Ae(["{}"]))));n.for((0,Wa._)(SJ||(SJ=Ae([";","--;"])),h),function(){n.let(p,(0,Wa._)(DJ||(DJ=Ae(["","[","]"])),e,h)),n.if(m,(0,Wa._)(TJ||(TJ=Ae(["continue"])))),c.length>1&&n.if((0,Wa._)(EJ||(EJ=Ae(["typeof ",' == "string"'])),p),(0,Wa._)(AJ||(AJ=Ae(["",' += "_"'])),p)),n.if((0,Wa._)(MJ||(MJ=Ae(["typeof ","[",'] == "number"'])),g,p),function(){n.assign(f,(0,Wa._)(IJ||(IJ=Ae(["","[","]"])),g,p)),t.error(),n.assign(l,!1).break()}).code((0,Wa._)(NJ||(NJ=Ae(["","[","] = ",""])),g,p,h))})}function d(h,f){var p=(0,zit.useFunc)(n,Uit.default),m=n.name("outer");n.label(m).for((0,Wa._)(FJ||(FJ=Ae([";","--;"])),h),function(){return n.for((0,Wa._)(OJ||(OJ=Ae([""," = ","; ","--;"])),f,h,f),function(){return n.if((0,Wa._)(jJ||(jJ=Ae(["","(","[","], ","[","])"])),p,e,h,e,f),function(){t.error(),n.assign(l,!1).break(m)})})})}}};zP.default=Wit;var GP={};Object.defineProperty(GP,"__esModule",{value:!0});var WP=xr(),qit=Hr,Xit=R_,Yit={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:function(t){var n=t.schemaCode;return(0,WP._)(PJ||(PJ=Ae(["{allowedValue: ","}"])),n)}},code:function(t){var n=t.gen,e=t.data,r=t.schemaCode,o=t.schema;t.$data||o&&"object"==bn(o)?t.fail$data((0,WP._)(LJ||(LJ=Ae(["!","(",", ",")"])),(0,qit.useFunc)(n,Xit.default),e,r)):t.fail((0,WP._)(RJ||(RJ=Ae([""," !== ",""])),o,e))}};GP.default=Yit;var qP={};Object.defineProperty(qP,"__esModule",{value:!0});var $_=xr(),Jit=Hr,Kit=R_,Qit={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:function(t){var n=t.schemaCode;return(0,$_._)($J||($J=Ae(["{allowedValues: ","}"])),n)}},code:function(t){var n=t.gen,e=t.data,i=t.$data,r=t.schema,o=t.schemaCode,s=t.it;if(!i&&0===r.length)throw new Error("enum must have non-empty array");var a,l,u=function(){return a??(a=(0,Jit.useFunc)(n,Kit.default))};if(r.length>=s.opts.loopEnum||i)l=n.let("valid"),t.block$data(l,function(){n.assign(l,!1),n.forOf("v",o,function(h){return n.if((0,$_._)(BJ||(BJ=Ae(["","(",", ",")"])),u(),e,h),function(){return n.assign(l,!0).break()})})});else{if(!Array.isArray(r))throw new Error("ajv implementation error");var d=n.const("vSchema",o);l=$_.or.apply(void 0,si(r.map(function(h,f){return p=d,"object"===bn(g=r[m=f])&&null!==g?(0,$_._)(VJ||(VJ=Ae(["","(",", ","[","])"])),u(),e,p,m):(0,$_._)(HJ||(HJ=Ae([""," === ",""])),e,g);var p,m,g})))}t.pass(l)}};qP.default=Qit,Object.defineProperty(OP,"__esModule",{value:!0}),OP.default=[jP.default,PP.default,LP.default,$P.default,BP.default,VP.default,HP.default,zP.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},GP.default,qP.default];var XP={},G0={};Object.defineProperty(G0,"__esModule",{value:!0}),G0.validateAdditionalItems=void 0;var og=xr(),YP=Hr,crt={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:function(t){var n=t.params.len;return(0,og.str)(zJ||(zJ=Ae(["must NOT have more than "," items"])),n)},params:function(t){var n=t.params.len;return(0,og._)(UJ||(UJ=Ae(["{limit: ","}"])),n)}},code:function(t){var e=t.it,i=t.parentSchema.items;Array.isArray(i)?Tme(t,i):(0,YP.checkStrictMode)(e,'"additionalItems" is ignored when "items" is not an array of schemas')}};function Tme(t,n){var e=t.gen,i=t.schema,r=t.data,o=t.keyword,s=t.it;s.items=!0;var a=e.const("len",(0,og._)(GJ||(GJ=Ae(["",".length"])),r));if(!1===i)t.setParams({len:n.length}),t.pass((0,og._)(WJ||(WJ=Ae([""," <= ",""])),a,n.length));else if("object"==bn(i)&&!(0,YP.alwaysValidSchema)(s,i)){var l=e.var("valid",(0,og._)(qJ||(qJ=Ae([""," <= ",""])),a,n.length));e.if((0,og.not)(l),function(){return c=l,void e.forRange("i",n.length,a,function(u){t.subschema({keyword:o,dataProp:u,dataPropType:YP.Type.Num},c),s.allErrors||e.if((0,og.not)(c),function(){return e.break()})});var c}),t.ok(l)}}G0.validateAdditionalItems=Tme,G0.default=crt;var JP={},W0={};Object.defineProperty(W0,"__esModule",{value:!0}),W0.validateTuple=void 0;var Eme=xr(),BD=Hr,urt=dd(),drt={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code:function(t){var n=t.schema,e=t.it;if(Array.isArray(n))return Ame(t,"additionalItems",n);e.items=!0,(0,BD.alwaysValidSchema)(e,n)||t.ok((0,urt.validateArray)(t))}};function Ame(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.schema,i=t.gen,o=t.data,s=t.keyword,a=t.it;(function u(d){var h=a.opts,f=a.errSchemaPath,p=e.length;if(h.strictTuples&&!(p===d.minItems&&(p===d.maxItems||!1===d[n]))){var g='"'.concat(s,'" is ').concat(p,"-tuple, but minItems or maxItems/").concat(n,' are not specified or different at path "').concat(f,'"');(0,BD.checkStrictMode)(a,g,h.strictTuples)}})(t.parentSchema),a.opts.unevaluated&&e.length&&!0!==a.items&&(a.items=BD.mergeEvaluated.items(i,e.length,a.items));var l=i.name("valid"),c=i.const("len",(0,Eme._)(XJ||(XJ=Ae(["",".length"])),o));e.forEach(function(d,h){(0,BD.alwaysValidSchema)(a,d)||(i.if((0,Eme._)(YJ||(YJ=Ae([""," > ",""])),c,h),function(){return t.subschema({keyword:s,schemaProp:h,dataProp:h},l)}),t.ok(l))})}W0.validateTuple=Ame,W0.default=drt,Object.defineProperty(JP,"__esModule",{value:!0});var hrt=W0,frt={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:function(t){return(0,hrt.validateTuple)(t,"items")}};JP.default=frt;var KP={};Object.defineProperty(KP,"__esModule",{value:!0});var Mme=xr(),prt=Hr,mrt=dd(),grt=G0,vrt={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:function(t){var n=t.params.len;return(0,Mme.str)(JJ||(JJ=Ae(["must NOT have more than "," items"])),n)},params:function(t){var n=t.params.len;return(0,Mme._)(KJ||(KJ=Ae(["{limit: ","}"])),n)}},code:function(t){var n=t.schema,i=t.it,r=t.parentSchema.prefixItems;i.items=!0,(0,prt.alwaysValidSchema)(i,n)||(r?(0,grt.validateAdditionalItems)(t,r):t.ok((0,mrt.validateArray)(t)))}};KP.default=vrt;var QP={};Object.defineProperty(QP,"__esModule",{value:!0});var du=xr(),VD=Hr,yrt={message:function(t){var n=t.params,e=n.min,i=n.max;return void 0===i?(0,du.str)(QJ||(QJ=Ae(["must contain at least "," valid item(s)"])),e):(0,du.str)(ZJ||(ZJ=Ae(["must contain at least "," and no more than "," valid item(s)"])),e,i)},params:function(t){var n=t.params,e=n.min,i=n.max;return void 0===i?(0,du._)(eK||(eK=Ae(["{minContains: ","}"])),e):(0,du._)(tK||(tK=Ae(["{minContains: ",", maxContains: ","}"])),e,i)}},brt={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:yrt,code:function(t){var n,e,i=t.gen,r=t.schema,o=t.parentSchema,s=t.data,a=t.it,l=o.minContains;a.opts.next?(n=void 0===l?1:l,e=o.maxContains):n=1;var u=i.const("len",(0,du._)(nK||(nK=Ae(["",".length"])),s));if(t.setParams({min:n,max:e}),void 0!==e||0!==n){if(void 0!==e&&n>e)return(0,VD.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void t.fail();if((0,VD.alwaysValidSchema)(a,r)){var d=(0,du._)(iK||(iK=Ae([""," >= ",""])),u,n);return void 0!==e&&(d=(0,du._)(rK||(rK=Ae([""," && "," <= ",""])),d,u,e)),void t.pass(d)}a.items=!0;var h=i.name("valid");void 0===e&&1===n?p(h,function(){return i.if(h,function(){return i.break()})}):0===n?(i.let(h,!0),void 0!==e&&i.if((0,du._)(oK||(oK=Ae(["",".length > 0"])),s),f)):(i.let(h,!1),f()),t.result(h,function(){return t.reset()})}else(0,VD.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');function f(){var m=i.name("_valid"),g=i.let("count",0);p(m,function(){return i.if(m,function(){return v=g,i.code((0,du._)(sK||(sK=Ae(["","++"])),v)),void(void 0===e?i.if((0,du._)(aK||(aK=Ae([""," >= ",""])),v,n),function(){return i.assign(h,!0).break()}):(i.if((0,du._)(lK||(lK=Ae([""," > ",""])),v,e),function(){return i.assign(h,!1).break()}),1===n?i.assign(h,!0):i.if((0,du._)(cK||(cK=Ae([""," >= ",""])),v,n),function(){return i.assign(h,!0)})));var v})})}function p(m,g){i.forRange("i",0,u,function(v){t.subschema({keyword:"contains",dataProp:v,dataPropType:VD.Type.Num,compositeRule:!0},m),g()})}}};QP.default=brt;var Ime={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;var n=xr(),e=Hr,i=dd();t.error={message:function(a){var l=a.params,c=l.property,d=l.deps,h=1===l.depsCount?"property":"properties";return(0,n.str)(uK||(uK=Ae(["must have "," "," when property "," is present"])),h,d,c)},params:function(a){var l=a.params,c=l.property,u=l.depsCount,d=l.deps,h=l.missingProperty;return(0,n._)(dK||(dK=Ae(["{property: ",",\n missingProperty: ",",\n depsCount: ",",\n deps: ","}"])),c,h,u,d)}};var r={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code:function(a){var l=Un(function(d){var h=d.schema,f={},p={};for(var m in h)"__proto__"!==m&&((Array.isArray(h[m])?f:p)[m]=h[m]);return[f,p]}(a),2),u=l[1];o(a,l[0]),s(a,u)}};function o(a){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.schema,c=a.gen,u=a.data,d=a.it;if(0!==Object.keys(l).length){var h=c.let("missing"),f=function(m){var g=l[m];if(0===g.length)return"continue";var v=(0,i.propertyInData)(c,u,m,d.opts.ownProperties);a.setParams({property:m,depsCount:g.length,deps:g.join(", ")}),d.allErrors?c.if(v,function(){var y,_=Re(g);try{for(_.s();!(y=_.n()).done;)(0,i.checkReportMissingProp)(a,y.value)}catch(S){_.e(S)}finally{_.f()}}):(c.if((0,n._)(hK||(hK=Ae([""," && (",")"])),v,(0,i.checkMissingProp)(a,g,h))),(0,i.reportMissingProp)(a,h),c.else())};for(var p in l)f(p)}}function s(a){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.schema,c=a.gen,u=a.data,d=a.keyword,h=a.it,f=c.name("valid"),p=function(g){if((0,e.alwaysValidSchema)(h,l[g]))return"continue";c.if((0,i.propertyInData)(c,u,g,h.opts.ownProperties),function(){var v=a.subschema({keyword:d,schemaProp:g},f);a.mergeValidEvaluated(v,f)},function(){return c.var(f,!0)}),a.ok(f)};for(var m in l)p(m)}t.validatePropertyDeps=o,t.validateSchemaDeps=s,t.default=r}(Ime);var ZP={};Object.defineProperty(ZP,"__esModule",{value:!0});var Nme=xr(),_rt=Hr,xrt={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:function(t){var n=t.params;return(0,Nme._)(fK||(fK=Ae(["{propertyName: ","}"])),n.propertyName)}},code:function(t){var n=t.gen,i=t.data,r=t.it;if(!(0,_rt.alwaysValidSchema)(r,t.schema)){var o=n.name("valid");n.forIn("key",i,function(s){t.setParams({propertyName:s}),t.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},o),n.if((0,Nme.not)(o),function(){t.error(!0),r.allErrors||n.break()})}),t.ok(o)}}};ZP.default=xrt;var HD={};Object.defineProperty(HD,"__esModule",{value:!0});var zD=dd(),pd=xr(),wrt=Sp(),UD=Hr,Crt={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:function(t){var n=t.params;return(0,pd._)(pK||(pK=Ae(["{additionalProperty: ","}"])),n.additionalProperty)}},code:function(t){var n=t.gen,e=t.schema,i=t.parentSchema,r=t.data,o=t.errsCount,s=t.it;if(!o)throw new Error("ajv implementation error");var a=s.allErrors,l=s.opts;if(s.props=!0,"all"===l.removeAdditional||!(0,UD.alwaysValidSchema)(s,e)){var c=(0,zD.allSchemaProperties)(i.properties),u=(0,zD.allSchemaProperties)(i.patternProperties);n.forIn("key",r,function(p){c.length||u.length?n.if(function(m){var g;if(c.length>8){var v=(0,UD.schemaRefOrVal)(s,i.properties,"properties");g=(0,zD.isOwnProperty)(n,v,m)}else g=c.length?pd.or.apply(void 0,si(c.map(function(y){return(0,pd._)(gK||(gK=Ae([""," === ",""])),m,y)}))):pd.nil;return u.length&&(g=pd.or.apply(void 0,[g].concat(si(u.map(function(y){return(0,pd._)(vK||(vK=Ae(["",".test(",")"])),(0,zD.usePattern)(t,y),m)}))))),(0,pd.not)(g)}(p),function(){return h(p)}):h(p)}),t.ok((0,pd._)(mK||(mK=Ae([""," === ",""])),o,wrt.default.errors))}function d(p){n.code((0,pd._)(yK||(yK=Ae(["delete ","[","]"])),r,p))}function h(p){if("all"===l.removeAdditional||l.removeAdditional&&!1===e)d(p);else{if(!1===e)return t.setParams({additionalProperty:p}),t.error(),void(a||n.break());if("object"==bn(e)&&!(0,UD.alwaysValidSchema)(s,e)){var m=n.name("valid");"failing"===l.removeAdditional?(f(p,m,!1),n.if((0,pd.not)(m),function(){t.reset(),d(p)})):(f(p,m),a||n.if((0,pd.not)(m),function(){return n.break()}))}}}function f(p,m,g){var v={keyword:"additionalProperties",dataProp:p,dataPropType:UD.Type.Str};!1===g&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(v,m)}}};HD.default=Crt;var eL={};Object.defineProperty(eL,"__esModule",{value:!0});var krt=MD(),Fme=dd(),tL=Hr,Ome=HD,Srt={keyword:"properties",type:"object",schemaType:"object",code:function(t){var n=t.gen,e=t.schema,r=t.data,o=t.it;"all"===o.opts.removeAdditional&&void 0===t.parentSchema.additionalProperties&&Ome.default.code(new krt.KeywordCxt(o,Ome.default,"additionalProperties"));var s,a=(0,Fme.allSchemaProperties)(e),l=Re(a);try{for(l.s();!(s=l.n()).done;)o.definedProperties.add(s.value)}catch(v){l.e(v)}finally{l.f()}o.opts.unevaluated&&a.length&&!0!==o.props&&(o.props=tL.mergeEvaluated.props(n,(0,tL.toHash)(a),o.props));var v,u=a.filter(function(v){return!(0,tL.alwaysValidSchema)(o,e[v])});if(0!==u.length){var d,h=n.name("valid"),f=Re(u);try{for(f.s();!(d=f.n()).done;){var p=d.value;o.opts.useDefaults&&!o.compositeRule&&void 0!==e[v=p].default?g(p):(n.if((0,Fme.propertyInData)(n,r,p,o.opts.ownProperties)),g(p),o.allErrors||n.else().var(h,!0),n.endIf()),t.it.definedProperties.add(p),t.ok(h)}}catch(v){f.e(v)}finally{f.f()}}function g(v){t.subschema({keyword:"properties",schemaProp:v,dataProp:v},h)}}};eL.default=Srt;var nL={};Object.defineProperty(nL,"__esModule",{value:!0});var jme=dd(),GD=xr(),Pme=Hr,Lme=Hr,Drt={keyword:"patternProperties",type:"object",schemaType:"object",code:function(t){var n=t.gen,e=t.schema,i=t.data,r=t.parentSchema,o=t.it,s=o.opts,a=(0,jme.allSchemaProperties)(e),l=a.filter(function(p){return(0,Pme.alwaysValidSchema)(o,e[p])});if(0!==a.length&&(l.length!==a.length||o.opts.unevaluated&&!0!==o.props)){var c=s.strictSchema&&!s.allowMatchingProperties&&r.properties,u=n.name("valid");!0===o.props||o.props instanceof GD.Name||(o.props=(0,Lme.evaluatedPropsToName)(n,o.props));var d=o.props;!function(){var p,m=Re(a);try{for(m.s();!(p=m.n()).done;){var g=p.value;c&&h(g),o.allErrors?f(g):(n.var(u,!0),f(g),n.if(u))}}catch(v){m.e(v)}finally{m.f()}}()}function h(p){for(var m in c)new RegExp(p).test(m)&&(0,Pme.checkStrictMode)(o,"property ".concat(m," matches pattern ").concat(p," (use allowMatchingProperties)"))}function f(p){n.forIn("key",i,function(m){n.if((0,GD._)(bK||(bK=Ae(["",".test(",")"])),(0,jme.usePattern)(t,p),m),function(){var g=l.includes(p);g||t.subschema({keyword:"patternProperties",schemaProp:p,dataProp:m,dataPropType:Lme.Type.Str},u),o.opts.unevaluated&&!0!==d?n.assign((0,GD._)(_K||(_K=Ae(["","[","]"])),d,m),!0):g||o.allErrors||n.if((0,GD.not)(u),function(){return n.break()})})})}}};nL.default=Drt;var iL={};Object.defineProperty(iL,"__esModule",{value:!0});var Trt=Hr,Ert={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code:function(t){var n=t.gen;if((0,Trt.alwaysValidSchema)(t.it,t.schema))t.fail();else{var r=n.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},r),t.failResult(r,function(){return t.reset()},function(){return t.error()})}},error:{message:"must NOT be valid"}};iL.default=Ert;var rL={};Object.defineProperty(rL,"__esModule",{value:!0});var Art={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:dd().validateUnion,error:{message:"must match a schema in anyOf"}};rL.default=Art;var oL={};Object.defineProperty(oL,"__esModule",{value:!0});var WD=xr(),Mrt=Hr,Irt={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:function(t){var n=t.params;return(0,WD._)(xK||(xK=Ae(["{passingSchemas: ","}"])),n.passing)}},code:function(t){var n=t.gen,e=t.schema,i=t.parentSchema,r=t.it;if(!Array.isArray(e))throw new Error("ajv implementation error");if(!r.opts.discriminator||!i.discriminator){var o=e,s=n.let("valid",!1),a=n.let("passing",null),l=n.name("_valid");t.setParams({passing:a}),n.block(function(){o.forEach(function(c,u){var d;(0,Mrt.alwaysValidSchema)(r,c)?n.var(l,!0):d=t.subschema({keyword:"oneOf",schemaProp:u,compositeRule:!0},l),u>0&&n.if((0,WD._)(wK||(wK=Ae([""," && ",""])),l,s)).assign(s,!1).assign(a,(0,WD._)(CK||(CK=Ae(["[",", ","]"])),a,u)).else(),n.if(l,function(){n.assign(s,!0),n.assign(a,u),d&&t.mergeEvaluated(d,WD.Name)})})}),t.result(s,function(){return t.reset()},function(){return t.error(!0)})}}};oL.default=Irt;var sL={};Object.defineProperty(sL,"__esModule",{value:!0});var Nrt=Hr,Frt={keyword:"allOf",schemaType:"array",code:function(t){var n=t.gen,e=t.schema,i=t.it;if(!Array.isArray(e))throw new Error("ajv implementation error");var r=n.name("valid");e.forEach(function(o,s){if(!(0,Nrt.alwaysValidSchema)(i,o)){var a=t.subschema({keyword:"allOf",schemaProp:s},r);t.ok(r),t.mergeEvaluated(a)}})}};sL.default=Frt;var aL={};Object.defineProperty(aL,"__esModule",{value:!0});var qD=xr(),Rme=Hr,Ort={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:function(t){var n=t.params;return(0,qD.str)(kK||(kK=Ae(['must match "','" schema'])),n.ifClause)},params:function(t){var n=t.params;return(0,qD._)(SK||(SK=Ae(["{failingKeyword: ","}"])),n.ifClause)}},code:function(t){var n=t.gen,e=t.parentSchema,i=t.it;void 0===e.then&&void 0===e.else&&(0,Rme.checkStrictMode)(i,'"if" without "then" and "else" is ignored');var r=$me(i,"then"),o=$me(i,"else");if(r||o){var s,a=n.let("valid",!0),l=n.name("_valid");if(s=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},l),t.mergeEvaluated(s),t.reset(),r&&o){var c=n.let("ifClause");t.setParams({ifClause:c}),n.if(l,u("then",c),u("else",c))}else r?n.if(l,u("then")):n.if((0,qD.not)(l),u("else"));t.pass(a,function(){return t.error(!0)})}function u(d,h){return function(){var f=t.subschema({keyword:d},l);n.assign(a,l),t.mergeValidEvaluated(f,a),h?n.assign(h,(0,qD._)(DK||(DK=Ae(["",""])),d)):t.setParams({ifClause:d})}}}};function $me(t,n){var e=t.schema[n];return void 0!==e&&!(0,Rme.alwaysValidSchema)(t,e)}aL.default=Ort;var lL={};Object.defineProperty(lL,"__esModule",{value:!0});var jrt=Hr,Prt={keyword:["then","else"],schemaType:["object","boolean"],code:function(t){void 0===t.parentSchema.if&&(0,jrt.checkStrictMode)(t.it,'"'.concat(t.keyword,'" without "if" is ignored'))}};lL.default=Prt,Object.defineProperty(XP,"__esModule",{value:!0});var Lrt=G0,Rrt=JP,$rt=W0,Brt=KP,Vrt=QP,Hrt=Ime,zrt=ZP,Urt=HD,Grt=eL,Wrt=nL,qrt=iL,Xrt=rL,Yrt=oL,Jrt=sL,Krt=aL,Qrt=lL;XP.default=function(){var n=[qrt.default,Xrt.default,Yrt.default,Jrt.default,Krt.default,Qrt.default,zrt.default,Urt.default,Hrt.default,Grt.default,Wrt.default];return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.push(Rrt.default,Brt.default):n.push(Lrt.default,$rt.default),n.push(Vrt.default),n};var cL={},uL={};Object.defineProperty(uL,"__esModule",{value:!0});var js=xr(),Zrt={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:function(t){var n=t.schemaCode;return(0,js.str)(TK||(TK=Ae(['must match format "','"'])),n)},params:function(t){var n=t.schemaCode;return(0,js._)(EK||(EK=Ae(["{format: ","}"])),n)}},code:function(t,n){var g,v,h,f,p,m,e=t.gen,i=t.data,o=t.schema,s=t.schemaCode,a=t.it,l=a.opts,c=a.errSchemaPath,u=a.schemaEnv,d=a.self;l.validateFormats&&(t.$data?(h=e.scopeValue("formats",{ref:d.formats,code:l.code.formats}),f=e.const("fDef",(0,js._)(AK||(AK=Ae(["","[","]"])),h,s)),p=e.let("fType"),m=e.let("format"),e.if((0,js._)(MK||(MK=Ae(["typeof ",' == "object" && !('," instanceof RegExp)"])),f,f),function(){return e.assign(p,(0,js._)(IK||(IK=Ae(["",'.type || "string"'])),f)).assign(m,(0,js._)(NK||(NK=Ae(["",".validate"])),f))},function(){return e.assign(p,(0,js._)(FK||(FK=Ae(['"string"'])))).assign(m,f)}),t.fail$data((0,js.or)(!1===l.strictSchema?js.nil:(0,js._)(OK||(OK=Ae([""," && !",""])),s,m),(g=u.$async?(0,js._)(jK||(jK=Ae(["(",".async ? await ","(",") : ","(","))"])),f,m,i,m,i):(0,js._)(PK||(PK=Ae(["","(",")"])),m,i),v=(0,js._)(LK||(LK=Ae(["(typeof ",' == "function" ? '," : ",".test(","))"])),m,g,m,i),(0,js._)(RK||(RK=Ae([""," && "," !== true && "," === "," && !",""])),m,m,p,n,v))))):function(){var h=d.formats[o];if(h){if(!0!==h){var f=Un(function(v){var y=v instanceof RegExp?(0,js.regexpCode)(v):l.code.formats?(0,js._)($K||($K=Ae(["","",""])),l.code.formats,(0,js.getProperty)(o)):void 0,_=e.scopeValue("formats",{key:o,ref:v,code:y});return"object"!=bn(v)||v instanceof RegExp?["string",v,_]:[v.type||"string",v.validate,(0,js._)(BK||(BK=Ae(["",".validate"])),_)]}(h),3),m=f[1],g=f[2];f[0]===n&&t.pass(function(){if("object"==bn(h)&&!(h instanceof RegExp)&&h.async){if(!u.$async)throw new Error("async format in sync schema");return(0,js._)(VK||(VK=Ae(["await ","(",")"])),g,i)}return(0,js._)("function"==typeof m?HK||(HK=Ae(["","(",")"])):zK||(zK=Ae(["",".test(",")"])),g,i)}())}}else!function(){if(!1!==l.strictSchema)throw new Error(v());function v(){return'unknown format "'.concat(o,'" ignored in schema at path "').concat(c,'"')}d.logger.warn(v())}()}())}};uL.default=Zrt,Object.defineProperty(cL,"__esModule",{value:!0}),cL.default=[uL.default];var q0={};Object.defineProperty(q0,"__esModule",{value:!0}),q0.contentVocabulary=q0.metadataVocabulary=void 0,q0.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],q0.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(IP,"__esModule",{value:!0});var iot=cL,Bme=q0,rot=[NP.default,OP.default,(0,XP.default)(),iot.default,Bme.metadataVocabulary,Bme.contentVocabulary];IP.default=rot;var dL={},Vme={};(function(t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,(n=t.DiscrError||(t.DiscrError={})).Tag="tag",n.Mapping="mapping"})(Vme),Object.defineProperty(dL,"__esModule",{value:!0});var X0=xr(),hL=Vme,Hme=Zl,oot=Hr,sot={keyword:"discriminator",type:"object",schemaType:"object",error:{message:function(t){var n=t.params,i=n.tagName;return n.discrError===hL.DiscrError.Tag?'tag "'.concat(i,'" must be string'):'value of tag "'.concat(i,'" must be in oneOf')},params:function(t){var n=t.params,e=n.discrError,i=n.tag,r=n.tagName;return(0,X0._)(UK||(UK=Ae(["{error: ",", tag: ",", tagValue: ","}"])),e,r,i)}},code:function(t){var n=t.gen,e=t.data,i=t.schema,r=t.parentSchema,o=t.it,s=r.oneOf;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");var a=i.propertyName;if("string"!=typeof a)throw new Error("discriminator: requires propertyName");if(i.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");var l=n.let("valid",!1),c=n.const("tag",(0,X0._)(GK||(GK=Ae(["","",""])),e,(0,X0.getProperty)(a)));function u(d){var h=n.name("valid"),f=t.subschema({keyword:"oneOf",schemaProp:d},h);return t.mergeEvaluated(f,X0.Name),h}n.if((0,X0._)(WK||(WK=Ae(["typeof ",' == "string"'])),c),function(){return function(){var d=function(){for(var f,p={},m=C(r),g=!0,v=0;v",9:"Array"},u="UnquotedIdentifier",d="QuotedIdentifier",h="Rbracket",f="Rparen",p="Comma",m="Colon",g="Rbrace",v="Number",y="Current",_="Expref",C="Pipe",$="EQ",G="GT",R="LT",z="GTE",U="LTE",q="NE",re="Flatten",L="Star",X="Filter",Z="Dot",he="Lbrace",E="Lbracket",N="Lparen",F="Literal",Y={".":Z,"*":L,",":p,":":m,"{":he,"}":g,"]":h,"(":N,")":f,"@":y},V={"<":!0,">":!0,"=":!0,"!":!0},oe={" ":!0,"\t":!0,"\n":!0};function fe(B){return B>="0"&&B<="9"||"-"===B}function Ne(){}Ne.prototype={tokenize:function(B){var ne,ie,Ie,Ye,Le=[];for(this._current=0;this._current="a"&&Ye<="z"||Ye>="A"&&Ye<="Z"||"_"===Ye)ne=this._current,ie=this._consumeUnquotedIdentifier(B),Le.push({type:u,value:ie,start:ne});else if(void 0!==Y[B[this._current]])Le.push({type:Y[B[this._current]],value:B[this._current],start:this._current}),this._current++;else if(fe(B[this._current]))Ie=this._consumeNumber(B),Le.push(Ie);else if("["===B[this._current])Ie=this._consumeLBracket(B),Le.push(Ie);else if('"'===B[this._current])ne=this._current,ie=this._consumeQuotedIdentifier(B),Le.push({type:d,value:ie,start:ne});else if("'"===B[this._current])ne=this._current,ie=this._consumeRawStringLiteral(B),Le.push({type:F,value:ie,start:ne});else if("`"===B[this._current]){ne=this._current;var _t=this._consumeLiteral(B);Le.push({type:F,value:_t,start:ne})}else if(void 0!==V[B[this._current]])Le.push(this._consumeOperator(B));else if(void 0!==oe[B[this._current]])this._current++;else if("&"===B[this._current])ne=this._current,this._current++,"&"===B[this._current]?(this._current++,Le.push({type:"And",value:"&&",start:ne})):Le.push({type:_,value:"&",start:ne});else{if("|"!==B[this._current]){var At=new Error("Unknown character:"+B[this._current]);throw At.name="LexerError",At}ne=this._current,this._current++,"|"===B[this._current]?(this._current++,Le.push({type:"Or",value:"||",start:ne})):Le.push({type:C,value:"|",start:ne})}return Le},_consumeUnquotedIdentifier:function(B){var ne,ie=this._current;for(this._current++;this._current="a"&&ne<="z"||ne>="A"&&ne<="Z"||ne>="0"&&ne<="9"||"_"===ne);)this._current++;return B.slice(ie,this._current)},_consumeQuotedIdentifier:function(B){var ne=this._current;this._current++;for(var ie=B.length;'"'!==B[this._current]&&this._current"===ie?"="===B[this._current]?(this._current++,{type:z,value:">=",start:ne}):{type:G,value:">",start:ne}:"="===ie&&"="===B[this._current]?(this._current++,{type:$,value:"==",start:ne}):void 0},_consumeLiteral:function(B){this._current++;for(var ne,ie=this._current,Ie=B.length;"`"!==B[this._current]&&this._current=0||["true","false","null"].indexOf(B)>=0)return!0;if(!("-0123456789".indexOf(B[0])>=0))return!1;try{return JSON.parse(B),!0}catch{return!1}}};var xe={};function tt(){}function ze(B){this.runtime=B}function ot(B){this._interpreter=B,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[s]}]},avg:{_func:this._functionAvg,_signature:[{types:[8]}]},ceil:{_func:this._functionCeil,_signature:[{types:[s]}]},contains:{_func:this._functionContains,_signature:[{types:[a,3]},{types:[1]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[a]},{types:[a]}]},floor:{_func:this._functionFloor,_signature:[{types:[s]}]},length:{_func:this._functionLength,_signature:[{types:[a,3,4]}]},map:{_func:this._functionMap,_signature:[{types:[6]},{types:[3]}]},max:{_func:this._functionMax,_signature:[{types:[8,9]}]},merge:{_func:this._functionMerge,_signature:[{types:[4],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[3]},{types:[6]}]},sum:{_func:this._functionSum,_signature:[{types:[8]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[a]},{types:[a]}]},min:{_func:this._functionMin,_signature:[{types:[8,9]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[3]},{types:[6]}]},type:{_func:this._functionType,_signature:[{types:[1]}]},keys:{_func:this._functionKeys,_signature:[{types:[4]}]},values:{_func:this._functionValues,_signature:[{types:[4]}]},sort:{_func:this._functionSort,_signature:[{types:[9,8]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[3]},{types:[6]}]},join:{_func:this._functionJoin,_signature:[{types:[a]},{types:[9]}]},reverse:{_func:this._functionReverse,_signature:[{types:[a,3]}]},to_array:{_func:this._functionToArray,_signature:[{types:[1]}]},to_string:{_func:this._functionToString,_signature:[{types:[1]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[1]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[1],variadic:!0}]}}}xe.EOF=0,xe.UnquotedIdentifier=0,xe.QuotedIdentifier=0,xe.Rbracket=0,xe.Rparen=0,xe.Comma=0,xe.Rbrace=0,xe.Number=0,xe.Current=0,xe.Expref=0,xe.Pipe=1,xe.Or=2,xe.And=3,xe.EQ=5,xe.GT=5,xe.LT=5,xe.GTE=5,xe.LTE=5,xe.NE=5,xe.Flatten=9,xe.Star=20,xe.Filter=21,xe.Dot=40,xe.Not=45,xe.Lbrace=50,xe.Lbracket=55,xe.Lparen=60,tt.prototype={parse:function(B){this._loadTokens(B),this.index=0;var ne=this.expression(0);if("EOF"!==this._lookahead(0)){var ie=this._lookaheadToken(0),Ie=new Error("Unexpected token type: "+ie.type+", value: "+ie.value);throw Ie.name="ParserError",Ie}return ne},_loadTokens:function(B){var ne=(new Ne).tokenize(B);ne.push({type:"EOF",value:"",start:B.length}),this.tokens=ne},expression:function(B){var ne=this._lookaheadToken(0);this._advance();for(var ie=this.nud(ne),Ie=this._lookahead(0);B=0?this.expression(B):ne===E?(this._match(E),this._parseMultiselectList()):ne===he?(this._match(he),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(B){var ne;if(xe[this._lookahead(0)]<10)ne={type:"Identity"};else if(this._lookahead(0)===E)ne=this.expression(B);else if(this._lookahead(0)===X)ne=this.expression(B);else{if(this._lookahead(0)!==Z){var ie=this._lookaheadToken(0),Ie=new Error("Sytanx error, unexpected token: "+ie.value+"("+ie.type+")");throw Ie.name="ParserError",Ie}this._match(Z),ne=this._parseDotRHS(B)}return ne},_parseMultiselectList:function(){for(var B=[];this._lookahead(0)!==h;){var ne=this.expression(0);if(B.push(ne),this._lookahead(0)===p&&(this._match(p),this._lookahead(0)===h))throw new Error("Unexpected token Rbracket")}return this._match(h),{type:"MultiSelectList",children:B}},_parseMultiselectHash:function(){for(var B,ne,ie,Ie=[],Ye=[u,d];;){if(B=this._lookaheadToken(0),Ye.indexOf(B.type)<0)throw new Error("Expecting an identifier token, got: "+B.type);if(ne=B.value,this._advance(),this._match(m),ie={type:"KeyValuePair",name:ne,value:this.expression(0)},Ie.push(ie),this._lookahead(0)===p)this._match(p);else if(this._lookahead(0)===g){this._match(g);break}}return{type:"MultiSelectHash",children:Ie}}},ze.prototype={search:function(B,ne){return this.visit(B,ne)},visit:function(B,ne){var ie,Ie,Ye,Le,_t,At,_n,ci,on;switch(B.type){case"Field":return null!==ne&&e(ne)?void 0===(At=ne[B.name])?null:At:null;case"Subexpression":for(Ye=this.visit(B.children[0],ne),on=1;on0)for(on=$r;onwr;on+=Or)Ye.push(ne[on]);return Ye;case"Projection":var Ai=this.visit(B.children[0],ne);if(!n(Ai))return null;for(ci=[],on=0;on_t;break;case z:Ye=Le>=_t;break;case R:Ye=Le<_t;break;case U:Ye=Le<=_t;break;default:throw new Error("Unknown comparator: "+B.name)}return Ye;case re:var ui=this.visit(B.children[0],ne);if(!n(ui))return null;var Fi=[];for(on=0;on=B&&(ne=ie<0?B-1:B),ne}},ot.prototype={callFunction:function(B,ne){var ie=this.functionTable[B];if(void 0===ie)throw new Error("Unknown function: "+B+"()");return this._validateArgs(B,ne,ie._signature),ie._func.call(this,ne)},_validateArgs:function(B,ne,ie){var Ie,Ye,Le,_t;if(ie[ie.length-1].variadic){if(ne.length=0;Ie--)ie+=ne[Ie];return ie}var Ye=B[0].slice(0);return Ye.reverse(),Ye},_functionAbs:function(B){return Math.abs(B[0])},_functionCeil:function(B){return Math.ceil(B[0])},_functionAvg:function(B){for(var ne=0,ie=B[0],Ie=0;Ie=0},_functionFloor:function(B){return Math.floor(B[0])},_functionLength:function(B){return e(B[0])?Object.keys(B[0]).length:B[0].length},_functionMap:function(B){for(var ne=[],ie=this._interpreter,Ie=B[0],Ye=B[1],Le=0;Le0){if(this._getTypeName(B[0][0])===s)return Math.max.apply(Math,B[0]);for(var ne=B[0],ie=ne[0],Ie=1;Ie0){if(this._getTypeName(B[0][0])===s)return Math.min.apply(Math,B[0]);for(var ne=B[0],ie=ne[0],Ie=1;Iepn?1:Ni_t&&(_t=ie,ne=Ye[At]);return ne},_functionMinBy:function(B){for(var ne,ie,Ye=B[0],Le=this.createKeyFunction(B[1],[s,a]),_t=1/0,At=0;At1&&void 0!==arguments[1]?arguments[1]:1;return(n>0?t.toFixed(n).replace(/0+$/,"").replace(/\.$/,""):t.toString())||"0"}var dot=function(){function t(n,e,i,r){fL(this,t);var o=this;if(void 0!==n)if(Array.isArray(n))this.rgba=n;else if(void 0===i){var s=n&&""+n;s&&function(a){if(a.startsWith("hsl")){var l=a.match(/([\-\d\.e]+)/g).map(Number),c=XD(l,4),u=c[0],d=c[1],h=c[2],f=c[3];void 0===f&&(f=1),o.hsla=[u/=360,d/=100,h/=100,f]}else if(a.startsWith("rgb")){var p=a.match(/([\-\d\.e]+)/g).map(Number),m=XD(p,4),_=m[3];void 0===_&&(_=1),o.rgba=[m[0],m[1],m[2],_]}else o.rgba=a.startsWith("#")?t.hexToRgb(a):t.nameToRgb(a)||t.hexToRgb(a)}(s.toLowerCase())}else this.rgba=[n,e,i,void 0===r?1:r]}return pL(t,[{key:"printRGB",value:function(n){var e=(n?this.rgba:this.rgba.slice(0,3)).map(function(i,r){return Gme(i,3===r?3:0)});return n?"rgba("+e+")":"rgb("+e+")"}},{key:"printHSL",value:function(n){var e=[360,100,100,1],i=["","%","%",""],r=(n?this.hsla:this.hsla.slice(0,3)).map(function(o,s){return Gme(o*e[s],3===s?3:1)+i[s]});return n?"hsla("+r+")":"hsl("+r+")"}},{key:"printHex",value:function(n){var e=this.hex;return n?e:e.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(!this._hsla)throw new Error("No color is set");return this._rgba=t.hslToRgb(this._hsla)},set:function(n){3===n.length&&(n[3]=1),this._rgba=n,this._hsla=null}},{key:"rgbString",get:function(){return this.printRGB()}},{key:"rgbaString",get:function(){return this.printRGB(!0)}},{key:"hsla",get:function(){if(this._hsla)return this._hsla;if(!this._rgba)throw new Error("No color is set");return this._hsla=t.rgbToHsl(this._rgba)},set:function(n){3===n.length&&(n[3]=1),this._hsla=n,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){var n=this.rgba.map(function(e,i){return i<3?e.toString(16):Math.round(255*e).toString(16)});return"#"+n.map(function(e){return e.padStart(2,"0")}).join("")},set:function(n){this.rgba=t.hexToRgb(n)}}],[{key:"hexToRgb",value:function(n){var e=(n.startsWith("#")?n.slice(1):n).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(!e.match(/^([0-9a-fA-F]{8})$/))throw new Error("Unknown hex color; "+n);var i=e.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map(function(r){return parseInt(r,16)});return i[3]=i[3]/255,i}},{key:"nameToRgb",value:function(n){var e=n.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),i=uot[e];return void 0===i?i:t.hexToRgb(i.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(n){var e=XD(n,4),i=e[0],r=e[1],o=e[2],s=e[3];i/=255,r/=255,o/=255;var a=Math.max(i,r,o),l=Math.min(i,r,o),c=void 0,u=void 0,d=(a+l)/2;if(a===l)c=u=0;else{var h=a-l;switch(u=d>.5?h/(2-a-l):h/(a+l),a){case i:c=(r-o)/h+(r1&&(g-=1),g<.16666666666666666?p+6*(m-p)*g:g<.5?m:g<.6666666666666666?p+(m-p)*(.6666666666666666-g)*6:p},d=o<.5?o*(1+r):o+r-o*r,h=2*o-d;a=u(h,d,i+1/3),l=u(h,d,i),c=u(h,d,i-1/3)}var f=[255*a,255*l,255*c].map(Math.round);return f[3]=s,f}}]),t}(),hot=function(){function t(){fL(this,t),this._events=[]}return pL(t,[{key:"add",value:function(n,e,i){n.addEventListener(e,i,!1),this._events.push({target:n,type:e,handler:i})}},{key:"remove",value:function(n,e,i){this._events=this._events.filter(function(r){var o=!0;return n&&n!==r.target&&(o=!1),e&&e!==r.type&&(o=!1),i&&i!==r.handler&&(o=!1),o&&t._doRemove(r.target,r.type,r.handler),!o})}},{key:"destroy",value:function(){this._events.forEach(function(n){return t._doRemove(n.target,n.type,n.handler)}),this._events=[]}}],[{key:"_doRemove",value:function(n,e,i){n.removeEventListener(e,i,!1)}}]),t}();function mL(t,n,e){var i=!1;function r(l,c,u){return Math.max(c,Math.min(l,u))}function o(l,c,u){if(u&&(i=!0),i){l.preventDefault();var d=n.getBoundingClientRect(),h=d.width,f=d.height,m=c.clientY,g=r(c.clientX-d.left,0,h),v=r(m-d.top,0,f);e(g/h,v/f)}}function s(l,c){1===(void 0===l.buttons?l.which:l.buttons)?o(l,l,c):i=!1}function a(l,c){1===l.touches.length?o(l,l.touches[0],c):i=!1}t.add(n,"mousedown",function(l){s(l,!0)}),t.add(n,"touchstart",function(l){a(l,!0)}),t.add(window,"mousemove",s),t.add(n,"touchmove",a),t.add(window,"mouseup",function(l){i=!1}),t.add(n,"touchend",function(l){i=!1}),t.add(n,"touchcancel",function(l){i=!1})}function xh(t,n){return(n||document).querySelector(t)}function Wme(t){t.preventDefault(),t.stopPropagation()}function gL(t,n,e,i,r){t.add(n,"keydown",function(o){e.indexOf(o.key)>=0&&(r&&Wme(o),i(o))})}var qme=function(){function t(n){fL(this,t),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new hot,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(n)}return pL(t,[{key:"setOptions",value:function(n){var e=this;if(n){var i=this.settings;if(n instanceof HTMLElement)i.parent=n;else{i.parent&&n.parent&&i.parent!==n.parent&&(this._events.remove(i.parent),this._popupInited=!1),function(a,l,c){for(var u in a)l[u]=a[u]}(n,i),n.onChange&&(this.onChange=n.onChange),n.onDone&&(this.onDone=n.onDone),n.onOpen&&(this.onOpen=n.onOpen),n.onClose&&(this.onClose=n.onClose);var r=n.color||n.colour;r&&this._setColor(r)}var o=i.parent;if(o&&i.popup&&!this._popupInited){var s=function(a){return e.openHandler(a)};this._events.add(o,"click",s),gL(this._events,o,[" ","Spacebar","Enter"],s),this._popupInited=!0}else n.parent&&!i.popup&&this.show()}}},{key:"openHandler",value:function(n){if(this.show()){n&&n.preventDefault(),this.settings.parent.style.pointerEvents="none";var e=n&&"keydown"===n.type?this._domEdit:this.domElement;setTimeout(function(){return e.focus()},100),this.onOpen&&this.onOpen(this.colour)}}},{key:"closeHandler",value:function(n){var e=n&&n.type,i=!1;n?"mousedown"===e||"focusin"===e?n.timeStamp>(this.__containedEvent||0)+100&&(i=!0):(Wme(n),i=!0):i=!0,i&&this.hide()&&(this.settings.parent.style.pointerEvents="","mousedown"!==e&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:"movePopup",value:function(n,e){this.closeHandler(),this.setOptions(n),e&&this.openHandler()}},{key:"setColor",value:function(n,e){this._setColor(n,{silent:e})}},{key:"_setColor",value:function(n,e){if("string"==typeof n&&(n=n.trim()),n){e=e||{};var i=void 0;try{i=new dot(n)}catch(o){if(e.failSilently)return;throw o}if(!this.settings.alpha){var r=i.hsla;r[3]=1,i.hsla=r}this.colour=this.color=i,this._setHSLA(null,null,null,null,e)}}},{key:"setColour",value:function(n,e){this.setColor(n,e)}},{key:"show",value:function(){if(!this.settings.parent)return!1;if(this.domElement){var n=this._toggleDOM(!0);return this._setPosition(),n}var e,i,o=(e=this.settings.template||'
    ',(i=document.createElement("div")).innerHTML=e,i.firstElementChild);return this.domElement=o,this._domH=xh(".picker_hue",o),this._domSL=xh(".picker_sl",o),this._domA=xh(".picker_alpha",o),this._domEdit=xh(".picker_editor input",o),this._domSample=xh(".picker_sample",o),this._domOkay=xh(".picker_done button",o),this._domCancel=xh(".picker_cancel button",o),o.classList.add("layout_"+this.settings.layout),this.settings.alpha||o.classList.add("no_alpha"),this.settings.editor||o.classList.add("no_editor"),this.settings.cancelButton||o.classList.add("no_cancel"),this._ifPopup(function(){return o.classList.add("popup")}),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){var n=this,e=this,i=this.domElement,r=this._events;function o(l,c,u){r.add(l,c,u)}o(i,"click",function(l){return l.preventDefault()}),mL(r,this._domH,function(l,c){return e._setHSLA(l)}),mL(r,this._domSL,function(l,c){return e._setHSLA(null,l,1-c)}),this.settings.alpha&&mL(r,this._domA,function(l,c){return e._setHSLA(null,null,null,1-c)});var s=this._domEdit;o(s,"input",function(l){e._setColor(this.value,{fromEditor:!0,failSilently:!0})}),o(s,"focus",function(l){var c=this;c.selectionStart===c.selectionEnd&&c.select()}),this._ifPopup(function(){var l=function(u){return n.closeHandler(u)};o(window,"mousedown",l),o(window,"focusin",l),gL(r,i,["Esc","Escape"],l);var c=function(u){n.__containedEvent=u.timeStamp};o(i,"mousedown",c),o(i,"focusin",c),o(n._domCancel,"click",l)});var a=function(l){n._ifPopup(function(){return n.closeHandler(l)}),n.onDone&&n.onDone(n.colour)};o(this._domOkay,"click",a),gL(r,i,["Enter"],a)}},{key:"_setPosition",value:function(){var n=this.settings.parent,e=this.domElement;n!==e.parentNode&&n.appendChild(e),this._ifPopup(function(i){"static"===getComputedStyle(n).position&&(n.style.position="relative");var r=!0===i?"popup_right":"popup_"+i;["popup_top","popup_bottom","popup_left","popup_right"].forEach(function(o){o===r?e.classList.add(o):e.classList.remove(o)}),e.classList.add(r)})}},{key:"_setHSLA",value:function(n,e,i,r,o){o=o||{};var s=this.colour,a=s.hsla;[n,e,i,r].forEach(function(l,c){(l||0===l)&&(a[c]=l)}),s.hsla=a,this._updateUI(o),this.onChange&&!o.silent&&this.onChange(s)}},{key:"_updateUI",value:function(n){if(this.domElement){n=n||{};var e=this.colour,i=e.hsla,r="hsl("+360*i[0]+", 100%, 50%)",o=e.hslString,s=e.hslaString,l=this._domSL,c=this._domA,u=xh(".picker_selector",this._domH),d=xh(".picker_selector",l),h=xh(".picker_selector",c);_(0,u,i[0]),this._domSL.style.backgroundColor=this._domH.style.color=r,_(0,d,i[1]),C(0,d,1-i[2]),l.style.color=o,C(0,h,1-i[3]);var f=o,p=f.replace("hsl","hsla").replace(")",", 0)");if(this._domA.style.background="linear-gradient("+[f,p]+"), linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em,\n linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em",!n.fromEditor){var v=this.settings.alpha,y=void 0;switch(this.settings.editorFormat){case"rgb":y=e.printRGB(v);break;case"hsl":y=e.printHSL(v);break;default:y=e.printHex(v)}this._domEdit.value=y}this._domSample.style.color=s}function _(S,M,$){M.style.left=100*$+"%"}function C(S,M,$){M.style.top=100*$+"%"}}},{key:"_ifPopup",value:function(n,e){this.settings.parent&&this.settings.popup?n&&n(this.settings.popup):e&&e()}},{key:"_toggleDOM",value:function(n){var e=this.domElement;if(!e)return!1;var i=n?"":"none",r=e.style.display!==i;return r&&(e.style.display=i),r}}]),t}(),vL=document.createElement("style");vL.textContent='.picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:"";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:"";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:"";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:"";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}',document.documentElement.firstElementChild.appendChild(vL),qme.StyleElement=vL;var fot=Object.freeze({__proto__:null,default:qme});const pot=["editor"];function mot(t,n){if(1&t&&(b(0,"ngb-alert",37),ge(1,"img",38),b(2,"h6",39),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Error while modifying storage object: ",e.error,"")}}function got(t,n){1&t&&(b(0,"ngb-alert",40),ge(1,"img",41),b(2,"h6",39),I(3,"Storage object was modified successfully."),x()()),2&t&&k("dismissible",!1)}function vot(t,n){1&t&&(b(0,"span"),I(1,"Save as a copy"),x())}function yot(t,n){1&t&&I(0,"Save")}function bot(t,n){if(1&t&&(b(0,"button",42),J(1,vot,2,0,"span",43),J(2,yot,1,0,"ng-template",null,44,Ur),x()),2&t){const e=uo(3),i=j();k("disabled",i.updating),w(1),k("ngIf",i.object.collection!==i.f.collection.value||i.object.key!==i.f.keyname.value||i.object.user_id!==i.f.user_id.value)("ngIfElse",e)}}const yL=function(){return["/storage"]},_ot=function(t){return{collection:t}},xot=function(t,n){return{collection:t,key:n}},wot=function(t,n,e){return{collection:t,key:n,user_id:e}},bL=function(t){return{"is-invalid":t}};let Cot=(()=>{class t{ngOnInit(){this.objectForm=this.formBuilder.group({collection:["",Do.required],keyname:["",Do.required],user_id:["",Do.required],permission_read:[0,Do.required],permission_write:[0,Do.required]}),this.route.data.subscribe(e=>{this.object=e[0],this.f.collection.setValue(this.object.collection),this.f.keyname.setValue(this.object.key),this.f.user_id.setValue(this.object.user_id),this.f.permission_read.setValue(this.object.permission_read),this.f.permission_write.setValue(this.object.permission_write),this.updateAllowed()||this.objectForm.disable()},e=>{this.error=e})}constructor(e,i,r,o,s){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"formBuilder",void 0),K(this,"editor",void 0),K(this,"jsonEditor",void 0),K(this,"error",""),K(this,"object",void 0),K(this,"objectForm",void 0),K(this,"updating",!1),K(this,"updated",!1),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngAfterViewInit(){this.jsonEditor=new Zm({target:this.editor.nativeElement,props:{mode:Jo.text,readOnly:!this.updateAllowed(),content:{text:this.object.value}}})}updateObject(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=Zv(this.jsonEditor.get()).text}catch(o){return this.error=o,void(this.updating=!1)}let i=this.object.version;(this.object.collection!==this.f.collection.value||this.object.key!==this.f.keyname.value||this.object.user_id!==this.f.user_id.value)&&(i=""),this.consoleService.writeStorageObject("",this.f.collection.value,this.f.keyname.value,this.f.user_id.value,{version:i,value:e,permission_read:this.f.permission_read.value,permission_write:this.f.permission_write.value}).subscribe(o=>{this.updated=!0,this.updating=!1,this.object.version=o.version,""===i&&(this.object.collection=this.f.collection.value,this.object.key=this.f.keyname.value,this.object.user_id=this.f.user_id.value,this.object.permission_read=this.f.permission_read.value,this.object.permission_write=this.f.permission_write.value)},o=>{this.error=o,this.updating=!1})}deleteObject(){this.error="",this.updated=!1,this.updating=!1;const e=this.object;this.consoleService.deleteStorageObject("",e.collection,e.key,e.user_id,e.version).subscribe(()=>{this.router.navigate(["/storage"],{relativeTo:this.route,queryParams:{collection:this.f.collection.value,key:this.f.key.value,user_id:this.f.user_id.value}})},i=>{this.error=i})}updateAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}get f(){return this.objectForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&io(pot,5),2&e){let r;cn(r=un())&&(i.editor=r.first)}},decls:88,vars:50,consts:[[1,"pb-1"],[1,"storage-top-nav","d-flex","justify-content-between","align-items-baseline","mb-3"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink","queryParams"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","collection",1,"d-inline"],["type","text","id","collection","placeholder","Collection","required","","formControlName","collection",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","key",1,"d-inline"],["type","text","id","key","placeholder","Key","required","","formControlName","keyname",1,"form-control","form-control-sm","my-2",3,"ngClass"],["for","user_id",1,"d-inline"],["type","text","id","user_id","placeholder","User ID","required","","formControlName","user_id",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","permission_read",1,"d-inline"],["ngbRadioGroup","","id","permission_read","name","permission_read","formControlName","permission_read",1,"btn-group","btn-group-toggle"],["ngbButtonLabel","",1,"btn-outline-secondary"],["ngbButton","","type","radio",3,"disabled","value"],["for","version",1,"d-inline"],["type","text","id","version","placeholder","Version","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","permission_write",1,"d-inline"],["ngbRadioGroup","","id","permission_write","name","permission_write","formControlName","permission_write",1,"btn-group","btn-group-toggle"],[1,"row","add-border-single-row-bottom","mb-3"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","update_time",1,"d-inline"],["type","text","id","update_time","placeholder","Update Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"card","p-2","mt-3","mb-3","jsoneditor",2,"height","518px"],[2,"height","500px"],["editor",""],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","submit",1,"btn","btn-primary",3,"disabled"],[4,"ngIf","ngIfElse"],["elseBlock",""]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"Storage Object"),x(),b(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4),I(6,"Storage"),x(),b(7,"li",4)(8,"a",5),I(9),x()(),b(10,"li",4)(11,"a",5),I(12),x()(),b(13,"li",4)(14,"a",5),I(15),x()()()()(),J(16,mot,4,2,"ngb-alert",6),J(17,got,4,1,"ngb-alert",7),b(18,"form",8),ye("ngSubmit",function(){return i.updateObject()}),b(19,"div",9)(20,"div",10)(21,"div",11)(22,"label",12),I(23,"Collection"),x()(),ge(24,"input",13),b(25,"div",14),I(26,"Collection is required"),x()(),b(27,"div",10)(28,"div",11)(29,"label",15),I(30,"Key"),x()(),ge(31,"input",16),b(32,"div",14),I(33,"Key is required"),x()()(),b(34,"div",9)(35,"div",10)(36,"div",11)(37,"label",17),I(38,"User ID"),x()(),ge(39,"input",18),b(40,"div",14),I(41,"User ID is required"),x()(),b(42,"div",19)(43,"div",11)(44,"label",20),I(45,"Read Permission"),x()(),b(46,"div",21)(47,"label",22),ge(48,"input",23),I(49," No Read "),x(),b(50,"label",22),ge(51,"input",23),I(52," Owner Read "),x(),b(53,"label",22),ge(54,"input",23),I(55," Public Read "),x()()()(),b(56,"div",9)(57,"div",10)(58,"div",11)(59,"label",24),I(60,"Version"),x()(),ge(61,"input",25),x(),b(62,"div",19)(63,"div",11)(64,"label",26),I(65,"Write Permission"),x()(),b(66,"div",27)(67,"label",22),ge(68,"input",23),I(69," No Write "),x(),b(70,"label",22),ge(71,"input",23),I(72," Owner Write "),x()()()(),b(73,"div",28)(74,"div",10)(75,"div",11)(76,"label",29),I(77,"Create Time"),x()(),ge(78,"input",30),x(),b(79,"div",10)(80,"div",11)(81,"label",31),I(82,"Update Time"),x()(),ge(83,"input",32),x()(),b(84,"div",33),ge(85,"div",34,35),x(),J(87,bot,4,3,"button",36),x()),2&e&&(w(8),k("routerLink",wl(32,yL))("queryParams",lr(33,_ot,i.object.collection)),w(1),Dt(i.object.collection),w(2),k("routerLink",wl(35,yL))("queryParams",Sr(36,xot,i.object.collection,i.object.key)),w(1),Dt(i.object.key),w(2),k("routerLink",wl(39,yL))("queryParams",Ug(40,wot,i.object.collection,i.object.key,i.object.user_id)),w(1),Dt(i.object.user_id),w(1),k("ngIf",i.error),w(1),k("ngIf",i.updated),w(1),k("formGroup",i.objectForm),w(6),k("ngClass",lr(44,bL,i.f.collection.dirty&&i.f.collection.errors)),w(1),k("hidden",i.f.collection.disabled||i.f.collection.valid||i.f.collection.pristine),w(6),k("ngClass",lr(46,bL,i.f.keyname.dirty&&i.f.keyname.errors)),w(1),k("hidden",i.f.keyname.disabled||i.f.keyname.valid||i.f.keyname.pristine),w(7),k("ngClass",lr(48,bL,i.f.user_id.dirty&&i.f.user_id.errors)),w(1),k("hidden",i.f.user_id.disabled||i.f.user_id.valid||i.f.user_id.pristine),w(8),k("disabled",!i.updateAllowed())("value",0),w(3),k("disabled",!i.updateAllowed())("value",1),w(3),k("disabled",!i.updateAllowed())("value",2),w(7),k("value",i.object.version),w(7),k("disabled",!i.updateAllowed())("value",0),w(3),k("disabled",!i.updateAllowed())("value",1),w(7),k("value",i.object.create_time),w(5),k("value",i.object.update_time),w(4),k("ngIf",i.updateAllowed()))},dependencies:[Nu,Rh,gn,To,AC,N3,IH,sl,Fa,rl,ol,Nf,fa,ja],styles:[".storage-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})),t})(),kot=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.paramMap.get("collection"),o=e.paramMap.get("key"),s=e.paramMap.get("user_id");return this.consoleService.getStorage("",r,o,s)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Sot(t,n){if(1&t&&(b(0,"ngb-alert",18),ge(1,"img",19),b(2,"h6",20),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Error while processing request: ",e.error,"")}}function Dot(t,n){1&t&&(b(0,"th",21),I(1,"Remove"),x())}function Tot(t,n){if(1&t){const e=vt();b(0,"td",25),ye("click",function(){$e(e);const r=j().$implicit;return Be(j().viewLeaderboardEntries(r))}),I(1,"Yes"),x()}}function Eot(t,n){if(1&t){const e=vt();b(0,"td",25),ye("click",function(){$e(e);const r=j().$implicit;return Be(j().viewLeaderboardEntries(r))}),I(1,"No"),x()}}function Aot(t,n){if(1&t){const e=vt();b(0,"td",25),ye("click",function(){$e(e);const r=j().$implicit;return Be(j().viewLeaderboardEntries(r))}),I(1,"Yes"),x()}}function Mot(t,n){if(1&t){const e=vt();b(0,"td",25),ye("click",function(){$e(e);const r=j().$implicit;return Be(j().viewLeaderboardEntries(r))}),I(1,"No"),x()}}function Iot(t,n){if(1&t){const e=vt();b(0,"td",26)(1,"button",27),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteLeaderboard(r,s,a))}),I(2,"Delete"),x()()}}function Not(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td",22),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewLeaderboardEntries(o))}),I(2),x(),b(3,"td",22),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewLeaderboardEntries(o))}),I(4),x(),b(5,"td",22),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewLeaderboardEntries(o))}),I(6),x(),b(7,"td",22),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewLeaderboardEntries(o))}),I(8),x(),J(9,Tot,2,0,"td",23),J(10,Eot,2,0,"td",23),J(11,Aot,2,0,"td",23),J(12,Mot,2,0,"td",23),J(13,Iot,3,0,"td",24),x()}if(2&t){const e=n.$implicit,i=j();w(2),Dt(e.id),w(2),Dt(i.orderString[e.sort_order]),w(2),Dt(i.operatorString[e.operator]),w(2),Dt(""===e.reset_schedule?"-":e.reset_schedule),w(1),k("ngIf",e.authoritative),w(1),k("ngIf",!e.authoritative),w(1),k("ngIf",e.tournament),w(1),k("ngIf",!e.tournament),w(1),k("ngIf",i.deleteAllowed())}}function Fot(t,n){1&t&&(b(0,"tr")(1,"td",28),I(2,"No leaderboards were found."),x()())}let Oot=(()=>{class t{constructor(e,i,r,o){K(this,"route",void 0),K(this,"router",void 0),K(this,"authService",void 0),K(this,"consoleService",void 0),K(this,"error",""),K(this,"leaderboards",[]),K(this,"nextCursor",""),K(this,"leaderboardsCount",0),K(this,"orderString",{0:"Ascending",1:"Descending"}),K(this,"operatorString",{0:"Best",1:"Set",2:"Increment",3:"Decrement"}),this.route=e,this.router=i,this.authService=r,this.consoleService=o}ngOnInit(){this.nextCursor=this.route.snapshot.queryParamMap.get("cursor"),this.search(this.nextCursor&&""!==this.nextCursor?1:0)}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_DEVELOPER}deleteLeaderboard(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteLeaderboard("",r.id).subscribe(()=>{this.error="",this.leaderboards.splice(i,1),this.leaderboardsCount--},o=>{this.error=o})}viewLeaderboardEntries(e){this.router.navigate(["/leaderboards",e.id],{relativeTo:this.route})}search(e){let i="";switch(e){case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listLeaderboards("",i).subscribe(r=>{this.error="",this.leaderboards.length=0,this.leaderboards.push(...r.leaderboards),this.leaderboardsCount=r.total,this.nextCursor=r.cursor,this.router.navigate([],{relativeTo:this.route,queryParams:{cursor:i},queryParamsHandling:"merge"})},r=>{this.error=r})}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(Xo),le(xi))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:33,vars:7,consts:[[1,"row","no-gutters"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[1,"pb-1"],[1,"pb-4"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger",3,"dismissible",4,"ngIf"],[1,"table","table-sm","table-bordered","table-hover"],[1,"thead-light"],[2,"width","130px"],[2,"width","100px"],["style","width: 90px",4,"ngIf"],[4,"ngFor","ngForOf"],[4,"ngIf"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],[3,"click"],["class","text-center",3,"click",4,"ngIf"],["class","text-center",4,"ngIf"],[1,"text-center",3,"click"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],["colspan","7",1,"text-muted"]],template:function(e,i){1&e&&(b(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2",3),I(4,"Leaderboards"),x(),b(5,"h6",4),I(6),x()(),b(7,"div",5)(8,"div",6)(9,"button",7),ye("click",function(){return i.search(0)}),ge(10,"img",8),x(),b(11,"button",7),ye("click",function(){return i.search(1)}),ge(12,"img",9),x()()()()(),J(13,Sot,4,2,"ngb-alert",10),b(14,"table",11)(15,"thead",12)(16,"tr")(17,"th"),I(18,"Leaderboard ID"),x(),b(19,"th",13),I(20,"Sort Order"),x(),b(21,"th",13),I(22,"Operator"),x(),b(23,"th",13),I(24,"Reset Schedule"),x(),b(25,"th",14),I(26,"Authoritative"),x(),b(27,"th",14),I(28,"Tournament"),x(),J(29,Dot,2,0,"th",15),x()(),b(30,"tbody"),J(31,Not,14,9,"tr",16),J(32,Fot,3,0,"tr",17),x()()),2&e&&(w(6),xn("",i.leaderboardsCount," leaderboards found."),w(3),k("disabled",0===i.leaderboards.length),w(2),k("disabled",""===i.nextCursor),w(2),k("ngIf",i.error),w(16),k("ngIf",i.deleteAllowed()),w(2),k("ngForOf",i.leaderboards),w(1),k("ngIf",0===i.leaderboards.length))},dependencies:[jn,gn,To],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})),t})(),jot=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.listLeaderboards("")}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Pot(t,n){if(1&t&&(b(0,"ngb-alert",31),ge(1,"img",32),b(2,"h6",33),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Error when querying accounts: ",e.error,"")}}function Lot(t,n){1&t&&(b(0,"th",34),I(1,"Remove"),x())}function Rot(t,n){1&t&&(b(0,"tr")(1,"td",35),I(2,"No users found - change the filter criteria or add new user accounts."),x()())}function $ot(t,n){1&t&&ge(0,"td")}function Bot(t,n){if(1&t){const e=vt();b(0,"td",38)(1,"button",39),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteAccount(r,s,a))}),I(2,"Delete"),x()()}}function Vot(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td",36),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(2),x(),b(3,"td",36),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(4),x(),b(5,"td",36),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(6),x(),b(7,"td",36),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(8),x(),J(9,$ot,1,0,"td",29),J(10,Bot,3,0,"td",37),x()}if(2&t){const e=n.$implicit,i=j();w(2),Dt(e.id),w(2),Dt(e.username),w(2),Dt(e.display_name),w(2),Dt(e.update_time),w(1),k("ngIf",i.deleteAllowed()&&e.id===i.systemUserId),w(1),k("ngIf",i.deleteAllowed()&&e.id!==i.systemUserId)}}let Hot=(()=>{class t{constructor(e,i,r,o,s){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"formBuilder",void 0),K(this,"systemUserId","00000000-0000-0000-0000-000000000000"),K(this,"error",""),K(this,"accountsCount",0),K(this,"accounts",[]),K(this,"nextCursor",""),K(this,"prevCursor",""),K(this,"searchForm",void 0),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.searchForm=this.formBuilder.group({filter:[""],filter_type:[0]});const e=this.route.snapshot.queryParamMap;this.f.filter.setValue(e.get("filter")),this.f.filter_type.setValue(+e.get("filter_type")),this.nextCursor=e.get("cursor"),this.nextCursor&&""!==this.nextCursor?this.search(1):(this.f.filter.value||this.f.filter_type.value)&&this.search(0),this.route.data.subscribe(i=>{this.accounts.length=0,i&&(this.accounts.push(...i[0].users),this.accountsCount=i[0].total_count,this.nextCursor=i[0].next_cursor,this.prevCursor=i[0].prev_cursor)},i=>{this.error=i})}search(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listAccounts("",this.f.filter.value,this.f.filter_type.value&&1===this.f.filter_type.value,i).subscribe(o=>{this.error="",this.accounts.length=0,this.accounts.push(...o.users),this.accountsCount=o.total_count,this.nextCursor=o.next_cursor,this.router.navigate([],{relativeTo:this.route,queryParams:{filter:this.f.filter.value,filter_type:this.f.filter_type.value,cursor:i},queryParamsHandling:"merge"})},o=>{this.error=o})}deleteAccount(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteAccount("",r.id,!1).subscribe(()=>{this.error="",this.accounts.splice(i,1),this.accountsCount--},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_DEVELOPER}viewAccount(e){this.router.navigate(["/accounts",e.id],{relativeTo:this.route})}get f(){return this.searchForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:45,vars:9,consts:[[1,"pb-1"],[1,"pb-3"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","filter","placeholder","Filter by user ID, social provider ID, device ID, or username (use '%' for prefix or suffix wildcard search)",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"input-group-text",3,"click"],["src","/static/svg/purple-cog-1.svg","alt","","width","20","height","",1,"mr-1"],[1,"btn-group"],["type","button",1,"btn","btn-primary","dropdown-radius",3,"click"],["ngbDropdown","","role","group","aria-label","Button group with nested dropdown",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-primary","dropdown-toggle-split",3,"disabled"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"User Accounts"),x(),b(2,"h6",1),I(3),x(),b(4,"div",2)(5,"div",3)(6,"div",4)(7,"form",5),ye("ngSubmit",function(){return i.search(0)}),b(8,"div",6),ge(9,"input",7),b(10,"div",8)(11,"span",9),ye("click",function(){return i.f.filter.setValue(i.systemUserId)}),ge(12,"img",10),x()(),b(13,"div",8)(14,"div",11)(15,"button",12),ye("click",function(){return i.f.filter_type.setValue(0),i.search(0)}),I(16,"Search"),x(),b(17,"div",13),ge(18,"button",14),b(19,"div",15)(20,"button",16),ye("click",function(){return i.f.filter_type.setValue(1),i.search(0)}),I(21,"Tombstones"),x()()()()()()()(),b(22,"div",17)(23,"div",18)(24,"button",19),ye("click",function(){return i.search(0)}),ge(25,"img",20),x(),b(26,"button",19),ye("click",function(){return i.search(1)}),ge(27,"img",21),x()()()()(),J(28,Pot,4,2,"ngb-alert",22),b(29,"div",23)(30,"table",24)(31,"thead",25)(32,"tr")(33,"th",26),I(34,"User ID"),x(),b(35,"th"),I(36,"Username"),x(),b(37,"th"),I(38,"Display Name"),x(),b(39,"th",27),I(40,"Last Update"),x(),J(41,Lot,2,0,"th",28),x()(),b(42,"tbody"),J(43,Rot,3,0,"tr",29),J(44,Vot,11,6,"tr",30),x()()()),2&e&&(w(3),xn("",i.accountsCount," accounts found."),w(4),k("formGroup",i.searchForm),w(11),k("disabled",!i.f.filter.value||""===i.f.filter.value),w(6),k("disabled",0===i.accounts.length),w(2),k("disabled",""===i.nextCursor),w(2),k("ngIf",i.error),w(13),k("ngIf",i.deleteAllowed()),w(2),k("ngIf",0===i.accounts.length),w(1),k("ngForOf",i.accounts))},dependencies:[jn,gn,To,Pu,rm,Pf,jf,sl,Fa,rl,ol,fa,ja],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})),t})(),zot=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.queryParamMap.get("filter"),o=e.queryParamMap.get("tombstones");return this.consoleService.listAccounts("",r,"true"===o,null)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Uot(t,n){if(1&t){const e=vt();b(0,"button",15),ye("click",function(r){return $e(e),Be(j().exportAccount(r))}),ge(1,"img",16),I(2,"Export"),x()}}function Got(t,n){1&t&&(b(0,"span"),I(1,"Unban"),x())}function Wot(t,n){1&t&&(b(0,"span"),I(1,"Ban"),x())}function qot(t,n){if(1&t){const e=vt();b(0,"button",15),ye("click",function(r){return $e(e),Be(j().banUnbanAccount(r))}),ge(1,"img",17),J(2,Got,2,0,"span",18),J(3,Wot,2,0,"span",18),x()}if(2&t){const e=j();w(2),k("ngIf",e.account.disable_time),w(1),k("ngIf",!e.account.disable_time)}}function Xot(t,n){if(1&t){const e=vt();b(0,"button",19),ye("click",function(r){return $e(e),Be(j().deleteAccount(r,!1))}),ge(1,"img",20),I(2,"Delete"),x()}}function Yot(t,n){if(1&t){const e=vt();b(0,"button",19),ye("click",function(r){return $e(e),Be(j().deleteAccount(r,!0))}),ge(1,"img",21),I(2,"Recorded delete"),x()}}function Jot(t,n){if(1&t&&(b(0,"ngb-alert",22),ge(1,"img",23),b(2,"h6",24),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}const Kot=function(t,n){return["/accounts",t,n]};function Qot(t,n){if(1&t&&(b(0,"div"),ta(1,25),b(2,"a",26),I(3),x(),na(),x()),2&t){const e=n.$implicit,i=j();w(1),k("ngbNavItem",e.path),w(1),k("routerLink",Sr(3,Kot,i.account.user.id,e.path)),w(1),Dt(e.label)}}const Zot=function(){return["/accounts"]},est=function(){return["/storage"]},tst=function(t){return{user_id:t}};let nst=(()=>{class t{constructor(e,i,r,o){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"account",void 0),K(this,"error",""),K(this,"views",[{label:"Profile",path:"profile"},{label:"Authentication",path:"authentication"},{label:"Friends",path:"friends"},{label:"Groups",path:"groups"},{label:"Wallet",path:"wallet"},{label:"Purchases",path:"purchases"},{label:"Subscriptions",path:"subscriptions"}]),this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}deleteAccount(e,i){e.target.disabled=!0,this.error="",this.consoleService.deleteAccount("",this.account.user.id,i).subscribe(()=>{this.error="",this.router.navigate(["/accounts"])},r=>{this.error=r})}banUnbanAccount(e){e.target.disabled=!0,this.error="",this.account.disable_time?this.consoleService.unbanAccount("",this.account.user.id).subscribe(()=>{this.error="",this.account.disable_time=null,e.target.disabled=!1},i=>{this.error=i,e.target.disabled=!1}):this.consoleService.banAccount("",this.account.user.id).subscribe(()=>{this.error="",this.account.disable_time=Date.now().toString(),e.target.disabled=!1},i=>{this.error=i,e.target.disabled=!1})}exportAccount(e){e.target.disabled=!0,this.error="",this.consoleService.exportAccount("",this.account.user.id).subscribe(i=>{this.error="";const r=this.account.user.id+"-export.json",o=JSON.stringify(i,null,2),s=(new TextEncoder).encode(o),a=new Blob([s],{type:"application/json;charset=utf-8"});(0,rN.saveAs)(a,r),e.target.disabled=!1},i=>{e.target.disabled=!1,this.error=i})}updateAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}exportAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}banAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:24,vars:14,consts:[[1,"pb-1"],[1,"account-top-nav","d-flex","justify-content-between","align-items-baseline","mb-4"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active"],["type","button","class","btn btn-outline-secondary mr-2",3,"click",4,"ngIf"],["type","button","class","btn btn-danger btn-danger-icon mr-2",3,"click",4,"ngIf"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["ngbNav","",1,"navbar-expand-sm","p-0","mb-3"],["accountNav","ngbNav"],[4,"ngFor","ngForOf"],["ngbNavItem","storage"],["ngbNavLink","",3,"routerLink","queryParams"],["type","button",1,"btn","btn-outline-secondary","mr-2",3,"click"],["src","/static/svg/export.svg","alt","","width","13","height","13",1,"mr-2"],["src","/static/svg/ban.svg","alt","","width","13","height","13",1,"mr-2"],[4,"ngIf"],["type","button",1,"btn","btn-danger","btn-danger-icon","mr-2",3,"click"],["src","/static/svg/bin-red.svg","alt","","width","14","height","",1,"mr-2"],["src","/static/svg/bin-recorded.svg","alt","","width","15","height","",1,"mr-2"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"ngbNavItem"],["ngbNavLink","","routerLinkActive","account-link-active",3,"routerLink"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"User Account"),x(),b(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4)(6,"a",5),I(7,"Account"),x()(),b(8,"li",6),I(9),x()()(),b(10,"div"),J(11,Uot,3,0,"button",7),J(12,qot,4,2,"button",7),J(13,Xot,3,0,"button",8),J(14,Yot,3,0,"button",8),x()(),J(15,Jot,4,2,"ngb-alert",9),b(16,"nav",10,11),J(18,Qot,4,6,"div",12),b(19,"div"),ta(20,13),b(21,"a",14),I(22," Storage "),x(),na(),x()(),ge(23,"router-outlet")),2&e&&(w(6),k("routerLink",wl(10,Zot)),w(3),Dt(i.account.user.id),w(2),k("ngIf",i.exportAllowed()),w(1),k("ngIf",i.banAllowed()),w(1),k("ngIf",i.deleteAllowed()),w(1),k("ngIf",i.deleteAllowed()),w(1),k("ngIf",i.error),w(3),k("ngForOf",i.views),w(3),k("routerLink",wl(11,est))("queryParams",lr(12,tst,i.account.user.id)))},dependencies:[Jp,Nu,hy,jn,gn,To,am,sm,fv],styles:[".nav-link[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#000;opacity:.5;padding:0 0 1.6em;margin-right:3em;margin-bottom:-2px;font-weight:600}.nav-link[_ngcontent-%COMP%]:hover{opacity:1}.nav-link.account-link-active[_ngcontent-%COMP%]{opacity:1;border-bottom:solid 2px #7668ED}.navbar-expand-sm[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9}.account-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})),t})(),ist=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.paramMap.get("id");return this.consoleService.getAccount("",r)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();const rst=["editor"];function ost(t,n){if(1&t&&(b(0,"ngb-alert",29),ge(1,"img",30),b(2,"h6",31),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function sst(t,n){1&t&&(b(0,"ngb-alert",32),ge(1,"img",33),b(2,"h6",31),I(3,"Account was modified successfully."),x()()),2&t&&k("dismissible",!1)}function ast(t,n){1&t&&(b(0,"button",34),I(1,"Save"),x()),2&t&&k("disabled",j().updating)}const lst=function(t){return{"is-invalid":t}};let cst=(()=>{class t{constructor(e,i,r,o,s){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"formBuilder",void 0),K(this,"editor",void 0),K(this,"jsonEditor",void 0),K(this,"error",""),K(this,"account",void 0),K(this,"accountForm",void 0),K(this,"updating",!1),K(this,"updated",!1),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.accountForm=this.formBuilder.group({username:["",Do.required],display_name:[""],avatar_url:[""],location:[""],timezone:[""]}),this.route.parent.data.subscribe(e=>{this.account=e[0].account,this.f.username.setValue(this.account.user.username),this.f.display_name.setValue(this.account.user.display_name),this.f.avatar_url.setValue(this.account.user.avatar_url),this.f.location.setValue(this.account.user.location),this.f.timezone.setValue(this.account.user.timezone),this.updateAllowed()||this.accountForm.disable()},e=>{this.error=e})}ngAfterViewInit(){this.jsonEditor=new Zm({target:this.editor.nativeElement,props:{mode:Jo.text,readOnly:!this.updateAllowed(),content:{text:this.account.user.metadata}}})}updateAccount(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=Zv(this.jsonEditor.get()).text}catch(r){return this.error=r,void(this.updating=!1)}this.consoleService.updateAccount("",this.account.user.id,{username:this.f.username.value,display_name:this.f.display_name.value,avatar_url:this.f.avatar_url.value,location:this.f.location.value,timezone:this.f.timezone.value,metadata:e}).subscribe(r=>{this.updated=!0,this.updating=!1},r=>{this.error=r,this.updating=!1})}updateAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}get f(){return this.accountForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&io(rst,5),2&e){let r;cn(r=un())&&(i.editor=r.first)}},decls:53,vars:11,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","user_id",1,"d-inline"],["type","text","id","user_id","placeholder","User ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","username",1,"d-inline"],["type","text","id","username","placeholder","Username","required","","formControlName","username",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","display_name",1,"d-inline"],["type","text","id","display_name","placeholder","Display Name","formControlName","display_name",1,"form-control","form-control-sm","my-2"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","avatar_url",1,"d-inline"],["type","text","id","avatar_url","placeholder","Avatar URL","formControlName","avatar_url",1,"form-control","form-control-sm","my-2"],["for","location",1,"d-inline"],["type","text","id","location","placeholder","Location","formControlName","location",1,"form-control","form-control-sm","my-2"],["for","timezone",1,"d-inline"],["type","text","id","timezone","placeholder","Timezone","formControlName","timezone",1,"form-control","form-control-sm","my-2"],[1,"row","mb-3","add-border-single-row-bottom"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","update_time",1,"d-inline"],["type","text","id","update_time","placeholder","Update Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(e,i){1&e&&(J(0,ost,4,2,"ngb-alert",0),J(1,sst,4,1,"ngb-alert",1),b(2,"form",2),ye("ngSubmit",function(){return i.updateAccount()}),b(3,"div",3)(4,"div",4)(5,"div",5)(6,"label",6),I(7,"User ID"),x()(),ge(8,"input",7),x(),b(9,"div",4)(10,"div",5)(11,"label",8),I(12,"Username"),x()(),ge(13,"input",9),b(14,"div",10),I(15,"Username is required"),x()()(),b(16,"div",3)(17,"div",4)(18,"div",5)(19,"label",11),I(20,"Display Name"),x()(),ge(21,"input",12),x(),b(22,"div",13)(23,"div",5)(24,"label",14),I(25,"Avatar URL"),x()(),ge(26,"input",15),x()(),b(27,"div",3)(28,"div",4)(29,"div",5)(30,"label",16),I(31,"Location"),x()(),ge(32,"input",17),x(),b(33,"div",13)(34,"div",5)(35,"label",18),I(36,"Timezone"),x()(),ge(37,"input",19),x()(),b(38,"div",20)(39,"div",4)(40,"div",5)(41,"label",21),I(42,"Create Time"),x()(),ge(43,"input",22),x(),b(44,"div",4)(45,"div",5)(46,"label",23),I(47,"Update Time"),x()(),ge(48,"input",24),x()(),b(49,"div",25),ge(50,"div",26,27),x(),J(52,ast,2,1,"button",28),x()),2&e&&(k("ngIf",i.error),w(1),k("ngIf",i.updated),w(1),k("formGroup",i.accountForm),w(6),k("value",i.account.user.id),w(5),k("ngClass",lr(9,lst,i.f.username.dirty&&i.f.username.errors)),w(1),k("hidden",i.f.username.disabled||i.f.username.valid||i.f.username.pristine),w(29),k("value",i.account.user.create_time),w(5),k("value",i.account.user.update_time),w(4),k("ngIf",i.updateAllowed()))},dependencies:[Rh,gn,To,sl,Fa,rl,ol,Nf,fa,ja]})),t})();function ust(t,n){if(1&t&&(b(0,"ngb-alert",36),ge(1,"img",37),b(2,"h6",38),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function dst(t,n){1&t&&(b(0,"ngb-alert",39),ge(1,"img",40),b(2,"h6",38),I(3,"Account was modified successfully."),x()()),2&t&&k("dismissible",!1)}function hst(t,n){if(1&t&&(b(0,"option",41),I(1),x()),2&t){const e=n.$implicit,i=n.index;Fh("value",i),k("selected",0===i),w(1),Dt(e.id)}}function fst(t,n){1&t&&(b(0,"button",42),I(1,"Save"),x()),2&t&&k("disabled",j().updating)}let pst=(()=>{class t{constructor(e,i,r,o,s){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"formBuilder",void 0),K(this,"error",""),K(this,"account",void 0),K(this,"accountForm",void 0),K(this,"updating",!1),K(this,"updated",!1),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.accountForm=this.formBuilder.group({email:[""],password:[""],selected_device_id_index:[""]}),this.route.parent.data.subscribe(e=>{this.account=e[0].account,this.f.email.setValue(this.account.email),this.f.password.setValue(""),this.f.selected_device_id_index.setValue(0),0===this.account.devices.length&&this.f.selected_device_id_index.disable(),this.updateAllowed()||this.accountForm.disable()},e=>{this.error=e})}updateAccount(){this.error="",this.updated=!1,this.updating=!0;let e={email:this.f.email.value};this.f.password.dirty&&(e.password=this.f.password.value),this.consoleService.updateAccount("",this.account.user.id,e).subscribe(i=>{this.updated=!0,this.updating=!1,this.f.password.reset()},i=>{this.error=i,this.updating=!1})}unlinkDeviceId(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkDevice("",this.account.user.id,{device_id:this.account.devices[this.f.selected_device_id_index.value].id}).subscribe(()=>{this.error="",this.account.devices.splice(this.f.selected_device_id_index.value,1),this.f.selected_device_id_index.setValue(0)},r=>{this.error=r})}unlinkCustomID(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkCustom("",this.account.user.id).subscribe(()=>{this.error="",this.account.custom_id=null},i=>{this.error=i})}unlinkFacebook(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkFacebook("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.facebook_id=null},i=>{this.error=i})}unlinkFacebookInstantGames(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkFacebookInstantGame("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.facebook_instant_game_id=null},i=>{this.error=i})}unlinkApple(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkApple("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.apple_id=null},i=>{this.error=i})}unlinkGameCenter(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkGameCenter("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.gamecenter_id=null},i=>{this.error=i})}unlinkGoogle(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkGoogle("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.google_id=null},i=>{this.error=i})}unlinkSteam(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkSteam("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.steam_id=null},i=>{this.error=i})}updateAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}copyDeviceIdToClipboard(e){const i=document.createElement("textarea");i.style.position="fixed",i.style.left="0",i.style.top="0",i.style.opacity="0",i.value=this.account.devices[e].id,document.body.appendChild(i),i.focus(),i.select(),document.execCommand("copy"),document.body.removeChild(i)}get f(){return this.accountForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:102,vars:21,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","selected_device_id_index",1,"d-inline"],[1,"input-group"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["src","/static/svg/copy.svg","alt","","width","16","height","",1,""],["id","selected_device_id_index","formControlName","selected_device_id_index",1,"form-control","custom-select","custom-select-sm"],[3,"value","selected",4,"ngFor","ngForOf"],[1,"input-group-append"],["type","button",1,"btn","btn-sm","btn-outline-danger",3,"disabled","click"],["for","custom_id",1,"d-inline"],["type","text","id","custom_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","facebook_id",1,"d-inline"],["type","text","id","facebook_id","disabled","",1,"form-control","form-control-sm",3,"value"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","facebook_instant_game_id",1,"d-inline"],["type","text","id","facebook_instant_game_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","apple_id",1,"d-inline"],["type","text","id","apple_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","gamecenter_id",1,"d-inline"],["type","text","id","gamecenter_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","google_id",1,"d-inline"],["type","text","id","google_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","steam_id",1,"d-inline"],["type","text","id","steam_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","email",1,"d-inline"],["type","text","id","email","placeholder","Email","formControlName","email",1,"form-control","form-control-sm"],["for","password",1,"d-inline"],["type","text","id","password","placeholder","Password","formControlName","password",1,"form-control","form-control-sm"],[1,"row","remove-sides"],[1,"small"],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],[3,"value","selected"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(e,i){1&e&&(J(0,ust,4,2,"ngb-alert",0),J(1,dst,4,1,"ngb-alert",1),b(2,"form",2),ye("ngSubmit",function(){return i.updateAccount()}),b(3,"div",3)(4,"div",4)(5,"div",5)(6,"label",6),I(7,"Device IDs"),x()(),b(8,"div",7)(9,"button",8),ye("click",function(){return i.copyDeviceIdToClipboard(i.f.selected_device_id_index.value)}),ge(10,"img",9),I(11," Copy "),x(),b(12,"select",10),J(13,hst,2,3,"option",11),x(),b(14,"div",12)(15,"button",13),ye("click",function(o){return i.unlinkDeviceId(o)}),I(16,"Unlink"),x()()()(),b(17,"div",4)(18,"div",5)(19,"label",14),I(20,"Custom ID"),x()(),b(21,"div",7),ge(22,"input",15),b(23,"div",12)(24,"button",13),ye("click",function(o){return i.unlinkCustomID(o)}),I(25,"Unlink"),x()()()()(),b(26,"div",3)(27,"div",4)(28,"div",5)(29,"label",16),I(30,"Facebook ID"),x()(),b(31,"div",7),ge(32,"input",17),b(33,"div",12)(34,"button",13),ye("click",function(o){return i.unlinkFacebook(o)}),I(35,"Unlink"),x()()()(),b(36,"div",18)(37,"div",5)(38,"label",19),I(39,"FB Instant Game ID"),x()(),b(40,"div",7),ge(41,"input",20),b(42,"div",12)(43,"button",13),ye("click",function(o){return i.unlinkFacebookInstantGames(o)}),I(44,"Unlink"),x()()()()(),b(45,"div",3)(46,"div",4)(47,"div",5)(48,"label",21),I(49,"Apple ID"),x()(),b(50,"div",7),ge(51,"input",22),b(52,"div",12)(53,"button",13),ye("click",function(o){return i.unlinkApple(o)}),I(54,"Unlink"),x()()()(),b(55,"div",18)(56,"div",5)(57,"label",23),I(58,"GameCenter ID"),x()(),b(59,"div",7),ge(60,"input",24),b(61,"div",12)(62,"button",13),ye("click",function(o){return i.unlinkGameCenter(o)}),I(63,"Unlink"),x()()()()(),b(64,"div",3)(65,"div",4)(66,"div",5)(67,"label",25),I(68,"Google ID"),x()(),b(69,"div",7),ge(70,"input",26),b(71,"div",12)(72,"button",13),ye("click",function(o){return i.unlinkGoogle(o)}),I(73,"Unlink"),x()()()(),b(74,"div",4)(75,"div",5)(76,"label",27),I(77,"Steam ID"),x()(),b(78,"div",7),ge(79,"input",28),b(80,"div",12)(81,"button",13),ye("click",function(o){return i.unlinkSteam(o)}),I(82,"Unlink"),x()()()()(),b(83,"div",3)(84,"div",4)(85,"div",5)(86,"label",29),I(87,"Email"),x(),ge(88,"br"),x(),ge(89,"input",30),x(),b(90,"div",4)(91,"div",5)(92,"label",31),I(93,"Password"),x()(),ge(94,"input",32),x()(),b(95,"div",33)(96,"div",4),ge(97,"div",5),b(98,"span",34),I(99),x()(),ge(100,"div",4),x(),J(101,fst,2,1,"button",35),x()),2&e&&(k("ngIf",i.error),w(1),k("ngIf",i.updated),w(1),k("formGroup",i.accountForm),w(11),k("ngForOf",i.account.devices),w(2),k("disabled",!i.updateAllowed()||0===i.account.devices.length),w(7),k("value",i.account.custom_id),w(2),k("disabled",!i.updateAllowed()||!i.account.custom_id||""===i.account.custom_id),w(8),k("value",i.account.user.facebook_id),w(2),k("disabled",!i.updateAllowed()||!i.account.user.facebook_id||""===i.account.user.facebook_id),w(7),k("value",i.account.user.facebook_instant_game_id),w(2),k("disabled",!i.updateAllowed()||!i.account.user.facebook_instant_game_id||""===i.account.user.facebook_instant_game_id),w(8),k("value",i.account.user.apple_id),w(2),k("disabled",!i.updateAllowed()||!i.account.user.apple_id||""===i.account.user.apple_id),w(7),k("value",i.account.user.gamecenter_id),w(2),k("disabled",!i.updateAllowed()||!i.account.user.gamecenter_id||""===i.account.user.gamecenter_id),w(8),k("value",i.account.user.google_id),w(2),k("disabled",!i.updateAllowed()||!i.account.user.google_id||""===i.account.user.google_id),w(7),k("value",i.account.user.steam_id),w(2),k("disabled",!i.updateAllowed()||!i.account.user.steam_id||""===i.account.user.steam_id),w(18),xn("Verification Status: ",null===i.account.verify_time?"Not Verified":"Verified",""),w(2),k("ngIf",i.updateAllowed()))},dependencies:[jn,gn,To,sl,xy,wy,Fa,ov,rl,ol,fa,ja],styles:[".custom-select[_ngcontent-%COMP%]{height:auto}"]})),t})();const mst=["editor"];function gst(t,n){if(1&t&&(b(0,"ngb-alert",24),ge(1,"img",25),b(2,"h6",26),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function vst(t,n){1&t&&(b(0,"ngb-alert",27),ge(1,"img",28),b(2,"h6",26),I(3,"Account was modified successfully."),x()()),2&t&&k("dismissible",!1)}function yst(t,n){if(1&t){const e=vt();b(0,"button",29),ye("click",function(){return $e(e),Be(j().updateWallet())}),I(1,"Save"),x()}2&t&&k("disabled",j().updating)}function bst(t,n){1&t&&(b(0,"th",30),I(1,"Remove"),x())}function _st(t,n){1&t&&(b(0,"tr")(1,"td",31),I(2,"No wallet ledger items found."),x()())}function xst(t,n){1&t&&ge(0,"div",37)}function wst(t,n){1&t&&ge(0,"div",38)}function Cst(t,n){if(1&t){const e=vt();b(0,"td")(1,"button",39),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteLedgerItem(r,s,a))}),I(2,"Delete"),x()()}}function kst(t,n){if(1&t&&(b(0,"tr")(1,"td",40)(2,"pre",41)(3,"small"),I(4),x()()()()),2&t){const e=j().$implicit;w(4),Dt(e.metadata)}}function Sst(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td")(2,"div",32),ye("click",function(){const o=$e(e).index,s=j();return Be(s.walletLedgerMetadataOpen[o]=!s.walletLedgerMetadataOpen[o])}),J(3,xst,1,0,"div",33),J(4,wst,1,0,"div",34),x(),I(5),x(),b(6,"td",35)(7,"pre",36),I(8),x()(),b(9,"td"),I(10),x(),J(11,Cst,3,0,"td",22),x(),J(12,kst,5,1,"tr",22)}if(2&t){const e=n.index,i=n.$implicit,r=j();w(3),k("ngIf",!r.walletLedgerMetadataOpen[e]),w(1),k("ngIf",r.walletLedgerMetadataOpen[e]),w(1),xn(" ",i.id," "),w(3),Dt(i.changeset),w(2),Dt(i.update_time),w(1),k("ngIf",r.deleteAllowed()),w(1),k("ngIf",r.walletLedgerMetadataOpen[e])}}let Dst=(()=>{class t{constructor(e,i,r,o){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"editor",void 0),K(this,"jsonEditor",void 0),K(this,"error",""),K(this,"account",void 0),K(this,"walletLedger",[]),K(this,"walletLedgerMetadataOpen",[]),K(this,"updating",!1),K(this,"updated",!1),K(this,"nextCursor",""),K(this,"prevCursor",""),K(this,"limit",100),K(this,"userID",void 0),this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.userID=this.route.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(e=>{this.walletLedger.length=0,this.walletLedger.push(...e[0].items),this.walletLedgerMetadataOpen.length=this.walletLedger.length,this.nextCursor=e[0].next_cursor,this.prevCursor=e[0].prev_cursor},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}loadData(e){this.consoleService.getWalletLedger("",this.userID,this.limit,e).subscribe(i=>{this.walletLedger=i.items,this.walletLedgerMetadataOpen=[],this.nextCursor=i.next_cursor,this.prevCursor=i.prev_cursor},i=>{this.error=i})}ngAfterViewInit(){this.jsonEditor=new Zm({target:this.editor.nativeElement,props:{mode:Jo.text,readOnly:!this.updateAllowed(),content:{text:this.account.wallet}}})}updateWallet(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=Zv(this.jsonEditor.get()).text}catch(r){return this.error=r,void(this.updating=!1)}this.consoleService.updateAccount("",this.account.user.id,{wallet:e}).subscribe(r=>{this.updated=!0,this.updating=!1},r=>{this.error=r,this.updating=!1})}updateAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}deleteLedgerItem(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteWalletLedger("",this.account.user.id,r.id).subscribe(()=>{this.error="",this.walletLedger.splice(i,1),this.walletLedgerMetadataOpen.splice(i,1)},o=>{this.error=o})}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&io(mst,5),2&e){let r;cn(r=un())&&(i.editor=r.first)}},decls:32,vars:9,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","button","class","btn btn-primary",3,"disabled","click",4,"ngIf"],[1,"my-4"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered"],[1,"thead-light"],[2,"width","315px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],["ngFor","",3,"ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","button",1,"btn","btn-primary",3,"disabled","click"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],[1,"align-middle"],[1,"m-0","p-0"],[1,"arrow-right"],[1,"arrow-down"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],["colspan","5",1,"align-middle"],[1,"pre-wrap","m-0","p-0"]],template:function(e,i){1&e&&(J(0,gst,4,2,"ngb-alert",0),J(1,vst,4,1,"ngb-alert",1),b(2,"div",2),ge(3,"div",3,4),x(),J(5,yst,2,1,"button",5),ge(6,"hr",6),b(7,"div",7)(8,"div",8),ge(9,"div",9),b(10,"div",10)(11,"div",11)(12,"button",12),ye("click",function(){return i.loadData("")}),ge(13,"img",13),x(),b(14,"button",12),ye("click",function(){return i.loadData(i.prevCursor)}),ge(15,"img",14),x(),b(16,"button",12),ye("click",function(){return i.loadData(i.nextCursor)}),ge(17,"img",15),x()()()()(),b(18,"div",16)(19,"table",17)(20,"thead",18)(21,"tr")(22,"th",19),I(23,"ID"),x(),b(24,"th"),I(25,"Changeset"),x(),b(26,"th",20),I(27,"Update Time"),x(),J(28,bst,2,0,"th",21),x()(),b(29,"tbody"),J(30,_st,3,0,"tr",22),J(31,Sst,13,7,"ng-template",23),x()()()),2&e&&(k("ngIf",i.error),w(1),k("ngIf",i.updated),w(4),k("ngIf",i.updateAllowed()),w(7),k("disabled",0===i.walletLedger.length),w(2),k("disabled",""===i.prevCursor),w(2),k("disabled",""===i.nextCursor),w(12),k("ngIf",i.deleteAllowed()),w(2),k("ngIf",0===i.walletLedger.length),w(1),k("ngForOf",i.walletLedger))},dependencies:[jn,gn,To],styles:[".pre-wrap[_ngcontent-%COMP%]{word-wrap:anywhere;word-break:break-all;white-space:pre-wrap}"]})),t})(),Tst=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getWalletLedger("",r,100,"")}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Est(t,n){if(1&t&&(b(0,"ngb-alert",10),ge(1,"img",11),b(2,"h6",12),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function Ast(t,n){1&t&&(b(0,"th",13),I(1,"Remove"),x())}function Mst(t,n){1&t&&(b(0,"tr")(1,"td",14),I(2,"No friends found."),x()())}function Ist(t,n){1&t&&(b(0,"span"),I(1,"Friend (0)"),x())}function Nst(t,n){1&t&&(b(0,"span"),I(1,"Invite Sent (1)"),x())}function Fst(t,n){1&t&&(b(0,"span"),I(1,"Invite Received (2)"),x())}function Ost(t,n){1&t&&(b(0,"span"),I(1,"Blocked (3)"),x())}function jst(t,n){if(1&t){const e=vt();b(0,"td",16)(1,"button",17),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteFriend(r,s,a))}),I(2,"Delete"),x()()}}function Pst(t,n){if(1&t&&(b(0,"tr")(1,"td"),I(2),x(),b(3,"td"),I(4),x(),b(5,"td"),J(6,Ist,2,0,"span",8),J(7,Nst,2,0,"span",8),J(8,Fst,2,0,"span",8),J(9,Ost,2,0,"span",8),x(),b(10,"td"),I(11),x(),J(12,jst,3,0,"td",15),x()),2&t){const e=n.$implicit,i=j();w(2),Dt(e.user.id),w(2),Dt(e.user.username),w(2),k("ngIf",0===e.state),w(1),k("ngIf",1===e.state),w(1),k("ngIf",2===e.state),w(1),k("ngIf",3===e.state),w(2),Dt(e.update_time),w(1),k("ngIf",i.deleteAllowed())}}let Lst=(()=>{class t{constructor(e,i,r,o){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"error",""),K(this,"account",void 0),K(this,"friends",[]),this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.friends.length=0,this.friends.push(...e[0].friends)},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}deleteFriend(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteFriend("",this.account.user.id,r.user.id).subscribe(()=>{this.error="",this.friends.splice(i,1)},o=>{this.error=o})}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:17,vars:4,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","300px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(e,i){1&e&&(J(0,Est,4,2,"ngb-alert",0),b(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr")(5,"th",4),I(6,"User ID"),x(),b(7,"th"),I(8,"Username"),x(),b(9,"th",5),I(10,"State"),x(),b(11,"th",6),I(12,"Update Time"),x(),J(13,Ast,2,0,"th",7),x()(),b(14,"tbody"),J(15,Mst,3,0,"tr",8),J(16,Pst,13,8,"tr",9),x()()()),2&e&&(k("ngIf",i.error),w(13),k("ngIf",i.deleteAllowed()),w(2),k("ngIf",0===i.friends.length),w(1),k("ngForOf",i.friends))},dependencies:[jn,gn,To],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})),t})(),Rst=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getFriends("",r)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function $st(t,n){if(1&t&&(b(0,"ngb-alert",10),ge(1,"img",11),b(2,"h6",12),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function Bst(t,n){1&t&&(b(0,"th",13),I(1,"Remove"),x())}function Vst(t,n){1&t&&(b(0,"tr")(1,"td",14),I(2,"No group membership found."),x()())}function Hst(t,n){1&t&&(b(0,"span"),I(1,"Superadmin (0)"),x())}function zst(t,n){1&t&&(b(0,"span"),I(1,"Admin (1)"),x())}function Ust(t,n){1&t&&(b(0,"span"),I(1,"Member (2)"),x())}function Gst(t,n){1&t&&(b(0,"span"),I(1,"Join Request (3)"),x())}function Wst(t,n){1&t&&(b(0,"span"),I(1,"Banned (4)"),x())}function qst(t,n){if(1&t){const e=vt();b(0,"td")(1,"button",16),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteGroupUser(r,s,a))}),I(2,"Delete"),x()()}}function Xst(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td",15),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(2),x(),b(3,"td",15),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(4),x(),b(5,"td",15),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),J(6,Hst,2,0,"span",8),J(7,zst,2,0,"span",8),J(8,Ust,2,0,"span",8),J(9,Gst,2,0,"span",8),J(10,Wst,2,0,"span",8),x(),b(11,"td",15),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(12),x(),J(13,qst,3,0,"td",8),x()}if(2&t){const e=n.$implicit,i=j();w(2),Dt(e.group.id),w(2),Dt(e.group.name),w(2),k("ngIf",0===e.state),w(1),k("ngIf",1===e.state),w(1),k("ngIf",2===e.state),w(1),k("ngIf",3===e.state),w(1),k("ngIf",4===e.state),w(2),Dt(e.group.update_time),w(1),k("ngIf",i.deleteAllowed())}}let Yst=(()=>{class t{constructor(e,i,r,o){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"error",""),K(this,"account",void 0),K(this,"groups",[]),this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.groups.length=0,this.groups.push(...e[0].user_groups)},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}deleteGroupUser(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteGroupUser("",this.account.user.id,r.group.id).subscribe(()=>{this.error="",this.groups.splice(i,1)},o=>{this.error=o})}viewAccount(e){this.router.navigate(["/groups",e.group.id],{relativeTo:this.route})}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:17,vars:4,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","300px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(e,i){1&e&&(J(0,$st,4,2,"ngb-alert",0),b(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr")(5,"th",4),I(6,"Group ID"),x(),b(7,"th"),I(8,"Name"),x(),b(9,"th",5),I(10,"State"),x(),b(11,"th",6),I(12,"Update Time"),x(),J(13,Bst,2,0,"th",7),x()(),b(14,"tbody"),J(15,Vst,3,0,"tr",8),J(16,Xst,14,9,"tr",9),x()()()),2&e&&(k("ngIf",i.error),w(13),k("ngIf",i.deleteAllowed()),w(2),k("ngIf",0===i.groups.length),w(1),k("ngForOf",i.groups))},dependencies:[jn,gn,To],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})),t})(),Jst=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getGroups("",r)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();const Kst=["editor"];function Qst(t,n){if(1&t&&(b(0,"ngb-alert",34),ge(1,"img",35),b(2,"h6",36),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function Zst(t,n){1&t&&(b(0,"ngb-alert",37),ge(1,"img",38),b(2,"h6",36),I(3,"Group was modified successfully."),x()()),2&t&&k("dismissible",!1)}function eat(t,n){1&t&&(b(0,"button",39),I(1,"Save"),x()),2&t&&k("disabled",j().updating)}const tat=function(t){return["/accounts",t]},nat=function(t){return{"is-invalid":t}};let iat=(()=>{class t{constructor(e,i,r,o,s){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"formBuilder",void 0),K(this,"editor",void 0),K(this,"jsonEditor",void 0),K(this,"error",""),K(this,"group",void 0),K(this,"groupForm",void 0),K(this,"updating",!1),K(this,"updated",!1),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.groupForm=this.formBuilder.group({name:["",Do.required],description:[""],avatar_url:[""],lang_tag:[""],open:[""],max_count:[""]}),this.route.parent.data.subscribe(e=>{this.group=e[0],this.f.name.setValue(this.group.name),this.f.description.setValue(this.group.description),this.f.avatar_url.setValue(this.group.avatar_url),this.f.lang_tag.setValue(this.group.lang_tag),this.f.open.setValue(this.group.open),this.f.max_count.setValue(this.group.max_count),this.updateAllowed()||this.groupForm.disable()},e=>{this.error=e})}ngAfterViewInit(){this.jsonEditor=new Zm({target:this.editor.nativeElement,props:{mode:Jo.text,readOnly:!this.updateAllowed(),content:{text:this.group.metadata}}})}updateGroup(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=Zv(this.jsonEditor.get()).text}catch(r){return this.error=r,void(this.updating=!1)}if(this.f.max_count.value{this.updated=!0,this.updating=!1},r=>{this.error=r,this.updating=!1})}updateAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}get f(){return this.groupForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&io(Kst,5),2&e){let r;cn(r=un())&&(i.editor=r.first)}},decls:71,vars:16,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","group_id",1,"d-inline"],["type","text","id","group_id","placeholder","Group ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","creator_id",1,"d-inline"],[2,"width","100%",3,"routerLink"],["type","text","id","creator_id","placeholder","Creator ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","name",1,"d-inline"],["type","text","id","name","placeholder","Name","required","","formControlName","name",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","description",1,"d-inline"],["type","text","id","description","placeholder","Description","formControlName","description",1,"form-control","form-control-sm","my-2"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","avatar_url",1,"d-inline"],["type","text","id","avatar_url","placeholder","Avatar URL","formControlName","avatar_url",1,"form-control","form-control-sm","my-2"],["for","lang_tag",1,"d-inline"],["type","text","id","lang_tag","placeholder","Language","formControlName","lang_tag",1,"form-control","form-control-sm","my-2"],["type","text","id","edge_count","placeholder","Members","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","max_count",1,"d-inline"],["type","text","id","max_count","placeholder","Max Count","formControlName","max_count",1,"form-control","form-control-sm","my-2"],["type","checkbox","id","open","formControlName","open",1,"my-2"],[1,"row","mb-3","add-border-single-row-bottom"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","update_time",1,"d-inline"],["type","text","id","update_time","placeholder","Update Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(e,i){1&e&&(J(0,Qst,4,2,"ngb-alert",0),J(1,Zst,4,1,"ngb-alert",1),b(2,"form",2),ye("ngSubmit",function(){return i.updateGroup()}),b(3,"div",3)(4,"div",4)(5,"div",5)(6,"label",6),I(7,"Group ID"),x()(),ge(8,"input",7),x(),b(9,"div",4)(10,"div",5)(11,"label",8),I(12,"Creator ID"),x()(),b(13,"a",9),ge(14,"input",10),x()()(),b(15,"div",3)(16,"div",4)(17,"div",5)(18,"label",11),I(19,"Name"),x()(),ge(20,"input",12),b(21,"div",13),I(22,"Name is required"),x()(),b(23,"div",4)(24,"div",5)(25,"label",14),I(26,"Description"),x()(),ge(27,"input",15),x()(),b(28,"div",3)(29,"div",16)(30,"div",5)(31,"label",17),I(32,"Avatar URL"),x()(),ge(33,"input",18),x(),b(34,"div",4)(35,"div",5)(36,"label",19),I(37,"Language"),x()(),ge(38,"input",20),x()(),b(39,"div",3)(40,"div",4)(41,"div",5)(42,"label",8),I(43,"Members"),x()(),ge(44,"input",21),x(),b(45,"div",16)(46,"div",5)(47,"label",22),I(48,"Max Count"),x()(),ge(49,"input",23),x()(),b(50,"div",3)(51,"div",16)(52,"div",5)(53,"label",22),I(54,"Open"),x()(),ge(55,"input",24),x()(),b(56,"div",25)(57,"div",4)(58,"div",5)(59,"label",26),I(60,"Create Time"),x()(),ge(61,"input",27),x(),b(62,"div",4)(63,"div",5)(64,"label",28),I(65,"Update Time"),x()(),ge(66,"input",29),x()(),b(67,"div",30),ge(68,"div",31,32),x(),J(70,eat,2,1,"button",33),x()),2&e&&(k("ngIf",i.error),w(1),k("ngIf",i.updated),w(1),k("formGroup",i.groupForm),w(6),k("value",i.group.id),w(5),k("routerLink",lr(12,tat,i.group.creator_id)),w(1),k("value",i.group.creator_id),w(6),k("ngClass",lr(14,nat,i.f.name.dirty&&i.f.name.errors)),w(1),k("hidden",i.f.name.disabled||i.f.name.valid||i.f.name.pristine),w(23),k("value",i.group.edge_count),w(17),k("value",i.group.create_time),w(5),k("value",i.group.update_time),w(4),k("ngIf",i.updateAllowed()))},dependencies:[Nu,Rh,gn,To,sl,Fa,aC,rl,ol,Nf,fa,ja]})),t})();function rat(t,n){if(1&t&&(b(0,"ngb-alert",13),ge(1,"img",14),b(2,"h6",15),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function oat(t,n){1&t&&(b(0,"span"),I(1,"Add by membership state"),x())}function sat(t,n){if(1&t&&(b(0,"span"),I(1),x()),2&t){const e=j(2);w(1),Dt(e.activeState)}}function aat(t,n){if(1&t){const e=vt();b(0,"button",20),ye("click",function(){const o=$e(e).$implicit;return Be(j(2).activeState=o)}),I(1),x()}if(2&t){const e=n.$implicit;w(1),Dt(e)}}function lat(t,n){if(1&t&&(b(0,"div",16)(1,"button",17),J(2,oat,2,0,"span",11),J(3,sat,2,1,"span",11),x(),b(4,"div",18),J(5,aat,2,1,"button",19),x()()),2&t){const e=j();w(2),k("ngIf",!e.activeState||""===e.activeState),w(1),k("ngIf",e.activeState&&""!==e.activeState),w(2),k("ngForOf",e.states)}}function cat(t,n){if(1&t){const e=vt();b(0,"div",21)(1,"div",22)(2,"div",23)(3,"form",24)(4,"div",25),ge(5,"input",26),b(6,"div",27)(7,"div",28)(8,"button",29),ye("click",function(){return $e(e),Be(j().add())}),I(9,"Add"),x()()()()()()()()}if(2&t){const e=j();w(3),k("formGroup",e.addForm)}}function uat(t,n){1&t&&(b(0,"th",30),I(1,"Demote"),x())}function dat(t,n){1&t&&(b(0,"th",30),I(1,"Promote"),x())}function hat(t,n){1&t&&(b(0,"th",31),I(1,"Remove"),x())}function fat(t,n){1&t&&(b(0,"tr")(1,"td",32),I(2,"No group membership found."),x()())}function pat(t,n){1&t&&(b(0,"span"),I(1,"Superadmin (0)"),x())}function mat(t,n){1&t&&(b(0,"span"),I(1,"Admin (1)"),x())}function gat(t,n){1&t&&(b(0,"span"),I(1,"Member (2)"),x())}function vat(t,n){1&t&&(b(0,"span"),I(1,"Join Request (3)"),x())}function yat(t,n){1&t&&(b(0,"span"),I(1,"Banned (4)"),x())}function bat(t,n){if(1&t){const e=vt();b(0,"td",36)(1,"button",37),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().demoteGroupUser(r,s,a))}),at(),b(2,"svg",38),ge(3,"path",39),x()()()}}function _at(t,n){if(1&t){const e=vt();b(0,"td",36)(1,"button",37),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().promoteGroupUser(r,s,a))}),at(),b(2,"svg",40),ge(3,"path",41),x()()()}}function xat(t,n){if(1&t){const e=vt();b(0,"td",42)(1,"button",43),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteGroupUser(r,s,a))}),I(2,"Delete"),x()()}}function wat(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td",33),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(2),x(),b(3,"td",33),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(4),x(),b(5,"td",33),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),J(6,pat,2,0,"span",11),J(7,mat,2,0,"span",11),J(8,gat,2,0,"span",11),J(9,vat,2,0,"span",11),J(10,yat,2,0,"span",11),x(),b(11,"td",33),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(12),x(),J(13,bat,4,0,"td",34),J(14,_at,4,0,"td",34),J(15,xat,3,0,"td",35),x()}if(2&t){const e=n.$implicit,i=j();w(2),Dt(e.user.id),w(2),Dt(e.user.username),w(2),k("ngIf",0===e.state),w(1),k("ngIf",1===e.state),w(1),k("ngIf",2===e.state),w(1),k("ngIf",3===e.state),w(1),k("ngIf",4===e.state),w(2),Dt(e.user.update_time),w(1),k("ngIf",i.editionAllowed()),w(1),k("ngIf",i.editionAllowed()),w(1),k("ngIf",i.editionAllowed())}}let Cat=(()=>{class t{constructor(e,i,r,o,s){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"formBuilder",void 0),K(this,"authService",void 0),K(this,"error",""),K(this,"group",void 0),K(this,"members",[]),K(this,"activeState","Add Member"),K(this,"states",["Add Member","Join"]),K(this,"addForm",void 0),this.route=e,this.router=i,this.consoleService=r,this.formBuilder=o,this.authService=s,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.addForm=this.formBuilder.group({ids:[""]})}ngOnInit(){this.route.data.subscribe(e=>{this.members.length=0,this.members.push(...e[0].group_users)},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.group=e[0]},e=>{this.error=e})}editionAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}deleteGroupUser(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteGroupUser("",r.user.id,this.group.id).subscribe(()=>{this.members.splice(i,1)},o=>{this.error=o})}demoteGroupUser(e,i,r){this.error="",this.consoleService.demoteGroupMember("",this.group.id,r.user.id).subscribe(()=>{this.members[i].state++},o=>{this.error=o})}promoteGroupUser(e,i,r){this.error="",this.consoleService.promoteGroupMember("",this.group.id,r.user.id).subscribe(()=>{this.members[i].state--},o=>{this.error=o})}viewAccount(e){this.router.navigate(["/accounts",e.user.id],{relativeTo:this.route})}add(){this.consoleService.addGroupUsers("",this.group.id,{ids:this.f.ids.value,join_request:"Join"===this.activeState}).subscribe(()=>{this.error="",this.router.navigate([this.router.url])},i=>{this.error=i})}get f(){return this.addForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Tl),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:21,vars:8,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["class","btn-group mb-1","ngbDropdown","",4,"ngIf"],["class","row no-gutters mb-4",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","300px"],[2,"width","180px"],["style","width: 70px",4,"ngIf"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["ngbDropdown","",1,"btn-group","mb-1"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],["type","button","ngbDropdownItem","",3,"click"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup"],[1,"input-group"],["id","ids","type","text","formControlName","ids","placeholder","Add user IDs as members, comma-separated",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","submit",1,"btn","btn-primary","dropdown-radius-left",3,"click"],[2,"width","70px"],[2,"width","90px"],["colSpan","7",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],["class","text-center align-middle",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-outline-secondary",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-arrow-down"],["fill-rule","evenodd","d","M8 1a.5.5 0 0 1 .5.5v11.793l3.146-3.147a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L7.5 13.293V1.5A.5.5 0 0 1 8 1z"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-arrow-up"],["fill-rule","evenodd","d","M8 15a.5.5 0 0 0 .5-.5V2.707l3.146 3.147a.5.5 0 0 0 .708-.708l-4-4a.5.5 0 0 0-.708 0l-4 4a.5.5 0 1 0 .708.708L7.5 2.707V14.5a.5.5 0 0 0 .5.5z"],[1,"text-center","align-middle"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(e,i){1&e&&(J(0,rat,4,2,"ngb-alert",0),J(1,lat,6,3,"div",1),J(2,cat,10,1,"div",2),b(3,"div",3)(4,"table",4)(5,"thead",5)(6,"tr")(7,"th",6),I(8,"User ID"),x(),b(9,"th"),I(10,"Name"),x(),b(11,"th",7),I(12,"State"),x(),b(13,"th",8),I(14,"Update Time"),x(),J(15,uat,2,0,"th",9),J(16,dat,2,0,"th",9),J(17,hat,2,0,"th",10),x()(),b(18,"tbody"),J(19,fat,3,0,"tr",11),J(20,wat,16,11,"tr",12),x()()()),2&e&&(k("ngIf",i.error),w(1),k("ngIf",!i.group.open&&i.editionAllowed()),w(1),k("ngIf",i.editionAllowed()),w(13),k("ngIf",i.editionAllowed()),w(1),k("ngIf",i.editionAllowed()),w(1),k("ngIf",i.editionAllowed()),w(2),k("ngIf",0===i.members.length),w(1),k("ngForOf",i.members))},dependencies:[jn,gn,To,Pu,rm,Pf,jf,sl,Fa,rl,ol,fa,ja],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}.dropdown-radius-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}"]})),t})(),kat=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getMembers("",r)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Sat(t,n){if(1&t&&(b(0,"ngb-alert",28),ge(1,"img",29),b(2,"h6",30),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function Dat(t,n){if(1&t&&(b(0,"span"),I(1),x()),2&t){const e=j();w(1),Dt(e.activeType)}}function Tat(t,n){if(1&t){const e=vt();b(0,"button",31),ye("click",function(){const o=$e(e).$implicit;return Be(j().activeType=o)}),I(1),x()}if(2&t){const e=n.$implicit;w(1),Dt(e)}}function Eat(t,n){if(1&t&&(b(0,"span"),I(1),x()),2&t){const e=j();w(1),Dt(e.activeNode)}}function Aat(t,n){if(1&t){const e=vt();b(0,"button",31),ye("click",function(){const o=$e(e).$implicit;return Be(j().activeNode=o)}),I(1),x()}if(2&t){const e=n.$implicit;w(1),Dt(e)}}function Mat(t,n){1&t&&(b(0,"tr")(1,"td",32),I(2,"No realtime matches were found."),x()())}function Iat(t,n){1&t&&ge(0,"div",40)}function Nat(t,n){1&t&&ge(0,"div",41)}function Fat(t,n){if(1&t){const e=vt();b(0,"div",37),ye("click",function(){$e(e);const r=j(),o=r.index,s=r.$implicit,a=j();return a.getMatchState(o,s),Be(a.matchStatesOpen[o]=!a.matchStatesOpen[o])}),J(1,Iat,1,0,"div",38),J(2,Nat,1,0,"div",39),x()}if(2&t){const e=j().index,i=j();w(1),k("ngIf",!i.matchStatesOpen[e]),w(1),k("ngIf",i.matchStatesOpen[e])}}function Oat(t,n){1&t&&ge(0,"div",42)}function jat(t,n){1&t&&(b(0,"span"),I(1,"Yes"),x())}function Pat(t,n){1&t&&(b(0,"span"),I(1,"No"),x())}function Lat(t,n){1&t&&ge(0,"img",51)}function Rat(t,n){if(1&t&&(b(0,"div")(1,"small")(2,"b"),I(3,"Current Tick"),x()(),b(4,"pre",47)(5,"small"),I(6),x()(),b(7,"small")(8,"b"),I(9,"Match State"),x()(),b(10,"pre",47)(11,"small"),I(12),x()()()),2&t){const e=j(2).index,i=j();w(6),Dt(i.matchStates[e].tick),w(6),Dt(i.matchStates[e].state)}}function $at(t,n){1&t&&ge(0,"img",51)}function Bat(t,n){if(1&t&&(b(0,"pre",47)(1,"small"),I(2),x()()),2&t){const e=j(2).index,i=j();w(2),Dt(i.getMatchPresencesString(i.matchStates[e].presences))}}function Vat(t,n){if(1&t&&(b(0,"tr",43)(1,"td",44)(2,"div",45)(3,"div",46)(4,"small")(5,"b"),I(6,"Match Label"),x()(),b(7,"pre",47)(8,"small"),I(9),x()()(),b(10,"div",48),J(11,Lat,1,0,"img",49),J(12,Rat,13,2,"div",7),x(),b(13,"div",48)(14,"small")(15,"b"),I(16,"Match Presences"),x()(),J(17,$at,1,0,"img",49),J(18,Bat,3,1,"pre",50),x()()()()),2&t){const e=j(),i=e.$implicit,r=e.index,o=j();w(9),Dt(i.api_match.label),w(2),k("ngIf",!o.matchStates[r]||null===o.matchStates[r]),w(1),k("ngIf",null!==o.matchStates[r]),w(5),k("ngIf",!o.matchStates[r]||null===o.matchStates[r]),w(1),k("ngIf",null!==o.matchStates[r])}}function Hat(t,n){if(1&t&&(b(0,"tr")(1,"td"),J(2,Fat,3,2,"div",33),J(3,Oat,1,0,"div",34),I(4),x(),b(5,"td"),I(6),x(),b(7,"td",35),J(8,jat,2,0,"span",7),J(9,Pat,2,0,"span",7),x(),b(10,"td"),I(11),x(),b(12,"td"),I(13),x(),b(14,"td"),I(15),x()(),J(16,Vat,19,5,"tr",36)),2&t){const e=n.index,i=n.$implicit,r=j();w(2),k("ngIf",i.api_match.authoritative),w(1),k("ngIf",!i.api_match.authoritative),w(1),xn(" ",i.api_match.match_id," "),w(2),Dt(i.api_match.size),w(2),k("ngIf",i.api_match.authoritative),w(1),k("ngIf",!i.api_match.authoritative),w(2),Dt(i.node),w(2),Dt(i.api_match.handler_name),w(2),Dt(i.api_match.authoritative?i.api_match.tick_rate:"-"),w(1),k("ngIf",r.matchStatesOpen[e])}}let zat=(()=>{class t{constructor(e,i,r,o){K(this,"route",void 0),K(this,"router",void 0),K(this,"formBuilder",void 0),K(this,"consoleService",void 0),K(this,"error",""),K(this,"matches",[]),K(this,"matchStates",[]),K(this,"matchStatesOpen",[]),K(this,"updated",!1),K(this,"searchForm1",void 0),K(this,"searchForm2",void 0),K(this,"searchForm3",void 0),K(this,"type",void 0),K(this,"activeType","All"),K(this,"types",["All","Authoritative","Relayed"]),K(this,"activeNode","All Nodes"),K(this,"nodes",["All Nodes"]),this.route=e,this.router=i,this.formBuilder=r,this.consoleService=o,this.searchForm1=this.formBuilder.group({match_id:""}),this.searchForm2=this.formBuilder.group({match_id:""}),this.searchForm3=this.formBuilder.group({query:""})}ngOnInit(){const e=this.route.snapshot.queryParamMap;this.f1.match_id.setValue(e.get("match_id")),this.f2.match_id.setValue(e.get("match_id")),this.f3.query.setValue(e.get("query"));let i=e.get("type");this.type=Number(i);let r=e.get("node");if(this.route.data.subscribe(o=>{console.log(o),o&&(o[0]&&(this.error="",this.matches.length=0,this.matches.push(...o[0].matches),this.matchStates.length=this.matches.length,this.matchStatesOpen.length=this.matches.length),o[1]&&this.nodes.push(...o[1]),o.error&&(this.error=o.error))},o=>{this.error=o}),null===i?(this.type=0,this.activeType=this.types[0]):0==this.type||1==this.type||2==this.type?this.activeType=this.types[this.type]:this.error="Invalid type",null!==r){let o=!1;this.nodes.forEach(s=>{r===s&&(this.activeNode=r,o=!0)}),o||(this.error="Invalid node.")}}search(){const e=this.getType();this.type=e,Xme(this.consoleService,e,0==e?this.f1.match_id.value:this.f2.match_id.value,this.f3.query.value,this.activeNode===this.nodes[0]?"":this.activeNode).subscribe(i=>this.postData(i),i=>{this.error=i})}postData(e){let i;switch(this.error="",this.matches.length=0,this.matches.push(...e.matches),this.matchStates.length=this.matches.length,this.matchStatesOpen.length=this.matches.length,this.type){case 0:i={type:this.type,match_id:this.f1.match_id.value};break;case 1:i={type:this.type,query:this.f3.query.value},this.activeNode!==this.nodes[0]&&(i.node=this.activeNode);break;case 2:i={type:this.type,match_id:this.f2.match_id.value}}this.router.navigate([],{relativeTo:this.route,queryParams:i})}getType(){let e=0;return this.types.forEach((i,r)=>{this.activeType===i&&(e=r)}),e}getMatchState(e,i){this.matchStatesOpen[e]||(this.matchStates[e]=null,this.error="",this.consoleService.getMatchState("",i.api_match.match_id).subscribe(r=>{this.matchStatesOpen[e]=!0,this.matchStates[e]=r},r=>{this.matchStatesOpen[e]=!1,this.matchStates[e]=null,this.error=r}))}getMatchPresencesString(e){return JSON.stringify(e)}get f1(){return this.searchForm1.controls}get f2(){return this.searchForm2.controls}get f3(){return this.searchForm3.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(Tl),le(xi))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:53,vars:16,consts:[[1,"pb-1"],[1,"pb-4"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"input-group","mb-1"],[1,"input-group-prepend"],["ngbDropdown","",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary","dropdown-radius-right"],[4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],[1,"input-group-append"],["type","submit",1,"btn","btn-primary",3,"click"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"hidden","formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","match_id","placeholder","Filter by match ID",1,"form-control"],["type","text","formControlName","query","placeholder","Filter by query or match ID",1,"form-control","border-right-0"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary","dropdown-radius-left"],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered"],[1,"thead-light"],[2,"width","140px"],[2,"width","100px"],[2,"width","130px"],[2,"width","90px"],["ngFor","",3,"ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","button","ngbDropdownItem","",3,"click"],["colSpan","8",1,"text-muted"],["class","arrow",3,"click",4,"ngIf"],["class","d-inline-block mr-3",4,"ngIf"],[1,"text-center"],["class","open-row",4,"ngIf"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"d-inline-block","mr-3"],[1,"open-row"],["colspan","6",1,"align-middle"],[1,"d-flex","p-0"],[1,"p-3","w-33","border"],[1,"pre-wrap","m-0","p-0"],[1,"p-3","w-33","border","border-left-0"],["src","/static/spinner.svg","class","d-block","width","16",4,"ngIf"],["class","pre-wrap m-0 p-0",4,"ngIf"],["src","/static/spinner.svg","width","16",1,"d-block"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"Active Matches"),x(),b(2,"h6",1),I(3),x(),J(4,Sat,4,2,"ngb-alert",2),b(5,"div",3)(6,"div",4)(7,"div",5)(8,"button",6),J(9,Dat,2,1,"span",7),x(),b(10,"div",8),J(11,Tat,2,1,"button",9),x()()(),b(12,"div",10)(13,"button",11),ye("click",function(){return i.search()}),I(14,"Search"),x()()(),b(15,"div",12)(16,"div",13)(17,"div",14)(18,"form",15),ye("ngSubmit",function(){return i.search()}),b(19,"div",16),ge(20,"input",17),x()(),b(21,"form",15),ye("ngSubmit",function(){return i.search()}),b(22,"div",16),ge(23,"input",17),x()(),b(24,"form",15),ye("ngSubmit",function(){return i.search()}),b(25,"div",16),ge(26,"input",18),b(27,"div",10)(28,"div",5)(29,"button",19),J(30,Eat,2,1,"span",7),x(),b(31,"div",8),J(32,Aat,2,1,"button",9),x()()()()()()()(),b(33,"div",20)(34,"table",21)(35,"thead",22)(36,"tr")(37,"th")(38,"span"),I(39,"Match ID"),x()(),b(40,"th",23),I(41,"Presence Count"),x(),b(42,"th",24),I(43,"Authoritative"),x(),b(44,"th",24),I(45,"Node"),x(),b(46,"th",25),I(47,"Handler Name"),x(),b(48,"th",26),I(49,"Tick Rate"),x()()(),b(50,"tbody"),J(51,Mat,3,0,"tr",7),J(52,Hat,17,10,"ng-template",27),x()()()),2&e&&(w(3),xn("",i.matches.length," running matches found."),w(1),k("ngIf",i.error),w(5),k("ngIf",i.activeType&&""!==i.activeType),w(2),k("ngForOf",i.types),w(7),k("hidden","All"!==i.activeType)("formGroup",i.searchForm1),w(3),k("hidden","Relayed"!==i.activeType)("formGroup",i.searchForm2),w(3),k("hidden","Authoritative"!==i.activeType)("formGroup",i.searchForm3),w(6),k("ngIf",i.activeNode&&""!==i.activeNode),w(2),k("ngForOf",i.nodes),w(6),Mn("pl-3",i.matches.length>0),w(13),k("ngIf",0===i.matches.length),w(1),k("ngForOf",i.matches))},dependencies:[jn,gn,To,Pu,rm,Pf,jf,sl,Fa,rl,ol,fa,ja],styles:[".pre-wrap[_ngcontent-%COMP%]{word-wrap:anywhere;word-break:break-all;white-space:pre-wrap}.open-row[_ngcontent-%COMP%]{background:#FAFAFC}.w-33[_ngcontent-%COMP%]{width:33.3333%!important}.dropdown-radius-right[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.dropdown-radius-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}"]})),t})(),Uat=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){let r=Number(e.queryParamMap.get("type"));return Xme(this.consoleService,r,e.queryParamMap.get("match_id"),e.queryParamMap.get("query"),e.queryParamMap.get("node")).pipe(Ul(o=>(e.data={...e.data,error:o},$n(null))))}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Xme(t,n,e,i,r){switch(n){case 0:return t.listMatches("",null,null,null,null,null,e);case 1:return t.listMatches("",null,!0,null,null,null,null,i,r);case 2:return t.listMatches("",null,!1,null,null,null,e)}return $n(null)}let Gat=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.getStatus("").pipe(nt(r=>$n(r.nodes.map(o=>o.name)))).pipe(Ul(r=>(e.data={...e.data,error:r},$n([]))))}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Wat(t,n){if(1&t&&(b(0,"ngb-alert",25),ge(1,"img",26),b(2,"h6",27),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Error when querying groups: ",e.error,"")}}function qat(t,n){1&t&&(b(0,"th",28),I(1,"Remove"),x())}function Xat(t,n){1&t&&(b(0,"tr")(1,"td",29),I(2,"No groups found - change the filter criteria or add new user groups."),x()())}function Yat(t,n){1&t&&ge(0,"td")}function Jat(t,n){if(1&t){const e=vt();b(0,"td",32)(1,"button",33),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteGroup(r,s,a))}),I(2,"Delete"),x()()}}function Kat(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td",30),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewGroup(o))}),I(2),x(),b(3,"td",30),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewGroup(o))}),I(4),x(),b(5,"td",30),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewGroup(o))}),I(6),x(),J(7,Yat,1,0,"td",23),J(8,Jat,3,0,"td",31),x()}if(2&t){const e=n.$implicit,i=j();w(2),Dt(e.id),w(2),Dt(e.name),w(2),Dt(e.update_time),w(1),k("ngIf",i.deleteAllowed()&&e.id===i.systemUserId),w(1),k("ngIf",i.deleteAllowed()&&e.id!==i.systemUserId)}}let Qat=(()=>{class t{constructor(e,i,r,o,s){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"formBuilder",void 0),K(this,"systemUserId","00000000-0000-0000-0000-000000000000"),K(this,"error",""),K(this,"groupsCount",0),K(this,"groups",[]),K(this,"nextCursor",""),K(this,"prevCursor",""),K(this,"searchForm",void 0),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.searchForm=this.formBuilder.group({filter:[""]});const e=this.route.snapshot.queryParamMap;this.f.filter.setValue(e.get("filter")),this.nextCursor=e.get("cursor"),this.nextCursor&&""!==this.nextCursor?this.search(1):this.f.filter.value&&this.search(0),this.route.data.subscribe(i=>{this.groups.length=0,i&&(this.groups.push(...i[0].groups),this.groupsCount=i[0].total_count,this.nextCursor=i[0].next_cursor,this.prevCursor=i[0].prev_cursor)},i=>{this.error=i})}search(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listGroups("",this.f.filter.value,i).subscribe(r=>{this.error="",this.groups.length=0,this.groups.push(...r.groups),this.groupsCount=r.total_count,this.nextCursor=r.next_cursor,this.router.navigate([],{relativeTo:this.route,queryParams:{filter:this.f.filter.value,cursor:i},queryParamsHandling:"merge"})},r=>{this.error=r})}deleteGroup(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteGroup("",r.id).subscribe(()=>{this.error="",this.groups.splice(i,1),this.groupsCount--},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_DEVELOPER}viewGroup(e){this.router.navigate(["/groups",e.id],{relativeTo:this.route})}get f(){return this.searchForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:35,vars:8,consts:[[1,"pb-1"],[1,"pb-3"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","filter","placeholder","Filter by group ID or name (use '%' for wildcard search)",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","button",1,"btn","btn-primary","dropdown-radius",3,"click"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"User Groups"),x(),b(2,"h6",1),I(3),x(),b(4,"div",2)(5,"div",3)(6,"div",4)(7,"form",5),ye("ngSubmit",function(){return i.search(0)}),b(8,"div",6),ge(9,"input",7),b(10,"div",8)(11,"div",9)(12,"button",10),ye("click",function(){return i.search(0)}),I(13,"Search"),x()()()()()(),b(14,"div",11)(15,"div",12)(16,"button",13),ye("click",function(){return i.search(0)}),ge(17,"img",14),x(),b(18,"button",13),ye("click",function(){return i.search(1)}),ge(19,"img",15),x()()()()(),J(20,Wat,4,2,"ngb-alert",16),b(21,"div",17)(22,"table",18)(23,"thead",19)(24,"tr")(25,"th",20),I(26,"Group ID"),x(),b(27,"th"),I(28,"Name"),x(),b(29,"th",21),I(30,"Last Update"),x(),J(31,qat,2,0,"th",22),x()(),b(32,"tbody"),J(33,Xat,3,0,"tr",23),J(34,Kat,9,5,"tr",24),x()()()),2&e&&(w(3),xn("",i.groupsCount," groups found."),w(4),k("formGroup",i.searchForm),w(9),k("disabled",0===i.groups.length),w(2),k("disabled",""===i.nextCursor),w(2),k("ngIf",i.error),w(11),k("ngIf",i.deleteAllowed()),w(2),k("ngIf",0===i.groups.length),w(1),k("ngForOf",i.groups))},dependencies:[jn,gn,To,sl,Fa,rl,ol,fa,ja],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})),t})(),Zat=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.queryParamMap.get("filter");return this.consoleService.listGroups("",r,null)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function elt(t,n){if(1&t){const e=vt();b(0,"button",13),ye("click",function(r){return $e(e),Be(j().exportGroup(r))}),ge(1,"img",14),I(2,"Export"),x()}}function tlt(t,n){if(1&t){const e=vt();b(0,"button",15),ye("click",function(r){return $e(e),Be(j().deleteGroup(r,!1))}),ge(1,"img",16),I(2,"Delete"),x()}}function nlt(t,n){if(1&t&&(b(0,"ngb-alert",17),ge(1,"img",18),b(2,"h6",19),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}const ilt=function(t,n){return["/groups",t,n]};function rlt(t,n){if(1&t&&(b(0,"div"),ta(1,20),b(2,"a",21),I(3),x(),na(),x()),2&t){const e=n.$implicit,i=j();w(1),k("ngbNavItem",e.path),w(1),k("routerLink",Sr(3,ilt,i.group.id,e.path)),w(1),Dt(e.label)}}const olt=function(){return["/groups"]};let slt=(()=>{class t{constructor(e,i,r,o){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"group",void 0),K(this,"error",""),K(this,"views",[{label:"Details",path:"details"},{label:"Members",path:"members"}]),this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.group=e[0]},e=>{this.error=e})}deleteGroup(e,i){e.target.disabled=!0,this.error="",this.consoleService.deleteGroup("",this.group.id).subscribe(()=>{this.error="",this.router.navigate(["/groups"])},r=>{this.error=r})}exportGroup(e){e.target.disabled=!0,this.error="",this.consoleService.exportGroup("",this.group.id).subscribe(i=>{this.error="";const r=this.group.id+"-export.json",o=JSON.stringify(i,null,2),s=(new TextEncoder).encode(o),a=new Blob([s],{type:"application/json;charset=utf-8"});(0,rN.saveAs)(a,r),e.target.disabled=!1},i=>{e.target.disabled=!1,this.error=i})}updateAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}exportAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}banAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:18,vars:7,consts:[[1,"pb-1"],[1,"account-top-nav","d-flex","justify-content-between","align-items-baseline","mb-4"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active"],["type","button","class","btn btn-outline-secondary mr-2",3,"click",4,"ngIf"],["type","button","class","btn btn-danger btn-danger-icon mr-2",3,"click",4,"ngIf"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["ngbNav","",1,"navbar-expand-sm","p-0","mb-3"],["accountNav","ngbNav"],[4,"ngFor","ngForOf"],["type","button",1,"btn","btn-outline-secondary","mr-2",3,"click"],["src","/static/svg/export.svg","alt","","width","13","height","13",1,"mr-2"],["type","button",1,"btn","btn-danger","btn-danger-icon","mr-2",3,"click"],["src","/static/svg/bin-red.svg","alt","","width","14","height","",1,"mr-2"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"ngbNavItem"],["ngbNavLink","","routerLinkActive","account-link-active",3,"routerLink"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"User Group"),x(),b(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4)(6,"a",5),I(7,"Group"),x()(),b(8,"li",6),I(9),x()()(),b(10,"div"),J(11,elt,3,0,"button",7),J(12,tlt,3,0,"button",8),x()(),J(13,nlt,4,2,"ngb-alert",9),b(14,"nav",10,11),J(16,rlt,4,6,"div",12),x(),ge(17,"router-outlet")),2&e&&(w(6),k("routerLink",wl(6,olt)),w(3),Dt(i.group.id),w(2),k("ngIf",i.exportAllowed()),w(1),k("ngIf",i.deleteAllowed()),w(1),k("ngIf",i.error),w(3),k("ngForOf",i.views))},dependencies:[Jp,Nu,hy,jn,gn,To,am,sm,fv],styles:[".nav-link[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#000;opacity:.5;padding:0 0 1.6em;margin-right:3em;margin-bottom:-2px;font-weight:600}.nav-link[_ngcontent-%COMP%]:hover{opacity:1}.nav-link.account-link-active[_ngcontent-%COMP%]{opacity:1;border-bottom:solid 2px #7668ED}.navbar-expand-sm[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9}.account-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})),t})(),alt=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.paramMap.get("id");return this.consoleService.getGroup("",r)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function llt(t,n){if(1&t){const e=vt();b(0,"button",12),ye("click",function(r){return $e(e),Be(j().deleteLeaderboard(r))}),ge(1,"img",13),I(2,"Delete Leaderboard"),x()}}function clt(t,n){if(1&t&&(b(0,"ngb-alert",14),ge(1,"img",15),b(2,"h6",16),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}const ult=function(t,n){return["/leaderboards",t,n]};function dlt(t,n){if(1&t&&(b(0,"div"),ta(1,17),b(2,"a",18),I(3),x(),na(),x()),2&t){const e=n.$implicit,i=j();w(1),k("ngbNavItem",e.path),w(1),k("routerLink",Sr(3,ult,i.leaderboard.id,e.path)),w(1),Dt(e.label)}}const hlt=function(){return["/leaderboards"]};let flt=(()=>{class t{constructor(e,i,r,o){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"leaderboard",void 0),K(this,"error",""),K(this,"views",[{label:"Details",path:"details"},{label:"Records",path:"records"}]),this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.leaderboard=e[0]},e=>{this.error=e})}deleteLeaderboard(e){e.target.disabled=!0,this.error="",this.consoleService.deleteLeaderboard("",this.leaderboard.id).subscribe(()=>{this.error="",this.router.navigate(["/leaderboards"])},i=>{this.error=i})}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_DEVELOPER}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:17,vars:6,consts:[[1,"pb-1"],[1,"leaderboard-top-nav","d-flex","justify-content-between","align-items-baseline","mb-3"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active"],["type","button","class","btn btn-danger btn-danger-icon",3,"click",4,"ngIf"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["ngbNav","",1,"navbar-expand-sm","p-0","mb-3"],["leaderboardNav","ngbNav"],[4,"ngFor","ngForOf"],["type","button",1,"btn","btn-danger","btn-danger-icon",3,"click"],["src","/static/svg/bin-red.svg","alt","","width","13","height","13",1,"mr-2"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"ngbNavItem"],["ngbNavLink","","routerLinkActive","account-link-active",3,"routerLink"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"Leaderboard"),x(),b(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4)(6,"a",5),I(7,"Leaderboards"),x()(),b(8,"li",6),I(9),x()()(),b(10,"div"),J(11,llt,3,0,"button",7),x()(),J(12,clt,4,2,"ngb-alert",8),b(13,"nav",9,10),J(15,dlt,4,6,"div",11),x(),ge(16,"router-outlet")),2&e&&(w(6),k("routerLink",wl(5,hlt)),w(3),Dt(i.leaderboard.id),w(2),k("ngIf",i.deleteAllowed()),w(1),k("ngIf",i.error),w(3),k("ngForOf",i.views))},dependencies:[Jp,Nu,hy,jn,gn,To,am,sm,fv],styles:[".nav-link[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#000;opacity:.5;padding:0 0 1.6em;margin-right:3em;margin-bottom:-2px;font-weight:600}.nav-link[_ngcontent-%COMP%]:hover{opacity:1}.nav-link.account-link-active[_ngcontent-%COMP%]{opacity:1;border-bottom:solid 2px #7668ED}.navbar-expand-sm[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9}.leaderboard-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})),t})(),plt=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.paramMap.get("id");return this.consoleService.getLeaderboard("",r)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();const mlt=["editor"];function glt(t,n){if(1&t&&(b(0,"ngb-alert",24),ge(1,"img",25),b(2,"h6",26),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function vlt(t,n){if(1&t&&(b(0,"div",27)(1,"h6"),I(2,"Tournament"),x(),ge(3,"hr",28),b(4,"div",2)(5,"div",3)(6,"div",4)(7,"label",29),I(8,"Title"),x()(),ge(9,"input",30),x(),b(10,"div",3)(11,"div",4)(12,"label",31),I(13,"Description"),x()(),ge(14,"input",32),x()(),b(15,"div",2)(16,"div",3)(17,"div",4)(18,"label",33),I(19,"Category"),x()(),ge(20,"input",34),x(),b(21,"div",3)(22,"div",4)(23,"label",35),I(24,"Max Num Score"),x()(),ge(25,"input",36),x()(),b(26,"div",2)(27,"div",3)(28,"div",4)(29,"label",37),I(30,"Size"),x()(),ge(31,"input",38),x(),b(32,"div",3)(33,"div",4)(34,"label",39),I(35,"Max Size"),x()(),ge(36,"input",40),x()(),b(37,"div",2)(38,"div",3)(39,"div",4)(40,"label",41),I(41,"Duration"),x()(),ge(42,"input",42),x(),b(43,"div",3)(44,"div",4)(45,"label",43),I(46,"Join Required"),x()(),ge(47,"input",44),x()(),b(48,"div",2)(49,"div",3)(50,"div",4)(51,"label",45),I(52,"Start Time"),x()(),ge(53,"input",46),x(),b(54,"div",3)(55,"div",4)(56,"label",47),I(57,"End Time"),x()(),ge(58,"input",48),x()(),b(59,"div",2)(60,"div",3)(61,"div",4)(62,"label",49),I(63,"Start Active"),x()(),ge(64,"input",50),x(),b(65,"div",3)(66,"div",4)(67,"label",51),I(68,"End Active"),x()(),ge(69,"input",52),x()()()),2&t){const e=j();w(9),k("value",e.leaderboard.title),w(5),k("value",e.leaderboard.description),w(6),k("value",e.leaderboard.category),w(5),k("value",e.leaderboard.max_num_score),w(6),k("value",e.leaderboard.size),w(5),k("value",e.leaderboard.max_size),w(6),k("value",e.leaderboard.duration),w(5),k("value",e.leaderboard.join_required),w(6),k("value",e.leaderboard.start_time),w(5),k("value",e.leaderboard.end_time),w(6),k("value",e.leaderboard.start_active),w(5),k("value",e.leaderboard.end_active)}}let ylt=(()=>{class t{constructor(e){K(this,"route",void 0),K(this,"editor",void 0),K(this,"orderString",{0:"Ascending",1:"Descending"}),K(this,"operatorString",{0:"Best",1:"Set",2:"Increment",3:"Decrement"}),K(this,"jsonEditor",void 0),K(this,"leaderboard",void 0),K(this,"error",""),this.route=e}ngOnInit(){this.route.parent.data.subscribe(e=>{this.leaderboard=e[0]},e=>{this.error=e})}ngAfterViewInit(){this.jsonEditor=new Zm({target:this.editor.nativeElement,props:{mode:Jo.text,readOnly:!0,content:{text:this.leaderboard.metadata??""}}})}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&io(mlt,5),2&e){let r;cn(r=un())&&(i.editor=r.first)}},decls:50,vars:10,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border","mb-3"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","id",1,"d-inline"],["type","text","id","id","placeholder","ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","authoritative",1,"d-inline"],["type","text","id","authoritative","placeholder","Authoritative","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","sortorder",1,"d-inline"],["type","text","id","sortorder","placeholder","Sort Order","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","operator",1,"d-inline"],["type","text","id","operator","placeholder","Operator","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","reset",1,"d-inline"],["type","text","id","reset","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"row","add-border-single-row-bottom"],["type","text","id","prev_reset","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["type","text","id","next_reset","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["class","mt-4",4,"ngIf"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[1,"mt-4"],[1,"mb-4"],["for","title",1,"d-inline"],["type","text","id","title","placeholder","Title","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","description",1,"d-inline"],["type","text","id","description","placeholder","Description","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","category",1,"d-inline"],["type","text","id","category","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","max_num_score",1,"d-inline"],["type","text","id","max_num_score","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","size",1,"d-inline"],["type","text","id","size","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","max_size",1,"d-inline"],["type","text","id","max_size","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","duration",1,"d-inline"],["type","text","id","duration","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","join_required",1,"d-inline"],["type","text","id","join_required","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","start_time",1,"d-inline"],["type","text","id","start_time","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","end_time",1,"d-inline"],["type","text","id","end_time","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","start_active",1,"d-inline"],["type","text","id","start_active","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","end_active",1,"d-inline"],["type","text","id","end_active","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"]],template:function(e,i){1&e&&(J(0,glt,4,2,"ngb-alert",0),b(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"label",5),I(6,"ID"),x()(),ge(7,"input",6),x(),b(8,"div",3)(9,"div",4)(10,"label",7),I(11,"Authoritative"),x()(),ge(12,"input",8),x()(),b(13,"div",2)(14,"div",3)(15,"div",4)(16,"label",9),I(17,"Sort Order"),x()(),ge(18,"input",10),x(),b(19,"div",3)(20,"div",4)(21,"label",11),I(22,"Operator"),x()(),ge(23,"input",12),x()(),b(24,"div",2)(25,"div",3)(26,"div",4)(27,"label",13),I(28,"Reset Schedule"),x()(),ge(29,"input",14),x(),b(30,"div",3)(31,"div",4)(32,"label",15),I(33,"Create Time"),x()(),ge(34,"input",16),x()(),b(35,"div",17)(36,"div",3)(37,"div",4)(38,"label",13),I(39,"Prev Reset"),x()(),ge(40,"input",18),x(),b(41,"div",3)(42,"div",4)(43,"label",15),I(44,"Next Reset"),x()(),ge(45,"input",19),x()()(),J(46,vlt,70,12,"div",20),b(47,"div",21),ge(48,"div",22,23),x()),2&e&&(k("ngIf",i.error),w(7),k("value",i.leaderboard.id),w(5),k("value",i.leaderboard.authoritative),w(6),k("value",i.orderString[i.leaderboard.sort_order]),w(5),k("value",i.operatorString[i.leaderboard.operator]),w(6),k("value",i.leaderboard.reset_schedule),w(5),k("value",i.leaderboard.create_time),w(6),k("value",i.leaderboard.prev_reset),w(5),k("value",i.leaderboard.next_reset),w(1),k("ngIf",i.leaderboard.tournament))},dependencies:[gn,To],styles:[".leaderboard-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})),t})();function blt(t,n){if(1&t&&(b(0,"ngb-alert",19),ge(1,"img",20),b(2,"h6",21),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function _lt(t,n){1&t&&(b(0,"th",22),I(1,"Remove"),x())}function xlt(t,n){1&t&&(b(0,"tr")(1,"td",23),I(2,"No records found."),x()())}function wlt(t,n){1&t&&ge(0,"div",28)}function Clt(t,n){1&t&&ge(0,"div",29)}function klt(t,n){if(1&t){const e=vt();b(0,"td",30)(1,"button",31),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteRecord(r,s,a))}),I(2,"Delete"),x()()}}function Slt(t,n){if(1&t&&(b(0,"tr")(1,"td",32)(2,"pre",33)(3,"small"),I(4),x()()()()),2&t){const e=j().$implicit;w(4),Dt(e.metadata)}}function Dlt(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td")(2,"div",24),ye("click",function(){const o=$e(e).index,s=j();return Be(s.recordsMetadataOpen[o]=!s.recordsMetadataOpen[o])}),J(3,wlt,1,0,"div",25),J(4,Clt,1,0,"div",26),x(),I(5),x(),b(6,"td"),I(7),x(),b(8,"td"),I(9),x(),b(10,"td"),I(11),x(),b(12,"td"),I(13),x(),b(14,"td"),I(15),x(),b(16,"td"),I(17),x(),J(18,klt,3,0,"td",27),x(),J(19,Slt,5,1,"tr",17)}if(2&t){const e=n.index,i=n.$implicit,r=j();w(3),k("ngIf",!r.recordsMetadataOpen[e]),w(1),k("ngIf",r.recordsMetadataOpen[e]),w(1),xn(" ",i.owner_id," "),w(2),Dt(i.username),w(2),Dt(i.score),w(2),Dt(i.subscore),w(2),Dt(i.rank),w(2),Dt(i.num_score),w(2),Dt(i.expiry_time?i.expiry_time:"-"),w(1),k("ngIf",r.deleteAllowed()),w(1),k("ngIf",r.recordsMetadataOpen[e])}}let Tlt=(()=>{class t{constructor(e,i,r){K(this,"route",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"error",""),K(this,"leaderboard",void 0),K(this,"records",[]),K(this,"recordsMetadataOpen",[]),K(this,"nextCursor",""),K(this,"prevCursor",""),this.route=e,this.consoleService=i,this.authService=r}ngOnInit(){this.route.data.subscribe(e=>{this.records.length=0,this.records.push(...e[0].records),this.nextCursor=e[0].next_cursor,this.prevCursor=e[0].prev_cursor,this.recordsMetadataOpen.length=this.records.length},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.leaderboard=e[0]},e=>{this.error=e})}loadRecords(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listLeaderboardRecords("",this.leaderboard.id,null,100,i,null).subscribe(r=>{this.error="",this.nextCursor=r.next_cursor,this.prevCursor=r.prev_cursor,this.records.length=0,this.records.push(...r.records),this.recordsMetadataOpen.length=0,this.recordsMetadataOpen.length=this.records.length},r=>{this.error=r})}deleteRecord(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteLeaderboardRecord("",r.leaderboard_id,r.owner_id).subscribe(()=>{this.error="",this.records.splice(i,1),this.recordsMetadataOpen.splice(i,1)},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(xi),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:34,vars:7,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered"],[1,"thead-light"],[2,"width","380px"],[2,"width","150px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],["ngFor","",3,"ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","8",1,"text-muted"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","text-center",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],["colspan","7",1,"align-middle"],[1,"pre-wrap","m-0","p-0"]],template:function(e,i){1&e&&(J(0,blt,4,2,"ngb-alert",0),b(1,"div",1)(2,"div",2),ge(3,"div",3),b(4,"div",4)(5,"div",5)(6,"button",6),ye("click",function(){return i.loadRecords(0)}),ge(7,"img",7),x(),b(8,"button",6),ye("click",function(){return i.loadRecords(-1)}),ge(9,"img",8),x(),b(10,"button",6),ye("click",function(){return i.loadRecords(1)}),ge(11,"img",9),x()()()()(),b(12,"div",10)(13,"table",11)(14,"thead",12)(15,"tr")(16,"th",13),I(17,"Owner ID"),x(),b(18,"th"),I(19,"Username"),x(),b(20,"th",14),I(21,"Score"),x(),b(22,"th",14),I(23,"Subscore"),x(),b(24,"th",14),I(25,"Rank"),x(),b(26,"th",14),I(27,"No. of scores"),x(),b(28,"th",15),I(29,"Expiry Time"),x(),J(30,_lt,2,0,"th",16),x()(),b(31,"tbody"),J(32,xlt,3,0,"tr",17),J(33,Dlt,20,11,"ng-template",18),x()()()),2&e&&(k("ngIf",i.error),w(6),k("disabled",0===i.records.length),w(2),k("disabled",""===i.prevCursor),w(2),k("disabled",""===i.nextCursor),w(20),k("ngIf",i.deleteAllowed()),w(2),k("ngIf",0===i.records.length),w(1),k("ngForOf",i.records))},dependencies:[jn,gn,To]})),t})(),Elt=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.listLeaderboardRecords("",r,null,100,null,null)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();const Alt=["editor"],Mlt=["editorResponse"];function Ilt(t,n){if(1&t&&(b(0,"ngb-alert",23),ge(1,"img",24),b(2,"h6",25),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Error whilst making RPC call: ",e.error,"")}}function Nlt(t,n){if(1&t&&(b(0,"option",26),I(1),x()),2&t){const e=n.$implicit;Fh("value",e.method),w(1),Dt(e.method)}}function Flt(t,n){if(1&t&&(b(0,"option",26),I(1),x()),2&t){const e=n.$implicit;Fh("value",e.method),w(1),Dt(e.method)}}let Olt=(()=>{class t{constructor(e,i,r,o){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"formBuilder",void 0),K(this,"editor",void 0),K(this,"editorResponse",void 0),K(this,"jsonEditor",void 0),K(this,"jsonEditorResponse",void 0),K(this,"error",""),K(this,"rpcEndpoints",[]),K(this,"endpoints",[]),K(this,"endpointCallForm",void 0),this.route=e,this.router=i,this.consoleService=r,this.formBuilder=o}ngOnInit(){this.endpointCallForm=this.formBuilder.group({method:["",Do.required],user_id:[""]}),this.f.method.valueChanges.subscribe(i=>{const r=this.endpoints.concat(this.rpcEndpoints).find(o=>o.method===i?o:null);this.updateQueryParam(r.method),this.setupRequestBody(r.body_template)}),this.route.data.subscribe(i=>{const r=i[0];this.endpoints.length=0,this.endpoints.push(...r.endpoints),this.rpcEndpoints.length=0,this.rpcEndpoints.push(...r.rpc_endpoints)},i=>{this.error=i});const e=this.endpoints.concat(this.rpcEndpoints).find(i=>i.method===this.route.snapshot.queryParamMap.get("endpoint")?i:null);null!=e&&this.f.method.setValue(e.method)}ngAfterViewInit(){this.jsonEditor=new Zm({target:this.editor.nativeElement,props:{mode:Jo.text,readOnly:!0}}),this.jsonEditorResponse=new Zm({target:this.editorResponse.nativeElement,props:{mode:Jo.text,readOnly:!0}})}sendRequest(){this.error="";let e="";try{e=Zv(this.jsonEditor.get()).text}catch(o){return void(this.error=o)}const i={user_id:this.f.user_id.value,body:e};let r=null;r=this.isRpcEndpoint(this.f.method.value)?this.consoleService.callRpcEndpoint("",this.f.method.value,i):this.consoleService.callApiEndpoint("",this.f.method.value,i),r.subscribe(o=>{if(o.error_message&&""!==o.error_message)this.jsonEditorResponse.set({json:o.error_message});else{e="";try{e=JSON.stringify(JSON.parse(o.body),null,2)}catch(s){return void(this.error=s)}this.jsonEditorResponse.set({text:e})}},o=>{this.jsonEditorResponse.set({text:""}),this.error=o})}isRpcEndpoint(e){return null!=this.rpcEndpoints.find(i=>i.method===e?i:null)}setupRequestBody(e){if(null!=this.jsonEditor){if(!e||""===e)return this.jsonEditor.set({text:""}),void this.jsonEditor.updateProps({readOnly:!this.isRpcEndpoint(this.f.method.value)});try{const i=JSON.stringify(JSON.parse(e),null,2);this.jsonEditor.set({text:i}),this.jsonEditor.updateProps({readOnly:!1})}catch(i){return void(this.error=i)}}else console.log("problem?")}updateQueryParam(e){this.router.navigate([],{relativeTo:this.route,queryParams:{endpoint:e},queryParamsHandling:"merge"})}get f(){return this.endpointCallForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&(io(Alt,5),io(Mlt,5)),2&e){let r;cn(r=un())&&(i.editor=r.first),cn(r=un())&&(i.editorResponse=r.first)}},decls:35,vars:6,consts:[[1,"pb-4"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],[1,"input-group-prepend"],["id","method","formControlName","method",1,"form-control","custom-select","dropdown-radius"],["disabled","",3,"value"],[3,"value",4,"ngFor","ngForOf"],["disabled","",1,"text-muted"],["type","text","formControlName","user_id","placeholder","set user ID as request context",1,"form-control","border-right-0"],[1,"input-group-append"],["type","submit",1,"btn","btn-primary",3,"disabled"],[1,"d-flex"],[1,"w-50","py-3"],[1,"mb-4"],[1,"card","p-2","mb-3","jsoneditor"],[2,"height","500px"],["editor",""],[1,"w-50","pl-3","py-3"],["editorResponse",""],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"value"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"API Explorer"),x(),J(2,Ilt,4,2,"ngb-alert",1),b(3,"div",2)(4,"div",3)(5,"div",4)(6,"form",5),ye("ngSubmit",function(){return i.sendRequest()}),b(7,"div",6)(8,"div",7)(9,"select",8)(10,"option",9),I(11,"Select Endpoint"),x(),J(12,Nlt,2,2,"option",10),b(13,"option",11),I(14,"----"),x(),J(15,Flt,2,2,"option",10),x()(),ge(16,"input",12),b(17,"div",13)(18,"button",14),I(19,"Send Request"),x()()()()()()(),b(20,"div",15)(21,"div",16)(22,"h5"),I(23,"Request Body"),x(),ge(24,"hr",17),b(25,"div",18),ge(26,"div",19,20),x()(),b(28,"div",21)(29,"h5"),I(30,"Response"),x(),ge(31,"hr",17),b(32,"div",18),ge(33,"div",19,22),x()()()),2&e&&(w(2),k("ngIf",i.error),w(4),k("formGroup",i.endpointCallForm),w(4),k("value",""),w(2),k("ngForOf",i.rpcEndpoints),w(3),k("ngForOf",i.endpoints),w(3),k("disabled",i.f.method.invalid))},dependencies:[jn,gn,To,sl,xy,wy,Fa,ov,rl,ol,fa,ja],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}"]})),t})(),jlt=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.listApiEndpoints("")}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Plt(t,n){if(1&t&&(b(0,"ngb-alert",16),ge(1,"img",17),b(2,"h6",18),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Error while processing request: ",e.error,"")}}function Llt(t,n){1&t&&ge(0,"div",23)}function Rlt(t,n){1&t&&ge(0,"div",24)}function $lt(t,n){if(1&t&&(b(0,"tr",25)(1,"td",26)(2,"div",27)(3,"div")(4,"small")(5,"b"),I(6,"Provider Response"),x()()(),b(7,"div")(8,"pre",28)(9,"small"),I(10),x()()()()()()),2&t){const e=j().$implicit;w(10),Dt(e.provider_response)}}function Blt(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td")(2,"div",19),ye("click",function(){const o=$e(e).index,s=j();return Be(s.purchasesRowsOpen[o]=!s.purchasesRowsOpen[o])}),J(3,Llt,1,0,"div",20),J(4,Rlt,1,0,"div",21),x(),I(5),x(),b(6,"td"),I(7),x(),b(8,"td"),I(9),x(),b(10,"td"),I(11),x(),b(12,"td"),I(13),x()(),J(14,$lt,11,1,"tr",22)}if(2&t){const e=n.index,i=n.$implicit,r=j();w(3),k("ngIf",!r.purchasesRowsOpen[e]),w(1),k("ngIf",r.purchasesRowsOpen[e]),w(1),xn(" ",i.product_id," "),w(2),Dt(i.transaction_id),w(2),Dt(r.getStoreText(i.store)),w(2),Dt(i.purchase_time),w(2),Dt(i.create_time),w(1),k("ngIf",r.purchasesRowsOpen[e])}}function Vlt(t,n){1&t&&(b(0,"tr")(1,"td",29),I(2,"No purchases were found."),x()())}let Hlt=(()=>{class t{constructor(e,i,r){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"purchases",[]),K(this,"purchasesRowsOpen",[]),K(this,"error",""),K(this,"nextCursor",""),K(this,"prevCursor",""),K(this,"userID",void 0),K(this,"limit",100),this.route=e,this.router=i,this.consoleService=r}ngOnInit(){this.userID=this.route.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(e=>{this.purchases=e[0].validated_purchases,this.nextCursor=e[0].cursor,this.prevCursor=e[0].prev_cursor})}loadData(e){this.consoleService.listPurchases("",this.userID,this.limit,e).subscribe(i=>{this.purchases=i.validated_purchases,this.purchasesRowsOpen=[],this.nextCursor=i.cursor,this.prevCursor=i.prev_cursor},i=>{this.error=i})}getStoreText(e){return this.formatStoreText(Sy[e])}formatStoreText(e){return e.split("_").map(i=>i[0]+i.slice(1).toLowerCase()).join(" ")}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["app-purchases"]],decls:29,vars:6,consts:[["type","danger",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered","table-hover"],[1,"thead-light"],[2,"width","180px"],["ngFor","",3,"ngForOf"],[4,"ngIf"],["type","danger",3,"dismissible"],["src","/src/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","open-row",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"open-row"],["colspan","7"],[1,"p-2"],[1,"pre-wrap","m-0","p-0"],["colspan","5",1,"text-muted"]],template:function(e,i){1&e&&(J(0,Plt,4,2,"ngb-alert",0),b(1,"div",1)(2,"div",2),ge(3,"div",3),b(4,"div",4)(5,"div",5)(6,"button",6),ye("click",function(){return i.loadData("")}),ge(7,"img",7),x(),b(8,"button",6),ye("click",function(){return i.loadData(i.prevCursor)}),ge(9,"img",8),x(),b(10,"button",6),ye("click",function(){return i.loadData(i.nextCursor)}),ge(11,"img",9),x()()()()(),b(12,"div",10)(13,"table",11)(14,"thead",12)(15,"tr")(16,"th"),I(17,"Product ID"),x(),b(18,"th"),I(19,"Transaction ID"),x(),b(20,"th"),I(21,"Store"),x(),b(22,"th",13),I(23,"Purchase Time"),x(),b(24,"th",13),I(25,"Create Time"),x()()(),b(26,"tbody"),J(27,Blt,15,8,"ng-template",14),J(28,Vlt,3,0,"tr",15),x()()()),2&e&&(k("ngIf",i.error),w(6),k("disabled",0===i.purchases.length),w(2),k("disabled",""===i.prevCursor),w(2),k("disabled",""===i.nextCursor),w(17),k("ngForOf",i.purchases),w(1),k("ngIf",0===i.purchases.length))},dependencies:[jn,gn,To]})),t})(),zlt=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.listPurchases("",r,100,"")}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Ult(t,n){1&t&&(b(0,"span"),I(1,"Filter by type"),x())}function Glt(t,n){if(1&t&&(b(0,"span"),I(1),x()),2&t){const e=j();w(1),Dt(e.activeFilter)}}function Wlt(t,n){if(1&t){const e=vt();b(0,"button",40),ye("click",function(){const o=$e(e).$implicit;return Be(j().activeFilter=o)}),I(1),x()}if(2&t){const e=n.$implicit;w(1),Dt(e)}}function qlt(t,n){if(1&t&&(b(0,"h6"),I(1),x()),2&t){const e=j();w(1),xn("Showing results for chat room label: ",e.f1.label.value,"")}}const Xlt=function(t){return["/groups",t]};function Ylt(t,n){if(1&t&&(b(0,"h6"),I(1,"Showing results for group ID: "),b(2,"a",41),I(3),x()()),2&t){const e=j();w(2),k("routerLink",lr(2,Xlt,e.route.snapshot.queryParamMap.get("group_id"))),w(1),Dt(e.f2.group_id.value)}}const Yme=function(t){return["/accounts",t]};function Jlt(t,n){if(1&t&&(b(0,"h6"),I(1,"Showing results for user IDs: "),b(2,"a",41),I(3),x(),I(4,", "),b(5,"a",41),I(6),x()()),2&t){const e=j();w(2),k("routerLink",lr(4,Yme,e.route.snapshot.queryParamMap.get("user_id_one"))),w(1),Dt(e.f3.user_id_one.value),w(2),k("routerLink",lr(6,Yme,e.route.snapshot.queryParamMap.get("user_id_two"))),w(1),Dt(e.f3.user_id_two.value)}}function Klt(t,n){if(1&t&&(b(0,"ngb-alert",42),ge(1,"img",43),b(2,"h6",44),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Error when querying messages: ",e.error,"")}}function Qlt(t,n){1&t&&(b(0,"th",45),I(1,"Remove"),x())}function Zlt(t,n){if(1&t&&(b(0,"tr")(1,"td",46),I(2,"No messages found."),x()()),2&t){const e=j();w(1),ht("colspan",e.deleteAllowed()?6:5)}}function ect(t,n){1&t&&ge(0,"div",55)}function tct(t,n){1&t&&ge(0,"div",56)}function nct(t,n){1&t&&ge(0,"td")}function ict(t,n){if(1&t){const e=vt();b(0,"td",57)(1,"button",58),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteMessage(r,s,a))}),I(2,"Delete"),x()()}}function rct(t,n){if(1&t&&(b(0,"tr",59)(1,"td"),I(2),x()()),2&t){const e=j().$implicit,i=j();w(1),ht("colspan",i.deleteAllowed()?6:5),w(1),xn(" ",e.content," ")}}function oct(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td"),I(2),x(),b(3,"td",47),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(4),x(),b(5,"td",48),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(6),x(),b(7,"td",49)(8,"div",50),ye("click",function(){const o=$e(e).index,s=j();return Be(s.messageStatesOpen[o]=!s.messageStatesOpen[o])}),J(9,ect,1,0,"div",51),J(10,tct,1,0,"div",52),x(),I(11),x(),b(12,"td"),I(13),x(),J(14,nct,1,0,"td",3),J(15,ict,3,0,"td",53),x(),J(16,rct,3,2,"tr",54)}if(2&t){const e=n.$implicit,i=n.index,r=j();w(2),Dt(e.code),w(2),Dt(e.sender_id),w(2),Dt(e.username),w(3),k("ngIf",!r.messageStatesOpen[i]),w(1),k("ngIf",r.messageStatesOpen[i]),w(1),xn(" ",e.content," "),w(2),Dt(e.create_time),w(1),k("ngIf",r.deleteAllowed()&&e.sender_id===r.systemUserId),w(1),k("ngIf",r.deleteAllowed()&&e.sender_id!==r.systemUserId),w(1),k("ngIf",r.messageStatesOpen[i])}}function sct(t,n){if(1&t&&(b(0,"ngb-alert",60),ge(1,"img",43),b(2,"h6",44),I(3,"Failed to delete data."),x(),b(4,"p",61),I(5),x()()),2&t){const e=j();k("dismissible",!1),w(5),Dt(e.deleteError)}}function act(t,n){if(1&t){const e=vt();b(0,"ngb-alert",62),ye("close",function(){return $e(e),Be(j().deleteSuccess=!1)}),ge(1,"img",63),b(2,"h6",44),I(3),x()()}if(2&t){const e=j();k("dismissible",!0),w(3),Ld("",e.total_deleted," messages ",e.total_deleted>0?"successfully":""," deleted.")}}const lct=function(t){return{"is-invalid":t}};function cct(t,n){if(1&t){const e=vt();b(0,"div",64)(1,"h5",65),I(2,"Delete messages"),x(),b(3,"button",66),ye("click",function(){return Be($e(e).$implicit.dismiss())}),b(4,"span",67),I(5,"\xd7"),x()()(),b(6,"div",68)(7,"div",69)(8,"form",70)(9,"div",71)(10,"p")(11,"b"),I(12,"Choose how many days to retain: "),x(),ge(13,"input",72),x()(),ge(14,"input",73),x()()(),b(15,"div",74)(16,"button",75),ye("click",function(){return Be($e(e).$implicit.dismiss())}),I(17,"Cancel"),x(),b(18,"button",76),ye("click",function(){return Be($e(e).$implicit.close())}),I(19,"DELETE"),x()()}if(2&t){const e=j();w(8),k("formGroup",e.confirmDeleteForm),w(6),k("ngClass",lr(3,lct,e.f.delete.touched&&e.f.delete.invalid)),w(4),k("disabled",e.f.delete.invalid)}}function uct(t,n){if(1&t){const e=vt();b(0,"button",76),ye("click",function(){$e(e);const r=j(),o=uo(68);return Be(r.openDeleteDataModal(o))}),I(1,"Delete messages"),x()}2&t&&k("disabled",j().deleting)}let dct=(()=>{class t{constructor(e,i,r,o,s,a){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"formBuilder",void 0),K(this,"modalService",void 0),K(this,"systemUserId","00000000-0000-0000-0000-000000000000"),K(this,"error",""),K(this,"messages",[]),K(this,"nextCursor",""),K(this,"searchForm1",void 0),K(this,"searchForm2",void 0),K(this,"searchForm3",void 0),K(this,"type",void 0),K(this,"confirmDeleteForm",void 0),K(this,"deleteError",""),K(this,"deleteSuccess",!1),K(this,"deleting",!1),K(this,"total_deleted",0),K(this,"activeFilter",""),K(this,"filters",["Chat Room","Group Chat","Direct Chat"]),K(this,"messageStatesOpen",[]),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s,this.modalService=a,this.searchForm1=this.formBuilder.group({label:""}),this.searchForm2=this.formBuilder.group({group_id:""}),this.searchForm3=this.formBuilder.group({user_id_one:"",user_id_two:""}),this.confirmDeleteForm=this.formBuilder.group({delete:["",Do.compose([Do.required,Do.pattern("DELETE")])],days:30})}ngOnInit(){const e=this.route.snapshot.queryParamMap;this.f1.label.setValue(e.get("label")),this.f2.group_id.setValue(e.get("group_id")),this.f3.user_id_one.setValue(e.get("user_id_one")),this.f3.user_id_two.setValue(e.get("user_id_two")),this.nextCursor=e.get("cursor");let i=e.get("type");this.type=Number(i),this.route.data.subscribe(r=>{r&&(r[0]&&(this.error="",this.messageStatesOpen=[],this.messages.length=0,this.messages.push(...r[0].messages),this.nextCursor=r[0].next_cursor),r.error&&(this.error=r.error))},r=>{this.error=r}),null===i?(this.type=2,this.activeFilter=this.filters[0]):2==this.type||3==this.type||4==this.type?this.activeFilter=this.filters[this.type-2]:this.error="Invalid type."}search(e){let i="";switch(e){case 0:i="";break;case 1:i=this.nextCursor}this.updateMessages(this.type,this.f1.label.value,this.f2.group_id.value,this.f3.user_id_one.value,this.f3.user_id_two.value,i)}updateMessages(e,i,r,o,s,a){switch(e){case 2:this.consoleService.listChannelMessages("",e.toString(),i,null,null,null,encodeURIComponent(a)).subscribe(l=>this.postData(l,a),l=>{this.error=l});break;case 3:this.consoleService.listChannelMessages("",e.toString(),null,r,null,null,encodeURIComponent(a)).subscribe(l=>this.postData(l,a),l=>{this.error=l});break;case 4:this.consoleService.listChannelMessages("",e.toString(),null,null,o,s,encodeURIComponent(a)).subscribe(l=>this.postData(l,a),l=>{this.error=l})}}postData(e,i){let r;switch(this.error="",this.messageStatesOpen=[],this.messages.length=0,this.messages.push(...e.messages),this.nextCursor=e.next_cursor,this.type){case 2:r={type:this.type,label:this.f1.label.value,cursor:i};break;case 3:r={type:this.type,group_id:this.f2.group_id.value,cursor:i};break;case 4:r={type:this.type,user_id_one:this.f3.user_id_one.value,user_id_two:this.f3.user_id_two.value,cursor:i}}this.router.navigate([],{relativeTo:this.route,queryParams:r})}deleteMessage(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteChannelMessages("",null,[r.message_id]).subscribe(()=>{this.error="",this.messageStatesOpen.splice(i,1),this.messages.splice(i,1)},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}deleteMessagesAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}get f1(){return this.searchForm1.controls}get f2(){return this.searchForm2.controls}get f3(){return this.searchForm3.controls}get f(){return this.confirmDeleteForm.controls}openDeleteDataModal(e){this.modalService.open(e,{centered:!0}).result.then(()=>{this.deleteData(),this.confirmDeleteForm.controls.delete.setValue("")},()=>{this.confirmDeleteForm.controls.delete.setValue("")})}deleteData(){this.deleteError="",this.deleting=!0;let e=new Date;e.setDate(e.getDate()-this.f.days.value),this.consoleService.deleteChannelMessages("",e.toISOString(),null).subscribe(i=>{this.total_deleted=Number(i.total),this.deleting=!1,this.deleteError="",this.deleteSuccess=!0;const r=this.route.snapshot.queryParamMap;let o=r.get("type"),s=r.get("label");s||(s="0");let a=r.get("group_id"),l=r.get("user_id_one"),c=r.get("user_id_two"),u=r.get("cursor");u||(u=""),o&&this.updateMessages(Number(o),s,a,l,c,u)},i=>{this.deleting=!1,this.deleteError=i})}viewAccount(e){this.router.navigate(["/accounts",e.sender_id],{relativeTo:this.route})}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo),le(Tl),le(H3))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:70,vars:21,consts:[[1,"pb-1"],["ngbDropdown","",1,"btn-group","mb-1"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary"],[4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"hidden","formGroup"],[1,"input-group"],["type","text","formControlName","label","placeholder","Search by chat room label",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","submit",1,"btn","btn-primary","dropdown-radius-left",3,"click"],["type","text","formControlName","group_id","placeholder","Search by group ID",1,"form-control","border-right-0"],["type","text","formControlName","user_id_one","placeholder","Search by user ID 1",1,"form-control","border-right-0"],[1,"input-group-text",3,"click"],["src","/static/svg/purple-cog-1.svg","alt","","width","20","height","",1,"mr-1"],["type","text","formControlName","user_id_two","placeholder","Search by user ID 2",1,"form-control","border-right-0"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered",2,"table-layout","fixed"],[1,"thead-light"],[2,"width","60px"],[2,"width","320px"],[2,"width","150px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],["ngFor","",3,"ngForOf"],["type","danger",3,"dismissible",4,"ngIf"],["type","success",3,"dismissible","close",4,"ngIf"],["role","alert",1,"d-flex","justify-content-between","align-items-center"],["confirmDelete",""],["type","button","class","btn btn-danger",3,"disabled","click",4,"ngIf"],["type","button","ngbDropdownItem","",3,"click"],[2,"width","100%",3,"routerLink"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],[1,"text-muted"],[3,"click"],[2,"text-overflow","ellipsis","overflow","hidden",3,"click"],[2,"white-space","nowrap","text-overflow","ellipsis","overflow","hidden"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","text-center",4,"ngIf"],["class","open-row",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],[1,"open-row"],["type","danger",3,"dismissible"],[1,"mb-0","pl-4"],["type","success",3,"dismissible","close"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-describedby","modal-title",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"d-flex","flex-column","justify-content-center"],["autocomplete","off",3,"formGroup"],[1,"mt-2"],["type","number","value","30","min","0","formControlName","days",2,"width","80px"],["type","text","id","delete-confirm","placeholder","Type 'DELETE' to confirm","formControlName","delete",1,"form-control",3,"ngClass"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-danger",3,"disabled","click"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"Chat Messages"),x(),b(2,"div",1)(3,"button",2),J(4,Ult,2,0,"span",3),J(5,Glt,2,1,"span",3),x(),b(6,"div",4),J(7,Wlt,2,1,"button",5),x()(),b(8,"div",6)(9,"div",7)(10,"div",8)(11,"form",9)(12,"div",10),ge(13,"input",11),b(14,"div",12)(15,"div",13)(16,"button",14),ye("click",function(){return i.type=2,i.search(0)}),I(17,"Search"),x()()()()(),b(18,"form",9)(19,"div",10),ge(20,"input",15),b(21,"div",12)(22,"div",13)(23,"button",14),ye("click",function(){return i.type=3,i.search(0)}),I(24,"Search "),x()()()()(),b(25,"form",9)(26,"div",10),ge(27,"input",16),b(28,"div",12)(29,"span",17),ye("click",function(){return i.f3.user_id_one.setValue(i.systemUserId)}),ge(30,"img",18),x()(),ge(31,"input",19),b(32,"div",12)(33,"div",13)(34,"button",14),ye("click",function(){return i.type=4,i.search(0)}),I(35,"Search "),x()()()()()(),b(36,"div",20)(37,"div",21)(38,"button",22),ye("click",function(){return i.search(0)}),ge(39,"img",23),x(),b(40,"button",22),ye("click",function(){return i.search(1)}),ge(41,"img",24),x()()()()(),J(42,qlt,2,1,"h6",3),J(43,Ylt,4,4,"h6",3),J(44,Jlt,7,8,"h6",3),J(45,Klt,4,2,"ngb-alert",25),b(46,"div",26)(47,"table",27)(48,"thead",28)(49,"tr")(50,"th",29),I(51,"Code"),x(),b(52,"th",30),I(53,"Sender ID"),x(),b(54,"th",31),I(55,"Username"),x(),b(56,"th"),I(57,"Content"),x(),b(58,"th",32),I(59,"Create Time"),x(),J(60,Qlt,2,0,"th",33),x()(),b(61,"tbody"),J(62,Zlt,3,1,"tr",3),J(63,oct,17,10,"ng-template",34),x()()(),J(64,sct,6,2,"ngb-alert",35),J(65,act,4,3,"ngb-alert",36),b(66,"div",37),J(67,cct,20,5,"ng-template",null,38,Ur),J(69,uct,2,1,"button",39),x()),2&e&&(w(4),k("ngIf",!i.activeFilter||""===i.activeFilter),w(1),k("ngIf",i.activeFilter&&""!==i.activeFilter),w(2),k("ngForOf",i.filters),w(4),k("hidden","Chat Room"!==i.activeFilter)("formGroup",i.searchForm1),w(7),k("hidden","Group Chat"!==i.activeFilter)("formGroup",i.searchForm2),w(7),k("hidden","Direct Chat"!==i.activeFilter)("formGroup",i.searchForm3),w(13),k("disabled",0===i.messages.length),w(2),k("disabled",""===i.nextCursor||null===i.nextCursor),w(2),k("ngIf",0!=i.messages.length&&""===i.error&&2==i.type),w(1),k("ngIf",0!=i.messages.length&&""===i.error&&3==i.type),w(1),k("ngIf",0!=i.messages.length&&""===i.error&&4==i.type),w(1),k("ngIf",i.error),w(15),k("ngIf",i.deleteAllowed()),w(2),k("ngIf",0===i.messages.length),w(1),k("ngForOf",i.messages),w(1),k("ngIf",i.deleteError),w(1),k("ngIf",i.deleteSuccess),w(4),k("ngIf",i.deleteMessagesAllowed()))},dependencies:[Nu,Rh,jn,gn,To,Pu,rm,Pf,jf,sl,Fa,c3,rl,ol,p3,fa,ja],styles:[".input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}.dropdown-radius-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.open-row[_ngcontent-%COMP%]{background:#FAFAFC}"]})),t})(),hct=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){let r=Number(e.queryParamMap.get("type"));switch(r){case 2:return this.consoleService.listChannelMessages("",r.toString(),e.queryParamMap.get("label"),null,null,null,encodeURIComponent(e.queryParamMap.get("cursor"))).pipe(Ul(o=>(e.data={...e.data,error:o},$n(null))));case 3:return this.consoleService.listChannelMessages("",r.toString(),null,e.queryParamMap.get("group_id"),null,null,encodeURIComponent(e.queryParamMap.get("cursor"))).pipe(Ul(o=>(e.data={...e.data,error:o},$n(null))));case 4:return this.consoleService.listChannelMessages("",r.toString(),null,null,e.queryParamMap.get("user_id_one"),e.queryParamMap.get("user_id_two"),encodeURIComponent(e.queryParamMap.get("cursor"))).pipe(Ul(o=>(e.data={...e.data,error:o},$n(null))));default:return $n(null)}}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function fct(t,n){if(1&t&&(b(0,"ngb-alert",16),ge(1,"img",17),b(2,"h6",18),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Error while processing request: ",e.error,"")}}function pct(t,n){if(1&t&&(b(0,"tr")(1,"td"),I(2),x(),b(3,"td"),I(4),x(),b(5,"td"),I(6),x(),b(7,"td"),I(8),x(),b(9,"td"),I(10),x(),b(11,"td"),I(12),x()()),2&t){const e=n.$implicit,i=j();w(2),Dt(e.product_id),w(2),Dt(e.original_transaction_id),w(2),Dt(i.getStoreText(e.store)),w(2),Dt(e.purchase_time),w(2),Dt(e.expiry_time),w(2),Dt(e.create_time)}}function mct(t,n){1&t&&(b(0,"tr")(1,"td",19),I(2,"No purchases were found."),x()())}const gct=[{path:"",component:yFe,canActivate:[tMe],canActivateChild:[bFe],children:[{path:"",redirectTo:"status",pathMatch:"full"},{path:"status",component:rBe,resolve:[oBe]},{path:"config",component:OBe,resolve:[jBe]},{path:"users",component:BBe,resolve:[VBe]},{path:"modules",component:t7e,resolve:[n7e]},{path:"storage",component:d7e,resolve:[h7e,f7e],pathMatch:"full"},{path:"storage/:collection/:key/:user_id",component:Cot,resolve:[kot],pathMatch:"full"},{path:"leaderboards",component:Oot,resolve:[jot]},{path:"leaderboards/:id",component:flt,resolve:[plt],children:[{path:"",redirectTo:"details",pathMatch:"full"},{path:"details",component:ylt,resolve:[]},{path:"records",component:Tlt,resolve:[Elt]}]},{path:"matches",component:zat,resolve:[Uat,Gat]},{path:"groups",component:Qat,resolve:[Zat]},{path:"groups/:id",component:slt,resolve:[alt],children:[{path:"",redirectTo:"details",pathMatch:"full"},{path:"details",component:iat,resolve:[]},{path:"members",component:Cat,resolve:[kat],runGuardsAndResolvers:"always"}]},{path:"accounts",component:Hot,resolve:[zot]},{path:"accounts/:id",component:nst,resolve:[ist],children:[{path:"",redirectTo:"profile",pathMatch:"full"},{path:"profile",component:cst,resolve:[]},{path:"authentication",component:pst,resolve:[]},{path:"wallet",component:Dst,resolve:[Tst]},{path:"friends",component:Lst,resolve:[Rst]},{path:"groups",component:Yst,resolve:[Jst]},{path:"purchases",component:Hlt,resolve:[zlt]},{path:"subscriptions",component:(()=>{class t{constructor(e,i,r){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"subscriptions",[]),K(this,"error",""),K(this,"nextCursor",""),K(this,"prevCursor",""),K(this,"userID",void 0),K(this,"limit",100),this.route=e,this.router=i,this.consoleService=r}ngOnInit(){this.userID=this.route.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(e=>{this.subscriptions=e[0].validated_subscriptions,this.nextCursor=e[0].cursor,this.prevCursor=e[0].prev_cursor})}loadData(e){this.consoleService.listSubscriptions("",this.userID,this.limit,e).subscribe(i=>{this.subscriptions=i.validated_subscriptions,this.nextCursor=i.cursor,this.prevCursor=i.prev_cursor},i=>{this.error=i})}getStoreText(e){return this.formatStoreText(Sy[e])}formatStoreText(e){return e.split("_").map(i=>i[0]+i.slice(1).toLowerCase()).join(" ")}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["app-subscriptions"]],decls:31,vars:6,consts:[["type","danger",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered","table-hover"],[1,"thead-light"],[2,"width","180px"],["ngFor","",3,"ngForOf"],[4,"ngIf"],["type","danger",3,"dismissible"],["src","/src/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["colspan","6",1,"text-muted"]],template:function(e,i){1&e&&(J(0,fct,4,2,"ngb-alert",0),b(1,"div",1)(2,"div",2),ge(3,"div",3),b(4,"div",4)(5,"div",5)(6,"button",6),ye("click",function(){return i.loadData("")}),ge(7,"img",7),x(),b(8,"button",6),ye("click",function(){return i.loadData(i.prevCursor)}),ge(9,"img",8),x(),b(10,"button",6),ye("click",function(){return i.loadData(i.nextCursor)}),ge(11,"img",9),x()()()()(),b(12,"div",10)(13,"table",11)(14,"thead",12)(15,"tr")(16,"th"),I(17,"Product ID"),x(),b(18,"th"),I(19,"Original Transaction ID"),x(),b(20,"th"),I(21,"Store"),x(),b(22,"th",13),I(23,"Purchase Time"),x(),b(24,"th",13),I(25,"Expiry Time"),x(),b(26,"th",13),I(27,"Create Time"),x()()(),b(28,"tbody"),J(29,pct,13,6,"ng-template",14),J(30,mct,3,0,"tr",15),x()()()),2&e&&(k("ngIf",i.error),w(6),k("disabled",0===i.subscriptions.length),w(2),k("disabled",""===i.prevCursor),w(2),k("disabled",""===i.nextCursor),w(19),k("ngForOf",i.subscriptions),w(1),k("ngIf",0===i.subscriptions.length))},dependencies:[jn,gn,To]})),t})(),resolve:[(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.listSubscriptions("",r,100,"")}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})()]}]},{path:"apiexplorer",component:Olt,resolve:[jlt]},{path:"chat",component:dct,resolve:[hct]}]},{path:"login",component:ZAe,canActivate:[eMe]},{path:"**",redirectTo:""}];let vct=(()=>{class t{}return K(t,"\u0275fac",function(e){return new(e||t)}),K(t,"\u0275mod",Di({type:t})),K(t,"\u0275inj",Ci({imports:[J9.forRoot(gct,{useHash:!0}),J9]})),t})(),yct=(()=>{class t{}return K(t,"\u0275fac",function(e){return new(e||t)}),K(t,"\u0275cmp",Rt({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(e,i){1&e&&ge(0,"router-outlet")},dependencies:[Jp]})),t})();new class kct extends Hd{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++r0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=requestAnimationFrame(()=>n.flush(null))))}recycleAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length&&(cancelAnimationFrame(e),n.scheduled=void 0)}});let Dct=1;const Tct=Promise.resolve(),YD={};function Jme(t){return t in YD&&(delete YD[t],!0)}const Kme={setImmediate(t){const n=Dct++;return YD[n]=!0,Tct.then(()=>Jme(n)&&t()),n},clearImmediate(t){Jme(t)}};new class Act extends Hd{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++r0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=Kme.setImmediate(n.flush.bind(n,null))))}recycleAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length&&(Kme.clearImmediate(e),n.scheduled=void 0)}});RegExp(/[&<>"']/g.source);const Cs={Tab:9,Enter:13,Esc:27,Space:32,ArrowUp:38,ArrowDown:40,Backspace:8};Cs[Cs.Tab]="Tab",Cs[Cs.Enter]="Enter",Cs[Cs.Esc]="Esc",Cs[Cs.Space]="Space",Cs[Cs.ArrowUp]="ArrowUp",Cs[Cs.ArrowDown]="ArrowDown",Cs[Cs.Backspace]="Backspace";const ige=new zn("ng-select-selection-model");class jut{constructor(){this._selected=[]}get value(){return this._selected}select(n,e,i){if(n.selected=!0,(!n.children||!e&&i)&&this._selected.push(n),e)if(n.parent){const r=n.parent.children.length,o=n.parent.children.filter(s=>s.selected).length;n.parent.selected=r===o}else n.children&&(this._setChildrenSelectedState(n.children,!0),this._removeChildren(n),this._selected=i&&this._activeChildren(n)?[...this._selected.filter(r=>r.parent!==n),n]:[...this._selected,...n.children.filter(r=>!r.disabled)])}unselect(n,e){if(this._selected=this._selected.filter(i=>i!==n),n.selected=!1,e)if(n.parent&&n.parent.selected){const i=n.parent.children;this._removeParent(n.parent),this._removeChildren(n.parent),this._selected.push(...i.filter(r=>r!==n&&!r.disabled)),n.parent.selected=!1}else n.children&&(this._setChildrenSelectedState(n.children,!1),this._removeChildren(n))}clear(n){this._selected=n?this._selected.filter(e=>e.disabled):[]}_setChildrenSelectedState(n,e){for(const i of n)i.disabled||(i.selected=e)}_removeChildren(n){this._selected=[...this._selected.filter(e=>e.parent!==n),...n.children.filter(e=>e.parent===n&&e.disabled&&e.selected)]}_removeParent(n){this._selected=this._selected.filter(e=>e!==n)}_activeChildren(n){return n.children.every(e=>!e.disabled||e.selected)}}const Put=function Out(){return new jut};let Lut=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({providers:[{provide:ige,useValue:Put}],imports:[Vs]}),t})(),Rut=(()=>{class t{constructor(e){K(this,"authenticationService",void 0),this.authenticationService=e}intercept(e,i){const r=this.authenticationService.currentSessionValue;return r&&r.token&&(e=e.clone({setHeaders:{Authorization:`Bearer ${r.token}`}})),i.handle(e)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(Xo))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac})),t})(),$ut=(()=>{class t{constructor(e,i){K(this,"authenticationService",void 0),K(this,"router",void 0),this.authenticationService=e,this.router=i}intercept(e,i){return i.handle(e).pipe(Ul(r=>(401===r.status?this.authenticationService.logout().subscribe({next:()=>{e.url.includes("/v3/auth")||this.router.navigate(["/login"],{queryParams:{next:this.router.routerState.snapshot.url}})}}):r.status>=500&&console.log(`${r.status}: + ${r.error.message||r.statusText}`),qp(r.error.message||r.statusText))))}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(Xo),ct(cr))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac})),t})(),But=(()=>{class t{}return K(t,"\u0275fac",function(e){return new(e||t)}),K(t,"\u0275mod",Di({type:t,bootstrap:[yct]})),K(t,"\u0275inj",Ci({providers:[JAe,Iz,{provide:C3,useValue:{host:document.location.origin,timeout:15e3}},{provide:x3,useClass:Rut,multi:!0},{provide:x3,useClass:$ut,multi:!0}],imports:[pBe,vct,qA,SSe,qAe,cFe,L$e,SAe.forRoot({apiKey:"",debug:!1,loadOnInitialization:!1}),DSe,wAe,ZV,Lut]})),t})();g2e().bootstrapModule(But).then(t=>{window.ngRef&&window.ngRef.destroy(),window.ngRef=t}).catch(t=>console.error(t))},343:(Yt,Tn)=>{"use strict";Tn.byteLength=function Ve(T){var O=et(T),Me=O[1];return 3*(O[0]+Me)/4-Me},Tn.toByteArray=function se(T){var O,wn,te=et(T),Me=te[0],Je=te[1],kt=new Oe(function ve(T,O,te){return 3*(O+te)/4-te}(0,Me,Je)),jt=0,Wt=Je>0?Me-4:Me;for(wn=0;wn>16&255,kt[jt++]=O>>8&255,kt[jt++]=255&O;return 2===Je&&(O=rt[T.charCodeAt(wn)]<<2|rt[T.charCodeAt(wn+1)]>>4,kt[jt++]=255&O),1===Je&&(O=rt[T.charCodeAt(wn)]<<10|rt[T.charCodeAt(wn+1)]<<4|rt[T.charCodeAt(wn+2)]>>2,kt[jt++]=O>>8&255,kt[jt++]=255&O),kt},Tn.fromByteArray=function D(T){for(var O,te=T.length,Me=te%3,Je=[],jt=0,Wt=te-Me;jtWt?Wt:jt+16383));return 1===Me?Je.push(De[(O=T[te-1])>>2]+De[O<<4&63]+"=="):2===Me&&Je.push(De[(O=(T[te-2]<<8)+T[te-1])>>10]+De[O>>4&63]+De[O<<2&63]+"="),Je.join("")};for(var De=[],rt=[],Oe=typeof Uint8Array<"u"?Uint8Array:Array,dt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ge=0,_e=dt.length;Ge<_e;++Ge)De[Ge]=dt[Ge],rt[dt.charCodeAt(Ge)]=Ge;function et(T){var O=T.length;if(O%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var te=T.indexOf("=");return-1===te&&(te=O),[te,te===O?0:4-te%4]}function ue(T){return De[T>>18&63]+De[T>>12&63]+De[T>>6&63]+De[63&T]}function ae(T,O,te){for(var Je=[],kt=O;kt{"use strict";var Oe=De(343),dt=De(461),Ge="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;Tn.lW=ve,Tn.h2=50;var _e=2147483647;function Ve(Te){if(Te>_e)throw new RangeError('The value "'+Te+'" is invalid for option "size"');var W=new Uint8Array(Te);return Object.setPrototypeOf(W,ve.prototype),W}function ve(Te,W,ee){if("number"==typeof Te){if("string"==typeof W)throw new TypeError('The "string" argument must be of type string. Received type number');return D(Te)}return se(Te,W,ee)}function se(Te,W,ee){if("string"==typeof Te)return function T(Te,W){if(("string"!=typeof W||""===W)&&(W="utf8"),!ve.isEncoding(W))throw new TypeError("Unknown encoding: "+W);var ee=0|Wt(Te,W),Fe=Ve(ee),nt=Fe.write(Te,W);return nt!==ee&&(Fe=Fe.slice(0,nt)),Fe}(Te,W);if(ArrayBuffer.isView(Te))return function te(Te){if(da(Te,Uint8Array)){var W=new Uint8Array(Te);return Me(W.buffer,W.byteOffset,W.byteLength)}return O(Te)}(Te);if(null==Te)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Te);if(da(Te,ArrayBuffer)||Te&&da(Te.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(da(Te,SharedArrayBuffer)||Te&&da(Te.buffer,SharedArrayBuffer)))return Me(Te,W,ee);if("number"==typeof Te)throw new TypeError('The "value" argument must not be of type number. Received type number');var Fe=Te.valueOf&&Te.valueOf();if(null!=Fe&&Fe!==Te)return ve.from(Fe,W,ee);var nt=function Je(Te){if(ve.isBuffer(Te)){var W=0|kt(Te.length),ee=Ve(W);return 0===ee.length||Te.copy(ee,0,0,W),ee}return void 0!==Te.length?"number"!=typeof Te.length||co(Te.length)?Ve(0):O(Te):"Buffer"===Te.type&&Array.isArray(Te.data)?O(Te.data):void 0}(Te);if(nt)return nt;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof Te[Symbol.toPrimitive])return ve.from(Te[Symbol.toPrimitive]("string"),W,ee);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Te)}function ue(Te){if("number"!=typeof Te)throw new TypeError('"size" argument must be of type number');if(Te<0)throw new RangeError('The value "'+Te+'" is invalid for option "size"')}function D(Te){return ue(Te),Ve(Te<0?0:0|kt(Te))}function O(Te){for(var W=Te.length<0?0:0|kt(Te.length),ee=Ve(W),Fe=0;Fe=_e)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+_e.toString(16)+" bytes");return 0|Te}function Wt(Te,W){if(ve.isBuffer(Te))return Te.length;if(ArrayBuffer.isView(Te)||da(Te,ArrayBuffer))return Te.byteLength;if("string"!=typeof Te)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Te);var ee=Te.length,Fe=arguments.length>2&&!0===arguments[2];if(!Fe&&0===ee)return 0;for(var nt=!1;;)switch(W){case"ascii":case"latin1":case"binary":return ee;case"utf8":case"utf-8":return Fc(Te).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*ee;case"hex":return ee>>>1;case"base64":return vu(Te).length;default:if(nt)return Fe?-1:Fc(Te).length;W=(""+W).toLowerCase(),nt=!0}}function wn(Te,W,ee){var Fe=!1;if((void 0===W||W<0)&&(W=0),W>this.length||((void 0===ee||ee>this.length)&&(ee=this.length),ee<=0)||(ee>>>=0)<=(W>>>=0))return"";for(Te||(Te="utf8");;)switch(Te){case"hex":return gu(this,W,ee);case"utf8":case"utf-8":return yn(this,W,ee);case"ascii":return Kn(this,W,ee);case"latin1":case"binary":return Nc(this,W,ee);case"base64":return Sa(this,W,ee);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ro(this,W,ee);default:if(Fe)throw new TypeError("Unknown encoding: "+Te);Te=(Te+"").toLowerCase(),Fe=!0}}function rn(Te,W,ee){var Fe=Te[W];Te[W]=Te[ee],Te[ee]=Fe}function Mi(Te,W,ee,Fe,nt){if(0===Te.length)return-1;if("string"==typeof ee?(Fe=ee,ee=0):ee>2147483647?ee=2147483647:ee<-2147483648&&(ee=-2147483648),co(ee=+ee)&&(ee=nt?0:Te.length-1),ee<0&&(ee=Te.length+ee),ee>=Te.length){if(nt)return-1;ee=Te.length-1}else if(ee<0){if(!nt)return-1;ee=0}if("string"==typeof W&&(W=ve.from(W,Fe)),ve.isBuffer(W))return 0===W.length?-1:zr(Te,W,ee,Fe,nt);if("number"==typeof W)return W&=255,"function"==typeof Uint8Array.prototype.indexOf?nt?Uint8Array.prototype.indexOf.call(Te,W,ee):Uint8Array.prototype.lastIndexOf.call(Te,W,ee):zr(Te,[W],ee,Fe,nt);throw new TypeError("val must be string, number or Buffer")}function zr(Te,W,ee,Fe,nt){var st,zt=1,Qt=Te.length,nr=W.length;if(void 0!==Fe&&("ucs2"===(Fe=String(Fe).toLowerCase())||"ucs-2"===Fe||"utf16le"===Fe||"utf-16le"===Fe)){if(Te.length<2||W.length<2)return-1;zt=2,Qt/=2,nr/=2,ee/=2}function A(mn,pe){return 1===zt?mn[pe]:mn.readUInt16BE(pe*zt)}if(nt){var Tt=-1;for(st=ee;stQt&&(ee=Qt-nr),st=ee;st>=0;st--){for(var Ut=!0,Vt=0;Vtnt&&(Fe=nt):Fe=nt;var zt=W.length;Fe>zt/2&&(Fe=zt/2);for(var Qt=0;Qt>8,zt.push(ee%256),zt.push(Fe);return zt}(W,Te.length-ee),Te,ee,Fe)}function Sa(Te,W,ee){return Oe.fromByteArray(0===W&&ee===Te.length?Te:Te.slice(W,ee))}function yn(Te,W,ee){ee=Math.min(Te.length,ee);for(var Fe=[],nt=W;nt239?4:zt>223?3:zt>191?2:1;if(nt+nr<=ee)switch(nr){case 1:zt<128&&(Qt=zt);break;case 2:128==(192&(A=Te[nt+1]))&&(Ut=(31&zt)<<6|63&A)>127&&(Qt=Ut);break;case 3:st=Te[nt+2],128==(192&(A=Te[nt+1]))&&128==(192&st)&&(Ut=(15&zt)<<12|(63&A)<<6|63&st)>2047&&(Ut<55296||Ut>57343)&&(Qt=Ut);break;case 4:st=Te[nt+2],Tt=Te[nt+3],128==(192&(A=Te[nt+1]))&&128==(192&st)&&128==(192&Tt)&&(Ut=(15&zt)<<18|(63&A)<<12|(63&st)<<6|63&Tt)>65535&&Ut<1114112&&(Qt=Ut)}null===Qt?(Qt=65533,nr=1):Qt>65535&&(Fe.push((Qt-=65536)>>>10&1023|55296),Qt=56320|1023&Qt),Fe.push(Qt),nt+=nr}return function kd(Te){var W=Te.length;if(W<=Cd)return String.fromCharCode.apply(String,Te);for(var ee="",Fe=0;Fent.length?ve.from(Qt).copy(nt,zt):Uint8Array.prototype.set.call(nt,Qt,zt);else{if(!ve.isBuffer(Qt))throw new TypeError('"list" argument must be an Array of Buffers');Qt.copy(nt,zt)}zt+=Qt.length}return nt},ve.byteLength=Wt,ve.prototype._isBuffer=!0,ve.prototype.swap16=function(){var W=this.length;if(W%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ee=0;eeee&&(W+=" ... "),""},Ge&&(ve.prototype[Ge]=ve.prototype.inspect),ve.prototype.compare=function(W,ee,Fe,nt,zt){if(da(W,Uint8Array)&&(W=ve.from(W,W.offset,W.byteLength)),!ve.isBuffer(W))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof W);if(void 0===ee&&(ee=0),void 0===Fe&&(Fe=W?W.length:0),void 0===nt&&(nt=0),void 0===zt&&(zt=this.length),ee<0||Fe>W.length||nt<0||zt>this.length)throw new RangeError("out of range index");if(nt>=zt&&ee>=Fe)return 0;if(nt>=zt)return-1;if(ee>=Fe)return 1;if(this===W)return 0;for(var Qt=(zt>>>=0)-(nt>>>=0),nr=(Fe>>>=0)-(ee>>>=0),A=Math.min(Qt,nr),st=this.slice(nt,zt),Tt=W.slice(ee,Fe),Ut=0;Ut>>=0,isFinite(Fe)?(Fe>>>=0,void 0===nt&&(nt="utf8")):(nt=Fe,Fe=void 0)}var zt=this.length-ee;if((void 0===Fe||Fe>zt)&&(Fe=zt),W.length>0&&(Fe<0||ee<0)||ee>this.length)throw new RangeError("Attempt to write outside buffer bounds");nt||(nt="utf8");for(var Qt=!1;;)switch(nt){case"hex":return Xr(this,W,ee,Fe);case"utf8":case"utf-8":return hs(this,W,ee,Fe);case"ascii":case"latin1":case"binary":return Ya(this,W,ee,Fe);case"base64":return tr(this,W,ee,Fe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return mu(this,W,ee,Fe);default:if(Qt)throw new TypeError("Unknown encoding: "+nt);nt=(""+nt).toLowerCase(),Qt=!0}},ve.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Cd=4096;function Kn(Te,W,ee){var Fe="";ee=Math.min(Te.length,ee);for(var nt=W;ntFe)&&(ee=Fe);for(var nt="",zt=W;ztee)throw new RangeError("Trying to access beyond buffer length")}function lo(Te,W,ee,Fe,nt,zt){if(!ve.isBuffer(Te))throw new TypeError('"buffer" argument must be a Buffer instance');if(W>nt||WTe.length)throw new RangeError("Index out of range")}function Da(Te,W,ee,Fe,nt,zt){if(ee+Fe>Te.length)throw new RangeError("Index out of range");if(ee<0)throw new RangeError("Index out of range")}function Zr(Te,W,ee,Fe,nt){return W=+W,ee>>>=0,nt||Da(Te,0,ee,4),dt.write(Te,W,ee,Fe,23,4),ee+4}function pl(Te,W,ee,Fe,nt){return W=+W,ee>>>=0,nt||Da(Te,0,ee,8),dt.write(Te,W,ee,Fe,52,8),ee+8}ve.prototype.slice=function(W,ee){var Fe=this.length;(W=~~W)<0?(W+=Fe)<0&&(W=0):W>Fe&&(W=Fe),(ee=void 0===ee?Fe:~~ee)<0?(ee+=Fe)<0&&(ee=0):ee>Fe&&(ee=Fe),ee>>=0,ee>>>=0,Fe||Co(W,ee,this.length);for(var nt=this[W],zt=1,Qt=0;++Qt>>=0,ee>>>=0,Fe||Co(W,ee,this.length);for(var nt=this[W+--ee],zt=1;ee>0&&(zt*=256);)nt+=this[W+--ee]*zt;return nt},ve.prototype.readUint8=ve.prototype.readUInt8=function(W,ee){return W>>>=0,ee||Co(W,1,this.length),this[W]},ve.prototype.readUint16LE=ve.prototype.readUInt16LE=function(W,ee){return W>>>=0,ee||Co(W,2,this.length),this[W]|this[W+1]<<8},ve.prototype.readUint16BE=ve.prototype.readUInt16BE=function(W,ee){return W>>>=0,ee||Co(W,2,this.length),this[W]<<8|this[W+1]},ve.prototype.readUint32LE=ve.prototype.readUInt32LE=function(W,ee){return W>>>=0,ee||Co(W,4,this.length),(this[W]|this[W+1]<<8|this[W+2]<<16)+16777216*this[W+3]},ve.prototype.readUint32BE=ve.prototype.readUInt32BE=function(W,ee){return W>>>=0,ee||Co(W,4,this.length),16777216*this[W]+(this[W+1]<<16|this[W+2]<<8|this[W+3])},ve.prototype.readIntLE=function(W,ee,Fe){W>>>=0,ee>>>=0,Fe||Co(W,ee,this.length);for(var nt=this[W],zt=1,Qt=0;++Qt=(zt*=128)&&(nt-=Math.pow(2,8*ee)),nt},ve.prototype.readIntBE=function(W,ee,Fe){W>>>=0,ee>>>=0,Fe||Co(W,ee,this.length);for(var nt=ee,zt=1,Qt=this[W+--nt];nt>0&&(zt*=256);)Qt+=this[W+--nt]*zt;return Qt>=(zt*=128)&&(Qt-=Math.pow(2,8*ee)),Qt},ve.prototype.readInt8=function(W,ee){return W>>>=0,ee||Co(W,1,this.length),128&this[W]?-1*(255-this[W]+1):this[W]},ve.prototype.readInt16LE=function(W,ee){W>>>=0,ee||Co(W,2,this.length);var Fe=this[W]|this[W+1]<<8;return 32768&Fe?4294901760|Fe:Fe},ve.prototype.readInt16BE=function(W,ee){W>>>=0,ee||Co(W,2,this.length);var Fe=this[W+1]|this[W]<<8;return 32768&Fe?4294901760|Fe:Fe},ve.prototype.readInt32LE=function(W,ee){return W>>>=0,ee||Co(W,4,this.length),this[W]|this[W+1]<<8|this[W+2]<<16|this[W+3]<<24},ve.prototype.readInt32BE=function(W,ee){return W>>>=0,ee||Co(W,4,this.length),this[W]<<24|this[W+1]<<16|this[W+2]<<8|this[W+3]},ve.prototype.readFloatLE=function(W,ee){return W>>>=0,ee||Co(W,4,this.length),dt.read(this,W,!0,23,4)},ve.prototype.readFloatBE=function(W,ee){return W>>>=0,ee||Co(W,4,this.length),dt.read(this,W,!1,23,4)},ve.prototype.readDoubleLE=function(W,ee){return W>>>=0,ee||Co(W,8,this.length),dt.read(this,W,!0,52,8)},ve.prototype.readDoubleBE=function(W,ee){return W>>>=0,ee||Co(W,8,this.length),dt.read(this,W,!1,52,8)},ve.prototype.writeUintLE=ve.prototype.writeUIntLE=function(W,ee,Fe,nt){W=+W,ee>>>=0,Fe>>>=0,nt||lo(this,W,ee,Fe,Math.pow(2,8*Fe)-1,0);var Qt=1,nr=0;for(this[ee]=255&W;++nr>>=0,Fe>>>=0,nt||lo(this,W,ee,Fe,Math.pow(2,8*Fe)-1,0);var Qt=Fe-1,nr=1;for(this[ee+Qt]=255&W;--Qt>=0&&(nr*=256);)this[ee+Qt]=W/nr&255;return ee+Fe},ve.prototype.writeUint8=ve.prototype.writeUInt8=function(W,ee,Fe){return W=+W,ee>>>=0,Fe||lo(this,W,ee,1,255,0),this[ee]=255&W,ee+1},ve.prototype.writeUint16LE=ve.prototype.writeUInt16LE=function(W,ee,Fe){return W=+W,ee>>>=0,Fe||lo(this,W,ee,2,65535,0),this[ee]=255&W,this[ee+1]=W>>>8,ee+2},ve.prototype.writeUint16BE=ve.prototype.writeUInt16BE=function(W,ee,Fe){return W=+W,ee>>>=0,Fe||lo(this,W,ee,2,65535,0),this[ee]=W>>>8,this[ee+1]=255&W,ee+2},ve.prototype.writeUint32LE=ve.prototype.writeUInt32LE=function(W,ee,Fe){return W=+W,ee>>>=0,Fe||lo(this,W,ee,4,4294967295,0),this[ee+3]=W>>>24,this[ee+2]=W>>>16,this[ee+1]=W>>>8,this[ee]=255&W,ee+4},ve.prototype.writeUint32BE=ve.prototype.writeUInt32BE=function(W,ee,Fe){return W=+W,ee>>>=0,Fe||lo(this,W,ee,4,4294967295,0),this[ee]=W>>>24,this[ee+1]=W>>>16,this[ee+2]=W>>>8,this[ee+3]=255&W,ee+4},ve.prototype.writeIntLE=function(W,ee,Fe,nt){if(W=+W,ee>>>=0,!nt){var zt=Math.pow(2,8*Fe-1);lo(this,W,ee,Fe,zt-1,-zt)}var Qt=0,nr=1,A=0;for(this[ee]=255&W;++Qt>0)-A&255;return ee+Fe},ve.prototype.writeIntBE=function(W,ee,Fe,nt){if(W=+W,ee>>>=0,!nt){var zt=Math.pow(2,8*Fe-1);lo(this,W,ee,Fe,zt-1,-zt)}var Qt=Fe-1,nr=1,A=0;for(this[ee+Qt]=255&W;--Qt>=0&&(nr*=256);)W<0&&0===A&&0!==this[ee+Qt+1]&&(A=1),this[ee+Qt]=(W/nr>>0)-A&255;return ee+Fe},ve.prototype.writeInt8=function(W,ee,Fe){return W=+W,ee>>>=0,Fe||lo(this,W,ee,1,127,-128),W<0&&(W=255+W+1),this[ee]=255&W,ee+1},ve.prototype.writeInt16LE=function(W,ee,Fe){return W=+W,ee>>>=0,Fe||lo(this,W,ee,2,32767,-32768),this[ee]=255&W,this[ee+1]=W>>>8,ee+2},ve.prototype.writeInt16BE=function(W,ee,Fe){return W=+W,ee>>>=0,Fe||lo(this,W,ee,2,32767,-32768),this[ee]=W>>>8,this[ee+1]=255&W,ee+2},ve.prototype.writeInt32LE=function(W,ee,Fe){return W=+W,ee>>>=0,Fe||lo(this,W,ee,4,2147483647,-2147483648),this[ee]=255&W,this[ee+1]=W>>>8,this[ee+2]=W>>>16,this[ee+3]=W>>>24,ee+4},ve.prototype.writeInt32BE=function(W,ee,Fe){return W=+W,ee>>>=0,Fe||lo(this,W,ee,4,2147483647,-2147483648),W<0&&(W=4294967295+W+1),this[ee]=W>>>24,this[ee+1]=W>>>16,this[ee+2]=W>>>8,this[ee+3]=255&W,ee+4},ve.prototype.writeFloatLE=function(W,ee,Fe){return Zr(this,W,ee,!0,Fe)},ve.prototype.writeFloatBE=function(W,ee,Fe){return Zr(this,W,ee,!1,Fe)},ve.prototype.writeDoubleLE=function(W,ee,Fe){return pl(this,W,ee,!0,Fe)},ve.prototype.writeDoubleBE=function(W,ee,Fe){return pl(this,W,ee,!1,Fe)},ve.prototype.copy=function(W,ee,Fe,nt){if(!ve.isBuffer(W))throw new TypeError("argument should be a Buffer");if(Fe||(Fe=0),!nt&&0!==nt&&(nt=this.length),ee>=W.length&&(ee=W.length),ee||(ee=0),nt>0&&nt=this.length)throw new RangeError("Index out of range");if(nt<0)throw new RangeError("sourceEnd out of bounds");nt>this.length&&(nt=this.length),W.length-ee>>=0,Fe=void 0===Fe?this.length:Fe>>>0,W||(W=0),"number"==typeof W)for(Qt=ee;Qt55295&&ee<57344){if(!nt){if(ee>56319){(W-=3)>-1&&zt.push(239,191,189);continue}if(Qt+1===Fe){(W-=3)>-1&&zt.push(239,191,189);continue}nt=ee;continue}if(ee<56320){(W-=3)>-1&&zt.push(239,191,189),nt=ee;continue}ee=65536+(nt-55296<<10|ee-56320)}else nt&&(W-=3)>-1&&zt.push(239,191,189);if(nt=null,ee<128){if((W-=1)<0)break;zt.push(ee)}else if(ee<2048){if((W-=2)<0)break;zt.push(ee>>6|192,63&ee|128)}else if(ee<65536){if((W-=3)<0)break;zt.push(ee>>12|224,ee>>6&63|128,63&ee|128)}else{if(!(ee<1114112))throw new Error("Invalid code point");if((W-=4)<0)break;zt.push(ee>>18|240,ee>>12&63|128,ee>>6&63|128,63&ee|128)}}return zt}function vu(Te){return Oe.toByteArray(function Sd(Te){if((Te=(Te=Te.split("=")[0]).trim().replace(nc,"")).length<2)return"";for(;Te.length%4!=0;)Te+="=";return Te}(Te))}function Ja(Te,W,ee,Fe){for(var nt=0;nt=W.length||nt>=Te.length);++nt)W[nt+ee]=Te[nt];return nt}function da(Te,W){return Te instanceof W||null!=Te&&null!=Te.constructor&&null!=Te.constructor.name&&Te.constructor.name===W.name}function co(Te){return Te!=Te}var ml=function(){for(var Te="0123456789abcdef",W=new Array(256),ee=0;ee<16;++ee)for(var Fe=16*ee,nt=0;nt<16;++nt)W[Fe+nt]=Te[ee]+Te[nt];return W}()},797:function(Yt){Yt.exports=function(Tn){var De={};function rt(Oe){if(De[Oe])return De[Oe].exports;var dt=De[Oe]={exports:{},id:Oe,loaded:!1};return Tn[Oe].call(dt.exports,dt,dt.exports,rt),dt.loaded=!0,dt.exports}return rt.m=Tn,rt.c=De,rt.p="",rt(0)}([function(Tn,De,rt){"use strict";Object.defineProperty(De,"__esModule",{value:!0});var Oe=rt(1),dt=rt(3),Ge=rt(8),_e=rt(15);function et(ae,D,T){var O=null,te=function(Mi,zr){T&&T(Mi,zr),O&&O.visit(Mi,zr)},Me="function"==typeof T?te:null,Je=!1;if(D){var kt="boolean"==typeof D.attachComment&&D.attachComment;((Je="boolean"==typeof D.comment&&D.comment)||kt)&&((O=new Oe.CommentHandler).attach=kt,D.comment=!0,Me=te)}var Wt,jt=!1;D&&"string"==typeof D.sourceType&&(jt="module"===D.sourceType),Wt=D&&"boolean"==typeof D.jsx&&D.jsx?new dt.JSXParser(ae,D,Me):new Ge.Parser(ae,D,Me);var rn=jt?Wt.parseModule():Wt.parseScript();return Je&&O&&(rn.comments=O.comments),Wt.config.tokens&&(rn.tokens=Wt.tokens),Wt.config.tolerant&&(rn.errors=Wt.errorHandler.errors),rn}De.parse=et,De.parseModule=function Ve(ae,D,T){var O=D||{};return O.sourceType="module",et(ae,O,T)},De.parseScript=function ve(ae,D,T){var O=D||{};return O.sourceType="script",et(ae,O,T)},De.tokenize=function se(ae,D,T){var te,O=new _e.Tokenizer(ae,D);te=[];try{for(;;){var Me=O.getNextToken();if(!Me)break;T&&(Me=T(Me)),te.push(Me)}}catch(Je){O.errorHandler.tolerate(Je)}return O.errorHandler.tolerant&&(te.errors=O.errors()),te};var ue=rt(2);De.Syntax=ue.Syntax,De.version="4.0.1"},function(Tn,De,rt){"use strict";Object.defineProperty(De,"__esModule",{value:!0});var Oe=rt(2),dt=function(){function Ge(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return Ge.prototype.insertInnerComments=function(_e,et){if(_e.type===Oe.Syntax.BlockStatement&&0===_e.body.length){for(var Ve=[],ve=this.leading.length-1;ve>=0;--ve){var se=this.leading[ve];et.end.offset>=se.start&&(Ve.unshift(se.comment),this.leading.splice(ve,1),this.trailing.splice(ve,1))}Ve.length&&(_e.innerComments=Ve)}},Ge.prototype.findTrailingComments=function(_e){var et=[];if(this.trailing.length>0){for(var Ve=this.trailing.length-1;Ve>=0;--Ve){var ve=this.trailing[Ve];ve.start>=_e.end.offset&&et.unshift(ve.comment)}return this.trailing.length=0,et}var se=this.stack[this.stack.length-1];if(se&&se.node.trailingComments){var ue=se.node.trailingComments[0];ue&&ue.range[0]>=_e.end.offset&&(et=se.node.trailingComments,delete se.node.trailingComments)}return et},Ge.prototype.findLeadingComments=function(_e){for(var Ve,et=[];this.stack.length>0&&(ve=this.stack[this.stack.length-1])&&ve.start>=_e.start.offset;)Ve=ve.node,this.stack.pop();if(Ve){for(var ue=(Ve.leadingComments?Ve.leadingComments.length:0)-1;ue>=0;--ue){var ae=Ve.leadingComments[ue];ae.range[1]<=_e.start.offset&&(et.unshift(ae),Ve.leadingComments.splice(ue,1))}return Ve.leadingComments&&0===Ve.leadingComments.length&&delete Ve.leadingComments,et}for(ue=this.leading.length-1;ue>=0;--ue){var ve;(ve=this.leading[ue]).start<=_e.start.offset&&(et.unshift(ve.comment),this.leading.splice(ue,1))}return et},Ge.prototype.visitNode=function(_e,et){if(!(_e.type===Oe.Syntax.Program&&_e.body.length>0)){this.insertInnerComments(_e,et);var Ve=this.findTrailingComments(et),ve=this.findLeadingComments(et);ve.length>0&&(_e.leadingComments=ve),Ve.length>0&&(_e.trailingComments=Ve),this.stack.push({node:_e,start:et.start.offset})}},Ge.prototype.visitComment=function(_e,et){var Ve="L"===_e.type[0]?"Line":"Block",ve={type:Ve,value:_e.value};if(_e.range&&(ve.range=_e.range),_e.loc&&(ve.loc=_e.loc),this.comments.push(ve),this.attach){var se={comment:{type:Ve,value:_e.value,range:[et.start.offset,et.end.offset]},start:et.start.offset};_e.loc&&(se.comment.loc=_e.loc),_e.type=Ve,this.leading.push(se),this.trailing.push(se)}},Ge.prototype.visit=function(_e,et){"LineComment"===_e.type||"BlockComment"===_e.type?this.visitComment(_e,et):this.attach&&this.visitNode(_e,et)},Ge}();De.CommentHandler=dt},function(Tn,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0}),De.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(Tn,De,rt){"use strict";var D,Oe=this&&this.__extends||(D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,O){T.__proto__=O}||function(T,O){for(var te in O)O.hasOwnProperty(te)&&(T[te]=O[te])},function(T,O){function te(){this.constructor=T}D(T,O),T.prototype=null===O?Object.create(O):(te.prototype=O.prototype,new te)});Object.defineProperty(De,"__esModule",{value:!0});var dt=rt(4),Ge=rt(5),_e=rt(6),et=rt(7),Ve=rt(8),ve=rt(13),se=rt(14);function ue(D){var T;switch(D.type){case _e.JSXSyntax.JSXIdentifier:T=D.name;break;case _e.JSXSyntax.JSXNamespacedName:var te=D;T=ue(te.namespace)+":"+ue(te.name);break;case _e.JSXSyntax.JSXMemberExpression:var Me=D;T=ue(Me.object)+"."+ue(Me.property)}return T}ve.TokenName[100]="JSXIdentifier",ve.TokenName[101]="JSXText";var ae=function(D){function T(O,te,Me){return D.call(this,O,te,Me)||this}return Oe(T,D),T.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():D.prototype.parsePrimaryExpression.call(this)},T.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},T.prototype.finishJSX=function(){this.nextToken()},T.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},T.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},T.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},T.prototype.scanXHTMLEntity=function(O){for(var te="&",Me=!0,Je=!1,kt=!1,jt=!1;!this.scanner.eof()&&Me&&!Je;){var Wt=this.scanner.source[this.scanner.index];if(Wt===O)break;if(Je=";"===Wt,te+=Wt,++this.scanner.index,!Je)switch(te.length){case 2:kt="#"===Wt;break;case 3:kt&&(Me=(jt="x"===Wt)||dt.Character.isDecimalDigit(Wt.charCodeAt(0)),kt=kt&&!jt);break;default:Me=(Me=Me&&!(kt&&!dt.Character.isDecimalDigit(Wt.charCodeAt(0))))&&!(jt&&!dt.Character.isHexDigit(Wt.charCodeAt(0)))}}if(Me&&Je&&te.length>2){var wn=te.substr(1,te.length-2);kt&&wn.length>1?te=String.fromCharCode(parseInt(wn.substr(1),10)):jt&&wn.length>2?te=String.fromCharCode(parseInt("0"+wn.substr(1),16)):!kt&&!jt&&se.XHTMLEntities[wn]&&(te=se.XHTMLEntities[wn])}return te},T.prototype.lexJSX=function(){var O=this.scanner.source.charCodeAt(this.scanner.index);if(60===O||62===O||47===O||58===O||61===O||123===O||125===O)return{type:7,value:te=this.scanner.source[this.scanner.index++],lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index};if(34===O||39===O){for(var Me=this.scanner.index,Je=this.scanner.source[this.scanner.index++],kt="";!this.scanner.eof()&&(jt=this.scanner.source[this.scanner.index++])!==Je;)kt+="&"===jt?this.scanXHTMLEntity(Je):jt;return{type:8,value:kt,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:Me,end:this.scanner.index}}if(46===O){var te,Wt=this.scanner.source.charCodeAt(this.scanner.index+1),wn=this.scanner.source.charCodeAt(this.scanner.index+2);return Me=this.scanner.index,this.scanner.index+=(te=46===Wt&&46===wn?"...":".").length,{type:7,value:te,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:Me,end:this.scanner.index}}if(96===O)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(dt.Character.isIdentifierStart(O)&&92!==O){for(Me=this.scanner.index,++this.scanner.index;!this.scanner.eof();){var jt=this.scanner.source.charCodeAt(this.scanner.index);if(dt.Character.isIdentifierPart(jt)&&92!==jt)++this.scanner.index;else{if(45!==jt)break;++this.scanner.index}}return{type:100,value:this.scanner.source.slice(Me,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:Me,end:this.scanner.index}}return this.scanner.lex()},T.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var O=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(O)),O},T.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var O=this.scanner.index,te="";!this.scanner.eof();){var Me=this.scanner.source[this.scanner.index];if("{"===Me||"<"===Me)break;++this.scanner.index,te+=Me,dt.Character.isLineTerminator(Me.charCodeAt(0))&&(++this.scanner.lineNumber,"\r"===Me&&"\n"===this.scanner.source[this.scanner.index]&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var Je={type:101,value:te,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:O,end:this.scanner.index};return te.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(Je)),Je},T.prototype.peekJSXToken=function(){var O=this.scanner.saveState();this.scanner.scanComments();var te=this.lexJSX();return this.scanner.restoreState(O),te},T.prototype.expectJSX=function(O){var te=this.nextJSXToken();(7!==te.type||te.value!==O)&&this.throwUnexpectedToken(te)},T.prototype.matchJSX=function(O){var te=this.peekJSXToken();return 7===te.type&&te.value===O},T.prototype.parseJSXIdentifier=function(){var O=this.createJSXNode(),te=this.nextJSXToken();return 100!==te.type&&this.throwUnexpectedToken(te),this.finalize(O,new Ge.JSXIdentifier(te.value))},T.prototype.parseJSXElementName=function(){var O=this.createJSXNode(),te=this.parseJSXIdentifier();if(this.matchJSX(":")){var Me=te;this.expectJSX(":");var Je=this.parseJSXIdentifier();te=this.finalize(O,new Ge.JSXNamespacedName(Me,Je))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var kt=te;this.expectJSX(".");var jt=this.parseJSXIdentifier();te=this.finalize(O,new Ge.JSXMemberExpression(kt,jt))}return te},T.prototype.parseJSXAttributeName=function(){var te,O=this.createJSXNode(),Me=this.parseJSXIdentifier();if(this.matchJSX(":")){var Je=Me;this.expectJSX(":");var kt=this.parseJSXIdentifier();te=this.finalize(O,new Ge.JSXNamespacedName(Je,kt))}else te=Me;return te},T.prototype.parseJSXStringLiteralAttribute=function(){var O=this.createJSXNode(),te=this.nextJSXToken();8!==te.type&&this.throwUnexpectedToken(te);var Me=this.getTokenRaw(te);return this.finalize(O,new et.Literal(te.value,Me))},T.prototype.parseJSXExpressionAttribute=function(){var O=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var te=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(O,new Ge.JSXExpressionContainer(te))},T.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},T.prototype.parseJSXNameValueAttribute=function(){var O=this.createJSXNode(),te=this.parseJSXAttributeName(),Me=null;return this.matchJSX("=")&&(this.expectJSX("="),Me=this.parseJSXAttributeValue()),this.finalize(O,new Ge.JSXAttribute(te,Me))},T.prototype.parseJSXSpreadAttribute=function(){var O=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var te=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(O,new Ge.JSXSpreadAttribute(te))},T.prototype.parseJSXAttributes=function(){for(var O=[];!this.matchJSX("/")&&!this.matchJSX(">");){var te=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();O.push(te)}return O},T.prototype.parseJSXOpeningElement=function(){var O=this.createJSXNode();this.expectJSX("<");var te=this.parseJSXElementName(),Me=this.parseJSXAttributes(),Je=this.matchJSX("/");return Je&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(O,new Ge.JSXOpeningElement(te,Je,Me))},T.prototype.parseJSXBoundaryElement=function(){var O=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var te=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(O,new Ge.JSXClosingElement(te))}var Me=this.parseJSXElementName(),Je=this.parseJSXAttributes(),kt=this.matchJSX("/");return kt&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(O,new Ge.JSXOpeningElement(Me,kt,Je))},T.prototype.parseJSXEmptyExpression=function(){var O=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(O,new Ge.JSXEmptyExpression)},T.prototype.parseJSXExpressionContainer=function(){var te,O=this.createJSXNode();return this.expectJSX("{"),this.matchJSX("}")?(te=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),te=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(O,new Ge.JSXExpressionContainer(te))},T.prototype.parseJSXChildren=function(){for(var O=[];!this.scanner.eof();){var te=this.createJSXChildNode(),Me=this.nextJSXText();if(Me.start0))break;jt=this.finalize(O.node,new Ge.JSXElement(O.opening,O.children,O.closing)),(O=te[te.length-1]).children.push(jt),te.pop()}}return O},T.prototype.parseJSXElement=function(){var O=this.createJSXNode(),te=this.parseJSXOpeningElement(),Me=[],Je=null;if(!te.selfClosing){var kt=this.parseComplexJSXElement({node:O,opening:te,closing:Je,children:Me});Me=kt.children,Je=kt.closing}return this.finalize(O,new Ge.JSXElement(te,Me,Je))},T.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var O=this.parseJSXElement();return this.finishJSX(),O},T.prototype.isStartOfExpression=function(){return D.prototype.isStartOfExpression.call(this)||this.match("<")},T}(Ve.Parser);De.JSXParser=ae},function(Tn,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0});var rt={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};De.Character={fromCodePoint:function(Oe){return Oe<65536?String.fromCharCode(Oe):String.fromCharCode(55296+(Oe-65536>>10))+String.fromCharCode(56320+(Oe-65536&1023))},isWhiteSpace:function(Oe){return 32===Oe||9===Oe||11===Oe||12===Oe||160===Oe||Oe>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(Oe)>=0},isLineTerminator:function(Oe){return 10===Oe||13===Oe||8232===Oe||8233===Oe},isIdentifierStart:function(Oe){return 36===Oe||95===Oe||Oe>=65&&Oe<=90||Oe>=97&&Oe<=122||92===Oe||Oe>=128&&rt.NonAsciiIdentifierStart.test(De.Character.fromCodePoint(Oe))},isIdentifierPart:function(Oe){return 36===Oe||95===Oe||Oe>=65&&Oe<=90||Oe>=97&&Oe<=122||Oe>=48&&Oe<=57||92===Oe||Oe>=128&&rt.NonAsciiIdentifierPart.test(De.Character.fromCodePoint(Oe))},isDecimalDigit:function(Oe){return Oe>=48&&Oe<=57},isHexDigit:function(Oe){return Oe>=48&&Oe<=57||Oe>=65&&Oe<=70||Oe>=97&&Oe<=102},isOctalDigit:function(Oe){return Oe>=48&&Oe<=55}}},function(Tn,De,rt){"use strict";Object.defineProperty(De,"__esModule",{value:!0});var Oe=rt(6);De.JSXClosingElement=function O(te){this.type=Oe.JSXSyntax.JSXClosingElement,this.name=te},De.JSXElement=function O(te,Me,Je){this.type=Oe.JSXSyntax.JSXElement,this.openingElement=te,this.children=Me,this.closingElement=Je},De.JSXEmptyExpression=function O(){this.type=Oe.JSXSyntax.JSXEmptyExpression},De.JSXExpressionContainer=function O(te){this.type=Oe.JSXSyntax.JSXExpressionContainer,this.expression=te},De.JSXIdentifier=function O(te){this.type=Oe.JSXSyntax.JSXIdentifier,this.name=te},De.JSXMemberExpression=function O(te,Me){this.type=Oe.JSXSyntax.JSXMemberExpression,this.object=te,this.property=Me},De.JSXAttribute=function O(te,Me){this.type=Oe.JSXSyntax.JSXAttribute,this.name=te,this.value=Me},De.JSXNamespacedName=function O(te,Me){this.type=Oe.JSXSyntax.JSXNamespacedName,this.namespace=te,this.name=Me},De.JSXOpeningElement=function O(te,Me,Je){this.type=Oe.JSXSyntax.JSXOpeningElement,this.name=te,this.selfClosing=Me,this.attributes=Je},De.JSXSpreadAttribute=function O(te){this.type=Oe.JSXSyntax.JSXSpreadAttribute,this.argument=te},De.JSXText=function O(te,Me){this.type=Oe.JSXSyntax.JSXText,this.value=te,this.raw=Me}},function(Tn,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0}),De.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(Tn,De,rt){"use strict";Object.defineProperty(De,"__esModule",{value:!0});var Oe=rt(2);De.ArrayExpression=function We(Xe){this.type=Oe.Syntax.ArrayExpression,this.elements=Xe},De.ArrayPattern=function We(Xe){this.type=Oe.Syntax.ArrayPattern,this.elements=Xe},De.ArrowFunctionExpression=function We(Xe,bt,Cn){this.type=Oe.Syntax.ArrowFunctionExpression,this.id=null,this.params=Xe,this.body=bt,this.generator=!1,this.expression=Cn,this.async=!1},De.AssignmentExpression=function We(Xe,bt,Cn){this.type=Oe.Syntax.AssignmentExpression,this.operator=Xe,this.left=bt,this.right=Cn},De.AssignmentPattern=function We(Xe,bt){this.type=Oe.Syntax.AssignmentPattern,this.left=Xe,this.right=bt},De.AsyncArrowFunctionExpression=function We(Xe,bt,Cn){this.type=Oe.Syntax.ArrowFunctionExpression,this.id=null,this.params=Xe,this.body=bt,this.generator=!1,this.expression=Cn,this.async=!0},De.AsyncFunctionDeclaration=function We(Xe,bt,Cn){this.type=Oe.Syntax.FunctionDeclaration,this.id=Xe,this.params=bt,this.body=Cn,this.generator=!1,this.expression=!1,this.async=!0},De.AsyncFunctionExpression=function We(Xe,bt,Cn){this.type=Oe.Syntax.FunctionExpression,this.id=Xe,this.params=bt,this.body=Cn,this.generator=!1,this.expression=!1,this.async=!0},De.AwaitExpression=function We(Xe){this.type=Oe.Syntax.AwaitExpression,this.argument=Xe},De.BinaryExpression=function We(Xe,bt,Cn){this.type="||"===Xe||"&&"===Xe?Oe.Syntax.LogicalExpression:Oe.Syntax.BinaryExpression,this.operator=Xe,this.left=bt,this.right=Cn},De.BlockStatement=function We(Xe){this.type=Oe.Syntax.BlockStatement,this.body=Xe},De.BreakStatement=function We(Xe){this.type=Oe.Syntax.BreakStatement,this.label=Xe},De.CallExpression=function We(Xe,bt){this.type=Oe.Syntax.CallExpression,this.callee=Xe,this.arguments=bt},De.CatchClause=function We(Xe,bt){this.type=Oe.Syntax.CatchClause,this.param=Xe,this.body=bt},De.ClassBody=function We(Xe){this.type=Oe.Syntax.ClassBody,this.body=Xe},De.ClassDeclaration=function We(Xe,bt,Cn){this.type=Oe.Syntax.ClassDeclaration,this.id=Xe,this.superClass=bt,this.body=Cn},De.ClassExpression=function We(Xe,bt,Cn){this.type=Oe.Syntax.ClassExpression,this.id=Xe,this.superClass=bt,this.body=Cn},De.ComputedMemberExpression=function We(Xe,bt){this.type=Oe.Syntax.MemberExpression,this.computed=!0,this.object=Xe,this.property=bt},De.ConditionalExpression=function We(Xe,bt,Cn){this.type=Oe.Syntax.ConditionalExpression,this.test=Xe,this.consequent=bt,this.alternate=Cn},De.ContinueStatement=function We(Xe){this.type=Oe.Syntax.ContinueStatement,this.label=Xe},De.DebuggerStatement=function We(){this.type=Oe.Syntax.DebuggerStatement},De.Directive=function We(Xe,bt){this.type=Oe.Syntax.ExpressionStatement,this.expression=Xe,this.directive=bt},De.DoWhileStatement=function We(Xe,bt){this.type=Oe.Syntax.DoWhileStatement,this.body=Xe,this.test=bt},De.EmptyStatement=function We(){this.type=Oe.Syntax.EmptyStatement},De.ExportAllDeclaration=function We(Xe){this.type=Oe.Syntax.ExportAllDeclaration,this.source=Xe},De.ExportDefaultDeclaration=function We(Xe){this.type=Oe.Syntax.ExportDefaultDeclaration,this.declaration=Xe},De.ExportNamedDeclaration=function We(Xe,bt,Cn){this.type=Oe.Syntax.ExportNamedDeclaration,this.declaration=Xe,this.specifiers=bt,this.source=Cn},De.ExportSpecifier=function We(Xe,bt){this.type=Oe.Syntax.ExportSpecifier,this.exported=bt,this.local=Xe},De.ExpressionStatement=function We(Xe){this.type=Oe.Syntax.ExpressionStatement,this.expression=Xe},De.ForInStatement=function We(Xe,bt,Cn){this.type=Oe.Syntax.ForInStatement,this.left=Xe,this.right=bt,this.body=Cn,this.each=!1},De.ForOfStatement=function We(Xe,bt,Cn){this.type=Oe.Syntax.ForOfStatement,this.left=Xe,this.right=bt,this.body=Cn},De.ForStatement=function We(Xe,bt,Cn,jr){this.type=Oe.Syntax.ForStatement,this.init=Xe,this.test=bt,this.update=Cn,this.body=jr},De.FunctionDeclaration=function We(Xe,bt,Cn,jr){this.type=Oe.Syntax.FunctionDeclaration,this.id=Xe,this.params=bt,this.body=Cn,this.generator=jr,this.expression=!1,this.async=!1},De.FunctionExpression=function We(Xe,bt,Cn,jr){this.type=Oe.Syntax.FunctionExpression,this.id=Xe,this.params=bt,this.body=Cn,this.generator=jr,this.expression=!1,this.async=!1},De.Identifier=function We(Xe){this.type=Oe.Syntax.Identifier,this.name=Xe},De.IfStatement=function We(Xe,bt,Cn){this.type=Oe.Syntax.IfStatement,this.test=Xe,this.consequent=bt,this.alternate=Cn},De.ImportDeclaration=function We(Xe,bt){this.type=Oe.Syntax.ImportDeclaration,this.specifiers=Xe,this.source=bt},De.ImportDefaultSpecifier=function We(Xe){this.type=Oe.Syntax.ImportDefaultSpecifier,this.local=Xe},De.ImportNamespaceSpecifier=function We(Xe){this.type=Oe.Syntax.ImportNamespaceSpecifier,this.local=Xe},De.ImportSpecifier=function We(Xe,bt){this.type=Oe.Syntax.ImportSpecifier,this.local=Xe,this.imported=bt},De.LabeledStatement=function We(Xe,bt){this.type=Oe.Syntax.LabeledStatement,this.label=Xe,this.body=bt},De.Literal=function We(Xe,bt){this.type=Oe.Syntax.Literal,this.value=Xe,this.raw=bt},De.MetaProperty=function We(Xe,bt){this.type=Oe.Syntax.MetaProperty,this.meta=Xe,this.property=bt},De.MethodDefinition=function We(Xe,bt,Cn,jr,Y0){this.type=Oe.Syntax.MethodDefinition,this.key=Xe,this.computed=bt,this.value=Cn,this.kind=jr,this.static=Y0},De.Module=function We(Xe){this.type=Oe.Syntax.Program,this.body=Xe,this.sourceType="module"},De.NewExpression=function We(Xe,bt){this.type=Oe.Syntax.NewExpression,this.callee=Xe,this.arguments=bt},De.ObjectExpression=function We(Xe){this.type=Oe.Syntax.ObjectExpression,this.properties=Xe},De.ObjectPattern=function We(Xe){this.type=Oe.Syntax.ObjectPattern,this.properties=Xe},De.Property=function We(Xe,bt,Cn,jr,Y0,Gi){this.type=Oe.Syntax.Property,this.key=bt,this.computed=Cn,this.value=jr,this.kind=Xe,this.method=Y0,this.shorthand=Gi},De.RegexLiteral=function We(Xe,bt,Cn,jr){this.type=Oe.Syntax.Literal,this.value=Xe,this.raw=bt,this.regex={pattern:Cn,flags:jr}},De.RestElement=function We(Xe){this.type=Oe.Syntax.RestElement,this.argument=Xe},De.ReturnStatement=function We(Xe){this.type=Oe.Syntax.ReturnStatement,this.argument=Xe},De.Script=function We(Xe){this.type=Oe.Syntax.Program,this.body=Xe,this.sourceType="script"},De.SequenceExpression=function We(Xe){this.type=Oe.Syntax.SequenceExpression,this.expressions=Xe},De.SpreadElement=function We(Xe){this.type=Oe.Syntax.SpreadElement,this.argument=Xe},De.StaticMemberExpression=function We(Xe,bt){this.type=Oe.Syntax.MemberExpression,this.computed=!1,this.object=Xe,this.property=bt},De.Super=function We(){this.type=Oe.Syntax.Super},De.SwitchCase=function We(Xe,bt){this.type=Oe.Syntax.SwitchCase,this.test=Xe,this.consequent=bt},De.SwitchStatement=function We(Xe,bt){this.type=Oe.Syntax.SwitchStatement,this.discriminant=Xe,this.cases=bt},De.TaggedTemplateExpression=function We(Xe,bt){this.type=Oe.Syntax.TaggedTemplateExpression,this.tag=Xe,this.quasi=bt},De.TemplateElement=function We(Xe,bt){this.type=Oe.Syntax.TemplateElement,this.value=Xe,this.tail=bt},De.TemplateLiteral=function We(Xe,bt){this.type=Oe.Syntax.TemplateLiteral,this.quasis=Xe,this.expressions=bt},De.ThisExpression=function We(){this.type=Oe.Syntax.ThisExpression},De.ThrowStatement=function We(Xe){this.type=Oe.Syntax.ThrowStatement,this.argument=Xe},De.TryStatement=function We(Xe,bt,Cn){this.type=Oe.Syntax.TryStatement,this.block=Xe,this.handler=bt,this.finalizer=Cn},De.UnaryExpression=function We(Xe,bt){this.type=Oe.Syntax.UnaryExpression,this.operator=Xe,this.argument=bt,this.prefix=!0},De.UpdateExpression=function We(Xe,bt,Cn){this.type=Oe.Syntax.UpdateExpression,this.operator=Xe,this.argument=bt,this.prefix=Cn},De.VariableDeclaration=function We(Xe,bt){this.type=Oe.Syntax.VariableDeclaration,this.declarations=Xe,this.kind=bt},De.VariableDeclarator=function We(Xe,bt){this.type=Oe.Syntax.VariableDeclarator,this.id=Xe,this.init=bt},De.WhileStatement=function We(Xe,bt){this.type=Oe.Syntax.WhileStatement,this.test=Xe,this.body=bt},De.WithStatement=function We(Xe,bt){this.type=Oe.Syntax.WithStatement,this.object=Xe,this.body=bt},De.YieldExpression=function We(Xe,bt){this.type=Oe.Syntax.YieldExpression,this.argument=Xe,this.delegate=bt}},function(Tn,De,rt){"use strict";Object.defineProperty(De,"__esModule",{value:!0});var Oe=rt(9),dt=rt(10),Ge=rt(11),_e=rt(7),et=rt(12),Ve=rt(2),ve=rt(13),se="ArrowParameterPlaceHolder",ue=function(){function ae(D,T,O){void 0===T&&(T={}),this.config={range:"boolean"==typeof T.range&&T.range,loc:"boolean"==typeof T.loc&&T.loc,source:null,tokens:"boolean"==typeof T.tokens&&T.tokens,comment:"boolean"==typeof T.comment&&T.comment,tolerant:"boolean"==typeof T.tolerant&&T.tolerant},this.config.loc&&T.source&&null!==T.source&&(this.config.source=String(T.source)),this.delegate=O,this.errorHandler=new dt.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new et.Scanner(D,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return ae.prototype.throwError=function(D){for(var T=[],O=1;O0&&this.delegate)for(var T=0;T>="===D||">>>="===D||"&="===D||"^="===D||"|="===D},ae.prototype.isolateCoverGrammar=function(D){var T=this.context.isBindingElement,O=this.context.isAssignmentTarget,te=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var Me=D.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=T,this.context.isAssignmentTarget=O,this.context.firstCoverInitializedNameError=te,Me},ae.prototype.inheritCoverGrammar=function(D){var T=this.context.isBindingElement,O=this.context.isAssignmentTarget,te=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var Me=D.call(this);return this.context.isBindingElement=this.context.isBindingElement&&T,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&O,this.context.firstCoverInitializedNameError=te||this.context.firstCoverInitializedNameError,Me},ae.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(2!==this.lookahead.type&&!this.match("}")&&this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},ae.prototype.parsePrimaryExpression=function(){var T,O,te,D=this.createNode();switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&"await"===this.lookahead.value&&this.tolerateUnexpectedToken(this.lookahead),T=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(D,new _e.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,Ge.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,O=this.nextToken(),te=this.getTokenRaw(O),T=this.finalize(D,new _e.Literal(O.value,te));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,O=this.nextToken(),te=this.getTokenRaw(O),T=this.finalize(D,new _e.Literal("true"===O.value,te));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,O=this.nextToken(),te=this.getTokenRaw(O),T=this.finalize(D,new _e.Literal(null,te));break;case 10:T=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,T=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":T=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":T=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,O=this.nextRegexToken(),te=this.getTokenRaw(O),T=this.finalize(D,new _e.RegexLiteral(O.regex,te,O.pattern,O.flags));break;default:T=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?T=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?T=this.finalize(D,new _e.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?T=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),T=this.finalize(D,new _e.ThisExpression)):T=this.matchKeyword("class")?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:T=this.throwUnexpectedToken(this.nextToken())}return T},ae.prototype.parseSpreadElement=function(){var D=this.createNode();this.expect("...");var T=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(D,new _e.SpreadElement(T))},ae.prototype.parseArrayInitializer=function(){var D=this.createNode(),T=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),T.push(null);else if(this.match("...")){var O=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),T.push(O)}else T.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(D,new _e.ArrayExpression(T))},ae.prototype.parsePropertyMethod=function(D){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var T=this.context.strict,O=this.context.allowStrictDirective;this.context.allowStrictDirective=D.simple;var te=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&D.firstRestricted&&this.tolerateUnexpectedToken(D.firstRestricted,D.message),this.context.strict&&D.stricted&&this.tolerateUnexpectedToken(D.stricted,D.message),this.context.strict=T,this.context.allowStrictDirective=O,te},ae.prototype.parsePropertyMethodFunction=function(){var T=this.createNode(),O=this.context.allowYield;this.context.allowYield=!0;var te=this.parseFormalParameters(),Me=this.parsePropertyMethod(te);return this.context.allowYield=O,this.finalize(T,new _e.FunctionExpression(null,te.params,Me,!1))},ae.prototype.parsePropertyMethodAsyncFunction=function(){var D=this.createNode(),T=this.context.allowYield,O=this.context.await;this.context.allowYield=!1,this.context.await=!0;var te=this.parseFormalParameters(),Me=this.parsePropertyMethod(te);return this.context.allowYield=T,this.context.await=O,this.finalize(D,new _e.AsyncFunctionExpression(null,te.params,Me))},ae.prototype.parseObjectPropertyKey=function(){var O,D=this.createNode(),T=this.nextToken();switch(T.type){case 8:case 6:this.context.strict&&T.octal&&this.tolerateUnexpectedToken(T,Ge.Messages.StrictOctalLiteral);var te=this.getTokenRaw(T);O=this.finalize(D,new _e.Literal(T.value,te));break;case 3:case 1:case 5:case 4:O=this.finalize(D,new _e.Identifier(T.value));break;case 7:"["===T.value?(O=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):O=this.throwUnexpectedToken(T);break;default:O=this.throwUnexpectedToken(T)}return O},ae.prototype.isPropertyKey=function(D,T){return D.type===Ve.Syntax.Identifier&&D.name===T||D.type===Ve.Syntax.Literal&&D.value===T},ae.prototype.parseObjectProperty=function(D){var te,T=this.createNode(),O=this.lookahead,Me=null,Je=null,kt=!1,jt=!1,Wt=!1,wn=!1;if(3===O.type){var rn=O.value;this.nextToken(),kt=this.match("["),Me=(wn=!(this.hasLineTerminator||"async"!==rn||this.match(":")||this.match("(")||this.match("*")||this.match(",")))?this.parseObjectPropertyKey():this.finalize(T,new _e.Identifier(rn))}else this.match("*")?this.nextToken():(kt=this.match("["),Me=this.parseObjectPropertyKey());var Mi=this.qualifiedPropertyName(this.lookahead);if(3===O.type&&!wn&&"get"===O.value&&Mi)te="get",kt=this.match("["),Me=this.parseObjectPropertyKey(),this.context.allowYield=!1,Je=this.parseGetterMethod();else if(3===O.type&&!wn&&"set"===O.value&&Mi)te="set",kt=this.match("["),Me=this.parseObjectPropertyKey(),Je=this.parseSetterMethod();else if(7===O.type&&"*"===O.value&&Mi)te="init",kt=this.match("["),Me=this.parseObjectPropertyKey(),Je=this.parseGeneratorMethod(),jt=!0;else if(Me||this.throwUnexpectedToken(this.lookahead),te="init",this.match(":")&&!wn)!kt&&this.isPropertyKey(Me,"__proto__")&&(D.value&&this.tolerateError(Ge.Messages.DuplicateProtoProperty),D.value=!0),this.nextToken(),Je=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))Je=wn?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),jt=!0;else if(3===O.type)if(rn=this.finalize(T,new _e.Identifier(O.value)),this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),Wt=!0;var zr=this.isolateCoverGrammar(this.parseAssignmentExpression);Je=this.finalize(T,new _e.AssignmentPattern(rn,zr))}else Wt=!0,Je=rn;else this.throwUnexpectedToken(this.nextToken());return this.finalize(T,new _e.Property(te,Me,kt,Je,jt,Wt))},ae.prototype.parseObjectInitializer=function(){var D=this.createNode();this.expect("{");for(var T=[],O={value:!1};!this.match("}");)T.push(this.parseObjectProperty(O)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(D,new _e.ObjectExpression(T))},ae.prototype.parseTemplateHead=function(){Oe.assert(this.lookahead.head,"Template literal must start with a template head");var D=this.createNode(),T=this.nextToken();return this.finalize(D,new _e.TemplateElement({raw:T.value,cooked:T.cooked},T.tail))},ae.prototype.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();var D=this.createNode(),T=this.nextToken();return this.finalize(D,new _e.TemplateElement({raw:T.value,cooked:T.cooked},T.tail))},ae.prototype.parseTemplateLiteral=function(){var D=this.createNode(),T=[],O=[],te=this.parseTemplateHead();for(O.push(te);!te.tail;)T.push(this.parseExpression()),te=this.parseTemplateElement(),O.push(te);return this.finalize(D,new _e.TemplateLiteral(O,T))},ae.prototype.reinterpretExpressionAsPattern=function(D){switch(D.type){case Ve.Syntax.Identifier:case Ve.Syntax.MemberExpression:case Ve.Syntax.RestElement:case Ve.Syntax.AssignmentPattern:break;case Ve.Syntax.SpreadElement:D.type=Ve.Syntax.RestElement,this.reinterpretExpressionAsPattern(D.argument);break;case Ve.Syntax.ArrayExpression:D.type=Ve.Syntax.ArrayPattern;for(var T=0;T")||this.expect("=>"),D={type:se,params:[],async:!1};else{var T=this.lookahead,O=[];if(this.match("..."))D=this.parseRestElement(O),this.expect(")"),this.match("=>")||this.expect("=>"),D={type:se,params:[D],async:!1};else{var te=!1;if(this.context.isBindingElement=!0,D=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var Me=[];for(this.context.isAssignmentTarget=!1,Me.push(D);2!==this.lookahead.type&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var Je=0;Je")||this.expect("=>"),this.context.isBindingElement=!1,Je=0;Je")&&(D.type===Ve.Syntax.Identifier&&"yield"===D.name&&(te=!0,D={type:se,params:[D],async:!1}),!te)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),D.type===Ve.Syntax.SequenceExpression)for(Je=0;Je")){for(var jt=0;jt0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var Me=[D,this.lookahead],Je=T,kt=this.isolateCoverGrammar(this.parseExponentiationExpression),jt=[Je,O.value,kt],Wt=[te];!((te=this.binaryPrecedence(this.lookahead))<=0);){for(;jt.length>2&&te<=Wt[Wt.length-1];){kt=jt.pop();var wn=jt.pop();Wt.pop(),Je=jt.pop(),Me.pop();var rn=this.startNode(Me[Me.length-1]);jt.push(this.finalize(rn,new _e.BinaryExpression(wn,Je,kt)))}jt.push(this.nextToken().value),Wt.push(te),Me.push(this.lookahead),jt.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var Mi=jt.length-1;T=jt[Mi];for(var zr=Me.pop();Mi>1;){var Xr=Me.pop();rn=this.startNode(Xr,zr&&zr.lineStart),T=this.finalize(rn,new _e.BinaryExpression(wn=jt[Mi-1],jt[Mi-2],T)),Mi-=2,zr=Xr}}return T},ae.prototype.parseConditionalExpression=function(){var D=this.lookahead,T=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var O=this.context.allowIn;this.context.allowIn=!0;var te=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=O,this.expect(":");var Me=this.isolateCoverGrammar(this.parseAssignmentExpression);T=this.finalize(this.startNode(D),new _e.ConditionalExpression(T,te,Me)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return T},ae.prototype.checkPatternParam=function(D,T){switch(T.type){case Ve.Syntax.Identifier:this.validateParam(D,T,T.name);break;case Ve.Syntax.RestElement:this.checkPatternParam(D,T.argument);break;case Ve.Syntax.AssignmentPattern:this.checkPatternParam(D,T.left);break;case Ve.Syntax.ArrayPattern:for(var O=0;O")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var Me=D.async,Je=this.reinterpretAsCoverFormalsList(D);if(Je){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var kt=this.context.strict,jt=this.context.allowStrictDirective;this.context.allowStrictDirective=Je.simple;var Wt=this.context.allowYield,wn=this.context.await;this.context.allowYield=!0,this.context.await=Me;var rn=this.startNode(T);this.expect("=>");var Mi=void 0;if(this.match("{")){var zr=this.context.allowIn;this.context.allowIn=!0,Mi=this.parseFunctionSourceElements(),this.context.allowIn=zr}else Mi=this.isolateCoverGrammar(this.parseAssignmentExpression);var Xr=Mi.type!==Ve.Syntax.BlockStatement;this.context.strict&&Je.firstRestricted&&this.throwUnexpectedToken(Je.firstRestricted,Je.message),this.context.strict&&Je.stricted&&this.tolerateUnexpectedToken(Je.stricted,Je.message),D=this.finalize(rn,Me?new _e.AsyncArrowFunctionExpression(Je.params,Mi,Xr):new _e.ArrowFunctionExpression(Je.params,Mi,Xr)),this.context.strict=kt,this.context.allowStrictDirective=jt,this.context.allowYield=Wt,this.context.await=wn}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(Ge.Messages.InvalidLHSInAssignment),this.context.strict&&D.type===Ve.Syntax.Identifier){var hs=D;this.scanner.isRestrictedWord(hs.name)&&this.tolerateUnexpectedToken(O,Ge.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(hs.name)&&this.tolerateUnexpectedToken(O,Ge.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(D):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1);var Ya=(O=this.nextToken()).value,tr=this.isolateCoverGrammar(this.parseAssignmentExpression);D=this.finalize(this.startNode(T),new _e.AssignmentExpression(Ya,D,tr)),this.context.firstCoverInitializedNameError=null}}return D},ae.prototype.parseExpression=function(){var D=this.lookahead,T=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var O=[];for(O.push(T);2!==this.lookahead.type&&this.match(",");)this.nextToken(),O.push(this.isolateCoverGrammar(this.parseAssignmentExpression));T=this.finalize(this.startNode(D),new _e.SequenceExpression(O))}return T},ae.prototype.parseStatementListItem=function(){var D;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,4===this.lookahead.type)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,Ge.Messages.IllegalExportDeclaration),D=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,Ge.Messages.IllegalImportDeclaration),D=this.parseImportDeclaration();break;case"const":D=this.parseLexicalDeclaration({inFor:!1});break;case"function":D=this.parseFunctionDeclaration();break;case"class":D=this.parseClassDeclaration();break;case"let":D=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:D=this.parseStatement()}else D=this.parseStatement();return D},ae.prototype.parseBlock=function(){var D=this.createNode();this.expect("{");for(var T=[];!this.match("}");)T.push(this.parseStatementListItem());return this.expect("}"),this.finalize(D,new _e.BlockStatement(T))},ae.prototype.parseLexicalBinding=function(D,T){var O=this.createNode(),Me=this.parsePattern([],D);this.context.strict&&Me.type===Ve.Syntax.Identifier&&this.scanner.isRestrictedWord(Me.name)&&this.tolerateError(Ge.Messages.StrictVarName);var Je=null;return"const"===D?!this.matchKeyword("in")&&!this.matchContextualKeyword("of")&&(this.match("=")?(this.nextToken(),Je=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(Ge.Messages.DeclarationMissingInitializer,"const")):(!T.inFor&&Me.type!==Ve.Syntax.Identifier||this.match("="))&&(this.expect("="),Je=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(O,new _e.VariableDeclarator(Me,Je))},ae.prototype.parseBindingList=function(D,T){for(var O=[this.parseLexicalBinding(D,T)];this.match(",");)this.nextToken(),O.push(this.parseLexicalBinding(D,T));return O},ae.prototype.isLexicalDeclaration=function(){var D=this.scanner.saveState();this.scanner.scanComments();var T=this.scanner.lex();return this.scanner.restoreState(D),3===T.type||7===T.type&&"["===T.value||7===T.type&&"{"===T.value||4===T.type&&"let"===T.value||4===T.type&&"yield"===T.value},ae.prototype.parseLexicalDeclaration=function(D){var T=this.createNode(),O=this.nextToken().value;Oe.assert("let"===O||"const"===O,"Lexical declaration must be either let or const");var te=this.parseBindingList(O,D);return this.consumeSemicolon(),this.finalize(T,new _e.VariableDeclaration(te,O))},ae.prototype.parseBindingRestElement=function(D,T){var O=this.createNode();this.expect("...");var te=this.parsePattern(D,T);return this.finalize(O,new _e.RestElement(te))},ae.prototype.parseArrayPattern=function(D,T){var O=this.createNode();this.expect("[");for(var te=[];!this.match("]");)if(this.match(","))this.nextToken(),te.push(null);else{if(this.match("...")){te.push(this.parseBindingRestElement(D,T));break}te.push(this.parsePatternWithDefault(D,T)),this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(O,new _e.ArrayPattern(te))},ae.prototype.parsePropertyPattern=function(D,T){var kt,jt,O=this.createNode(),te=!1,Me=!1;if(3===this.lookahead.type){var Wt=this.lookahead;kt=this.parseVariableIdentifier();var wn=this.finalize(O,new _e.Identifier(Wt.value));if(this.match("=")){D.push(Wt),Me=!0,this.nextToken();var rn=this.parseAssignmentExpression();jt=this.finalize(this.startNode(Wt),new _e.AssignmentPattern(wn,rn))}else this.match(":")?(this.expect(":"),jt=this.parsePatternWithDefault(D,T)):(D.push(Wt),Me=!0,jt=wn)}else te=this.match("["),kt=this.parseObjectPropertyKey(),this.expect(":"),jt=this.parsePatternWithDefault(D,T);return this.finalize(O,new _e.Property("init",kt,te,jt,!1,Me))},ae.prototype.parseObjectPattern=function(D,T){var O=this.createNode(),te=[];for(this.expect("{");!this.match("}");)te.push(this.parsePropertyPattern(D,T)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(O,new _e.ObjectPattern(te))},ae.prototype.parsePattern=function(D,T){var O;return this.match("[")?O=this.parseArrayPattern(D,T):this.match("{")?O=this.parseObjectPattern(D,T):(this.matchKeyword("let")&&("const"===T||"let"===T)&&this.tolerateUnexpectedToken(this.lookahead,Ge.Messages.LetInLexicalBinding),D.push(this.lookahead),O=this.parseVariableIdentifier(T)),O},ae.prototype.parsePatternWithDefault=function(D,T){var O=this.lookahead,te=this.parsePattern(D,T);if(this.match("=")){this.nextToken();var Me=this.context.allowYield;this.context.allowYield=!0;var Je=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=Me,te=this.finalize(this.startNode(O),new _e.AssignmentPattern(te,Je))}return te},ae.prototype.parseVariableIdentifier=function(D){var T=this.createNode(),O=this.nextToken();return 4===O.type&&"yield"===O.value?this.context.strict?this.tolerateUnexpectedToken(O,Ge.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(O):3!==O.type?this.context.strict&&4===O.type&&this.scanner.isStrictModeReservedWord(O.value)?this.tolerateUnexpectedToken(O,Ge.Messages.StrictReservedWord):(this.context.strict||"let"!==O.value||"var"!==D)&&this.throwUnexpectedToken(O):(this.context.isModule||this.context.await)&&3===O.type&&"await"===O.value&&this.tolerateUnexpectedToken(O),this.finalize(T,new _e.Identifier(O.value))},ae.prototype.parseVariableDeclaration=function(D){var T=this.createNode(),te=this.parsePattern([],"var");this.context.strict&&te.type===Ve.Syntax.Identifier&&this.scanner.isRestrictedWord(te.name)&&this.tolerateError(Ge.Messages.StrictVarName);var Me=null;return this.match("=")?(this.nextToken(),Me=this.isolateCoverGrammar(this.parseAssignmentExpression)):te.type!==Ve.Syntax.Identifier&&!D.inFor&&this.expect("="),this.finalize(T,new _e.VariableDeclarator(te,Me))},ae.prototype.parseVariableDeclarationList=function(D){var T={inFor:D.inFor},O=[];for(O.push(this.parseVariableDeclaration(T));this.match(",");)this.nextToken(),O.push(this.parseVariableDeclaration(T));return O},ae.prototype.parseVariableStatement=function(){var D=this.createNode();this.expectKeyword("var");var T=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(D,new _e.VariableDeclaration(T,"var"))},ae.prototype.parseEmptyStatement=function(){var D=this.createNode();return this.expect(";"),this.finalize(D,new _e.EmptyStatement)},ae.prototype.parseExpressionStatement=function(){var D=this.createNode(),T=this.parseExpression();return this.consumeSemicolon(),this.finalize(D,new _e.ExpressionStatement(T))},ae.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(Ge.Messages.StrictFunction),this.parseStatement()},ae.prototype.parseIfStatement=function(){var T,D=this.createNode(),O=null;this.expectKeyword("if"),this.expect("(");var te=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),T=this.finalize(this.createNode(),new _e.EmptyStatement)):(this.expect(")"),T=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),O=this.parseIfClause())),this.finalize(D,new _e.IfStatement(te,T,O))},ae.prototype.parseDoWhileStatement=function(){var D=this.createNode();this.expectKeyword("do");var T=this.context.inIteration;this.context.inIteration=!0;var O=this.parseStatement();this.context.inIteration=T,this.expectKeyword("while"),this.expect("(");var te=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(D,new _e.DoWhileStatement(O,te))},ae.prototype.parseWhileStatement=function(){var T,D=this.createNode();this.expectKeyword("while"),this.expect("(");var O=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),T=this.finalize(this.createNode(),new _e.EmptyStatement);else{this.expect(")");var te=this.context.inIteration;this.context.inIteration=!0,T=this.parseStatement(),this.context.inIteration=te}return this.finalize(D,new _e.WhileStatement(O,T))},ae.prototype.parseForStatement=function(){var Me,Je,Xr,D=null,T=null,O=null,te=!0,kt=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){D=this.createNode(),this.nextToken();var jt=this.context.allowIn;this.context.allowIn=!1;var Wt=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=jt,1===Wt.length&&this.matchKeyword("in")){var wn=Wt[0];wn.init&&(wn.id.type===Ve.Syntax.ArrayPattern||wn.id.type===Ve.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(Ge.Messages.ForInOfLoopInitializer,"for-in"),D=this.finalize(D,new _e.VariableDeclaration(Wt,"var")),this.nextToken(),Me=D,Je=this.parseExpression(),D=null}else 1===Wt.length&&null===Wt[0].init&&this.matchContextualKeyword("of")?(D=this.finalize(D,new _e.VariableDeclaration(Wt,"var")),this.nextToken(),Me=D,Je=this.parseAssignmentExpression(),D=null,te=!1):(D=this.finalize(D,new _e.VariableDeclaration(Wt,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){D=this.createNode();var rn=this.nextToken().value;this.context.strict||"in"!==this.lookahead.value?(jt=this.context.allowIn,this.context.allowIn=!1,Wt=this.parseBindingList(rn,{inFor:!0}),this.context.allowIn=jt,1===Wt.length&&null===Wt[0].init&&this.matchKeyword("in")?(D=this.finalize(D,new _e.VariableDeclaration(Wt,rn)),this.nextToken(),Me=D,Je=this.parseExpression(),D=null):1===Wt.length&&null===Wt[0].init&&this.matchContextualKeyword("of")?(D=this.finalize(D,new _e.VariableDeclaration(Wt,rn)),this.nextToken(),Me=D,Je=this.parseAssignmentExpression(),D=null,te=!1):(this.consumeSemicolon(),D=this.finalize(D,new _e.VariableDeclaration(Wt,rn)))):(D=this.finalize(D,new _e.Identifier(rn)),this.nextToken(),Me=D,Je=this.parseExpression(),D=null)}else{var Mi=this.lookahead;if(jt=this.context.allowIn,this.context.allowIn=!1,D=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=jt,this.matchKeyword("in"))(!this.context.isAssignmentTarget||D.type===Ve.Syntax.AssignmentExpression)&&this.tolerateError(Ge.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(D),Me=D,Je=this.parseExpression(),D=null;else if(this.matchContextualKeyword("of"))(!this.context.isAssignmentTarget||D.type===Ve.Syntax.AssignmentExpression)&&this.tolerateError(Ge.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(D),Me=D,Je=this.parseAssignmentExpression(),D=null,te=!1;else{if(this.match(",")){for(var zr=[D];this.match(",");)this.nextToken(),zr.push(this.isolateCoverGrammar(this.parseAssignmentExpression));D=this.finalize(this.startNode(Mi),new _e.SequenceExpression(zr))}this.expect(";")}}if(typeof Me>"u"&&(this.match(";")||(T=this.parseExpression()),this.expect(";"),this.match(")")||(O=this.parseExpression())),!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),Xr=this.finalize(this.createNode(),new _e.EmptyStatement);else{this.expect(")");var hs=this.context.inIteration;this.context.inIteration=!0,Xr=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=hs}return this.finalize(kt,typeof Me>"u"?new _e.ForStatement(D,T,O,Xr):te?new _e.ForInStatement(Me,Je,Xr):new _e.ForOfStatement(Me,Je,Xr))},ae.prototype.parseContinueStatement=function(){var D=this.createNode();this.expectKeyword("continue");var T=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var O=this.parseVariableIdentifier();T=O,Object.prototype.hasOwnProperty.call(this.context.labelSet,"$"+O.name)||this.throwError(Ge.Messages.UnknownLabel,O.name)}return this.consumeSemicolon(),null===T&&!this.context.inIteration&&this.throwError(Ge.Messages.IllegalContinue),this.finalize(D,new _e.ContinueStatement(T))},ae.prototype.parseBreakStatement=function(){var D=this.createNode();this.expectKeyword("break");var T=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var O=this.parseVariableIdentifier();Object.prototype.hasOwnProperty.call(this.context.labelSet,"$"+O.name)||this.throwError(Ge.Messages.UnknownLabel,O.name),T=O}return this.consumeSemicolon(),null===T&&!this.context.inIteration&&!this.context.inSwitch&&this.throwError(Ge.Messages.IllegalBreak),this.finalize(D,new _e.BreakStatement(T))},ae.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(Ge.Messages.IllegalReturn);var D=this.createNode();this.expectKeyword("return");var O=(this.match(";")||this.match("}")||this.hasLineTerminator||2===this.lookahead.type)&&8!==this.lookahead.type&&10!==this.lookahead.type?null:this.parseExpression();return this.consumeSemicolon(),this.finalize(D,new _e.ReturnStatement(O))},ae.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(Ge.Messages.StrictModeWith);var T,D=this.createNode();this.expectKeyword("with"),this.expect("(");var O=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),T=this.finalize(this.createNode(),new _e.EmptyStatement)):(this.expect(")"),T=this.parseStatement()),this.finalize(D,new _e.WithStatement(O,T))},ae.prototype.parseSwitchCase=function(){var T,D=this.createNode();this.matchKeyword("default")?(this.nextToken(),T=null):(this.expectKeyword("case"),T=this.parseExpression()),this.expect(":");for(var O=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)O.push(this.parseStatementListItem());return this.finalize(D,new _e.SwitchCase(T,O))},ae.prototype.parseSwitchStatement=function(){var D=this.createNode();this.expectKeyword("switch"),this.expect("(");var T=this.parseExpression();this.expect(")");var O=this.context.inSwitch;this.context.inSwitch=!0;var te=[],Me=!1;for(this.expect("{");!this.match("}");){var Je=this.parseSwitchCase();null===Je.test&&(Me&&this.throwError(Ge.Messages.MultipleDefaultsInSwitch),Me=!0),te.push(Je)}return this.expect("}"),this.context.inSwitch=O,this.finalize(D,new _e.SwitchStatement(T,te))},ae.prototype.parseLabelledStatement=function(){var O,D=this.createNode(),T=this.parseExpression();if(T.type===Ve.Syntax.Identifier&&this.match(":")){this.nextToken();var te=T,Me="$"+te.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,Me)&&this.throwError(Ge.Messages.Redeclaration,"Label",te.name),this.context.labelSet[Me]=!0;var Je=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),Je=this.parseClassDeclaration();else if(this.matchKeyword("function")){var kt=this.lookahead,jt=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(kt,Ge.Messages.StrictFunction):jt.generator&&this.tolerateUnexpectedToken(kt,Ge.Messages.GeneratorInLegacyContext),Je=jt}else Je=this.parseStatement();delete this.context.labelSet[Me],O=new _e.LabeledStatement(te,Je)}else this.consumeSemicolon(),O=new _e.ExpressionStatement(T);return this.finalize(D,O)},ae.prototype.parseThrowStatement=function(){var D=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(Ge.Messages.NewlineAfterThrow);var T=this.parseExpression();return this.consumeSemicolon(),this.finalize(D,new _e.ThrowStatement(T))},ae.prototype.parseCatchClause=function(){var D=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var T=[],O=this.parsePattern(T),te={},Me=0;Me0&&this.tolerateError(Ge.Messages.BadGetterArity);var Me=this.parsePropertyMethod(te);return this.context.allowYield=O,this.finalize(D,new _e.FunctionExpression(null,te.params,Me,false))},ae.prototype.parseSetterMethod=function(){var D=this.createNode(),O=this.context.allowYield;this.context.allowYield=!0;var te=this.parseFormalParameters();1!==te.params.length?this.tolerateError(Ge.Messages.BadSetterArity):te.params[0]instanceof _e.RestElement&&this.tolerateError(Ge.Messages.BadSetterRestParameter);var Me=this.parsePropertyMethod(te);return this.context.allowYield=O,this.finalize(D,new _e.FunctionExpression(null,te.params,Me,false))},ae.prototype.parseGeneratorMethod=function(){var D=this.createNode(),O=this.context.allowYield;this.context.allowYield=!0;var te=this.parseFormalParameters();this.context.allowYield=!1;var Me=this.parsePropertyMethod(te);return this.context.allowYield=O,this.finalize(D,new _e.FunctionExpression(null,te.params,Me,!0))},ae.prototype.isStartOfExpression=function(){var D=!0,T=this.lookahead.value;switch(this.lookahead.type){case 7:D="["===T||"("===T||"{"===T||"+"===T||"-"===T||"!"===T||"~"===T||"++"===T||"--"===T||"/"===T||"/="===T;break;case 4:D="class"===T||"delete"===T||"function"===T||"let"===T||"new"===T||"super"===T||"this"===T||"typeof"===T||"void"===T||"yield"===T}return D},ae.prototype.parseYieldExpression=function(){var D=this.createNode();this.expectKeyword("yield");var T=null,O=!1;if(!this.hasLineTerminator){var te=this.context.allowYield;this.context.allowYield=!1,(O=this.match("*"))?(this.nextToken(),T=this.parseAssignmentExpression()):this.isStartOfExpression()&&(T=this.parseAssignmentExpression()),this.context.allowYield=te}return this.finalize(D,new _e.YieldExpression(T,O))},ae.prototype.parseClassElement=function(D){var T=this.lookahead,O=this.createNode(),te="",Me=null,Je=null,kt=!1,jt=!1,Wt=!1,wn=!1;if(this.match("*"))this.nextToken();else if(kt=this.match("["),"static"===(Me=this.parseObjectPropertyKey()).name&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(T=this.lookahead,Wt=!0,kt=this.match("["),this.match("*")?this.nextToken():Me=this.parseObjectPropertyKey()),3===T.type&&!this.hasLineTerminator&&"async"===T.value){var Mi=this.lookahead.value;":"!==Mi&&"("!==Mi&&"*"!==Mi&&(wn=!0,T=this.lookahead,Me=this.parseObjectPropertyKey(),3===T.type&&"constructor"===T.value&&this.tolerateUnexpectedToken(T,Ge.Messages.ConstructorIsAsync))}var zr=this.qualifiedPropertyName(this.lookahead);return 3===T.type?"get"===T.value&&zr?(te="get",kt=this.match("["),Me=this.parseObjectPropertyKey(),this.context.allowYield=!1,Je=this.parseGetterMethod()):"set"===T.value&&zr&&(te="set",kt=this.match("["),Me=this.parseObjectPropertyKey(),Je=this.parseSetterMethod()):7===T.type&&"*"===T.value&&zr&&(te="init",kt=this.match("["),Me=this.parseObjectPropertyKey(),Je=this.parseGeneratorMethod(),jt=!0),!te&&Me&&this.match("(")&&(te="init",Je=wn?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),jt=!0),te||this.throwUnexpectedToken(this.lookahead),"init"===te&&(te="method"),kt||(Wt&&this.isPropertyKey(Me,"prototype")&&this.throwUnexpectedToken(T,Ge.Messages.StaticPrototype),!Wt&&this.isPropertyKey(Me,"constructor")&&(("method"!==te||!jt||Je&&Je.generator)&&this.throwUnexpectedToken(T,Ge.Messages.ConstructorSpecialMethod),D.value?this.throwUnexpectedToken(T,Ge.Messages.DuplicateConstructor):D.value=!0,te="constructor")),this.finalize(O,new _e.MethodDefinition(Me,kt,Je,te,Wt))},ae.prototype.parseClassElementList=function(){var D=[],T={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():D.push(this.parseClassElement(T));return this.expect("}"),D},ae.prototype.parseClassBody=function(){var D=this.createNode(),T=this.parseClassElementList();return this.finalize(D,new _e.ClassBody(T))},ae.prototype.parseClassDeclaration=function(D){var T=this.createNode(),O=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var te=D&&3!==this.lookahead.type?null:this.parseVariableIdentifier(),Me=null;this.matchKeyword("extends")&&(this.nextToken(),Me=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var Je=this.parseClassBody();return this.context.strict=O,this.finalize(T,new _e.ClassDeclaration(te,Me,Je))},ae.prototype.parseClassExpression=function(){var D=this.createNode(),T=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var O=3===this.lookahead.type?this.parseVariableIdentifier():null,te=null;this.matchKeyword("extends")&&(this.nextToken(),te=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var Me=this.parseClassBody();return this.context.strict=T,this.finalize(D,new _e.ClassExpression(O,te,Me))},ae.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var D=this.createNode(),T=this.parseDirectivePrologues();2!==this.lookahead.type;)T.push(this.parseStatementListItem());return this.finalize(D,new _e.Module(T))},ae.prototype.parseScript=function(){for(var D=this.createNode(),T=this.parseDirectivePrologues();2!==this.lookahead.type;)T.push(this.parseStatementListItem());return this.finalize(D,new _e.Script(T))},ae.prototype.parseModuleSpecifier=function(){var D=this.createNode();8!==this.lookahead.type&&this.throwError(Ge.Messages.InvalidModuleSpecifier);var T=this.nextToken(),O=this.getTokenRaw(T);return this.finalize(D,new _e.Literal(T.value,O))},ae.prototype.parseImportSpecifier=function(){var T,O,D=this.createNode();return 3===this.lookahead.type?(O=T=this.parseVariableIdentifier(),this.matchContextualKeyword("as")&&(this.nextToken(),O=this.parseVariableIdentifier())):(O=T=this.parseIdentifierName(),this.matchContextualKeyword("as")?(this.nextToken(),O=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(D,new _e.ImportSpecifier(O,T))},ae.prototype.parseNamedImports=function(){this.expect("{");for(var D=[];!this.match("}");)D.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),D},ae.prototype.parseImportDefaultSpecifier=function(){var D=this.createNode(),T=this.parseIdentifierName();return this.finalize(D,new _e.ImportDefaultSpecifier(T))},ae.prototype.parseImportNamespaceSpecifier=function(){var D=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(Ge.Messages.NoAsAfterImportNamespace),this.nextToken();var T=this.parseIdentifierName();return this.finalize(D,new _e.ImportNamespaceSpecifier(T))},ae.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(Ge.Messages.IllegalImportDeclaration);var D=this.createNode();this.expectKeyword("import");var T,O=[];return 8===this.lookahead.type||(this.match("{")?O=O.concat(this.parseNamedImports()):this.match("*")?O.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(O.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?O.push(this.parseImportNamespaceSpecifier()):this.match("{")?O=O.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),this.matchContextualKeyword("from")||this.throwError(this.lookahead.value?Ge.Messages.UnexpectedToken:Ge.Messages.MissingFromClause,this.lookahead.value),this.nextToken()),T=this.parseModuleSpecifier(),this.consumeSemicolon(),this.finalize(D,new _e.ImportDeclaration(O,T))},ae.prototype.parseExportSpecifier=function(){var D=this.createNode(),T=this.parseIdentifierName(),O=T;return this.matchContextualKeyword("as")&&(this.nextToken(),O=this.parseIdentifierName()),this.finalize(D,new _e.ExportSpecifier(T,O))},ae.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(Ge.Messages.IllegalExportDeclaration);var T,D=this.createNode();if(this.expectKeyword("export"),this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var O=this.parseFunctionDeclaration(!0);T=this.finalize(D,new _e.ExportDefaultDeclaration(O))}else this.matchKeyword("class")?(O=this.parseClassDeclaration(!0),T=this.finalize(D,new _e.ExportDefaultDeclaration(O))):this.matchContextualKeyword("async")?(O=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression(),T=this.finalize(D,new _e.ExportDefaultDeclaration(O))):(this.matchContextualKeyword("from")&&this.throwError(Ge.Messages.UnexpectedToken,this.lookahead.value),O=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression(),this.consumeSemicolon(),T=this.finalize(D,new _e.ExportDefaultDeclaration(O)));else if(this.match("*")){this.nextToken(),this.matchContextualKeyword("from")||this.throwError(this.lookahead.value?Ge.Messages.UnexpectedToken:Ge.Messages.MissingFromClause,this.lookahead.value),this.nextToken();var Me=this.parseModuleSpecifier();this.consumeSemicolon(),T=this.finalize(D,new _e.ExportAllDeclaration(Me))}else if(4===this.lookahead.type){switch(O=void 0,this.lookahead.value){case"let":case"const":O=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":O=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}T=this.finalize(D,new _e.ExportNamedDeclaration(O,[],null))}else if(this.matchAsyncFunction())O=this.parseFunctionDeclaration(),T=this.finalize(D,new _e.ExportNamedDeclaration(O,[],null));else{var Je=[],kt=null,jt=!1;for(this.expect("{");!this.match("}");)jt=jt||this.matchKeyword("default"),Je.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");this.expect("}"),this.matchContextualKeyword("from")?(this.nextToken(),kt=this.parseModuleSpecifier(),this.consumeSemicolon()):jt?this.throwError(this.lookahead.value?Ge.Messages.UnexpectedToken:Ge.Messages.MissingFromClause,this.lookahead.value):this.consumeSemicolon(),T=this.finalize(D,new _e.ExportNamedDeclaration(null,Je,kt))}return T},ae}();De.Parser=ue},function(Tn,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0}),De.assert=function rt(Oe,dt){if(!Oe)throw new Error("ASSERT: "+dt)}},function(Tn,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0});var rt=function(){function Oe(){this.errors=[],this.tolerant=!1}return Oe.prototype.recordError=function(dt){this.errors.push(dt)},Oe.prototype.tolerate=function(dt){if(!this.tolerant)throw dt;this.recordError(dt)},Oe.prototype.constructError=function(dt,Ge){var _e=new Error(dt);try{throw _e}catch(et){Object.create&&Object.defineProperty&&(_e=Object.create(et),Object.defineProperty(_e,"column",{value:Ge}))}return _e},Oe.prototype.createError=function(dt,Ge,_e,et){var ve=this.constructError("Line "+Ge+": "+et,_e);return ve.index=dt,ve.lineNumber=Ge,ve.description=et,ve},Oe.prototype.throwError=function(dt,Ge,_e,et){throw this.createError(dt,Ge,_e,et)},Oe.prototype.tolerateError=function(dt,Ge,_e,et){var Ve=this.createError(dt,Ge,_e,et);if(!this.tolerant)throw Ve;this.recordError(Ve)},Oe}();De.ErrorHandler=rt},function(Tn,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0}),De.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(Tn,De,rt){"use strict";Object.defineProperty(De,"__esModule",{value:!0});var Oe=rt(9),dt=rt(4),Ge=rt(11);function _e(ve){return"0123456789abcdef".indexOf(ve.toLowerCase())}function et(ve){return"01234567".indexOf(ve)}var Ve=function(){function ve(se,ue){this.source=se,this.errorHandler=ue,this.trackComment=!1,this.isModule=!1,this.length=se.length,this.index=0,this.lineNumber=se.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return ve.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},ve.prototype.restoreState=function(se){this.index=se.index,this.lineNumber=se.lineNumber,this.lineStart=se.lineStart},ve.prototype.eof=function(){return this.index>=this.length},ve.prototype.throwUnexpectedToken=function(se){return void 0===se&&(se=Ge.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,se)},ve.prototype.tolerateUnexpectedToken=function(se){void 0===se&&(se=Ge.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,se)},ve.prototype.skipSingleLineComment=function(se){var ae,D,ue=[];for(this.trackComment&&(ue=[],ae=this.index-se,D={start:{line:this.lineNumber,column:this.index-this.lineStart-se},end:{}});!this.eof();){var T=this.source.charCodeAt(this.index);if(++this.index,dt.Character.isLineTerminator(T))return this.trackComment&&(D.end={line:this.lineNumber,column:this.index-this.lineStart-1},ue.push({multiLine:!1,slice:[ae+se,this.index-1],range:[ae,this.index-1],loc:D})),13===T&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,ue}return this.trackComment&&(D.end={line:this.lineNumber,column:this.index-this.lineStart},ue.push({multiLine:!1,slice:[ae+se,this.index],range:[ae,this.index],loc:D})),ue},ve.prototype.skipMultiLineComment=function(){var ue,ae,se=[];for(this.trackComment&&(se=[],ue=this.index-2,ae={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var D=this.source.charCodeAt(this.index);if(dt.Character.isLineTerminator(D))13===D&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===D){if(47===this.source.charCodeAt(this.index+1))return this.index+=2,this.trackComment&&(ae.end={line:this.lineNumber,column:this.index-this.lineStart},se.push({multiLine:!0,slice:[ue+2,this.index-2],range:[ue,this.index],loc:ae})),se;++this.index}else++this.index}return this.trackComment&&(ae.end={line:this.lineNumber,column:this.index-this.lineStart},se.push({multiLine:!0,slice:[ue+2,this.index],range:[ue,this.index],loc:ae})),this.tolerateUnexpectedToken(),se},ve.prototype.scanComments=function(){var se;this.trackComment&&(se=[]);for(var ue=0===this.index;!this.eof();){var ae=this.source.charCodeAt(this.index);if(dt.Character.isWhiteSpace(ae))++this.index;else if(dt.Character.isLineTerminator(ae))++this.index,13===ae&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,ue=!0;else if(47===ae)if(47===(ae=this.source.charCodeAt(this.index+1))){this.index+=2;var D=this.skipSingleLineComment(2);this.trackComment&&(se=se.concat(D)),ue=!0}else{if(42!==ae)break;this.index+=2,D=this.skipMultiLineComment(),this.trackComment&&(se=se.concat(D))}else if(ue&&45===ae){if(45!==this.source.charCodeAt(this.index+1)||62!==this.source.charCodeAt(this.index+2))break;this.index+=3,D=this.skipSingleLineComment(3),this.trackComment&&(se=se.concat(D))}else{if(60!==ae||this.isModule)break;if("!--"!==this.source.slice(this.index+1,this.index+4))break;this.index+=4,D=this.skipSingleLineComment(4),this.trackComment&&(se=se.concat(D))}}return se},ve.prototype.isFutureReservedWord=function(se){switch(se){case"enum":case"export":case"import":case"super":return!0;default:return!1}},ve.prototype.isStrictModeReservedWord=function(se){switch(se){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},ve.prototype.isRestrictedWord=function(se){return"eval"===se||"arguments"===se},ve.prototype.isKeyword=function(se){switch(se.length){case 2:return"if"===se||"in"===se||"do"===se;case 3:return"var"===se||"for"===se||"new"===se||"try"===se||"let"===se;case 4:return"this"===se||"else"===se||"case"===se||"void"===se||"with"===se||"enum"===se;case 5:return"while"===se||"break"===se||"catch"===se||"throw"===se||"const"===se||"yield"===se||"class"===se||"super"===se;case 6:return"return"===se||"typeof"===se||"delete"===se||"switch"===se||"export"===se||"import"===se;case 7:return"default"===se||"finally"===se||"extends"===se;case 8:return"function"===se||"continue"===se||"debugger"===se;case 10:return"instanceof"===se;default:return!1}},ve.prototype.codePointAt=function(se){var ue=this.source.charCodeAt(se);if(ue>=55296&&ue<=56319){var ae=this.source.charCodeAt(se+1);ae>=56320&&ae<=57343&&(ue=1024*(ue-55296)+ae-56320+65536)}return ue},ve.prototype.scanHexEscape=function(se){for(var ue="u"===se?4:2,ae=0,D=0;D1114111||"}"!==se)&&this.throwUnexpectedToken(),dt.Character.fromCodePoint(ue)},ve.prototype.getIdentifier=function(){for(var se=this.index++;!this.eof();){var ue=this.source.charCodeAt(this.index);if(92===ue)return this.index=se,this.getComplexIdentifier();if(ue>=55296&&ue<57343)return this.index=se,this.getComplexIdentifier();if(!dt.Character.isIdentifierPart(ue))break;++this.index}return this.source.slice(se,this.index)},ve.prototype.getComplexIdentifier=function(){var ae,se=this.codePointAt(this.index),ue=dt.Character.fromCodePoint(se);for(this.index+=ue.length,92===se&&(117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,ae=this.scanUnicodeCodePointEscape()):(null===(ae=this.scanHexEscape("u"))||"\\"===ae||!dt.Character.isIdentifierStart(ae.charCodeAt(0)))&&this.throwUnexpectedToken(),ue=ae);!this.eof()&&(se=this.codePointAt(this.index),dt.Character.isIdentifierPart(se));)ue+=ae=dt.Character.fromCodePoint(se),this.index+=ae.length,92===se&&(ue=ue.substr(0,ue.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,ae=this.scanUnicodeCodePointEscape()):(null===(ae=this.scanHexEscape("u"))||"\\"===ae||!dt.Character.isIdentifierPart(ae.charCodeAt(0)))&&this.throwUnexpectedToken(),ue+=ae);return ue},ve.prototype.octalToDecimal=function(se){var ue="0"!==se,ae=et(se);return!this.eof()&&dt.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(ue=!0,ae=8*ae+et(this.source[this.index++]),"0123".indexOf(se)>=0&&!this.eof()&&dt.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(ae=8*ae+et(this.source[this.index++]))),{code:ae,octal:ue}},ve.prototype.scanIdentifier=function(){var se,ue=this.index,ae=92===this.source.charCodeAt(ue)?this.getComplexIdentifier():this.getIdentifier();if(3!=(se=1===ae.length?3:this.isKeyword(ae)?4:"null"===ae?5:"true"===ae||"false"===ae?1:3)&&ue+ae.length!==this.index){var D=this.index;this.index=ue,this.tolerateUnexpectedToken(Ge.Messages.InvalidEscapedReservedWord),this.index=D}return{type:se,value:ae,lineNumber:this.lineNumber,lineStart:this.lineStart,start:ue,end:this.index}},ve.prototype.scanPunctuator=function(){var se=this.index,ue=this.source[this.index];switch(ue){case"(":case"{":"{"===ue&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,"."===this.source[this.index]&&"."===this.source[this.index+1]&&(this.index+=2,ue="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:">>>="===(ue=this.source.substr(this.index,4))?this.index+=4:"==="===(ue=ue.substr(0,3))||"!=="===ue||">>>"===ue||"<<="===ue||">>="===ue||"**="===ue?this.index+=3:"&&"===(ue=ue.substr(0,2))||"||"===ue||"=="===ue||"!="===ue||"+="===ue||"-="===ue||"*="===ue||"/="===ue||"++"===ue||"--"===ue||"<<"===ue||">>"===ue||"&="===ue||"|="===ue||"^="===ue||"%="===ue||"<="===ue||">="===ue||"=>"===ue||"**"===ue?this.index+=2:"<>=!+-*%&|^/".indexOf(ue=this.source[this.index])>=0&&++this.index}return this.index===se&&this.throwUnexpectedToken(),{type:7,value:ue,lineNumber:this.lineNumber,lineStart:this.lineStart,start:se,end:this.index}},ve.prototype.scanHexLiteral=function(se){for(var ue="";!this.eof()&&dt.Character.isHexDigit(this.source.charCodeAt(this.index));)ue+=this.source[this.index++];return 0===ue.length&&this.throwUnexpectedToken(),dt.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+ue,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:se,end:this.index}},ve.prototype.scanBinaryLiteral=function(se){for(var ae,ue="";!this.eof()&&("0"===(ae=this.source[this.index])||"1"===ae);)ue+=this.source[this.index++];return 0===ue.length&&this.throwUnexpectedToken(),this.eof()||(ae=this.source.charCodeAt(this.index),(dt.Character.isIdentifierStart(ae)||dt.Character.isDecimalDigit(ae))&&this.throwUnexpectedToken()),{type:6,value:parseInt(ue,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:se,end:this.index}},ve.prototype.scanOctalLiteral=function(se,ue){var ae="",D=!1;for(dt.Character.isOctalDigit(se.charCodeAt(0))?(D=!0,ae="0"+this.source[this.index++]):++this.index;!this.eof()&&dt.Character.isOctalDigit(this.source.charCodeAt(this.index));)ae+=this.source[this.index++];return!D&&0===ae.length&&this.throwUnexpectedToken(),(dt.Character.isIdentifierStart(this.source.charCodeAt(this.index))||dt.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(ae,8),octal:D,lineNumber:this.lineNumber,lineStart:this.lineStart,start:ue,end:this.index}},ve.prototype.isImplicitOctalLiteral=function(){for(var se=this.index+1;se=0&&(D=D.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(O,te,Me){var Je=parseInt(te||Me,16);return Je>1114111&&T.throwUnexpectedToken(Ge.Messages.InvalidRegExp),Je<=65535?String.fromCharCode(Je):"\uffff"}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"\uffff"));try{RegExp(D)}catch{this.throwUnexpectedToken(Ge.Messages.InvalidRegExp)}try{return new RegExp(se,ue)}catch{return null}},ve.prototype.scanRegExpBody=function(){var se=this.source[this.index];Oe.assert("/"===se,"Regular expression literal must start with a slash");for(var ue=this.source[this.index++],ae=!1,D=!1;!this.eof();)if(ue+=se=this.source[this.index++],"\\"===se)se=this.source[this.index++],dt.Character.isLineTerminator(se.charCodeAt(0))&&this.throwUnexpectedToken(Ge.Messages.UnterminatedRegExp),ue+=se;else if(dt.Character.isLineTerminator(se.charCodeAt(0)))this.throwUnexpectedToken(Ge.Messages.UnterminatedRegExp);else if(ae)"]"===se&&(ae=!1);else{if("/"===se){D=!0;break}"["===se&&(ae=!0)}return D||this.throwUnexpectedToken(Ge.Messages.UnterminatedRegExp),ue.substr(1,ue.length-2)},ve.prototype.scanRegExpFlags=function(){for(var ue="";!this.eof();){var ae=this.source[this.index];if(!dt.Character.isIdentifierPart(ae.charCodeAt(0)))break;if(++this.index,"\\"!==ae||this.eof())ue+=ae;else if("u"===(ae=this.source[this.index])){++this.index;var D=this.index,T=this.scanHexEscape("u");if(null!==T)for(ue+=T;D=55296&&se<57343&&dt.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},ve}();De.Scanner=Ve},function(Tn,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0}),De.TokenName={},De.TokenName[1]="Boolean",De.TokenName[2]="",De.TokenName[3]="Identifier",De.TokenName[4]="Keyword",De.TokenName[5]="Null",De.TokenName[6]="Numeric",De.TokenName[7]="Punctuator",De.TokenName[8]="String",De.TokenName[9]="RegularExpression",De.TokenName[10]="Template"},function(Tn,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0}),De.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",frasl:"\u2044",euro:"\u20ac",image:"\u2111",weierp:"\u2118",real:"\u211c",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lArr:"\u21d0",uArr:"\u21d1",rArr:"\u21d2",dArr:"\u21d3",hArr:"\u21d4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",lang:"\u27e8",rang:"\u27e9"}},function(Tn,De,rt){"use strict";Object.defineProperty(De,"__esModule",{value:!0});var Oe=rt(10),dt=rt(12),Ge=rt(13),_e=function(){function Ve(){this.values=[],this.curly=this.paren=-1}return Ve.prototype.beforeFunctionExpression=function(ve){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(ve)>=0},Ve.prototype.isRegexStart=function(){var ve=this.values[this.values.length-1],se=null!==ve;switch(ve){case"this":case"]":se=!1;break;case")":var ue=this.values[this.paren-1];se="if"===ue||"while"===ue||"for"===ue||"with"===ue;break;case"}":if(se=!1,"function"===this.values[this.curly-3])se=!!(ae=this.values[this.curly-4])&&!this.beforeFunctionExpression(ae);else if("function"===this.values[this.curly-4]){var ae;se=!(ae=this.values[this.curly-5])||!this.beforeFunctionExpression(ae)}}return se},Ve.prototype.push=function(ve){7===ve.type||4===ve.type?("{"===ve.value?this.curly=this.values.length:"("===ve.value&&(this.paren=this.values.length),this.values.push(ve.value)):this.values.push(null)},Ve}(),et=function(){function Ve(ve,se){this.errorHandler=new Oe.ErrorHandler,this.errorHandler.tolerant=!!se&&"boolean"==typeof se.tolerant&&se.tolerant,this.scanner=new dt.Scanner(ve,this.errorHandler),this.scanner.trackComment=!!se&&"boolean"==typeof se.comment&&se.comment,this.trackRange=!!se&&"boolean"==typeof se.range&&se.range,this.trackLoc=!!se&&"boolean"==typeof se.loc&&se.loc,this.buffer=[],this.reader=new _e}return Ve.prototype.errors=function(){return this.errorHandler.errors},Ve.prototype.getNextToken=function(){if(0===this.buffer.length){var ve=this.scanner.scanComments();if(this.scanner.trackComment)for(var se=0;se=ae.status}function et(ue){try{ue.dispatchEvent(new MouseEvent("click"))}catch{var ae=document.createEvent("MouseEvents");ae.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),ue.dispatchEvent(ae)}}var Ve="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,ve=Ve.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),se=Ve.saveAs||("object"!=typeof window||window!==Ve?function(){}:"download"in HTMLAnchorElement.prototype&&!ve?function(ue,ae,D){var T=Ve.URL||Ve.webkitURL,O=document.createElement("a");O.download=ae=ae||ue.name||"download",O.rel="noopener","string"==typeof ue?(O.href=ue,O.origin===location.origin?et(O):_e(O.href)?Ge(ue,ae,D):et(O,O.target="_blank")):(O.href=T.createObjectURL(ue),setTimeout(function(){T.revokeObjectURL(O.href)},4e4),setTimeout(function(){et(O)},0))}:"msSaveOrOpenBlob"in navigator?function(ue,ae,D){if(ae=ae||ue.name||"download","string"!=typeof ue)navigator.msSaveOrOpenBlob(function dt(ue,ae){return typeof ae>"u"?ae={autoBom:!1}:"object"!=typeof ae&&(console.warn("Deprecated: Expected third argument to be a object"),ae={autoBom:!ae}),ae.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(ue.type)?new Blob(["\ufeff",ue],{type:ue.type}):ue}(ue,D),ae);else if(_e(ue))Ge(ue,ae,D);else{var T=document.createElement("a");T.href=ue,T.target="_blank",setTimeout(function(){et(T)})}}:function(ue,ae,D,T){if((T=T||open("","_blank"))&&(T.document.title=T.document.body.innerText="downloading..."),"string"==typeof ue)return Ge(ue,ae,D);var O="application/octet-stream"===ue.type,te=/constructor/i.test(Ve.HTMLElement)||Ve.safari,Me=/CriOS\/[\d]+/.test(navigator.userAgent);if((Me||O&&te||ve)&&typeof FileReader<"u"){var Je=new FileReader;Je.onloadend=function(){var Wt=Je.result;Wt=Me?Wt:Wt.replace(/^data:[^;]*;/,"data:attachment/file;"),T?T.location.href=Wt:location=Wt,T=null},Je.readAsDataURL(ue)}else{var kt=Ve.URL||Ve.webkitURL,jt=kt.createObjectURL(ue);T?T.location=jt:location.href=jt,T=null,setTimeout(function(){kt.revokeObjectURL(jt)},4e4)}});Ve.saveAs=se.saveAs=se,Yt.exports=se})?De.apply(Tn,[]):De)&&(Yt.exports=Oe)},461:(Yt,Tn)=>{Tn.read=function(De,rt,Oe,dt,Ge){var _e,et,Ve=8*Ge-dt-1,ve=(1<>1,ue=-7,ae=Oe?Ge-1:0,D=Oe?-1:1,T=De[rt+ae];for(ae+=D,_e=T&(1<<-ue)-1,T>>=-ue,ue+=Ve;ue>0;_e=256*_e+De[rt+ae],ae+=D,ue-=8);for(et=_e&(1<<-ue)-1,_e>>=-ue,ue+=dt;ue>0;et=256*et+De[rt+ae],ae+=D,ue-=8);if(0===_e)_e=1-se;else{if(_e===ve)return et?NaN:1/0*(T?-1:1);et+=Math.pow(2,dt),_e-=se}return(T?-1:1)*et*Math.pow(2,_e-dt)},Tn.write=function(De,rt,Oe,dt,Ge,_e){var et,Ve,ve,se=8*_e-Ge-1,ue=(1<>1,D=23===Ge?Math.pow(2,-24)-Math.pow(2,-77):0,T=dt?0:_e-1,O=dt?1:-1,te=rt<0||0===rt&&1/rt<0?1:0;for(rt=Math.abs(rt),isNaN(rt)||rt===1/0?(Ve=isNaN(rt)?1:0,et=ue):(et=Math.floor(Math.log(rt)/Math.LN2),rt*(ve=Math.pow(2,-et))<1&&(et--,ve*=2),(rt+=et+ae>=1?D/ve:D*Math.pow(2,1-ae))*ve>=2&&(et++,ve/=2),et+ae>=ue?(Ve=0,et=ue):et+ae>=1?(Ve=(rt*ve-1)*Math.pow(2,Ge),et+=ae):(Ve=rt*Math.pow(2,ae-1)*Math.pow(2,Ge),et=0));Ge>=8;De[Oe+T]=255&Ve,T+=O,Ve/=256,Ge-=8);for(et=et<0;De[Oe+T]=255&et,T+=O,et/=256,se-=8);De[Oe+T-O]|=128*te}},870:(Yt,Tn,De)=>{"use strict";var rt=De(133);Yt.exports=rt},133:(Yt,Tn,De)=>{"use strict";var rt=De(840),Oe=De(34);function dt(Ge){return function(){throw new Error("Function "+Ge+" is deprecated and cannot be used.")}}Yt.exports.Type=De(647),Yt.exports.Schema=De(372),Yt.exports.FAILSAFE_SCHEMA=De(746),Yt.exports.JSON_SCHEMA=De(147),Yt.exports.CORE_SCHEMA=De(192),Yt.exports.DEFAULT_SAFE_SCHEMA=De(31),Yt.exports.DEFAULT_FULL_SCHEMA=De(94),Yt.exports.load=rt.load,Yt.exports.loadAll=rt.loadAll,Yt.exports.safeLoad=rt.safeLoad,Yt.exports.safeLoadAll=rt.safeLoadAll,Yt.exports.dump=Oe.dump,Yt.exports.safeDump=Oe.safeDump,Yt.exports.YAMLException=De(314),Yt.exports.MINIMAL_SCHEMA=De(746),Yt.exports.SAFE_SCHEMA=De(31),Yt.exports.DEFAULT_SCHEMA=De(94),Yt.exports.scan=dt("scan"),Yt.exports.parse=dt("parse"),Yt.exports.compose=dt("compose"),Yt.exports.addConstructor=dt("addConstructor")},997:Yt=>{"use strict";function Tn(_e){return typeof _e>"u"||null===_e}Yt.exports.isNothing=Tn,Yt.exports.isObject=function De(_e){return"object"==typeof _e&&null!==_e},Yt.exports.toArray=function rt(_e){return Array.isArray(_e)?_e:Tn(_e)?[]:[_e]},Yt.exports.repeat=function dt(_e,et){var ve,Ve="";for(ve=0;ve{"use strict";var rt=De(997),Oe=De(314),dt=De(94),Ge=De(31),_e=Object.prototype.toString,et=Object.prototype.hasOwnProperty,Ve=9,ve=10,se=13,ue=32,ae=33,D=34,T=35,O=37,te=38,Me=39,Je=42,kt=44,jt=45,Wt=58,wn=61,rn=62,Mi=63,zr=64,Xr=91,hs=93,Ya=96,tr=123,mu=124,Sa=125,yn={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},Cd=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Kn(pe){var yt,Nt,Kt;if(yt=pe.toString(16).toUpperCase(),pe<=255)Nt="x",Kt=2;else if(pe<=65535)Nt="u",Kt=4;else{if(!(pe<=4294967295))throw new Oe("code point within a string may not be greater than 0xFFFFFFFF");Nt="U",Kt=8}return"\\"+Nt+rt.repeat("0",Kt-yt.length)+yt}function Nc(pe){this.schema=pe.schema||dt,this.indent=Math.max(1,pe.indent||2),this.noArrayIndent=pe.noArrayIndent||!1,this.skipInvalid=pe.skipInvalid||!1,this.flowLevel=rt.isNothing(pe.flowLevel)?-1:pe.flowLevel,this.styleMap=function kd(pe,yt){var Nt,Kt,Xt,Pt,dn,qt,We;if(null===yt)return{};for(Nt={},Xt=0,Pt=(Kt=Object.keys(yt)).length;Xt0?pe.charCodeAt(Pt-1):null,jr=jr&&pl(dn,qt)}else{for(Pt=0;PtKt&&" "!==pe[Cn+1],Cn=Pt);else if(!Da(dn))return Ja;qt=Pt>0?pe.charCodeAt(Pt-1):null,jr=jr&&pl(dn,qt)}Xe=Xe||bt&&Pt-Cn-1>Kt&&" "!==pe[Cn+1]}return We||Xe?Nt>9&&Sd(pe)?Ja:Xe?vu:Dd:jr&&!Xt(pe)?Fc:Oc}(yt,Kt||pe.flowLevel>-1&&Nt>=pe.flowLevel,pe.indent,Pt,function qt(We){return function Co(pe,yt){var Nt,Kt;for(Nt=0,Kt=pe.implicitTypes.length;Nt"+ml(yt,pe.indent)+Te(gu(function W(pe,yt){for(var Pt,dn,Nt=/(\n+)([^\n]*)/g,Kt=(Xe=void 0,Xe=pe.indexOf("\n"),Nt.lastIndex=Xe=-1!==Xe?Xe:pe.length,ee(pe.slice(0,Xe),yt)),Xt="\n"===pe[0]||" "===pe[0];dn=Nt.exec(pe);){var We=dn[2];Pt=" "===We[0],Kt+=dn[1]+(Xt||Pt||""===We?"":"\n")+ee(We,yt),Xt=Pt}var Xe;return Kt}(yt,Pt),Xt));case Ja:return'"'+function Fe(pe){for(var Nt,Kt,Xt,yt="",Pt=0;Pt=55296&&Nt<=56319&&(Kt=pe.charCodeAt(Pt+1))>=56320&&Kt<=57343?(yt+=Kn(1024*(Nt-55296)+Kt-56320+65536),Pt++):yt+=!(Xt=yn[Nt])&&Da(Nt)?pe[Pt]:Xt||Kn(Nt);return yt}(yt)+'"';default:throw new Oe("impossible error: invalid scalar style")}}()}function ml(pe,yt){var Nt=Sd(pe)?String(yt):"",Kt="\n"===pe[pe.length-1];return Nt+(!Kt||"\n"!==pe[pe.length-2]&&"\n"!==pe?Kt?"":"-":"+")+"\n"}function Te(pe){return"\n"===pe[pe.length-1]?pe.slice(0,-1):pe}function ee(pe,yt){if(""===pe||" "===pe[0])return pe;for(var Kt,Pt,Nt=/ [^ ]/g,Xt=0,dn=0,qt=0,We="";Kt=Nt.exec(pe);)(qt=Kt.index)-Xt>yt&&(We+="\n"+pe.slice(Xt,Pt=dn>Xt?dn:qt),Xt=Pt+1),dn=qt;return We+="\n",(We+=pe.length-Xt>yt&&dn>Xt?pe.slice(Xt,dn)+"\n"+pe.slice(dn+1):pe.slice(Xt)).slice(1)}function A(pe,yt,Nt){var Kt,Xt,Pt,dn,qt,We;for(Pt=0,dn=(Xt=Nt?pe.explicitTypes:pe.implicitTypes).length;Pt tag resolver accepts not "'+We+'" style');Kt=qt.represent[We](yt,We)}pe.dump=Kt}return!0}return!1}function st(pe,yt,Nt,Kt,Xt,Pt){pe.tag=null,pe.dump=Nt,A(pe,Nt,!1)||A(pe,Nt,!0);var dn=_e.call(pe.dump);Kt&&(Kt=pe.flowLevel<0||pe.flowLevel>yt);var We,Xe,qt="[object Object]"===dn||"[object Array]"===dn;if(qt&&(Xe=-1!==(We=pe.duplicates.indexOf(Nt))),(null!==pe.tag&&"?"!==pe.tag||Xe||2!==pe.indent&&yt>0)&&(Xt=!1),Xe&&pe.usedDuplicates[We])pe.dump="*ref_"+We;else{if(qt&&Xe&&!pe.usedDuplicates[We]&&(pe.usedDuplicates[We]=!0),"[object Object]"===dn)Kt&&0!==Object.keys(pe.dump).length?(function nr(pe,yt,Nt,Kt){var qt,We,Xe,bt,Cn,jr,Xt="",Pt=pe.tag,dn=Object.keys(Nt);if(!0===pe.sortKeys)dn.sort();else if("function"==typeof pe.sortKeys)dn.sort(pe.sortKeys);else if(pe.sortKeys)throw new Oe("sortKeys must be a boolean or a function");for(qt=0,We=dn.length;qt1024)&&(pe.dump&&ve===pe.dump.charCodeAt(0)?jr+="?":jr+="? "),jr+=pe.dump,Cn&&(jr+=Ro(pe,yt)),st(pe,yt+1,bt,!0,Cn)&&(pe.dump&&ve===pe.dump.charCodeAt(0)?jr+=":":jr+=": ",Xt+=jr+=pe.dump));pe.tag=Pt,pe.dump=Xt||"{}"}(pe,yt,pe.dump,Xt),Xe&&(pe.dump="&ref_"+We+pe.dump)):(function Qt(pe,yt,Nt){var dn,qt,We,Xe,bt,Kt="",Xt=pe.tag,Pt=Object.keys(Nt);for(dn=0,qt=Pt.length;dn1024&&(bt+="? "),bt+=pe.dump+(pe.condenseFlow?'"':"")+":"+(pe.condenseFlow?"":" "),st(pe,yt,Xe,!1,!1)&&(Kt+=bt+=pe.dump));pe.tag=Xt,pe.dump="{"+Kt+"}"}(pe,yt,pe.dump),Xe&&(pe.dump="&ref_"+We+" "+pe.dump));else if("[object Array]"===dn){var bt=pe.noArrayIndent&&yt>0?yt-1:yt;Kt&&0!==pe.dump.length?(function zt(pe,yt,Nt,Kt){var dn,qt,Xt="",Pt=pe.tag;for(dn=0,qt=Nt.length;dn "+pe.dump)}return!0}function Tt(pe,yt){var Xt,Pt,Nt=[],Kt=[];for(Ut(pe,Nt,Kt),Xt=0,Pt=Kt.length;Xt{"use strict";function Tn(De,rt){Error.call(this),this.name="YAMLException",this.reason=De,this.mark=rt,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}(Tn.prototype=Object.create(Error.prototype)).constructor=Tn,Tn.prototype.toString=function(rt){var Oe=this.name+": ";return Oe+=this.reason||"(unknown reason)",!rt&&this.mark&&(Oe+=" "+this.mark.toString()),Oe},Yt.exports=Tn},840:(Yt,Tn,De)=>{"use strict";var rt=De(997),Oe=De(314),dt=De(48),Ge=De(31),_e=De(94),et=Object.prototype.hasOwnProperty,Ve=1,ve=2,se=3,ue=4,ae=1,D=2,T=3,O=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,te=/[\x85\u2028\u2029]/,Me=/[,\[\]\{\}]/,Je=/^(?:!|!!|![a-z\-]+!)$/i,kt=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function jt(A){return Object.prototype.toString.call(A)}function Wt(A){return 10===A||13===A}function wn(A){return 9===A||32===A}function rn(A){return 9===A||32===A||10===A||13===A}function Mi(A){return 44===A||91===A||93===A||123===A||125===A}function zr(A){var st;return 48<=A&&A<=57?A-48:97<=(st=32|A)&&st<=102?st-97+10:-1}function Xr(A){return 120===A?2:117===A?4:85===A?8:0}function hs(A){return 48<=A&&A<=57?A-48:-1}function Ya(A){return 48===A?"\0":97===A?"\x07":98===A?"\b":116===A||9===A?"\t":110===A?"\n":118===A?"\v":102===A?"\f":114===A?"\r":101===A?"\x1b":32===A?" ":34===A?'"':47===A?"/":92===A?"\\":78===A?"\x85":95===A?"\xa0":76===A?"\u2028":80===A?"\u2029":""}function tr(A){return A<=65535?String.fromCharCode(A):String.fromCharCode(55296+(A-65536>>10),56320+(A-65536&1023))}for(var mu=new Array(256),Sa=new Array(256),yn=0;yn<256;yn++)mu[yn]=Ya(yn)?1:0,Sa[yn]=Ya(yn);function Cd(A,st){this.input=A,this.filename=st.filename||null,this.schema=st.schema||_e,this.onWarning=st.onWarning||null,this.legacy=st.legacy||!1,this.json=st.json||!1,this.listener=st.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=A.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function kd(A,st){return new Oe(st,new dt(A.filename,A.input,A.position,A.line,A.position-A.lineStart))}function Kn(A,st){throw kd(A,st)}function Nc(A,st){A.onWarning&&A.onWarning.call(null,kd(A,st))}var gu={YAML:function(st,Tt,Ut){var Vt,mn,pe;null!==st.version&&Kn(st,"duplication of %YAML directive"),1!==Ut.length&&Kn(st,"YAML directive accepts exactly one argument"),null===(Vt=/^([0-9]+)\.([0-9]+)$/.exec(Ut[0]))&&Kn(st,"ill-formed argument of the YAML directive"),mn=parseInt(Vt[1],10),pe=parseInt(Vt[2],10),1!==mn&&Kn(st,"unacceptable YAML version of the document"),st.version=Ut[0],st.checkLineBreaks=pe<2,1!==pe&&2!==pe&&Nc(st,"unsupported YAML version of the document")},TAG:function(st,Tt,Ut){var Vt,mn;2!==Ut.length&&Kn(st,"TAG directive accepts exactly two arguments"),mn=Ut[1],Je.test(Vt=Ut[0])||Kn(st,"ill-formed tag handle (first argument) of the TAG directive"),et.call(st.tagMap,Vt)&&Kn(st,'there is a previously declared suffix for "'+Vt+'" tag handle'),kt.test(mn)||Kn(st,"ill-formed tag prefix (second argument) of the TAG directive"),st.tagMap[Vt]=mn}};function Ro(A,st,Tt,Ut){var Vt,mn,pe,yt;if(st1&&(A.result+=rt.repeat("\n",st-1))}function Ja(A,st){var Tt,Nt,Ut=A.tag,Vt=A.anchor,mn=[],yt=!1;for(null!==A.anchor&&(A.anchorMap[A.anchor]=mn),Nt=A.input.charCodeAt(A.position);0!==Nt&&45===Nt&&rn(A.input.charCodeAt(A.position+1));)if(yt=!0,A.position++,Zr(A,!0,-1)&&A.lineIndent<=st)mn.push(null),Nt=A.input.charCodeAt(A.position);else if(Tt=A.line,W(A,st,se,!1,!0),mn.push(A.result),Zr(A,!0,-1),Nt=A.input.charCodeAt(A.position),(A.line===Tt||A.lineIndent>st)&&0!==Nt)Kn(A,"bad indentation of a sequence entry");else if(A.lineIndentst?Nt=1:A.lineIndent===st?Nt=0:A.lineIndentst?Nt=1:A.lineIndent===st?Nt=0:A.lineIndentst)&&(W(A,st,ue,!0,Vt)&&(We?dn=A.result:qt=A.result),We||(lo(A,Kt,Xt,Pt,dn,qt,mn,pe),Pt=dn=qt=null),Zr(A,!0,-1),bt=A.input.charCodeAt(A.position)),A.lineIndent>st&&0!==bt)Kn(A,"bad indentation of a mapping entry");else if(A.lineIndent=0))break;0===Xt?Kn(A,"bad explicit indentation width of a block scalar; it cannot be less than one"):pe?Kn(A,"repeat of an indentation width identifier"):(yt=st+Xt-1,pe=!0)}if(wn(Pt)){do{Pt=A.input.charCodeAt(++A.position)}while(wn(Pt));if(35===Pt)do{Pt=A.input.charCodeAt(++A.position)}while(!Wt(Pt)&&0!==Pt)}for(;0!==Pt;){for(Da(A),A.lineIndent=0,Pt=A.input.charCodeAt(A.position);(!pe||A.lineIndentyt&&(yt=A.lineIndent),Wt(Pt))Nt++;else{if(A.lineIndent0){for(Vt=pe,mn=0;Vt>0;Vt--)(pe=zr(yt=A.input.charCodeAt(++A.position)))>=0?mn=(mn<<4)+pe:Kn(A,"expected hexadecimal character");A.result+=tr(mn),A.position++}else Kn(A,"unknown escape sequence");Tt=Ut=A.position}else Wt(yt)?(Ro(A,Tt,Ut,!0),nc(A,Zr(A,!1,st)),Tt=Ut=A.position):A.position===A.lineStart&&pl(A)?Kn(A,"unexpected end of the document within a double quoted scalar"):(A.position++,Ut=A.position)}Kn(A,"unexpected end of the stream within a double quoted scalar")}(A,We)?Xt=!0:function Te(A){var st,Tt,Ut;if(42!==(Ut=A.input.charCodeAt(A.position)))return!1;for(Ut=A.input.charCodeAt(++A.position),st=A.position;0!==Ut&&!rn(Ut)&&!Mi(Ut);)Ut=A.input.charCodeAt(++A.position);return A.position===st&&Kn(A,"name of an alias node must contain at least one character"),Tt=A.input.slice(st,A.position),A.anchorMap.hasOwnProperty(Tt)||Kn(A,'unidentified alias "'+Tt+'"'),A.result=A.anchorMap[Tt],Zr(A,!0,-1),!0}(A)?(Xt=!0,(null!==A.tag||null!==A.anchor)&&Kn(A,"alias node should not have any properties")):function Sd(A,st,Tt){var Vt,mn,pe,yt,Nt,Kt,Xt,qt,Pt=A.kind,dn=A.result;if(rn(qt=A.input.charCodeAt(A.position))||Mi(qt)||35===qt||38===qt||42===qt||33===qt||124===qt||62===qt||39===qt||34===qt||37===qt||64===qt||96===qt||(63===qt||45===qt)&&(rn(Vt=A.input.charCodeAt(A.position+1))||Tt&&Mi(Vt)))return!1;for(A.kind="scalar",A.result="",mn=pe=A.position,yt=!1;0!==qt;){if(58===qt){if(rn(Vt=A.input.charCodeAt(A.position+1))||Tt&&Mi(Vt))break}else if(35===qt){if(rn(A.input.charCodeAt(A.position-1)))break}else{if(A.position===A.lineStart&&pl(A)||Tt&&Mi(qt))break;if(Wt(qt)){if(Nt=A.line,Kt=A.lineStart,Xt=A.lineIndent,Zr(A,!1,-1),A.lineIndent>=st){yt=!0,qt=A.input.charCodeAt(A.position);continue}A.position=pe,A.line=Nt,A.lineStart=Kt,A.lineIndent=Xt;break}}yt&&(Ro(A,mn,pe,!1),nc(A,A.line-Nt),mn=pe=A.position,yt=!1),wn(qt)||(pe=A.position+1),qt=A.input.charCodeAt(++A.position)}return Ro(A,mn,pe,!1),!!A.result||(A.kind=Pt,A.result=dn,!1)}(A,We,Ve===Tt)&&(Xt=!0,null===A.tag&&(A.tag="?")),null!==A.anchor&&(A.anchorMap[A.anchor]=A.result)):0===Nt&&(Xt=yt&&Ja(A,Xe))),null!==A.tag&&"!"!==A.tag)if("?"===A.tag){for(null!==A.result&&"scalar"!==A.kind&&Kn(A,'unacceptable node kind for ! tag; it should be "scalar", not "'+A.kind+'"'),Pt=0,dn=A.implicitTypes.length;Pt tag; it should be "'+qt.kind+'", not "'+A.kind+'"'),qt.resolve(A.result)?(A.result=qt.construct(A.result),null!==A.anchor&&(A.anchorMap[A.anchor]=A.result)):Kn(A,"cannot resolve a node with !<"+A.tag+"> explicit tag")):Kn(A,"unknown tag !<"+A.tag+">");return null!==A.listener&&A.listener("close",A),null!==A.tag||null!==A.anchor||Xt}function ee(A){var Tt,Ut,Vt,pe,st=A.position,mn=!1;for(A.version=null,A.checkLineBreaks=A.legacy,A.tagMap={},A.anchorMap={};0!==(pe=A.input.charCodeAt(A.position))&&(Zr(A,!0,-1),pe=A.input.charCodeAt(A.position),!(A.lineIndent>0||37!==pe));){for(mn=!0,pe=A.input.charCodeAt(++A.position),Tt=A.position;0!==pe&&!rn(pe);)pe=A.input.charCodeAt(++A.position);for(Vt=[],(Ut=A.input.slice(Tt,A.position)).length<1&&Kn(A,"directive name must not be less than one character in length");0!==pe;){for(;wn(pe);)pe=A.input.charCodeAt(++A.position);if(35===pe){do{pe=A.input.charCodeAt(++A.position)}while(0!==pe&&!Wt(pe));break}if(Wt(pe))break;for(Tt=A.position;0!==pe&&!rn(pe);)pe=A.input.charCodeAt(++A.position);Vt.push(A.input.slice(Tt,A.position))}0!==pe&&Da(A),et.call(gu,Ut)?gu[Ut](A,Ut,Vt):Nc(A,'unknown document directive "'+Ut+'"')}Zr(A,!0,-1),0===A.lineIndent&&45===A.input.charCodeAt(A.position)&&45===A.input.charCodeAt(A.position+1)&&45===A.input.charCodeAt(A.position+2)?(A.position+=3,Zr(A,!0,-1)):mn&&Kn(A,"directives end mark is expected"),W(A,A.lineIndent-1,ue,!1,!0),Zr(A,!0,-1),A.checkLineBreaks&&te.test(A.input.slice(st,A.position))&&Nc(A,"non-ASCII line breaks are interpreted as content"),A.documents.push(A.result),A.position===A.lineStart&&pl(A)?46===A.input.charCodeAt(A.position)&&(A.position+=3,Zr(A,!0,-1)):A.position"u"&&(Tt=st,st=null);var Ut=Fe(A,Tt);if("function"!=typeof st)return Ut;for(var Vt=0,mn=Ut.length;Vt"u"&&(Tt=st,st=null),nt(A,st,rt.extend({schema:Ge},Tt))},Yt.exports.safeLoad=function nr(A,st){return zt(A,rt.extend({schema:Ge},st))}},48:(Yt,Tn,De)=>{"use strict";var rt=De(997);function Oe(dt,Ge,_e,et,Ve){this.name=dt,this.buffer=Ge,this.position=_e,this.line=et,this.column=Ve}Oe.prototype.getSnippet=function(Ge,_e){var et,Ve,ve,se,ue;if(!this.buffer)return null;for(Ge=Ge||4,_e=_e||75,et="",Ve=this.position;Ve>0&&-1==="\0\r\n\x85\u2028\u2029".indexOf(this.buffer.charAt(Ve-1));)if(this.position-(Ve-=1)>_e/2-1){et=" ... ",Ve+=5;break}for(ve="",se=this.position;se_e/2-1){ve=" ... ",se-=5;break}return ue=this.buffer.slice(Ve,se),rt.repeat(" ",Ge)+et+ue+ve+"\n"+rt.repeat(" ",Ge+this.position-Ve+et.length)+"^"},Oe.prototype.toString=function(Ge){var _e,et="";return this.name&&(et+='in "'+this.name+'" '),et+="at line "+(this.line+1)+", column "+(this.column+1),Ge||(_e=this.getSnippet())&&(et+=":\n"+_e),et},Yt.exports=Oe},372:(Yt,Tn,De)=>{"use strict";var rt=De(997),Oe=De(314),dt=De(647);function Ge(Ve,ve,se){var ue=[];return Ve.include.forEach(function(ae){se=Ge(ae,ve,se)}),Ve[ve].forEach(function(ae){se.forEach(function(D,T){D.tag===ae.tag&&D.kind===ae.kind&&ue.push(T)}),se.push(ae)}),se.filter(function(ae,D){return-1===ue.indexOf(D)})}function et(Ve){this.include=Ve.include||[],this.implicit=Ve.implicit||[],this.explicit=Ve.explicit||[],this.implicit.forEach(function(ve){if(ve.loadKind&&"scalar"!==ve.loadKind)throw new Oe("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Ge(this,"implicit",[]),this.compiledExplicit=Ge(this,"explicit",[]),this.compiledTypeMap=function _e(){var ve,se,Ve={scalar:{},sequence:{},mapping:{},fallback:{}};function ue(ae){Ve[ae.kind][ae.tag]=Ve.fallback[ae.tag]=ae}for(ve=0,se=arguments.length;ve{"use strict";var rt=De(372);Yt.exports=new rt({include:[De(147)]})},94:(Yt,Tn,De)=>{"use strict";var rt=De(372);Yt.exports=rt.DEFAULT=new rt({include:[De(31)],explicit:[De(771),De(632),De(716)]})},31:(Yt,Tn,De)=>{"use strict";var rt=De(372);Yt.exports=new rt({include:[De(192)],implicit:[De(934),De(996)],explicit:[De(486),De(166),De(711),De(738)]})},746:(Yt,Tn,De)=>{"use strict";var rt=De(372);Yt.exports=new rt({explicit:[De(464),De(322),De(71)]})},147:(Yt,Tn,De)=>{"use strict";var rt=De(372);Yt.exports=new rt({include:[De(746)],implicit:[De(568),De(911),De(877),De(615)]})},647:(Yt,Tn,De)=>{"use strict";var rt=De(314),Oe=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],dt=["scalar","sequence","mapping"];Yt.exports=function _e(et,Ve){if(Ve=Ve||{},Object.keys(Ve).forEach(function(ve){if(-1===Oe.indexOf(ve))throw new rt('Unknown option "'+ve+'" is met in definition of "'+et+'" YAML type.')}),this.tag=et,this.kind=Ve.kind||null,this.resolve=Ve.resolve||function(){return!0},this.construct=Ve.construct||function(ve){return ve},this.instanceOf=Ve.instanceOf||null,this.predicate=Ve.predicate||null,this.represent=Ve.represent||null,this.defaultStyle=Ve.defaultStyle||null,this.styleAliases=function Ge(et){var Ve={};return null!==et&&Object.keys(et).forEach(function(ve){et[ve].forEach(function(se){Ve[String(se)]=ve})}),Ve}(Ve.styleAliases||null),-1===dt.indexOf(this.kind))throw new rt('Unknown kind "'+this.kind+'" is specified for "'+et+'" YAML type.')}},486:(Yt,Tn,De)=>{"use strict";var rt;try{rt=De(172).lW}catch{}var dt=De(647),Ge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";Yt.exports=new dt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function _e(se){if(null===se)return!1;var ue,ae,D=0,T=se.length,O=Ge;for(ae=0;ae64)){if(ue<0)return!1;D+=6}return D%8==0},construct:function et(se){var ue,ae,D=se.replace(/[\r\n=]/g,""),T=D.length,O=Ge,te=0,Me=[];for(ue=0;ue>16&255),Me.push(te>>8&255),Me.push(255&te)),te=te<<6|O.indexOf(D.charAt(ue));return 0==(ae=T%4*6)?(Me.push(te>>16&255),Me.push(te>>8&255),Me.push(255&te)):18===ae?(Me.push(te>>10&255),Me.push(te>>2&255)):12===ae&&Me.push(te>>4&255),rt?rt.from?rt.from(Me):new rt(Me):Me},predicate:function ve(se){return rt&&rt.isBuffer(se)},represent:function Ve(se){var D,T,ue="",ae=0,O=se.length,te=Ge;for(D=0;D>18&63],ue+=te[ae>>12&63],ue+=te[ae>>6&63],ue+=te[63&ae]),ae=(ae<<8)+se[D];return 0==(T=O%3)?(ue+=te[ae>>18&63],ue+=te[ae>>12&63],ue+=te[ae>>6&63],ue+=te[63&ae]):2===T?(ue+=te[ae>>10&63],ue+=te[ae>>4&63],ue+=te[ae<<2&63],ue+=te[64]):1===T&&(ue+=te[ae>>2&63],ue+=te[ae<<4&63],ue+=te[64],ue+=te[64]),ue}})},911:(Yt,Tn,De)=>{"use strict";var rt=De(647);Yt.exports=new rt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function Oe(_e){if(null===_e)return!1;var et=_e.length;return 4===et&&("true"===_e||"True"===_e||"TRUE"===_e)||5===et&&("false"===_e||"False"===_e||"FALSE"===_e)},construct:function dt(_e){return"true"===_e||"True"===_e||"TRUE"===_e},predicate:function Ge(_e){return"[object Boolean]"===Object.prototype.toString.call(_e)},represent:{lowercase:function(_e){return _e?"true":"false"},uppercase:function(_e){return _e?"TRUE":"FALSE"},camelcase:function(_e){return _e?"True":"False"}},defaultStyle:"lowercase"})},615:(Yt,Tn,De)=>{"use strict";var rt=De(997),Oe=De(647),dt=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),et=/^[-+]?[0-9]+e/;Yt.exports=new Oe("tag:yaml.org,2002:float",{kind:"scalar",resolve:function Ge(se){return!(null===se||!dt.test(se)||"_"===se[se.length-1])},construct:function _e(se){var ue,ae,D,T;return ae="-"===(ue=se.replace(/_/g,"").toLowerCase())[0]?-1:1,T=[],"+-".indexOf(ue[0])>=0&&(ue=ue.slice(1)),".inf"===ue?1===ae?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===ue?NaN:ue.indexOf(":")>=0?(ue.split(":").forEach(function(O){T.unshift(parseFloat(O,10))}),ue=0,D=1,T.forEach(function(O){ue+=O*D,D*=60}),ae*ue):ae*parseFloat(ue,10)},predicate:function ve(se){return"[object Number]"===Object.prototype.toString.call(se)&&(se%1!=0||rt.isNegativeZero(se))},represent:function Ve(se,ue){var ae;if(isNaN(se))switch(ue){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===se)switch(ue){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===se)switch(ue){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(rt.isNegativeZero(se))return"-0.0";return ae=se.toString(10),et.test(ae)?ae.replace("e",".e"):ae},defaultStyle:"lowercase"})},877:(Yt,Tn,De)=>{"use strict";var rt=De(997),Oe=De(647);function dt(se){return 48<=se&&se<=57||65<=se&&se<=70||97<=se&&se<=102}function Ge(se){return 48<=se&&se<=55}function _e(se){return 48<=se&&se<=57}Yt.exports=new Oe("tag:yaml.org,2002:int",{kind:"scalar",resolve:function et(se){if(null===se)return!1;var T,ue=se.length,ae=0,D=!1;if(!ue)return!1;if(("-"===(T=se[ae])||"+"===T)&&(T=se[++ae]),"0"===T){if(ae+1===ue)return!0;if("b"===(T=se[++ae])){for(ae++;ae=0?"0b"+se.toString(2):"-0b"+se.toString(2).slice(1)},octal:function(se){return se>=0?"0"+se.toString(8):"-0"+se.toString(8).slice(1)},decimal:function(se){return se.toString(10)},hexadecimal:function(se){return se>=0?"0x"+se.toString(16).toUpperCase():"-0x"+se.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},716:(Yt,Tn,De)=>{"use strict";var rt;try{rt=De(797)}catch{typeof window<"u"&&(rt=window.esprima)}var dt=De(647);Yt.exports=new dt("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function Ge(ve){if(null===ve)return!1;try{var ue=rt.parse("("+ve+")",{range:!0});return!("Program"!==ue.type||1!==ue.body.length||"ExpressionStatement"!==ue.body[0].type||"ArrowFunctionExpression"!==ue.body[0].expression.type&&"FunctionExpression"!==ue.body[0].expression.type)}catch{return!1}},construct:function _e(ve){var D,se="("+ve+")",ue=rt.parse(se,{range:!0}),ae=[];if("Program"!==ue.type||1!==ue.body.length||"ExpressionStatement"!==ue.body[0].type||"ArrowFunctionExpression"!==ue.body[0].expression.type&&"FunctionExpression"!==ue.body[0].expression.type)throw new Error("Failed to resolve function");return ue.body[0].expression.params.forEach(function(T){ae.push(T.name)}),D=ue.body[0].expression.body.range,new Function(ae,"BlockStatement"===ue.body[0].expression.body.type?se.slice(D[0]+1,D[1]-1):"return "+se.slice(D[0],D[1]))},predicate:function Ve(ve){return"[object Function]"===Object.prototype.toString.call(ve)},represent:function et(ve){return ve.toString()}})},632:(Yt,Tn,De)=>{"use strict";var rt=De(647);Yt.exports=new rt("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:function Oe(et){if(null===et||0===et.length)return!1;var Ve=et,ve=/\/([gim]*)$/.exec(et),se="";return!("/"===Ve[0]&&(ve&&(se=ve[1]),se.length>3||"/"!==Ve[Ve.length-se.length-1]))},construct:function dt(et){var Ve=et,ve=/\/([gim]*)$/.exec(et),se="";return"/"===Ve[0]&&(ve&&(se=ve[1]),Ve=Ve.slice(1,Ve.length-se.length-1)),new RegExp(Ve,se)},predicate:function _e(et){return"[object RegExp]"===Object.prototype.toString.call(et)},represent:function Ge(et){var Ve="/"+et.source+"/";return et.global&&(Ve+="g"),et.multiline&&(Ve+="m"),et.ignoreCase&&(Ve+="i"),Ve}})},771:(Yt,Tn,De)=>{"use strict";var rt=De(647);Yt.exports=new rt("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:function Oe(){return!0},construct:function dt(){},predicate:function _e(et){return typeof et>"u"},represent:function Ge(){return""}})},71:(Yt,Tn,De)=>{"use strict";var rt=De(647);Yt.exports=new rt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(Oe){return null!==Oe?Oe:{}}})},996:(Yt,Tn,De)=>{"use strict";var rt=De(647);Yt.exports=new rt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function Oe(dt){return"<<"===dt||null===dt}})},568:(Yt,Tn,De)=>{"use strict";var rt=De(647);Yt.exports=new rt("tag:yaml.org,2002:null",{kind:"scalar",resolve:function Oe(_e){if(null===_e)return!0;var et=_e.length;return 1===et&&"~"===_e||4===et&&("null"===_e||"Null"===_e||"NULL"===_e)},construct:function dt(){return null},predicate:function Ge(_e){return null===_e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},166:(Yt,Tn,De)=>{"use strict";var rt=De(647),Oe=Object.prototype.hasOwnProperty,dt=Object.prototype.toString;Yt.exports=new rt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function Ge(et){if(null===et)return!0;var ve,se,ue,ae,D,Ve=[],T=et;for(ve=0,se=T.length;ve{"use strict";var rt=De(647),Oe=Object.prototype.toString;Yt.exports=new rt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function dt(_e){if(null===_e)return!0;var et,Ve,ve,se,ue,ae=_e;for(ue=new Array(ae.length),et=0,Ve=ae.length;et{"use strict";var rt=De(647);Yt.exports=new rt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(Oe){return null!==Oe?Oe:[]}})},738:(Yt,Tn,De)=>{"use strict";var rt=De(647),Oe=Object.prototype.hasOwnProperty;Yt.exports=new rt("tag:yaml.org,2002:set",{kind:"mapping",resolve:function dt(_e){if(null===_e)return!0;var et,Ve=_e;for(et in Ve)if(Oe.call(Ve,et)&&null!==Ve[et])return!1;return!0},construct:function Ge(_e){return null!==_e?_e:{}}})},464:(Yt,Tn,De)=>{"use strict";var rt=De(647);Yt.exports=new rt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(Oe){return null!==Oe?Oe:""}})},934:(Yt,Tn,De)=>{"use strict";var rt=De(647),Oe=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),dt=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");Yt.exports=new rt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function Ge(Ve){return null!==Ve&&(null!==Oe.exec(Ve)||null!==dt.exec(Ve))},construct:function _e(Ve){var ve,se,ue,ae,D,T,O,jt,te=0,Me=null;if(null===(ve=Oe.exec(Ve))&&(ve=dt.exec(Ve)),null===ve)throw new Error("Date resolve error");if(se=+ve[1],ue=+ve[2]-1,ae=+ve[3],!ve[4])return new Date(Date.UTC(se,ue,ae));if(D=+ve[4],T=+ve[5],O=+ve[6],ve[7]){for(te=ve[7].slice(0,3);te.length<3;)te+="0";te=+te}return ve[9]&&(Me=6e4*(60*+ve[10]+ +(ve[11]||0)),"-"===ve[9]&&(Me=-Me)),jt=new Date(Date.UTC(se,ue,ae,D,T,O,te)),Me&&jt.setTime(jt.getTime()-Me),jt},instanceOf:Date,represent:function et(Ve){return Ve.toISOString()}})}},Yt=>{Yt(Yt.s=440)}]); \ No newline at end of file diff --git a/console/ui/dist/prod-nt/main.bf6ffc1e85ec2d2a.js b/console/ui/dist/prod-nt/main.bf6ffc1e85ec2d2a.js deleted file mode 100644 index c00e51c82..000000000 --- a/console/ui/dist/prod-nt/main.bf6ffc1e85ec2d2a.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkui=self.webpackChunkui||[]).push([[179],{440:(fn,Gn,Ye)=>{"use strict";function ve(t){return"function"==typeof t}let ee=!1;const it={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const n=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+n.stack)}else ee&&console.log("RxJS: Back to a better error behavior. Thank you. <3");ee=t},get useDeprecatedSynchronousErrorHandling(){return ee}};function he(t){setTimeout(()=>{throw t},0)}const W={closed:!0,next(t){},error(t){if(it.useDeprecatedSynchronousErrorHandling)throw t;he(t)},complete(){}},R=Array.isArray||(t=>t&&"number"==typeof t.length);function D(t){return null!==t&&"object"==typeof t}const v=(()=>{function t(n){return Error.call(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n,this}return t.prototype=Object.create(Error.prototype),t})();class g{constructor(n){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,n&&(this._ctorUnsubscribe=!0,this._unsubscribe=n)}unsubscribe(){let n;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof g)e.remove(this);else if(null!==e)for(let s=0;sn.concat(e instanceof v?e.errors:e),[])}g.EMPTY=((t=new g).closed=!0,t);const y="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class x extends g{constructor(n,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=W;break;case 1:if(!n){this.destination=W;break}if("object"==typeof n){n instanceof x?(this.syncErrorThrowable=n.syncErrorThrowable,this.destination=n,n.add(this)):(this.syncErrorThrowable=!0,this.destination=new T(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new T(this,n,e,i)}}[y](){return this}static create(n,e,i){const r=new x(n,e,i);return r.syncErrorThrowable=!1,r}next(n){this.isStopped||this._next(n)}error(n){this.isStopped||(this.isStopped=!0,this._error(n))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(n){this.destination.next(n)}_error(n){this.destination.error(n),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:n}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=n,this}}class T extends x{constructor(n,e,i,r){super(),this._parentSubscriber=n;let o,s=this;ve(e)?o=e:e&&(o=e.next,i=e.error,r=e.complete,e!==W&&(s=Object.create(e),ve(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=i,this._complete=r}next(n){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;it.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,n)&&this.unsubscribe():this.__tryOrUnsub(this._next,n)}}error(n){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=it;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,n),this.unsubscribe()):(this.__tryOrUnsub(this._error,n),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=n,e.syncErrorThrown=!0):he(n),this.unsubscribe();else{if(this.unsubscribe(),i)throw n;he(n)}}}complete(){if(!this.isStopped){const{_parentSubscriber:n}=this;if(this._complete){const e=()=>this._complete.call(this._context);it.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?(this.__tryOrSetError(n,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(n,e){try{n.call(this._context,e)}catch(i){if(this.unsubscribe(),it.useDeprecatedSynchronousErrorHandling)throw i;he(i)}}__tryOrSetError(n,e,i){if(!it.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return it.useDeprecatedSynchronousErrorHandling?(n.syncErrorValue=r,n.syncErrorThrown=!0,!0):(he(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:n}=this;this._context=null,this._parentSubscriber=null,n.unsubscribe()}}const K="function"==typeof Symbol&&Symbol.observable||"@@observable";function q(t){return t}function U(t){return 0===t.length?q:1===t.length?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}let P=(()=>{class t{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:o}=this,s=function Y(t,n,e){if(t){if(t instanceof x)return t;if(t[y])return t[y]()}return t||n||e?new x(t,n,e):new x(W)}(e,i,r);if(s.add(o?o.call(s,this.source):this.source||it.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),it.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(i){it.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function j(t){for(;t;){const{closed:n,destination:e,isStopped:i}=t;if(n||i)return!1;t=e&&e instanceof x?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=$(i))((r,o)=>{let s;s=this.subscribe(a=>{try{e(a)}catch(l){o(l),s&&s.unsubscribe()}},o,r)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[K](){return this}pipe(...e){return 0===e.length?this:U(e)(this)}toPromise(e){return new(e=$(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return t.create=n=>new t(n),t})();function $(t){if(t||(t=it.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const F=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class X extends g{constructor(n,e){super(),this.subject=n,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const n=this.subject,e=n.observers;if(this.subject=null,!e||0===e.length||n.isStopped||n.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class Ce extends x{constructor(n){super(n),this.destination=n}}let Me=(()=>{class t extends P{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[y](){return new Ce(this)}lift(e){const i=new Re(this,this);return i.operator=e,i}next(e){if(this.closed)throw new F;if(!this.isStopped){const{observers:i}=this,r=i.length,o=i.slice();for(let s=0;snew Re(n,e),t})();class Re extends Me{constructor(n,e){super(),this.destination=n,this.source=e}next(n){const{destination:e}=this;e&&e.next&&e.next(n)}error(n){const{destination:e}=this;e&&e.error&&this.destination.error(n)}complete(){const{destination:n}=this;n&&n.complete&&this.destination.complete()}_subscribe(n){const{source:e}=this;return e?this.source.subscribe(n):g.EMPTY}}function ze(t){return t&&"function"==typeof t.schedule}function Pe(t,n){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new Tt(t,n))}}class Tt{constructor(n,e){this.project=n,this.thisArg=e}call(n,e){return e.subscribe(new St(n,this.project,this.thisArg))}}class St extends x{constructor(n,e,i){super(n),this.project=e,this.count=0,this.thisArg=i||this}_next(n){let e;try{e=this.project.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const ht=t=>n=>{for(let e=0,i=t.length;et&&"number"==typeof t.length&&"function"!=typeof t;function wi(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const pr=t=>{if(t&&"function"==typeof t[K])return(t=>n=>{const e=t[K]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(n)})(t);if(Vn(t))return ht(t);if(wi(t))return(t=>n=>(t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,he),n))(t);if(t&&"function"==typeof t[Zt])return(t=>n=>{const e=t[Zt]();for(;;){let i;try{i=e.next()}catch(r){return n.error(r),n}if(i.done){n.complete();break}if(n.next(i.value),n.closed)break}return"function"==typeof e.return&&n.add(()=>{e.return&&e.return()}),n})(t);{const e=`You provided ${D(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function $i(t,n){return new P(e=>{const i=new g;let r=0;return i.add(n.schedule(function(){r!==t.length?(e.next(t[r++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function zn(t,n){return n?function Gi(t,n){if(null!=t){if(function lr(t){return t&&"function"==typeof t[K]}(t))return function Ri(t,n){return new P(e=>{const i=new g;return i.add(n.schedule(()=>{const r=t[K]();i.add(r.subscribe({next(o){i.add(n.schedule(()=>e.next(o)))},error(o){i.add(n.schedule(()=>e.error(o)))},complete(){i.add(n.schedule(()=>e.complete()))}}))})),i})}(t,n);if(wi(t))return function ci(t,n){return new P(e=>{const i=new g;return i.add(n.schedule(()=>t.then(r=>{i.add(n.schedule(()=>{e.next(r),i.add(n.schedule(()=>e.complete()))}))},r=>{i.add(n.schedule(()=>e.error(r)))}))),i})}(t,n);if(Vn(t))return $i(t,n);if(function Wi(t){return t&&"function"==typeof t[Zt]}(t)||"string"==typeof t)return function qn(t,n){if(!t)throw new Error("Iterable cannot be null");return new P(e=>{const i=new g;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(n.schedule(()=>{r=t[Zt](),i.add(n.schedule(function(){if(e.closed)return;let o,s;try{const a=r.next();o=a.value,s=a.done}catch(a){return void e.error(a)}s?e.complete():(e.next(o),this.schedule())}))})),i})}(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,n):t instanceof P?t:new P(pr(t))}class vr extends x{constructor(n){super(),this.parent=n}_next(n){this.parent.notifyNext(n)}_error(n){this.parent.notifyError(n),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class de extends x{notifyNext(n){this.destination.next(n)}notifyError(n){this.destination.error(n)}notifyComplete(){this.destination.complete()}}function Le(t,n){if(!n.closed)return t instanceof P?t.subscribe(n):pr(t)(n)}function et(t,n,e=Number.POSITIVE_INFINITY){return"function"==typeof n?i=>i.pipe(et((r,o)=>zn(t(r,o)).pipe(Pe((s,a)=>n(r,s,o,a))),e)):("number"==typeof n&&(e=n),i=>i.lift(new Ot(t,e)))}class Ot{constructor(n,e=Number.POSITIVE_INFINITY){this.project=n,this.concurrent=e}call(n,e){return e.subscribe(new Jt(n,this.project,this.concurrent))}}class Jt extends de{constructor(n,e,i=Number.POSITIVE_INFINITY){super(n),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(n){this.active0?this._next(n.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function H(t=Number.POSITIVE_INFINITY){return et(q,t)}function yt(t,n){return n?$i(t,n):new P(ht(t))}function Lt(...t){let n=Number.POSITIVE_INFINITY,e=null,i=t[t.length-1];return ze(i)?(e=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===e&&1===t.length&&t[0]instanceof P?t[0]:H(n)(yt(t,e))}function Kt(){return function(n){return n.lift(new Vt(n))}}class Vt{constructor(n){this.connectable=n}call(n,e){const{connectable:i}=this;i._refCount++;const r=new wn(n,i),o=e.subscribe(r);return r.closed||(r.connection=i.connect()),o}}class wn extends x{constructor(n,e){super(n),this.connectable=e}_unsubscribe(){const{connectable:n}=this;if(!n)return void(this.connection=null);this.connectable=null;const e=n._refCount;if(e<=0)return void(this.connection=null);if(n._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,r=n._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class Ne extends P{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let n=this._connection;return n||(this._isComplete=!1,n=this._connection=new g,n.add(this.source.subscribe(new nn(this.getSubject(),this))),n.closed&&(this._connection=null,n=g.EMPTY)),n}refCount(){return Kt()(this)}}const jt=(()=>{const t=Ne.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class nn extends Ce{constructor(n,e){super(n),this.connectable=e}_error(n){this._unsubscribe(),super._error(n)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const n=this.connectable;if(n){this.connectable=null;const e=n._connection;n._refCount=0,n._subject=null,n._connection=null,e&&e.unsubscribe()}}}class In{constructor(n,e){this.subjectFactory=n,this.selector=e}call(n,e){const{selector:i}=this,r=this.subjectFactory(),o=i(r).subscribe(n);return o.add(e.subscribe(r)),o}}function gn(){return new Me}function dt(){return t=>Kt()(function sn(t,n){return function(i){let r;if(r="function"==typeof t?t:function(){return t},"function"==typeof n)return i.lift(new In(r,n));const o=Object.create(i,jt);return o.source=i,o.subjectFactory=r,o}}(gn)(t))}function pt(t){for(let n in t)if(t[n]===pt)return n;throw Error("Could not find renamed property on target object.")}function Ht(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function Bn(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Bn).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function so(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const q0=pt({__forward_ref__:pt});function yr(t){return t.__forward_ref__=yr,t.toString=function(){return Bn(this())},t}function qi(t){return ZD(t)?t():t}function ZD(t){return"function"==typeof t&&t.hasOwnProperty(q0)&&t.__forward_ref__===yr}function eT(t){return t&&!!t.\u0275providers}const V_="https://g.co/ng/security#xss";class on extends Error{constructor(n,e){super(z_(n,e)),this.code=n}}function z_(t,n){return`NG0${Math.abs(t)}${n?": "+n.trim():""}`}function cr(t){return"string"==typeof t?t:null==t?"":String(t)}function U_(t,n){throw new on(-201,!1)}function Vc(t,n){null==t&&function So(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(n,t,null,"!=")}function Yt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Xi(t){return{providers:t.providers||[],imports:t.imports||[]}}function W_(t){return b4(t,G_)||b4(t,w4)}function b4(t,n){return t.hasOwnProperty(n)?t[n]:null}function _4(t){return t&&(t.hasOwnProperty(tT)||t.hasOwnProperty(dme))?t[tT]:null}const G_=pt({\u0275prov:pt}),tT=pt({\u0275inj:pt}),w4=pt({ngInjectableDef:pt}),dme=pt({ngInjectorDef:pt});var Yi=(()=>((Yi=Yi||{})[Yi.Default=0]="Default",Yi[Yi.Host=1]="Host",Yi[Yi.Self=2]="Self",Yi[Yi.SkipSelf=4]="SkipSelf",Yi[Yi.Optional=8]="Optional",Yi))();let nT;function zc(t){const n=nT;return nT=t,n}function x4(t,n,e){const i=W_(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&Yi.Optional?null:void 0!==n?n:void U_(Bn(t))}const is=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),X0={},iT="__NG_DI_FLAG__",q_="ngTempTokenPath",pme="ngTokenPath",gme=/\n/gm,mme="\u0275",C4="__source";let Y0;function om(t){const n=Y0;return Y0=t,n}function vme(t,n=Yi.Default){if(void 0===Y0)throw new on(-203,!1);return null===Y0?x4(t,void 0,n):Y0.get(t,n&Yi.Optional?null:void 0,n)}function Et(t,n=Yi.Default){return(function fme(){return nT}()||vme)(qi(t),n)}function Fr(t,n=Yi.Default){return Et(t,X_(n))}function X_(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function rT(t){const n=[];for(let e=0;e((Th=Th||{})[Th.OnPush=0]="OnPush",Th[Th.Default=1]="Default",Th))(),xu=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(xu||(xu={})),xu))();const Sd={},bo=[],Y_=pt({\u0275cmp:pt}),oT=pt({\u0275dir:pt}),sT=pt({\u0275pipe:pt}),k4=pt({\u0275mod:pt}),kd=pt({\u0275fac:pt}),J0=pt({__NG_ELEMENT_ID__:pt});let wme=0;function ln(t){return vf(()=>{const e=!0===t.standalone,i={},r={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Th.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&t.dependencies||null,getStandaloneInjector:null,selectors:t.selectors||bo,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||xu.Emulated,id:"c"+wme++,styles:t.styles||bo,_:null,setInput:null,schemas:t.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},o=t.dependencies,s=t.features;return r.inputs=A4(t.inputs,i),r.outputs=A4(t.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(D4).filter(T4):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(Al).filter(T4):null,r})}function D4(t){return ko(t)||ul(t)}function T4(t){return null!==t}function Ji(t){return vf(()=>({type:t.type,bootstrap:t.bootstrap||bo,declarations:t.declarations||bo,imports:t.imports||bo,exports:t.exports||bo,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function A4(t,n){if(null==t)return Sd;const e={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,n&&(n[r]=o)}return e}const bn=ln;function Tl(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function ko(t){return t[Y_]||null}function ul(t){return t[oT]||null}function Al(t){return t[sT]||null}function pc(t,n){const e=t[k4]||null;if(!e&&!0===n)throw new Error(`Type ${Bn(t)} does not have '\u0275mod' property.`);return e}const Dd=0,ri=1,Cr=2,Es=3,Cu=4,Ap=5,hl=6,am=7,Bs=8,K_=9,J_=10,Ar=11,aT=12,Q0=13,E4=14,lm=15,dl=16,Z0=17,cm=18,Ah=19,e1=20,M4=21,rs=22,lT=1,I4=2,Q_=7,Z_=8,um=9,El=10;function gc(t){return Array.isArray(t)&&"object"==typeof t[lT]}function Su(t){return Array.isArray(t)&&!0===t[lT]}function cT(t){return 0!=(4&t.flags)}function t1(t){return t.componentOffset>-1}function ew(t){return 1==(1&t.flags)}function ku(t){return null!==t.template}function Sme(t){return 0!=(256&t[Cr])}function Ep(t,n){return t.hasOwnProperty(kd)?t[kd]:null}class Tme{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function ui(){return O4}function O4(t){return t.type.prototype.ngOnChanges&&(t.setInput=Eme),Ame}function Ame(){const t=R4(this),n=t?.current;if(n){const e=t.previous;if(e===Sd)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function Eme(t,n,e,i){const r=this.declaredInputs[e],o=R4(t)||function Mme(t,n){return t[N4]=n}(t,{previous:Sd,current:null}),s=o.current||(o.current={}),a=o.previous,l=a[r];s[r]=new Tme(l&&l.currentValue,n,a===Sd),t[i]=n}ui.ngInherit=!0;const N4="__ngSimpleChanges__";function R4(t){return t[N4]||null}const Uc=function(t,n,e){},$4="svg";function Ha(t){for(;Array.isArray(t);)t=t[Dd];return t}function tw(t,n){return Ha(n[t])}function mc(t,n){return Ha(n[t.index])}function j4(t,n){return t.data[n]}function hm(t,n){return t[n]}function vc(t,n){const e=n[t];return gc(e)?e:e[Dd]}function nw(t){return 64==(64&t[Cr])}function yf(t,n){return null==n?null:t[n]}function B4(t){t[cm]=0}function hT(t,n){t[Ap]+=n;let e=t,i=t[Es];for(;null!==i&&(1===n&&1===e[Ap]||-1===n&&0===e[Ap]);)i[Ap]+=n,e=i,i=i[Es]}const ur={lFrame:K4(null),bindingsEnabled:!0};function V4(){return ur.bindingsEnabled}function dn(){return ur.lFrame.lView}function ao(){return ur.lFrame.tView}function st(t){return ur.lFrame.contextLView=t,t[Bs]}function at(t){return ur.lFrame.contextLView=null,t}function Va(){let t=z4();for(;null!==t&&64===t.type;)t=t.parent;return t}function z4(){return ur.lFrame.currentTNode}function Eh(t,n){const e=ur.lFrame;e.currentTNode=t,e.isParent=n}function dT(){return ur.lFrame.isParent}function fT(){ur.lFrame.isParent=!1}function Ml(){const t=ur.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function dm(){return ur.lFrame.bindingIndex++}function Ad(t){const n=ur.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function zme(t,n){const e=ur.lFrame;e.bindingIndex=e.bindingRootIndex=t,pT(n)}function pT(t){ur.lFrame.currentDirectiveIndex=t}function q4(){return ur.lFrame.currentQueryIndex}function mT(t){ur.lFrame.currentQueryIndex=t}function Wme(t){const n=t[ri];return 2===n.type?n.declTNode:1===n.type?t[hl]:null}function X4(t,n,e){if(e&Yi.SkipSelf){let r=n,o=t;for(;!(r=r.parent,null!==r||e&Yi.Host||(r=Wme(o),null===r||(o=o[lm],10&r.type))););if(null===r)return!1;n=r,t=o}const i=ur.lFrame=Y4();return i.currentTNode=n,i.lView=t,!0}function vT(t){const n=Y4(),e=t[ri];ur.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function Y4(){const t=ur.lFrame,n=null===t?null:t.child;return null===n?K4(t):n}function K4(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function J4(){const t=ur.lFrame;return ur.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Q4=J4;function yT(){const t=J4();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Il(){return ur.lFrame.selectedIndex}function Mp(t){ur.lFrame.selectedIndex=t}function vs(){const t=ur.lFrame;return j4(t.tView,t.selectedIndex)}function kt(){ur.lFrame.currentNamespace=$4}function Ip(){!function Yme(){ur.lFrame.currentNamespace=null}()}function iw(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[l]<0&&(t[cm]+=65536),(a>11>16&&(3&t[Cr])===n){t[Cr]+=2048,Uc(4,a,o);try{o.call(a)}finally{Uc(5,a,o)}}}else{Uc(4,a,o);try{o.call(a)}finally{Uc(5,a,o)}}}const fm=-1;class i1{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function wT(t,n,e){let i=0;for(;in){s=o-1;break}}}for(;o>16}(t),i=n;for(;e>0;)i=i[lm],e--;return i}let xT=!0;function lw(t){const n=xT;return xT=t,n}const rP=255,oP=5;let ive=0;const Mh={};function cw(t,n){const e=sP(t,n);if(-1!==e)return e;const i=n[ri];i.firstCreatePass&&(t.injectorIndex=n.length,CT(i.data,t),CT(n,null),CT(i.blueprint,null));const r=ST(t,n),o=t.injectorIndex;if(iP(r)){const s=sw(r),a=aw(r,n),l=a[ri].data;for(let c=0;c<8;c++)n[o+c]=a[s+c]|l[s+c]}return n[o+8]=r,o}function CT(t,n){t.push(0,0,0,0,0,0,0,0,n)}function sP(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function ST(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;null!==r;){if(i=fP(r),null===i)return fm;if(e++,r=r[lm],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return fm}function kT(t,n,e){!function rve(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(J0)&&(i=e[J0]),null==i&&(i=e[J0]=ive++);const r=i&rP;n.data[t+(r>>oP)]|=1<=0?n&rP:lve:n}(e);if("function"==typeof o){if(!X4(n,t,i))return i&Yi.Host?aP(r,0,i):lP(n,e,i,r);try{const s=o(i);if(null!=s||i&Yi.Optional)return s;U_()}finally{Q4()}}else if("number"==typeof o){let s=null,a=sP(t,n),l=fm,c=i&Yi.Host?n[dl][hl]:null;for((-1===a||i&Yi.SkipSelf)&&(l=-1===a?ST(t,n):n[a+8],l!==fm&&dP(i,!1)?(s=n[ri],a=sw(l),n=aw(l,n)):a=-1);-1!==a;){const u=n[ri];if(hP(o,a,u.data)){const h=sve(a,n,e,s,i,c);if(h!==Mh)return h}l=n[a+8],l!==fm&&dP(i,n[ri].data[a+8]===c)&&hP(o,a,n)?(s=u,a=sw(l),n=aw(l,n)):a=-1}}return r}function sve(t,n,e,i,r,o){const s=n[ri],a=s.data[t+8],u=uw(a,s,e,null==i?t1(a)&&xT:i!=s&&0!=(3&a.type),r&Yi.Host&&o===a);return null!==u?Fp(n,s,u,a):Mh}function uw(t,n,e,i,r){const o=t.providerIndexes,s=n.data,a=1048575&o,l=t.directiveStart,u=o>>20,d=r?a+u:t.directiveEnd;for(let f=i?a:a+u;f=l&&p.type===e)return f}if(r){const f=s[l];if(f&&ku(f)&&f.type===e)return l}return null}function Fp(t,n,e,i){let r=t[e];const o=n.data;if(function Zme(t){return t instanceof i1}(r)){const s=r;s.resolving&&function rme(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new on(-200,`Circular dependency in DI detected for ${t}${e}`)}(function Co(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():cr(t)}(o[e]));const a=lw(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?zc(s.injectImpl):null;X4(t,i,Yi.Default);try{r=t[e]=s.factory(void 0,o,t,i),n.firstCreatePass&&e>=i.directiveStart&&function Jme(t,n,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const s=O4(n);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,s)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,r),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,o))}(e,o[e],n)}finally{null!==l&&zc(l),lw(a),s.resolving=!1,Q4()}}return r}function hP(t,n,e){return!!(e[n+(t>>oP)]&1<{const n=t.prototype.constructor,e=n[kd]||DT(n),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const o=r[kd]||DT(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function DT(t){return ZD(t)?()=>{const n=DT(qi(t));return n&&n()}:Ep(t)}function fP(t){const n=t[ri],e=n.type;return 2===e?n.declTNode:1===e?t[hl]:null}function Ed(t){return function ove(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let r=0;for(;r{const i=function TT(t){return function(...e){if(t){const i=t(...e);for(const r in i)this[r]=i[r]}}}(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,u){const h=l.hasOwnProperty(mm)?l[mm]:Object.defineProperty(l,mm,{value:[]})[mm];for(;h.length<=u;)h.push(null);return(h[u]=h[u]||[]).push(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class hi{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=Yt({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Lp(t,n){t.forEach(e=>Array.isArray(e)?Lp(e,n):n(e))}function gP(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function hw(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function a1(t,n){const e=[];for(let i=0;i=0?t[1|i]=e:(i=~i,function fve(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(1===r)t.push(i,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>n;)t[r]=t[r-2],r--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function ET(t,n){const e=bm(t,n);if(e>=0)return t[1|e]}function bm(t,n){return function mP(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=t[o<n?r=o:i=o+1}return~(r<((Jl=Jl||{})[Jl.Important=1]="Important",Jl[Jl.DashCase=2]="DashCase",Jl))();const NT=new Map;let Nve=0;const $T="__ngContext__";function fl(t,n){gc(n)?(t[$T]=n[e1],function $ve(t){NT.set(t[e1],t)}(n)):t[$T]=n}let PT;function jT(t,n){return PT(t,n)}function f1(t){const n=t[Es];return Su(n)?n[Es]:n}function BT(t){return RP(t[Q0])}function HT(t){return RP(t[Cu])}function RP(t){for(;null!==t&&!Su(t);)t=t[Cu];return t}function wm(t,n,e,i,r){if(null!=i){let o,s=!1;Su(i)?o=i:gc(i)&&(s=!0,i=i[Dd]);const a=Ha(i);0===t&&null!==e?null==r?VP(n,e,a):Op(n,e,a,r||null,!0):1===t&&null!==e?Op(n,e,a,r||null,!0):2===t?function XT(t,n,e){const i=gw(t,n);i&&function i0e(t,n,e,i){t.removeChild(n,e,i)}(t,i,n,e)}(n,a,s):3===t&&n.destroyNode(a),null!=o&&function s0e(t,n,e,i,r){const o=e[Q_];o!==Ha(e)&&wm(n,t,i,o,r);for(let a=El;a0&&(t[e-1][Cu]=i[Cu]);const o=hw(t,El+n);!function Yve(t,n){p1(t,n,n[Ar],2,null,null),n[Dd]=null,n[hl]=null}(i[ri],i);const s=o[Ah];null!==s&&s.detachView(o[ri]),i[Es]=null,i[Cu]=null,i[Cr]&=-65}return i}function jP(t,n){if(!(128&n[Cr])){const e=n[Ar];e.destroyNode&&p1(t,n,e,3,null,null),function Qve(t){let n=t[Q0];if(!n)return WT(t[ri],t);for(;n;){let e=null;if(gc(n))e=n[Q0];else{const i=n[El];i&&(e=i)}if(!e){for(;n&&!n[Cu]&&n!==t;)gc(n)&&WT(n[ri],n),n=n[Es];null===n&&(n=t),gc(n)&&WT(n[ri],n),e=n&&n[Cu]}n=e}}(n)}}function WT(t,n){if(!(128&n[Cr])){n[Cr]&=-65,n[Cr]|=128,function n0e(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i=0?i[r=s]():i[r=-s].unsubscribe(),o+=2}else{const s=i[r=e[o+1]];e[o].call(s)}if(null!==i){for(let o=r+1;o-1){const{encapsulation:o}=t.data[i.directiveStart+r];if(o===xu.None||o===xu.Emulated)return null}return mc(i,e)}}(t,n.parent,e)}function Op(t,n,e,i,r){t.insertBefore(n,e,i,r)}function VP(t,n,e){t.appendChild(n,e)}function zP(t,n,e,i,r){null!==i?Op(t,n,e,i,r):VP(t,n,e)}function gw(t,n){return t.parentNode(n)}function UP(t,n,e){return GP(t,n,e)}let GT,yw,JT,bw,GP=function WP(t,n,e){return 40&t.type?mc(t,e):null};function mw(t,n,e,i){const r=BP(t,i,n),o=n[Ar],a=UP(i.parent||n[hl],i,n);if(null!=r)if(Array.isArray(e))for(let l=0;lt,createScript:t=>t,createScriptURL:t=>t})}catch{}return yw}()?.createHTML(t)||t}function QT(){if(void 0===bw&&(bw=null,is.trustedTypes))try{bw=is.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return bw}function ZP(t){return QT()?.createHTML(t)||t}function tj(t){return QT()?.createScriptURL(t)||t}class Np{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${V_})`}}class f0e extends Np{getTypeName(){return"HTML"}}class p0e extends Np{getTypeName(){return"Style"}}class g0e extends Np{getTypeName(){return"Script"}}class m0e extends Np{getTypeName(){return"URL"}}class v0e extends Np{getTypeName(){return"ResourceURL"}}function bc(t){return t instanceof Np?t.changingThisBreaksApplicationSecurity:t}function Ih(t,n){const e=function y0e(t){return t instanceof Np&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${V_})`)}return e===n}class S0e{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString(xm(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class k0e{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const e=this.inertDocument.createElement("template");return e.innerHTML=xm(n),e}}const T0e=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function _w(t){return(t=String(t)).match(T0e)?t:"unsafe:"+t}function Md(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function g1(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const ij=Md("area,br,col,hr,img,wbr"),rj=Md("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),oj=Md("rp,rt"),ZT=g1(ij,g1(rj,Md("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),g1(oj,Md("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),g1(oj,rj)),eA=Md("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),sj=g1(eA,Md("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Md("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),A0e=Md("script,style,template");class E0e{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!ZT.hasOwnProperty(e))return this.sanitizedSomething=!0,!A0e.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let r=0;r"),!0}endElement(n){const e=n.nodeName.toLowerCase();ZT.hasOwnProperty(e)&&!ij.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(aj(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const M0e=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,I0e=/([^\#-~ |!])/g;function aj(t){return t.replace(/&/g,"&").replace(M0e,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(I0e,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let ww;function lj(t,n){let e=null;try{ww=ww||function nj(t){const n=new k0e(t);return function D0e(){try{return!!(new window.DOMParser).parseFromString(xm(""),"text/html")}catch{return!1}}()?new S0e(n):n}(t);let i=n?String(n):"";e=ww.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=ww.getInertBodyElement(i)}while(i!==o);return xm((new E0e).sanitizeChildren(tA(e)||e))}finally{if(e){const i=tA(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function tA(t){return"content"in t&&function F0e(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var zo=(()=>((zo=zo||{})[zo.NONE=0]="NONE",zo[zo.HTML=1]="HTML",zo[zo.STYLE=2]="STYLE",zo[zo.SCRIPT=3]="SCRIPT",zo[zo.URL=4]="URL",zo[zo.RESOURCE_URL=5]="RESOURCE_URL",zo))();function xw(t){const n=v1();return n?ZP(n.sanitize(zo.HTML,t)||""):Ih(t,"HTML")?ZP(bc(t)):lj(function QP(){return void 0!==JT?JT:typeof document<"u"?document:void 0}(),cr(t))}function m1(t){const n=v1();return n?n.sanitize(zo.URL,t)||"":Ih(t,"URL")?bc(t):_w(cr(t))}function cj(t){const n=v1();if(n)return tj(n.sanitize(zo.RESOURCE_URL,t)||"");if(Ih(t,"ResourceURL"))return tj(bc(t));throw new on(904,!1)}function v1(){const t=dn();return t&&t[aT]}const Cw=new hi("ENVIRONMENT_INITIALIZER"),Sw=new hi("INJECTOR",-1),hj=new hi("INJECTOR_DEF_TYPES");class dj{get(n,e=X0){if(e===X0){const i=new Error(`NullInjectorError: No provider for ${Bn(n)}!`);throw i.name="NullInjectorError",i}return e}}function j0e(...t){return{\u0275providers:fj(0,t),\u0275fromNgModule:!0}}function fj(t,...n){const e=[],i=new Set;let r;return Lp(n,o=>{const s=o;nA(s,e,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&pj(r,e),e}function pj(t,n){for(let e=0;e{n.push(o)})}}function nA(t,n,e,i){if(!(t=qi(t)))return!1;let r=null,o=_4(t);const s=!o&&ko(t);if(o||s){if(s&&!s.standalone)return!1;r=t}else{const l=t.ngModule;if(o=_4(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)nA(c,n,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{Lp(o.imports,u=>{nA(u,n,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&pj(c,n)}if(!a){const c=Ep(r)||(()=>new r);n.push({provide:r,useFactory:c,deps:bo},{provide:hj,useValue:r,multi:!0},{provide:Cw,useValue:()=>Et(r),multi:!0})}const l=o.providers;null==l||a||iA(l,u=>{n.push(u)})}}return r!==t&&void 0!==t.providers}function iA(t,n){for(let e of t)eT(e)&&(e=e.\u0275providers),Array.isArray(e)?iA(e,n):n(e)}const B0e=pt({provide:String,useValue:pt});function rA(t){return null!==t&&"object"==typeof t&&B0e in t}function Rp(t){return"function"==typeof t}const oA=new hi("Set Injector scope."),kw={},V0e={};let sA;function Dw(){return void 0===sA&&(sA=new dj),sA}class Fh{}class vj extends Fh{get destroyed(){return this._destroyed}constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,lA(n,s=>this.processProvider(s)),this.records.set(Sw,Cm(void 0,this)),r.has("environment")&&this.records.set(Fh,Cm(void 0,this));const o=this.records.get(oA);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(hj.multi,bo,Yi.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();for(const n of this._onDestroyHooks)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(n){this._onDestroyHooks.push(n)}runInContext(n){this.assertNotDestroyed();const e=om(this),i=zc(void 0);try{return n()}finally{om(e),zc(i)}}get(n,e=X0,i=Yi.Default){this.assertNotDestroyed(),i=X_(i);const r=om(this),o=zc(void 0);try{if(!(i&Yi.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function q0e(t){return"function"==typeof t||"object"==typeof t&&t instanceof hi}(n)&&W_(n);a=l&&this.injectableDefInScope(l)?Cm(aA(n),kw):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(i&Yi.Self?Dw():this.parent).get(n,e=i&Yi.Optional&&e===X0?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[q_]=s[q_]||[]).unshift(Bn(n)),r)throw s;return function bme(t,n,e,i){const r=t[q_];throw n[C4]&&r.unshift(n[C4]),t.message=function _me(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&t.charAt(1)==mme?t.slice(2):t;let r=Bn(n);if(Array.isArray(n))r=n.map(Bn).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):Bn(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(gme,"\n ")}`}("\n"+t.message,r,e,i),t[pme]=r,t[q_]=null,t}(s,n,"R3InjectorError",this.source)}throw s}finally{zc(o),om(r)}}resolveInjectorInitializers(){const n=om(this),e=zc(void 0);try{const i=this.get(Cw.multi,bo,Yi.Self);for(const r of i)r()}finally{om(n),zc(e)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(Bn(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new on(205,!1)}processProvider(n){let e=Rp(n=qi(n))?n:qi(n&&n.provide);const i=function U0e(t){return rA(t)?Cm(void 0,t.useValue):Cm(yj(t),kw)}(n);if(Rp(n)||!0!==n.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=Cm(void 0,kw,!0),r.factory=()=>rT(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e){return e.value===kw&&(e.value=V0e,e.value=e.factory()),"object"==typeof e.value&&e.value&&function G0e(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=qi(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function aA(t){const n=W_(t),e=null!==n?n.factory:Ep(t);if(null!==e)return e;if(t instanceof hi)throw new on(204,!1);if(t instanceof Function)return function z0e(t){const n=t.length;if(n>0)throw a1(n,"?"),new on(204,!1);const e=function ume(t){const n=t&&(t[G_]||t[w4]);return n?(function hme(t){if(t.hasOwnProperty("name"))return t.name;(""+t).match(/^function\s*([^\s(]+)/)}(t),n):null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new on(204,!1)}function yj(t,n,e){let i;if(Rp(t)){const r=qi(t);return Ep(r)||aA(r)}if(rA(t))i=()=>qi(t.useValue);else if(function mj(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...rT(t.deps||[]));else if(function gj(t){return!(!t||!t.useExisting)}(t))i=()=>Et(qi(t.useExisting));else{const r=qi(t&&(t.useClass||t.provide));if(!function W0e(t){return!!t.deps}(t))return Ep(r)||aA(r);i=()=>new r(...rT(t.deps))}return i}function Cm(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function lA(t,n){for(const e of t)Array.isArray(e)?lA(e,n):e&&eT(e)?lA(e.\u0275providers,n):n(e)}class X0e{}class bj{}class K0e{resolveComponentFactory(n){throw function Y0e(t){const n=Error(`No component factory found for ${Bn(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let Gc=(()=>{class t{}return t.NULL=new K0e,t})();function J0e(){return Sm(Va(),dn())}function Sm(t,n){return new xi(mc(t,n))}let xi=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=J0e,t})();function Q0e(t){return t instanceof xi?t.nativeElement:t}class $p{}let Hs=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function Z0e(){const t=dn(),e=vc(Va().index,t);return(gc(e)?e:t)[Ar]}(),t})(),e1e=(()=>{class t{}return t.\u0275prov=Yt({token:t,providedIn:"root",factory:()=>null}),t})();class y1{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const t1e=new y1("15.2.2"),cA={},uA="ngOriginalError";function hA(t){return t[uA]}class km{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&hA(n);for(;e&&hA(e);)e=hA(e);return e||null}}function wj(t){return t.ownerDocument.defaultView}function Id(t){return t instanceof Function?t():t}function Cj(t,n,e){let i=t.length;for(;;){const r=t.indexOf(n,e);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const o=n.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r}e=r+1}}const Sj="ng-template";function h1e(t,n,e){let i=0;for(;io?"":r[h+1].toLowerCase();const f=8&i?d:null;if(f&&-1!==Cj(f,c,0)||2&i&&c!==d){if(Du(i))return!1;s=!0}}}}else{if(!s&&!Du(i)&&!Du(l))return!1;if(s&&Du(l))continue;s=!1,i=l|1&i}}return Du(i)||s}function Du(t){return 0==(1&t)}function p1e(t,n,e,i){if(null===n)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!Du(s)&&(n+=Tj(o,r),r=""),i=s,o=o||!Du(i);e++}return""!==r&&(n+=Tj(o,r)),n}const hr={};function I(t){Aj(ao(),dn(),Il()+t,!1)}function Aj(t,n,e,i){if(!i)if(3==(3&n[Cr])){const o=t.preOrderCheckHooks;null!==o&&rw(n,o,e)}else{const o=t.preOrderHooks;null!==o&&ow(n,o,0,e)}Mp(e)}function Fj(t,n=null,e=null,i){const r=Lj(t,n,e,i);return r.resolveInjectorInitializers(),r}function Lj(t,n=null,e=null,i,r=new Set){const o=[e||bo,j0e(t)];return i=i||("object"==typeof t?void 0:Bn(t)),new vj(o,n||Dw(),i||null,r)}let ea=(()=>{class t{static create(e,i){if(Array.isArray(e))return Fj({name:""},i,e,"");{const r=e.name??"";return Fj({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=X0,t.NULL=new dj,t.\u0275prov=Yt({token:t,providedIn:"any",factory:()=>Et(Sw)}),t.__NG_ELEMENT_ID__=-1,t})();function Ae(t,n=Yi.Default){const e=dn();return null===e?Et(t,n):cP(Va(),e,qi(t),n)}function Hj(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;irs&&Aj(t,n,rs,!1),Uc(s?2:0,r),e(i,r)}finally{Mp(o),Uc(s?3:1,r)}}function yA(t,n,e){if(cT(n)){const r=n.directiveEnd;for(let o=n.directiveStart;o0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(s)!=a&&s.push(a),s.push(e,i,o)}}(t,n,i,b1(t,e,r.hostVars,hr),r)}function Lh(t,n,e,i,r,o){const s=mc(t,n);!function SA(t,n,e,i,r,o,s){if(null==o)t.removeAttribute(n,r,e);else{const a=null==s?cr(o):s(o,i||"",r);t.setAttribute(n,r,a,e)}}(n[Ar],s,o,t.value,e,i,r)}function oye(t,n,e,i,r,o){const s=o[n];if(null!==s){const a=i.setInput;for(let l=0;l0&&kA(e)}}function kA(t){for(let i=BT(t);null!==i;i=HT(i))for(let r=El;r0&&kA(o)}const e=t[ri].components;if(null!==e)for(let i=0;i0&&kA(r)}}function uye(t,n){const e=vc(n,t),i=e[ri];(function hye(t,n){for(let e=n.length;e-1&&(UT(n,i),hw(e,i))}this._attachedToViewContainer=!1}jP(this._lView[ri],this._lView)}onDestroy(n){Uj(this._lView[ri],this._lView,null,n)}markForCheck(){DA(this._cdRefInjectingView||this._lView)}detach(){this._lView[Cr]&=-65}reattach(){this._lView[Cr]|=64}detectChanges(){Iw(this._lView[ri],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new on(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Jve(t,n){p1(t,n,n[Ar],2,null,null)}(this._lView[ri],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new on(902,!1);this._appRef=n}}class dye extends _1{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;Iw(n[ri],n,n[Bs],!1)}checkNoChanges(){}get context(){return null}}class t5 extends Gc{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=ko(n);return new w1(e,this.ngModule)}}function n5(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class pye{constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){i=X_(i);const r=this.injector.get(n,cA,i);return r!==cA||e===cA?r:this.parentInjector.get(n,e,i)}}class w1 extends bj{get inputs(){return n5(this.componentDef.inputs)}get outputs(){return n5(this.componentDef.outputs)}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function _1e(t){return t.map(b1e).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}create(n,e,i,r){let o=(r=r||this.ngModule)instanceof Fh?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new pye(n,o):n,a=s.get($p,null);if(null===a)throw new on(407,!1);const l=s.get(e1e,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",h=i?function U1e(t,n,e){return t.selectRootElement(n,e===xu.ShadowDom)}(c,i,this.componentDef.encapsulation):zT(c,u,function fye(t){const n=t.toLowerCase();return"svg"===n?$4:"math"===n?"math":null}(u)),d=this.componentDef.onPush?288:272,f=wA(0,null,null,1,0,null,null,null,null,null),p=Aw(null,f,null,d,null,null,a,c,l,s,null);let m,w;vT(p);try{const C=this.componentDef;let k,E=null;C.findHostDirectiveDefs?(k=[],E=new Map,C.findHostDirectiveDefs(C,k,E),k.push(C)):k=[C];const L=function mye(t,n){const e=t[ri],i=rs;return t[i]=n,Am(e,i,2,"#host",null)}(p,h),B=function vye(t,n,e,i,r,o,s,a){const l=r[ri];!function yye(t,n,e,i){for(const r of t)n.mergedAttrs=r1(n.mergedAttrs,r.hostAttrs);null!==n.mergedAttrs&&(Fw(n,n.mergedAttrs,!0),null!==e&&JP(i,e,n))}(i,t,n,s);const c=o.createRenderer(n,e),u=Aw(r,zj(e),null,e.onPush?32:16,r[t.index],t,o,c,a||null,null,null);return l.firstCreatePass&&CA(l,t,i.length-1),Mw(r,u),r[t.index]=u}(L,h,C,k,p,a,c);w=j4(f,rs),h&&function _ye(t,n,e,i){if(i)wT(t,e,["ng-version",t1e.full]);else{const{attrs:r,classes:o}=function w1e(t){const n=[],e=[];let i=1,r=2;for(;i0&&KP(t,e,o.join(" "))}}(c,C,h,i),void 0!==e&&function wye(t,n,e){const i=t.projection=[];for(let r=0;r=0;i--){const r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=r1(r.hostAttrs,e=r1(e,r.hostAttrs))}}(i)}function EA(t){return t===Sd?{}:t===bo?[]:t}function Sye(t,n){const e=t.viewQuery;t.viewQuery=e?(i,r)=>{n(i,r),e(i,r)}:n}function kye(t,n){const e=t.contentQueries;t.contentQueries=e?(i,r,o)=>{n(i,r,o),e(i,r,o)}:n}function Dye(t,n){const e=t.hostBindings;t.hostBindings=e?(i,r)=>{n(i,r),e(i,r)}:n}function Ow(t){return!!MA(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function MA(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Oh(t,n,e){return t[n]=e}function pl(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function Pp(t,n,e,i){const r=pl(t,n,e);return pl(t,n+1,i)||r}function Ft(t,n,e,i){const r=dn();return pl(r,dm(),n)&&(ao(),Lh(vs(),r,t,n,e,i)),Ft}function Mm(t,n,e,i){return pl(t,dm(),e)?n+cr(e)+i:hr}function Im(t,n,e,i,r,o){const a=Pp(t,function Td(){return ur.lFrame.bindingIndex}(),e,r);return Ad(2),a?n+cr(e)+i+cr(r)+o:hr}function ye(t,n,e,i,r,o,s,a){const l=dn(),c=ao(),u=t+rs,h=c.firstCreatePass?function Rye(t,n,e,i,r,o,s,a,l){const c=n.consts,u=Am(n,t,4,s||null,yf(c,a));xA(n,e,u,yf(c,l)),iw(n,u);const h=u.tView=wA(2,u,i,r,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c);return null!==n.queries&&(n.queries.template(n,u),h.queries=n.queries.embeddedTView(u)),u}(u,c,l,n,e,i,r,o,s):c.data[u];Eh(h,!1);const d=l[Ar].createComment("");mw(c,l,d,h),fl(d,l),Mw(l,l[u]=Kj(d,l,d,h)),ew(h)&&bA(c,l,h),null!=s&&_A(l,h,a)}function Io(t){return hm(function Hme(){return ur.lFrame.contextLView}(),rs+t)}function N(t,n,e){const i=dn();return pl(i,dm(),n)&&_c(ao(),vs(),i,t,n,i[Ar],e,!1),N}function IA(t,n,e,i,r){const s=r?"class":"style";AA(t,e,n.inputs[s],s,i)}function A(t,n,e,i){const r=dn(),o=ao(),s=rs+t,a=r[Ar],l=o.firstCreatePass?function Pye(t,n,e,i,r,o){const s=n.consts,l=Am(n,t,2,i,yf(s,r));return xA(n,e,l,yf(s,o)),null!==l.attrs&&Fw(l,l.attrs,!1),null!==l.mergedAttrs&&Fw(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(s,o,r,n,e,i):o.data[s],c=r[s]=zT(a,n,function Kme(){return ur.lFrame.currentNamespace}()),u=ew(l);return Eh(l,!0),JP(a,c,l),32!=(32&l.flags)&&mw(o,r,c,l),0===function Rme(){return ur.lFrame.elementDepthCount}()&&fl(c,r),function $me(){ur.lFrame.elementDepthCount++}(),u&&(bA(o,r,l),yA(o,l,r)),null!==i&&_A(r,l),A}function M(){let t=Va();dT()?fT():(t=t.parent,Eh(t,!1));const n=t;!function Pme(){ur.lFrame.elementDepthCount--}();const e=ao();return e.firstCreatePass&&(iw(e,t),cT(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function eve(t){return 0!=(8&t.flags)}(n)&&IA(e,n,dn(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function tve(t){return 0!=(16&t.flags)}(n)&&IA(e,n,dn(),n.stylesWithoutHost,!1),M}function je(t,n,e,i){return A(t,n,e,i),M(),je}function va(t,n,e){const i=dn(),r=ao(),o=t+rs,s=r.firstCreatePass?function jye(t,n,e,i,r){const o=n.consts,s=yf(o,i),a=Am(n,t,8,"ng-container",s);return null!==s&&Fw(a,s,!0),xA(n,e,a,yf(o,r)),null!==n.queries&&n.queries.elementStart(n,a),a}(o,r,i,n,e):r.data[o];Eh(s,!0);const a=i[o]=i[Ar].createComment("");return mw(r,i,a,s),fl(a,i),ew(s)&&(bA(r,i,s),yA(r,s,i)),null!=e&&_A(i,s),va}function ya(){let t=Va();const n=ao();return dT()?fT():(t=t.parent,Eh(t,!1)),n.firstCreatePass&&(iw(n,t),cT(t)&&n.queries.elementEnd(t)),ya}function Bt(){return dn()}function C1(t){return!!t&&"function"==typeof t.then}const FA=function m5(t){return!!t&&"function"==typeof t.subscribe};function He(t,n,e,i){const r=dn(),o=ao(),s=Va();return function y5(t,n,e,i,r,o,s){const a=ew(i),c=t.firstCreatePass&&Qj(t),u=n[Bs],h=Jj(n);let d=!0;if(3&i.type||s){const m=mc(i,n),w=s?s(m):m,C=h.length,k=s?L=>s(Ha(L[i.index])):i.index;let E=null;if(!s&&a&&(E=function Bye(t,n,e,i){const r=t.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(t,n,r,i.index)),null!==E)(E.__ngLastListenerFn__||E).__ngNextListenerFn__=o,E.__ngLastListenerFn__=o,d=!1;else{o=_5(i,n,u,o,!1);const L=e.listen(w,r,o);h.push(o,L),c&&c.push(r,k,C,C+1)}}else o=_5(i,n,u,o,!1);const f=i.outputs;let p;if(d&&null!==f&&(p=f[r])){const m=p.length;if(m)for(let w=0;w-1?vc(t.index,n):n);let l=b5(n,e,i,s),c=o.__ngNextListenerFn__;for(;c;)l=b5(n,e,c,s)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function te(t=1){return function Gme(t){return(ur.lFrame.contextLView=function qme(t,n){for(;t>0;)n=n[lm],t--;return n}(t,ur.lFrame.contextLView))[Bs]}(t)}function Hye(t,n){let e=null;const i=function g1e(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let r=0;r>17&32767}function LA(t){return 2|t}function Bp(t){return(131068&t)>>2}function OA(t,n){return-131069&t|n<<2}function NA(t){return 1|t}function E5(t,n,e,i,r){const o=t[e+1],s=null===n;let a=i?bf(o):Bp(o),l=!1;for(;0!==a&&(!1===l||s);){const u=t[a+1];qye(t[a],n)&&(l=!0,t[a+1]=i?NA(u):LA(u)),a=i?bf(u):Bp(u)}l&&(t[e+1]=i?LA(o):NA(o))}function qye(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&bm(t,n)>=0}const ba={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function M5(t){return t.substring(ba.key,ba.keyEnd)}function I5(t,n){const e=ba.textEnd;return e===n?-1:(n=ba.keyEnd=function Jye(t,n,e){for(;n32;)n++;return n}(t,ba.key=n,e),Pm(t,n,e))}function Pm(t,n,e){for(;n=0;e=I5(n,e))yc(t,M5(n),!0)}function Mu(t,n,e,i){const r=dn(),o=ao(),s=Ad(2);o.firstUpdatePass&&$5(o,t,s,i),n!==hr&&pl(r,s,n)&&j5(o,o.data[Il()],r,r[Ar],t,r[s+1]=function abe(t,n){return null==t||("string"==typeof n?t+=n:"object"==typeof t&&(t=Bn(bc(t)))),t}(n,e),i,s)}function Iu(t,n,e,i){const r=ao(),o=Ad(2);r.firstUpdatePass&&$5(r,null,o,i);const s=dn();if(e!==hr&&pl(s,o,e)){const a=r.data[Il()];if(H5(a,i)&&!R5(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=so(l,e||"")),IA(r,a,s,e,i)}else!function sbe(t,n,e,i,r,o,s,a){r===hr&&(r=bo);let l=0,c=0,u=0=t.expandoStartIndex}function $5(t,n,e,i){const r=t.data;if(null===r[e+1]){const o=r[Il()],s=R5(t,e);H5(o,i)&&null===n&&!s&&(n=!1),n=function tbe(t,n,e,i){const r=function gT(t){const n=ur.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let o=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(e=S1(e=RA(null,t,n,e,i),n.attrs,i),o=null);else{const s=n.directiveStylingLast;if(-1===s||t[s]!==r)if(e=RA(r,t,n,e,i),null===o){let l=function nbe(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==Bp(i))return t[bf(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=RA(null,t,n,l[1],i),l=S1(l,n.attrs,i),function ibe(t,n,e,i){t[bf(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else o=function rbe(t,n,e){let i;const r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0)&&(c=!0)):u=e,r)if(0!==l){const d=bf(t[a+1]);t[i+1]=$w(d,a),0!==d&&(t[d+1]=OA(t[d+1],i)),t[a+1]=function zye(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=$w(a,0),0!==a&&(t[a+1]=OA(t[a+1],i)),a=i;else t[i+1]=$w(l,0),0===a?a=i:t[l+1]=OA(t[l+1],i),l=i;c&&(t[i+1]=LA(t[i+1])),E5(t,u,i,!0),E5(t,u,i,!1),function Gye(t,n,e,i,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof n&&bm(o,n)>=0&&(e[i+1]=NA(e[i+1]))}(n,u,t,i,o),s=$w(a,l),o?n.classBindings=s:n.styleBindings=s}(r,o,n,e,s,i)}}function RA(t,n,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=t[r],c=Array.isArray(l),u=c?l[1]:l,h=null===u;let d=e[r+1];d===hr&&(d=h?bo:void 0);let f=h?ET(d,i):u===i?d:void 0;if(c&&!Pw(f)&&(f=ET(l,i)),Pw(f)&&(a=f,s))return a;const p=t[r+1];r=s?bf(p):Bp(p)}if(null!==n){let l=o?n.residualClasses:n.residualStyles;null!=l&&(a=ET(l,i))}return a}function Pw(t){return void 0!==t}function H5(t,n){return 0!=(t.flags&(n?8:16))}function J(t,n=""){const e=dn(),i=ao(),r=t+rs,o=i.firstCreatePass?Am(i,r,1,n,null):i.data[r],s=e[r]=function VT(t,n){return t.createText(n)}(e[Ar],n);mw(i,e,s,o),Eh(o,!1)}function Xt(t){return jn("",t,""),Xt}function jn(t,n,e){const i=dn(),r=Mm(i,t,n,e);return r!==hr&&Fd(i,Il(),r),jn}function $h(t,n,e,i,r){const o=dn(),s=Im(o,t,n,e,i,r);return s!==hr&&Fd(o,Il(),s),$h}function wc(t,n,e){const i=dn();return pl(i,dm(),n)&&_c(ao(),vs(),i,t,n,i[Ar],e,!0),wc}const Bm="en-US";let c8=Bm;function jA(t,n,e,i,r){if(t=qi(t),Array.isArray(t))for(let o=0;o>20;if(Rp(t)||!t.multi){const f=new i1(l,r,Ae),p=HA(a,n,r?u:u+d,h);-1===p?(kT(cw(c,s),o,a),BA(o,t,n.length),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(f),s.push(f)):(e[p]=f,s[p]=f)}else{const f=HA(a,n,u+d,h),p=HA(a,n,u,u+d),w=p>=0&&e[p];if(r&&!w||!r&&!(f>=0&&e[f])){kT(cw(c,s),o,a);const C=function w_e(t,n,e,i,r){const o=new i1(t,e,Ae);return o.multi=[],o.index=n,o.componentProviders=0,L8(o,r,i&&!e),o}(r?__e:b_e,e.length,r,i,l);!r&&w&&(e[p].providerFactory=C),BA(o,t,n.length,0),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(C),s.push(C)}else BA(o,t,f>-1?f:p,L8(e[r?p:f],l,!r&&i));!r&&i&&w&&e[p].componentProviders++}}}function BA(t,n,e,i){const r=Rp(n),o=function H0e(t){return!!t.useClass}(n);if(r||o){const l=(o?qi(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function L8(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function HA(t,n,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function y_e(t,n,e){const i=ao();if(i.firstCreatePass){const r=ku(t);jA(e,i.data,i.blueprint,r,!0),jA(n,i.data,i.blueprint,r,!1)}}(i,r?r(t):t,n)}}class Vm{}class O8{}class N8 extends Vm{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new t5(this);const i=pc(n);this._bootstrapComponents=Id(i.bootstrap),this._r3Injector=Lj(n,e,[{provide:Vm,useValue:this},{provide:Gc,useValue:this.componentFactoryResolver}],Bn(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class zA extends O8{constructor(n){super(),this.moduleType=n}create(n){return new N8(this.moduleType,n)}}class C_e extends Vm{constructor(n,e,i){super(),this.componentFactoryResolver=new t5(this),this.instance=null;const r=new vj([...n,{provide:Vm,useValue:this},{provide:Gc,useValue:this.componentFactoryResolver}],e||Dw(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function zw(t,n,e=null){return new C_e(t,n,e).injector}let S_e=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=fj(0,e.type),r=i.length>0?zw([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,r)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return t.\u0275prov=Yt({token:t,providedIn:"environment",factory:()=>new t(Et(Fh))}),t})();function R8(t){t.getStandaloneInjector=n=>n.get(S_e).getOrCreateStandaloneInjector(t)}function Ll(t,n,e){const i=Ml()+t,r=dn();return r[i]===hr?Oh(r,i,e?n.call(e):n()):function x1(t,n){return t[n]}(r,i)}function Lr(t,n,e,i){return U8(dn(),Ml(),t,n,e,i)}function Kr(t,n,e,i,r){return function W8(t,n,e,i,r,o,s){const a=n+e;return Pp(t,a,r,o)?Oh(t,a+2,s?i.call(s,r,o):i(r,o)):I1(t,a+2)}(dn(),Ml(),t,n,e,i,r)}function zm(t,n,e,i,r,o){return function G8(t,n,e,i,r,o,s,a){const l=n+e;return function Nw(t,n,e,i,r){const o=Pp(t,n,e,i);return pl(t,n+2,r)||o}(t,l,r,o,s)?Oh(t,l+3,a?i.call(a,r,o,s):i(r,o,s)):I1(t,l+3)}(dn(),Ml(),t,n,e,i,r,o)}function I1(t,n){const e=t[n];return e===hr?void 0:e}function U8(t,n,e,i,r,o){const s=n+e;return pl(t,s,r)?Oh(t,s+1,o?i.call(o,r):i(r)):I1(t,s+1)}function GA(t,n,e){const i=t+rs,r=dn(),o=hm(r,i);return function F1(t,n){return t[ri].data[n].pure}(r,i)?U8(r,Ml(),n,o.transform,e,o):o.transform(e)}function qA(t){return n=>{setTimeout(t,void 0,n)}}const vt=class z_e extends Me{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){let r=n,o=e||(()=>null),s=i;if(n&&"object"==typeof n){const l=n;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=qA(o),r&&(r=qA(r)),s&&(s=qA(s)));const a=super.subscribe({next:r,error:o,complete:s});return n instanceof g&&n.add(a),a}};function U_e(){return this._results[Symbol.iterator]()}class XA{get changes(){return this._changes||(this._changes=new vt)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=XA.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=U_e)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const r=function Wc(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function hve(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i{class t{}return t.__NG_ELEMENT_ID__=q_e,t})();const W_e=Ki,G_e=class extends W_e{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n,e){const i=this._declarationTContainer.tView,r=Aw(this._declarationLView,i,n,16,null,i.declTNode,null,null,null,null,e||null);r[Z0]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[Ah];return null!==s&&(r[Ah]=s.createEmbeddedView(i)),vA(i,r,n),new _1(r)}};function q_e(){return Uw(Va(),dn())}function Uw(t,n){return 4&t.type?new G_e(n,t,Sm(t,n)):null}let gl=(()=>{class t{}return t.__NG_ELEMENT_ID__=X_e,t})();function X_e(){return J8(Va(),dn())}const Y_e=gl,Y8=class extends Y_e{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Sm(this._hostTNode,this._hostLView)}get injector(){return new pm(this._hostTNode,this._hostLView)}get parentInjector(){const n=ST(this._hostTNode,this._hostLView);if(iP(n)){const e=aw(n,this._hostLView),i=sw(n);return new pm(e[ri].data[i+8],e)}return new pm(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=K8(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-El}createEmbeddedView(n,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=n.createEmbeddedView(e||{},o);return this.insert(s,r),s}createComponent(n,e,i,r,o){const s=n&&!function s1(t){return"function"==typeof t}(n);let a;if(s)a=e;else{const h=e||{};a=h.index,i=h.injector,r=h.projectableNodes,o=h.environmentInjector||h.ngModuleRef}const l=s?n:new w1(ko(n)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const d=(s?c:this.parentInjector).get(Fh,null);d&&(o=d)}const u=l.create(c,r,void 0,o);return this.insert(u.hostView,a),u}insert(n,e){const i=n._lView,r=i[ri];if(function Nme(t){return Su(t[Es])}(i)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const h=i[Es],d=new Y8(h,h[hl],h[Es]);d.detach(d.indexOf(n))}}const o=this._adjustIndex(e),s=this._lContainer;!function Zve(t,n,e,i){const r=El+i,o=e.length;i>0&&(e[r-1][Cu]=n),i0)i.push(s[a/2]);else{const c=o[a+1],u=n[-l];for(let h=El;h{class t{constructor(e){this.appInits=e,this.resolve=Gw,this.reject=Gw,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Et(qw,8))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const O1=new hi("AppId",{providedIn:"root",factory:function _6(){return`${sE()}${sE()}${sE()}`}});function sE(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const w6=new hi("Platform Initializer"),N1=new hi("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),x6=new hi("AnimationModuleType");let wwe=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const xc=new hi("LocaleId",{providedIn:"root",factory:()=>Fr(xc,Yi.Optional|Yi.SkipSelf)||function xwe(){return typeof $localize<"u"&&$localize.locale||Bm}()});class Swe{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let C6=(()=>{class t{compileModuleSync(e){return new zA(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=Id(pc(e).declarations).reduce((s,a)=>{const l=ko(a);return l&&s.push(new w1(l)),s},[]);return new Swe(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Twe=(()=>Promise.resolve(0))();function aE(t){typeof Zone>"u"?Twe.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class br{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new vt(!1),this.onMicrotaskEmpty=new vt(!1),this.onStable=new vt(!1),this.onError=new vt(!1),typeof Zone>"u")throw new on(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function Awe(){let t=is.requestAnimationFrame,n=is.cancelAnimationFrame;if(typeof Zone<"u"&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function Iwe(t){const n=()=>{!function Mwe(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(is,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,cE(t),t.isCheckStableRunning=!0,lE(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),cE(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return D6(t),e.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&n(),T6(t)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return D6(t),e.invoke(r,o,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),T6(t)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,cE(t),lE(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!br.isInAngularZone())throw new on(909,!1)}static assertNotInAngularZone(){if(br.isInAngularZone())throw new on(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,n,Ewe,Gw,Gw);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const Ewe={};function lE(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function cE(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function D6(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function T6(t){t._nesting--,lE(t)}class Fwe{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new vt,this.onMicrotaskEmpty=new vt,this.onStable=new vt,this.onError=new vt}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}}const A6=new hi(""),Yw=new hi("");let dE,uE=(()=>{class t{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,dE||(function Lwe(t){dE=t}(r),r.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{br.assertNotInAngularZone(),aE(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())aE(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}}return t.\u0275fac=function(e){return new(e||t)(Et(br),Et(hE),Et(Yw))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})(),hE=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return dE?.findTestabilityInTree(this,e,i)??null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const Od=!1;let _f=null;const E6=new hi("AllowMultipleToken"),fE=new hi("PlatformDestroyListeners"),M6=new hi("appBootstrapListener");class I6{constructor(n,e){this.name=n,this.token=e}}function L6(t,n,e=[]){const i=`Platform: ${n}`,r=new hi(i);return(o=[])=>{let s=pE();if(!s||s.injector.get(E6,!1)){const a=[...e,...o,{provide:r,useValue:!0}];t?t(a):function Rwe(t){if(_f&&!_f.get(E6,!1))throw new on(400,!1);_f=t;const n=t.get(N6);(function F6(t){const n=t.get(w6,null);n&&n.forEach(e=>e())})(t)}(function O6(t=[],n){return ea.create({name:n,providers:[{provide:oA,useValue:"platform"},{provide:fE,useValue:new Set([()=>_f=null])},...t]})}(a,i))}return function Pwe(t){const n=pE();if(!n)throw new on(401,!1);return n}()}}function pE(){return _f?.get(N6)??null}let N6=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function $6(t,n){let e;return e="noop"===t?new Fwe:("zone.js"===t?void 0:t)||new br(n),e}(i?.ngZone,function R6(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:br,useValue:r}];return r.run(()=>{const s=ea.create({providers:o,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(km,null);if(!l)throw new on(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{Kw(this._modules,a),c.unsubscribe()})}),function P6(t,n,e){try{const i=e();return C1(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(l,r,()=>{const c=a.injector.get(Xw);return c.runInitializers(),c.donePromise.then(()=>(function u8(t){Vc(t,"Expected localeId to be defined"),"string"==typeof t&&(c8=t.toLowerCase().replace(/_/g,"-"))}(a.injector.get(xc,Bm)||Bm),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=j6({},i);return function Owe(t,n,e){const i=new zA(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(Lu);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new on(-403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new on(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(fE,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(Et(ea))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function j6(t,n){return Array.isArray(n)?n.reduce(j6,t):{...t,...n}}let Lu=(()=>{class t{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(e,i,r){this._zone=e,this._injector=i,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new P(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new P(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{br.assertNotInAngularZone(),aE(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{br.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=Lt(o,s.pipe(dt()))}bootstrap(e,i){const r=e instanceof bj;if(!this._injector.get(Xw).done){!r&&function sm(t){const n=ko(t)||ul(t)||Al(t);return null!==n&&n.standalone}(e);throw new on(405,Od)}let s;s=r?e:this._injector.get(Gc).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function Nwe(t){return t.isBoundToModule}(s)?void 0:this._injector.get(Vm),c=s.create(ea.NULL,[],i||s.selector,a),u=c.location.nativeElement,h=c.injector.get(A6,null);return h?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Kw(this.components,c),h?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new on(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Kw(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(M6,[]);i.push(...this._bootstrapListeners),i.forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Kw(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new on(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return t.\u0275fac=function(e){return new(e||t)(Et(br),Et(Fh),Et(km))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Kw(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let hs=(()=>{class t{}return t.__NG_ELEMENT_ID__=Bwe,t})();function Bwe(t){return function Hwe(t,n,e){if(t1(t)&&!e){const i=vc(t.index,n);return new _1(i,i)}return 47&t.type?new _1(n[dl],n):null}(Va(),dn(),16==(16&t))}class U6{constructor(){}supports(n){return Ow(n)}create(n){return new qwe(n)}}const Gwe=(t,n)=>n;class qwe{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||Gwe}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const s=!i||e&&e.currentIndex{s=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,r){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new Xwe(e,i),o,r),n}_verifyReinsertion(n,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,o=n._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const r=null===e?this._itHead:e._next;return n._next=r,n._prev=e,null===r?this._itTail=n:r._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new W6),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new W6),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class Xwe{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Ywe{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class W6{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new Ywe,this.map.set(e,i)),i.add(n)}get(n,e){const r=this.map.get(n);return r?r.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function G6(t,n,e){const i=t.previousIndex;if(null===i)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const r=this._records.get(n);this._maybeAddToChanges(r,e);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new Jwe(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class Jwe{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function X6(){return new Zw([new U6])}let Zw=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||X6()),deps:[[t,new c1,new l1]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new on(901,!1)}}return t.\u0275prov=Yt({token:t,providedIn:"root",factory:X6}),t})();function Y6(){return new R1([new q6])}let R1=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Y6()),deps:[[t,new c1,new l1]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new on(901,!1)}}return t.\u0275prov=Yt({token:t,providedIn:"root",factory:Y6}),t})();const exe=L6(null,"core",[]);let txe=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(Et(Lu))},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({}),t})();function Gm(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}let bE=null;function Nd(){return bE}class rxe{}const no=new hi("DocumentToken");let _E=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:function(){return function oxe(){return Et(K6)}()},providedIn:"platform"}),t})();const sxe=new hi("Location Initialized");let K6=(()=>{class t extends _E{constructor(e){super(),this._doc=e,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Nd().getBaseHref(this._doc)}onPopState(e){const i=Nd().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Nd().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,r){J6()?this._history.pushState(e,i,r):this._location.hash=r}replaceState(e,i,r){J6()?this._history.replaceState(e,i,r):this._location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(Et(no))},t.\u0275prov=Yt({token:t,factory:function(){return function axe(){return new K6(Et(no))}()},providedIn:"platform"}),t})();function J6(){return!!window.history.pushState}function wE(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function Q6(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Rd(t){return t&&"?"!==t[0]?"?"+t:t}let zp=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:function(){return Fr(eB)},providedIn:"root"}),t})();const Z6=new hi("appBaseHref");let eB=(()=>{class t extends zp{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??Fr(no).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return wE(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Rd(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+Rd(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+Rd(o));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(Et(_E),Et(Z6,8))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),lxe=(()=>{class t extends zp{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=wE(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+Rd(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+Rd(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(Et(_E),Et(Z6,8))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})(),xE=(()=>{class t{constructor(e){this._subject=new vt,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function hxe(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(Q6(tB(i))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Rd(i))}normalize(e){return t.stripTrailingSlash(function uxe(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,tB(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Rd(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Rd(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return t.normalizeQueryParams=Rd,t.joinWithSlash=wE,t.stripTrailingSlash=Q6,t.\u0275fac=function(e){return new(e||t)(Et(zp))},t.\u0275prov=Yt({token:t,factory:function(){return function cxe(){return new xE(Et(zp))}()},providedIn:"root"}),t})();function tB(t){return t.replace(/\/index.html$/,"")}function fB(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}const LE=/\s+/,pB=[];let Pd=(()=>{class t{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this.initialClasses=pB,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(LE):pB}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(LE):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,Boolean(e[i]));this._applyStateDiff()}_updateState(e,i){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(LE).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return t.\u0275fac=function(e){return new(e||t)(Ae(Zw),Ae(R1),Ae(xi),Ae(Hs))},t.\u0275dir=bn({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),t})();class Wxe{constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let ti=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new Wxe(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),vB(a,r)}});for(let r=0,o=i.length;r{vB(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(Ae(gl),Ae(Ki),Ae(Zw))},t.\u0275dir=bn({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function vB(t,n){t.context.$implicit=n.item}let Nn=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new qxe,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){yB("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){yB("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(Ae(gl),Ae(Ki))},t.\u0275dir=bn({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class qxe{constructor(){this.$implicit=null,this.ngIf=null}}function yB(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Bn(n)}'.`)}class OE{constructor(n,e){this._viewContainerRef=n,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let cx=(()=>{class t{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const i of this._defaultViews)i.enforceState(e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=bn({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),t})(),bB=(()=>{class t{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new OE(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(Ae(gl),Ae(Ki),Ae(cx,9))},t.\u0275dir=bn({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),t})(),wB=(()=>{class t{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[r,o]=e.split("."),s=-1===r.indexOf("-")?void 0:Jl.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${i}${o}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,r,s)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(Ae(xi),Ae(R1),Ae(Hs))},t.\u0275dir=bn({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),t})(),Nl=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:o,ngTemplateOutletInjector:s}=this;this._viewRef=i.createEmbeddedView(r,o,s?{injector:s}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(Ae(gl))},t.\u0275dir=bn({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[ui]}),t})(),ia=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({}),t})();const SB="browser";let _Ce=(()=>{class t{}return t.\u0275prov=Yt({token:t,providedIn:"root",factory:()=>new wCe(Et(no),window)}),t})();class wCe{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function xCe(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=n)}}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=DB(this.window.history)||DB(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function DB(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class TB{}class YCe extends rxe{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class jE extends YCe{static makeCurrent(){!function ixe(t){bE||(bE=t)}(new jE)}onAndCancel(n,e,i){return n.addEventListener(e,i,!1),()=>{n.removeEventListener(e,i,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function KCe(){return B1=B1||document.querySelector("base"),B1?B1.getAttribute("href"):null}();return null==e?null:function JCe(t){dx=dx||document.createElement("a"),dx.setAttribute("href",t);const n=dx.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){B1=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return fB(document.cookie,n)}}let dx,B1=null;const FB=new hi("TRANSITION_ID"),ZCe=[{provide:qw,useFactory:function QCe(t,n,e){return()=>{e.get(Xw).donePromise.then(()=>{const i=Nd(),r=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let o=0;o{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})();const fx=new hi("EventManagerPlugins");let px=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let o=0;o{class t{constructor(){this.usageCount=new Map}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)0===this.changeUsageCount(i,-1)&&this.onStyleRemoved(i)}onStyleRemoved(e){}onStyleAdded(e){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(e,i){const r=this.usageCount;let o=r.get(e)??0;return o+=i,o>0?r.set(e,o):r.delete(e),o}ngOnDestroy(){for(const e of this.getAllStyles())this.onStyleRemoved(e);this.usageCount.clear()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})(),H1=(()=>{class t extends OB{constructor(e){super(),this.doc=e,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.forEach(o=>o.remove()),i.delete(e)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}addStyleToHost(e,i){const r=this.doc.createElement("style");r.textContent=i,e.appendChild(r);const o=this.styleRef.get(i);o?o.push(r):this.styleRef.set(i,[r])}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}}return t.\u0275fac=function(e){return new(e||t)(Et(no))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})();const BE={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},HE=/%COMP%/g,$B=new hi("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function PB(t,n){return n.flat(100).map(e=>e.replace(HE,t))}function jB(t){return n=>{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let gx=(()=>{class t{constructor(e,i,r,o){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestory=o,this.rendererByCompId=new Map,this.defaultRenderer=new VE(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;const r=this.getOrCreateRenderer(e,i);return r instanceof VB?r.applyToHost(e):r instanceof zE&&r.applyStyles(),r}getOrCreateRenderer(e,i){const r=this.rendererByCompId;let o=r.get(i.id);if(!o){const s=this.eventManager,a=this.sharedStylesHost,l=this.removeStylesOnCompDestory;switch(i.encapsulation){case xu.Emulated:o=new VB(s,a,i,this.appId,l);break;case xu.ShadowDom:return new lSe(s,a,e,i);default:o=new zE(s,a,i,l)}o.onDestroy=()=>r.delete(i.id),r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(Et(px),Et(H1),Et(O1),Et($B))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})();class VE{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(BE[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){(HB(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(HB(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;const o=BE[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const r=BE[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(Jl.DashCase|Jl.Important)?n.style.setProperty(e,i,r&Jl.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&Jl.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,jB(i)):this.eventManager.addEventListener(n,e,jB(i))}}function HB(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class lSe extends VE{constructor(n,e,i,r){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=PB(r.id,r.styles);for(const s of o){const a=document.createElement("style");a.textContent=s,this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class zE extends VE{constructor(n,e,i,r,o=i.id){super(n),this.sharedStylesHost=e,this.removeStylesOnCompDestory=r,this.rendererUsageCount=0,this.styles=PB(o,i.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class VB extends zE{constructor(n,e,i,r,o){const s=r+"-"+i.id;super(n,e,i,o,s),this.contentAttr=function oSe(t){return"_ngcontent-%COMP%".replace(HE,t)}(s),this.hostAttr=function sSe(t){return"_nghost-%COMP%".replace(HE,t)}(s)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}let cSe=(()=>{class t extends LB{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return t.\u0275fac=function(e){return new(e||t)(Et(no))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})();const zB=["alt","control","meta","shift"],uSe={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},hSe={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let dSe=(()=>{class t extends LB{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,r){const o=t.parseEventName(i),s=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Nd().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=t._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),zB.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),s+=c+".")}),s+=o,0!=i.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(e,i){let r=uSe[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),zB.forEach(s=>{s!==r&&(0,hSe[s])(e)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(Et(no))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})();const WB=[{provide:N1,useValue:SB},{provide:w6,useValue:function fSe(){jE.makeCurrent()},multi:!0},{provide:no,useFactory:function gSe(){return function d0e(t){JT=t}(document),document},deps:[]}],mSe=L6(exe,"browser",WB),GB=new hi(""),qB=[{provide:Yw,useClass:class eSe{addToWindow(n){is.getAngularTestability=(i,r=!0)=>{const o=n.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},is.getAllAngularTestabilities=()=>n.getAllTestabilities(),is.getAllAngularRootElements=()=>n.getAllRootElements(),is.frameworkStabilizers||(is.frameworkStabilizers=[]),is.frameworkStabilizers.push(i=>{const r=is.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,e,i){return null==e?null:n.getTestability(e)??(i?Nd().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:A6,useClass:uE,deps:[br,hE,Yw]},{provide:uE,useClass:uE,deps:[br,hE,Yw]}],XB=[{provide:oA,useValue:"root"},{provide:km,useFactory:function pSe(){return new km},deps:[]},{provide:fx,useClass:cSe,multi:!0,deps:[no,br,N1]},{provide:fx,useClass:dSe,multi:!0,deps:[no]},{provide:gx,useClass:gx,deps:[px,H1,O1,$B]},{provide:$p,useExisting:gx},{provide:OB,useExisting:H1},{provide:H1,useClass:H1,deps:[no]},{provide:px,useClass:px,deps:[fx,br]},{provide:TB,useClass:tSe,deps:[]},[]];let WE=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:O1,useValue:e.appId},{provide:FB,useExisting:O1},ZCe]}}}return t.\u0275fac=function(e){return new(e||t)(Et(GB,12))},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({providers:[...XB,...qB],imports:[ia,txe]}),t})(),YB=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return t.\u0275fac=function(e){return new(e||t)(Et(no))},t.\u0275prov=Yt({token:t,factory:function(e){let i=null;return i=e?new e:function ySe(){return new YB(Et(no))}(),i},providedIn:"root"}),t})();typeof window<"u"&&window;let QB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:function(e){let i=null;return i=e?new(e||t):Et(ZB),i},providedIn:"root"}),t})(),ZB=(()=>{class t extends QB{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case zo.NONE:return i;case zo.HTML:return Ih(i,"HTML")?bc(i):lj(this._doc,String(i)).toString();case zo.STYLE:return Ih(i,"Style")?bc(i):i;case zo.SCRIPT:if(Ih(i,"Script"))return bc(i);throw new Error("unsafe value used in a script context");case zo.URL:return Ih(i,"URL")?bc(i):_w(String(i));case zo.RESOURCE_URL:if(Ih(i,"ResourceURL"))return bc(i);throw new Error(`unsafe value used in a resource URL context (see ${V_})`);default:throw new Error(`Unexpected SecurityContext ${e} (see ${V_})`)}}bypassSecurityTrustHtml(e){return function b0e(t){return new f0e(t)}(e)}bypassSecurityTrustStyle(e){return function _0e(t){return new p0e(t)}(e)}bypassSecurityTrustScript(e){return function w0e(t){return new g0e(t)}(e)}bypassSecurityTrustUrl(e){return function x0e(t){return new m0e(t)}(e)}bypassSecurityTrustResourceUrl(e){return function C0e(t){return new v0e(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(Et(no))},t.\u0275prov=Yt({token:t,factory:function(e){let i=null;return i=e?new e:function CSe(t){return new ZB(t.get(no))}(Et(ea)),i},providedIn:"root"}),t})();function V1(t){return(V1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function be(t,n,e){return(n=function kSe(t){var n=function SSe(t,n){if("object"!==V1(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,n||"default");if("object"!==V1(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"===V1(n)?n:String(n)}(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}class e7{}class DSe{}const jd="*";function ml(t,n){return{type:7,name:t,definitions:n,options:{}}}function Ua(t,n=null){return{type:4,styles:n,timings:t}}function t7(t,n=null){return{type:2,steps:t,options:n}}function Jr(t){return{type:6,styles:t,offset:null}}function Wa(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function n7(t){Promise.resolve().then(t)}class z1{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){n7(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class i7{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,r=0;const o=this.players.length;0==o?n7(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const qE="!";function r7(t){return new on(3e3,!1)}function a2e(){return typeof window<"u"&&typeof window.document<"u"}function XE(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function xf(t){switch(t.length){case 0:return new z1;case 1:return t[0];default:return new i7(t)}}function o7(t,n,e,i,r=new Map,o=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const h=u.get("offset"),d=h==l,f=d&&c||new Map;u.forEach((p,m)=>{let w=m,C=p;if("offset"!==m)switch(w=n.normalizePropertyName(w,s),C){case qE:C=r.get(m);break;case jd:C=o.get(m);break;default:C=n.normalizeStyleValue(m,w,C,s)}f.set(w,C)}),d||a.push(f),c=f,l=h}),s.length)throw function YSe(t){return new on(3502,!1)}();return a}function YE(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&KE(e,"start",t)));break;case"done":t.onDone(()=>i(e&&KE(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&KE(e,"destroy",t)))}}function KE(t,n,e){const o=JE(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),s=t._data;return null!=s&&(o._data=s),o}function JE(t,n,e,i,r="",o=0,s){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function Cc(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function s7(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}let QE=(t,n)=>!1,a7=(t,n,e)=>[],l7=null;function ZE(t){const n=t.parentNode||t.host;return n===l7?null:n}(XE()||typeof Element<"u")&&(a2e()?(l7=(()=>document.documentElement)(),QE=(t,n)=>{for(;n;){if(n===t)return!0;n=ZE(n)}return!1}):QE=(t,n)=>t.contains(n),a7=(t,n,e)=>{if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]});let Up=null,c7=!1;const u7=QE,h7=a7;let d7=(()=>{class t{validateStyleProperty(e){return function c2e(t){Up||(Up=function u2e(){return typeof document<"u"?document.body:null}()||{},c7=!!Up.style&&"WebkitAppearance"in Up.style);let n=!0;return Up.style&&!function l2e(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Up.style,!n&&c7&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Up.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return u7(e,i)}getParentElement(e){return ZE(e)}query(e,i,r){return h7(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new z1(r,o)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})(),eM=(()=>{class t{}return t.NOOP=new d7,t})();const h2e=1e3,tM="ng-enter",mx="ng-leave",vx="ng-trigger",yx=".ng-trigger",p7="ng-animating",nM=".ng-animating";function Bd(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:iM(parseFloat(n[1]),n[2])}function iM(t,n){return"s"===n?t*h2e:t}function bx(t,n,e){return t.hasOwnProperty("duration")?t:function f2e(t,n,e){let r,o=0,s="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(r7()),{duration:0,delay:0,easing:""};r=iM(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=iM(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=t;if(!e){let a=!1,l=n.length;r<0&&(n.push(function TSe(){return new on(3100,!1)}()),a=!0),o<0&&(n.push(function ASe(){return new on(3101,!1)}()),a=!0),a&&n.splice(l,0,r7())}return{duration:r,delay:o,easing:s}}(t,n,e)}function U1(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function g7(t){const n=new Map;return Object.keys(t).forEach(e=>{n.set(e,t[e])}),n}function Cf(t,n=new Map,e){if(e)for(let[i,r]of e)n.set(i,r);for(let[i,r]of t)n.set(i,r);return n}function v7(t,n,e){return e?n+":"+e+";":""}function y7(t){let n="";for(let e=0;e{const o=oM(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=i}),XE()&&y7(t))}function Wp(t,n){t.style&&(n.forEach((e,i)=>{const r=oM(i);t.style[r]=""}),XE()&&y7(t))}function W1(t){return Array.isArray(t)?1==t.length?t[0]:t7(t):t}const rM=new RegExp("{{\\s*(.+?)\\s*}}","g");function b7(t){let n=[];if("string"==typeof t){let e;for(;e=rM.exec(t);)n.push(e[1]);rM.lastIndex=0}return n}function G1(t,n,e){const i=t.toString(),r=i.replace(rM,(o,s)=>{let a=n[s];return null==a&&(e.push(function MSe(t){return new on(3003,!1)}()),a=""),a.toString()});return r==i?t:r}function _x(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const m2e=/-+([a-z0-9])/g;function oM(t){return t.replace(m2e,(...n)=>n[1].toUpperCase())}function v2e(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Sc(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw function ISe(t){return new on(3004,!1)}()}}function _7(t,n){return window.getComputedStyle(t)[n]}const Cx="*";function C2e(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function S2e(t,n,e){if(":"==t[0]){const l=function k2e(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function USe(t){return new on(3015,!1)}()),n;const r=i[1],o=i[2],s=i[3];n.push(w7(r,s));"<"==o[0]&&!(r==Cx&&s==Cx)&&n.push(w7(s,r))}(i,e,n)):e.push(t),e}const Sx=new Set(["true","1"]),kx=new Set(["false","0"]);function w7(t,n){const e=Sx.has(t)||kx.has(t),i=Sx.has(n)||kx.has(n);return(r,o)=>{let s=t==Cx||t==r,a=n==Cx||n==o;return!s&&e&&"boolean"==typeof r&&(s=r?Sx.has(t):kx.has(t)),!a&&i&&"boolean"==typeof o&&(a=o?Sx.has(n):kx.has(n)),s&&a}}const D2e=new RegExp("s*:selfs*,?","g");function sM(t,n,e,i){return new T2e(t).build(n,e,i)}class T2e{constructor(n){this._driver=n}build(n,e,i){const r=new M2e(e);return this._resetContextStyleTimingState(r),Sc(this,W1(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],s=[];return"@"==n.name.charAt(0)&&e.errors.push(function LSe(){return new on(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,s.push(l)}else e.errors.push(function OSe(){return new on(3007,!1)}())}),{type:7,name:n.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{b7(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(_x(o.values()),e.errors.push(function NSe(t,n){return new on(3008,!1)}()))}return{type:0,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=Sc(this,W1(n.animation),e);return{type:1,matchers:C2e(n.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Gp(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(i=>Sc(this,i,e)),options:Gp(n.options)}}visitGroup(n,e){const i=e.currentTime;let r=0;const o=n.steps.map(s=>{e.currentTime=i;const a=Sc(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:Gp(n.options)}}visitAnimate(n,e){const i=function F2e(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return aM(bx(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=aM(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=bx(e,n);return aM(r.duration,r.delay,r.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let r,o=n.styles?n.styles:Jr({});if(5==o.type)r=this.visitKeyframes(o,e);else{let s=n.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=Jr(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of r)"string"==typeof a?a===jd?i.push(a):e.errors.push(new on(3002,!1)):i.push(g7(a));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:s,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),n.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let h=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(e.errors.push(function $Se(t,n,e,i,r){return new on(3010,!1)}()),h=!1),o=u.startTime),h&&c.set(l,{startTime:o,endTime:r}),e.options&&function g2e(t,n,e){const i=n.params||{},r=b7(t);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function ESe(t){return new on(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function PSe(){return new on(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=n.steps.map(C=>{const k=this._makeStyleAst(C,e);let E=null!=k.offset?k.offset:function I2e(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(k.styles),L=0;return null!=E&&(o++,L=k.offset=E),l=l||L<0||L>1,a=a||L0&&o{const E=d>0?k==f?1:d*k:s[k],L=E*w;e.currentTime=p+m.delay+L,m.duration=L,this._validateStyleAst(C,e),C.offset=E,i.styles.push(C)}),i}visitReference(n,e){return{type:8,animation:Sc(this,W1(n.animation),e),options:Gp(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:Gp(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:Gp(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,r=n.options||{};e.queryCount++,e.currentQuery=n;const[o,s]=function A2e(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(D2e,"")),t=t.replace(/@\*/g,yx).replace(/@\w+/g,e=>yx+"-"+e.slice(1)).replace(/:animating/g,nM),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+o:o,Cc(e.collectedStyles,e.currentQuerySelector,new Map);const a=Sc(this,W1(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:Gp(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function VSe(){return new on(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:bx(n.timings,e.errors,!0);return{type:12,animation:Sc(this,W1(n.animation),e),timings:i,options:null}}}class M2e{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Gp(t){return t?(t=U1(t)).params&&(t.params=function E2e(t){return t?U1(t):null}(t.params)):t={},t}function aM(t,n,e){return{duration:t,delay:n,easing:e}}function lM(t,n,e,i,r,o,s=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class Dx{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const N2e=new RegExp(":enter","g"),$2e=new RegExp(":leave","g");function cM(t,n,e,i,r,o=new Map,s=new Map,a,l,c=[]){return(new P2e).buildKeyframes(t,n,e,i,r,o,s,a,l,c)}class P2e{buildKeyframes(n,e,i,r,o,s,a,l,c,u=[]){c=c||new Dx;const h=new uM(n,e,c,r,o,u,[]);h.options=l;const d=l.delay?Bd(l.delay):0;h.currentTimeline.delayNextStep(d),h.currentTimeline.setStyles([s],null,h.errors,l),Sc(this,i,h);const f=h.timelines.filter(p=>p.containsAnimation());if(f.length&&a.size){let p;for(let m=f.length-1;m>=0;m--){const w=f[m];if(w.element===e){p=w;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,h.errors,l)}return f.length?f.map(p=>p.buildKeyframes()):[lM(e,[],[],[],0,d,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(n.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(const r of n){const o=r?.delay;if(o){const s="number"==typeof o?o:Bd(G1(o,r?.params??{},e.errors));i.delayNextStep(s)}}}_visitSubInstructions(n,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?Bd(i.duration):null,a=null!=i.delay?Bd(i.delay):null;return 0!==s&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(n,e){e.updateOptions(n.options,!0),Sc(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let r=e;const o=n.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Tx);const s=Bd(o.delay);r.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>Sc(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let r=e.currentTimeline.currentTime;const o=n.options&&n.options.delay?Bd(n.options.delay):0;n.steps.forEach(s=>{const a=e.createSubContext(n.options);o&&a.delayNextStep(o),Sc(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return bx(e.params?G1(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=n.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(o):i.setStyles(n.styles,o,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,r=n.options||{},o=r.delay?Bd(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Tx);let s=i;const a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const h=e.createSubContext(n.options,c);o&&h.delayNextStep(o),c===e.element&&(l=h.currentTimeline),Sc(this,n.animation,h),h.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,h.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,r=e.currentTimeline,o=n.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const h=u.currentTime;Sc(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=r.currentTime-h+(r.startTime-i.currentTimeline.startTime)}}const Tx={};class uM{constructor(n,e,i,r,o,s,a,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Tx,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Ax(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let r=this.options;null!=i.duration&&(r.duration=Bd(i.duration)),null!=i.delay&&(r.delay=Bd(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=G1(o[a],s,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return n}createSubContext(n=null,e,i){const r=e||this.element,o=new uM(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=Tx,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const r={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},o=new j2e(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,r,o,s){let a=[];if(r&&a.push(this.element),n.length>0){n=(n=n.replace(N2e,"."+this._enterClassName)).replace($2e,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&0==a.length&&s.push(function zSe(t){return new on(3014,!1)}()),a}}class Ax{constructor(n,e,i,r){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new Ax(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||jd),this._currentKeyframe.set(e,jd);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},s=function B2e(t,n){const e=new Map;let i;return t.forEach(r=>{if("*"===r){i=i||n.keys();for(let o of i)e.set(o,jd)}else Cf(r,e)}),e}(n,this._globalTimelineStyles);for(let[a,l]of s){const c=G1(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??jd),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Cf(a,new Map,this._backFill);c.forEach((u,h)=>{u===qE?n.add(h):u===jd&&e.add(h)}),i||c.set("offset",l/this.duration),r.push(c)});const o=n.size?_x(n.values()):[],s=e.size?_x(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return lM(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class j2e extends Ax{constructor(n,e,i,r,o,s,a=!1){super(n,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,l=Cf(n[0]);l.set("offset",0),o.push(l);const c=Cf(n[0]);c.set("offset",S7(a)),o.push(c);const u=n.length-1;for(let h=1;h<=u;h++){let d=Cf(n[h]);const f=d.get("offset");d.set("offset",S7((e+f*i)/s)),o.push(d)}i=s,e=0,r="",n=o}return lM(this.element,n,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function S7(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class hM{}const H2e=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class V2e extends hM{normalizePropertyName(n,e){return oM(n)}normalizeStyleValue(n,e,i,r){let o="";const s=i.toString().trim();if(H2e.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function FSe(t,n){return new on(3005,!1)}())}return s+o}}function k7(t,n,e,i,r,o,s,a,l,c,u,h,d){return{type:0,element:t,triggerName:n,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const dM={};class D7{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,r){return function z2e(t,n,e,i,r){return t.some(o=>o(n,e,i,r))}(this.ast.matchers,n,e,i,r)}buildStyles(n,e,i){let r=this._stateStyles.get("*");return void 0!==n&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(e,i):new Map}build(n,e,i,r,o,s,a,l,c,u){const h=[],d=this.ast.options&&this.ast.options.params||dM,p=this.buildStyles(i,a&&a.params||dM,h),m=l&&l.params||dM,w=this.buildStyles(r,m,h),C=new Set,k=new Map,E=new Map,L="void"===r,B={params:U2e(m,d),delay:this.ast.options?.delay},G=u?[]:cM(n,e,this.ast.animation,o,s,p,w,B,c,h);let oe=0;if(G.forEach(re=>{oe=Math.max(re.duration+re.delay,oe)}),h.length)return k7(e,this._triggerName,i,r,L,p,w,[],[],k,E,oe,h);G.forEach(re=>{const ce=re.element,ue=Cc(k,ce,new Set);re.preStyleProps.forEach(De=>ue.add(De));const pe=Cc(E,ce,new Set);re.postStyleProps.forEach(De=>pe.add(De)),ce!==e&&C.add(ce)});const fe=_x(C.values());return k7(e,this._triggerName,i,r,L,p,w,G,fe,k,E,oe)}}function U2e(t,n){const e=U1(n);for(const i in t)t.hasOwnProperty(i)&&null!=t[i]&&(e[i]=t[i]);return e}class W2e{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,r=U1(this.defaultParams);return Object.keys(n).forEach(o=>{const s=n[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=G1(s,r,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(a,s)})}),i}}class q2e{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new W2e(r.style,r.options&&r.options.params||{},i))}),T7(this.states,"true","1"),T7(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new D7(n,r,this.states))}),this.fallbackTransition=function X2e(t,n,e){return new D7(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,r){return this.transitionFactories.find(s=>s.match(n,e,i,r))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function T7(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const Y2e=new Dx;class K2e{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const i=[],r=[],o=sM(this._driver,e,i,r);if(i.length)throw function KSe(t){return new on(3503,!1)}();this._animations.set(n,o)}_buildPlayer(n,e,i){const r=n.element,o=o7(0,this._normalizer,0,n.keyframes,e,i);return this._driver.animate(r,o,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const r=[],o=this._animations.get(n);let s;const a=new Map;if(o?(s=cM(this._driver,e,o,tM,mx,new Map,new Map,i,Y2e,r),s.forEach(u=>{const h=Cc(a,u.element,new Map);u.postStyleProps.forEach(d=>h.set(d,null))})):(r.push(function JSe(){return new on(3300,!1)}()),s=[]),r.length)throw function QSe(t){return new on(3504,!1)}();a.forEach((u,h)=>{u.forEach((d,f)=>{u.set(f,this._driver.computeStyle(h,f,jd))})});const c=xf(s.map(u=>{const h=a.get(u.element);return this._buildPlayer(u,new Map,h)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function ZSe(t){return new on(3301,!1)}();return e}listen(n,e,i,r){const o=JE(e,"","","");return YE(this._getPlayer(n),i,o,r),()=>{}}command(n,e,i,r){if("register"==i)return void this.register(n,r[0]);if("create"==i)return void this.create(n,e,r[0]||{});const o=this._getPlayer(n);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n)}}}const A7="ng-animate-queued",fM="ng-animate-disabled",tke=[],E7={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},nke={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Kc="__ng_removed";class pM{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function ske(t){return t??null}(i?n.value:n),i){const o=U1(n);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const q1="void",gM=new pM(q1);class ike{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,Jc(e,this._hostClassName)}listen(n,e,i,r){if(!this._triggers.has(e))throw function e2e(t,n){return new on(3302,!1)}();if(null==i||0==i.length)throw function t2e(t){return new on(3303,!1)}();if(!function ake(t){return"start"==t||"done"==t}(i))throw function n2e(t,n){return new on(3400,!1)}();const o=Cc(this._elementListeners,n,[]),s={name:e,phase:i,callback:r};o.push(s);const a=Cc(this._engine.statesByElement,n,new Map);return a.has(e)||(Jc(n,vx),Jc(n,vx+"-"+e),a.set(e,gM)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function i2e(t){return new on(3401,!1)}();return e}trigger(n,e,i,r=!0){const o=this._getTrigger(e),s=new mM(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(Jc(n,vx),Jc(n,vx+"-"+e),this._engine.statesByElement.set(n,a=new Map));let l=a.get(e);const c=new pM(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=gM),c.value!==q1&&l.value===c.value){if(!function uke(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let r=0;r{Wp(n,w),Ph(n,C)})}return}const d=Cc(this._engine.playersByElement,n,[]);d.forEach(m=>{m.namespaceId==this.id&&m.triggerName==e&&m.queued&&m.destroy()});let f=o.matchTransition(l.value,c.value,n,c.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:p}),p||(Jc(n,A7),s.onStart(()=>{qm(n,A7)})),s.onDone(()=>{let m=this.players.indexOf(s);m>=0&&this.players.splice(m,1);const w=this._engine.playersByElement.get(n);if(w){let C=w.indexOf(s);C>=0&&w.splice(C,1)}}),this.players.push(s),d.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,yx,!0);i.forEach(r=>{if(r[Kc])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,e,i,r){const o=this._engine.statesByElement.get(n),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(n,c,q1,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,s),i&&xf(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const r=new Set;e.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||gM,u=new pM(q1),h=new mM(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:l,fromState:c,toState:u,player:h,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(n):[];if(o&&o.length)r=!0;else{let s=n;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,e);else{const o=n[Kc];(!o||o===E7)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){Jc(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=JE(o,i.triggerName,i.fromState.value,i.toState.value);l._data=n,YE(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}elementContainsData(n){let e=!1;return this._elementListeners.has(n)&&(e=!0),e=!!this._queue.find(i=>i.element===n)||e,e}}class rke{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new ike(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(n)}else i.push(n);return r.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let r=this._namespaceLookup[n];r&&r.register(e,i)&&this.totalAnimations++}destroy(n,e){if(!n)return;const i=this._fetchNamespace(n);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[n];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(n,e,i,r){if(Ex(e)){const o=this._fetchNamespace(n);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(n,e,i,r){if(!Ex(e))return;const o=e[Kc];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){const s=this._fetchNamespace(n);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Jc(n,fM)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),qm(n,fM))}removeNode(n,e,i,r){if(Ex(e)){const o=n?this._fetchNamespace(n):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(n,e,!1,r),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==n&&s.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(n,e,i,r,o){this.collectedLeaveElements.push(e),e[Kc]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,e,i,r,o){return Ex(e)?this._fetchNamespace(n).listen(e,i,r,o):()=>{}}_buildInstruction(n,e,i,r,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,e,o)}destroyInnerAnimations(n){let e=this.driver.query(n,yx,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,nM,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return xf(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[Kc];if(e&&e.setForRemoval){if(n[Kc]=E7,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(fM)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?xf(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw function r2e(t){return new on(3402,!1)}()}_flushAnimations(n,e){const i=new Dx,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(we=>{u.add(we);const le=this.driver.query(we,".ng-animate-queued",!0);for(let Fe=0;Fe{const Fe=tM+m++;p.set(le,Fe),we.forEach(z=>Jc(z,Fe))});const w=[],C=new Set,k=new Set;for(let we=0;weC.add(z)):k.add(le))}const E=new Map,L=F7(d,Array.from(C));L.forEach((we,le)=>{const Fe=mx+m++;E.set(le,Fe),we.forEach(z=>Jc(z,Fe))}),n.push(()=>{f.forEach((we,le)=>{const Fe=p.get(le);we.forEach(z=>qm(z,Fe))}),L.forEach((we,le)=>{const Fe=E.get(le);we.forEach(z=>qm(z,Fe))}),w.forEach(we=>{this.processLeaveNode(we)})});const B=[],G=[];for(let we=this._namespaceList.length-1;we>=0;we--)this._namespaceList[we].drainQueuedTransitions(e).forEach(Fe=>{const z=Fe.player,Q=Fe.element;if(B.push(z),this.collectedEnterElements.length){const Ve=Q[Kc];if(Ve&&Ve.setForMove){if(Ve.previousTriggersValues&&Ve.previousTriggersValues.has(Fe.triggerName)){const wt=Ve.previousTriggersValues.get(Fe.triggerName),ct=this.statesByElement.get(Fe.element);if(ct&&ct.has(Fe.triggerName)){const Ct=ct.get(Fe.triggerName);Ct.value=wt,ct.set(Fe.triggerName,Ct)}}return void z.destroy()}}const Z=!h||!this.driver.containsElement(h,Q),me=E.get(Q),ae=p.get(Q),Te=this._buildInstruction(Fe,i,ae,me,Z);if(Te.errors&&Te.errors.length)return void G.push(Te);if(Z)return z.onStart(()=>Wp(Q,Te.fromStyles)),z.onDestroy(()=>Ph(Q,Te.toStyles)),void r.push(z);if(Fe.isFallbackTransition)return z.onStart(()=>Wp(Q,Te.fromStyles)),z.onDestroy(()=>Ph(Q,Te.toStyles)),void r.push(z);const Oe=[];Te.timelines.forEach(Ve=>{Ve.stretchStartingKeyframe=!0,this.disabledNodes.has(Ve.element)||Oe.push(Ve)}),Te.timelines=Oe,i.append(Q,Te.timelines),s.push({instruction:Te,player:z,element:Q}),Te.queriedElements.forEach(Ve=>Cc(a,Ve,[]).push(z)),Te.preStyleProps.forEach((Ve,wt)=>{if(Ve.size){let ct=l.get(wt);ct||l.set(wt,ct=new Set),Ve.forEach((Ct,se)=>ct.add(se))}}),Te.postStyleProps.forEach((Ve,wt)=>{let ct=c.get(wt);ct||c.set(wt,ct=new Set),Ve.forEach((Ct,se)=>ct.add(se))})});if(G.length){const we=[];G.forEach(le=>{we.push(function o2e(t,n){return new on(3505,!1)}())}),B.forEach(le=>le.destroy()),this.reportError(we)}const oe=new Map,fe=new Map;s.forEach(we=>{const le=we.element;i.has(le)&&(fe.set(le,le),this._beforeAnimationBuild(we.player.namespaceId,we.instruction,oe))}),r.forEach(we=>{const le=we.element;this._getPreviousPlayers(le,!1,we.namespaceId,we.triggerName,null).forEach(z=>{Cc(oe,le,[]).push(z),z.destroy()})});const re=w.filter(we=>O7(we,l,c)),ce=new Map;I7(ce,this.driver,k,c,jd).forEach(we=>{O7(we,l,c)&&re.push(we)});const pe=new Map;f.forEach((we,le)=>{I7(pe,this.driver,new Set(we),l,qE)}),re.forEach(we=>{const le=ce.get(we),Fe=pe.get(we);ce.set(we,new Map([...Array.from(le?.entries()??[]),...Array.from(Fe?.entries()??[])]))});const De=[],ie=[],ge={};s.forEach(we=>{const{element:le,player:Fe,instruction:z}=we;if(i.has(le)){if(u.has(le))return Fe.onDestroy(()=>Ph(le,z.toStyles)),Fe.disabled=!0,Fe.overrideTotalTime(z.totalTime),void r.push(Fe);let Q=ge;if(fe.size>1){let me=le;const ae=[];for(;me=me.parentNode;){const Te=fe.get(me);if(Te){Q=Te;break}ae.push(me)}ae.forEach(Te=>fe.set(Te,Q))}const Z=this._buildAnimation(Fe.namespaceId,z,oe,o,pe,ce);if(Fe.setRealPlayer(Z),Q===ge)De.push(Fe);else{const me=this.playersByElement.get(Q);me&&me.length&&(Fe.parentPlayer=xf(me)),r.push(Fe)}}else Wp(le,z.fromStyles),Fe.onDestroy(()=>Ph(le,z.toStyles)),ie.push(Fe),u.has(le)&&r.push(Fe)}),ie.forEach(we=>{const le=o.get(we.element);if(le&&le.length){const Fe=xf(le);we.setRealPlayer(Fe)}}),r.forEach(we=>{we.parentPlayer?we.syncPlayerEvents(we.parentPlayer):we.destroy()});for(let we=0;we!Z.destroyed);Q.length?lke(this,le,Q):this.processLeaveNode(le)}return w.length=0,De.forEach(we=>{this.players.push(we),we.onDone(()=>{we.destroy();const le=this.players.indexOf(we);this.players.splice(le,1)}),we.play()}),De}elementContainsData(n,e){let i=!1;const r=e[Kc];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(n).elementContainsData(e)||i}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,r,o){let s=[];if(e){const a=this.playersByQueriedElement.get(n);a&&(s=a)}else{const a=this.playersByElement.get(n);if(a){const l=!o||o==q1;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(n,e,i){const o=e.element,s=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==o,h=Cc(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),h.push(f)})}Wp(o,e.fromStyles)}_buildAnimation(n,e,i,r,o,s){const a=e.triggerName,l=e.element,c=[],u=new Set,h=new Set,d=e.timelines.map(p=>{const m=p.element;u.add(m);const w=m[Kc];if(w&&w.removedBeforeQueried)return new z1(p.duration,p.delay);const C=m!==l,k=function cke(t){const n=[];return L7(t,n),n}((i.get(m)||tke).map(oe=>oe.getRealPlayer())).filter(oe=>!!oe.element&&oe.element===m),E=o.get(m),L=s.get(m),B=o7(0,this._normalizer,0,p.keyframes,E,L),G=this._buildPlayer(p,B,k);if(p.subTimeline&&r&&h.add(m),C){const oe=new mM(n,a,m);oe.setRealPlayer(G),c.push(oe)}return G});c.forEach(p=>{Cc(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function oke(t,n,e){let i=t.get(n);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>Jc(p,p7));const f=xf(d);return f.onDestroy(()=>{u.forEach(p=>qm(p,p7)),Ph(l,e.toStyles)}),h.forEach(p=>{Cc(r,p,[]).push(f)}),f}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new z1(n.duration,n.delay)}}class mM{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new z1,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>YE(n,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){Cc(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function Ex(t){return t&&1===t.nodeType}function M7(t,n){const e=t.style.display;return t.style.display=n??"none",e}function I7(t,n,e,i,r){const o=[];e.forEach(l=>o.push(M7(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(h=>{const d=n.computeStyle(c,h,r);u.set(h,d),(!d||0==d.length)&&(c[Kc]=nke,s.push(c))}),t.set(c,u)});let a=0;return e.forEach(l=>M7(l,o[a++])),s}function F7(t,n){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==n.length)return e;const i=1,r=new Set(n),o=new Map;function s(a){if(!a)return i;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?i:s(c),o.set(a,l),l}return n.forEach(a=>{const l=s(a);l!==i&&e.get(l).push(a)}),e}function Jc(t,n){t.classList?.add(n)}function qm(t,n){t.classList?.remove(n)}function lke(t,n,e){xf(e).onDone(()=>t.processLeaveNode(n))}function L7(t,n){for(let e=0;er.add(o)):n.set(t,i),e.delete(t),!0}class Mx{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new rke(n,e,i),this._timelineEngine=new K2e(n,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(n,e,i,r,o){const s=n+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],c=[],u=sM(this._driver,o,l,c);if(l.length)throw function XSe(t,n){return new on(3404,!1)}();a=function G2e(t,n,e){return new q2e(t,n,e)}(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,r){this._transitionEngine.insertNode(n,e,i,r)}onRemove(n,e,i,r){this._transitionEngine.removeNode(n,e,r||!1,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,r){if("@"==i.charAt(0)){const[o,s]=s7(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(n,e,i,r)}listen(n,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=s7(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(n,e,i,r,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let dke=(()=>{class t{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=t.initialStylesByElement.get(e);o||t.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Ph(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ph(this._element,this._initialStyles),this._endStyles&&(Ph(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Wp(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Wp(this._element,this._endStyles),this._endStyles=null),Ph(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function vM(t){let n=null;return t.forEach((e,i)=>{(function fke(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class N7{constructor(n,e,i,r){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&n.set(r,this._finished?i:_7(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class pke{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return u7(n,e)}getParentElement(n){return ZE(n)}query(n,e,i){return h7(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}animate(n,e,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,u=s.filter(f=>f instanceof N7);(function y2e(t,n){return 0===t||0===n})(i,r)&&u.forEach(f=>{f.currentSnapshot.forEach((p,m)=>c.set(m,p))});let h=function p2e(t){return t.length?t[0]instanceof Map?t:t.map(n=>g7(n)):[]}(e).map(f=>Cf(f));h=function b2e(t,n,e){if(e.size&&n.length){let i=n[0],r=[];if(e.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,_7(t,a)))}}return n}(n,h,c);const d=function hke(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=vM(n[0]),n.length>1&&(i=vM(n[n.length-1]))):n instanceof Map&&(e=vM(n)),e||i?new dke(t,e,i):null}(n,h);return new N7(n,h,l,d)}}let gke=(()=>{class t extends e7{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:xu.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?t7(e):e;return R7(this._renderer,null,i,"register",[r]),new mke(i,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(Et($p),Et(no))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})();class mke extends DSe{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new vke(this._id,n,e||{},this._renderer)}}class vke{constructor(n,e,i,r){this.id=n,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return R7(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function R7(t,n,e,i,r){return t.setProperty(n,`@@${e}:${i}`,r)}const $7="@.disabled";let yke=(()=>{class t{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(o);return u||(u=new P7("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,u)),u}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,e,u.name,u)};return i.data.animation.forEach(l),new bke(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(Et($p),Et(Mx),Et(br))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})();class P7{constructor(n,e,i,r){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=r,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,r=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,r)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,r){this.delegate.setAttribute(n,e,i,r)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,r){this.delegate.setStyle(n,e,i,r)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==$7?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class bke extends P7{constructor(n,e,i,r,o){super(e,i,r,o),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==$7?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const r=function _ke(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function wke(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,e,i)}}let xke=(()=>{class t extends Mx{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(Et(no),Et(eM),Et(hM),Et(Lu))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})();const j7=[{provide:e7,useClass:gke},{provide:hM,useFactory:function Cke(){return new V2e}},{provide:Mx,useClass:xke},{provide:$p,useFactory:function Ske(t,n,e){return new yke(t,n,e)},deps:[gx,Mx,br]}],yM=[{provide:eM,useFactory:()=>new pke},{provide:x6,useValue:"BrowserAnimations"},...j7],bM=[{provide:eM,useClass:d7},{provide:x6,useValue:"NoopAnimations"},...j7];let kke=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?bM:yM}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({providers:yM,imports:[WE]}),t})(),Dke=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({providers:bM,imports:[WE]}),t})();function oi(...t){let n=t[t.length-1];return ze(n)?(t.pop(),$i(t,n)):yt(t)}class ra extends Me{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return e&&!e.closed&&n.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new F;return this._value}next(n){super.next(this._value=n)}}const Fx=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();class _M extends x{notifyNext(n,e,i,r,o){this.destination.next(e)}notifyError(n,e){this.destination.error(n)}notifyComplete(n){this.destination.complete()}}class Tke extends x{constructor(n,e,i){super(),this.parent=n,this.outerValue=e,this.outerIndex=i,this.index=0}_next(n){this.parent.notifyNext(this.outerValue,n,this.outerIndex,this.index++,this)}_error(n){this.parent.notifyError(n,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function wM(t,n,e,i,r=new Tke(t,e,i)){if(!r.closed)return n instanceof P?n.subscribe(r):pr(n)(r)}const B7={};function Lx(...t){let n,e;return ze(t[t.length-1])&&(e=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&R(t[0])&&(t=t[0]),yt(t,e).lift(new Ake(n))}class Ake{constructor(n){this.resultSelector=n}call(n,e){return e.subscribe(new Eke(n,this.resultSelector))}}class Eke extends _M{constructor(n,e){super(n),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(n){this.values.push(B7),this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;it.complete());function Nx(t){return t?function Ike(t){return new P(n=>t.schedule(()=>n.complete()))}(t):Hd}function H7(t){return new P(n=>{let e;try{e=t()}catch(r){return void n.error(r)}return(e?zn(e):Nx()).subscribe(n)})}function qp(t,n){return new P(n?e=>n.schedule(Fke,0,{error:t,subscriber:e}):e=>e.error(t))}function Fke({error:t,subscriber:n}){n.error(t)}function ec(t,n){return"function"==typeof n?e=>e.pipe(ec((i,r)=>zn(t(i,r)).pipe(Pe((o,s)=>n(i,o,r,s))))):e=>e.lift(new Lke(t))}class Lke{constructor(n){this.project=n}call(n,e){return e.subscribe(new Oke(n,this.project))}}class Oke extends de{constructor(n,e){super(n),this.project=e,this.index=0}_next(n){let e;const i=this.index++;try{e=this.project(n,i)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(n){const e=this.innerSubscription;e&&e.unsubscribe();const i=new vr(this),r=this.destination;r.add(i),this.innerSubscription=Le(n,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:n}=this;(!n||n.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(n){this.destination.next(n)}}const V7=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function Rl(t){return n=>0===t?Nx():n.lift(new Nke(t))}class Nke{constructor(n){if(this.total=n,this.total<0)throw new V7}call(n,e){return e.subscribe(new Rke(n,this.total))}}class Rke extends x{constructor(n,e){super(n),this.total=e,this.count=0}_next(n){const e=this.total,i=++this.count;i<=e&&(this.destination.next(n),i===e&&(this.destination.complete(),this.unsubscribe()))}}function bs(t,n){return function(i){return i.lift(new $ke(t,n))}}class $ke{constructor(n,e){this.predicate=n,this.thisArg=e}call(n,e){return e.subscribe(new Pke(n,this.predicate,this.thisArg))}}class Pke extends x{constructor(n,e,i){super(n),this.predicate=e,this.thisArg=i,this.count=0}_next(n){let e;try{e=this.predicate.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(n)}}function Rx(t=null){return n=>n.lift(new jke(t))}class jke{constructor(n){this.defaultValue=n}call(n,e){return e.subscribe(new Bke(n,this.defaultValue))}}class Bke extends x{constructor(n,e){super(n),this.defaultValue=e,this.isEmpty=!0}_next(n){this.isEmpty=!1,this.destination.next(n)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function z7(t=zke){return n=>n.lift(new Hke(t))}class Hke{constructor(n){this.errorFactory=n}call(n,e){return e.subscribe(new Vke(n,this.errorFactory))}}class Vke extends x{constructor(n,e){super(n),this.errorFactory=e,this.hasValue=!1}_next(n){this.hasValue=!0,this.destination.next(n)}_complete(){if(this.hasValue)return this.destination.complete();{let n;try{n=this.errorFactory()}catch(e){n=e}this.destination.error(n)}}}function zke(){return new Fx}function Sf(t,n){const e=arguments.length>=2;return i=>i.pipe(t?bs((r,o)=>t(r,o,i)):q,Rl(1),e?Rx(n):z7(()=>new Fx))}function kf(t,n){return et(t,n,1)}function Vd(){}function _s(t,n,e){return function(r){return r.lift(new Uke(t,n,e))}}class Uke{constructor(n,e,i){this.nextOrObserver=n,this.error=e,this.complete=i}call(n,e){return e.subscribe(new Wke(n,this.nextOrObserver,this.error,this.complete))}}class Wke extends x{constructor(n,e,i,r){super(n),this._tapNext=Vd,this._tapError=Vd,this._tapComplete=Vd,this._tapError=i||Vd,this._tapComplete=r||Vd,ve(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Vd,this._tapError=e.error||Vd,this._tapComplete=e.complete||Vd)}_next(n){try{this._tapNext.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.next(n)}_error(n){try{this._tapError.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.error(n)}_complete(){try{this._tapComplete.call(this._context)}catch(n){return void this.destination.error(n)}return this.destination.complete()}}function tc(t){return function(e){const i=new Gke(t),r=e.lift(i);return i.caught=r}}class Gke{constructor(n){this.selector=n}call(n,e){return e.subscribe(new qke(n,this.selector,this.caught))}}class qke extends de{constructor(n,e,i){super(n),this.selector=e,this.caught=i}error(n){if(!this.isStopped){let e;try{e=this.selector(n,this.caught)}catch(o){return void super.error(o)}this._unsubscribeAndRecycle();const i=new vr(this);this.add(i);const r=Le(e,i);r!==i&&this.add(r)}}}function U7(t,n){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new Xke(t,n,e))}}class Xke{constructor(n,e,i=!1){this.accumulator=n,this.seed=e,this.hasSeed=i}call(n,e){return e.subscribe(new Yke(n,this.accumulator,this.seed,this.hasSeed))}}class Yke extends x{constructor(n,e,i,r){super(n),this.accumulator=e,this._seed=i,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(n){this.hasSeed=!0,this._seed=n}_next(n){if(this.hasSeed)return this._tryNext(n);this.seed=n,this.destination.next(n)}_tryNext(n){const e=this.index++;let i;try{i=this.accumulator(this.seed,n,e)}catch(r){this.destination.error(r)}this.seed=i,this.destination.next(i)}}function xM(t){return function(e){return 0===t?Nx():e.lift(new Kke(t))}}class Kke{constructor(n){if(this.total=n,this.total<0)throw new V7}call(n,e){return e.subscribe(new Jke(n,this.total))}}class Jke extends x{constructor(n,e){super(n),this.total=e,this.ring=new Array,this.count=0}_next(n){const e=this.ring,i=this.total,r=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,r=this.ring;for(let o=0;o=2;return i=>i.pipe(t?bs((r,o)=>t(r,o,i)):q,xM(1),e?Rx(n):z7(()=>new Fx))}class Zke{constructor(n,e){this.predicate=n,this.inclusive=e}call(n,e){return e.subscribe(new eDe(n,this.predicate,this.inclusive))}}class eDe extends x{constructor(n,e,i){super(n),this.predicate=e,this.inclusive=i,this.index=0}_next(n){const e=this.destination;let i;try{i=this.predicate(n,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(n,i)}nextOrComplete(n,e){const i=this.destination;Boolean(e)?i.next(n):(this.inclusive&&i.next(n),i.complete())}}class nDe{constructor(n){this.value=n}call(n,e){return e.subscribe(new iDe(n,this.value))}}class iDe extends x{constructor(n,e){super(n),this.value=e}_next(n){this.destination.next(this.value)}}function CM(t){return n=>n.lift(new rDe(t))}class rDe{constructor(n){this.callback=n}call(n,e){return e.subscribe(new oDe(n,this.callback))}}class oDe extends x{constructor(n,e){super(n),this.add(new g(e))}}const gr="primary",Y1=Symbol("RouteTitle");class sDe{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Xm(t){return new sDe(t)}function aDe(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.lengthi[o]===r)}return t===n}function q7(t){return Array.prototype.concat.apply([],t)}function X7(t){return t.length>0?t[t.length-1]:null}function Ga(t,n){for(const e in t)t.hasOwnProperty(e)&&n(t[e],e)}function Df(t){return FA(t)?t:C1(t)?zn(Promise.resolve(t)):oi(t)}const $x=!1,cDe={exact:function J7(t,n,e){if(!Xp(t.segments,n.segments)||!Px(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!J7(t.children[i],n.children[i],e))return!1;return!0},subset:Q7},Y7={exact:function uDe(t,n){return jh(t,n)},subset:function hDe(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>G7(t[e],n[e]))},ignored:()=>!0};function K7(t,n,e){return cDe[e.paths](t.root,n.root,e.matrixParams)&&Y7[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function Q7(t,n,e){return Z7(t,n,n.segments,e)}function Z7(t,n,e,i){if(t.segments.length>e.length){const r=t.segments.slice(0,e.length);return!(!Xp(r,e)||n.hasChildren()||!Px(r,e,i))}if(t.segments.length===e.length){if(!Xp(t.segments,e)||!Px(t.segments,e,i))return!1;for(const r in n.children)if(!t.children[r]||!Q7(t.children[r],n.children[r],i))return!1;return!0}{const r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!!(Xp(t.segments,r)&&Px(t.segments,r,i)&&t.children[gr])&&Z7(t.children[gr],n,o,i)}}function Px(t,n,e){return n.every((i,r)=>Y7[e](t[r].parameters,i.parameters))}class Tf{constructor(n=new Pr([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Xm(this.queryParams)),this._queryParamMap}toString(){return pDe.serialize(this)}}class Pr{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Ga(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return jx(this)}}class K1{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Xm(this.parameters)),this._parameterMap}toString(){return n9(this)}}function Xp(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let J1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:function(){return new SM},providedIn:"root"}),t})();class SM{parse(n){const e=new CDe(n);return new Tf(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${Q1(n.root,!0)}`,i=function vDe(t){const n=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(r=>`${Bx(e)}=${Bx(r)}`).join("&"):`${Bx(e)}=${Bx(i)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams),r="string"==typeof n.fragment?`#${function gDe(t){return encodeURI(t)}(n.fragment)}`:"";return`${e}${i}${r}`}}const pDe=new SM;function jx(t){return t.segments.map(n=>n9(n)).join("/")}function Q1(t,n){if(!t.hasChildren())return jx(t);if(n){const e=t.children[gr]?Q1(t.children[gr],!1):"",i=[];return Ga(t.children,(r,o)=>{o!==gr&&i.push(`${o}:${Q1(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function fDe(t,n){let e=[];return Ga(t.children,(i,r)=>{r===gr&&(e=e.concat(n(i,r)))}),Ga(t.children,(i,r)=>{r!==gr&&(e=e.concat(n(i,r)))}),e}(t,(i,r)=>r===gr?[Q1(t.children[gr],!1)]:[`${r}:${Q1(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[gr]?`${jx(t)}/${e[0]}`:`${jx(t)}/(${e.join("//")})`}}function e9(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Bx(t){return e9(t).replace(/%3B/gi,";")}function kM(t){return e9(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Hx(t){return decodeURIComponent(t)}function t9(t){return Hx(t.replace(/\+/g,"%20"))}function n9(t){return`${kM(t.path)}${function mDe(t){return Object.keys(t).map(n=>`;${kM(n)}=${kM(t[n])}`).join("")}(t.parameters)}`}const yDe=/^[^\/()?;=#]+/;function Vx(t){const n=t.match(yDe);return n?n[0]:""}const bDe=/^[^=?&#]+/,wDe=/^[^&#]+/;class CDe{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Pr([],{}):new Pr([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[gr]=new Pr(n,e)),i}parseSegment(){const n=Vx(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new on(4009,$x);return this.capture(n),new K1(Hx(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=Vx(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=Vx(this.remaining);r&&(i=r,this.capture(i))}n[Hx(e)]=Hx(i)}parseQueryParam(n){const e=function _De(t){const n=t.match(bDe);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function xDe(t){const n=t.match(wDe);return n?n[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=t9(e),o=t9(i);if(n.hasOwnProperty(r)){let s=n[r];Array.isArray(s)||(s=[s],n[r]=s),s.push(o)}else n[r]=o}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Vx(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new on(4010,$x);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=gr);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[gr]:new Pr([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new on(4011,$x)}}function DM(t){return t.segments.length>0?new Pr([],{[gr]:t}):t}function zx(t){const n={};for(const i of Object.keys(t.children)){const o=zx(t.children[i]);(o.segments.length>0||o.hasChildren())&&(n[i]=o)}return function SDe(t){if(1===t.numberOfChildren&&t.children[gr]){const n=t.children[gr];return new Pr(t.segments.concat(n.segments),n.children)}return t}(new Pr(t.segments,n))}function Yp(t){return t instanceof Tf}const TM=!1;function kDe(t,n,e,i,r){if(0===e.length)return Ym(n.root,n.root,n.root,i,r);const o=function a9(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new s9(!0,0,t);let n=0,e=!1;const i=t.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Ga(o.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?n++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new s9(e,n,i)}(e);return o.toRoot()?Ym(n.root,n.root,new Pr([],{}),i,r):function s(l){const c=function TDe(t,n,e,i){if(t.isAbsolute)return new Km(n.root,!0,0);if(-1===i)return new Km(e,e===n.root,0);return function l9(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new on(4005,TM&&"Invalid number of '../'");r=i.segments.length}return new Km(i,!1,r-o)}(e,i+(Z1(t.commands[0])?0:1),t.numberOfDoubleDots)}(o,n,t.snapshot?._urlSegment,l),u=c.processChildren?Jm(c.segmentGroup,c.index,o.commands):AM(c.segmentGroup,c.index,o.commands);return Ym(n.root,c.segmentGroup,u,i,r)}(t.snapshot?._lastPathIndex)}function Z1(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function ey(t){return"object"==typeof t&&null!=t&&t.outlets}function Ym(t,n,e,i,r){let s,o={};i&&Ga(i,(l,c)=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=t===n?e:o9(t,n,e);const a=DM(zx(s));return new Tf(a,o,r)}function o9(t,n,e){const i={};return Ga(t.children,(r,o)=>{i[o]=r===n?e:o9(r,n,e)}),new Pr(t.segments,i)}class s9{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&Z1(i[0]))throw new on(4003,TM&&"Root segment cannot have matrix parameters");const r=i.find(ey);if(r&&r!==X7(i))throw new on(4004,TM&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Km{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function AM(t,n,e){if(t||(t=new Pr([],{})),0===t.segments.length&&t.hasChildren())return Jm(t,n,e);const i=function EDe(t,n,e){let i=0,r=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const s=t.segments[r],a=e[i];if(ey(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!u9(l,c,s))return o;i+=2}else{if(!u9(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=AM(t.children[s],n,o))}),Ga(t.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new Pr(t.segments,r))}}function EM(t,n,e){const i=t.segments.slice(0,n);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(n[i]=EM(new Pr([],{}),0,e))}),n}function c9(t){const n={};return Ga(t,(e,i)=>n[i]=`${e}`),n}function u9(t,n,e){return t==e.path&&jh(n,e.parameters)}const ty="imperative";class Bh{constructor(n,e){this.id=n,this.url=e}}class Ux extends Bh{constructor(n,e,i="imperative",r=null){super(n,e),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class zd extends Bh{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ny extends Bh{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Wx extends Bh{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=16}}class Gx extends Bh{constructor(n,e,i,r){super(n,e),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class IDe extends Bh{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class FDe extends Bh{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class LDe extends Bh{constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ODe extends Bh{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class NDe extends Bh{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class RDe{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class $De{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class PDe{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jDe{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class BDe{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class HDe{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class h9{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let UDe=(()=>{class t{createUrlTree(e,i,r,o,s,a){return kDe(e||i.root,r,o,s,a)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})(),GDe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:function(n){return UDe.\u0275fac(n)},providedIn:"root"}),t})();class d9{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=MM(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=MM(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=IM(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return IM(n,this._root).map(e=>e.value)}}function MM(t,n){if(t===n.value)return n;for(const e of n.children){const i=MM(t,e);if(i)return i}return null}function IM(t,n){if(t===n.value)return[n];for(const e of n.children){const i=IM(t,e);if(i.length)return i.unshift(n),i}return[]}class Ud{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function Qm(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class f9 extends d9{constructor(n,e){super(n),this.snapshot=e,FM(this,n)}toString(){return this.snapshot.toString()}}function p9(t,n){const e=function qDe(t,n){const s=new qx([],{},{},"",{},gr,n,null,t.root,-1,{});return new m9("",new Ud(s,[]))}(t,n),i=new ra([new K1("",{})]),r=new ra({}),o=new ra({}),s=new ra({}),a=new ra(""),l=new co(i,r,s,a,o,gr,n,e.root);return l.snapshot=e.root,new f9(new Ud(l,[]),e)}class co{constructor(n,e,i,r,o,s,a,l){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.pipe(Pe(c=>c[Y1]))??oi(void 0),this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Pe(n=>Xm(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Pe(n=>Xm(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function g9(t,n="emptyOnly"){const e=t.pathFromRoot;let i=0;if("always"!==n)for(i=e.length-1;i>=1;){const r=e[i],o=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function XDe(t){return t.reduce((n,e)=>({params:{...n.params,...e.params},data:{...n.data,...e.data},resolve:{...e.data,...n.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(i))}class qx{get title(){return this.data?.[Y1]}constructor(n,e,i,r,o,s,a,l,c,u,h){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._resolve=h}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Xm(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Xm(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class m9 extends d9{constructor(n,e){super(e),this.url=n,FM(this,e)}toString(){return v9(this._root)}}function FM(t,n){n.value._routerState=t,n.children.forEach(e=>FM(t,e))}function v9(t){const n=t.children.length>0?` { ${t.children.map(v9).join(", ")} } `:"";return`${t.value}${n}`}function LM(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,jh(n.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),n.fragment!==e.fragment&&t.fragment.next(e.fragment),jh(n.params,e.params)||t.params.next(e.params),function lDe(t,n){if(t.length!==n.length)return!1;for(let e=0;ejh(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||OM(t.parent,n.parent))}function iy(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const r=function KDe(t,n,e){return n.children.map(i=>{for(const r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return iy(t,i,r);return iy(t,i)})}(t,n,e);return new Ud(i,r)}{if(t.shouldAttach(n.value)){const o=t.retrieve(n.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>iy(t,a)),s}}const i=function JDe(t){return new co(new ra(t.url),new ra(t.params),new ra(t.queryParams),new ra(t.fragment),new ra(t.data),t.outlet,t.component,t)}(n.value),r=n.children.map(o=>iy(t,o));return new Ud(i,r)}}const NM="ngNavigationCancelingError";function y9(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=Yp(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=b9(!1,0,n);return r.url=e,r.navigationBehaviorOptions=i,r}function b9(t,n,e){const i=new Error("NavigationCancelingError: "+(t||""));return i[NM]=!0,i.cancellationCode=n,e&&(i.url=e),i}function _9(t){return w9(t)&&Yp(t.url)}function w9(t){return t&&t[NM]}class QDe{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new ry,this.attachRef=null}}let ry=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new QDe,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Xx=!1;let Kp=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=gr,this.activateEvents=new vt,this.deactivateEvents=new vt,this.attachEvents=new vt,this.detachEvents=new vt,this.parentContexts=Fr(ry),this.location=Fr(gl),this.changeDetector=Fr(hs),this.environmentInjector=Fr(Fh)}ngOnChanges(e){if(e.name){const{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new on(4012,Xx);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new on(4012,Xx);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new on(4012,Xx);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new on(4013,Xx);this._activatedRoute=e;const r=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new ZDe(e,a,r.injector);if(i&&function eTe(t){return!!t.resolveComponentFactory}(i)){const c=i.resolveComponentFactory(s);this.activated=r.createComponent(c,r.length,l)}else this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=bn({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[ui]}),t})();class ZDe{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===co?this.route:n===ry?this.childContexts:this.parent.get(n,e)}}let RM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ln({type:t,selectors:[["ng-component"]],standalone:!0,features:[R8],decls:1,vars:0,template:function(e,i){1&e&&je(0,"router-outlet")},dependencies:[Kp],encapsulation:2}),t})();function x9(t,n){return t.providers&&!t._injector&&(t._injector=zw(t.providers,n,`Route: ${t.path}`)),t._injector??n}function PM(t){const n=t.children&&t.children.map(PM),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==gr&&(e.component=RM),e}function Qc(t){return t.outlet||gr}function C9(t,n){const e=t.filter(i=>Qc(i)===n);return e.push(...t.filter(i=>Qc(i)!==n)),e}function oy(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class oTe{constructor(n,e,i,r){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),LM(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const r=Qm(e);n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Ga(r,(o,s)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Qm(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Qm(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,e,i){const r=Qm(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new HDe(o.value.snapshot))}),n.children.length&&this.forwardEvent(new jDe(n.value.snapshot))}activateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(LM(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),LM(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=oy(r.snapshot),l=a?.get(Gc)??null;s.attachRef=null,s.route=r,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,i)}}class S9{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class Yx{constructor(n,e){this.component=n,this.route=e}}function sTe(t,n,e){const i=t._root;return sy(i,n?n._root:null,e,[i.value])}function Zm(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function cme(t){return null!==W_(t)}(t)?n.get(t):t:i}function sy(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Qm(n);return t.children.forEach(s=>{(function lTe(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function cTe(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!Xp(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Xp(t.url,n.url)||!jh(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!OM(t,n)||!jh(t.queryParams,n.queryParams);default:return!OM(t,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new S9(i)):(o.data=s.data,o._resolvedData=s._resolvedData),sy(t,n,o.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Yx(a.outlet.component,s))}else s&&ay(n,a,r),r.canActivateChecks.push(new S9(i)),sy(t,null,o.component?a?a.children:null:e,i,r)})(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),Ga(o,(s,a)=>ay(s,e.getContext(a),r)),r}function ay(t,n,e){const i=Qm(t),r=t.value;Ga(i,(o,s)=>{ay(o,r.component?n?n.children.getContext(s):null:n,e)}),e.canDeactivateChecks.push(new Yx(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}function ly(t){return"function"==typeof t}function jM(t){return t instanceof Fx||"EmptyError"===t?.name}const Kx=Symbol("INITIAL_VALUE");function ev(){return ec(t=>Lx(t.map(n=>n.pipe(Rl(1),function X1(...t){const n=t[t.length-1];return ze(n)?(t.pop(),e=>Ox(t,e,n)):e=>Ox(t,e)}(Kx)))).pipe(Pe(n=>{for(const e of n)if(!0!==e){if(e===Kx)return Kx;if(!1===e||e instanceof Tf)return e}return!0}),bs(n=>n!==Kx),Rl(1)))}function k9(t){return function O(...t){return U(t)}(_s(n=>{if(Yp(n))throw y9(0,n)}),Pe(n=>!0===n))}const BM={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function D9(t,n,e,i,r){const o=HM(t,n,e);return o.matched?function DTe(t,n,e,i){const r=n.canMatch;return r&&0!==r.length?oi(r.map(s=>{const a=Zm(s,t);return Df(function gTe(t){return t&&ly(t.canMatch)}(a)?a.canMatch(n,e):t.runInContext(()=>a(n,e)))})).pipe(ev(),k9()):oi(!0)}(i=x9(n,i),n,e).pipe(Pe(s=>!0===s?o:{...BM})):oi(o)}function HM(t,n,e){if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...BM}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(n.matcher||aDe)(e,t,n);if(!r)return{...BM};const o={};Ga(r.posParams,(a,l)=>{o[l]=a.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function Jx(t,n,e,i){if(e.length>0&&function ETe(t,n,e){return e.some(i=>Qx(t,n,i)&&Qc(i)!==gr)}(t,e,i)){const o=new Pr(n,function ATe(t,n,e,i){const r={};r[gr]=i,i._sourceSegment=t,i._segmentIndexShift=n.length;for(const o of e)if(""===o.path&&Qc(o)!==gr){const s=new Pr([],{});s._sourceSegment=t,s._segmentIndexShift=n.length,r[Qc(o)]=s}return r}(t,n,i,new Pr(e,t.children)));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function MTe(t,n,e){return e.some(i=>Qx(t,n,i))}(t,e,i)){const o=new Pr(t.segments,function TTe(t,n,e,i,r){const o={};for(const s of i)if(Qx(t,e,s)&&!r[Qc(s)]){const a=new Pr([],{});a._sourceSegment=t,a._segmentIndexShift=n.length,o[Qc(s)]=a}return{...r,...o}}(t,n,e,i,t.children));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:e}}const r=new Pr(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=n.length,{segmentGroup:r,slicedSegments:e}}function Qx(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}function T9(t,n,e,i){return!!(Qc(t)===i||i!==gr&&Qx(n,e,t))&&("**"===t.path||HM(n,t,e).matched)}function A9(t,n,e){return 0===n.length&&!t.children[e]}const Zx=!1;class eC{constructor(n){this.segmentGroup=n||null}}class E9{constructor(n){this.urlTree=n}}function cy(t){return qp(new eC(t))}function M9(t){return qp(new E9(t))}function ITe(t){return qp(new on(4e3,Zx&&`Only absolute redirects can have named outlets. redirectTo: '${t}'`))}class OTe{constructor(n,e,i,r,o){this.injector=n,this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const n=Jx(this.urlTree.root,[],[],this.config).segmentGroup,e=new Pr(n.segments,n.children);return this.expandSegmentGroup(this.injector,this.config,e,gr).pipe(Pe(o=>this.createUrlTree(zx(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(tc(o=>{if(o instanceof E9)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof eC?this.noMatchError(o):o}))}match(n){return this.expandSegmentGroup(this.injector,this.config,n.root,gr).pipe(Pe(r=>this.createUrlTree(zx(r),n.queryParams,n.fragment))).pipe(tc(r=>{throw r instanceof eC?this.noMatchError(r):r}))}noMatchError(n){return new on(4002,Zx&&`Cannot match any routes. URL Segment: '${n.segmentGroup}'`)}createUrlTree(n,e,i){const r=DM(n);return new Tf(r,e,i)}expandSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,e,i).pipe(Pe(o=>new Pr([],o))):this.expandSegment(n,i,e,i.segments,r,!0)}expandChildren(n,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return zn(r).pipe(kf(o=>{const s=i.children[o],a=C9(e,o);return this.expandSegmentGroup(n,a,s,o).pipe(Pe(l=>({segment:l,outlet:o})))}),U7((o,s)=>(o[s.outlet]=s.segment,o),{}),W7())}expandSegment(n,e,i,r,o,s){return zn(i).pipe(kf(a=>this.expandSegmentAgainstRoute(n,e,i,a,r,o,s).pipe(tc(c=>{if(c instanceof eC)return oi(null);throw c}))),Sf(a=>!!a),tc((a,l)=>{if(jM(a))return A9(e,r,o)?oi(new Pr([],{})):cy(e);throw a}))}expandSegmentAgainstRoute(n,e,i,r,o,s,a){return T9(r,e,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,e,r,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s):cy(e):cy(e)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?M9(o):this.lineralizeSegments(i,o).pipe(et(s=>{const a=new Pr(s,{});return this.expandSegment(n,a,e,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=HM(e,r,o);if(!a)return cy(e);const h=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?M9(h):this.lineralizeSegments(r,h).pipe(et(d=>this.expandSegment(n,e,i,d.concat(c),s,!1)))}matchSegmentAgainstRoute(n,e,i,r,o){return"**"===i.path?(n=x9(i,n),i.loadChildren?(i._loadedRoutes?oi({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(n,i)).pipe(Pe(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new Pr(r,{})))):oi(new Pr(r,{}))):D9(e,i,r,n).pipe(ec(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(n=i._injector??n,i,r).pipe(et(u=>{const h=u.injector??n,d=u.routes,{segmentGroup:f,slicedSegments:p}=Jx(e,a,l,d),m=new Pr(f.segments,f.children);if(0===p.length&&m.hasChildren())return this.expandChildren(h,d,m).pipe(Pe(E=>new Pr(a,E)));if(0===d.length&&0===p.length)return oi(new Pr(a,{}));const w=Qc(i)===o;return this.expandSegment(h,m,d,p,w?gr:o,!0).pipe(Pe(k=>new Pr(a.concat(k.segments),k.children)))})):cy(e)))}getChildConfig(n,e,i){return e.children?oi({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?oi({routes:e._loadedRoutes,injector:e._loadedInjector}):function kTe(t,n,e,i){const r=n.canLoad;return void 0===r||0===r.length?oi(!0):oi(r.map(s=>{const a=Zm(s,t);return Df(function hTe(t){return t&&ly(t.canLoad)}(a)?a.canLoad(n,e):t.runInContext(()=>a(n,e)))})).pipe(ev(),k9())}(n,e,i).pipe(et(r=>r?this.configLoader.loadChildren(n,e).pipe(_s(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function FTe(t){return qp(b9(Zx&&`Cannot load children because the guard of the route "path: '${t.path}'" returned false`,3))}(e))):oi({routes:[],injector:n})}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return oi(i);if(r.numberOfChildren>1||!r.children[gr])return ITe(n.redirectTo);r=r.children[gr]}}applyRedirectCommands(n,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i)}applyRedirectCreateUrlTree(n,e,i,r){const o=this.createSegmentGroup(n,e.root,i,r);return new Tf(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return Ga(n,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[o]=e[a]}else i[o]=r}),i}createSegmentGroup(n,e,i,r){const o=this.createSegments(n,e.segments,i,r);let s={};return Ga(e.children,(a,l)=>{s[l]=this.createSegmentGroup(n,a,i,r)}),new Pr(o,s)}createSegments(n,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){const r=i[e.path.substring(1)];if(!r)throw new on(4001,Zx&&`Cannot redirect to '${n}'. Cannot find '${e.path}'.`);return r}findOrReturn(n,e){let i=0;for(const r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}}class RTe{}class jTe{constructor(n,e,i,r,o,s,a){this.injector=n,this.rootComponentType=e,this.config=i,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a}recognize(){const n=Jx(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,gr).pipe(Pe(e=>{if(null===e)return null;const i=new qx([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},gr,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Ud(i,e),o=new m9(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(n){const e=n.value,i=g9(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),n.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,r)}processChildren(n,e,i){return zn(Object.keys(i.children)).pipe(kf(r=>{const o=i.children[r],s=C9(e,r);return this.processSegmentGroup(n,s,o,r)}),U7((r,o)=>r&&o?(r.push(...o),r):null),function Qke(t,n=!1){return e=>e.lift(new Zke(t,n))}(r=>null!==r),Rx(null),W7(),Pe(r=>{if(null===r)return null;const o=F9(r);return function BTe(t){t.sort((n,e)=>n.value.outlet===gr?-1:e.value.outlet===gr?1:n.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(n,e,i,r,o){return zn(e).pipe(kf(s=>this.processSegmentAgainstRoute(s._injector??n,s,i,r,o)),Sf(s=>!!s),tc(s=>{if(jM(s))return A9(i,r,o)?oi([]):oi(null);throw s}))}processSegmentAgainstRoute(n,e,i,r,o){if(e.redirectTo||!T9(e,i,r,o))return oi(null);let s;if("**"===e.path){const a=r.length>0?X7(r).parameters:{},l=O9(i)+r.length;s=oi({snapshot:new qx(r,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,N9(e),Qc(e),e.component??e._loadedComponent??null,e,L9(i),l,R9(e)),consumedSegments:[],remainingSegments:[]})}else s=D9(i,e,r,n).pipe(Pe(({matched:a,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!a)return null;const h=O9(i)+l.length;return{snapshot:new qx(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,N9(e),Qc(e),e.component??e._loadedComponent??null,e,L9(i),h,R9(e)),consumedSegments:l,remainingSegments:c}}));return s.pipe(ec(a=>{if(null===a)return oi(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=a;n=e._injector??n;const h=e._loadedInjector??n,d=function HTe(t){return t.children?t.children:t.loadChildren?t._loadedRoutes:[]}(e),{segmentGroup:f,slicedSegments:p}=Jx(i,c,u,d.filter(w=>void 0===w.redirectTo));if(0===p.length&&f.hasChildren())return this.processChildren(h,d,f).pipe(Pe(w=>null===w?null:[new Ud(l,w)]));if(0===d.length&&0===p.length)return oi([new Ud(l,[])]);const m=Qc(e)===o;return this.processSegment(h,d,f,p,m?gr:o).pipe(Pe(w=>null===w?null:[new Ud(l,w)]))}))}}function VTe(t){const n=t.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function F9(t){const n=[],e=new Set;for(const i of t){if(!VTe(i)){n.push(i);continue}const r=n.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):n.push(i)}for(const i of e){const r=F9(i.children);n.push(new Ud(i.value,r))}return n.filter(i=>!e.has(i))}function L9(t){let n=t;for(;n._sourceSegment;)n=n._sourceSegment;return n}function O9(t){let n=t,e=n._segmentIndexShift??0;for(;n._sourceSegment;)n=n._sourceSegment,e+=n._segmentIndexShift??0;return e-1}function N9(t){return t.data||{}}function R9(t){return t.resolve||{}}function $9(t){return"string"==typeof t.title||null===t.title}function VM(t){return ec(n=>{const e=t(n);return e?zn(e).pipe(Pe(()=>n)):oi(n)})}const tv=new hi("ROUTES");let zM=(()=>{class t{constructor(e,i){this.injector=e,this.compiler=i,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return oi(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=Df(e.loadComponent()).pipe(Pe(j9),_s(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),CM(()=>{this.componentLoaders.delete(e)})),r=new Ne(i,()=>new Me).pipe(Kt());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return oi({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(Pe(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(e).injector,c=q7(l.get(tv,[],Yi.Self|Yi.Optional)));return{routes:c.map(PM),injector:l}}),CM(()=>{this.childrenLoaders.delete(i)})),s=new Ne(o,()=>new Me).pipe(Kt());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(e){return Df(e()).pipe(Pe(j9),et(r=>r instanceof O8||Array.isArray(r)?oi(r):zn(this.compiler.compileModuleAsync(r))))}}return t.\u0275fac=function(e){return new(e||t)(Et(ea),Et(C6))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function j9(t){return function JTe(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let nC=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new Me,this.configLoader=Fr(zM),this.environmentInjector=Fr(Fh),this.urlSerializer=Fr(J1),this.rootContexts=Fr(ry),this.navigationId=0,this.afterPreactivation=()=>oi(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new $De(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new RDe(r))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:i})}setupNavigations(e){return this.transitions=new ra({id:0,targetPageId:0,currentUrlTree:e.currentUrlTree,currentRawUrl:e.currentUrlTree,extractedUrl:e.urlHandlingStrategy.extract(e.currentUrlTree),urlAfterRedirects:e.urlHandlingStrategy.extract(e.currentUrlTree),rawUrl:e.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:ty,restoredState:null,currentSnapshot:e.routerState.snapshot,targetSnapshot:null,currentRouterState:e.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(bs(i=>0!==i.id),Pe(i=>({...i,extractedUrl:e.urlHandlingStrategy.extract(i.rawUrl)})),ec(i=>{let r=!1,o=!1;return oi(i).pipe(_s(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),ec(s=>{const a=e.browserUrlTree.toString(),l=!e.navigated||s.extractedUrl.toString()!==a||a!==e.currentUrlTree.toString();if(!l&&"reload"!==(s.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const u="";return this.events.next(new Wx(s.id,e.serializeUrl(i.rawUrl),u,0)),e.rawUrlTree=s.rawUrl,s.resolve(null),Hd}if(e.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return B9(s.source)&&(e.browserUrlTree=s.extractedUrl),oi(s).pipe(ec(u=>{const h=this.transitions?.getValue();return this.events.next(new Ux(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),h!==this.transitions?.getValue()?Hd:Promise.resolve(u)}),function NTe(t,n,e,i){return ec(r=>function LTe(t,n,e,i,r){return new OTe(t,n,e,i,r).apply()}(t,n,e,r.extractedUrl,i).pipe(Pe(o=>({...r,urlAfterRedirects:o}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,e.config),_s(u=>{this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},i.urlAfterRedirects=u.urlAfterRedirects}),function UTe(t,n,e,i,r){return et(o=>function PTe(t,n,e,i,r,o,s="emptyOnly"){return new jTe(t,n,e,i,r,s,o).recognize().pipe(ec(a=>null===a?function $Te(t){return new P(n=>n.error(t))}(new RTe):oi(a)))}(t,n,e,o.urlAfterRedirects,i.serialize(o.urlAfterRedirects),i,r).pipe(Pe(s=>({...o,targetSnapshot:s}))))}(this.environmentInjector,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),_s(u=>{if(i.targetSnapshot=u.targetSnapshot,"eager"===e.urlUpdateStrategy){if(!u.extras.skipLocationChange){const d=e.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);e.setBrowserUrl(d,u)}e.browserUrlTree=u.urlAfterRedirects}const h=new IDe(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(h)}));if(l&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){const{id:u,extractedUrl:h,source:d,restoredState:f,extras:p}=s,m=new Ux(u,this.urlSerializer.serialize(h),d,f);this.events.next(m);const w=p9(h,this.rootComponentType).snapshot;return oi(i={...s,targetSnapshot:w,urlAfterRedirects:h,extras:{...p,skipLocationChange:!1,replaceUrl:!1}})}{const u="";return this.events.next(new Wx(s.id,e.serializeUrl(i.extractedUrl),u,1)),e.rawUrlTree=s.rawUrl,s.resolve(null),Hd}}),_s(s=>{const a=new FDe(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),Pe(s=>i={...s,guards:sTe(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function vTe(t,n){return et(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?oi({...e,guardsResult:!0}):function yTe(t,n,e,i){return zn(t).pipe(et(r=>function STe(t,n,e,i,r){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?oi(o.map(a=>{const l=oy(n)??r,c=Zm(a,l);return Df(function pTe(t){return t&&ly(t.canDeactivate)}(c)?c.canDeactivate(t,n,e,i):l.runInContext(()=>c(t,n,e,i))).pipe(Sf())})).pipe(ev()):oi(!0)}(r.component,r.route,e,n,i)),Sf(r=>!0!==r,!0))}(s,i,r,t).pipe(et(a=>a&&function uTe(t){return"boolean"==typeof t}(a)?function bTe(t,n,e,i){return zn(n).pipe(kf(r=>Ox(function wTe(t,n){return null!==t&&n&&n(new PDe(t)),oi(!0)}(r.route.parent,i),function _Te(t,n){return null!==t&&n&&n(new BDe(t)),oi(!0)}(r.route,i),function CTe(t,n,e){const i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function aTe(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(s)).filter(s=>null!==s).map(s=>H7(()=>oi(s.guards.map(l=>{const c=oy(s.node)??e,u=Zm(l,c);return Df(function fTe(t){return t&&ly(t.canActivateChild)}(u)?u.canActivateChild(i,t):c.runInContext(()=>u(i,t))).pipe(Sf())})).pipe(ev())));return oi(o).pipe(ev())}(t,r.path,e),function xTe(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return oi(!0);const r=i.map(o=>H7(()=>{const s=oy(n)??e,a=Zm(o,s);return Df(function dTe(t){return t&&ly(t.canActivate)}(a)?a.canActivate(n,t):s.runInContext(()=>a(n,t))).pipe(Sf())}));return oi(r).pipe(ev())}(t,r.route,e))),Sf(r=>!0!==r,!0))}(i,o,t,n):oi(a)),Pe(a=>({...e,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),_s(s=>{if(i.guardsResult=s.guardsResult,Yp(s.guardsResult))throw y9(0,s.guardsResult);const a=new LDe(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),bs(s=>!!s.guardsResult||(e.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),VM(s=>{if(s.guards.canActivateChecks.length)return oi(s).pipe(_s(a=>{const l=new ODe(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),ec(a=>{let l=!1;return oi(a).pipe(function WTe(t,n){return et(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return oi(e);let o=0;return zn(r).pipe(kf(s=>function GTe(t,n,e,i){const r=t.routeConfig,o=t._resolve;return void 0!==r?.title&&!$9(r)&&(o[Y1]=r.title),function qTe(t,n,e,i){const r=function XTe(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===r.length)return oi({});const o={};return zn(r).pipe(et(s=>function YTe(t,n,e,i){const r=oy(n)??i,o=Zm(t,r);return Df(o.resolve?o.resolve(n,e):r.runInContext(()=>o(n,e)))}(t[s],n,e,i).pipe(Sf(),_s(a=>{o[s]=a}))),xM(1),function tDe(t){return n=>n.lift(new nDe(t))}(o),tc(s=>jM(s)?Hd:qp(s)))}(o,t,n,i).pipe(Pe(s=>(t._resolvedData=s,t.data=g9(t,e).resolve,r&&$9(r)&&(t.data[Y1]=r.title),null)))}(s.route,i,t,n)),_s(()=>o++),xM(1),et(s=>o===r.length?oi(e):Hd))})}(e.paramsInheritanceStrategy,this.environmentInjector),_s({next:()=>l=!0,complete:()=>{l||(e.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),_s(a=>{const l=new NDe(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}))}),VM(s=>{const a=l=>{const c=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(l.routeConfig).pipe(_s(u=>{l.component=u}),Pe(()=>{})));for(const u of l.children)c.push(...a(u));return c};return Lx(a(s.targetSnapshot.root)).pipe(Rx(),Rl(1))}),VM(()=>this.afterPreactivation()),Pe(s=>{const a=function YDe(t,n,e){const i=iy(t,n._root,e?e._root:void 0);return new f9(i,n)}(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return i={...s,targetRouterState:a}}),_s(s=>{e.currentUrlTree=s.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),e.routerState=s.targetRouterState,"deferred"===e.urlUpdateStrategy&&(s.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,s),e.browserUrlTree=s.urlAfterRedirects)}),((t,n,e)=>Pe(i=>(new oTe(n,i.targetRouterState,i.currentRouterState,e).activate(t),i)))(this.rootContexts,e.routeReuseStrategy,s=>this.events.next(s)),_s({next:s=>{r=!0,this.lastSuccessfulNavigation=this.currentNavigation,e.navigated=!0,this.events.next(new zd(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(e.currentUrlTree))),e.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{r=!0}}),CM(()=>{r||o||this.cancelNavigationTransition(i,"",1),this.currentNavigation?.id===i.id&&(this.currentNavigation=null)}),tc(s=>{if(o=!0,w9(s)){_9(s)||(e.navigated=!0,e.restoreHistory(i,!0));const a=new ny(i.id,this.urlSerializer.serialize(i.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),_9(s)){const l=e.urlHandlingStrategy.merge(s.url,e.rawUrlTree),c={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy||B9(i.source)};e.scheduleNavigation(l,ty,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}else i.resolve(!1)}else{e.restoreHistory(i,!0);const a=new Gx(i.id,this.urlSerializer.serialize(i.extractedUrl),s,i.targetSnapshot??void 0);this.events.next(a);try{i.resolve(e.errorHandler(s))}catch(l){i.reject(l)}}return Hd}))}))}cancelNavigationTransition(e,i,r){const o=new ny(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),e.resolve(!1)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function B9(t){return t!==ty}let H9=(()=>{class t{buildTitle(e){let i,r=e.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===gr);return i}getResolvedTitleForRoute(e){return e.data[Y1]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:function(){return Fr(QTe)},providedIn:"root"}),t})(),QTe=(()=>{class t extends H9{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}}return t.\u0275fac=function(e){return new(e||t)(Et(YB))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ZTe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:function(){return Fr(tAe)},providedIn:"root"}),t})();class eAe{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let tAe=(()=>{class t extends eAe{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=or(t)))(i||t)}}(),t.\u0275prov=Yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const iC=new hi("",{providedIn:"root",factory:()=>({})});let iAe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:function(){return Fr(rAe)},providedIn:"root"}),t})(),rAe=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function oAe(t){throw t}function sAe(t,n,e){return n.parse("/")}const aAe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},lAe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Or=(()=>{class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=Fr(wwe),this.isNgZoneEnabled=!1,this.options=Fr(iC,{optional:!0})||{},this.errorHandler=this.options.errorHandler||oAe,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||sAe,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=Fr(iAe),this.routeReuseStrategy=Fr(ZTe),this.urlCreationStrategy=Fr(GDe),this.titleStrategy=Fr(H9),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=q7(Fr(tv,{optional:!0})??[]),this.navigationTransitions=Fr(nC),this.urlSerializer=Fr(J1),this.location=Fr(xE),this.isNgZoneEnabled=Fr(br)instanceof br&&br.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Tf,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=p9(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const e=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),ty,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,i,e.state)},0)}))}navigateToSyncWithBrowser(e,i,r){const o={replaceUrl:!0},s=r?.navigationId?r:null;if(r){const l={...r};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(o.state=l)}const a=this.parseUrl(e);this.scheduleNavigation(a,i,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(e){this.config=e.map(PM),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:s;let u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...o};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=o||null}return null!==u&&(u=this.removeEmptyProps(u)),this.urlCreationStrategy.createUrlTree(r,this.routerState,this.currentUrlTree,e,u,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=Yp(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,ty,null,i)}navigate(e,i={skipLocationChange:!1}){return function cAe(t){for(let n=0;n{const o=e[r];return null!=o&&(i[r]=o),i},{})}scheduleNavigation(e,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c,u;return s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((h,d)=>{a=h,l=d}),u="computed"===this.canceledNavigationResolution?r&&r.\u0275routerPageId?r.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:u,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(h=>Promise.reject(h))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e),o={...i.extras.state,...this.generateNgRouterState(i.id,i.targetPageId)};this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",o):this.location.go(r,"",o)}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.getCurrentNavigation()?.finalUrl||0===r?this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ru=(()=>{class t{constructor(e,i,r,o,s,a){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=s,this.locationStrategy=a,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new Me;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof zd&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(e){this._preserveFragment=Gm(e)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(e){this._skipLocationChange=Gm(e)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(e){this._replaceUrl=Gm(e)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,i,r,o,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==e||i||r||o||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const e=null===this.href?null:function uj(t,n,e){return function $0e(t,n){return"src"===n&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===n&&("base"===t||"link"===t)?cj:m1}(n,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",e)}applyAttributeValue(e,i){const r=this.renderer,o=this.el.nativeElement;null!==i?r.setAttribute(o,e,i):r.removeAttribute(o,e)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return t.\u0275fac=function(e){return new(e||t)(Ae(Or),Ae(co),Ed("tabindex"),Ae(Hs),Ae(xi),Ae(zp))},t.\u0275dir=bn({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(e,i){1&e&&He("click",function(o){return i.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),2&e&&Ft("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[ui]}),t})(),uy=(()=>{class t{get isActive(){return this._isActive}constructor(e,i,r,o,s){this.router=e,this.element=i,this.renderer=r,this.cdr=o,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new vt,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof zd&&this.update()})}ngAfterContentInit(){oi(this.links.changes,oi(null)).pipe(H()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=zn(e).pipe(H()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){const i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(r=>!!r)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const e=this.hasActiveLinks();this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.classes.forEach(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),e&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(e))})}isLinkActive(e){const i=function uAe(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>!!r.urlTree&&e.isActive(r.urlTree,i)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}}return t.\u0275fac=function(e){return new(e||t)(Ae(Or),Ae(xi),Ae(Hs),Ae(hs),Ae(Ru,8))},t.\u0275dir=bn({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(e,i,r){if(1&e&&Ci(r,Ru,5),2&e){let o;En(o=Mn())&&(i.links=o)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[ui]}),t})();class V9{}let hAe=(()=>{class t{constructor(e,i,r,o,s){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(bs(e=>e instanceof zd),kf(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=zw(o.providers,e,`Route: ${o.path}`));const s=o._injector??e,a=o._loadedInjector??s;o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent?r.push(this.preloadConfig(s,o)):(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return zn(r).pipe(H())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):oi(null);const o=r.pipe(et(s=>null===s?oi(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));return i.loadComponent&&!i._loadedComponent?zn([o,this.loader.loadComponent(i)]).pipe(H()):o})}}return t.\u0275fac=function(e){return new(e||t)(Et(Or),Et(C6),Et(Fh),Et(V9),Et(zM))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const WM=new hi("");let z9=(()=>{class t{constructor(e,i,r,o,s={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Ux?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof zd&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof h9&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new h9(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return t.\u0275fac=function(e){!function Bj(){throw new Error("invalid")}()},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})();var kc=(()=>((kc=kc||{})[kc.COMPLETE=0]="COMPLETE",kc[kc.FAILED=1]="FAILED",kc[kc.REDIRECTING=2]="REDIRECTING",kc))();const nv=!1;function Af(t,n){return{\u0275kind:t,\u0275providers:n}}const GM=new hi("",{providedIn:"root",factory:()=>!1});function W9(){const t=Fr(ea);return n=>{const e=t.get(Lu);if(n!==e.components[0])return;const i=t.get(Or),r=t.get(G9);1===t.get(qM)&&i.initialNavigation(),t.get(q9,null,Yi.Optional)?.setUpPreloading(),t.get(WM,null,Yi.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.unsubscribe())}}const G9=new hi(nv?"bootstrap done indicator":"",{factory:()=>new Me}),qM=new hi(nv?"initial navigation":"",{providedIn:"root",factory:()=>1});function mAe(){let t=[];return t=nv?[{provide:Cw,multi:!0,useFactory:()=>{const n=Fr(Or);return()=>n.events.subscribe(e=>{console.group?.(`Router Event: ${e.constructor.name}`),console.log(function VDe(t){if(!("type"in t))return`Unknown Router Event: ${t.constructor.name}`;switch(t.type){case 14:return`ActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state}, shouldActivate: ${t.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 2:return`NavigationCancel(id: ${t.id}, url: '${t.url}')`;case 16:return`NavigationSkipped(id: ${t.id}, url: '${t.url}')`;case 1:return`NavigationEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${t.id}, url: '${t.url}', error: ${t.error})`;case 0:return`NavigationStart(id: ${t.id}, url: '${t.url}')`;case 6:return`ResolveEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 5:return`ResolveStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 10:return`RouteConfigLoadEnd(path: ${t.route.path})`;case 9:return`RouteConfigLoadStart(path: ${t.route.path})`;case 4:return`RoutesRecognized(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 15:return`Scroll(anchor: '${t.anchor}', position: '${t.position?`${t.position[0]}, ${t.position[1]}`:null}')`}}(e)),console.log(e),console.groupEnd?.()})}}]:[],Af(1,t)}const q9=new hi(nv?"router preloader":"");function vAe(t){return Af(0,[{provide:q9,useExisting:hAe},{provide:V9,useExisting:t}])}const hy=!1,X9=new hi(hy?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),yAe=[xE,{provide:J1,useClass:SM},Or,ry,{provide:co,useFactory:function U9(t){return t.routerState.root},deps:[Or]},zM,hy?{provide:GM,useValue:!0}:[]];function bAe(){return new I6("Router",Or)}let Y9=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[yAe,hy&&i?.enableTracing?mAe().\u0275providers:[],{provide:tv,multi:!0,useValue:e},{provide:X9,useFactory:CAe,deps:[[Or,new l1,new c1]]},{provide:iC,useValue:i||{}},i?.useHash?{provide:zp,useClass:lxe}:{provide:zp,useClass:eB},{provide:WM,useFactory:()=>{const t=Fr(_Ce),n=Fr(br),e=Fr(iC),i=Fr(nC),r=Fr(J1);return e.scrollOffset&&t.setOffset(e.scrollOffset),new z9(r,i,t,n,e)}},i?.preloadingStrategy?vAe(i.preloadingStrategy).\u0275providers:[],{provide:I6,multi:!0,useFactory:bAe},i?.initialNavigation?SAe(i):[],[{provide:K9,useFactory:W9},{provide:M6,multi:!0,useExisting:K9}]]}}static forChild(e){return{ngModule:t,providers:[{provide:tv,multi:!0,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)(Et(X9,8))},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[RM]}),t})();function CAe(t){if(hy&&t)throw new on(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function SAe(t){return["disabled"===t.initialNavigation?Af(3,[{provide:qw,multi:!0,useFactory:()=>{const n=Fr(Or);return()=>{n.setUpLocationChangeListener()}}},{provide:qM,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Af(2,[{provide:qM,useValue:0},{provide:qw,multi:!0,deps:[ea],useFactory:n=>{const e=n.get(sxe,Promise.resolve());return()=>e.then(()=>new Promise(i=>{const r=n.get(Or),o=n.get(G9);(function dAe(t,n){t.events.pipe(bs(e=>e instanceof zd||e instanceof ny||e instanceof Gx||e instanceof Wx),Pe(e=>e instanceof zd||e instanceof Wx?kc.COMPLETE:e instanceof ny&&(0===e.code||1===e.code)?kc.REDIRECTING:kc.FAILED),bs(e=>e!==kc.REDIRECTING),Rl(1)).subscribe(()=>{n()})})(r,()=>{i(!0)}),n.get(nC).afterPreactivation=()=>(i(!0),o.closed?oi(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const K9=new hi(hy?"Router Initializer":"");function rC(t,n){return new P(e=>{const i=t.length;if(0===i)return void e.complete();const r=new Array(i);let o=0,s=0;for(let a=0;a{c||(c=!0,s++),r[a]=u},error:u=>e.error(u),complete:()=>{o++,(o===i||!c)&&(s===i&&e.next(n?n.reduce((u,h,d)=>(u[h]=r[d],u),{}):r),e.complete())}}))}})}let J9=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(Ae(Hs),Ae(xi))},t.\u0275dir=bn({type:t}),t})(),Jp=(()=>{class t extends J9{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=or(t)))(i||t)}}(),t.\u0275dir=bn({type:t,features:[Bi]}),t})();const Aa=new hi("NgValueAccessor"),TAe={provide:Aa,useExisting:yr(()=>oC),multi:!0};let oC=(()=>{class t extends Jp{writeValue(e){this.setProperty("checked",e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=or(t)))(i||t)}}(),t.\u0275dir=bn({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,i){1&e&&He("change",function(o){return i.onChange(o.target.checked)})("blur",function(){return i.onTouched()})},features:[lo([TAe]),Bi]}),t})();const AAe={provide:Aa,useExisting:yr(()=>qa),multi:!0},MAe=new hi("CompositionEventMode");let qa=(()=>{class t extends J9{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function EAe(){const t=Nd()?Nd().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return t.\u0275fac=function(e){return new(e||t)(Ae(Hs),Ae(xi),Ae(MAe,8))},t.\u0275dir=bn({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&He("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[lo([AAe]),Bi]}),t})();const IAe=!1;function Ef(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function Q9(t){return null!=t&&"number"==typeof t.length}const Xa=new hi("NgValidators"),Mf=new hi("NgAsyncValidators"),FAe=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Wo{static min(n){return Z9(n)}static max(n){return function eH(t){return n=>{if(Ef(n.value)||Ef(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return tH(n)}static requiredTrue(n){return function nH(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function iH(t){return Ef(t.value)||FAe.test(t.value)?null:{email:!0}}(n)}static minLength(n){return function rH(t){return n=>Ef(n.value)||!Q9(n.value)?null:n.value.lengthQ9(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}(n)}static pattern(n){return function sH(t){if(!t)return sC;let n,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(Ef(i.value))return null;const r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(n)}static nullValidator(n){return null}static compose(n){return dH(n)}static composeAsync(n){return fH(n)}}function Z9(t){return n=>{if(Ef(n.value)||Ef(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function uH(t,n){return n.map(e=>e(t))}function hH(t){return t.map(n=>function LAe(t){return!t.validate}(n)?n:e=>n.validate(e))}function dH(t){if(!t)return null;const n=t.filter(aH);return 0==n.length?null:function(e){return cH(uH(e,n))}}function XM(t){return null!=t?dH(hH(t)):null}function fH(t){if(!t)return null;const n=t.filter(aH);return 0==n.length?null:function(e){return function DAe(...t){if(1===t.length){const n=t[0];if(R(n))return rC(n,null);if(D(n)&&Object.getPrototypeOf(n)===Object.prototype){const e=Object.keys(n);return rC(e.map(i=>n[i]),e)}}if("function"==typeof t[t.length-1]){const n=t.pop();return rC(t=1===t.length&&R(t[0])?t[0]:t,null).pipe(Pe(e=>n(...e)))}return rC(t,null)}(uH(e,n).map(lH)).pipe(Pe(cH))}}function YM(t){return null!=t?fH(hH(t)):null}function pH(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function gH(t){return t._rawValidators}function mH(t){return t._rawAsyncValidators}function KM(t){return t?Array.isArray(t)?t:[t]:[]}function aC(t,n){return Array.isArray(t)?t.includes(n):t===n}function vH(t,n){const e=KM(n);return KM(t).forEach(r=>{aC(e,r)||e.push(r)}),e}function yH(t,n){return KM(n).filter(e=>!aC(t,e))}class bH{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=XM(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=YM(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class $l extends bH{get formDirective(){return null}get path(){return null}}class If extends bH{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class _H{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let vl=(()=>{class t extends _H{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(Ae(If,2))},t.\u0275dir=bn({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&Kn("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[Bi]}),t})(),yl=(()=>{class t extends _H{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(Ae($l,10))},t.\u0275dir=bn({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&Kn("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[Bi]}),t})();function wH(t,n){return t?`with name: '${n}'`:`at index: ${n}`}const ZM=!1,dy="VALID",cC="INVALID",iv="PENDING",fy="DISABLED";function e3(t){return(uC(t)?t.validators:t)||null}function t3(t,n){return(uC(n)?n.asyncValidators:t)||null}function uC(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function xH(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new on(1e3,ZM?function $Ae(t){return`\n There are no form controls registered with this ${t?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(n):"");if(!i[e])throw new on(1001,ZM?function PAe(t,n){return`Cannot find form control ${wH(t,n)}`}(n,e):"")}function CH(t,n,e){t._forEachChild((i,r)=>{if(void 0===e[r])throw new on(1002,ZM?function jAe(t,n){return`Must supply a value for form control ${wH(t,n)}`}(n,r):"")})}class hC{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===dy}get invalid(){return this.status===cC}get pending(){return this.status==iv}get disabled(){return this.status===fy}get enabled(){return this.status!==fy}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(vH(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(vH(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(yH(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(yH(n,this._rawAsyncValidators))}hasValidator(n){return aC(this._rawValidators,n)}hasAsyncValidator(n){return aC(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=iv,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=fy,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=dy,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===dy||this.status===iv)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?fy:dy}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=iv,this._hasOwnPendingAsyncValidator=!0;const e=lH(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new vt,this.statusChanges=new vt}_calculateStatus(){return this._allControlsDisabled()?fy:this.errors?cC:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(iv)?iv:this._anyControlsHaveStatus(cC)?cC:dy}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){uC(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function BAe(t){return Array.isArray(t)?XM(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function HAe(t){return Array.isArray(t)?YM(t):t||null}(this._rawAsyncValidators)}}class py extends hC{constructor(n,e,i){super(e3(e),t3(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){CH(this,!0,n),Object.keys(n).forEach(i=>{xH(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{const r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class SH extends py{}const Qp=new hi("CallSetDisabledState",{providedIn:"root",factory:()=>gy}),gy="always";function my(t,n,e=gy){n3(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function zAe(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&kH(t,n)})}(t,n),function WAe(t,n){const e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function UAe(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&kH(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function VAe(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function fC(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),gC(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function pC(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function n3(t,n){const e=gH(t);null!==n.validator?t.setValidators(pH(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=mH(t);null!==n.asyncValidator?t.setAsyncValidators(pH(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();pC(n._rawValidators,r),pC(n._rawAsyncValidators,r)}function gC(t,n){let e=!1;if(null!==t){if(null!==n.validator){const r=gH(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(null!==n.asyncValidator){const r=mH(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}const i=()=>{};return pC(n._rawValidators,i),pC(n._rawAsyncValidators,i),e}function kH(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function AH(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function EH(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const yy=class extends hC{constructor(n=null,e,i){super(e3(e),t3(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),uC(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=EH(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){AH(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){AH(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){EH(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};let bl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=bn({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const eEe={provide:Aa,useExisting:yr(()=>a3),multi:!0};let a3=(()=>{class t extends Jp{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=or(t)))(i||t)}}(),t.\u0275dir=bn({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,i){1&e&&He("input",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},features:[lo([eEe]),Bi]}),t})(),OH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({}),t})();const l3=new hi("NgModelWithFormControlWarning"),oEe={provide:$l,useExisting:yr(()=>Ea)};let Ea=(()=>{class t extends $l{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new vt,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(gC(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return my(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){fC(e.control||null,e,!1),function YAe(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,function TH(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(fC(i||null,e),(t=>t instanceof yy)(r)&&(my(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);(function DH(t,n){n3(t,n)})(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function GAe(t,n){return gC(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){n3(this.form,this),this._oldForm&&gC(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(Ae(Xa,10),Ae(Mf,10),Ae(Qp,8))},t.\u0275dir=bn({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&He("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[lo([oEe]),Bi,ui]}),t})();const lEe={provide:If,useExisting:yr(()=>Ya)};let Ya=(()=>{class t extends If{set isDisabled(e){}constructor(e,i,r,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new vt,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function o3(t,n){if(!n)return null;let e,i,r;return Array.isArray(n),n.forEach(o=>{o.constructor===qa?e=o:function XAe(t){return Object.getPrototypeOf(t.constructor)===Jp}(o)?i=o:r=o}),r||i||e||null}(0,o)}ngOnChanges(e){this._added||this._setUpControl(),function r3(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return function dC(t,n){return[...n.path,t]}(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return t._ngModelWarningSentOnce=!1,t.\u0275fac=function(e){return new(e||t)(Ae($l,13),Ae(Xa,10),Ae(Mf,10),Ae(Aa,10),Ae(l3,8))},t.\u0275dir=bn({type:t,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[lo([lEe]),Bi,ui]}),t})();const cEe={provide:Aa,useExisting:yr(()=>rv),multi:!0};function jH(t,n){return null==t?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let rv=(()=>{class t extends Jp{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const r=jH(this._getOptionId(e),e);this.setProperty("value",r)}registerOnChange(e){this.onChange=i=>{this.value=this._getOptionValue(i),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const i of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(i),e))return i;return null}_getOptionValue(e){const i=function uEe(t){return t.split(":")[0]}(e);return this._optionMap.has(i)?this._optionMap.get(i):e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=or(t)))(i||t)}}(),t.\u0275dir=bn({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,i){1&e&&He("change",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[lo([cEe]),Bi]}),t})(),by=(()=>{class t{constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(jH(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(Ae(xi),Ae(Hs),Ae(rv,9))},t.\u0275dir=bn({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const hEe={provide:Aa,useExisting:yr(()=>h3),multi:!0};function BH(t,n){return null==t?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let h3=(()=>{class t extends Jp{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let i;if(this.value=e,Array.isArray(e)){const r=e.map(o=>this._getOptionId(o));i=(o,s)=>{o._setSelected(r.indexOf(s.toString())>-1)}}else i=(r,o)=>{r._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(e){this.onChange=i=>{const r=[],o=i.selectedOptions;if(void 0!==o){const s=o;for(let a=0;a{class t{constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(BH(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(BH(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(Ae(xi),Ae(Hs),Ae(h3,9))},t.\u0275dir=bn({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();let Zp=(()=>{class t{constructor(){this._validator=sC}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):sC,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=bn({type:t,features:[ui]}),t})();const pEe={provide:Xa,useExisting:yr(()=>d3),multi:!0};let d3=(()=>{class t extends Zp{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>function VH(t){return"number"==typeof t?t:parseFloat(t)}(e),this.createValidator=e=>Z9(e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=or(t)))(i||t)}}(),t.\u0275dir=bn({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(e,i){2&e&&Ft("min",i._enabled?i.min:null)},inputs:{min:"min"},features:[lo([pEe]),Bi]}),t})();const gEe={provide:Xa,useExisting:yr(()=>Ff),multi:!0};let Ff=(()=>{class t extends Zp{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Gm,this.createValidator=e=>tH}enabled(e){return e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=or(t)))(i||t)}}(),t.\u0275dir=bn({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,i){2&e&&Ft("required",i._enabled?"":null)},inputs:{required:"required"},features:[lo([gEe]),Bi]}),t})(),YH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[OH]}),t})();class KH extends hC{constructor(n,e,i){super(e3(e),t3(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){CH(this,!1,n),n.forEach((i,r)=>{xH(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function JH(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let wEe=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,i=null){const r=this._reduceControls(e);let o={};return JH(i)?o=i:null!==i&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new py(r,o)}record(e,i=null){const r=this._reduceControls(e);return new SH(r,i)}control(e,i,r){let o={};return this.useNonNullable?(JH(i)?o=i:(o.validators=i,o.asyncValidators=r),new yy(e,{...o,nonNullable:!0})):new yy(e,i,r)}array(e,i,r){const o=e.map(s=>this._createControl(s));return new KH(o,i,r)}_reduceControls(e){const i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){return e instanceof yy||e instanceof hC?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Pl=(()=>{class t extends wEe{group(e,i=null){return super.group(e,i)}control(e,i,r){return super.control(e,i,r)}array(e,i,r){return super.array(e,i,r)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=or(t)))(i||t)}}(),t.\u0275prov=Yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),QH=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Qp,useValue:e.callSetDisabledState??gy}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[YH]}),t})(),xEe=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:l3,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Qp,useValue:e.callSetDisabledState??gy}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[YH]}),t})();const f3=new hi("ngx-segment-analytics.config"),CEe={debug:!1,loadOnInitialization:!0,segmentHost:"cdn.segment.com",segmentUri:"/analytics.js/v1/$API_KEY$/analytics.min.js"};let p3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})(),mC=(()=>{class t{constructor(e,i,r){if(this._w=e,this._doc=i,this._config=Object.assign(Object.assign({},CEe),r),this._config.loadOnInitialization&&(typeof this._config.apiKey>"u"||""===this._config.apiKey))console.error("The API Key cannot be an empty string if Segment must be loaded on initialization.");else if(typeof this._w.analytics>"u"||typeof this._w.analytics.initialize>"u"||!1===this._w.analytics.initialize){if(typeof this._w.analytics<"u"&&!0===this._w.analytics.invoked)return void console.error("Segment snippet included twice.");this._config.debug&&console.log("Segment initialization..."),this._w.analytics=[],this._w.analytics.invoked=!0,this._w.analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware"],this._w.analytics.factory=o=>(...s)=>(s.unshift(o),this._w.analytics.push(s),this._w.analytics),this._w.analytics.methods.forEach(o=>{this._w.analytics[o]=this._w.analytics.factory(o)}),this._w.analytics.load=(o,s)=>{const a=this._doc.createElement("script");a.type="text/javascript",a.async=!0,a.src="https://"+this._config.segmentHost+this._config.segmentUri.replace("$API_KEY$",o);const l=this._doc.getElementsByTagName("script")[0];l.parentNode.insertBefore(a,l),this._w.analytics._loadOptions=s},this._w.analytics.SNIPPET_VERSION="4.1.0",this._config.loadOnInitialization&&this.load(this._config.apiKey)}}load(e,i){this._w.analytics.load(e,i),this._config.debug&&console.log("Segment initialized"),this.debug(this._config.debug)}identify(e,i,r){return new Promise(o=>{this._w.analytics.identify(e,i,r,s=>o(this))})}track(e,i,r){return new Promise(o=>{this._w.analytics.track(e,i,r,s=>o(this))})}page(e,i,r,o){return new Promise(s=>{this._w.analytics.page(e,i,r,o,a=>s(this))})}group(e,i){return new Promise(r=>{this._w.analytics.group(e,i,o=>r(this))})}alias(e,i,r){return new Promise(o=>{this._w.analytics.alias(e,i,r,s=>o(this))})}ready(){return new Promise(e=>{this._w.analytics.ready(i=>e(this))})}user(){return this._w.analytics.user()}id(){return this._w.analytics.id()}traits(){return this._w.analytics.traits()}reset(){this._w.analytics.reset()}debug(e){this._w.analytics.debug(e)}on(e,i){this._w.analytics.on(e,i)}trackLink(e,i,r){this._w.analytics.trackLink(e,i,r)}trackForm(e,i,r){this._w.analytics.trackForm(e,i,r)}timeout(e){this._w.analytics.timeout(e)}addSourceMiddleware(e){this._w.analytics.addSourceMiddleware(e)}get plugins(){return this._w.analytics.plugins}}return t.\u0275fac=function(e){return new(e||t)(Et(p3),Et(no),Et(f3))},t.\u0275prov=Yt({factory:function(){return new t(Et(p3),Et(no),Et(f3))},token:t,providedIn:"root"}),t})();function SEe(t){return function kB(t){return t===SB}(t)?window:{}}let kEe=(()=>{class t{constructor(e){if(e)throw new Error("SegmentModule is already loaded. Import it in the AppModule only")}static forRoot(e){return{ngModule:t,providers:[{provide:f3,useValue:e},mC]}}}return t.\u0275fac=function(e){return new(e||t)(Et(t,12))},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({providers:[{provide:p3,useFactory:SEe,deps:[N1]}],imports:[ia]}),t})();class vC{}class g3{}class $u{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(n).forEach(e=>{let i=n[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof $u?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new $u;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof $u?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const r=("a"===n.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=n.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class DEe{encodeKey(n){return ZH(n)}encodeValue(n){return ZH(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const AEe=/%(\d[a-f0-9])/gi,EEe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ZH(t){return encodeURIComponent(t).replace(AEe,(n,e)=>EEe[e]??n)}function yC(t){return`${t}`}class Jn{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new DEe,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function TEe(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],r=Array.isArray(i)?i.map(yC):[yC(i)];this.map.set(e,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new Jn({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(yC(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const r=i.indexOf(yC(n.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class MEe{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function eV(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function tV(t){return typeof Blob<"u"&&t instanceof Blob}function nV(t){return typeof FormData<"u"&&t instanceof FormData}class wy{constructor(n,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function IEe(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new $u),this.context||(this.context=new MEe),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ah.set(d,n.setHeaders[d]),l)),n.setParams&&(c=Object.keys(n.setParams).reduce((h,d)=>h.set(d,n.setParams[d]),c)),new wy(e,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var oa=(()=>((oa=oa||{})[oa.Sent=0]="Sent",oa[oa.UploadProgress=1]="UploadProgress",oa[oa.ResponseHeader=2]="ResponseHeader",oa[oa.DownloadProgress=3]="DownloadProgress",oa[oa.Response=4]="Response",oa[oa.User=5]="User",oa))();class m3{constructor(n,e=200,i="OK"){this.headers=n.headers||new $u,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class v3 extends m3{constructor(n={}){super(n),this.type=oa.ResponseHeader}clone(n={}){return new v3({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class bC extends m3{constructor(n={}){super(n),this.type=oa.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new bC({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class iV extends m3{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function y3(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let _C=(()=>{class t{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof wy)o=e;else{let l,c;l=r.headers instanceof $u?r.headers:new $u(r.headers),r.params&&(c=r.params instanceof Jn?r.params:new Jn({fromObject:r.params})),o=new wy(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const s=oi(o).pipe(kf(l=>this.handler.handle(l)));if(e instanceof wy||"events"===r.observe)return s;const a=s.pipe(bs(l=>l instanceof bC));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(Pe(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(Pe(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(Pe(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(Pe(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new Jn).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,y3(r,i))}post(e,i,r={}){return this.request("POST",e,y3(r,i))}put(e,i,r={}){return this.request("PUT",e,y3(r,i))}}return t.\u0275fac=function(e){return new(e||t)(Et(vC))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})();function rV(t,n){return n(t)}function LEe(t,n){return(e,i)=>n.intercept(e,{handle:r=>t(r,i)})}const b3=new hi("HTTP_INTERCEPTORS"),xy=new hi("HTTP_INTERCEPTOR_FNS");function NEe(){let t=null;return(n,e)=>(null===t&&(t=(Fr(b3,{optional:!0})??[]).reduceRight(LEe,rV)),t(n,e))}let oV=(()=>{class t extends vC{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=Array.from(new Set(this.injector.get(xy)));this.chain=i.reduceRight((r,o)=>function OEe(t,n,e){return(i,r)=>e.runInContext(()=>n(i,o=>t(o,r)))}(r,o,this.injector),rV)}return this.chain(e,i=>this.backend.handle(i))}}return t.\u0275fac=function(e){return new(e||t)(Et(g3),Et(Fh))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})();const jEe=/^\)\]\}',?\n/;let aV=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new P(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((f,p)=>r.setRequestHeader(f,p.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const f=e.detectContentTypeHeader();null!==f&&r.setRequestHeader("Content-Type",f)}if(e.responseType){const f=e.responseType.toLowerCase();r.responseType="json"!==f?f:"text"}const o=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const f=r.statusText||"OK",p=new $u(r.getAllResponseHeaders()),m=function BEe(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new v3({headers:p,status:r.status,statusText:f,url:m}),s},l=()=>{let{headers:f,status:p,statusText:m,url:w}=a(),C=null;204!==p&&(C=typeof r.response>"u"?r.responseText:r.response),0===p&&(p=C?200:0);let k=p>=200&&p<300;if("json"===e.responseType&&"string"==typeof C){const E=C;C=C.replace(jEe,"");try{C=""!==C?JSON.parse(C):null}catch(L){C=E,k&&(k=!1,C={error:L,text:C})}}k?(i.next(new bC({body:C,headers:f,status:p,statusText:m,url:w||void 0})),i.complete()):i.error(new iV({error:C,headers:f,status:p,statusText:m,url:w||void 0}))},c=f=>{const{url:p}=a(),m=new iV({error:f,status:r.status||0,statusText:r.statusText||"Unknown Error",url:p||void 0});i.error(m)};let u=!1;const h=f=>{u||(i.next(a()),u=!0);let p={type:oa.DownloadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),"text"===e.responseType&&r.responseText&&(p.partialText=r.responseText),i.next(p)},d=f=>{let p={type:oa.UploadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),i.next(p)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",h),null!==o&&r.upload&&r.upload.addEventListener("progress",d)),r.send(o),i.next({type:oa.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",h),null!==o&&r.upload&&r.upload.removeEventListener("progress",d)),r.readyState!==r.DONE&&r.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(Et(TB))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})();const _3=new hi("XSRF_ENABLED"),lV=new hi("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),cV=new hi("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class uV{}let zEe=(()=>{class t{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=fB(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(Et(no),Et(N1),Et(lV))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})();function UEe(t,n){const e=t.url.toLowerCase();if(!Fr(_3)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const i=Fr(uV).getToken(),r=Fr(cV);return null!=i&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,i)})),n(t)}var zs=(()=>((zs=zs||{})[zs.Interceptors=0]="Interceptors",zs[zs.LegacyInterceptors=1]="LegacyInterceptors",zs[zs.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",zs[zs.NoXsrfProtection=3]="NoXsrfProtection",zs[zs.JsonpSupport=4]="JsonpSupport",zs[zs.RequestsMadeViaParent=5]="RequestsMadeViaParent",zs))();function ov(t,n){return{\u0275kind:t,\u0275providers:n}}function WEe(...t){const n=[_C,aV,oV,{provide:vC,useExisting:oV},{provide:g3,useExisting:aV},{provide:xy,useValue:UEe,multi:!0},{provide:_3,useValue:!0},{provide:uV,useClass:zEe}];for(const e of t)n.push(...e.\u0275providers);return function P0e(t){return{\u0275providers:t}}(n)}const hV=new hi("LEGACY_INTERCEPTOR_FN");let qEe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({providers:[WEe(ov(zs.LegacyInterceptors,[{provide:hV,useFactory:NEe},{provide:xy,useExisting:hV,multi:!0}]))]}),t})();var Di=(()=>(function(t){t[t.USER_ROLE_UNKNOWN=0]="USER_ROLE_UNKNOWN",t[t.USER_ROLE_ADMIN=1]="USER_ROLE_ADMIN",t[t.USER_ROLE_DEVELOPER=2]="USER_ROLE_DEVELOPER",t[t.USER_ROLE_MAINTAINER=3]="USER_ROLE_MAINTAINER",t[t.USER_ROLE_READONLY=4]="USER_ROLE_READONLY"}(Di||(Di={})),Di))(),Cy=(()=>(function(t){t[t.APPLE_APP_STORE=0]="APPLE_APP_STORE",t[t.GOOGLE_PLAY_STORE=1]="GOOGLE_PLAY_STORE",t[t.HUAWEI_APP_GALLERY=2]="HUAWEI_APP_GALLERY"}(Cy||(Cy={})),Cy))();class w3{constructor(){be(this,"host",void 0),be(this,"timeoutMs",void 0)}}let Ui=(()=>{class t{constructor(e,i){be(this,"httpClient",void 0),be(this,"config",void 0),this.httpClient=e,this.config=i||{host:"http://127.0.0.1:7120",timeoutMs:5e3}}deleteAccounts(e){let r=new Jn;return this.httpClient.delete(this.config.host+"/v2/console/account",{params:r,headers:this.getTokenAuthHeaders(e)})}listAccounts(e,i,r,o){let a=new Jn;return i&&(a=a.set("filter",i)),(r||!1===r)&&(a=a.set("tombstones",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+"/v2/console/account",{params:a,headers:this.getTokenAuthHeaders(e)})}getWalletLedger(e,i,r,o){const s=`/v2/console/account/${i=encodeURIComponent(String(i))}/wallet`;let a=new Jn;return r&&(a=a.set("limit",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+s,{params:a,headers:this.getTokenAuthHeaders(e)})}deleteAccount(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}`;let s=new Jn;return(r||!1===r)&&(s=s.set("record_deletion",String(r))),this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}getAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}`;let o=new Jn;return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}updateAccount(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}`;let s=new Jn;return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}banAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/ban`;let o=new Jn;return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}exportAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/export`;let o=new Jn;return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getFriends(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/friend`;let o=new Jn;return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteFriend(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/friend/${r=encodeURIComponent(String(r))}`;let s=new Jn;return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}getGroups(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/group`;let o=new Jn;return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteGroupUser(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/group/${r=encodeURIComponent(String(r))}`;let s=new Jn;return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}unbanAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unban`;let o=new Jn;return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkApple(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/apple`;let o=new Jn;return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkCustom(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/custom`;let o=new Jn;return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkDevice(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/device`;let s=new Jn;return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}unlinkEmail(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/email`;let o=new Jn;return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkFacebook(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/facebook`;let o=new Jn;return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkFacebookInstantGame(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/facebookinstantgame`;let o=new Jn;return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkGameCenter(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/gamecenter`;let o=new Jn;return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkGoogle(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/google`;let o=new Jn;return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkSteam(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/steam`;let o=new Jn;return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteWalletLedger(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/wallet/${r=encodeURIComponent(String(r))}`;let s=new Jn;return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}deleteAllData(e){let r=new Jn;return this.httpClient.delete(this.config.host+"/v2/console/all",{params:r,headers:this.getTokenAuthHeaders(e)})}listApiEndpoints(e){let r=new Jn;return this.httpClient.get(this.config.host+"/v2/console/api/endpoints",{params:r,headers:this.getTokenAuthHeaders(e)})}callRpcEndpoint(e,i,r){const o=`/v2/console/api/endpoints/rpc/${i=encodeURIComponent(String(i))}`;let s=new Jn;return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}callApiEndpoint(e,i,r){const o=`/v2/console/api/endpoints/${i=encodeURIComponent(String(i))}`;let s=new Jn;return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}authenticate(e){let r=new Jn;return this.httpClient.post(this.config.host+"/v2/console/authenticate",e,{params:r})}authenticateLogout(e,i){let o=new Jn;return this.httpClient.post(this.config.host+"/v2/console/authenticate/logout",i,{params:o,headers:this.getTokenAuthHeaders(e)})}listChannelMessages(e,i,r,o,s,a,l){let u=new Jn;return i&&(u=u.set("type",i)),r&&(u=u.set("label",r)),o&&(u=u.set("group_id",o)),s&&(u=u.set("user_id_one",s)),a&&(u=u.set("user_id_two",a)),l&&(u=u.set("cursor",l)),this.httpClient.get(this.config.host+"/v2/console/channel",{params:u,headers:this.getTokenAuthHeaders(e)})}getConfig(e){let r=new Jn;return this.httpClient.get(this.config.host+"/v2/console/config",{params:r,headers:this.getTokenAuthHeaders(e)})}listGroups(e,i,r){let s=new Jn;return i&&(s=s.set("filter",i)),r&&(s=s.set("cursor",r)),this.httpClient.get(this.config.host+"/v2/console/group",{params:s,headers:this.getTokenAuthHeaders(e)})}demoteGroupMember(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}/account/${r=encodeURIComponent(String(r))}/demote`;let s=new Jn;return this.httpClient.post(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}promoteGroupMember(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}/account/${r=encodeURIComponent(String(r))}/promote`;let s=new Jn;return this.httpClient.post(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}addGroupUsers(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}/add`;let s=new Jn;return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}deleteGroup(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}`;let o=new Jn;return this.httpClient.delete(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getGroup(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}`;let o=new Jn;return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}updateGroup(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}`;let s=new Jn;return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}exportGroup(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}/export`;let o=new Jn;return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getMembers(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}/member`;let o=new Jn;return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}listLeaderboards(e){let r=new Jn;return this.httpClient.get(this.config.host+"/v2/console/leaderboard",{params:r,headers:this.getTokenAuthHeaders(e)})}deleteLeaderboard(e,i){const r=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}`;let o=new Jn;return this.httpClient.delete(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getLeaderboard(e,i){const r=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}`;let o=new Jn;return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteLeaderboardRecord(e,i,r){const o=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}/owner/${r=encodeURIComponent(String(r))}`;let s=new Jn;return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}listLeaderboardRecords(e,i,r,o,s,a){const l=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}/records`;let c=new Jn;return r&&r.forEach(u=>c=c.append("owner_ids",String(u))),o&&(c=c.set("limit",String(o))),s&&(c=c.set("cursor",s)),a&&(c=c.set("expiry",a)),this.httpClient.get(this.config.host+l,{params:c,headers:this.getTokenAuthHeaders(e)})}listMatches(e,i,r,o,s,a,l,c,u){let d=new Jn;return i&&(d=d.set("limit",String(i))),(r||!1===r)&&(d=d.set("authoritative",String(r))),o&&(d=d.set("label",o)),s&&(d=d.set("min_size",String(s))),a&&(d=d.set("max_size",String(a))),l&&(d=d.set("match_id",l)),c&&(d=d.set("query",c)),u&&(d=d.set("node",u)),this.httpClient.get(this.config.host+"/v2/console/match",{params:d,headers:this.getTokenAuthHeaders(e)})}getMatchState(e,i){const r=`/v2/console/match/${i=encodeURIComponent(String(i))}/state`;let o=new Jn;return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteChannelMessages(e,i,r){let s=new Jn;return i&&(s=s.set("before",i)),r&&r.forEach(a=>s=s.append("ids",String(a))),this.httpClient.delete(this.config.host+"/v2/console/message",{params:s,headers:this.getTokenAuthHeaders(e)})}listPurchases(e,i,r,o){let a=new Jn;return i&&(a=a.set("user_id",i)),r&&(a=a.set("limit",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+"/v2/console/purchase",{params:a,headers:this.getTokenAuthHeaders(e)})}getRuntime(e){let r=new Jn;return this.httpClient.get(this.config.host+"/v2/console/runtime",{params:r,headers:this.getTokenAuthHeaders(e)})}getStatus(e){let r=new Jn;return this.httpClient.get(this.config.host+"/v2/console/status",{params:r,headers:this.getTokenAuthHeaders(e)})}deleteStorage(e){let r=new Jn;return this.httpClient.delete(this.config.host+"/v2/console/storage",{params:r,headers:this.getTokenAuthHeaders(e)})}listStorage(e,i,r,o,s){let l=new Jn;return i&&(l=l.set("user_id",i)),r&&(l=l.set("key",r)),o&&(l=l.set("collection",o)),s&&(l=l.set("cursor",s)),this.httpClient.get(this.config.host+"/v2/console/storage",{params:l,headers:this.getTokenAuthHeaders(e)})}listStorageCollections(e){let r=new Jn;return this.httpClient.get(this.config.host+"/v2/console/storage/collections",{params:r,headers:this.getTokenAuthHeaders(e)})}deleteStorageObject(e,i,r,o,s){const a=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}`;let l=new Jn;return s&&(l=l.set("version",s)),this.httpClient.delete(this.config.host+a,{params:l,headers:this.getTokenAuthHeaders(e)})}getStorage(e,i,r,o){const s=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}`;let a=new Jn;return this.httpClient.get(this.config.host+s,{params:a,headers:this.getTokenAuthHeaders(e)})}writeStorageObject(e,i,r,o,s){const a=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}`;let l=new Jn;return this.httpClient.put(this.config.host+a,s,{params:l,headers:this.getTokenAuthHeaders(e)})}deleteStorageObject2(e,i,r,o,s){const a=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}/${s=encodeURIComponent(String(s))}`;let l=new Jn;return this.httpClient.delete(this.config.host+a,{params:l,headers:this.getTokenAuthHeaders(e)})}listSubscriptions(e,i,r,o){let a=new Jn;return i&&(a=a.set("user_id",i)),r&&(a=a.set("limit",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+"/v2/console/subscription",{params:a,headers:this.getTokenAuthHeaders(e)})}deleteUser(e,i){let o=new Jn;return i&&(o=o.set("username",i)),this.httpClient.delete(this.config.host+"/v2/console/user",{params:o,headers:this.getTokenAuthHeaders(e)})}listUsers(e){let r=new Jn;return this.httpClient.get(this.config.host+"/v2/console/user",{params:r,headers:this.getTokenAuthHeaders(e)})}addUser(e,i){let o=new Jn;return this.httpClient.post(this.config.host+"/v2/console/user",i,{params:o,headers:this.getTokenAuthHeaders(e)})}getTokenAuthHeaders(e){return(new $u).set("Authorization","Bearer "+e)}getBasicAuthHeaders(e,i){return(new $u).set("Authorization","Basic "+btoa(e+":"+i))}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(_C),Et(w3,8))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();const dV=new hi("window"),KEe=[{provide:dV,useFactory:()=>window}],x3="currentSession";let ds=(()=>{class t{constructor(e,i,r,o){be(this,"window",void 0),be(this,"segment",void 0),be(this,"http",void 0),be(this,"consoleService",void 0),be(this,"currentSessionSubject",void 0),be(this,"currentSession",void 0),this.window=e,this.segment=i,this.http=r,this.consoleService=o;const s=JSON.parse(localStorage.getItem(x3));this.currentSessionSubject=new ra(s),this.currentSession=this.currentSessionSubject.asObservable()}get currentSessionValue(){return this.currentSessionSubject.getValue()}get username(){const e=this.currentSessionSubject.getValue().token;return JSON.parse(atob(e.split(".")[1])).usn}get sessionRole(){const e=this.currentSessionSubject.getValue().token;switch(JSON.parse(atob(e.split(".")[1])).rol){case 1:return Di.USER_ROLE_ADMIN;case 2:return Di.USER_ROLE_DEVELOPER;case 3:return Di.USER_ROLE_MAINTAINER;case 4:return Di.USER_ROLE_READONLY;default:return Di.USER_ROLE_UNKNOWN}}login(e,i){return this.consoleService.authenticate({username:e,password:i}).pipe(_s(r=>{localStorage.setItem(x3,JSON.stringify(r)),this.currentSessionSubject.next(r)}))}logout(){return this.currentSessionSubject.getValue()?this.consoleService.authenticateLogout("",{token:this.currentSessionSubject.getValue()?.token}).pipe(_s(()=>{localStorage.removeItem(x3),this.currentSessionSubject.next(null)})):Hd}segmentIdentify(e){const r=JSON.parse(atob(e.token.split(".")[1]));this.segment.identify(null,{username:r.usn,email:r.ema,cookie:r.cki})}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(dV),Et(mC),Et(_C),Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function JEe(t,n){if(1&t&&(A(0,"div",17),J(1),M()),2&t){const e=te();I(1),jn(" ",e.error," ")}}const QEe=function(t){return{"was-validated":t}},fV=function(t){return{"is-invalid":t}};let ZEe=(()=>{class t{constructor(e,i,r,o,s){be(this,"segment",void 0),be(this,"formBuilder",void 0),be(this,"route",void 0),be(this,"router",void 0),be(this,"authenticationService",void 0),be(this,"error",""),be(this,"loginForm",void 0),be(this,"submitted",void 0),be(this,"returnUrl",void 0),this.segment=e,this.formBuilder=i,this.route=r,this.router=o,this.authenticationService=s}ngOnInit(){this.loginForm=this.formBuilder.group({username:["",Wo.compose([Wo.required])],password:["",Wo.compose([Wo.required,Wo.minLength(8)])]}),this.returnUrl=this.route.snapshot.queryParams.next||"/"}onSubmit(){this.submitted=!0,this.error="",!this.loginForm.invalid&&this.authenticationService.login(this.f.username.value,this.f.password.value).subscribe(e=>{this.loginForm.reset(),this.submitted=!1,this.router.navigate([this.returnUrl])},e=>{this.error=e,this.submitted=!1})}get f(){return this.loginForm.controls}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(mC),Ae(Pl),Ae(co),Ae(Or),Ae(ds))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],decls:26,vars:14,consts:[[1,"bg-grad","d-flex","h-100"],[1,"align-self-center","mx-auto"],[1,"text-center","mb-4"],["src","/static/svg/logo.svg","alt","Nakama Logo","width","175"],["class","alert alert-warning","role","alert",4,"ngIf"],[1,"card"],[1,"card-body"],[1,"text-center"],[3,"formGroup","ngClass","ngSubmit"],[1,"form-group","form-row"],[1,"col-sm-12"],["for","username"],["type","text","id","username","formControlName","username","required","","autofocus","",1,"form-control",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","password"],["type","password","id","password","formControlName","password","required","",1,"form-control",3,"ngClass"],[1,"btn","btn-primary","btn-lg","btn-block",3,"disabled"],["role","alert",1,"alert","alert-warning"]],template:function(e,i){1&e&&(A(0,"div",0)(1,"div",1)(2,"h1",2),je(3,"img",3),M(),ye(4,JEe,2,1,"div",4),A(5,"div",5)(6,"div",6)(7,"h3",7),J(8,"Login"),M(),A(9,"form",8),He("ngSubmit",function(){return i.onSubmit()}),A(10,"div",9)(11,"div",10)(12,"label",11),J(13,"Username"),M(),je(14,"input",12),A(15,"div",13),J(16,"Please enter a username."),M()()(),A(17,"div",9)(18,"div",10)(19,"label",14),J(20,"Password"),M(),je(21,"input",15),A(22,"div",13),J(23,"Password must be at least 8 characters."),M()()(),A(24,"button",16),J(25,"Login"),M()()()()()()),2&e&&(I(4),N("ngIf",i.error),I(5),N("formGroup",i.loginForm)("ngClass",Lr(8,QEe,i.submitted)),I(5),N("ngClass",Lr(10,fV,i.f.username.dirty&&i.f.username.errors)),I(1),N("hidden",i.f.username.disabled||i.f.username.valid||i.f.username.pristine),I(6),N("ngClass",Lr(12,fV,i.f.password.dirty&&i.f.password.errors)),I(1),N("hidden",i.f.password.disabled||i.f.password.valid||i.f.password.pristine),I(2),N("disabled",!i.loginForm.valid||i.submitted))},dependencies:[Pd,Nn,bl,qa,vl,yl,Ff,Ea,Ya],styles:["div[_ngcontent-%COMP%] .mx-auto[_ngcontent-%COMP%]{width:420px}"]})),t})(),eMe=(()=>{class t{constructor(e,i){be(this,"authService",void 0),be(this,"router",void 0),this.authService=e,this.router=i}canActivate(e,i){return!this.authService.currentSessionValue||(this.router.navigate(["/"]),!1)}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(ds),Et(Or))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})(),tMe=(()=>{class t{constructor(e,i){be(this,"router",void 0),be(this,"authenticationService",void 0),this.router=e,this.authenticationService=i}canActivate(e,i){return!!this.authenticationService.currentSessionValue||(this.router.navigate(["/login"],{queryParams:{next:i.url}}),!1)}canActivateChild(e,i){return this.canActivate(e,i)}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Or),Et(ds))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();class nMe extends g{constructor(n,e){super()}schedule(n,e=0){return this}}class C3 extends nMe{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){if(this.closed)return this;this.state=n;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(n,e,i=0){return setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let r,i=!1;try{this.work(n)}catch(o){i=!0,r=!!o&&o||new Error(o)}if(i)return this.unsubscribe(),r}_unsubscribe(){const n=this.id,e=this.scheduler,i=e.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null}}let pV=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return t.now=()=>Date.now(),t})();class Vh extends pV{constructor(n,e=pV.now){super(n,()=>Vh.delegate&&Vh.delegate!==this?Vh.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(n,e=0,i){return Vh.delegate&&Vh.delegate!==this?Vh.delegate.schedule(n,e,i):super.schedule(n,e,i)}flush(n){const{actions:e}=this;if(this.active)return void e.push(n);let i;this.active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this.active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const Sy=new Vh(C3);class rMe{constructor(n,e,i,r){this.bufferTimeSpan=n,this.bufferCreationInterval=e,this.maxBufferSize=i,this.scheduler=r}call(n,e){return e.subscribe(new sMe(n,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}class oMe{constructor(){this.buffer=[]}}class sMe extends x{constructor(n,e,i,r,o){super(n),this.bufferTimeSpan=e,this.bufferCreationInterval=i,this.maxBufferSize=r,this.scheduler=o,this.contexts=[];const s=this.openContext();if(this.timespanOnly=null==i||i<0,this.timespanOnly)this.add(s.closeAction=o.schedule(gV,e,{subscriber:this,context:s,bufferTimeSpan:e}));else{const l={bufferTimeSpan:e,bufferCreationInterval:i,subscriber:this,scheduler:o};this.add(s.closeAction=o.schedule(mV,e,{subscriber:this,context:s})),this.add(o.schedule(aMe,i,l))}}_next(n){const e=this.contexts,i=e.length;let r;for(let o=0;o0;){const i=n.shift();e.next(i.buffer)}super._complete()}_unsubscribe(){this.contexts=null}onBufferFull(n){this.closeContext(n);const e=n.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){n=this.openContext();const i=this.bufferTimeSpan;this.add(n.closeAction=this.scheduler.schedule(gV,i,{subscriber:this,context:n,bufferTimeSpan:i}))}}openContext(){const n=new oMe;return this.contexts.push(n),n}closeContext(n){this.destination.next(n.buffer);const e=this.contexts;(e?e.indexOf(n):-1)>=0&&e.splice(e.indexOf(n),1)}}function gV(t){const n=t.subscriber,e=t.context;e&&n.closeContext(e),n.closed||(t.context=n.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function aMe(t){const{bufferCreationInterval:n,bufferTimeSpan:e,subscriber:i,scheduler:r}=t,o=i.openContext();i.closed||(i.add(o.closeAction=r.schedule(mV,e,{subscriber:i,context:o})),this.schedule(t,n))}function mV(t){const{subscriber:n,context:e}=t;n.closeContext(e)}class lMe{constructor(n,e){this.compare=n,this.keySelector=e}call(n,e){return e.subscribe(new cMe(n,this.compare,this.keySelector))}}class cMe extends x{constructor(n,e,i){super(n),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(n,e){return n===e}_next(n){let e;try{const{keySelector:r}=this;e=r?r(n):n}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(n))}}function Us(t,n,e,i){return ve(e)&&(i=e,e=void 0),i?Us(t,n,e).pipe(Pe(r=>R(r)?i(...r):i(r))):new P(r=>{vV(t,n,function o(s){r.next(arguments.length>1?Array.prototype.slice.call(arguments):s)},r,e)})}function vV(t,n,e,i,r){let o;if(function dMe(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const s=t;t.addEventListener(n,e,r),o=()=>s.removeEventListener(n,e,r)}else if(function hMe(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const s=t;t.on(n,e),o=()=>s.off(n,e)}else if(function uMe(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const s=t;t.addListener(n,e),o=()=>s.removeListener(n,e)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let s=0,a=t.length;s=0}function sv(t=0,n,e){let i=-1;return yV(n)?i=Number(n)<1?1:Number(n):ze(n)&&(e=n),ze(e)||(e=Sy),new P(r=>{const o=yV(t)?t:+t-e.now();return e.schedule(fMe,o,{index:0,period:i,subscriber:r})})}function fMe(t){const{index:n,period:e,subscriber:i}=t;if(i.next(n),!i.closed){if(-1===e)return i.complete();t.index=n+1,this.schedule(t,e)}}function bV(...t){if(1===t.length){if(!R(t[0]))return t[0];t=t[0]}return yt(t,void 0).lift(new pMe)}class pMe{call(n,e){return e.subscribe(new gMe(n))}}class gMe extends _M{constructor(n){super(n),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(n){this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{for(let i=0;ithis.index}hasCompleted(){return this.array.length===this.index}}class _Me extends de{constructor(n,e,i){super(n),this.parent=e,this.observable=i,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[Zt](){return this}next(){const n=this.buffer;return 0===n.length&&this.isComplete?{value:null,done:!0}:{value:n.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(n){this.buffer.push(n),this.parent.checkIterators()}subscribe(){return Le(this.observable,new vr(this))}}function Po(t){return n=>n.lift(new xMe(t))}class xMe{constructor(n){this.notifier=n}call(n,e){const i=new CMe(n),r=Le(this.notifier,new vr(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class CMe extends de{constructor(n){super(n),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function S3(...t){return n=>{let e;return"function"==typeof t[t.length-1]&&(e=t.pop()),n.lift(new SMe(t,e))}}class SMe{constructor(n,e){this.observables=n,this.project=e}call(n,e){return e.subscribe(new kMe(n,this.observables,this.project))}}class kMe extends _M{constructor(n,e,i){super(n),this.observables=e,this.project=i,this.toRespond=[];const r=e.length;this.values=new Array(r);for(let o=0;o0){const o=r.indexOf(i);-1!==o&&r.splice(o,1)}}notifyComplete(){}_next(n){if(0===this.toRespond.length){const e=[n,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(n){let e;try{e=this.project.apply(this,n)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}class Pu{constructor(n,e,i){this.kind=n,this.value=e,this.error=i,this.hasValue="N"===n}observe(n){switch(this.kind){case"N":return n.next&&n.next(this.value);case"E":return n.error&&n.error(this.error);case"C":return n.complete&&n.complete()}}do(n,e,i){switch(this.kind){case"N":return n&&n(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(n,e,i){return n&&"function"==typeof n.next?this.observe(n):this.do(n,e,i)}toObservable(){switch(this.kind){case"N":return oi(this.value);case"E":return qp(this.error);case"C":return Nx()}throw new Error("unexpected notification kind value")}static createNext(n){return typeof n<"u"?new Pu("N",n):Pu.undefinedValueNotification}static createError(n){return new Pu("E",void 0,n)}static createComplete(){return Pu.completeNotification}}function k3(t,n=Sy){const i=function DMe(t){return t instanceof Date&&!isNaN(+t)}(t)?+t-n.now():Math.abs(t);return r=>r.lift(new TMe(i,n))}Pu.completeNotification=new Pu("C"),Pu.undefinedValueNotification=new Pu("N",void 0);class TMe{constructor(n,e){this.delay=n,this.scheduler=e}call(n,e){return e.subscribe(new D3(n,this.delay,this.scheduler))}}class D3 extends x{constructor(n,e,i){super(n),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(n){const e=n.source,i=e.queue,r=n.scheduler,o=n.destination;for(;i.length>0&&i[0].time-r.now()<=0;)i.shift().notification.observe(o);if(i.length>0){const s=Math.max(0,i[0].time-r.now());this.schedule(n,s)}else this.unsubscribe(),e.active=!1}_schedule(n){this.active=!0,this.destination.add(n.schedule(D3.dispatch,this.delay,{source:this,destination:this.destination,scheduler:n}))}scheduleNotification(n){if(!0===this.errored)return;const e=this.scheduler,i=new AMe(e.now()+this.delay,n);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(n){this.scheduleNotification(Pu.createNext(n))}_error(n){this.errored=!0,this.queue=[],this.destination.error(n),this.unsubscribe()}_complete(){this.scheduleNotification(Pu.createComplete()),this.unsubscribe()}}class AMe{constructor(n,e){this.time=n,this.notification=e}}function jMe(t,n){if(1&t){const e=Bt();A(0,"button",1),He("click",function(){return st(e),at(te().close())}),A(1,"span",2),J(2,"\xd7"),M()()}}const av=["*"],b3e=["dialog"];function Lf(t){return null!=t}typeof Element<"u"&&!Element.prototype.closest&&(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(t){let n=this;if(!document.documentElement.contains(n))return null;do{if(n.matches(t))return n;n=n.parentElement||n.parentNode}while(null!==n&&1===n.nodeType);return null});const xV={animation:!0,transitionTimerDelayMs:5};let Ma=(()=>{class t{constructor(){this.animation=xV.animation}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const TIe=()=>{},{transitionTimerDelayMs:AIe}=xV,DC=new Map,Ia=(t,n,e)=>{let i=e.context||{};const r=DC.get(t);if(r)switch(e.runningTransition){case"continue":return Hd;case"stop":r.transition$.complete(),i=Object.assign(r.context,i),DC.delete(t)}!function kC(t){return(t||document.body).offsetHeight}(t);const o=n(t,i)||TIe;if(!e.animation||"none"===window.getComputedStyle(t).transitionProperty)return o(),oi(void 0);const s=new Me,a=s.pipe(function wMe(...t){return n=>Ox(n,oi(...t))}(!0));DC.set(t,{transition$:s,context:i});const l=function DIe(t){const{transitionDelay:n,transitionDuration:e}=window.getComputedStyle(t);return 1e3*(parseFloat(n)+parseFloat(e))}(t),c=Us(t,"transitionend").pipe(Po(a),bs(({target:h})=>h===t));return bV(sv(l+AIe).pipe(Po(a)),c).pipe(Po(a)).subscribe(()=>{DC.delete(t),o(),s.next(),s.complete()}),s.asObservable()};let AV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[ia]}),t})(),IIe=(()=>{class t{constructor(e){this.dismissible=!0,this.type="warning",this.animation=e.animation}}return t.\u0275fac=function(e){return new(e||t)(Et(Ma))},t.\u0275prov=Yt({factory:function(){return new t(Et(Ma))},token:t,providedIn:"root"}),t})();const FIe=({classList:t})=>{t.remove("show")};let Go=(()=>{class t{constructor(e,i,r){this._renderer=i,this._element=r,this.closed=new vt,this.dismissible=e.dismissible,this.type=e.type,this.animation=e.animation}close(){const e=Ia(this._element.nativeElement,FIe,{animation:this.animation,runningTransition:"continue"});return e.subscribe(()=>this.closed.emit()),e}ngOnChanges(e){const i=e.type;i&&!i.firstChange&&(this._renderer.removeClass(this._element.nativeElement,`alert-${i.previousValue}`),this._renderer.addClass(this._element.nativeElement,`alert-${i.currentValue}`))}ngOnInit(){this._renderer.addClass(this._element.nativeElement,`alert-${this.type}`)}}return t.\u0275fac=function(e){return new(e||t)(Ae(IIe),Ae(Hs),Ae(xi))},t.\u0275cmp=ln({type:t,selectors:[["ngb-alert"]],hostAttrs:["role","alert",1,"alert","show"],hostVars:4,hostBindings:function(e,i){2&e&&Kn("fade",i.animation)("alert-dismissible",i.dismissible)},inputs:{dismissible:"dismissible",type:"type",animation:"animation"},outputs:{closed:"closed"},exportAs:["ngbAlert"],features:[ui],ngContentSelectors:av,decls:2,vars:1,consts:function(){let n;return n=$localize`:@@ngb.alert.close␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`,[["type","button","class","close","aria-label",n,3,"click",4,"ngIf"],["type","button","aria-label",n,1,"close",3,"click"],["aria-hidden","true"]]},template:function(e,i){1&e&&(Tu(),Au(0),ye(1,jMe,3,0,"button",0)),2&e&&(I(1),N("ngIf",i.dismissible))},dependencies:[Nn],styles:["ngb-alert{display:block}"],encapsulation:2,changeDetection:0}),t})(),EV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[ia]}),t})(),TC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=bn({type:t,selectors:[["","ngbButtonLabel",""]],hostVars:8,hostBindings:function(e,i){2&e&&Kn("btn",!0)("active",i.active)("disabled",i.disabled)("focus",i.focused)}}),t})(),OIe=0,M3=(()=>{class t{constructor(){this._radios=new Set,this._value=null,this.name="ngb-radio-"+OIe++,this.onChange=e=>{},this.onTouched=()=>{}}get disabled(){return this._disabled}set disabled(e){this.setDisabledState(e)}onRadioChange(e){this.writeValue(e.value),this.onChange(e.value)}onRadioValueUpdate(){this._updateRadiosValue()}register(e){this._radios.add(e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._disabled=e,this._updateRadiosDisabled()}unregister(e){this._radios.delete(e)}writeValue(e){this._value=e,this._updateRadiosValue()}_updateRadiosValue(){this._radios.forEach(e=>e.updateValue(this._value))}_updateRadiosDisabled(){this._radios.forEach(e=>e.updateDisabled())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=bn({type:t,selectors:[["","ngbRadioGroup",""]],hostAttrs:["role","radiogroup"],inputs:{name:"name"},features:[lo([{provide:Aa,useExisting:yr(()=>t),multi:!0}])]}),t})(),MV=(()=>{class t{constructor(e,i,r,o,s){this._group=e,this._label=i,this._renderer=r,this._element=o,this._cd=s,this._value=null,this._group.register(this),this.updateDisabled()}set value(e){this._value=e;const i=e?e.toString():"";this._renderer.setProperty(this._element.nativeElement,"value",i),this._group.onRadioValueUpdate()}set disabled(e){this._disabled=!1!==e,this.updateDisabled()}set focused(e){this._label&&(this._label.focused=e),e||this._group.onTouched()}get checked(){return this._checked}get disabled(){return this._group.disabled||this._disabled}get value(){return this._value}get nameAttr(){return this.name||this._group.name}ngOnDestroy(){this._group.unregister(this)}onChange(){this._group.onRadioChange(this)}updateValue(e){this.value!==e&&this._cd.markForCheck(),this._checked=this.value===e,this._label.active=this._checked}updateDisabled(){this._label.disabled=this.disabled}}return t.\u0275fac=function(e){return new(e||t)(Ae(M3),Ae(TC),Ae(Hs),Ae(xi),Ae(hs))},t.\u0275dir=bn({type:t,selectors:[["","ngbButton","","type","radio"]],hostVars:3,hostBindings:function(e,i){1&e&&He("change",function(){return i.onChange()})("focus",function(){return i.focused=!0})("blur",function(){return i.focused=!1}),2&e&&wc("checked",i.checked)("disabled",i.disabled)("name",i.nameAttr)},inputs:{value:"value",disabled:"disabled",name:"name"}}),t})(),IV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({}),t})(),NV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[ia]}),t})(),RV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({}),t})();var Nr=(()=>(function(t){t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown"}(Nr||(Nr={})),Nr))();const IC=(t,n)=>!!n&&n.some(e=>e.contains(t)),BV=(t,n)=>!n||null!=function SIe(t,n){return!n||typeof t.closest>"u"?null:t.closest(n)}(t,n),sFe=typeof navigator<"u"&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent)),aFe=t=>sFe?()=>setTimeout(()=>t(),100):t;function Dy(t,n,e,i,r,o,s,a){e&&t.runOutsideAngular(aFe(()=>{const c=Us(n,"keydown").pipe(Po(r),bs(d=>d.which===Nr.Escape),_s(d=>d.preventDefault())),u=Us(n,"mousedown").pipe(Pe(d=>{const f=d.target;return 2!==d.button&&!IC(f,s)&&("inside"===e?IC(f,o)&&BV(f,a):"outside"===e?!IC(f,o):BV(f,a)||!IC(f,o))}),Po(r)),h=Us(n,"mouseup").pipe(S3(u),bs(([d,f])=>f),k3(0),Po(r));bV([c.pipe(Pe(d=>0)),h.pipe(Pe(d=>1))]).subscribe(d=>t.run(()=>i(d)))}))}const HV=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function VV(t){const n=Array.from(t.querySelectorAll(HV)).filter(e=>-1!==e.tabIndex);return[n[0],n[n.length-1]]}const cFe=/\s+/,UV=new class lFe{getAllStyles(n){return window.getComputedStyle(n)}getStyle(n,e){return this.getAllStyles(n)[e]}isStaticPositioned(n){return"static"===(this.getStyle(n,"position")||"static")}offsetParent(n){let e=n.offsetParent||document.documentElement;for(;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement}position(n,e=!0){let i,r={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(n,"position"))i=n.getBoundingClientRect(),i={top:i.top,bottom:i.bottom,left:i.left,right:i.right,height:i.height,width:i.width};else{const o=this.offsetParent(n);i=this.offset(n,!1),o!==document.documentElement&&(r=this.offset(o,!1)),r.top+=o.clientTop,r.left+=o.clientLeft}return i.top-=r.top,i.bottom-=r.top,i.left-=r.left,i.right-=r.left,e&&(i.top=Math.round(i.top),i.bottom=Math.round(i.bottom),i.left=Math.round(i.left),i.right=Math.round(i.right)),i}offset(n,e=!0){const i=n.getBoundingClientRect(),r_top=window.pageYOffset-document.documentElement.clientTop,r_left=window.pageXOffset-document.documentElement.clientLeft;let o={height:i.height||n.offsetHeight,width:i.width||n.offsetWidth,top:i.top+r_top,bottom:i.bottom+r_top,left:i.left+r_left,right:i.right+r_left};return e&&(o.height=Math.round(o.height),o.width=Math.round(o.width),o.top=Math.round(o.top),o.bottom=Math.round(o.bottom),o.left=Math.round(o.left),o.right=Math.round(o.right)),o}positionElements(n,e,i,r){const[o="top",s="center"]=i.split("-"),a=r?this.offset(n,!1):this.position(n,!1),l=this.getAllStyles(e),c=parseFloat(l.marginTop),u=parseFloat(l.marginBottom),h=parseFloat(l.marginLeft),d=parseFloat(l.marginRight);let f=0,p=0;switch(o){case"top":f=a.top-(e.offsetHeight+c+u);break;case"bottom":f=a.top+a.height;break;case"left":p=a.left-(e.offsetWidth+h+d);break;case"right":p=a.left+a.width}switch(s){case"top":f=a.top;break;case"bottom":f=a.top+a.height-e.offsetHeight;break;case"left":p=a.left;break;case"right":p=a.left+a.width-e.offsetWidth;break;case"center":"top"===o||"bottom"===o?p=a.left+a.width/2-e.offsetWidth/2:f=a.top+a.height/2-e.offsetHeight/2}e.style.transform=`translate(${Math.round(p)}px, ${Math.round(f)}px)`;const m=e.getBoundingClientRect(),w=document.documentElement,C=window.innerHeight||w.clientHeight,k=window.innerWidth||w.clientWidth;return m.left>=0&&m.top>=0&&m.right<=k&&m.bottom<=C}};function Ty(t,n,e,i,r){let o=Array.isArray(e)?e:e.split(cFe);const s=["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"],a=n.classList,l=f=>{const[p,m]=f.split("-"),w=[];return r&&(w.push(`${r}-${p}`),m&&w.push(`${r}-${p}-${m}`),w.forEach(C=>{a.add(C)})),w};r&&s.forEach(f=>{a.remove(`${r}-${f}`)});let c=o.findIndex(f=>"auto"===f);c>=0&&s.forEach(function(f){null==o.find(p=>-1!==p.search("^"+f))&&o.splice(c++,1,f)});const u=n.style;u.position="absolute",u.top="0",u.left="0",u["will-change"]="transform";let h=null,d=!1;for(h of o){let f=l(h);if(UV.positionElements(t,n,h,i)){d=!0;break}r&&f.forEach(p=>{a.remove(p)})}return d||(h=o[0],l(h),UV.positionElements(t,n,h,i)),h}new Date(1882,10,12),new Date(2174,10,25);let QV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[ia,QH]}),t})(),wFe=(()=>{class t{constructor(){this.autoClose=!0,this.placement=["bottom-left","bottom-right","top-left","top-right"]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({factory:function(){return new t},token:t,providedIn:"root"}),t})(),ZV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=bn({type:t,selectors:[["",8,"navbar"]]}),t})(),Nf=(()=>{class t{constructor(e){this.elementRef=e,this._disabled=!1}set disabled(e){this._disabled=""===e||!0===e}get disabled(){return this._disabled}}return t.\u0275fac=function(e){return new(e||t)(Ae(xi))},t.\u0275dir=bn({type:t,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:2,hostBindings:function(e,i){2&e&&Kn("disabled",i.disabled)},inputs:{disabled:"disabled"}}),t})(),Rf=(()=>{class t{constructor(e,i){this.dropdown=e,this.placement="bottom",this.isOpen=!1,this.nativeElement=i.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(Ae(yr(()=>Bu)),Ae(xi))},t.\u0275dir=bn({type:t,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(e,i,r){if(1&e&&Ci(r,Nf,4),2&e){let o;En(o=Mn())&&(i.menuItems=o)}},hostVars:5,hostBindings:function(e,i){1&e&&He("keydown.ArrowUp",function(o){return i.dropdown.onKeyDown(o)})("keydown.ArrowDown",function(o){return i.dropdown.onKeyDown(o)})("keydown.Home",function(o){return i.dropdown.onKeyDown(o)})("keydown.End",function(o){return i.dropdown.onKeyDown(o)})("keydown.Enter",function(o){return i.dropdown.onKeyDown(o)})("keydown.Space",function(o){return i.dropdown.onKeyDown(o)})("keydown.Tab",function(o){return i.dropdown.onKeyDown(o)})("keydown.Shift.Tab",function(o){return i.dropdown.onKeyDown(o)}),2&e&&(Ft("x-placement",i.placement),Kn("dropdown-menu",!0)("show",i.dropdown.isOpen()))}}),t})(),NC=(()=>{class t{constructor(e,i){this.dropdown=e,this.nativeElement=i.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(Ae(yr(()=>Bu)),Ae(xi))},t.\u0275dir=bn({type:t,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,i){2&e&&Ft("aria-expanded",i.dropdown.isOpen())}}),t})(),rg=(()=>{class t extends NC{constructor(e,i){super(e,i)}}return t.\u0275fac=function(e){return new(e||t)(Ae(yr(()=>Bu)),Ae(xi))},t.\u0275dir=bn({type:t,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,i){1&e&&He("click",function(){return i.dropdown.toggle()})("keydown.ArrowUp",function(o){return i.dropdown.onKeyDown(o)})("keydown.ArrowDown",function(o){return i.dropdown.onKeyDown(o)})("keydown.Home",function(o){return i.dropdown.onKeyDown(o)})("keydown.End",function(o){return i.dropdown.onKeyDown(o)})("keydown.Tab",function(o){return i.dropdown.onKeyDown(o)})("keydown.Shift.Tab",function(o){return i.dropdown.onKeyDown(o)}),2&e&&Ft("aria-expanded",i.dropdown.isOpen())},features:[lo([{provide:NC,useExisting:yr(()=>t)}]),Bi]}),t})(),Bu=(()=>{class t{constructor(e,i,r,o,s,a,l){this._changeDetector=e,this._document=r,this._ngZone=o,this._elementRef=s,this._renderer=a,this._closed$=new Me,this._bodyContainer=null,this._open=!1,this.openChange=new vt,this.placement=i.placement,this.container=i.container,this.autoClose=i.autoClose,this.display=l?"static":"dynamic",this._zoneSubscription=o.onStable.subscribe(()=>{this._positionMenu()})}ngAfterContentInit(){this._ngZone.onStable.pipe(Rl(1)).subscribe(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()})}ngOnChanges(e){e.container&&this._open&&this._applyContainer(this.container),e.placement&&!e.placement.isFirstChange&&this._applyPlacementClasses()}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&this._anchor.nativeElement.focus())}_setCloseHandlers(){Dy(this._ngZone,this._document,this.autoClose,e=>{this.close(),0===e&&this._anchor.nativeElement.focus()},this._closed$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._closed$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this._resetContainer(),this._closed$.next(),this._zoneSubscription.unsubscribe()}onKeyDown(e){const i=e.which,r=this._getMenuElements();let o=-1,s=null;const a=this._isEventFromToggle(e);if(!a&&r.length&&r.forEach((l,c)=>{l.contains(e.target)&&(s=l),l===this._document.activeElement&&(o=c)}),i!==Nr.Space&&i!==Nr.Enter){if(i!==Nr.Tab){if(a||s){if(this.open(),r.length){switch(i){case Nr.ArrowDown:o=Math.min(o+1,r.length-1);break;case Nr.ArrowUp:if(this._isDropup()&&-1===o){o=r.length-1;break}o=Math.max(o-1,0);break;case Nr.Home:o=0;break;case Nr.End:o=r.length-1}r[o].focus()}e.preventDefault()}}else if(e.target&&this.isOpen()&&this.autoClose){if(this._anchor.nativeElement===e.target)return void("body"!==this.container||e.shiftKey?e.shiftKey&&this.close():(this._renderer.setAttribute(this._menu.nativeElement,"tabindex","0"),this._menu.nativeElement.focus(),this._renderer.removeAttribute(this._menu.nativeElement,"tabindex")));if("body"===this.container){const l=this._menu.nativeElement.querySelectorAll(HV);e.shiftKey&&e.target===l[0]?(this._anchor.nativeElement.focus(),e.preventDefault()):!e.shiftKey&&e.target===l[l.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else Us(e.target,"focusout").pipe(Rl(1)).subscribe(({relatedTarget:l})=>{this._elementRef.nativeElement.contains(l)||this.close()})}}else s&&(!0===this.autoClose||"inside"===this.autoClose)&&Us(s,"click").pipe(Rl(1)).subscribe(()=>this.close())}_isDropup(){return this._elementRef.nativeElement.classList.contains("dropup")}_isEventFromToggle(e){return this._anchor.nativeElement.contains(e.target)}_getMenuElements(){const e=this._menu;return null==e?[]:e.menuItems.filter(i=>!i.disabled).map(i=>i.elementRef.nativeElement)}_positionMenu(){const e=this._menu;this.isOpen()&&e&&this._applyPlacementClasses("dynamic"===this.display?Ty(this._anchor.nativeElement,this._bodyContainer||this._menu.nativeElement,this.placement,"body"===this.container):this._getFirstPlacement(this.placement))}_getFirstPlacement(e){return Array.isArray(e)?e[0]:e.split(" ")[0]}_resetContainer(){const e=this._renderer;if(this._menu){const r=this._menu.nativeElement;e.appendChild(this._elementRef.nativeElement,r),e.removeStyle(r,"position"),e.removeStyle(r,"transform")}this._bodyContainer&&(e.removeChild(this._document.body,this._bodyContainer),this._bodyContainer=null)}_applyContainer(e=null){if(this._resetContainer(),"body"===e){const i=this._renderer,r=this._menu.nativeElement,o=this._bodyContainer=this._bodyContainer||i.createElement("div");i.setStyle(o,"position","absolute"),i.setStyle(r,"position","static"),i.setStyle(o,"z-index","1050"),i.appendChild(o,r),i.appendChild(this._document.body,o)}}_applyPlacementClasses(e){const i=this._menu;if(i){e||(e=this._getFirstPlacement(this.placement));const r=this._renderer,o=this._elementRef.nativeElement;r.removeClass(o,"dropup"),r.removeClass(o,"dropdown"),i.placement="static"===this.display?null:e;const s=-1!==e.search("^top")?"dropup":"dropdown";r.addClass(o,s);const a=this._bodyContainer;a&&(r.removeClass(a,"dropup"),r.removeClass(a,"dropdown"),r.addClass(a,s))}}}return t.\u0275fac=function(e){return new(e||t)(Ae(hs),Ae(wFe),Ae(no),Ae(br),Ae(xi),Ae(Hs),Ae(ZV,8))},t.\u0275dir=bn({type:t,selectors:[["","ngbDropdown",""]],contentQueries:function(e,i,r){if(1&e&&(Ci(r,Rf,5),Ci(r,NC,5)),2&e){let o;En(o=Mn())&&(i._menu=o.first),En(o=Mn())&&(i._anchor=o.first)}},hostVars:2,hostBindings:function(e,i){2&e&&Kn("show",i.isOpen())},inputs:{_open:["open","_open"],placement:"placement",container:"container",autoClose:"autoClose",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],features:[ui]}),t})(),ez=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({}),t})(),tz=(()=>{class t{constructor(e){this.backdrop=!0,this.keyboard=!0,this.animation=e.animation}}return t.\u0275fac=function(e){return new(e||t)(Et(Ma))},t.\u0275prov=Yt({factory:function(){return new t(Et(Ma))},token:t,providedIn:"root"}),t})();class og{constructor(n,e,i){this.nodes=n,this.viewRef=e,this.componentRef=i}}class j3{constructor(n,e,i,r,o,s,a){this._type=n,this._injector=e,this._viewContainerRef=i,this._renderer=r,this._ngZone=o,this._componentFactoryResolver=s,this._applicationRef=a,this._windowRef=null,this._contentRef=null}open(n,e,i=!1){this._windowRef||(this._contentRef=this._getContentRef(n,e),this._windowRef=this._viewContainerRef.createComponent(this._componentFactoryResolver.resolveComponentFactory(this._type),this._viewContainerRef.length,this._injector,this._contentRef.nodes));const{nativeElement:r}=this._windowRef.location,s=this._ngZone.onStable.asObservable().pipe(Rl(1)).pipe(et(()=>this._ngZone.run(()=>Ia(r,({classList:a})=>a.add("show"),{animation:i,runningTransition:"continue"}))));return{windowRef:this._windowRef,transition$:s}}close(n=!1){return this._windowRef?Ia(this._windowRef.location.nativeElement,({classList:e})=>e.remove("show"),{animation:n,runningTransition:"stop"}).pipe(_s(()=>{var e;this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),null!==(e=this._contentRef)&&void 0!==e&&e.viewRef&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):oi(void 0)}_getContentRef(n,e){if(n){if(n instanceof Ki){const i=n.createEmbeddedView(e);return this._applicationRef.attachView(i),new og([i.rootNodes],i)}return new og([[this._renderer.createText(`${n}`)]])}return new og([])}}const xFe=()=>{};let nz=(()=>{class t{constructor(e){this._document=e}compensate(){const e=this._getWidth();return this._isPresent(e)?this._adjustBody(e):xFe}_adjustBody(e){const i=this._document.body,r=i.style.paddingRight,o=parseFloat(window.getComputedStyle(i)["padding-right"]);return i.style["padding-right"]=`${o+e}px`,()=>i.style["padding-right"]=r}_isPresent(e){const i=this._document.body.getBoundingClientRect();return window.innerWidth-(i.left+i.right)>=e-.1*e}_getWidth(){const e=this._document.createElement("div");e.className="modal-scrollbar-measure";const i=this._document.body;i.appendChild(e);const r=e.getBoundingClientRect().width-e.clientWidth;return i.removeChild(e),r}}return t.\u0275fac=function(e){return new(e||t)(Et(no))},t.\u0275prov=Yt({factory:function(){return new t(Et(no))},token:t,providedIn:"root"}),t})(),CFe=(()=>{class t{constructor(e,i){this._el=e,this._zone=i}ngOnInit(){this._zone.onStable.asObservable().pipe(Rl(1)).subscribe(()=>{Ia(this._el.nativeElement,({classList:e})=>e.add("show"),{animation:this.animation,runningTransition:"continue"})})}hide(){return Ia(this._el.nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return t.\u0275fac=function(e){return new(e||t)(Ae(xi),Ae(br))},t.\u0275cmp=ln({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:6,hostBindings:function(e,i){2&e&&(Eu("modal-backdrop"+(i.backdropClass?" "+i.backdropClass:"")),Kn("show",!i.animation)("fade",i.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})();class iz{close(n){}dismiss(n){}}class SFe{constructor(n,e,i,r){this._windowCmptRef=n,this._contentRef=e,this._backdropCmptRef=i,this._beforeDismiss=r,this._closed=new Me,this._dismissed=new Me,this._hidden=new Me,n.instance.dismissEvent.subscribe(o=>{this.dismiss(o)}),this.result=new Promise((o,s)=>{this._resolve=o,this._reject=s}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(Po(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(Po(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(n){this._windowCmptRef&&(this._closed.next(n),this._resolve(n),this._removeModalElements())}_dismiss(n){this._dismissed.next(n),this._reject(n),this._removeModalElements()}dismiss(n){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();e&&e.then?e.then(i=>{!1!==i&&this._dismiss(n)},()=>{}):!1!==e&&this._dismiss(n)}else this._dismiss(n)}_removeModalElements(){const n=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():oi(void 0);n.subscribe(()=>{const{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),xC(n,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var My=(()=>(function(t){t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC"}(My||(My={})),My))();let kFe=(()=>{class t{constructor(e,i,r){this._document=e,this._elRef=i,this._zone=r,this._closed$=new Me,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new vt,this.shown=new Me,this.hidden=new Me}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement}ngAfterViewInit(){this._show()}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:e}=this._elRef,i={animation:this.animation,runningTransition:"stop"},s=xC(Ia(e,()=>e.classList.remove("show"),i),Ia(this._dialogEl.nativeElement,()=>{},i));return s.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),s}_show(){const{nativeElement:e}=this._elRef,i={animation:this.animation,runningTransition:"continue"};xC(Ia(e,()=>e.classList.add("show"),i),Ia(this._dialogEl.nativeElement,()=>{},i)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:e}=this._elRef;this._zone.runOutsideAngular(()=>{Us(e,"keydown").pipe(Po(this._closed$),bs(r=>r.which===Nr.Escape)).subscribe(r=>{this.keyboard?requestAnimationFrame(()=>{r.defaultPrevented||this._zone.run(()=>this.dismiss(My.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let i=!1;Us(this._dialogEl.nativeElement,"mousedown").pipe(Po(this._closed$),_s(()=>i=!1),ec(()=>Us(e,"mouseup").pipe(Po(this._closed$),Rl(1))),bs(({target:r})=>e===r)).subscribe(()=>{i=!0}),Us(e,"click").pipe(Po(this._closed$)).subscribe(({target:r})=>{e===r&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!i&&this._zone.run(()=>this.dismiss(My.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:e}=this._elRef;if(!e.contains(document.activeElement)){const i=e.querySelector("[ngbAutofocus]"),r=VV(e)[0];(i||r||e).focus()}}_restoreFocus(){const e=this._document.body,i=this._elWithFocus;let r;r=i&&i.focus&&e.contains(i)?i:e,this._zone.runOutsideAngular(()=>{setTimeout(()=>r.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&Ia(this._elRef.nativeElement,({classList:e})=>(e.add("modal-static"),()=>e.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return t.\u0275fac=function(e){return new(e||t)(Ae(no),Ae(xi),Ae(br))},t.\u0275cmp=ln({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(e,i){if(1&e&&Do(b3e,7),2&e){let r;En(r=Mn())&&(i._dialogEl=r.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(e,i){2&e&&(Ft("aria-modal",!0)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy),Eu("modal d-block"+(i.windowClass?" "+i.windowClass:"")),Kn("fade",i.animation))},inputs:{backdrop:"backdrop",keyboard:"keyboard",animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",centered:"centered",scrollable:"scrollable",size:"size",windowClass:"windowClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:av,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(e,i){1&e&&(Tu(),A(0,"div",0,1)(2,"div",2),Au(3),M()()),2&e&&Eu("modal-dialog"+(i.size?" modal-"+i.size:"")+(i.centered?" modal-dialog-centered":"")+(i.scrollable?" modal-dialog-scrollable":""))},styles:["ngb-modal-window .component-host-scrollable{-ms-flex-direction:column;display:-ms-flexbox;display:flex;flex-direction:column;overflow:hidden}"],encapsulation:2}),t})(),rz=(()=>{class t{constructor(e,i,r,o,s,a){this._applicationRef=e,this._injector=i,this._document=r,this._scrollBar=o,this._rendererFactory=s,this._ngZone=a,this._activeWindowCmptHasChanged=new Me,this._ariaHiddenValues=new Map,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","keyboard","scrollable","size","windowClass"],this._windowCmpts=[],this._activeInstances=new vt,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const l=this._windowCmpts[this._windowCmpts.length-1];((t,n,e,i=!1)=>{t.runOutsideAngular(()=>{const r=Us(n,"focusin").pipe(Po(e),Pe(o=>o.target));Us(n,"keydown").pipe(Po(e),bs(o=>o.which===Nr.Tab),S3(r)).subscribe(([o,s])=>{const[a,l]=VV(n);(s===a||s===n)&&o.shiftKey&&(l.focus(),o.preventDefault()),s===l&&!o.shiftKey&&(a.focus(),o.preventDefault())}),i&&Us(n,"click").pipe(Po(e),S3(r),Pe(o=>o[1])).subscribe(o=>o.focus())})})(this._ngZone,l.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(l.location.nativeElement)}})}open(e,i,r,o){const s=o.container instanceof HTMLElement?o.container:Lf(o.container)?this._document.querySelector(o.container):this._document.body,a=this._rendererFactory.createRenderer(null,null),l=this._scrollBar.compensate(),c=()=>{this._modalRefs.length||(a.removeClass(this._document.body,"modal-open"),this._revertAriaHidden())};if(!s)throw new Error(`The specified modal container "${o.container||"body"}" was not found in the DOM.`);const u=new iz,h=this._getContentRef(e,o.injector||i,r,u,o);let d=!1!==o.backdrop?this._attachBackdrop(e,s):void 0,f=this._attachWindowComponent(e,s,h),p=new SFe(f,h,d,o.beforeDismiss);return this._registerModalRef(p),this._registerWindowCmpt(f),p.result.then(l,l),p.result.then(c,c),u.close=m=>{p.close(m)},u.dismiss=m=>{p.dismiss(m)},this._applyWindowOptions(f.instance,o),1===this._modalRefs.length&&a.addClass(this._document.body,"modal-open"),d&&d.instance&&this._applyBackdropOptions(d.instance,o),p}get activeInstances(){return this._activeInstances}dismissAll(e){this._modalRefs.forEach(i=>i.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e,i){let o=e.resolveComponentFactory(CFe).create(this._injector);return this._applicationRef.attachView(o.hostView),i.appendChild(o.location.nativeElement),o}_attachWindowComponent(e,i,r){let s=e.resolveComponentFactory(kFe).create(this._injector,r.nodes);return this._applicationRef.attachView(s.hostView),i.appendChild(s.location.nativeElement),s}_applyWindowOptions(e,i){this._windowAttributes.forEach(r=>{Lf(i[r])&&(e[r]=i[r])})}_applyBackdropOptions(e,i){this._backdropAttributes.forEach(r=>{Lf(i[r])&&(e[r]=i[r])})}_getContentRef(e,i,r,o,s){return r?r instanceof Ki?this._createFromTemplateRef(r,o):function SC(t){return"string"==typeof t}(r)?this._createFromString(r):this._createFromComponent(e,i,r,o,s):new og([])}_createFromTemplateRef(e,i){const o=e.createEmbeddedView({$implicit:i,close(s){i.close(s)},dismiss(s){i.dismiss(s)}});return this._applicationRef.attachView(o),new og([o.rootNodes],o)}_createFromString(e){const i=this._document.createTextNode(`${e}`);return new og([[i]])}_createFromComponent(e,i,r,o,s){const a=e.resolveComponentFactory(r),l=ea.create({providers:[{provide:iz,useValue:o}],parent:i}),c=a.create(l),u=c.location.nativeElement;return s.scrollable&&u.classList.add("component-host-scrollable"),this._applicationRef.attachView(c.hostView),new og([[u]],c.hostView,c)}_setAriaHidden(e){const i=e.parentElement;i&&e!==this._document.body&&(Array.from(i.children).forEach(r=>{r!==e&&"SCRIPT"!==r.nodeName&&(this._ariaHiddenValues.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((e,i)=>{e?i.setAttribute("aria-hidden",e):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(e){const i=()=>{const r=this._modalRefs.indexOf(e);r>-1&&(this._modalRefs.splice(r,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(e),this._activeInstances.emit(this._modalRefs),e.result.then(i,i)}_registerWindowCmpt(e){this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(()=>{const i=this._windowCmpts.indexOf(e);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}}return t.\u0275fac=function(e){return new(e||t)(Et(Lu),Et(ea),Et(no),Et(nz),Et($p),Et(br))},t.\u0275prov=Yt({factory:function(){return new t(Et(Lu),Et(Sw),Et(no),Et(nz),Et($p),Et(br))},token:t,providedIn:"root"}),t})(),B3=(()=>{class t{constructor(e,i,r,o){this._moduleCFR=e,this._injector=i,this._modalStack=r,this._config=o}open(e,i={}){const r=Object.assign({},this._config,i);return this._modalStack.open(this._moduleCFR,this._injector,e,r)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return t.\u0275fac=function(e){return new(e||t)(Et(Gc),Et(ea),Et(rz),Et(tz))},t.\u0275prov=Yt({factory:function(){return new t(Et(Gc),Et(Sw),Et(rz),Et(tz))},token:t,providedIn:"root"}),t})(),oz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({providers:[B3]}),t})(),DFe=(()=>{class t{constructor(e){this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist",this.keyboard=!1,this.animation=e.animation}}return t.\u0275fac=function(e){return new(e||t)(Et(Ma))},t.\u0275prov=Yt({factory:function(){return new t(Et(Ma))},token:t,providedIn:"root"}),t})();const sz=t=>Lf(t)&&""!==t;let TFe=0,az=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(Ae(Ki))},t.\u0275dir=bn({type:t,selectors:[["ng-template","ngbNavContent",""]]}),t})(),sg=(()=>{class t{constructor(e,i){this.elementRef=i,this.disabled=!1,this.shown=new vt,this.hidden=new vt,this._nav=e}ngAfterContentChecked(){this.contentTpl=this.contentTpls.first}ngOnInit(){Lf(this.domId)||(this.domId="ngb-nav-"+TFe++)}get active(){return this._nav.activeId===this.id}get id(){return sz(this._id)?this._id:this.domId}get panelDomId(){return`${this.domId}-panel`}isPanelInDom(){return(Lf(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}}return t.\u0275fac=function(e){return new(e||t)(Ae(yr(()=>ag)),Ae(xi))},t.\u0275dir=bn({type:t,selectors:[["","ngbNavItem",""]],contentQueries:function(e,i,r){if(1&e&&Ci(r,az,4),2&e){let o;En(o=Mn())&&(i.contentTpls=o)}},hostVars:2,hostBindings:function(e,i){2&e&&Kn("nav-item",!0)},inputs:{disabled:"disabled",domId:"domId",destroyOnHide:"destroyOnHide",_id:["ngbNavItem","_id"]},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbNavItem"]}),t})(),ag=(()=>{class t{constructor(e,i,r,o){this.role=e,this._cd=r,this._document=o,this.activeIdChange=new vt,this.shown=new vt,this.hidden=new vt,this.destroy$=new Me,this.navItemChange$=new Me,this.navChange=new vt,this.animation=i.animation,this.destroyOnHide=i.destroyOnHide,this.orientation=i.orientation,this.roles=i.roles,this.keyboard=i.keyboard}click(e){e.disabled||this._updateActiveId(e.id)}onKeyDown(e){if("tablist"!==this.roles||!this.keyboard)return;const i=e.which,r=this.links.filter(a=>!a.navItem.disabled),{length:o}=r;let s=-1;if(r.forEach((a,l)=>{a.elRef.nativeElement===this._document.activeElement&&(s=l)}),o){switch(i){case Nr.ArrowLeft:if("vertical"===this.orientation)return;s=(s-1+o)%o;break;case Nr.ArrowRight:if("vertical"===this.orientation)return;s=(s+1)%o;break;case Nr.ArrowDown:if("horizontal"===this.orientation)return;s=(s+1)%o;break;case Nr.ArrowUp:if("horizontal"===this.orientation)return;s=(s-1+o)%o;break;case Nr.Home:s=0;break;case Nr.End:s=o-1}"changeWithArrows"===this.keyboard&&this.select(r[s].navItem.id),r[s].elRef.nativeElement.focus(),e.preventDefault()}}select(e){this._updateActiveId(e,!1)}ngAfterContentInit(){if(!Lf(this.activeId)){const e=this.items.first?this.items.first.id:null;sz(e)&&(this._updateActiveId(e,!1),this._cd.detectChanges())}this.items.changes.pipe(Po(this.destroy$)).subscribe(()=>this._notifyItemChanged(this.activeId))}ngOnChanges({activeId:e}){e&&!e.firstChange&&this._notifyItemChanged(e.currentValue)}ngOnDestroy(){this.destroy$.next()}_updateActiveId(e,i=!0){if(this.activeId!==e){let r=!1;i&&this.navChange.emit({activeId:this.activeId,nextId:e,preventDefault:()=>{r=!0}}),r||(this.activeId=e,this.activeIdChange.emit(e),this._notifyItemChanged(e))}}_notifyItemChanged(e){this.navItemChange$.next(this._getItemById(e))}_getItemById(e){return this.items&&this.items.find(i=>i.id===e)||null}}return t.\u0275fac=function(e){return new(e||t)(Ed("role"),Ae(DFe),Ae(hs),Ae(no))},t.\u0275dir=bn({type:t,selectors:[["","ngbNav",""]],contentQueries:function(e,i,r){if(1&e&&(Ci(r,sg,4),Ci(r,dv,5)),2&e){let o;En(o=Mn())&&(i.items=o),En(o=Mn())&&(i.links=o)}},hostVars:6,hostBindings:function(e,i){1&e&&He("keydown.arrowLeft",function(o){return i.onKeyDown(o)})("keydown.arrowRight",function(o){return i.onKeyDown(o)})("keydown.arrowDown",function(o){return i.onKeyDown(o)})("keydown.arrowUp",function(o){return i.onKeyDown(o)})("keydown.Home",function(o){return i.onKeyDown(o)})("keydown.End",function(o){return i.onKeyDown(o)}),2&e&&(Ft("aria-orientation","vertical"===i.orientation&&"tablist"===i.roles?"vertical":void 0)("role",i.role?i.role:i.roles?"tablist":void 0),Kn("nav",!0)("flex-column","vertical"===i.orientation))},inputs:{animation:"animation",destroyOnHide:"destroyOnHide",orientation:"orientation",roles:"roles",keyboard:"keyboard",activeId:"activeId"},outputs:{activeIdChange:"activeIdChange",shown:"shown",hidden:"hidden",navChange:"navChange"},exportAs:["ngbNav"],features:[ui]}),t})(),dv=(()=>{class t{constructor(e,i,r,o){this.role=e,this.navItem=i,this.nav=r,this.elRef=o}hasNavItemClass(){return this.navItem.elementRef.nativeElement.nodeType===Node.COMMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(Ed("role"),Ae(sg),Ae(ag),Ae(xi))},t.\u0275dir=bn({type:t,selectors:[["a","ngbNavLink",""]],hostAttrs:["href",""],hostVars:14,hostBindings:function(e,i){1&e&&He("click",function(o){return i.nav.click(i.navItem),o.preventDefault()}),2&e&&(wc("id",i.navItem.domId),Ft("role",i.role?i.role:i.nav.roles?"tab":void 0)("tabindex",i.navItem.disabled?-1:void 0)("aria-controls",i.navItem.isPanelInDom()?i.navItem.panelDomId:null)("aria-selected",i.navItem.active)("aria-disabled",i.navItem.disabled),Kn("nav-link",!0)("nav-item",i.hasNavItemClass())("active",i.navItem.active)("disabled",i.navItem.disabled))}}),t})(),lz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[ia]}),t})(),gz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[ia]}),t})();class FFe{constructor(n,e){this.open=n,this.close=e,e||(this.close=n)}isManual(){return"manual"===this.open||"manual"===this.close}}const LFe={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},mz=t=>t>0?k3(t):n=>n;let yz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[ia]}),t})(),bz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[ia]}),t})(),_z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[ia]}),t})(),Sz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[ia]}),t})(),kz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[ia]}),t})(),QFe=(()=>{class t{constructor(e){this.autoClose=!0,this.placement="auto",this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0,this.animation=e.animation}}return t.\u0275fac=function(e){return new(e||t)(Et(Ma))},t.\u0275prov=Yt({factory:function(){return new t(Et(Ma))},token:t,providedIn:"root"}),t})(),ZFe=0,eLe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ln({type:t,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(e,i){2&e&&(wc("id",i.id),Eu("tooltip"+(i.tooltipClass?" "+i.tooltipClass:"")),Kn("fade",i.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},ngContentSelectors:av,decls:3,vars:0,consts:[[1,"arrow"],[1,"tooltip-inner"]],template:function(e,i){1&e&&(Tu(),je(0,"div",0),A(1,"div",1),Au(2),M())},styles:["ngb-tooltip-window.bs-tooltip-bottom .arrow,ngb-tooltip-window.bs-tooltip-top .arrow{left:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-bottom-left .arrow,ngb-tooltip-window.bs-tooltip-top-left .arrow{left:1em}ngb-tooltip-window.bs-tooltip-bottom-right .arrow,ngb-tooltip-window.bs-tooltip-top-right .arrow{left:auto;right:.8rem}ngb-tooltip-window.bs-tooltip-left .arrow,ngb-tooltip-window.bs-tooltip-right .arrow{top:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-left-top .arrow,ngb-tooltip-window.bs-tooltip-right-top .arrow{top:.4rem}ngb-tooltip-window.bs-tooltip-left-bottom .arrow,ngb-tooltip-window.bs-tooltip-right-bottom .arrow{bottom:.4rem;top:auto}"],encapsulation:2,changeDetection:0}),t})(),tLe=(()=>{class t{constructor(e,i,r,o,s,a,l,c,u,h){this._elementRef=e,this._renderer=i,this._ngZone=l,this._document=c,this._changeDetector=u,this.shown=new vt,this.hidden=new vt,this._ngbTooltipWindowId="ngb-tooltip-"+ZFe++,this._windowRef=null,this.animation=a.animation,this.autoClose=a.autoClose,this.placement=a.placement,this.triggers=a.triggers,this.container=a.container,this.disableTooltip=a.disableTooltip,this.tooltipClass=a.tooltipClass,this.openDelay=a.openDelay,this.closeDelay=a.closeDelay,this._popupService=new j3(eLe,r,s,i,this._ngZone,o,h),this._zoneSubscription=l.onStable.subscribe(()=>{this._windowRef&&Ty(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container,"bs-tooltip")})}set ngbTooltip(e){this._ngbTooltip=e,!e&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(e){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:i,transition$:r}=this._popupService.open(this._ngbTooltip,e,this.animation);this._windowRef=i,this._windowRef.instance.animation=this.animation,this._windowRef.instance.tooltipClass=this.tooltipClass,this._windowRef.instance.id=this._ngbTooltipWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),Dy(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),r.subscribe(()=>this.shown.emit())}}close(){null!=this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(this.animation).subscribe(()=>{this._windowRef=null,this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=function vz(t,n,e,i,r,o,s=0,a=0){const l=function OFe(t,n=LFe){const e=(t||"").trim();if(0===e.length)return[];const i=e.split(/\s+/).map(o=>o.split(":")).map(o=>{let s=n[o[0]]||o;return new FFe(s[0],s[1])}),r=i.filter(o=>o.isManual());if(r.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===r.length&&i.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return i}(e);if(1===l.length&&l[0].isManual())return()=>{};const c=function NFe(t,n,e,i){return new P(r=>{const o=[],s=()=>r.next(!0),a=()=>r.next(!1),l=()=>r.next(!i());return e.forEach(c=>{c.open===c.close?o.push(t.listen(n,c.open,l)):o.push(t.listen(n,c.open,s),t.listen(n,c.close,a))}),()=>{o.forEach(c=>c())}})}(t,n,l,i).pipe(function RFe(t,n,e){return i=>{let r=null;const o=i.pipe(Pe(l=>({open:l})),bs(l=>{const c=e();return c===l.open||r&&r.open!==c?(r&&r.open!==l.open&&(r=null),!1):(r=l,!0)}),dt());return Lt(o.pipe(bs(l=>l.open),mz(t)),o.pipe(bs(l=>!l.open),mz(n))).pipe(bs(l=>l===r&&(r=null,l.open!==e())),Pe(l=>l.open))}}(s,a,i)).subscribe(u=>u?r():o());return()=>c.unsubscribe()}(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:e}){e&&this.isOpen()&&(this._windowRef.instance.tooltipClass=e.currentValue)}ngOnDestroy(){this.close(),this._unregisterListenersFn&&this._unregisterListenersFn(),this._zoneSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Ae(xi),Ae(Hs),Ae(ea),Ae(Gc),Ae(gl),Ae(QFe),Ae(br),Ae(no),Ae(hs),Ae(Lu))},t.\u0275dir=bn({type:t,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",triggers:"triggers",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],features:[ui]}),t})(),Dz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({}),t})();new hi("live announcer delay",{providedIn:"root",factory:function rLe(){return 100}});let Ez=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[ia]}),t})();const lLe=[AV,EV,IV,NV,RV,QV,ez,oz,lz,gz,yz,bz,_z,Sz,kz,Dz,Ez];let cLe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[lLe,AV,EV,IV,NV,RV,QV,ez,oz,lz,gz,yz,bz,_z,Sz,kz,Dz,Ez]}),t})(),Mz=(()=>{class t{constructor(){be(this,"restrictedPages",new Map([["users",Di.USER_ROLE_ADMIN],["config",Di.USER_ROLE_DEVELOPER],["modules",Di.USER_ROLE_DEVELOPER],["apiexplorer",Di.USER_ROLE_DEVELOPER]]))}}return be(t,"\u0275fac",function(e){return new(e||t)}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function uLe(t,n){if(1&t&&(va(0,5),A(1,"a",27),je(2,"img",28),A(3,"span",12),J(4),M()(),ya()),2&t){const e=te().$implicit;N("ngbNavItem",e.navItem),I(1),N("routerLink",e.routerLink),I(1),jp("src","/static/svg/",e.icon,".svg",m1),I(2),Xt(e.label)}}function hLe(t,n){1&t&&je(0,"hr")}function dLe(t,n){if(1&t&&(ye(0,uLe,5,4,"ng-container",26),ye(1,hLe,1,0,"hr",25)),2&t){const e=n.$implicit;N("ngIf",te().getSessionRole()<=e.minRole),I(1),N("ngIf",e.separator)}}function fLe(t,n){if(1&t&&(A(0,"div",29)(1,"h2",30),je(2,"img",31),J(3,"An error has occurred!"),M(),A(4,"h6",32),J(5),M(),A(6,"p"),J(7,"Please refresh the page to try again."),M()()),2&t){const e=te();I(5),Xt(e.error)}}function pLe(t,n){1&t&&(A(0,"div",33),je(1,"img",34),M())}function gLe(t,n){1&t&&je(0,"router-outlet")}const mLe=function(){return["/"]},vLe=function(){return["/login"]};let yLe=(()=>{class t{constructor(e,i,r,o,s){be(this,"route",void 0),be(this,"router",void 0),be(this,"segment",void 0),be(this,"consoleService",void 0),be(this,"authService",void 0),be(this,"routerSub",void 0),be(this,"segmentRouterSub",void 0),be(this,"loading",!0),be(this,"error",""),be(this,"routes",[{navItem:"status",routerLink:["/status"],label:"Status",minRole:Di.USER_ROLE_READONLY,icon:"status"},{navItem:"users",routerLink:["/users"],label:"User Management",minRole:Di.USER_ROLE_ADMIN,icon:"user-management"},{navItem:"config",routerLink:["/config"],label:"Configuration",minRole:Di.USER_ROLE_DEVELOPER,icon:"configuration"},{navItem:"modules",routerLink:["/modules"],label:"Runtime Modules",minRole:Di.USER_ROLE_DEVELOPER,separator:!0,icon:"runtime-modules"},{navItem:"accounts",routerLink:["/accounts"],label:"Accounts",minRole:Di.USER_ROLE_READONLY,icon:"accounts"},{navItem:"groups",routerLink:["/groups"],label:"Groups",minRole:Di.USER_ROLE_READONLY,icon:"groups"},{navItem:"storage",routerLink:["/storage"],label:"Storage",minRole:Di.USER_ROLE_READONLY,icon:"storage"},{navItem:"leaderboards",routerLink:["/leaderboards"],label:"Leaderboards",minRole:Di.USER_ROLE_READONLY,icon:"leaderboard"},{navItem:"chat",routerLink:["/chat"],label:"Chat Messages",minRole:Di.USER_ROLE_READONLY,icon:"chat"},{navItem:"matches",routerLink:["/matches"],label:"Matches",minRole:Di.USER_ROLE_READONLY,icon:"running-matches"},{navItem:"apiexplorer",routerLink:["/apiexplorer"],label:"API Explorer",minRole:Di.USER_ROLE_DEVELOPER,icon:"api-explorer"}]),this.route=e,this.router=i,this.segment=r,this.consoleService=o,this.authService=s,this.loading=!1,this.routerSub=this.router.events.pipe(function iMe(t){let n=arguments.length,e=Sy;ze(arguments[arguments.length-1])&&(e=arguments[arguments.length-1],n--);let i=null;n>=2&&(i=arguments[1]);let r=Number.POSITIVE_INFINITY;return n>=3&&(r=arguments[2]),function(s){return s.lift(new rMe(t,i,r,e))}}(2e3)).subscribe(a=>{if(0===a.length)return;const l=a[a.length-1];l instanceof Ux&&(this.loading=!0),l instanceof zd&&(this.loading=!1),l instanceof ny&&(this.loading=!1),l instanceof Gx&&(this.loading=!1,this.error=l.error)}),this.segmentRouterSub=i.events.pipe(function wC(t,n){return e=>e.lift(new lMe(t,n))}((a,l)=>!(l instanceof zd)||a.url===l.url)).subscribe(a=>{})}ngOnInit(){this.route.data.subscribe(e=>{this.error=e.error?e.error:""})}getSessionRole(){return this.authService.sessionRole}getUsername(){return this.authService.username}logout(){this.authService.logout().subscribe(()=>{this.router.navigate(["/login"])})}ngOnDestroy(){this.segmentRouterSub.unsubscribe(),this.routerSub.unsubscribe()}onSidebarNavChange(e){}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(mC),Ae(Ui),Ae(ds))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],decls:40,vars:11,consts:[[1,"container-fluid"],[1,"row"],["ngbNav","",1,"col-md-2","d-none","d-md-block","sidebar","position-fixed","px-0",3,"navChange"],["sidenav","ngbNav"],[1,"flex-column","text-uppercase"],[3,"ngbNavItem"],[3,"routerLink"],["src","/static/svg/logo.svg","alt","","width","175","height","",1,"logo-full","mx-3","mt-3","mb-1"],["src","/static/svg/logo-icon.svg","alt","","width","32","height","",1,"logo-icon","mx-3","mt-3","mb-1"],["ngFor","",3,"ngForOf"],["href","https://cloud.heroiclabs.com","target","_blank",1,"nav-link"],["src","/static/svg/heroiccloud.svg","alt","","width","24","height","",1,"link-icon","mr-1"],[1,"link-text"],["href","https://heroiclabs.com/docs","target","_blank",1,"nav-link"],["src","/static/svg/docs.svg","alt","","width","24","height","",1,"link-icon","mr-1"],["href","https://forum.heroiclabs.com","target","_blank",1,"nav-link"],["src","/static/svg/forum.svg","alt","","width","24","height","",1,"link-icon","mr-1"],["href","https://heroiclabs.com/blog","target","_blank",1,"nav-link"],["src","/static/svg/blog.svg","alt","","width","24","height","",1,"link-icon","mr-1"],[1,"logged-in-as","nav-link","disabled"],["ngbNavLink","","routerLinkActive","active",3,"routerLink","click"],["src","/static/svg/log-out.svg","alt","","width","24","height","",1,"mr-1"],["role","main",1,"ml-sm-auto","col-md-10","col-lg-10","main-extended","px-4","py-4"],["class","mx-auto",4,"ngIf"],["class","loading mx-auto",4,"ngIf"],[4,"ngIf"],[3,"ngbNavItem",4,"ngIf"],["ngbNavLink","","routerLinkActive","active",3,"routerLink"],["alt","","width","24","height","",1,"link-icon","mr-1",3,"src"],[1,"mx-auto"],[1,"pb-2"],["src","/static/svg/red-triangle.svg",1,"mr-2",2,"width","1em","height","1em"],[1,"mr-2","d-inline","font-weight-bold"],[1,"loading","mx-auto"],["src","/static/spinner.svg",1,"p-1","loading"]],template:function(e,i){1&e&&(A(0,"div",0)(1,"div",1)(2,"nav",2,3),He("navChange",function(o){return i.onSidebarNavChange(o)}),A(4,"div",4),va(5,5),A(6,"a",6),je(7,"img",7)(8,"img",8),M(),ya(),je(9,"hr"),ye(10,dLe,2,2,"ng-template",9),je(11,"hr"),A(12,"a",10),je(13,"img",11),A(14,"span",12),J(15,"Heroic Cloud"),M()(),A(16,"a",13),je(17,"img",14),A(18,"span",12),J(19,"Documentation"),M()(),A(20,"a",15),je(21,"img",16),A(22,"span",12),J(23,"Forum"),M()(),A(24,"a",17),je(25,"img",18),A(26,"span",12),J(27,"Heroic Labs Blog"),M()(),je(28,"hr"),A(29,"div",19),J(30),M(),va(31,5),A(32,"a",20),He("click",function(){return i.logout()}),je(33,"img",21),A(34,"span",12),J(35,"Logout"),M()(),ya(),M()(),A(36,"main",22),ye(37,fLe,8,1,"div",23),ye(38,pLe,2,0,"div",24),ye(39,gLe,1,0,"router-outlet",25),M()()()),2&e&&(I(5),N("ngbNavItem","logo"),I(1),N("routerLink",Ll(9,mLe)),I(4),N("ngForOf",i.routes),I(20),jn("Logged in as: ",i.getUsername(),""),I(1),N("ngbNavItem","logout"),I(1),N("routerLink",Ll(10,vLe)),I(5),N("ngIf",i.error),I(1),N("ngIf",!i.error&&i.loading),I(1),N("ngIf",!i.error&&!i.loading))},dependencies:[Kp,Ru,uy,ti,Nn,ag,sg,dv],styles:[".nav-link.no-active[_ngcontent-%COMP%]{background-color:transparent!important}.nav-item[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-top-color:#708090}.sidebar[_ngcontent-%COMP%]{background-color:#333564;position:fixed;top:0;bottom:0;left:0;z-index:100;font-family:Montserrat,sans-serif;overflow-y:auto}.sidebar[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{color:#fff;font-size:12px;letter-spacing:.1em;opacity:.6;font-weight:500!important}.sidebar[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover{opacity:1;background-color:#e1e1e11a}.sidebar[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-color:#fff;opacity:.2}.active[_ngcontent-%COMP%]{opacity:1}.nav-link.active[_ngcontent-%COMP%]{opacity:1;color:#a69bff}.navbar-collapse[_ngcontent-%COMP%]{letter-spacing:0;text-transform:capitalize}.logo-icon[_ngcontent-%COMP%]{display:none}.link-text[_ngcontent-%COMP%]{padding-left:4px}@media screen and (max-width: 1200px){.main-extended[_ngcontent-%COMP%]{width:94.333333%!important;max-width:94.333333%!important;flex:0 0 94.333333%!important}.sidebar[_ngcontent-%COMP%]{min-width:65px!important;width:5.66%!important;max-width:5.66%!important}.sidebar[_ngcontent-%COMP%] .logo-full[_ngcontent-%COMP%]{display:none}.sidebar[_ngcontent-%COMP%] .logo-icon[_ngcontent-%COMP%]{display:block}.sidebar[_ngcontent-%COMP%] .link-icon[_ngcontent-%COMP%]{width:30px}.sidebar[_ngcontent-%COMP%] .link-text[_ngcontent-%COMP%], .sidebar[_ngcontent-%COMP%] .logged-in-as[_ngcontent-%COMP%]{display:none}}"]})),t})(),bLe=(()=>{class t{constructor(e,i,r){be(this,"authService",void 0),be(this,"router",void 0),be(this,"globals",void 0),this.authService=e,this.router=i,this.globals=r}canActivate(e,i){return!0}canActivateChild(e,i){const r=this.globals.restrictedPages.get(e.url[0].path);return!(null!==r&&r{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let r;return n.viewContainerRef?(r=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(n.injector||this._defaultInjector||ea.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=n,r}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}class SLe extends CLe{}class ALe{constructor(n,e){this.dueTime=n,this.scheduler=e}call(n,e){return e.subscribe(new ELe(n,this.dueTime,this.scheduler))}}class ELe extends x{constructor(n,e,i){super(n),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(n){this.clearDebounce(),this.lastValue=n,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(MLe,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:n}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(n)}}clearDebounce(){const n=this.debouncedSubscription;null!==n&&(this.remove(n),n.unsubscribe(),this.debouncedSubscription=null)}}function MLe(t){t.debouncedNext()}function ILe(){}function U3(t){return null==t?ILe:function(){return this.querySelector(t)}}function LLe(){return[]}function Rz(t){return null==t?LLe:function(){return this.querySelectorAll(t)}}function $z(t){return function(){return this.matches(t)}}function Pz(t){return new Array(t.length)}function $C(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}$C.prototype={constructor:$C,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var jz="$";function PLe(t,n,e,i,r,o){for(var a,s=0,l=n.length,c=o.length;sn?1:t>=n?0:NaN}var W3="http://www.w3.org/1999/xhtml";const Bz={svg:"http://www.w3.org/2000/svg",xhtml:W3,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function PC(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Bz.hasOwnProperty(n)?{space:Bz[n],local:t}:t}function ZLe(t){return function(){this.removeAttribute(t)}}function eOe(t){return function(){this.removeAttributeNS(t.space,t.local)}}function tOe(t,n){return function(){this.setAttribute(t,n)}}function nOe(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function iOe(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function rOe(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function Hz(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function sOe(t){return function(){this.style.removeProperty(t)}}function aOe(t,n,e){return function(){this.style.setProperty(t,n,e)}}function lOe(t,n,e){return function(){var i=n.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,e)}}function fv(t,n){return t.style.getPropertyValue(n)||Hz(t).getComputedStyle(t,null).getPropertyValue(n)}function uOe(t){return function(){delete this[t]}}function hOe(t,n){return function(){this[t]=n}}function dOe(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Vz(t){return t.trim().split(/^|\s+/)}function G3(t){return t.classList||new zz(t)}function zz(t){this._node=t,this._names=Vz(t.getAttribute("class")||"")}function Uz(t,n){for(var e=G3(t),i=-1,r=n.length;++i=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var qz={},fo=null;function VOe(t,n,e){return t=Xz(t,n,e),function(i){var r=i.relatedTarget;(!r||r!==this&&!(8&r.compareDocumentPosition(this)))&&t.call(this,i)}}function Xz(t,n,e){return function(i){var r=fo;fo=i;try{t.call(this,this.__data__,n,e)}finally{fo=r}}}function UOe(t){return function(){var n=this.__on;if(n){for(var o,e=0,i=-1,r=n.length;e=E&&(E=k+1);!(B=w[E])&&++E=0;)(s=i[r])&&(o&&4^s.compareDocumentPosition(o)&&o.parentNode.insertBefore(s,o),o=s);return this},sort:function WLe(t){function n(h,d){return h&&d?t(h.__data__,d.__data__):!h-!d}t||(t=GLe);for(var e=this._groups,i=e.length,r=new Array(i),o=0;o1?this.each((null==n?sOe:"function"==typeof n?lOe:aOe)(t,n,e??"")):fv(this.node(),t)},property:function fOe(t,n){return arguments.length>1?this.each((null==n?uOe:"function"==typeof n?dOe:hOe)(t,n)):this.node()[t]},classed:function vOe(t,n){var e=Vz(t+"");if(arguments.length<2){for(var i=G3(this.node()),r=-1,o=e.length;++r=0&&(e=n.slice(i+1),n=n.slice(0,i)),{type:n,name:e}})}(t+""),o=i.length;if(!(arguments.length<2)){for(a=n?WOe:UOe,null==e&&(e=!1),r=0;r=0&&(i=e.slice(r+1),e=e.slice(0,r)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:i}})}(t+"",e),o=-1,s=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o0)for(var r,o,e=new Array(r),i=0;i>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?HC(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?HC(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=iNe.exec(t))?new Tc(n[1],n[2],n[3],1):(n=rNe.exec(t))?new Tc(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=oNe.exec(t))?HC(n[1],n[2],n[3],n[4]):(n=sNe.exec(t))?HC(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=aNe.exec(t))?lU(n[1],n[2]/100,n[3]/100,1):(n=lNe.exec(t))?lU(n[1],n[2]/100,n[3]/100,n[4]):nU.hasOwnProperty(t)?oU(nU[t]):"transparent"===t?new Tc(NaN,NaN,NaN,0):null}function oU(t){return new Tc(t>>16&255,t>>8&255,255&t,1)}function HC(t,n,e,i){return i<=0&&(t=n=e=NaN),new Tc(t,n,e,i)}function Ny(t,n,e,i){return 1===arguments.length?function uNe(t){return t instanceof Fy||(t=lg(t)),t?new Tc((t=t.rgb()).r,t.g,t.b,t.opacity):new Tc}(t):new Tc(t,n,e,i??1)}function Tc(t,n,e,i){this.r=+t,this.g=+n,this.b=+e,this.opacity=+i}function sU(){return"#"+Y3(this.r)+Y3(this.g)+Y3(this.b)}function aU(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Y3(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function lU(t,n,e,i){return i<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Uh(t,n,e,i)}function cU(t){if(t instanceof Uh)return new Uh(t.h,t.s,t.l,t.opacity);if(t instanceof Fy||(t=lg(t)),!t)return new Uh;if(t instanceof Uh)return t;var n=(t=t.rgb()).r/255,e=t.g/255,i=t.b/255,r=Math.min(n,e,i),o=Math.max(n,e,i),s=NaN,a=o-r,l=(o+r)/2;return a?(s=n===o?(e-i)/a+6*(e0&&l<1?0:s,new Uh(s,a,l,t.opacity)}function Uh(t,n,e,i){this.h=+t,this.s=+n,this.l=+e,this.opacity=+i}function K3(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function uU(t,n,e,i,r){var o=t*t,s=o*t;return((1-3*t+3*o-s)*n+(4-6*o+3*s)*e+(1+3*t+3*o-3*s)*i+s*r)/6}function J3(t){return function(){return t}}function dU(t,n){var e=n-t;return e?function hU(t,n){return function(e){return t+e*n}}(t,e):J3(isNaN(t)?n:t)}X3(Fy,lg,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:iU,formatHex:iU,formatHsl:function cNe(){return cU(this).formatHsl()},formatRgb:rU,toString:rU}),X3(Tc,Ny,tU(Fy,{brighter:function(t){return t=null==t?BC:Math.pow(BC,t),new Tc(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Tc(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:sU,formatHex:sU,formatRgb:aU,toString:aU})),X3(Uh,function hNe(t,n,e,i){return 1===arguments.length?cU(t):new Uh(t,n,e,i??1)},tU(Fy,{brighter:function(t){return t=null==t?BC:Math.pow(BC,t),new Uh(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Uh(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,i=e+(e<.5?e:1-e)*n,r=2*e-i;return new Tc(K3(t>=240?t-240:t+120,r,i),K3(t,r,i),K3(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const VC=function t(n){var e=function gNe(t){return 1==(t=+t)?dU:function(n,e){return e-n?function pNe(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(i){return Math.pow(t+i*n,e)}}(n,e,t):J3(isNaN(n)?e:n)}}(n);function i(r,o){var s=e((r=Ny(r)).r,(o=Ny(o)).r),a=e(r.g,o.g),l=e(r.b,o.b),c=dU(r.opacity,o.opacity);return function(u){return r.r=s(u),r.g=a(u),r.b=l(u),r.opacity=c(u),r+""}}return i.gamma=t,i}(1);function fU(t){return function(n){var s,a,e=n.length,i=new Array(e),r=new Array(e),o=new Array(e);for(s=0;s=1?(e=1,n-1):Math.floor(e*n),r=t[i],o=t[i+1];return uU((e-i/n)*n,i>0?t[i-1]:2*r-o,r,o,ie&&(o=n.slice(e,o),a[s]?a[s]+=o:a[++s]=o),(i=i[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,l.push({i:s,x:Hu(i,r)})),e=Z3.lastIndex;return e=0&&t._call.call(null,n),t=t._next;--gv}()}finally{gv=0,function TNe(){for(var t,e,n=zC,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:zC=e);Py=t,eI(i)}(),ug=0}}function DNe(){var t=jy.now(),n=t-UC;n>yU&&(WC-=n,UC=t)}function eI(t){gv||(Ry&&(Ry=clearTimeout(Ry)),t-ug>24?(t<1/0&&(Ry=setTimeout(wU,t-jy.now()-WC)),$y&&($y=clearInterval($y))):($y||(UC=jy.now(),$y=setInterval(DNe,yU)),gv=1,bU(wU)))}function xU(t,n,e){var i=new qC;return i.restart(function(r){i.stop(),t(r+n)},n=null==n?0:+n,e),i}qC.prototype=_U.prototype={constructor:qC,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?GC():+e)+(null==n?0:+n),!this._next&&Py!==this&&(Py?Py._next=this:zC=this,Py=this),this._call=t,this._time=e,eI()},stop:function(){this._call&&(this._call=null,this._time=1/0,eI())}};var ANe=eU("start","end","cancel","interrupt"),ENe=[],CU=0,SU=1,tI=2,XC=3,kU=4,nI=5,YC=6;function KC(t,n,e,i,r,o){var s=t.__transition;if(s){if(e in s)return}else t.__transition={};!function MNe(t,n,e){var r,i=t.__transition;function s(c){var u,h,d,f;if(e.state!==SU)return l();for(u in i)if((f=i[u]).name===e.name){if(f.state===XC)return xU(s);f.state===kU?(f.state=YC,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[u]):+uCU)throw new Error("too late; already scheduled");return e}function Wd(t,n){var e=Vu(t,n);if(e.state>XC)throw new Error("too late; already running");return e}function Vu(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function rI(t,n){var i,r,s,e=t.__transition,o=!0;if(e){for(s in n=null==n?null:n+"",e)(i=e[s]).name===n?(r=i.state>tI&&i.state180?u+=360:u-c>180&&(c+=360),d.push({i:h.push(r(h)+"rotate(",null,i)-2,x:Hu(c,u)})):u&&h.push(r(h)+"rotate("+u+i)}(c.rotate,u.rotate,h,d),function a(c,u,h,d){c!==u?d.push({i:h.push(r(h)+"skewX(",null,i)-2,x:Hu(c,u)}):u&&h.push(r(h)+"skewX("+u+i)}(c.skewX,u.skewX,h,d),function l(c,u,h,d,f,p){if(c!==h||u!==d){var m=f.push(r(f)+"scale(",null,",",null,")");p.push({i:m-4,x:Hu(c,h)},{i:m-2,x:Hu(u,d)})}else(1!==h||1!==d)&&f.push(r(f)+"scale("+h+","+d+")")}(c.scaleX,c.scaleY,u.scaleX,u.scaleY,h,d),c=u=null,function(f){for(var w,p=-1,m=d.length;++p=0&&(n=n.slice(0,e)),!n||"start"===n})}(n)?iI:Wd;return function(){var s=o(this,t),a=s.on;a!==i&&(r=(i=a).copy()).on(n,e),s.on=r}}(e,t,n))},attr:function WNe(t,n){var e=PC(t),i="transform"===e?NNe:MU;return this.attrTween(t,"function"==typeof n?(e.local?UNe:zNe)(e,i,aI(this,"attr."+t,n)):null==n?(e.local?BNe:jNe)(e):(e.local?VNe:HNe)(e,i,n))},attrTween:function KNe(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var i=PC(t);return this.tween(e,(i.local?XNe:YNe)(i,n))},style:function _Re(t,n,e){var i="transform"==(t+="")?ONe:MU;return null==n?this.styleTween(t,function mRe(t,n){var e,i,r;return function(){var o=fv(this,t),s=(this.style.removeProperty(t),fv(this,t));return o===s?null:o===e&&s===i?r:r=n(e=o,i=s)}}(t,i)).on("end.style."+t,IU(t)):"function"==typeof n?this.styleTween(t,function yRe(t,n,e){var i,r,o;return function(){var s=fv(this,t),a=e(this),l=a+"";return null==a&&(this.style.removeProperty(t),l=a=fv(this,t)),s===l?null:s===i&&l===r?o:(r=l,o=n(i=s,a))}}(t,i,aI(this,"style."+t,n))).each(function bRe(t,n){var e,i,r,a,o="style."+n,s="end."+o;return function(){var l=Wd(this,t),c=l.on,u=null==l.value[o]?a||(a=IU(n)):void 0;(c!==e||r!==u)&&(i=(e=c).copy()).on(s,r=u),l.on=i}}(this._id,t)):this.styleTween(t,function vRe(t,n,e){var i,o,r=e+"";return function(){var s=fv(this,t);return s===r?null:s===i?o:o=n(i=s,e)}}(t,i,n),e).on("end.style."+t,null)},styleTween:function CRe(t,n,e){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==n)return this.tween(i,null);if("function"!=typeof n)throw new Error;return this.tween(i,function xRe(t,n,e){var i,r;function o(){var s=n.apply(this,arguments);return s!==r&&(i=(r=s)&&function wRe(t,n,e){return function(i){this.style.setProperty(t,n.call(this,i),e)}}(t,s,e)),i}return o._value=n,o}(t,n,e??""))},text:function DRe(t){return this.tween("text","function"==typeof t?function kRe(t){return function(){var n=t(this);this.textContent=n??""}}(aI(this,"text",t)):function SRe(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function ERe(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,function ARe(t){var n,e;function i(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&function TRe(t){return function(n){this.textContent=t.call(this,n)}}(r)),n}return i._value=t,i}(t))},remove:function hRe(){return this.on("end.remove",function uRe(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function PNe(t,n){var e=this._id;if(t+="",arguments.length<2){for(var s,i=Vu(this.node(),e).tween,r=0,o=i.length;r0&&(re=ce-Q),L<0?Fe=z-Z:L>0&&(pe=De-Z),k=hI,se.attr("cursor",qd.selection),Qe());break;default:return}uI()},!0).on("keyup.brush",function zt(){switch(fo.keyCode){case 16:ae&&(Te=Oe=ae=!1,Qe());break;case 18:k===yv&&(E<0?ge=we:E>0&&(re=ce),L<0?Fe=z:L>0&&(pe=De),k=vv,Qe());break;case 32:k===hI&&(fo.altKey?(E&&(ge=we-Q*E,re=ce+Q*E),L&&(Fe=z-Z*L,pe=De+Z*L),k=yv):(E<0?ge=we:E>0&&(re=ce),L<0?Fe=z:L>0&&(pe=De),k=vv),se.attr("cursor",qd[C]),Qe());break;default:return}uI()},!0),function eNe(t){var n=t.document.documentElement,e=La(t).on("dragstart.drag",q3,!0);"onselectstart"in n?e.on("selectstart.drag",q3,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}(fo.view)}LU(),rI(w),c.call(w),ct.start()}function ke(){var Qt=Ze(w);ae&&!Te&&!Oe&&(Math.abs(Qt[0]-wt[0])>Math.abs(Qt[1]-wt[1])?Oe=!0:Te=!0),wt=Qt,me=!0,uI(),Qe()}function Qe(){var Qt;switch(Q=wt[0]-Ve[0],Z=wt[1]-Ve[1],k){case hI:case OU:E&&(Q=Math.max(fe-re,Math.min(ie-ge,Q)),ce=re+Q,we=ge+Q),L&&(Z=Math.max(ue-pe,Math.min(le-Fe,Z)),De=pe+Z,z=Fe+Z);break;case vv:E<0?(Q=Math.max(fe-re,Math.min(ie-re,Q)),ce=re+Q,we=ge):E>0&&(Q=Math.max(fe-ge,Math.min(ie-ge,Q)),ce=re,we=ge+Q),L<0?(Z=Math.max(ue-pe,Math.min(le-pe,Z)),De=pe+Z,z=Fe):L>0&&(Z=Math.max(ue-Fe,Math.min(le-Fe,Z)),De=pe,z=Fe+Z);break;case yv:E&&(ce=Math.max(fe,Math.min(ie,re-Q*E)),we=Math.max(fe,Math.min(ie,ge+Q*E))),L&&(De=Math.max(ue,Math.min(le,pe-Z*L)),z=Math.max(ue,Math.min(le,Fe+Z*L)))}wen?1:t>=n?0:NaN}function mI(t){let n=t,e=t;function i(s,a,l,c){for(null==l&&(l=0),null==c&&(c=s.length);l>>1;e(s[u],a)<0?l=u+1:c=u}return l}return 1===t.length&&(n=(s,a)=>t(s)-a,e=function XRe(t){return(n,e)=>gI(t(n),e)}(t)),{left:i,center:function o(s,a,l,c){null==l&&(l=0),null==c&&(c=s.length);const u=i(s,a,l,c-1);return u>l&&n(s[u-1],a)>-n(s[u],a)?u-1:u},right:function r(s,a,l,c){for(null==l&&(l=0),null==c&&(c=s.length);l>>1;e(s[u],a)>0?c=u:l=u+1}return l}}}var vI=Math.sqrt(50),yI=Math.sqrt(10),bI=Math.sqrt(2);function PU(t,n,e){var i=(n-t)/Math.max(0,e),r=Math.floor(Math.log(i)/Math.LN10),o=i/Math.pow(10,r);return r>=0?(o>=vI?10:o>=yI?5:o>=bI?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=vI?10:o>=yI?5:o>=bI?2:1)}function _I(t,n,e){var i=Math.abs(n-t)/Math.max(0,e),r=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/r;return o>=vI?r*=10:o>=yI?r*=5:o>=bI&&(r*=2),n0))return l;do{l.push(c=new Date(+o)),n(o,a),t(o)}while(c=s)for(;t(s),!o(s);)s.setTime(s-1)},function(s,a){if(s>=s)if(a<0)for(;++a<=0;)for(;n(s,-1),!o(s););else for(;--a>=0;)for(;n(s,1),!o(s););})},e&&(r.count=function(o,s){return wI.setTime(+o),xI.setTime(+s),t(wI),t(xI),Math.floor(e(wI,xI))},r.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?r.filter(i?function(s){return i(s)%o==0}:function(s){return r.count(0,s)%o==0}):r:null}),r}var CI=zu(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});CI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?zu(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const KRe=CI;var jU=zu(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,n){t.setMonth(t.getMonth()+n)},function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())},function(t){return t.getMonth()});const JRe=jU;var Vy=6e4,ZRe=6048e5;function hg(t){return zu(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*Vy)/ZRe})}var HU=hg(0),VU=(hg(1),hg(2),hg(3),hg(4),hg(5),hg(6),zu(t=>t.setHours(0,0,0,0),(t,n)=>t.setDate(t.getDate()+n),(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Vy)/864e5,t=>t.getDate()-1));const s$e=VU;var zU=zu(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-t.getMinutes()*Vy)},function(t,n){t.setTime(+t+36e5*n)},function(t,n){return(n-t)/36e5},function(t){return t.getHours()});const a$e=zU;var UU=zu(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},function(t,n){t.setTime(+t+n*Vy)},function(t,n){return(n-t)/Vy},function(t){return t.getMinutes()});const l$e=UU;var WU=zu(function(t){t.setTime(t-t.getMilliseconds())},function(t,n){t.setTime(+t+1e3*n)},function(t,n){return(n-t)/1e3},function(t){return t.getUTCSeconds()});const c$e=WU;var tS=zu(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});tS.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?zu(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):tS:null};const u$e=tS;var SI=new Date,kI=new Date;function Xd(t,n,e,i){function r(o){return t(o=0===arguments.length?new Date:new Date(+o)),o}return r.floor=function(o){return t(o=new Date(+o)),o},r.ceil=function(o){return t(o=new Date(o-1)),n(o,1),t(o),o},r.round=function(o){var s=r(o),a=r.ceil(o);return o-s0))return l;do{l.push(c=new Date(+o)),n(o,a),t(o)}while(c=s)for(;t(s),!o(s);)s.setTime(s-1)},function(s,a){if(s>=s)if(a<0)for(;++a<=0;)for(;n(s,-1),!o(s););else for(;--a>=0;)for(;n(s,1),!o(s););})},e&&(r.count=function(o,s){return SI.setTime(+o),kI.setTime(+s),t(SI),t(kI),Math.floor(e(SI,kI))},r.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?r.filter(i?function(s){return i(s)%o==0}:function(s){return r.count(0,s)%o==0}):r:null}),r}var GU=6e4,XU=6048e5;function dg(t){return Xd(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCDate(n.getUTCDate()+7*e)},function(n,e){return(e-n)/XU})}var YU=dg(0),nS=dg(1),bv=(dg(2),dg(3),dg(4)),KU=(dg(5),dg(6),Xd(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/864e5},function(t){return t.getUTCDate()-1}));const JU=KU;function fg(t){return Xd(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*GU)/XU})}var QU=fg(0),iS=fg(1),_v=(fg(2),fg(3),fg(4)),ZU=(fg(5),fg(6),Xd(function(t){t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*GU)/864e5},function(t){return t.getDate()-1}));const eW=ZU;var DI=Xd(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});DI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Xd(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const zy=DI;var TI=Xd(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});TI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Xd(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};const Uy=TI;function AI(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function EI(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Wy(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var wv,gW,tW={"-":"",_:" ",0:"0"},Oa=/^\s*\d+/,_$e=/^%/,w$e=/[\\^$*+?|[\]().{}]/g;function mo(t,n,e){var i=t<0?"-":"",r=(i?-t:t)+"",o=r.length;return i+(o68?1900:2e3),e+i[0].length):-1}function A$e(t,n,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function E$e(t,n,e){var i=Oa.exec(n.slice(e,e+1));return i?(t.q=3*i[0]-3,e+i[0].length):-1}function M$e(t,n,e){var i=Oa.exec(n.slice(e,e+2));return i?(t.m=i[0]-1,e+i[0].length):-1}function rW(t,n,e){var i=Oa.exec(n.slice(e,e+2));return i?(t.d=+i[0],e+i[0].length):-1}function I$e(t,n,e){var i=Oa.exec(n.slice(e,e+3));return i?(t.m=0,t.d=+i[0],e+i[0].length):-1}function oW(t,n,e){var i=Oa.exec(n.slice(e,e+2));return i?(t.H=+i[0],e+i[0].length):-1}function F$e(t,n,e){var i=Oa.exec(n.slice(e,e+2));return i?(t.M=+i[0],e+i[0].length):-1}function L$e(t,n,e){var i=Oa.exec(n.slice(e,e+2));return i?(t.S=+i[0],e+i[0].length):-1}function O$e(t,n,e){var i=Oa.exec(n.slice(e,e+3));return i?(t.L=+i[0],e+i[0].length):-1}function N$e(t,n,e){var i=Oa.exec(n.slice(e,e+6));return i?(t.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function R$e(t,n,e){var i=_$e.exec(n.slice(e,e+1));return i?e+i[0].length:-1}function $$e(t,n,e){var i=Oa.exec(n.slice(e));return i?(t.Q=+i[0],e+i[0].length):-1}function P$e(t,n,e){var i=Oa.exec(n.slice(e));return i?(t.s=+i[0],e+i[0].length):-1}function sW(t,n){return mo(t.getDate(),n,2)}function j$e(t,n){return mo(t.getHours(),n,2)}function B$e(t,n){return mo(t.getHours()%12||12,n,2)}function H$e(t,n){return mo(1+eW.count(zy(t),t),n,3)}function aW(t,n){return mo(t.getMilliseconds(),n,3)}function V$e(t,n){return aW(t,n)+"000"}function z$e(t,n){return mo(t.getMonth()+1,n,2)}function U$e(t,n){return mo(t.getMinutes(),n,2)}function W$e(t,n){return mo(t.getSeconds(),n,2)}function G$e(t){var n=t.getDay();return 0===n?7:n}function q$e(t,n){return mo(QU.count(zy(t)-1,t),n,2)}function lW(t){var n=t.getDay();return n>=4||0===n?_v(t):_v.ceil(t)}function X$e(t,n){return t=lW(t),mo(_v.count(zy(t),t)+(4===zy(t).getDay()),n,2)}function Y$e(t){return t.getDay()}function K$e(t,n){return mo(iS.count(zy(t)-1,t),n,2)}function J$e(t,n){return mo(t.getFullYear()%100,n,2)}function Q$e(t,n){return mo((t=lW(t)).getFullYear()%100,n,2)}function Z$e(t,n){return mo(t.getFullYear()%1e4,n,4)}function e4e(t,n){var e=t.getDay();return mo((t=e>=4||0===e?_v(t):_v.ceil(t)).getFullYear()%1e4,n,4)}function t4e(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+mo(n/60|0,"0",2)+mo(n%60,"0",2)}function cW(t,n){return mo(t.getUTCDate(),n,2)}function n4e(t,n){return mo(t.getUTCHours(),n,2)}function i4e(t,n){return mo(t.getUTCHours()%12||12,n,2)}function r4e(t,n){return mo(1+JU.count(Uy(t),t),n,3)}function uW(t,n){return mo(t.getUTCMilliseconds(),n,3)}function o4e(t,n){return uW(t,n)+"000"}function s4e(t,n){return mo(t.getUTCMonth()+1,n,2)}function a4e(t,n){return mo(t.getUTCMinutes(),n,2)}function l4e(t,n){return mo(t.getUTCSeconds(),n,2)}function c4e(t){var n=t.getUTCDay();return 0===n?7:n}function u4e(t,n){return mo(YU.count(Uy(t)-1,t),n,2)}function hW(t){var n=t.getUTCDay();return n>=4||0===n?bv(t):bv.ceil(t)}function h4e(t,n){return t=hW(t),mo(bv.count(Uy(t),t)+(4===Uy(t).getUTCDay()),n,2)}function d4e(t){return t.getUTCDay()}function f4e(t,n){return mo(nS.count(Uy(t)-1,t),n,2)}function p4e(t,n){return mo(t.getUTCFullYear()%100,n,2)}function g4e(t,n){return mo((t=hW(t)).getUTCFullYear()%100,n,2)}function m4e(t,n){return mo(t.getUTCFullYear()%1e4,n,4)}function v4e(t,n){var e=t.getUTCDay();return mo((t=e>=4||0===e?bv(t):bv.ceil(t)).getUTCFullYear()%1e4,n,4)}function y4e(){return"+0000"}function dW(){return"%"}function fW(t){return+t}function pW(t){return Math.floor(+t/1e3)}function mW(t){return null===t?NaN:+t}!function x4e(t){wv=function b$e(t){var n=t.dateTime,e=t.date,i=t.time,r=t.periods,o=t.days,s=t.shortDays,a=t.months,l=t.shortMonths,c=Gy(r),u=qy(r),h=Gy(o),d=qy(o),f=Gy(s),p=qy(s),m=Gy(a),w=qy(a),C=Gy(l),k=qy(l),E={a:function le(ct){return s[ct.getDay()]},A:function Fe(ct){return o[ct.getDay()]},b:function z(ct){return l[ct.getMonth()]},B:function Q(ct){return a[ct.getMonth()]},c:null,d:sW,e:sW,f:V$e,g:Q$e,G:e4e,H:j$e,I:B$e,j:H$e,L:aW,m:z$e,M:U$e,p:function Z(ct){return r[+(ct.getHours()>=12)]},q:function me(ct){return 1+~~(ct.getMonth()/3)},Q:fW,s:pW,S:W$e,u:G$e,U:q$e,V:X$e,w:Y$e,W:K$e,x:null,X:null,y:J$e,Y:Z$e,Z:t4e,"%":dW},L={a:function ae(ct){return s[ct.getUTCDay()]},A:function Te(ct){return o[ct.getUTCDay()]},b:function Oe(ct){return l[ct.getUTCMonth()]},B:function Ze(ct){return a[ct.getUTCMonth()]},c:null,d:cW,e:cW,f:o4e,g:g4e,G:v4e,H:n4e,I:i4e,j:r4e,L:uW,m:s4e,M:a4e,p:function Ve(ct){return r[+(ct.getUTCHours()>=12)]},q:function wt(ct){return 1+~~(ct.getUTCMonth()/3)},Q:fW,s:pW,S:l4e,u:c4e,U:u4e,V:h4e,w:d4e,W:f4e,x:null,X:null,y:p4e,Y:m4e,Z:y4e,"%":dW},B={a:function ce(ct,Ct,se){var Se=f.exec(Ct.slice(se));return Se?(ct.w=p[Se[0].toLowerCase()],se+Se[0].length):-1},A:function ue(ct,Ct,se){var Se=h.exec(Ct.slice(se));return Se?(ct.w=d[Se[0].toLowerCase()],se+Se[0].length):-1},b:function pe(ct,Ct,se){var Se=C.exec(Ct.slice(se));return Se?(ct.m=k[Se[0].toLowerCase()],se+Se[0].length):-1},B:function De(ct,Ct,se){var Se=m.exec(Ct.slice(se));return Se?(ct.m=w[Se[0].toLowerCase()],se+Se[0].length):-1},c:function ie(ct,Ct,se){return fe(ct,n,Ct,se)},d:rW,e:rW,f:N$e,g:iW,G:nW,H:oW,I:oW,j:I$e,L:O$e,m:M$e,M:F$e,p:function re(ct,Ct,se){var Se=c.exec(Ct.slice(se));return Se?(ct.p=u[Se[0].toLowerCase()],se+Se[0].length):-1},q:E$e,Q:$$e,s:P$e,S:L$e,u:S$e,U:k$e,V:D$e,w:C$e,W:T$e,x:function ge(ct,Ct,se){return fe(ct,e,Ct,se)},X:function we(ct,Ct,se){return fe(ct,i,Ct,se)},y:iW,Y:nW,Z:A$e,"%":R$e};function G(ct,Ct){return function(se){var rt,zt,Qt,Se=[],ke=-1,Qe=0,gt=ct.length;for(se instanceof Date||(se=new Date(+se));++ke53)return null;"w"in Se||(Se.w=1),"Z"in Se?(gt=(Qe=EI(Wy(Se.y,0,1))).getUTCDay(),Qe=gt>4||0===gt?nS.ceil(Qe):nS(Qe),Qe=JU.offset(Qe,7*(Se.V-1)),Se.y=Qe.getUTCFullYear(),Se.m=Qe.getUTCMonth(),Se.d=Qe.getUTCDate()+(Se.w+6)%7):(gt=(Qe=AI(Wy(Se.y,0,1))).getDay(),Qe=gt>4||0===gt?iS.ceil(Qe):iS(Qe),Qe=eW.offset(Qe,7*(Se.V-1)),Se.y=Qe.getFullYear(),Se.m=Qe.getMonth(),Se.d=Qe.getDate()+(Se.w+6)%7)}else("W"in Se||"U"in Se)&&("w"in Se||(Se.w="u"in Se?Se.u%7:"W"in Se?1:0),gt="Z"in Se?EI(Wy(Se.y,0,1)).getUTCDay():AI(Wy(Se.y,0,1)).getDay(),Se.m=0,Se.d="W"in Se?(Se.w+6)%7+7*Se.W-(gt+5)%7:Se.w+7*Se.U-(gt+6)%7);return"Z"in Se?(Se.H+=Se.Z/100|0,Se.M+=Se.Z%100,EI(Se)):AI(Se)}}function fe(ct,Ct,se,Se){for(var rt,zt,ke=0,Qe=Ct.length,gt=se.length;ke=gt)return-1;if(37===(rt=Ct.charCodeAt(ke++))){if(rt=Ct.charAt(ke++),!(zt=B[rt in tW?Ct.charAt(ke++):rt])||(Se=zt(ct,se,Se))<0)return-1}else if(rt!=se.charCodeAt(Se++))return-1}return Se}return E.x=G(e,E),E.X=G(i,E),E.c=G(n,E),L.x=G(e,L),L.X=G(i,L),L.c=G(n,L),{format:function(ct){var Ct=G(ct+="",E);return Ct.toString=function(){return ct},Ct},parse:function(ct){var Ct=oe(ct+="",!1);return Ct.toString=function(){return ct},Ct},utcFormat:function(ct){var Ct=G(ct+="",L);return Ct.toString=function(){return ct},Ct},utcParse:function(ct){var Ct=oe(ct+="",!0);return Ct.toString=function(){return ct},Ct}}}(t),gW=wv.format}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const C4e=mI(gI).right,yW=(mI(mW),C4e);function S4e(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function D4e(t){return+t}var bW=[0,1];function xv(t){return t}function MI(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:function k4e(t){return function(){return t}}(isNaN(n)?NaN:.5)}function A4e(t,n,e){var i=t[0],r=t[1],o=n[0],s=n[1];return rn&&(e=t,t=n,n=e),function(i){return Math.max(t,Math.min(n,i))}}(t[0],t[d-1])),a=d>2?E4e:A4e,l=c=null,h}function h(d){return isNaN(d=+d)?o:(l||(l=a(t.map(i),n,e)))(i(s(d)))}return h.invert=function(d){return s(r((c||(c=a(n,t.map(i),Hu)))(d)))},h.domain=function(d){return arguments.length?(t=Array.from(d,D4e),u()):t.slice()},h.range=function(d){return arguments.length?(n=Array.from(d),u()):n.slice()},h.rangeRound=function(d){return n=Array.from(d),e=S4e,u()},h.clamp=function(d){return arguments.length?(s=!!d||xv,u()):s!==xv},h.interpolate=function(d){return arguments.length?(e=d,u()):e},h.unknown=function(d){return arguments.length?(o=d,h):o},function(d,f){return i=d,r=f,u()}}()(xv,xv)}function Xy(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}var Yy=1e3,Ky=60*Yy,Jy=60*Ky,Qy=24*Jy,F4e=7*Qy,xW=30*Qy,II=365*Qy;function L4e(t){return new Date(t)}function O4e(t){return t instanceof Date?+t:+new Date(+t)}function CW(t,n,e,i,r,o,s,a,l){var c=wW(),u=c.invert,h=c.domain,d=l(".%L"),f=l(":%S"),p=l("%I:%M"),m=l("%I %p"),w=l("%a %d"),C=l("%b %d"),k=l("%B"),E=l("%Y"),L=[[s,1,Yy],[s,5,5*Yy],[s,15,15*Yy],[s,30,30*Yy],[o,1,Ky],[o,5,5*Ky],[o,15,15*Ky],[o,30,30*Ky],[r,1,Jy],[r,3,3*Jy],[r,6,6*Jy],[r,12,12*Jy],[i,1,Qy],[i,2,2*Qy],[e,1,F4e],[n,1,xW],[n,3,3*xW],[t,1,II]];function B(oe){return(s(oe)=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function rS(t){if(!(n=N4e.exec(t)))throw new Error("invalid format: "+t);var n;return new FI({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function FI(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function oS(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,i=t.slice(0,e);return[i.length>1?i[0]+i.slice(2):i,+t.slice(e+1)]}function Cv(t){return(t=oS(Math.abs(t)))?t[1]:NaN}function kW(t,n){var e=oS(t,n);if(!e)return t+"";var i=e[0],r=e[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}rS.prototype=FI.prototype,FI.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const DW={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function R4e(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return kW(100*t,n)},r:kW,s:function H4e(t,n){var e=oS(t,n);if(!e)return t+"";var i=e[0],r=e[1],o=r-(SW=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,s=i.length;return o===s?i:o>s?i+new Array(o-s+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+oS(t,Math.max(0,n+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function TW(t){return t}var sS,LI,MW,AW=Array.prototype.map,EW=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function q4e(t){var n=t.domain;return t.ticks=function(e){var i=n();return function YRe(t,n,e){var i,o,s,a,r=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((i=n0)for(t=Math.ceil(t/a),n=Math.floor(n/a),s=new Array(o=Math.ceil(n-t+1));++r0;){if((c=PU(s,a,e))===l)return i[r]=s,i[o]=a,n(i);if(c>0)s=Math.floor(s/c)*c,a=Math.ceil(a/c)*c;else{if(!(c<0))break;s=Math.ceil(s*c)/c,a=Math.floor(a*c)/c}l=c}return t},t}function jo(){var t=wW();return t.copy=function(){return _W(t,jo())},Xy.apply(t,arguments),q4e(t)}function IW(t,n,e){t=+t,n=+n,e=(r=arguments.length)<2?(n=t,t=0,1):r<3?1:+e;for(var i=-1,r=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(r);++i0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),o.push(e.substring(r-=a,r+a)),!((l+=a+1)>i));)a=t[s=(s+1)%t.length];return o.reverse().join(n)}}(AW.call(t.grouping,Number),t.thousands+""),e=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",r=void 0===t.decimal?".":t.decimal+"",o=void 0===t.numerals?TW:function j4e(t){return function(n){return n.replace(/[0-9]/g,function(e){return t[+e]})}}(AW.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",a=void 0===t.minus?"-":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function c(h){var d=(h=rS(h)).fill,f=h.align,p=h.sign,m=h.symbol,w=h.zero,C=h.width,k=h.comma,E=h.precision,L=h.trim,B=h.type;"n"===B?(k=!0,B="g"):DW[B]||(void 0===E&&(E=12),L=!0,B="g"),(w||"0"===d&&"="===f)&&(w=!0,d="0",f="=");var G="$"===m?e:"#"===m&&/[boxX]/.test(B)?"0"+B.toLowerCase():"",oe="$"===m?i:/[%p]/.test(B)?s:"",fe=DW[B],re=/[defgprs%]/.test(B);function ce(ue){var ie,ge,we,pe=G,De=oe;if("c"===B)De=fe(ue)+De,ue="";else{var le=(ue=+ue)<0||1/ue<0;if(ue=isNaN(ue)?l:fe(Math.abs(ue),E),L&&(ue=function B4e(t){e:for(var r,n=t.length,e=1,i=-1;e0&&(i=0)}return i>0?t.slice(0,i)+t.slice(r+1):t}(ue)),le&&0==+ue&&"+"!==p&&(le=!1),pe=(le?"("===p?p:a:"-"===p||"("===p?"":p)+pe,De=("s"===B?EW[8+SW/3]:"")+De+(le&&"("===p?")":""),re)for(ie=-1,ge=ue.length;++ie(we=ue.charCodeAt(ie))||we>57){De=(46===we?r+ue.slice(ie+1):ue.slice(ie))+De,ue=ue.slice(0,ie);break}}k&&!w&&(ue=n(ue,1/0));var Fe=pe.length+ue.length+De.length,z=Fe>1)+pe+ue+De+z.slice(Fe);break;default:ue=z+pe+ue+De}return o(ue)}return E=void 0===E?6:/[gprs]/.test(B)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E)),ce.toString=function(){return h+""},ce}return{format:c,formatPrefix:function u(h,d){var f=c(((h=rS(h)).type="f",h)),p=3*Math.max(-8,Math.min(8,Math.floor(Cv(d)/3))),m=Math.pow(10,-p),w=EW[8+p/3];return function(C){return f(m*C)+w}}}}(t),LI=sS.format,MW=sS.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});const FW=Symbol("implicit");function OI(){var t=new Map,n=[],e=[],i=FW;function r(o){var s=o+"",a=t.get(s);if(!a){if(i!==FW)return i;t.set(s,a=n.push(o))}return e[(a-1)%e.length]}return r.domain=function(o){if(!arguments.length)return n.slice();n=[],t=new Map;for(const s of o){const a=s+"";t.has(a)||t.set(a,n.push(s))}return r},r.range=function(o){return arguments.length?(e=Array.from(o),r):e.slice()},r.unknown=function(o){return arguments.length?(i=o,r):i},r.copy=function(){return OI(n,e).unknown(i)},Xy.apply(r,arguments),r}function Ja(){var o,s,t=OI().unknown(void 0),n=t.domain,e=t.range,i=0,r=1,a=!1,l=0,c=0,u=.5;function h(){var d=n().length,f=r=1)return+e(t[i-1],i-1,t);var i,r=(i-1)*n,o=Math.floor(r),s=+e(t[o],o,t);return s+(+e(t[o+1],o+1,t)-s)*(r-o)}}function OW(){var i,t=[],n=[],e=[];function r(){var s=0,a=Math.max(1,n.length);for(e=new Array(a-1);++s0?e[a-1]:t[0],avg)if(Math.abs(u*a-l*c)>vg&&r){var d=e-o,f=i-s,p=a*a+l*l,m=d*d+f*f,w=Math.sqrt(p),C=Math.sqrt(h),k=r*Math.tan((NI-Math.acos((p+h-m)/(2*w*C)))/2),E=k/C,L=k/w;Math.abs(E-1)>vg&&(this._+="L"+(t+E*c)+","+(n+E*u)),this._+="A"+r+","+r+",0,0,"+ +(u*d>c*f)+","+(this._x1=t+L*a)+","+(this._y1=n+L*l)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,i,r,o){t=+t,n=+n,o=!!o;var s=(e=+e)*Math.cos(i),a=e*Math.sin(i),l=t+s,c=n+a,u=1^o,h=o?i-r:r-i;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>vg||Math.abs(this._y1-c)>vg)&&(this._+="L"+l+","+c),e&&(h<0&&(h=h%RI+RI),h>Y4e?this._+="A"+e+","+e+",0,1,"+u+","+(t-s)+","+(n-a)+"A"+e+","+e+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):h>vg&&(this._+="A"+e+","+e+",0,"+ +(h>=NI)+","+u+","+(this._x1=t+e*Math.cos(r))+","+(this._y1=n+e*Math.sin(r))))},rect:function(t,n,e,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}};const PI=RW;function No(t){return function(){return t}}function $W(t){return t[0]}function PW(t){return t[1]}function aS(){var t=$W,n=PW,e=No(!0),i=null,r=mg,o=null;function s(a){var l,u,d,c=a.length,h=!1;for(null==i&&(o=r(d=PI())),l=0;l<=c;++l)!(l=d;--f)a.point(k[f],E[f]);a.lineEnd(),a.areaEnd()}w&&(k[h]=+t(m,h,u),E[h]=+e(m,h,u),a.point(n?+n(m,h,u):k[h],i?+i(m,h,u):E[h]))}if(C)return a=null,C+""||null}function c(){return aS().defined(r).curve(s).context(o)}return l.x=function(u){return arguments.length?(t="function"==typeof u?u:No(+u),n=null,l):t},l.x0=function(u){return arguments.length?(t="function"==typeof u?u:No(+u),l):t},l.x1=function(u){return arguments.length?(n=null==u?null:"function"==typeof u?u:No(+u),l):n},l.y=function(u){return arguments.length?(e="function"==typeof u?u:No(+u),i=null,l):e},l.y0=function(u){return arguments.length?(e="function"==typeof u?u:No(+u),l):e},l.y1=function(u){return arguments.length?(i=null==u?null:"function"==typeof u?u:No(+u),l):i},l.lineX0=l.lineY0=function(){return c().x(t).y(e)},l.lineY1=function(){return c().x(t).y(i)},l.lineX1=function(){return c().x(n).y(e)},l.defined=function(u){return arguments.length?(r="function"==typeof u?u:No(!!u),l):r},l.curve=function(u){return arguments.length?(s=u,null!=o&&(a=s(o)),l):s},l.context=function(u){return arguments.length?(null==u?o=a=null:a=s(o=u),l):o},l}function jW(){}function jI(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function BW(t,n){this._context=t,this._k=(1-n)/6}function HW(t,n){this._context=t,this._k=(1-n)/6}function VW(t){this._curve=t}function fPe(t,n,e,i,r){for(var s,o=t.children,a=-1,l=o.length,c=t.value&&(i-n)/t.value;++a=0;)n+=e[i].value;else n=1;t.value=n}function qW(t,n){var r,s,a,l,c,e=new nb(t),i=+t.value&&(e.value=t.value),o=[e];for(null==n&&(n=LPe);r=o.pop();)if(i&&(r.value=+r.data.value),(a=n(r.data))&&(c=a.length))for(r.children=new Array(c),l=c-1;l>=0;--l)o.push(s=r.children[l]=new nb(a[l])),s.parent=r,s.depth=r.depth+1;return e.eachBefore(XW)}function LPe(t){return t.children}function OPe(t){t.data=t.data.data}function XW(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function nb(t){this.data=t,this.depth=this.height=0,this.parent=null}BW.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:jI(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:jI(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(n){function e(i){return new BW(i,n)}return e.tension=function(i){return t(+i)},e}(0),HW.prototype={areaStart:jW,areaEnd:jW,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:jI(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(n){function e(i){return new HW(i,n)}return e.tension=function(i){return t(+i)},e}(0),function zW(t){function n(e){return new VW(t(e))}return n._curve=t,n}(mg),VW.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}},Math,Math,Math,Math,Math,Math,Math,Math,function t(n){function e(i,r,o,s,a){!function mPe(t,n,e,i,r,o){for(var l,c,f,p,w,C,k,E,L,B,G,s=[],a=n.children,u=0,h=0,d=a.length,m=n.value;uk&&(k=c),G=w*w*B,(E=Math.max(k/G,G/C))>L){w-=c;break}L=E}s.push(l={value:w,dice:f1?i:1)},e}((1+Math.sqrt(5))/2),nb.prototype=qW.prototype={constructor:nb,count:function _Pe(){return this.eachAfter(bPe)},each:function wPe(t){var e,r,o,s,n=this,i=[n];do{for(e=i.reverse(),i=[];n=e.pop();)if(t(n),r=n.children)for(o=0,s=r.length;o=0;--r)e.push(i[r]);return this},sum:function SPe(t){return this.eachAfter(function(n){for(var e=+t(n.data)||0,i=n.children,r=i&&i.length;--r>=0;)e+=i[r].value;n.value=e})},sort:function kPe(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})},path:function DPe(t){for(var n=this,e=function TPe(t,n){if(t===n)return t;var e=t.ancestors(),i=n.ancestors(),r=null;for(t=e.pop(),n=i.pop();t===n;)r=t,t=e.pop(),n=i.pop();return r}(n,t),i=[n];n!==e;)i.push(n=n.parent);for(var r=i.length;t!==e;)i.splice(r,0,t),t=t.parent;return i},ancestors:function APe(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function EPe(){var t=[];return this.each(function(n){t.push(n)}),t},leaves:function MPe(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t},links:function IPe(){var t=this,n=[];return t.each(function(e){e!==t&&n.push({source:e.parent,target:e})}),n},copy:function FPe(){return qW(this).eachBefore(OPe)}};const jPe=["caretElm"];function BPe(t,n){}const HPe=function(t){return{model:t}};function VPe(t,n){if(1&t&&(A(0,"span"),ye(1,BPe,0,0,"ng-template",5),M()),2&t){const e=te();I(1),N("ngTemplateOutlet",e.template)("ngTemplateOutletContext",Lr(2,HPe,e.context))}}function zPe(t,n){1&t&&je(0,"span",6),2&t&&N("innerHTML",te().title,xw)}function UPe(t,n){if(1&t&&(kt(),Ip(),je(0,"ngx-charts-scale-legend",4)),2&t){const e=te();N("horizontal",e.legendOptions&&"below"===e.legendOptions.position)("valueRange",e.legendOptions.domain)("colors",e.legendOptions.colors)("height",e.view[1])("width",e.legendWidth)}}function WPe(t,n){if(1&t){const e=Bt();kt(),Ip(),A(0,"ngx-charts-legend",5),He("labelClick",function(r){return st(e),at(te().legendLabelClick.emit(r))})("labelActivate",function(r){return st(e),at(te().legendLabelActivate.emit(r))})("labelDeactivate",function(r){return st(e),at(te().legendLabelDeactivate.emit(r))}),M()}if(2&t){const e=te();N("horizontal",e.legendOptions&&"below"===e.legendOptions.position)("data",e.legendOptions.domain)("title",e.legendOptions.title)("colors",e.legendOptions.colors)("height",e.view[1])("width",e.legendWidth)("activeEntries",e.activeEntries)}}const JW=["*"],GPe=["ngx-charts-axis-label",""],QW=["ticksel"],qPe=["ngx-charts-x-axis-ticks",""];function XPe(t,n){if(1&t&&(kt(),A(0,"g",3)(1,"title"),J(2),M(),A(3,"text",4),J(4),M()()),2&t){const e=n.$implicit,i=te();Ft("transform",i.tickTransform(e)),I(2),Xt(i.tickFormat(e)),I(1),Er("font-size","12px"),Ft("text-anchor",i.textAnchor)("transform",i.textTransform),I(1),jn(" ",i.tickTrim(i.tickFormat(e))," ")}}function YPe(t,n){if(1&t&&(kt(),A(0,"g"),je(1,"line",6),M()),2&t){const e=te(2);Ft("transform",e.gridLineTransform()),I(1),Ft("y1",-e.gridLineHeight)}}function KPe(t,n){if(1&t&&(kt(),A(0,"g"),ye(1,YPe,2,2,"g",5),M()),2&t){const e=n.$implicit,i=te();Ft("transform",i.tickTransform(e)),I(1),N("ngIf",i.showGridLines)}}const JPe=["ngx-charts-x-axis",""];function QPe(t,n){if(1&t){const e=Bt();kt(),A(0,"g",2),He("dimensionsChanged",function(r){return st(e),at(te().emitTicksHeight(r))}),M()}if(2&t){const e=te();N("trimTicks",e.trimTicks)("rotateTicks",e.rotateTicks)("maxTickLength",e.maxTickLength)("tickFormatting",e.tickFormatting)("tickArguments",e.tickArguments)("tickStroke",e.tickStroke)("scale",e.xScale)("orient",e.xOrient)("showGridLines",e.showGridLines)("gridLineHeight",e.dims.height)("width",e.dims.width)("tickValues",e.ticks)}}function ZPe(t,n){if(1&t&&(kt(),je(0,"g",3)),2&t){const e=te();N("label",e.labelText)("offset",e.labelOffset)("orient","bottom")("height",e.dims.height)("width",e.dims.width)}}const eje=["ngx-charts-y-axis-ticks",""];function tje(t,n){if(1&t&&(kt(),A(0,"g",4)(1,"title"),J(2),M(),A(3,"text",5),J(4),M()()),2&t){const e=n.$implicit,i=te();Ft("transform",i.transform(e)),I(2),Xt(i.tickFormat(e)),I(1),Er("font-size","12px"),Ft("dy",i.dy)("x",i.x1)("y",i.y1)("text-anchor",i.textAnchor),I(1),jn(" ",i.tickTrim(i.tickFormat(e))," ")}}function nje(t,n){if(1&t&&(kt(),je(0,"path",6)),2&t){const e=te();Ft("d",e.referenceAreaPath)("transform",e.gridLineTransform())}}function ije(t,n){1&t&&(kt(),je(0,"line",9)),2&t&&Ft("x2",te(3).gridLineWidth)}function rje(t,n){1&t&&(kt(),je(0,"line",9)),2&t&&Ft("x2",-te(3).gridLineWidth)}function oje(t,n){if(1&t&&(kt(),A(0,"g"),ye(1,ije,1,1,"line",8),ye(2,rje,1,1,"line",8),M()),2&t){const e=te(2);Ft("transform",e.gridLineTransform()),I(1),N("ngIf","left"===e.orient),I(1),N("ngIf","right"===e.orient)}}function sje(t,n){if(1&t&&(kt(),A(0,"g"),ye(1,oje,3,3,"g",7),M()),2&t){const e=n.$implicit,i=te();Ft("transform",i.transform(e)),I(1),N("ngIf",i.showGridLines)}}function aje(t,n){if(1&t&&(kt(),A(0,"g")(1,"title"),J(2),M(),A(3,"text",11),J(4),M()()),2&t){const e=te(2).$implicit,i=te();I(2),Xt(i.tickTrim(i.tickFormat(e.value))),I(1),Ft("dy",i.dy)("y",-6)("x",i.gridLineWidth)("text-anchor",i.textAnchor),I(1),jn(" ",e.name," ")}}function lje(t,n){if(1&t&&(kt(),A(0,"g"),je(1,"line",10),ye(2,aje,5,6,"g",7),M()),2&t){const e=te().$implicit,i=te();Ft("transform",i.transform(e.value)),I(1),Ft("x2",i.gridLineWidth)("transform",i.gridLineTransform()),I(1),N("ngIf",i.showRefLabels)}}function cje(t,n){if(1&t&&(kt(),A(0,"g"),ye(1,lje,3,4,"g",7),M()),2&t){const e=te();I(1),N("ngIf",e.showRefLines)}}const uje=["ngx-charts-y-axis",""];function hje(t,n){if(1&t){const e=Bt();kt(),A(0,"g",2),He("dimensionsChanged",function(r){return st(e),at(te().emitTicksWidth(r))}),M()}if(2&t){const e=te();N("trimTicks",e.trimTicks)("maxTickLength",e.maxTickLength)("tickFormatting",e.tickFormatting)("tickArguments",e.tickArguments)("tickValues",e.ticks)("tickStroke",e.tickStroke)("scale",e.yScale)("orient",e.yOrient)("showGridLines",e.showGridLines)("gridLineWidth",e.dims.width)("referenceLines",e.referenceLines)("showRefLines",e.showRefLines)("showRefLabels",e.showRefLabels)("height",e.dims.height)}}function dje(t,n){if(1&t&&(kt(),je(0,"g",3)),2&t){const e=te();N("label",e.labelText)("offset",e.labelOffset)("orient",e.yOrient)("height",e.dims.height)("width",e.dims.width)}}const fje=["ngx-charts-circle-series",""];function pje(t,n){if(1&t&&(kt(),je(0,"rect",4)),2&t){const e=te(2);N("@animationState","active"),Ft("x",e.circle.cx-e.circle.radius)("y",e.circle.cy)("width",2*e.circle.radius)("height",e.circle.height)("fill",e.gradientFill)}}const gje=function(t){return{name:t}};function mje(t,n){if(1&t){const e=Bt();kt(),A(0,"g")(1,"defs"),je(2,"g",1),M(),ye(3,pje,1,6,"rect",2),A(4,"g",3),He("select",function(){st(e);const r=te();return at(r.onClick(r.circle.data))})("activate",function(){return st(e),at(te().activateCircle())})("deactivate",function(){return st(e),at(te().deactivateCircle())}),M()()}if(2&t){const e=te();I(2),N("name",e.gradientId)("stops",e.circle.gradientStops),I(1),N("ngIf",e.barVisible&&"standard"===e.type),I(1),Kn("active",e.isActive(Lr(18,gje,e.circle.seriesName))),N("cx",e.circle.cx)("cy",e.circle.cy)("r",e.circle.radius)("fill",e.circle.color)("pointerEvents",0===e.circle.value?"none":"all")("data",e.circle.value)("classNames",e.circle.classNames)("tooltipDisabled",e.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",e.tooltipTemplate?void 0:e.getTooltipText(e.circle))("tooltipTemplate",e.tooltipTemplate)("tooltipContext",e.circle.data)}}const vje=["ngx-charts-circle",""],wje=["ngx-charts-svg-linear-gradient",""];function xje(t,n){if(1&t&&(kt(),je(0,"stop")),2&t){const e=n.$implicit;Er("stop-color",e.color)("stop-opacity",e.opacity),Ft("offset",e.offset+"%")}}const kje=["ngx-charts-area",""];function Dje(t,n){if(1&t&&(kt(),A(0,"defs"),je(1,"g",2),M()),2&t){const e=te();I(1),N("name",e.gradientId)("stops",e.gradientStops)}}const Aje=["tooltipAnchor"],Eje=["ngx-charts-tooltip-area",""];function Mje(t,n){if(1&t&&(A(0,"div",6),je(1,"span",7),J(2),M()),2&t){const e=n.$implicit,i=te(2);I(1),Er("background-color",e.color),I(1),jn(" ",i.getToolTipText(e)," ")}}function Ije(t,n){if(1&t&&(kt(),Ip(),A(0,"div",4),ye(1,Mje,3,3,"div",5),M()),2&t){const e=n.model;I(1),N("ngForOf",e)}}const Fje=["ngx-charts-timeline",""];function Lje(t,n){if(1&t&&(A(0,"header",4)(1,"span",5),J(2),M()()),2&t){const e=te();I(2),Xt(e.title)}}function Oje(t,n){if(1&t){const e=Bt();A(0,"li",6)(1,"ngx-charts-legend-entry",7),He("select",function(r){return st(e),at(te().labelClick.emit(r))})("activate",function(r){return st(e),at(te().activate(r))})("deactivate",function(r){return st(e),at(te().deactivate(r))}),M()()}if(2&t){const e=n.$implicit,i=te();I(1),N("label",e.label)("formattedLabel",e.formattedLabel)("color",e.color)("isActive",i.isActive(e))}}const sa=["tooltipTemplate"],dS=["seriesTooltipTemplate"],qo=function(t,n){return[t,n]},n8e=["ngx-charts-line",""];function i8e(t,n){if(1&t){const e=Bt();kt(),A(0,"g",7),He("dimensionsChanged",function(r){return st(e),at(te().updateXAxisHeight(r))}),M()}if(2&t){const e=te();N("xScale",e.xScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)}}function r8e(t,n){if(1&t){const e=Bt();kt(),A(0,"g",8),He("dimensionsChanged",function(r){return st(e),at(te().updateYAxisWidth(r))}),M()}if(2&t){const e=te();N("yScale",e.yScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)("referenceLines",e.referenceLines)("showRefLines",e.showRefLines)("showRefLabels",e.showRefLabels)}}function o8e(t,n){if(1&t&&(kt(),A(0,"g"),je(1,"g",9),M()),2&t){const e=n.$implicit,i=te();N("@animationState","active"),I(1),N("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("activeEntries",i.activeEntries)("scaleType",i.scaleType)("curve",i.curve)("rangeFillOpacity",i.rangeFillOpacity)("hasRange",i.hasRange)("animations",i.animations)}}function s8e(t,n){if(1&t){const e=Bt();kt(),A(0,"g")(1,"g",13),He("select",function(r){return st(e),at(te(2).onClick(r))})("activate",function(r){return st(e),at(te(2).onActivate(r))})("deactivate",function(r){return st(e),at(te(2).onDeactivate(r))}),M()()}if(2&t){const e=n.$implicit,i=te(2);I(1),N("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("visibleValue",i.hoveredVertical)("activeEntries",i.activeEntries)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)}}function a8e(t,n){if(1&t){const e=Bt();kt(),A(0,"g",10),He("mouseleave",function(){return st(e),at(te().hideCircles())}),A(1,"g",11),He("hover",function(r){return st(e),at(te().updateHoveredVertical(r))}),M(),ye(2,s8e,2,9,"g",12),M()}if(2&t){const e=te();I(1),N("dims",e.dims)("xSet",e.xSet)("xScale",e.xScale)("yScale",e.yScale)("results",e.results)("colors",e.colors)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.seriesTooltipTemplate),I(1),N("ngForOf",e.results)}}function l8e(t,n){if(1&t&&(kt(),A(0,"g"),je(1,"g",15),M()),2&t){const e=n.$implicit,i=te(2);I(1),N("xScale",i.timelineXScale)("yScale",i.timelineYScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("curve",i.curve)("hasRange",i.hasRange)("animations",i.animations)}}function c8e(t,n){if(1&t){const e=Bt();kt(),A(0,"g",14),He("onDomainChange",function(r){return st(e),at(te().updateDomain(r))}),ye(1,l8e,2,8,"g",4),M()}if(2&t){const e=te();N("results",e.results)("view",Kr(10,qo,e.timelineWidth,e.height))("height",e.timelineHeight)("scheme",e.scheme)("customColors",e.customColors)("scaleType",e.scaleType)("legend",e.legend),Ft("transform",e.timelineTransform),I(1),N("ngForOf",e.results)("ngForTrackBy",e.trackBy)}}const u8e=["ngx-charts-line-series",""];function h8e(t,n){if(1&t&&(kt(),je(0,"g",4)),2&t){const e=te();N("name",e.gradientId)("stops",e.gradientStops)}}function d8e(t,n){if(1&t&&(kt(),je(0,"g",5)),2&t){const e=te();Kn("active",e.isActive(e.data))("inactive",e.isInactive(e.data)),N("data",e.data)("path",e.outerPath)("fill",e.hasGradient?e.gradientUrl:e.colors.getColor(e.data.name))("opacity",e.rangeFillOpacity)("animations",e.animations)}}let nG=(()=>{class t{constructor(e,i,r){this.applicationRef=e,this.componentFactoryResolver=i,this.injector=r}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(e){this._container=e}getComponentRootNode(e){return function a6e(t){return t.element}(e)?e.element.nativeElement:e.hostView&&e.hostView.rootNodes.length>0?e.hostView.rootNodes[0]:e.location.nativeElement}getRootViewContainerNode(e){return this.getComponentRootNode(e)}projectComponentBindings(e,i){if(i){if(void 0!==i.inputs){const r=Object.getOwnPropertyNames(i.inputs);for(const o of r)e.instance[o]=i.inputs[o]}if(void 0!==i.outputs){const r=Object.getOwnPropertyNames(i.outputs);for(const o of r)e.instance[o]=i.outputs[o]}}return e}appendComponent(e,i={},r){r||(r=this.getRootViewContainer());const o=this.getComponentRootNode(r),s=new SLe(o,this.componentFactoryResolver,this.applicationRef,this.injector),a=new Iz(e),l=s.attach(a);return this.projectComponentBindings(l,i),l}}return t.\u0275fac=function(e){return new(e||t)(Et(Lu),Et(Gc),Et(ea))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t})();function l6e(t,n,e){e=e||{};let i,r,o,s=null,a=0;function l(){a=!1===e.leading?0:+new Date,s=null,o=t.apply(i,r)}return function(){const c=+new Date;!a&&!1===e.leading&&(a=c);const u=n-(c-a);return i=this,r=arguments,u<=0?(clearTimeout(s),s=null,a=c,o=t.apply(i,r)):!s&&!1!==e.trailing&&(s=setTimeout(l,u)),o}}function c6e(t,n){return function(i,r,o){return{configurable:!0,enumerable:o.enumerable,get:function(){return Object.defineProperty(this,r,{configurable:!0,enumerable:o.enumerable,value:l6e(o.value,t,n)}),this[r]}}}}var aa=(()=>(function(t){t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right"}(aa||(aa={})),aa))();const $f=7;function iG(t,n,e){return"top"===e?t.top-$f:"bottom"===e?t.top+t.height-n.height+$f:"center"===e?t.top+t.height/2-n.height/2:void 0}function rG(t,n,e){return"left"===e?t.left-$f:"right"===e?t.left+t.width-n.width+$f:"center"===e?t.left+t.width/2-n.width/2:void 0}class Ac{static calculateVerticalAlignment(n,e,i){let r=iG(n,e,i);return r+e.height>window.innerHeight&&(r=window.innerHeight-e.height),r}static calculateVerticalCaret(n,e,i,r){let o;"top"===r&&(o=n.height/2-i.height/2+$f),"bottom"===r&&(o=e.height-n.height/2-i.height/2-$f),"center"===r&&(o=e.height/2-i.height/2);const s=iG(n,e,r);return s+e.height>window.innerHeight&&(o+=s+e.height-window.innerHeight),o}static calculateHorizontalAlignment(n,e,i){let r=rG(n,e,i);return r+e.width>window.innerWidth&&(r=window.innerWidth-e.width),r}static calculateHorizontalCaret(n,e,i,r){let o;"left"===r&&(o=n.width/2-i.width/2+$f),"right"===r&&(o=e.width-n.width/2-i.width/2-$f),"center"===r&&(o=e.width/2-i.width/2);const s=rG(n,e,r);return s+e.width>window.innerWidth&&(o+=s+e.width-window.innerWidth),o}static shouldFlip(n,e,i,r){let o=!1;return"right"===i&&n.left+n.width+e.width+r>window.innerWidth&&(o=!0),"left"===i&&n.left-e.width-r<0&&(o=!0),"top"===i&&n.top-e.height-r<0&&(o=!0),"bottom"===i&&n.top+n.height+e.height+r>window.innerHeight&&(o=!0),o}static positionCaret(n,e,i,r,o){let s=0,a=0;return n===aa.right?(a=-7,s=Ac.calculateVerticalCaret(i,e,r,o)):n===aa.left?(a=e.width,s=Ac.calculateVerticalCaret(i,e,r,o)):n===aa.top?(s=e.height,a=Ac.calculateHorizontalCaret(i,e,r,o)):n===aa.bottom&&(s=-7,a=Ac.calculateHorizontalCaret(i,e,r,o)),{top:s,left:a}}static positionContent(n,e,i,r,o){let s=0,a=0;return n===aa.right?(a=i.left+i.width+r,s=Ac.calculateVerticalAlignment(i,e,o)):n===aa.left?(a=i.left-e.width-r,s=Ac.calculateVerticalAlignment(i,e,o)):n===aa.top?(s=i.top-e.height-r,a=Ac.calculateHorizontalAlignment(i,e,o)):n===aa.bottom&&(s=i.top+i.height+r,a=Ac.calculateHorizontalAlignment(i,e,o)),{top:s,left:a}}static determinePlacement(n,e,i,r){if(Ac.shouldFlip(i,e,n,r)){if(n===aa.right)return aa.left;if(n===aa.left)return aa.right;if(n===aa.top)return aa.bottom;if(n===aa.bottom)return aa.top}return n}}let u6e=(()=>{class t{constructor(e,i){this.element=e,this.renderer=i}get cssClasses(){let e="ngx-charts-tooltip-content";return e+=` position-${this.placement}`,e+=` type-${this.type}`,e+=` ${this.cssClass}`,e}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){const e=this.element.nativeElement,i=this.host.nativeElement.getBoundingClientRect();if(!i.height&&!i.width)return;const r=e.getBoundingClientRect();this.checkFlip(i,r),this.positionContent(e,i,r),this.showCaret&&this.positionCaret(i,r),setTimeout(()=>this.renderer.addClass(e,"animate"),1)}positionContent(e,i,r){const{top:o,left:s}=Ac.positionContent(this.placement,r,i,this.spacing,this.alignment);this.renderer.setStyle(e,"top",`${o}px`),this.renderer.setStyle(e,"left",`${s}px`)}positionCaret(e,i){const r=this.caretElm.nativeElement,o=r.getBoundingClientRect(),{top:s,left:a}=Ac.positionCaret(this.placement,i,e,o,this.alignment);this.renderer.setStyle(r,"top",`${s}px`),this.renderer.setStyle(r,"left",`${a}px`)}checkFlip(e,i){this.placement=Ac.determinePlacement(this.placement,i,e,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(Ae(xi),Ae(Hs))},t.\u0275cmp=ln({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(e,i){if(1&e&&Do(jPe,5),2&e){let r;En(r=Mn())&&(i.caretElm=r.first)}},hostVars:2,hostBindings:function(e,i){1&e&&He("resize",function(){return i.onWindowResize()},0,wj),2&e&&Eu(i.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(e,i){1&e&&(A(0,"div"),je(1,"span",0,1),A(3,"div",2),ye(4,VPe,2,4,"span",3),ye(5,zPe,1,1,"span",4),M()()),2&e&&(I(1),function Y5(t,n,e){Iu(yc,Rh,Mm(dn(),t,n,e),!0)}("tooltip-caret position-",i.placement,""),N("hidden",!i.showCaret),I(3),N("ngIf",!i.title),I(1),N("ngIf",i.title))},dependencies:[Nn,Nl],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),function kLe(t,n,e,i){var s,r=arguments.length,o=r<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,n,e,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(r<3?s(o):r>3?s(n,e,o):s(n,e))||o);r>3&&o&&Object.defineProperty(n,e,o)}([c6e(100)],t.prototype,"onWindowResize",null),t})();class h6e{constructor(n){this.injectionService=n,this.defaults={},this.components=new Map}getByType(n=this.type){return this.components.get(n)}create(n){return this.createByType(this.type,n)}createByType(n,e){e=this.assignDefaults(e);const i=this.injectComponent(n,e);return this.register(n,i),i}destroy(n){const e=this.components.get(n.componentType);if(e&&e.length){const i=e.indexOf(n);i>-1&&(e[i].destroy(),e.splice(i,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(n){const e=this.components.get(n);if(e&&e.length){let i=e.length-1;for(;i>=0;)this.destroy(e[i--])}}injectComponent(n,e){return this.injectionService.appendComponent(n,e)}assignDefaults(n){const e=Object.assign({},this.defaults.inputs),i=Object.assign({},this.defaults.outputs);return!n.inputs&&!n.outputs&&(n={inputs:n}),e&&(n.inputs=Object.assign(Object.assign({},e),n.inputs)),i&&(n.outputs=Object.assign(Object.assign({},i),n.outputs)),n}register(n,e){this.components.has(n)||this.components.set(n,[]),this.components.get(n).push(e)}}let VI=(()=>{class t extends h6e{constructor(e){super(e),this.type=u6e}}return t.\u0275fac=function(e){return new(e||t)(Et(nG))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})(),xs=(()=>{class t{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new vt,this.legendLabelActivate=new vt,this.legendLabelDeactivate=new vt}ngOnChanges(e){this.update()}update(){let e=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||"right"===this.legendOptions.position)&&(e="scaleLegend"===this.legendType?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-e)/12),this.legendWidth=this.legendOptions&&"right"!==this.legendOptions.position?this.chartWidth:Math.floor(this.view[0]*e/12)}getLegendType(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ln({type:t,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",data:"data",legendData:"legendData",colors:"colors",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[lo([VI]),ui],ngContentSelectors:JW,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(e,i){1&e&&(Tu(),A(0,"div",0),kt(),A(1,"svg",1),Au(2),M(),ye(3,UPe,1,5,"ngx-charts-scale-legend",2),ye(4,WPe,1,7,"ngx-charts-legend",3),M()),2&e&&(Er("width",i.view[0],"px"),N("@animationState","active")("@.disabled",!i.animations),I(1),Ft("width",i.chartWidth)("height",i.view[1]),I(2),N("ngIf",i.showLegend&&"scaleLegend"===i.legendType),I(1),N("ngIf",i.showLegend&&"legend"===i.legendType))},dependencies:function(){return[Nn,mG,yG]},encapsulation:2,data:{animation:[ml("animationState",[Wa(":enter",[Jr({opacity:0}),Ua("500ms 100ms",Jr({opacity:1}))])])]},changeDetection:0}),t})(),d6e=(()=>{class t{constructor(e,i){this.element=e,this.zone=i,this.visible=new vt,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const e=()=>{if(!this.element)return;const{offsetHeight:i,offsetWidth:r}=this.element.nativeElement;i&&r?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e())})}}return t.\u0275fac=function(e){return new(e||t)(Ae(xi),Ae(br))},t.\u0275dir=bn({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t})(),Cs=(()=>{class t{constructor(e,i,r){this.chartElement=e,this.zone=i,this.cd=r,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new vt}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new d6e(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(e){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const e=this.getContainerDims();e&&(this.width=e.width,this.height=e.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let e,i;const r=this.chartElement.nativeElement;if(null!==r.parentNode){const o=r.parentNode.getBoundingClientRect();e=o.width,i=o.height}return e&&i?{width:e,height:i}:null}formatDates(){for(let e=0;ee.lift(new ALe(t,n))}(200)).subscribe(r=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=i}cloneData(e){const i=[];for(const r of e){const o={name:r.name};if(void 0!==r.value&&(o.value=r.value),void 0!==r.series){o.series=[];for(const s of r.series){const a=Object.assign({},s);o.series.push(a)}}void 0!==r.extra&&(o.extra=JSON.parse(JSON.stringify(r.extra))),i.push(o)}return i}}return t.\u0275fac=function(e){return new(e||t)(Ae(xi),Ae(br),Ae(hs))},t.\u0275cmp=ln({type:t,selectors:[["base-chart"]],inputs:{scheme:"scheme",schemeType:"schemeType",animations:"animations",results:"results",view:"view",customColors:"customColors"},outputs:{select:"select"},features:[ui],decls:1,vars:0,template:function(e,i){1&e&&je(0,"div")},encapsulation:2}),t})(),zI=(()=>{class t{constructor(e){this.textHeight=25,this.margin=5,this.element=e.nativeElement}ngOnChanges(e){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case"top":case"bottom":this.y=this.offset,this.x=this.width/2;break;case"left":this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case"right":this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return t.\u0275fac=function(e){return new(e||t)(Ae(xi))},t.\u0275cmp=ln({type:t,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[ui],attrs:GPe,decls:2,vars:6,template:function(e,i){1&e&&(kt(),A(0,"text"),J(1),M()),2&e&&(Ft("stroke-width",i.strokeWidth)("x",i.x)("y",i.y)("text-anchor",i.textAnchor)("transform",i.transform),I(1),jn(" ",i.label," "))},encapsulation:2,changeDetection:0}),t})();function Pf(t,n=16){return"string"!=typeof t?"number"==typeof t?t+"":"":(t=t.trim()).length<=n?t:`${t.slice(0,n)}...`}function oG(t,n){if(t.length>n){const e=[],i=Math.floor(t.length/n);for(let r=0;r{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.dimensionsChanged=new vt,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor="middle",this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0}ngOnChanges(e){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);e!==this.height&&(this.height=e,this.dimensionsChanged.emit({height:e}),setTimeout(()=>this.updateDims()))}update(){const e=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(r){return"Date"===r.constructor.name?r.toLocaleDateString():r.toLocaleString()};const i=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(r){return this.scale(r)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",i&&0!==i?(this.textTransform=`rotate(${i})`,this.textAnchor="end",this.verticalSpacing=10):this.textAnchor="middle",setTimeout(()=>this.updateDims())}getRotationAngle(e){let i=0;this.maxTicksLength=0;for(let c=0;cthis.maxTicksLength&&(this.maxTicksLength=h)}const s=8*Math.min(this.maxTicksLength,this.maxAllowedLength);let a=s;const l=Math.floor(this.width/e.length);for(;a>l&&i>-90;)i-=30,a=Math.cos(i*(Math.PI/180))*s;return i}getTicks(){let e;const i=this.getMaxTicks(20),r=this.getMaxTicks(100);return this.tickValues?e=this.tickValues:this.scale.ticks?e=this.scale.ticks.apply(this.scale,[r]):(e=this.scale.domain(),e=oG(e,i)),e}getMaxTicks(e){return Math.floor(this.width/e)}tickTransform(e){return"translate("+this.adjustedScale(e)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(e){return this.trimTicks?Pf(e,this.maxTickLength):e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ln({type:t,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(e,i){if(1&e&&Do(QW,5),2&e){let r;En(r=Mn())&&(i.ticksElement=r.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",rotateTicks:"rotateTicks",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineHeight:"gridLineHeight",width:"width"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[ui],attrs:qPe,decls:4,vars:2,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[4,"ngIf"],["y2","0",1,"gridline-path","gridline-path-vertical"]],template:function(e,i){1&e&&(kt(),A(0,"g",null,0),ye(2,XPe,5,7,"g",1),M(),ye(3,KPe,2,2,"g",2)),2&e&&(I(2),N("ngForOf",i.ticks),I(1),N("ngForOf",i.ticks))},dependencies:[ti,Nn],encapsulation:2,changeDetection:0}),t})(),ic=(()=>{class t{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient="bottom",this.xAxisOffset=0,this.dimensionsChanged=new vt,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5}ngOnChanges(e){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,typeof this.xAxisTickCount<"u"&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:e}){const i=e+25+5;i!==this.labelOffset&&(this.labelOffset=i,setTimeout(()=>{this.dimensionsChanged.emit({height:e})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ln({type:t,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(e,i){if(1&e&&Do(sG,5),2&e){let r;En(r=Mn())&&(i.ticksComponent=r.first)}},inputs:{rotateTicks:"rotateTicks",showGridLines:"showGridLines",xOrient:"xOrient",xAxisOffset:"xAxisOffset",xScale:"xScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickInterval:"xAxisTickInterval",xAxisTickCount:"xAxisTickCount"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[ui],attrs:JPe,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(e,i){1&e&&(kt(),A(0,"g"),ye(1,QPe,1,12,"g",0),ye(2,ZPe,1,5,"g",1),M()),2&e&&(Ft("class",i.xAxisClassName)("transform",i.transform),I(1),N("ngIf",i.xScale),I(1),N("ngIf",i.showLabel))},dependencies:[Nn,zI,sG],encapsulation:2,changeDetection:0}),t})();let aG=(()=>{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new vt,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor="middle",this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0}ngOnChanges(e){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);e!==this.width&&(this.width=e,this.dimensionsChanged.emit({width:e}),setTimeout(()=>this.updateDims()))}update(){let e;const i="top"===this.orient||"right"===this.orient?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,e=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(r){return"Date"===r.constructor.name?r.toLocaleDateString():r.toLocaleString()},this.adjustedScale=e.bandwidth?function(r){return e(r)+.5*e.bandwidth()}:e,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case"top":case"bottom":this.transform=function(r){return"translate("+this.adjustedScale(r)+",0)"},this.textAnchor="middle",this.y2=this.innerTickSize*i,this.y1=this.tickSpacing*i,this.dy=i<0?"0em":".71em";break;case"left":this.transform=function(r){return"translate(0,"+this.adjustedScale(r)+")"},this.textAnchor="end",this.x2=this.innerTickSize*-i,this.x1=this.tickSpacing*-i,this.dy=".32em";break;case"right":this.transform=function(r){return"translate(0,"+this.adjustedScale(r)+")"},this.textAnchor="start",this.x2=this.innerTickSize*-i,this.x1=this.tickSpacing*-i,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(e=>e.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(e=>e.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=function Yd(t,n,e,i,r,[o,s,a,l]){let c="";return c=`M${[t+r,n]}`,c+="h"+((e=0===(e=Math.floor(e))?1:e)-2*r),c+=s?`a${[r,r]} 0 0 1 ${[r,r]}`:`h${r}v${r}`,c+="v"+((i=0===(i=Math.floor(i))?1:i)-2*r),c+=l?`a${[r,r]} 0 0 1 ${[-r,r]}`:`v${r}h${-r}`,c+="h"+(2*r-e),c+=a?`a${[r,r]} 0 0 1 ${[-r,-r]}`:`h${-r}v${-r}`,c+="v"+(2*r-i),c+=o?`a${[r,r]} 0 0 1 ${[r,-r]}`:`v${-r}h${r}`,c+="z",c}(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let e;const i=this.getMaxTicks(20),r=this.getMaxTicks(50);return this.tickValues?e=this.tickValues:this.scale.ticks?e=this.scale.ticks.apply(this.scale,[r]):(e=this.scale.domain(),e=oG(e,i)),e}getMaxTicks(e){return Math.floor(this.height/e)}tickTransform(e){return`translate(${this.adjustedScale(e)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(e){return this.trimTicks?Pf(e,this.maxTickLength):e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ln({type:t,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(e,i){if(1&e&&Do(QW,5),2&e){let r;En(r=Mn())&&(i.ticksElement=r.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[ui],attrs:eje,decls:6,vars:4,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[1,"reference-area"],[4,"ngIf"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(e,i){1&e&&(kt(),A(0,"g",null,0),ye(2,tje,5,9,"g",1),M(),ye(3,nje,1,2,"path",2),ye(4,sje,2,2,"g",3),ye(5,cje,2,1,"g",3)),2&e&&(I(2),N("ngForOf",i.ticks),I(1),N("ngIf",i.referenceLineLength>1&&i.refMax&&i.refMin&&i.showRefLines),I(1),N("ngForOf",i.ticks),I(1),N("ngForOf",i.referenceLines))},dependencies:[ti,Nn],encapsulation:2,changeDetection:0}),t})(),jl=(()=>{class t{constructor(){this.showGridLines=!1,this.yOrient="left",this.yAxisOffset=0,this.dimensionsChanged=new vt,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(e){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),"right"===this.yOrient?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):(this.offset=this.offset,this.transform=`translate(${this.offset} , 0)`),void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:e}){e!==this.labelOffset&&"right"===this.yOrient?(this.labelOffset=e+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:e})},0)):e!==this.labelOffset&&(this.labelOffset=e,setTimeout(()=>{this.dimensionsChanged.emit({width:e})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ln({type:t,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(e,i){if(1&e&&Do(aG,5),2&e){let r;En(r=Mn())&&(i.ticksComponent=r.first)}},inputs:{showGridLines:"showGridLines",yOrient:"yOrient",yAxisOffset:"yAxisOffset",yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showLabel:"showLabel",labelText:"labelText",yAxisTickInterval:"yAxisTickInterval",yAxisTickCount:"yAxisTickCount",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[ui],attrs:uje,decls:3,vars:4,consts:[["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(e,i){1&e&&(kt(),A(0,"g"),ye(1,hje,1,14,"g",0),ye(2,dje,1,5,"g",1),M()),2&e&&(Ft("class",i.yAxisClassName)("transform",i.transform),I(1),N("ngIf",i.yScale),I(1),N("ngIf",i.showLabel))},dependencies:[Nn,zI,aG],encapsulation:2,changeDetection:0}),t})(),lG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[ia]}),t})();var fS=(()=>(function(t){t[t.popover="popover"]="popover",t[t.tooltip="tooltip"]="tooltip"}(fS||(fS={})),fS))(),pS=(()=>(function(t){t[t.left="left"]="left",t[t.center="center"]="center",t[t.right="right"]="right"}(pS||(pS={})),pS))(),jf=(()=>(function(t){t[t.all="all"]="all",t[t.focus="focus"]="focus",t[t.mouseover="mouseover"]="mouseover"}(jf||(jf={})),jf))();let Uu=(()=>{class t{constructor(e,i,r){this.tooltipService=e,this.viewContainerRef=i,this.renderer=r,this.tooltipCssClass="",this.tooltipTitle="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=aa.top,this.tooltipAlignment=pS.center,this.tooltipType=fS.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=jf.all,this.tooltipImmediateExit=!1,this.show=new vt,this.hide=new vt}get listensForFocus(){return this.tooltipShowEvent===jf.all||this.tooltipShowEvent===jf.focus}get listensForHover(){return this.tooltipShowEvent===jf.all||this.tooltipShowEvent===jf.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(e){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(e))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(e){if(this.component||this.tooltipDisabled)return;const i=e?0:this.tooltipShowTimeout;clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const r=this.createBoundOptions();this.component=this.tooltipService.create(r),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},i)}addHideListeners(e){this.mouseEnterContentEvent=this.renderer.listen(e,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(e,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen(document,"click",i=>{e.contains(i.target)||this.hideTooltip()}))}hideTooltip(e=!1){if(!this.component)return;const i=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),e?i():this.timeout=setTimeout(i,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return t.\u0275fac=function(e){return new(e||t)(Ae(VI),Ae(gl),Ae(Hs))},t.\u0275dir=bn({type:t,selectors:[["","ngx-tooltip",""]],hostBindings:function(e,i){1&e&&He("focusin",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(o){return i.onMouseLeave(o.target)})("click",function(){return i.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),t})(),cG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({providers:[nG,VI],imports:[ia]}),t})();function Qa(t){return t instanceof Date?t.toLocaleDateString():t.toLocaleString()}function wa(t){return t.toLocaleString().replace(/[&'`"<>]/g,n=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[n]))}const uG={};function Bl(){let t=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return t=`a${t}`,uG[t]?Bl():(uG[t]=!0,t)}let qI,ib=(()=>{class t{constructor(){this.type="standard",this.tooltipDisabled=!1,this.select=new vt,this.activate=new vt,this.deactivate=new vt,this.barVisible=!1}ngOnInit(){this.gradientId="grad"+Bl().toString(),this.gradientFill=`url(#${this.gradientId})`}ngOnChanges(e){this.update()}update(){this.circle=this.getActiveCircle()}getActiveCircle(){const e=this.data.series.findIndex(i=>{const r=i.name;return r&&this.visibleValue&&r.toString()===this.visibleValue.toString()&&void 0!==i.value});if(-1!==e)return this.mapDataPointToCircle(this.data.series[e],e)}mapDataPointToCircle(e,i){const r=this.data.name,o=e.value,s=e.name,a=Qa(s);let l;l=this.xScale("time"===this.scaleType?s:"linear"===this.scaleType?Number(s):s);const c=this.yScale("standard"===this.type?o:e.d1),h=this.yScale.range()[0]-c;let f;return f=this.colors.getColor("linear"===this.colors.scaleType?"standard"===this.type?o:e.d1:r),{classNames:[`circle-data-${i}`],value:o,label:s,data:Object.assign({},e,{series:r,value:o,name:s}),cx:l,cy:c,radius:5,height:h,tooltipLabel:a,color:f,opacity:1,seriesName:r,gradientStops:this.getGradientStops(f),min:e.min,max:e.max}}getTooltipText({tooltipLabel:e,value:i,seriesName:r,min:o,max:s}){return`\n ${wa(r)} \u2022 ${wa(e)}\n ${i.toLocaleString()}${this.getTooltipMinMaxText(o,s)}\n `}getTooltipMinMaxText(e,i){if(void 0!==e||void 0!==i){let r=" (";return void 0!==e?(void 0===i&&(r+="\u2265"),r+=e.toLocaleString(),void 0!==i&&(r+=" - ")):void 0!==i&&(r+="\u2264"),void 0!==i&&(r+=i.toLocaleString()),r+=")",r}return""}getGradientStops(e){return[{offset:0,color:e,opacity:.2},{offset:100,color:e,opacity:1}]}onClick(e){this.select.emit(e)}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(r=>e.name===r.name)}activateCircle(){this.barVisible=!0,this.activate.emit({name:this.data.name})}deactivateCircle(){this.barVisible=!1,this.circle.opacity=0,this.deactivate.emit({name:this.data.name})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ln({type:t,selectors:[["g","ngx-charts-circle-series",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",visibleValue:"visibleValue",activeEntries:"activeEntries",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[ui],attrs:fje,decls:1,vars:1,consts:[[4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],["class","tooltip-bar",4,"ngIf"],["ngx-charts-circle","","ngx-tooltip","",1,"circle",3,"cx","cy","r","fill","pointerEvents","data","classNames","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"],[1,"tooltip-bar"]],template:function(e,i){1&e&&ye(0,mje,5,20,"g",0),2&e&&N("ngIf",i.circle)},dependencies:function(){return[Nn,Uu,gS,bg]},encapsulation:2,data:{animation:[ml("animationState",[Wa(":enter",[Jr({opacity:0}),Ua(250,Jr({opacity:1}))])])]},changeDetection:0}),t})(),gS=(()=>{class t{constructor(){this.select=new vt,this.activate=new vt,this.deactivate=new vt}onClick(){this.select.emit(this.data)}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}ngOnChanges(e){this.classNames=Array.isArray(this.classNames)?this.classNames.join(" "):"",this.classNames+="circle"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ln({type:t,selectors:[["g","ngx-charts-circle",""]],hostBindings:function(e,i){1&e&&He("click",function(){return i.onClick()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{classNames:"classNames",cx:"cx",cy:"cy",r:"r",fill:"fill",stroke:"stroke",data:"data",circleOpacity:"circleOpacity",pointerEvents:"pointerEvents"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[ui],attrs:vje,decls:1,vars:8,template:function(e,i){1&e&&(kt(),je(0,"circle")),2&e&&Ft("cx",i.cx)("cy",i.cy)("r",i.r)("fill",i.fill)("stroke",i.stroke)("opacity",i.circleOpacity)("class",i.classNames)("pointer-events",i.pointerEvents)},encapsulation:2,changeDetection:0}),t})(),bg=(()=>{class t{constructor(){this.orientation="vertical"}ngOnChanges(e){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%","horizontal"===this.orientation?this.x2="100%":"vertical"===this.orientation&&(this.y1="100%")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ln({type:t,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[ui],attrs:wje,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(e,i){1&e&&(kt(),A(0,"linearGradient",0),ye(1,xje,1,5,"stop",1),M()),2&e&&(N("id",i.name),Ft("x1",i.x1)("y1",i.y1)("x2",i.x2)("y2",i.y2),I(1),N("ngForOf",i.stops))},dependencies:[ti],encapsulation:2,changeDetection:0}),t})(),GI=(()=>{class t{constructor(e){this.opacity=1,this.startOpacity=.5,this.endOpacity=1,this.gradient=!1,this.animations=!0,this.select=new vt,this.initialized=!1,this.hasGradient=!1,this.element=e.nativeElement}ngOnChanges(e){this.initialized?this.update():(this.loadAnimation(),this.initialized=!0)}update(){this.gradientId="grad"+Bl().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl()}loadAnimation(){this.areaPath=this.startingPath,setTimeout(this.update.bind(this),100)}updatePathEl(){const e=La(this.element).select(".area");this.animations?e.transition().duration(750).attr("d",this.path):e.attr("d",this.path)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.startOpacity},{offset:100,color:this.fill,opacity:this.endOpacity}]}}return t.\u0275fac=function(e){return new(e||t)(Ae(xi))},t.\u0275cmp=ln({type:t,selectors:[["g","ngx-charts-area",""]],inputs:{opacity:"opacity",startOpacity:"startOpacity",endOpacity:"endOpacity",gradient:"gradient",animations:"animations",data:"data",path:"path",startingPath:"startingPath",fill:"fill",activeLabel:"activeLabel",stops:"stops"},outputs:{select:"select"},features:[ui],attrs:kje,decls:2,vars:5,consts:[[4,"ngIf"],[1,"area"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"]],template:function(e,i){1&e&&(ye(0,Dje,2,2,"defs",0),kt(),je(1,"path",1)),2&e&&(N("ngIf",i.gradient),I(1),Er("opacity",i.opacity),Ft("d",i.areaPath)("fill",i.gradient?i.gradientFill:i.fill))},dependencies:[Nn,bg],encapsulation:2,changeDetection:0}),t})();typeof window<"u"?qI=window:typeof global<"u"&&(qI=global);const gG=qI.MouseEvent;function XI(t,n=!1,e=!0){if("function"==typeof gG)return new gG(t,{bubbles:n,cancelable:e});{const i=document.createEvent("MouseEvent");return i.initEvent(t,n,e),i}}let rb=(()=>{class t{constructor(){this.anchorOpacity=0,this.anchorPos=-1,this.anchorValues=[],this.showPercentage=!1,this.tooltipDisabled=!1,this.hover=new vt}getValues(e){const i=[];for(const r of this.results){const o=r.series.find(a=>a.name.toString()===e.toString());let s=r.name;if(s instanceof Date&&(s=s.toLocaleDateString()),o){const a=o.name;let c,l=o.value;if(this.showPercentage&&(l=(o.d1-o.d0).toFixed(2)+"%"),"linear"===this.colors.scaleType){let h=l;o.d1&&(h=o.d1),c=this.colors.getColor(h)}else c=this.colors.getColor(r.name);const u=Object.assign({},o,{value:l,name:a,series:s,min:o.min,max:o.max,color:c});i.push(u)}}return i}mouseMove(e){const i=e.pageX-e.target.getBoundingClientRect().left,r=this.findClosestPointIndex(i),o=this.xSet[r];if(this.anchorPos=this.xScale(o),this.anchorPos=Math.max(0,this.anchorPos),this.anchorPos=Math.min(this.dims.width,this.anchorPos),this.anchorValues=this.getValues(o),this.anchorPos!==this.lastAnchorPos){const s=XI("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(s),this.anchorOpacity=.7,this.hover.emit({value:o}),this.showTooltip(),this.lastAnchorPos=this.anchorPos}}findClosestPointIndex(e){let i=0,r=this.xSet.length-1,o=Number.MAX_VALUE,s=0;for(;i<=r;){const a=(i+r)/2|0,l=this.xScale(this.xSet[a]),c=Math.abs(l-e);if(ce)){o=0,s=a;break}r=a-1}}return s}showTooltip(){const e=XI("mouseenter");this.tooltipAnchor.nativeElement.dispatchEvent(e)}hideTooltip(){const e=XI("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(e),this.anchorOpacity=0,this.lastAnchorPos=-1}getToolTipText(e){let i="";return i+=void 0!==e.series?e.series:"???",i+=": ",void 0!==e.value&&(i+=e.value.toLocaleString()),(void 0!==e.min||void 0!==e.max)&&(i+=" (",void 0!==e.min?(void 0===e.max&&(i+="\u2265"),i+=e.min.toLocaleString(),void 0!==e.max&&(i+=" - ")):void 0!==e.max&&(i+="\u2264"),void 0!==e.max&&(i+=e.max.toLocaleString()),i+=")"),i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ln({type:t,selectors:[["g","ngx-charts-tooltip-area",""]],viewQuery:function(e,i){if(1&e&&Do(Aje,5),2&e){let r;En(r=Mn())&&(i.tooltipAnchor=r.first)}},inputs:{showPercentage:"showPercentage",tooltipDisabled:"tooltipDisabled",dims:"dims",xSet:"xSet",xScale:"xScale",yScale:"yScale",results:"results",colors:"colors",tooltipTemplate:"tooltipTemplate"},outputs:{hover:"hover"},attrs:Eje,decls:6,vars:18,consts:[["y","0",1,"tooltip-area",2,"opacity","0","cursor","auto",3,"mousemove","mouseleave"],["defaultTooltipTemplate",""],["y","0","ngx-tooltip","",1,"tooltip-anchor",3,"tooltipDisabled","tooltipPlacement","tooltipType","tooltipSpacing","tooltipTemplate","tooltipContext","tooltipImmediateExit"],["tooltipAnchor",""],[1,"area-tooltip-container"],["class","tooltip-item",4,"ngFor","ngForOf"],[1,"tooltip-item"],[1,"tooltip-item-color"]],template:function(e,i){if(1&e&&(kt(),A(0,"g")(1,"rect",0),He("mousemove",function(o){return i.mouseMove(o)})("mouseleave",function(){return i.hideTooltip()}),M(),ye(2,Ije,2,1,"ng-template",null,1,go),je(4,"rect",2,3),M()),2&e){const r=Io(3);I(1),Ft("x",0)("width",i.dims.width)("height",i.dims.height),I(3),Er("opacity",i.anchorOpacity)("pointer-events","none"),N("@animationState",0!==i.anchorOpacity?"active":"inactive")("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement","right")("tooltipType","tooltip")("tooltipSpacing",15)("tooltipTemplate",i.tooltipTemplate?i.tooltipTemplate:r)("tooltipContext",i.anchorValues)("tooltipImmediateExit",!0),Ft("x",i.anchorPos)("width",1)("height",i.dims.height)}},dependencies:[ti,Uu],encapsulation:2,data:{animation:[ml("animationState",[Wa("inactive => active",[Jr({opacity:0}),Ua(250,Jr({opacity:.7}))]),Wa("active => inactive",[Jr({opacity:.7}),Ua(250,Jr({opacity:0}))])])]},changeDetection:0}),t})(),ob=(()=>{class t{constructor(e,i){this.cd=i,this.height=50,this.select=new vt,this.onDomainChange=new vt,this.initialized=!1,this.element=e.nativeElement}ngOnChanges(e){this.update(),this.initialized||(this.addBrush(),this.initialized=!0)}update(){this.dims=this.getDims(),this.height=this.dims.height;const e=this.view[1]-this.height;this.xDomain=this.getXDomain(),this.xScale=this.getXScale(),this.brush&&this.updateBrush(),this.transform=`translate(0 , ${e})`,this.filterId="filter"+Bl().toString(),this.filter=`url(#${this.filterId})`,this.cd.markForCheck()}getXDomain(){let e=[];for(const r of this.results)for(const o of r.series)e.includes(o.name)||e.push(o.name);let i=[];return"time"===this.scaleType?i=[Math.min(...e),Math.max(...e)]:"linear"===this.scaleType?(e=e.map(s=>Number(s)),i=[Math.min(...e),Math.max(...e)]):i=e,i}getXScale(){let e;return"time"===this.scaleType?e=pg().range([0,this.dims.width]).domain(this.xDomain):"linear"===this.scaleType?e=jo().range([0,this.dims.width]).domain(this.xDomain):"ordinal"===this.scaleType&&(e=gg().range([0,this.dims.width]).padding(.1).domain(this.xDomain)),e}addBrush(){if(this.brush)return;const e=this.height,i=this.view[0];this.brush=function qRe(){return pI(QC)}().extent([[0,0],[i,e]]).on("brush end",()=>{const o=(fo.selection||this.xScale.range()).map(this.xScale.invert);this.onDomainChange.emit(o),this.cd.markForCheck()}),La(this.element).select(".brush").call(this.brush)}updateBrush(){this.brush&&(this.brush.extent([[0,0],[this.view[0],this.height]]),La(this.element).select(".brush").call(this.brush),La(this.element).select(".selection").attr("fill",void 0).attr("stroke",void 0).attr("fill-opacity",void 0),this.cd.markForCheck())}getDims(){return{width:this.view[0],height:this.height}}}return t.\u0275fac=function(e){return new(e||t)(Ae(xi),Ae(hs))},t.\u0275cmp=ln({type:t,selectors:[["g","ngx-charts-timeline",""]],inputs:{height:"height",view:"view",state:"state",results:"results",scheme:"scheme",customColors:"customColors",legend:"legend",miniChart:"miniChart",autoScale:"autoScale",scaleType:"scaleType"},outputs:{select:"select",onDomainChange:"onDomainChange"},features:[ui],attrs:Fje,ngContentSelectors:JW,decls:7,vars:4,consts:[[1,"timeline"],["in","SourceGraphic","type","matrix","values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"],[1,"embedded-chart"],["x","0","y","0",1,"brush-background"],[1,"brush"]],template:function(e,i){1&e&&(Tu(),kt(),A(0,"g",0)(1,"filter"),je(2,"feColorMatrix",1),M(),A(3,"g",2),Au(4),M(),je(5,"rect",3)(6,"g",4),M()),2&e&&(Ft("transform",i.transform),I(1),Ft("id",i.filterId),I(4),Ft("width",i.view[0])("height",i.height))},styles:[".timeline .brush-background{fill:rgba(0,0,0,.05)}.timeline .brush .selection{fill:rgba(0,0,0,.1);stroke:#888;stroke-width:1px}.timeline .brush .handle{fill-opacity:0}.timeline .embedded-chart{opacity:.6}"],encapsulation:2,changeDetection:0}),t})(),mG=(()=>{class t{constructor(e){this.cd=e,this.horizontal=!1,this.labelClick=new vt,this.labelActivate=new vt,this.labelDeactivate=new vt,this.legendEntries=[]}ngOnChanges(e){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const e=[];for(const i of this.data){const r=Qa(i);-1===e.findIndex(s=>s.label===r)&&e.push({label:i,formattedLabel:r,color:this.colors.getColor(i)})}return e}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(r=>e.label===r.name)}activate(e){this.labelActivate.emit(e)}deactivate(e){this.labelDeactivate.emit(e)}trackBy(e,i){return i.label}}return t.\u0275fac=function(e){return new(e||t)(Ae(hs))},t.\u0275cmp=ln({type:t,selectors:[["ngx-charts-legend"]],inputs:{horizontal:"horizontal",data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[ui],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(e,i){1&e&&(A(0,"div"),ye(1,Lje,3,1,"header",0),A(2,"div",1)(3,"ul",2),ye(4,Oje,2,4,"li",3),M()()()),2&e&&(Er("width",i.width,"px"),I(1),N("ngIf",(null==i.title?null:i.title.length)>0),I(2),Er("max-height",i.height-45,"px"),Kn("horizontal-legend",i.horizontal),I(1),N("ngForOf",i.legendEntries)("ngForTrackBy",i.trackBy))},dependencies:function(){return[ti,Nn,vG]},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{font-size:14px;font-weight:700;margin-bottom:5px;margin-left:10px;overflow:hidden;white-space:nowrap}.chart-legend li,.chart-legend ul{list-style:none;margin:0;padding:0}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{background:rgba(0,0,0,.05);border-radius:3px;float:left;line-height:85%;list-style:none;overflow-x:hidden;overflow-y:auto;text-align:left;white-space:nowrap;width:100%}.chart-legend .legend-label{color:#afb7c8;cursor:pointer;font-size:90%;margin:8px}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{border-radius:3px;color:#5b646b;display:inline-block;height:15px;margin-right:5px;width:15px}.chart-legend .legend-label-text{font-size:12px;line-height:15px;vertical-align:top;width:calc(100% - 20px)}.chart-legend .legend-label-text,.chart-legend .legend-title-text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-legend .legend-title-text{line-height:16px;vertical-align:bottom}"],encapsulation:2,changeDetection:0}),t})(),vG=(()=>{class t{constructor(){this.isActive=!1,this.select=new vt,this.activate=new vt,this.deactivate=new vt,this.toggle=new vt}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ln({type:t,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(e,i){1&e&&He("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(e,i){1&e&&(A(0,"span",0),He("click",function(){return i.select.emit(i.formattedLabel)}),A(1,"span",1),He("click",function(){return i.toggle.emit(i.formattedLabel)}),M(),A(2,"span",2),J(3),M()()),2&e&&(Kn("active",i.isActive),N("title",i.formattedLabel),I(1),Er("background-color",i.color),I(2),jn(" ",i.trimmedLabel," "))},encapsulation:2,changeDetection:0}),t})(),yG=(()=>{class t{constructor(e){this.sanitizer=e,this.horizontal=!1}ngOnChanges(e){const i=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle(`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${i})`)}gradientString(e,i){i.push(1);const r=[];return e.reverse().forEach((o,s)=>{r.push(`${o} ${Math.round(100*i[s])}%`)}),r.join(", ")}}return t.\u0275fac=function(e){return new(e||t)(Ae(QB))},t.\u0275cmp=ln({type:t,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[ui],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(e,i){1&e&&(A(0,"div",0)(1,"div",1)(2,"span"),J(3),M()(),je(4,"div",2),A(5,"div",1)(6,"span"),J(7),M()()()),2&e&&(Er("height",i.horizontal?void 0:i.height,"px")("width",i.width,"px"),Kn("horizontal-legend",i.horizontal),I(3),Xt(i.valueRange[1].toLocaleString()),I(1),Er("background",i.gradient),I(3),Xt(i.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{display:flex;flex-direction:column;text-align:center}.chart-legend .scale-legend-wrap{border-radius:5px;display:inline-block;flex:1;margin:0 auto;width:30px}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{height:30px;margin:0 16px;width:auto}"],encapsulation:2,changeDetection:0}),t})(),Wu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[ia,lG,cG,ia,lG,cG]}),t})();let _G=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class Ls{constructor(n,e,i,r){"string"==typeof n&&(n=_G.find(o=>o.name===n)),this.colorDomain=n.domain,this.scaleType=e,this.domain=i,this.customColors=r,this.scale=this.generateColorScheme(n,e,this.domain)}generateColorScheme(n,e,i){let r;if("string"==typeof n&&(n=_G.find(o=>o.name===n)),"quantile"===e)r=OW().range(n.domain).domain(i);else if("ordinal"===e)r=OI().range(n.domain).domain(i);else if("linear"===e){const o=[...n.domain];1===o.length&&(o.push(o[0]),this.colorDomain=o);const s=IW(0,1,1/o.length);r=jo().domain(s).range(o)}return r}getColor(n){if(null==n)throw new Error("Value can not be null");if("linear"===this.scaleType){const e=jo().domain(this.domain).range([0,1]);return this.scale(e(n))}{if("function"==typeof this.customColors)return this.customColors(n);const e=n.toString();let i;return this.customColors&&this.customColors.length>0&&(i=this.customColors.find(r=>r.name.toLowerCase()===e.toLowerCase())),i?i.value:this.scale(n)}}getLinearGradientStops(n,e){void 0===e&&(e=this.domain[0]);const i=jo().domain(this.domain).range([0,1]),r=Ja().domain(this.colorDomain).range([0,1]),o=this.getColor(n),s=i(e),a=this.getColor(e),l=i(n);let c=1,u=s;const h=[];for(h.push({color:a,offset:s,originalOffset:s,opacity:1});u=(l-r.bandwidth()).toFixed(4))break;h.push({color:d,offset:f,opacity:1}),u=f,c++}}if(h[h.length-1].offset<100&&h.push({color:o,offset:l,opacity:1}),l===s)h[0].offset=0,h[1].offset=100;else if(100!==h[h.length-1].offset)for(const d of h)d.offset=(d.offset-s)/(l-s)*100;return h}}let f6e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[Wu]}),t})(),xG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[Wu]}),t})(),g6e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[Wu]}),t})(),y6e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[Wu]}),t})(),kG=(()=>{class t{constructor(e){this.element=e,this.fill="none",this.animations=!0,this.select=new vt,this.initialized=!1}ngOnChanges(e){this.initialized?this.updatePathEl():(this.initialized=!0,this.initialPath=this.path)}updatePathEl(){const e=La(this.element.nativeElement).select(".line");this.animations?e.transition().duration(750).attr("d",this.path):e.attr("d",this.path)}}return t.\u0275fac=function(e){return new(e||t)(Ae(xi))},t.\u0275cmp=ln({type:t,selectors:[["g","ngx-charts-line",""]],inputs:{fill:"fill",animations:"animations",path:"path",stroke:"stroke",data:"data"},outputs:{select:"select"},features:[ui],attrs:n8e,decls:1,vars:4,consts:[["stroke-width","1.5px",1,"line"]],template:function(e,i){1&e&&(kt(),je(0,"path",0)),2&e&&(N("@animationState","active"),Ft("d",i.initialPath)("fill",i.fill)("stroke",i.stroke))},encapsulation:2,data:{animation:[ml("animationState",[Wa(":enter",[Jr({strokeDasharray:2e3,strokeDashoffset:2e3}),Ua(1e3,Jr({strokeDashoffset:0}))])])]},changeDetection:0}),t})(),b6e=(()=>{class t extends Cs{constructor(){super(...arguments),this.legendTitle="Legend",this.legendPosition="right",this.showGridLines=!0,this.curve=mg,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.showRefLines=!1,this.showRefLabels=!0,this.activate=new vt,this.deactivate=new vt,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.timelineHeight=50,this.timelinePadding=10}update(){super.update(),this.dims=function Fs({width:t,height:n,margins:e,showXAxis:i=!1,showYAxis:r=!1,xAxisHeight:o=0,yAxisWidth:s=0,showXLabel:a=!1,showYLabel:l=!1,showLegend:c=!1,legendType:u="ordinal",legendPosition:h="right",columns:d=12}){let f=e[3],p=t,m=n-e[0]-e[2];return c&&"right"===h&&(d-="ordinal"===u?2:1),p=p*d/12,p=p-e[1]-e[3],i&&(m-=5,m-=o,a&&(m-=30)),r&&(p-=5,p-=s,f+=s,f+=10,l&&(p-=30,f+=30)),p=Math.max(0,p),m=Math.max(0,m),{width:Math.floor(p),height:Math.floor(m),xOffset:Math.floor(f)}}({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height),this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`,this.clipPathId="clip"+Bl().toString(),this.clipPath=`url(#${this.clipPathId})`}updateTimeline(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform=`translate(${this.dims.xOffset}, ${-this.margin[2]})`)}getXDomain(){let e=function vS(t){const n=new Set;for(const e of t)for(const i of e.series)n.add(i.name);return Array.from(n)}(this.results);this.scaleType=function Bf(t,n=!0){return n&&t.every(r=>r instanceof Date)?"time":t.every(i=>"number"==typeof i)?"linear":"ordinal"}(e);let r,o,i=[];return"linear"===this.scaleType&&(e=e.map(s=>Number(s))),("time"===this.scaleType||"linear"===this.scaleType)&&(r=this.xScaleMin?this.xScaleMin:Math.min(...e),o=this.xScaleMax?this.xScaleMax:Math.max(...e)),"time"===this.scaleType?(i=[new Date(r),new Date(o)],this.xSet=[...e].sort((s,a)=>{const l=s.getTime(),c=a.getTime();return l>c?1:c>l?-1:0})):"linear"===this.scaleType?(i=[r,o],this.xSet=[...e].sort((s,a)=>s-a)):(i=e,this.xSet=e),i}getYDomain(){const e=[];for(const s of this.results)for(const a of s.series)e.indexOf(a.value)<0&&e.push(a.value),void 0!==a.min&&(this.hasRange=!0,e.indexOf(a.min)<0&&e.push(a.min)),void 0!==a.max&&(this.hasRange=!0,e.indexOf(a.max)<0&&e.push(a.max));const i=[...e];return this.autoScale||i.push(0),[this.yScaleMin?this.yScaleMin:Math.min(...i),this.yScaleMax?this.yScaleMax:Math.max(...i)]}getSeriesDomain(){return this.results.map(e=>e.name)}getXScale(e,i){let r;return"time"===this.scaleType?r=pg().range([0,i]).domain(e):"linear"===this.scaleType?(r=jo().range([0,i]).domain(e),this.roundDomains&&(r=r.nice())):"ordinal"===this.scaleType&&(r=gg().range([0,i]).padding(.1).domain(e)),r}getYScale(e,i){const r=jo().range([i,0]).domain(e);return this.roundDomains?r.nice():r}updateDomain(e){this.filteredDomain=e,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)}updateHoveredVertical(e){this.hoveredVertical=e.value,this.deactivateAll()}hideCircles(){this.hoveredVertical=null,this.deactivateAll()}onClick(e){this.select.emit(e)}trackBy(e,i){return i.name}setColors(){let e;e="ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.colors=new Ls(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===e.scaleType?(e.domain=this.seriesDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.yDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onActivate(e){this.deactivateAll(),!(this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value)>-1)&&(this.activeEntries=[e],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const e of this.activeEntries)this.deactivate.emit({value:e,entries:[]});this.activeEntries=[]}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=or(t)))(i||t)}}(),t.\u0275cmp=ln({type:t,selectors:[["ngx-charts-line-chart"]],contentQueries:function(e,i,r){if(1&e&&(Ci(r,sa,5),Ci(r,dS,5)),2&e){let o;En(o=Mn())&&(i.tooltipTemplate=o.first),En(o=Mn())&&(i.seriesTooltipTemplate=o.first)}},hostBindings:function(e,i){1&e&&He("mouseleave",function(){return i.hideCircles()})},inputs:{legendTitle:"legendTitle",legendPosition:"legendPosition",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",showRefLines:"showRefLines",showRefLabels:"showRefLabels",legend:"legend",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",autoScale:"autoScale",timeline:"timeline",gradient:"gradient",schemeType:"schemeType",rangeFillOpacity:"rangeFillOpacity",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",referenceLines:"referenceLines",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",yScaleMin:"yScaleMin",yScaleMax:"yScaleMax"},outputs:{activate:"activate",deactivate:"deactivate"},features:[Bi],decls:11,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"line-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","activeEntries","scaleType","curve","rangeFillOpacity","hasRange","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","tooltipDisabled","tooltipTemplate","hover"],[4,"ngFor","ngForOf"],["ngx-charts-circle-series","",3,"xScale","yScale","colors","data","scaleType","visibleValue","activeEntries","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","scaleType","curve","hasRange","animations"]],template:function(e,i){1&e&&(A(0,"ngx-charts-chart",0),He("legendLabelClick",function(o){return i.onClick(o)})("legendLabelActivate",function(o){return i.onActivate(o)})("legendLabelDeactivate",function(o){return i.onDeactivate(o)}),kt(),A(1,"defs")(2,"clipPath"),je(3,"rect"),M()(),A(4,"g",1),ye(5,i8e,1,10,"g",2),ye(6,r8e,1,12,"g",3),A(7,"g"),ye(8,o8e,2,11,"g",4),ye(9,a8e,3,9,"g",5),M()(),ye(10,c8e,2,13,"g",6),M()),2&e&&(N("view",Kr(17,qo,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),I(2),Ft("id",i.clipPathId),I(1),Ft("width",i.dims.width+10)("height",i.dims.height+10)("transform","translate(-5, -5)"),I(1),Ft("transform",i.transform),I(1),N("ngIf",i.xAxis),I(1),N("ngIf",i.yAxis),I(1),Ft("clip-path",i.clipPath),I(1),N("ngForOf",i.results)("ngForTrackBy",i.trackBy),I(1),N("ngIf",!i.tooltipDisabled),I(1),N("ngIf",i.timeline&&"ordinal"!=i.scaleType))},dependencies:function(){return[ti,Nn,ic,jl,rb,xs,ib,ob,_6e]},styles:[".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:none}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:none}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{opacity:.2;transition:opacity .1s ease-in-out}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{fill:none;stroke:#ddd;stroke-width:1}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-dasharray:5;stroke-dashoffset:5;stroke-width:1}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill:#000;fill-opacity:.05}.ngx-charts .gridline-path-dotted{fill:none;stroke:#ddd;stroke-dasharray:1,20;stroke-dashoffset:3;stroke-width:1}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}"],encapsulation:2,data:{animation:[ml("animationState",[Wa(":leave",[Jr({opacity:1}),Ua(500,Jr({opacity:0}))])])]},changeDetection:0}),t})(),_6e=(()=>{class t{constructor(){this.animations=!0}ngOnChanges(e){this.update()}update(){this.updateGradients();const e=this.sortData(this.data.series),i=this.getLineGenerator();this.path=i(e)||"";const r=this.getAreaGenerator();if(this.areaPath=r(e)||"",this.hasRange){const o=this.getRangeGenerator();this.outerPath=o(e)||""}if(this.hasGradient){this.stroke=this.gradientUrl;const o=this.data.series.map(l=>l.value),s=Math.max(...o);s===Math.min(...o)&&(this.stroke=this.colors.getColor(s))}else this.stroke=this.colors.getColor(this.data.name)}getLineGenerator(){return aS().x(e=>{const i=e.name;let r;return r=this.xScale("time"===this.scaleType?i:"linear"===this.scaleType?Number(i):i),r}).y(e=>this.yScale(e.value)).curve(this.curve)}getRangeGenerator(){return Sv().x(e=>{const i=e.name;let r;return r=this.xScale("time"===this.scaleType?i:"linear"===this.scaleType?Number(i):i),r}).y0(e=>this.yScale("number"==typeof e.min?e.min:e.value)).y1(e=>this.yScale("number"==typeof e.max?e.max:e.value)).curve(this.curve)}getAreaGenerator(){return Sv().x(i=>this.xScale(i.name)).y0(()=>this.yScale.range()[0]).y1(i=>this.yScale(i.value)).curve(this.curve)}sortData(e){return"linear"===this.scaleType?function YI(t,n,e="asc"){return t.sort((i,r)=>"asc"===e?i[n]-r[n]:r[n]-i[n])}(e,"name"):"time"===this.scaleType?function JI(t,n,e="asc"){return t.sort((i,r)=>{const o=i[n].getTime(),s=r[n].getTime();return"asc"===e?o>s?1:s>o?-1:0:o>s?-1:s>o?1:0})}(e,"name"):function KI(t,n,e="asc",i){return t.sort((r,o)=>{const a=o[n],l=i.indexOf(r[n]),c=i.indexOf(a);return"asc"===e?l-c:c-l})}(e,"name","asc",this.xScale.domain())}updateGradients(){if("linear"===this.colors.scaleType){this.hasGradient=!0,this.gradientId="grad"+Bl().toString(),this.gradientUrl=`url(#${this.gradientId})`;const e=this.data.series.map(o=>o.value),i=Math.max(...e),r=Math.min(...e);this.gradientStops=this.colors.getLinearGradientStops(i,r),this.areaGradientStops=this.colors.getLinearGradientStops(i)}else this.hasGradient=!1,this.gradientStops=void 0,this.areaGradientStops=void 0}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(r=>e.name===r.name)}isInactive(e){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(r=>e.name===r.name)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ln({type:t,selectors:[["g","ngx-charts-line-series",""]],inputs:{animations:"animations",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",curve:"curve",activeEntries:"activeEntries",rangeFillOpacity:"rangeFillOpacity",hasRange:"hasRange"},features:[ui],attrs:u8e,decls:6,vars:22,consts:[["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops",4,"ngIf"],["ngx-charts-area","",1,"line-highlight",3,"data","path","fill","opacity","startOpacity","gradient","stops","animations"],["ngx-charts-line","",1,"line-series",3,"data","path","stroke","animations"],["ngx-charts-area","","class","line-series-range",3,"data","path","fill","active","inactive","opacity","animations",4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],["ngx-charts-area","",1,"line-series-range",3,"data","path","fill","opacity","animations"]],template:function(e,i){1&e&&(kt(),A(0,"g")(1,"defs"),ye(2,h8e,1,2,"g",0),M(),je(3,"g",1)(4,"g",2),ye(5,d8e,1,9,"g",3),M()),2&e&&(I(2),N("ngIf",i.hasGradient),I(1),Kn("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),N("data",i.data)("path",i.areaPath)("fill",i.hasGradient?i.gradientUrl:i.colors.getColor(i.data.name))("opacity",.25)("startOpacity",0)("gradient",!0)("stops",i.areaGradientStops)("animations",i.animations),I(1),Kn("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),N("data",i.data)("path",i.path)("stroke",i.stroke)("animations",i.animations),I(1),N("ngIf",i.hasRange))},dependencies:[Nn,GI,bg,kG],encapsulation:2,changeDetection:0}),t})(),DG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[Wu]}),t})();Math;let tF=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[Wu]}),t})(),k6e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[Wu,tF,DG]}),t})(),E6e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[Wu]}),t})(),F6e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[Wu]}),t})(),N6e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[Wu,tF,xG]}),t})(),$6e=(()=>{class t{constructor(){!function R6e(){typeof SVGElement<"u"&&typeof SVGElement.prototype.contains>"u"&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[Wu,f6e,xG,g6e,y6e,DG,k6e,E6e,tF,F6e,N6e]}),t})();function P6e(t,n){if(1&t&&(A(0,"ngb-alert",19),je(1,"img",20),A(2,"h6",21),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("An error occurred: ",e.error,"")}}function j6e(t,n){1&t&&je(0,"img",31)}function B6e(t,n){1&t&&je(0,"img",32)}function H6e(t,n){1&t&&je(0,"img",33)}function V6e(t,n){1&t&&je(0,"img",34)}function z6e(t,n){if(1&t&&(A(0,"tr",24)(1,"td"),va(2,25),ye(3,j6e,1,0,"img",26),ye(4,B6e,1,0,"img",27),ye(5,H6e,1,0,"img",28),ye(6,V6e,1,0,"img",29),ya(),A(7,"span"),J(8),M()(),A(9,"td"),J(10),A(11,"span",30),J(12),M()(),A(13,"td"),J(14),A(15,"span",30),J(16),M()(),A(17,"td"),J(18),A(19,"span",30),J(20),M()(),A(21,"td"),J(22),A(23,"span",30),J(24),M()()()),2&t){const e=n.$implicit,i=te(2);I(2),N("ngSwitch",e.health),I(1),N("ngSwitchCase",0),I(1),N("ngSwitchCase",1),I(1),N("ngSwitchCase",2),I(1),N("ngSwitchCase",3),I(2),Xt(e.name),I(2),jn("",e.session_count," "),I(1),N("hidden",!i.showDelta),I(1),jn("(",i.getMaxSessionCount()-e.session_count," delta)"),I(2),jn("",e.presence_count," "),I(1),N("hidden",!i.showDelta),I(1),jn("(",i.getMaxPresenceCount()-e.presence_count," delta)"),I(2),jn("",e.match_count," "),I(1),N("hidden",!i.showDelta),I(1),jn("(",i.getMaxMatchCount()-e.match_count," delta)"),I(2),jn("",e.goroutine_count," "),I(1),N("hidden",!i.showDelta),I(1),jn("(",i.getMaxGoroutineCount()-e.goroutine_count," delta)")}}function U6e(t,n){if(1&t&&(A(0,"tbody"),ye(1,z6e,25,18,"tr",22),A(2,"tr",3),je(3,"td",23),A(4,"th",3),J(5),M(),A(6,"th",3),J(7),M(),A(8,"th",3),J(9),M(),A(10,"th",3),J(11),M()()()),2&t){const e=te();I(1),N("ngForOf",e.statusData.nodes),I(4),Xt(e.getTotalSessionCount()),I(2),Xt(e.getMaxPresenceCount()),I(2),Xt(e.getTotalMatchCount()),I(2),Xt(e.getTotalGorountineCount())}}function W6e(t,n){if(1&t&&(A(0,"option",35),J(1),M()),2&t){const e=n.$implicit,i=te();Ld("value",e),I(1),Xt(i.ranges[e])}}const _S=function(t){return{"background-color":t}};function G6e(t,n){if(1&t&&(A(0,"span"),je(1,"br")(2,"span",41),A(3,"span",42),J(4),M()()),2&t){const e=n.$implicit;I(2),N("ngStyle",Lr(3,_S,e.color)),I(2),$h("",e.series,": ",e.value,"")}}function q6e(t,n){if(1&t&&(A(0,"div",39),J(1),ye(2,G6e,5,5,"span",40),M()),2&t){const e=n.model;I(1),jn(" ",e[0].name.toLocaleString()," "),I(1),N("ngForOf",e)}}function X6e(t,n){if(1&t&&(A(0,"div",36)(1,"ngx-charts-line-chart",37),ye(2,q6e,3,2,"ng-template",null,38,go),M()()),2&t){const e=te();I(1),N("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.latencyGraphData)}}function Y6e(t,n){if(1&t&&(A(0,"span"),je(1,"br")(2,"span",41),A(3,"span",42),J(4),M()()),2&t){const e=n.$implicit;I(2),N("ngStyle",Lr(3,_S,e.color)),I(2),$h("",e.series,": ",e.value,"")}}function K6e(t,n){if(1&t&&(A(0,"div",39),J(1),ye(2,Y6e,5,5,"span",40),M()),2&t){const e=n.model;I(1),jn(" ",e[0].name.toLocaleString()," "),I(1),N("ngForOf",e)}}function J6e(t,n){if(1&t&&(A(0,"div",36)(1,"ngx-charts-line-chart",43),ye(2,K6e,3,2,"ng-template",null,38,go),M()()),2&t){const e=te();I(1),N("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.rateGraphData)}}function Q6e(t,n){if(1&t&&(A(0,"span"),je(1,"br")(2,"span",41),A(3,"span",42),J(4),M()()),2&t){const e=n.$implicit;I(2),N("ngStyle",Lr(3,_S,e.color)),I(2),$h("",e.series,": ",e.value,"")}}function Z6e(t,n){if(1&t&&(A(0,"div",39),J(1),ye(2,Q6e,5,5,"span",40),M()),2&t){const e=n.model;I(1),jn(" ",e[0].name.toLocaleString()," "),I(1),N("ngForOf",e)}}function eBe(t,n){if(1&t&&(A(0,"div",36)(1,"ngx-charts-line-chart",44),ye(2,Z6e,3,2,"ng-template",null,38,go),M()()),2&t){const e=te();I(1),N("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.inputGraphData)}}function tBe(t,n){if(1&t&&(A(0,"span"),je(1,"br")(2,"span",41),A(3,"span",42),J(4),M()()),2&t){const e=n.$implicit;I(2),N("ngStyle",Lr(3,_S,e.color)),I(2),$h("",e.series,": ",e.value,"")}}function nBe(t,n){if(1&t&&(A(0,"div",39),J(1),ye(2,tBe,5,5,"span",40),M()),2&t){const e=n.model;I(1),jn(" ",e[0].name.toLocaleString()," "),I(1),N("ngForOf",e)}}function iBe(t,n){if(1&t&&(A(0,"div",36)(1,"ngx-charts-line-chart",45),ye(2,nBe,3,2,"ng-template",null,38,go),M()()),2&t){const e=te();I(1),N("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.outputGraphData)}}let rBe=(()=>{class t{constructor(e,i,r){be(this,"route",void 0),be(this,"consoleService",void 0),be(this,"formBuilder",void 0),be(this,"error",""),be(this,"showDelta",!1),be(this,"statusData",void 0),be(this,"rateGraphData",[]),be(this,"latencyGraphData",[]),be(this,"inputGraphData",[]),be(this,"outputGraphData",[]),be(this,"rangeForm",void 0),be(this,"ranges",{1:"last 1 minute",10:"last 10 minutes",30:"last 30 minutes",60:"last 1 hour",1440:"last 24 hours"}),be(this,"rangesKeys",Object.keys(this.ranges).map(o=>+o)),be(this,"colorScheme",{domain:["#5AA454","#E44D25","#1e59cf","#7aa3e5","#a8385d","#d0bd00"]}),be(this,"samples",60),be(this,"refreshTimer",void 0),be(this,"$refreshTimer",void 0),this.route=e,this.consoleService=i,this.formBuilder=r}ngOnInit(){this.rangeForm=this.formBuilder.group({rangeMinutes:[10]}),this.route.data.subscribe(e=>{this.initData(e[0]),this.refresh(),this.refreshTimer=sv(0,1e3*this.getPeriod()),this.$refreshTimer=this.refreshTimer.subscribe(r=>this.refresh())},e=>{this.error=e})}refresh(){this.consoleService.getStatus("").subscribe(e=>{this.statusData=e,this.rateGraphData=this.updateData(this.rateGraphData,"avg_rate_sec",e),this.latencyGraphData=this.updateData(this.latencyGraphData,"avg_latency_ms",e),this.inputGraphData=this.updateData(this.inputGraphData,"avg_input_kbs",e),this.outputGraphData=this.updateData(this.outputGraphData,"avg_output_kbs",e)})}generateSeries(){let e=new Date;e.setMilliseconds(0);const i=[];for(let r=0;r({name:r,value:0}))}initData(e){const i=this.generateSeries();this.latencyGraphData=e.map(r=>({name:r,series:i})),this.rateGraphData=e.map(r=>({name:r,series:i})),this.inputGraphData=e.map(r=>({name:r,series:i})),this.outputGraphData=e.map(r=>({name:r,series:i}))}updateData(e,i,r){const o=r.nodes,s=[],a=r.timestamp,l=e.map(h=>h.name),c=o.map(h=>h.name),u=this.diff(l,c);for(const h of e)u.includes(h.name)&&s.push({name:h.name,series:this.shiftData(h.series,0,a)});for(const h of o){let d=[],f={};const p=e.find(m=>m.name===h.name)?.series;d=this.shiftData(p||this.generateSeries(),h[i],a),f={name:h.name,series:d},s.push(f)}return s}shiftData(e,i,r){const o=e.slice(1);return o.push({name:new Date(r),value:i}),o}getPeriod(){return Math.floor(60*this.f.rangeMinutes.value/this.samples)}setRange(e){this.rangeForm.reset({rangeMinutes:+e.target.value}),this.reset()}reset(){this.consoleService.getStatus("").subscribe(e=>{this.initData(e.nodes.map(i=>i.name)),this.$refreshTimer?.unsubscribe(),this.refreshTimer=sv(0,1e3*this.getPeriod()),this.$refreshTimer=this.refreshTimer.subscribe(i=>this.refresh())},e=>{this.error=e})}diff(e,i){const r=new Set(e);for(const o of i)r.delete(o);return Array.from(r)}get f(){return this.rangeForm.controls}ngOnDestroy(){this.$refreshTimer.unsubscribe()}getTotalSessionCount(){return this.statusData.nodes.reduce((e,i)=>e+i.session_count,0)}getMaxSessionCount(){return Math.max(...this.statusData.nodes.map(e=>e.session_count))}getMaxPresenceCount(){return Math.max(...this.statusData.nodes.map(e=>e.presence_count))}getMaxMatchCount(){return Math.max(...this.statusData.nodes.map(e=>e.match_count))}getTotalMatchCount(){return this.statusData.nodes.reduce((e,i)=>e+i.match_count,0)}getMaxGoroutineCount(){return Math.max(...this.statusData.nodes.map(e=>e.goroutine_count))}getTotalGorountineCount(){return this.statusData.nodes.reduce((e,i)=>e+i.goroutine_count,0)}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Ui),Ae(Pl))}),be(t,"\u0275cmp",ln({type:t,selectors:[["app-status"]],decls:62,vars:10,consts:[[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],[1,"status-table","table","table-sm","table-striped","mb-4",3,"mouseover","mouseout"],[1,"thead-light"],["scope","col"],[4,"ngIf"],[3,"formGroup"],[1,"row","no-gutters","justify-content-end"],[1,"col-12","text-right"],["ngbDropdown","","role","group",1,"btn-group"],["formControlName","rangeMinutes",1,"custom-select","custom-select-sm","ml-3",3,"change"],[3,"value",4,"ngFor","ngForOf"],[1,"row"],[1,"col-6","d-inline-flex","justify-content-between","align-items-center"],[1,"graph-title"],[1,"d-inline"],[1,"col-6"],["class","graph",4,"ngIf"],[1,"row","mt-4"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["class","clickable",4,"ngFor","ngForOf"],[1,"border-0"],[1,"clickable"],[3,"ngSwitch"],["class","mr-2","src","/static/svg/green-tick.svg","alt","","width","15","height","","ngbTooltip","OK",4,"ngSwitchCase"],["class","mr-2","src","/static/svg/red-triangle.svg","alt","","width","15","height","","ngbTooltip","Error",4,"ngSwitchCase"],["class","mr-2","src","/static/blue-spinner.svg","alt","","width","15","height","","ngbTooltip","Connecting",4,"ngSwitchCase"],["class","mr-2","src","/static/red-spinner.svg","alt","","width","15","height","","ngbTooltip","Disconnecting",4,"ngSwitchCase"],[1,"text-muted","small",3,"hidden"],["src","/static/svg/green-tick.svg","alt","","width","15","height","","ngbTooltip","OK",1,"mr-2"],["src","/static/svg/red-triangle.svg","alt","","width","15","height","","ngbTooltip","Error",1,"mr-2"],["src","/static/blue-spinner.svg","alt","","width","15","height","","ngbTooltip","Connecting",1,"mr-2"],["src","/static/red-spinner.svg","alt","","width","15","height","","ngbTooltip","Disconnecting",1,"mr-2"],[3,"value"],[1,"graph"],["xAxisLabel","Time","yAxisLabel","Latency (ms)",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"],["seriesTooltipTemplate",""],[1,"chart-legend"],[4,"ngFor","ngForOf"],[1,"legend-label-color",3,"ngStyle"],[1,"legend-label-text"],["xAxisLabel","Time","yAxisLabel","Request Count",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"],["xAxisLabel","Time","yAxisLabel","Input (kb/s)",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"],["xAxisLabel","Time","yAxisLabel","Output (kb/s)",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"]],template:function(e,i){1&e&&(A(0,"h2",0),J(1,"Status"),M(),ye(2,P6e,4,2,"ngb-alert",1),A(3,"table",2),He("mouseover",function(){return i.showDelta=!0})("mouseout",function(){return i.showDelta=!1}),A(4,"thead",3)(5,"tr")(6,"th",4),J(7,"Node name"),M(),A(8,"th",4),J(9,"Sessions"),M(),A(10,"th",4),J(11,"Presences"),M(),A(12,"th",4),J(13,"Authoritative Matches"),M(),A(14,"th",4),J(15,"Goroutines"),M()()(),ye(16,U6e,12,5,"tbody",5),M(),A(17,"form",6)(18,"div",7)(19,"div",8)(20,"span"),J(21,"View:"),M(),A(22,"div",9)(23,"select",10),He("change",function(o){return i.setRange(o)}),ye(24,W6e,2,2,"option",11),function WA(t,n){const e=ao();let i;const r=t+rs;e.firstCreatePass?(i=function P_e(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=Ep(i.type)),s=zc(Ae);try{const a=lw(!1),l=o();return lw(a),function $ye(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,dn(),r,l),l}finally{zc(s)}}(25,"sortNumbers"),M()()()()(),A(26,"div",12)(27,"div",13)(28,"div",14)(29,"h5",15),J(30,"Processing Latency"),M(),A(31,"small"),J(32," (ms)"),M()()(),A(33,"div",13)(34,"div",14)(35,"h5",15),J(36,"Rate"),M(),A(37,"small"),J(38," (rpc/s)"),M()()()(),A(39,"div",12)(40,"div",16),ye(41,X6e,4,12,"div",17),M(),A(42,"div",16),ye(43,J6e,4,12,"div",17),M()(),A(44,"div",18)(45,"div",13)(46,"div",14)(47,"h5",15),J(48,"Input"),M(),A(49,"small"),J(50," (kb/s)"),M()()(),A(51,"div",13)(52,"div",14)(53,"h5",15),J(54,"Output"),M(),A(55,"small"),J(56," (kb/s)"),M()()()(),A(57,"div",12)(58,"div",16),ye(59,eBe,4,12,"div",17),M(),A(60,"div",16),ye(61,iBe,4,12,"div",17),M()()),2&e&&(I(2),N("ngIf",i.error),I(14),N("ngIf",i.statusData),I(1),N("formGroup",i.rangeForm),I(7),N("ngForOf",GA(25,8,i.rangesKeys)),I(17),N("ngIf",i.latencyGraphData.length>0),I(2),N("ngIf",i.rateGraphData.length>0),I(16),N("ngIf",i.inputGraphData.length>0),I(2),N("ngIf",i.outputGraphData.length>0))},dependencies:function(){return[ti,Nn,wB,cx,bB,Go,Bu,tLe,b6e,bl,by,_y,rv,vl,yl,Ea,Ya,sBe]},styles:[".graph[_ngcontent-%COMP%]{height:450px;border-radius:5px;border:solid 1px #dadae9}.graph-title[_ngcontent-%COMP%]{padding:.5rem .5rem .5rem 0}.table[_ngcontent-%COMP%]{table-layout:fixed}h4[_ngcontent-%COMP%]{margin-bottom:0}.status-table[_ngcontent-%COMP%]{empty-cells:hide}.status-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fff}.status-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:solid 1px #dadae9;padding:.6em 1em;font-weight:500}.status-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:solid 1px #dadae9;padding:.6em 1em}.status-table[_ngcontent-%COMP%] .total-row[_ngcontent-%COMP%]{border:solid 2px #dadae9;background-color:#f5f5f5}.status-table[_ngcontent-%COMP%] .total-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:solid 2px #dadae9}"]})),t})(),oBe=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.getStatus("").pipe(et(r=>oi(r.nodes.map(o=>o.name)))).pipe(tc(r=>(e.data={...e.data,error:r},oi([]))))}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})(),sBe=(()=>{class t{transform(e){return e.sort((i,r)=>i-r)}}return be(t,"\u0275fac",function(e){return new(e||t)}),be(t,"\u0275pipe",Tl({name:"sortNumbers",type:t,pure:!1})),t})();var aBe=Ye(870),nF=Ye(327);const lBe=["fileSelector"];function cBe(t,n){if(1&t&&(A(0,"div",8),J(1),M()),2&t){const e=te(2);I(1),Xt(e.dropZoneLabel)}}function uBe(t,n){if(1&t){const e=Bt();A(0,"div")(1,"input",9),He("click",function(r){return st(e),at(te(2).openFileSelector(r))}),M()()}if(2&t){const e=te(2);I(1),Ld("value",e.browseBtnLabel),N("className",e.browseBtnClassName)}}function hBe(t,n){if(1&t&&(ye(0,cBe,2,1,"div",6),ye(1,uBe,2,2,"div",7)),2&t){const e=te();N("ngIf",e.dropZoneLabel),I(1),N("ngIf",e.showBrowseBtn)}}function dBe(t,n){}const fBe=function(t){return{openFileSelector:t}};class wS{constructor(n,e){this.relativePath=n,this.fileEntry=e}}let LG=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(Ae(Ki))},t.\u0275dir=bn({type:t,selectors:[["","ngx-file-drop-content-tmp",""]]}),t})(),OG=(()=>{class t{constructor(e,i){this.zone=e,this.renderer=i,this.accept="*",this.directory=!1,this.multiple=!0,this.dropZoneLabel="",this.dropZoneClassName="ngx-file-drop__drop-zone",this.useDragEnter=!1,this.contentClassName="ngx-file-drop__content",this.showBrowseBtn=!1,this.browseBtnClassName="btn btn-primary btn-xs ngx-file-drop__browse-btn",this.browseBtnLabel="Browse files",this.onFileDrop=new vt,this.onFileOver=new vt,this.onFileLeave=new vt,this.isDraggingOverDropZone=!1,this.globalDraggingInProgress=!1,this.files=[],this.numOfActiveReadEntries=0,this.helperFormEl=null,this.fileInputPlaceholderEl=null,this.dropEventTimerSubscription=null,this._disabled=!1,this.openFileSelector=r=>{this.fileSelector&&this.fileSelector.nativeElement&&this.fileSelector.nativeElement.click()},this.globalDragStartListener=this.renderer.listen("document","dragstart",r=>{this.globalDraggingInProgress=!0}),this.globalDragEndListener=this.renderer.listen("document","dragend",r=>{this.globalDraggingInProgress=!1})}get disabled(){return this._disabled}set disabled(e){this._disabled=null!=e&&"false"!=`${e}`}ngOnDestroy(){this.dropEventTimerSubscription&&(this.dropEventTimerSubscription.unsubscribe(),this.dropEventTimerSubscription=null),this.globalDragStartListener(),this.globalDragEndListener(),this.files=[],this.helperFormEl=null,this.fileInputPlaceholderEl=null}onDragOver(e){this.useDragEnter?(this.preventAndStop(e),e.dataTransfer&&(e.dataTransfer.dropEffect="copy")):!this.isDropzoneDisabled()&&!this.useDragEnter&&e.dataTransfer&&(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(e)),this.preventAndStop(e),e.dataTransfer.dropEffect="copy")}onDragEnter(e){!this.isDropzoneDisabled()&&this.useDragEnter&&(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(e)),this.preventAndStop(e))}onDragLeave(e){this.isDropzoneDisabled()||(this.isDraggingOverDropZone&&(this.isDraggingOverDropZone=!1,this.onFileLeave.emit(e)),this.preventAndStop(e))}dropFiles(e){if(!this.isDropzoneDisabled()&&(this.isDraggingOverDropZone=!1,e.dataTransfer)){let i;i=e.dataTransfer.items?e.dataTransfer.items:e.dataTransfer.files,this.preventAndStop(e),this.checkFiles(i)}}uploadFiles(e){!this.isDropzoneDisabled()&&e.target&&(this.checkFiles(e.target.files||[]),this.resetFileInput())}checkFiles(e){for(let i=0;il(r)},a=new wS(s.name,s);this.addToQueue(a)}}this.dropEventTimerSubscription&&this.dropEventTimerSubscription.unsubscribe(),this.dropEventTimerSubscription=sv(200,200).subscribe(()=>{if(this.files.length>0&&0===this.numOfActiveReadEntries){const i=this.files;this.files=[],this.onFileDrop.emit(i)}})}traverseFileTree(e,i){if(e.isFile){const r=new wS(i,e);this.files.push(r)}else{i+="/";const r=e.createReader();let o=[];const s=()=>{this.numOfActiveReadEntries++,r.readEntries(a=>{if(a.length)o=o.concat(a),s();else if(0===o.length){const l=new wS(i,e);this.zone.run(()=>{this.addToQueue(l)})}else for(let l=0;l{this.traverseFileTree(o[l],i+o[l].name)});this.numOfActiveReadEntries--})};s()}}resetFileInput(){if(this.fileSelector&&this.fileSelector.nativeElement){const e=this.fileSelector.nativeElement,i=e.parentElement,r=this.getHelperFormElement(),o=this.getFileInputPlaceholderElement();i!==r&&(this.renderer.insertBefore(i,o,e),this.renderer.appendChild(r,e),r.reset(),this.renderer.insertBefore(i,e,o),this.renderer.removeChild(i,o))}}getHelperFormElement(){return this.helperFormEl||(this.helperFormEl=this.renderer.createElement("form")),this.helperFormEl}getFileInputPlaceholderElement(){return this.fileInputPlaceholderEl||(this.fileInputPlaceholderEl=this.renderer.createElement("div")),this.fileInputPlaceholderEl}canGetAsEntry(e){return!!e.webkitGetAsEntry}isDropzoneDisabled(){return this.globalDraggingInProgress||this.disabled}addToQueue(e){this.files.push(e)}preventAndStop(e){e.stopPropagation(),e.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(Ae(br),Ae(Hs))},t.\u0275cmp=ln({type:t,selectors:[["ngx-file-drop"]],contentQueries:function(e,i,r){if(1&e&&Ci(r,LG,5,Ki),2&e){let o;En(o=Mn())&&(i.contentTemplate=o.first)}},viewQuery:function(e,i){if(1&e&&Do(lBe,7),2&e){let r;En(r=Mn())&&(i.fileSelector=r.first)}},inputs:{accept:"accept",directory:"directory",multiple:"multiple",dropZoneLabel:"dropZoneLabel",dropZoneClassName:"dropZoneClassName",useDragEnter:"useDragEnter",contentClassName:"contentClassName",showBrowseBtn:"showBrowseBtn",browseBtnClassName:"browseBtnClassName",browseBtnLabel:"browseBtnLabel",disabled:"disabled"},outputs:{onFileDrop:"onFileDrop",onFileOver:"onFileOver",onFileLeave:"onFileLeave"},decls:7,vars:15,consts:[[3,"className","drop","dragover","dragenter","dragleave"],[3,"className"],["type","file",1,"ngx-file-drop__file-input",3,"accept","multiple","change"],["fileSelector",""],["defaultContentTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ngx-file-drop__drop-zone-label",4,"ngIf"],[4,"ngIf"],[1,"ngx-file-drop__drop-zone-label"],["type","button",3,"className","value","click"]],template:function(e,i){if(1&e&&(A(0,"div",0),He("drop",function(o){return i.dropFiles(o)})("dragover",function(o){return i.onDragOver(o)})("dragenter",function(o){return i.onDragEnter(o)})("dragleave",function(o){return i.onDragLeave(o)}),A(1,"div",1)(2,"input",2,3),He("change",function(o){return i.uploadFiles(o)}),M(),ye(4,hBe,2,2,"ng-template",null,4,go),ye(6,dBe,0,0,"ng-template",5),M()()),2&e){const r=Io(5);Kn("ngx-file-drop__drop-zone--over",i.isDraggingOverDropZone),N("className",i.dropZoneClassName),I(1),N("className",i.contentClassName),I(1),N("accept",i.accept)("multiple",i.multiple),Ft("directory",i.directory||void 0)("webkitdirectory",i.directory||void 0)("mozdirectory",i.directory||void 0)("msdirectory",i.directory||void 0)("odirectory",i.directory||void 0),I(4),N("ngTemplateOutlet",i.contentTemplate||r)("ngTemplateOutletContext",Lr(13,fBe,i.openFileSelector))}},dependencies:[Nn,Nl],styles:[".ngx-file-drop__drop-zone[_ngcontent-%COMP%]{border:2px dotted #0782d0;border-radius:30px;height:100px;margin:auto}.ngx-file-drop__drop-zone--over[_ngcontent-%COMP%]{background-color:hsla(0,0%,57.6%,.5)}.ngx-file-drop__content[_ngcontent-%COMP%]{align-items:center;color:#0782d0;display:flex;height:100px;justify-content:center}.ngx-file-drop__drop-zone-label[_ngcontent-%COMP%]{text-align:center}.ngx-file-drop__file-input[_ngcontent-%COMP%]{display:none}"]}),t})(),pBe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t,bootstrap:function(){return[OG]}}),t.\u0275inj=Xi({imports:[ia]}),t})();function gBe(t,n){1&t&&(A(0,"ngb-alert",22),je(1,"img",23),A(2,"h6",24),J(3,"Failed to retrieve configuration."),M()()),2&t&&N("dismissible",!1)}function mBe(t,n){if(1&t&&(A(0,"span",33),J(1),M()),2&t){const e=te(2).$implicit;N("id",e.name),I(1),Xt(e.value)}}function vBe(t,n){1&t&&(A(0,"span",34),J(1,"(empty)"),M()),2&t&&N("id",te(2).$implicit.name)}function yBe(t,n){if(1&t&&(A(0,"div",35)(1,"b"),J(2),M(),A(3,"label",27)(4,"a",28),je(5,"img",10),M()()()),2&t){const e=te(2).index,i=te();I(2),Xt(i.flatConfig[e+1].name),I(1),N("for",i.flatConfig[e+1].name),I(1),jp("href","https://heroiclabs.com/docs/install-configuration/#",i.flatConfig[e+1].name,"",m1)}}function bBe(t,n){if(1&t&&(A(0,"span",33),J(1),M()),2&t){const e=te(3).index,i=te();N("id",i.flatConfig[e+1].name),I(1),Xt(i.flatConfig[e+1].value)}}function _Be(t,n){if(1&t&&(A(0,"span",34),J(1,"(empty)"),M()),2&t){const e=te(3).index;N("id",te().flatConfig[e+1].name)}}function wBe(t,n){if(1&t&&(A(0,"div",36),ye(1,bBe,2,2,"span",29),ye(2,_Be,2,1,"span",30),M()),2&t){const e=te(2).index,i=te();I(1),N("ngIf",!i.isEmpty(i.flatConfig[e+1].value)),I(1),N("ngIf",i.isEmpty(i.flatConfig[e+1].value))}}function xBe(t,n){if(1&t&&(A(0,"div",26)(1,"div",7)(2,"b"),J(3),M(),A(4,"label",27)(5,"a",28),je(6,"img",10),M()()(),A(7,"div",7),ye(8,mBe,2,2,"span",29),ye(9,vBe,2,1,"span",30),M(),ye(10,yBe,6,3,"div",31),ye(11,wBe,3,2,"div",32),M()),2&t){const e=te(),i=e.index,r=e.$implicit,o=te();Kn("border-top-0",i>0),I(3),Xt(r.name),I(1),N("for",r.name),I(1),jp("href","https://heroiclabs.com/docs/install-configuration/#",r.value.name,"",m1),I(3),N("ngIf",!o.isEmpty(r.value)),I(1),N("ngIf",o.isEmpty(r.value)),I(1),N("ngIf",i{class t{constructor(e,i,r,o,s,a){be(this,"config",void 0),be(this,"route",void 0),be(this,"httpClient",void 0),be(this,"modalService",void 0),be(this,"consoleService",void 0),be(this,"formBuilder",void 0),be(this,"configError",""),be(this,"uploadError",""),be(this,"deleteError",""),be(this,"jsonConfig",void 0),be(this,"flatConfig",void 0),be(this,"nakamaVersion",void 0),be(this,"file",void 0),be(this,"uploading",!1),be(this,"uploadSuccess",!1),be(this,"deleteSuccess",!1),be(this,"deleting",!1),be(this,"confirmDeleteForm",void 0),be(this,"apiConfig",void 0),this.config=e,this.route=i,this.httpClient=r,this.modalService=o,this.consoleService=s,this.formBuilder=a,this.apiConfig=e}ngOnInit(){this.route.data.subscribe(e=>{this.nakamaVersion=e[0].server_version;const i=JSON.parse(e[0].config);this.jsonConfig=i,this.flatConfig=this.flattenConfig(i)},e=>{this.configError=e}),this.confirmDeleteForm=this.formBuilder.group({delete:["",Wo.compose([Wo.required,Wo.pattern("DELETE")])]})}flattenConfig(e){const i=[];return this.traverseConfig("",e,i),i.sort((o,s)=>o.name.localeCompare(s.name))}traverseConfig(e,i,r){for(const o in i)"env"!==o&&(Array.isArray(i[o])?r.push({name:e+o,value:i[o].join(", ")}):"object"==typeof i[o]?this.traverseConfig(o+".",i[o],r):r.push({name:e+o,value:i[o]}))}isEmpty(e){return""===e||0===e}exportYaml(){const e=new Blob([(0,aBe.safeDump)(this.jsonConfig)],{type:"text/yaml;charset=utf-8"});nF.saveAs(e,"config.yaml")}dropped(e){this.uploadError="",this.uploadSuccess=!1;for(const i of e)if(i.fileEntry.isFile){const r=i.fileEntry.name.split(".");r.length>1&&["json","csv"].includes(r[r.length-1].toLowerCase())?i.fileEntry.file(a=>{this.uploadFile(a)}):this.uploadError="Invalid file: must have extension .json or .csv"}}uploadFile(e){const i=new FormData;i.append(e.name,e),this.uploading=!0,this.httpClient.post(this.apiConfig.host+"/v2/console/storage/import",i,{headers:{Authorization:"Bearer "}}).subscribe(()=>{this.uploading=!1,this.uploadSuccess=!0},o=>{this.uploading=!1,this.uploadError=o})}deleteData(){this.deleteError="",this.deleting=!0,this.consoleService.deleteAllData("").pipe(k3(2e3)).subscribe(()=>{this.deleting=!1,this.deleteError="",this.deleteSuccess=!0},e=>{this.deleting=!1,this.deleteError=e})}openDeleteDataModal(e){this.modalService.open(e,{centered:!0}).result.then(()=>{this.deleteData(),this.confirmDeleteForm.controls.delete.setValue("")},()=>{this.confirmDeleteForm.controls.delete.setValue("")})}get f(){return this.confirmDeleteForm.controls}ngOnDestroy(){}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(w3),Ae(co),Ae(_C),Ae(B3),Ae(Ui),Ae(Pl))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],decls:43,vars:11,consts:[["type","danger",3,"dismissible",4,"ngIf"],[1,"pb-4"],[1,"d-flex","justify-content-between","mb-4","align-items-baseline"],[1,"btn","btn-primary","btn-sm",3,"click"],[1,"config-table"],[4,"ngFor","ngForOf"],[1,"row","py-2","border","border-top-0","add-border-larger","mb-5"],[1,"col-lg-3"],[1,"pl-1"],["target","_blank","href","https://heroiclabs.com/docs/install-configuration/#runtime.env",1,"d-inline"],["src","/static/svg/hint.svg","alt","","width","16","height",""],[1,"col-lg-9"],[4,"ngIf"],[1,"section-divider","d-flex","mb-4"],["type","success",3,"dismissible","close",4,"ngIf"],["accept",".json,.csv","dropZoneClassName","drop-zone","contentClassName","drop-zone-content","dropZoneLabel","Drop CSV or JSON file here",3,"disabled","onFileDrop"],["ngx-file-drop-content-tmp",""],["role","alert",1,"alert","alert-danger","d-flex","justify-content-between","align-items-center"],["src","/static/svg/red-triangle.svg","alt","","width","16","height",""],[1,"pl-2"],["confirmDelete",""],["type","button",1,"btn","btn-danger",3,"disabled","click"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["class","row py-2 border",3,"border-top-0",4,"ngIf"],[1,"row","py-2","border"],[1,"pl-1",3,"for"],["target","_blank",1,"d-inline",3,"href"],["class","text-break-all",3,"id",4,"ngIf"],["class","text-muted",3,"id",4,"ngIf"],["class","col-md-3 left-line",4,"ngIf"],["class","col-md-3",4,"ngIf"],[1,"text-break-all",3,"id"],[1,"text-muted",3,"id"],[1,"col-md-3","left-line"],[1,"col-md-3"],["class","mb-0 text-break-all",4,"ngFor","ngForOf"],[1,"mb-0","text-break-all"],[1,"mb-0","text-muted"],[1,"mb-0","pl-4"],["type","success",3,"dismissible","close"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","button",1,"btn","btn-primary",3,"click"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-describedby","modal-title",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"d-flex","flex-column","justify-content-center"],[1,"mt-2"],["autocomplete","off",3,"formGroup"],["type","text","id","delete-confirm","placeholder","Type 'DELETE' to confirm","formControlName","delete",1,"form-control",3,"ngClass"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"]],template:function(e,i){if(1&e){const r=Bt();ye(0,gBe,4,1,"ngb-alert",0),A(1,"h2",1),J(2,"Server Configuration"),M(),A(3,"div",2)(4,"h5")(5,"b"),J(6,"Server version:"),M(),J(7),M(),A(8,"button",3),He("click",function(){return i.exportYaml()}),J(9,"Export Configuration"),M()(),A(10,"div",4),ye(11,CBe,2,1,"ng-container",5),A(12,"div",6)(13,"div",7)(14,"b"),J(15,"runtime.env"),M(),A(16,"label",8)(17,"a",9),je(18,"img",10),M()()(),A(19,"div",11),ye(20,kBe,2,1,"div",12),ye(21,DBe,3,0,"div",12),M()()(),A(22,"h5",13),J(23,"Import storage data"),M(),A(24,"p"),J(25,"Import storage objects from a CSV or JSON file by dragging and dropping it below."),M(),ye(26,TBe,6,2,"ngb-alert",0),ye(27,ABe,4,1,"ngb-alert",14),A(28,"ngx-file-drop",15),He("onFileDrop",function(s){return i.dropped(s)}),ye(29,EBe,2,0,"ng-template",16),M(),A(30,"h5",13),J(31,"Delete all data"),M(),ye(32,MBe,6,2,"ngb-alert",0),ye(33,IBe,4,1,"ngb-alert",14),A(34,"div",17)(35,"div"),je(36,"img",18),A(37,"small",19),J(38,"Warning - this operation is not reversible!"),M()(),ye(39,LBe,19,5,"ng-template",null,20,go),A(41,"button",21),He("click",function(){st(r);const s=Io(40);return at(i.openDeleteDataModal(s))}),J(42,"Delete all"),M()()}2&e&&(N("ngIf",i.configError),I(7),jn(" ",i.nakamaVersion,""),I(4),N("ngForOf",i.flatConfig),I(9),N("ngIf",i.jsonConfig.runtime&&i.jsonConfig.runtime.env&&i.jsonConfig.runtime.env.length>0),I(1),N("ngIf",i.jsonConfig.runtime&&i.jsonConfig.runtime.env&&0===i.jsonConfig.runtime.env.length),I(5),N("ngIf",i.uploadError),I(1),N("ngIf",i.uploadSuccess),I(1),N("disabled",i.uploading),I(4),N("ngIf",i.deleteError),I(1),N("ngIf",i.deleteSuccess),I(8),N("disabled",i.deleting))},dependencies:[OG,LG,Pd,ti,Nn,Go,bl,qa,vl,yl,Ea,Ya],styles:["label[_ngcontent-%COMP%]{margin-bottom:0}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.text-break-all[_ngcontent-%COMP%]{word-break:break-all;word-wrap:anywhere}.config-table[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:nth-child(even){background-color:#fafafc}.config-table[_ngcontent-%COMP%] .left-line[_ngcontent-%COMP%]{border-left:solid 1px #dadae9}"]})),t})(),NBe=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.getConfig("")}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function RBe(t,n){if(1&t&&(A(0,"ngb-alert",48),je(1,"img",49),A(2,"h6",50),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("An error occurred: ",e.error,"")}}function $Be(t,n){1&t&&(A(0,"tr")(1,"td",51),J(2,"No additional users are setup. Create a new user below."),M()()),2&t&&(I(1),N("colSpan",4))}function PBe(t,n){if(1&t){const e=Bt();A(0,"tr")(1,"td"),J(2),M(),A(3,"td"),J(4),M(),A(5,"td")(6,"span",36),J(7,"Administrator"),M(),A(8,"span",36),J(9,"Developer"),M(),A(10,"span",36),J(11,"Maintainer"),M(),A(12,"span",36),J(13,"View Only"),M()(),A(14,"td")(15,"button",52),He("click",function(){const o=st(e).$implicit;return at(te().deleteUser(o.username))}),J(16,"Delete"),M()()()}if(2&t){const e=n.$implicit,i=te();I(2),Xt(e.username),I(2),Xt(e.email),I(2),N("hidden",e.role!==i.adminRole),I(2),N("hidden",e.role!==i.developerRole),I(2),N("hidden",e.role!==i.maintainerRole),I(2),N("hidden",e.role!==i.readonlyRole)}}function jBe(t,n){if(1&t&&(A(0,"ngb-alert",48),je(1,"img",49),A(2,"h6",50),J(3,"An error occurred:"),M(),A(4,"p",53),J(5),M()()),2&t){const e=te();N("dismissible",!1),I(5),Xt(e.userCreateError)}}const iF=function(t){return{"is-invalid":t}};let BBe=(()=>{class t{constructor(e,i,r){be(this,"route",void 0),be(this,"consoleService",void 0),be(this,"formBuilder",void 0),be(this,"error",""),be(this,"userCreateError",""),be(this,"users",[]),be(this,"createUserForm",void 0),be(this,"adminRole",Di.USER_ROLE_ADMIN),be(this,"developerRole",Di.USER_ROLE_DEVELOPER),be(this,"maintainerRole",Di.USER_ROLE_MAINTAINER),be(this,"readonlyRole",Di.USER_ROLE_READONLY),this.route=e,this.consoleService=i,this.formBuilder=r}ngOnInit(){this.createUserForm=this.formBuilder.group({username:["",Wo.required],email:["",[Wo.required,Wo.email]],password:["",Wo.compose([Wo.required,Wo.minLength(8)])],role:[+this.readonlyRole,Wo.required],newsletter:[!1]}),this.route.data.subscribe(e=>{const i=e[0];this.users.length=0,this.users.push(...i.users)},e=>{this.error=e})}deleteUser(e){this.error="",this.consoleService.deleteUser("",e).pipe(et(()=>this.consoleService.listUsers(""))).subscribe(i=>{this.error="",this.users.length=0,this.users.push(...i.users)},i=>{this.error=i})}addUser(){this.userCreateError="",this.createUserForm.disable();let e=Di.USER_ROLE_READONLY;switch(this.f.role.value){case 1:e=Di.USER_ROLE_ADMIN;break;case 2:e=Di.USER_ROLE_DEVELOPER;break;case 3:e=Di.USER_ROLE_MAINTAINER;break;case 4:e=Di.USER_ROLE_READONLY}this.consoleService.addUser("",{username:this.f.username.value,email:this.f.email.value,password:this.f.password.value,role:e,newsletter_subscription:this.f.newsletter.value}).pipe(et(()=>this.consoleService.listUsers(""))).subscribe(r=>{this.userCreateError="",this.createUserForm.reset({role:+e}),this.createUserForm.enable(),this.users.length=0,this.users.push(...r.users)},r=>{this.userCreateError=r,this.createUserForm.enable()})}get f(){return this.createUserForm.controls}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Ui),Ae(Pl))}),be(t,"\u0275cmp",ln({type:t,selectors:[["app-users"]],decls:121,vars:24,consts:[[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],[1,"user-details","mb-5","table","table-bordered","table-sm","table-striped"],[1,"thead-light"],[2,"width","400px"],[2,"width","300px"],[2,"width","90px"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"section-divider","d-flex","mb-4"],[1,"mb-4","alert-permissions",3,"type"],[1,"alert-title","font-weight-bold"],[1,"d-flex","flex-wrap","flex-row"],[1,"col","col-md-3","p-4","flex-fill","flex-grow-1"],[1,"d-flex","align-items-center","mb-3"],["src","/static/svg/role-admin.svg","alt","","width","30","height","",1,"mr-2"],[1,"m-0","font-weight-bold"],["src","/static/svg/role-developer.svg","alt","","width","30","height","",1,"mr-2"],["src","/static/svg/role-maintainer.svg","alt","","width","30","height","",1,"mr-2"],["src","/static/svg/role-viewonly.svg","alt","","width","30","height","",1,"mr-2"],[1,"add-border","rounded"],[3,"formGroup","ngSubmit"],[1,"row","no-gutters"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"col-md-3"],["for","email",1,"d-inline"],[1,"col-md-9","ml-0","p-0"],["type","email","id","email","placeholder","email@example.com","required","","formControlName","email",1,"form-control",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","username",1,"d-inline"],["type","text","id","username","placeholder","Username","required","","formControlName","username",1,"form-control",3,"ngClass"],["for","password",1,"d-inline"],["type","password","id","password","placeholder","Password","required","","formControlName","password",1,"form-control",3,"ngClass"],[1,"d-inline"],[1,"btn-group"],["disabled","",1,"btn","btn-outline-dark","disabled"],[3,"hidden"],["ngbDropdown","","role","group",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-primary","dropdown-toggle-split"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click"],[1,"row","no-gutters","add-border-single-row-bottom","mb-4"],[1,"col","d-flex","align-items-center"],[1,"custom-control","custom-checkbox"],["type","checkbox","id","newsletter","formControlName","newsletter",1,"custom-control-input","mr-2","my-2"],["for","newsletter",1,"form-check-label","custom-control-label"],[1,""],["type","submit",1,"btn","btn-primary",3,"disabled"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[1,"text-muted",3,"colSpan"],["type","button",1,"btn","btn-danger","btn-outline-dark",3,"click"],[1,"mb-0","pl-4"]],template:function(e,i){1&e&&(A(0,"h2",0),J(1,"User Management"),M(),ye(2,RBe,4,2,"ngb-alert",1),A(3,"table",2)(4,"thead",3)(5,"tr")(6,"th",4),J(7,"Username"),M(),A(8,"th"),J(9,"Email"),M(),A(10,"th",5),J(11,"Role"),M(),A(12,"th",6),J(13,"Action"),M()()(),A(14,"tbody"),ye(15,$Be,3,1,"tr",7),ye(16,PBe,17,6,"tr",8),M()(),A(17,"h5",9),J(18,"Add new user"),M(),A(19,"ngb-alert",10)(20,"h6",11),J(21,"User roles"),M(),A(22,"div",12)(23,"div",13)(24,"div",14),je(25,"img",15),A(26,"h6",16),J(27,"Administrator"),M()(),A(28,"small"),J(29," Owners have complete control over the server, its users and resources. "),M()(),A(30,"div",13)(31,"div",14),je(32,"img",17),A(33,"h6",16),J(34,"Developer"),M()(),A(35,"small"),J(36," Like Administrators, Developers have complete control over the server, resources and data. However they cannot add, change or delete console users. "),M()(),A(37,"div",13)(38,"div",14),je(39,"img",18),A(40,"h6",16),J(41,"Maintainer"),M()(),A(42,"small"),J(43," Maintainers have access to adding, changing and delete client resources such as accounts, storage and leaderboard records. They don't have access to the API Explorer or the console users. "),M()(),A(44,"div",13)(45,"div",14),je(46,"img",19),A(47,"h6",16),J(48,"View Only"),M()(),A(49,"small"),J(50," View Only users can only view client resources but cannot make any changes to the data whatsoever. "),M()()()(),ye(51,jBe,6,2,"ngb-alert",1),A(52,"div",20)(53,"form",21),He("ngSubmit",function(){return i.addUser()}),A(54,"div",22)(55,"div",23)(56,"div",24)(57,"label",25),J(58,"Email"),M()(),A(59,"div",26),je(60,"input",27),A(61,"div",28),J(62,"Email is required"),M()()()(),A(63,"div",22)(64,"div",23)(65,"div",24)(66,"label",29),J(67,"Username"),M()(),A(68,"div",26),je(69,"input",30),A(70,"div",28),J(71,"Username is required"),M()()()(),A(72,"div",22)(73,"div",23)(74,"div",24)(75,"label",31),J(76,"Password"),M()(),A(77,"div",26),je(78,"input",32),A(79,"div",28),J(80,"Password is required, must be 8 chars or longer and consist of at least a capital letter, a small letter and a number."),M()()()(),A(81,"div",22)(82,"div",23)(83,"div",24)(84,"label",33),J(85,"Role"),M()(),A(86,"div",26)(87,"div",34)(88,"button",35)(89,"span",36),J(90,"Administrator"),M(),A(91,"span",36),J(92,"Developer"),M(),A(93,"span",36),J(94,"Maintainer"),M(),A(95,"span",36),J(96,"View Only"),M()(),A(97,"div",37),je(98,"button",38),A(99,"div",39)(100,"button",40),He("click",function(){return i.f.role.setValue(+i.adminRole)}),J(101,"Administrator"),M(),A(102,"button",40),He("click",function(){return i.f.role.setValue(+i.developerRole)}),J(103,"Developer"),M(),A(104,"button",40),He("click",function(){return i.f.role.setValue(+i.maintainerRole)}),J(105,"Maintainer"),M(),A(106,"button",40),He("click",function(){return i.f.role.setValue(+i.readonlyRole)}),J(107,"View Only"),M()()()(),A(108,"div",28),J(109,"Role is required"),M()()()(),A(110,"div",41)(111,"div",42),je(112,"div",24),A(113,"div",26)(114,"div",43),je(115,"input",44),A(116,"label",45),J(117,"Subscribe to Heroic Labs' newsletters to receive latest updates to Nakama and other news."),M()()()()(),A(118,"div",46)(119,"button",47),J(120,"Save"),M()()()()),2&e&&(I(2),N("ngIf",i.error),I(13),N("ngIf",0===i.users.length),I(1),N("ngForOf",i.users),I(3),N("type","secondary"),I(32),N("ngIf",i.userCreateError),I(2),N("formGroup",i.createUserForm),I(7),N("ngClass",Lr(18,iF,i.f.email.dirty&&i.f.email.errors)),I(1),N("hidden",i.f.email.disabled||i.f.email.valid||i.f.email.pristine),I(8),N("ngClass",Lr(20,iF,i.f.username.dirty&&i.f.username.errors)),I(1),N("hidden",i.f.username.disabled||i.f.username.valid||i.f.username.pristine),I(8),N("ngClass",Lr(22,iF,i.f.password.dirty&&i.f.password.errors)),I(1),N("hidden",i.f.password.disabled||i.f.password.valid||i.f.password.pristine),I(10),N("hidden",i.f.role.value!==+i.adminRole),I(2),N("hidden",i.f.role.value!==+i.developerRole),I(2),N("hidden",i.f.role.value!==+i.maintainerRole),I(2),N("hidden",i.f.role.value!==+i.readonlyRole),I(13),N("hidden",i.f.role.disabled||i.f.role.valid||i.f.role.pristine),I(11),N("disabled",i.createUserForm.invalid))},dependencies:[Pd,ti,Nn,Go,Bu,rg,Rf,Nf,bl,qa,oC,vl,yl,Ff,Ea,Ya],styles:[".user-details[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fff}.user-details[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:.6em 1em;font-weight:500}.user-details[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.6em 1em}.alert-permissions[_ngcontent-%COMP%]{padding:0}.alert-permissions[_ngcontent-%COMP%] .alert-title[_ngcontent-%COMP%]{padding:1rem}.alert-permissions[_ngcontent-%COMP%] .flex-row[_ngcontent-%COMP%]{border-top:solid 1px #dadae9;margin:0}.alert-permissions[_ngcontent-%COMP%] .flex-row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]{border-right:solid 1px #dadae9}.alert-permissions[_ngcontent-%COMP%] .flex-row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]:last-child{border-right:none}"]})),t})(),HBe=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.listUsers("")}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function VBe(t,n){if(1&t&&(A(0,"ngb-alert",10),je(1,"img",11),A(2,"h6",12),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("Failed to retrieve runtime information: ",e.error,"")}}function zBe(t,n){if(1&t&&(A(0,"tr")(1,"td"),J(2),M(),A(3,"td",13),J(4),M()()),2&t){const e=n.$implicit;I(2),Xt(e.path),I(2),Xt(e.mod_time)}}function UBe(t,n){1&t&&(A(0,"tr")(1,"td",14),J(2,"No Go modules were found."),M(),je(3,"td"),M())}function WBe(t,n){if(1&t&&(A(0,"tr")(1,"td"),J(2),M(),A(3,"td",13),J(4),M()()),2&t){const e=n.$implicit;I(2),Xt(e.path),I(2),Xt(e.mod_time)}}function GBe(t,n){1&t&&(A(0,"tr")(1,"td",14),J(2,"No Lua modules were found."),M(),je(3,"td"),M())}function qBe(t,n){if(1&t&&(A(0,"tr")(1,"td"),J(2),M(),A(3,"td",13),J(4),M()()),2&t){const e=n.$implicit;I(2),Xt(e.path),I(2),Xt(e.mod_time)}}function XBe(t,n){1&t&&(A(0,"tr")(1,"td",14),J(2,"No JavaScript modules were found."),M(),je(3,"td"),M())}const rF=function(){return["/apiexplorer"]},oF=function(t){return{endpoint:t}};function YBe(t,n){if(1&t&&(A(0,"tr")(1,"td")(2,"code"),J(3),M()(),A(4,"td",15)(5,"a",16),J(6,"API Explorer"),M()()()),2&t){const e=n.$implicit;I(3),Xt(e),I(2),N("routerLink",Ll(3,rF))("queryParams",Lr(4,oF,e))}}function KBe(t,n){1&t&&(A(0,"tr")(1,"td",17),J(2,"No Go RPC functions were found."),M()())}function JBe(t,n){if(1&t&&(A(0,"tr")(1,"td")(2,"code"),J(3),M()(),A(4,"td",15)(5,"a",16),J(6,"API Explorer"),M()()()),2&t){const e=n.$implicit;I(3),Xt(e),I(2),N("routerLink",Ll(3,rF))("queryParams",Lr(4,oF,e))}}function QBe(t,n){1&t&&(A(0,"tr")(1,"td",17),J(2,"No Lua RPC functions were found."),M()())}function ZBe(t,n){if(1&t&&(A(0,"tr")(1,"td")(2,"code"),J(3),M()(),A(4,"td",15)(5,"a",16),J(6,"API Explorer"),M()()()),2&t){const e=n.$implicit;I(3),Xt(e),I(2),N("routerLink",Ll(3,rF))("queryParams",Lr(4,oF,e))}}function e7e(t,n){1&t&&(A(0,"tr")(1,"td",17),J(2,"No JavaScript RPC functions were found."),M()())}let t7e=(()=>{class t{constructor(e,i){be(this,"route",void 0),be(this,"consoleService",void 0),be(this,"error",""),be(this,"runtimeInfo",void 0),this.route=e,this.consoleService=i}ngOnInit(){this.route.data.subscribe(e=>{this.runtimeInfo=e[0]},e=>{this.error=e})}ngOnDestroy(){}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Ui))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],decls:51,vars:13,consts:[[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],[1,"runtime-table","mb-4","table","table-sm","table-bordered","mb-5"],[1,"thead-light"],[2,"width","180px"],[4,"ngFor","ngForOf"],[4,"ngIf"],["colspan","2"],[1,"mb-4","section-divider","d-flex"],[1,"runtime-table","table","table-sm","table-bordered"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","200px"],[1,"text-muted"],[2,"width","180px","text-align","center"],[1,"btn","btn-sm","btn-secondary",3,"routerLink","queryParams"],["colspan","2",1,"text-muted"]],template:function(e,i){1&e&&(A(0,"h2",0),J(1,"Runtime Modules"),M(),ye(2,VBe,4,2,"ngb-alert",1),A(3,"table",2)(4,"thead",3)(5,"tr")(6,"th"),J(7,"Go Modules"),M(),A(8,"th",4),J(9,"Last Modified"),M()()(),A(10,"tbody"),ye(11,zBe,5,2,"tr",5),ye(12,UBe,4,0,"tr",6),M(),A(13,"thead",3)(14,"tr")(15,"th",7),J(16,"Lua Modules"),M()()(),A(17,"tbody"),ye(18,WBe,5,2,"tr",5),ye(19,GBe,4,0,"tr",6),M(),A(20,"thead",3)(21,"tr")(22,"th",7),J(23,"JavaScript Modules"),M()()(),A(24,"tbody"),ye(25,qBe,5,2,"tr",5),ye(26,XBe,4,0,"tr",6),M()(),A(27,"h4",8),J(28,"Registered RPC Functions"),M(),A(29,"table",9)(30,"thead",3)(31,"tr")(32,"th",7),J(33,"Go RPC Functions"),M()()(),A(34,"tbody"),ye(35,YBe,7,6,"tr",5),ye(36,KBe,3,0,"tr",6),M(),A(37,"thead",3)(38,"tr")(39,"th",7),J(40,"Lua RPC Functions"),M()()(),A(41,"tbody"),ye(42,JBe,7,6,"tr",5),ye(43,QBe,3,0,"tr",6),M(),A(44,"thead",3)(45,"tr")(46,"th",7),J(47,"JavaScript RPC Functions"),M()()(),A(48,"tbody"),ye(49,ZBe,7,6,"tr",5),ye(50,e7e,3,0,"tr",6),M()()),2&e&&(I(2),N("ngIf",i.error),I(9),N("ngForOf",i.runtimeInfo.go_modules),I(1),N("ngIf",0===i.runtimeInfo.go_modules.length),I(6),N("ngForOf",i.runtimeInfo.lua_modules),I(1),N("ngIf",0===i.runtimeInfo.lua_modules.length),I(6),N("ngForOf",i.runtimeInfo.js_modules),I(1),N("ngIf",0===i.runtimeInfo.js_modules.length),I(9),N("ngForOf",i.runtimeInfo.go_rpc_functions),I(1),N("ngIf",0===i.runtimeInfo.go_rpc_functions.length),I(6),N("ngForOf",i.runtimeInfo.lua_rpc_functions),I(1),N("ngIf",0===i.runtimeInfo.lua_rpc_functions.length),I(6),N("ngForOf",i.runtimeInfo.js_rpc_functions),I(1),N("ngIf",0===i.runtimeInfo.js_rpc_functions.length))},dependencies:[Ru,ti,Nn,Go],styles:["label[_ngcontent-%COMP%]{margin-bottom:0}.opaque[_ngcontent-%COMP%]{opacity:40%}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.runtime-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fff}.runtime-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:.6em 1em;font-weight:500}.runtime-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-left:1em;padding-right:1em;vertical-align:middle}"]})),t})(),n7e=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.getRuntime("")}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function i7e(t,n){1&t&&(A(0,"span"),J(1,"Filter by collection"),M())}function r7e(t,n){if(1&t&&(A(0,"span"),J(1),M()),2&t){const e=te();I(1),Xt(e.f.collection.value)}}function o7e(t,n){if(1&t){const e=Bt();A(0,"button",34),He("click",function(){const o=st(e).$implicit;return at(te().f.collection.setValue(o))}),J(1),M()}if(2&t){const e=n.$implicit;I(1),Xt(e)}}function s7e(t,n){if(1&t&&(A(0,"ngb-alert",35),je(1,"img",36),A(2,"h6",37),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("Error when querying storage objects: ",e.error,"")}}function a7e(t,n){1&t&&(A(0,"th",38),J(1,"Remove"),M())}function l7e(t,n){1&t&&(A(0,"tr")(1,"td",39),J(2,"No storage objects found - change the filter criteria or add new objects."),M()())}function c7e(t,n){if(1&t){const e=Bt();A(0,"td",42)(1,"button",43),He("click",function(r){st(e);const o=te(),s=o.index,a=o.$implicit;return at(te().deleteObject(r,s,a))}),J(2,"Delete"),M()()}}function u7e(t,n){if(1&t){const e=Bt();A(0,"tr")(1,"td",40),He("click",function(){const o=st(e).$implicit;return at(te().viewObject(o))}),J(2),M(),A(3,"td",40),He("click",function(){const o=st(e).$implicit;return at(te().viewObject(o))}),J(4),M(),A(5,"td",40),He("click",function(){const o=st(e).$implicit;return at(te().viewObject(o))}),J(6),M(),A(7,"td",40),He("click",function(){const o=st(e).$implicit;return at(te().viewObject(o))}),J(8),M(),ye(9,c7e,3,0,"td",41),M()}if(2&t){const e=n.$implicit,i=te();I(2),Xt(e.collection),I(2),Xt(e.key),I(2),Xt(e.user_id),I(2),Xt(e.update_time),I(1),N("ngIf",i.deleteAllowed())}}let h7e=(()=>{class t{constructor(e,i,r,o,s){be(this,"route",void 0),be(this,"router",void 0),be(this,"consoleService",void 0),be(this,"authService",void 0),be(this,"formBuilder",void 0),be(this,"systemUserId","00000000-0000-0000-0000-000000000000"),be(this,"error",""),be(this,"collections",[]),be(this,"objects",[]),be(this,"objectCount",0),be(this,"nextCursor",""),be(this,"prevCursor",""),be(this,"searchForm",void 0),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.searchForm=this.formBuilder.group({collection:[""],key:[""],user_id:[""]});const e=this.route.snapshot.queryParamMap;this.f.collection.setValue(e.get("collection")),this.f.key.setValue(e.get("key")),this.f.user_id.setValue(e.get("user_id")),this.nextCursor=e.get("cursor"),this.nextCursor&&""!==this.nextCursor?this.search(1):(this.f.collection.value||this.f.user_id.value)&&this.search(0),this.route.data.subscribe(i=>{this.collections.length=0,this.collections.push(...i[0].collections),this.objectCount=i[1].total_count,this.nextCursor=i[1].next_cursor,this.prevCursor=i[1].prev_cursor,this.objects.length=0,this.objects.push(...i[1].objects)},i=>{this.error=i})}disableSearch(){return!(!this.f.key.value||""===this.f.key.value||this.f.collection.value&&""!==this.f.collection.value)}search(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listStorage("",this.f.user_id.value,this.f.key.value,this.f.collection.value,i).subscribe(r=>{this.error="",this.objectCount=r.total_count,this.nextCursor=r.next_cursor,this.objects.length=0,this.objects.push(...r.objects),this.router.navigate([],{relativeTo:this.route,queryParams:{collection:this.f.collection.value,key:this.f.key.value,user_id:this.f.user_id.value,cursor:i},queryParamsHandling:"merge"})},r=>{this.error=r})}deleteObject(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteStorageObject("",r.collection,r.key,r.user_id,r.version).subscribe(()=>{this.error="",this.objectCount--,this.objects.splice(i,1)},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}viewObject(e){this.router.navigate(["/storage",e.collection,e.key,e.user_id],{relativeTo:this.route})}get f(){return this.searchForm.controls}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Ui),Ae(ds),Ae(Pl))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],decls:50,vars:15,consts:[[1,"pb-1"],[1,"pb-4"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],[1,"input-group-prepend"],["ngbDropdown","",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary","dropdown-radius",3,"disabled"],[4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",1,"btn","btn-secondary","text-secondary",3,"hidden","click"],[1,"dropdown-divider",3,"hidden"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],["type","text","formControlName","key","placeholder","Filter by key",1,"form-control"],["type","text","formControlName","user_id","placeholder","Filter by user ID",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"input-group-text",3,"click"],["src","/static/svg/purple-cog-1.svg","alt","","width","20","height","",1,"mr-1"],["type","submit",1,"btn","btn-primary",3,"disabled","click"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngFor","ngForOf"],["type","button","ngbDropdownItem","",3,"click"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(e,i){1&e&&(A(0,"h2",0),J(1,"Storage Objects"),M(),A(2,"h6",1),J(3),M(),A(4,"div",2)(5,"div",3)(6,"div",4)(7,"form",5),He("ngSubmit",function(){return i.search(0)}),A(8,"div",6)(9,"div",7)(10,"div",8)(11,"button",9),ye(12,i7e,2,0,"span",10),ye(13,r7e,2,1,"span",10),M(),A(14,"div",11)(15,"button",12),He("click",function(){return i.f.collection.reset()}),J(16,"\u2718 Deselect collection"),M(),je(17,"div",13),ye(18,o7e,2,1,"button",14),M()()(),je(19,"input",15)(20,"input",16),A(21,"div",17)(22,"span",18),He("click",function(){return i.f.user_id.setValue(i.systemUserId)}),je(23,"img",19),M()(),A(24,"div",17)(25,"button",20),He("click",function(){return i.search(0)}),J(26,"Search"),M()()()()(),A(27,"div",21)(28,"div",22)(29,"button",23),He("click",function(){return i.search(0)}),je(30,"img",24),M(),A(31,"button",23),He("click",function(){return i.search(1)}),je(32,"img",25),M()()()()(),ye(33,s7e,4,2,"ngb-alert",26),A(34,"div",27)(35,"table",28)(36,"thead",29)(37,"tr")(38,"th"),J(39,"Collection Name"),M(),A(40,"th"),J(41,"Key Name"),M(),A(42,"th",30),J(43,"User ID"),M(),A(44,"th",31),J(45,"Last Update"),M(),ye(46,a7e,2,0,"th",32),M()(),A(47,"tbody"),ye(48,l7e,3,0,"tr",10),ye(49,u7e,10,5,"tr",33),M()()()),2&e&&(I(3),jn("",i.objectCount," objects found."),I(4),N("formGroup",i.searchForm),I(4),N("disabled",0===i.collections.length),I(1),N("ngIf",!i.f.collection.value||""===i.f.collection.value),I(1),N("ngIf",i.f.collection.value&&""!==i.f.collection.value),I(2),N("hidden",!i.f.collection.value||""===i.f.collection.value),I(2),N("hidden",!i.f.collection.value||""===i.f.collection.value),I(1),N("ngForOf",i.collections),I(7),N("disabled",i.disableSearch()),I(4),N("disabled",0===i.objects.length),I(2),N("disabled",""===i.nextCursor),I(2),N("ngIf",i.error),I(13),N("ngIf",i.deleteAllowed()),I(2),N("ngIf",0===i.objects.length),I(1),N("ngForOf",i.objects))},dependencies:[ti,Nn,Go,Bu,rg,Rf,Nf,bl,qa,vl,yl,Ea,Ya],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})),t})(),d7e=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.listStorageCollections("")}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})(),f7e=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.queryParamMap.get("collection"),o=e.queryParamMap.get("key"),s=e.queryParamMap.get("user_id");return this.consoleService.listStorage("",s,o,r,null)}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();var sF,NG,RG,$G,PG,jG,BG,HG,VG,zG,UG,WG,GG,qG,XG,YG,KG,JG,QG,ZG,eq,tq,nq,iq,rq,oq,sq,aq,lq,cq,uq,hq,dq,fq,pq,gq,mq,vq,yq,bq,_q,wq,xq,Cq,Sq,kq,Dq,Tq,Aq,Eq,Mq,Iq,Fq,Lq,Oq,Nq,Rq,$q,Pq,jq,Bq,Hq,Vq,zq,Uq,Wq,Gq,qq,Xq,Yq,Kq,Jq,Qq,Zq,eX,tX,nX,iX,rX,oX,sX,aX,lX,cX,uX,hX,dX,fX,pX,gX,mX,vX,yX,bX,_X,wX,xX,CX,SX,kX,DX,TX,AX,EX,MX,IX,FX,LX,OX,NX,RX,$X,PX,jX,BX,HX,VX,zX,UX,WX,GX,qX,XX,YX,KX,JX,QX,ZX,eY,tY,nY,iY,rY,oY,sY,aY,lY,cY,uY,hY,dY,fY,pY,gY,mY,vY,yY,bY,_Y,wY,xY,CY,SY,kY,DY,TY,AY,EY,MY,IY,FY,LY,OY,NY,RY,$Y,PY,jY,BY,HY,VY,zY,UY,WY,GY,qY,XY,YY,KY,JY,QY,ZY,eK,tK,nK,iK,rK,oK,sK,aK,lK,cK,uK,hK,dK,fK,pK,gK,mK,vK,yK,bK,_K,wK,xK,CK,SK,kK,DK,TK,AK,EK,MK,IK,FK,LK,OK,NK,RK,$K,PK,jK,BK,HK,VK,zK,UK,WK,GK,qK,XK,YK,KK,JK,QK,ZK,eJ,tJ,nJ,iJ,rJ,oJ,sJ,aJ,lJ,cJ,uJ,hJ,dJ,fJ,pJ,gJ,mJ,vJ,yJ,bJ,_J,wJ,xJ,CJ,SJ,kJ,DJ,TJ,AJ,EJ,MJ,IJ,FJ,LJ,OJ,NJ,RJ,$J,PJ,jJ,BJ,HJ,VJ,zJ,UJ,WJ,GJ,p7e=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],g7e=["mainAxis","crossAxis","limiter"];function sb(t){var n="function"==typeof Map?new Map:void 0;return sb=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return aF(e,arguments,_r(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ab(r,e)},sb(t)}function aF(t,n,e){return(aF=QJ()?Reflect.construct.bind():function(i,r,o){var s=[null];s.push.apply(s,r);var a=new(Function.bind.apply(i,s));return o&&ab(a,o.prototype),a}).apply(null,arguments)}function Je(t,n){return n||(n=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))}function qJ(t,n){if(null==t)return{};var e,i,r=function(s,a){if(null==s)return{};var l,c,u={},h=Object.keys(s);for(c=0;c=0||(u[l]=s[l]);return u}(t,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(r[e]=t[e])}return r}function ot(t,n){var e=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=xS(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(l){throw l},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){e=e.call(t)},n:function(){var l=e.next();return s=l.done,l},e:function(l){a=!0,o=l},f:function(){try{s||null==e.return||e.return()}finally{if(a)throw o}}}}function Rn(){Rn=function(){return t};var t={},n=Object.prototype,e=n.hasOwnProperty,i=Object.defineProperty||function(pe,De,ie){pe[De]=ie.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function l(pe,De,ie){return Object.defineProperty(pe,De,{value:ie,enumerable:!0,configurable:!0,writable:!0}),pe[De]}try{l({},"")}catch{l=function(De,ie,ge){return De[ie]=ge}}function c(pe,De,ie,ge){var le=Object.create((De&&De.prototype instanceof d?De:d).prototype),Fe=new re(ge||[]);return i(le,"_invoke",{value:B(pe,ie,Fe)}),le}function u(pe,De,ie){try{return{type:"normal",arg:pe.call(De,ie)}}catch(ge){return{type:"throw",arg:ge}}}t.wrap=c;var h={};function d(){}function f(){}function p(){}var m={};l(m,o,function(){return this});var w=Object.getPrototypeOf,C=w&&w(w(ce([])));C&&C!==n&&e.call(C,o)&&(m=C);var k=p.prototype=d.prototype=Object.create(m);function E(pe){["next","throw","return"].forEach(function(De){l(pe,De,function(ie){return this._invoke(De,ie)})})}function L(pe,De){function ie(we,le,Fe,z){var Q=u(pe[we],pe,le);if("throw"!==Q.type){var Z=Q.arg,me=Z.value;return me&&"object"==$n(me)&&e.call(me,"__await")?De.resolve(me.__await).then(function(ae){ie("next",ae,Fe,z)},function(ae){ie("throw",ae,Fe,z)}):De.resolve(me).then(function(ae){Z.value=ae,Fe(Z)},function(ae){return ie("throw",ae,Fe,z)})}z(Q.arg)}var ge;i(this,"_invoke",{value:function(we,le){function Fe(){return new De(function(z,Q){ie(we,le,z,Q)})}return ge=ge?ge.then(Fe,Fe):Fe()}})}function B(pe,De,ie){var ge="suspendedStart";return function(we,le){if("executing"===ge)throw new Error("Generator is already running");if("completed"===ge){if("throw"===we)throw le;return{value:void 0,done:!0}}for(ie.method=we,ie.arg=le;;){var Fe=ie.delegate;if(Fe){var z=G(Fe,ie);if(z){if(z===h)continue;return z}}if("next"===ie.method)ie.sent=ie._sent=ie.arg;else if("throw"===ie.method){if("suspendedStart"===ge)throw ge="completed",ie.arg;ie.dispatchException(ie.arg)}else"return"===ie.method&&ie.abrupt("return",ie.arg);ge="executing";var Q=u(pe,De,ie);if("normal"===Q.type){if(ge=ie.done?"completed":"suspendedYield",Q.arg===h)continue;return{value:Q.arg,done:ie.done}}"throw"===Q.type&&(ge="completed",ie.method="throw",ie.arg=Q.arg)}}}function G(pe,De){var ie=De.method,ge=pe.iterator[ie];if(void 0===ge)return De.delegate=null,"throw"===ie&&pe.iterator.return&&(De.method="return",De.arg=void 0,G(pe,De),"throw"===De.method)||"return"!==ie&&(De.method="throw",De.arg=new TypeError("The iterator does not provide a '"+ie+"' method")),h;var we=u(ge,pe.iterator,De.arg);if("throw"===we.type)return De.method="throw",De.arg=we.arg,De.delegate=null,h;var le=we.arg;return le?le.done?(De[pe.resultName]=le.value,De.next=pe.nextLoc,"return"!==De.method&&(De.method="next",De.arg=void 0),De.delegate=null,h):le:(De.method="throw",De.arg=new TypeError("iterator result is not an object"),De.delegate=null,h)}function oe(pe){var De={tryLoc:pe[0]};1 in pe&&(De.catchLoc=pe[1]),2 in pe&&(De.finallyLoc=pe[2],De.afterLoc=pe[3]),this.tryEntries.push(De)}function fe(pe){var De=pe.completion||{};De.type="normal",delete De.arg,pe.completion=De}function re(pe){this.tryEntries=[{tryLoc:"root"}],pe.forEach(oe,this),this.reset(!0)}function ce(pe){if(pe){var De=pe[o];if(De)return De.call(pe);if("function"==typeof pe.next)return pe;if(!isNaN(pe.length)){var ie=-1,ge=function we(){for(;++ie=0;--ge){var we=this.tryEntries[ge],le=we.completion;if("root"===we.tryLoc)return ie("end");if(we.tryLoc<=this.prev){var Fe=e.call(we,"catchLoc"),z=e.call(we,"finallyLoc");if(Fe&&z){if(this.prev=0;--ie){var ge=this.tryEntries[ie];if(ge.tryLoc<=this.prev&&e.call(ge,"finallyLoc")&&this.prev=0;--De){var ie=this.tryEntries[De];if(ie.finallyLoc===pe)return this.complete(ie.completion,ie.afterLoc),fe(ie),h}},catch:function(pe){for(var De=this.tryEntries.length-1;De>=0;--De){var ie=this.tryEntries[De];if(ie.tryLoc===pe){var ge=ie.completion;if("throw"===ge.type){var we=ge.arg;fe(ie)}return we}}throw new Error("illegal catch attempt")},delegateYield:function(pe,De,ie){return this.delegate={iterator:ce(pe),resultName:De,nextLoc:ie},"next"===this.method&&(this.arg=void 0),h}},t}function XJ(t,n,e,i,r,o,s){try{var a=t[o](s),l=a.value}catch(c){return void e(c)}a.done?n(l):Promise.resolve(l).then(i,r)}function Dr(t){return function(){var n=this,e=arguments;return new Promise(function(i,r){var o=t.apply(n,e);function s(l){XJ(o,i,r,s,a,"next",l)}function a(l){XJ(o,i,r,s,a,"throw",l)}s(void 0)})}}function di(t,n){return KJ(t)||function(e,i){var r=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,s,a,l,c=[],u=!0,h=!1;try{if(a=(r=r.call(e)).next,0===i){if(Object(r)!==r)return;u=!1}else for(;!(u=(o=a.call(r)).done)&&(c.push(o.value),c.length!==i);u=!0);}catch(d){h=!0,s=d}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(h)throw s}}return c}}(t,n)||xS(t,n)||YJ()}function YJ(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function KJ(t){if(Array.isArray(t))return t}function JJ(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,i)}return e}function _t(t){for(var n=1;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _r(t){return(_r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function qe(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function ZJ(t,n){for(var e=0;et.length)&&(n=t.length);for(var e=0,i=new Array(n);e32){for(var n=[],e=t.ctx.length/32,i=0;i2&&void 0!==arguments[2]?arguments[2]:{},i=e.bubbles,r=void 0!==i&&i,o=e.cancelable,s=void 0!==o&&o,a=document.createEvent("CustomEvent");return a.initCustomEvent(t,r,s,n),a}function qh(t,n){return new t(n)}var cb,SS=new Map,hF=0;function dQ(t,n,e,i,r,o,s){for(var a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,l=16.666/i,c="{\n",u=0;u<=1;u+=l){var h=n+(e-n)*o(u);c+=100*u+"%{".concat(s(h,1-h),"}\n")}var d=c+"100% {".concat(s(e,1-e),"}\n}"),f="__svelte_".concat(function w7e(t){for(var n=5381,e=t.length;e--;)n=(n<<5)-n^t.charCodeAt(e);return n>>>0}(d),"_").concat(a),p=uF(t),m=SS.get(p)||function x7e(t,n){var e={stylesheet:b7e(n),rules:{}};return SS.set(t,e),e}(p,t),w=m.stylesheet,C=m.rules;C[f]||(C[f]=!0,w.insertRule("@keyframes ".concat(f," ").concat(d),w.cssRules.length));var k=t.style.animation||"";return t.style.animation="".concat(k?"".concat(k,", "):"").concat(f," ").concat(i,"ms linear ").concat(r,"ms 1 both"),hF+=1,f}function ub(t){cb=t}function Dv(){if(!cb)throw new Error("Function called outside component initialization");return cb}function Zc(t){Dv().$$.on_mount.push(t)}function Gu(t){Dv().$$.on_destroy.push(t)}function fQ(){var t=Dv();return function(n,e){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).cancelable,s=t.$$.callbacks[n];if(s){var a=hQ(n,e,{cancelable:void 0!==r&&r});return s.slice().forEach(function(l){l.call(t,a)}),!a.defaultPrevented}return!0}}function pQ(t,n){return Dv().$$.context.set(t,n),n}function $a(t){return Dv().$$.context.get(t)}function kS(t,n){var e=this,i=t.$$.callbacks[n.type];i&&i.slice().forEach(function(r){return r.call(e,n)})}var Tv=[],dr=[],DS=[],dF=[],gQ=Promise.resolve(),fF=!1;function mQ(){fF||(fF=!0,gQ.then(vQ))}function oc(){return mQ(),gQ}function _g(t){DS.push(t)}function qu(t){dF.push(t)}var TS,pF=new Set,Av=0;function vQ(){if(0===Av){var t=cb;do{try{for(;Avl.start&&(a=h(l,E),l=null,gF(t,a.b,"start"),fe&&(u(),c=dQ(t,s,a.b,a.duration,0,B,o.css))),a&&(ce>=a.end?(oe(s=a.b,1-s),gF(t,a.b,"end"),l||(a.b?u():--a.group.r||Fo(a.group.c)),a=null):ce>=a.start&&(s=a.a+a.d*B((ce-a.start)/a.duration),oe(s,1-s))),!(!a&&!l)},0===lb.size&&cF(aQ),new Promise(function(ce){lb.add({c:p,f:ce})}))}return{run:function(f){Na(o)?(TS||(TS=Promise.resolve()).then(function(){TS=null}),TS).then(function(){o=o(r),d(f)}):d(f)},end:function(){u(),a=l=null}}}var mF=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function D7e(t,n){t.d(1),n.delete(t.key)}function vF(t,n){Ee(t,1,1,function(){n.delete(t.key)})}function MS(t,n,e,i,r,o,s,a,l,c,u,h){for(var d=t.length,f=o.length,p=d,m={};p--;)m[t[p].key]=p;var w=[],C=new Map,k=new Map;for(p=f;p--;){var E=h(r,o,p),L=e(E),B=s.get(L);B?i&&B.p(E,n):(B=c(L,E)).c(),C.set(L,w[p]=B),L in m&&k.set(L,Math.abs(p-m[L]))}var G=new Set,oe=new Set;function fe(ie){_e(ie,1),ie.m(a,u),s.set(ie.key,ie),u=ie.first,f--}for(;d&&f;){var re=w[f-1],ce=t[d-1],ue=re.key,pe=ce.key;re===ce?(u=re.first,d--,f--):C.has(pe)?!s.has(ue)||G.has(ue)?fe(re):oe.has(pe)?d--:k.get(ue)>k.get(pe)?(oe.add(ue),fe(re)):(G.add(pe),d--):(l(ce,s),d--)}for(;d--;){var De=t[d];C.has(De.key)||l(De,s)}for(;f;)fe(w[f-1]);return w}function wg(t,n){for(var e={},i={},r={$$scope:1},o=t.length;o--;){var s=t[o],a=n[o];if(a){for(var l in s)l in a||(i[l]=1);for(var c in a)r[c]||(e[c]=a[c],r[c]=1);t[o]=a}else for(var u in s)r[u]=1}for(var h in i)h in e||(e[h]=void 0);return e}function IS(t){return"object"===$n(t)&&null!==t?t:{}}function Xu(t,n,e){var i=t.$$.props[n];void 0!==i&&(t.$$.bound[i]=e,e(t.$$.ctx[i]))}function $t(t){t&&t.c()}function Nt(t,n,e,i){var r=t.$$,o=r.fragment,s=r.after_update;o&&o.m(n,e),i||_g(function(){var a,l=t.$$.on_mount.map(iQ).filter(Na);t.$$.on_destroy?(a=t.$$.on_destroy).push.apply(a,Ti(l)):Fo(l),t.$$.on_mount=[]}),s.forEach(_g)}function Rt(t,n){var e=t.$$;null!==e.fragment&&(Fo(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function ni(t,n,e,i,r,o,s){var a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1],l=cb;ub(t);var c=t.$$={fragment:null,ctx:[],props:o,update:an,not_equal:r,bound:rQ(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(l?l.$$.context:[])),callbacks:rQ(),dirty:a,skip_bound:!1,root:n.target||l.$$.root};s&&s(c.root);var u=!1;if(c.ctx=e?e(t,n.props||{},function(d,f){var p=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:f;return c.ctx&&r(c.ctx[d],c.ctx[d]=p)&&(!c.skip_bound&&c.bound[d]&&c.bound[d](p),u&&function T7e(t,n){-1===t.$$.dirty[0]&&(Tv.push(t),mQ(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<1&&void 0!==arguments[1]?arguments[1]:!!function M7e(t){try{if(typeof window<"u"&&void 0!==window.localStorage)return window.localStorage[t]}catch{}}("debug");if(n){var e=function I7e(t){for(var n=0,e=0;e1&&void 0!==arguments[1]?arguments[1]:{},e=n.delay,i=void 0===e?0:e,r=n.duration,o=void 0===r?400:r,s=n.easing,a=void 0===s?nQ:s,l=+getComputedStyle(t).opacity;return{delay:i,duration:o,easing:a,css:function(c){return"opacity: ".concat(c*l)}}}var L7e=mF.window;function O7e(t){Ni(t,"svelte-n7cvum",".svelte-n7cvum{box-sizing:border-box}.bg.svelte-n7cvum{position:fixed;z-index:1000;top:0;left:0;display:flex;flex-direction:column;justify-content:center;width:100vw;height:100vh;background:rgba(0, 0, 0, 0.66)}@supports (-webkit-touch-callout: none){}.wrap.svelte-n7cvum{position:relative;margin:2rem;max-height:100%}.window.svelte-n7cvum{position:relative;width:40rem;max-width:100%;max-height:100%;margin:2rem auto;color:black;border-radius:0.5rem;background:white}.content.svelte-n7cvum{position:relative;padding:1rem;max-height:calc(100vh - 4rem);overflow:auto}.close.svelte-n7cvum{display:block;box-sizing:border-box;position:absolute;z-index:1000;top:1rem;right:1rem;margin:0;padding:0;width:1.5rem;height:1.5rem;border:0;color:black;border-radius:1.5rem;background:white;box-shadow:0 0 0 1px black;transition:transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),\n background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);-webkit-appearance:none}.close.svelte-n7cvum:before,.close.svelte-n7cvum:after{content:'';display:block;box-sizing:border-box;position:absolute;top:50%;width:1rem;height:1px;background:black;transform-origin:center;transition:height 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),\n background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1)}.close.svelte-n7cvum:before{-webkit-transform:translate(0, -50%) rotate(45deg);-moz-transform:translate(0, -50%) rotate(45deg);transform:translate(0, -50%) rotate(45deg);left:0.25rem}.close.svelte-n7cvum:after{-webkit-transform:translate(0, -50%) rotate(-45deg);-moz-transform:translate(0, -50%) rotate(-45deg);transform:translate(0, -50%) rotate(-45deg);left:0.25rem}.close.svelte-n7cvum:hover{background:black}.close.svelte-n7cvum:hover:before,.close.svelte-n7cvum:hover:after{height:2px;background:white}.close.svelte-n7cvum:focus{border-color:#3399ff;box-shadow:0 0 0 2px #3399ff}.close.svelte-n7cvum:active{transform:scale(0.9)}.close.svelte-n7cvum:hover,.close.svelte-n7cvum:focus,.close.svelte-n7cvum:active{outline:none}")}function bQ(t){var n,e,i,r,o,s,a,l,c,u,h,d,f,p,m,w,C,k,E=t[1].closeButton&&_Q(t),L=t[2];return L&&(s=qh(L,{})),{c:function(){n=Be("div"),e=Be("div"),i=Be("div"),E&&E.c(),r=xt(),o=Be("div"),s&&$t(s.$$.fragment),ne(o,"class",a=Xo(t[1].classContent)+" svelte-n7cvum"),ne(o,"style",t[9]),en(o,"content",!t[0]),ne(i,"class",l=Xo(t[1].classWindow)+" svelte-n7cvum"),ne(i,"role","dialog"),ne(i,"aria-modal","true"),ne(i,"aria-label",c=t[1].ariaLabelledBy?null:t[1].ariaLabel||null),ne(i,"aria-labelledby",u=t[1].ariaLabelledBy||null),ne(i,"style",t[8]),en(i,"window",!t[0]),ne(e,"class",d=Xo(t[1].classWindowWrap)+" svelte-n7cvum"),ne(e,"style",t[7]),en(e,"wrap",!t[0]),ne(n,"id",f=t[1].id),ne(n,"class",p=Xo(t[1].classBg)+" svelte-n7cvum"),ne(n,"style",t[6]),en(n,"bg",!t[0])},m:function(B,G){nt(B,n,G),Ie(n,e),Ie(e,i),E&&E.m(i,null),Ie(i,r),Ie(i,o),s&&Nt(s,o,null),t[50](i),t[51](e),t[52](n),w=!0,C||(k=[rn(i,"introstart",function(){Na(t[13])&&t[13].apply(this,arguments)}),rn(i,"outrostart",function(){Na(t[14])&&t[14].apply(this,arguments)}),rn(i,"introend",function(){Na(t[15])&&t[15].apply(this,arguments)}),rn(i,"outroend",function(){Na(t[16])&&t[16].apply(this,arguments)}),rn(n,"mousedown",t[20]),rn(n,"mouseup",t[21])],C=!0)},p:function(B,G){if((t=B)[1].closeButton?E?(E.p(t,G),2&G[0]&&_e(E,1)):((E=_Q(t)).c(),_e(E,1),E.m(i,r)):E&&(cn(),Ee(E,1,1,function(){E=null}),un()),L!==(L=t[2])){if(s){cn();var oe=s;Ee(oe.$$.fragment,1,0,function(){Rt(oe,1)}),un()}L?($t((s=qh(L,{})).$$.fragment),_e(s.$$.fragment,1),Nt(s,o,null)):s=null}(!w||2&G[0]&&a!==(a=Xo(t[1].classContent)+" svelte-n7cvum"))&&ne(o,"class",a),(!w||512&G[0])&&ne(o,"style",t[9]),(!w||3&G[0])&&en(o,"content",!t[0]),(!w||2&G[0]&&l!==(l=Xo(t[1].classWindow)+" svelte-n7cvum"))&&ne(i,"class",l),(!w||2&G[0]&&c!==(c=t[1].ariaLabelledBy?null:t[1].ariaLabel||null))&&ne(i,"aria-label",c),(!w||2&G[0]&&u!==(u=t[1].ariaLabelledBy||null))&&ne(i,"aria-labelledby",u),(!w||256&G[0])&&ne(i,"style",t[8]),(!w||3&G[0])&&en(i,"window",!t[0]),(!w||2&G[0]&&d!==(d=Xo(t[1].classWindowWrap)+" svelte-n7cvum"))&&ne(e,"class",d),(!w||128&G[0])&&ne(e,"style",t[7]),(!w||3&G[0])&&en(e,"wrap",!t[0]),(!w||2&G[0]&&f!==(f=t[1].id))&&ne(n,"id",f),(!w||2&G[0]&&p!==(p=Xo(t[1].classBg)+" svelte-n7cvum"))&&ne(n,"class",p),(!w||64&G[0])&&ne(n,"style",t[6]),(!w||3&G[0])&&en(n,"bg",!t[0])},i:function(B){w||(_e(E),s&&_e(s.$$.fragment,B),_g(function(){h||(h=ES(i,t[12],t[1].transitionWindowProps,!0)),h.run(1)}),_g(function(){m||(m=ES(n,t[11],t[1].transitionBgProps,!0)),m.run(1)}),w=!0)},o:function(B){Ee(E),s&&Ee(s.$$.fragment,B),h||(h=ES(i,t[12],t[1].transitionWindowProps,!1)),h.run(0),m||(m=ES(n,t[11],t[1].transitionBgProps,!1)),m.run(0),w=!1},d:function(B){B&&tt(n),E&&E.d(),s&&Rt(s),t[50](null),B&&h&&h.end(),t[51](null),t[52](null),B&&m&&m.end(),C=!1,Fo(k)}}}function _Q(t){var n,e,i,r,o,s=[R7e,N7e],a=[];function l(c,u){return 2&u[0]&&(n=null),null==n&&(n=!!c[17](c[1].closeButton)),n?0:1}return e=l(t,[-1,-1,-1]),i=a[e]=s[e](t),{c:function(){i.c(),r=Wr()},m:function(c,u){a[e].m(c,u),nt(c,r,u),o=!0},p:function(c,u){var h=e;(e=l(c,u))===h?a[e].p(c,u):(cn(),Ee(a[h],1,1,function(){a[h]=null}),un(),(i=a[e])?i.p(c,u):(i=a[e]=s[e](c)).c(),_e(i,1),i.m(r.parentNode,r))},i:function(c){o||(_e(i),o=!0)},o:function(c){Ee(i),o=!1},d:function(c){a[e].d(c),c&&tt(r)}}}function N7e(t){var n,e,i,r;return{c:function(){ne(n=Be("button"),"class",e=Xo(t[1].classCloseButton)+" svelte-n7cvum"),ne(n,"aria-label","Close modal"),ne(n,"style",t[10]),ne(n,"type","button"),en(n,"close",!t[0])},m:function(o,s){nt(o,n,s),i||(r=rn(n,"click",t[18]),i=!0)},p:function(o,s){2&s[0]&&e!==(e=Xo(o[1].classCloseButton)+" svelte-n7cvum")&&ne(n,"class",e),1024&s[0]&&ne(n,"style",o[10]),3&s[0]&&en(n,"close",!o[0])},i:an,o:an,d:function(o){o&&tt(n),i=!1,r()}}}function R7e(t){var n,e,i,r=t[1].closeButton;function o(s){return{props:{onClose:s[18]}}}return r&&(n=qh(r,o(t))),{c:function(){n&&$t(n.$$.fragment),e=Wr()},m:function(s,a){n&&Nt(n,s,a),nt(s,e,a),i=!0},p:function(s,a){if(r!==(r=s[1].closeButton)){if(n){cn();var l=n;Ee(l.$$.fragment,1,0,function(){Rt(l,1)}),un()}r?($t((n=qh(r,o(s))).$$.fragment),_e(n.$$.fragment,1),Nt(n,e.parentNode,e)):n=null}},i:function(s){i||(n&&_e(n.$$.fragment,s),i=!0)},o:function(s){n&&Ee(n.$$.fragment,s),i=!1},d:function(s){s&&tt(e),n&&Rt(n,s)}}}function $7e(t){var n,e,i,r,o=t[2]&&bQ(t),s=t[49].default,a=Gs(s,t,t[48],null);return{c:function(){o&&o.c(),n=xt(),a&&a.c()},m:function(l,c){o&&o.m(l,c),nt(l,n,c),a&&a.m(l,c),e=!0,i||(r=rn(L7e,"keydown",t[19]),i=!0)},p:function(l,c){l[2]?o?(o.p(l,c),4&c[0]&&_e(o,1)):((o=bQ(l)).c(),_e(o,1),o.m(n.parentNode,n)):o&&(cn(),Ee(o,1,1,function(){o=null}),un()),a&&a.p&&(!e||131072&c[1])&&Xs(a,s,l,l[48],e?qs(s,l[48],c,null):Ys(l[48]),null)},i:function(l){e||(_e(o),_e(a,l),e=!0)},o:function(l){Ee(o),Ee(a,l),e=!1},d:function(l){o&&o.d(l),l&&tt(n),a&&a.d(l),i=!1,r()}}}function wQ(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e){return new t(_t(_t({},e),{},{props:_t(_t({},n),e.props)}))}}function P7e(t,n,e){var i,r,o,s,a,l,c,u,h,d,f,p,m,w,C,k=n.$$slots,E=void 0===k?{}:k,L=n.$$scope,B=fQ(),oe=n.isTabbable,fe=void 0===oe?function(ut){return ut.tabIndex>=0&&!ut.hidden&&!ut.disabled&&"none"!==ut.style.display&&"hidden"!==ut.type&&Boolean(ut.offsetWidth||ut.offsetHeight||ut.getClientRects().length)}:oe,re=n.show,ce=void 0===re?null:re,ue=n.id,pe=void 0===ue?null:ue,De=n.key,ie=void 0===De?"simple-modal":De,ge=n.ariaLabel,we=void 0===ge?null:ge,le=n.ariaLabelledBy,Fe=void 0===le?null:le,z=n.closeButton,Q=void 0===z||z,Z=n.closeOnEsc,me=void 0===Z||Z,ae=n.closeOnOuterClick,Te=void 0===ae||ae,Oe=n.styleBg,Ze=void 0===Oe?{}:Oe,Ve=n.styleWindowWrap,wt=void 0===Ve?{}:Ve,ct=n.styleWindow,Ct=void 0===ct?{}:ct,se=n.styleContent,Se=void 0===se?{}:se,ke=n.styleCloseButton,Qe=void 0===ke?{}:ke,gt=n.classBg,rt=void 0===gt?null:gt,zt=n.classWindowWrap,Qt=void 0===zt?null:zt,Pn=n.classWindow,Mi=void 0===Pn?null:Pn,Sn=n.classContent,nr=void 0===Sn?null:Sn,On=n.classCloseButton,ro=void 0===On?null:On,uo=n.unstyled,qr=void 0!==uo&&uo,oo=n.setContext,er=void 0===oo?pQ:oo,vo=n.transitionBg,es=void 0===vo?F7e:vo,Zn=n.transitionBgProps,Ut=void 0===Zn?{duration:250}:Zn,Ii=n.transitionWindow,ir=void 0===Ii?es:Ii,Xr=n.transitionWindowProps,Ho=void 0===Xr?Ut:Xr,gs=n.disableFocusTrap,Pt=void 0!==gs&&gs,ei={id:pe,ariaLabel:we,ariaLabelledBy:Fe,closeButton:Q,closeOnEsc:me,closeOnOuterClick:Te,styleBg:Ze,styleWindowWrap:wt,styleWindow:Ct,styleContent:Se,styleCloseButton:Qe,classBg:rt,classWindowWrap:Qt,classWindow:Mi,classContent:nr,classCloseButton:ro,transitionBg:es,transitionBgProps:Ut,transitionWindow:ir,transitionWindowProps:Ho,disableFocusTrap:Pt,isTabbable:fe,unstyled:qr},Ai=_t({},ei),Vi=null,Zr=function(ut){return ut?Object.keys(ut).reduce(function(Wn,Si){return"".concat(Wn,"; ").concat((Li=Si,Li.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()),": ").concat(ut[Si]);var Li},""):""},yo=function(ut){return!!(ut&&ut.constructor&&ut.call&&ut.apply)},Mo=function(){e(6,a=Zr(Object.assign({},{width:window.innerWidth,height:window.innerHeight},Ai.styleBg))),e(7,l=Zr(Ai.styleWindowWrap)),e(8,c=Zr(Ai.styleWindow)),e(9,u=Zr(Ai.styleContent)),e(10,h=Zr(Ai.styleCloseButton)),e(11,d=Ai.transitionBg),e(12,f=Ai.transitionWindow)},da=function(){},Vr=da,fa=da,ll=da,cl=da,Hc=function(ut){var Si=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Li=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e(2,Vi=wQ(ut,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})),e(1,Ai=_t(_t({},ei),Si)),Mo(),lt(),e(13,Vr=function(Fi){Li.onOpen&&Li.onOpen(Fi),B("open"),B("opening")}),e(14,fa=function(Fi){Li.onClose&&Li.onClose(Fi),B("close"),B("closing")}),e(15,ll=function(Fi){Li.onOpened&&Li.onOpened(Fi),B("opened")}),e(16,cl=function(Fi){Li.onClosed&&Li.onClosed(Fi),B("closed")})},Ue=function(){var ut=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Vi&&(e(14,fa=ut.onClose||fa),e(16,cl=ut.onClosed||cl),e(2,Vi=null),ft())},lt=function(){s=window.scrollY,p=document.body.style.position,m=document.body.style.overflow,w=document.body.style.width,document.body.style.position="fixed",document.body.style.top="-".concat(s,"px"),document.body.style.overflow="hidden",document.body.style.width="100%"},ft=function(){document.body.style.position=p||"",document.body.style.top="",document.body.style.overflow=m||"",document.body.style.width=w||"",window.scrollTo({top:s,left:0,behavior:"instant"})};er(ie,{open:Hc,close:Ue});var Mt=!1;return Gu(function(){Mt&&Ue()}),Zc(function(){e(47,Mt=!0)}),t.$$set=function(ut){"isTabbable"in ut&&e(22,fe=ut.isTabbable),"show"in ut&&e(23,ce=ut.show),"id"in ut&&e(24,pe=ut.id),"key"in ut&&e(25,ie=ut.key),"ariaLabel"in ut&&e(26,we=ut.ariaLabel),"ariaLabelledBy"in ut&&e(27,Fe=ut.ariaLabelledBy),"closeButton"in ut&&e(28,Q=ut.closeButton),"closeOnEsc"in ut&&e(29,me=ut.closeOnEsc),"closeOnOuterClick"in ut&&e(30,Te=ut.closeOnOuterClick),"styleBg"in ut&&e(31,Ze=ut.styleBg),"styleWindowWrap"in ut&&e(32,wt=ut.styleWindowWrap),"styleWindow"in ut&&e(33,Ct=ut.styleWindow),"styleContent"in ut&&e(34,Se=ut.styleContent),"styleCloseButton"in ut&&e(35,Qe=ut.styleCloseButton),"classBg"in ut&&e(36,rt=ut.classBg),"classWindowWrap"in ut&&e(37,Qt=ut.classWindowWrap),"classWindow"in ut&&e(38,Mi=ut.classWindow),"classContent"in ut&&e(39,nr=ut.classContent),"classCloseButton"in ut&&e(40,ro=ut.classCloseButton),"unstyled"in ut&&e(0,qr=ut.unstyled),"setContext"in ut&&e(41,er=ut.setContext),"transitionBg"in ut&&e(42,es=ut.transitionBg),"transitionBgProps"in ut&&e(43,Ut=ut.transitionBgProps),"transitionWindow"in ut&&e(44,ir=ut.transitionWindow),"transitionWindowProps"in ut&&e(45,Ho=ut.transitionWindowProps),"disableFocusTrap"in ut&&e(46,Pt=ut.disableFocusTrap),"$$scope"in ut&&e(48,L=ut.$$scope)},t.$$.update=function(){8388608&t.$$.dirty[0]|65536&t.$$.dirty[1]&&Mt&&(yo(ce)?Hc(ce):Ue())},[qr,Ai,Vi,i,r,o,a,l,c,u,h,d,f,Vr,fa,ll,cl,yo,Ue,function(ut){if(Ai.closeOnEsc&&Vi&&"Escape"===ut.key&&(ut.preventDefault(),Ue()),Vi&&"Tab"===ut.key&&!Ai.disableFocusTrap){var Wn=o.querySelectorAll("*"),Si=Array.from(Wn).filter(Ai.isTabbable).sort(function(Fi,Yr){return Fi.tabIndex-Yr.tabIndex}),Li=Si.indexOf(document.activeElement);-1===Li&&ut.shiftKey&&(Li=0),Li+=Si.length+(ut.shiftKey?-1:1),Si[Li%=Si.length].focus(),ut.preventDefault()}},function(ut){!Ai.closeOnOuterClick||ut.target!==i&&ut.target!==r||(C=ut.target)},function(ut){Ai.closeOnOuterClick&&ut.target===C&&(ut.preventDefault(),Ue())},fe,ce,pe,ie,we,Fe,Q,me,Te,Ze,wt,Ct,Se,Qe,rt,Qt,Mi,nr,ro,er,es,Ut,ir,Ho,Pt,Mt,L,E,function(ut){dr[ut?"unshift":"push"](function(){e(5,o=ut)})},function(ut){dr[ut?"unshift":"push"](function(){e(4,r=ut)})},function(ut){dr[ut?"unshift":"push"](function(){e(3,i=ut)})}]}var Za,To,Yu,Xh,Ku,eu,xQ=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,P7e,$7e,Os,{isTabbable:22,show:23,id:24,key:25,ariaLabel:26,ariaLabelledBy:27,closeButton:28,closeOnEsc:29,closeOnOuterClick:30,styleBg:31,styleWindowWrap:32,styleWindow:33,styleContent:34,styleCloseButton:35,classBg:36,classWindowWrap:37,classWindow:38,classContent:39,classCloseButton:40,unstyled:0,setContext:41,transitionBg:42,transitionBgProps:43,transitionWindow:44,transitionWindowProps:45,disableFocusTrap:46},O7e,[-1,-1,-1]),r}return Xe(e)}();(function(t){t.text="text",t.tree="tree",t.table="table"})(Za||(Za={})),function(t){t.after="after",t.inside="inside",t.key="key",t.value="value",t.multi="multi"}(To||(To={})),function(t){t.after="after",t.key="key",t.value="value",t.inside="inside"}(Yu||(Yu={})),function(t){t.info="info",t.warning="warning",t.error="error"}(Xh||(Xh={})),function(t){t.key="key",t.value="value"}(Ku||(Ku={})),function(t){t.asc="asc",t.desc="desc"}(eu||(eu={}));var xg=[{start:0,end:100}],Cg={closeButton:!1,classBg:"jse-modal-bg",classWindow:"jse-modal-window",classWindowWrap:"jse-modal-window-wrap",classContent:"jse-modal-content"},j7e=_t(_t({},Cg),{},{classWindow:"jse-modal-window jse-modal-window-sort"}),B7e=_t(_t({},Cg),{},{classWindow:"jse-modal-window jse-modal-window-transform"}),CQ=_t(_t({},Cg),{},{classWindow:"jse-modal-window jse-modal-window-jsoneditor"}),yF="Insert or paste contents, enter [ insert a new array, enter { to insert a new object, or start typing to insert a new value",bF="Open context menu (Click here, right click on the selection, or use the context menu button or Ctrl+Q)",H7e="NO",_F="SELF",wF="NEXT_INSIDE",V7e=(rc(sF={},eu.asc,"ascending"),rc(sF,eu.desc,"descending"),sF),z7e=0;function hb(){return++z7e}function Uf(t){return(Uf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function Ao(t){return Array.isArray(t)}function Yo(t){return null!==t&&"object"===Uf(t)&&t.constructor===Object}function SQ(t){return!(!t||"object"!==Uf(t))&&"add"===t.op}function kQ(t){return!(!t||"object"!==Uf(t))&&"remove"===t.op}function xF(t){return!(!t||"object"!==Uf(t))&&"replace"===t.op}function CF(t){return!(!t||"object"!==Uf(t))&&"copy"===t.op}function Ev(t){return!(!t||"object"!==Uf(t))&&"move"===t.op}function SF(t){return(SF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function U7e(t,n){return t===n}function DQ(t){return t.slice(0,t.length-1)}function TQ(t){return"object"===SF(t)&&null!==t}function db(t){return(db="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function AQ(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,i)}return e}function W7e(t,n,e){return r=function(o,s){if("object"!==db(o)||null===o)return o;var a=o[Symbol.toPrimitive];if(void 0!==a){var l=a.call(o,"string");if("object"!==db(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(o)}(n),(n="symbol"===db(r)?r:String(r))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t;var r}function kF(t){if(Ao(t)){var n=t.slice();return Object.getOwnPropertySymbols(t).forEach(function(i){n[i]=t[i]}),n}if(Yo(t)){var e=function(i){for(var r=1;r3&&void 0!==arguments[3]&&arguments[3];if(0===n.length)return e;var r=n[0],o=Ju(t?t[r]:void 0,n.slice(1),e,i);if(Yo(t)||Ao(t))return DF(t,r,o);if(i){var s=G7e.test(r)?[]:{};return s[r]=o,s}throw new Error("Path does not exist")}var G7e=/^\d+$/;function EQ(t,n,e){if(0===n.length)return e(t);if(!TQ(t))throw new Error("Path doesn't exist");var i=n[0];return DF(t,i,EQ(t[i],n.slice(1),e))}function TF(t,n){if(0===n.length)return t;if(!TQ(t))throw new Error("Path does not exist");if(1===n.length){var e=n[0];if(e in t){var i=kF(t);return Ao(i)&&i.splice(parseInt(e),1),Yo(i)&&delete i[e],i}return t}var r=n[0];return DF(t,r,TF(t[r],n.slice(1)))}function AF(t,n,e){var i=n.slice(0,n.length-1),r=n[n.length-1];return EQ(t,i,function(o){if(!Array.isArray(o))throw new TypeError("Array expected at path "+JSON.stringify(i));var s=kF(o);return s.splice(parseInt(r),0,e),s})}function tu(t,n){return void 0!==t&&(0===n.length||null!==t&&tu(t[n[0]],n.slice(1)))}function Qu(t){var n=t.split("/");return n.shift(),n.map(function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")})}function An(t){return t.map(MQ).join("")}function MQ(t){return"/"+String(t).replace(/~/g,"~0").replace(/\//g,"~1")}function EF(t,n){return t+MQ(n)}function Mv(t,n){return t.startsWith(n)&&(t.length===n.length||"/"===t[n.length])}function Zu(t,n,e){for(var i=t,r=0;rt.length)&&(n=t.length);for(var e=0,i=new Array(n);e2&&void 0!==arguments[2]?arguments[2]:U7e;if(p.length=0?fe=function(){var ce="",ue=!0;"-"==t[s]&&(ce+=d()),ce+="0"==t[s]?d():m(),"."==t[s]&&(ce+=d()+m(),ue=!1),"e"!=t[s]&&"E"!=t[s]||(ce+=d(),"+"!=t[s]&&"-"!=t[s]||(ce+=d()),ce+=m(),ue=!1);var pe=+ce;return a&&ue&&(pe>Number.MAX_SAFE_INTEGER||pe="a"&&fe<="f"?oe+=fe.charCodeAt()-n9e+10:fe>="0"&&fe<="9"?oe+=+fe:L()}return String.fromCharCode(oe)}function m(){for(var G="";t[s]>="0"&&t[s]<="9";)G+=d();if(G.length)return G;B(),E()}function w(G,oe){C(G,oe,k())}function C(G,oe,fe){i[G]=i[G]||{},i[G][oe]=fe}function k(){return{line:r,column:o,pos:s}}function E(){throw new SyntaxError("Unexpected token "+t[s]+" in JSON at position "+s)}function L(){f(),E()}function B(){if(s>=t.length)throw new SyntaxError("Unexpected end of JSON input")}},FS.stringify=function(t,n,e){if(LS(t)){var i,r,o=0,s="object"==$n(e)?e.space:e;switch($n(s)){case"number":var a=s>10?10:s<0?0:Math.floor(s);s=a&&k(a," "),i=a,r=a;break;case"string":s=s.slice(0,10),i=0,r=0;for(var l=0;l=0}var r9e=/"|\\/g,o9e=/[\b]/g,s9e=/\f/g,a9e=/\n/g,l9e=/\r/g,c9e=/\t/g;function OS(t){return'"'+(t=t.replace(r9e,"\\$&").replace(s9e,"\\f").replace(o9e,"\\b").replace(a9e,"\\n").replace(l9e,"\\r").replace(c9e,"\\t"))+'"'}var u9e=/~/g,h9e=/\//g;function FF(t){return t.replace(u9e,"~0").replace(h9e,"~1")}function LF(t){return(LF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function OF(t){var n="function"==typeof Map?new Map:void 0;return OF=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return NF(e,arguments,gb(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),pb(r,e)},OF(t)}function NF(t,n,e){return(NF=$Q()?Reflect.construct.bind():function(i,r,o){var s=[null];s.push.apply(s,r);var a=new(Function.bind.apply(i,s));return o&&pb(a,o.prototype),a}).apply(null,arguments)}function $Q(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function pb(t,n){return(pb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,i){return e.__proto__=i,e})(t,n)}function gb(t){return(gb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}var Wf=function(t){!function(l,c){if("function"!=typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(c&&c.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),c&&pb(l,c)}(a,OF(Error));var n,e,i,s=(n=a,e=$Q(),function(){var l,c=gb(n);if(e){var u=gb(this).constructor;l=Reflect.construct(c,arguments,u)}else l=c.apply(this,arguments);return function d9e(t,n){if(n&&("object"===LF(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}(this,l)});function a(l,c){var u;return function(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}(this,a),(u=s.call(this,l+" at position "+c)).position=c,u}return i=a,Object.defineProperty(i,"prototype",{writable:!1}),i}();function NS(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function RS(t){return t>=48&&t<=57}function f9e(t){return t>=32&&t<=1114111}var p9e=/^[,:[\]{}()\n]$/;function PQ(t){return g9e.test(t)||t&&PS(t.charCodeAt(0))}var g9e=/^[[{\w-]$/;function m9e(t){return 10===t||13===t||9===t||8===t||12===t}function $S(t){return 32===t||10===t||9===t||13===t}function v9e(t){return 160===t||t>=8192&&t<=8202||8239===t||8287===t||12288===t}function PS(t){return jQ(t)||RF(t)}function jQ(t){return 34===t||8220===t||8221===t}function RF(t){return 39===t||8216===t||8217===t||96===t||180===t}function mb(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t.lastIndexOf(n);return-1!==i?t.substring(0,i)+(e?"":t.substring(i+1)):t}function Sg(t,n){var e=t.length;if(!$S(t.charCodeAt(e-1)))return t+n;for(;$S(t.charCodeAt(e-1));)e--;return t.substring(0,e)+n+t.substring(e)}function y9e(t,n,e){return t.substring(0,n)+t.substring(n+e)}var b9e={"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},_9e={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function Yh(t){var n=0,e="";r()||function(){throw new Wf("Unexpected end of json string",t.length)}();var i=l(44);if(i&&o(),PQ(t[n])&&/[,\n][ \t\r]*$/.test(e)?(i||(e=Sg(e,",")),function(){for(var E=!0,L=!0;L;)E?E=!1:l(44)||(e=Sg(e,",")),L=r();L||(e=mb(e,",")),e="[\n".concat(e,"\n]")}()):i&&(e=mb(e,",")),n>=t.length)return e;function r(){o();var E=function(){if(123===t.charCodeAt(n)){e+="{",n++,o();for(var L=!0;n=49&&B<=57)for(n++;RS(t.charCodeAt(n));)n++;if(46===t.charCodeAt(n))for(n++,f(L);RS(t.charCodeAt(n));)n++;if(101===t.charCodeAt(n)||69===t.charCodeAt(n))for(n++,45!==t.charCodeAt(n)&&43!==t.charCodeAt(n)||n++,f(L);RS(t.charCodeAt(n));)n++;return n>L&&(e+=t.slice(L,n),!0)}()||h("true","true")||h("false","false")||h("null","null")||h("True","true")||h("False","false")||h("None","null")||d();return o(),E}function o(){var E=n,L=s();do{(L=a())&&(L=s())}while(L);return n>E}function s(){for(var E,L="";(E=$S(t.charCodeAt(n)))||v9e(t.charCodeAt(n));)L+=E?t[n]:" ",n++;return L.length>0&&(e+=L,!0)}function a(){if(47===t.charCodeAt(n)&&42===t.charCodeAt(n+1)){for(;nL){if(40===t.charCodeAt(n))return n++,r(),41===t.charCodeAt(n)&&(n++,59===t.charCodeAt(n)&&n++),!0;for(;$S(t.charCodeAt(n-1))&&n>0;)n--;var B=t.slice(L,n);return e+=JSON.stringify(B),!0}}function f(E){if(!RS(t.charCodeAt(n))){var L=t.slice(E,n);throw new Wf("Invalid number '".concat(L,"', expecting a digit ").concat(t[n]?"but got '".concat(t[n],"'"):"but reached end of input"),2)}}function p(E){throw new Wf("Invalid character "+JSON.stringify(E),n)}function m(){throw new Wf("Object key expected",n)}function w(){throw new Wf("Object value expected",n)}function C(){throw new Wf("Colon expected",n)}function k(E){for(var L=E+2;/\w/.test(t[L]);)L++;var B=t.slice(E,L);throw new Wf('Invalid unicode character "'.concat(B,'"'),n)}!function(){throw new Wf("Unexpected character "+JSON.stringify(t[n]),n)}()}function w9e(t,n){return"*"===t[n]&&"/"===t[n+1]}function la(t){return parseInt(t,10)}function $F(t){return x9e.test(t)}var x9e=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function Ko(t){return"object"===$n(t)&&null!==t&&t.constructor===Object}function ss(t){return"object"===$n(t)&&null!==t&&(t.constructor===Object||t.constructor===Array)}function PF(t){if("number"==typeof t)return t>9466848e5&&isFinite(t)&&Math.floor(t)===t&&!isNaN(new Date(t).valueOf());if("bigint"==typeof t)return PF(Number(t));try{var n=t&&t.valueOf();if(n!==t)return PF(n)}catch{return!1}return!1}function BQ(t){var n=window.document.createElement("div");n.style.color=t;var e=n.style.color;return""!==e?e.replace(/\s+/g,"").toLowerCase():null}function jF(t,n){if("number"==typeof t||"string"==typeof t||"boolean"==typeof t||void 0===t)return $n(t);if("bigint"==typeof t)return"number";if(null===t)return"null";if(Array.isArray(t))return"array";if(Ko(t))return"object";var e=n.stringify(t);return e&&$F(e)?"number":"true"===e||"false"===e?"boolean":"null"===e?"null":"unknown"}var C9e=/^https?:\/\/\S+$/;function jS(t){return"string"==typeof t&&C9e.test(t)}function Iv(t,n){if(""===t)return"";var e=t.trim();return"null"===e?null:"true"===e||"false"!==e&&($F(e)?n.parse(e):t)}var S9e=/^-?[0-9]+$/,VQ="object"==(typeof global>"u"?"undefined":$n(global))&&global&&global.Object===Object&&global,k9e="object"==(typeof self>"u"?"undefined":$n(self))&&self&&self.Object===Object&&self,ja=VQ||k9e||Function("return this")(),wl=ja.Symbol,zQ=Object.prototype,D9e=zQ.hasOwnProperty,T9e=zQ.toString,vb=wl?wl.toStringTag:void 0,A9e=Object.prototype.toString,UQ=wl?wl.toStringTag:void 0;function Hl(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":UQ&&UQ in Object(t)?function(n){var e=D9e.call(n,vb),i=n[vb];try{n[vb]=void 0;var r=!0}catch{}var o=T9e.call(n);return r&&(e?n[vb]=i:delete n[vb]),o}(t):A9e.call(t)}function ks(t){return null!=t&&"object"==$n(t)}function sc(t){return"symbol"==$n(t)||ks(t)&&"[object Symbol]"==Hl(t)}function WQ(t){return"number"==typeof t?t:sc(t)?NaN:+t}function ps(t,n){for(var e=-1,i=null==t?0:t.length,r=Array(i);++e0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var aZ=sZ(tZ),J9e=/\{\n\/\* \[wrapped with (.+)\] \*/,Q9e=/,? & /,Z9e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function WS(t){return function(){return t}}var eHe=function(){try{var t=Dg(Object,"defineProperty");return t({},"",{}),t}catch{}}(),GS=eHe,tHe=GS?function(t,n){return GS(t,"toString",{configurable:!0,enumerable:!1,value:WS(n),writable:!0})}:xl,VF=sZ(tHe);function iu(t,n){for(var e=-1,i=null==t?0:t.length;++e-1}var nHe=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function cZ(t,n,e){var o,i=n+"";return VF(t,function(r,o){var s=o.length;if(!s)return r;var a=s-1;return o[a]=(s>1?"& ":"")+o[a],o=o.join(s>2?", ":" "),r.replace(Z9e,"{\n/* [wrapped with "+o+"] */\n")}(i,function(r,o){return iu(nHe,function(s){var a="_."+s[0];o&s[1]&&!XS(r,a)&&r.push(a)}),r.sort()}((o=i.match(J9e))?o[1].split(Q9e):[],e)))}function uZ(t,n,e,i,r,o,s,a,l,c){var u=8&n;n|=u?32:64,4&(n&=~(u?64:32))||(n&=-4);var h=[t,n,r,u?o:void 0,u?s:void 0,u?void 0:o,u?void 0:s,a,l,c],d=e.apply(void 0,h);return HF(t)&&aZ(d,h),d.placeholder=i,cZ(d,t,n)}function Nv(t){return t.placeholder}var iHe=/^(?:0|[1-9]\d*)$/;function Zd(t,n){var e=$n(t);return!!(n=n??9007199254740991)&&("number"==e||"symbol"!=e&&iHe.test(t))&&t>-1&&t%1==0&&t1&&k.reverse(),u&&l-1&&t%1==0&&t<=9007199254740991}function Vl(t){return null!=t&&wb(t.length)&&!Jh(t)}function zl(t,n,e){if(!as(e))return!1;var i=$n(n);return!!("number"==i?Vl(e)&&Zd(n,e.length):"string"==i&&n in e)&&ru(e[n],t)}function Rv(t){return Rr(function(n,e){var i=-1,r=e.length,o=r>1?e[r-1]:void 0,s=r>2?e[2]:void 0;for(o=t.length>3&&"function"==typeof o?(r--,o):void 0,s&&zl(e[0],e[1],s)&&(o=r<3?void 0:o,r=1),n=Object(n);++i"u"?"undefined":$n(exports))&&exports&&!exports.nodeType&&exports,vZ=mZ&&"object"==(typeof module>"u"?"undefined":$n(module))&&module&&!module.nodeType&&module,yZ=vZ&&vZ.exports===mZ?ja.Buffer:void 0,nf=(yZ?yZ.isBuffer:void 0)||KS,ls={};function Lc(t){return function(n){return t(n)}}ls["[object Float32Array]"]=ls["[object Float64Array]"]=ls["[object Int8Array]"]=ls["[object Int16Array]"]=ls["[object Int32Array]"]=ls["[object Uint8Array]"]=ls["[object Uint8ClampedArray]"]=ls["[object Uint16Array]"]=ls["[object Uint32Array]"]=!0,ls["[object Arguments]"]=ls["[object Array]"]=ls["[object ArrayBuffer]"]=ls["[object Boolean]"]=ls["[object DataView]"]=ls["[object Date]"]=ls["[object Error]"]=ls["[object Function]"]=ls["[object Map]"]=ls["[object Number]"]=ls["[object Object]"]=ls["[object RegExp]"]=ls["[object Set]"]=ls["[object String]"]=ls["[object WeakMap]"]=!1;var bZ="object"==(typeof exports>"u"?"undefined":$n(exports))&&exports&&!exports.nodeType&&exports,Cb=bZ&&"object"==(typeof module>"u"?"undefined":$n(module))&&module&&!module.nodeType&&module,WF=Cb&&Cb.exports===bZ&&VQ.process,ou=function(){try{return Cb&&Cb.require&&Cb.require("util").types||WF&&WF.binding&&WF.binding("util")}catch{}}(),_Z=ou&&ou.isTypedArray,Tg=_Z?Lc(_Z):function(t){return ks(t)&&wb(t.length)&&!!ls[Hl(t)]},dHe=Object.prototype.hasOwnProperty;function wZ(t,n){var e=sr(t),i=!e&&qf(t),r=!e&&!i&&nf(t),o=!e&&!i&&!r&&Tg(t),s=e||i||r||o,a=s?UF(t.length,String):[],l=a.length;for(var c in t)!n&&!dHe.call(t,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Zd(c,l))||a.push(c);return a}function xZ(t,n){return function(e){return t(n(e))}}var fHe=xZ(Object.keys,Object),pHe=Object.prototype.hasOwnProperty;function GF(t){if(!xb(t))return fHe(t);var n=[];for(var e in Object(t))pHe.call(t,e)&&"constructor"!=e&&n.push(e);return n}function ca(t){return Vl(t)?wZ(t):GF(t)}var gHe=Object.prototype.hasOwnProperty,mHe=Rv(function(t,n){if(xb(n)||Vl(n))Qh(n,ca(n),t);else for(var e in n)gHe.call(n,e)&&_b(t,e,n[e])}),CZ=mHe,vHe=Object.prototype.hasOwnProperty;function Ul(t){return Vl(t)?wZ(t,!0):function yHe(t){if(!as(t))return function(r){var o=[];if(null!=r)for(var s in Object(r))o.push(s);return o}(t);var n=xb(t),e=[];for(var i in t)("constructor"!=i||!n&&vHe.call(t,i))&&e.push(i);return e}(t)}var bHe=Rv(function(t,n){Qh(n,Ul(n),t)}),JS=bHe,_He=Rv(function(t,n,e,i){Qh(n,Ul(n),t,i)}),$v=_He,wHe=Rv(function(t,n,e,i){Qh(n,ca(n),t,i)}),SZ=wHe,xHe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,CHe=/^\w*$/;function qF(t,n){if(sr(t))return!1;var e=$n(t);return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!sc(t))||CHe.test(t)||!xHe.test(t)||null!=n&&t in Object(n)}var Sb=Dg(Object,"create"),SHe=Object.prototype.hasOwnProperty,kHe=Object.prototype.hasOwnProperty;function Ag(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n-1},rf.prototype.set=function(t,n){var e=this.__data__,i=QS(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this};var kb=Dg(ja,"Map");function ZS(t,n){var i,r,e=t.__data__;return("string"==(r=$n(i=n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==i:null===i)?e["string"==typeof n?"string":"hash"]:e.map}function sf(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n0&&e(a)?n>1?el(a,n-1,e,i,r):Yf(r,a):i||(r[r.length]=a)}return r}function YF(t){return null!=t&&t.length?el(t,1):[]}function af(t){return VF(fZ(t,void 0,YF),t+"")}var TZ=af(XF),t2=xZ(Object.getPrototypeOf,Object),AZ=Function.prototype.toString,LHe=Object.prototype.hasOwnProperty,OHe=AZ.call(Object);function jv(t){if(!ks(t)||"[object Object]"!=Hl(t))return!1;var n=t2(t);if(null===n)return!0;var e=LHe.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&AZ.call(e)==OHe}function n2(t){if(!ks(t))return!1;var n=Hl(t);return"[object Error]"==n||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!jv(t)}var NHe=Rr(function(t,n){try{return Fc(t,void 0,n)}catch(e){return n2(e)?e:new Error(e)}}),KF=NHe;function JF(t,n){var e;if("function"!=typeof n)throw new TypeError("Expected a function");return t=mr(t),function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=void 0),e}}var QF=Rr(function(t,n,e){var i=1;if(e.length){var r=Gf(e,Nv(QF));i|=32}return ef(t,i,n,e,r)});QF.placeholder={};var ZF=QF,RHe=af(function(t,n){return iu(n,function(e){e=Zh(e),tf(t,e,ZF(t[e],t))}),t}),EZ=RHe,eL=Rr(function(t,n,e){var i=3;if(e.length){var r=Gf(e,Nv(eL));i|=32}return ef(n,i,t,e,r)});eL.placeholder={};var MZ=eL;function su(t,n,e){var i=-1,r=t.length;n<0&&(n=-n>r?0:r+n),(e=e>r?r:e)<0&&(e+=r),r=n>e?0:e-n>>>0,n>>>=0;for(var o=Array(r);++i=i?t:su(t,n,e)}var $He=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Bv(t){return $He.test(t)}var tL="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",nL="\\ud83c[\\udffb-\\udfff]",IZ="[^\\ud800-\\udfff]",FZ="(?:\\ud83c[\\udde6-\\uddff]){2}",LZ="[\\ud800-\\udbff][\\udc00-\\udfff]",OZ="(?:"+tL+"|"+nL+")?",jHe="[\\ufe0e\\ufe0f]?"+OZ+"(?:\\u200d(?:"+[IZ,FZ,LZ].join("|")+")[\\ufe0e\\ufe0f]?"+OZ+")*",BHe="(?:"+[IZ+tL+"?",tL,FZ,LZ,"[\\ud800-\\udfff]"].join("|")+")",HHe=RegExp(nL+"(?="+nL+")|"+BHe+jHe,"g");function th(t){return Bv(t)?function(n){return n.match(HHe)||[]}(t):function(n){return n.split("")}(t)}function NZ(t){return function(n){var e=Bv(n=_o(n))?th(n):void 0,i=e?e[0]:n.charAt(0),r=e?Kf(e,1).join(""):n.slice(1);return i[t]()+r}}var i2=NZ("toUpperCase");function iL(t){return i2(_o(t).toLowerCase())}function rL(t,n,e,i){var r=-1,o=null==t?0:t.length;for(i&&o&&(e=t[++r]);++r=n?t:n)),t}function YZ(t,n,e){return void 0===e&&(e=n,n=void 0),void 0!==e&&(e=(e=Ic(e))==e?e:0),void 0!==n&&(n=(n=Ic(n))==n?n:0),Mg(Ic(t),n,e)}function nh(t){var n=this.__data__=new rf(t);this.size=n.size}function KZ(t,n){return t&&Qh(n,ca(n),t)}nh.prototype.clear=function(){this.__data__=new rf,this.size=0},nh.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},nh.prototype.get=function(t){return this.__data__.get(t)},nh.prototype.has=function(t){return this.__data__.has(t)},nh.prototype.set=function(t,n){var e=this.__data__;if(e instanceof rf){var i=e.__data__;if(!kb||i.length<199)return i.push([t,n]),this.size=++e.size,this;e=this.__data__=new sf(i)}return e.set(t,n),this.size=e.size,this};var JZ="object"==(typeof exports>"u"?"undefined":$n(exports))&&exports&&!exports.nodeType&&exports,QZ=JZ&&"object"==(typeof module>"u"?"undefined":$n(module))&&module&&!module.nodeType&&module,ZZ=QZ&&QZ.exports===JZ?ja.Buffer:void 0,eee=ZZ?ZZ.allocUnsafe:void 0;function tee(t,n){if(n)return t.slice();var e=t.length,i=eee?eee(e):new t.constructor(e);return t.copy(i),i}function Jf(t,n){for(var e=-1,i=null==t?0:t.length,r=0,o=[];++ea))return!1;var c=o.get(t),u=o.get(n);if(c&&u)return c==n&&u==t;var h=-1,d=!0,f=2&e?new Fg:void 0;for(o.set(t,n),o.set(n,t);++h=n||L<0||h&&E-c>=o}function w(){var L,B,E=Ab();if(m(E))return C(E);a=setTimeout(w,(B=n-((L=E)-l),h?CVe(B,o-(L-c)):B))}function C(E){return a=void 0,d&&i?f(E):(i=r=void 0,s)}function k(){var E=Ab(),L=m(E);if(i=arguments,r=this,l=E,L){if(void 0===a)return function p(E){return c=E,a=setTimeout(w,n),u?f(E):s}(l);if(h)return clearTimeout(a),a=setTimeout(w,n),f(l)}return void 0===a&&(a=setTimeout(w,n)),s}return n=Ic(n)||0,as(e)&&(u=!!e.leading,o=(h="maxWait"in e)?xVe(Ic(e.maxWait)||0,n):o,d="trailing"in e?!!e.trailing:d),k.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=l=r=a=void 0},k.flush=function(){return void 0===a?s:C(Ab())},k}function Fee(t,n){return null==t||t!=t?n:t}var Lee=Object.prototype,SVe=Lee.hasOwnProperty,kVe=Rr(function(t,n){t=Object(t);var e=-1,i=n.length,r=i>2?n[2]:void 0;for(r&&zl(n[0],n[1],r)&&(i=1);++e=200&&(o=Db,s=!1,n=new Fg(n));e:for(;++r=0&&t.slice(e,r)==n}function Jee(t){return function(n){var i,r,o,e=ed(n);return"[object Map]"==e?wL(n):"[object Set]"==e?(i=n,r=-1,o=Array(i.size),i.forEach(function(s){o[++r]=[s,s]}),o):function(i,r){return ps(r,function(o){return[o,i[o]]})}(n,t(n))}}var g2=Jee(ca),m2=Jee(Ul),LVe=oL({"&":"&","<":"<",">":">",'"':""","'":"'"}),Qee=/[&<>"']/g,OVe=RegExp(Qee.source);function OL(t){return(t=_o(t))&&OVe.test(t)?t.replace(Qee,LVe):t}var Zee=/[\\^$.*+?()[\]{}|]/g,NVe=RegExp(Zee.source);function ete(t){return(t=_o(t))&&NVe.test(t)?t.replace(Zee,"\\$&"):t}function tte(t,n){for(var e=-1,i=null==t?0:t.length;++ec?0:c+a),(l=void 0===l||l>c?c:mr(l))<0&&(l+=c),l=a>l?0:NL(l);a-1?r[o?n[s]:s]:void 0}}var $Ve=Math.max;function RL(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=null==e?0:mr(e);return r<0&&(r=$Ve(i+r,0)),qS(t,ar(n),r)}var ate=ste(RL);function lte(t,n,e){var i;return e(t,function(r,o,s){if(n(r,o,s))return i=o,!1}),i}function cte(t,n){return lte(t,ar(n),td)}var PVe=Math.max,jVe=Math.min;function $L(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=i-1;return void 0!==e&&(r=mr(e),r=e<0?PVe(i+r,0):jVe(r,i-1)),qS(t,ar(n),r,!0)}var ute=ste($L);function hte(t,n){return lte(t,ar(n),LL)}function xa(t){return t&&t.length?t[0]:void 0}function dte(t,n){var e=-1,i=Vl(t)?Array(t.length):[];return Qf(t,function(r,o,s){i[++e]=n(r,o,s)}),i}function Wv(t,n){return(sr(t)?ps:dte)(t,ar(n))}function fte(t,n){return el(Wv(t,n),1)}function pte(t,n){return el(Wv(t,n),1/0)}function gte(t,n,e){return e=void 0===e?1:mr(e),el(Wv(t,n),e)}function mte(t){return null!=t&&t.length?el(t,1/0):[]}function vte(t,n){return null!=t&&t.length?el(t,n=void 0===n?1:mr(n)):[]}function yte(t){return ef(t,512)}var bte=lL("floor");function _te(t){return af(function(n){var e=n.length,i=e,r=nu.prototype.thru;for(t&&n.reverse();i--;){var o=n[i];if("function"!=typeof o)throw new TypeError("Expected a function");if(r&&!s&&"wrapper"==US(o))var s=new nu([],!0)}for(i=s?i:e;++in}function y2(t){return function(n,e){return"string"==typeof n&&"string"==typeof e||(n=Ic(n),e=Ic(e)),t(n,e)}}var Mte=y2(PL),Ite=y2(function(t,n){return t>=n}),VVe=Object.prototype.hasOwnProperty;function zVe(t,n){return null!=t&&VVe.call(t,n)}function Fte(t,n){return null!=t&&xee(t,n,zVe)}var UVe=Math.max,WVe=Math.min;function Lte(t,n,e){return n=Kh(n),void 0===e?(e=n,n=0):e=Kh(e),(i=t=Ic(t))>=WVe(r=n,o=e)&&i-1:!!r&&Ov(t,n,e)>-1}var qVe=Math.max;function Nte(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=null==e?0:mr(e);return r<0&&(r=qVe(i+r,0)),Ov(t,n,r)}function wr(t){return null!=t&&t.length?su(t,0,-1):[]}var XVe=Math.min;function BL(t,n,e){for(var i=e?FL:XS,r=t[0].length,o=t.length,s=o,a=Array(o),l=1/0,c=[];s--;){var u=t[s];s&&n&&(u=ps(u,Lc(n))),l=XVe(u.length,l),a[s]=!e&&(n||r>=120&&u.length>=120)?new Fg(s&&u):void 0}u=t[0];var h=-1,d=a[0];e:for(;++h=-9007199254740991&&t<=9007199254740991}function lne(t){return void 0===t}function cne(t){return ks(t)&&"[object WeakMap]"==ed(t)}function une(t){return ks(t)&&"[object WeakSet]"==Hl(t)}function hne(t){return ar("function"==typeof t?t:au(t,1))}var oze=Array.prototype.join;function dne(t,n){return null==t?"":oze.call(t,n)}var sze=Vv(function(t,n,e){return t+(e?"-":"")+n.toLowerCase()}),fne=sze,aze=c2(function(t,n,e){tf(t,e,n)}),pne=aze,lze=Math.max,cze=Math.min;function gne(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=i;return void 0!==e&&(r=(r=mr(e))<0?lze(i+r,0):cze(r,i-1)),n==n?function(o,s,a){for(var l=a+1;l--;)if(o[l]===s)return l;return l}(t,n,r):qS(t,lZ,r,!0)}var uze=Vv(function(t,n,e){return t+(e?" ":"")+n.toLowerCase()}),mne=uze,vne=NZ("toLowerCase");function UL(t,n){return t=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}}function Lne(t,n){var e=t.length;if(e)return Zd(n+=n<0?e:0,e)?t[n]:void 0}function One(t,n){return t&&t.length?Lne(t,mr(n)):void 0}function Nne(t){return t=mr(t),Rr(function(n){return Lne(n,t)})}function JL(t,n){return null==(t=zte(t,n=Xf(n,t)))||delete t[Zh(ii(n))]}function pze(t){return jv(t)?void 0:t}var gze=af(function(t,n){var e={};if(null==t)return e;var i=!1;n=ps(n,function(o){return o=Xf(o,t),i||(i=o.length>1),o}),Qh(t,dL(t),e),i&&(e=au(e,7,pze));for(var r=n.length;r--;)JL(e,n[r]);return e}),Rne=gze;function Lb(t,n,e,i){if(!as(t))return t;for(var r=-1,o=(n=Xf(n,t)).length,s=o-1,a=t;null!=a&&++rn||o&&s&&l&&!a&&!c||i&&s&&l||!e&&l||!r)return 1;if(!i&&!o&&!c&&t=p?m:m*("desc"==c[u]?-1:1)}return a.index-l.index}(o,s,e)});a--;)o[a]=o[a].value;return o}(dte(t,function(o,s,a){return{criteria:ps(n,function(c){return c(o)}),index:++i,value:o}}))}function Vne(t,n,e,i){return null==t?[]:(sr(n)||(n=null==n?[]:[n]),sr(e=i?void 0:e)||(e=null==e?[]:[e]),Hne(t,n,e))}function ZL(t){return af(function(n){return n=ps(n,Lc(ar)),Rr(function(e){var i=this;return t(n,function(r){return Fc(r,i,e)})})})}var zne=ZL(ps),vze=Math.min,yze=Rr(function(t,n){var e=(n=1==n.length&&sr(n[0])?ps(n[0],Lc(ar)):ps(el(n,1),Lc(ar))).length;return Rr(function(i){for(var r=-1,o=vze(i.length,e);++r9007199254740991)return e;do{n%2&&(e+=t),(n=bze(n/2))&&(t+=t)}while(n);return e}var _ze=kL("length"),tO="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",nO="\\ud83c[\\udffb-\\udfff]",qne="[^\\ud800-\\udfff]",Xne="(?:\\ud83c[\\udde6-\\uddff]){2}",Yne="[\\ud800-\\udbff][\\udc00-\\udfff]",Kne="(?:"+tO+"|"+nO+")?",xze="[\\ufe0e\\ufe0f]?"+Kne+"(?:\\u200d(?:"+[qne,Xne,Yne].join("|")+")[\\ufe0e\\ufe0f]?"+Kne+")*",Cze="(?:"+[qne+tO+"?",tO,Xne,Yne,"[\\ud800-\\udfff]"].join("|")+")",Jne=RegExp(nO+"(?="+nO+")|"+Cze+xze,"g");function Yv(t){return Bv(t)?function(n){for(var e=Jne.lastIndex=0;Jne.test(n);)++e;return e}(t):_ze(t)}var Sze=Math.ceil;function w2(t,n){var e=(n=void 0===n?" ":Mc(n)).length;if(e<2)return e?eO(n,t):n;var i=eO(n,Sze(t/Yv(n)));return Bv(n)?Kf(th(i),0,t).join(""):i.slice(0,t)}var kze=Math.ceil,Dze=Math.floor;function Qne(t,n,e){t=_o(t);var i=(n=mr(n))?Yv(t):0;if(!n||i>=n)return t;var r=(n-i)/2;return w2(Dze(r),e)+t+w2(kze(r),e)}function Zne(t,n,e){t=_o(t);var i=(n=mr(n))?Yv(t):0;return n&&i-1;)a!==t&&oie.call(a,l,1),oie.call(t,l,1);return t}function cO(t,n){return t&&t.length&&n&&n.length?lO(t,n):t}var sie=Rr(cO);function aie(t,n,e){return t&&t.length&&n&&n.length?lO(t,n,ar(e)):t}function lie(t,n,e){return t&&t.length&&n&&n.length?lO(t,n,void 0,e):t}var Fze=Array.prototype.splice;function cie(t,n){for(var e=t?n.length:0,i=e-1;e--;){var r=n[e];if(e==i||r!==o){var o=r;Zd(r)?Fze.call(t,r,1):JL(t,r)}}return t}var Lze=af(function(t,n){var e=null==t?0:t.length,i=XF(t,n);return cie(t,ps(n,function(r){return Zd(r,e)?+r:r}).sort(Bne)),i}),uie=Lze,Oze=Math.floor,Nze=Math.random;function uO(t,n){return t+Oze(Nze()*(n-t+1))}var Rze=parseFloat,$ze=Math.min,Pze=Math.random;function hie(t,n,e){if(e&&"boolean"!=typeof e&&zl(t,n,e)&&(n=e=void 0),void 0===e&&("boolean"==typeof n?(e=n,n=void 0):"boolean"==typeof t&&(e=t,t=void 0)),void 0===t&&void 0===n?(t=0,n=1):(t=Kh(t),void 0===n?(n=t,t=0):n=Kh(n)),t>n){var i=t;t=n,n=i}if(e||t%1||n%1){var r=Pze();return $ze(t+r*(n-t+Rze("1e-"+((r+"").length-1))),n)}return uO(t,n)}var jze=Math.ceil,Bze=Math.max;function die(t){return function(n,e,i){return i&&"number"!=typeof i&&zl(n,e,i)&&(e=i=void 0),n=Kh(n),void 0===e?(e=n,n=0):e=Kh(e),function(r,o,s,a){for(var l=-1,c=Bze(jze((o-r)/(s||1)),0),u=Array(c);c--;)u[a?c:++l]=r,r+=s;return u}(n,e,i=void 0===i?n1&&zl(t,n[0],n[1])?n=[]:e>2&&zl(n[0],n[1],n[2])&&(n=[n[0]]),Hne(t,el(n,1),[])}),dO=Jze,Qze=Math.floor,Zze=Math.min;function fO(t,n,e,i){var r=0,o=null==t?0:t.length;if(0===o)return 0;for(var s=(n=e(n))!=n,a=null===n,l=sc(n),c=void 0===n;r>>1,s=t[o];null!==s&&!sc(s)&&(e?s<=n:s>>0)?(t=_o(t))&&("string"==typeof n||null!=n&&!b2(n))&&!(n=Mc(n))&&Bv(t)?Kf(th(t),0,e):t.split(n,e):[]}var eUe=Math.max;function Wie(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return n=null==n?0:eUe(mr(n),0),Rr(function(e){var i=e[n],r=Kf(e,0,n);return i&&Yf(r,i),Fc(t,this,r)})}var tUe=Vv(function(t,n,e){return t+(e?" ":"")+i2(n)}),Gie=tUe;function qie(t,n,e){return t=_o(t),e=null==e?0:Mg(mr(e),0,t.length),n=Mc(n),t.slice(e,e+n.length)==n}function Xie(){return{}}function Yie(){return""}function Kie(){return!0}var Jie=BS(function(t,n){return t-n},0);function Qie(t){return t&&t.length?GL(t,xl):0}function Zie(t,n){return t&&t.length?GL(t,ar(n)):0}function ere(t){var n=null==t?0:t.length;return n?su(t,1,n):[]}function tre(t,n,e){return t&&t.length?su(t,0,(n=e||void 0===n?1:mr(n))<0?0:n):[]}function nre(t,n,e){var i=null==t?0:t.length;return i?su(t,(n=i-(n=e||void 0===n?1:mr(n)))<0?0:n,i):[]}function ire(t,n){return t&&t.length?f2(t,ar(n),!1,!0):[]}function rre(t,n){return t&&t.length?f2(t,ar(n)):[]}function ore(t,n){return n(t),t}var sre=Object.prototype,nUe=sre.hasOwnProperty;function are(t,n,e,i){return void 0===t||ru(t,sre[e])&&!nUe.call(i,e)?n:t}var iUe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function rUe(t){return"\\"+iUe[t]}var lre=/<%=([\s\S]+?)%>/g,k2={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:lre,variable:"",imports:{_:{escape:OL}}},oUe=/\b__p \+= '';/g,sUe=/\b(__p \+=) '' \+/g,aUe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,lUe=/[()=,{}\[\]\/\s]/,cUe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,D2=/($^)/,uUe=/['\n\r\u2028\u2029\\]/g,cre=Object.prototype.hasOwnProperty;function ure(t,n,e){var i=k2.imports._.templateSettings||k2;e&&zl(t,n,e)&&(n=void 0),t=_o(t),n=$v({},n,i,are);var r,o,s=$v({},n.imports,i.imports,are),a=ca(s),l=jL(s,a),c=0,u=n.interpolate||D2,h="__p += '",d=RegExp((n.escape||D2).source+"|"+u.source+"|"+(u===lre?cUe:D2).source+"|"+(n.evaluate||D2).source+"|$","g"),f=cre.call(n,"sourceURL")?"//# sourceURL="+(n.sourceURL+"").replace(/\s/g," ")+"\n":"";t.replace(d,function(w,C,k,E,L,B){return k||(k=E),h+=t.slice(c,B).replace(uUe,rUe),C&&(r=!0,h+="' +\n__e("+C+") +\n'"),L&&(o=!0,h+="';\n"+L+";\n__p += '"),k&&(h+="' +\n((__t = ("+k+")) == null ? '' : __t) +\n'"),c=B+w.length,w}),h+="';\n";var p=cre.call(n,"variable")&&n.variable;if(p){if(lUe.test(p))throw new Error("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(o?h.replace(oUe,""):h).replace(sUe,"$1").replace(aUe,"$1;"),h="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var m=KF(function(){return Function(a,f+"return "+h).apply(void 0,l)});if(m.source=h,n2(m))throw m;return m}function pO(t,n,e){var i=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return as(e)&&(i="leading"in e?!!e.leading:i,r="trailing"in e?!!e.trailing:r),Uv(t,n,{leading:i,maxWait:n,trailing:r})}function Kv(t,n){return n(t)}var hUe=Math.min;function gO(t,n){if((t=mr(t))<1||t>9007199254740991)return[];var e=4294967295,i=hUe(t,4294967295);t-=4294967295;for(var r=UF(i,n=nd(n));++e-1;);return e}function yre(t,n){for(var e=-1,i=t.length;++e-1;);return e}function bre(t,n,e){if((t=_o(t))&&(e||void 0===n))return KQ(t);if(!t||!(n=Mc(n)))return t;var i=th(t),r=th(n);return Kf(i,yre(i,r),vre(i,r)+1).join("")}function _re(t,n,e){if((t=_o(t))&&(e||void 0===n))return t.slice(0,YQ(t)+1);if(!t||!(n=Mc(n)))return t;var i=th(t);return Kf(i,0,vre(i,th(n))+1).join("")}var dUe=/^\s+/;function wre(t,n,e){if((t=_o(t))&&(e||void 0===n))return t.replace(dUe,"");if(!t||!(n=Mc(n)))return t;var i=th(t);return Kf(i,yre(i,th(n))).join("")}var fUe=/\w*$/;function xre(t,n){var e=30,i="...";if(as(n)){var r="separator"in n?n.separator:r;e="length"in n?mr(n.length):e,i="omission"in n?Mc(n.omission):i}var o=(t=_o(t)).length;if(Bv(t)){var s=th(t);o=s.length}if(e>=o)return t;var a=e-Yv(i);if(a<1)return i;var l=s?Kf(s,0,a).join(""):t.slice(0,a);if(void 0===r)return l+i;if(s&&(a+=l.length-a),b2(r)){if(t.slice(a).search(r)){var c,u=l;for(r.global||(r=RegExp(r.source,_o(fUe.exec(r))+"g")),r.lastIndex=0;c=r.exec(u);)var h=c.index;l=l.slice(0,void 0===h?a:h)}}else if(t.indexOf(Mc(r),a)!=a){var d=l.lastIndexOf(r);d>-1&&(l=l.slice(0,d))}return l+i}function Cre(t){return zF(t,1)}var pUe=oL({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Sre=/&(?:amp|lt|gt|quot|#39);/g,gUe=RegExp(Sre.source);function kre(t){return(t=_o(t))&&gUe.test(t)?t.replace(Sre,pUe):t}var mUe=zv&&1/s2(new zv([,-0]))[1]==1/0?function(t){return new zv(t)}:Ro,vUe=mUe;function Zf(t,n,e){var i=-1,r=XS,o=t.length,s=!0,a=[],l=a;if(e)s=!1,r=FL;else if(o>=200){var c=n?null:vUe(t);if(c)return s2(c);s=!1,r=Db,l=new Fg}else l=n?[]:a;e:for(;++i1||this.__actions__.length)&&i instanceof Qr&&Zd(e)?((i=i.slice(e,+e+(n?1:0))).__actions__.push({func:Kv,args:[r],thisArg:void 0}),new nu(i,this.__chain__).thru(function(o){return n&&!o.length&&o.push(void 0),o})):this.thru(r)}),Bre=CUe;function Hre(){return cL(this)}function Vre(){var t=this.__wrapped__;if(t instanceof Qr){var n=t;return this.__actions__.length&&(n=new Qr(this)),(n=n.reverse()).__actions__.push({func:Kv,args:[x2],thisArg:void 0}),new nu(n,this.__chain__)}return this.thru(x2)}function yO(t,n,e){var i=t.length;if(i<2)return i?Zf(t[0]):[];for(var r=-1,o=Array(i);++r1?t[n-1]:void 0;return e="function"==typeof e?(t.pop(),e):void 0,vO(t,e)}),Kre=kUe,fi={chunk:XZ,compact:pee,concat:gee,difference:Bee,differenceBy:Hee,differenceWith:Vee,drop:Uee,dropRight:Wee,dropRightWhile:Gee,dropWhile:qee,fill:ite,findIndex:RL,findLastIndex:$L,first:xa,flatten:YF,flattenDeep:mte,flattenDepth:vte,fromPairs:Tte,head:xa,indexOf:Nte,initial:wr,intersection:Rte,intersectionBy:$te,intersectionWith:Pte,join:dne,last:ii,lastIndexOf:gne,nth:One,pull:sie,pullAll:cO,pullAllBy:aie,pullAllWith:lie,pullAt:uie,remove:bie,reverse:x2,slice:Fie,sortedIndex:Nie,sortedIndexBy:Rie,sortedIndexOf:$ie,sortedLastIndex:Pie,sortedLastIndexBy:jie,sortedLastIndexOf:Bie,sortedUniq:Vie,sortedUniqBy:zie,tail:ere,take:tre,takeRight:nre,takeRightWhile:ire,takeWhile:rre,union:Dre,unionBy:Tre,unionWith:Are,uniq:Ere,uniqBy:Mre,uniqWith:Ire,unzip:T2,unzipWith:vO,without:Pre,xor:zre,xorBy:Ure,xorWith:Wre,zip:Gre,zipObject:Xre,zipObjectDeep:Yre,zipWith:Kre},$o={countBy:Mee,each:p2,eachRight:Mb,every:nte,filter:ote,find:ate,findLast:ute,flatMap:fte,flatMapDeep:pte,flatMapDepth:gte,forEach:p2,forEachRight:Mb,groupBy:Gv,includes:Ote,invokeMap:Wte,keyBy:pne,map:Wv,orderBy:Vne,partition:sO,reduce:mie,reduceRight:vie,reject:yie,sample:Die,sampleSize:Tie,shuffle:Mie,size:Iie,some:Oie,sortBy:dO},DUe={now:Ab},Rs={after:JQ,ary:zF,before:JF,bind:ZF,bindKey:MZ,curry:u2,curryRight:h2,debounce:Uv,defer:Pee,delay:jee,flip:yte,memoize:Pv,negate:Xv,once:jne,overArgs:Une,partial:rO,partialRight:nie,rearg:pie,rest:xie,spread:Wie,throttle:pO,unary:Cre,wrap:jre},Pi={castArray:GZ,clone:hee,cloneDeep:dee,cloneDeepWith:yL,cloneWith:fee,conformsTo:Tee,eq:ru,gt:Mte,gte:Ite,isArguments:qf,isArray:sr,isArrayBuffer:qte,isArrayLike:Vl,isArrayLikeObject:Ns,isBoolean:Xte,isBuffer:nf,isDate:Kte,isElement:Jte,isEmpty:fr,isEqual:Mr,isEqualWith:Qte,isError:n2,isFinite:Zte,isFunction:Jh,isInteger:VL,isLength:wb,isMap:mL,isMatch:ene,isMatchWith:tne,isNaN:nne,isNative:ine,isNil:rne,isNull:one,isNumber:zL,isObject:as,isObjectLike:ks,isPlainObject:jv,isRegExp:b2,isSafeInteger:ane,isSet:vL,isString:Ib,isSymbol:sc,isTypedArray:Tg,isUndefined:lne,isWeakMap:cne,isWeakSet:une,lt:yne,lte:bne,toArray:YL,toFinite:Kh,toInteger:mr,toLength:NL,toNumber:Ic,toPlainObject:ML,toSafeInteger:pre,toString:_o},Wl={add:XQ,ceil:qZ,divide:zee,floor:bte,max:Cne,maxBy:Sne,mean:Dne,meanBy:Tne,min:Ine,minBy:qv,multiply:Fne,round:Sie,subtract:Jie,sum:Qie,sumBy:Zie},TUe=YZ,AUe=Lte,EUe=hie,tr={assign:CZ,assignIn:JS,assignInWith:$v,assignWith:SZ,at:TZ,create:Iee,defaults:Oee,defaultsDeep:Ree,entries:g2,entriesIn:m2,extend:JS,extendWith:$v,findKey:cte,findLastKey:hte,forIn:Cte,forInRight:Ste,forOwn:kte,forOwnRight:Dte,functions:Ate,functionsIn:Ete,get:e2,has:Fte,hasIn:l2,invert:Bte,invertBy:Vte,invoke:Ute,keys:ca,keysIn:Ul,mapKeys:_ne,mapValues:WL,merge:Ane,mergeWith:IL,omit:Rne,omitBy:Pne,pick:iie,pickBy:QL,result:Cie,set:Aie,setWith:Eie,toPairs:g2,toPairsIn:m2,transform:mre,unset:Fre,update:Ore,updateWith:Nre,values:Lg,valuesIn:$re},id={at:Bre,chain:cL,commit:bL,lodash:$e,next:KL,plant:aO,reverse:Vre,tap:ore,thru:Kv,toIterator:mO,toJSON:Og,value:Og,valueOf:Og,wrapperChain:Hre},wo={camelCase:WZ,capitalize:iL,deburr:sL,endsWith:Kee,escape:OL,escapeRegExp:ete,kebabCase:fne,lowerCase:mne,lowerFirst:vne,pad:Qne,padEnd:Zne,padStart:eie,parseInt:tie,repeat:_ie,replace:wie,snakeCase:Lie,split:Uie,startCase:Gie,startsWith:qie,template:ure,templateSettings:k2,toLower:dre,toUpper:gre,trim:bre,trimEnd:_re,trimStart:wre,truncate:xre,unescape:kre,upperCase:Rre,upperFirst:i2,words:aL},Eo={attempt:KF,bindAll:EZ,cond:See,conforms:Dee,constant:WS,defaultTo:Fee,flow:wte,flowRight:xte,identity:xl,iteratee:hne,matches:wne,matchesProperty:xne,method:Ene,methodOf:Mne,mixin:qL,noop:Ro,nthArg:Nne,over:zne,overEvery:Wne,overSome:Gne,property:DL,propertyOf:rie,range:hO,rangeRight:fie,stubArray:r2,stubFalse:KS,stubObject:Xie,stubString:Yie,stubTrue:Kie,times:gO,toPath:fre,uniqueId:ep},MUe=Math.max,IUe=Math.min,FUe=Math.min,LUe=Array.prototype,Jre=Object.prototype.hasOwnProperty,Qre=wl?wl.iterator:void 0,OUe=Math.max,Zre=Math.min,_O=function(t){return function(n,e,i){if(null==i){var r=as(e),o=r&&ca(e),s=o&&o.length&&v2(e,o);(s?s.length:r)||(i=e,e=n,n=this)}return t(n,e,i)}}(qL);$e.after=Rs.after,$e.ary=Rs.ary,$e.assign=tr.assign,$e.assignIn=tr.assignIn,$e.assignInWith=tr.assignInWith,$e.assignWith=tr.assignWith,$e.at=tr.at,$e.before=Rs.before,$e.bind=Rs.bind,$e.bindAll=Eo.bindAll,$e.bindKey=Rs.bindKey,$e.castArray=Pi.castArray,$e.chain=id.chain,$e.chunk=fi.chunk,$e.compact=fi.compact,$e.concat=fi.concat,$e.cond=Eo.cond,$e.conforms=Eo.conforms,$e.constant=Eo.constant,$e.countBy=$o.countBy,$e.create=tr.create,$e.curry=Rs.curry,$e.curryRight=Rs.curryRight,$e.debounce=Rs.debounce,$e.defaults=tr.defaults,$e.defaultsDeep=tr.defaultsDeep,$e.defer=Rs.defer,$e.delay=Rs.delay,$e.difference=fi.difference,$e.differenceBy=fi.differenceBy,$e.differenceWith=fi.differenceWith,$e.drop=fi.drop,$e.dropRight=fi.dropRight,$e.dropRightWhile=fi.dropRightWhile,$e.dropWhile=fi.dropWhile,$e.fill=fi.fill,$e.filter=$o.filter,$e.flatMap=$o.flatMap,$e.flatMapDeep=$o.flatMapDeep,$e.flatMapDepth=$o.flatMapDepth,$e.flatten=fi.flatten,$e.flattenDeep=fi.flattenDeep,$e.flattenDepth=fi.flattenDepth,$e.flip=Rs.flip,$e.flow=Eo.flow,$e.flowRight=Eo.flowRight,$e.fromPairs=fi.fromPairs,$e.functions=tr.functions,$e.functionsIn=tr.functionsIn,$e.groupBy=$o.groupBy,$e.initial=fi.initial,$e.intersection=fi.intersection,$e.intersectionBy=fi.intersectionBy,$e.intersectionWith=fi.intersectionWith,$e.invert=tr.invert,$e.invertBy=tr.invertBy,$e.invokeMap=$o.invokeMap,$e.iteratee=Eo.iteratee,$e.keyBy=$o.keyBy,$e.keys=ca,$e.keysIn=tr.keysIn,$e.map=$o.map,$e.mapKeys=tr.mapKeys,$e.mapValues=tr.mapValues,$e.matches=Eo.matches,$e.matchesProperty=Eo.matchesProperty,$e.memoize=Rs.memoize,$e.merge=tr.merge,$e.mergeWith=tr.mergeWith,$e.method=Eo.method,$e.methodOf=Eo.methodOf,$e.mixin=_O,$e.negate=Xv,$e.nthArg=Eo.nthArg,$e.omit=tr.omit,$e.omitBy=tr.omitBy,$e.once=Rs.once,$e.orderBy=$o.orderBy,$e.over=Eo.over,$e.overArgs=Rs.overArgs,$e.overEvery=Eo.overEvery,$e.overSome=Eo.overSome,$e.partial=Rs.partial,$e.partialRight=Rs.partialRight,$e.partition=$o.partition,$e.pick=tr.pick,$e.pickBy=tr.pickBy,$e.property=Eo.property,$e.propertyOf=Eo.propertyOf,$e.pull=fi.pull,$e.pullAll=fi.pullAll,$e.pullAllBy=fi.pullAllBy,$e.pullAllWith=fi.pullAllWith,$e.pullAt=fi.pullAt,$e.range=Eo.range,$e.rangeRight=Eo.rangeRight,$e.rearg=Rs.rearg,$e.reject=$o.reject,$e.remove=fi.remove,$e.rest=Rs.rest,$e.reverse=fi.reverse,$e.sampleSize=$o.sampleSize,$e.set=tr.set,$e.setWith=tr.setWith,$e.shuffle=$o.shuffle,$e.slice=fi.slice,$e.sortBy=$o.sortBy,$e.sortedUniq=fi.sortedUniq,$e.sortedUniqBy=fi.sortedUniqBy,$e.split=wo.split,$e.spread=Rs.spread,$e.tail=fi.tail,$e.take=fi.take,$e.takeRight=fi.takeRight,$e.takeRightWhile=fi.takeRightWhile,$e.takeWhile=fi.takeWhile,$e.tap=id.tap,$e.throttle=Rs.throttle,$e.thru=Kv,$e.toArray=Pi.toArray,$e.toPairs=tr.toPairs,$e.toPairsIn=tr.toPairsIn,$e.toPath=Eo.toPath,$e.toPlainObject=Pi.toPlainObject,$e.transform=tr.transform,$e.unary=Rs.unary,$e.union=fi.union,$e.unionBy=fi.unionBy,$e.unionWith=fi.unionWith,$e.uniq=fi.uniq,$e.uniqBy=fi.uniqBy,$e.uniqWith=fi.uniqWith,$e.unset=tr.unset,$e.unzip=fi.unzip,$e.unzipWith=fi.unzipWith,$e.update=tr.update,$e.updateWith=tr.updateWith,$e.values=tr.values,$e.valuesIn=tr.valuesIn,$e.without=fi.without,$e.words=wo.words,$e.wrap=Rs.wrap,$e.xor=fi.xor,$e.xorBy=fi.xorBy,$e.xorWith=fi.xorWith,$e.zip=fi.zip,$e.zipObject=fi.zipObject,$e.zipObjectDeep=fi.zipObjectDeep,$e.zipWith=fi.zipWith,$e.entries=tr.toPairs,$e.entriesIn=tr.toPairsIn,$e.extend=tr.assignIn,$e.extendWith=tr.assignInWith,_O($e,$e),$e.add=Wl.add,$e.attempt=Eo.attempt,$e.camelCase=wo.camelCase,$e.capitalize=wo.capitalize,$e.ceil=Wl.ceil,$e.clamp=TUe,$e.clone=Pi.clone,$e.cloneDeep=Pi.cloneDeep,$e.cloneDeepWith=Pi.cloneDeepWith,$e.cloneWith=Pi.cloneWith,$e.conformsTo=Pi.conformsTo,$e.deburr=wo.deburr,$e.defaultTo=Eo.defaultTo,$e.divide=Wl.divide,$e.endsWith=wo.endsWith,$e.eq=Pi.eq,$e.escape=wo.escape,$e.escapeRegExp=wo.escapeRegExp,$e.every=$o.every,$e.find=$o.find,$e.findIndex=fi.findIndex,$e.findKey=tr.findKey,$e.findLast=$o.findLast,$e.findLastIndex=fi.findLastIndex,$e.findLastKey=tr.findLastKey,$e.floor=Wl.floor,$e.forEach=$o.forEach,$e.forEachRight=$o.forEachRight,$e.forIn=tr.forIn,$e.forInRight=tr.forInRight,$e.forOwn=tr.forOwn,$e.forOwnRight=tr.forOwnRight,$e.get=tr.get,$e.gt=Pi.gt,$e.gte=Pi.gte,$e.has=tr.has,$e.hasIn=tr.hasIn,$e.head=fi.head,$e.identity=xl,$e.includes=$o.includes,$e.indexOf=fi.indexOf,$e.inRange=AUe,$e.invoke=tr.invoke,$e.isArguments=Pi.isArguments,$e.isArray=sr,$e.isArrayBuffer=Pi.isArrayBuffer,$e.isArrayLike=Pi.isArrayLike,$e.isArrayLikeObject=Pi.isArrayLikeObject,$e.isBoolean=Pi.isBoolean,$e.isBuffer=Pi.isBuffer,$e.isDate=Pi.isDate,$e.isElement=Pi.isElement,$e.isEmpty=Pi.isEmpty,$e.isEqual=Pi.isEqual,$e.isEqualWith=Pi.isEqualWith,$e.isError=Pi.isError,$e.isFinite=Pi.isFinite,$e.isFunction=Pi.isFunction,$e.isInteger=Pi.isInteger,$e.isLength=Pi.isLength,$e.isMap=Pi.isMap,$e.isMatch=Pi.isMatch,$e.isMatchWith=Pi.isMatchWith,$e.isNaN=Pi.isNaN,$e.isNative=Pi.isNative,$e.isNil=Pi.isNil,$e.isNull=Pi.isNull,$e.isNumber=Pi.isNumber,$e.isObject=as,$e.isObjectLike=Pi.isObjectLike,$e.isPlainObject=Pi.isPlainObject,$e.isRegExp=Pi.isRegExp,$e.isSafeInteger=Pi.isSafeInteger,$e.isSet=Pi.isSet,$e.isString=Pi.isString,$e.isSymbol=Pi.isSymbol,$e.isTypedArray=Pi.isTypedArray,$e.isUndefined=Pi.isUndefined,$e.isWeakMap=Pi.isWeakMap,$e.isWeakSet=Pi.isWeakSet,$e.join=fi.join,$e.kebabCase=wo.kebabCase,$e.last=ii,$e.lastIndexOf=fi.lastIndexOf,$e.lowerCase=wo.lowerCase,$e.lowerFirst=wo.lowerFirst,$e.lt=Pi.lt,$e.lte=Pi.lte,$e.max=Wl.max,$e.maxBy=Wl.maxBy,$e.mean=Wl.mean,$e.meanBy=Wl.meanBy,$e.min=Wl.min,$e.minBy=Wl.minBy,$e.stubArray=Eo.stubArray,$e.stubFalse=Eo.stubFalse,$e.stubObject=Eo.stubObject,$e.stubString=Eo.stubString,$e.stubTrue=Eo.stubTrue,$e.multiply=Wl.multiply,$e.nth=fi.nth,$e.noop=Eo.noop,$e.now=DUe.now,$e.pad=wo.pad,$e.padEnd=wo.padEnd,$e.padStart=wo.padStart,$e.parseInt=wo.parseInt,$e.random=EUe,$e.reduce=$o.reduce,$e.reduceRight=$o.reduceRight,$e.repeat=wo.repeat,$e.replace=wo.replace,$e.result=tr.result,$e.round=Wl.round,$e.sample=$o.sample,$e.size=$o.size,$e.snakeCase=wo.snakeCase,$e.some=$o.some,$e.sortedIndex=fi.sortedIndex,$e.sortedIndexBy=fi.sortedIndexBy,$e.sortedIndexOf=fi.sortedIndexOf,$e.sortedLastIndex=fi.sortedLastIndex,$e.sortedLastIndexBy=fi.sortedLastIndexBy,$e.sortedLastIndexOf=fi.sortedLastIndexOf,$e.startCase=wo.startCase,$e.startsWith=wo.startsWith,$e.subtract=Wl.subtract,$e.sum=Wl.sum,$e.sumBy=Wl.sumBy,$e.template=wo.template,$e.times=Eo.times,$e.toFinite=Pi.toFinite,$e.toInteger=mr,$e.toLength=Pi.toLength,$e.toLower=wo.toLower,$e.toNumber=Pi.toNumber,$e.toSafeInteger=Pi.toSafeInteger,$e.toString=Pi.toString,$e.toUpper=wo.toUpper,$e.trim=wo.trim,$e.trimEnd=wo.trimEnd,$e.trimStart=wo.trimStart,$e.truncate=wo.truncate,$e.unescape=wo.unescape,$e.uniqueId=Eo.uniqueId,$e.upperCase=wo.upperCase,$e.upperFirst=wo.upperFirst,$e.each=$o.forEach,$e.eachRight=$o.forEachRight,$e.first=fi.head,_O($e,(bO={},td($e,function(t,n){Jre.call($e.prototype,n)||(bO[n]=t)}),bO),{chain:!1}),$e.VERSION="4.17.21",($e.templateSettings=wo.templateSettings).imports._=$e,iu(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){$e[t].placeholder=$e}),iu(["drop","take"],function(t,n){Qr.prototype[t]=function(e){e=void 0===e?1:OUe(mr(e),0);var i=this.__filtered__&&!n?new Qr(this):this.clone();return i.__filtered__?i.__takeCount__=Zre(e,i.__takeCount__):i.__views__.push({size:Zre(e,4294967295),type:t+(i.__dir__<0?"Right":"")}),i},Qr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),iu(["filter","map","takeWhile"],function(t,n){var e=n+1,i=1==e||3==e;Qr.prototype[t]=function(r){var o=this.clone();return o.__iteratees__.push({iteratee:ar(r),type:e}),o.__filtered__=o.__filtered__||i,o}}),iu(["head","last"],function(t,n){var e="take"+(n?"Right":"");Qr.prototype[t]=function(){return this[e](1).value()[0]}}),iu(["initial","tail"],function(t,n){var e="drop"+(n?"":"Right");Qr.prototype[t]=function(){return this.__filtered__?new Qr(this):this[e](1)}}),Qr.prototype.compact=function(){return this.filter(xl)},Qr.prototype.find=function(t){return this.filter(t).head()},Qr.prototype.findLast=function(t){return this.reverse().find(t)},Qr.prototype.invokeMap=Rr(function(t,n){return"function"==typeof t?new Qr(this):this.map(function(e){return Fb(e,t,n)})}),Qr.prototype.reject=function(t){return this.filter(Xv(ar(t)))},Qr.prototype.slice=function(t,n){t=mr(t);var e=this;return e.__filtered__&&(t>0||n<0)?new Qr(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),void 0!==n&&(e=(n=mr(n))<0?e.dropRight(-n):e.take(n-t)),e)},Qr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Qr.prototype.toArray=function(){return this.take(4294967295)},td(Qr.prototype,function(t,n){var e=/^(?:filter|find|map|reject)|While$/.test(n),i=/^(?:head|last)$/.test(n),r=$e[i?"take"+("last"==n?"Right":""):n],o=i||/^find/.test(n);r&&($e.prototype[n]=function(){var s=this.__wrapped__,a=i?[1]:arguments,l=s instanceof Qr,c=a[0],u=l||sr(s),h=function(C){var k=r.apply($e,Yf([C],a));return i&&d?k[0]:k};u&&e&&"function"==typeof c&&1!=c.length&&(l=u=!1);var d=this.__chain__,p=o&&!d,m=l&&!this.__actions__.length;if(!o&&u){s=m?s:new Qr(this);var w=t.apply(s,a);return w.__actions__.push({func:Kv,args:[h],thisArg:void 0}),new nu(w,d)}return p&&m?t.apply(this,a):(w=this.thru(h),p?i?w.value()[0]:w.value():w)})}),iu(["pop","push","shift","sort","splice","unshift"],function(t){var n=LUe[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);$e.prototype[t]=function(){var r=arguments;if(i&&!this.__chain__){var o=this.value();return n.apply(sr(o)?o:[],r)}return this[e](function(s){return n.apply(sr(s)?s:[],r)})}}),td(Qr.prototype,function(t,n){var e=$e[n];if(e){var i=e.name+"";Jre.call(Lv,i)||(Lv[i]=[]),Lv[i].push({name:n,func:e})}}),Lv[YS(void 0,2).name]=[{name:"wrapper",func:void 0}],Qr.prototype.clone=function(){var t=new Qr(this.__wrapped__);return t.__actions__=ac(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=ac(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=ac(this.__views__),t},Qr.prototype.reverse=function(){if(this.__filtered__){var t=new Qr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Qr.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=sr(t),i=n<0,r=e?t.length:0,o=function(B,G,oe){for(var fe=-1,re=oe.length;++fe1&&void 0!==arguments[1]&&arguments[1],e={};if(!Array.isArray(t))throw new TypeError("Array expected");function i(l,c){(!Array.isArray(l)&&!Ko(l)||n&&c.length>0)&&(e[An(c)]=!0),Ko(l)&&Object.keys(l).forEach(function(u){i(l[u],c.concat(u))})}for(var r=Math.min(t.length,1e4),o=0;on?t.slice(0,n):t}function toe(t){return _t({},t)}function noe(t){return Object.values(t)}function ioe(t,n,e,i){var r=t.slice(0),o=r.splice(n,e);return r.splice.apply(r,[n+i,0].concat(Ti(o))),r}function xO(t,n){try{return n.parse(t)}catch{return n.parse(Yh(t))}}function roe(t,n){try{return xO(t,n)}catch{return}}function E2(t,n){t=t.replace(soe,"");try{return n(t)}catch{}try{return n("["+t+"]")}catch{}try{return n("{"+t+"}")}catch{}throw new Error("Failed to parse partial JSON")}function ooe(t){t=t.replace(soe,"");try{return Yh(t)}catch{}try{var n=Yh("["+t+"]");return n.substring(1,n.length-1)}catch{}try{var e=Yh("{"+t+"}");return e.substring(1,e.length-1)}catch{}throw new Error("Failed to repair partial JSON")}var soe=/,\s*$/;function M2(t,n){var e=coe.exec(n);if(e){var i=la(e[2]),r=function(f,p){for(var w=arguments.length>3&&void 0!==arguments[3]?arguments[3]:f.length,C=0,k=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;k1&&void 0!==arguments[1]?arguments[1]:JSON;return SO(t)?t:{json:n.parse(t.text)}}function I2(t,n,e){return function PUe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:JSON;return Jv(t)?t:{text:e.stringify(t.json,null,n)}}(t,n,e).text}function loe(t,n){return function jUe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;if(Jv(t))return t.text.length;var i=0;return function r(o){if(Array.isArray(o)){if((i+=o.length-1+2)>n)return i;for(var s=0;sn)return i}else if(Ko(o)){var a=Object.keys(o);i+=2+a.length+(a.length-1);for(var l=0;ln}var coe=/(position|char) (\d+)/,BUe=/line (\d+)/,HUe=/column (\d+)/;function hoe(t){return VUe.test(t)&&t.length>2}var VUe=/^[[{]\S/;function kO(t){var e=t.escapeUnicodeCharacters;return t.escapeControlCharacters?e?zUe:UUe:e?WUe:GUe}var zUe={escapeValue:function(t){return doe(goe(String(t)))},unescapeValue:function(t){return moe(foe(t))}},UUe={escapeValue:function(t){return goe(String(t))},unescapeValue:function(t){return moe(t)}},WUe={escapeValue:function(t){return doe(String(t))},unescapeValue:function(t){return foe(t)}},GUe={escapeValue:function(t){return String(t)},unescapeValue:function(t){return t}};function doe(t){return t.replace(/[^\x20-\x7F]/g,function(n){var e;return"\b"===n||"\f"===n||"\n"===n||"\r"===n||"\t"===n?n:"\\u"+("000"+(null===(e=n.codePointAt(0))||void 0===e?void 0:e.toString(16))).slice(-4)})}function foe(t){return t.replace(/\\u[a-fA-F0-9]{4}/g,function(n){try{var e=JSON.parse('"'+n+'"');return poe[e]||e}catch{return n}})}var poe={'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},qUe={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"};function goe(t){return t.replace(/["\b\f\n\r\t\\]/g,function(n){return poe[n]||n})}function moe(t){return t.replace(/\\["bfnrt\\]/g,function(n){return qUe[n]||n})}function Ng(t){return"string"!=typeof t?String(t):t.endsWith("\n")?t+"\n":t}function voe(t,n){return Ob(t,function(e){return e.nodeName.toUpperCase()===n.toUpperCase()})}function Rg(t,n,e){return Ob(t,function(i){return s=e,"function"==typeof(r=i).getAttribute&&r.getAttribute(n)===s;var r,s})}function Ob(t,n){return!!DO(t,n)}function DO(t,n){for(var e=t;e&&!n(e);)e=e.parentNode;return e||void 0}function yoe(t){if(null!=t.firstChild){var n=document.createRange(),e=window.getSelection();n.setStart(t,1),n.collapse(!0),e?.removeAllRanges(),e?.addRange(n)}else t.focus()}function F2(t,n,e){var i=Qv(t);if(i){var r=i.document.activeElement?i.document.activeElement:null;r&&r.isContentEditable&&(r.textContent=e?n:r.textContent+n,yoe(r))}}function Qv(t){return t&&t.ownerDocument?t.ownerDocument.defaultView:null}function L2(t){var e=Qv(t)?.document.activeElement;return!!e&&Ob(e,function(i){return i===t})}function boe(t,n){return DO(t,function(e){return e.nodeName===n})}function TO(t){return Rg(t,"data-type","selectable-key")?To.key:Rg(t,"data-type","selectable-value")?To.value:Rg(t,"data-type","insert-selection-area-inside")?To.inside:Rg(t,"data-type","insert-selection-area-after")?To.after:To.multi}function Zv(t){return encodeURIComponent(An(t))}function _oe(t){var e=DO(t,function(i){return!(null==i||!i.hasAttribute)&&i.hasAttribute("data-path")})?.getAttribute("data-path");return e?Qu(decodeURIComponent(e)):null}function tp(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"+",e=[];t.ctrlKey&&e.push("Ctrl"),t.metaKey&&e.push("Ctrl"),t.altKey&&e.push("Alt"),t.shiftKey&&e.push("Shift");var i=1===t.key.length?t.key.toUpperCase():t.key;return i in YUe||e.push(i),e.join(n)}var YUe={Ctrl:!0,Command:!0,Control:!0,Alt:!0,Option:!0,Shift:!0},AO=mF.window;function KUe(t){Ni(t,"svelte-1r8q3m8",".jse-absolute-popup.svelte-1r8q3m8.svelte-1r8q3m8{position:relative;left:0;top:0;width:0;height:0;z-index:1001}.jse-absolute-popup.svelte-1r8q3m8 .jse-hidden-input.svelte-1r8q3m8{position:fixed;left:0;top:0;width:0;height:0;padding:0;margin:0;border:none;outline:none;overflow:hidden}.jse-absolute-popup.svelte-1r8q3m8 .jse-absolute-popup-content.svelte-1r8q3m8{position:absolute}")}function woe(t){var n,e,i,r,o,s,a=[t[0].props],l=t[0].component;function c(u){for(var h={},d=0;dwindow.innerHeight&&L>d,fe="left"===C||E+u>window.innerWidth&&E>u;return{left:fe?k.right-w:E+w,top:oe?L-p:k.bottom+p,positionAbove:oe,positionLeft:fe}}if("number"==typeof n.left&&"number"==typeof n.top){var re=n.left,ce=n.top,ue=n.width,pe=void 0===ue?0:ue,De=n.height,ie=void 0===De?0:De;return{left:re,top:ce,positionAbove:ce+ie>window.innerHeight&&ce>ie,positionLeft:re+pe>window.innerWidth&&re>pe}}throw new Error('Invalid config: pass either "left" and "top", or pass "anchor"')}(),r=i.left,o=i.top,a=i.positionLeft;return(i.positionAbove?"bottom: ".concat(e.top-o,"px;"):"top: ".concat(o-e.top,"px;"))+(a?"right: ".concat(e.left-r,"px;"):"left: ".concat(r-e.left,"px;"))}function ZUe(t,n,e){var i,r,o=n.popup,s=n.closeAbsolutePopup;function a(l){o.options&&o.options.closeOnOuterClick&&!Ob(l.target,function(c){return c===i})&&s(o.id)}return Zc(function(){r&&r.focus()}),t.$$set=function(l){"popup"in l&&e(0,o=l.popup),"closeAbsolutePopup"in l&&e(6,s=l.closeAbsolutePopup)},[o,i,r,function(l){a(l)},function(l){"Escape"===tp(l)&&s(o.id)},function(l){a(l)},s,function(l){dr[l?"unshift":"push"](function(){e(2,r=l)})},function(l){dr[l?"unshift":"push"](function(){e(1,i=l)})}]}var eWe=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,ZUe,JUe,Os,{popup:0,closeAbsolutePopup:6},KUe),r}return Xe(e)}();function Coe(t,n,e){var i=t.slice();return i[6]=n[e],i}function Soe(t){var n,e;return n=new eWe({props:{popup:t[6],closeAbsolutePopup:t[1]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};1&r&&(o.popup=i[6]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function tWe(t){for(var n,e,i=t[0],r=[],o=0;o0;){var i=n.match(rWe);if(!i)throw new SyntaxError('Cannot parse path: unexpected part "'.concat(n,'" at position ').concat(t.length-n.length));e.push(i[1]||i[2]||i[3]),n=n.substring(i[0].length)}var r;return e}var rWe=new RegExp(["^\\.([A-zA-Z$_][a-zA-Z$_0-9]*)","^\\[([0-9]+)]","^\\['(.*)']"].join("|"));function Nb(t){return{value:t,label:fr(t)?"(whole item)":lu(lc(t))}}function rd(t){return t.map(function(n){return MO.test(n)?"?.[".concat(n,"]"):EO.test(n)?"?.".concat(n):"?.[".concat(JSON.stringify(n),"]")}).join("")}var EO=/^[a-zA-Z$_][a-zA-Z$_\d]*$/,MO=/^\d+$/;function Rb(t,n){for(var e=new Set(n),i=t.replace(/ \(copy( \d+)?\)$/,""),r=t,o=1;e.has(r);){var s="copy"+(o>1?" "+o:"");r="".concat(i," (").concat(s,")"),o++}return r}function od(t,n){return t.length>n?t.substring(0,n-3)+"...":t}var oWe={id:"javascript",name:"JavaScript",description:"\n

    \n Enter a JavaScript function to filter, sort, or transform the data.\n

    \n",createQuery:function(t,n){var e=n.filter,i=n.sort,r=n.projection,o=[" return data\n"];if(e&&e.path&&e.relation&&e.value){var s="item => item".concat(rd(e.path)),a=function IO(t){if(""===t)return"";var n=t.toLowerCase();if("null"===n)return null;if("true"===n)return!0;if("false"===n)return!1;if("undefined"!==n){var e=Number(t),i=parseFloat(t);return isNaN(e)||isNaN(i)?t:e}}(e.value),l="string"==typeof a?"'".concat(e.value,"'"):function HQ(t){return S9e.test(t)}(e.value)&&!Number.isSafeInteger(a)?"".concat(e.value,"n"):e.value;o.push(" .filter(".concat(s," ").concat(e.relation," ").concat(l,")\n"))}if(i&&i.path&&i.direction&&o.push("desc"===i.direction?" .slice()\n .sort((a, b) => {\n // sort descending\n"+" const valueA = a".concat(rd(i.path),"\n")+" const valueB = b".concat(rd(i.path),"\n")+" return valueA > valueB ? -1 : valueA < valueB ? 1 : 0\n })\n":" .slice()\n .sort((a, b) => {\n // sort ascending\n"+" const valueA = a".concat(rd(i.path),"\n")+" const valueB = b".concat(rd(i.path),"\n")+" return valueA > valueB ? 1 : valueA < valueB ? -1 : 0\n })\n"),r&&r.paths)if(r.paths.length>1){var c=r.paths.map(function(h){var d=h[h.length-1]||"item",f="item".concat(rd(h));return" ".concat(JSON.stringify(d),": ").concat(f)});o.push(" .map(item => ({\n".concat(c.join(",\n"),"})\n )\n"))}else{var u="item".concat(rd(r.paths[0]));o.push(" .map(item => ".concat(u,")\n"))}return"function query (data) {\n".concat(o.join(""),"}")},executeQuery:function(t,n){var e=new Function('"use strict";\n\n'+n+'\n\nif (typeof query !== "function") {\n throw new Error("Cannot execute query: expecting a function named \'query\' but is undefined")\n}\n\nreturn query;\n')()(t);return void 0!==e?e:null}},sWe={prefix:"far",iconName:"lightbulb",icon:[384,512,[128161],"f0eb","M281.2 248.9C295.6 228.3 304 203.2 304 176c0-70.7-57.3-128-128-128S48 105.3 48 176c0 27.2 8.4 52.3 22.8 72.9c3.7 5.3 8.1 11.3 12.8 17.7l0 0c12.9 17.7 28.3 38.9 39.8 59.8c10.4 19 15.7 38.8 18.3 57.5H93c-2.2-12-5.9-23.7-11.8-34.5c-9.9-18-22.2-34.9-34.5-51.8l0 0 0 0c-5.2-7.1-10.4-14.2-15.4-21.4C11.6 247.9 0 213.3 0 176C0 78.8 78.8 0 176 0s176 78.8 176 176c0 37.3-11.6 71.9-31.4 100.3c-5 7.2-10.2 14.3-15.4 21.4l0 0 0 0c-12.3 16.8-24.6 33.7-34.5 51.8c-5.9 10.8-9.6 22.5-11.8 34.5H210.4c2.6-18.7 7.9-38.6 18.3-57.5c11.5-20.9 26.9-42.1 39.8-59.8l0 0 0 0 0 0c4.7-6.4 9-12.4 12.7-17.7zM176 128c-26.5 0-48 21.5-48 48c0 8.8-7.2 16-16 16s-16-7.2-16-16c0-44.2 35.8-80 80-80c8.8 0 16 7.2 16 16s-7.2 16-16 16zm0 384c-44.2 0-80-35.8-80-80V416H256v16c0 44.2-35.8 80-80 80z"]},$b={prefix:"far",iconName:"square-check",icon:[448,512,[9745,9989,61510,"check-square"],"f14a","M211.8 339.8C200.9 350.7 183.1 350.7 172.2 339.8L108.2 275.8C97.27 264.9 97.27 247.1 108.2 236.2C119.1 225.3 136.9 225.3 147.8 236.2L192 280.4L300.2 172.2C311.1 161.3 328.9 161.3 339.8 172.2C350.7 183.1 350.7 200.9 339.8 211.8L211.8 339.8zM0 96C0 60.65 28.65 32 64 32H384C419.3 32 448 60.65 448 96V416C448 451.3 419.3 480 384 480H64C28.65 480 0 451.3 0 416V96zM48 96V416C48 424.8 55.16 432 64 432H384C392.8 432 400 424.8 400 416V96C400 87.16 392.8 80 384 80H64C55.16 80 48 87.16 48 96z"]},Pb={prefix:"far",iconName:"square",icon:[448,512,[9632,9723,9724,61590],"f0c8","M384 32C419.3 32 448 60.65 448 96V416C448 451.3 419.3 480 384 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H384zM384 80H64C55.16 80 48 87.16 48 96V416C48 424.8 55.16 432 64 432H384C392.8 432 400 424.8 400 416V96C400 87.16 392.8 80 384 80z"]},aWe={prefix:"far",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]};function lWe(t){for(var n,e=[t[0]],i={},r=0;r300},{anchor:d.target,closeOnOuterClick:!0,onClose:h,offsetTop:18,offsetLeft:-8,height:300})}},o,l,c]}var NWe=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,OWe,LWe,Zi,{path:4,value:0,readOnly:1,onPatch:5,focus:6},FWe),r}return Xe(e)}();function Noe(t){for(var n=dO(t,function(a){return a.start}),e=[n[0]],i=0;i=e.start&&n0){var h=R2(n,u);LO(l,h,function(w){o[c]=String(w),a(l[w])}),o.pop()}}}else if(Ko(l)&&i(o)){r[An(o)]=!0;var d=Object.keys(l);if(d.length>0){var f,p=ot(d);try{for(p.s();!(f=p.n()).done;){var m=f.value;o[c]=m,a(l[m])}}catch(w){p.e(w)}finally{p.f()}o.pop()}}}(s),_t(_t({},n),{},{expandedMap:r})}function Roe(t,n){var e=e0(t.expandedMap,n),i=e0(t.enforceStringMap,n),r=e0(t.visibleSectionsMap,n);return _t(_t({},t),{},{expandedMap:e,enforceStringMap:i,visibleSectionsMap:r})}function $oe(t,n,e){if(e){var i=_t({},t.enforceStringMap);return i[n]=e,_t(_t({},t),{},{enforceStringMap:i})}if("boolean"==typeof t.enforceStringMap[n]){var r=_t({},t.enforceStringMap);return delete r[n],_t(_t({},t),{},{enforceStringMap:r})}return t}function Poe(t,n,e){var i=Zu(t,e),r=e.reduce(function(o,s){return SQ(s)?joe(i,o,s):kQ(s)?Boe(i,o,s):xF(s)?(u=(c=s).path,h=PO(a=i,(l=o).expandedMap),d=PO(a,l.enforceStringMap),f=PO(a,l.visibleSectionsMap),Yo(c.value)||Ao(c.value)||delete h[u],Ao(c.value)||delete f[u],(Yo(c.value)||Ao(c.value))&&delete d[u],_t(_t({},l),{},{expandedMap:h,enforceStringMap:d,visibleSectionsMap:f})):CF(s)||Ev(s)?function(a,l,c){if(Ev(c)&&c.from===c.path)return l;var u=function(k){return c.path+k.substring(c.from.length)},h=$O(NO(l.expandedMap,c.from),u),d=$O(NO(l.enforceStringMap,c.from),u),f=$O(NO(l.visibleSectionsMap,c.from),u),p=l;Ev(c)&&(p=Boe(a,p,{op:"remove",path:c.from}));var m=RO((p=joe(a,p,{op:"add",path:c.path,value:null})).expandedMap,h),w=RO(p.enforceStringMap,d),C=RO(p.visibleSectionsMap,f);return _t(_t({},l),{},{expandedMap:m,enforceStringMap:w,visibleSectionsMap:C})}(i,o,s):o;var a,l,c,u,h,d,f},n);return{json:i,documentState:r}}function joe(t,n,e){var i=eh(t,e.path),r=wr(i),o=An(r);if(Ao(Un(t,r))){var s=la(ii(i)),a=t0(n.expandedMap,r,s,1),l=t0(n.enforceStringMap,r,s,1),c=t0(n.visibleSectionsMap,r,s,1);return c=Hoe(c,o,function(u){return Voe(u,s,1)}),_t(_t({},n),{},{expandedMap:a,enforceStringMap:l,visibleSectionsMap:c})}return n}function Boe(t,n,e){var i=eh(t,e.path),r=wr(i),o=An(r),s=Un(t,r),a=n.expandedMap,l=n.enforceStringMap,c=n.visibleSectionsMap;if(a=e0(a,i),l=e0(l,i),c=e0(c,i),Ao(s)){var u=la(ii(i));a=t0(a,r,u,-1),l=t0(l,r,u,-1),c=Hoe(c=t0(c,r,u,-1),o,function(h){return Voe(h,u,-1)})}return _t(_t({},n),{},{expandedMap:a,enforceStringMap:l,visibleSectionsMap:c})}function e0(t,n){var e={},i=An(n);return Object.keys(t).forEach(function(r){Mv(r,i)||(e[r]=t[r])}),e}function NO(t,n){var e={};return Object.keys(t).forEach(function(i){Mv(i,n)&&(e[i]=t[i])}),e}function RO(t,n){return _t(_t({},t),n)}function $O(t,n){var e={};return Object.keys(t).forEach(function(i){var r=n(i);e[r]=t[i]}),e}function t0(t,n,e,i){for(var r=n.length,o=An(n),s=[],a=0,l=Object.keys(t);a=e&&(u[r]=String(h+i),s.push({oldPointer:c,newPointer:An(u),value:t[c]}))}}if(0===s.length)return t;var d=_t({},t);return s.forEach(function(f){delete d[f.oldPointer]}),s.forEach(function(f){d[f.newPointer]=f.value}),d}function PO(t,n){var e={};return Object.keys(n).filter(function(i){return tu(t,eh(t,i))}).forEach(function(i){e[i]=n[i]}),e}function Hoe(t,n,e){var i=t[n];if(n in t){var r=e(i);if(!Mr(i,r)){var o=_t({},t);return void 0===r?delete o[n]:o[n]=r,o}}return t}function Voe(t,n,e){return t.map(function(i){return{start:i.start>n?i.start+e:i.start,end:i.end>=n?i.end+e:i.end}})}function lf(t,n,e,i){var o,r=n?n[e]:void 0;return"boolean"==typeof r?r:"string"==typeof(o=t)&&"string"!=typeof Iv(o,i)}function jb(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t.indexOf(n);return-1!==i?t.slice(e?i:i+1):[]}function jO(t,n){var e=[];return function i(r,o){e.push(o);var s=An(o);if(r&&!0===n.expandedMap[s]){if(Ao(r)){var a=R2(n,s);LO(r,a,function(l){i(r[l],o.concat(String(l)))})}Yo(r)&&Object.keys(r).forEach(function(l){i(r[l],o.concat(l))})}}(t,[]),e}function zoe(t,n){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=[];return function r(o,s){i.push({path:s,type:Yu.value});var a=An(s);if(o&&!0===n.expandedMap[a]){if(e&&i.push({path:s,type:Yu.inside}),Ao(o)){var l=R2(n,a);LO(o,l,function(c){var u=s.concat(String(c));r(o[c],u),e&&i.push({path:u,type:Yu.after})})}Yo(o)&&Object.keys(o).forEach(function(c){var u=s.concat(c);i.push({path:u,type:Yu.key}),r(o[c],u),e&&i.push({path:u,type:Yu.after})})}}(t,[]),i}function BO(t,n,e){var i=jO(t,n),r=i.map(An).indexOf(An(e));return-1!==r&&r0;){if(!0===t.pointersMap[An(i)])return!0;i.pop()}return $s(t)?e===To.key&&Mr(t.focusPath,n):!(!xr(t)||!(e===To.value&&Mr(t.focusPath,n)||s0(n,t.focusPath)&&n.length>t.focusPath.length&&(e===To.key||e===To.value||e===To.multi)))}function Goe(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n.selection;if(!r)return null;var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3]||!io(r)?r.focusPath:xa(r.paths),s=function PWe(t,n,e){var i=jO(t,n),r=i.map(An),o=An(e),s=r.indexOf(o);return-1!==s&&s>0?i[s-1]:null}(t,n,o);if(null===s)return null;var a=s,l=s;if(e)return ih(r)||ua(r)?Ks(t,r.anchorPath,r.anchorPath):Ks(t,r.anchorPath,l);if($s(r)){var u=Un(t,wr(s));return Array.isArray(u)||fr(s)?Br(s,!1):uu(s,!1)}return xr(r)?Br(s,!1):ih(r)||ua(r)?Ks(t,o,o):Ks(t,a,l)}function qoe(t,n,e){var i=n.selection;if(!i)return{caret:null,previous:null,next:null};var r=zoe(t,n,e),o=r.findIndex(function(s){return Mr(s.path,i.focusPath)&&String(s.type)===String(i.type)});return{caret:-1!==o?r[o]:null,previous:-1!==o&&o>0?r[o-1]:null,next:-1!==o&&oe[i].length;)i++;var r=e[i];return 0===r.length||Array.isArray(Un(t,wr(r)))?Br(r,!1):uu(r,!1)}function o0(t,n){if(1===n.length){var e=xa(n);if("replace"===e.op||"move"===e.op)return Br(eh(t,e.path),!1)}if(!fr(n)&&n.every(function(s){return"move"===s.op})){var i=xa(n),r=n.slice(1);if((CF(i)||Ev(i))&&i.from!==i.path&&r.every(function(s){return(CF(s)||Ev(s))&&s.from===s.path}))return uu(eh(t,i.path),!1)}var o=n.filter(function(s){return"test"!==s.op&&"remove"!==s.op&&("move"!==s.op||s.from!==s.path)&&"string"==typeof s.path}).map(function(s){return eh(t,s.path)});if(!fr(o))return{type:To.multi,paths:o,anchorPath:xa(o),focusPath:ii(o),pointersMap:Xoe(o)}}function Xoe(t){var n={};return t.forEach(function(e){n[An(e)]=!0}),n}function P2(t){return rc({},An(t),!0)}function Hb(t){return void 0!==t&&($s(t)||xr(t)||io(t)&&1===t.paths.length)}function Yoe(t,n){return Hb(n)&&ss(Un(t,n.focusPath))?n.focusPath:wr(n.focusPath)}function s0(t,n){if(t.length0?0:-1,e=t.items[n],i=t.items.map(function(r,o){return _t(_t({},r),{},{active:o===n})});return _t(_t({},t),{},{items:i,itemsMap:Gv(i,function(r){return An(r.path)}),activeItem:e,activeIndex:n})}function qWe(t){var n=t.activeIndex>0?t.activeIndex-1:t.items.length-1,e=t.items[n],i=t.items.map(function(r,o){return _t(_t({},r),{},{active:o===n})});return _t(_t({},t),{},{items:i,itemsMap:Gv(i,function(r){return An(r.path)}),activeItem:e,activeIndex:n})}function sse(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,i=[],r=[];function o(l){i.length=e)return;r.pop()}else if(Yo(c)){var d=Object.keys(c),f=r.length;r.push("");for(var p=0,m=d;p=e)return}r.pop()}else ase(String(c),l,r,Ku.value,o)}(t.toLowerCase(),n),i}function ase(t,n,e,i,r){var o=t.toLowerCase(),s=0,a=-1,l=-1;do{-1!==(l=o.indexOf(n,a))&&(a=l+n.length,r({path:e.slice(0),field:i,fieldIndex:s,start:l,end:a}),s++)}while(-1!==l)}function UO(t,n,e,i){return t.substring(0,e)+n+t.substring(i)}function lse(t,n,e){var i=t;return Mb(e,function(r){i=UO(i,n,r.start,r.end)}),i}function XWe(t,n,e,i,r){var o=i.field,s=i.path,a=i.start,l=i.end;if(o===Ku.key){var c=wr(s),u=Un(t,c),h=ii(s),d=zb(c,Object.keys(u),h,UO(h,e,a,l));return{newSelection:o0(t,d),operations:d}}if(o===Ku.value){var f=Un(t,s);if(void 0===f)throw new Error("Cannot replace: path not found ".concat(An(s)));var p="string"==typeof f?f:String(f),m=An(s),w=lf(f,n.enforceStringMap,m,r),C=UO(p,e,a,l),k=[{op:"replace",path:An(s),value:w?C:Iv(C,r)}];return{newSelection:o0(t,k),operations:k}}throw new Error("Cannot replace: unknown type of search result field ".concat(o))}function YWe(t,n,e,i,r){for(var o=sse(e,t,1/0),s=[],a=0;an.floating[o]&&(s=G2(s)),{main:s,cross:G2(s)}}var NGe={start:"end",end:"start"};function QO(t){return t.replace(/start|end/g,function(n){return NGe[n]})}var RGe=function(t){return void 0===t&&(t={}),{name:"flip",options:t,fn:function(n){return Dr(Rn().mark(function e(){var i,r,o,s,a,l,c,u,h,d,f,p,m,w,C,k,E,L,B,G,oe,fe,re,ce,ue,pe,De,ie,ge,Fe,z,Q,Z,me,ae,Te;return Rn().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return r=n.placement,o=n.middlewareData,s=n.rects,a=n.initialPlacement,l=n.platform,c=n.elements,h=(u=t).mainAxis,d=void 0===h||h,p=void 0===(f=u.crossAxis)||f,m=u.fallbackPlacements,C=void 0===(w=u.fallbackStrategy)?"bestFit":w,E=void 0===(k=u.fallbackAxisSideDirection)?"none":k,B=void 0===(L=u.flipAlignment)||L,G=qJ(u,p7e),oe=Bg(r),fe=Bg(a)===a,Oe.next=23,null==l.isRTL?void 0:l.isRTL(c.floating);case 23:return re=Oe.sent,ce=m||(fe||!B?[G2(a)]:(void 0,Ve=G2(Ze=a),[QO(Ze),Ve,QO(Ve)])),m||"none"===E||ce.push.apply(ce,Ti(function(Ze,Ve,wt,ct){var Ct=U2(Ze),se=function(Se,ke,Qe){var gt=["left","right"],rt=["right","left"];switch(Se){case"top":case"bottom":return Qe?ke?rt:gt:ke?gt:rt;case"left":case"right":return ke?["top","bottom"]:["bottom","top"];default:return[]}}(Bg(Ze),"start"===wt,ct);return Ct&&(se=se.map(function(Se){return Se+"-"+Ct}),Ve&&(se=se.concat(se.map(QO)))),se}(a,B,E,re))),ue=[a].concat(Ti(ce)),Oe.next=29,Sse(n,G);case 29:if(pe=Oe.sent,De=[],ie=(null==(i=o.flip)?void 0:i.overflows)||[],d&&De.push(pe[oe]),p&&(ge=OGe(r,s,re),De.push(pe[ge.main],pe[ge.cross])),ie=[].concat(Ti(ie),[{placement:r,overflows:De}]),De.every(function(Ze){return Ze<=0})){Oe.next=48;break}if(Q=((null==(Fe=o.flip)?void 0:Fe.index)||0)+1,!(Z=ue[Q])){Oe.next=37;break}return Oe.abrupt("return",{data:{index:Q,overflows:ie},reset:{placement:Z}});case 37:if(me=null==(z=ie.filter(function(Ze){return Ze.overflows[0]<=0}).sort(function(Ze,Ve){return Ze.overflows[1]-Ve.overflows[1]})[0])?void 0:z.placement,me){Oe.next=46;break}Oe.t0=C,Oe.next="bestFit"===Oe.t0?42:"initialPlacement"===Oe.t0?45:46;break;case 42:return Te=null==(ae=ie.map(function(Ze){return[Ze.placement,Ze.overflows.filter(function(Ve){return Ve>0}).reduce(function(Ve,wt){return Ve+wt},0)]}).sort(function(Ze,Ve){return Ze[1]-Ve[1]})[0])?void 0:ae[0],Te&&(me=Te),Oe.abrupt("break",46);case 45:me=a;case 46:if(r===me){Oe.next=48;break}return Oe.abrupt("return",{reset:{placement:me}});case 48:return Oe.abrupt("return",{});case 49:case"end":return Oe.stop()}var Ze,Ve},e)}))()}}},$Ge=function(t){return void 0===t&&(t=0),{name:"offset",options:t,fn:function(n){return Dr(Rn().mark(function e(){var i,r,o;return Rn().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return i=n.x,r=n.y,s.next=4,function(){var a=Dr(Rn().mark(function l(c,u){var h,d,f,p,m,w,C,k,E,L,B,G,oe,fe;return Rn().wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return h=c.placement,d=c.platform,f=c.elements,re.next=5,null==d.isRTL?void 0:d.isRTL(f.floating);case 5:return p=re.sent,m=Bg(h),w=U2(h),C="x"===W2(h),k=["left","top"].includes(m)?-1:1,E=p&&C?-1:1,L="function"==typeof u?u(c):u,B="number"==typeof L?{mainAxis:L,crossAxis:0,alignmentAxis:null}:_t({mainAxis:0,crossAxis:0,alignmentAxis:null},L),G=B.mainAxis,oe=B.crossAxis,fe=B.alignmentAxis,re.abrupt("return",(w&&"number"==typeof fe&&(oe="end"===w?-1*fe:fe),C?{x:oe*E,y:G*k}:{x:G*k,y:oe*E}));case 14:case"end":return re.stop()}},l)}));return function(l,c){return a.apply(this,arguments)}}()(n,t);case 4:return s.abrupt("return",{x:i+(o=s.sent).x,y:r+o.y,data:o});case 6:case"end":return s.stop()}},e)}))()}}};function PGe(t){return"x"===t?"y":"x"}var jGe=function(t){return void 0===t&&(t={}),{name:"shift",options:t,fn:function(n){return Dr(Rn().mark(function e(){var i,r,o,s,a,l,c,u,h,d,f,p,m,w,C,k,E,L,oe;return Rn().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return r=n.x,o=n.y,s=n.placement,l=(a=t).mainAxis,c=void 0===l||l,h=void 0!==(u=a.crossAxis)&&u,f=void 0===(d=a.limiter)?{fn:function(re){return{x:re.x,y:re.y}}}:d,p=qJ(a,g7e),m={x:r,y:o},fe.next=14,Sse(n,p);case 14:return w=fe.sent,C=W2(Bg(s)),k=PGe(C),E=m[C],L=m[k],c&&(E=kse(E+w["y"===C?"top":"left"],E,E-w["y"===C?"bottom":"right"])),h&&(L=kse(L+w["y"===k?"top":"left"],L,L-w["y"===k?"bottom":"right"])),oe=f.fn(_t(_t({},n),{},(rc(i={},C,E),rc(i,k,L),i))),fe.abrupt("return",_t(_t({},oe),{},{data:{x:oe.x-r,y:oe.y-o}}));case 22:case"end":return fe.stop()}},e)}))()}}};function Oc(t){var n;return(null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function ld(t){return Oc(t).getComputedStyle(t)}var ZO,Dse=Math.min,Wb=Math.max,q2=Math.round;function Tse(t){var n=ld(t),e=parseFloat(n.width),i=parseFloat(n.height),r=t.offsetWidth,o=t.offsetHeight,s=q2(e)!==r||q2(i)!==o;return s&&(e=r,i=o),{width:e,height:i,fallback:s}}function ap(t){return Ese(t)?(t.nodeName||"").toLowerCase():""}function Ase(){if(ZO)return ZO;var t=navigator.userAgentData;return t&&Array.isArray(t.brands)?ZO=t.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function cd(t){return t instanceof Oc(t).HTMLElement}function oh(t){return t instanceof Oc(t).Element}function Ese(t){return t instanceof Oc(t).Node}function Mse(t){return typeof ShadowRoot<"u"&&(t instanceof Oc(t).ShadowRoot||t instanceof ShadowRoot)}function X2(t){var n=ld(t),o=n.display;return/auto|scroll|overlay|hidden|clip/.test(n.overflow+n.overflowY+n.overflowX)&&!["inline","contents"].includes(o)}function BGe(t){return["table","td","th"].includes(ap(t))}function eN(t){var n=/firefox/i.test(Ase()),e=ld(t),i=e.backdropFilter||e.WebkitBackdropFilter;return"none"!==e.transform||"none"!==e.perspective||!!i&&"none"!==i||n&&"filter"===e.willChange||n&&!!e.filter&&"none"!==e.filter||["transform","perspective"].some(function(r){return e.willChange.includes(r)})||["paint","layout","strict","content"].some(function(r){var o=e.contain;return null!=o&&o.includes(r)})}function tN(){return/^((?!chrome|android).)*safari/i.test(Ase())}function nN(t){return["html","body","#document"].includes(ap(t))}function Ise(t){return oh(t)?t:t.contextElement}var Fse={x:1,y:1};function f0(t){var n=Ise(t);if(!cd(n))return Fse;var e=n.getBoundingClientRect(),i=Tse(n),r=i.width,o=i.height,s=i.fallback,a=(s?q2(e.width):e.width)/r,l=(s?q2(e.height):e.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}function Hg(t,n,e,i){var r,o;void 0===n&&(n=!1),void 0===e&&(e=!1);var s=t.getBoundingClientRect(),a=Ise(t),l=Fse;n&&(i?oh(i)&&(l=f0(i)):l=f0(t));var c=a?Oc(a):window,u=tN()&&e,h=(s.left+(u&&(null==(r=c.visualViewport)?void 0:r.offsetLeft)||0))/l.x,d=(s.top+(u&&(null==(o=c.visualViewport)?void 0:o.offsetTop)||0))/l.y,f=s.width/l.x,p=s.height/l.y;if(a)for(var m=Oc(a),w=i&&oh(i)?Oc(i):i,C=m.frameElement;C&&i&&w!==m;){var k=f0(C),E=C.getBoundingClientRect(),L=getComputedStyle(C);E.x+=(C.clientLeft+parseFloat(L.paddingLeft))*k.x,E.y+=(C.clientTop+parseFloat(L.paddingTop))*k.y,h*=k.x,d*=k.y,f*=k.x,p*=k.y,h+=E.x,d+=E.y,C=Oc(C).frameElement}return{width:f,height:p,top:d,right:h+f,bottom:d+p,left:h,x:h,y:d}}function lp(t){return((Ese(t)?t.ownerDocument:t.document)||window.document).documentElement}function Y2(t){return oh(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Lse(t){return Hg(lp(t)).left+Y2(t).scrollLeft}function Gb(t){if("html"===ap(t))return t;var n=t.assignedSlot||t.parentNode||Mse(t)&&t.host||lp(t);return Mse(n)?n.host:n}function Ose(t){var n=Gb(t);return nN(n)?n.ownerDocument.body:cd(n)&&X2(n)?n:Ose(n)}function qb(t,n){var e;void 0===n&&(n=[]);var i=Ose(t),r=i===(null==(e=t.ownerDocument)?void 0:e.body),o=Oc(i);return r?n.concat(o,o.visualViewport||[],X2(i)?i:[]):n.concat(i,qb(i))}function Nse(t,n,e){var i,l,c,u,h,d,f,p,m;if("viewport"===n)i=function(l,c){var u=Oc(l),h=lp(l),d=u.visualViewport,f=h.clientWidth,p=h.clientHeight,m=0,w=0;if(d){f=d.width,p=d.height;var C=tN();(!C||C&&"fixed"===c)&&(m=d.offsetLeft,w=d.offsetTop)}return{width:f,height:p,x:m,y:w}}(t,e);else if("document"===n)l=lp(t),c=lp(l),u=Y2(l),d=Wb(c.scrollWidth,c.clientWidth,(h=l.ownerDocument.body).scrollWidth,h.clientWidth),f=Wb(c.scrollHeight,c.clientHeight,h.scrollHeight,h.clientHeight),p=-u.scrollLeft+Lse(l),m=-u.scrollTop,"rtl"===ld(h).direction&&(p+=Wb(c.clientWidth,h.clientWidth)-d),i={width:d,height:f,x:p,y:m};else if(oh(n))i=function(l,c){var u=Hg(l,!0,"fixed"===c),h=u.top+l.clientTop,d=u.left+l.clientLeft,f=cd(l)?f0(l):{x:1,y:1};return{width:l.clientWidth*f.x,height:l.clientHeight*f.y,x:d*f.x,y:h*f.y}}(n,e);else{var r=_t({},n);if(tN()){var o,s,a=Oc(t);r.x-=(null==(o=a.visualViewport)?void 0:o.offsetLeft)||0,r.y-=(null==(s=a.visualViewport)?void 0:s.offsetTop)||0}i=r}return KO(i)}function Rse(t,n){return cd(t)&&"fixed"!==ld(t).position?n?n(t):t.offsetParent:null}function $se(t,n){for(var e=Oc(t),i=Rse(t,n);i&&BGe(i)&&"static"===ld(i).position;)i=Rse(i,n);return i&&("html"===ap(i)||"body"===ap(i)&&"static"===ld(i).position&&!eN(i))?e:i||function(r){for(var o=Gb(r);cd(o)&&!nN(o);){if(eN(o))return o;o=Gb(o)}return null}(t)||e}function HGe(t,n,e){var i=cd(n),r=lp(n),o=Hg(t,!0,"fixed"===e,n),s={scrollLeft:0,scrollTop:0},a={x:0,y:0};if(i||!i&&"fixed"!==e)if(("body"!==ap(n)||X2(r))&&(s=Y2(n)),cd(n)){var l=Hg(n,!0);a.x=l.x+n.clientLeft,a.y=l.y+n.clientTop}else r&&(a.x=Lse(r));return{x:o.left+s.scrollLeft-a.x,y:o.top+s.scrollTop-a.y,width:o.width,height:o.height}}var VGe={getClippingRect:function(t){var n=t.element,e=t.boundary,i=t.rootBoundary,r=t.strategy,o="clippingAncestors"===e?function(c,u){var h=u.get(c);if(h)return h;for(var d=qb(c).filter(function(k){return oh(k)&&"body"!==ap(k)}),f=null,p="fixed"===ld(c).position,m=p?Gb(c):c;oh(m)&&!nN(m);){var w=ld(m),C=eN(m);"fixed"===w.position?f=null:(p?C||f:C||"static"!==w.position||!f||!["absolute","fixed"].includes(f.position))?f=w:d=d.filter(function(k){return k!==m}),m=Gb(m)}return u.set(c,d),d}(n,this._c):[].concat(e),s=[].concat(Ti(o),[i]),l=s.reduce(function(c,u){var h=Nse(n,u,r);return c.top=Wb(h.top,c.top),c.right=Dse(h.right,c.right),c.bottom=Dse(h.bottom,c.bottom),c.left=Wb(h.left,c.left),c},Nse(n,s[0],r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){var n=t.rect,e=t.offsetParent,i=t.strategy,r=cd(e),o=lp(e);if(e===o)return n;var s={scrollLeft:0,scrollTop:0},a={x:1,y:1},l={x:0,y:0};if((r||!r&&"fixed"!==i)&&(("body"!==ap(e)||X2(o))&&(s=Y2(e)),cd(e))){var c=Hg(e);a=f0(e),l.x=c.x+e.clientLeft,l.y=c.y+e.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-s.scrollLeft*a.x+l.x,y:n.y*a.y-s.scrollTop*a.y+l.y}},isElement:oh,getDimensions:function(t){return cd(t)?Tse(t):t.getBoundingClientRect()},getOffsetParent:$se,getDocumentElement:lp,getScale:f0,getElementRects:function(t){var n=this;return Dr(Rn().mark(function e(){var i,r,o,s,a;return Rn().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return i=t.reference,r=t.floating,o=t.strategy,s=n.getOffsetParent||$se,a=n.getDimensions,l.t0=HGe,l.t1=i,l.next=6,s(r);case 6:return l.t2=l.sent,l.t3=o,l.t4=(0,l.t0)(l.t1,l.t2,l.t3),l.t5=_t,l.t6={x:0,y:0},l.next=13,a(r);case 13:return l.t7=l.sent,l.t8=(0,l.t5)(l.t6,l.t7),l.abrupt("return",{reference:l.t4,floating:l.t8});case 16:case"end":return l.stop()}},e)}))()},getClientRects:function(t){return Array.from(t.getClientRects())},isRTL:function(t){return"rtl"===ld(t).direction}};function WGe(t){var e=t.filterText,i=t.items,r=t.multiple,o=t.value,s=t.itemId,a=t.groupBy,l=t.filterSelectedItems,c=t.itemFilter,u=t.convertStringItemsToObjects,h=t.filterGroupedItems,d=t.label;if(i&&t.loadOptions)return i;if(!i)return[];i&&i.length>0&&"object"!==$n(i[0])&&(i=u(i));var f=i.filter(function(p){var m=c(p[d],e,p);return m&&r&&null!=o&&o.length&&(m=!o.some(function(w){return!!l&&w[s]===p[s]})),m});return a&&(f=h(f)),f}function GGe(t){return iN.apply(this,arguments)}function iN(){return iN=Dr(Rn().mark(function t(n){var e,i,r,o,s;return Rn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return e=n.dispatch,i=n.loadOptions,r=n.convertStringItemsToObjects,o=n.filterText,a.next=3,i(o).catch(function(l){console.warn("svelte-select loadOptions error :>> ",l),e("error",{type:"loadOptions",details:l})});case 3:if(!(s=a.sent)||s.cancelled){a.next=7;break}return s?(s&&s.length>0&&"object"!==$n(s[0])&&(s=r(s)),e("loaded",{items:s})):s=[],a.abrupt("return",{filteredItems:s,loading:!1,focused:!0,listOpen:!0});case 7:case"end":return a.stop()}},t)})),iN.apply(this,arguments)}function qGe(t){Ni(t,"svelte-qbd276","svg.svelte-qbd276{width:var(--chevron-icon-width, 20px);height:var(--chevron-icon-width, 20px);color:var(--chevron-icon-colour, currentColor)}")}function XGe(t){var n,e;return{c:function(){n=Gh("svg"),ne(e=Gh("path"),"fill","currentColor"),ne(e,"d","M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747\n 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0\n 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502\n 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0\n 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"),ne(n,"width","100%"),ne(n,"height","100%"),ne(n,"viewBox","0 0 20 20"),ne(n,"focusable","false"),ne(n,"aria-hidden","true"),ne(n,"class","svelte-qbd276")},m:function(i,r){nt(i,n,r),Ie(n,e)},p:an,i:an,o:an,d:function(i){i&&tt(n)}}}var YGe=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,null,XGe,Os,{},qGe),r}return Xe(e)}();function KGe(t){Ni(t,"svelte-whdbu1","svg.svelte-whdbu1{width:var(--clear-icon-width, 20px);height:var(--clear-icon-width, 20px);color:var(--clear-icon-color, currentColor)}")}function JGe(t){var n,e;return{c:function(){n=Gh("svg"),ne(e=Gh("path"),"fill","currentColor"),ne(e,"d","M34.923,37.251L24,26.328L13.077,37.251L9.436,33.61l10.923-10.923L9.436,11.765l3.641-3.641L24,19.047L34.923,8.124\n l3.641,3.641L27.641,22.688L38.564,33.61L34.923,37.251z"),ne(n,"width","100%"),ne(n,"height","100%"),ne(n,"viewBox","-2 -2 50 50"),ne(n,"focusable","false"),ne(n,"aria-hidden","true"),ne(n,"role","presentation"),ne(n,"class","svelte-whdbu1")},m:function(i,r){nt(i,n,r),Ie(n,e)},p:an,i:an,o:an,d:function(i){i&&tt(n)}}}var K2=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,null,JGe,Os,{},KGe),r}return Xe(e)}();function QGe(t){Ni(t,"svelte-1p3nqvd",".loading.svelte-1p3nqvd{width:var(--spinner-width, 20px);height:var(--spinner-height, 20px);color:var(--spinner-color, var(--icons-color));animation:svelte-1p3nqvd-rotate 0.75s linear infinite;transform-origin:center center;transform:none}.circle_path.svelte-1p3nqvd{stroke-dasharray:90;stroke-linecap:round}@keyframes svelte-1p3nqvd-rotate{100%{transform:rotate(360deg)}}")}function ZGe(t){var n,e;return{c:function(){n=Gh("svg"),ne(e=Gh("circle"),"class","circle_path svelte-1p3nqvd"),ne(e,"cx","50"),ne(e,"cy","50"),ne(e,"r","20"),ne(e,"fill","none"),ne(e,"stroke","currentColor"),ne(e,"stroke-width","5"),ne(e,"stroke-miterlimit","10"),ne(n,"class","loading svelte-1p3nqvd"),ne(n,"viewBox","25 25 50 50")},m:function(i,r){nt(i,n,r),Ie(n,e)},p:an,i:an,o:an,d:function(i){i&&tt(n)}}}var eqe=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,null,ZGe,Os,{},QGe),r}return Xe(e)}();function tqe(t){Ni(t,"svelte-tyxmms",".svelte-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{--borderRadius:var(--border-radius);--clearSelectColor:var(--clear-select-color);--clearSelectWidth:var(--clear-select-width);--disabledBackground:var(--disabled-background);--disabledBorderColor:var(--disabled-border-color);--disabledColor:var(--disabled-color);--disabledPlaceholderColor:var(--disabled-placeholder-color);--disabledPlaceholderOpacity:var(--disabled-placeholder-opacity);--errorBackground:var(--error-background);--errorBorder:var(--error-border);--groupItemPaddingLeft:var(--group-item-padding-left);--groupTitleColor:var(--group-title-color);--groupTitleFontSize:var(--group-title-font-size);--groupTitleFontWeight:var(--group-title-font-weight);--groupTitlePadding:var(--group-title-padding);--groupTitleTextTransform:var(--group-title-text-transform);--indicatorColor:var(--chevron-color);--indicatorHeight:var(--chevron-height);--indicatorWidth:var(--chevron-width);--inputColor:var(--input-color);--inputLeft:var(--input-left);--inputLetterSpacing:var(--input-letter-spacing);--inputMargin:var(--input-margin);--inputPadding:var(--input-padding);--itemActiveBackground:var(--item-active-background);--itemColor:var(--item-color);--itemFirstBorderRadius:var(--item-first-border-radius);--itemHoverBG:var(--item-hover-bg);--itemHoverColor:var(--item-hover-color);--itemIsActiveBG:var(--item-is-active-bg);--itemIsActiveColor:var(--item-is-active-color);--itemIsNotSelectableColor:var(--item-is-not-selectable-color);--itemPadding:var(--item-padding);--listBackground:var(--list-background);--listBorder:var(--list-border);--listBorderRadius:var(--list-border-radius);--listEmptyColor:var(--list-empty-color);--listEmptyPadding:var(--list-empty-padding);--listEmptyTextAlign:var(--list-empty-text-align);--listMaxHeight:var(--list-max-height);--listPosition:var(--list-position);--listShadow:var(--list-shadow);--listZIndex:var(--list-z-index);--multiItemBG:var(--multi-item-bg);--multiItemBorderRadius:var(--multi-item-border-radius);--multiItemDisabledHoverBg:var(--multi-item-disabled-hover-bg);--multiItemDisabledHoverColor:var(--multi-item-disabled-hover-color);--multiItemHeight:var(--multi-item-height);--multiItemMargin:var(--multi-item-margin);--multiItemPadding:var(--multi-item-padding);--multiSelectInputMargin:var(--multi-select-input-margin);--multiSelectInputPadding:var(--multi-select-input-padding);--multiSelectPadding:var(--multi-select-padding);--placeholderColor:var(--placeholder-color);--placeholderOpacity:var(--placeholder-opacity);--selectedItemPadding:var(--selected-item-padding);--spinnerColor:var(--spinner-color);--spinnerHeight:var(--spinner-height);--spinnerWidth:var(--spinner-width);--internal-padding:0 0 0 16px;border:var(--border, 1px solid #d8dbdf);border-radius:var(--border-radius, 6px);min-height:var(--height, 42px);position:relative;display:flex;align-items:stretch;padding:var(--padding, var(--internal-padding));background:var(--background, #fff);margin:var(--margin, 0);width:var(--width, 100%);font-size:var(--font-size, 16px)}.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{box-sizing:var(--box-sizing, border-box)}.svelte-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:hover{border:var(--border-hover, 1px solid #b2b8bf)}.value-container.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;flex:1 1 0%;flex-wrap:wrap;align-items:center;gap:5px 10px;padding:5px 0;position:relative;overflow:hidden;align-self:stretch}.prepend.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.indicators.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;flex-shrink:0;align-items:center}input.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{position:absolute;cursor:default;border:none;color:var(--input-color, var(--item-color));padding:var(--input-padding, 0);letter-spacing:var(--input-letter-spacing, inherit);margin:var(--input-margin, 0);min-width:10px;top:0;right:0;bottom:0;left:0;background:transparent;font-size:var(--font-size, 16px)}.svelte-tyxmms:not(.multi)>.value-container.svelte-tyxmms>input.svelte-tyxmms{width:100%;height:100%}input.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms::placeholder{color:var(--placeholder-color, #78848f);opacity:var(--placeholder-opacity, 1)}input.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:focus{outline:none}.svelte-select.focused.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{border:var(--border-focused, 1px solid #006fe8);border-radius:var(--border-radius-focused, var(--border-radius, 6px))}.disabled.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{background:var(--disabled-background, #ebedef);border-color:var(--disabled-border-color, #ebedef);color:var(--disabled-color, #c1c6cc)}.disabled.svelte-tyxmms input.svelte-tyxmms.svelte-tyxmms::placeholder{color:var(--disabled-placeholder-color, #c1c6cc);opacity:var(--disabled-placeholder-opacity, 1)}.selected-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{position:relative;overflow:var(--selected-item-overflow, hidden);padding:var(--selected-item-padding, 0 20px 0 0);text-overflow:ellipsis;white-space:nowrap;color:var(--selected-item-color, inherit);font-size:var(--font-size, 16px)}.multi.svelte-tyxmms .selected-item.svelte-tyxmms.svelte-tyxmms{position:absolute;line-height:var(--height, 42px);height:var(--height, 42px)}.selected-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:focus{outline:none}.hide-selected-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{opacity:0}.icon.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;align-items:center;justify-content:center}.clear-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{all:unset;display:flex;align-items:center;justify-content:center;width:var(--clear-select-width, 40px);height:var(--clear-select-height, 100%);color:var(--clear-select-color, var(--icons-color));margin:var(--clear-select-margin, 0);pointer-events:all;flex-shrink:0}.clear-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:focus{outline:var(--clear-select-focus-outline, 1px solid #006fe8)}.loading.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{width:var(--loading-width, 40px);height:var(--loading-height);color:var(--loading-color, var(--icons-color));margin:var(--loading--margin, 0);flex-shrink:0}.chevron.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{width:var(--chevron-width, 40px);height:var(--chevron-height, 40px);background:var(--chevron-background, transparent);pointer-events:var(--chevron-pointer-events, none);color:var(--chevron-color, var(--icons-color));border:var(--chevron-border, 0 0 0 1px solid #d8dbdf);flex-shrink:0}.multi.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{padding:var(--multi-select-padding, var(--internal-padding))}.multi.svelte-tyxmms input.svelte-tyxmms.svelte-tyxmms{padding:var(--multi-select-input-padding, 0);position:relative;margin:var(--multi-select-input-margin, 5px 0);flex:1 1 40px}.svelte-select.error.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{border:var(--error-border, 1px solid #ff2d55);background:var(--error-background, #fff)}.a11y-text.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{z-index:9999;border:0px;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0px;white-space:nowrap}.multi-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{background:var(--multi-item-bg, #ebedef);margin:var(--multi-item-margin, 0);outline:var(--multi-item-outline, 1px solid #ddd);border-radius:var(--multi-item-border-radius, 4px);height:var(--multi-item-height, 25px);line-height:var(--multi-item-height, 25px);display:flex;cursor:default;padding:var(--multi-item-padding, 0 5px);overflow:hidden;gap:var(--multi-item-gap, 4px);outline-offset:-1px;max-width:var(--multi-max-width, none);color:var(--multi-item-color, var(--item-color))}.multi-item.disabled.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:hover{background:var(--multi-item-disabled-hover-bg, #ebedef);color:var(--multi-item-disabled-hover-color, #c1c6cc)}.multi-item-text.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.multi-item-clear.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;align-items:center;justify-content:center;--clear-icon-color:var(--multi-item-clear-icon-color, #000)}.multi-item.active.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{outline:var(--multi-item-active-outline, 1px solid #006fe8)}.svelte-select-list.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{box-shadow:var(--list-shadow, 0 2px 3px 0 rgba(44, 62, 80, 0.24));border-radius:var(--list-border-radius, 4px);max-height:var(--list-max-height, 252px);overflow-y:auto;background:var(--list-background, #fff);position:var(--list-position, absolute);z-index:var(--list-z-index, 2);border:var(--list-border)}.prefloat.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{opacity:0;pointer-events:none}.list-group-title.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{color:var(--group-title-color, #8f8f8f);cursor:default;font-size:var(--group-title-font-size, 16px);font-weight:var(--group-title-font-weight, 600);height:var(--height, 42px);line-height:var(--height, 42px);padding:var(--group-title-padding, 0 20px);text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap;text-transform:var(--group-title-text-transform, uppercase)}.empty.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{text-align:var(--list-empty-text-align, center);padding:var(--list-empty-padding, 20px 0);color:var(--list-empty-color, #78848f)}.item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{cursor:default;height:var(--item-height, var(--height, 42px));line-height:var(--item-line-height, var(--height, 42px));padding:var(--item-padding, 0 20px);color:var(--item-color, inherit);text-overflow:ellipsis;overflow:hidden;white-space:nowrap;transition:var(--item-transition, all 0.2s);align-items:center;width:100%}.item.group-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{padding-left:var(--group-item-padding-left, 40px)}.item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:active{background:var(--item-active-background, #b9daff)}.item.active.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{background:var(--item-is-active-bg, #007aff);color:var(--item-is-active-color, #fff)}.item.first.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{border-radius:var(--item-first-border-radius, 4px 4px 0 0)}.item.hover.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:not(.active){background:var(--item-hover-bg, #e7f2ff);color:var(--item-hover-color, inherit)}.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.item.hover.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.item.active.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:active{color:var(--item-is-not-selectable-color, #999);background:transparent}.required.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{opacity:0;z-index:-1;position:absolute;top:0;left:0;bottom:0;right:0}")}var nqe=function(t){return{value:8&t[0]}},Pse=function(t){return{value:t[3]}},iqe=function(t){return{listOpen:64&t[0]}},jse=function(t){return{listOpen:t[6]}},rqe=function(t){return{}},Bse=function(t){return{}},oqe=function(t){return{}},Hse=function(t){return{}},sqe=function(t){return{selection:8&t[0]}},Vse=function(t){return{selection:t[3]}};function zse(t,n,e){var i=t.slice();return i[127]=n[e],i[129]=e,i}var aqe=function(t){return{}},Use=function(t){return{}},lqe=function(t){return{selection:8&t[0]}},Wse=function(t){return{selection:t[127],index:t[129]}},cqe=function(t){return{}},Gse=function(t){return{}},uqe=function(t){return{}},qse=function(t){return{}};function Xse(t,n,e){var i=t.slice();return i[127]=n[e],i[129]=e,i}var hqe=function(t){return{item:16777216&t[0]}},Yse=function(t){return{item:t[127],index:t[129]}},dqe=function(t){return{filteredItems:16777216&t[0]}},Kse=function(t){return{filteredItems:t[24]}};function Jse(t){var n,e,i,r,o,s,a=[gqe,pqe,fqe],l=[];function c(u,h){return u[51].list?0:u[24].length>0?1:u[19]?-1:2}return~(e=c(t))&&(i=l[e]=a[e](t)),{c:function(){n=Be("div"),i&&i.c(),ne(n,"class","svelte-select-list svelte-tyxmms"),en(n,"prefloat",t[28])},m:function(u,h){nt(u,n,h),~e&&l[e].m(n,null),t[91](n),r=!0,o||(s=[Ra(t[49].call(null,n)),rn(n,"scroll",t[41]),rn(n,"pointerdown",Kd(t[50])),rn(n,"pointerup",Jd(Kd(t[86])))],o=!0)},p:function(u,h){var d=e;(e=c(u))===d?~e&&l[e].p(u,h):(i&&(cn(),Ee(l[d],1,1,function(){l[d]=null}),un()),~e?((i=l[e])?i.p(u,h):(i=l[e]=a[e](u)).c(),_e(i,1),i.m(n,null)):i=null),(!r||268435456&h[0])&&en(n,"prefloat",u[28])},i:function(u){r||(_e(i),r=!0)},o:function(u){Ee(i),r=!1},d:function(u){u&&tt(n),~e&&l[e].d(),t[91](null),o=!1,Fo(s)}}}function fqe(t){var n,e,i=t[83].empty,r=Gs(i,t,t[82],qse),o=r||{c:function(){(e=Be("div")).textContent="No options",ne(e,"class","empty svelte-tyxmms")},m:function(s,a){nt(s,e,a)},p:an,d:function(s){s&&tt(e)}};return{c:function(){o&&o.c()},m:function(s,a){o&&o.m(s,a),n=!0},p:function(s,a){r&&r.p&&(!n||1048576&a[2])&&Xs(r,i,s,s[82],n?qs(i,s[82],a,uqe):Ys(s[82]),qse)},i:function(s){n||(_e(o,s),n=!0)},o:function(s){Ee(o,s),n=!1},d:function(s){o&&o.d(s)}}}function pqe(t){for(var n,e,i=t[24],r=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:1;clearTimeout(d),d=setTimeout(bt,vi)}:Wn,Li=n.debounceWait,Fi=void 0===Li?300:Li,Yr=n.hideEmptyState,xo=void 0!==Yr&&Yr,ji=n.inputAttributes,zr=void 0===ji?{}:ji,Ke=n.listAutoWidth,qt=void 0===Ke||Ke,hn=n.showChevron,kn=void 0!==hn&&hn,Fn=n.listOffset,ki=void 0===Fn?5:Fn,rr=n.hoverItemIndex,ai=void 0===rr?0:rr,_i=n.floatingConfig,mi=void 0===_i?{}:_i,Ur=n.class,eo=void 0===Ur?"":Ur;function ts(bt){var vi=[],Tr={};bt.forEach(function(Dh){var ho=uo(Dh);vi.includes(ho)||(vi.push(ho),Tr[ho]=[],ho&&Tr[ho].push(Object.assign(da(ho,Dh),{id:ho,groupHeader:!0,selectable:vo}))),Tr[ho].push(Object.assign({groupItem:!!ho},Dh))});var pa=[];return oo(vi).forEach(function(Dh){Tr[Dh]&&pa.push.apply(pa,Ti(Tr[Dh]))}),pa}function Da(){var bt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,vi=arguments.length>1?arguments[1]:void 0;e(7,ai=bt<0?0:bt),!vi&&uo&&c[ai]&&!c[ai].selectable&&Vo(1)}function bh(){var bt=!0;if(se){var vi=[],Tr=[];se.forEach(function(pa){vi.includes(pa[Zn])?bt=!1:(vi.push(pa[Zn]),Tr.push(pa))}),bt||e(3,se=Tr)}return bt}function bu(bt){var vi=bt?bt[Zn]:se[Zn];return Pn.find(function(Tr){return Tr[Zn]===vi})}function Ta(bt){return Yl.apply(this,arguments)}function Yl(){return(Yl=Dr(Rn().mark(function bt(vi){var Tr;return Rn().wrap(function(pa){for(;;)switch(pa.prev=pa.next){case 0:Tr=se[vi],e(3,se=1===se.length?void 0:se.filter(function(Dh){return Dh!==Tr})),oe("clear",Tr);case 3:case"end":return pa.stop()}},bt)}))).apply(this,arguments)}function _h(bt){var vi;ct&&Z===(null===(vi=document)||void 0===vi?void 0:vi.activeElement)||(bt&&oe("focus",bt),Z.focus(),e(2,ct=!0))}function Qs(bt){return wh.apply(this,arguments)}function wh(){return(wh=Dr(Rn().mark(function bt(vi){return Rn().wrap(function(Tr){for(;;)switch(Tr.prev=Tr.next){case 0:if(!Oi&&!H_){Tr.next=2;break}return Tr.abrupt("return");case 2:(ut||ct)&&(oe("blur",vi),xh(),e(2,ct=!1),e(26,f=void 0),Z.blur());case 3:case"end":return Tr.stop()}},bt)}))).apply(this,arguments)}function xh(){e(4,ke=""),e(6,ut=!1)}k=Dr(Rn().mark(function bt(){return Rn().wrap(function(vi){for(;;)switch(vi.prev=vi.next){case 0:e(78,p=se),e(79,m=ke),e(80,w=ae);case 3:case"end":return vi.stop()}},bt)})),Dv().$$.before_update.push(k),Zc(function(){ut&&e(2,ct=!0),ct&&Z&&Z.focus()});var Dn,QD=n.ariaValues,Ge=void 0===QD?function(bt){return"Option ".concat(bt,", selected.")}:QD,Dt=n.ariaListOpen,tn=void 0===Dt?function(bt,vi){return"You are currently focused on option ".concat(bt,". There are ").concat(vi," results available.")}:Dt,vn=n.ariaFocused,Cn=void 0===vn?function(){return"Select is focused, type to refine list, press down to open the menu."}:vn,li=null;function Ei(){clearTimeout(Dn),Dn=setTimeout(function(){Oi=!1},100)}Gu(function(){var bt;null===(bt=li)||void 0===bt||bt.remove()});var Oi=!1;function ns(bt){bt&&!1!==bt.selectable&&function(vi){if(vi){e(4,ke="");var Tr=Object.assign({},vi);if(Tr.groupHeader&&!Tr.selectable)return;e(3,se=ae?se?se.concat([Tr]):[Tr]:e(3,se=Tr)),setTimeout(function(){yo&&xh(),e(26,f=void 0),oe("change",se),oe("select",vi)})}}(bt)}function Zs(bt){Oi||e(7,ai=bt)}function ms(bt){var pa,vi=bt.item,Tr=bt.i;if(!1!==vi?.selectable){if(se&&!ae&&se[Zn]===vi[Zn])return xh();((pa=vi).groupHeader&&pa.selectable||pa.selectable||!pa.hasOwnProperty("selectable"))&&(e(7,ai=Tr),ns(vi)),H_=!1}}function Vo(bt){if(0===c.filter(function(Tr){return!Object.hasOwn(Tr,"selectable")||!0===Tr.selectable}).length)return e(7,ai=0);e(7,bt>0&&ai===c.length-1?ai=0:bt<0&&0===ai?ai=c.length-1:ai+=bt);var vi=c[ai];vi&&!1===vi.selectable&&(1!==bt&&-1!==bt||Vo(bt))}var Kl=Ch,xd=Ch;function Ch(bt){return{update:function(vi){vi.scroll&&(Ei(),bt.scrollIntoView({behavior:"auto",block:"nearest"}))}}}var to={strategy:"absolute",placement:"bottom-start",middleware:[$Ge(ki),RGe(),jGe()],autoUpdate:!1},dc=di(function UGe(t){var n,e,i={autoUpdate:!0},r=t,o=function(l){return _t(_t(_t({},i),t||{}),l||{})},s=function(l){var c,u,h,d,f,p;n&&e&&(r=o(l),(c=n,u=e,h=r,d=new Map,f=_t({platform:VGe},h),p=_t(_t({},f.platform),{},{_c:d}),EGe(c,u,_t(_t({},f),{},{platform:p}))).then(function(c){var u;Object.assign(e.style,{position:c.strategy,left:"".concat(c.x,"px"),top:"".concat(c.y,"px")}),null!==(u=r)&&void 0!==u&&u.onComputed&&r.onComputed(c)}))};return[function(l){if("subscribe"in l)return function(l){Gu(l.subscribe(function(c){void 0===n?(n=c,s()):(Object.assign(n,c),s())}))}(l),{};n=l,s()},function(l,c){var u;e=l,r=o(c),setTimeout(function(){return s(c)},0),s(c);var h=function(){u&&(u(),u=void 0)},d=function(){var p=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:r||{}).autoUpdate;if(h(),!1!==p)return function zGe(t,n,e,i){void 0===i&&(i={});var o=i.ancestorScroll,a=i.ancestorResize,l=void 0===a||a,c=i.elementResize,u=void 0===c||c,h=i.animationFrame,d=void 0!==h&&h,f=(void 0===o||o)&&!d,p=f||l?[].concat(Ti(oh(t)?qb(t):t.contextElement?qb(t.contextElement):[]),Ti(qb(n))):[];p.forEach(function(E){f&&E.addEventListener("scroll",e,{passive:!0}),l&&E.addEventListener("resize",e)});var m,w=null;if(u){var C=!0;w=new ResizeObserver(function(){C||e(),C=!1}),oh(t)&&!d&&w.observe(t),oh(t)||!t.contextElement||d||w.observe(t.contextElement),w.observe(n)}var k=d?Hg(t):null;return d&&function E(){var L=Hg(t);!k||L.x===k.x&&L.y===k.y&&L.width===k.width&&L.height===k.height||e(),k=L,m=requestAnimationFrame(E)}(),e(),function(){var E;p.forEach(function(L){f&&L.removeEventListener("scroll",e),l&&L.removeEventListener("resize",e)}),null==(E=w)||E.disconnect(),w=null,d&&cancelAnimationFrame(m)}}(n,e,function(){return s(r)},!0===p?{}:p)};return u=d(),{update:function(f){s(f),u=d(f)},destroy:function(){h()}}},s]}(to),3),_u=dc[0],Sh=dc[1],Cd=dc[2],kh=!0,H_=!1;return t.$$set=function(bt){"justValue"in bt&&e(53,re=bt.justValue),"filter"in bt&&e(54,ue=bt.filter),"getItems"in bt&&e(55,De=bt.getItems),"id"in bt&&e(56,ge=bt.id),"name"in bt&&e(8,le=bt.name),"container"in bt&&e(0,z=bt.container),"input"in bt&&e(1,Z=bt.input),"multiple"in bt&&e(9,ae=bt.multiple),"multiFullItemClearable"in bt&&e(10,Oe=bt.multiFullItemClearable),"disabled"in bt&&e(11,Ve=bt.disabled),"focused"in bt&&e(2,ct=bt.focused),"value"in bt&&e(3,se=bt.value),"filterText"in bt&&e(4,ke=bt.filterText),"placeholder"in bt&&e(57,gt=bt.placeholder),"placeholderAlwaysShow"in bt&&e(58,zt=bt.placeholderAlwaysShow),"items"in bt&&e(52,Pn=bt.items),"label"in bt&&e(12,Sn=bt.label),"itemFilter"in bt&&e(59,On=bt.itemFilter),"groupBy"in bt&&e(60,uo=bt.groupBy),"groupFilter"in bt&&e(61,oo=bt.groupFilter),"groupHeaderSelectable"in bt&&e(62,vo=bt.groupHeaderSelectable),"itemId"in bt&&e(13,Zn=bt.itemId),"loadOptions"in bt&&e(63,Ii=bt.loadOptions),"containerStyles"in bt&&e(14,Xr=bt.containerStyles),"hasError"in bt&&e(15,gs=bt.hasError),"filterSelectedItems"in bt&&e(64,ei=bt.filterSelectedItems),"required"in bt&&e(16,Vi=bt.required),"closeListOnChange"in bt&&e(65,yo=bt.closeListOnChange),"createGroupHeaderItem"in bt&&e(66,da=bt.createGroupHeaderItem),"searchable"in bt&&e(17,fa=bt.searchable),"inputStyles"in bt&&e(18,cl=bt.inputStyles),"clearable"in bt&&e(68,Ue=bt.clearable),"loading"in bt&&e(5,ft=bt.loading),"listOpen"in bt&&e(6,ut=bt.listOpen),"debounce"in bt&&e(69,Si=bt.debounce),"debounceWait"in bt&&e(70,Fi=bt.debounceWait),"hideEmptyState"in bt&&e(19,xo=bt.hideEmptyState),"inputAttributes"in bt&&e(71,zr=bt.inputAttributes),"listAutoWidth"in bt&&e(72,qt=bt.listAutoWidth),"showChevron"in bt&&e(20,kn=bt.showChevron),"listOffset"in bt&&e(73,ki=bt.listOffset),"hoverItemIndex"in bt&&e(7,ai=bt.hoverItemIndex),"floatingConfig"in bt&&e(74,mi=bt.floatingConfig),"class"in bt&&e(21,eo=bt.class),"ariaValues"in bt&&e(75,Ge=bt.ariaValues),"ariaListOpen"in bt&&e(76,tn=bt.ariaListOpen),"ariaFocused"in bt&&e(77,Cn=bt.ariaFocused),"$$scope"in bt&&e(82,B=bt.$$scope)},t.$$.update=function(){var bt,vi,Tr,pa,Dh,ho;8&t.$$.dirty[0]|2097152&t.$$.dirty[1]&&se&&function(){if("string"==typeof se){var ho,ga=(Pn||[]).find(function(wu){return wu[Zn]===se});e(3,se=ga||(rc(ho={},Zn,se),rc(ho,"label",se),ho))}else ae&&Array.isArray(se)&&se.length>0&&e(3,se=se.map(function(wu){return"string"==typeof wu?{value:wu,label:wu}:wu}))}(),131072&t.$$.dirty[0]|512&t.$$.dirty[2]&&(!zr&&fa||(e(27,C=Object.assign({autocapitalize:"none",autocomplete:"off",autocorrect:"off",spellcheck:!1,tabindex:0,type:"text","aria-autocomplete":"list"},zr)),ge&&e(27,C.id=ge,C),fa||e(27,C.readonly=!0,C))),512&t.$$.dirty[0]&&ae&&se&&(Array.isArray(se)?e(3,se=Ti(se)):e(3,se=[se])),512&t.$$.dirty[0]|262144&t.$$.dirty[2]&&w&&!ae&&se&&e(3,se=null),520&t.$$.dirty[0]&&ae&&se&&se.length>1&&bh(),8&t.$$.dirty[0]&&se&&(ae?JSON.stringify(se)!==JSON.stringify(p)&&bh()&&oe("input",se):p&&JSON.stringify(se[Zn])===JSON.stringify(p[Zn])||oe("input",se)),520&t.$$.dirty[0]|65536&t.$$.dirty[2]&&!se&&ae&&p&&oe("input",se),6&t.$$.dirty[0]&&!ct&&Z&&xh(),16&t.$$.dirty[0]|131072&t.$$.dirty[2]&&ke!==m&&(Ii||0!==ke.length)&&(Ii?Si(Dr(Rn().mark(function ho(){var ga;return Rn().wrap(function(wu){for(;;)switch(wu.prev=wu.next){case 0:return e(5,ft=!0),wu.next=3,De({dispatch:oe,loadOptions:Ii,convertStringItemsToObjects:aae,filterText:ke});case 3:(ga=wu.sent)?(e(5,ft=ga.loading),e(6,ut=ut?ga.listOpen:ke.length>0),e(2,ct=ut&&ga.focused),e(52,Pn=uo?ts(ga.filteredItems):ga.filteredItems)):(e(5,ft=!1),e(2,ct=!0),e(6,ut=!0));case 5:case"end":return wu.stop()}},ho)})),Fi):(e(6,ut=!0),ae&&e(26,f=void 0))),12824&t.$$.dirty[0]|815792128&t.$$.dirty[1]|6&t.$$.dirty[2]&&e(24,c=ue({loadOptions:Ii,filterText:ke,items:Pn,multiple:ae,value:se,itemId:Zn,groupBy:uo,label:Sn,filterSelectedItems:ei,itemFilter:On,convertStringItemsToObjects:aae,filterGroupedItems:ts})),16777800&t.$$.dirty[0]&&!ae&&ut&&se&&c&&(bt=c.findIndex(function(ho){return ho[Zn]===se[Zn]}),Da(bt,!0)),576&t.$$.dirty[0]&&ut&&ae&&e(7,ai=0),16&t.$$.dirty[0]&&ke&&e(7,ai=0),128&t.$$.dirty[0]&&oe("hoverItem",ai),520&t.$$.dirty[0]&&e(25,i=ae?se&&se.length>0:se),33554448&t.$$.dirty[0]&&e(35,r=i&&ke.length>0),33556512&t.$$.dirty[0]|64&t.$$.dirty[2]&&e(34,o=i&&Ue&&!Ve&&!ft),520&t.$$.dirty[0]|201326592&t.$$.dirty[1]&&e(33,s=zt&&ae||ae&&0===(null===(vi=se)||void 0===vi?void 0:vi.length)?gt:se?"":gt),520&t.$$.dirty[0]&&e(32,a=se?(Tr=ae&&se.length>0?se.map(function(ho){return ho[Sn]}).join(", "):se[Sn],Ge(Tr)):""),16777412&t.$$.dirty[0]&&e(31,l=function(){if(!c||0===c.length)return"";var ho=c[ai];return ut&&ho?tn(ho[Sn],c?c.length:0):Cn()}()),2097152&t.$$.dirty[1]&&(ho=Pn)&&0!==ho.length&&!ho.some(function(ga){return"object"!==$n(ga)})&&se&&(ae?!se.some(function(ga){return!ga||!ga[Zn]}):se[Zn])&&(Array.isArray(se)?e(3,se=se.map(function(ga){return bu(ga)||ga})):e(3,se=bu()||se)),8712&t.$$.dirty[0]&&e(53,re=ae?se?se.map(function(ho){return ho[Zn]}):null:se&&se[Zn]),520&t.$$.dirty[0]|65536&t.$$.dirty[2]&&(ae||!p||se||oe("input",se)),16777800&t.$$.dirty[0]&&ut&&c&&!ae&&!se&&Da(),16777216&t.$$.dirty[0]&&function(ho){ut&&oe("filter",ho)}(c),1&t.$$.dirty[0]|4096&t.$$.dirty[2]&&z&&void 0===(null===(pa=mi)||void 0===pa?void 0:pa.autoUpdate)&&e(81,to.autoUpdate=!0,to),1&t.$$.dirty[0]|528384&t.$$.dirty[2]&&z&&mi&&Cd(Object.assign(to,mi)),8388608&t.$$.dirty[0]&&e(30,u=!!li),8388672&t.$$.dirty[0]&&function(ho,ga){if(!ho||!ga)return e(28,kh=!0);setTimeout(function(){e(28,kh=!1)},0)}(li,ut),8388673&t.$$.dirty[0]&&ut&&z&&li&&(Dh=z.getBoundingClientRect().width,e(23,li.style.width=qt?Dh+"px":"auto",li)),128&t.$$.dirty[0]&&e(29,h=ai),70&t.$$.dirty[0]&&Z&&ut&&!ct&&_h()},[z,Z,ct,se,ke,ft,ut,ai,le,ae,Oe,Ve,Sn,Zn,Xr,gs,Vi,fa,cl,xo,kn,eo,function(){oe("clear",se),e(3,se=void 0),xh(),_h()},li,c,i,f,C,kh,h,u,l,a,s,o,r,Ta,function(bt){if(ct)switch(bt.stopPropagation(),bt.key){case"Escape":bt.preventDefault(),xh();break;case"Enter":if(bt.preventDefault(),ut){if(0===c.length)break;if(se&&!ae&&se[Zn]===c[ai][Zn]){xh();break}ns(c[ai])}break;case"ArrowDown":bt.preventDefault(),ut?Vo(1):(e(6,ut=!0),e(26,f=void 0));break;case"ArrowUp":bt.preventDefault(),ut?Vo(-1):(e(6,ut=!0),e(26,f=void 0));break;case"Tab":if(ut&&ct){if(0===c.length||se&&se[Zn]===c[ai][Zn])return xh();bt.preventDefault(),ns(c[ai]),xh()}break;case"Backspace":if(!ae||ke.length>0)return;if(ae&&se&&se.length>0){if(Ta(void 0!==f?f:se.length-1),0===f||void 0===f)break;e(26,f=se.length>f?f-1:void 0)}break;case"ArrowLeft":if(!se||!ae||ke.length>0)return;void 0===f?e(26,f=se.length-1):se.length>f&&0!==f&&e(26,f-=1);break;case"ArrowRight":if(!se||!ae||ke.length>0||void 0===f)return;f===se.length-1?e(26,f=void 0):f",">="].map(function(ge){return{value:ge,label:ge}}),re=[{value:"asc",label:"ascending"},{value:"desc",label:"descending"}],ce=null!==(i=G)&&void 0!==i&&null!==(r=i.filter)&&void 0!==r&&r.path?Nb(G.filter.path):null,ue=null!==(o=G)&&void 0!==o&&null!==(s=o.filter)&&void 0!==s&&s.relation?fe.find(function(ge){var we;return ge.value===(null===(we=G.filter)||void 0===we?void 0:we.relation)}):null,pe=(null===(a=G)||void 0===a||null===(l=a.filter)||void 0===l?void 0:l.value)||"",De=null!==(c=G)&&void 0!==c&&null!==(u=c.sort)&&void 0!==u&&u.path?Nb(G.sort.path):null,ie=null!==(h=G)&&void 0!==h&&null!==(d=h.sort)&&void 0!==d&&d.direction?re.find(function(ge){var we;return ge.value===(null===(we=G.sort)||void 0===we?void 0:we.direction)}):null;return t.$$set=function(ge){"json"in ge&&e(11,L=ge.json),"queryOptions"in ge&&e(10,G=ge.queryOptions),"onChange"in ge&&e(12,oe=ge.onChange)},t.$$.update=function(){var ge,we,le,Fe,z,Q,Z,me,ae,Te,Oe,Ze,Ve,wt,ct,Ct,se,Se,ke,Qe,gt;2048&t.$$.dirty&&e(15,f=Array.isArray(L)),34816&t.$$.dirty&&e(14,p=f?wO(L):[]),34816&t.$$.dirty&&e(13,m=f?wO(L,!0):[]),16384&t.$$.dirty&&e(7,w=p.map(Nb)),8192&t.$$.dirty&&e(6,C=m?m.map(Nb):[]),1088&t.$$.dirty&&e(5,k=null!==(ge=G)&&void 0!==ge&&null!==(we=ge.projection)&&void 0!==we&&we.paths&&C?G.projection.paths.map(function(ke){return C.find(function(Qe){return Mr(Qe.value,ke)})}).filter(function(ke){return!!ke}):null),1&t.$$.dirty&&(Fe=(null===(le=ce)||void 0===le?void 0:le.value)||null,Mr(null===(z=G)||void 0===z||null===(Q=z.filter)||void 0===Q?void 0:Q.path,Fe)||(E("changeFilterPath",Fe),e(10,G=Ju(G,["filter","path"],Fe,!0)),oe(G))),2&t.$$.dirty&&(me=(null===(Z=ue)||void 0===Z?void 0:Z.value)||null,Mr(null===(ae=G)||void 0===ae||null===(Te=ae.filter)||void 0===Te?void 0:Te.relation,me)||(E("changeFilterRelation",me),e(10,G=Ju(G,["filter","relation"],me,!0)),oe(G))),4&t.$$.dirty&&(Mr(null===(Ze=G)||void 0===Ze||null===(Ve=Ze.filter)||void 0===Ve?void 0:Ve.value,Oe=pe||null)||(E("changeFilterValue",Oe),e(10,G=Ju(G,["filter","value"],Oe,!0)),oe(G))),8&t.$$.dirty&&(ke=(null===(wt=De)||void 0===wt?void 0:wt.value)||null,Mr(null===(Qe=G)||void 0===Qe||null===(gt=Qe.sort)||void 0===gt?void 0:gt.path,ke)||(E("changeSortPath",ke),e(10,G=Ju(G,["sort","path"],ke,!0)),oe(G))),16&t.$$.dirty&&(Ct=(null===(ct=ie)||void 0===ct?void 0:ct.value)||null,Mr(null===(se=G)||void 0===se||null===(Se=se.sort)||void 0===Se?void 0:Se.direction,Ct)||(E("changeSortDirection",Ct),e(10,G=Ju(G,["sort","direction"],Ct,!0)),oe(G))),32&t.$$.dirty&&function(ke){var Qe,gt;Mr(null===(Qe=G)||void 0===Qe||null===(gt=Qe.projection)||void 0===gt?void 0:gt.paths,ke)||(E("changeProjectionPaths",ke),e(10,G=Ju(G,["projection","paths"],ke,!0)),oe(G))}(k?k.map(function(ke){return ke.value}):null)},[ce,ue,pe,De,ie,k,C,w,fe,re,G,L,oe,m,p,f,function(ge){e(0,ce=ge)},function(ge){e(1,ue=ge)},function(){e(2,pe=this.value)},function(ge){e(3,De=ge)},function(ge){e(4,ie=ge)},function(ge){e(5,k=ge),e(10,G),e(6,C),e(13,m),e(15,f),e(11,L)}]}var Cqe=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,xqe,wqe,Zi,{json:11,queryOptions:10,onChange:12},_qe),r}return Xe(e)}();function Sqe(t){Ni(t,"svelte-19cxesy",".jse-select-query-language.svelte-19cxesy.svelte-19cxesy{position:relative;width:32px}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container.svelte-19cxesy{position:absolute;top:0;right:0;display:flex;flex-direction:column;box-shadow:var(--jse-controls-box-shadow)}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container .jse-query-language.svelte-19cxesy{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;text-align:left;padding:var(--jse-padding) calc(2 * var(--jse-padding));white-space:nowrap;color:var(--jse-context-menu-color);background:var(--jse-context-menu-background)}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container .jse-query-language.svelte-19cxesy:hover{background:var(--jse-context-menu-background-highlight)}")}function lae(t,n,e){var i=t.slice();return i[5]=n[e],i}function kqe(t){var n,e;return n=new Ir({props:{data:Pb}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:an,i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function Dqe(t){var n,e;return n=new Ir({props:{data:$b}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:an,i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function cae(t){var n,e,i,r,o,s,a,l,c,u,h=t[5].name+"",d=[Dqe,kqe],f=[];function p(w,C){return w[5].id===w[0]?0:1}function m(){return t[4](t[5])}return e=p(t),i=f[e]=d[e](t),{c:function(){n=Be("button"),i.c(),r=xt(),o=xn(h),s=xt(),ne(n,"type","button"),ne(n,"class","jse-query-language svelte-19cxesy"),ne(n,"title",a="Select ".concat(t[5].name," as query language")),en(n,"selected",t[5].id===t[0])},m:function(w,C){nt(w,n,C),f[e].m(n,null),Ie(n,r),Ie(n,o),Ie(n,s),l=!0,c||(u=rn(n,"click",m),c=!0)},p:function(w,C){var k=e;(e=p(t=w))===k?f[e].p(t,C):(cn(),Ee(f[k],1,1,function(){f[k]=null}),un(),(i=f[e])?i.p(t,C):(i=f[e]=d[e](t)).c(),_e(i,1),i.m(n,r)),(!l||2&C)&&h!==(h=t[5].name+"")&&gi(o,h),(!l||2&C&&a!==(a="Select ".concat(t[5].name," as query language")))&&ne(n,"title",a),(!l||3&C)&&en(n,"selected",t[5].id===t[0])},i:function(w){l||(_e(i),l=!0)},o:function(w){Ee(i),l=!1},d:function(w){w&&tt(n),f[e].d(),c=!1,u()}}}function Tqe(t){for(var n,e,i,r=t[1],o=[],s=0;s1&&uae(t);return s=new Ir({props:{data:d0}}),{c:function(){n=Be("div"),(e=Be("div")).textContent="Transform",i=xt(),u&&u.c(),r=xt(),o=Be("button"),$t(s.$$.fragment),ne(e,"class","jse-title svelte-d01h2s"),ne(o,"type","button"),ne(o,"class","jse-close svelte-d01h2s"),ne(n,"class","jse-header svelte-d01h2s")},m:function(h,d){nt(h,n,d),Ie(n,e),Ie(n,i),u&&u.m(n,null),Ie(n,r),Ie(n,o),Nt(s,o,null),a=!0,l||(c=rn(o,"click",t[2]),l=!0)},p:function(h,d){var f=di(d,1)[0];h[0].length>1?u?(u.p(h,f),1&f&&_e(u,1)):((u=uae(h)).c(),_e(u,1),u.m(n,r)):u&&(cn(),Ee(u,1,1,function(){u=null}),un())},i:function(h){a||(_e(u),_e(s.$$.fragment,h),a=!0)},o:function(h){Ee(u),Ee(s.$$.fragment,h),a=!1},d:function(h){h&&tt(n),u&&u.d(),Rt(s),l=!1,c()}}}function Fqe(t,n,e){var i,r,o=n.queryLanguages,s=n.queryLanguageId,a=n.onChangeQueryLanguage,l=$a("simple-modal").close,c=$a("absolute-popup"),u=c.openAbsolutePopup,h=c.closeAbsolutePopup;return t.$$set=function(d){"queryLanguages"in d&&e(0,o=d.queryLanguages),"queryLanguageId"in d&&e(4,s=d.queryLanguageId),"onChangeQueryLanguage"in d&&e(5,a=d.onChangeQueryLanguage)},[o,i,l,function(){r=u(Eqe,{queryLanguages:o,queryLanguageId:s,onChangeQueryLanguage:function(d){h(r),a(d)}},{position:"bottom",offsetTop:-2,offsetLeft:0,anchor:i,closeOnOuterClick:!0})},s,a,function(d){dr[d?"unshift":"push"](function(){e(1,i=d)})}]}var Lqe=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,Fqe,Iqe,Zi,{queryLanguages:0,queryLanguageId:4,onChangeQueryLanguage:5},Mqe),r}return Xe(e)}(),rN=Pa("jsoneditor:AutoScrollHandler"),Oqe=function(t,n,e,i){return(t/=i/2)<1?e/2*t*t+n:-e/2*(--t*(t-2)-1)+n},hae=function(){var t,n,e,i,r,o,s,a,l,c,u,h,d;function p(C){return C.getBoundingClientRect().top-(t.getBoundingClientRect?t.getBoundingClientRect().top:0)+e}function m(C){t.scrollTo?t.scrollTo(t.scrollLeft,C):t.scrollTop=C}function w(C){c||(c=C),m(o(u=C-c,e,a,l)),d=!0,u1&&void 0!==arguments[1]?arguments[1]:{};switch(l=1e3,r=k.offset||0,h=void 0,o=k.easing||Oqe,s=k.a11y||!1,$n(k.container)){case"object":t=k.container;break;case"string":t=document.querySelector(k.container);break;default:t=window.document.documentElement}switch(e=function f(){return t.scrollTop}(),$n(C)){case"number":n=void 0,s=!1,i=e+C;break;case"object":i=p(n=C);break;case"string":n=document.querySelector(C),i=p(n)}switch(a=i-e+r,$n(k.duration)){case"number":l=k.duration;break;case"function":l=k.duration(a)}d?c=0:requestAnimationFrame(w)}},J2=Pa("jsoneditor:History");function dae(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.maxItems||1e3,e=[],i=0;function r(){return i0}function s(){return{canUndo:r(),canRedo:o(),length:e.length}}function a(){t.onChange&&t.onChange(s())}return{add:function l(d){J2("add",d),e=[d].concat(e.slice(i)).slice(0,n),i=0,a()},clear:function c(){J2("clear"),e=[],i=0,a()},getState:s,undo:function u(){if(r()){var d=e[i];return i+=1,J2("undo",d),a(),d}},redo:function h(){if(o())return J2("redo",e[i-=1]),a(),e[i]}}}function p0(t,n){var e=Date.now(),i=t();return n(Date.now()-e),i}var g0=Pa("validation");function fae(t,n,e,i){return g0("validateJSON"),n?n(e!==i?i.parse(e.stringify(t)):t):[]}function Nqe(t,n,e,i){if(g0("validateText"),t.length>104857600)return{validationErrors:[{path:[],message:"Validation turned off: the document is too large",severity:Xh.info}]};if(0===t.length)return null;try{var r=p0(function(){return e.parse(t)},function(l){return g0("validate: parsed json in ".concat(l," ms"))});if(!n)return null;var o=e===i?r:p0(function(){return i.parse(t)},function(l){return g0("validate: parsed json with the validationParser in ".concat(l," ms"))}),s=p0(function(){return n(o)},function(l){return g0("validate: validated json in ".concat(l," ms"))});return fr(s)?null:{validationErrors:s}}catch(l){var a=p0(function(){return function(c,u){if(c.length>1048576)return!1;try{return u.parse(Yh(c)),!0}catch{return!1}}(t,e)},function(c){return g0("validate: checked whether repairable in ".concat(c," ms"))});return{parseError:M2(t,l.message||l.toString()),isRepairable:a}}}var Q2=Pa("jsoneditor:FocusTracker");function oN(t){var n,i=t.onDestroy,r=t.getWindow,o=t.hasFocus,s=t.onFocus,a=t.onBlur,l=!1;function c(){var h=o();h&&(clearTimeout(n),l||(Q2("focus"),s(),l=h))}function u(){l&&(clearTimeout(n),n=setTimeout(function(){Q2("blur"),l=!1,a()}))}(0,t.onMount)(function(){Q2("mount FocusTracker");var h=r();h&&(h.addEventListener("focusin",c,!0),h.addEventListener("focusout",u,!0))}),i(function(){Q2("destroy FocusTracker");var h=r();h&&(h.removeEventListener("focusin",c,!0),h.removeEventListener("focusout",u,!0))})}function Rqe(t){Ni(t,"svelte-fqu1ku",".jse-message.svelte-fqu1ku.svelte-fqu1ku{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);padding:var(--jse-padding);display:flex;gap:var(--jse-padding);flex-wrap:wrap;align-items:stretch}.jse-message.jse-success.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-success-background);color:var(--jse-message-success-color)}.jse-message.svelte-fqu1ku .jse-text.svelte-fqu1ku{display:flex;flex:1;min-width:60%;align-items:center}.jse-message.svelte-fqu1ku .jse-text.jse-clickable.svelte-fqu1ku{cursor:pointer}.jse-message.svelte-fqu1ku .jse-text.jse-clickable.svelte-fqu1ku:hover{background-color:rgba(255, 255, 255, 0.1)}.jse-message.jse-error.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-error-background);color:var(--jse-message-error-color)}.jse-message.jse-warning.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-warning-background);color:var(--jse-message-warning-color)}.jse-message.jse-info.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-info-background);color:var(--jse-message-info-color)}.jse-message.svelte-fqu1ku .jse-actions.svelte-fqu1ku{display:flex;gap:var(--jse-padding)}.jse-message.svelte-fqu1ku .jse-actions button.jse-action.svelte-fqu1ku{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-message-action-background);color:inherit;padding:calc(0.5 * var(--jse-padding)) var(--jse-padding)}.jse-message.svelte-fqu1ku .jse-actions button.jse-action.svelte-fqu1ku:hover{background:var(--jse-message-action-background-highlight)}")}function pae(t,n,e){var i=t.slice();return i[8]=n[e],i}function gae(t){var n,e;return n=new Ir({props:{data:t[1]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};2&r&&(o.data=i[1]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function mae(t){var n,e;return n=new Ir({props:{data:t[8].icon}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};8&r&&(o.data=i[8].icon),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function vae(t){var n,e,i,r,o,s,a,l,c,u=t[8].text+"",h=t[8].icon&&mae(t);function d(){return t[6](t[8])}function f(){return t[7](t[8])}return{c:function(){n=Be("button"),h&&h.c(),e=xt(),i=xn(u),r=xt(),ne(n,"type","button"),ne(n,"class","jse-button jse-action jse-primary svelte-fqu1ku"),ne(n,"title",o=t[8].title),n.disabled=s=t[8].disabled},m:function(p,m){nt(p,n,m),h&&h.m(n,null),Ie(n,e),Ie(n,i),Ie(n,r),a=!0,l||(c=[rn(n,"click",d),rn(n,"mousedown",f)],l=!0)},p:function(p,m){(t=p)[8].icon?h?(h.p(t,m),8&m&&_e(h,1)):((h=mae(t)).c(),_e(h,1),h.m(n,e)):h&&(cn(),Ee(h,1,1,function(){h=null}),un()),(!a||8&m)&&u!==(u=t[8].text+"")&&gi(i,u),(!a||8&m&&o!==(o=t[8].title))&&ne(n,"title",o),(!a||8&m&&s!==(s=t[8].disabled))&&(n.disabled=s)},i:function(p){a||(_e(h),a=!0)},o:function(p){Ee(h),a=!1},d:function(p){p&&tt(n),h&&h.d(),l=!1,Fo(c)}}}function $qe(t){for(var n,e,i,r,o,s,a,l,c,u,h,d=t[1]&&gae(t),f=t[3],p=[],m=0;m100&&xae(t);return{c:function(){n=Be("table"),e=Be("tbody");for(var u=0;u100?c?c.p(u,h):((c=xae(u)).c(),c.m(e,null)):c&&(c.d(1),c=null)},i:function(u){if(!r){for(var h=0;h1&&_ae(t);function k(){return t[6](t[7])}return{c:function(){n=Be("tr"),e=Be("td"),$t(i.$$.fragment),r=xt(),o=Be("td"),s=xn(m),a=xt(),l=Be("td"),c=xn(w),u=xt(),h=Be("td"),C&&C.c(),ne(e,"class","jse-validation-error-icon svelte-1oe8e8r"),ne(o,"class","svelte-1oe8e8r"),ne(l,"class","svelte-1oe8e8r"),ne(h,"class","jse-validation-error-action svelte-1oe8e8r"),ne(n,"class","jse-validation-error svelte-1oe8e8r")},m:function(E,L){nt(E,n,L),Ie(n,e),Nt(i,e,null),Ie(n,r),Ie(n,o),Ie(o,s),Ie(n,a),Ie(n,l),Ie(l,c),Ie(n,u),Ie(n,h),C&&C.m(h,null),d=!0,f||(p=rn(n,"click",k),f=!0)},p:function(E,L){t=E,(!d||1&L)&&m!==(m=lu(lc(t[7].path))+"")&&gi(s,m),(!d||1&L)&&w!==(w=t[7].message+"")&&gi(c,w),0===t[9]&&t[0].length>1?C?(C.p(t,L),1&L&&_e(C,1)):((C=_ae(t)).c(),_e(C,1),C.m(h,null)):C&&(cn(),Ee(C,1,1,function(){C=null}),un())},i:function(E){d||(_e(i.$$.fragment,E),_e(C),d=!0)},o:function(E){Ee(i.$$.fragment,E),Ee(C),d=!1},d:function(E){E&&tt(n),Rt(i),C&&C.d(),f=!1,p()}}}function xae(t){var n,e,i,r,o,s,a,l,c,u,h,d=t[3]-100+"";return{c:function(){n=Be("tr"),e=Be("td"),i=xt(),r=Be("td"),o=xt(),s=Be("td"),a=xn("(and "),l=xn(d),c=xn(" more errors)"),u=xt(),h=Be("td"),ne(e,"class","svelte-1oe8e8r"),ne(r,"class","svelte-1oe8e8r"),ne(s,"class","svelte-1oe8e8r"),ne(h,"class","svelte-1oe8e8r"),ne(n,"class","jse-validation-error svelte-1oe8e8r")},m:function(f,p){nt(f,n,p),Ie(n,e),Ie(n,i),Ie(n,r),Ie(n,o),Ie(n,s),Ie(s,a),Ie(s,l),Ie(s,c),Ie(n,u),Ie(n,h)},p:function(f,p){8&p&&d!==(d=f[3]-100+"")&&gi(l,d)},d:function(f){f&&tt(n)}}}function Vqe(t){var n,e,i=!fr(t[0]),r=i&&bae(t);return{c:function(){r&&r.c(),n=Wr()},m:function(o,s){r&&r.m(o,s),nt(o,n,s),e=!0},p:function(o,s){var a=di(s,1)[0];1&a&&(i=!fr(o[0])),i?r?(r.p(o,a),1&a&&_e(r,1)):((r=bae(o)).c(),_e(r,1),r.m(n.parentNode,n)):r&&(cn(),Ee(r,1,1,function(){r=null}),un())},i:function(o){e||(_e(r),e=!0)},o:function(o){Ee(r),e=!1},d:function(o){r&&r.d(o),o&&tt(n)}}}function zqe(t,n,e){var i,r=n.validationErrors,o=n.selectError,s=!0;return t.$$set=function(a){"validationErrors"in a&&e(0,r=a.validationErrors),"selectError"in a&&e(1,o=a.selectError)},t.$$.update=function(){1&t.$$.dirty&&e(3,i=r.length)},[r,o,s,i,function(){e(2,s=!1)},function(){e(2,s=!0)},function(a){setTimeout(function(){return o(a)})}]}var sN=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,zqe,Vqe,Zi,{validationErrors:0,selectError:1},jqe),r}return Xe(e)}(),Uqe=typeof navigator<"u"&&navigator.platform.toUpperCase().indexOf("MAC")>=0;function Wqe(t){Ni(t,"svelte-d01h2s",".jse-header.svelte-d01h2s.svelte-d01h2s{display:flex;background:var(--jse-theme-color);color:var(--jse-menu-color)}.jse-header.svelte-d01h2s .jse-title.svelte-d01h2s{flex:1;padding:5px;vertical-align:middle}.jse-header.svelte-d01h2s button.svelte-d01h2s{border:none;background:transparent;min-width:32px;color:inherit;cursor:pointer}.jse-header.svelte-d01h2s button.svelte-d01h2s:hover{background:rgba(255, 255, 255, 0.1)}")}function Gqe(t){var n,e,i,r,o,s,a,l,c;return s=new Ir({props:{data:d0}}),{c:function(){n=Be("div"),e=Be("div"),i=xn(t[0]),r=xt(),o=Be("button"),$t(s.$$.fragment),ne(e,"class","jse-title svelte-d01h2s"),ne(o,"type","button"),ne(o,"class","jse-close svelte-d01h2s"),ne(n,"class","jse-header svelte-d01h2s")},m:function(u,h){nt(u,n,h),Ie(n,e),Ie(e,i),Ie(n,r),Ie(n,o),Nt(s,o,null),a=!0,l||(c=rn(o,"click",t[3]),l=!0)},p:function(u,h){var d=di(h,1)[0];(!a||1&d)&&gi(i,u[0])},i:function(u){a||(_e(s.$$.fragment,u),a=!0)},o:function(u){Ee(s.$$.fragment,u),a=!1},d:function(u){u&&tt(n),Rt(s),l=!1,c()}}}function qqe(t,n,e){var i=n.title,r=void 0===i?"Modal":i,o=n.onClose,s=void 0===o?void 0:o,a=$a("simple-modal").close;return t.$$set=function(l){"title"in l&&e(0,r=l.title),"onClose"in l&&e(1,s=l.onClose)},[r,s,a,function(){s?s():a()}]}var aN=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,qqe,Gqe,Zi,{title:0,onClose:1},Wqe),r}return Xe(e)}();function Xqe(t){Ni(t,"svelte-1olothd",".jse-modal.svelte-1olothd.svelte-1olothd{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-1olothd .jse-modal-contents.svelte-1olothd{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions.svelte-1olothd{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-copy-paste.svelte-1olothd .jse-shortcuts.svelte-1olothd{display:flex;flex-wrap:wrap;justify-content:space-around;margin:calc(2 * var(--jse-padding)) 0}.jse-modal.jse-copy-paste.svelte-1olothd .jse-shortcuts .jse-shortcut .jse-key.svelte-1olothd{font-size:200%;color:var(--jse-theme-color)}")}function Yqe(t){var n,e,i,r,o,s,a,l,c,u,h,d,f,p,m,w,C,k,E,L,B,G,oe,fe;return e=new aN({props:{title:"Copying and pasting"}}),{c:function(){n=Be("div"),$t(e.$$.fragment),i=xt(),r=Be("div"),(o=Be("div")).textContent="These actions are unavailable via the menu. Please use:",s=xt(),a=Be("div"),l=Be("div"),(c=Be("div")).textContent="".concat(t[1],"+C"),u=xn("\n for copy"),h=xt(),d=Be("div"),(f=Be("div")).textContent="".concat(t[1],"+X"),p=xn("\n for cut"),m=xt(),w=Be("div"),(C=Be("div")).textContent="".concat(t[1],"+V"),k=xn("\n for paste"),E=xt(),L=Be("div"),(B=Be("button")).textContent="Close",ne(c,"class","jse-key svelte-1olothd"),ne(l,"class","jse-shortcut"),ne(f,"class","jse-key svelte-1olothd"),ne(d,"class","jse-shortcut"),ne(C,"class","jse-key svelte-1olothd"),ne(w,"class","jse-shortcut"),ne(a,"class","jse-shortcuts svelte-1olothd"),ne(B,"type","button"),ne(B,"class","jse-primary svelte-1olothd"),ne(L,"class","jse-actions svelte-1olothd"),ne(r,"class","jse-modal-contents svelte-1olothd"),ne(n,"class","jse-modal jse-copy-paste svelte-1olothd")},m:function(re,ce){nt(re,n,ce),Nt(e,n,null),Ie(n,i),Ie(n,r),Ie(r,o),Ie(r,s),Ie(r,a),Ie(a,l),Ie(l,c),Ie(l,u),Ie(a,h),Ie(a,d),Ie(d,f),Ie(d,p),Ie(a,m),Ie(a,w),Ie(w,C),Ie(w,k),Ie(r,E),Ie(r,L),Ie(L,B),G=!0,oe||(fe=rn(B,"click",t[0]),oe=!0)},p:an,i:function(re){G||(_e(e.$$.fragment,re),G=!0)},o:function(re){Ee(e.$$.fragment,re),G=!1},d:function(re){re&&tt(n),Rt(e),oe=!1,fe()}}}function Kqe(t){return[$a("simple-modal").close,Uqe?"\u2318":"Ctrl"]}var Cae=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,Kqe,Yqe,Zi,{},Xqe),r}return Xe(e)}();function Sae(t){return!!t&&("space"===t.type||!0===t.space)}function Z2(t){return!!t&&("separator"===t.type||!0===t.separator)}function Xb(t){return!!t&&"function"==typeof t.onClick}function lN(t){return!!t&&"dropdown-button"===t.type&&Xb(t.main)&&Array.isArray(t.items)}function kae(t){return Ko(t)&&Ko(t.parseError)}function Qqe(t){Ni(t,"svelte-497ud4",".jse-menu.svelte-497ud4.svelte-497ud4{background:var(--jse-theme-color);border-bottom:1px solid var(--jse-theme-color);color:var(--jse-menu-color);display:flex;flex-wrap:wrap;align-items:center;position:relative}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4{width:var(--jse-menu-button-size);height:var(--jse-menu-button-size);border:none;background:transparent;color:inherit;cursor:pointer;padding:calc(0.5 * var(--jse-padding));margin:0;border-radius:0}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:hover,.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:focus{background:var(--jse-theme-color-highlight)}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:disabled{color:var(--jse-menu-color);opacity:0.5;background:transparent}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4{border:1px solid var(--jse-menu-color);padding:0 calc(0.5 * var(--jse-padding));margin:calc(0.5 * var(--jse-padding)) 0;height:calc(var(--jse-menu-button-size) - var(--jse-padding));width:auto}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:not(.jse-last){border-right:none}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-first.svelte-497ud4{margin-left:calc(0.5 * var(--jse-padding))}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-last.svelte-497ud4{margin-right:calc(0.5 * var(--jse-padding))}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:hover,.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:focus{background:var(--jse-theme-color-highlight)}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-selected.svelte-497ud4{background:var(--jse-menu-color);color:var(--jse-theme-color)}.jse-menu.svelte-497ud4 .jse-space.svelte-497ud4{flex:1}.jse-menu.svelte-497ud4 .jse-separator.svelte-497ud4{background:var(--jse-menu-color);opacity:0.3;box-sizing:border-box;width:1px;height:calc(var(--jse-menu-button-size) - 6px);margin:3px}")}var Zqe=function(t){return{}},Dae=function(t){return{}};function Tae(t,n,e){var i=t.slice();return i[3]=n[e],i}var eXe=function(t){return{}},Aae=function(t){return{}};function tXe(t){var n,e=Fae(t[3])+"";return{c:function(){n=xn(e)},m:function(i,r){nt(i,n,r)},p:function(i,r){1&r&&e!==(e=Fae(i[3])+"")&&gi(n,e)},i:an,o:an,d:function(i){i&&tt(n)}}}function nXe(t){var n,e,i,r,o,s,a,l,c=t[3].icon&&Eae(t),u=t[3].text&&Mae(t);return{c:function(){n=Be("button"),c&&c.c(),e=xt(),u&&u.c(),ne(n,"type","button"),ne(n,"class",i="jse-button "+t[3].className+" svelte-497ud4"),ne(n,"title",r=t[3].title),n.disabled=o=t[3].disabled||!1},m:function(h,d){nt(h,n,d),c&&c.m(n,null),Ie(n,e),u&&u.m(n,null),s=!0,a||(l=rn(n,"click",function(){Na(t[3].onClick)&&t[3].onClick.apply(this,arguments)}),a=!0)},p:function(h,d){(t=h)[3].icon?c?(c.p(t,d),1&d&&_e(c,1)):((c=Eae(t)).c(),_e(c,1),c.m(n,e)):c&&(cn(),Ee(c,1,1,function(){c=null}),un()),t[3].text?u?u.p(t,d):((u=Mae(t)).c(),u.m(n,null)):u&&(u.d(1),u=null),(!s||1&d&&i!==(i="jse-button "+t[3].className+" svelte-497ud4"))&&ne(n,"class",i),(!s||1&d&&r!==(r=t[3].title))&&ne(n,"title",r),(!s||1&d&&o!==(o=t[3].disabled||!1))&&(n.disabled=o)},i:function(h){s||(_e(c),s=!0)},o:function(h){Ee(c),s=!1},d:function(h){h&&tt(n),c&&c.d(),u&&u.d(),a=!1,l()}}}function iXe(t){var n;return{c:function(){ne(n=Be("div"),"class","jse-space svelte-497ud4")},m:function(e,i){nt(e,n,i)},p:an,i:an,o:an,d:function(e){e&&tt(n)}}}function rXe(t){var n;return{c:function(){ne(n=Be("div"),"class","jse-separator svelte-497ud4")},m:function(e,i){nt(e,n,i)},p:an,i:an,o:an,d:function(e){e&&tt(n)}}}function Eae(t){var n,e;return n=new Ir({props:{data:t[3].icon}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};1&r&&(o.data=i[3].icon),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function Mae(t){var n,e=t[3].text+"";return{c:function(){n=xn(e)},m:function(i,r){nt(i,n,r)},p:function(i,r){1&r&&e!==(e=i[3].text+"")&&gi(n,e)},d:function(i){i&&tt(n)}}}function Iae(t){var n,e,i,r,o,s,a,l=[rXe,iXe,nXe,tXe],c=[];function u(h,d){return 1&d&&(n=null),1&d&&(e=null),1&d&&(i=null),null==n&&(n=!!Z2(h[3])),n?0:(null==e&&(e=!!Sae(h[3])),e?1:(null==i&&(i=!!Xb(h[3])),i?2:3))}return r=u(t,-1),o=c[r]=l[r](t),{c:function(){o.c(),s=Wr()},m:function(h,d){c[r].m(h,d),nt(h,s,d),a=!0},p:function(h,d){var f=r;(r=u(h,d))===f?c[r].p(h,d):(cn(),Ee(c[f],1,1,function(){c[f]=null}),un(),(o=c[r])?o.p(h,d):(o=c[r]=l[r](h)).c(),_e(o,1),o.m(s.parentNode,s))},i:function(h){a||(_e(o),a=!0)},o:function(h){Ee(o),a=!1},d:function(h){c[r].d(h),h&&tt(s)}}}function oXe(t){for(var n,e,i,r,o=t[2].left,s=Gs(o,t,t[1],Aae),a=t[0],l=[],c=0;c0&&E.height>0}),u),c=u(e);function u(k){var E=k.getBoundingClientRect();return{x:E.left+E.width/2,y:E.top+E.height/2,rect:E,element:k}}function h(k,E){var B=k.x-E.x,G=(k.y-E.y)*(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1);return Math.sqrt(B*B+G*G)}var d=function(k){return h(k,c)};if("Left"===i||"Right"===i){var f=l.filter("Left"===i?function(k){return k.rect.left+ac.rect.right+a});return(qv(f.filter(function(k){return Math.abs(k.y-c.y)c.y+a});return(qv(w.filter(function(k){return o(k.element)}),d)||qv(w,d))?.element}}({allElements:Array.from(i.querySelectorAll("button:not([disabled])")),currentElement:a.target,direction:c,hasPrio:function(h){return"jse-open-dropdown"!==h.getAttribute("data-type")}});u&&u.focus()}},function(a){dr[a?"unshift":"push"](function(){e(2,i=a)})}]}var Yae=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,GXe,WXe,Zi,{items:0,tip:1},EXe),r}return Xe(e)}();function qXe(t){var n,e;return n=new Yae({props:{items:t[1],tip:t[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};2&r[0]&&(o.items=i[1]),1&r[0]&&(o.tip=i[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function XXe(t,n,e){var i,r,o,s,a,l,c,u,h,d,f,p,m,w,C,k,E,L,B,G,oe=n.json,fe=n.documentState,re=n.parser,ce=n.showTip,ue=n.onCloseContextMenu,pe=n.onEditKey,De=n.onEditValue,ie=n.onToggleEnforceString,ge=n.onCut,we=n.onCopy,le=n.onPaste,Fe=n.onRemove,z=n.onDuplicate,Q=n.onExtract,Z=n.onInsertBefore,me=n.onInsert,ae=n.onConvert,Te=n.onInsertAfter,Oe=n.onSort,Ze=n.onTransform;function Ve(){ue(),pe()}function wt(){ue(),De()}function ct(){ue(),ie()}function Ct(){ue(),ge(!0)}function se(){ue(),ge(!1)}function Se(){ue(),we(!0)}function ke(){ue(),we(!1)}function Qe(){ue(),le()}function gt(){ue(),Fe()}function rt(){ue(),z()}function zt(){ue(),Q()}function Qt(On){ue(),c?ae(On):me(On)}function Pn(){ue(),Oe()}function Mi(){ue(),Ze()}function Sn(){ue(),Z()}function nr(){ue(),Te()}return t.$$set=function(On){"json"in On&&e(2,oe=On.json),"documentState"in On&&e(3,fe=On.documentState),"parser"in On&&e(4,re=On.parser),"showTip"in On&&e(0,ce=On.showTip),"onCloseContextMenu"in On&&e(5,ue=On.onCloseContextMenu),"onEditKey"in On&&e(6,pe=On.onEditKey),"onEditValue"in On&&e(7,De=On.onEditValue),"onToggleEnforceString"in On&&e(8,ie=On.onToggleEnforceString),"onCut"in On&&e(9,ge=On.onCut),"onCopy"in On&&e(10,we=On.onCopy),"onPaste"in On&&e(11,le=On.onPaste),"onRemove"in On&&e(12,Fe=On.onRemove),"onDuplicate"in On&&e(13,z=On.onDuplicate),"onExtract"in On&&e(14,Q=On.onExtract),"onInsertBefore"in On&&e(15,Z=On.onInsertBefore),"onInsert"in On&&e(16,me=On.onInsert),"onConvert"in On&&e(17,ae=On.onConvert),"onInsertAfter"in On&&e(18,Te=On.onInsertAfter),"onSort"in On&&e(19,Oe=On.onSort),"onTransform"in On&&e(20,Ze=On.onTransform)},t.$$.update=function(){8&t.$$.dirty[0]&&e(37,i=fe.selection),4&t.$$.dirty[0]&&e(39,r=void 0!==oe),64&t.$$.dirty[1]&&e(31,o=null!=i),65&t.$$.dirty[1]&&e(21,s=o&&fr(i.focusPath)),4&t.$$.dirty[0]|65&t.$$.dirty[1]&&e(38,a=o?Un(oe,i.focusPath):void 0),128&t.$$.dirty[1]&&e(35,l=Array.isArray(a)?"Edit array":Ko(a)?"Edit object":"Edit value"),320&t.$$.dirty[1]&&e(22,c=r&&(io(i)||$s(i)||xr(i))),6291456&t.$$.dirty[0]|256&t.$$.dirty[1]&&e(30,u=r&&c&&!s),2097152&t.$$.dirty[0]|320&t.$$.dirty[1]&&e(29,h=r&&null!=i&&(io(i)||xr(i))&&!s),2097156&t.$$.dirty[0]|320&t.$$.dirty[1]&&e(36,d=r&&null!=i&&Hb(i)&&!s&&!Array.isArray(Un(oe,wr(i.focusPath)))),320&t.$$.dirty[1]&&e(34,f=r&&null!=i&&Hb(i)),136&t.$$.dirty[1]&&e(32,p=f&&!ss(a)),4194304&t.$$.dirty[0]&&e(25,m=c),33554432&t.$$.dirty[0]&&e(24,w=m?"Convert to:":"Insert:"),33554432&t.$$.dirty[0]|1&t.$$.dirty[1]&&e(28,C=!m&&o),33554432&t.$$.dirty[0]|193&t.$$.dirty[1]&&e(27,k=m?$g(i)&&!Ko(a):o),33554432&t.$$.dirty[0]|193&t.$$.dirty[1]&&e(26,E=m?$g(i)&&!Array.isArray(a):o),33554432&t.$$.dirty[0]|193&t.$$.dirty[1]&&e(23,L=m?$g(i)&&ss(a):o),24&t.$$.dirty[0]|192&t.$$.dirty[1]&&e(33,B=null!=i&&lf(a,fe.enforceStringMap,An(i.focusPath),re)),2145386496&t.$$.dirty[0]|63&t.$$.dirty[1]&&e(1,G=[{type:"row",items:[{type:"button",onClick:Ve,icon:u0,text:"Edit key",title:"Edit the key (Double-click on the key)",disabled:!d},{type:"dropdown-button",main:{type:"button",onClick:wt,icon:u0,text:l,title:"Edit the value (Double-click on the value)",disabled:!f},width:"11em",items:[{type:"button",icon:u0,text:l,title:"Edit the value (Double-click on the value)",onClick:wt,disabled:!f},{type:"button",icon:B?$b:Pb,text:"Enforce string",title:"Enforce keeping the value as string when it contains a numeric value",onClick:ct,disabled:!p}]}]},{type:"separator"},{type:"row",items:[{type:"dropdown-button",main:{type:"button",onClick:Ct,icon:c0,text:"Cut",title:"Cut selected contents, formatted with indentation (Ctrl+X)",disabled:!c},width:"10em",items:[{type:"button",icon:c0,text:"Cut formatted",title:"Cut selected contents, formatted with indentation (Ctrl+X)",onClick:Ct,disabled:!c},{type:"button",icon:c0,text:"Cut compacted",title:"Cut selected contents, without indentation (Ctrl+Shift+X)",onClick:se,disabled:!c}]},{type:"dropdown-button",main:{type:"button",onClick:Se,icon:sp,text:"Copy",title:"Copy selected contents, formatted with indentation (Ctrl+C)",disabled:!c},width:"12em",items:[{type:"button",icon:sp,text:"Copy formatted",title:"Copy selected contents, formatted with indentation (Ctrl+C)",onClick:Se,disabled:!c},{type:"button",icon:sp,text:"Copy compacted",title:"Copy selected contents, without indentation (Ctrl+Shift+C)",onClick:ke,disabled:!c}]},{type:"button",onClick:Qe,icon:pse,text:"Paste",title:"Paste clipboard contents (Ctrl+V)",disabled:!o}]},{type:"separator"},{type:"row",items:[{type:"column",items:[{type:"button",onClick:rt,icon:wse,text:"Duplicate",title:"Duplicate selected contents (Ctrl+D)",disabled:!u},{type:"button",onClick:zt,icon:CGe,text:"Extract",title:"Extract selected contents",disabled:!h},{type:"button",onClick:Pn,icon:z2,text:"Sort",title:"Sort array or object contents",disabled:!c},{type:"button",onClick:Mi,icon:B2,text:"Transform",title:"Transform array or object contents (filter, sort, project)",disabled:!c},{type:"button",onClick:gt,icon:GO,text:"Remove",title:"Remove selected contents (Delete)",disabled:!c}]},{type:"column",items:[{type:"label",text:w},{type:"button",onClick:function(){return Qt("structure")},icon:m?V2:h0,text:"Structure",title:w+" structure",disabled:!C},{type:"button",onClick:function(){return Qt("object")},icon:m?V2:h0,text:"Object",title:w+" structure",disabled:!k},{type:"button",onClick:function(){return Qt("array")},icon:m?V2:h0,text:"Array",title:w+" array",disabled:!E},{type:"button",onClick:function(){return Qt("value")},icon:m?V2:h0,text:"Value",title:w+" value",disabled:!L}]}]},{type:"separator"},{type:"row",items:[{type:"button",onClick:Sn,icon:wGe,text:"Insert before",title:"Select area before current entry to insert or paste contents",disabled:!c||s},{type:"button",onClick:nr,icon:yGe,text:"Insert after",title:"Select area after current entry to insert or paste contents",disabled:!c||s}]}])},[ce,G,oe,fe,re,ue,pe,De,ie,ge,we,le,Fe,z,Q,Z,me,ae,Te,Oe,Ze,s,c,L,w,m,E,k,C,h,u,o,p,B,f,l,d,i,a,r]}var YXe=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,XXe,qXe,Zi,{json:2,documentState:3,parser:4,showTip:0,onCloseContextMenu:5,onEditKey:6,onEditValue:7,onToggleEnforceString:8,onCut:9,onCopy:10,onPaste:11,onRemove:12,onDuplicate:13,onExtract:14,onInsertBefore:15,onInsert:16,onConvert:17,onInsertAfter:18,onSort:19,onTransform:20},null,[-1,-1]),r}return Xe(e)}();function KXe(t){Ni(t,"svelte-1kai5ns","div.jse-collapsed-items.svelte-1kai5ns.svelte-1kai5ns{font-family:var(--jse-font-family);font-size:var(--jse-font-size);color:var(--jse-collapsed-items-link-color);padding:calc(0.5 * var(--jse-padding));border:8px solid transparent;border-width:8px 0;background-color:var(--jse-contents-background-color);background-image:linear-gradient(var(--jse-collapsed-items-background-color), var(--jse-collapsed-items-background-color)), linear-gradient(to bottom right, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to bottom left, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to top right, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to top left, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%);background-repeat:repeat, repeat-x, repeat-x, repeat-x, repeat-x;background-position:0 0, 8px 0, 8px 0, 8px 100%, 8px 100%;background-size:auto auto, 16px 16px, 16px 16px, 16px 16px, 16px 16px;background-clip:padding-box, border-box, border-box, border-box, border-box;background-origin:padding-box, border-box, border-box, border-box, border-box;display:flex}div.jse-collapsed-items.svelte-1kai5ns div.jse-text.svelte-1kai5ns,div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns{margin:0 calc(0.5 * var(--jse-padding))}div.jse-collapsed-items.svelte-1kai5ns div.jse-text.svelte-1kai5ns{display:inline}div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns{font-family:inherit;font-size:inherit;color:var(--jse-collapsed-items-link-color);background:none;border:none;padding:0;text-decoration:underline;cursor:pointer}div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns:hover,div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns:focus{color:var(--jse-collapsed-items-link-color-highlight)}")}function Kae(t,n,e){var i=t.slice();return i[13]=n[e],i}function Jae(t){var n,e,i,r,o,s,a,l,c=t[13].start+"",u=t[13].end+"";function h(){return t[12](t[13])}return{c:function(){n=Be("button"),e=xn("show "),i=xn(c),r=xn("-"),o=xn(u),s=xt(),ne(n,"type","button"),ne(n,"class","jse-expand-items svelte-1kai5ns")},m:function(d,f){nt(d,n,f),Ie(n,e),Ie(n,i),Ie(n,r),Ie(n,o),Ie(n,s),a||(l=rn(n,"click",h),a=!0)},p:function(d,f){t=d,16&f&&c!==(c=t[13].start+"")&&gi(i,c),16&f&&u!==(u=t[13].end+"")&&gi(o,u)},d:function(d){d&&tt(n),a=!1,l()}}}function JXe(t){for(var n,e,i,r,o,s,a,l,c,u,h,d=t[4],f=[],p=0;p=C.end&&E.end<=G.start)&&oe.push(E),G.start>=(fe?E.end:C.end)&&oe.push(G),a=oe))},[h,p,o,r,a,s,l,c,u,d,f,i,function(m){return p(h,m)}]}var eYe=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,ZXe,JXe,Zi,{visibleSections:6,sectionIndex:7,total:8,path:0,pointer:9,selection:10,onExpandSection:1},KXe),r}return Xe(e)}();function tYe(t){Ni(t,"svelte-1yzl4st",".jse-context-menu-pointer.svelte-1yzl4st{position:absolute;top:calc(-0.5 * var(--jse-context-menu-pointer-size));right:calc(-0.5 * var(--jse-context-menu-pointer-size));width:var(--jse-context-menu-pointer-size);height:var(--jse-context-menu-pointer-size);padding:0;margin:0;cursor:pointer;background:transparent;border-radius:2px;background:var(--jse-context-menu-pointer-background);color:var(--jse-context-menu-pointer-color);border:none;box-shadow:var(--jse-controls-box-shadow)}.jse-context-menu-pointer.svelte-1yzl4st:hover{background:var(--jse-context-menu-pointer-background-highlight)}")}function nYe(t){var n,e,i,r,o;return e=new Ir({props:{data:hu}}),{c:function(){n=Be("button"),$t(e.$$.fragment),ne(n,"type","button"),ne(n,"class","jse-context-menu-pointer svelte-1yzl4st"),ne(n,"title",bF),en(n,"jse-selected",t[0])},m:function(s,a){nt(s,n,a),Nt(e,n,null),i=!0,r||(o=rn(n,"click",t[1]),r=!0)},p:function(s,a){var l=di(a,1)[0];(!i||1&l)&&en(n,"jse-selected",s[0])},i:function(s){i||(_e(e.$$.fragment,s),i=!0)},o:function(s){Ee(e.$$.fragment,s),i=!1},d:function(s){s&&tt(n),Rt(e),r=!1,o()}}}function iYe(t,n,e){var i=n.selected,r=n.onContextMenu;return t.$$set=function(o){"selected"in o&&e(0,i=o.selected),"onContextMenu"in o&&e(2,r=o.onContextMenu)},[i,function(o){for(var s=o.target;s&&"BUTTON"!==s.nodeName;)s=s.parentNode;s&&r({anchor:s,left:0,top:0,width:260,height:336,offsetTop:2,offsetLeft:0,showTip:!0})},r]}var cp=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,iYe,nYe,Zi,{selected:0,onContextMenu:2},tYe),r}return Xe(e)}();function rYe(t){Ni(t,"svelte-24a1b2",'.jse-key.svelte-24a1b2{display:inline-block;min-width:2em;padding:0 5px;box-sizing:border-box;outline:none;border-radius:1px;vertical-align:top;color:var(--jse-key-color);cursor:var(--jse-contents-cursor);word-break:normal;overflow-wrap:normal;white-space:pre-wrap}.jse-key.svelte-24a1b2:hover{background:var(--jse-hover-background-color)}.jse-key.svelte-24a1b2:hover{background:var(--jse-hover-background-color)}.jse-key.jse-empty.svelte-24a1b2{min-width:3em;outline:1px dotted var(--jse-tag-background);-moz-outline-radius:2px}.jse-key.jse-empty.svelte-24a1b2::after{pointer-events:none;color:var(--jse-tag-background);content:"key"}')}function oYe(t){var n,e,i,r,o,s,a,l=[lYe,aYe],c=[];function u(h,d){return h[1]?0:1}return e=u(t),i=c[e]=l[e](t),{c:function(){n=Be("div"),i.c(),ne(n,"data-type","selectable-key"),ne(n,"class",r=Xo(t[6](t[0]))+" svelte-24a1b2")},m:function(h,d){nt(h,n,d),c[e].m(n,null),o=!0,s||(a=rn(n,"dblclick",t[5]),s=!0)},p:function(h,d){var f=e;(e=u(h))===f?c[e].p(h,d):(cn(),Ee(c[f],1,1,function(){c[f]=null}),un(),(i=c[e])?i.p(h,d):(i=c[e]=l[e](h)).c(),_e(i,1),i.m(n,null)),(!o||1&d&&r!==(r=Xo(h[6](h[0]))+" svelte-24a1b2"))&&ne(n,"class",r)},i:function(h){o||(_e(i),o=!0)},o:function(h){Ee(i),o=!1},d:function(h){h&&tt(n),c[e].d(),s=!1,a()}}}function sYe(t){var n,e;return n=new ese({props:{value:t[2].normalization.escapeValue(t[0]),shortText:!0,onChange:t[7],onCancel:t[8],onFind:t[2].onFind}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};5&r&&(o.value=i[2].normalization.escapeValue(i[0])),4&r&&(o.onFind=i[2].onFind),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function aYe(t){var n,e=Ng(t[2].normalization.escapeValue(t[0]))+"";return{c:function(){n=xn(e)},m:function(i,r){nt(i,n,r)},p:function(i,r){5&r&&e!==(e=Ng(i[2].normalization.escapeValue(i[0]))+"")&&gi(n,e)},i:an,o:an,d:function(i){i&&tt(n)}}}function lYe(t){var n,e;return n=new fse({props:{text:t[2].normalization.escapeValue(t[0]),searchResultItems:t[1]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};5&r&&(o.text=i[2].normalization.escapeValue(i[0])),2&r&&(o.searchResultItems=i[1]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function Zae(t){var n,e;return n=new cp({props:{selected:!0,onContextMenu:t[2].onContextMenu}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};4&r&&(o.onContextMenu=i[2].onContextMenu),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function cYe(t){var n,e,i,r,o,s=[sYe,oYe],a=[];function l(u,h){return u[4]?0:1}n=l(t),e=a[n]=s[n](t);var c=!t[2].readOnly&&t[3]&&!t[4]&&Zae(t);return{c:function(){e.c(),i=xt(),c&&c.c(),r=Wr()},m:function(u,h){a[n].m(u,h),nt(u,i,h),c&&c.m(u,h),nt(u,r,h),o=!0},p:function(u,h){var d=di(h,1)[0],f=n;(n=l(u))===f?a[n].p(u,d):(cn(),Ee(a[f],1,1,function(){a[f]=null}),un(),(e=a[n])?e.p(u,d):(e=a[n]=s[n](u)).c(),_e(e,1),e.m(i.parentNode,i)),u[2].readOnly||!u[3]||u[4]?c&&(cn(),Ee(c,1,1,function(){c=null}),un()):c?(c.p(u,d),28&d&&_e(c,1)):((c=Zae(u)).c(),_e(c,1),c.m(r.parentNode,r))},i:function(u){o||(_e(e),_e(c),o=!0)},o:function(u){Ee(e),Ee(c),o=!1},d:function(u){a[n].d(u),u&&tt(i),c&&c.d(u),u&&tt(r)}}}function uYe(t,n,e){var i,r,o=n.path,s=n.pointer,a=n.key,l=n.selection,c=n.searchResultItems,u=n.onUpdateKey,h=n.context;return t.$$set=function(d){"path"in d&&e(9,o=d.path),"pointer"in d&&e(10,s=d.pointer),"key"in d&&e(0,a=d.key),"selection"in d&&e(11,l=d.selection),"searchResultItems"in d&&e(1,c=d.searchResultItems),"onUpdateKey"in d&&e(12,u=d.onUpdateKey),"context"in d&&e(2,h=d.context)},t.$$.update=function(){3072&t.$$.dirty&&e(3,i=l?!0===l.pointersMap[s]&&$s(l):void 0),2056&t.$$.dirty&&e(4,r=i&&ip(l))},[a,c,h,i,r,function(d){r||h.readOnly||(d.preventDefault(),h.onSelect(uu(o,!0)))},function(d){return ad("jse-key",{"jse-empty":""===d})},function(d,f){var p=u(a,h.normalization.unescapeValue(d)),m=wr(o).concat(p);h.onSelect(f===wF?Br(m,!1):uu(m,!1)),f!==_F&&h.focus()},function(){h.onSelect(uu(o,!1)),h.focus()},o,s,l,u]}var hYe=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,uYe,cYe,Zi,{path:9,pointer:10,key:0,selection:11,searchResultItems:1,onUpdateKey:12,context:2},rYe),r}return Xe(e)}();function ele(t,n,e){var i=t.slice();return i[8]=n[e],i}function tle(t){var n,e,i,r=[t[8].props],o=t[8].component;function s(a){for(var l={},c=0;ck+w()/2;)k+=w(),C-=1;return C!==m&&void 0!==h[C]?{beforePath:h[C].path,offset:C-m}:void 0}({json:n,selection:o,deltaY:i,items:r}):function(u){for(var h,d=u.json,f=u.items,m=u.deltaY,w=$2(u.selection),C=f.findIndex(function(ce){return Mr(ce.path,w)}),k=0,E=C,L=function(){var ce;return null===(ce=f[E+1])||void 0===ce?void 0:ce.height};void 0!==L()&&Math.abs(m)>k+L()/2;)k+=L(),E+=1;var G=Un(d,wr(w)),oe=Array.isArray(G),fe=null===(h=f[oe?E:E+1])||void 0===h?void 0:h.path,re=E-C;return fe?{beforePath:fe,offset:re}:{append:!0,offset:re}}({json:n,selection:o,deltaY:i,items:r});if(!s||0===s.offset)return{operations:void 0,updatedSelection:void 0,offset:0};var u,h,d,f,p,m,w,C,k,E,L,a=function(u,h,d){if(!h)return[];var f="beforePath"in d?d.beforePath:void 0,p="append"in d?d.append:void 0,m=wr(h.focusPath),w=Un(u,m);if(!(p||f&&s0(f,m)&&f.length>m.length))return[];var C=n0(h),k=$2(h),E=ii(C),L=ii(k),B=f?f[m.length]:void 0;if(!Yo(w)){if(Ao(w)){var G=la(E),oe=la(L),fe=void 0!==B?la(B):w.length;return gO(oe-G+1,fece?[].concat(Ti(re.slice(ce,ue+1)),Ti(re.slice(pe,re.length))).map(function(De){return Pg(m,De)}):[].concat(Ti(re.slice(pe,ce)),Ti(re.slice(ue+1,re.length))).map(function(De){return Pg(m,De)}):[]}(n,o,s),l=Un(n,wr(n0(o)));return Array.isArray(l)?{operations:a,updatedSelection:(f=(u={items:r,json:n,selection:o,offset:s.offset}).items,p=u.json,w=u.offset,C=n0(m=u.selection),k=$2(m),E=f.findIndex(function(oe){return Mr(oe.path,C)}),L=f.findIndex(function(oe){return Mr(oe.path,k)}),Ks(p,null===(h=f[E+w])||void 0===h?void 0:h.path,null===(d=f[L+w])||void 0===d?void 0:d.path)),offset:s.offset}:{operations:a,updatedSelection:void 0,offset:s.offset}}function ud(t,n){return function(e,i){if(e){for(var r={},o=0,s=Object.keys(e);o0?r:void 0}}(t,function(e){return Mv(e,n)})}function mYe(t){Ni(t,"svelte-pz3g1j","button.jse-validation-error.svelte-pz3g1j{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;padding:0;margin:0;vertical-align:top;display:inline-flex;color:var(--jse-warning-color)}")}function vYe(t){var n,e,i,r,o,s;return e=new Ir({props:{data:jg}}),{c:function(){n=Be("button"),$t(e.$$.fragment),ne(n,"type","button"),ne(n,"class","jse-validation-error svelte-pz3g1j")},m:function(a,l){nt(a,n,l),Nt(e,n,null),r=!0,o||(s=[rn(n,"click",function(){Na(t[0])&&t[0].apply(this,arguments)}),Ra(i=WO.call(null,n,_t({text:t[1]},t[2])))],o=!0)},p:function(a,l){var c=di(l,1)[0];t=a,i&&Na(i.update)&&2&c&&i.update.call(null,_t({text:t[1]},t[2]))},i:function(a){r||(_e(e.$$.fragment,a),r=!0)},o:function(a){Ee(e.$$.fragment,a),r=!1},d:function(a){a&&tt(n),Rt(e),o=!1,Fo(s)}}}function yYe(t,n,e){var i,r=$a("absolute-popup"),o=n.validationError,s=n.onExpand;return t.$$set=function(a){"validationError"in a&&e(3,o=a.validationError),"onExpand"in a&&e(0,s=a.onExpand)},t.$$.update=function(){8&t.$$.dirty&&e(1,i=o.isChildError?"Contains invalid data":o.message)},[s,i,r,o]}var y0=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,yYe,vYe,Os,{validationError:3,onExpand:0},mYe),r}return Xe(e)}();function bYe(t){Ni(t,"svelte-1wlxti1",".jse-json-node.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative;color:var(--jse-text-color)}.jse-json-node.jse-root.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{min-height:100%;padding-bottom:2px;box-sizing:border-box}.jse-json-node.jse-root.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1 .jse-context-menu-pointer,.jse-json-node.jse-root.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1 .jse-context-menu-pointer{top:0;right:calc(-2px - var(--jse-context-menu-pointer-size))}.jse-json-node.jse-root.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1.svelte-1wlxti1{padding-left:0}.jse-json-node.svelte-1wlxti1 .jse-props.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-items.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-header-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-footer-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-header .jse-meta.svelte-1wlxti1>.jse-meta-inner.svelte-1wlxti1.svelte-1wlxti1{display:flex;justify-content:center}.jse-json-node.svelte-1wlxti1 .jse-contents-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;flex-direction:row;align-items:start}.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding-left:var(--jse-indent-size)}.jse-json-node.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:inline-flex;padding-left:calc(var(--jse-indent-size) + 5px)}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-contents-background-color)}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{visibility:hidden;padding:0 calc(0.5 * var(--jse-padding));flex:1}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.jse-inside.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:inline-flex;align-items:center}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.jse-after.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;align-items:flex-end}.jse-json-node.svelte-1wlxti1 .jse-context-menu-pointer-anchor.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-insert-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;position:relative;z-index:1;max-width:250px;min-width:100px;height:0;margin-right:calc(0.5 * var(--jse-padding));outline:1px solid}.jse-json-node.svelte-1wlxti1 .jse-insert-area.svelte-1wlxti1 .jse-context-menu-pointer{right:-1px;background:var(--jse-context-menu-pointer-hover-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-hovered.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{outline-color:var(--jse-context-menu-pointer-hover-background)}.jse-json-node.svelte-1wlxti1:hover>.jse-contents-outer .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected),.jse-json-node.svelte-1wlxti1 .jse-header-outer.svelte-1wlxti1:hover>.jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected),.jse-json-node.svelte-1wlxti1 .jse-footer-outer:hover .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected){visibility:visible}.jse-json-node.jse-hovered.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-hover-background-color)}.jse-json-node.jse-selected.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-selected.svelte-1wlxti1 .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-selection-background-color)}.jse-json-node.jse-selected-key.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1>.jse-identifier>.jse-key,.jse-json-node.jse-selected-key.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-identifier>.jse-key{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1>.jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.svelte-1wlxti1 .jse-collapsed-items.jse-selected,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-collapsed-items,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-collapsed-items{background-color:var(--jse-selection-background-color);--jse-collapsed-items-background-color:var(--jse-collapsed-items-selected-background-color)}.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-selection-background-color)}.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1 .jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-readonly.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{--jse-contents-selected-cursor:pointer}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{outline-color:var(--jse-context-menu-pointer-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1 .jse-context-menu-pointer{background:var(--jse-context-menu-pointer-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1 .jse-context-menu-pointer:hover{background:var(--jse-context-menu-pointer-background-highlight)}.jse-main:not(.jse-focus) .jse-json-node.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{--jse-selection-background-color:var(--jse-selection-background-inactive-color);--jse-context-menu-pointer-background:var(--jse-context-menu-pointer-hover-background)}.jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{width:var(--jse-indent-size);padding:0;margin:0;border:none;cursor:pointer;background:transparent;color:var(--jse-delimiter-color);font-size:var(--jse-font-size-mono);height:var(--jse-line-height)}.jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:hover{opacity:0.8}.jse-meta.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-separator.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-index.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-bracket.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{vertical-align:top;color:var(--jse-delimiter-color)}.jse-index.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding:0 calc(0.5 * var(--jse-padding))}.jse-bracket.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding:0 2px}.jse-bracket.jse-expanded.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding-right:var(--jse-padding)}.jse-tag.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{border:none;font-size:80%;font-family:var(--jse-font-family);color:var(--jse-tag-color);background:var(--jse-tag-background);border-radius:2px;cursor:pointer;display:inline-block;padding:0 4px;line-height:normal;margin:1px 0}.jse-tag.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:hover{opacity:0.8}.jse-tag.jse-expanded.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{opacity:0.7;cursor:inherit}.jse-identifier.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{vertical-align:top;position:relative}")}var _Ye=function(t){return{}},nle=function(t){return{}};function ile(t,n,e){var i=t.slice();return i[53]=n[e],i}var wYe=function(t){return{}},rle=function(t){return{}};function ole(t,n,e){var i=t.slice();return i[47]=n[e],i[49]=e,i}function sle(t,n,e){var i=t.slice();return i[50]=n[e],i}var xYe=function(t){return{}},ale=function(t){return{}};function CYe(t){var n,e,i,r,o,s,a,l,c,u=!t[8].readOnly&&t[16]&&t[7]&&(xr(t[7])||io(t[7]))&&!t[7].edit&&Mr(t[7].focusPath,t[1]),h=t[34].identifier,d=Gs(h,t,t[35],nle),f=!t[17]&&lle();o=new gYe({props:{path:t[1],value:t[0],enforceString:t[13],selection:t[16]?t[7]:void 0,searchResultItems:use(t[6],t[9]),context:t[8]}});var p=u&&cle(t),m=t[15]&&ule(t),w=!t[17]&&hle(t);return{c:function(){n=Be("div"),e=Be("div"),d&&d.c(),i=xt(),f&&f.c(),r=xt(),$t(o.$$.fragment),s=xt(),p&&p.c(),a=xt(),m&&m.c(),l=xt(),w&&w.c(),ne(e,"class","jse-contents svelte-1wlxti1"),ne(n,"class","jse-contents-outer svelte-1wlxti1"),ne(n,"style",t[18])},m:function(C,k){nt(C,n,k),Ie(n,e),d&&d.m(e,null),Ie(e,i),f&&f.m(e,null),Ie(e,r),Nt(o,e,null),Ie(e,s),p&&p.m(e,null),Ie(n,a),m&&m.m(n,null),Ie(n,l),w&&w.m(n,null),c=!0},p:function(C,k){d&&d.p&&(!c||16&k[1])&&Xs(d,h,C,C[35],c?qs(h,C[35],k,_Ye):Ys(C[35]),nle),C[17]?f&&(f.d(1),f=null):f||((f=lle()).c(),f.m(e,r));var E={};2&k[0]&&(E.path=C[1]),1&k[0]&&(E.value=C[0]),8192&k[0]&&(E.enforceString=C[13]),65664&k[0]&&(E.selection=C[16]?C[7]:void 0),576&k[0]&&(E.searchResultItems=use(C[6],C[9])),256&k[0]&&(E.context=C[8]),o.$set(E),65922&k[0]&&(u=!C[8].readOnly&&C[16]&&C[7]&&(xr(C[7])||io(C[7]))&&!C[7].edit&&Mr(C[7].focusPath,C[1])),u?p?(p.p(C,k),65922&k[0]&&_e(p,1)):((p=cle(C)).c(),_e(p,1),p.m(e,null)):p&&(cn(),Ee(p,1,1,function(){p=null}),un()),C[15]?m?(m.p(C,k),32768&k[0]&&_e(m,1)):((m=ule(C)).c(),_e(m,1),m.m(n,l)):m&&(cn(),Ee(m,1,1,function(){m=null}),un()),C[17]?w&&(w.d(1),w=null):w?w.p(C,k):((w=hle(C)).c(),w.m(n,null)),(!c||262144&k[0])&&ne(n,"style",C[18])},i:function(C){c||(_e(d,C),_e(o.$$.fragment,C),_e(p),_e(m),c=!0)},o:function(C){Ee(d,C),Ee(o.$$.fragment,C),Ee(p),Ee(m),c=!1},d:function(C){C&&tt(n),d&&d.d(C),f&&f.d(),Rt(o),p&&p.d(),m&&m.d(),w&&w.d()}}}function SYe(t){var n,e,i,r,o,s,a,l,c,u,h,d,f,p,m,w,C,k,E=!t[8].readOnly&&t[16]&&t[7]&&(xr(t[7])||io(t[7]))&&!t[7].edit&&Mr(t[7].focusPath,t[1]),L=[TYe,DYe],B=[];function G(z,Q){return z[12]?0:1}r=G(t),o=B[r]=L[r](t);var oe=t[34].identifier,fe=Gs(oe,t,t[35],rle),re=!t[17]&&dle();function ce(z,Q){return z[12]?EYe:AYe}var ue=ce(t),pe=ue(t),De=E&&fle(t),ie=t[15]&&(!t[12]||!t[15].isChildError)&&ple(t);function ge(z,Q){return z[12]?IYe:z[17]?void 0:MYe}var we=ge(t),le=we&&we(t),Fe=t[12]&&gle(t);return{c:function(){n=Be("div"),e=Be("div"),i=Be("button"),o.c(),s=xt(),fe&&fe.c(),a=xt(),re&&re.c(),l=xt(),c=Be("div"),u=Be("div"),pe.c(),h=xt(),De&&De.c(),d=xt(),ie&&ie.c(),f=xt(),le&&le.c(),p=xt(),Fe&&Fe.c(),m=Wr(),ne(i,"type","button"),ne(i,"class","jse-expand svelte-1wlxti1"),ne(i,"title","Expand or collapse this object (Ctrl+Click to expand/collapse recursively)"),ne(u,"class","jse-meta-inner svelte-1wlxti1"),ne(c,"class","jse-meta svelte-1wlxti1"),ne(c,"data-type","selectable-value"),ne(e,"class","jse-header svelte-1wlxti1"),ne(n,"class","jse-header-outer svelte-1wlxti1"),ne(n,"style",t[18])},m:function(z,Q){nt(z,n,Q),Ie(n,e),Ie(e,i),B[r].m(i,null),Ie(e,s),fe&&fe.m(e,null),Ie(e,a),re&&re.m(e,null),Ie(e,l),Ie(e,c),Ie(c,u),pe.m(u,null),Ie(e,h),De&&De.m(e,null),Ie(n,d),ie&&ie.m(n,null),Ie(n,f),le&&le.m(n,null),nt(z,p,Q),Fe&&Fe.m(z,Q),nt(z,m,Q),w=!0,C||(k=rn(i,"click",t[21]),C=!0)},p:function(z,Q){var Z=r;(r=G(z))===Z?B[r].p(z,Q):(cn(),Ee(B[Z],1,1,function(){B[Z]=null}),un(),(o=B[r])?o.p(z,Q):(o=B[r]=L[r](z)).c(),_e(o,1),o.m(i,null)),fe&&fe.p&&(!w||16&Q[1])&&Xs(fe,oe,z,z[35],w?qs(oe,z[35],Q,wYe):Ys(z[35]),rle),z[17]?re&&(re.d(1),re=null):re||((re=dle()).c(),re.m(e,l)),ue===(ue=ce(z))&&pe?pe.p(z,Q):(pe.d(1),(pe=ue(z))&&(pe.c(),pe.m(u,null))),65922&Q[0]&&(E=!z[8].readOnly&&z[16]&&z[7]&&(xr(z[7])||io(z[7]))&&!z[7].edit&&Mr(z[7].focusPath,z[1])),E?De?(De.p(z,Q),65922&Q[0]&&_e(De,1)):((De=fle(z)).c(),_e(De,1),De.m(e,null)):De&&(cn(),Ee(De,1,1,function(){De=null}),un()),!z[15]||z[12]&&z[15].isChildError?ie&&(cn(),Ee(ie,1,1,function(){ie=null}),un()):ie?(ie.p(z,Q),36864&Q[0]&&_e(ie,1)):((ie=ple(z)).c(),_e(ie,1),ie.m(n,f)),we===(we=ge(z))&&le?le.p(z,Q):(le&&le.d(1),(le=we&&we(z))&&(le.c(),le.m(n,null))),(!w||262144&Q[0])&&ne(n,"style",z[18]),z[12]?Fe?(Fe.p(z,Q),4096&Q[0]&&_e(Fe,1)):((Fe=gle(z)).c(),_e(Fe,1),Fe.m(m.parentNode,m)):Fe&&(cn(),Ee(Fe,1,1,function(){Fe=null}),un())},i:function(z){w||(_e(o),_e(fe,z),_e(De),_e(ie),_e(Fe),w=!0)},o:function(z){Ee(o),Ee(fe,z),Ee(De),Ee(ie),Ee(Fe),w=!1},d:function(z){z&&tt(n),B[r].d(),fe&&fe.d(z),re&&re.d(),pe.d(),De&&De.d(),ie&&ie.d(),le&&le.d(),z&&tt(p),Fe&&Fe.d(z),z&&tt(m),C=!1,k()}}}function kYe(t){var n,e,i,r,o,s,a,l,c,u,h,d,f,p,m,w,C,k,E=!t[8].readOnly&&t[16]&&t[7]&&(xr(t[7])||io(t[7]))&&!t[7].edit&&Mr(t[7].focusPath,t[1]),L=[OYe,LYe],B=[];function G(z,Q){return z[12]?0:1}r=G(t),o=B[r]=L[r](t);var oe=t[34].identifier,fe=Gs(oe,t,t[35],ale),re=!t[17]&&ble();function ce(z,Q){return z[12]?RYe:NYe}var ue=ce(t),pe=ue(t),De=E&&_le(t),ie=t[15]&&(!t[12]||!t[15].isChildError)&&wle(t);function ge(z,Q){return z[12]?PYe:$Ye}var we=ge(t),le=we(t),Fe=t[12]&&xle(t);return{c:function(){n=Be("div"),e=Be("div"),i=Be("button"),o.c(),s=xt(),fe&&fe.c(),a=xt(),re&&re.c(),l=xt(),c=Be("div"),u=Be("div"),pe.c(),h=xt(),De&&De.c(),d=xt(),ie&&ie.c(),f=xt(),le.c(),p=xt(),Fe&&Fe.c(),m=Wr(),ne(i,"type","button"),ne(i,"class","jse-expand svelte-1wlxti1"),ne(i,"title","Expand or collapse this array (Ctrl+Click to expand/collapse recursively)"),ne(u,"class","jse-meta-inner svelte-1wlxti1"),ne(u,"data-type","selectable-value"),ne(c,"class","jse-meta svelte-1wlxti1"),ne(e,"class","jse-header svelte-1wlxti1"),ne(n,"class","jse-header-outer svelte-1wlxti1"),ne(n,"style",t[18])},m:function(z,Q){nt(z,n,Q),Ie(n,e),Ie(e,i),B[r].m(i,null),Ie(e,s),fe&&fe.m(e,null),Ie(e,a),re&&re.m(e,null),Ie(e,l),Ie(e,c),Ie(c,u),pe.m(u,null),Ie(e,h),De&&De.m(e,null),Ie(n,d),ie&&ie.m(n,null),Ie(n,f),le.m(n,null),nt(z,p,Q),Fe&&Fe.m(z,Q),nt(z,m,Q),w=!0,C||(k=rn(i,"click",t[21]),C=!0)},p:function(z,Q){var Z=r;(r=G(z))===Z?B[r].p(z,Q):(cn(),Ee(B[Z],1,1,function(){B[Z]=null}),un(),(o=B[r])?o.p(z,Q):(o=B[r]=L[r](z)).c(),_e(o,1),o.m(i,null)),fe&&fe.p&&(!w||16&Q[1])&&Xs(fe,oe,z,z[35],w?qs(oe,z[35],Q,xYe):Ys(z[35]),ale),z[17]?re&&(re.d(1),re=null):re||((re=ble()).c(),re.m(e,l)),ue===(ue=ce(z))&&pe?pe.p(z,Q):(pe.d(1),(pe=ue(z))&&(pe.c(),pe.m(u,null))),65922&Q[0]&&(E=!z[8].readOnly&&z[16]&&z[7]&&(xr(z[7])||io(z[7]))&&!z[7].edit&&Mr(z[7].focusPath,z[1])),E?De?(De.p(z,Q),65922&Q[0]&&_e(De,1)):((De=_le(z)).c(),_e(De,1),De.m(e,null)):De&&(cn(),Ee(De,1,1,function(){De=null}),un()),!z[15]||z[12]&&z[15].isChildError?ie&&(cn(),Ee(ie,1,1,function(){ie=null}),un()):ie?(ie.p(z,Q),36864&Q[0]&&_e(ie,1)):((ie=wle(z)).c(),_e(ie,1),ie.m(n,f)),we===(we=ge(z))&&le?le.p(z,Q):(le.d(1),(le=we(z))&&(le.c(),le.m(n,null))),(!w||262144&Q[0])&&ne(n,"style",z[18]),z[12]?Fe?(Fe.p(z,Q),4096&Q[0]&&_e(Fe,1)):((Fe=xle(z)).c(),_e(Fe,1),Fe.m(m.parentNode,m)):Fe&&(cn(),Ee(Fe,1,1,function(){Fe=null}),un())},i:function(z){w||(_e(o),_e(fe,z),_e(De),_e(ie),_e(Fe),w=!0)},o:function(z){Ee(o),Ee(fe,z),Ee(De),Ee(ie),Ee(Fe),w=!1},d:function(z){z&&tt(n),B[r].d(),fe&&fe.d(z),re&&re.d(),pe.d(),De&&De.d(),ie&&ie.d(),le.d(),z&&tt(p),Fe&&Fe.d(z),z&&tt(m),C=!1,k()}}}function lle(t){var n;return{c:function(){(n=Be("div")).textContent=":",ne(n,"class","jse-separator svelte-1wlxti1")},m:function(e,i){nt(e,n,i)},d:function(e){e&&tt(n)}}}function cle(t){var n,e,i;return e=new cp({props:{selected:!0,onContextMenu:t[8].onContextMenu}}),{c:function(){n=Be("div"),$t(e.$$.fragment),ne(n,"class","jse-context-menu-pointer-anchor svelte-1wlxti1")},m:function(r,o){nt(r,n,o),Nt(e,n,null),i=!0},p:function(r,o){var s={};256&o[0]&&(s.onContextMenu=r[8].onContextMenu),e.$set(s)},i:function(r){i||(_e(e.$$.fragment,r),i=!0)},o:function(r){Ee(e.$$.fragment,r),i=!1},d:function(r){r&&tt(n),Rt(e)}}}function ule(t){var n,e;return n=new y0({props:{validationError:t[15],onExpand:t[22]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};32768&r[0]&&(o.validationError=i[15]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function hle(t){var n,e,i;return{c:function(){ne(n=Be("div"),"class","jse-insert-selection-area jse-after svelte-1wlxti1"),ne(n,"data-type","insert-selection-area-after")},m:function(r,o){nt(r,n,o),e||(i=rn(n,"click",t[30]),e=!0)},p:an,d:function(r){r&&tt(n),e=!1,i()}}}function DYe(t){var n,e;return n=new Ir({props:{data:rp}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:an,i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function TYe(t){var n,e;return n=new Ir({props:{data:hu}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:an,i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function dle(t){var n;return{c:function(){(n=Be("div")).textContent=":",ne(n,"class","jse-separator svelte-1wlxti1")},m:function(e,i){nt(e,n,i)},d:function(e){e&&tt(n)}}}function AYe(t){var n,e,i,r,o,s,a,l,c,u,h=Object.keys(t[0]).length+"",d=1===Object.keys(t[0]).length?"prop":"props";return{c:function(){(n=Be("div")).textContent="{",e=xt(),i=Be("button"),r=xn(h),o=xt(),s=xn(d),a=xt(),(l=Be("div")).textContent="}",ne(n,"class","jse-bracket svelte-1wlxti1"),ne(i,"type","button"),ne(i,"class","jse-tag svelte-1wlxti1"),ne(l,"class","jse-bracket svelte-1wlxti1")},m:function(f,p){nt(f,n,p),nt(f,e,p),nt(f,i,p),Ie(i,r),Ie(i,o),Ie(i,s),nt(f,a,p),nt(f,l,p),c||(u=rn(i,"click",t[22]),c=!0)},p:function(f,p){1&p[0]&&h!==(h=Object.keys(f[0]).length+"")&&gi(r,h),1&p[0]&&d!==(d=1===Object.keys(f[0]).length?"prop":"props")&&gi(s,d)},d:function(f){f&&tt(n),f&&tt(e),f&&tt(i),f&&tt(a),f&&tt(l),c=!1,u()}}}function EYe(t){var n;return{c:function(){(n=Be("div")).textContent="{",ne(n,"class","jse-bracket jse-expanded svelte-1wlxti1")},m:function(e,i){nt(e,n,i)},p:an,d:function(e){e&&tt(n)}}}function fle(t){var n,e,i;return e=new cp({props:{selected:!0,onContextMenu:t[8].onContextMenu}}),{c:function(){n=Be("div"),$t(e.$$.fragment),ne(n,"class","jse-context-menu-pointer-anchor svelte-1wlxti1")},m:function(r,o){nt(r,n,o),Nt(e,n,null),i=!0},p:function(r,o){var s={};256&o[0]&&(s.onContextMenu=r[8].onContextMenu),e.$set(s)},i:function(r){i||(_e(e.$$.fragment,r),i=!0)},o:function(r){Ee(e.$$.fragment,r),i=!1},d:function(r){r&&tt(n),Rt(e)}}}function ple(t){var n,e;return n=new y0({props:{validationError:t[15],onExpand:t[22]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};32768&r[0]&&(o.validationError=i[15]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function MYe(t){var n,e,i;return{c:function(){ne(n=Be("div"),"class","jse-insert-selection-area jse-after svelte-1wlxti1"),ne(n,"data-type","insert-selection-area-after")},m:function(r,o){nt(r,n,o),e||(i=rn(n,"click",t[30]),e=!0)},p:an,d:function(r){r&&tt(n),e=!1,i()}}}function IYe(t){var n,e,i;return{c:function(){ne(n=Be("div"),"class","jse-insert-selection-area jse-inside svelte-1wlxti1"),ne(n,"data-type","insert-selection-area-inside")},m:function(r,o){nt(r,n,o),e||(i=rn(n,"click",t[29]),e=!0)},p:an,d:function(r){r&&tt(n),e=!1,i()}}}function gle(t){for(var n,e,i,r,o,s,a,l=!t[8].readOnly&&("hover-insert-inside"===t[10]||t[16]&&ua(t[7])),c=l&&mle(t),u=t[19](t[1],t[0],t[2],t[3],t[4],t[5],t[6],t[7],t[11]),h=[],d=0;d}',s=xt(),p&&p.c(),ne(n,"class","jse-props svelte-1wlxti1"),ne(o,"data-type","selectable-value"),ne(o,"class","jse-footer svelte-1wlxti1"),ne(r,"class","jse-footer-outer svelte-1wlxti1"),ne(r,"style",t[18])},m:function(m,w){nt(m,n,w),c&&c.m(n,null),Ie(n,e);for(var C=0;C]',s=xt(),C&&C.c(),ne(n,"class","jse-items svelte-1wlxti1"),ne(o,"data-type","selectable-value"),ne(o,"class","jse-footer svelte-1wlxti1"),ne(r,"class","jse-footer-outer svelte-1wlxti1"),ne(r,"style",t[18])},m:function(k,E){nt(k,n,E),h&&h.m(n,null),Ie(n,e);for(var L=0;L=rt.start&&Se<=rt.end});if(!ke)return null;eoe(ke.start,Math.min(p.length,ke.end),function(rt){return wt(String(rt))})}else Object.keys(p).forEach(wt);return Ve}(B,l||xg);if(fe("dragSelectionStart",{selection:B,items:Z}),Z){var me=n0(B),ae=Z.findIndex(function(Oe){return Mr(Oe.path,me)}),Te=hN({json:G.getJson(),documentState:G.getDocumentState(),deltaY:0,items:Z}).offset;e(11,ue={initialTarget:z.target,initialClientY:z.clientY,initialContentTop:ge(),selectionStartIndex:ae,selectionItemsCount:Joe(B).length,items:Z,offset:Te,didMoveItems:!1}),Ca.dragging=!0,document.addEventListener("mousemove",le,!0),document.addEventListener("mouseup",Fe)}else fe("Cannot drag the current selection (probably spread over multiple sections)")}else oe(z)}},function(z){Ca.selecting||Ca.dragging||(z.stopPropagation(),Rg(z.target,"data-type","selectable-value")?e(10,re="hover-collection"):Rg(z.target,"data-type","insert-selection-area-inside")?e(10,re="hover-insert-inside"):Rg(z.target,"data-type","insert-selection-area-after")&&e(10,re="hover-insert-after"),clearTimeout(ce))},function(z){z.stopPropagation(),ce=setTimeout(function(){return e(10,re=void 0)})},function(z){z.shiftKey||(z.stopPropagation(),z.preventDefault(),G.onSelect(cf(m)))},function(z){z.shiftKey||(z.stopPropagation(),z.preventDefault(),G.onSelect(uf(m)))},function(z){G.onSelect(cf(m)),G.onContextMenu(z)},function(z){G.onSelect(uf(m)),G.onContextMenu(z)},oe,d,f]}var dN=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,HYe,BYe,Zi,{value:0,path:1,expandedMap:2,enforceStringMap:3,visibleSectionsMap:4,validationErrorsMap:5,searchResultItemsMap:6,selection:7,context:8,onDragSelectionStart:33},bYe,[-1,-1]),r}return Xe(e)}(),VYe=dN,zYe={prefix:"fas",iconName:"jsoneditor-expand",icon:[512,512,[],"","M 0,448 V 512 h 512 v -64 z M 0,0 V 64 H 512 V 0 Z M 256,96 128,224 h 256 z M 256,416 384,288 H 128 Z"]},UYe={prefix:"fas",iconName:"jsoneditor-collapse",icon:[512,512,[],"","m 0,224 v 64 h 512 v -64 z M 256,192 384,64 H 128 Z M 256,320 128,448 h 256 z"]},fN={prefix:"fas",iconName:"jsoneditor-format",icon:[512,512,[],"","M 0,32 v 64 h 416 v -64 z M 160,160 v 64 h 352 v -64 z M 160,288 v 64 h 288 v -64 z M 0,416 v 64 h 320 v -64 z"]},WYe={prefix:"fas",iconName:"jsoneditor-compact",icon:[512,512,[],"","M 0,32 v 64 h 512 v -64 z M 0,160 v 64 h 512 v -64 z M 0,288 v 64 h 352 v -64 z"]};function GYe(t){var n,e;return n=new ek({props:{items:t[0]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};1&di(r,1)[0]&&(o.items=i[0]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function qYe(t,n,e){var i,r,o,s,a,l,c,u=n.json,h=n.selection,d=n.readOnly,f=n.showSearch,p=void 0!==f&&f,m=n.historyState,w=n.onExpandAll,C=n.onCollapseAll,k=n.onUndo,E=n.onRedo,L=n.onSort,B=n.onTransform,G=n.onContextMenu,oe=n.onCopy,fe=n.onRenderMenu;function re(){e(1,p=!p)}return t.$$set=function(ce){"json"in ce&&e(2,u=ce.json),"selection"in ce&&e(3,h=ce.selection),"readOnly"in ce&&e(4,d=ce.readOnly),"showSearch"in ce&&e(1,p=ce.showSearch),"historyState"in ce&&e(5,m=ce.historyState),"onExpandAll"in ce&&e(6,w=ce.onExpandAll),"onCollapseAll"in ce&&e(7,C=ce.onCollapseAll),"onUndo"in ce&&e(8,k=ce.onUndo),"onRedo"in ce&&e(9,E=ce.onRedo),"onSort"in ce&&e(10,L=ce.onSort),"onTransform"in ce&&e(11,B=ce.onTransform),"onContextMenu"in ce&&e(12,G=ce.onContextMenu),"onCopy"in ce&&e(13,oe=ce.onCopy),"onRenderMenu"in ce&&e(14,fe=ce.onRenderMenu)},t.$$.update=function(){4&t.$$.dirty&&e(20,i=void 0!==u),1048584&t.$$.dirty&&e(19,r=i&&(io(h)||$s(h)||xr(h))),68&t.$$.dirty&&e(15,s={type:"button",icon:zYe,title:"Expand all",className:"jse-expand-all",onClick:w,disabled:!ss(u)}),132&t.$$.dirty&&e(16,a={type:"button",icon:UYe,title:"Collapse all",className:"jse-collapse-all",onClick:C,disabled:!ss(u)}),4&t.$$.dirty&&e(17,l={type:"button",icon:YO,title:"Search (Ctrl+F)",className:"jse-search",onClick:re,disabled:void 0===u}),769844&t.$$.dirty&&e(18,c=d?[s,a,{type:"separator"},{type:"button",icon:sp,title:"Copy (Ctrl+C)",className:"jse-copy",onClick:oe,disabled:!r},{type:"separator"},l,{type:"space"}]:[s,a,{type:"separator"},{type:"button",icon:z2,title:"Sort",className:"jse-sort",onClick:L,disabled:d||void 0===u},{type:"button",icon:B2,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:B,disabled:d||void 0===u},l,{type:"button",icon:yse,title:bF,className:"jse-contextmenu",onClick:G},{type:"separator"},{type:"button",icon:XO,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:k,disabled:!m.canUndo},{type:"button",icon:qO,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:E,disabled:!m.canRedo},{type:"space"}]),278528&t.$$.dirty&&e(0,o=fe(c)||c)},[o,p,u,h,d,m,w,C,k,E,L,B,G,oe,fe,s,a,l,c,r,i]}var XYe=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,qYe,GYe,Zi,{json:2,selection:3,readOnly:4,showSearch:1,historyState:5,onExpandAll:6,onCollapseAll:7,onUndo:8,onRedo:9,onSort:10,onTransform:11,onContextMenu:12,onCopy:13,onRenderMenu:14}),r}return Xe(e)}();function YYe(t){Ni(t,"svelte-1q2qkk2",'@charset "UTF-8";.jse-welcome.svelte-1q2qkk2.svelte-1q2qkk2{flex:1;overflow:auto;font-family:var(--jse-font-family);font-size:var(--jse-font-size);display:flex;flex-direction:column;align-items:center;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-welcome.svelte-1q2qkk2.svelte-1q2qkk2:last-child{border-bottom:var(--jse-main-border)}.jse-welcome.svelte-1q2qkk2 .jse-space.jse-before.svelte-1q2qkk2{flex:1}.jse-welcome.svelte-1q2qkk2 .jse-space.jse-after.svelte-1q2qkk2{flex:2}.jse-welcome.svelte-1q2qkk2 .jse-contents.svelte-1q2qkk2{margin:2em var(--jse-padding) 0;color:var(--jse-panel-color-readonly)}.jse-welcome.svelte-1q2qkk2 .jse-contents ul.svelte-1q2qkk2{list-style:"\u25cf";list-style-position:outside;padding-left:20px}.jse-welcome.svelte-1q2qkk2 .jse-contents ul li.svelte-1q2qkk2{padding-left:10px}.jse-welcome.svelte-1q2qkk2 .jse-contents ul li span.jse-bold.svelte-1q2qkk2{font-family:var(--jse-font-family-mono);font-weight:bold}')}function Ele(t){var n;return{c:function(){(n=Be("ul")).innerHTML='
  • Click inside the editor
  • \n
  • Paste clipboard data using Ctrl+V
  • \n
  • Create a new object by typing {
  • \n
  • Create a new array by typing [
  • ',ne(n,"class","svelte-1q2qkk2")},m:function(e,i){nt(e,n,i)},d:function(e){e&&tt(n)}}}function KYe(t){var n,e,i,r,o,s,a,l=!t[0]&&Ele();return{c:function(){n=Be("div"),e=Be("div"),i=xt(),r=Be("div"),o=xn("Empty document\n "),l&&l.c(),s=xt(),a=Be("div"),ne(e,"class","jse-space jse-before svelte-1q2qkk2"),ne(r,"class","jse-contents svelte-1q2qkk2"),ne(a,"class","jse-space jse-after svelte-1q2qkk2"),ne(n,"class","jse-welcome svelte-1q2qkk2")},m:function(c,u){nt(c,n,u),Ie(n,e),Ie(n,i),Ie(n,r),Ie(r,o),l&&l.m(r,null),Ie(n,s),Ie(n,a)},p:function(c,u){di(u,1),c[0]?l&&(l.d(1),l=null):l||((l=Ele()).c(),l.m(r,null))},i:an,o:an,d:function(c){c&&tt(n),l&&l.d()}}}function JYe(t,n,e){var i=n.readOnly;return t.$$set=function(r){"readOnly"in r&&e(0,i=r.readOnly)},[i]}var QYe=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,JYe,KYe,Zi,{readOnly:0},YYe),r}return Xe(e)}(),pN={},ZYe={get exports(){return pN},set exports(t){pN=t}},Mle=function(t,n){var e,i,r=1,o=0,s=0,a=String.alphabet;function l(c,u,h){if(h){for(e=u;(h=l(c,e))<76&&h>65;)++e;return+c.slice(u-1,e)}return(h=a&&a.indexOf(c.charAt(u)))>-1?h+76:(h=c.charCodeAt(u)||0)<45||h>127?h:h<46?65:h<48?h-1:h<58?h+18:h<65?h-11:h<91?h+11:h<97?h-37:h<123?h+5:h-63}if((t+="")!=(n+=""))for(;r;)if(i=l(t,o++),r=l(n,s++),i<76&&r<76&&i>66&&r>66&&(i=l(t,o,o),r=l(n,s,o=e),s=e),i!=r)return i1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(Ao(Un(t,n))){if(void 0===e)throw new Error("Cannot sort: no property selected by which to sort the array");return function tKe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=function nKe(t,n){return function(e,i){var r=Un(e,t),o=Un(i,t);return void 0===r?n:void 0===o?-n:"string"!=typeof r&&"string"!=typeof o?r>o?n:r2&&void 0!==arguments[2]?arguments[2]:[],arguments.length>3&&void 0!==arguments[3]?arguments[3]:1),o=Un(t,n);return[{op:"replace",path:An(n),value:o.slice(0).sort(r)}]}(t,n,e,i)}if(Ko(t))return function eKe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=Un(t,n),o=Object.keys(i).slice();o.sort(function(u,h){return e*gN(u,h)});for(var s=[],a=0;aKb&&Ole();return{c:function(){n=Be("div");for(var h=0;hKb?u?u.p(h,f):((u=Ole()).c(),u.m(n,null)):u&&(u.d(1),u=null)},i:an,o:an,d:function(h){h&&tt(n);for(var d=0;d0&&(a("scrollTo ",w),o.scrollTo({left:w,behavior:"smooth"}))}})},[l,h,d,i,o,s,f,r,function(w){a("get items for path",w);var C=Un(l,w);if(Array.isArray(C))return hO(0,C.length).map(String);if(Ko(C)){var k=Object.keys(C).slice(0);return k.sort(gN),k}return[]},function(w){return tu(l,w)},p,function(){e(6,f=!f)},m,function(w){m(),p(w)},c,u,function(w){dr[w?"unshift":"push"](function(){e(5,s=w)})},function(w){dr[w?"unshift":"push"](function(){e(4,o=w)})}]}var bKe=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,yKe,vKe,Zi,{json:0,documentState:14,onSelect:15,onError:1,pathParser:2},pKe),r}return Xe(e)}();function _Ke(t){Ni(t,"svelte-3lbrbf",".jse-search-box.svelte-3lbrbf.svelte-3lbrbf{border:var(--jse-panel-border);border-radius:3px;font-family:var(--jse-font-family);font-size:var(--jse-font-size);background:var(--jse-panel-background);color:var(--jse-panel-color-readonly);box-shadow:var(--jse-controls-box-shadow);display:inline-block;width:400px;max-width:100%;overflow:auto}.jse-search-box.svelte-3lbrbf .jse-search-form.svelte-3lbrbf{display:flex;align-items:stretch}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf,.jse-search-box.svelte-3lbrbf .jse-search-form input.svelte-3lbrbf{font-family:inherit;font-size:inherit}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf{display:block;text-align:center;border:none;padding:0 5px;margin:0;cursor:pointer;color:var(--jse-panel-button-color);background:var(--jse-panel-button-background)}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf:hover{color:var(--jse-panel-button-color-highlight);background:var(--jse-panel-button-background-highlight)}.jse-search-box.svelte-3lbrbf .jse-search-form input.svelte-3lbrbf{color:var(--jse-panel-color);border:var(--jse-input-border);border-radius:3px;background:var(--jse-input-background);height:28px;padding:0 5px;margin:0;flex:1;width:0;min-width:50px;outline:none}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-replace-toggle.svelte-3lbrbf{padding:var(--jse-padding) calc(0.5 * var(--jse-padding));min-width:20px;background:var(--jse-panel-button-background-highlight)}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents.svelte-3lbrbf{flex:1;display:flex;flex-direction:column;padding:calc(0.5 * var(--jse-padding));gap:calc(0.5 * var(--jse-padding))}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section.svelte-3lbrbf{flex:1;display:flex;align-items:center;position:relative;padding-left:32px}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-icon.svelte-3lbrbf{color:inherit;cursor:inherit;background:inherit;position:absolute;top:calc(0.5 * var(--jse-padding));left:calc(0.5 * var(--jse-padding))}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section label.jse-search-input-label.svelte-3lbrbf{flex:1;display:flex}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-count.svelte-3lbrbf{color:inherit;font-size:80%;visibility:hidden;padding:0 5px;min-width:36px;text-align:center}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-count.jse-visible.svelte-3lbrbf{visibility:visible}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-replace-section.svelte-3lbrbf{padding-left:32px;flex:1;display:flex}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-replace-section button.svelte-3lbrbf{width:auto}")}function zle(t){var n,e,i,r,o,s,a,l,c,u,h,d,f,p,m,w,C,k,E,L,B,G,oe,fe,re,ce,ue,pe,De=(-1!==t[3]?"".concat(t[3]+1,"/"):"")+"",ie=!t[4]&&Ule(t),ge=[xKe,wKe],we=[];function le(z,Q){return z[2]?0:1}a=le(t),l=we[a]=ge[a](t),k=new Ir({props:{data:TGe}}),B=new Ir({props:{data:_Ge}}),fe=new Ir({props:{data:d0}});var Fe=t[0]&&!t[4]&&Wle(t);return{c:function(){n=Be("div"),e=Be("form"),ie&&ie.c(),i=xt(),r=Be("div"),o=Be("div"),s=Be("div"),l.c(),c=xt(),u=Be("label"),h=Be("input"),d=xt(),f=Be("div"),p=xn(De),m=xn(t[10]),w=xt(),C=Be("button"),$t(k.$$.fragment),E=xt(),L=Be("button"),$t(B.$$.fragment),G=xt(),oe=Be("button"),$t(fe.$$.fragment),re=xt(),Fe&&Fe.c(),ne(s,"class","jse-search-icon svelte-3lbrbf"),ne(h,"class","jse-search-input svelte-3lbrbf"),ne(h,"title","Enter text to search"),ne(h,"type","text"),ne(h,"placeholder","Find"),ne(u,"class","jse-search-input-label svelte-3lbrbf"),ne(u,"about","jse-search input"),ne(f,"class","jse-search-count svelte-3lbrbf"),en(f,"jse-visible",""!==t[8]),ne(C,"type","button"),ne(C,"class","jse-search-next svelte-3lbrbf"),ne(C,"title","Go to next search result (Enter)"),ne(L,"type","button"),ne(L,"class","jse-search-previous svelte-3lbrbf"),ne(L,"title","Go to previous search result (Shift+Enter)"),ne(oe,"type","button"),ne(oe,"class","jse-search-clear svelte-3lbrbf"),ne(oe,"title","Close search box (Esc)"),ne(o,"class","jse-search-section svelte-3lbrbf"),ne(r,"class","jse-search-contents svelte-3lbrbf"),ne(e,"class","jse-search-form svelte-3lbrbf"),ne(n,"class","jse-search-box svelte-3lbrbf")},m:function(z,Q){nt(z,n,Q),Ie(n,e),ie&&ie.m(e,null),Ie(e,i),Ie(e,r),Ie(r,o),Ie(o,s),we[a].m(s,null),Ie(o,c),Ie(o,u),Ie(u,h),Vf(h,t[8]),Ie(o,d),Ie(o,f),Ie(f,p),Ie(f,m),Ie(o,w),Ie(o,C),Nt(k,C,null),Ie(o,E),Ie(o,L),Nt(B,L,null),Ie(o,G),Ie(o,oe),Nt(fe,oe,null),Ie(r,re),Fe&&Fe.m(r,null),ce=!0,ue||(pe=[rn(h,"input",t[21]),Ra(SKe.call(null,h)),rn(C,"click",t[22]),rn(L,"click",t[23]),rn(oe,"click",t[24]),rn(e,"submit",t[12]),rn(e,"keydown",t[13])],ue=!0)},p:function(z,Q){z[4]?ie&&(cn(),Ee(ie,1,1,function(){ie=null}),un()):ie?(ie.p(z,Q),16&Q&&_e(ie,1)):((ie=Ule(z)).c(),_e(ie,1),ie.m(e,i));var Z=a;(a=le(z))===Z?we[a].p(z,Q):(cn(),Ee(we[Z],1,1,function(){we[Z]=null}),un(),(l=we[a])?l.p(z,Q):(l=we[a]=ge[a](z)).c(),_e(l,1),l.m(s,null)),256&Q&&h.value!==z[8]&&Vf(h,z[8]),(!ce||8&Q)&&De!==(De=(-1!==z[3]?"".concat(z[3]+1,"/"):"")+"")&&gi(p,De),(!ce||1024&Q)&&gi(m,z[10]),(!ce||256&Q)&&en(f,"jse-visible",""!==z[8]),z[0]&&!z[4]?Fe?Fe.p(z,Q):((Fe=Wle(z)).c(),Fe.m(r,null)):Fe&&(Fe.d(1),Fe=null)},i:function(z){ce||(_e(ie),_e(l),_e(k.$$.fragment,z),_e(B.$$.fragment,z),_e(fe.$$.fragment,z),ce=!0)},o:function(z){Ee(ie),Ee(l),Ee(k.$$.fragment,z),Ee(B.$$.fragment,z),Ee(fe.$$.fragment,z),ce=!1},d:function(z){z&&tt(n),ie&&ie.d(),we[a].d(),Rt(k),Rt(B),Rt(fe),Fe&&Fe.d(),ue=!1,Fo(pe)}}}function Ule(t){var n,e,i,r,o;return e=new Ir({props:{data:t[0]?hu:rp}}),{c:function(){n=Be("button"),$t(e.$$.fragment),ne(n,"type","button"),ne(n,"class","jse-replace-toggle svelte-3lbrbf"),ne(n,"title","Toggle visibility of replace options (Ctrl+H)")},m:function(s,a){nt(s,n,a),Nt(e,n,null),i=!0,r||(o=rn(n,"click",t[11]),r=!0)},p:function(s,a){var l={};1&a&&(l.data=s[0]?hu:rp),e.$set(l)},i:function(s){i||(_e(e.$$.fragment,s),i=!0)},o:function(s){Ee(e.$$.fragment,s),i=!1},d:function(s){s&&tt(n),Rt(e),r=!1,o()}}}function wKe(t){var n,e;return n=new Ir({props:{data:YO}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:an,i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function xKe(t){var n,e;return n=new Ir({props:{data:vGe,spin:!0}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:an,i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function Wle(t){var n,e,i,r,o,s,a,l;return{c:function(){n=Be("div"),e=Be("input"),i=xt(),(r=Be("button")).textContent="Replace",o=xt(),(s=Be("button")).textContent="All",ne(e,"class","jse-replace-input svelte-3lbrbf"),ne(e,"title","Enter replacement text"),ne(e,"type","text"),ne(e,"placeholder","Replace"),ne(r,"type","button"),ne(r,"title","Replace current occurrence (Ctrl+Enter)"),ne(r,"class","svelte-3lbrbf"),ne(s,"type","button"),ne(s,"title","Replace all occurrences"),ne(s,"class","svelte-3lbrbf"),ne(n,"class","jse-replace-section svelte-3lbrbf")},m:function(c,u){nt(c,n,u),Ie(n,e),Vf(e,t[9]),Ie(n,i),Ie(n,r),Ie(n,o),Ie(n,s),a||(l=[rn(e,"input",t[25]),rn(r,"click",t[14]),rn(s,"click",t[15])],a=!0)},p:function(c,u){512&u&&e.value!==c[9]&&Vf(e,c[9])},d:function(c){c&&tt(n),a=!1,Fo(l)}}}function CKe(t){var n,e,i=t[1]&&zle(t);return{c:function(){i&&i.c(),n=Wr()},m:function(r,o){i&&i.m(r,o),nt(r,n,o),e=!0},p:function(r,o){var s=di(o,1)[0];r[1]?i?(i.p(r,s),2&s&&_e(i,1)):((i=zle(r)).c(),_e(i,1),i.m(n.parentNode,n)):i&&(cn(),Ee(i,1,1,function(){i=null}),un())},i:function(r){e||(_e(i),e=!0)},o:function(r){Ee(i),e=!1},d:function(r){i&&i.d(r),r&&tt(n)}}}function SKe(t){t.select()}function kKe(t,n,e){var i,r,o=n.show,s=void 0!==o&&o,a=n.searching,l=n.resultCount,c=void 0===l?0:l,u=n.activeIndex,h=void 0===u?0:u,d=n.showReplace,f=void 0!==d&&d,p=n.readOnly,m=void 0!==p&&p,w=n.onChange,C=void 0===w?Ro:w,k=n.onPrevious,E=void 0===k?Ro:k,L=n.onNext,B=void 0===L?Ro:L,G=n.onReplace,oe=void 0===G?Ro:G,fe=n.onReplaceAll,re=void 0===fe?Ro:fe,ce=n.onClose,ue=void 0===ce?Ro:ce,pe="",De="",ie="";function ge(){e(0,f=!f&&!m)}function we(){m||oe(pe,ie)}return t.$$set=function(le){"show"in le&&e(1,s=le.show),"searching"in le&&e(2,a=le.searching),"resultCount"in le&&e(16,c=le.resultCount),"activeIndex"in le&&e(3,h=le.activeIndex),"showReplace"in le&&e(0,f=le.showReplace),"readOnly"in le&&e(4,m=le.readOnly),"onChange"in le&&e(17,C=le.onChange),"onPrevious"in le&&e(5,E=le.onPrevious),"onNext"in le&&e(6,B=le.onNext),"onReplace"in le&&e(18,oe=le.onReplace),"onReplaceAll"in le&&e(19,re=le.onReplaceAll),"onClose"in le&&e(7,ue=le.onClose)},t.$$.update=function(){65536&t.$$.dirty&&e(10,i=c>=1e3?"".concat(999,"+"):String(c)),131072&t.$$.dirty&&e(20,r=Uv(C,300)),1048832&t.$$.dirty&&r(pe),2&t.$$.dirty&&s&&""!==pe&&C(pe)},[f,s,a,h,m,E,B,ue,pe,ie,i,ge,function(le){le.preventDefault(),pe!==De?(De=pe,r.cancel(),C(pe)):B()},function(le){le.stopPropagation();var Fe=tp(le);"Enter"===Fe&&(le.preventDefault(),B()),"Shift+Enter"===Fe&&(le.preventDefault(),E()),"Ctrl+Enter"===Fe&&(le.preventDefault(),f?we():B()),"Ctrl+H"===Fe&&(le.preventDefault(),ge()),"Escape"===Fe&&(le.preventDefault(),ue())},we,function(){m||re(pe,ie)},c,C,oe,re,r,function(){e(8,pe=this.value)},function(){return B()},function(){return E()},function(){return ue()},function(){e(9,ie=this.value)}]}var DKe=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,kKe,CKe,Zi,{show:1,searching:2,resultCount:16,activeIndex:3,showReplace:0,readOnly:4,onChange:17,onPrevious:5,onNext:6,onReplace:18,onReplaceAll:19,onClose:7},_Ke),r}return Xe(e)}(),Gle=Number.isNaN||function(t){return"number"==typeof t&&t!=t};function TKe(t,n){if(t.length!==n.length)return!1;for(var e=0;e \n
    loading...
    ',ne(n,"class","jse-contents svelte-qojdc1")},m:function(e,i){nt(e,n,i)},p:an,i:an,o:an,d:function(e){e&&tt(n)}}}function zKe(t){var n,e,i,r,o,s,a,l,c,u=[WKe,UKe],h=[];function d(f,p){return void 0===f[10]?0:1}return r=d(t),o=h[r]=u[r](t),{c:function(){n=Be("label"),e=Be("input"),i=xt(),o.c(),s=Wr(),ne(e,"type","text"),e.readOnly="readonly",ne(e,"tabindex","-1"),ne(e,"class","jse-hidden-input svelte-qojdc1"),ne(n,"class","jse-hidden-input-label svelte-qojdc1")},m:function(f,p){nt(f,n,p),Ie(n,e),t[76](e),nt(f,i,p),h[r].m(f,p),nt(f,s,p),a=!0,l||(c=rn(e,"paste",t[34]),l=!0)},p:function(f,p){var m=r;(r=d(f))===m?h[r].p(f,p):(cn(),Ee(h[m],1,1,function(){h[m]=null}),un(),(o=h[r])?o.p(f,p):(o=h[r]=u[r](f)).c(),_e(o,1),o.m(s.parentNode,s))},i:function(f){a||(_e(o),a=!0)},o:function(f){Ee(o),a=!1},d:function(f){f&&tt(n),t[76](null),f&&tt(i),h[r].d(f),f&&tt(s),l=!1,c()}}}function UKe(t){var n,e,i,r,o,s,a,l,c,u,h,d,f,p;s=new DKe({props:{show:t[19],resultCount:(null===(n=t[17])||void 0===n||null===(e=n.items)||void 0===e?void 0:e.length)||0,activeIndex:(null===(i=t[17])||void 0===i?void 0:i.activeIndex)||0,showReplace:t[20],searching:t[21],readOnly:t[0],onChange:t[26],onNext:t[27],onPrevious:t[28],onReplace:t[29],onReplaceAll:t[30],onClose:t[31]}}),c=new VYe({props:{value:t[10],path:[],expandedMap:t[16].expandedMap,enforceStringMap:t[16].enforceStringMap,visibleSectionsMap:t[16].visibleSectionsMap,validationErrorsMap:t[24],searchResultItemsMap:null===(r=t[17])||void 0===r?void 0:r.itemsMap,selection:t[16].selection,context:t[13],onDragSelectionStart:Ro}});var m=t[18]&&ice(t),w=t[23]&&rce(t);return f=new sN({props:{validationErrors:t[12],selectError:t[32]}}),{c:function(){o=Be("div"),$t(s.$$.fragment),a=xt(),l=Be("div"),$t(c.$$.fragment),u=xt(),m&&m.c(),h=xt(),w&&w.c(),d=xt(),$t(f.$$.fragment),ne(o,"class","jse-search-box-container svelte-qojdc1"),ne(l,"class","jse-contents svelte-qojdc1"),ne(l,"data-jsoneditor-scrollable-contents",!0)},m:function(C,k){nt(C,o,k),Nt(s,o,null),nt(C,a,k),nt(C,l,k),Nt(c,l,null),t[77](l),nt(C,u,k),m&&m.m(C,k),nt(C,h,k),w&&w.m(C,k),nt(C,d,k),Nt(f,C,k),p=!0},p:function(C,k){var E,L,B,G,oe={};524288&k[0]&&(oe.show=C[19]),131072&k[0]&&(oe.resultCount=(null===(E=C[17])||void 0===E||null===(L=E.items)||void 0===L?void 0:L.length)||0),131072&k[0]&&(oe.activeIndex=(null===(B=C[17])||void 0===B?void 0:B.activeIndex)||0),1048576&k[0]&&(oe.showReplace=C[20]),2097152&k[0]&&(oe.searching=C[21]),1&k[0]&&(oe.readOnly=C[0]),s.$set(oe);var fe={};1024&k[0]&&(fe.value=C[10]),65536&k[0]&&(fe.expandedMap=C[16].expandedMap),65536&k[0]&&(fe.enforceStringMap=C[16].enforceStringMap),65536&k[0]&&(fe.visibleSectionsMap=C[16].visibleSectionsMap),16777216&k[0]&&(fe.validationErrorsMap=C[24]),131072&k[0]&&(fe.searchResultItemsMap=null===(G=C[17])||void 0===G?void 0:G.itemsMap),65536&k[0]&&(fe.selection=C[16].selection),8192&k[0]&&(fe.context=C[13]),c.$set(fe),C[18]?m?(m.p(C,k),262144&k[0]&&_e(m,1)):((m=ice(C)).c(),_e(m,1),m.m(h.parentNode,h)):m&&(cn(),Ee(m,1,1,function(){m=null}),un()),C[23]?w?(w.p(C,k),8388608&k[0]&&_e(w,1)):((w=rce(C)).c(),_e(w,1),w.m(d.parentNode,d)):w&&(cn(),Ee(w,1,1,function(){w=null}),un());var re={};4096&k[0]&&(re.validationErrors=C[12]),f.$set(re)},i:function(C){p||(_e(s.$$.fragment,C),_e(c.$$.fragment,C),_e(m),_e(w),_e(f.$$.fragment,C),p=!0)},o:function(C){Ee(s.$$.fragment,C),Ee(c.$$.fragment,C),Ee(m),Ee(w),Ee(f.$$.fragment,C),p=!1},d:function(C){C&&tt(o),Rt(s),C&&tt(a),C&&tt(l),Rt(c),t[77](null),C&&tt(u),m&&m.d(C),C&&tt(h),w&&w.d(C),C&&tt(d),Rt(f,C)}}}function WKe(t){var n,e,i,r,o=[qKe,GKe],s=[];function a(l,c){return""===l[11]||void 0===l[11]?0:1}return n=a(t),e=s[n]=o[n](t),{c:function(){e.c(),i=Wr()},m:function(l,c){s[n].m(l,c),nt(l,i,c),r=!0},p:function(l,c){var u=n;(n=a(l))===u?s[n].p(l,c):(cn(),Ee(s[u],1,1,function(){s[u]=null}),un(),(e=s[n])?e.p(l,c):(e=s[n]=o[n](l)).c(),_e(e,1),e.m(i.parentNode,i))},i:function(l){r||(_e(e),r=!0)},o:function(l){Ee(e),r=!1},d:function(l){s[n].d(l),l&&tt(i)}}}function ice(t){var n,e;return n=new sh({props:{type:"info",message:"You pasted a JSON ".concat(Array.isArray(t[18].contents)?"array":"object"," as text"),actions:[{icon:H2,text:"Paste as JSON instead",onMouseDown:t[45]},{text:"Leave as is",onClick:t[46]}]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};262144&r[0]&&(o.message="You pasted a JSON ".concat(Array.isArray(i[18].contents)?"array":"object"," as text")),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function rce(t){var n,e;return n=new sh({props:{type:"success",message:"The loaded JSON document was invalid but is successfully repaired.",actions:t[0]?[]:[{icon:Ub,text:"Ok",onClick:t[8]},{icon:op,text:"Repair manually instead",onClick:t[47]}]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};1&r[0]&&(o.actions=i[0]?[]:[{icon:Ub,text:"Ok",onClick:i[8]},{icon:op,text:"Repair manually instead",onClick:i[47]}]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function GKe(t){var n,e,i,r;return n=new sh({props:{type:"error",message:"The loaded JSON document is invalid and could not be repaired automatically.",actions:t[0]?[]:[{icon:op,text:"Repair manually",onClick:t[47]}]}}),i=new ece({props:{text:t[11],json:t[10],indentation:t[5],parser:t[3]}}),{c:function(){$t(n.$$.fragment),e=xt(),$t(i.$$.fragment)},m:function(o,s){Nt(n,o,s),nt(o,e,s),Nt(i,o,s),r=!0},p:function(o,s){var a={};1&s[0]&&(a.actions=o[0]?[]:[{icon:op,text:"Repair manually",onClick:o[47]}]),n.$set(a);var l={};2048&s[0]&&(l.text=o[11]),1024&s[0]&&(l.json=o[10]),32&s[0]&&(l.indentation=o[5]),8&s[0]&&(l.parser=o[3]),i.$set(l)},i:function(o){r||(_e(n.$$.fragment,o),_e(i.$$.fragment,o),r=!0)},o:function(o){Ee(n.$$.fragment,o),Ee(i.$$.fragment,o),r=!1},d:function(o){Rt(n,o),o&&tt(e),Rt(i,o)}}}function qKe(t){var n,e;return n=new QYe({props:{readOnly:t[0]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};1&r[0]&&(o.readOnly=i[0]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function XKe(t){var n,e,i,r,o,s,a,l,c=t[1]&&tce(t),u=t[2]&&nce(t),d=[];return o=d[r=t[25]?1:0]=[zKe,VKe][r](t),{c:function(){n=Be("div"),c&&c.c(),e=xt(),u&&u.c(),i=xt(),o.c(),ne(n,"class","jse-tree-mode svelte-qojdc1"),en(n,"no-main-menu",!t[1])},m:function(f,p){nt(f,n,p),c&&c.m(n,null),Ie(n,e),u&&u.m(n,null),Ie(n,i),d[r].m(n,null),t[78](n),s=!0,a||(l=[rn(BKe,"mousedown",t[49]),rn(n,"keydown",t[41]),rn(n,"mousedown",t[42]),rn(n,"contextmenu",t[43])],a=!0)},p:function(f,p){f[1]?c?(c.p(f,p),2&p[0]&&_e(c,1)):((c=tce(f)).c(),_e(c,1),c.m(n,e)):c&&(cn(),Ee(c,1,1,function(){c=null}),un()),f[2]?u?(u.p(f,p),4&p[0]&&_e(u,1)):((u=nce(f)).c(),_e(u,1),u.m(n,i)):u&&(cn(),Ee(u,1,1,function(){u=null}),un()),o.p(f,p),(!s||2&p[0])&&en(n,"no-main-menu",!f[1])},i:function(f){s||(_e(c),_e(u),_e(o),s=!0)},o:function(f){Ee(c),Ee(u),Ee(o),s=!1},d:function(f){f&&tt(n),c&&c.d(),u&&u.d(),d[r].d(),t[78](null),a=!1,Fo(l)}}}function YKe(t,n,e){var i,r=Pa("jsoneditor:TreeMode"),o=typeof window>"u";r("isSSR:",o);var s,a,l,c,u,h=$a("simple-modal").open,d=ep(),f=ep(),p=$a("absolute-popup"),m=p.openAbsolutePopup,w=p.closeAbsolutePopup,C=!1,k=hae(),E=n.readOnly,L=n.externalContent,B=n.mainMenuBar,G=n.navigationBar,oe=n.escapeControlCharacters,fe=n.escapeUnicodeCharacters,re=n.parser,ce=n.parseMemoizeOne,ue=n.validator,pe=n.validationParser,De=n.pathParser,ie=n.indentation,ge=n.onError,we=n.onChange,le=n.onChangeMode,Fe=n.onRenderValue,z=n.onRenderMenu,Q=n.onClassName,Z=n.onFocus,me=n.onBlur,ae=n.onSortModal,Te=n.onTransformModal,Oe=n.onJSONEditorModal,Ze=!1;oN({onMount:Zc,onDestroy:Gu,getWindow:function(){return Qv(l)},hasFocus:function(){return Ze&&document.hasFocus()||L2(l)},onFocus:function(){C=!0,Z&&Z()},onBlur:function(){C=!1,me&&me()}});var Ve=void 0;function wt(Ge){r("updateSelection",Ge);var Dt="function"==typeof Ge?Ge(ke.selection):Ge;Mr(Dt,ke.selection)||e(16,ke=_t(_t({},ke),{},{selection:Dt}))}var ct,Ct,se,Se=!1,ke=N2(),Qe=!1,gt=!1,rt=!1,zt="";function Qt(Ge){return Pn.apply(this,arguments)}function Pn(){return(Pn=Dr(Rn().mark(function Ge(Dt){return Rn().wrap(function(tn){for(;;)switch(tn.prev=tn.next){case 0:return r("search text updated",Dt),e(74,zt=Dt),tn.next=4,oc();case 4:return tn.next=6,ro();case 6:case"end":return tn.stop()}},Ge)}))).apply(this,arguments)}function Mi(){return(Mi=Dr(Rn().mark(function Ge(){return Rn().wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:return e(17,ct=ct?GWe(ct):void 0),Dt.next=3,ro();case 3:case"end":return Dt.stop()}},Ge)}))).apply(this,arguments)}function Sn(){return(Sn=Dr(Rn().mark(function Ge(){return Rn().wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:return e(17,ct=ct?qWe(ct):void 0),Dt.next=3,ro();case 3:case"end":return Dt.stop()}},Ge)}))).apply(this,arguments)}function nr(){return(nr=Dr(Rn().mark(function Ge(Dt,tn){var vn,Cn,Dn,Ei;return Rn().wrap(function(Oi){for(;;)switch(Oi.prev=Oi.next){case 0:if(Cn=null===(vn=ct)||void 0===vn?void 0:vn.activeItem,r("handleReplace",{replacementText:tn,activeItem:Cn}),Cn){Oi.next=4;break}return Oi.abrupt("return");case 4:return Dn=XWe(c,ke,tn,Cn,re),Ei=Dn.newSelection,mi(Dn.operations,function(ns,Zs){return{state:_t(_t({},Zs),{},{selection:Ei})}}),Oi.next=8,oc();case 8:return Oi.next=10,ro();case 10:case"end":return Oi.stop()}},Ge)}))).apply(this,arguments)}function On(){return(On=Dr(Rn().mark(function Ge(Dt,tn){var vn,Dn;return Rn().wrap(function(li){for(;;)switch(li.prev=li.next){case 0:return r("handleReplaceAll",{text:Dt,replacementText:tn}),vn=YWe(c,ke,Dt,tn,re),Dn=vn.newSelection,mi(vn.operations,function(Ei,Oi){return{state:_t(_t({},Oi),{},{selection:Dn})}}),li.next=5,oc();case 5:return li.next=7,ro();case 7:case"end":return li.stop()}},Ge)}))).apply(this,arguments)}function ro(){return uo.apply(this,arguments)}function uo(){return(uo=Dr(Rn().mark(function Ge(){var Dt,tn,vn;return Rn().wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:if(tn=null===(Dt=ct)||void 0===Dt?void 0:Dt.activeItem,r("focusActiveSearchResult",ct),!tn){Cn.next=9;break}return e(16,ke=_t(_t({},OO(c,ke,vn=tn.path)),{},{selection:void 0})),Cn.next=7,oc();case 7:return Cn.next=9,Fn(vn);case 9:case"end":return Cn.stop()}},Ge)}))).apply(this,arguments)}var er,vo,qr=dae({onChange:function(Ge){e(22,oo=Ge)}}),oo=qr.getState(),es=pO(function(Ge,Dt){if(""===Ge)return r("clearing search result"),void(void 0!==ct&&e(17,ct=void 0));e(21,rt=!0),setTimeout(function(){r("searching...",Ge);var Cn,Dn,li,Ei,Oi,ns,Zs,tn=sse(Ge,Dt,1e3);e(17,(Cn=tn,li=null!=(Dn=ct)&&Dn.activeItem?cse(Dn.activeItem):void 0,Ei=Cn.findIndex(function(ms){return Mr(li,cse(ms))}),Oi=-1!==Ei?Ei:void 0!==Dn?.activeIndex&&Dn?.activeIndex0?0:-1,Zs=(ns=Cn.map(function(ms,Vo){return _t(_t({},ms),{},{active:Vo===Oi})}))[Oi],ct={items:ns,itemsMap:Gv(ns,function(ms){return An(ms.path)}),activeItem:Zs,activeIndex:Oi})),e(21,rt=!1)})},300),Zn=!1,Ut=[],Ii=Jb(fae);function ir(Ge,Dt,tn,vn){p0(function(){var Cn;try{Cn=Ii(Ge,Dt,tn,vn)}catch(Dn){Cn=[{path:[],message:"Failed to validate: "+Dn.message,severity:Xh.warning}]}Mr(Cn,Ut)||(r("validationErrors changed:",Cn),e(12,Ut=Cn))},function(Cn){return r("validationErrors updated in ".concat(Cn," ms"))})}function Xr(){return r("validate"),Ve?{parseError:Ve,isRepairable:!1}:(ir(c,ue,re,pe),fr(Ut)?null:{validationErrors:Ut})}function Ho(){return c}function gs(){return ke}function ei(Ge){Se||(Se=!0,e(16,ke=cu(Ge,ke,[],loe({json:Ge},10240)?sd:Bb)))}function Ai(Ge){void 0!==ke.selection&&(ke.selection&&tu(Ge,ke.selection.anchorPath)&&tu(Ge,ke.selection.focusPath)||(r("clearing selection: path does not exist anymore",ke.selection),e(16,ke=_t(_t({},ke),{},{selection:r0(Ge,ke)}))))}function Vi(Ge){var Dt=Ge.previousJson,tn=Ge.previousState,vn=Ge.previousText,Cn=Ge.previousTextIsRepaired;void 0===Dt&&void 0===vn||(void 0!==c?qr.add(void 0!==Dt?{undo:{patch:[{op:"replace",path:"",value:Dt}],state:Cl(tn),json:void 0,text:vn,textIsRepaired:Cn},redo:{patch:[{op:"replace",path:"",value:c}],state:Cl(ke),json:void 0,text:u,textIsRepaired:Zn}}:{undo:{patch:void 0,json:void 0,text:vn,state:Cl(tn),textIsRepaired:Cn},redo:{patch:void 0,json:c,state:Cl(ke),text:u,textIsRepaired:Zn}}):void 0!==Dt&&qr.add({undo:{patch:void 0,json:Dt,state:Cl(tn),text:vn,textIsRepaired:Cn},redo:{patch:void 0,json:void 0,text:u,textIsRepaired:Zn,state:Cl(ke)}}))}function Zr(Ge,Dt){if(r("patch",Ge,Dt),void 0===c)throw new Error("Cannot apply patch: no JSON");var tn={json:c,text:u},vn=c,Cn=ke,Dn=u,li=Zn,Ei=rse(c,Ge),Oi=Poe(c,ke,Ge),ns=o0(c,Ge),Zs=function(xd,Ch){return void 0!==Ch||!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?_t(_t({},xd),{},{selection:Ch}):xd}(Oi.documentState,ns,!1);r("patch updatedSelection",ns);var ms="function"==typeof Dt?Dt(Oi.json,Zs):void 0;e(10,c=ms&&void 0!==ms.json?ms.json:Oi.json);var Vo=ms&&void 0!==ms.state?ms.state:Zs;e(16,ke=Vo),e(11,u=void 0),e(23,Zn=!1),e(18,se=void 0),Ai(c),qr.add({undo:{patch:Ei,json:void 0,text:Dn,state:Cl(Cn),textIsRepaired:li},redo:{patch:Ge,json:void 0,state:Cl(Vo),text:u,textIsRepaired:Zn}});var Kl={json:c,previousJson:vn,undo:Ei,redo:Ge};return _i(tn,Kl),Kl}function yo(){!E&&ke.selection&&wt(uu(ke.selection.focusPath,!0))}function Mo(){if(!E&&ke.selection){var Ge=ke.selection.focusPath,Dt=Un(c,Ge);ss(Dt)?(r("openJSONEditorModal",{path:tn=Ge,value:vn=Dt}),Ze=!0,Oe({content:{json:vn},path:tn,onPatch:vo.onPatch,onClose:function(){Ze=!1,Qs()}})):wt(Br(Ge,!0))}var tn,vn}function da(){if(!E&&xr(ke.selection)){var Ge=ke.selection.focusPath,Dt=An(Ge),tn=Un(c,Ge),vn=!lf(tn,ke.enforceStringMap,Dt,re),Cn=vn?String(tn):Iv(String(tn),re);r("handleToggleEnforceString",{enforceString:vn,value:tn,updatedValue:Cn}),mi([{op:"replace",path:Dt,value:Cn}],function(Dn,li){return{state:$oe(li,Dt,vn)}})}}function Vr(){return fa.apply(this,arguments)}function fa(){return fa=Dr(Rn().mark(function Ge(){var Dt,tn=arguments;return Rn().wrap(function(vn){for(;;)switch(vn.prev=vn.next){case 0:return Dt=!(tn.length>0&&void 0!==tn[0])||tn[0],vn.next=3,Yle({json:c,documentState:ke,indentation:Dt?ie:void 0,readOnly:E,parser:re,onPatch:mi});case 3:case"end":return vn.stop()}},Ge)})),fa.apply(this,arguments)}function ll(){return cl.apply(this,arguments)}function cl(){return cl=Dr(Rn().mark(function Ge(){var Dt,tn=arguments;return Rn().wrap(function(vn){for(;;)switch(vn.prev=vn.next){case 0:if(Dt=!(tn.length>0&&void 0!==tn[0])||tn[0],void 0!==c){vn.next=3;break}return vn.abrupt("return");case 3:return vn.next=5,Kle({json:c,documentState:ke,indentation:Dt?ie:void 0,parser:re});case 5:case"end":return vn.stop()}},Ge)})),cl.apply(this,arguments)}function Hc(){h(Cae,{},_t(_t({},Cg),{},{styleWindow:{width:"450px"}}),{onClose:function(){return Qs()}})}function Ue(Ge,Dt){h(Oae,{text:Ge,onParse:E2,onRepair:ooe,onApply:Dt},_t(_t({},Cg),{},{styleWindow:{width:"600px",height:"500px"},styleContent:{padding:0,height:"100%"}}),{onClose:function(){return Qs()}})}function lt(){Qle({json:c,text:u,documentState:ke,keepSelection:!1,readOnly:E,onChange:we,onPatch:mi})}function ft(){!E&&void 0!==c&&ke.selection&&a0(ke.selection)&&!fr(ke.selection.focusPath)&&(r("duplicate",{selection:ke.selection}),mi(tse(c,Joe(ke.selection))))}function Mt(){E||!ke.selection||!io(ke.selection)&&!xr(ke.selection)||fr(ke.selection.focusPath)||(r("extract",{selection:ke.selection}),mi(function(Dt,tn){if(xr(tn))return[{op:"move",from:An(tn.focusPath),path:""}];if(!io(tn))throw new Error("Cannot create extract operations: parent must be an Object or Array");var vn=Un(Dt,wr(tn.focusPath));if(Ao(vn))return[{op:"replace",path:"",value:tn.paths.map(function(Dn){var li=la(ii(Dn));return vn[li]})}];if(Yo(vn)){var Cn={};return tn.paths.forEach(function(Dn){var li=String(ii(Dn));Cn[li]=vn[li]}),[{op:"replace",path:"",value:Cn}]}throw new Error("Cannot extract: unsupported type of selection "+JSON.stringify(tn))}(c,ke.selection),function(Dt,tn){if(ss(Dt))return{state:np(Dt,tn,[])}}))}function ut(Ge){void 0!==c&&nk({insertType:Ge,selectInside:!0,refJsonEditor:l,json:c,documentState:ke,readOnly:E,parser:re,onPatch:mi,onReplaceJson:Ur})}function Wn(Ge){$s(ke.selection)&&wt(Br(ke.selection.focusPath,!1)),ut(Ge)}function Si(Ge){if(!E&&ke.selection)if($g(ke.selection))try{var Dt=ke.selection.anchorPath,tn=Un(c,Dt),vn=function(Dn,li,Ei){if("array"===li){if(Array.isArray(Dn))return Dn;if(Ko(Dn))return noe(Dn);if("string"==typeof Dn)try{var Oi=Ei.parse(Dn);if(Array.isArray(Oi))return Oi;if(Ko(Oi))return noe(Oi)}catch{return[Dn]}return[Dn]}if("object"===li){if(Array.isArray(Dn))return toe(Dn);if(Ko(Dn))return Dn;if("string"==typeof Dn)try{var ns=Ei.parse(Dn);if(Ko(ns))return ns;if(Array.isArray(ns))return toe(ns)}catch{return{value:Dn}}return{value:Dn}}if("value"===li)return ss(Dn)?Ei.stringify(Dn):Dn;throw new Error("Cannot convert ".concat(jF(Dn,Ei)," to ").concat(li))}(tn,Ge,re);if(vn===tn)return;var Cn=[{op:"replace",path:An(Dt),value:vn}];r("handleConvert",{selection:ke.selection,path:Dt,type:Ge,operations:Cn}),mi(Cn,function(Dn,li){return{state:np(Dn,li,ke.selection.focusPath)}})}catch(Dn){ge(Dn)}else ge(new Error("Cannot convert current selection to ".concat(Ge)))}function Li(){var Ge=Goe(c,ke,!1),Dt=wr(ke.selection.focusPath);!fr(Ge.focusPath)&&Mr(Dt,wr(Ge.focusPath))?wt(uf(Ge.focusPath)):wt(cf(Dt)),r("insert before",{selection:ke.selection,selectionBefore:Ge,parentPath:Dt}),oc().then(Yl)}function Fi(){var Ge=io(ke.selection)?ii(ke.selection.paths):ke.selection.focusPath;r("insert after",Ge),wt(uf(Ge)),oc().then(Yl)}function Yr(Ge){return xo.apply(this,arguments)}function xo(){return(xo=Dr(Rn().mark(function Ge(Dt){return Rn().wrap(function(tn){for(;;)switch(tn.prev=tn.next){case 0:return tn.next=2,Zle({char:Dt,selectInside:!0,refJsonEditor:l,json:c,documentState:ke,readOnly:E,parser:re,onPatch:mi,onReplaceJson:Ur,onSelect:wt});case 2:case"end":return tn.stop()}},Ge)}))).apply(this,arguments)}function ji(){if(!E&&qr.getState().canUndo){var Ge=qr.undo();if(Ge){var Dt={json:c,text:u};e(10,c=Ge.undo.patch?Zu(c,Ge.undo.patch):Ge.undo.json),e(16,ke=Ge.undo.state),e(11,u=Ge.undo.text),e(23,Zn=Ge.undo.textIsRepaired),r("undo",{item:Ge,json:c,documentState:ke}),_i(Dt,{json:c,previousJson:Dt.json,redo:Ge.undo.patch,undo:Ge.redo.patch}),Qs(),ke.selection&&Fn(ke.selection.focusPath,!1)}}}function zr(){if(!E&&qr.getState().canRedo){var Ge=qr.redo();if(Ge){var Dt={json:c,text:u};e(10,c=Ge.redo.patch?Zu(c,Ge.redo.patch):Ge.redo.json),e(16,ke=Ge.redo.state),e(11,u=Ge.redo.text),e(23,Zn=Ge.redo.textIsRepaired),r("redo",{item:Ge,json:c,documentState:ke}),_i(Dt,{json:c,previousJson:Dt.json,redo:Ge.redo.patch,undo:Ge.undo.patch}),Qs(),ke.selection&&Fn(ke.selection.focusPath,!1)}}}function Ke(Ge){var Dt;E||void 0===c||(Ze=!0,ae({id:d,json:c,rootPath:Ge,onSort:(Dt=Dr(Rn().mark(function tn(vn){var Cn;return Rn().wrap(function(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:r("onSort",Ge,Cn=vn.operations),mi(Cn,function(li,Ei){return{state:_t(_t({},np(li,Ei,Ge)),{},{selection:Br(Ge,!1)})}});case 3:case"end":return Dn.stop()}},tn)})),function(tn){return Dt.apply(this,arguments)}),onClose:function(){Ze=!1,Qs()}}))}function qt(){ke.selection&&Ke(Yoe(c,ke.selection))}function hn(Ge){var tn=Ge.rootPath,vn=Ge.onTransform,Cn=Ge.onClose;void 0!==c&&tn&&(Ze=!0,Te({id:Ge.id||f,json:c,rootPath:tn,onTransform:vn?function(Dn){vn({operations:Dn,json:c,transformedJson:Zu(c,Dn)})}:function(Dn){r("onTransform",tn,Dn),mi(Dn,function(li,Ei){return{state:_t(_t({},np(li,Ei,tn)),{},{selection:Br(tn,!1)})}})},onClose:function(){Ze=!1,Qs(),Cn&&Cn()}}))}function kn(){ke.selection&&hn({rootPath:Yoe(c,ke.selection)})}function Fn(Ge){return ki.apply(this,arguments)}function ki(){return ki=Dr(Rn().mark(function Ge(Dt){var tn,vn,Cn,Dn,Ei=arguments;return Rn().wrap(function(Oi){for(;;)switch(Oi.prev=Oi.next){case 0:return tn=!(Ei.length>1&&void 0!==Ei[1])||Ei[1],e(16,ke=OO(c,ke,wr(Dt))),Oi.next=4,oc();case 4:if(!(vn=rr(Dt))){Oi.next=14;break}if(r("scrollTo",{path:Dt,elem:vn,refContents:s}),Cn=s.getBoundingClientRect(),Dn=vn.getBoundingClientRect(),tn){Oi.next=12;break}if(!(Dn.bottom>Cn.top&&Dn.toptn.bottom-20&&k(Dt,{container:s,offset:-(tn.height-Cn-20),duration:0})}}function _i(Ge,Dt){(void 0!==Ge.json||void 0!==Ge?.text)&&(void 0!==u?we({text:u,json:void 0},Ge,{contentErrors:Xr(),patchResult:Dt}):void 0!==c&&we({text:void 0,json:c},Ge,{contentErrors:Xr(),patchResult:Dt}))}function mi(Ge,Dt){if(!E)return r("handlePatch",Ge,Dt),Zr(Ge,Dt)}function Ur(Ge,Dt){var tn=ke,vn=c,Cn=u,Dn={json:c,text:u},li=Zn,Ei=cu(c,ke,[],sd),Oi="function"==typeof Dt?Dt(Ge,Ei):void 0;e(10,c=Oi&&void 0!==Oi.json?Oi.json:Ge),e(16,ke=Oi&&void 0!==Oi.state?Oi.state:Ei),e(11,u=void 0),e(23,Zn=!1),Ai(c),Vi({previousJson:vn,previousState:tn,previousText:Cn,previousTextIsRepaired:li}),_i(Dn,null)}function eo(Ge,Dt){r("handleChangeText");var tn=ke,vn=c,Cn=u,Dn={json:c,text:u},li=Zn;try{e(10,c=ce(Ge)),e(16,ke=cu(c,ke,[],sd)),e(11,u=void 0),e(23,Zn=!1)}catch{try{e(10,c=ce(Yh(Ge))),e(16,ke=cu(c,ke,[],sd)),e(11,u=Ge),e(23,Zn=!0)}catch{e(10,c=void 0),e(16,ke=N2({json:c,expand:sd})),e(11,u=Ge),e(23,Zn=!1)}}if("function"==typeof Dt){var Ei=Dt(c,ke);e(10,c=Ei&&Ei.json?Ei.json:c),e(16,ke=Ei&&Ei.state?Ei.state:ke)}Ai(c),Vi({previousJson:vn,previousState:tn,previousText:Cn,previousTextIsRepaired:li}),_i(Dn,null)}function ts(Ge,Dt){var tn=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r("expand",{path:Ge,expanded:Dt,recursive:tn}),e(16,ke=Dt?tn?cu(c,ke,Ge,Bb):function $We(t,n){return _t(_t({},t),{},{expandedMap:_t(_t({},t.expandedMap),{},rc({},An(n),!0))})}(ke,Ge):Roe(ke,Ge)),ke.selection&&!Dt&&function jWe(t,n){return s0(t.focusPath,n)&&(t.focusPath.length>n.length||ua(t))}(ke.selection,Ge)&&wt(void 0),setTimeout(function(){L2(l)||Qs()})}function Da(Ge){r("openFind",{findAndReplace:Ge}),e(19,Qe=!1),e(20,gt=!1),oc().then(function(){e(19,Qe=!0),e(20,gt=Ge)})}function bh(Ge,Dt){r("handleExpandSection",Ge,Dt);var Cn,Dn,li,tn=An(Ge);e(16,(Dn=tn,li=Dt,ke=_t(_t({},Cn=ke),{},{visibleSectionsMap:_t(_t({},Cn.visibleSectionsMap),{},rc({},Dn,Noe(R2(Cn,Dn).concat(li))))})))}function bu(Ge){r("pasted json as text",Ge),e(18,se=Ge)}function Ta(Ge){Ze=!0;var ns=m(YXe,{json:c,documentState:ke,parser:re,showTip:Ge.showTip,onEditKey:yo,onEditValue:Mo,onToggleEnforceString:da,onCut:Vr,onCopy:ll,onPaste:Hc,onRemove:lt,onDuplicate:ft,onExtract:Mt,onInsertBefore:Li,onInsert:Wn,onConvert:Si,onInsertAfter:Fi,onSort:qt,onTransform:kn,onCloseContextMenu:function(){w(ns),Qs()}},{left:Ge.left,top:Ge.top,offsetTop:Ge.offsetTop,offsetLeft:Ge.offsetLeft,width:Ge.width,height:Ge.height,anchor:Ge.anchor,closeOnOuterClick:!0,onClose:function(){Ze=!1,Qs()}})}function Yl(Ge){if(!E&&!ip(ke.selection)){if(Ge&&(Ge.stopPropagation(),Ge.preventDefault()),Ge&&"contextmenu"===Ge.type&&Ge.target!==a)Ta({left:Ge.clientX,top:Ge.clientY,width:260,height:336,showTip:!1});else{var Dt,tn=null===(Dt=s)||void 0===Dt?void 0:Dt.querySelector(".jse-context-menu-pointer.jse-selected");if(tn)Ta({anchor:tn,offsetTop:2,width:260,height:336,showTip:!1});else{var vn,Cn=null===(vn=s)||void 0===vn?void 0:vn.getBoundingClientRect();Cn&&Ta({top:Cn.top+2,left:Cn.left+2,width:260,height:336,showTip:!1})}}return!1}}function _h(){return(_h=Dr(Rn().mark(function Ge(){var Dt,tn,vn;return Rn().wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return r("apply pasted json",se),tn=(Dt=se).path,vn=Dt.contents,wt(Br(tn,!1)),Cn.next=5,oc();case 5:mi([{op:"replace",path:An(tn),value:vn}],function(Dn,li){return{state:np(Dn,li,tn)}});case 7:case"end":return Cn.stop()}},Ge)}))).apply(this,arguments)}function Qs(){r("focus"),a&&(a.focus(),a.select())}function wh(Ge){return Dt=c,tn=ke,Cn=wr(vn=Ge),Dn=[ii(vn)],(Ei=(li=Un(Dt,Cn))?BO(li,tn,Dn):void 0)?Br(Cn.concat(Ei),!1):uf(vn);var Dt,tn,vn,Cn,Dn,li,Ei}function xh(Ge){i&&i.onDrag(Ge)}function QD(){i&&i.onDragEnd()}return t.$$set=function(Ge){"readOnly"in Ge&&e(0,E=Ge.readOnly),"externalContent"in Ge&&e(50,L=Ge.externalContent),"mainMenuBar"in Ge&&e(1,B=Ge.mainMenuBar),"navigationBar"in Ge&&e(2,G=Ge.navigationBar),"escapeControlCharacters"in Ge&&e(51,oe=Ge.escapeControlCharacters),"escapeUnicodeCharacters"in Ge&&e(52,fe=Ge.escapeUnicodeCharacters),"parser"in Ge&&e(3,re=Ge.parser),"parseMemoizeOne"in Ge&&e(53,ce=Ge.parseMemoizeOne),"validator"in Ge&&e(54,ue=Ge.validator),"validationParser"in Ge&&e(55,pe=Ge.validationParser),"pathParser"in Ge&&e(4,De=Ge.pathParser),"indentation"in Ge&&e(5,ie=Ge.indentation),"onError"in Ge&&e(6,ge=Ge.onError),"onChange"in Ge&&e(56,we=Ge.onChange),"onChangeMode"in Ge&&e(57,le=Ge.onChangeMode),"onRenderValue"in Ge&&e(58,Fe=Ge.onRenderValue),"onRenderMenu"in Ge&&e(7,z=Ge.onRenderMenu),"onClassName"in Ge&&e(59,Q=Ge.onClassName),"onFocus"in Ge&&e(60,Z=Ge.onFocus),"onBlur"in Ge&&e(61,me=Ge.onBlur),"onSortModal"in Ge&&e(62,ae=Ge.onSortModal),"onTransformModal"in Ge&&e(63,Te=Ge.onTransformModal),"onJSONEditorModal"in Ge&&e(64,Oe=Ge.onJSONEditorModal)},t.$$.update=function(){var Ge,Dt;3145728&t.$$.dirty[1]&&e(73,Ct=kO({escapeControlCharacters:oe,escapeUnicodeCharacters:fe})),524288&t.$$.dirty[1]&&function Pt(Ge){void 0!==Ge.json&&function(Dt){if(void 0!==Dt){var tn=!Mr(c,Dt);if(r("update external json",{isChanged:tn,currentlyText:void 0===c}),tn){var vn={json:c,text:u},Cn=ke,Dn=c,li=u,Ei=Zn;e(10,c=Dt),ei(c),e(11,u=void 0),e(23,Zn=!1),Ai(c),Vi({previousJson:Dn,previousState:Cn,previousText:li,previousTextIsRepaired:Ei}),_i(vn,null)}}}(Ge.json),void 0!==Ge.text&&function(Dt){if(void 0!==Dt&&void 0===L.json){var tn=Dt!==u;if(r("update external text",{isChanged:tn}),tn){var vn={json:c,text:u},Cn=c,Dn=ke,li=u,Ei=Zn;try{e(10,c=ce(Dt)),ei(c),e(11,u=Dt),e(23,Zn=!1),Ve=void 0}catch(Oi){try{e(10,c=ce(Yh(Dt))),ei(c),e(11,u=Dt),e(23,Zn=!0),Ve=void 0,Ai(c)}catch{e(10,c=void 0),e(11,u=L.text),e(23,Zn=!1),Ve=M2(u,Oi.message||Oi.toString())}}Ai(c),Vi({previousJson:Cn,previousState:Dn,previousText:li,previousTextIsRepaired:Ei}),_i(vn,null)}}}(Ge.text)}(L),1024&t.$$.dirty[0]|4096&t.$$.dirty[2]&&es(zt,c),1032&t.$$.dirty[0]|25165824&t.$$.dirty[1]&&ir(c,ue,re,pe),4096&t.$$.dirty[0]&&e(24,(Dt={},(Ge=Ut).forEach(function(tn){Dt[An(tn.path)]=tn}),Ge.forEach(function(tn){for(var vn=tn.path;vn.length>0;){var Cn=An(vn=wr(vn));Cn in Dt||(Dt[Cn]={isChildError:!0,path:vn,message:"Contains invalid data",severity:Xh.warning})}}),er=Dt)),512&t.$$.dirty[0]&&(i=s?function(Ge){var Dt,tn;function vn(Ei){return Ei<20?200:Ei<50?400:1200}function Cn(){Ge&&(Ge.scrollTop+=.05*(Dt||0))}function Dn(Ei){tn&&Ei===Dt||(li(),rN("startAutoScroll",Ei),Dt=Ei,tn=setInterval(Cn,50))}function li(){tn&&(rN("stopAutoScroll"),clearInterval(tn),tn=void 0,Dt=void 0)}return rN("createAutoScrollHandler",Ge),{onDrag:function(Ei){if(Ge){var Oi=Ei.clientY,ns=Ge.getBoundingClientRect(),Zs=ns.top,ms=ns.bottom;Oims?Dn(vn(Oi-ms)):li()}},onDragEnd:function(){li()}}}(s):void 0),9&t.$$.dirty[0]|402653184&t.$$.dirty[1]|2048&t.$$.dirty[2]&&e(13,vo={readOnly:E,parser:re,normalization:Ct,getJson:Ho,getDocumentState:gs,findElement:rr,findNextInside:wh,focus:Qs,onPatch:mi,onInsert:ut,onExpand:ts,onSelect:wt,onFind:Da,onExpandSection:bh,onPasteJson:bu,onRenderValue:Fe,onContextMenu:Ta,onClassName:Q||function(){},onDrag:xh,onDragEnd:QD}),8192&t.$$.dirty[0]&&r("context changed",vo)},[E,B,G,re,De,ie,ge,z,function(){return Zn&&void 0!==c&&Ur(c),{json:c,text:u}},s,c,u,Ut,vo,a,l,ke,ct,se,Qe,gt,rt,oo,Zn,er,o,Qt,function(){return Mi.apply(this,arguments)},function(){return Sn.apply(this,arguments)},function(Ge,Dt){return nr.apply(this,arguments)},function(Ge,Dt){return On.apply(this,arguments)},function(){e(19,Qe=!1),e(20,gt=!1),Qt(""),Qs()},function(Ge){r("select validation error",Ge),wt(Br(Ge.path,!1)),Fn(Ge.path)},ll,function(Ge){Ge.preventDefault(),Jle({clipboardText:Ge.clipboardData.getData("text/plain"),json:c,documentState:ke,readOnly:E,parser:re,onPatch:mi,onChangeText:eo,openRepairModal:Ue})},ji,zr,function(){Ke([])},function(){hn({rootPath:[]})},function(){ts([],!0,!0)},function(){ts([],!1,!0)},function(Ge){var Dt=tp(Ge),tn=Ge.shiftKey;if(r("keydown",{combo:Dt,key:Ge.key}),"Ctrl+X"===Dt&&(Ge.preventDefault(),Vr(!0)),"Ctrl+Shift+X"===Dt&&(Ge.preventDefault(),Vr(!1)),"Ctrl+C"===Dt&&(Ge.preventDefault(),ll(!0)),"Ctrl+Shift+C"===Dt&&(Ge.preventDefault(),ll(!1)),"Ctrl+D"===Dt&&(Ge.preventDefault(),ft()),"Delete"!==Dt&&"Backspace"!==Dt||(Ge.preventDefault(),lt()),"Insert"===Dt&&(Ge.preventDefault(),ut("structure")),"Ctrl+A"===Dt&&(Ge.preventDefault(),wt(Br([],!1))),"Ctrl+Q"===Dt&&Yl(Ge),"ArrowUp"===Dt||"Shift+ArrowUp"===Dt){Ge.preventDefault();var vn=ke.selection?Goe(c,ke,tn,!0)||ke.selection:r0(c,ke);wt(vn),ai(vn.focusPath)}if("ArrowDown"===Dt||"Shift+ArrowDown"===Dt){Ge.preventDefault();var Cn=ke.selection?function(Vo,Kl){var xd=arguments.length>2&&void 0!==arguments[2]&&arguments[2],to=Kl.selection;if(!to)return null;var dc=arguments.length>3&&void 0!==arguments[3]&&arguments[3]||!io(to)?to.focusPath:ii(to.paths),_u=BO(Vo,Kl,dc),Sh=_u,Cd=_u;if(null===_u||null==Sh||null==Cd)return null;if(xd){var kh=BO(Vo,ss(Un(Vo,dc))?Roe(Kl,dc):Kl,dc);return null===kh?null:ih(to)?Ks(Vo,kh,kh):ua(to)?Ks(Vo,Sh,Cd):Ks(Vo,to.anchorPath,kh)}if($s(to)){var H_=Un(Vo,wr(_u));return Array.isArray(H_)?Br(Cd,!1):uu(Cd,!1)}return xr(to)?Br(Cd,!1):ua(to)?Ks(Vo,Sh,Cd):Ks(Vo,_u,_u)}(c,ke,tn,!0)||ke.selection:r0(c,ke);wt(Cn),ai(Cn.focusPath)}if("ArrowLeft"===Dt||"Shift+ArrowLeft"===Dt){Ge.preventDefault();var Dn=ke.selection?function(Vo,Kl){var xd=arguments.length>2&&void 0!==arguments[2]&&arguments[2],to=Kl.selection;if(!to)return null;var dc=qoe(Vo,Kl,!(arguments.length>3&&void 0!==arguments[3])||arguments[3]),_u=dc.caret,Sh=dc.previous;if(xd)return io(to)?null:Ks(Vo,to.anchorPath,to.focusPath);if(_u&&Sh)return HO(Sh);var kh=Un(Vo,wr(to.focusPath));return xr(to)&&Array.isArray(kh)?Ks(Vo,to.focusPath,to.focusPath):io(to)&&!Array.isArray(kh)?uu(to.focusPath,!1):null}(c,ke,tn,!E)||ke.selection:r0(c,ke);wt(Dn),ai(Dn.focusPath)}if("ArrowRight"===Dt||"Shift+ArrowRight"===Dt){Ge.preventDefault();var li=ke.selection&&void 0!==c?function(Vo,Kl){var xd=arguments.length>2&&void 0!==arguments[2]&&arguments[2],to=Kl.selection;if(!to)return null;var dc=qoe(Vo,Kl,!(arguments.length>3&&void 0!==arguments[3])||arguments[3]),_u=dc.caret,Sh=dc.next;return xd?io(to)?null:Ks(Vo,to.anchorPath,to.focusPath):_u&&Sh?HO(Sh):io(to)?Br(to.focusPath,!1):null}(c,ke,tn,!E)||ke.selection:r0(c,ke);wt(li),ai(li.focusPath)}if("Enter"===Dt&&ke.selection){if(!E&&io(ke.selection)&&1===ke.selection.paths.length){var Ei=ke.selection.focusPath,Oi=Un(c,wr(Ei));Array.isArray(Oi)&&wt(Br(Ei,!1))}!E&&$s(ke.selection)&&(Ge.preventDefault(),wt(_t(_t({},ke.selection),{},{edit:!0}))),xr(ke.selection)&&(Ge.preventDefault(),ss(Un(c,ke.selection.focusPath))?ts(ke.selection.focusPath,!0):E||wt(_t(_t({},ke.selection),{},{edit:!0})))}if(1===Dt.replace(/^Shift\+/,"").length&&ke.selection)return Ge.preventDefault(),void Yr(Ge.key);if("Enter"===Dt&&(ih(ke.selection)||ua(ke.selection)))return Ge.preventDefault(),void Yr("");if("Ctrl+Enter"===Dt&&xr(ke.selection)){var ns=Un(c,ke.selection.focusPath);jS(ns)&&window.open(String(ns),"_blank")}if("Escape"===Dt&&ke.selection&&(Ge.preventDefault(),wt(void 0)),"Ctrl+F"===Dt&&(Ge.preventDefault(),Da(!1)),"Ctrl+H"===Dt&&(Ge.preventDefault(),Da(!0)),"Ctrl+Z"===Dt){Ge.preventDefault();var Zs=document.activeElement;Zs&&Zs.blur&&Zs.focus?(Zs.blur(),setTimeout(function(){ji(),setTimeout(function(){return Zs.select()})})):ji()}if("Ctrl+Shift+Z"===Dt){Ge.preventDefault();var ms=document.activeElement;ms&&ms.blur&&ms.focus?(ms.blur(),setTimeout(function(){zr(),setTimeout(function(){return ms.select()})})):zr()}},function(Ge){r("handleMouseDown",Ge),setTimeout(function(){setTimeout(function(){C||voe(Ge.target,"BUTTON")||(Qs(),ke.selection||void 0!==c||""!==u&&void 0!==u||(r("createDefaultSelection"),e(16,ke=_t(_t({},ke),{},{selection:Ks(c||{},[],[])}))))})})},Yl,function(Ge){E||Ta({anchor:boe(Ge.target,"BUTTON"),offsetTop:0,width:260,height:336,showTip:!0})},function(){return _h.apply(this,arguments)},function(){r("clear pasted json"),e(18,se=void 0)},function(){le(Za.text)},function(Ge){wt(Ge),Qs(),Fn(Ge.focusPath)},function(Ge){!Ob(Ge.target,function(tn){return tn===l})&&ip(ke.selection)&&(r("click outside the editor, stop edit mode"),wt(function(tn){return $s(tn)||xr(tn)?_t(_t({},tn),{},{edit:!1}):tn}),C&&a&&(a.focus(),a.blur()),oc().then(function(){setTimeout(function(){a&&a.blur()})}))},L,oe,fe,ce,ue,pe,we,le,Fe,Q,Z,me,ae,Te,Oe,function(){var Ge=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Bb;r("expand");var Dt=_t(_t({},ke),{},{expandedMap:{},visibleSectionsMap:{}});e(16,ke=cu(c,Dt,[],Ge))},Xr,Ho,Zr,hn,Fn,rr,Qs,Ct,zt,function(Ge){e(19,Qe=Ge)},function(Ge){dr[Ge?"unshift":"push"](function(){e(14,a=Ge)})},function(Ge){dr[Ge?"unshift":"push"](function(){e(9,s=Ge)})},function(Ge){dr[Ge?"unshift":"push"](function(){e(15,l=Ge)})}]}var xN=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,YKe,XKe,Zi,{readOnly:0,externalContent:50,mainMenuBar:1,navigationBar:2,escapeControlCharacters:51,escapeUnicodeCharacters:52,parser:3,parseMemoizeOne:53,validator:54,validationParser:55,pathParser:4,indentation:5,onError:6,onChange:56,onChangeMode:57,onRenderValue:58,onRenderMenu:7,onClassName:59,onFocus:60,onBlur:61,onSortModal:62,onTransformModal:63,onJSONEditorModal:64,expand:65,validate:66,getJson:67,patch:68,acceptAutoRepair:8,openTransformModal:69,scrollTo:70,findElement:71,focus:72},HKe,[-1,-1,-1,-1,-1]),r}return Xe(e,[{key:"expand",get:function(){return this.$$.ctx[65]}},{key:"validate",get:function(){return this.$$.ctx[66]}},{key:"getJson",get:function(){return this.$$.ctx[67]}},{key:"patch",get:function(){return this.$$.ctx[68]}},{key:"acceptAutoRepair",get:function(){return this.$$.ctx[8]}},{key:"openTransformModal",get:function(){return this.$$.ctx[69]}},{key:"scrollTo",get:function(){return this.$$.ctx[70]}},{key:"findElement",get:function(){return this.$$.ctx[71]}},{key:"focus",get:function(){return this.$$.ctx[72]}}]),e}();function KKe(t){Ni(t,"svelte-107mggt",".jse-modal.svelte-107mggt.svelte-107mggt{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-107mggt .jse-modal-contents.svelte-107mggt{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions.svelte-107mggt{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column;color:inherit;min-height:0;padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents.svelte-107mggt{flex:1;display:flex;gap:calc(2 * var(--jse-padding));min-height:0;box-sizing:border-box;padding:0 calc(2 * var(--jse-padding)) var(--jse-padding)}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p{margin:var(--jse-padding) 0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p:first-child{margin-top:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p:last-child{margin-bottom:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt code{background:var(--jse-modal-code-background);font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono)}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents textarea.jse-query.svelte-107mggt{flex:1;outline:none;resize:vertical}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column;gap:calc(2 * var(--jse-padding))}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-original-data.svelte-107mggt{flex:1;display:flex;flex-direction:column;min-height:0;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-original-data.jse-hide.svelte-107mggt{flex:none}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-preview-data.svelte-107mggt{flex:1;display:flex;flex-direction:column;min-height:0;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.jse-hide-original-data.svelte-107mggt{flex-direction:column;gap:0;margin-bottom:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-actions.svelte-107mggt{padding:var(--jse-padding) calc(2 * var(--jse-padding)) calc(2 * var(--jse-padding))}@media screen and (max-width: 1200px){.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents.svelte-107mggt{flex-direction:column;overflow:auto}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents textarea.jse-query.svelte-107mggt{min-height:150px;flex:none}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.svelte-107mggt .jse-tree-mode{height:300px;flex:none}}.jse-modal.jse-transform.svelte-107mggt .jse-label.svelte-107mggt{font-weight:bold;display:block;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-label .jse-label-inner.svelte-107mggt{margin-top:calc(2 * var(--jse-padding));margin-bottom:calc(0.5 * var(--jse-padding));box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-label .jse-label-inner button.svelte-107mggt{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;font-weight:bold;padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-tree-mode{flex:1;background:var(--jse-input-background-readonly);box-shadow:none;box-sizing:border-box;--jse-main-border:var(--jse-input-border)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt{border:var(--jse-input-border);outline:none;box-sizing:border-box;padding:calc(0.5 * var(--jse-padding));font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:inherit;background:var(--jse-input-background)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt:focus,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt:focus{border:var(--jse-input-border-focus)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt:read-only,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt:read-only{background:var(--jse-input-background-readonly)}.jse-modal.jse-transform.svelte-107mggt .jse-preview.jse-error.svelte-107mggt{flex:1;background:var(--jse-input-background-readonly);border:var(--jse-input-border);color:var(--jse-error-color);padding:calc(0.5 * var(--jse-padding))}.jse-modal.jse-transform.svelte-107mggt a{color:var(--jse-a-color)}.jse-modal.jse-transform.svelte-107mggt a:hover{color:var(--jse-a-color-highlight)}")}function oce(t){var n,e,i,r,o,s=[QKe,JKe],a=[];function l(c,u){return 16384&u[0]&&(n=null),null==n&&(n=!!Array.isArray(c[14])),n?0:1}return e=l(t,[-1,-1]),i=a[e]=s[e](t),{c:function(){i.c(),r=Wr()},m:function(c,u){a[e].m(c,u),nt(c,r,u),o=!0},p:function(c,u){var h=e;(e=l(c,u))===h?a[e].p(c,u):(cn(),Ee(a[h],1,1,function(){a[h]=null}),un(),(i=a[e])?i.p(c,u):(i=a[e]=s[e](c)).c(),_e(i,1),i.m(r.parentNode,r))},i:function(c){o||(_e(i),o=!0)},o:function(c){Ee(i),o=!1},d:function(c){a[e].d(c),c&&tt(r)}}}function JKe(t){var n;return{c:function(){n=xn("(Only available for arrays, not for objects)")},m:function(e,i){nt(e,n,i)},p:an,i:an,o:an,d:function(e){e&&tt(n)}}}function QKe(t){var n,e;return n=new Cqe({props:{queryOptions:t[12],json:t[14],onChange:t[22]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};4096&r[0]&&(o.queryOptions=i[12]),16384&r[0]&&(o.json=i[14]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function sce(t){var n,e;return n=new xN({props:{externalContent:t[19],readOnly:!0,mainMenuBar:!1,navigationBar:!1,indentation:t[2],escapeControlCharacters:t[3],escapeUnicodeCharacters:t[4],parser:t[5],parseMemoizeOne:t[6],onRenderValue:t[10],onRenderMenu:Ro,onError:console.error,onChange:Ro,onChangeMode:Ro,onFocus:Ro,onBlur:Ro,onSortModal:Ro,onTransformModal:Ro,onJSONEditorModal:Ro,onClassName:t[11],validator:null,validationParser:t[7],pathParser:t[8]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};524288&r[0]&&(o.externalContent=i[19]),4&r[0]&&(o.indentation=i[2]),8&r[0]&&(o.escapeControlCharacters=i[3]),16&r[0]&&(o.escapeUnicodeCharacters=i[4]),32&r[0]&&(o.parser=i[5]),64&r[0]&&(o.parseMemoizeOne=i[6]),1024&r[0]&&(o.onRenderValue=i[10]),2048&r[0]&&(o.onClassName=i[11]),128&r[0]&&(o.validationParser=i[7]),256&r[0]&&(o.pathParser=i[8]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function ZKe(t){var n,e;return{c:function(){n=Be("div"),e=xn(t[17]),ne(n,"class","jse-preview jse-error svelte-107mggt")},m:function(i,r){nt(i,n,r),Ie(n,e)},p:function(i,r){131072&r[0]&&gi(e,i[17])},i:an,o:an,d:function(i){i&&tt(n)}}}function eJe(t){var n,e;return n=new xN({props:{externalContent:t[18],readOnly:!0,mainMenuBar:!1,navigationBar:!1,indentation:t[2],escapeControlCharacters:t[3],escapeUnicodeCharacters:t[4],parser:t[5],parseMemoizeOne:t[6],onRenderValue:t[10],onRenderMenu:Ro,onError:console.error,onChange:Ro,onChangeMode:Ro,onFocus:Ro,onBlur:Ro,onSortModal:Ro,onTransformModal:Ro,onJSONEditorModal:Ro,onClassName:t[11],validator:null,validationParser:t[7],pathParser:t[8]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};262144&r[0]&&(o.externalContent=i[18]),4&r[0]&&(o.indentation=i[2]),8&r[0]&&(o.escapeControlCharacters=i[3]),16&r[0]&&(o.escapeUnicodeCharacters=i[4]),32&r[0]&&(o.parser=i[5]),64&r[0]&&(o.parseMemoizeOne=i[6]),1024&r[0]&&(o.onRenderValue=i[10]),2048&r[0]&&(o.onClassName=i[11]),128&r[0]&&(o.validationParser=i[7]),256&r[0]&&(o.pathParser=i[8]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function tJe(t){var n,e,i,r,o,s,a,l,c,u,h,d,f,p,m,w,C,k,E,L,B,G,oe,fe,re,ce,ue,pe,De,ie,ge,we,le,Fe,z,Q,Z,me,ae,Te,Oe,Ze,Ve,wt,ct,Ct,se,Se=t[21](t[0]).description+"";n=new Lqe({props:{queryLanguages:t[9],queryLanguageId:t[0],onChangeQueryLanguage:t[27]}}),k=new Ir({props:{data:t[15]?hu:rp}});var ke=t[15]&&oce(t);ge=new Ir({props:{data:t[16]?hu:rp}});var Qe=t[16]&&sce(t),gt=[eJe,ZKe],rt=[];function zt(Qt,Pn){return Qt[17]?1:0}return me=zt(t),ae=rt[me]=gt[me](t),{c:function(){$t(n.$$.fragment),e=xt(),i=Be("div"),r=Be("div"),o=Be("div"),(s=Be("div")).innerHTML='
    Language
    ',a=xt(),l=Be("div"),c=xt(),(u=Be("div")).innerHTML='
    Path
    ',h=xt(),d=Be("input"),p=xt(),m=Be("div"),w=Be("div"),C=Be("button"),$t(k.$$.fragment),E=xn("\n Wizard"),L=xt(),ke&&ke.c(),B=xt(),(G=Be("div")).innerHTML='
    Query
    ',oe=xt(),fe=Be("textarea"),re=xt(),ce=Be("div"),ue=Be("div"),pe=Be("div"),De=Be("div"),ie=Be("button"),$t(ge.$$.fragment),we=xn("\n Original"),le=xt(),Qe&&Qe.c(),Fe=xt(),z=Be("div"),(Q=Be("div")).innerHTML='
    Preview
    ',Z=xt(),ae.c(),Te=xt(),Oe=Be("div"),Ze=Be("button"),Ve=xn("Transform"),ne(s,"class","jse-label svelte-107mggt"),ne(l,"class","jse-description svelte-107mggt"),ne(u,"class","jse-label svelte-107mggt"),ne(d,"class","jse-path svelte-107mggt"),ne(d,"type","text"),d.readOnly=!0,ne(d,"title","Selected path"),d.value=f=fr(t[1])?"(whole document)":lu(lc(t[1])),ne(C,"type","button"),ne(C,"class","svelte-107mggt"),ne(w,"class","jse-label-inner svelte-107mggt"),ne(m,"class","jse-label svelte-107mggt"),ne(G,"class","jse-label svelte-107mggt"),ne(fe,"class","jse-query svelte-107mggt"),ne(fe,"spellcheck","false"),fe.value=t[13],ne(o,"class","jse-query-contents svelte-107mggt"),ne(ie,"type","button"),ne(ie,"class","svelte-107mggt"),ne(De,"class","jse-label-inner svelte-107mggt"),ne(pe,"class","jse-label svelte-107mggt"),ne(ue,"class","jse-original-data svelte-107mggt"),en(ue,"jse-hide",!t[16]),ne(Q,"class","jse-label svelte-107mggt"),ne(z,"class","jse-preview-data svelte-107mggt"),ne(ce,"class","jse-data-contents svelte-107mggt"),en(ce,"jse-hide-original-data",!t[16]),ne(r,"class","jse-main-contents svelte-107mggt"),ne(Ze,"type","button"),ne(Ze,"class","jse-primary svelte-107mggt"),Ze.disabled=wt=!!t[17],ne(Oe,"class","jse-actions svelte-107mggt"),ne(i,"class","jse-modal-contents svelte-107mggt")},m:function(Qt,Pn){Nt(n,Qt,Pn),nt(Qt,e,Pn),nt(Qt,i,Pn),Ie(i,r),Ie(r,o),Ie(o,s),Ie(o,a),Ie(o,l),l.innerHTML=Se,Ie(o,c),Ie(o,u),Ie(o,h),Ie(o,d),Ie(o,p),Ie(o,m),Ie(m,w),Ie(w,C),Nt(k,C,null),Ie(C,E),Ie(o,L),ke&&ke.m(o,null),Ie(o,B),Ie(o,G),Ie(o,oe),Ie(o,fe),Ie(r,re),Ie(r,ce),Ie(ce,ue),Ie(ue,pe),Ie(pe,De),Ie(De,ie),Nt(ge,ie,null),Ie(ie,we),Ie(ue,le),Qe&&Qe.m(ue,null),Ie(ce,Fe),Ie(ce,z),Ie(z,Q),Ie(z,Z),rt[me].m(z,null),Ie(i,Te),Ie(i,Oe),Ie(Oe,Ze),Ie(Ze,Ve),ct=!0,Ct||(se=[rn(C,"click",t[25]),rn(fe,"input",t[23]),rn(ie,"click",t[26]),rn(Ze,"click",t[24]),Ra(iJe.call(null,Ze))],Ct=!0)},p:function(Qt,Pn){var Mi={};512&Pn[0]&&(Mi.queryLanguages=Qt[9]),1&Pn[0]&&(Mi.queryLanguageId=Qt[0]),n.$set(Mi),(!ct||1&Pn[0])&&Se!==(Se=Qt[21](Qt[0]).description+"")&&(l.innerHTML=Se),(!ct||2&Pn[0]&&f!==(f=fr(Qt[1])?"(whole document)":lu(lc(Qt[1])))&&d.value!==f)&&(d.value=f);var Sn={};32768&Pn[0]&&(Sn.data=Qt[15]?hu:rp),k.$set(Sn),Qt[15]?ke?(ke.p(Qt,Pn),32768&Pn[0]&&_e(ke,1)):((ke=oce(Qt)).c(),_e(ke,1),ke.m(o,B)):ke&&(cn(),Ee(ke,1,1,function(){ke=null}),un()),(!ct||8192&Pn[0])&&(fe.value=Qt[13]);var nr={};65536&Pn[0]&&(nr.data=Qt[16]?hu:rp),ge.$set(nr),Qt[16]?Qe?(Qe.p(Qt,Pn),65536&Pn[0]&&_e(Qe,1)):((Qe=sce(Qt)).c(),_e(Qe,1),Qe.m(ue,null)):Qe&&(cn(),Ee(Qe,1,1,function(){Qe=null}),un()),(!ct||65536&Pn[0])&&en(ue,"jse-hide",!Qt[16]);var On=me;(me=zt(Qt))===On?rt[me].p(Qt,Pn):(cn(),Ee(rt[On],1,1,function(){rt[On]=null}),un(),(ae=rt[me])?ae.p(Qt,Pn):(ae=rt[me]=gt[me](Qt)).c(),_e(ae,1),ae.m(z,null)),(!ct||65536&Pn[0])&&en(ce,"jse-hide-original-data",!Qt[16]),(!ct||131072&Pn[0]&&wt!==(wt=!!Qt[17]))&&(Ze.disabled=wt)},i:function(Qt){ct||(_e(n.$$.fragment,Qt),_e(k.$$.fragment,Qt),_e(ke),_e(ge.$$.fragment,Qt),_e(Qe),_e(ae),ct=!0)},o:function(Qt){Ee(n.$$.fragment,Qt),Ee(k.$$.fragment,Qt),Ee(ke),Ee(ge.$$.fragment,Qt),Ee(Qe),Ee(ae),ct=!1},d:function(Qt){Rt(n,Qt),Qt&&tt(e),Qt&&tt(i),Rt(k),ke&&ke.d(),Rt(ge),Qe&&Qe.d(),rt[me].d(),Ct=!1,Fo(se)}}}function nJe(t){var n,e,i,r,o;return e=new koe({props:{$$slots:{default:[tJe]},$$scope:{ctx:t}}}),{c:function(){n=Be("div"),$t(e.$$.fragment),ne(n,"class","jse-modal jse-transform svelte-107mggt")},m:function(s,a){nt(s,n,a),Nt(e,n,null),i=!0,r||(o=Ra(tk.call(null,n,t[20])),r=!0)},p:function(s,a){var l={};1048575&a[0]|256&a[1]&&(l.$$scope={dirty:a,ctx:s}),e.$set(l)},i:function(s){i||(_e(e.$$.fragment,s),i=!0)},o:function(s){Ee(e.$$.fragment,s),i=!1},d:function(s){s&&tt(n),Rt(e),r=!1,o()}}}function iJe(t){t.focus()}function rJe(t,n,e){var i,r,o=Pa("jsoneditor:TransformModal"),s=n.id,a=void 0===s?"transform-modal-"+hb():s,l=n.json,c=n.rootPath,u=void 0===c?[]:c,h=n.indentation,d=n.escapeControlCharacters,f=n.escapeUnicodeCharacters,p=n.parser,m=n.parseMemoizeOne,w=n.validationParser,C=n.pathParser,k=n.queryLanguages,E=n.queryLanguageId,L=n.onChangeQueryLanguage,B=n.onRenderValue,G=n.onClassName,oe=n.onTransform,fe=$a("simple-modal").close,re="".concat(a,":").concat(An(u)),ce=rh[re]||{},ue=!1!==rh.showWizard,pe=!1!==rh.showOriginal,De=ce.queryOptions||{},ie=E===ce.queryLanguageId&&ce.query?ce.query:Fe(E).createQuery(l,ce.queryOptions||{}),ge=ce.isManual||!1,we=void 0,le={text:""};function Fe(Q){return k.find(function(Z){return Z.id===Q})||k[0]}var z=Uv(function(Q,Z){try{o("previewTransform",{query:Z});var me=Fe(E).executeQuery(Q,Z,p);e(18,le={json:me}),e(17,we=void 0)}catch(ae){e(18,le={text:""}),e(17,we=ae.toString())}},300);return t.$$set=function(Q){"id"in Q&&e(28,a=Q.id),"json"in Q&&e(29,l=Q.json),"rootPath"in Q&&e(1,u=Q.rootPath),"indentation"in Q&&e(2,h=Q.indentation),"escapeControlCharacters"in Q&&e(3,d=Q.escapeControlCharacters),"escapeUnicodeCharacters"in Q&&e(4,f=Q.escapeUnicodeCharacters),"parser"in Q&&e(5,p=Q.parser),"parseMemoizeOne"in Q&&e(6,m=Q.parseMemoizeOne),"validationParser"in Q&&e(7,w=Q.validationParser),"pathParser"in Q&&e(8,C=Q.pathParser),"queryLanguages"in Q&&e(9,k=Q.queryLanguages),"queryLanguageId"in Q&&e(0,E=Q.queryLanguageId),"onChangeQueryLanguage"in Q&&e(30,L=Q.onChangeQueryLanguage),"onRenderValue"in Q&&e(10,B=Q.onRenderValue),"onClassName"in Q&&e(11,G=Q.onClassName),"onTransform"in Q&&e(31,oe=Q.onTransform)},t.$$.update=function(){536870914&t.$$.dirty[0]&&e(14,i=Un(l,u)),16384&t.$$.dirty[0]&&e(19,r={json:i}),24576&t.$$.dirty[0]&&z(i,ie),12289&t.$$.dirty[0]|6&t.$$.dirty[1]&&(e(32,rh[re]={queryOptions:De,query:ie,queryLanguageId:E,isManual:ge},rh),o("store state in memory",re,rh[re]))},[E,u,h,d,f,p,m,w,C,k,B,G,De,ie,i,ue,pe,we,le,r,fe,Fe,function(Q){e(12,De=Q),e(13,ie=Fe(E).createQuery(l,Q)),e(33,ge=!1),o("updateQueryByWizard",{queryOptions:De,query:ie,isManual:ge})},function(Q){e(13,ie=Q.target.value),e(33,ge=!0),o("handleChangeQuery",{query:ie,isManual:ge})},function(){try{o("handleTransform",{query:ie});var Q=Fe(E).executeQuery(i,ie,p);oe([{op:"replace",path:An(u),value:Q}]),fe()}catch(Z){console.error(Z),e(18,le={text:""}),e(17,we=Z.toString())}},function(){e(15,ue=!ue),e(32,rh.showWizard=ue,rh)},function(){e(16,pe=!pe),e(32,rh.showOriginal=pe,rh)},function(Q){o("handleChangeQueryLanguage",Q),e(0,E=Q),L(Q);var Z=Fe(E);e(13,ie=Z.createQuery(l,De)),e(33,ge=!1)},a,l,L,oe,rh,ge]}var oJe=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,rJe,nJe,Zi,{id:28,json:29,rootPath:1,indentation:2,escapeControlCharacters:3,escapeUnicodeCharacters:4,parser:5,parseMemoizeOne:6,validationParser:7,pathParser:8,queryLanguages:9,queryLanguageId:0,onChangeQueryLanguage:30,onRenderValue:10,onClassName:11,onTransform:31},KKe,[-1,-1]),r}return Xe(e)}(),up={};function sJe(t){Ni(t,"svelte-1y818v2",".jse-modal.svelte-1y818v2.svelte-1y818v2{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-1y818v2 .jse-modal-contents.svelte-1y818v2{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions.svelte-1y818v2{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-sort.svelte-1y818v2 table.svelte-1y818v2{width:100%;border-collapse:collapse;border-spacing:0}.jse-modal.jse-sort.svelte-1y818v2 table th.svelte-1y818v2,.jse-modal.jse-sort.svelte-1y818v2 table td.svelte-1y818v2{text-align:left;vertical-align:middle;font-weight:normal;padding-bottom:var(--jse-padding)}.jse-modal.jse-sort.svelte-1y818v2 table th input.jse-path.svelte-1y818v2,.jse-modal.jse-sort.svelte-1y818v2 table td input.jse-path.svelte-1y818v2{width:100%;box-sizing:border-box;padding:6px 16px;border:var(--jse-input-border);border-radius:var(--jse-input-radius);font-family:inherit;font-size:inherit;background:inherit;color:inherit;outline:none}.jse-modal.jse-sort.svelte-1y818v2 table th input.jse-path.svelte-1y818v2:read-only,.jse-modal.jse-sort.svelte-1y818v2 table td input.jse-path.svelte-1y818v2:read-only{background:var(--jse-input-background-readonly)}.jse-modal.jse-sort.svelte-1y818v2 table th.svelte-1y818v2 .svelte-select input,.jse-modal.jse-sort.svelte-1y818v2 table td.svelte-1y818v2 .svelte-select input{box-sizing:border-box}.jse-modal.jse-sort.svelte-1y818v2 .jse-space.svelte-1y818v2{height:200px}.jse-modal.jse-sort.svelte-1y818v2 .jse-space .jse-error.svelte-1y818v2{color:var(--jse-error-color)}")}function lce(t){var n,e,i,r,o,s,a;function l(u){t[14](u)}var c={showChevron:!0,items:t[3]};return void 0!==t[1]&&(c.value=t[1]),o=new Vg({props:c}),dr.push(function(){return Xu(o,"value",l)}),{c:function(){n=Be("tr"),(e=Be("th")).textContent="Property",i=xt(),r=Be("td"),$t(o.$$.fragment),ne(e,"class","svelte-1y818v2"),ne(r,"class","svelte-1y818v2")},m:function(u,h){nt(u,n,h),Ie(n,e),Ie(n,i),Ie(n,r),Nt(o,r,null),a=!0},p:function(u,h){var d={};8&h&&(d.items=u[3]),!s&&2&h&&(s=!0,d.value=u[1],qu(function(){return s=!1})),o.$set(d)},i:function(u){a||(_e(o.$$.fragment,u),a=!0)},o:function(u){Ee(o.$$.fragment,u),a=!1},d:function(u){u&&tt(n),Rt(o)}}}function cce(t){var n,e;return{c:function(){n=Be("div"),e=xn(t[5]),ne(n,"class","jse-error svelte-1y818v2")},m:function(i,r){nt(i,n,r),Ie(n,e)},p:function(i,r){32&r&&gi(e,i[5])},d:function(i){i&&tt(n)}}}function aJe(t){var n,e,i,r,o,s,a,l,c,u,h,d,f,p,m,w,C,k,E,L,B,G,oe,fe,re,ce,ue,pe,De,ie,ge,we;e=new aN({props:{title:t[4]?"Sort array items":"Sort object keys"}});var le=t[4]&&(t[3].length>1||void 0===t[1])&&lce(t);function Fe(Z){t[15](Z)}var z={showChevron:!0,clearable:!1,items:t[7]};void 0!==t[2]&&(z.value=t[2]),B=new Vg({props:z}),dr.push(function(){return Xu(B,"value",Fe)});var Q=t[5]&&cce(t);return{c:function(){n=Be("div"),$t(e.$$.fragment),i=xt(),r=Be("div"),o=Be("table"),(s=Be("colgroup")).innerHTML=' \n ',a=xt(),l=Be("tbody"),c=Be("tr"),(u=Be("th")).textContent="Path",h=xt(),d=Be("td"),f=Be("input"),m=xt(),le&&le.c(),w=xt(),C=Be("tr"),(k=Be("th")).textContent="Direction",E=xt(),L=Be("td"),$t(B.$$.fragment),oe=xt(),fe=Be("div"),Q&&Q.c(),re=xt(),ce=Be("div"),ue=Be("button"),pe=xn("Sort"),ne(u,"class","svelte-1y818v2"),ne(f,"class","jse-path svelte-1y818v2"),ne(f,"type","text"),f.readOnly=!0,ne(f,"title","Selected path"),f.value=p=fr(t[0])?"(whole document)":lu(lc(t[0])),ne(d,"class","svelte-1y818v2"),ne(k,"class","svelte-1y818v2"),ne(L,"class","svelte-1y818v2"),ne(o,"class","svelte-1y818v2"),ne(fe,"class","jse-space svelte-1y818v2"),ne(ue,"type","button"),ne(ue,"class","jse-primary svelte-1y818v2"),ue.disabled=De=!!t[4]&&!t[1],ne(ce,"class","jse-actions svelte-1y818v2"),ne(r,"class","jse-modal-contents svelte-1y818v2"),ne(n,"class","jse-modal jse-sort svelte-1y818v2")},m:function(Z,me){nt(Z,n,me),Nt(e,n,null),Ie(n,i),Ie(n,r),Ie(r,o),Ie(o,s),Ie(o,a),Ie(o,l),Ie(l,c),Ie(c,u),Ie(c,h),Ie(c,d),Ie(d,f),Ie(l,m),le&&le.m(l,null),Ie(l,w),Ie(l,C),Ie(C,k),Ie(C,E),Ie(C,L),Nt(B,L,null),Ie(r,oe),Ie(r,fe),Q&&Q.m(fe,null),Ie(r,re),Ie(r,ce),Ie(ce,ue),Ie(ue,pe),ie=!0,ge||(we=[rn(ue,"click",t[8]),Ra(lJe.call(null,ue)),Ra(tk.call(null,n,t[6]))],ge=!0)},p:function(Z,me){var ae=di(me,1)[0],Te={};16&ae&&(Te.title=Z[4]?"Sort array items":"Sort object keys"),e.$set(Te),(!ie||1&ae&&p!==(p=fr(Z[0])?"(whole document)":lu(lc(Z[0])))&&f.value!==p)&&(f.value=p),Z[4]&&(Z[3].length>1||void 0===Z[1])?le?(le.p(Z,ae),26&ae&&_e(le,1)):((le=lce(Z)).c(),_e(le,1),le.m(l,w)):le&&(cn(),Ee(le,1,1,function(){le=null}),un());var Oe={};!G&&4&ae&&(G=!0,Oe.value=Z[2],qu(function(){return G=!1})),B.$set(Oe),Z[5]?Q?Q.p(Z,ae):((Q=cce(Z)).c(),Q.m(fe,null)):Q&&(Q.d(1),Q=null),(!ie||18&ae&&De!==(De=!!Z[4]&&!Z[1]))&&(ue.disabled=De)},i:function(Z){ie||(_e(e.$$.fragment,Z),_e(le),_e(B.$$.fragment,Z),ie=!0)},o:function(Z){Ee(e.$$.fragment,Z),Ee(le),Ee(B.$$.fragment,Z),ie=!1},d:function(Z){Z&&tt(n),Rt(e),le&&le.d(),Rt(B),Q&&Q.d(),ge=!1,Fo(we)}}}function lJe(t){t.focus()}function cJe(t,n,e){var i,r,o,s=Pa("jsoneditor:SortModal"),a=n.id,l=n.json,c=n.rootPath,u=n.onSort,h=$a("simple-modal").close,d="".concat(a,":").concat(An(c)),f=Un(l,c),p={value:1,label:"ascending"},m=[p,{value:-1,label:"descending"}],w=up[d]&&up[d].selectedProperty||void 0,C=up[d]&&up[d].selectedDirection||p,k=void 0;return t.$$set=function(E){"id"in E&&e(9,a=E.id),"json"in E&&e(10,l=E.json),"rootPath"in E&&e(0,c=E.rootPath),"onSort"in E&&e(11,u=E.onSort)},t.$$.update=function(){16&t.$$.dirty&&e(13,r=i&&void 0!==f?wO(f):void 0),8192&t.$$.dirty&&e(3,o=r?r.map(Nb):void 0),10&t.$$.dirty&&void 0===w&&o&&1===o.length&&e(1,w=o[0]),4102&t.$$.dirty&&(e(12,up[d]={selectedProperty:w,selectedDirection:C},up),s("store state in memory",d,up[d]))},e(4,i=Array.isArray(f)),[c,w,C,o,i,k,h,m,function(){try{var E,L;e(5,k=void 0);var B=null===(E=w)||void 0===E?void 0:E.value,G=null===(L=C)||void 0===L?void 0:L.value,oe=Ile(l,c,B,G);u({operations:oe,rootPath:c,itemPath:B,direction:G}),h()}catch(fe){e(5,k=fe.toString())}},a,l,u,up,r,function(E){e(1,w=E),e(3,o),e(13,r),e(4,i)},function(E){e(2,C=E)}]}var uJe=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,cJe,aJe,Zi,{id:9,json:10,rootPath:0,onSort:11},sJe),r}return Xe(e)}();function hd(){}function rk(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(t<.9*n)return t.toFixed()+" B";var e=t/n;if(e<.9*n)return e.toFixed(1)+" KB";var i=e/n;if(i<.9*n)return i.toFixed(1)+" MB";var r=i/n;return r<.9*n?r.toFixed(1)+" GB":(r/n).toFixed(1)+" TB"}function hJe(t){var n,e;return n=new ek({props:{items:t[0]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};1&di(r,1)[0]&&(o.items=i[0]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function dJe(t,n,e){var i,r,o=n.readOnly,s=void 0!==o&&o,a=n.onFormat,l=n.onCompact,c=n.onSort,u=n.onTransform,h=n.onToggleSearch,d=n.onUndo,f=n.onRedo,p=n.canUndo,m=n.canRedo,w=n.canFormat,C=n.canCompact,k=n.canSort,E=n.canTransform,L=n.onRenderMenu;return t.$$set=function(B){"readOnly"in B&&e(1,s=B.readOnly),"onFormat"in B&&e(2,a=B.onFormat),"onCompact"in B&&e(3,l=B.onCompact),"onSort"in B&&e(4,c=B.onSort),"onTransform"in B&&e(5,u=B.onTransform),"onToggleSearch"in B&&e(6,h=B.onToggleSearch),"onUndo"in B&&e(7,d=B.onUndo),"onRedo"in B&&e(8,f=B.onRedo),"canUndo"in B&&e(9,p=B.canUndo),"canRedo"in B&&e(10,m=B.canRedo),"canFormat"in B&&e(11,w=B.canFormat),"canCompact"in B&&e(12,C=B.canCompact),"canSort"in B&&e(13,k=B.canSort),"canTransform"in B&&e(14,E=B.canTransform),"onRenderMenu"in B&&e(15,L=B.onRenderMenu)},t.$$.update=function(){32766&t.$$.dirty&&e(16,r=s?[{type:"space"}]:[{type:"button",icon:fN,title:"Format JSON: add proper indentation and new lines (Ctrl+I)",className:"jse-format",onClick:a,disabled:s||!w},{type:"button",icon:WYe,title:"Compact JSON: remove all white spacing and new lines (Ctrl+Shift+I)",className:"jse-compact",onClick:l,disabled:s||!C},{type:"separator"},{type:"button",icon:z2,title:"Sort",className:"jse-sort",onClick:c,disabled:s||!k},{type:"button",icon:B2,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:u,disabled:s||!E},{type:"button",icon:YO,title:"Search (Ctrl+F)",className:"jse-search",onClick:h},{type:"separator"},{type:"button",icon:XO,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:d,disabled:!p},{type:"button",icon:qO,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:f,disabled:!m},{type:"space"}]),98304&t.$$.dirty&&e(0,i=L(r)||r)},[i,s,a,l,c,u,h,d,f,p,m,w,C,k,E,L,r]}var fJe=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,dJe,hJe,Zi,{readOnly:1,onFormat:2,onCompact:3,onSort:4,onTransform:5,onToggleSearch:6,onUndo:7,onRedo:8,canUndo:9,canRedo:10,canFormat:11,canCompact:12,canSort:13,canTransform:14,onRenderMenu:15}),r}return Xe(e)}(),Lo=function(){function t(){qe(this,t)}return Xe(t,[{key:"lineAt",value:function(n){if(n<0||n>this.length)throw new RangeError("Invalid position ".concat(n," in document of length ").concat(this.length));return this.lineInner(n,!1,1,0)}},{key:"line",value:function(n){if(n<1||n>this.lines)throw new RangeError("Invalid line number ".concat(n," in ").concat(this.lines,"-line document"));return this.lineInner(n,!0,1,0)}},{key:"replace",value:function(n,e,i){var r=[];return this.decompose(0,n,r,2),i.length&&i.decompose(0,i.length,r,3),this.decompose(e,this.length,r,1),ok.from(r,this.length-(e-n)+i.length)}},{key:"append",value:function(n){return this.replace(this.length,this.length,n)}},{key:"slice",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,i=[];return this.decompose(n,e,i,0),ok.from(i,e-n)}},{key:"eq",value:function(n){if(n==this)return!0;if(n.length!=this.length||n.lines!=this.lines)return!1;for(var e=this.scanIdentical(n,1),i=this.length-this.scanIdentical(n,-1),r=new Zb(this),o=new Zb(n),s=e,a=e;;){if(r.next(s),o.next(s),s=0,r.lineBreak!=o.lineBreak||r.done!=o.done||r.value!=o.value)return!1;if(a+=r.value.length,r.done||a>=i)return!0}}},{key:"iter",value:function(){return new Zb(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)}},{key:"iterRange",value:function(n){return new hce(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length)}},{key:"iterLines",value:function(n,e){var i;if(null==n)i=this.iter();else{null==e&&(e=this.lines+1);var r=this.line(n).from;i=this.iterRange(r,Math.max(r,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new dce(i)}},{key:"toString",value:function(){return this.sliceString(0)}},{key:"toJSON",value:function(){var n=[];return this.flatten(n),n}}],[{key:"of",value:function(n){if(0==n.length)throw new RangeError("A document must have at least one line");return 1!=n.length||n[0]?n.length<=32?new ah(n):ok.from(ah.split(n,[])):t.empty}}]),t}(),ah=function(t){Wt(e,Lo);var n=Gt(e);function e(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function pJe(t){var n,e=-1,i=ot(t);try{for(i.s();!(n=i.n()).done;)e+=n.value.length+1}catch(r){i.e(r)}finally{i.f()}return e}(i);return qe(this,e),(r=n.call(this)).text=i,r.length=o,r}return Xe(e,[{key:"lines",get:function(){return this.text.length}},{key:"children",get:function(){return null}},{key:"lineInner",value:function(i,r,o,s){for(var a=0;;a++){var l=this.text[a],c=s+l.length;if((r?o:c)>=i)return new gJe(s,c,o,l);s=c+1,o++}}},{key:"decompose",value:function(i,r,o,s){var a=i<=0&&r>=this.length?this:new e(uce(this.text,i,r),Math.min(r,this.length)-Math.max(0,i));if(1&s){var l=o.pop(),c=sk(a.text,l.text.slice(),0,a.length);if(c.length<=32)o.push(new e(c,l.length+a.length));else{var u=c.length>>1;o.push(new e(c.slice(0,u)),new e(c.slice(u)))}}else o.push(a)}},{key:"replace",value:function(i,r,o){if(!(o instanceof e))return jr(_r(e.prototype),"replace",this).call(this,i,r,o);var s=sk(this.text,sk(o.text,uce(this.text,0,i)),r),a=this.length+o.length-(r-i);return s.length<=32?new e(s,a):ok.from(e.split(s,[]),a)}},{key:"sliceString",value:function(i){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",s="",a=0,l=0;a<=r&&li&&l&&(s+=o),ia&&(s+=c.slice(Math.max(0,i-a),r-a)),a=u+1}return s}},{key:"flatten",value:function(i){var r,o=ot(this.text);try{for(o.s();!(r=o.n()).done;)i.push(r.value)}catch(a){o.e(a)}finally{o.f()}}},{key:"scanIdentical",value:function(){return 0}}],[{key:"split",value:function(i,r){var o,s=[],a=-1,l=ot(i);try{for(l.s();!(o=l.n()).done;){var c=o.value;s.push(c),a+=c.length+1,32==s.length&&(r.push(new e(s,a)),s=[],a=-1)}}catch(u){l.e(u)}finally{l.f()}return a>-1&&r.push(new e(s,a)),r}}]),e}(),ok=function(t){Wt(e,Lo);var n=Gt(e);function e(i,r){var o;qe(this,e),(o=n.call(this)).children=i,o.length=r,o.lines=0;var s,a=ot(i);try{for(a.s();!(s=a.n()).done;)o.lines+=s.value.lines}catch(c){a.e(c)}finally{a.f()}return o}return Xe(e,[{key:"lineInner",value:function(i,r,o,s){for(var a=0;;a++){var l=this.children[a],c=s+l.length,u=o+l.lines-1;if((r?u:c)>=i)return l.lineInner(i,r,o,s);s=c+1,o=u+1}}},{key:"decompose",value:function(i,r,o,s){for(var a=0,l=0;l<=r&&a=l){var h=s&((l<=i?1:0)|(u>=r?2:0));l>=i&&u<=r&&!h?o.push(c):c.decompose(i-l,r-l,o,h)}l=u+1}}},{key:"replace",value:function(i,r,o){if(o.lines=a&&r<=c){var u=l.replace(i-a,r-a,o),h=this.lines-l.lines+u.lines;if(u.lines>4&&u.lines>h>>6){var d=this.children.slice();return d[s]=u,new e(d,this.length-(r-i)+o.length)}return jr(_r(e.prototype),"replace",this).call(this,a,c,u)}a=c+1}return jr(_r(e.prototype),"replace",this).call(this,i,r,o)}},{key:"sliceString",value:function(i){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",s="",a=0,l=0;ai&&a&&(s+=o),il&&(s+=c.sliceString(i-l,r-l,o)),l=u+1}return s}},{key:"flatten",value:function(i){var r,o=ot(this.children);try{for(o.s();!(r=o.n()).done;)r.value.flatten(i)}catch(s){o.e(s)}finally{o.f()}}},{key:"scanIdentical",value:function(i,r){if(!(i instanceof e))return 0;for(var o=0,s=di(r>0?[0,0,this.children.length,i.children.length]:[this.children.length-1,i.children.length-1,-1,-1],4),a=s[0],l=s[1],c=s[2],u=s[3];;a+=r,l+=r){if(a==c||l==u)return o;var h=this.children[a],d=i.children[l];if(h!=d)return o+h.scanIdentical(d,r);o+=h.length+1}}}],[{key:"from",value:function(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.reduce(function(re,ce){return re+ce.length+1},-1),s=0,a=ot(i);try{for(a.s();!(r=a.n()).done;)s+=r.value.lines}catch(re){a.e(re)}finally{a.f()}if(s<32){var c,u=[],h=ot(i);try{for(h.s();!(c=h.n()).done;)c.value.flatten(u)}catch(re){h.e(re)}finally{h.f()}return new ah(u,o)}var f=Math.max(32,s>>5),p=f<<1,m=f>>1,w=[],C=0,k=-1,E=[];function L(re){var ce;if(re.lines>p&&re instanceof e){var ue,pe=ot(re.children);try{for(pe.s();!(ue=pe.n()).done;)L(ue.value)}catch(De){pe.e(De)}finally{pe.f()}}else re.lines>m&&(C>m||!C)?(B(),w.push(re)):re instanceof ah&&C&&(ce=E[E.length-1])instanceof ah&&re.lines+ce.lines<=32?(C+=re.lines,k+=re.length+1,E[E.length-1]=new ah(ce.text.concat(re.text),ce.length+1+re.length)):(C+re.lines>f&&B(),C+=re.lines,k+=re.length+1,E.push(re))}function B(){0!=C&&(w.push(1==E.length?E[0]:e.from(E,k)),k=-1,C=E.length=0)}var G,oe=ot(i);try{for(oe.s();!(G=oe.n()).done;)L(G.value)}catch(re){oe.e(re)}finally{oe.f()}return B(),1==w.length?w[0]:new e(w,o)}}]),e}();function sk(t,n){for(var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e9,r=0,o=0,s=!0;o=e&&(l>i&&(a=a.slice(0,i-r)),r1&&void 0!==arguments[1]?arguments[1]:1;qe(this,t),this.dir=e,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[n],this.offsets=[e>0?1:(n instanceof ah?n.text.length:n.children.length)<<1]}return Xe(t,[{key:"nextInner",value:function(n,e){for(this.done=this.lineBreak=!1;;){var i=this.nodes.length-1,r=this.nodes[i],o=this.offsets[i],s=o>>1;if(s==(e>0?r instanceof ah?r.text.length:r.children.length:0)){if(0==i)return this.done=!0,this.value="",this;e>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&o)==(e>0?0:1)){if(this.offsets[i]+=e,0==n)return this.lineBreak=!0,this.value="\n",this;n--}else if(r instanceof ah){var l=r.text[s+(e<0?-1:0)];if(this.offsets[i]+=e,l.length>Math.max(0,n))return this.value=0==n?l:e>0?l.slice(n):l.slice(0,l.length-n),this;n-=l.length}else{var c=r.children[s+(e<0?-1:0)];n>c.length?(n-=c.length,this.offsets[i]+=e):(e<0&&this.offsets[i]--,this.nodes.push(c),this.offsets.push(e>0?1:(c instanceof ah?c.text.length:c.children.length)<<1))}}}},{key:"next",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return n<0&&(this.nextInner(-n,-this.dir),n=this.value.length),this.nextInner(n,this.dir)}}]),t}(),hce=function(){function t(n,e,i){qe(this,t),this.value="",this.done=!1,this.cursor=new Zb(n,e>i?-1:1),this.pos=e>i?n.length:0,this.from=Math.min(e,i),this.to=Math.max(e,i)}return Xe(t,[{key:"nextInner",value:function(n,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;n+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);var i=e<0?this.pos-this.from:this.to-this.pos;n>i&&(n=i),i-=n;var r=this.cursor.next(n).value;return this.pos+=(r.length+n)*e,this.value=r.length<=i?r:e<0?r.slice(r.length-i):r.slice(0,i),this.done=!this.value,this}},{key:"next",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return n<0?n=Math.max(n,this.from-this.pos):n>0&&(n=Math.min(n,this.to-this.pos)),this.nextInner(n,this.cursor.dir)}},{key:"lineBreak",get:function(){return this.cursor.lineBreak&&""!=this.value}}]),t}(),dce=function(){function t(n){qe(this,t),this.inner=n,this.afterBreak=!0,this.value="",this.done=!1}return Xe(t,[{key:"next",value:function(){var e=this.inner.next(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0),r=e.lineBreak,o=e.value;return e.done?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=o,this.afterBreak=!1),this}},{key:"lineBreak",get:function(){return!1}}]),t}();typeof Symbol<"u"&&(Lo.prototype[Symbol.iterator]=function(){return this.iter()},Zb.prototype[Symbol.iterator]=hce.prototype[Symbol.iterator]=dce.prototype[Symbol.iterator]=function(){return this});for(var gJe=function(){function t(n,e,i,r){qe(this,t),this.from=n,this.to=e,this.number=i,this.text=r}return Xe(t,[{key:"length",get:function(){return this.to-this.from}}]),t}(),_0="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(function(t){return t?parseInt(t,36):1}),ak=1;ak<_0.length;ak++)_0[ak]+=_0[ak-1];function mJe(t){for(var n=1;n<_0.length;n+=2)if(_0[n]>t)return _0[n-1]<=t;return!1}function fce(t){return t>=127462&&t<=127487}function ql(t,n){return(arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?vJe:pce)(t,n,!(arguments.length>3&&void 0!==arguments[3])||arguments[3])}function pce(t,n,e){if(n==t.length)return n;n&&gce(t.charCodeAt(n))&&mce(t.charCodeAt(n-1))&&n--;var i=tl(t,n);for(n+=Nc(i);n=0&&fce(tl(t,s));)o++,s-=2;if(o%2==0)break;n+=2}}return n}function vJe(t,n,e){for(;n>0;){var i=pce(t,n-2,e);if(i=56320&&t<57344}function mce(t){return t>=55296&&t<56320}function tl(t,n){var e=t.charCodeAt(n);if(!mce(e)||n+1==t.length)return e;var i=t.charCodeAt(n+1);return gce(i)?i-56320+(e-55296<<10)+65536:e}function CN(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}function Nc(t){return t<65536?1:2}var SN=/\r\n?|\n/,Xl=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(Xl||(Xl={})),w0=function(){function t(n){qe(this,t),this.sections=n}return Xe(t,[{key:"length",get:function(){for(var n=0,e=0;e1&&void 0!==arguments[1]&&arguments[1])}},{key:"invertedDesc",get:function(){for(var n=[],e=0;e1&&void 0!==arguments[1]&&arguments[1])}},{key:"mapPos",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Xl.Simple,r=0,o=0,s=0;sn)return o+(n-r);o+=a}else{if(i!=Xl.Simple&&c>=n&&(i==Xl.TrackDel&&rn||i==Xl.TrackBefore&&rn))return null;if(c>n||c==n&&e<0&&!a)return n==r||e<0?o:o+l;o+=l}r=c}if(n>r)throw new RangeError("Position ".concat(n," is out of range for changeset of length ").concat(r));return o}},{key:"touchesRange",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,i=0,r=0;i=0&&r<=e&&a>=n)return!(re)||"cover";r=a}return!1}},{key:"toString",value:function(){for(var n="",e=0;e=0?":"+r:"")}return n}},{key:"toJSON",value:function(){return this.sections}}],[{key:"fromJSON",value:function(n){if(!Array.isArray(n)||n.length%2||n.some(function(e){return"number"!=typeof e}))throw new RangeError("Invalid JSON representation of ChangeDesc");return new t(n)}},{key:"create",value:function(n){return new t(n)}}]),t}(),lh=function(t){Wt(e,w0);var n=Gt(e);function e(i,r){var o;return qe(this,e),(o=n.call(this,i)).inserted=r,o}return Xe(e,[{key:"apply",value:function(i){if(this.length!=i.length)throw new RangeError("Applying change set to a document with the wrong length");return kN(this,function(r,o,s,a,l){return i=i.replace(s,s+(o-r),l)},!1),i}},{key:"mapDesc",value:function(i){return DN(this,i,arguments.length>1&&void 0!==arguments[1]&&arguments[1],!0)}},{key:"invert",value:function(i){for(var r=this.sections.slice(),o=[],s=0,a=0;s=0){r[s]=c,r[s+1]=l;for(var u=s>>1;o.length1&&void 0!==arguments[1]&&arguments[1],!0)}},{key:"iterChanges",value:function(i){kN(this,i,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}},{key:"desc",get:function(){return w0.create(this.sections)}},{key:"filter",value:function(i){var r=[],o=[],s=[],a=new e_(this);e:for(var l=0,c=0;;){for(var u=l==i.length?1e9:i[l++];c0&&hp(o,r,a.text),a.forward(h),c+=h}for(var f=i[l++];c>1].toJSON()))}return i}}],[{key:"of",value:function(i,r,o){var s=[],a=[],l=0,c=null;function u(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||s.length){lC||m<0||C>r)throw new RangeError("Invalid change range ".concat(m," to ").concat(C," (in doc of length ").concat(r,")"));var E=k?"string"==typeof k?Lo.of(k.split(o||SN)):k:Lo.empty,L=E.length;if(m==C&&0==L)return;ml&&Sl(s,m-l,-1),Sl(s,C-m,L),hp(a,s,E),l=C}}(i),u(!c),c}},{key:"empty",value:function(i){return new e(i?[i,-1]:[],[])}},{key:"fromJSON",value:function(i){if(!Array.isArray(i))throw new RangeError("Invalid JSON representation of ChangeSet");for(var r=[],o=[],s=0;s3&&void 0!==arguments[3]&&arguments[3];if(!(0==n&&e<=0)){var r=t.length-2;r>=0&&e<=0&&e==t[r+1]?t[r]+=n:0==n&&0==t[r]?t[r+1]+=e:i?(t[r]+=n,t[r+1]+=e):t.push(n,e)}}function hp(t,n,e){if(0!=e.length){var i=n.length-2>>1;if(i>1])),!(e||s==t.sections.length||t.sections[s+1]<0);)a=t.sections[s++],l=t.sections[s++];n(r,c,o,u,h),r=c,o=u}}}function DN(t,n,e){for(var r=[],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3]?[]:null,s=new e_(t),a=new e_(n),l=-1;;)if(-1==s.ins&&-1==a.ins){var c=Math.min(s.len,a.len);Sl(r,c,-1),s.forward(c),a.forward(c)}else if(a.ins>=0&&(s.ins<0||l==s.i||0==s.off&&(a.len=0&&l=0)){if(s.done&&a.done)return o?lh.createSet(r,o):w0.create(r);throw new Error("Mismatched change set lengths")}for(var d=0,f=s.len;f;)if(-1==a.ins){var p=Math.min(f,a.len);d+=p,f-=p,a.forward(p)}else{if(!(0==a.ins&&a.len2&&void 0!==arguments[2]&&arguments[2]?[]:null,o=new e_(t),s=new e_(n),a=!1;;){if(o.done&&s.done)return r?lh.createSet(i,r):w0.create(i);if(0==o.ins)Sl(i,o.len,0,a),o.next();else if(0!=s.len||s.done){if(o.done||s.done)throw new Error("Mismatched change set lengths");var l=Math.min(o.len2,s.len),c=i.length;if(-1==o.ins){var u=-1==s.ins?-1:s.off?0:s.ins;Sl(i,l,u,a),r&&u&&hp(r,i,s.text)}else-1==s.ins?(Sl(i,o.off?0:o.len,l,a),r&&hp(r,i,o.textBit(l))):(Sl(i,o.off?0:o.len,s.off?0:s.ins,a),r&&!s.off&&hp(r,i,s.text));a=(o.ins>l||s.ins>=0&&s.len>l)&&(a||i.length>c),o.forward2(l),s.forward(l)}else Sl(i,0,s.ins,a),r&&hp(r,i,s.text),s.next()}}var e_=function(){function t(n){qe(this,t),this.set=n,this.i=0,this.next()}return Xe(t,[{key:"next",value:function(){var n=this.set.sections;this.i>1;return e>=n.length?Lo.empty:n[e]}},{key:"textBit",value:function(n){var e=this.set.inserted,i=this.i-2>>1;return i>=e.length&&!n?Lo.empty:e[i].slice(this.off,null==n?void 0:this.off+n)}},{key:"forward",value:function(n){n==this.len?this.next():(this.len-=n,this.off+=n)}},{key:"forward2",value:function(n){-1==this.ins?this.forward(n):n==this.ins?this.next():(this.ins-=n,this.off+=n)}}]),t}(),lk=function(){function t(n,e,i){qe(this,t),this.from=n,this.to=e,this.flags=i}return Xe(t,[{key:"anchor",get:function(){return 16&this.flags?this.to:this.from}},{key:"head",get:function(){return 16&this.flags?this.from:this.to}},{key:"empty",get:function(){return this.from==this.to}},{key:"assoc",get:function(){return 4&this.flags?-1:8&this.flags?1:0}},{key:"bidiLevel",get:function(){var n=3&this.flags;return 3==n?null:n}},{key:"goalColumn",get:function(){var n=this.flags>>5;return 33554431==n?void 0:n}},{key:"map",value:function(n){var e,i;return this.empty?e=i=n.mapPos(this.from,arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1):(e=n.mapPos(this.from,1),i=n.mapPos(this.to,-1)),e==this.from&&i==this.to?this:new t(e,i,this.flags)}},{key:"extend",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;if(n<=this.anchor&&e>=this.anchor)return _n.range(n,e);var i=Math.abs(n-this.anchor)>Math.abs(e-this.anchor)?n:e;return _n.range(this.anchor,i)}},{key:"eq",value:function(n){return this.anchor==n.anchor&&this.head==n.head}},{key:"toJSON",value:function(){return{anchor:this.anchor,head:this.head}}}],[{key:"fromJSON",value:function(n){if(!n||"number"!=typeof n.anchor||"number"!=typeof n.head)throw new RangeError("Invalid JSON representation for SelectionRange");return _n.range(n.anchor,n.head)}},{key:"create",value:function(n,e,i){return new t(n,e,i)}}]),t}(),_n=function(){function t(n,e){qe(this,t),this.ranges=n,this.mainIndex=e}return Xe(t,[{key:"map",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return n.empty?this:t.create(this.ranges.map(function(i){return i.map(n,e)}),this.mainIndex)}},{key:"eq",value:function(n){if(this.ranges.length!=n.ranges.length||this.mainIndex!=n.mainIndex)return!1;for(var e=0;e1&&void 0!==arguments[1])||arguments[1];return t.create([n].concat(this.ranges),e?0:this.mainIndex+1)}},{key:"replaceRange",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.mainIndex,i=this.ranges.slice();return i[e]=n,t.create(i,this.mainIndex)}},{key:"toJSON",value:function(){return{ranges:this.ranges.map(function(n){return n.toJSON()}),main:this.mainIndex}}}],[{key:"fromJSON",value:function(n){if(!n||!Array.isArray(n.ranges)||"number"!=typeof n.main||n.main>=n.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new t(n.ranges.map(function(e){return lk.fromJSON(e)}),n.main)}},{key:"single",value:function(n){return new t([t.range(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n)],0)}},{key:"create",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0==n.length)throw new RangeError("A selection needs at least one range");for(var i=0,r=0;r1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return lk.create(n,n,(0==e?0:e<0?4:8)|(null==i?3:Math.min(2,i))|(r??33554431)<<5)}},{key:"range",value:function(n,e,i,r){var o=(i??33554431)<<5|(null==r?3:Math.min(2,r));return en?4:0)|o)}},{key:"normalized",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=n[e];n.sort(function(c,u){return c.from-u.from}),e=n.indexOf(i);for(var r=1;ro.head?t.range(l,a):t.range(a,l))}}return new t(n,e)}}]),t}();function yce(t,n){var e,i=ot(t.ranges);try{for(i.s();!(e=i.n()).done;)if(e.value.to>n)throw new RangeError("Selection points outside of document")}catch(r){i.e(r)}finally{i.f()}}var TN=0,yi=function(){function t(n,e,i,r,o){qe(this,t),this.combine=n,this.compareInput=e,this.compare=i,this.isStatic=r,this.id=TN++,this.default=n([]),this.extensions="function"==typeof o?o(this):o}return Xe(t,[{key:"of",value:function(n){return new ck([],this,0,n)}},{key:"compute",value:function(n,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new ck(n,this,1,e)}},{key:"computeN",value:function(n,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new ck(n,this,2,e)}},{key:"from",value:function(n,e){return e||(e=function(i){return i}),this.compute([n],function(i){return e(i.field(n))})}}],[{key:"define",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t(n.combine||function(e){return e},n.compareInput||function(e,i){return e===i},n.compare||(n.combine?function(e,i){return e===i}:AN),!!n.static,n.enables)}}]),t}();function AN(t,n){return t==n||t.length==n.length&&t.every(function(e,i){return e===n[i]})}var ck=function(){function t(n,e,i,r){qe(this,t),this.dependencies=n,this.facet=e,this.type=i,this.value=r,this.id=TN++}return Xe(t,[{key:"dynamicSlot",value:function(n){var e,i,r=this,o=this.value,s=this.facet.compareInput,a=this.id,l=n[a]>>1,c=2==this.type,u=!1,h=!1,d=[],f=ot(this.dependencies);try{for(f.s();!(i=f.n()).done;){var p=i.value;"doc"==p?u=!0:"selection"==p?h=!0:!(1&(null!==(e=n[p.id])&&void 0!==e?e:1))&&d.push(n[p.id])}}catch(m){f.e(m)}finally{f.f()}return{create:function(m){return m.values[l]=o(m),1},update:function(m,w){if(u&&w.docChanged||h&&(w.docChanged||w.selection)||EN(m,d)){var C=o(m);if(c?!bce(C,m.values[l],s):!s(C,m.values[l]))return m.values[l]=C,1}return 0},reconfigure:function(m,w){var C,k=w.config.address[a];if(null!=k){var E=uk(w,k);if(r.dependencies.every(function(L){return L instanceof yi?w.facet(L)===m.facet(L):!(L instanceof nl)||w.field(L,!1)==m.field(L,!1)})||(c?bce(C=o(m),E,s):s(C=o(m),E)))return m.values[l]=E,0}else C=o(m);return m.values[l]=C,1}}}}]),t}();function bce(t,n,e){if(t.length!=n.length)return!1;for(var i=0;i>1;return{create:function(r){return r.values[i]=e.create(r),1},update:function(r,o){var s=r.values[i],a=e.updateF(s,o);return e.compareF(s,a)?0:(r.values[i]=a,1)},reconfigure:function(r,o){return null!=o.config.address[e.id]?(r.values[i]=o.field(e),0):(r.values[i]=e.create(r),1)}}}},{key:"init",value:function(n){return[this,_ce.of({field:this,create:n})]}},{key:"extension",get:function(){return this}}],[{key:"define",value:function(n){var e=new t(TN++,n.create,n.update,n.compare||function(i,r){return i===r},n);return n.provide&&(e.provides=n.provide(e)),e}}]),t}();function t_(t){return function(n){return new wce(n,t)}}var x0={highest:t_(0),high:t_(1),default:t_(2),low:t_(3),lowest:t_(4)},wce=Xe(function t(n,e){qe(this,t),this.inner=n,this.prec=e}),dp=function(){function t(){qe(this,t)}return Xe(t,[{key:"of",value:function(n){return new IN(this,n)}},{key:"reconfigure",value:function(n){return t.reconfigure.of({compartment:this,extension:n})}},{key:"get",value:function(n){return n.config.compartments.get(this)}}]),t}(),IN=Xe(function t(n,e){qe(this,t),this.compartment=n,this.inner=e}),xce=function(){function t(n,e,i,r,o,s){for(qe(this,t),this.base=n,this.compartments=e,this.dynamicSlots=i,this.address=r,this.staticValues=o,this.facets=s,this.statusTemplate=[];this.statusTemplate.length>1]}}],[{key:"resolve",value:function(n,e,i){var r,L,B,G,oe,fe,o=[],s=Object.create(null),a=new Map,l=ot((L=n,B=e,G=a,oe=[[],[],[],[],[]],fe=new Map,function re(ce,ue){var pe=fe.get(ce);if(null!=pe){if(pe<=ue)return;var De=oe[pe].indexOf(ce);De>-1&&oe[pe].splice(De,1),ce instanceof IN&&G.delete(ce.compartment)}if(fe.set(ce,ue),Array.isArray(ce)){var ie,ge=ot(ce);try{for(ge.s();!(ie=ge.n()).done;)re(ie.value,ue)}catch(Fe){ge.e(Fe)}finally{ge.f()}}else if(ce instanceof IN){if(G.has(ce.compartment))throw new RangeError("Duplicate use of compartment in extensions");var we=B.get(ce.compartment)||ce.inner;G.set(ce.compartment,we),re(we,ue)}else if(ce instanceof wce)re(ce.inner,ce.prec);else if(ce instanceof nl)oe[ue].push(ce),ce.provides&&re(ce.provides,ue);else if(ce instanceof ck)oe[ue].push(ce),ce.facet.extensions&&re(ce.facet.extensions,2);else{var le=ce.extension;if(!le)throw new Error("Unrecognized extension value in extension set (".concat(ce,"). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks."));re(le,ue)}}(L,2),oe.reduce(function(ce,ue){return ce.concat(ue)})));try{for(l.s();!(r=l.n()).done;){var c=r.value;c instanceof nl?o.push(c):(s[c.facet.id]||(s[c.facet.id]=[])).push(c)}}catch(L){l.e(L)}finally{l.f()}for(var u=Object.create(null),h=[],d=[],f=function(){var L=m[p];u[L.id]=d.length<<1,d.push(function(B){return L.slot(B)})},p=0,m=o;p>1;function Q(Z){for(var me=[],ae=0;ae>1,i=t.status[e];if(4==i)throw new Error("Cyclic dependency between fields and/or facets");if(2&i)return i;t.status[e]=4;var r=t.computeSlot(t,t.config.dynamicSlots[e]);return t.status[e]=2|r}function uk(t,n){return 1&n?t.config.staticValues[n>>1]:t.values[n>>1]}var Cce=yi.define(),Sce=yi.define({combine:function(t){return t.some(function(n){return n})},static:!0}),kce=yi.define({combine:function(t){return t.length?t[0]:void 0},static:!0}),Dce=yi.define(),Tce=yi.define(),Ace=yi.define(),Ece=yi.define({combine:function(t){return!!t.length&&t[0]}}),fp=function(){function t(n,e){qe(this,t),this.type=n,this.value=e}return Xe(t,null,[{key:"define",value:function(){return new wJe}}]),t}(),wJe=function(){function t(){qe(this,t)}return Xe(t,[{key:"of",value:function(n){return new fp(this,n)}}]),t}(),xJe=function(){function t(n){qe(this,t),this.map=n}return Xe(t,[{key:"of",value:function(n){return new $r(this,n)}}]),t}(),$r=function(){function t(n,e){qe(this,t),this.type=n,this.value=e}return Xe(t,[{key:"map",value:function(n){var e=this.type.map(this.value,n);return void 0===e?void 0:e==this.value?this:new t(this.type,e)}},{key:"is",value:function(n){return this.type==n}}],[{key:"define",value:function(){return new xJe((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).map||function(e){return e})}},{key:"mapEffects",value:function(n,e){if(!n.length)return n;var i,r=[],o=ot(n);try{for(o.s();!(i=o.n()).done;){var s=i.value.map(e);s&&r.push(s)}}catch(a){o.e(a)}finally{o.f()}return r}}]),t}();$r.reconfigure=$r.define(),$r.appendConfig=$r.define();var cc=function(){function t(n,e,i,r,o,s){qe(this,t),this.startState=n,this.changes=e,this.selection=i,this.effects=r,this.annotations=o,this.scrollIntoView=s,this._doc=null,this._state=null,i&&yce(i,e.newLength),o.some(function(a){return a.type==t.time})||(this.annotations=o.concat(t.time.of(Date.now())))}return Xe(t,[{key:"newDoc",get:function(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}},{key:"newSelection",get:function(){return this.selection||this.startState.selection.map(this.changes)}},{key:"state",get:function(){return this._state||this.startState.applyTransaction(this),this._state}},{key:"annotation",value:function(n){var e,i=ot(this.annotations);try{for(i.s();!(e=i.n()).done;){var r=e.value;if(r.type==n)return r.value}}catch(o){i.e(o)}finally{i.f()}}},{key:"docChanged",get:function(){return!this.changes.empty}},{key:"reconfigured",get:function(){return this.startState.config!=this.state.config}},{key:"isUserEvent",value:function(n){var e=this.annotation(t.userEvent);return!(!e||!(e==n||e.length>n.length&&e.slice(0,n.length)==n&&"."==e[n.length]))}}],[{key:"create",value:function(n,e,i,r,o,s){return new t(n,e,i,r,o,s)}}]),t}();function CJe(t,n){for(var e=[],i=0,r=0;;){var o=void 0,s=void 0;if(i=t[i]))o=t[i++],s=t[i++];else{if(!(r=0;h--){var d=c[h](a);d&&Object.keys(d).length&&(u=Mce(u,FN(l,d,a.changes.newLength),!0))}return u==a?a:cc.create(l,a.changes,a.selection,u.effects,u.annotations,u.scrollIntoView)}(e?function(a){var l,c=a.startState,u=!0,h=ot(c.facet(Dce));try{for(h.s();!(l=h.n()).done;){var d=(0,l.value)(a);if(!1===d){u=!1;break}Array.isArray(d)&&(u=!0===u?d:CJe(u,d))}}catch(E){h.e(E)}finally{h.f()}if(!0!==u){var f,p;if(!1===u)p=a.changes.invertedDesc,f=lh.empty(c.doc.length);else{var m=a.changes.filter(u);f=m.changes,p=m.filtered.mapDesc(m.changes).invertedDesc}a=cc.create(c,f,a.selection&&a.selection.map(p),$r.mapEffects(a.effects,p),a.annotations,a.scrollIntoView)}for(var w=c.facet(Tce),C=w.length-1;C>=0;C--){var k=w[C](a);a=k instanceof cc?k:Array.isArray(k)&&1==k.length&&k[0]instanceof cc?k[0]:Ice(c,C0(k),!1)}return a}(s):s)}cc.time=fp.define(),cc.userEvent=fp.define(),cc.addToHistory=fp.define(),cc.remote=fp.define();var SJe=[];function C0(t){return null==t?SJe:Array.isArray(t)?t:[t]}var LN,Ds=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(Ds||(Ds={})),kJe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{LN=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}var Qo=function(){function t(n,e,i,r,o,s){qe(this,t),this.config=n,this.doc=e,this.selection=i,this.values=r,this.status=n.statusTemplate.slice(),this.computeSlot=o,s&&(s._state=this);for(var a=0;a1&&void 0!==arguments[1])||arguments[1],i=this.config.address[n.id];if(null!=i)return n_(this,i),uk(this,i);if(e)throw new RangeError("Field is not present in this state")}},{key:"update",value:function(){for(var n=arguments.length,e=new Array(n),i=0;i0&&void 0!==arguments[0]?arguments[0]:[];return n instanceof lh?n:lh.of(n,this.doc.length,this.facet(t.lineSeparator))}},{key:"toText",value:function(n){return Lo.of(n.split(this.facet(t.lineSeparator)||SN))}},{key:"sliceDoc",value:function(){return this.doc.sliceString(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.doc.length,this.lineBreak)}},{key:"facet",value:function(n){var e=this.config.address[n.id];return null==e?n.default:(n_(this,e),uk(this,e))}},{key:"toJSON",value:function(n){var e={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(n)for(var i in n){var r=n[i];r instanceof nl&&null!=this.config.address[r.id]&&(e[i]=r.spec.toJSON(this.field(n[i]),this))}return e}},{key:"tabSize",get:function(){return this.facet(t.tabSize)}},{key:"lineBreak",get:function(){return this.facet(t.lineSeparator)||"\n"}},{key:"readOnly",get:function(){return this.facet(Ece)}},{key:"phrase",value:function(n){for(var e=arguments.length,i=new Array(e>1?e-1:0),r=1;ri.length?l:i[u-1]})),n}},{key:"languageDataAt",value:function(n,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,o=[],s=ot(this.facet(Cce));try{for(s.s();!(i=s.n()).done;){var a,c=ot((0,i.value)(this,e,r));try{for(c.s();!(a=c.n()).done;){var u=a.value;Object.prototype.hasOwnProperty.call(u,n)&&o.push(u[n])}}catch(h){c.e(h)}finally{c.f()}}}catch(h){s.e(h)}finally{s.f()}return o}},{key:"charCategorizer",value:function(n){return function DJe(t){return function(n){if(!/\S/.test(n))return Ds.Space;if(function(i){if(LN)return LN.test(i);for(var r=0;r"\x80"&&(o.toUpperCase()!=o.toLowerCase()||kJe.test(o)))return!0}return!1}(n))return Ds.Word;for(var e=0;e-1)return Ds.Word;return Ds.Other}}(this.languageDataAt("wordChars",n).join(""))}},{key:"wordAt",value:function(n){for(var e=this.doc.lineAt(n),i=e.text,r=e.from,o=e.length,s=this.charCategorizer(n),a=n-r,l=n-r;a>0;){var c=ql(i,a,!1);if(s(i.slice(c,a))!=Ds.Word)break;a=c}for(;l1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;if(!n||"string"!=typeof n.doc)throw new RangeError("Invalid JSON representation for EditorState");var r=[];if(i)for(var o in i)Object.prototype.hasOwnProperty.call(n,o)&&function(){var s=i[o],a=n[o];r.push(s.init(function(l){return s.spec.fromJSON(a,l)}))}();return t.create({doc:n.doc,selection:_n.fromJSON(n.selection),extensions:e.extensions?r.concat([e.extensions]):r})}},{key:"create",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=xce.resolve(n.extensions||[],new Map),i=n.doc instanceof Lo?n.doc:Lo.of((n.doc||"").split(e.staticFacet(t.lineSeparator)||SN)),r=n.selection?n.selection instanceof _n?n.selection:_n.single(n.selection.anchor,n.selection.head):_n.single(0);return yce(r,i.length),e.staticFacet(Sce)||(r=r.asSingle()),new t(e,i,r,e.dynamicSlots.map(function(){return null}),function(o,s){return s.create(o)},null)}}]),t}();function fu(t,n){var e,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={},o=ot(t);try{for(o.s();!(e=o.n()).done;)for(var s=e.value,a=0,l=Object.keys(s);a1&&void 0!==arguments[1]?arguments[1]:n,this)}}]),t}();Ug.prototype.startSide=Ug.prototype.endSide=0,Ug.prototype.point=!1,Ug.prototype.mapMode=Xl.TrackDel;var ON=function(){function t(n,e,i){qe(this,t),this.from=n,this.to=e,this.value=i}return Xe(t,null,[{key:"create",value:function(n,e,i){return new t(n,e,i)}}]),t}();function NN(t,n){return t.from-n.from||t.value.startSide-n.value.startSide}var TJe=function(){function t(n,e,i,r){qe(this,t),this.from=n,this.to=e,this.value=i,this.maxPoint=r}return Xe(t,[{key:"length",get:function(){return this.to[this.to.length-1]}},{key:"findIndex",value:function(n,e,i){for(var o=i?this.to:this.from,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=o.length;;){if(s==a)return s;var l=s+a>>1,c=o[l]-n||(i?this.value[l].endSide:this.value[l].startSide)-e;if(l==s)return c>=0?s:a;c>=0?a=l:s=l+1}}},{key:"between",value:function(n,e,i,r){for(var o=this.findIndex(e,-1e9,!0),s=this.findIndex(i,1e9,!1,o);o(f=e.mapPos(h,c.endSide))||d==f&&c.startSide>0&&c.endSide<=0)continue;(f-d||c.endSide-c.startSide)<0||(s<0&&(s=d),c.point&&(a=Math.max(a,f-d)),i.push(c),r.push(d-s),o.push(f-s))}return{mapped:i.length?new t(r,o,i,a):null,pos:s}}}]),t}(),cs=function(){function t(n,e,i,r){qe(this,t),this.chunkPos=n,this.chunk=e,this.nextLayer=i,this.maxPoint=r}return Xe(t,[{key:"length",get:function(){var n=this.chunk.length-1;return n<0?0:Math.max(this.chunkEnd(n),this.nextLayer.length)}},{key:"size",get:function(){if(this.isEmpty)return 0;var n,e=this.nextLayer.size,i=ot(this.chunk);try{for(i.s();!(n=i.n()).done;)e+=n.value.value.length}catch(r){i.e(r)}finally{i.f()}return e}},{key:"chunkEnd",value:function(n){return this.chunkPos[n]+this.chunk[n].length}},{key:"update",value:function(n){var e=n.add,i=void 0===e?[]:e,r=n.sort,s=n.filterFrom,a=void 0===s?0:s,l=n.filterTo,c=void 0===l?this.length:l,u=n.filter;if(0==i.length&&!u)return this;if(void 0!==r&&r&&(i=i.slice().sort(NN)),this.isEmpty)return i.length?t.of(i):this;for(var h=new Lce(this,null,-1).goto(0),d=0,f=[],p=new Wg;h.value||d=0){var m=i[d++];p.addInner(m.from,m.to,m.value)||f.push(m)}else 1==h.rangeIndex&&h.chunkIndexthis.chunkEnd(h.chunkIndex)||ch.to||c=o&&n<=o+s.length&&!1===s.between(o,n-o,e-o,i))return}this.nextLayer.between(n,e,i)}}},{key:"iter",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return RN.from([this]).goto(n)}},{key:"isEmpty",get:function(){return this.nextLayer==this}}],[{key:"create",value:function(n,e,i,r){return new t(n,e,i,r)}},{key:"iter",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return RN.from(n).goto(e)}},{key:"compare",value:function(n,e,i,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,s=n.filter(function(h){return h.maxPoint>0||!h.isEmpty&&h.maxPoint>=o}),a=e.filter(function(h){return h.maxPoint>0||!h.isEmpty&&h.maxPoint>=o}),l=Fce(s,a,i),c=new i_(s,l,o),u=new i_(a,l,o);i.iterGaps(function(h,d,f){return Oce(c,h,u,d,f,r)}),i.empty&&0==i.length&&Oce(c,0,u,0,0,r)}},{key:"eq",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0;null==r&&(r=999999999);var o=n.filter(function(u){return!u.isEmpty&&e.indexOf(u)<0}),s=e.filter(function(u){return!u.isEmpty&&n.indexOf(u)<0});if(o.length!=s.length)return!1;if(!o.length)return!0;for(var a=Fce(o,s),l=new i_(o,a,0).goto(i),c=new i_(s,a,0).goto(i);;){if(l.to!=c.to||!PN(l.active,c.active)||l.point&&(!c.point||!l.point.eq(c.point)))return!1;if(l.to>r)return!0;l.next(),c.next()}}},{key:"spans",value:function(n,e,i,r){for(var s=new i_(n,null,arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1).goto(e),a=e,l=s.openStart;;){var c=Math.min(s.to,i);if(s.point){var u=s.activeForPoint(s.to),h=s.pointFroma&&(r.span(a,c,s.active,l),l=s.openEnd(c));if(s.to>i)return l+(s.point&&s.to>i?1:0);a=s.to,s.next()}}},{key:"of",value:function(n){var e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=new Wg,o=ot(n instanceof ON?[n]:i?function AJe(t){if(t.length>1)for(var n=t[0],e=1;e0)return t.slice().sort(NN);n=i}return t}(n):n);try{for(o.s();!(e=o.n()).done;){var s=e.value;r.add(s.from,s.to,s.value)}}catch(a){o.e(a)}finally{o.f()}return r.finish()}}]),t}();cs.empty=new cs([],[],null,-1),cs.empty.nextLayer=cs.empty;var Wg=function(){function t(){qe(this,t),this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}return Xe(t,[{key:"finishChunk",value:function(n){this.chunks.push(new TJe(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,n&&(this.from=[],this.to=[],this.value=[])}},{key:"add",value:function(n,e,i){this.addInner(n,e,i)||(this.nextLayer||(this.nextLayer=new t)).add(n,e,i)}},{key:"addInner",value:function(n,e,i){var r=n-this.lastTo||i.startSide-this.last.endSide;if(r<=0&&(n-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0||(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=n),this.from.push(n-this.chunkStart),this.to.push(e-this.chunkStart),this.last=i,this.lastFrom=n,this.lastTo=e,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,e-n)),0))}},{key:"addChunk",value:function(n,e){if((n-this.lastTo||e.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,e.maxPoint),this.chunks.push(e),this.chunkPos.push(n);var i=e.value.length-1;return this.last=e.value[i],this.lastFrom=e.from[i]+n,this.lastTo=e.to[i]+n,!0}},{key:"finish",value:function(){return this.finishInner(cs.empty)}},{key:"finishInner",value:function(n){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return n;var e=cs.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(n):n,this.setMaxPoint);return this.from=null,e}}]),t}();function Fce(t,n,e){var i,r=new Map,o=ot(t);try{for(o.s();!(i=o.n()).done;)for(var s=i.value,a=0;a3&&void 0!==arguments[3]?arguments[3]:0;qe(this,t),this.layer=n,this.skip=e,this.minPoint=i,this.rank=r}return Xe(t,[{key:"startSide",get:function(){return this.value?this.value.startSide:0}},{key:"endSide",get:function(){return this.value?this.value.endSide:0}},{key:"goto",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.chunkIndex=this.rangeIndex=0,this.gotoInner(n,e,!1),this}},{key:"gotoInner",value:function(n,e,i){for(;this.chunkIndex=this.minPoint)break}}},{key:"setRangeIndex",value:function(n){if(n==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex1&&void 0!==arguments[1]?arguments[1]:-1e9,r=ot(this.heap);try{for(r.s();!(e=r.n()).done;)e.value.goto(n,i)}catch(a){r.e(a)}finally{r.f()}for(var s=this.heap.length>>1;s>=0;s--)$N(this.heap,s);return this.next(),this}},{key:"forward",value:function(n,e){var i,r=ot(this.heap);try{for(r.s();!(i=r.n()).done;)i.value.forward(n,e)}catch(s){r.e(s)}finally{r.f()}for(var o=this.heap.length>>1;o>=0;o--)$N(this.heap,o);(this.to-n||this.value.endSide-e)<0&&this.next()}},{key:"next",value:function(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{var n=this.heap[0];this.from=n.from,this.to=n.to,this.value=n.value,this.rank=n.rank,n.value&&n.next(),$N(this.heap,0)}}}],[{key:"from",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=[],o=0;o=i&&r.push(new Lce(s,e,i,o));return 1==r.length?r[0]:new t(r)}}]),t}();function $N(t,n){for(var e=t[n];;){var i=1+(n<<1);if(i>=t.length)break;var r=t[i];if(i+1=0&&(r=t[i+1],i++),e.compare(r)<0)break;t[i]=e,t[n]=r,n=i}}var i_=function(){function t(n,e,i){qe(this,t),this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=RN.from(n,e,i)}return Xe(t,[{key:"goto",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.cursor.goto(n,e),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=n,this.endSide=e,this.openStart=-1,this.next(),this}},{key:"forward",value:function(n,e){for(;this.minActive>-1&&(this.activeTo[this.minActive]-n||this.active[this.minActive].endSide-e)<0;)this.removeActive(this.minActive);this.cursor.forward(n,e)}},{key:"removeActive",value:function(n){hk(this.active,n),hk(this.activeTo,n),hk(this.activeRank,n),this.minActive=Nce(this.active,this.activeTo)}},{key:"addActive",value:function(n){for(var e=0,i=this.cursor,r=i.value,o=i.to,s=i.rank;e-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>n){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),i&&hk(i,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>n){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}var o=this.cursor.value;if(o.point){if(!(e&&this.cursor.to==this.to&&this.cursor.from=0&&i[s]=0&&!(this.activeRank[i]n||this.activeTo[i]==n&&this.active[i].endSide>=this.point.endSide)&&e.push(this.active[i]);return e.reverse()}},{key:"openEnd",value:function(n){for(var e=0,i=this.activeTo.length-1;i>=0&&this.activeTo[i]>n;i--)e++;return e}}]),t}();function Oce(t,n,e,i,r,o){t.goto(n),e.goto(i);for(var s=i+r,a=i,l=i-n;;){var c=t.to+l-e.to||t.endSide-e.endSide,u=c<0?t.to+l:e.to,h=Math.min(u,s);if(t.point||e.point?t.point&&e.point&&(t.point==e.point||t.point.eq(e.point))&&PN(t.activeForPoint(t.to+l),e.activeForPoint(e.to))||o.comparePoint(a,h,t.point,e.point):h>a&&!PN(t.active,e.active)&&o.compareRange(a,h,t.active,e.active),u>s)break;a=u,c<=0&&t.next(),c>=0&&e.next()}}function PN(t,n){if(t.length!=n.length)return!1;for(var e=0;e=n;i--)t[i+1]=t[i];t[n]=e}function Nce(t,n){for(var e=-1,i=1e9,r=0;r2&&void 0!==arguments[2]?arguments[2]:t.length,i=0,r=0;r=n)return r;if(r==t.length)break;o+=9==t.charCodeAt(r)?e-o%e:1,r=ql(t,r)}return!0===i?-1:t.length}for(var Rce=typeof Symbol>"u"?"__\u037c":Symbol.for("\u037c"),BN=typeof Symbol>"u"?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),$ce=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{},pp=function(){function t(n,e){qe(this,t),this.rules=[];var i=(e||{}).finish;function r(a){return/^@/.test(a)?[a]:a.split(/,\s*/)}function o(a,l,c,u){var h=[],d=/^@(\w+)\b/.exec(a[0]),f=d&&"keyframes"==d[1];if(d&&null==l)return c.push(a[0]+";");for(var p in l){var m=l[p];if(/&/.test(p))o(p.split(/,\s*/).map(function(w){return a.map(function(C){return w.replace(/&/,C)})}).reduce(function(w,C){return w.concat(C)}),m,c);else if(m&&"object"==$n(m)){if(!d)throw new RangeError("The value of a property ("+p+") should be a primitive value.");o(r(p),m,h,f)}else null!=m&&h.push(p.replace(/_.*/,"").replace(/[A-Z]/g,function(w){return"-"+w.toLowerCase()})+": "+m+";")}(h.length||f)&&c.push((!i||d||u?a:a.map(i)).join(", ")+" {"+h.join(" ")+"}")}for(var s in n)o(r(s),n[s],this.rules)}return Xe(t,[{key:"getRules",value:function(){return this.rules.join("\n")}}],[{key:"newName",value:function(){var n=$ce[Rce]||1;return $ce[Rce]=n+1,"\u037c"+n.toString(36)}},{key:"mount",value:function(n,e){(n[BN]||new EJe(n)).mount(Array.isArray(e)?e:[e])}}]),t}(),fk=null,EJe=function(){function t(n){if(qe(this,t),!n.head&&n.adoptedStyleSheets&&typeof CSSStyleSheet<"u"){if(fk)return n.adoptedStyleSheets=[fk.sheet].concat(n.adoptedStyleSheets),n[BN]=fk;this.sheet=new CSSStyleSheet,n.adoptedStyleSheets=[this.sheet].concat(n.adoptedStyleSheets),fk=this}else{this.styleTag=(n.ownerDocument||n).createElement("style");var e=n.head||n;e.insertBefore(this.styleTag,e.firstChild)}this.modules=[],n[BN]=this}return Xe(t,[{key:"mount",value:function(n){for(var e=this.sheet,i=0,r=0,o=0;o-1&&(this.modules.splice(a,1),r--,a=-1),-1==a){if(this.modules.splice(r++,0,s),e)for(var l=0;l",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Pce=typeof navigator<"u"&&/Chrome\/(\d+)/.exec(navigator.userAgent),MJe=typeof navigator<"u"&&/Mac/.test(navigator.platform),IJe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),FJe=MJe||Pce&&+Pce[1]<57,il=0;il<10;il++)gp[48+il]=gp[96+il]=String(il);for(il=1;il<=24;il++)gp[il+111]="F"+il;for(il=65;il<=90;il++)gp[il]=String.fromCharCode(il+32),o_[il]=String.fromCharCode(il);for(var HN in gp)o_.hasOwnProperty(HN)||(o_[HN]=gp[HN]);function pk(t){return(11==t.nodeType?t.getSelection?t:t.ownerDocument:t).getSelection()}function S0(t,n){return!!n&&(t==n||t.contains(1!=n.nodeType?n.parentNode:n))}function gk(t,n){if(!n.anchorNode)return!1;try{return S0(t,n.anchorNode)}catch{return!1}}function s_(t){return 3==t.nodeType?D0(t,0,t.nodeValue.length).getClientRects():1==t.nodeType?t.getClientRects():[]}function mk(t,n,e,i){return!!e&&(jce(t,n,e,i,-1)||jce(t,n,e,i,1))}function vk(t){for(var n=0;;n++)if(!(t=t.previousSibling))return n}function jce(t,n,e,i,r){for(;;){if(t==e&&n==i)return!0;if(n==(r<0?0:a_(t))){if("DIV"==t.nodeName)return!1;var o=t.parentNode;if(!o||1!=o.nodeType)return!1;n=vk(t)+(r<0?0:1),t=o}else{if(1!=t.nodeType||1==(t=t.childNodes[n+(r<0?-1:0)]).nodeType&&"false"==t.contentEditable)return!1;n=r<0?a_(t):0}}}function a_(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}var Bce={left:0,right:0,top:0,bottom:0};function VN(t,n){var e=n?t.left:t.right;return{left:e,right:e,top:t.top,bottom:t.bottom}}function LJe(t){return{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}var Hce,OJe=function(){function t(){qe(this,t),this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}return Xe(t,[{key:"eq",value:function(n){return this.anchorNode==n.anchorNode&&this.anchorOffset==n.anchorOffset&&this.focusNode==n.focusNode&&this.focusOffset==n.focusOffset}},{key:"setRange",value:function(n){this.set(n.anchorNode,n.anchorOffset,n.focusNode,n.focusOffset)}},{key:"set",value:function(n,e,i,r){this.anchorNode=n,this.anchorOffset=e,this.focusNode=i,this.focusOffset=r}}]),t}(),k0=null;function Vce(t){if(t.setActive)return t.setActive();if(k0)return t.focus(k0);for(var n=[],e=t;e&&(n.push(e,e.scrollTop,e.scrollLeft),e!=e.ownerDocument);e=e.parentNode);if(t.focus(null==k0?{get preventScroll(){return k0={preventScroll:!0},!0}}:void 0),!k0){k0=!1;for(var i=0;i2&&void 0!==arguments[2]?arguments[2]:n,i=Hce||(Hce=document.createRange());return i.setEnd(t,e),i.setStart(t,n),i}function T0(t,n,e){var i={key:n,code:n,keyCode:e,which:e,cancelable:!0},r=new KeyboardEvent("keydown",i);r.synthetic=!0,t.dispatchEvent(r);var o=new KeyboardEvent("keyup",i);return o.synthetic=!0,t.dispatchEvent(o),r.defaultPrevented||o.defaultPrevented}function zce(t){for(;t.attributes.length;)t.removeAttributeNode(t.attributes[0])}var Rc=function(){function t(n,e){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];qe(this,t),this.node=n,this.offset=e,this.precise=i}return Xe(t,null,[{key:"before",value:function(n,e){return new t(n.parentNode,vk(n),e)}},{key:"after",value:function(n,e){return new t(n.parentNode,vk(n)+1,e)}}]),t}(),zN=[],Ps=function(){function t(){qe(this,t),this.parent=null,this.dom=null,this.dirty=2}return Xe(t,[{key:"overrideDOMText",get:function(){return null}},{key:"posAtStart",get:function(){return this.parent?this.parent.posBefore(this):0}},{key:"posAtEnd",get:function(){return this.posAtStart+this.length}},{key:"posBefore",value:function(n){var e,i=this.posAtStart,r=ot(this.children);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(o==n)return i;i+=o.length+o.breakAfter}}catch(s){r.e(s)}finally{r.f()}throw new RangeError("Invalid child in posBefore")}},{key:"posAfter",value:function(n){return this.posBefore(n)+n.length}},{key:"coordsAt",value:function(n,e){return null}},{key:"sync",value:function(n,e){if(2&this.dirty){var i,r,o=this.dom,s=null,a=ot(this.children);try{for(a.s();!(r=a.n()).done;){var l=r.value;if(l.dirty){if(!l.dom&&(i=s?s.nextSibling:o.firstChild)){var c=t.get(i);(!c||!c.parent&&c.canReuseDOM(l))&&l.reuseDOM(i)}l.sync(n,e),l.dirty=0}if(i=s?s.nextSibling:o.firstChild,e&&!e.written&&e.node==o&&i!=l.dom&&(e.written=!0),l.dom.parentNode==o)for(;i&&i!=l.dom;)i=Uce(i);else o.insertBefore(l.dom,i);s=l.dom}}catch(f){a.e(f)}finally{a.f()}for((i=s?s.nextSibling:o.firstChild)&&e&&e.node==o&&(e.written=!0);i;)i=Uce(i)}else if(1&this.dirty){var u,h=ot(this.children);try{for(h.s();!(u=h.n()).done;){var d=u.value;d.dirty&&(d.sync(n,e),d.dirty=0)}}catch(f){h.e(f)}finally{h.f()}}}},{key:"reuseDOM",value:function(n){}},{key:"localPosFromDOM",value:function(n,e){var i;if(n==this.dom)i=this.dom.childNodes[e];else{for(var r=0==a_(n)?0:0==e?-1:1;;){var o=n.parentNode;if(o==this.dom)break;0==r&&o.firstChild!=o.lastChild&&(r=n==o.firstChild?-1:1),n=o}i=r<0?n:n.nextSibling}if(i==this.dom.firstChild)return 0;for(;i&&!t.get(i);)i=i.nextSibling;if(!i)return this.length;for(var s=0,a=0;;s++){var l=this.children[s];if(l.dom==i)return a;a+=l.length+l.breakAfter}}},{key:"domBoundsAround",value:function(n,e){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=-1,o=-1,s=-1,a=-1,l=0,c=i,u=i;le)return h.domBoundsAround(n,e,c);if(d>=n&&-1==r&&(r=l,o=c),c>e&&h.dom.parentNode==this.dom){s=l,a=u;break}u=d,c=d+h.breakAfter}return{from:o,to:a<0?i+this.length:a,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:s=0?this.children[s].dom:null}}},{key:"markDirty",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.dirty|=2,this.markParentsDirty(n)}},{key:"markParentsDirty",value:function(n){for(var e=this.parent;e;e=e.parent){if(n&&(e.dirty|=2),1&e.dirty)return;e.dirty|=1,n=!1}}},{key:"setParent",value:function(n){this.parent!=n&&(this.parent=n,this.dirty&&this.markParentsDirty(!0))}},{key:"setDOM",value:function(n){this.dom&&(this.dom.cmView=null),this.dom=n,n.cmView=this}},{key:"rootView",get:function(){for(var n=this;;){var e=n.parent;if(!e)return n;n=e}}},{key:"replaceChildren",value:function(n,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:zN;this.markDirty();for(var o=n;o0&&void 0!==arguments[0]?arguments[0]:this.length,this.children.length)}},{key:"childPos",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.childCursor().findPos(n,e)}},{key:"toString",value:function(){var n=this.constructor.name.replace("View","");return n+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==n?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}},{key:"isEditable",get:function(){return!0}},{key:"isWidget",get:function(){return!1}},{key:"merge",value:function(n,e,i,r,o,s){return!1}},{key:"become",value:function(n){return!1}},{key:"canReuseDOM",value:function(n){return n.constructor==this.constructor}},{key:"getSide",value:function(){return 0}},{key:"destroy",value:function(){this.parent=null}}],[{key:"get",value:function(n){return n.cmView}}]),t}();function Uce(t){var n=t.nextSibling;return t.parentNode.removeChild(t),n}Ps.prototype.breakAfter=0;var Wce=function(){function t(n,e,i){qe(this,t),this.children=n,this.pos=e,this.i=i,this.off=0}return Xe(t,[{key:"findPos",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;;){if(n>this.pos||n==this.pos&&(e>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=n-this.pos,this;var i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}]),t}();function Gce(t,n,e,i,r,o,s,a,l){var c=t.children,u=c.length?c[n]:null,h=o.length?o[o.length-1]:null,d=h?h.breakAfter:s;if(!(n==i&&u&&!s&&!d&&o.length<2&&u.merge(e,r,o.length?h:null,0==e,a,l))){if(i0&&(!s&&o.length&&u.merge(e,u.length,o[0],!1,a,0)?u.breakAfter=o.shift().breakAfter:(e2),bi={mac:Qce||/Mac/.test($c.platform),windows:/Win/.test($c.platform),linux:/Linux|X11/.test($c.platform),ie:yk,ie_version:Xce?UN.documentMode||6:GN?+GN[1]:WN?+WN[1]:0,gecko:Yce,gecko_version:Yce?+(/Firefox\/(\d+)/.exec($c.userAgent)||[0,0])[1]:0,chrome:!!qN,chrome_version:qN?+qN[1]:0,ios:Qce,android:/Android\b/.test($c.userAgent),webkit:Kce,safari:Jce,webkit_version:Kce?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=UN.documentElement.style.tabSize?"tab-size":"-moz-tab-size"},l_=function(t){Wt(e,Ps);var n=Gt(e);function e(i){var r;return qe(this,e),(r=n.call(this)).text=i,r}return Xe(e,[{key:"length",get:function(){return this.text.length}},{key:"createDOM",value:function(i){this.setDOM(i||document.createTextNode(this.text))}},{key:"sync",value:function(i,r){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(r&&r.node==this.dom&&(r.written=!0),this.dom.nodeValue=this.text)}},{key:"reuseDOM",value:function(i){3==i.nodeType&&this.createDOM(i)}},{key:"merge",value:function(i,r,o){return(!o||o instanceof e&&!(this.length-(r-i)+o.length>256))&&(this.text=this.text.slice(0,i)+(o?o.text:"")+this.text.slice(r),this.markDirty(),!0)}},{key:"split",value:function(i){var r=new e(this.text.slice(i));return this.text=this.text.slice(0,i),this.markDirty(),r}},{key:"localPosFromDOM",value:function(i,r){return i==this.dom?r:r?this.text.length:0}},{key:"domAtPos",value:function(i){return new Rc(this.dom,i)}},{key:"domBoundsAround",value:function(i,r,o){return{from:o,to:o+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}},{key:"coordsAt",value:function(i,r){return XN(this.dom,i,r)}}]),e}(),Gg=function(t){Wt(e,Ps);var n=Gt(e);function e(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;qe(this,e),(r=n.call(this)).mark=i,r.children=o,r.length=s;var a,l=ot(o);try{for(l.s();!(a=l.n()).done;)a.value.setParent(Yn(r))}catch(u){l.e(u)}finally{l.f()}return r}return Xe(e,[{key:"setAttrs",value:function(i){if(zce(i),this.mark.class&&(i.className=this.mark.class),this.mark.attrs)for(var r in this.mark.attrs)i.setAttribute(r,this.mark.attrs[r]);return i}},{key:"reuseDOM",value:function(i){i.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(i),this.dirty|=6)}},{key:"sync",value:function(i,r){this.dom?4&this.dirty&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),jr(_r(e.prototype),"sync",this).call(this,i,r)}},{key:"merge",value:function(i,r,o,s,a,l){return!(o&&(!(o instanceof e&&o.mark.eq(this.mark))||i&&a<=0||ri&&o.push(s=i&&(a=l),s=h,l++}}catch(f){c.e(f)}finally{c.f()}var d=this.length-i;return this.length=i,a>-1&&(this.children.length=a,this.markDirty()),new e(this.mark,o,d)}},{key:"domAtPos",value:function(i){return tue(this,i)}},{key:"coordsAt",value:function(i,r){return iue(this,i,r)}}]),e}();function XN(t,n,e){var i=t.nodeValue.length;n>i&&(n=i);var r=n,o=n,s=0;0==n&&e<0||n==i&&e>=0?bi.chrome||bi.gecko||(n?(r--,s=1):o=0)?0:a.length-1];return bi.safari&&!s&&0==l.width&&(l=Array.prototype.find.call(a,function(c){return c.width})||l),s?VN(l,s<0):l||null}var YN=function(t){Wt(e,Ps);var n=Gt(e);function e(i,r,o){var s;return qe(this,e),(s=n.call(this)).widget=i,s.length=r,s.side=o,s.prevWidget=null,s}return Xe(e,[{key:"split",value:function(i){var r=e.create(this.widget,this.length-i,this.side);return this.length-=i,r}},{key:"sync",value:function(i){this.dom&&this.widget.updateDOM(this.dom,i)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(i)),this.dom.contentEditable="false")}},{key:"getSide",value:function(){return this.side}},{key:"merge",value:function(i,r,o,s,a,l){return!(o&&(!(o instanceof e&&this.widget.compare(o.widget))||i>0&&a<=0||r0?o.length-1:0;s=o[a],!(i>0?0==a:a==o.length-1||s.top0?-1:1);return this.length?s:VN(s,this.side>0)}},{key:"isEditable",get:function(){return!1}},{key:"isWidget",get:function(){return!0}},{key:"destroy",value:function(){jr(_r(e.prototype),"destroy",this).call(this),this.dom&&this.widget.destroy(this.dom)}}],[{key:"create",value:function(i,r,o){return new(i.customView||e)(i,r,o)}}]),e}(),Zce=function(t){Wt(e,YN);var n=Gt(e);function e(){return qe(this,e),n.apply(this,arguments)}return Xe(e,[{key:"domAtPos",value:function(i){var r=this.widget,o=r.topView,s=r.text;return o?KN(i,0,o,s,function(a,l){return a.domAtPos(l)},function(a){return new Rc(s,Math.min(a,s.nodeValue.length))}):new Rc(s,Math.min(i,s.nodeValue.length))}},{key:"sync",value:function(){this.setDOM(this.widget.toDOM())}},{key:"localPosFromDOM",value:function(i,r){var o=this.widget,s=o.topView;return s?eue(i,r,s,o.text):Math.min(r,this.length)}},{key:"ignoreMutation",value:function(){return!1}},{key:"overrideDOMText",get:function(){return null}},{key:"coordsAt",value:function(i,r){var o=this.widget,s=o.topView,a=o.text;return s?KN(i,r,s,a,function(l,c,u){return l.coordsAt(c,u)},function(l,c){return XN(a,l,c)}):XN(a,i,r)}},{key:"destroy",value:function(){var i;jr(_r(e.prototype),"destroy",this).call(this),null===(i=this.widget.topView)||void 0===i||i.destroy()}},{key:"isEditable",get:function(){return!0}},{key:"canReuseDOM",value:function(){return!0}}]),e}();function KN(t,n,e,i,r,o){if(e instanceof Gg){for(var s=e.dom.firstChild;s;s=s.nextSibling){var a=Ps.get(s);if(!a)return o(t,n);var l=S0(s,i),c=a.length+(l?i.nodeValue.length:0);if(t=0;)if(a<0?c>0:c0?-1:1);return o&&o.topr.top?{left:r.left,right:r.right,top:o.top,bottom:o.bottom}:r}},{key:"overrideDOMText",get:function(){return Lo.empty}}]),e}();function tue(t,n){for(var e=t.dom,i=t.children,r=0,o=0;ro&&n0;l--){var c=i[l-1];if(c.dom.parentNode==e)return c.domAtPos(c.length)}for(var u=r;u0&&n instanceof Gg&&r.length&&(i=r[r.length-1])instanceof Gg&&i.mark.eq(n.mark)?nue(i,n.children[0],e-1):(r.push(n),n.setParent(t)),t.length+=n.length}function iue(t,n,e){var i=null,r=-1,o=null,s=-1;!function l(c,u){for(var h=0,d=0;h=u&&(f.children.length?l(f,u-d):!o&&(p>u||d==p&&f.getSide()>0)?(o=f,s=u-d):(d-1}}],[{key:"mark",value:function(i){return new rue(i)}},{key:"widget",value:function(i){var r=i.side||0,o=!!i.block;return new c_(i,r+=o?r>0?3e8:-4e8:r>0?1e8:-1e8,r,o,i.widget||null,!1)}},{key:"replace",value:function(i){var r,o,s=!!i.block;if(i.isBlockGap)r=-5e8,o=4e8;else{var a=oue(i,s);r=(a.start?s?-3e8:-1:5e8)-1,o=1+(a.end?s?2e8:1:-6e8)}return new c_(i,r,o,s,i.widget||null,!0)}},{key:"line",value:function(i){return new tR(i)}},{key:"set",value:function(i){return cs.of(i,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}}]),e}();Hi.none=cs.empty;var rue=function(t){Wt(e,Hi);var n=Gt(e);function e(i){var r;qe(this,e);var o=oue(i);return(r=n.call(this,o.start?-1:5e8,o.end?1:-6e8,null,i)).tagName=i.tagName||"span",r.class=i.class||"",r.attrs=i.attributes||null,r}return Xe(e,[{key:"eq",value:function(i){return this==i||i instanceof e&&this.tagName==i.tagName&&this.class==i.class&&ZN(this.attrs,i.attrs)}},{key:"range",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(i>=r)throw new RangeError("Mark decorations may not be empty");return jr(_r(e.prototype),"range",this).call(this,i,r)}}]),e}();rue.prototype.point=!1;var tR=function(t){Wt(e,Hi);var n=Gt(e);function e(i){return qe(this,e),n.call(this,-2e8,-2e8,null,i)}return Xe(e,[{key:"eq",value:function(i){return i instanceof e&&this.spec.class==i.spec.class&&ZN(this.spec.attributes,i.spec.attributes)}},{key:"range",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(r!=i)throw new RangeError("Line decoration ranges must be zero-length");return jr(_r(e.prototype),"range",this).call(this,i,r)}}]),e}();tR.prototype.mapMode=Xl.TrackBefore,tR.prototype.point=!0;var c_=function(t){Wt(e,Hi);var n=Gt(e);function e(i,r,o,s,a,l){var c;return qe(this,e),(c=n.call(this,r,o,a,i)).block=s,c.isReplace=l,c.mapMode=s?r<=0?Xl.TrackBefore:Xl.TrackAfter:Xl.TrackDel,c}return Xe(e,[{key:"type",get:function(){return this.startSide=5}},{key:"eq",value:function(i){return i instanceof e&&((r=this.widget)==(o=i.widget)||!!(r&&o&&r.compare(o)))&&this.block==i.block&&this.startSide==i.startSide&&this.endSide==i.endSide;var r,o}},{key:"range",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(this.isReplace&&(i>r||i==r&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&r!=i)throw new RangeError("Widget decorations can only have zero-length ranges");return jr(_r(e.prototype),"range",this).call(this,i,r)}}]),e}();function oue(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=t.inclusiveStart,i=t.inclusiveEnd;return null==e&&(e=t.inclusive),null==i&&(i=t.inclusive),{start:e??n,end:i??n}}function nR(t,n,e){var r=e.length-1;r>=0&&e[r]+(arguments.length>3&&void 0!==arguments[3]?arguments[3]:0)>=t?e[r]=Math.max(e[r],n):e.push(t,n)}c_.prototype.point=!0;var ch=function(t){Wt(e,Ps);var n=Gt(e);function e(){var i;return qe(this,e),(i=n.apply(this,arguments)).children=[],i.length=0,i.prevAttrs=void 0,i.attrs=null,i.breakAfter=0,i}return Xe(e,[{key:"merge",value:function(i,r,o,s,a,l){if(o){if(!(o instanceof e))return!1;this.dom||o.transferDOM(this)}return s&&this.setDeco(o?o.attrs:null),qce(this,i,r,o?o.children:[],a,l),!0}},{key:"split",value:function(i){var r=new e;if(r.breakAfter=this.breakAfter,0==this.length)return r;var o=this.childPos(i),s=o.i,a=o.off;a&&(r.append(this.children[s].split(a),0),this.children[s].merge(a,this.children[s].length,null,!1,0,0),s++);for(var l=s;l0&&0==this.children[s-1].length;)this.children[--s].destroy();return this.children.length=s,this.markDirty(),this.length=i,r}},{key:"transferDOM",value:function(i){this.dom&&(this.markDirty(),i.setDOM(this.dom),i.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}},{key:"setDeco",value:function(i){ZN(this.attrs,i)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=i)}},{key:"append",value:function(i,r){nue(this,i,r)}},{key:"addLineDeco",value:function(i){var r=i.spec.attributes,o=i.spec.class;r&&(this.attrs=QN(r,this.attrs||{})),o&&(this.attrs=QN({class:o},this.attrs||{}))}},{key:"domAtPos",value:function(i){return tue(this,i)}},{key:"reuseDOM",value:function(i){"DIV"==i.nodeName&&(this.setDOM(i),this.dirty|=6)}},{key:"sync",value:function(i,r){var o;this.dom?4&this.dirty&&(zce(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(eR(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),jr(_r(e.prototype),"sync",this).call(this,i,r);for(var s=this.dom.lastChild;s&&Ps.get(s)instanceof Gg;)s=s.lastChild;if(!(s&&this.length&&("BR"==s.nodeName||0!=(null===(o=Ps.get(s))||void 0===o?void 0:o.isEditable)||bi.ios&&this.children.some(function(l){return l instanceof l_})))){var a=document.createElement("BR");a.cmIgnore=!0,this.dom.appendChild(a)}}},{key:"measureTextSize",value:function(){if(0==this.children.length||this.length>20)return null;var i,r=0,o=ot(this.children);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(!(s instanceof l_)||/[^ -~]/.test(s.text))return null;var a=s_(s.dom);if(1!=a.length)return null;r+=a[0].width}}catch(l){o.e(l)}finally{o.f()}return r?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:r/this.length}:null}},{key:"coordsAt",value:function(i,r){return iue(this,i,r)}},{key:"become",value:function(i){return!1}},{key:"type",get:function(){return Bo.Text}}],[{key:"find",value:function(i,r){for(var o=0,s=0;o=r){if(a instanceof e)return a;if(l>r)break}s=l+a.breakAfter}return null}}]),e}(),iR=function(t){Wt(e,Ps);var n=Gt(e);function e(i,r,o){var s;return qe(this,e),(s=n.call(this)).widget=i,s.length=r,s.type=o,s.breakAfter=0,s.prevWidget=null,s}return Xe(e,[{key:"merge",value:function(i,r,o,s,a,l){return!(o&&(!(o instanceof e&&this.widget.compare(o.widget))||i>0&&a<=0||r0&&void 0!==arguments[0]?arguments[0]:this.bufferMarks;this.pendingBuffer&&(this.curLine.append(bk(new JN(-1),n),n.length),this.pendingBuffer=0)}},{key:"addBlockWidget",value:function(n){this.flushBuffer(),this.curLine=null,this.content.push(n)}},{key:"finish",value:function(n){this.pendingBuffer&&n<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||this.getLine()}},{key:"buildText",value:function(n,e,i){for(;n>0;){if(this.textOff==this.text.length){var r=this.cursor.next(this.skip),o=r.value,s=r.lineBreak,a=r.done;if(this.skip=0,a)throw new Error("Ran out of text content when drawing inline views");if(s){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,n--;continue}this.text=o,this.textOff=0}var l=Math.min(this.text.length-this.textOff,n,512);this.flushBuffer(e.slice(e.length-i)),this.getLine().append(bk(new l_(this.text.slice(this.textOff,this.textOff+l)),e),i),this.atCursorPos=!0,this.textOff+=l,n-=l,i=0}}},{key:"span",value:function(n,e,i,r){this.buildText(e-n,i,r),this.pos=e,this.openStart<0&&(this.openStart=r)}},{key:"point",value:function(n,e,i,r,o,s){if(this.disallowBlockEffectsFor[s]&&i instanceof c_){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(e>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}var a=e-n;if(i instanceof c_)if(i.block){var l=i.type;l!=Bo.WidgetAfter||this.posCovered()||this.getLine(),this.addBlockWidget(new iR(i.widget||new sue("div"),a,l))}else{var c=YN.create(i.widget||new sue("span"),a,a?0:i.startSide),u=this.atCursorPos&&!c.isEditable&&o<=r.length&&(n0),h=!c.isEditable&&(nr.length||i.startSide<=0),d=this.getLine();2!=this.pendingBuffer||u||(this.pendingBuffer=0),this.flushBuffer(r),u&&(d.append(bk(new JN(1),r),o),o=r.length+Math.max(0,o-r.length)),d.append(bk(c,r),o),this.atCursorPos=h,this.pendingBuffer=h?nr.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=e),this.openStart<0&&(this.openStart=o)}}],[{key:"build",value:function(n,e,i,r,o){var s=new t(n,e,i,o);return s.openEnd=cs.spans(r,e,i,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}}]),t}();function bk(t,n){var e,i=ot(n);try{for(i.s();!(e=i.n()).done;)t=new Gg(e.value,[t],t.length)}catch(o){i.e(o)}finally{i.f()}return t}var sue=function(t){Wt(e,mp);var n=Gt(e);function e(i){var r;return qe(this,e),(r=n.call(this)).tag=i,r}return Xe(e,[{key:"eq",value:function(i){return i.tag==this.tag}},{key:"toDOM",value:function(){return document.createElement(this.tag)}},{key:"updateDOM",value:function(i){return i.nodeName.toLowerCase()==this.tag}}]),e}(),aue=yi.define(),lue=yi.define(),cue=yi.define(),uue=yi.define(),rR=yi.define(),hue=yi.define(),due=yi.define(),fue=yi.define({combine:function(t){return t.some(function(n){return n})}}),pue=yi.define({combine:function(t){return t.some(function(n){return n})}}),gue=function(){function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"nearest",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"nearest",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:5;qe(this,t),this.range=n,this.y=e,this.x=i,this.yMargin=r,this.xMargin=o}return Xe(t,[{key:"map",value:function(n){return n.empty?this:new t(this.range.map(n),this.y,this.x,this.yMargin,this.xMargin)}}]),t}(),mue=$r.define({map:function(t,n){return t.map(n)}});function Pc(t,n,e){var i=t.facet(uue);i.length?i[0](n):window.onerror?window.onerror(String(n),e,void 0,void 0,n):e?console.error(e+":",n):console.error(n)}var _k=yi.define({combine:function(t){return!t.length||t[0]}}),$Je=0,u_=yi.define(),Ba=function(){function t(n,e,i,r){qe(this,t),this.id=n,this.create=e,this.domEventHandlers=i,this.extension=r(this)}return Xe(t,null,[{key:"define",value:function(n,e){var i=e||{},o=i.provide,s=i.decorations;return new t($Je++,n,i.eventHandlers,function(a){var l=[u_.of(a)];return s&&l.push(h_.of(function(c){var u=c.plugin(a);return u?s(u):Hi.none})),o&&l.push(o(a)),l})}},{key:"fromClass",value:function(n,e){return t.define(function(i){return new n(i)},e)}}]),t}(),oR=function(){function t(n){qe(this,t),this.spec=n,this.mustUpdate=null,this.value=null}return Xe(t,[{key:"update",value:function(n){if(this.value){if(this.mustUpdate){var e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(i){if(Pc(e.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(n)}catch(i){Pc(n.state,i,"CodeMirror plugin crashed"),this.deactivate()}return this}},{key:"destroy",value:function(n){var e;if(null!==(e=this.value)&&void 0!==e&&e.destroy)try{this.value.destroy()}catch(i){Pc(n.state,i,"CodeMirror plugin crashed")}}},{key:"deactivate",value:function(){this.spec=this.value=null}}]),t}(),vue=yi.define(),sR=yi.define(),h_=yi.define(),yue=yi.define(),bue=yi.define(),d_=yi.define(),A0=function(){function t(n,e,i,r){qe(this,t),this.fromA=n,this.toA=e,this.fromB=i,this.toB=r}return Xe(t,[{key:"join",value:function(n){return new t(Math.min(this.fromA,n.fromA),Math.max(this.toA,n.toA),Math.min(this.fromB,n.fromB),Math.max(this.toB,n.toB))}},{key:"addToSet",value:function(n){for(var e=n.length,i=this;e>0;e--){var r=n[e-1];if(!(r.fromA>i.toA)){if(r.toAu)break;o+=2}if(!l)return i;new t(l.fromA,l.toA,l.fromB,l.toB).addToSet(i),s=l.toA,a=l.toB}}}]),t}(),_ue=function(){function t(n,e,i){qe(this,t),this.view=n,this.state=e,this.transactions=i,this.flags=0,this.startState=n.state,this.changes=lh.empty(this.startState.doc.length);var r,o=ot(i);try{for(o.s();!(r=o.n()).done;)this.changes=this.changes.compose(r.value.changes)}catch(l){o.e(l)}finally{o.f()}var a=[];this.changes.iterChangedRanges(function(l,c,u,h){return a.push(new A0(l,c,u,h))}),this.changedRanges=a}return Xe(t,[{key:"viewportChanged",get:function(){return(4&this.flags)>0}},{key:"heightChanged",get:function(){return(2&this.flags)>0}},{key:"geometryChanged",get:function(){return this.docChanged||(10&this.flags)>0}},{key:"focusChanged",get:function(){return(1&this.flags)>0}},{key:"docChanged",get:function(){return!this.changes.empty}},{key:"selectionSet",get:function(){return this.transactions.some(function(n){return n.selection})}},{key:"empty",get:function(){return 0==this.flags&&0==this.transactions.length}}],[{key:"create",value:function(n,e,i){return new t(n,e,i)}}]),t}(),Ts=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(Ts||(Ts={})),aR=Ts.LTR,PJe=Ts.RTL;function wue(t){for(var n=[],e=0;e=e){if(a.level==i)return s;(o<0||(0!=r?r<0?a.frome:n[o].level>a.level))&&(o=s)}}if(o<0)throw new RangeError("Index out of range");return o}}]),t}(),As=[];function Due(t){return[new E0(0,t,0)]}var Tue="";function zJe(t,n,e,i,r){var o,s=i.head-t.from,a=-1;if(0==s){if(!r||!t.length)return null;n[0].level!=e&&(s=n[0].side(!1,e),a=0)}else if(s==t.length){if(r)return null;var l=n[n.length-1];l.level!=e&&(s=l.side(!0,e),a=n.length-1)}a<0&&(a=E0.find(n,s,null!==(o=i.bidiLevel)&&void 0!==o?o:-1,i.assoc));var c=n[a];s==c.side(r,e)&&(s=(c=n[a+=r?1:-1]).side(!r,e));var u=r==(c.dir==e),h=ql(t.text,s,u);if(Tue=t.text.slice(Math.min(s,h),Math.max(s,h)),h!=c.side(r,e))return _n.cursor(h+t.from,u?-1:1,c.level);var d=a==(r?n.length-1:0)?null:n[a+(r?1:-1)];return d||c.level==e?d&&d.level1){var h,d=ot(this.points);try{for(d.s();!(h=d.n()).done;){var f=h.value;f.node==n&&f.pos>this.text.length&&(f.pos-=c-1)}}catch(p){d.e(p)}finally{d.f()}}s=l+c}}},{key:"readNode",value:function(n){if(!n.cmIgnore){var e=Ps.get(n),i=e&&e.overrideDOMText;if(null!=i){this.findPointInside(n,i.length);for(var r=i.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else 3==n.nodeType?this.readTextNode(n):"BR"==n.nodeName?n.nextSibling&&this.lineBreak():1==n.nodeType&&this.readRange(n.firstChild,null)}}},{key:"findPointBefore",value:function(n,e){var i,r=ot(this.points);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.node==n&&n.childNodes[o.offset]==e&&(o.pos=this.text.length)}}catch(s){r.e(s)}finally{r.f()}}},{key:"findPointInside",value:function(n,e){var i,r=ot(this.points);try{for(r.s();!(i=r.n()).done;){var o=i.value;(3==n.nodeType?o.node==n:n.contains(o.node))&&(o.pos=this.text.length+Math.min(e,o.offset))}}catch(s){r.e(s)}finally{r.f()}}}]),t}();function Eue(t){return 1==t.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}var Mue=Xe(function t(n,e){qe(this,t),this.node=n,this.offset=e,this.pos=-1}),Iue=function(t){Wt(e,Ps);var n=Gt(e);function e(i){var r;return qe(this,e),(r=n.call(this)).view=i,r.compositionDeco=Hi.none,r.decorations=[],r.dynamicDecorationMap=[],r.minWidth=0,r.minWidthFrom=0,r.minWidthTo=0,r.impreciseAnchor=null,r.impreciseHead=null,r.forceSelection=!1,r.lastUpdate=Date.now(),r.setDOM(i.contentDOM),r.children=[new ch],r.children[0].setParent(Yn(r)),r.updateDeco(),r.updateInner([new A0(0,0,0,i.state.doc.length)],0),r}return Xe(e,[{key:"length",get:function(){return this.view.state.doc.length}},{key:"update",value:function(i){var r=this,o=i.changedRanges;this.minWidth>0&&o.length&&(o.every(function(a){return a.toAr.minWidthTo})?(this.minWidthFrom=i.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=i.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.view.inputState.composing<0?this.compositionDeco=Hi.none:(i.transactions.length||this.dirty)&&(this.compositionDeco=function(a,l){var c=Lue(a);if(!c)return Hi.none;var h=c.to,d=c.node,f=c.text,p=l.mapPos(c.from,1),m=Math.max(p,l.mapPos(h,-1)),w=a.state,C=3==d.nodeType?d.nodeValue:new Aue([],w).readRange(d.firstChild,null).text;if(m-p=0?i[s]:null;if(!a)break;var l=a.fromA,c=a.toA,d=RJe.build(this.view.state.doc,a.fromB,a.toB,this.decorations,this.dynamicDecorationMap),f=d.content,p=d.breakAtStart,m=d.openStart,w=d.openEnd,C=o.findPos(c,1),k=C.i,E=C.off,L=o.findPos(l,-1);Gce(this,L.i,L.off,k,E,f,p,m,w)}}},{key:"updateSelection",value:function(){var i=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange(),o||this.mayControlSelection()){var s=this.forceSelection;this.forceSelection=!1;var a=this.view.state.selection.main,l=this.domAtPos(a.anchor),c=a.empty?l:this.domAtPos(a.head);if(bi.gecko&&a.empty&&function UJe(t){return 1==t.node.nodeType&&t.node.firstChild&&(0==t.offset||"false"==t.node.childNodes[t.offset-1].contentEditable)&&(t.offset==t.node.childNodes.length||"false"==t.node.childNodes[t.offset].contentEditable)}(l)){var u=document.createTextNode("");this.view.observer.ignore(function(){return l.node.insertBefore(u,l.node.childNodes[l.offset]||null)}),l=c=new Rc(u,0),s=!0}var h=this.view.observer.selectionRange;!s&&h.focusNode&&mk(l.node,l.offset,h.anchorNode,h.anchorOffset)&&mk(c.node,c.offset,h.focusNode,h.focusOffset)||(this.view.observer.ignore(function(){bi.android&&bi.chrome&&i.dom.contains(h.focusNode)&&function XJe(t,n){for(var e=t;e&&e!=n;e=e.assignedSlot||e.parentNode)if(1==e.nodeType&&"false"==e.contentEditable)return!0;return!1}(h.focusNode,i.dom)&&(i.dom.blur(),i.dom.focus({preventScroll:!0}));var d=pk(i.view.root);if(d)if(a.empty){if(bi.gecko){var f=function GJe(t,n){return 1!=t.nodeType?0:(n&&"false"==t.childNodes[n-1].contentEditable?1:0)|(na.head){var w=[c,l];l=w[0],c=w[1]}m.setEnd(c.node,c.offset),m.setStart(l.node,l.offset),d.removeAllRanges(),d.addRange(m)}}),this.view.observer.setSelectionRange(l,c)),this.impreciseAnchor=l.precise?null:new Rc(h.anchorNode,h.anchorOffset),this.impreciseHead=c.precise?null:new Rc(h.focusNode,h.focusOffset)}}},{key:"enforceCursorAssoc",value:function(){if(!this.compositionDeco.size){var i=this.view,r=i.state.selection.main,o=pk(i.root),s=i.observer.selectionRange,a=s.anchorNode,l=s.anchorOffset;if(o&&r.empty&&r.assoc&&o.modify){var c=ch.find(this,r.head);if(c){var u=c.posAtStart;if(r.head!=u&&r.head!=u+c.length){var h=this.coordsAt(r.head,-1),d=this.coordsAt(r.head,1);if(h&&d&&!(h.bottom>d.top)){var f=this.domAtPos(r.head+r.assoc);o.collapse(f.node,f.offset),o.modify("move",r.assoc<0?"forward":"backward","lineboundary"),i.observer.readSelectionRange();var p=i.observer.selectionRange;i.docView.posFromDOM(p.anchorNode,p.anchorOffset)!=r.from&&o.collapse(a,l)}}}}}}},{key:"mayControlSelection",value:function(){var i=this.view.root.activeElement;return i==this.dom||gk(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i))}},{key:"nearest",value:function(i){for(var r=i;r;){var o=Ps.get(r);if(o&&o.rootView==this)return o;r=r.parentNode}return null}},{key:"posFromDOM",value:function(i,r){var o=this.nearest(i);if(!o)throw new RangeError("Trying to find position for a DOM position outside of the document");return o.localPosFromDOM(i,r)+o.posAtStart}},{key:"domAtPos",value:function(i){for(var r=this.childCursor().findPos(i,-1),o=r.i,s=r.off;ol||i==l&&a.type!=Bo.WidgetBefore&&a.type!=Bo.WidgetAfter&&(!s||2==r||this.children[s-1].breakAfter||this.children[s-1].type==Bo.WidgetBefore&&r>-2))return a.coordsAt(i-l,r);o=l}}},{key:"measureVisibleLineHeights",value:function(i){for(var r=[],o=i.from,s=i.to,a=this.view.contentDOM.clientWidth,l=a>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,c=-1,u=this.view.textDirection==Ts.LTR,h=0,d=0;ds)break;if(h>=o){var m=f.dom.getBoundingClientRect();if(r.push(m.height),l){var w=f.dom.lastChild,C=w?s_(w):[];if(C.length){var k=C[C.length-1],E=u?k.right-m.left:m.right-k.left;E>c&&(c=E,this.minWidth=a,this.minWidthFrom=h,this.minWidthTo=p)}}}h=p+f.breakAfter}return r}},{key:"textDirectionAt",value:function(i){var r=this.childPos(i,1).i;return"rtl"==getComputedStyle(this.children[r].dom).direction?Ts.RTL:Ts.LTR}},{key:"measureTextSize",value:function(){var i,r=this,o=ot(this.children);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(s instanceof ch){var a=s.measureTextSize();if(a)return a}}}catch(h){o.e(h)}finally{o.f()}var l,c,u=document.createElement("div");return u.className="cm-line",u.style.width="99999px",u.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(function(){r.dom.appendChild(u);var h=s_(u.firstChild)[0];l=u.getBoundingClientRect().height,c=h?h.width/27:7,u.remove()}),{lineHeight:l,charWidth:c}}},{key:"childCursor",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.length,r=this.children.length;return r&&(i-=this.children[--r].length),new Wce(this.children,i,r)}},{key:"computeBlockGapDeco",value:function(){for(var i=[],r=this.view.viewState,o=0,s=0;;s++){var a=s==r.viewports.length?null:r.viewports[s],l=a?a.from-1:this.length;if(l>o){var c=r.lineBlockAt(l).bottom-r.lineBlockAt(o).top;i.push(Hi.replace({widget:new Fue(c),block:!0,inclusive:!0,isBlockGap:!0}).range(o,l))}if(!a)break;o=a.to+1}return Hi.set(i)}},{key:"updateDeco",value:function(){for(var i=this,r=this.view.state.facet(h_).map(function(s,a){return(i.dynamicDecorationMap[a]="function"==typeof s)?s(i.view):s}),o=r.length;os.anchor?-1:1);if(a){!s.empty&&(r=this.coordsAt(s.anchor,s.anchor>s.head?-1:1))&&(a={left:Math.min(a.left,r.left),top:Math.min(a.top,r.top),right:Math.max(a.right,r.right),bottom:Math.max(a.bottom,r.bottom)});var l,c=0,u=0,h=0,d=0,f=ot(this.view.state.facet(bue).map(function(L){return L(o.view)}));try{for(f.s();!(l=f.n()).done;){var p=l.value;if(p){var m=p.left,w=p.right,C=p.top,k=p.bottom;null!=m&&(c=Math.max(c,m)),null!=w&&(u=Math.max(u,w)),null!=C&&(h=Math.max(h,C)),null!=k&&(d=Math.max(d,k))}}}catch(L){f.e(L)}finally{f.f()}!function(L,B,G,oe,fe,re,ce,ue){for(var pe=L.ownerDocument,De=pe.defaultView||window,ie=L;ie;)if(1==ie.nodeType){var ge=void 0,we=ie==pe.body;if(we)ge=LJe(De);else{if(ie.scrollHeight<=ie.clientHeight&&ie.scrollWidth<=ie.clientWidth){ie=ie.assignedSlot||ie.parentNode;continue}var le=ie.getBoundingClientRect();ge={left:le.left,right:le.left+ie.clientWidth,top:le.top,bottom:le.top+ie.clientHeight}}var Fe=0,z=0;if("nearest"==fe)B.top0&&B.bottom>ge.bottom+z&&(z=B.bottom-ge.bottom+z+ce)):B.bottom>ge.bottom&&(z=B.bottom-ge.bottom+ce,G<0&&B.top-z0&&B.right>ge.right+Fe&&(Fe=B.right-ge.right+Fe+re)):B.right>ge.right&&(Fe=B.right-ge.right+re,G<0&&B.left0&&e<=0)n=a_(t=t.childNodes[n-1]);else{if(!(1==t.nodeType&&n=0))return null;t=t.childNodes[n],n=0}}}var qJe=function(){function t(){qe(this,t),this.changes=[]}return Xe(t,[{key:"compareRange",value:function(n,e){nR(n,e,this.changes)}},{key:"comparePoint",value:function(n,e){nR(n,e,this.changes)}}]),t}();function YJe(t,n){return n.left>t?n.left-t:Math.max(0,t-n.right)}function KJe(t,n){return n.top>t?n.top-t:Math.max(0,t-n.bottom)}function uR(t,n){return t.topn.top+1}function Nue(t,n){return nt.bottom?{top:t.top,left:t.left,right:t.right,bottom:n}:t}function hR(t,n,e){for(var i,r,o,s,a,l,c,u,h=!1,d=t.firstChild;d;d=d.nextSibling)for(var f=s_(d),p=0;pC||s==C&&o>w){i=d,r=m,o=w,s=C;var k=C?e0?p0)}0==w?e>m.bottom&&(!c||c.bottomm.top)&&(l=d,u=m):c&&uR(c,m)?c=Rue(c,m.bottom):u&&uR(u,m)&&(u=Nue(u,m.top))}if(c&&c.bottom>=e?(i=a,r=c):u&&u.top<=e&&(i=l,r=u),!i)return{node:t,offset:0};var E=Math.max(r.left,Math.min(r.right,n));return 3==i.nodeType?$ue(i,E,e):h&&"false"!=i.contentEditable?hR(i,E,e):{node:t,offset:Array.prototype.indexOf.call(t.childNodes,i)+(n>=(r.left+r.right)/2?1:0)}}function $ue(t,n,e){for(var i=t.nodeValue.length,r=-1,o=1e9,s=0,a=0;ae?u.top-e:e-u.bottom)-1;if(u.left-1<=n&&u.right+1>=n&&h=(u.left+u.right)/2,f=d;if((bi.chrome||bi.gecko)&&D0(t,a).getBoundingClientRect().left==u.right&&(f=!d),h<=0)return{node:t,offset:a+(f?1:0)};r=a+(f?1:0),o=h}}}return{node:t,offset:r>-1?r:s>0?t.nodeValue.length:0}}function Pue(t,n,e){var i,r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,s=t.contentDOM.getBoundingClientRect(),a=s.top+t.viewState.paddingTop,l=t.viewState.docHeight,c=n.x,u=n.y,h=u-a;if(h<0)return 0;if(h>l)return t.state.doc.length;for(var d=t.defaultLineHeight/2,f=!1;(r=t.elementAtHeight(h)).type!=Bo.Text;)for(;!((h=o>0?r.bottom+d:r.top-d)>=0&&h<=l);){if(f)return e?null:0;f=!0,o=-o}u=a+h;var p=r.from;if(pt.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:e?null:jue(t,s,r,c,u);var m=t.dom.ownerDocument,w=t.root.elementFromPoint?t.root:m,C=w.elementFromPoint(c,u);C&&!t.contentDOM.contains(C)&&(C=null),C||(c=Math.max(s.left+1,Math.min(s.right-1,c)),(C=w.elementFromPoint(c,u))&&!t.contentDOM.contains(C)&&(C=null));var k,E=-1;if(C&&0!=(null===(i=t.docView.nearest(C))||void 0===i?void 0:i.isEditable))if(m.caretPositionFromPoint){var L=m.caretPositionFromPoint(c,u);L&&(k=L.offsetNode,E=L.offset)}else if(m.caretRangeFromPoint){var B=m.caretRangeFromPoint(c,u);B&&(E=B.startOffset,(!t.contentDOM.contains(k=B.startContainer)||bi.safari&&function JJe(t,n,e){var i;if(3!=t.nodeType||n!=(i=t.nodeValue.length))return!1;for(var r=t.nextSibling;r;r=r.nextSibling)if(1!=r.nodeType||"BR"!=r.nodeName)return!1;return D0(t,i-1,i).getBoundingClientRect().left>e}(k,E,c)||bi.chrome&&function QJe(t,n,e){if(0!=n)return!1;for(var i=t;;){var r=i.parentNode;if(!r||1!=r.nodeType||r.firstChild!=i)return!1;if(r.classList.contains("cm-line"))break;i=r}return e-(1==t.nodeType?t.getBoundingClientRect():D0(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect()).left>5}(k,E,c))&&(k=void 0))}if(!k||!t.docView.dom.contains(k)){var G=ch.find(t.docView,p);if(!G)return h>r.top+r.height/2?r.to:r.from;var oe=hR(G.dom,c,u);k=oe.node,E=oe.offset}var fe=t.docView.nearest(k);if(!fe)return null;if(fe.isWidget){var re=fe.dom.getBoundingClientRect();return n.y1.5*t.defaultLineHeight&&(o+=Math.floor((r-e.top)/t.defaultLineHeight)*t.viewState.heightOracle.lineLength);var s=t.state.sliceDoc(e.from,e.to);return e.from+jN(s,o,t.state.tabSize)}function Bue(t,n,e,i){for(var r=t.state.doc.lineAt(n.head),o=t.bidiSpans(r),s=t.textDirectionAt(r.from),a=n,l=null;;){var c=zJe(r,o,s,a,e),u=Tue;if(!c){if(r.number==(e?t.state.doc.lines:1))return a;u="\n",r=t.state.doc.line(r.number+(e?1:-1)),o=t.bidiSpans(r),c=_n.cursor(e?r.from:r.to)}if(l){if(!l(u))return a}else{if(!i)return c;l=i(u)}a=c}}function dR(t,n,e){for(var i=t.state.facet(yue).map(function(a){return a(t)});;){var r,o=!1,s=ot(i);try{for(s.s();!(r=s.n()).done;)r.value.between(e.from-1,e.from+1,function(a,l,c){e.from>a&&e.frome.from?_n.cursor(a,1):_n.cursor(l,-1),o=!0)})}catch(a){s.e(a)}finally{s.f()}if(!o)return e}}var eQe=function(){function t(n){var e=this;qe(this,t),this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.chromeScrollHack=-1,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.mouseSelection=null;var i=function(s,a){e.ignoreDuringComposition(a)||"keydown"==a.type&&e.keydown(n,a)||(e.mustFlushObserver(a)&&n.observer.forceFlush(),e.runCustomHandlers(a.type,n,a)?a.preventDefault():s(n,a))},r=function(s){var a=Sa[s];n.contentDOM.addEventListener(s,function(l){zue(n,l)&&i(a,l)},fR[s]),e.registeredEvents.push(s)};for(var o in Sa)r(o);n.scrollDOM.addEventListener("mousedown",function(s){s.target==n.scrollDOM&&s.clientY>n.contentDOM.getBoundingClientRect().bottom&&i(Sa.mousedown,s)}),bi.chrome&&102==bi.chrome_version&&n.scrollDOM.addEventListener("wheel",function(){e.chromeScrollHack<0?n.contentDOM.style.pointerEvents="none":window.clearTimeout(e.chromeScrollHack),e.chromeScrollHack=setTimeout(function(){e.chromeScrollHack=-1,n.contentDOM.style.pointerEvents=""},100)},{passive:!0}),this.notifiedFocused=n.hasFocus,bi.safari&&n.contentDOM.addEventListener("input",function(){return null})}return Xe(t,[{key:"setSelectionOrigin",value:function(n){this.lastSelectionOrigin=n,this.lastSelectionTime=Date.now()}},{key:"ensureHandlers",value:function(n,e){var i,r,o=this;this.customHandlers=[];var s,a=ot(e);try{for(a.s();!(s=a.n()).done;){var l=s.value;if(r=null===(i=l.update(n).spec)||void 0===i?void 0:i.domEventHandlers){this.customHandlers.push({plugin:l.value,handlers:r});var c=function(h){o.registeredEvents.indexOf(h)<0&&"scroll"!=h&&(o.registeredEvents.push(h),n.contentDOM.addEventListener(h,function(d){zue(n,d)&&o.runCustomHandlers(h,n,d)&&d.preventDefault()}))};for(var u in r)c(u)}}}catch(h){a.e(h)}finally{a.f()}}},{key:"runCustomHandlers",value:function(n,e,i){var r,o=ot(this.customHandlers);try{for(o.s();!(r=o.n()).done;){var s=r.value,a=s.handlers[n];if(a)try{if(a.call(s.plugin,i,e)||i.defaultPrevented)return!0}catch(l){Pc(e.state,l)}}}catch(l){o.e(l)}finally{o.f()}return!1}},{key:"runScrollHandlers",value:function(n,e){this.lastScrollTop=n.scrollDOM.scrollTop,this.lastScrollLeft=n.scrollDOM.scrollLeft;var i,r=ot(this.customHandlers);try{for(r.s();!(i=r.n()).done;){var o=i.value,s=o.handlers.scroll;if(s)try{s.call(o.plugin,e,n)}catch(a){Pc(n.state,a)}}}catch(a){r.e(a)}finally{r.f()}}},{key:"keydown",value:function(n,e){var i,r=this;return this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&Date.now()-1&&e.ctrlKey&&!e.shiftKey)||(this.pendingIOSKey=i||e,setTimeout(function(){return r.flushIOSKey(n)},250),0)):(n.observer.delayAndroidKey(e.key,e.keyCode),!0))}},{key:"flushIOSKey",value:function(n){var e=this.pendingIOSKey;return!!e&&(this.pendingIOSKey=void 0,T0(n.contentDOM,e.key,e.keyCode))}},{key:"ignoreDuringComposition",value:function(n){return!!/^key/.test(n.type)&&(this.composing>0||!!(bi.safari&&!bi.ios&&Date.now()-this.compositionEndedAt<100)&&(this.compositionEndedAt=0,!0))}},{key:"mustFlushObserver",value:function(n){return"keydown"==n.type&&229!=n.keyCode}},{key:"startMouseSelection",value:function(n){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=n}},{key:"update",value:function(n){this.mouseSelection&&this.mouseSelection.update(n),n.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}},{key:"destroy",value:function(){this.mouseSelection&&this.mouseSelection.destroy()}}]),t}(),Hue=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],tQe="dthko",Vue=[16,17,18,20,91,92,224,225];function wk(t){return.7*t+8}var nQe=function(){function t(n,e,i,r){qe(this,t),this.view=n,this.style=i,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=e,this.scrollParent=function(s){for(var a=s.ownerDocument,l=s.parentNode;l&&l!=a.body;)if(1==l.nodeType){if(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth)return l;l=l.assignedSlot||l.parentNode}else{if(11!=l.nodeType)break;l=l.host}return null}(n.contentDOM);var a,l,o=n.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=e.shiftKey,this.multiple=n.state.facet(Qo.allowMultipleSelections)&&(a=e,(l=n.state.facet(aue)).length?l[0](a):bi.mac?a.metaKey:a.ctrlKey),this.dragMove=function(s,a){var l=s.state.facet(lue);return l.length?l[0](a):bi.mac?!a.altKey:!a.ctrlKey}(n,e),this.dragging=!(!function(s,a){if(s.state.selection.main.empty)return!1;var l=pk(s.root);if(!l||0==l.rangeCount)return!0;for(var c=l.getRangeAt(0).getClientRects(),u=0;u=a.clientX&&h.top<=a.clientY&&h.bottom>=a.clientY)return!0}return!1}(n,e)||1!=Zue(e))&&null}return Xe(t,[{key:"start",value:function(n){!1===this.dragging&&(n.preventDefault(),this.select(n))}},{key:"move",value:function(n){var e;if(0==n.buttons)return this.destroy();if(!1===this.dragging){this.select(this.lastEvent=n);var i=0,r=0,o=(null===(e=this.scrollParent)||void 0===e?void 0:e.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight};n.clientX<=o.left?i=-wk(o.left-n.clientX):n.clientX>=o.right&&(i=wk(n.clientX-o.right)),n.clientY<=o.top?r=-wk(o.top-n.clientY):n.clientY>=o.bottom&&(r=wk(n.clientY-o.bottom)),this.setScrollSpeed(i,r)}}},{key:"up",value:function(n){null==this.dragging&&this.select(this.lastEvent),this.dragging||n.preventDefault(),this.destroy()}},{key:"destroy",value:function(){this.setScrollSpeed(0,0);var n=this.view.contentDOM.ownerDocument;n.removeEventListener("mousemove",this.move),n.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}},{key:"setScrollSpeed",value:function(n,e){var i=this;this.scrollSpeed={x:n,y:e},n||e?this.scrolling<0&&(this.scrolling=setInterval(function(){return i.scroll()},50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}},{key:"scroll",value:function(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}},{key:"select",value:function(n){var e=this.style.get(n,this.extend,this.multiple);!this.mustSelect&&e.eq(this.view.state.selection)&&e.main.assoc==this.view.state.selection.main.assoc||this.view.dispatch({selection:e,userEvent:"select.pointer"}),this.mustSelect=!1}},{key:"update",value:function(n){var e=this;n.docChanged&&this.dragging&&(this.dragging=this.dragging.map(n.changes)),this.style.update(n)&&setTimeout(function(){return e.select(e.lastEvent)},20)}}]),t}();function zue(t,n){if(!n.bubbles)return!0;if(n.defaultPrevented)return!1;for(var e,i=n.target;i!=t.contentDOM;i=i.parentNode)if(!i||11==i.nodeType||(e=Ps.get(i))&&e.ignoreEvent(n))return!1;return!0}var Sa=Object.create(null),fR=Object.create(null),Uue=bi.ie&&bi.ie_version<15||bi.ios&&bi.webkit_version<604;function Wue(t,n){var e,i=t.state,r=1,o=i.toText(n),s=o.lines==i.selection.ranges.length;if(null!=pR&&i.selection.ranges.every(function(c){return c.empty})&&pR==o.toString()){var l=-1;e=i.changeByRange(function(c){var u=i.doc.lineAt(c.from);if(u.from==l)return{range:c};l=u.from;var h=i.toText((s?o.line(r++).text:n)+i.lineBreak);return{changes:{from:u.from,insert:h},range:_n.cursor(c.from+h.length)}})}else e=s?i.changeByRange(function(c){var u=o.line(r++);return{changes:{from:c.from,to:c.to,insert:u.text},range:_n.cursor(c.from+u.length)}}):i.replaceSelection(o);t.dispatch(e,{userEvent:"input.paste",scrollIntoView:!0})}function Gue(t,n,e,i){if(1==i)return _n.cursor(n,e);if(2==i)return function(l,c){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,h=l.charCategorizer(c),d=l.doc.lineAt(c),f=c-d.from;if(0==d.length)return _n.cursor(c);0==f?u=1:f==d.length&&(u=-1);var p=f,m=f;u<0?p=ql(d.text,f,!1):m=ql(d.text,f);for(var w=h(d.text.slice(p,m));p>0;){var C=ql(d.text,p,!1);if(h(d.text.slice(C,p))!=w)break;p=C}for(;mDate.now()-2e3)){var e,i=null,r=ot(t.state.facet(cue));try{for(r.s();!(e=r.n()).done&&!(i=(0,e.value)(t,n)););}catch(s){r.e(s)}finally{r.f()}if(i||0!=n.button||(l=Yue(s=t,a=n),c=Zue(a),u=s.state.selection,i={update:function(h){h.docChanged&&(l.pos=h.changes.mapPos(l.pos),u=u.map(h.changes))},get:function(h,d,f){var p=Yue(s,h),m=Gue(s,p.pos,p.bias,c);if(l.pos!=p.pos&&!d){var w=Gue(s,l.pos,l.bias,c),C=Math.min(w.from,m.from),k=Math.max(w.to,m.to);m=C1&&u.ranges.some(function(E){return E.eq(m)})?function(E,L){for(var B=0;;B++)if(E.ranges[B].eq(L))return _n.create(E.ranges.slice(0,B).concat(E.ranges.slice(B+1)),E.mainIndex==B?0:E.mainIndex-(E.mainIndex>B?1:0))}(u,m):f?u.addRange(m):_n.create([m])}}),i){var o=t.root.activeElement!=t.contentDOM;t.inputState.startMouseSelection(new nQe(t,n,i,o)),o&&t.observer.ignore(function(){return Vce(t.contentDOM)}),t.inputState.mouseSelection&&t.inputState.mouseSelection.start(n)}}var s,a,l,c,u};var que=function(t,n){return t>=n.top&&t<=n.bottom},Xue=function(t,n,e){return que(n,e)&&t>=e.left&&t<=e.right};function iQe(t,n,e,i){var r=ch.find(t.docView,n);if(!r)return 1;var o=n-r.posAtStart;if(0==o)return 1;if(o==r.length)return-1;var s=r.coordsAt(o,-1);if(s&&Xue(e,i,s))return-1;var a=r.coordsAt(o,1);return a&&Xue(e,i,a)?1:s&&que(i,s)?-1:1}function Yue(t,n){var e=t.posAtCoords({x:n.clientX,y:n.clientY},!1);return{pos:e,bias:iQe(t,e,n.clientX,n.clientY)}}var rQe=bi.ie&&bi.ie_version<=11,Kue=null,Jue=0,Que=0;function Zue(t){if(!rQe)return t.detail;var n=Kue,e=Que;return Kue=t,Que=Date.now(),Jue=!n||e>Date.now()-400&&Math.abs(n.clientX-t.clientX)<2&&Math.abs(n.clientY-t.clientY)<2?(Jue+1)%3:1}function ehe(t,n,e,i){if(e){var r=t.posAtCoords({x:n.clientX,y:n.clientY},!1);n.preventDefault();var o=t.inputState.mouseSelection,s=i&&o&&o.dragging&&o.dragMove?{from:o.dragging.from,to:o.dragging.to}:null,a={from:r,insert:e},l=t.state.changes(s?[s,a]:a);t.focus(),t.dispatch({changes:l,selection:{anchor:l.mapPos(r,-1),head:l.mapPos(r,1)},userEvent:s?"move.drop":"input.drop"})}}Sa.dragstart=function(t,n){var e=t.state.selection.main,i=t.inputState.mouseSelection;i&&(i.dragging=e),n.dataTransfer&&(n.dataTransfer.setData("Text",t.state.sliceDoc(e.from,e.to)),n.dataTransfer.effectAllowed="copyMove")},Sa.drop=function(t,n){if(n.dataTransfer){if(t.state.readOnly)return n.preventDefault();var e=n.dataTransfer.files;e&&e.length?function(){n.preventDefault();for(var i=Array(e.length),r=0,o=function(){++r==e.length&&ehe(t,n,i.filter(function(l){return null!=l}).join(t.state.lineBreak),!1)},s=function(l){var c=new FileReader;c.onerror=o,c.onload=function(){/[\x00-\x08\x0e-\x1f]{2}/.test(c.result)||(i[l]=c.result),o()},c.readAsText(e[l])},a=0;am&&(c.push(k.text),u.push({from:k.from,to:Math.min(a.doc.length,k.to+1)})),m=k.number}}catch(E){w.e(E)}finally{w.f()}h=!0}return{text:c.join(a.lineBreak),ranges:u,linewise:h}}(t.state),i=e.text,r=e.ranges,o=e.linewise;if(i||o){pR=o?i:null;var s=Uue?null:n.clipboardData;s?(n.preventDefault(),s.clearData(),s.setData("text/plain",i)):function(a,l){var c=a.dom.parentNode;if(c){var u=c.appendChild(document.createElement("textarea"));u.style.cssText="position: fixed; left: -10000px; top: 10px",u.value=l,u.focus(),u.selectionEnd=l.length,u.selectionStart=0,setTimeout(function(){u.remove(),a.focus()},50)}}(t,i),"cut"!=n.type||t.state.readOnly||t.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"})}};var the=fp.define();function nhe(t,n){var e,i=[],r=ot(t.facet(due));try{for(r.s();!(e=r.n()).done;){var o=(0,e.value)(t,n);o&&i.push(o)}}catch(s){r.e(s)}finally{r.f()}return i?t.update({effects:i,annotations:the.of(!0)}):null}function ihe(t){setTimeout(function(){var n=t.hasFocus;if(n!=t.inputState.notifiedFocused){var e=nhe(t.state,n);e?t.dispatch(e):t.update([])}},10)}Sa.focus=function(t){t.inputState.lastFocusTime=Date.now(),t.scrollDOM.scrollTop||!t.inputState.lastScrollTop&&!t.inputState.lastScrollLeft||(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),ihe(t)},Sa.blur=function(t){t.observer.clearSelectionRange(),ihe(t)},Sa.compositionstart=Sa.compositionupdate=function(t){null==t.inputState.compositionFirstChange&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0)},Sa.compositionend=function(t){t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionFirstChange=null,bi.chrome&&bi.android&&t.observer.flushSoon(),setTimeout(function(){t.inputState.composing<0&&t.docView.compositionDeco.size&&t.update([])},50)},Sa.contextmenu=function(t){t.inputState.lastContextMenu=Date.now()},Sa.beforeinput=function(t,n){var e,i;if(bi.chrome&&bi.android&&(i=Hue.find(function(o){return o.inputType==n.inputType}))&&(t.observer.delayAndroidKey(i.key,i.keyCode),"Backspace"==i.key||"Delete"==i.key)){var r=(null===(e=window.visualViewport)||void 0===e?void 0:e.height)||0;setTimeout(function(){var o;((null===(o=window.visualViewport)||void 0===o?void 0:o.height)||0)>r+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}};var rhe=["pre-wrap","normal","pre-line","break-spaces"],oQe=function(){function t(n){qe(this,t),this.lineWrapping=n,this.doc=Lo.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.lineLength=30,this.heightChanged=!1}return Xe(t,[{key:"heightForGap",value:function(n,e){var i=this.doc.lineAt(e).number-this.doc.lineAt(n).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((e-n-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}},{key:"heightForLine",value:function(n){return this.lineWrapping?(1+Math.max(0,Math.ceil((n-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}},{key:"setDoc",value:function(n){return this.doc=n,this}},{key:"mustRefreshForWrapping",value:function(n){return rhe.indexOf(n)>-1!=this.lineWrapping}},{key:"mustRefreshForHeights",value:function(n){for(var e=!1,i=0;i-1,a=Math.round(e)!=Math.round(this.lineHeight)||this.lineWrapping!=s;if(this.lineWrapping=s,this.lineHeight=e,this.charWidth=i,this.lineLength=r,a){this.heightSamples={};for(var l=0;l2&&void 0!==arguments[2]?arguments[2]:2;qe(this,t),this.length=n,this.height=e,this.flags=i}return Xe(t,[{key:"outdated",get:function(){return(2&this.flags)>0},set:function(n){this.flags=(n?2:0)|-3&this.flags}},{key:"setHeight",value:function(n,e){this.height!=e&&(Math.abs(this.height-e)>.001&&(n.heightChanged=!0),this.height=e)}},{key:"replace",value:function(n,e,i){return t.of(i)}},{key:"decomposeLeft",value:function(n,e){e.push(this)}},{key:"decomposeRight",value:function(n,e){e.push(this)}},{key:"applyChanges",value:function(n,e,i,r){for(var o=this,s=i.doc,a=r.length-1;a>=0;a--){var l=r[a],c=l.fromA,u=l.toA,h=l.fromB,d=l.toB,f=o.lineAt(c,us.ByPosNoHeight,i.setDoc(e),0,0),p=f.to>=u?f:o.lineAt(u,us.ByPosNoHeight,i,0,0);for(d+=p.to-u,u=p.to;a>0&&f.from<=r[a-1].toA;)c=r[a-1].fromA,h=r[a-1].fromB,a--,c2*o){var s=n[e-1];s.break?n.splice(--e,1,s.left,null,s.right):n.splice(--e,1,s.left,s.right),i+=1+s.break,r-=s.size}else{if(!(o>2*r))break;var a=n[i];a.break?n.splice(i,1,a.left,null,a.right):n.splice(i,1,a.left,a.right),i+=2+a.break,o-=a.size}else if(r=a&&l(this.blockAt(0,o,s,a))}},{key:"updateHeight",value:function(i){var o=arguments.length>3?arguments[3]:void 0;return o&&o.from<=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)&&o.more&&this.setHeight(i,o.heights[o.index++]),this.outdated=!1,this}},{key:"toString",value:function(){return"block(".concat(this.length,")")}}]),e}(),fd=function(t){Wt(e,ohe);var n=Gt(e);function e(i,r){var o;return qe(this,e),(o=n.call(this,i,r,Bo.Text)).collapsed=0,o.widgetHeight=0,o}return Xe(e,[{key:"replace",value:function(i,r,o){var s=o[0];return 1==o.length&&(s instanceof e||s instanceof M0&&4&s.flags)&&Math.abs(this.length-s.length)<10?(s instanceof M0?s=new e(s.length,this.height):s.height=this.height,this.outdated||(s.outdated=!1),s):uh.of(o)}},{key:"updateHeight",value:function(i){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0;return s&&s.from<=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)&&s.more?this.setHeight(i,s.heights[s.index++]):(o||this.outdated)&&this.setHeight(i,Math.max(this.widgetHeight,i.heightForLine(this.length-this.collapsed))),this.outdated=!1,this}},{key:"toString",value:function(){return"line(".concat(this.length).concat(this.collapsed?-this.collapsed:"").concat(this.widgetHeight?":"+this.widgetHeight:"",")")}}]),e}(),M0=function(t){Wt(e,uh);var n=Gt(e);function e(i){return qe(this,e),n.call(this,i,0)}return Xe(e,[{key:"heightMetrics",value:function(i,r){var o,s=i.doc.lineAt(r).number,a=i.doc.lineAt(r+this.length).number,l=a-s+1,c=0;if(i.lineWrapping){var u=Math.min(this.height,i.lineHeight*l);o=u/l,c=(this.height-u)/(this.length-l-1)}else o=this.height/l;return{firstLine:s,lastLine:a,perLine:o,perChar:c}}},{key:"blockAt",value:function(i,r,o,s){var a=this.heightMetrics(r,s),l=a.firstLine,c=a.lastLine,u=a.perLine,h=a.perChar;if(r.lineWrapping){var d=s+Math.round(Math.max(0,Math.min(1,(i-o)/this.height))*this.length),f=r.doc.lineAt(d),p=u+f.length*h,m=Math.max(o,i-p/2);return new qg(f.from,f.length,m,p,Bo.Text)}var w=Math.max(0,Math.min(c-l,Math.floor((i-o)/u))),C=r.doc.line(l+w);return new qg(C.from,C.length,o+u*w,u,Bo.Text)}},{key:"lineAt",value:function(i,r,o,s,a){if(r==us.ByHeight)return this.blockAt(i,o,s,a);if(r==us.ByPosNoHeight){var l=o.doc.lineAt(i),c=l.from;return new qg(c,l.to-c,0,0,Bo.Text)}var h=this.heightMetrics(o,a),d=h.firstLine,f=h.perLine,p=h.perChar,m=o.doc.lineAt(i),w=f+m.length*p,C=m.number-d;return new qg(m.from,m.length,Math.max(s,Math.min(s+f*C+p*(m.from-a-C),s+this.height-w)),w,Bo.Text)}},{key:"forEachLine",value:function(i,r,o,s,a,l){i=Math.max(i,a),r=Math.min(r,a+this.length);for(var c=this.heightMetrics(o,a),u=c.firstLine,h=c.perLine,d=c.perChar,f=i,p=s;f<=r;){var m=o.doc.lineAt(f);if(f==i){var w=m.number-u;p+=h*w+d*(i-a-w)}var C=h+d*m.length;l(new qg(m.from,m.length,p,C,Bo.Text)),p+=C,f=m.to+1}}},{key:"replace",value:function(i,r,o){var s=this.length-r;if(s>0){var a=o[o.length-1];a instanceof e?o[o.length-1]=new e(a.length+s):o.push(null,new e(s-1))}if(i>0){var l=o[0];l instanceof e?o[0]=new e(i+l.length):o.unshift(new e(i-1),null)}return uh.of(o)}},{key:"decomposeLeft",value:function(i,r){r.push(new e(i-1),null)}},{key:"decomposeRight",value:function(i,r){r.push(null,new e(this.length-i-1))}},{key:"updateHeight",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0,a=r+this.length;if(s&&s.from<=r+this.length&&s.more){var l=[],c=Math.max(r,s.from),u=-1;for(s.from>r&&l.push(new e(s.from-r-1).updateHeight(i,r));c<=a&&s.more;){var h=i.doc.lineAt(c).length;l.length&&l.push(null);var d=s.heights[s.index++];-1==u?u=d:Math.abs(d-u)>=.001&&(u=-2);var f=new fd(h,d);f.outdated=!1,l.push(f),c+=h+1}c<=a&&l.push(null,new e(a-c).updateHeight(i,c));var p=uh.of(l);return(u<0||Math.abs(p.height-this.height)>=.001||Math.abs(u-this.heightMetrics(i,r).perLine)>=.001)&&(i.heightChanged=!0),p}return(o||this.outdated)&&(this.setHeight(i,i.heightForGap(r,r+this.length)),this.outdated=!1),this}},{key:"toString",value:function(){return"gap(".concat(this.length,")")}}]),e}(),aQe=function(t){Wt(e,uh);var n=Gt(e);function e(i,r,o){var s;return qe(this,e),(s=n.call(this,i.length+r+o.length,i.height+o.height,r|(i.outdated||o.outdated?2:0))).left=i,s.right=o,s.size=i.size+o.size,s}return Xe(e,[{key:"break",get:function(){return 1&this.flags}},{key:"blockAt",value:function(i,r,o,s){var a=o+this.left.height;return ic))return h;var d=r==us.ByPosNoHeight?us.ByPosNoHeight:us.ByPos;return u?h.join(this.right.lineAt(c,d,o,l,c)):this.left.lineAt(c,d,o,s,a).join(h)}},{key:"forEachLine",value:function(i,r,o,s,a,l){var c=s+this.left.height,u=a+this.left.length+this.break;if(this.break)i=u&&this.right.forEachLine(i,r,o,c,u,l);else{var h=this.lineAt(u,us.ByPos,o,s,a);i=i&&h.from<=r&&l(h),r>h.to&&this.right.forEachLine(h.to+1,r,o,c,u,l)}}},{key:"replace",value:function(i,r,o){var s=this.left.length+this.break;if(rthis.left.length)return this.balanced(this.left,this.right.replace(i-s,r-s,o));var a=[];i>0&&this.decomposeLeft(i,a);var l,c=a.length,u=ot(o);try{for(u.s();!(l=u.n()).done;)a.push(l.value)}catch(f){u.e(f)}finally{u.f()}if(i>0&&she(a,c-1),r=++o&&r.push(null),i>o&&this.right.decomposeLeft(i-o,r)}},{key:"decomposeRight",value:function(i,r){var o=this.left.length,s=o+this.break;if(i>=s)return this.right.decomposeRight(i-s,r);i2*r.size||r.size>2*i.size?uh.of(this.break?[i,null,r]:[i,r]):(this.left=i,this.right=r,this.height=i.height+r.height,this.outdated=i.outdated||r.outdated,this.size=i.size+r.size,this.length=i.length+this.break+r.length,this)}},{key:"updateHeight",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0,a=this.left,l=this.right,c=r+a.length+this.break,u=null;return s&&s.from<=r+a.length&&s.more?u=a=a.updateHeight(i,r,o,s):a.updateHeight(i,r,o),s&&s.from<=c+l.length&&s.more?u=l=l.updateHeight(i,c,o,s):l.updateHeight(i,c,o),u?this.balanced(a,l):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}},{key:"toString",value:function(){return this.left+(this.break?" ":"-")+this.right}}]),e}();function she(t,n){var e,i;null==t[n]&&(e=t[n-1])instanceof M0&&(i=t[n+1])instanceof M0&&t.splice(n-1,3,new M0(e.length+1+i.length))}var lQe=function(){function t(n,e){qe(this,t),this.pos=n,this.oracle=e,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=n}return Xe(t,[{key:"isCovered",get:function(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}},{key:"span",value:function(n,e){if(this.lineStart>-1){var i=Math.min(e,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof fd?r.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new fd(i-this.pos,-1)),this.writtenTo=i,e>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=e}},{key:"point",value:function(n,e,i){if(n=5)&&this.addLineDeco(r,o)}else e>n&&this.span(n,e);this.lineEnd>-1&&this.lineEnd-1)){var n=this.oracle.doc.lineAt(this.pos),e=n.from,i=n.to;this.lineStart=e,this.lineEnd=i,this.writtenToe&&this.nodes.push(new fd(this.pos-e,-1)),this.writtenTo=this.pos}}},{key:"blankContent",value:function(n,e){var i=new M0(e-n);return this.oracle.doc.lineAt(n).to==e&&(i.flags|=4),i}},{key:"ensureLine",value:function(){this.enterLine();var n=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(n instanceof fd)return n;var e=new fd(0,-1);return this.nodes.push(e),e}},{key:"addBlock",value:function(n){this.enterLine(),n.type!=Bo.WidgetAfter||this.isCovered||this.ensureLine(),this.nodes.push(n),this.writtenTo=this.pos=this.pos+n.length,n.type!=Bo.WidgetBefore&&(this.covering=n)}},{key:"addLineDeco",value:function(n,e){var i=this.ensureLine();i.length+=e,i.collapsed+=e,i.widgetHeight=Math.max(i.widgetHeight,n),this.writtenTo=this.pos=this.pos+e}},{key:"finish",value:function(n){var e=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||e instanceof fd||this.isCovered?(this.writtenTou.clientHeight||u.scrollWidth>u.clientWidth)&&"visible"!=h.overflow){var d=u.getBoundingClientRect();o=Math.max(o,d.left),s=Math.min(s,d.right),a=Math.max(a,d.top),l=c==t.parentNode?d.bottom:Math.min(l,d.bottom)}c="absolute"==h.position||"fixed"==h.position?u.offsetParent:u.parentNode}else{if(11!=c.nodeType)break;c=c.host}return{left:o-e.left,right:Math.max(o,s)-e.left,top:a-(e.top+n),bottom:Math.max(a,l)-(e.top+n)}}function dQe(t,n){var e=t.getBoundingClientRect();return{left:0,right:e.right-e.left,top:n,bottom:e.bottom-(e.top+n)}}var gR=function(){function t(n,e,i){qe(this,t),this.from=n,this.to=e,this.size=i}return Xe(t,[{key:"draw",value:function(n){return Hi.replace({widget:new fQe(this.size,n)}).range(this.from,this.to)}}],[{key:"same",value:function(n,e){if(n.length!=e.length)return!1;for(var i=0;i=h.from&&a<=h.to})){var l=n.lineBlockAt(a);e.push(new xk(l.from,l.to))}},o=0;o<=1;o++)r(o);this.viewports=e.sort(function(s,a){return s.from-a.from}),this.scaler=this.heightMap.height<=7e6?lhe:new gQe(this.heightOracle,this.heightMap,this.viewports)}},{key:"updateViewportLines",value:function(){var n=this;this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,function(e){n.viewportLines.push(1==n.scaler.scale?e:f_(e,n.scaler))})}},{key:"update",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.state=n.state;var i=this.stateDeco;this.stateDeco=this.state.facet(h_).filter(function(c){return"function"!=typeof c});var o=A0.extendWithRanges(n.changedRanges,function cQe(t,n,e){var i=new uQe;return cs.compare(t,n,e,i,0),i.changes}(i,this.stateDeco,n?n.changes:lh.empty(this.state.doc.length))),s=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(this.stateDeco,n.startState.doc,this.heightOracle.setDoc(this.state.doc),o),this.heightMap.height!=s&&(n.flags|=2);var a=o.length?this.mapViewport(this.viewport,n.changes):this.viewport;(e&&(e.range.heada.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,e));var l=!n.changes.empty||2&n.flags||a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,this.updateForViewport(),l&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,n.changes))),n.flags|=this.computeVisibleRanges(),e&&(this.scrollTarget=e),!this.mustEnforceCursorAssoc&&n.selectionSet&&n.view.lineWrapping&&n.state.selection.main.empty&&n.state.selection.main.assoc&&!n.state.facet(pue)&&(this.mustEnforceCursorAssoc=!0)}},{key:"measure",value:function(n){var e=n.contentDOM,i=window.getComputedStyle(e),r=this.heightOracle,o=i.whiteSpace;this.defaultTextDirection="rtl"==i.direction?Ts.RTL:Ts.LTR;var s=this.heightOracle.mustRefreshForWrapping(o),a=e.getBoundingClientRect(),l=s||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;var c=0,u=0,h=parseInt(i.paddingTop)||0,d=parseInt(i.paddingBottom)||0;this.paddingTop==h&&this.paddingBottom==d||(this.paddingTop=h,this.paddingBottom=d,c|=10),this.editorWidth!=n.scrollDOM.clientWidth&&(r.lineWrapping&&(l=!0),this.editorWidth=n.scrollDOM.clientWidth,c|=8);var f=(this.printing?dQe:hQe)(e,this.paddingTop),p=f.top-this.pixelViewport.top,m=f.bottom-this.pixelViewport.bottom;this.pixelViewport=f;var w=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(w!=this.inView&&(this.inView=w,w&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;var C=a.width;if(this.contentDOMWidth==C&&this.editorHeight==n.scrollDOM.clientHeight||(this.contentDOMWidth=a.width,this.editorHeight=n.scrollDOM.clientHeight,c|=8),l){var k=n.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(k)&&(s=!0),s||r.lineWrapping&&Math.abs(C-this.contentDOMWidth)>r.charWidth){var E=n.docView.measureTextSize(),L=E.lineHeight,B=E.charWidth;(s=L>0&&r.refresh(o,L,B,C/B,k))&&(n.docView.minWidth=0,c|=8)}p>0&&m>0?u=Math.max(p,m):p<0&&m<0&&(u=Math.min(p,m)),r.heightChanged=!1;var G,oe=ot(this.viewports);try{for(oe.s();!(G=oe.n()).done;){var fe=G.value,re=fe.from==this.viewport.from?k:n.docView.measureVisibleLineHeights(fe);this.heightMap=(s?uh.empty().applyChanges(this.stateDeco,Lo.empty,this.heightOracle,[new A0(0,0,0,n.state.doc.length)]):this.heightMap).updateHeight(r,0,s,new sQe(fe.from,re))}}catch(ue){oe.e(ue)}finally{oe.f()}r.heightChanged&&(c|=2)}var ce=!this.viewportIsAppropriate(this.viewport,u)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return ce&&(this.viewport=this.getViewport(u,this.scrollTarget)),this.updateForViewport(),(2&c||ce)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,n)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,n.docView.enforceCursorAssoc()),c}},{key:"visibleTop",get:function(){return this.scaler.fromDOM(this.pixelViewport.top)}},{key:"visibleBottom",get:function(){return this.scaler.fromDOM(this.pixelViewport.bottom)}},{key:"getViewport",value:function(n,e){var i=.5-Math.max(-.5,Math.min(.5,n/1e3/2)),r=this.heightMap,o=this.heightOracle,a=this.visibleBottom,l=new xk(r.lineAt(this.visibleTop-1e3*i,us.ByHeight,o,0,0).from,r.lineAt(a+1e3*(1-i),us.ByHeight,o,0,0).to);if(e){var c=e.range.head;if(cl.to){var u,h=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),d=r.lineAt(c,us.ByPos,o,0,0);l=new xk(r.lineAt((u="center"==e.y?(d.top+d.bottom)/2-h/2:"start"==e.y||"nearest"==e.y&&c1&&void 0!==arguments[1]?arguments[1]:0;if(!this.inView)return!0;var s=this.heightMap.lineAt(e,us.ByPos,this.heightOracle,0,0).top,l=this.heightMap.lineAt(i,us.ByPos,this.heightOracle,0,0).bottom,c=this.visibleTop,u=this.visibleBottom;return(0==e||s<=c-Math.max(10,Math.min(-r,250)))&&(i==this.state.doc.length||l>=u+Math.max(10,Math.min(r,250)))&&s>c-2e3&&l>1,a=o<<1;if(this.defaultTextDirection!=Ts.LTR&&!r)return[];var l,c=[],u=function pe(De,ie,ge,we){if(!(ie-DeDe&&Z=ge.from&&Te.to<=ge.to&&Math.abs(Te.from-De)Oe})});if(!me){if(ie=ie})){var ae=e.moveToLineBoundary(_n.cursor(ie),!1,!0).head;ae>De&&(ie=ae)}me=new gR(De,ie,i.gapSize(ge,De,ie,we))}c.push(me)}},h=ot(this.viewportLines);try{for(h.s();!(l=h.n()).done;){var d=l.value;if(!(d.lengthd.from&&u(d.from,m,d,f),w=this.viewport.from&&n<=this.viewport.to&&this.viewportLines.find(function(e){return e.from<=n&&e.to>=n})||f_(this.heightMap.lineAt(n,us.ByPos,this.heightOracle,0,0),this.scaler)}},{key:"lineBlockAtHeight",value:function(n){return f_(this.heightMap.lineAt(this.scaler.fromDOM(n),us.ByHeight,this.heightOracle,0,0),this.scaler)}},{key:"elementAtHeight",value:function(n){return f_(this.heightMap.blockAt(this.scaler.fromDOM(n),this.heightOracle,0,0),this.scaler)}},{key:"docHeight",get:function(){return this.scaler.toDOM(this.heightMap.height)}},{key:"contentHeight",get:function(){return this.docHeight+this.paddingTop+this.paddingBottom}}]),t}(),xk=Xe(function t(n,e){qe(this,t),this.from=n,this.to=e});function pQe(t,n,e){var i=[],r=t,o=0;return cs.spans(e,t,n,{span:function(){},point:function(s,a){s>r&&(i.push({from:r,to:s}),o+=s-r),r=a}},20),r=1)return i[i.length-1].to;for(var r=Math.floor(t.total*n),o=0;;o++){var s=i[o],a=s.from,l=s.to-a;if(r<=l)return a+r;r-=l}}function Sk(t,n){var e,i=0,r=ot(t.ranges);try{for(r.s();!(e=r.n()).done;){var o=e.value,s=o.from,a=o.to;if(n<=a){i+=n-s;break}i+=a-s}}catch(l){r.e(l)}finally{r.f()}return i/t.total}var lhe={toDOM:function(t){return t},fromDOM:function(t){return t},scale:1},gQe=function(){function t(n,e,i){qe(this,t);var r=0,o=0,s=0;this.viewports=i.map(function(u){var h=u.from,d=u.to,f=e.lineAt(h,us.ByPos,n,0,0).top,p=e.lineAt(d,us.ByPos,n,0,0).bottom;return r+=p-f,{from:h,to:d,top:f,bottom:p,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(e.height-r);var a,l=ot(this.viewports);try{for(l.s();!(a=l.n()).done;){var c=a.value;c.domTop=s+(c.top-o)*this.scale,s=c.domBottom=c.domTop+(c.bottom-c.top),o=c.bottom}}catch(u){l.e(u)}finally{l.f()}}return Xe(t,[{key:"toDOM",value:function(n){for(var e=0,i=0,r=0;;e++){var o=e-1}}),vR=pp.newName(),che=pp.newName(),uhe=pp.newName(),hhe={"&light":"."+che,"&dark":"."+uhe};function yR(t,n,e){return new pp(n,{finish:function(i){return/&/.test(i)?i.replace(/&\w*/,function(r){if("&"==r)return t;if(!e||!e[r])throw new RangeError("Unsupported selector: ".concat(r));return e[r]}):t+" "+i}})}var mQe=yR("."+vR,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",left:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},hhe),vQe=Xe(function t(n,e,i,r){qe(this,t),this.typeOver=r,this.bounds=null,this.text="";var o=n.docView,s=o.impreciseHead,a=o.impreciseAnchor;if(n.state.readOnly&&e>-1)this.newSel=null;else if(e>-1&&(this.bounds=n.docView.domBoundsAround(e,i,0))){var l=s||a?[]:function(f){var p=[];if(f.root.activeElement!=f.contentDOM)return p;var m=f.observer.selectionRange,w=m.anchorNode,C=m.anchorOffset,k=m.focusNode,E=m.focusOffset;return w&&(p.push(new Mue(w,C)),k==w&&E==C||p.push(new Mue(k,E))),p}(n),c=new Aue(l,n.state);c.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=c.text,this.newSel=function(f,p){if(0==f.length)return null;var m=f[0].pos,w=2==f.length?f[1].pos:m;return m>-1&&w>-1?_n.single(m+p,w+p):null}(l,this.bounds.from)}else{var u=n.observer.selectionRange,h=s&&s.node==u.focusNode&&s.offset==u.focusOffset||!S0(n.contentDOM,u.focusNode)?n.state.selection.main.head:n.docView.posFromDOM(u.focusNode,u.focusOffset),d=a&&a.node==u.anchorNode&&a.offset==u.anchorOffset||!S0(n.contentDOM,u.anchorNode)?n.state.selection.main.anchor:n.docView.posFromDOM(u.anchorNode,u.anchorOffset);this.newSel=_n.single(d,h)}});function dhe(t,n){var e,i=n.newSel,r=t.state.selection.main;if(n.bounds){var o=n.bounds,s=o.from,a=o.to,l=r.from,c=null;(8===t.inputState.lastKeyCode&&t.inputState.lastKeyTime>Date.now()-100||bi.android&&n.text.length0&&we>0&&re.charCodeAt(ge-1)==ce.charCodeAt(we-1);)ge--,we--;return"end"==pe&&(ue-=ge+Math.max(0,ie-Math.min(ge,we))-ie),ge=ge?ie-ue:0)+(we-ge),ge=ie):we=we?ie-ue:0)+(ge-we),we=ie),{from:ie,toA:ge,toB:we}}(t.state.doc.sliceString(s,a,"\uffff"),n.text,l-s,c);u&&(bi.chrome&&13==t.inputState.lastKeyCode&&u.toB==u.from+2&&"\uffff\uffff"==n.text.slice(u.from,u.toB)&&u.toB--,e={from:s+u.from,to:s+u.toA,insert:Lo.of(n.text.slice(u.from,u.toB).split("\uffff"))})}else i&&(!t.hasFocus&&t.state.facet(_k)||i.main.eq(r))&&(i=null);if(!e&&!i)return!1;if(!e&&n.typeOver&&!r.empty&&i&&i.main.empty?e={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,r.to)}:e&&e.from>=r.from&&e.to<=r.to&&(e.from!=r.from||e.to!=r.to)&&r.to-r.from-(e.to-e.from)<=4?e={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,e.from).append(e.insert).append(t.state.doc.slice(e.to,r.to))}:(bi.mac||bi.android)&&e&&e.from==e.to&&e.from==r.head-1&&/^\. ?$/.test(e.insert.toString())&&"off"==t.contentDOM.getAttribute("autocorrect")?(i&&2==e.insert.length&&(i=_n.single(i.main.anchor-1,i.main.head-1)),e={from:r.from,to:r.to,insert:Lo.of([" "])}):bi.chrome&&e&&e.from==e.to&&e.from==r.head&&"\n "==e.insert.toString()&&t.lineWrapping&&(i&&(i=_n.single(i.main.anchor-1,i.main.head-1)),e={from:r.from,to:r.to,insert:Lo.of([" "])}),e){var h=t.state;if(bi.ios&&t.inputState.flushIOSKey(t)||bi.android&&(e.from==r.from&&e.to==r.to&&1==e.insert.length&&2==e.insert.lines&&T0(t.contentDOM,"Enter",13)||e.from==r.from-1&&e.to==r.to&&0==e.insert.length&&T0(t.contentDOM,"Backspace",8)||e.from==r.from&&e.to==r.to+1&&0==e.insert.length&&T0(t.contentDOM,"Delete",46)))return!0;var d,f=e.insert.toString();if(t.state.facet(hue).some(function(re){return re(t,e.from,e.to,f)}))return!0;if(t.inputState.composing>=0&&t.inputState.composing++,e.from>=r.from&&e.to<=r.to&&e.to-e.from>=(r.to-r.from)/3&&(!i||i.main.empty&&i.main.from==e.from+e.insert.length)&&t.inputState.composing<0){var p=r.frome.to?h.sliceDoc(e.to,r.to):"";d=h.replaceSelection(t.state.toText(p+e.insert.sliceString(0,void 0,t.state.lineBreak)+m))}else{var w=h.changes(e),C=i&&!h.selection.main.eq(i.main)&&i.main.to<=w.newLength?i.main:void 0;if(h.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=r.to&&e.to>=r.to-10){var k=t.state.sliceDoc(e.from,e.to),E=Lue(t)||t.state.doc.lineAt(r.head),L=r.to-e.to,B=r.to-r.from;d=h.changeByRange(function(re){if(re.from==r.from&&re.to==r.to)return{changes:w,range:C||re.map(w)};var ce=re.to-L,ue=ce-k.length;if(re.to-re.from!=B||t.state.sliceDoc(ue,ce)!=k||E&&re.to>=E.from&&re.from<=E.to)return{range:re};var pe=h.changes({from:ue,to:ce,insert:e.insert}),De=re.to-r.to;return{changes:pe,range:C?_n.range(Math.max(0,C.anchor+De),Math.max(0,C.head+De)):re.map(pe)}})}else d={changes:w,selection:C&&h.selection.replaceRange(C)}}var G="input.type";return t.composing&&(G+=".compose",t.inputState.compositionFirstChange&&(G+=".start",t.inputState.compositionFirstChange=!1)),t.dispatch(d,{scrollIntoView:!0,userEvent:G}),!0}if(i&&!i.main.eq(r)){var oe=!1,fe="select";return t.inputState.lastSelectionTime>Date.now()-50&&("select"==t.inputState.lastSelectionOrigin&&(oe=!0),fe=t.inputState.lastSelectionOrigin),t.dispatch({selection:i,scrollIntoView:oe,userEvent:fe}),!0}return!1}var yQe={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},bR=bi.ie&&bi.ie_version<=11,bQe=function(){function t(n){var e=this;qe(this,t),this.view=n,this.active=!1,this.selectionRange=new OJe,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.resizeContent=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=n.contentDOM,this.observer=new MutationObserver(function(i){var r,o=ot(i);try{for(o.s();!(r=o.n()).done;)e.queue.push(r.value)}catch(a){o.e(a)}finally{o.f()}(bi.ie&&bi.ie_version<=11||bi.ios&&n.composing)&&i.some(function(a){return"childList"==a.type&&a.removedNodes.length||"characterData"==a.type&&a.oldValue.length>a.target.nodeValue.length})?e.flushSoon():e.flush()}),bR&&(this.onCharData=function(i){e.queue.push({target:i.target,type:"characterData",oldValue:i.prevValue}),e.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver(function(){var i;(null===(i=e.view.docView)||void 0===i?void 0:i.lastUpdate)0&&i[i.length-1].intersectionRatio>0!=e.intersecting&&(e.intersecting=!e.intersecting,e.intersecting!=e.view.inView&&e.onScrollChanged(document.createEvent("Event")))},{}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(function(i){i.length>0&&i[i.length-1].intersectionRatio>0&&e.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}return Xe(t,[{key:"onScrollChanged",value:function(n){this.view.inputState.runScrollHandlers(this.view,n),this.intersecting&&this.view.measure()}},{key:"onScroll",value:function(n){this.intersecting&&this.flush(!1),this.onScrollChanged(n)}},{key:"onResize",value:function(){var n=this;this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(function(){n.resizeTimeout=-1,n.view.requestMeasure()},50))}},{key:"onPrint",value:function(){var n=this;this.view.viewState.printing=!0,this.view.measure(),setTimeout(function(){n.view.viewState.printing=!1,n.view.requestMeasure()},500)}},{key:"updateGaps",value:function(n){if(this.gapIntersection&&(n.length!=this.gaps.length||this.gaps.some(function(o,s){return o!=n[s]}))){this.gapIntersection.disconnect();var e,i=ot(n);try{for(i.s();!(e=i.n()).done;)this.gapIntersection.observe(e.value)}catch(o){i.e(o)}finally{i.f()}this.gaps=n}}},{key:"onSelectionChange",value:function(n){var e=this.selectionChanged;if(this.readSelectionRange()&&!this.delayedAndroidKey){var i=this.view,r=this.selectionRange;if(i.state.facet(_k)?i.root.activeElement==this.dom:gk(i.dom,r)){var o=r.anchorNode&&i.docView.nearest(r.anchorNode);o&&o.ignoreEvent(n)?e||(this.selectionChanged=!1):(bi.ie&&bi.ie_version<=11||bi.android&&bi.chrome)&&!i.state.selection.main.empty&&r.focusNode&&mk(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}}}},{key:"readSelectionRange",value:function(){var n=this.view,e=bi.safari&&11==n.root.nodeType&&function(r){for(var o=r.activeElement;o&&o.shadowRoot;)o=o.shadowRoot.activeElement;return o}(this.dom.ownerDocument)==this.dom&&function(r){var o=null;function s(f){f.preventDefault(),f.stopImmediatePropagation(),o=f.getTargetRanges()[0]}if(r.contentDOM.addEventListener("beforeinput",s,!0),r.dom.ownerDocument.execCommand("indent"),r.contentDOM.removeEventListener("beforeinput",s,!0),!o)return null;var a=o.startContainer,l=o.startOffset,c=o.endContainer,u=o.endOffset,h=r.docView.domAtPos(r.state.selection.main.anchor);if(mk(h.node,h.offset,c,u)){var d=[c,u,a,l];a=d[0],l=d[1],c=d[2],u=d[3]}return{anchorNode:a,anchorOffset:l,focusNode:c,focusOffset:u}}(this.view)||pk(n.root);if(!e||this.selectionRange.eq(e))return!1;var i=gk(this.dom,e);return i&&!this.selectionChanged&&n.inputState.lastFocusTime>Date.now()-200&&n.inputState.lastTouchTime=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}},{key:"processRecords",value:function(){var n,e=this.queue,i=ot(this.observer.takeRecords());try{for(i.s();!(n=i.n()).done;)e.push(n.value)}catch(d){i.e(d)}finally{i.f()}e.length&&(this.queue=[]);var o,s=-1,a=-1,l=!1,c=ot(e);try{for(c.s();!(o=c.n()).done;){var h=this.readMutation(o.value);h&&(h.typeOver&&(l=!0),-1==s?(s=h.from,a=h.to):(s=Math.min(h.from,s),a=Math.max(h.to,a)))}}catch(d){c.e(d)}finally{c.f()}return{from:s,to:a,typeOver:l}}},{key:"readChange",value:function(){var n=this.processRecords(),e=n.from,i=n.to,r=n.typeOver,o=this.selectionChanged&&gk(this.dom,this.selectionRange);return e<0&&!o?null:(e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1,new vQe(this.view,e,i,r))}},{key:"flush",value:function(){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&this.readSelectionRange();var e=this.readChange();if(!e)return!1;var i=this.view.state,r=dhe(this.view,e);return this.view.state==i&&this.view.update([]),r}},{key:"readMutation",value:function(n){var e=this.view.docView.nearest(n.target);if(!e||e.ignoreMutation(n))return null;if(e.markDirty("attributes"==n.type),"attributes"==n.type&&(e.dirty|=4),"childList"==n.type){var i=fhe(e,n.previousSibling||n.target.previousSibling,-1),r=fhe(e,n.nextSibling||n.target.nextSibling,1);return{from:i?e.posAfter(i):e.posAtStart,to:r?e.posBefore(r):e.posAtEnd,typeOver:!1}}return"characterData"==n.type?{from:e.posAtStart,to:e.posAtEnd,typeOver:n.target.nodeValue==n.oldValue}:null}},{key:"setWindow",value:function(n){n!=this.win&&(this.removeWindowListeners(this.win),this.win=n,this.addWindowListeners(this.win))}},{key:"addWindowListeners",value:function(n){n.addEventListener("resize",this.onResize),n.addEventListener("beforeprint",this.onPrint),n.addEventListener("scroll",this.onScroll),n.document.addEventListener("selectionchange",this.onSelectionChange)}},{key:"removeWindowListeners",value:function(n){n.removeEventListener("scroll",this.onScroll),n.removeEventListener("resize",this.onResize),n.removeEventListener("beforeprint",this.onPrint),n.document.removeEventListener("selectionchange",this.onSelectionChange)}},{key:"destroy",value:function(){var n,e,i,r;this.stop(),null===(n=this.intersection)||void 0===n||n.disconnect(),null===(e=this.gapIntersection)||void 0===e||e.disconnect(),null===(i=this.resizeScroll)||void 0===i||i.disconnect(),null===(r=this.resizeContent)||void 0===r||r.disconnect();var o,s=ot(this.scrollTargets);try{for(s.s();!(o=s.n()).done;)o.value.removeEventListener("scroll",this.onScroll)}catch(a){s.e(a)}finally{s.f()}this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}]),t}();function fhe(t,n,e){for(;n;){var i=Ps.get(n);if(i&&i.parent==t)return i;var r=n.parentNode;n=r!=t.dom?r:e>0?n.nextSibling:n.previousSibling}return null}var pi=function(){function t(){var n=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};qe(this,t),this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: fixed; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),this._dispatch=e.dispatch||function(s){return n.update([s])},this.dispatch=this.dispatch.bind(this),this._root=e.root||function NJe(t){for(;t;){if(t&&(9==t.nodeType||11==t.nodeType&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}(e.parent)||document,this.viewState=new ahe(e.state||Qo.create(e)),this.plugins=this.state.facet(u_).map(function(s){return new oR(s)});var i,r=ot(this.plugins);try{for(r.s();!(i=r.n()).done;)i.value.update(this)}catch(s){r.e(s)}finally{r.f()}this.observer=new bQe(this),this.inputState=new eQe(this),this.inputState.ensureHandlers(this,this.plugins),this.docView=new Iue(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}return Xe(t,[{key:"state",get:function(){return this.viewState.state}},{key:"viewport",get:function(){return this.viewState.viewport}},{key:"visibleRanges",get:function(){return this.viewState.visibleRanges}},{key:"inView",get:function(){return this.viewState.inView}},{key:"composing",get:function(){return this.inputState.composing>0}},{key:"compositionStarted",get:function(){return this.inputState.composing>=0}},{key:"root",get:function(){return this._root}},{key:"win",get:function(){return this.dom.ownerDocument.defaultView||window}},{key:"dispatch",value:function(){var n;this._dispatch(1==arguments.length&&(arguments.length<=0?void 0:arguments[0])instanceof cc?arguments.length<=0?void 0:arguments[0]:(n=this.state).update.apply(n,arguments))}},{key:"update",value:function(n){var e=this;if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");var i,r,o=!1,s=!1,a=this.state,l=ot(n);try{for(l.s();!(r=l.n()).done;){var c=r.value;if(c.startState!=a)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");a=c.state}}catch(re){l.e(re)}finally{l.f()}if(this.destroyed)this.viewState.state=a;else{var u=this.hasFocus,h=0,d=null;n.some(function(re){return re.annotation(the)})?(this.inputState.notifiedFocused=u,h=1):u!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=u,(d=nhe(a,u))||(h=1));var f=this.observer.delayedAndroidKey,p=null;if(f?(this.observer.clearDelayedAndroidKey(),((p=this.observer.readChange())&&!this.state.doc.eq(a.doc)||!this.state.selection.eq(a.selection))&&(p=null)):this.observer.clear(),a.facet(Qo.phrases)!=this.state.facet(Qo.phrases))return this.setState(a);(i=_ue.create(this,a,n)).flags|=h;var m=this.viewState.scrollTarget;try{this.updateState=2;var w,C=ot(n);try{for(C.s();!(w=C.n()).done;){var k=w.value;if(m&&(m=m.map(k.changes)),k.scrollIntoView){var E=k.state.selection.main;m=new gue(E.empty?E:_n.cursor(E.head,E.head>E.anchor?-1:1))}var L,B=ot(k.effects);try{for(B.s();!(L=B.n()).done;){var G=L.value;G.is(mue)&&(m=G.value)}}catch(re){B.e(re)}finally{B.f()}}}catch(re){C.e(re)}finally{C.f()}this.viewState.update(i,m),this.bidiCache=ghe.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),o=this.docView.update(i),this.state.facet(d_)!=this.styleModules&&this.mountStyles(),s=this.updateAttrs(),this.showAnnouncements(n),this.docView.updateSelection(o,n.some(function(re){return re.isUserEvent("select.pointer")}))}finally{this.updateState=0}if(i.startState.facet(kk)!=i.state.facet(kk)&&(this.viewState.mustMeasureContent=!0),(o||s||m||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!i.empty){var oe,fe=ot(this.state.facet(rR));try{for(fe.s();!(oe=fe.n()).done;)(0,oe.value)(i)}catch(re){fe.e(re)}finally{fe.f()}}(d||p)&&Promise.resolve().then(function(){d&&e.state==d.startState&&e.dispatch(d),p&&!dhe(e,p)&&f.force&&T0(e.contentDOM,f.key,f.keyCode)})}}},{key:"setState",value:function(n){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)this.viewState.state=n;else{this.updateState=2;var e=this.hasFocus;try{var i,r=ot(this.plugins);try{for(r.s();!(i=r.n()).done;)i.value.destroy(this)}catch(a){r.e(a)}finally{r.f()}this.viewState=new ahe(n),this.plugins=n.facet(u_).map(function(a){return new oR(a)}),this.pluginMap.clear();var o,s=ot(this.plugins);try{for(s.s();!(o=s.n()).done;)o.value.update(this)}catch(a){s.e(a)}finally{s.f()}this.docView=new Iue(this),this.inputState.ensureHandlers(this,this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}e&&this.focus(),this.requestMeasure()}}},{key:"updatePlugins",value:function(n){var e=n.startState.facet(u_),i=n.state.facet(u_);if(e!=i){var r,o=[],s=ot(i);try{for(s.s();!(r=s.n()).done;){var a=r.value,l=e.indexOf(a);if(l<0)o.push(new oR(a));else{var c=this.plugins[l];c.mustUpdate=n,o.push(c)}}}catch(w){s.e(w)}finally{s.f()}var u,h=ot(this.plugins);try{for(h.s();!(u=h.n()).done;){var d=u.value;d.mustUpdate!=n&&d.destroy(this)}}catch(w){h.e(w)}finally{h.f()}this.plugins=o,this.pluginMap.clear(),this.inputState.ensureHandlers(this,this.plugins)}else{var f,p=ot(this.plugins);try{for(p.s();!(f=p.n()).done;)f.value.mustUpdate=n}catch(w){p.e(w)}finally{p.f()}}for(var m=0;m0&&void 0!==arguments[0])||arguments[0];if(!this.destroyed){this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.measureScheduled=0,e&&this.observer.forceFlush();var i=null,r=this.scrollDOM,o=r.scrollHeight,s=r.scrollTop,l=s>o-r.clientHeight-4?o:s;try{for(var c=0;;c++){this.updateState=1;var u=this.viewport,h=this.viewState.lineBlockAtHeight(l),d=this.viewState.measure(this);if(!d&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(c>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}var f=[];if(!(4&d)){var p=[f,this.measureRequests];this.measureRequests=p[0],f=p[1]}var m=f.map(function(re){try{return re.read(n)}catch(ce){return Pc(n.state,ce),phe}}),w=_ue.create(this,this.state,[]),C=!1,k=!1;w.flags|=d,i?i.flags|=d:i=w,this.updateState=2,w.empty||(this.updatePlugins(w),this.inputState.update(w),this.updateAttrs(),C=this.docView.update(w));for(var E=0;E1||B<-1)&&(this.scrollDOM.scrollTop+=B,k=!0)}if(C&&this.docView.updateSelection(!0),this.viewport.from==u.from&&this.viewport.to==u.to&&!k&&0==this.measureRequests.length)break}}finally{this.updateState=0,this.measureScheduled=-1}if(i&&!i.empty){var G,oe=ot(this.state.facet(rR));try{for(oe.s();!(G=oe.n()).done;)(0,G.value)(i)}catch(re){oe.e(re)}finally{oe.f()}}}}},{key:"themeClasses",get:function(){return vR+" "+(this.state.facet(mR)?uhe:che)+" "+this.state.facet(kk)}},{key:"updateAttrs",value:function(){var n=this,e=mhe(this,vue,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),i={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(_k)?"true":"false",class:"cm-content",style:"".concat(bi.tabSize,": ").concat(this.state.tabSize),role:"textbox","aria-multiline":"true"};this.state.readOnly&&(i["aria-readonly"]="true"),mhe(this,sR,i);var r=this.observer.ignore(function(){var o=eR(n.contentDOM,n.contentAttrs,i),s=eR(n.dom,n.editorAttrs,e);return o||s});return this.editorAttrs=e,this.contentAttrs=i,r}},{key:"showAnnouncements",value:function(n){var e,i=!0,r=ot(n);try{for(r.s();!(e=r.n()).done;){var o,s=ot(e.value.effects);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.is(t.announce)&&(i&&(this.announceDOM.textContent=""),i=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=a.value)}}catch(l){s.e(l)}finally{s.f()}}}catch(l){r.e(l)}finally{r.f()}}},{key:"mountStyles",value:function(){this.styleModules=this.state.facet(d_),pp.mount(this.root,this.styleModules.concat(mQe).reverse())}},{key:"readMeasured",value:function(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}},{key:"requestMeasure",value:function(n){var e=this;if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(function(){return e.measure()})),n){if(this.measureRequests.indexOf(n)>-1)return;if(null!=n.key)for(var i=0;ir.from?n.head-1:n.head):null;if(o){var s=t.dom.getBoundingClientRect(),a=t.textDirectionAt(r.from),l=t.posAtCoords({x:e==(a==Ts.LTR)?s.right-1:s.left+1,y:(o.top+o.bottom)/2});if(null!=l)return _n.cursor(l,e?-1:1)}var c=ch.find(t.docView,n.head);return _n.cursor(c?e?c.posAtEnd:c.posAtStart:e?r.to:r.from,e?-1:1)}(this,n,e,!(arguments.length>2&&void 0!==arguments[2])||arguments[2])}},{key:"moveVertically",value:function(n,e,i){return dR(this,n,function(r,o,s,a){var l=o.head,c=s?1:-1;if(l==(s?r.state.doc.length:0))return _n.cursor(l,o.assoc);var u,h=o.goalColumn,d=r.contentDOM.getBoundingClientRect(),f=r.coordsAtPos(l),p=r.documentTop;if(f)null==h&&(h=f.left-d.left),u=c<0?f.top:f.bottom;else{var m=r.viewState.lineBlockAt(l);null==h&&(h=Math.min(d.right-d.left,r.defaultCharacterWidth*(l-m.from))),u=(c<0?m.top:m.bottom)+p}for(var w=d.left+h,C=a??r.defaultLineHeight>>1,k=0;;k+=10){var E=u+(C+k)*c,L=Pue(r,{x:w,y:E},!1,c);if(Ed.bottom||(c<0?Ll))return _n.cursor(L,o.assoc,void 0,h)}}(this,n,e,i))}},{key:"domAtPos",value:function(n){return this.docView.domAtPos(n)}},{key:"posAtDOM",value:function(n){return this.docView.posFromDOM(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)}},{key:"posAtCoords",value:function(n){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.readMeasured(),Pue(this,n,e)}},{key:"coordsAtPos",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.readMeasured();var i=this.docView.coordsAt(n,e);if(!i||i.left==i.right)return i;var r=this.state.doc.lineAt(n),o=this.bidiSpans(r);return VN(i,o[E0.find(o,n-r.from,-1,e)].dir==Ts.LTR==e>0)}},{key:"defaultCharacterWidth",get:function(){return this.viewState.heightOracle.charWidth}},{key:"defaultLineHeight",get:function(){return this.viewState.heightOracle.lineHeight}},{key:"textDirection",get:function(){return this.viewState.defaultTextDirection}},{key:"textDirectionAt",value:function(n){return!this.state.facet(fue)||nthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(n))}},{key:"lineWrapping",get:function(){return this.viewState.heightOracle.lineWrapping}},{key:"bidiSpans",value:function(n){if(n.length>_Qe)return Due(n.length);var e,i=this.textDirectionAt(n.from),r=ot(this.bidiCache);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(o.from==n.from&&o.dir==i)return o.order}}catch(a){r.e(a)}finally{r.f()}var s=function(a,l){var c=a.length,u=l==aR?1:2,h=l==aR?2:1;if(!a||1==u&&!VJe.test(a))return Due(c);for(var d=0,f=u,p=u;d=0;De-=3)if(dd[De+1]==-fe){var ie=dd[De+2],ge=2&ie?u:4&ie?1&ie?h:u:0;ge&&(As[ce]=As[dd[De]]=ge),ue=De;break}}else{if(189==dd.length)break;dd[ue++]=ce,dd[ue++]=oe,dd[ue++]=pe}else if(2==(re=As[ce])||1==re){var we=re==u;pe=we?0:1;for(var le=ue-3;le>=0;le-=3){var Fe=dd[le+2];if(2&Fe)break;if(we)dd[le+2]|=2;else{if(4&Fe)break;dd[le+2]|=4}}}for(var z=0;zZe;){for(var ct=wt,Ct=2!=As[--wt];wt>Ze&&Ct==(2!=As[wt-1]);)wt--;Te.push(new E0(wt,ct,Ct?2:1))}else Te.push(new E0(Ze,Oe,0))}else for(var se=0;seDate.now()-3e4)&&this.root.activeElement==this.contentDOM}},{key:"focus",value:function(){var n=this;this.observer.ignore(function(){Vce(n.contentDOM),n.docView.updateSelection()})}},{key:"setRoot",value:function(n){this._root!=n&&(this._root=n,this.observer.setWindow((9==n.nodeType?n:n.ownerDocument).defaultView||window),this.mountStyles())}},{key:"destroy",value:function(){var n,e=ot(this.plugins);try{for(e.s();!(n=e.n()).done;)n.value.destroy(this)}catch(i){e.e(i)}finally{e.f()}this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}}],[{key:"scrollIntoView",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return mue.of(new gue("number"==typeof n?_n.cursor(n):n,e.y,e.x,e.yMargin,e.xMargin))}},{key:"domEventHandlers",value:function(n){return Ba.define(function(){return{}},{eventHandlers:n})}},{key:"theme",value:function(n,e){var i=pp.newName(),r=[kk.of(i),d_.of(yR(".".concat(i),n))];return e&&e.dark&&r.push(mR.of(!0)),r}},{key:"baseTheme",value:function(n){return x0.lowest(d_.of(yR("."+vR,n,hhe)))}},{key:"findFromDOM",value:function(n){var e,i=n.querySelector(".cm-content");return(null===(e=(i&&Ps.get(i)||Ps.get(n))?.rootView)||void 0===e?void 0:e.view)||null}}]),t}();pi.styleModule=d_,pi.inputHandler=hue,pi.focusChangeEffect=due,pi.perLineTextDirection=fue,pi.exceptionSink=uue,pi.updateListener=rR,pi.editable=_k,pi.mouseSelectionStyle=cue,pi.dragMovesSelection=lue,pi.clickAddsSelectionRange=aue,pi.decorations=h_,pi.atomicRanges=yue,pi.scrollMargins=bue,pi.darkTheme=mR,pi.contentAttributes=sR,pi.editorAttributes=vue,pi.lineWrapping=pi.contentAttributes.of({class:"cm-lineWrapping"}),pi.announce=$r.define();var _Qe=4096,phe={},ghe=function(){function t(n,e,i,r){qe(this,t),this.from=n,this.to=e,this.dir=i,this.order=r}return Xe(t,null,[{key:"update",value:function(n,e){if(e.empty)return n;for(var i=[],r=n.length?n[n.length-1].dir:Ts.LTR,o=Math.max(0,n.length-10);o=0;r--){var o=i[r],s="function"==typeof o?o(t):o;s&&QN(s,e)}return e}var wQe=bi.mac?"mac":bi.windows?"win":bi.linux?"linux":"key";function Dk(t,n,e){return n.altKey&&(t="Alt-"+t),n.ctrlKey&&(t="Ctrl-"+t),n.metaKey&&(t="Meta-"+t),!1!==e&&n.shiftKey&&(t="Shift-"+t),t}var CQe=x0.default(pi.domEventHandlers({keydown:function(t,n){return bhe(yhe(n.state),t,n,"editor")}})),Tk=yi.define({enables:CQe}),vhe=new WeakMap;function yhe(t){var n=t.facet(Tk),e=vhe.get(n);return e||vhe.set(n,e=function(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wQe,s=Object.create(null),a=Object.create(null),l=function(G,oe){var fe=a[G];if(null==fe)a[G]=oe;else if(fe!=oe)throw new Error("Key binding "+G+" is used both as a regular binding and as a multi-stroke prefix")},c=function(G,oe,fe,re){for(var ce,ue,pe=s[G]||(s[G]=Object.create(null)),De=oe.split(/ (?!$)/).map(function(Fe){return function xQe(t,n){var e,i,r,o,s=t.split(/-(?!$)/),a=s[s.length-1];"Space"==a&&(a=" ");for(var l=0;l=t.viewport.to)return[];var i=Math.max(e.from,t.viewport.from),r=Math.min(e.to,t.viewport.to),o=t.textDirection==Ts.LTR,s=t.contentDOM,a=s.getBoundingClientRect(),l=_he(t),c=window.getComputedStyle(s.firstChild),u=a.left+parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)),h=a.right-parseInt(c.paddingRight),d=xhe(t,i),f=xhe(t,r),p=d.type==Bo.Text?d:null,m=f.type==Bo.Text?f:null;if(t.lineWrapping&&(p&&(p=whe(t,i,p)),m&&(m=whe(t,r,m))),p&&m&&p.from==m.from)return L(B(e.from,e.to,p));var w=p?B(e.from,null,p):G(d,!1),C=m?B(null,e.to,m):G(f,!0),k=[];return(p||d).to<(m||f).from-1?k.push(E(u,w.bottom,h,C.top)):w.bottomge&&Fe.from=Q)break;Ze>z&&De(Math.max(Oe,z),null==oe&&Oe<=ge,Math.min(Ze,Q),null==fe&&Ze>=we,Te.dir)}}catch(Ve){ae.e(Ve)}finally{ae.f()}if((z=me.to+1)>=Q)break}}}catch(Ve){le.e(Ve)}finally{le.f()}return 0==pe.length&&De(ge,null==oe,we,null==fe,t.textDirection),{top:ce,bottom:ue,horizontal:pe}}function G(oe,fe){var re=a.top+(fe?oe.top:oe.bottom);return{top:re,bottom:re,horizontal:[]}}}(n,e,i)}}]),t}();function _he(t){var n=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==Ts.LTR?n.left:n.right-t.scrollDOM.clientWidth)-t.scrollDOM.scrollLeft,top:n.top-t.scrollDOM.scrollTop}}function whe(t,n,e){var i=_n.cursor(n);return{from:Math.max(e.from,t.moveToLineBoundary(i,!1,!0).from),to:Math.min(e.to,t.moveToLineBoundary(i,!0,!0).from),type:Bo.Text}}function xhe(t,n){var e=t.lineBlockAt(n);if(Array.isArray(e.type)){var i,r=ot(e.type);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.to>n||o.to==n&&(o.to==e.to||o.type==Bo.Text))return o}}catch(s){r.e(s)}finally{r.f()}}return e}var kQe=function(){function t(n,e){qe(this,t),this.view=n,this.layer=e,this.drawn=[],this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=n.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),e.above&&this.dom.classList.add("cm-layer-above"),e.class&&this.dom.classList.add(e.class),this.dom.setAttribute("aria-hidden","true"),this.setOrder(n.state),n.requestMeasure(this.measureReq),e.mount&&e.mount(this.dom,n)}return Xe(t,[{key:"update",value:function(n){n.startState.facet(Ak)!=n.state.facet(Ak)&&this.setOrder(n.state),(this.layer.update(n,this.dom)||n.geometryChanged)&&n.view.requestMeasure(this.measureReq)}},{key:"setOrder",value:function(n){for(var e=0,i=n.facet(Ak);e0&&void 0!==arguments[0]?arguments[0]:{}),TQe,AQe,EQe,pue.of(!0)]}function khe(t){return t.startState.facet(p_)!=t.state.facet(p_)}var TQe=Che({above:!0,markers:function(t){var n,e=t.state,i=e.facet(p_),r=[],o=ot(e.selection.ranges);try{for(o.s();!(n=o.n()).done;){var s=n.value,a=s==e.selection.main;if(s.empty?!a||She:i.drawRangeCursor){var l,c=a?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",u=s.empty?s:_n.cursor(s.head,s.head>s.anchor?-1:1),h=ot(_R.forRange(t,c,u));try{for(h.s();!(l=h.n()).done;)r.push(l.value)}catch(f){h.e(f)}finally{h.f()}}}}catch(f){o.e(f)}finally{o.f()}return r},update:function(t,n){t.transactions.some(function(i){return i.selection})&&(n.style.animationName="cm-blink"==n.style.animationName?"cm-blink2":"cm-blink");var e=khe(t);return e&&Dhe(t.state,n),t.docChanged||t.selectionSet||e},mount:function(t,n){Dhe(n.state,t)},class:"cm-cursorLayer"});function Dhe(t,n){n.style.animationDuration=t.facet(p_).cursorBlinkRate+"ms"}var AQe=Che({above:!1,markers:function(t){return t.state.selection.ranges.map(function(n){return n.empty?[]:_R.forRange(t,"cm-selectionBackground",n)}).reduce(function(n,e){return n.concat(e)})},update:function(t,n){return t.docChanged||t.selectionSet||t.viewportChanged||khe(t)},class:"cm-selectionLayer"}),The={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};She&&(The[".cm-line"].caretColor="transparent !important");var EQe=x0.highest(pi.theme(The)),Ahe=$r.define({map:function(t,n){return null==t?null:n.mapPos(t)}}),g_=nl.define({create:function(){return null},update:function(t,n){return null!=t&&(t=n.changes.mapPos(t)),n.effects.reduce(function(e,i){return i.is(Ahe)?i.value:e},t)}}),MQe=Ba.fromClass(function(){function t(n){qe(this,t),this.view=n,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}return Xe(t,[{key:"update",value:function(n){var e,i=n.state.field(g_);null==i?null!=this.cursor&&(null===(e=this.cursor)||void 0===e||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(n.startState.field(g_)!=i||n.docChanged||n.geometryChanged)&&this.view.requestMeasure(this.measureReq))}},{key:"readPos",value:function(){var n=this.view.state.field(g_),e=null!=n&&this.view.coordsAtPos(n);if(!e)return null;var i=this.view.scrollDOM.getBoundingClientRect();return{left:e.left-i.left+this.view.scrollDOM.scrollLeft,top:e.top-i.top+this.view.scrollDOM.scrollTop,height:e.bottom-e.top}}},{key:"drawCursor",value:function(n){this.cursor&&(n?(this.cursor.style.left=n.left+"px",this.cursor.style.top=n.top+"px",this.cursor.style.height=n.height+"px"):this.cursor.style.left="-100000px")}},{key:"destroy",value:function(){this.cursor&&this.cursor.remove()}},{key:"setDropPos",value:function(n){this.view.state.field(g_)!=n&&this.view.dispatch({effects:Ahe.of(n)})}}]),t}(),{eventHandlers:{dragover:function(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave:function(t){t.target!=this.view.contentDOM&&this.view.contentDOM.contains(t.relatedTarget)||this.setDropPos(null)},dragend:function(){this.setDropPos(null)},drop:function(){this.setDropPos(null)}}});function Ehe(t,n,e,i,r){n.lastIndex=0;for(var o,s=t.iterRange(e,i),a=e;!s.next().done;a+=s.value.length)if(!s.lineBreak)for(;o=n.exec(s.value);)r(a+o.index,o)}var IQe=function(){function t(n){qe(this,t);var e=n.regexp,i=n.decoration,r=n.decorate,o=n.boundary,s=n.maxLength,a=void 0===s?1e3:s;if(!e.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=e,r)this.addMatch=function(l,c,u,h){return r(h,u,u+l[0].length,l,c)};else if("function"==typeof i)this.addMatch=function(l,c,u,h){var d=i(l,c,u);d&&h(u,u+l[0].length,d)};else{if(!i)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=function(l,c,u,h){return h(u,u+l[0].length,i)}}this.boundary=o,this.maxLength=a}return Xe(t,[{key:"createDeco",value:function(n){var e,i=this,r=new Wg,o=r.add.bind(r),s=ot(function(u,h){var d=u.visibleRanges;if(1==d.length&&d[0].from==u.viewport.from&&d[0].to==u.viewport.to)return d;var f,p=[],m=ot(d);try{for(m.s();!(f=m.n()).done;){var w=f.value,C=w.from,k=w.to;C=Math.max(u.state.doc.lineAt(C).from,C-h),k=Math.min(u.state.doc.lineAt(k).to,k+h),p.length&&p[p.length-1].to>=C?p[p.length-1].to=k:p.push({from:C,to:k})}}catch(E){m.e(E)}finally{m.f()}return p}(n,this.maxLength));try{for(s.s();!(e=s.n()).done;){var a=e.value;Ehe(n.state.doc,this.regexp,a.from,a.to,function(u,h){return i.addMatch(h,n,u,o)})}}catch(u){s.e(u)}finally{s.f()}return r.finish()}},{key:"updateDeco",value:function(n,e){var i=1e9,r=-1;return n.docChanged&&n.changes.iterChanges(function(o,s,a,l){l>n.view.viewport.from&&a1e3?this.createDeco(n.view):r>-1?this.updateRange(n.view,e.map(n.changes),i,r):e}},{key:"updateRange",value:function(n,e,i,r){var o,s=this,a=ot(n.visibleRanges);try{for(a.s();!(o=a.n()).done;){var l=o.value,c=Math.max(l.from,i),u=Math.min(l.to,r);u>c&&function(){var h=n.state.doc.lineAt(c),d=h.toh.from;c--)if(s.boundary.test(h.text[c-1-h.from])){f=c;break}for(;up},add:m})}()}}catch(h){a.e(h)}finally{a.f()}return e}}]),t}(),wR=null!=/x/.unicode?"gu":"g",FQe=new RegExp("[\0-\b\n-\x1f\x7f-\x9f\xad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]",wR),LQe={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},xR=null,Ek=yi.define({combine:function(t){var n=fu(t,{render:null,specialChars:FQe,addSpecialChars:null});return(n.replaceTabs=!function(){var e;if(null==xR&&typeof document<"u"&&document.body){var i=document.body.style;xR=null!=(null!==(e=i.tabSize)&&void 0!==e?e:i.MozTabSize)}return xR||!1}())&&(n.specialChars=new RegExp("\t|"+n.specialChars.source,wR)),n.addSpecialChars&&(n.specialChars=new RegExp(n.specialChars.source+"|"+n.addSpecialChars.source,wR)),n}});function OQe(){return[Ek.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Mhe||(Mhe=Ba.fromClass(function(){function t(n){qe(this,t),this.view=n,this.decorations=Hi.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(n.state.facet(Ek)),this.decorations=this.decorator.createDeco(n)}return Xe(t,[{key:"makeDecorator",value:function(n){var e=this;return new IQe({regexp:n.specialChars,decoration:function(i,r,o){var s=r.state.doc,a=tl(i[0],0);if(9==a){var l=s.lineAt(o),c=r.state.tabSize,u=r_(l.text,c,o-l.from);return Hi.replace({widget:new $Qe((c-u%c)*e.view.defaultCharacterWidth)})}return e.decorationCache[a]||(e.decorationCache[a]=Hi.replace({widget:new RQe(n,a)}))},boundary:n.replaceTabs?void 0:/[^]/})}},{key:"update",value:function(n){var e=n.state.facet(Ek);n.startState.facet(Ek)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(n.view)):this.decorations=this.decorator.updateDeco(n,this.decorations)}}]),t}(),{decorations:function(t){return t.decorations}}))]}var Mhe=null,RQe=function(t){Wt(e,mp);var n=Gt(e);function e(i,r){var o;return qe(this,e),(o=n.call(this)).options=i,o.code=r,o}return Xe(e,[{key:"eq",value:function(i){return i.code==this.code}},{key:"toDOM",value:function(i){var l,r=(l=this.code)>=32?"\u2022":10==l?"\u2424":String.fromCharCode(9216+l),o=i.state.phrase("Control character")+" "+(LQe[this.code]||"0x"+this.code.toString(16)),s=this.options.render&&this.options.render(this.code,o,r);if(s)return s;var a=document.createElement("span");return a.textContent=r,a.title=o,a.setAttribute("aria-label",o),a.className="cm-specialChar",a}},{key:"ignoreEvent",value:function(){return!1}}]),e}(),$Qe=function(t){Wt(e,mp);var n=Gt(e);function e(i){var r;return qe(this,e),(r=n.call(this)).width=i,r}return Xe(e,[{key:"eq",value:function(i){return i.width==this.width}},{key:"toDOM",value:function(){var i=document.createElement("span");return i.textContent="\t",i.className="cm-tab",i.style.width=this.width+"px",i}},{key:"ignoreEvent",value:function(){return!1}}]),e}(),PQe=Hi.line({class:"cm-activeLine"}),jQe=Ba.fromClass(function(){function t(n){qe(this,t),this.decorations=this.getDeco(n)}return Xe(t,[{key:"update",value:function(n){(n.docChanged||n.selectionSet)&&(this.decorations=this.getDeco(n.view))}},{key:"getDeco",value:function(n){var e,i=-1,r=[],o=ot(n.state.selection.ranges);try{for(o.s();!(e=o.n()).done;){var a=n.lineBlockAt(e.value.head);a.from>i&&(r.push(PQe.range(a.from)),i=a.from)}}catch(l){o.e(l)}finally{o.f()}return Hi.set(r)}}]),t}(),{decorations:function(t){return t.decorations}});function Ihe(t,n){var s,a,l,e=t.posAtCoords({x:n.clientX,y:n.clientY},!1),i=t.state.doc.lineAt(e),r=e-i.from,o=r>2e3?-1:r==i.length?(a=n.clientX,(l=(s=t).coordsAtPos(s.viewport.from))?Math.round(Math.abs((l.left-a)/s.defaultCharacterWidth)):-1):r_(i.text,t.state.tabSize,e-i.from);return{line:i.number,col:o,off:r}}function HQe(t){var n=t?.eventFilter||function(e){return e.altKey&&0==e.button};return pi.mouseSelectionStyle.of(function(e,i){return n(i)?function BQe(t,n){var e=Ihe(t,n),i=t.state.selection;return e?{update:function(r){if(r.docChanged){var o=r.changes.mapPos(r.startState.doc.line(e.line).from),s=r.state.doc.lineAt(o);e={line:s.number,col:e.col,off:Math.min(e.off,s.length)},i=i.map(r.changes)}},get:function(r,o,s){var a=Ihe(t,r);if(!a)return i;var l=function(c,u,h){var d=Math.min(u.line,h.line),f=Math.max(u.line,h.line),p=[];if(u.off>2e3||h.off>2e3||u.col<0||h.col<0)for(var m=Math.min(u.off,h.off),w=Math.max(u.off,h.off),C=d;C<=f;C++){var k=c.doc.line(C);k.length<=w&&p.push(_n.range(k.from+m,k.to+w))}else for(var E=Math.min(u.col,h.col),L=Math.max(u.col,h.col),B=d;B<=f;B++){var G=c.doc.line(B),oe=jN(G.text,E,c.tabSize,!0);if(oe<0)p.push(_n.cursor(G.to));else{var fe=jN(G.text,L,c.tabSize);p.push(_n.range(G.from+oe,G.from+fe))}}return p}(t.state,e,a);return l.length?_n.create(s?l.concat(i.ranges):l):i}}:null}(e,i):null})}var VQe={Alt:[18,function(t){return t.altKey}],Control:[17,function(t){return t.ctrlKey}],Shift:[16,function(t){return t.shiftKey}],Meta:[91,function(t){return t.metaKey}]},zQe={style:"cursor: crosshair"};function UQe(){var n=di(VQe[(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).key||"Alt"],2),e=n[0],i=n[1],r=Ba.fromClass(function(){function o(s){qe(this,o),this.view=s,this.isDown=!1}return Xe(o,[{key:"set",value:function(s){this.isDown!=s&&(this.isDown=s,this.view.update([]))}}]),o}(),{eventHandlers:{keydown:function(o){this.set(o.keyCode==e||i(o))},keyup:function(o){o.keyCode!=e&&i(o)||this.set(!1)},mousemove:function(o){this.set(i(o))}}});return[r,pi.contentAttributes.of(function(o){var s;return null!==(s=o.plugin(r))&&void 0!==s&&s.isDown?zQe:null})]}var Fhe=function(){function t(n,e,i){qe(this,t),this.facet=e,this.createTooltipView=i,this.input=n.state.facet(e),this.tooltips=this.input.filter(function(r){return r}),this.tooltipViews=this.tooltips.map(i)}return Xe(t,[{key:"update",value:function(n){var e,i=n.state.facet(this.facet),r=i.filter(function(k){return k});if(i===this.input){var o,s=ot(this.tooltipViews);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.update&&a.update(n)}}catch(k){s.e(k)}finally{s.f()}return!1}for(var l=[],c=0;ce.lastTransaction-50&&r.length>0&&r[r.length-1].intersectionRatio<1&&e.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),n.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}return Xe(t,[{key:"createContainer",value:function(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}},{key:"observeIntersection",value:function(){if(this.intersectionObserver){this.intersectionObserver.disconnect();var n,e=ot(this.manager.tooltipViews);try{for(e.s();!(n=e.n()).done;)this.intersectionObserver.observe(n.value.dom)}catch(r){e.e(r)}finally{e.f()}}}},{key:"measureSoon",value:function(){var n=this;this.measureTimeout<0&&(this.measureTimeout=setTimeout(function(){n.measureTimeout=-1,n.maybeMeasure()},50))}},{key:"update",value:function(n){n.transactions.length&&(this.lastTransaction=Date.now());var e=this.manager.update(n);e&&this.observeIntersection();var i=e||n.geometryChanged,r=n.state.facet(CR);if(r.position!=this.position){this.position=r.position;var o,s=ot(this.manager.tooltipViews);try{for(s.s();!(o=s.n()).done;)o.value.dom.style.position=this.position}catch(u){s.e(u)}finally{s.f()}i=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();var a,l=ot(this.manager.tooltipViews);try{for(l.s();!(a=l.n()).done;)this.container.appendChild(a.value.dom)}catch(u){l.e(u)}finally{l.f()}i=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);i&&this.maybeMeasure()}},{key:"createTooltip",value:function(n){var e=n.create(this.view);if(e.dom.classList.add("cm-tooltip"),n.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){var i=document.createElement("div");i.className="cm-tooltip-arrow",e.dom.appendChild(i)}return e.dom.style.position=this.position,e.dom.style.top="-10000px",this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}},{key:"destroy",value:function(){var n,e;this.view.win.removeEventListener("resize",this.measureSoon);var i,r=ot(this.manager.tooltipViews);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.dom.remove(),null===(n=o.destroy)||void 0===n||n.call(o)}}catch(s){r.e(s)}finally{r.f()}null===(e=this.intersectionObserver)||void 0===e||e.disconnect(),clearTimeout(this.measureTimeout)}},{key:"readMeasure",value:function(){var n=this,e=this.view.dom.getBoundingClientRect();return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map(function(i,r){var o=n.manager.tooltipViews[r];return o.getCoords?o.getCoords(i.pos):n.view.coordsAtPos(i.pos)}),size:this.manager.tooltipViews.map(function(i){return i.dom.getBoundingClientRect()}),space:this.view.state.facet(CR).tooltipSpace(this.view)}}},{key:"writeMeasure",value:function(n){for(var e,i=n.editor,r=n.space,o=[],s=0;s=Math.min(i.bottom,r.bottom)||u.rightMath.min(i.right,r.right)+.1)c.style.top="-10000px";else{var d=a.arrow?l.dom.querySelector(".cm-tooltip-arrow"):null,f=d?7:0,p=h.right-h.left,m=null!==(e=Lhe.get(l))&&void 0!==e?e:h.bottom-h.top,w=l.offset||qQe,C=this.view.textDirection==Ts.LTR,k=h.width>r.right-r.left?C?r.left:r.right-h.width:C?Math.min(u.left-(d?14:0)+w.x,r.right-p):Math.max(r.left,u.left-p+(d?14:0)-w.x),E=!!a.above;!a.strictSide&&(E?u.top-(h.bottom-h.top)-w.yr.bottom)&&E==r.bottom-u.bottom>u.top-r.top&&(E=!E);var L=(E?u.top-r.top:r.bottom-u.bottom)-f;if(Lk&&re.topB&&(B=E?re.top-m-2-f:re.bottom+f+2)}}catch(ce){fe.e(ce)}finally{fe.f()}}"absolute"==this.position?(c.style.top=B-n.parent.top+"px",c.style.left=k-n.parent.left+"px"):(c.style.top=B+"px",c.style.left=k+"px"),d&&(d.style.left="".concat(u.left+(C?w.x:-w.x)-(k+14-7),"px")),!0!==l.overlap&&o.push({left:k,top:B,right:G,bottom:B+m}),c.classList.toggle("cm-tooltip-above",E),c.classList.toggle("cm-tooltip-below",!E),l.positioned&&l.positioned(n.space)}}}},{key:"maybeMeasure",value:function(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView))){var n,e=ot(this.manager.tooltipViews);try{for(e.s();!(n=e.n()).done;)n.value.dom.style.top="-10000px"}catch(i){e.e(i)}finally{e.f()}}}}]),t}(),{eventHandlers:{scroll:function(){this.maybeMeasure()}}}),GQe=pi.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"".concat(7,"px"),width:"".concat(14,"px"),position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"".concat(7,"px solid transparent"),borderRight:"".concat(7,"px solid transparent")},".cm-tooltip-above &":{bottom:"-".concat(7,"px"),"&:before":{borderTop:"".concat(7,"px solid #bbb")},"&:after":{borderTop:"".concat(7,"px solid #f5f5f5"),bottom:"1px"}},".cm-tooltip-below &":{top:"-".concat(7,"px"),"&:before":{borderBottom:"".concat(7,"px solid #bbb")},"&:after":{borderBottom:"".concat(7,"px solid #f5f5f5"),top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),qQe={x:0,y:0},Mk=yi.define({enables:[Ohe,GQe]}),Ik=yi.define(),XQe=function(){function t(n){var e=this;qe(this,t),this.view=n,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Fhe(n,Ik,function(i){return e.createHostedView(i)})}return Xe(t,[{key:"createHostedView",value:function(n){var e=n.create(this.view);return e.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(e.dom),this.mounted&&e.mount&&e.mount(this.view),e}},{key:"mount",value:function(n){var e,i=ot(this.manager.tooltipViews);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.mount&&r.mount(n)}}catch(o){i.e(o)}finally{i.f()}this.mounted=!0}},{key:"positioned",value:function(n){var e,i=ot(this.manager.tooltipViews);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.positioned&&r.positioned(n)}}catch(o){i.e(o)}finally{i.f()}}},{key:"update",value:function(n){this.manager.update(n)}}],[{key:"create",value:function(n){return new t(n)}}]),t}(),YQe=Mk.compute([Ik],function(t){var n=t.facet(Ik).filter(function(e){return e});return 0===n.length?null:{pos:Math.min.apply(Math,Ti(n.map(function(e){return e.pos}))),end:Math.max.apply(Math,Ti(n.filter(function(e){return null!=e.end}).map(function(e){return e.end}))),create:XQe.create,above:n[0].above,arrow:n.some(function(e){return e.arrow})}}),KQe=function(){function t(n,e,i,r,o){qe(this,t),this.view=n,this.source=e,this.field=i,this.setHover=r,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:n.dom,time:0},this.checkHover=this.checkHover.bind(this),n.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),n.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}return Xe(t,[{key:"update",value:function(){var n=this;this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(function(){return n.startHover()},20))}},{key:"active",get:function(){return this.view.state.field(this.field)}},{key:"checkHover",value:function(){if(this.hoverTimeout=-1,!this.active){var n=Date.now()-this.lastMove.time;nr.bottom||e.xr.right+this.view.defaultCharacterWidth)){var o=this.view.bidiSpans(this.view.state.doc.lineAt(i)).find(function(c){return c.from<=i&&c.to>=i}),s=o&&o.dir==Ts.RTL?-1:1,a=this.source(this.view,i,e.x1&&void 0!==arguments[1]?arguments[1]:{},e=$r.define(),i=nl.define({create:function(){return null},update:function(r,o){if(r&&(n.hideOnChange&&(o.docChanged||o.selection)||n.hideOn&&n.hideOn(o,r)))return null;if(r&&o.docChanged){var s=o.changes.mapPos(r.pos,-1,Xl.TrackDel);if(null==s)return null;var a=Object.assign(Object.create(null),r);a.pos=s,null!=r.end&&(a.end=o.changes.mapPos(r.end)),r=a}var l,c=ot(o.effects);try{for(c.s();!(l=c.n()).done;){var u=l.value;u.is(e)&&(r=u.value),u.is(ZQe)&&(r=null)}}catch(h){c.e(h)}finally{c.f()}return r},provide:function(r){return Ik.from(r)}});return[i,Ba.define(function(r){return new KQe(r,t,i,e,n.hoverTime||300)}),YQe]}var ZQe=$r.define(),Rhe=yi.define({combine:function(t){var n,e,i,r=ot(t);try{for(r.s();!(i=r.n()).done;){var o=i.value;n=n||o.topContainer,e=e||o.bottomContainer}}catch(s){r.e(s)}finally{r.f()}return{topContainer:n,bottomContainer:e}}});function m_(t,n){var e=t.plugin($he),i=e?e.specs.indexOf(n):-1;return i>-1?e.panels[i]:null}var $he=Ba.fromClass(function(){function t(n){qe(this,t),this.input=n.state.facet(v_),this.specs=this.input.filter(function(s){return s}),this.panels=this.specs.map(function(s){return s(n)});var e=n.state.facet(Rhe);this.top=new Fk(n,!0,e.topContainer),this.bottom=new Fk(n,!1,e.bottomContainer),this.top.sync(this.panels.filter(function(s){return s.top})),this.bottom.sync(this.panels.filter(function(s){return!s.top}));var i,r=ot(this.panels);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.dom.classList.add("cm-panel"),o.mount&&o.mount()}}catch(s){r.e(s)}finally{r.f()}}return Xe(t,[{key:"update",value:function(n){var e=n.state.facet(Rhe);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new Fk(n.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new Fk(n.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();var i=n.state.facet(v_);if(i!=this.input){var r,o=i.filter(function(L){return L}),s=[],a=[],l=[],c=[],u=ot(o);try{for(u.s();!(r=u.n()).done;){var h=r.value,d=this.specs.indexOf(h),f=void 0;d<0?(f=h(n.view),c.push(f)):(f=this.panels[d]).update&&f.update(n),s.push(f),(f.top?a:l).push(f)}}catch(L){u.e(L)}finally{u.f()}this.specs=o,this.panels=s,this.top.sync(a),this.bottom.sync(l);for(var p=0,m=c;pthis.i;){var e=n.elements.pop();n.dom.removeChild(e.dom),e.destroy()}}}]),t}(),zhe=function(){function t(n,e){var i=this;qe(this,t),this.view=n,this.config=e,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");var r=function(s){i.dom.addEventListener(s,function(a){var l,c=a.target;if(c!=i.dom&&i.dom.contains(c)){for(;c.parentNode!=i.dom;)c=c.parentNode;var u=c.getBoundingClientRect();l=(u.top+u.bottom)/2}else l=a.clientY;var h=n.lineBlockAtHeight(l-n.documentTop);e.domEventHandlers[s](n,h,a)&&a.preventDefault()})};for(var o in e.domEventHandlers)r(o);this.markers=Hhe(e.markers(n)),e.initialSpacer&&(this.spacer=new Uhe(n,0,0,[e.initialSpacer(n)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}return Xe(t,[{key:"update",value:function(n){var e=this.markers;if(this.markers=Hhe(this.config.markers(n.view)),this.spacer&&this.config.updateSpacer){var i=this.config.updateSpacer(this.spacer.markers[0],n);i!=this.spacer.markers[0]&&this.spacer.update(n.view,0,0,[i])}var r=n.view.viewport;return!cs.eq(this.markers,e,r.from,r.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(n)}},{key:"destroy",value:function(){var n,e=ot(this.elements);try{for(e.s();!(n=e.n()).done;)n.value.destroy()}catch(i){e.e(i)}finally{e.f()}}}]),t}(),Uhe=function(){function t(n,e,i,r){qe(this,t),this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(n,e,i,r)}return Xe(t,[{key:"update",value:function(n,e,i,r){this.height!=e&&(this.dom.style.height=(this.height=e)+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),function(o,s){if(o.length!=s.length)return!1;for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:{}),Bhe(),rZe]}function Whe(t){for(var n=9;ni&&(i=s,e.push(sZe.range(s)))}}catch(a){r.e(a)}finally{r.f()}return cs.of(e)}),lZe=0,TR=Xe(function t(n,e){qe(this,t),this.from=n,this.to=e}),Hr=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};qe(this,t),this.id=lZe++,this.perNode=!!n.perNode,this.deserialize=n.deserialize||function(){throw new Error("This node type doesn't define a deserialize function")}}return Xe(t,[{key:"add",value:function(n){var e=this;if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof n&&(n=pu.match(n)),function(i){var r=n(i);return void 0===r?null:[e,r]}}}]),t}();Hr.closedBy=new Hr({deserialize:function(t){return t.split(" ")}}),Hr.openedBy=new Hr({deserialize:function(t){return t.split(" ")}}),Hr.group=new Hr({deserialize:function(t){return t.split(" ")}}),Hr.contextHash=new Hr({perNode:!0}),Hr.lookAhead=new Hr({perNode:!0}),Hr.mounted=new Hr({perNode:!0});var cZe=Object.create(null),pu=function(){function t(n,e,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;qe(this,t),this.name=n,this.props=e,this.id=i,this.flags=r}return Xe(t,[{key:"prop",value:function(n){return this.props[n.id]}},{key:"isTop",get:function(){return(1&this.flags)>0}},{key:"isSkipped",get:function(){return(2&this.flags)>0}},{key:"isError",get:function(){return(4&this.flags)>0}},{key:"isAnonymous",get:function(){return(8&this.flags)>0}},{key:"is",value:function(n){if("string"==typeof n){if(this.name==n)return!0;var e=this.prop(Hr.group);return!!e&&e.indexOf(n)>-1}return this.id==n}}],[{key:"define",value:function(n){var e=n.props&&n.props.length?Object.create(null):cZe,r=new t(n.name||"",e,n.id,(n.top?1:0)|(n.skipped?2:0)|(n.error?4:0)|(null==n.name?8:0));if(n.props){var o,s=ot(n.props);try{for(s.s();!(o=s.n()).done;){var a=o.value;if(Array.isArray(a)||(a=a(r)),a){if(a[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");e[a[0].id]=a[1]}}}catch(l){s.e(l)}finally{s.f()}}return r}},{key:"match",value:function(n){var e=Object.create(null);for(var i in n){var r,o=ot(i.split(" "));try{for(o.s();!(r=o.n()).done;)e[r.value]=n[i]}catch(a){o.e(a)}finally{o.f()}}return function(a){for(var l=a.prop(Hr.group),c=-1;c<(l?l.length:0);c++){var u=e[c<0?a.name:l[c]];if(u)return u}}}}]),t}();pu.none=new pu("",Object.create(null),0,8);var rl,uZe=function(){function t(n){qe(this,t),this.types=n;for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"cursorAt",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=Ok.get(this)||this.topNode,r=new $k(i);return r.moveTo(n,e),Ok.set(this,r._tree),r}},{key:"topNode",get:function(){return new __(this,0,0,null)}},{key:"resolve",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=F0(Ok.get(this)||this.topNode,n,e,!1);return Ok.set(this,i),i}},{key:"resolveInner",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=F0(Ghe.get(this)||this.topNode,n,e,!0);return Ghe.set(this,i),i}},{key:"iterate",value:function(n){for(var e=n.enter,i=n.leave,r=n.from,o=void 0===r?0:r,s=n.to,a=void 0===s?this.length:s,l=this.cursor((n.mode||0)|rl.IncludeAnonymous);;){var c=!1;if(l.from<=a&&l.to>=o&&(l.type.isAnonymous||!1!==e(l))){if(l.firstChild())continue;c=!0}for(;c&&i&&!l.type.isAnonymous&&i(l),!l.nextSibling();){if(!l.parent())return;c=!0}}}},{key:"prop",value:function(n){return n.perNode?this.props?this.props[n.id]:void 0:this.type.prop(n)}},{key:"propValues",get:function(){var n=[];if(this.props)for(var e in this.props)n.push([+e,this.props[e]]);return n}},{key:"balance",value:function(){var n=this;return this.children.length<=8?this:MR(pu.none,this.children,this.positions,0,this.children.length,0,this.length,function(i,r,o){return new t(n.type,i,r,o,n.propValues)},(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).makeTree||function(i,r,o){return new t(pu.none,i,r,o)})}}],[{key:"build",value:function(n){return function fZe(t){var n,e=t.buffer,i=t.nodeSet,r=t.maxBufferLength,o=void 0===r?1024:r,s=t.reused,a=void 0===s?[]:s,l=t.minRepeatType,c=void 0===l?i.types.length:l,u=Array.isArray(e)?new hZe(e,e.length):e,h=i.types,d=0,f=0;function p(B,G,oe,fe,re){for(var ce=u.id,ue=u.start,pe=u.end,De=u.size,ie=f;De<0;){if(u.next(),-1==De)return oe.push(a[ce]),void fe.push(ue-B);if(-3==De)return void(d=ce);if(-4==De)return void(f=ce);throw new RangeError("Unrecognized record size: ".concat(De))}var we,le,Ct,Fe=h[ce],z=ue-B;if(pe-ue<=o&&(le=function(Ct,se){var Se=u.fork(),ke=0,Qe=0,gt=0,rt=Se.end-o,zt={size:0,start:0,skip:0};e:for(var Qt=Se.pos-Ct;Se.pos>Qt;){var Pn=Se.size;if(Se.id==se&&Pn>=0)zt.size=ke,zt.start=Qe,zt.skip=gt,gt+=4,ke+=4,Se.next();else{var Mi=Se.pos-Pn;if(Pn<0||Mi=c?4:0,nr=Se.start;for(Se.next();Se.pos>Mi;){if(Se.size<0){if(-3!=Se.size)break e;Sn+=4}else Se.id>=c&&(Sn+=4);Se.next()}Qe=nr,ke+=Pn,gt+=Sn}}return(se<0||ke==Ct)&&(zt.size=ke,zt.start=Qe,zt.skip=gt),zt.size>4?zt:void 0}(u.pos-G,re))){for(var Q=new Uint16Array(le.size-le.skip),Z=u.pos-le.size,me=Q.length;u.pos>Z;)me=C(le.start,Q,me);we=new b_(Q,pe-le.start,i),z=le.start-B}else{var ae=u.pos-De;u.next();for(var Te=[],Oe=[],Ze=ce>=c?ce:-1,Ve=0,wt=pe;u.pos>ae;)Ze>=0&&u.id==Ze&&u.size>=0?(u.end<=wt-o&&(m(Te,Oe,ue,Ve,u.end,wt,Ze,ie),Ve=Te.length,wt=u.end),u.next()):p(ue,ae,Te,Oe,Ze);if(Ze>=0&&Ve>0&&Ve-1&&Ve>0){var ct=(Ct=Fe,function(se,Se,ke){var Qe,gt,rt=0,zt=se.length-1;if(zt>=0&&(Qe=se[zt])instanceof ol){if(!zt&&Qe.type==Ct&&Qe.length==ke)return Qe;(gt=Qe.prop(Hr.lookAhead))&&(rt=Se[zt]+Qe.length+gt)}return w(Ct,se,Se,ke,rt)});we=MR(Fe,Te,Oe,0,Te.length,0,pe-ue,ct,ct)}else we=w(Fe,Te,Oe,pe-ue,ie-pe)}oe.push(we),fe.push(z)}function m(B,G,oe,fe,re,ce,ue,pe){for(var De=[],ie=[];B.length>fe;)De.push(B.pop()),ie.push(G.pop()+oe-re);B.push(w(i.types[ue],De,ie,ce-re,pe-ce)),G.push(re-oe)}function w(B,G,oe,fe){var re=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,ce=arguments.length>5?arguments[5]:void 0;if(d){var ue=[Hr.contextHash,d];ce=ce?[ue].concat(ce):[ue]}if(re>25){var pe=[Hr.lookAhead,re];ce=ce?[pe].concat(ce):[pe]}return new ol(B,G,oe,fe,ce)}function C(B,G,oe){var fe=u.id,re=u.start,ce=u.end,ue=u.size;if(u.next(),ue>=0&&fe4)for(var De=u.pos-(ue-4);u.pos>De;)oe=C(B,G,oe);G[--oe]=pe,G[--oe]=ce-B,G[--oe]=re-B,G[--oe]=fe}else-3==ue?d=fe:-4==ue&&(f=fe);return oe}for(var k=[],E=[];u.pos>0;)p(t.start||0,t.bufferStart||0,k,E,-1);var L=null!==(n=t.length)&&void 0!==n?n:k.length?E[0]+k[0].length:0;return new ol(h[t.topID],k.reverse(),E.reverse(),L)}(n)}}]),t}();ol.empty=new ol(pu.none,[],[],0);var hZe=function(){function t(n,e){qe(this,t),this.buffer=n,this.index=e}return Xe(t,[{key:"id",get:function(){return this.buffer[this.index-4]}},{key:"start",get:function(){return this.buffer[this.index-3]}},{key:"end",get:function(){return this.buffer[this.index-2]}},{key:"size",get:function(){return this.buffer[this.index-1]}},{key:"pos",get:function(){return this.index}},{key:"next",value:function(){this.index-=4}},{key:"fork",value:function(){return new t(this.buffer,this.index)}}]),t}(),b_=function(){function t(n,e,i){qe(this,t),this.buffer=n,this.length=e,this.set=i}return Xe(t,[{key:"type",get:function(){return pu.none}},{key:"toString",value:function(){for(var n=[],e=0;e0));l=s[l+3]);return a}},{key:"slice",value:function(n,e,i,r){for(var o=this.buffer,s=new Uint16Array(e-n),a=n,l=0;a=n&&en;case 1:return e<=n&&i>n;case 2:return i>n;case 4:return!0}}function Xhe(t,n){for(var e=t.childBefore(n);e;){var i=e.lastChild;if(!i||i.to!=e.to)break;i.type.isError&&i.from==i.to?(t=e,e=i.prevSibling):e=i}return t}function F0(t,n,e,i){for(var r;t.from==t.to||(e<1?t.from>=n:t.from>n)||(e>-1?t.to<=n:t.to4&&void 0!==arguments[4]?arguments[4]:0,s=this;;){for(var a=s._tree,l=a.children,c=a.positions,u=e>0?l.length:-1;n!=u;n+=e){var h=l[n],d=c[n]+s.from;if(qhe(r,i,d,d+h.length))if(h instanceof b_){if(o&rl.ExcludeBuffers)continue;var f=h.findChild(0,h.buffer.length,e,i-d,r);if(f>-1)return new AR(new dZe(s,h,n,d),null,f)}else if(o&rl.IncludeAnonymous||!h.type.isAnonymous||ER(h)){var p=void 0;if(!(o&rl.IgnoreMounts)&&h.props&&(p=h.prop(Hr.mounted))&&!p.overlay)return new t(p.tree,d,n,s);var m=new t(h,d,n,s);return o&rl.IncludeAnonymous||!m.type.isAnonymous?m:m.nextChild(e<0?h.children.length-1:0,e,i,r)}}if(o&rl.IncludeAnonymous||!s.type.isAnonymous||(n=s.index>=0?s.index+e:e<0?-1:s._parent._tree.children.length,!(s=s._parent)))return null}}},{key:"firstChild",get:function(){return this.nextChild(0,1,0,4)}},{key:"lastChild",get:function(){return this.nextChild(this._tree.children.length-1,-1,0,4)}},{key:"childAfter",value:function(n){return this.nextChild(0,1,n,2)}},{key:"childBefore",value:function(n){return this.nextChild(this._tree.children.length-1,-1,n,-2)}},{key:"enter",value:function(n,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!(r&rl.IgnoreOverlays)&&(i=this._tree.prop(Hr.mounted))&&i.overlay){var o,s=n-this.from,a=ot(i.overlay);try{for(a.s();!(o=a.n()).done;){var l=o.value,c=l.from,u=l.to;if((e>0?c<=s:c=s:u>s))return new t(i.tree,i.overlay[0].from+this.from,-1,this)}}catch(h){a.e(h)}finally{a.f()}}return this.nextChild(0,1,n,e,r)}},{key:"nextSignificantParent",value:function(){for(var n=this;n.type.isAnonymous&&n._parent;)n=n._parent;return n}},{key:"parent",get:function(){return this._parent?this._parent.nextSignificantParent():null}},{key:"nextSibling",get:function(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}},{key:"prevSibling",get:function(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}},{key:"cursor",value:function(){return new $k(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"tree",get:function(){return this._tree}},{key:"toTree",value:function(){return this._tree}},{key:"resolve",value:function(n){return F0(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!1)}},{key:"resolveInner",value:function(n){return F0(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!0)}},{key:"enterUnfinishedNodesBefore",value:function(n){return Xhe(this,n)}},{key:"getChild",value:function(n){var r=Nk(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null);return r.length?r[0]:null}},{key:"getChildren",value:function(n){return Nk(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}},{key:"toString",value:function(){return this._tree.toString()}},{key:"node",get:function(){return this}},{key:"matchContext",value:function(n){return Rk(this,n)}}]),t}();function Nk(t,n,e,i){var r=t.cursor(),o=[];if(!r.firstChild())return o;if(null!=e)for(;!r.type.is(e);)if(!r.nextSibling())return o;for(;;){if(null!=i&&r.type.is(i))return o;if(r.type.is(n)&&o.push(r.node),!r.nextSibling())return null==i?o:[]}}function Rk(t,n){for(var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.length-1,i=t.parent;e>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(n[e]&&n[e]!=i.name)return!1;e--}}return!0}var dZe=Xe(function t(n,e,i,r){qe(this,t),this.parent=n,this.buffer=e,this.index=i,this.start=r}),AR=function(){function t(n,e,i){qe(this,t),this.context=n,this._parent=e,this.index=i,this.type=n.buffer.set.types[n.buffer.buffer[i]]}return Xe(t,[{key:"name",get:function(){return this.type.name}},{key:"from",get:function(){return this.context.start+this.context.buffer.buffer[this.index+1]}},{key:"to",get:function(){return this.context.start+this.context.buffer.buffer[this.index+2]}},{key:"child",value:function(n,e,i){var r=this.context.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],n,e-this.context.start,i);return o<0?null:new t(this.context,this,o)}},{key:"firstChild",get:function(){return this.child(1,0,4)}},{key:"lastChild",get:function(){return this.child(-1,0,4)}},{key:"childAfter",value:function(n){return this.child(1,n,2)}},{key:"childBefore",value:function(n){return this.child(-1,n,-2)}},{key:"enter",value:function(n,e){if((arguments.length>2&&void 0!==arguments[2]?arguments[2]:0)&rl.ExcludeBuffers)return null;var r=this.context.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],e>0?1:-1,n-this.context.start,e);return o<0?null:new t(this.context,this,o)}},{key:"parent",get:function(){return this._parent||this.context.parent.nextSignificantParent()}},{key:"externalSibling",value:function(n){return this._parent?null:this.context.parent.nextChild(this.context.index+n,n,0,4)}},{key:"nextSibling",get:function(){var n=this.context.buffer,e=n.buffer[this.index+3];return e<(this._parent?n.buffer[this._parent.index+3]:n.buffer.length)?new t(this.context,this._parent,e):this.externalSibling(1)}},{key:"prevSibling",get:function(){var n=this.context.buffer,e=this._parent?this._parent.index+4:0;return this.index==e?this.externalSibling(-1):new t(this.context,this._parent,n.findChild(e,this.index,-1,0,4))}},{key:"cursor",value:function(){return new $k(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"tree",get:function(){return null}},{key:"toTree",value:function(){var n=[],e=[],i=this.context.buffer,r=this.index+4,o=i.buffer[this.index+3];return o>r&&(n.push(i.slice(r,o,i.buffer[this.index+1],i.buffer[this.index+2])),e.push(0)),new ol(this.type,n,e,this.to-this.from)}},{key:"resolve",value:function(n){return F0(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!1)}},{key:"resolveInner",value:function(n){return F0(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!0)}},{key:"enterUnfinishedNodesBefore",value:function(n){return Xhe(this,n)}},{key:"toString",value:function(){return this.context.buffer.childString(this.index)}},{key:"getChild",value:function(n){var r=Nk(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null);return r.length?r[0]:null}},{key:"getChildren",value:function(n){return Nk(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}},{key:"node",get:function(){return this}},{key:"matchContext",value:function(n){return Rk(this,n)}}]),t}(),$k=function(){function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(qe(this,t),this.mode=e,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,n instanceof __)this.yieldNode(n);else{this._tree=n.context.parent,this.buffer=n.context;for(var i=n._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=n,this.yieldBuf(n.index)}}return Xe(t,[{key:"name",get:function(){return this.type.name}},{key:"yieldNode",value:function(n){return!!n&&(this._tree=n,this.type=n.type,this.from=n.from,this.to=n.to,!0)}},{key:"yieldBuf",value:function(n,e){this.index=n;var i=this.buffer,r=i.start,o=i.buffer;return this.type=e||o.set.types[o.buffer[n]],this.from=r+o.buffer[n+1],this.to=r+o.buffer[n+2],!0}},{key:"yield",value:function(n){return!!n&&(n instanceof __?(this.buffer=null,this.yieldNode(n)):(this.buffer=n.context,this.yieldBuf(n.index,n.type)))}},{key:"toString",value:function(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}},{key:"enterChild",value:function(n,e,i){if(!this.buffer)return this.yield(this._tree.nextChild(n<0?this._tree._tree.children.length-1:0,n,e,i,this.mode));var r=this.buffer.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],n,e-this.buffer.start,i);return!(o<0)&&(this.stack.push(this.index),this.yieldBuf(o))}},{key:"firstChild",value:function(){return this.enterChild(1,0,4)}},{key:"lastChild",value:function(){return this.enterChild(-1,0,4)}},{key:"childAfter",value:function(n){return this.enterChild(1,n,2)}},{key:"childBefore",value:function(n){return this.enterChild(-1,n,-2)}},{key:"enter",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.mode;return this.buffer?!(i&rl.ExcludeBuffers)&&this.enterChild(1,n,e):this.yield(this._tree.enter(n,e,i))}},{key:"parent",value:function(){if(!this.buffer)return this.yieldNode(this.mode&rl.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());var n=this.mode&rl.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(n)}},{key:"sibling",value:function(n){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+n,n,0,4,this.mode));var e=this.buffer.buffer,i=this.stack.length-1;if(n<0){var r=i<0?0:this.stack[i]+4;if(this.index!=r)return this.yieldBuf(e.findChild(r,this.index,-1,0,4))}else{var o=e.buffer[this.index+3];if(o<(i<0?e.buffer.length:e.buffer[this.stack[i]+3]))return this.yieldBuf(o)}return i<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+n,n,0,4,this.mode))}},{key:"nextSibling",value:function(){return this.sibling(1)}},{key:"prevSibling",value:function(){return this.sibling(-1)}},{key:"atLastNode",value:function(n){var e,i,r=this.buffer;if(r){if(n>0){if(this.index-1)for(var l=e+n,c=n<0?-1:i._tree.children.length;l!=c;l+=n){var u=i._tree.children[l];if(this.mode&rl.IncludeAnonymous||u instanceof b_||!u.type.isAnonymous||ER(u))return!1}}return!0}},{key:"move",value:function(n,e){if(e&&this.enterChild(n,0,4))return!0;for(;;){if(this.sibling(n))return!0;if(this.atLastNode(n)||!this.parent())return!1}}},{key:"next",value:function(){return this.move(1,!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"prev",value:function(){return this.move(-1,!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"moveTo",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(this.from==this.to||(e<1?this.from>=n:this.from>n)||(e>-1?this.to<=n:this.to=0;){for(var s=n;s;s=s._parent)if(s.index==r){if(r==this.index)return s;e=s,i=o+1;break e}r=this.stack[--o]}for(var a=i;a=0;o--){if(o<0)return Rk(this.node,n,r);var s=i[e.buffer[this.stack[o]]];if(!s.isAnonymous){if(n[r]&&n[r]!=s.name)return!1;r--}}return!0}}]),t}();function ER(t){return t.children.some(function(n){return n instanceof b_||!n.type.isAnonymous||ER(n)})}var Yhe=new WeakMap;function Pk(t,n){if(!t.isAnonymous||n instanceof b_||n.type!=t)return 1;var e=Yhe.get(n);if(null==e){e=1;var i,r=ot(n.children);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.type!=t||!(o instanceof ol)){e=1;break}e+=Pk(t,o)}}catch(s){r.e(s)}finally{r.f()}Yhe.set(n,e)}return e}function MR(t,n,e,i,r,o,s,a,l){for(var c=0,u=i;u=h)break;oe+=fe}if(L==B+1){if(oe>h){var re=m[B];p(re.children,re.positions,0,re.children.length,w[B]+E);continue}d.push(m[B])}else d.push(MR(t,m,w,B,L,G,w[L-1]+m[L-1].length-G,null,l));f.push(G+E-o)}}(n,e,i,r,0),(a||l)(d,f,s)}var jk=function(){function t(n,e,i,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];qe(this,t),this.from=n,this.to=e,this.tree=i,this.offset=r,this.open=(o?1:0)|(s?2:0)}return Xe(t,[{key:"openStart",get:function(){return(1&this.open)>0}},{key:"openEnd",get:function(){return(2&this.open)>0}}],[{key:"addTree",value:function(n){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=[new t(0,n.length,n,0,!1,arguments.length>2&&void 0!==arguments[2]&&arguments[2])],s=ot(i);try{for(s.s();!(e=s.n()).done;){var a=e.value;a.to>n.length&&o.push(a)}}catch(l){s.e(l)}finally{s.f()}return o}},{key:"applyChanges",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:128;if(!e.length)return n;for(var r=[],o=1,s=n.length?n[0]:null,a=0,l=0,c=0;;a++){var u=a=i)for(;s&&s.from=d.from||h<=d.to||c){var f=Math.max(d.from,l)-c,p=Math.min(d.to,h)-c;d=f>=p?null:new t(f,p,d.tree,d.offset+c,a>0,!!u)}if(d&&r.push(d),s.to>h)break;s=o-1?e:Jhe.get(e.base||e,e.modified.concat(n).sort(function(i,r){return i.id-r.id}))}}}]),t}(),mZe=0,Jhe=function(){function t(){qe(this,t),this.instances=[],this.id=mZe++}return Xe(t,null,[{key:"get",value:function(n,e){if(!e.length)return n;var i=e[0].instances.find(function(m){return m.base==n&&(w=e).length==(C=m.modified).length&&w.every(function(k,E){return k==C[E]});var w,C});if(i)return i;var r,o=[],s=new yp(o,n,e),a=ot(e);try{for(a.s();!(r=a.n()).done;)r.value.instances.push(s)}catch(m){a.e(m)}finally{a.f()}var l,c=Qhe(e),u=ot(n.set);try{for(u.s();!(l=u.n()).done;){var h,d=l.value,f=ot(c);try{for(f.s();!(h=f.n()).done;)o.push(t.get(d,h.value))}catch(m){f.e(m)}finally{f.f()}}}catch(m){u.e(m)}finally{u.f()}return s}}]),t}();function Qhe(t){for(var n=[t],e=0;e0&&u+3==s.length){l=1;break}var h=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(c);if(!h)throw new RangeError("Invalid path: "+s);if(a.push("*"==h[0]?"":'"'==h[0][0]?JSON.parse(h[0]):h[0]),(u+=h[0].length)==s.length)break;var d=s[u++];if(u==s.length&&"!"==d){l=0;break}if("/"!=d)throw new RangeError("Invalid path: "+s);c=s.slice(u)}var f=a.length-1,p=a[f];if(!p)throw new RangeError("Invalid path: "+s);var m=new vZe(i,l,f>0?a.slice(0,f):null);n[p]=m.sort(n[p])}}}catch(w){o.e(w)}finally{o.f()}}return ede.add(n)}var ede=new Hr,vZe=function(){function t(n,e,i,r){qe(this,t),this.tags=n,this.mode=e,this.context=i,this.next=r}return Xe(t,[{key:"sort",value:function(n){return!n||n.depth3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t.length,o=new _Ze(i,Array.isArray(n)?n:[n],e);o.highlightRange(t.cursor(),i,r,"",o.highlighters),o.flush(r)}var IR,_Ze=function(){function t(n,e,i){qe(this,t),this.at=n,this.highlighters=e,this.span=i,this.class=""}return Xe(t,[{key:"startSpan",value:function(n,e){e!=this.class&&(this.flush(n),n>this.at&&(this.at=n),this.class=e)}},{key:"flush",value:function(n){n>this.at&&this.class&&this.span(this.at,n,this.class)}},{key:"highlightRange",value:function(n,e,i,r,o){var s=n.type,a=n.from,l=n.to;if(!(a>=i||l<=e)){s.isTop&&(o=this.highlighters.filter(function(oe){return!oe.scope||oe.scope(s)}));for(var c=r,u=s.prop(ede),h=!1;u;){if(!u.context||n.matchContext(u.context)){var d=yZe(o,u.tags);d&&(c&&(c+=" "),c+=d,1==u.mode?r+=(r?" ":"")+d:0==u.mode&&(h=!0));break}u=u.next}if(this.startSpan(n.from,c),!h){var f=n.tree&&n.tree.prop(Hr.mounted);if(f&&f.overlay){for(var p=n.node.enter(f.overlay[0].from+a,1),m=this.highlighters.filter(function(oe){return!oe.scope||oe.scope(f.tree.type)}),w=n.firstChild(),C=0,k=a;;C++){var E=C=L)&&n.nextSibling()););if(!E||L>i)break;(k=E.to+a)>e&&(this.highlightRange(p.cursor(),Math.max(e,E.from+a),Math.min(i,k),r,m),this.startSpan(k,c))}w&&n.parent()}else if(n.firstChild()){do{if(!(n.to<=e)){if(n.from>=i)break;this.highlightRange(n,e,i,r,o),this.startSpan(Math.min(i,n.to),c)}}while(n.nextSibling());n.parent()}}}}}]),t}(),Hn=yp.define,Bk=Hn(),bp=Hn(),nde=Hn(bp),ide=Hn(bp),_p=Hn(),Hk=Hn(_p),FR=Hn(_p),gd=Hn(),Xg=Hn(gd),md=Hn(),vd=Hn(),LR=Hn(),w_=Hn(LR),Vk=Hn(),Ln={comment:Bk,lineComment:Hn(Bk),blockComment:Hn(Bk),docComment:Hn(Bk),name:bp,variableName:Hn(bp),typeName:nde,tagName:Hn(nde),propertyName:ide,attributeName:Hn(ide),className:Hn(bp),labelName:Hn(bp),namespace:Hn(bp),macroName:Hn(bp),literal:_p,string:Hk,docString:Hn(Hk),character:Hn(Hk),attributeValue:Hn(Hk),number:FR,integer:Hn(FR),float:Hn(FR),bool:Hn(_p),regexp:Hn(_p),escape:Hn(_p),color:Hn(_p),url:Hn(_p),keyword:md,self:Hn(md),null:Hn(md),atom:Hn(md),unit:Hn(md),modifier:Hn(md),operatorKeyword:Hn(md),controlKeyword:Hn(md),definitionKeyword:Hn(md),moduleKeyword:Hn(md),operator:vd,derefOperator:Hn(vd),arithmeticOperator:Hn(vd),logicOperator:Hn(vd),bitwiseOperator:Hn(vd),compareOperator:Hn(vd),updateOperator:Hn(vd),definitionOperator:Hn(vd),typeOperator:Hn(vd),controlOperator:Hn(vd),punctuation:LR,separator:Hn(LR),bracket:w_,angleBracket:Hn(w_),squareBracket:Hn(w_),paren:Hn(w_),brace:Hn(w_),content:gd,heading:Xg,heading1:Hn(Xg),heading2:Hn(Xg),heading3:Hn(Xg),heading4:Hn(Xg),heading5:Hn(Xg),heading6:Hn(Xg),contentSeparator:Hn(gd),list:Hn(gd),quote:Hn(gd),emphasis:Hn(gd),strong:Hn(gd),link:Hn(gd),monospace:Hn(gd),strikethrough:Hn(gd),inserted:Hn(),deleted:Hn(),changed:Hn(),invalid:Hn(),meta:Vk,documentMeta:Hn(Vk),annotation:Hn(Vk),processingInstruction:Hn(Vk),definition:yp.defineModifier(),constant:yp.defineModifier(),function:yp.defineModifier(),standard:yp.defineModifier(),local:yp.defineModifier(),special:yp.defineModifier()};tde([{tag:Ln.link,class:"tok-link"},{tag:Ln.heading,class:"tok-heading"},{tag:Ln.emphasis,class:"tok-emphasis"},{tag:Ln.strong,class:"tok-strong"},{tag:Ln.keyword,class:"tok-keyword"},{tag:Ln.atom,class:"tok-atom"},{tag:Ln.bool,class:"tok-bool"},{tag:Ln.url,class:"tok-url"},{tag:Ln.labelName,class:"tok-labelName"},{tag:Ln.inserted,class:"tok-inserted"},{tag:Ln.deleted,class:"tok-deleted"},{tag:Ln.literal,class:"tok-literal"},{tag:Ln.string,class:"tok-string"},{tag:Ln.number,class:"tok-number"},{tag:[Ln.regexp,Ln.escape,Ln.special(Ln.string)],class:"tok-string2"},{tag:Ln.variableName,class:"tok-variableName"},{tag:Ln.local(Ln.variableName),class:"tok-variableName tok-local"},{tag:Ln.definition(Ln.variableName),class:"tok-variableName tok-definition"},{tag:Ln.special(Ln.variableName),class:"tok-variableName2"},{tag:Ln.definition(Ln.propertyName),class:"tok-propertyName tok-definition"},{tag:Ln.typeName,class:"tok-typeName"},{tag:Ln.namespace,class:"tok-namespace"},{tag:Ln.className,class:"tok-className"},{tag:Ln.macroName,class:"tok-macroName"},{tag:Ln.propertyName,class:"tok-propertyName"},{tag:Ln.operator,class:"tok-operator"},{tag:Ln.comment,class:"tok-comment"},{tag:Ln.meta,class:"tok-meta"},{tag:Ln.invalid,class:"tok-invalid"},{tag:Ln.punctuation,class:"tok-punctuation"}]);var L0=new Hr,wZe=new Hr,hh=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";qe(this,t),this.data=n,this.name=r,Qo.prototype.hasOwnProperty("tree")||Object.defineProperty(Qo.prototype,"tree",{get:function(){return kl(this)}}),this.parser=e,this.extension=[wp.of(this),Qo.languageData.of(function(o,s,a){var l=rde(o,s,a),c=l.type.prop(L0);if(!c)return[];var u=o.facet(c),h=l.type.prop(wZe);if(h){var d,f=l.resolve(s-l.from,a),p=ot(h);try{for(p.s();!(d=p.n()).done;){var m=d.value;if(m.test(f,o)){var w=o.facet(m.facet);return"replace"==m.type?w:w.concat(u)}}}catch(C){p.e(C)}finally{p.f()}}return u})].concat(i)}return Xe(t,[{key:"isActiveAt",value:function(n,e){return rde(n,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1).type.prop(L0)==this.data}},{key:"findRegions",value:function(n){var e=this,i=n.facet(wp);if(i?.data==this.data)return[{from:0,to:n.doc.length}];if(!i||!i.allowsNesting)return[];var r=[];return function o(s,a){if(s.prop(L0)!=e.data){var l=s.prop(Hr.mounted);if(l){if(l.tree.prop(L0)==e.data){if(l.overlay){var c,u=ot(l.overlay);try{for(u.s();!(c=u.n()).done;){var h=c.value;r.push({from:h.from+a,to:h.to+a})}}catch(m){u.e(m)}finally{u.f()}}else r.push({from:a,to:a+s.length});return}if(l.overlay){var d=r.length;if(o(l.tree,l.overlay[0].from+a),r.length>d)return}}for(var f=0;f=this.cursorPos?this.doc.sliceString(n,e):this.string.slice(n-i,e-i)}}]),t}(),x_=null,SZe=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0;qe(this,t),this.parser=n,this.state=e,this.fragments=i,this.tree=r,this.treeLen=o,this.viewport=s,this.skipped=a,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}return Xe(t,[{key:"startParse",value:function(){return this.parser.startParse(new CZe(this.state.doc),this.fragments)}},{key:"work",value:function(n,e){var i=this;return null!=e&&e>=this.state.doc.length&&(e=void 0),this.tree!=ol.empty&&this.isDone(e??this.state.doc.length)?(this.takeTree(),!0):this.withContext(function(){var r;if("number"==typeof n){var o=Date.now()+n;n=function(){return Date.now()>o}}for(i.parse||(i.parse=i.startParse()),null!=e&&(null==i.parse.stoppedAt||i.parse.stoppedAt>e)&&e=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>n)&&this.parse.stopAt(n),this.withContext(function(){for(;!(e=i.parse.advance()););}),this.treeLen=n,this.tree=e,this.fragments=this.withoutTempSkipped(jk.addTree(this.tree,this.fragments,!0)),this.parse=null)}},{key:"withContext",value:function(n){var e=x_;x_=this;try{return n()}finally{x_=e}}},{key:"withoutTempSkipped",value:function(n){for(var e;e=this.tempSkipped.pop();)n=ode(n,e.from,e.to);return n}},{key:"changes",value:function(n,e){var i=this.fragments,r=this.tree,o=this.treeLen,s=this.viewport,a=this.skipped;if(this.takeTree(),!n.empty){var l=[];if(n.iterChangedRanges(function(p,m,w,C){return l.push({fromA:p,toA:m,fromB:w,toB:C})}),i=jk.applyChanges(i,l),r=ol.empty,o=0,s={from:n.mapPos(s.from,-1),to:n.mapPos(s.to,1)},this.skipped.length){a=[];var c,u=ot(this.skipped);try{for(u.s();!(c=u.n()).done;){var h=c.value,d=n.mapPos(h.from,1),f=n.mapPos(h.to,-1);dn.from&&(this.fragments=ode(this.fragments,o,s),this.skipped.splice(i--,1))}return!(this.skipped.length>=e||(this.reset(),0))}},{key:"reset",value:function(){this.parse&&(this.takeTree(),this.parse=null)}},{key:"skipUntilInView",value:function(n,e){this.skipped.push({from:n,to:e})}},{key:"isDone",value:function(n){n=Math.min(n,this.state.doc.length);var e=this.fragments;return this.treeLen>=n&&e.length&&0==e[0].from&&e[0].to>=n}}],[{key:"create",value:function(n,e,i){return new t(n,e,[],ol.empty,0,i,[],null)}},{key:"getSkippingParser",value:function(n){return new(function(e){Wt(r,Khe);var i=Gt(r);function r(){return qe(this,r),i.apply(this,arguments)}return Xe(r,[{key:"createParse",value:function(o,s,a){var l=a[0].from,c=a[a.length-1].to;return{parsedPos:l,advance:function(){var u=x_;if(u){var h,d=ot(a);try{for(d.s();!(h=d.n()).done;)u.tempSkipped.push(h.value)}catch(p){d.e(p)}finally{d.f()}n&&(u.scheduleOn=u.scheduleOn?Promise.all([u.scheduleOn,n]):n)}return this.parsedPos=c,new ol(pu.none,[],[],c-l)},stoppedAt:null,stopAt:function(){}}}}]),r}())}},{key:"get",value:function(){return x_}}]),t}();function ode(t,n,e){return jk.applyChanges(t,[{fromA:n,toA:e,fromB:n,toB:e}])}var OR=function(){function t(n){qe(this,t),this.context=n,this.tree=n.tree}return Xe(t,[{key:"apply",value:function(n){if(!n.docChanged&&this.tree==this.context.tree)return this;var e=this.context.changes(n.changes,n.state),i=this.context.treeLen==n.startState.doc.length?void 0:Math.max(n.changes.mapPos(this.context.treeLen),e.viewport.to);return e.work(20,i)||e.takeTree(),new t(e)}}],[{key:"init",value:function(n){var e=Math.min(3e3,n.doc.length),i=SZe.create(n.facet(wp).parser,n,{from:0,to:e});return i.work(20,e)||i.takeTree(),new t(i)}}]),t}();hh.state=nl.define({create:OR.init,update:function(t,n){var e,i=ot(n.effects);try{for(i.s();!(e=i.n()).done;){var r=e.value;if(r.is(hh.setState))return r.value}}catch(o){i.e(o)}finally{i.f()}return n.startState.facet(wp)!=n.state.facet(wp)?OR.init(n.state):t.apply(n)}});var sde=function(t){var n=setTimeout(function(){return t()},500);return function(){return clearTimeout(n)}};typeof requestIdleCallback<"u"&&(sde=function(t){var n=-1,e=setTimeout(function(){n=requestIdleCallback(t,{timeout:400})},100);return function(){return n<0?clearTimeout(e):cancelIdleCallback(n)}});var NR=typeof navigator<"u"&&null!==(IR=navigator.scheduling)&&void 0!==IR&&IR.isInputPending?function(){return navigator.scheduling.isInputPending()}:null,kZe=Ba.fromClass(function(){function t(n){qe(this,t),this.view=n,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}return Xe(t,[{key:"update",value:function(n){var e=this.view.state.field(hh.state).context;(e.updateViewport(n.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),n.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}},{key:"scheduleWork",value:function(){if(!this.working){var n=this.view.state,e=n.field(hh.state);e.tree==e.context.tree&&e.context.isDone(n.doc.length)||(this.working=sde(this.work))}}},{key:"work",value:function(n){this.working=null;var e=Date.now();if(this.chunkEndo+1e3,c=s.context.work(function(){return NR&&NR()||Date.now()>a},o+(l?0:1e5));this.chunkBudget-=Date.now()-e,(c||this.chunkBudget<=0)&&(s.context.takeTree(),this.view.dispatch({effects:hh.setState.of(new OR(s.context))})),this.chunkBudget>0&&(!c||l)&&this.scheduleWork(),this.checkAsyncSchedule(s.context)}}}},{key:"checkAsyncSchedule",value:function(n){var e=this;n.scheduleOn&&(this.workScheduled++,n.scheduleOn.then(function(){return e.scheduleWork()}).catch(function(i){return Pc(e.view.state,i)}).then(function(){return e.workScheduled--}),n.scheduleOn=null)}},{key:"destroy",value:function(){this.working&&this.working()}},{key:"isWorking",value:function(){return!!(this.working||this.workScheduled>0)}}]),t}(),{eventHandlers:{focus:function(){this.scheduleWork()}}}),wp=yi.define({combine:function(t){return t.length?t[0]:null},enables:function(t){return[hh.state,kZe,pi.contentAttributes.compute([t],function(n){var e=n.facet(t);return e&&e.name?{"data-language":e.name}:{}})]}}),DZe=Xe(function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];qe(this,t),this.language=n,this.support=e,this.extension=[n,e]}),TZe=yi.define(),zk=yi.define({combine:function(t){if(!t.length)return" ";var n=t[0];if(!n||/\S/.test(n)||Array.from(n).some(function(e){return e!=n[0]}))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return n}});function O0(t){var n=t.facet(zk);return 9==n.charCodeAt(0)?t.tabSize*n.length:n.length}function C_(t,n){var e="",i=t.tabSize,r=t.facet(zk)[0];if("\t"==r){for(;n>=i;)e+="\t",n-=i;r=" "}for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:{};qe(this,t),this.state=n,this.options=e,this.unit=O0(n)}return Xe(t,[{key:"lineAt",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=this.state.doc.lineAt(n),r=this.options,o=r.simulateBreak;return null!=o&&o>=i.from&&o<=i.to?r.simulateDoubleBreak&&o==n?{text:"",from:n}:(e<0?o1&&void 0!==arguments[1]?arguments[1]:1),r=i.text,o=i.from;return r.slice(n-o,Math.min(r.length,n+100-o))}},{key:"column",value:function(n){var i=this.lineAt(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),r=i.text,o=i.from,s=this.countColumn(r,n-o),a=this.options.overrideIndentation?this.options.overrideIndentation(o):-1;return a>-1&&(s+=a-this.countColumn(r,r.search(/\S|$/))),s}},{key:"countColumn",value:function(n){return r_(n,this.state.tabSize,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.length)}},{key:"lineIndent",value:function(n){var i=this.lineAt(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),r=i.text,s=this.options.overrideIndentation;if(s){var a=s(i.from);if(a>-1)return a}return this.countColumn(r,r.search(/\S|$/))}},{key:"simulatedBreak",get:function(){return this.options.simulateBreak||null}}]),t}(),ade=new Hr;function AZe(t){var n=t.type.prop(ade);if(n)return n;var e,i=t.firstChild;if(i&&(e=i.type.prop(Hr.closedBy))){var r=t.lastChild,o=r&&e.indexOf(r.name)>-1;return function(s){return function(a,l,c,u,h){var f=a.textAfter.match(/^\s*/)[0].length,p=h==a.pos+f,m=function(w){var C=w.node,k=C.childAfter(C.from),E=C.lastChild;if(!k)return null;for(var L=w.options.simulateBreak,B=w.state.doc.lineAt(k.from),G=null==L||L<=B.from?B.to:Math.min(B.to,L),oe=k.to;;){var fe=C.childAfter(oe);if(!fe||fe==E)return null;if(!fe.type.isSkipped)return fe.from0&&void 0!==arguments[0]?arguments[0]:{},n=t.except,e=t.units,i=void 0===e?1:e;return function(r){var o=n&&n.test(r.textAfter);return r.baseIndent+(o?0:i*r.unit)}}var FZe=yi.define(),ude=new Hr;function Wk(t,n,e){var i,r=ot(t.facet(FZe));try{for(r.s();!(i=r.n()).done;){var o=(0,i.value)(t,n,e);if(o)return o}}catch(s){r.e(s)}finally{r.f()}return function(s,a,l){var c=kl(s);if(c.lengthl)){if(d&&f.from=a&&m.to>l&&(d=m)}}return d}(t,n,e)}function hde(t,n){var e=n.mapPos(t.from,1),i=n.mapPos(t.to,-1);return e>=i?void 0:{from:e,to:i}}var Gk=$r.define({map:hde}),S_=$r.define({map:hde});function dde(t){var n,e=[],i=ot(t.state.selection.ranges);try{var r=function(){var o=n.value.head;if(e.some(function(s){return s.from<=o&&s.to>=o}))return"continue";e.push(t.lineBlockAt(o))};for(i.s();!(n=i.n()).done;)r()}catch(o){i.e(o)}finally{i.f()}return e}var Yg=nl.define({create:function(){return Hi.none},update:function(t,n){t=t.map(n.changes);var e,i=ot(n.effects);try{var r=function(){var c,u,h,a=e.value;a.is(Gk)&&(u=a.value.to,h=!1,t.between(c=a.value.from,c,function(d,f){d==c&&f==u&&(h=!0)}),!h)?t=t.update({add:[vde.range(a.value.from,a.value.to)]}):a.is(S_)&&(t=t.update({filter:function(l,c){return a.value.from!=l||a.value.to!=c},filterFrom:a.value.from,filterTo:a.value.to}))};for(i.s();!(e=i.n()).done;)r()}catch(a){i.e(a)}finally{i.f()}if(n.selection){var o=!1,s=n.selection.main.head;t.between(s,s,function(a,l){as&&(o=!0)}),o&&(t=t.update({filterFrom:s,filterTo:s,filter:function(a,l){return l<=s||a>=s}}))}return t},provide:function(t){return pi.decorations.from(t)},toJSON:function(t,n){var e=[];return t.between(0,n.doc.length,function(i,r){e.push(i,r)}),e},fromJSON:function(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");for(var n=[],e=0;eo)&&(r={from:o,to:s})}),r}function fde(t,n){return t.field(Yg,!1)?n:n.concat($r.appendConfig.of(mde()))}function pde(t,n){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=t.state.doc.lineAt(n.from).number,r=t.state.doc.lineAt(n.to).number;return pi.announce.of("".concat(t.state.phrase(e?"Folded lines":"Unfolded lines")," ").concat(i," ").concat(t.state.phrase("to")," ").concat(r,"."))}var LZe=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:function(t){var n,e=ot(dde(t));try{for(e.s();!(n=e.n()).done;){var i=n.value,r=Wk(t.state,i.from,i.to);if(r)return t.dispatch({effects:fde(t.state,[Gk.of(r),pde(t,r)])}),!0}}catch(o){e.e(o)}finally{e.f()}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:function(t){if(!t.state.field(Yg,!1))return!1;var n,e=[],i=ot(dde(t));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=qk(t.state,r.from,r.to);o&&e.push(S_.of(o),pde(t,o,!1))}}catch(s){i.e(s)}finally{i.f()}return e.length&&t.dispatch({effects:e}),e.length>0}},{key:"Ctrl-Alt-[",run:function(t){for(var n=t.state,e=[],i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=Object.assign(Object.assign({},NZe),t),e=new $R(n,!0),i=new $R(n,!1),r=Ba.fromClass(function(){function s(a){qe(this,s),this.from=a.viewport.from,this.markers=this.buildMarkers(a)}return Xe(s,[{key:"update",value:function(a){(a.docChanged||a.viewportChanged||a.startState.facet(wp)!=a.state.facet(wp)||a.startState.field(Yg,!1)!=a.state.field(Yg,!1)||kl(a.startState)!=kl(a.state)||n.foldingChanged(a))&&(this.markers=this.buildMarkers(a.view))}},{key:"buildMarkers",value:function(a){var l,c=new Wg,u=ot(a.viewportLineBlocks);try{for(u.s();!(l=u.n()).done;){var h=l.value,d=qk(a.state,h.from,h.to)?i:Wk(a.state,h.from,h.to)?e:null;d&&c.add(h.from,h.from,d)}}catch(f){u.e(f)}finally{u.f()}return c.finish()}}]),s}()),o=n.domEventHandlers;return[r,jhe({class:"cm-foldGutter",markers:function(s){var a;return(null===(a=s.plugin(r))||void 0===a?void 0:a.markers)||cs.empty},initialSpacer:function(){return new $R(n,!1)},domEventHandlers:Object.assign(Object.assign({},o),{click:function(s,a,l){if(o.click&&o.click(s,a,l))return!0;var c=qk(s.state,a.from,a.to);if(c)return s.dispatch({effects:S_.of(c)}),!0;var u=Wk(s.state,a.from,a.to);return!!u&&(s.dispatch({effects:Gk.of(u)}),!0)}})}),mde()]}var $Ze=pi.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}}),PR=function(){function t(n,e){var i;function r(a){var l=pp.newName();return(i||(i=Object.create(null)))["."+l]=a,l}qe(this,t),this.specs=n;var o="string"==typeof e.all?e.all:e.all?r(e.all):void 0,s=e.scope;this.scope=s instanceof hh?function(a){return a.prop(L0)==s.data}:s?function(a){return a==s}:void 0,this.style=tde(n.map(function(a){return{tag:a.tag,class:a.class||r(Object.assign({},a,{tag:null}))}}),{all:o}).style,this.module=i?new pp(i):null,this.themeType=e.themeType}return Xe(t,null,[{key:"define",value:function(n,e){return new t(n,e||{})}}]),t}(),jR=yi.define(),yde=yi.define({combine:function(t){return t.length?[t[0]]:null}});function BR(t){var n=t.facet(jR);return n.length?n:t.facet(yde)}function bde(t,n){var e,i=[jZe];return t instanceof PR&&(t.module&&i.push(pi.styleModule.of(t.module)),e=t.themeType),i.push(n?.fallback?yde.of(t):e?jR.computeN([pi.darkTheme],function(r){return r.facet(pi.darkTheme)==("dark"==e)?[t]:[]}):jR.of(t)),i}var PZe=function(){function t(n){qe(this,t),this.markCache=Object.create(null),this.tree=kl(n.state),this.decorations=this.buildDeco(n,BR(n.state))}return Xe(t,[{key:"update",value:function(n){var e=kl(n.state),i=BR(n.state),r=i!=BR(n.startState);e.length0&&yd(n.state,s.head-1,1,r)||r.afterCursor&&(yd(n.state,s.head,1,r)||s.head0&&void 0!==arguments[0]?arguments[0]:{}),GZe]}var XZe=new Hr;function HR(t,n,e){var i=t.prop(n<0?Hr.openedBy:Hr.closedBy);if(i)return i;if(1==t.name.length){var r=e.indexOf(t.name);if(r>-1&&r%2==(n<0?1:0))return[e[r+n]]}return null}function VR(t){var n=t.type.prop(XZe);return n?n(t.node):t}function yd(t,n,e){for(var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=i.maxScanDistance||1e4,o=i.brackets||"()[]{}",s=kl(t),a=s.resolveInner(n,e),l=a;l;l=l.parent){var c=HR(l.type,e,o);if(c&&l.from0?n>=u.from&&nu.from&&n<=u.to))return YZe(0,0,e,l,u,c,o)}}return function KZe(t,n,e,i,r,o,s){var a=e<0?t.sliceDoc(n-1,n):t.sliceDoc(n,n+1),l=s.indexOf(a);if(l<0||l%2==0!=e>0)return null;for(var c={from:e<0?n-1:n,to:e>0?n+1:n},u=t.doc.iterRange(n,e>0?t.doc.length:0),h=0,d=0;!u.next().done&&d<=o;){var f=u.value;e<0&&(d+=f.length);for(var p=n+d*e,m=e>0?0:f.length-1,w=e>0?f.length:-1;m!=w;m+=e){var C=s.indexOf(f[m]);if(!(C<0||i.resolveInner(p+m,1).type!=r))if(C%2==0==e>0)h++;else{if(1==h)return{start:c,end:{from:p+m,to:p+m+1},matched:C>>1==l>>1};h--}}e>0&&(d+=f.length)}return u.done?{start:c,matched:!1}:null}(t,n,e,s,a.type,r,o)}function YZe(t,n,e,i,r,o,s){var l={from:r.from,to:r.to},c=0,u=i.parent?.cursor();if(u&&(e<0?u.childBefore(i.from):u.childAfter(i.to)))do{if(e<0?u.to<=i.from:u.from>=i.to){if(0==c&&o.indexOf(u.type.name)>-1&&u.from-1||(xde.push(t),console.warn(n))}function tet(t,n){var e,i=null,r=ot(n.split("."));try{for(r.s();!(e=r.n()).done;){var o=e.value,s=t[o]||Ln[o];s?"function"==typeof s?i?i=s(i):UR(o,"Modifier ".concat(o," used at start of tag")):i?UR(o,"Tag ".concat(o," used as modifier")):i=s:UR(o,"Unknown highlighting tag ".concat(o))}}catch(c){r.e(c)}finally{r.f()}if(!i)return 0;var a=n.replace(/ /g,"_"),l=pu.define({id:wde.length,name:a,props:[Zhe(rc({},a,i))]});return wde.push(l),l.id}function WR(t,n){return function(e){var i=e.state,r=e.dispatch;if(i.readOnly)return!1;var o=t(n,i);return!!o&&(r(i.update(o)),!0)}}var net=WR(function set(t,n){var e,r=[],o=-1,s=ot(arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.selection.ranges);try{for(s.s();!(e=s.n()).done;){for(var a=e.value,l=a.from,c=a.to,u=r.length,h=1e9,d=l;d<=c;){var f=n.doc.lineAt(d);if(f.from>o&&(l==c||c>f.from)){o=f.from;var p=GR(n,f.from).line;if(!p)continue;var m=/^\s*/.exec(f.text)[0].length,w=m==f.length,C=f.text.slice(m,m+p.length)==p?m:-1;m=0})){var De,ie=[],ge=ot(r);try{for(ge.s();!(De=ge.n()).done;){var we=De.value,le=we.line,Fe=we.comment;if(Fe>=0){var Q=le.from+Fe,Z=Q+we.token.length;" "==le.text[Z-le.from]&&Z++,ie.push({from:Q,to:Z})}}}catch(me){ge.e(me)}finally{ge.f()}return{changes:ie}}return null},0),iet=WR(kde,0),ret=WR(function(t,n){return kde(t,n,function(e){var i,r=[],o=ot(e.selection.ranges);try{for(o.s();!(i=o.n()).done;){var s=i.value,a=e.doc.lineAt(s.from),l=s.to<=a.to?a:e.doc.lineAt(s.to),c=r.length-1;c>=0&&r[c].to>a.from?r[c].to=l.to:r.push({from:a.from,to:l.to})}}catch(u){o.e(u)}finally{o.f()}return r}(n))},0);function GR(t,n){var e=t.languageDataAt("commentTokens",n);return e.length?e[0]:{}}function kde(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.selection.ranges,i=e.map(function(d){return GR(n,d.from).block});if(!i.every(function(d){return d}))return null;var r=e.map(function(d,f){return function oet(t,n,e,i){var r,o,s=n.open,a=n.close,l=t.sliceDoc(e-50,e),c=t.sliceDoc(i,i+50),u=/\s*$/.exec(l)[0].length,h=/^\s*/.exec(c)[0].length,d=l.length-u;if(l.slice(d-s.length,d)==s&&c.slice(h,h+a.length)==a)return{open:{pos:e-u,margin:u&&1},close:{pos:i+h,margin:h&&1}};i-e<=100?r=o=t.sliceDoc(e,i):(r=t.sliceDoc(e,e+50),o=t.sliceDoc(i-50,i));var f=/^\s*/.exec(r)[0].length,p=/\s*$/.exec(o)[0].length,m=o.length-p-a.length;return r.slice(f,f+s.length)==s&&o.slice(m,m+a.length)==a?{open:{pos:e+f+s.length,margin:/\s/.test(r.charAt(f+s.length))?1:0},close:{pos:i-p-a.length,margin:/\s/.test(o.charAt(m-1))?1:0}}:null}(n,i[f],d.from,d.to)});if(2!=t&&!r.every(function(d){return d}))return{changes:n.changes(e.map(function(d,f){return r[f]?[]:[{from:d.from,insert:i[f].open+" "},{from:d.to,insert:" "+i[f].close}]}))};if(1!=t&&r.some(function(d){return d})){for(var o,s=[],a=0;a0&&void 0!==arguments[0]?arguments[0]:{}),pi.domEventHandlers({beforeinput:function(n,e){var i="historyUndo"==n.inputType?YR:"historyRedo"==n.inputType?Yk:null;return!!i&&(n.preventDefault(),i(e))}})]}function Xk(t,n){return function(e){var i=e.state,r=e.dispatch;if(!n&&i.readOnly)return!1;var o=i.field(XR,!1);if(!o)return!1;var s=o.pop(t,i,n);return!!s&&(r(s),!0)}}var YR=Xk(0,!1),Yk=Xk(1,!1),het=Xk(0,!0),det=Xk(1,!0);function Tde(t){return function(n){var e=n.field(XR,!1);if(!e)return 0;var i=0==t?e.done:e.undone;return i.length-(i.length&&!i[0].changes?1:0)}}var fet=Tde(0),pet=Tde(1),hf=function(){function t(n,e,i,r,o){qe(this,t),this.changes=n,this.effects=e,this.mapped=i,this.startSelection=r,this.selectionsAfter=o}return Xe(t,[{key:"setSelAfter",value:function(n){return new t(this.changes,this.effects,this.mapped,this.startSelection,n)}},{key:"toJSON",value:function(){var n,e,i;return{changes:null===(n=this.changes)||void 0===n?void 0:n.toJSON(),mapped:null===(e=this.mapped)||void 0===e?void 0:e.toJSON(),startSelection:null===(i=this.startSelection)||void 0===i?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(function(r){return r.toJSON()})}}}],[{key:"fromJSON",value:function(n){return new t(n.changes&&lh.fromJSON(n.changes),[],n.mapped&&w0.fromJSON(n.mapped),n.startSelection&&_n.fromJSON(n.startSelection),n.selectionsAfter.map(_n.fromJSON))}},{key:"fromTransaction",value:function(n,e){var i,r=gu,o=ot(n.startState.facet(cet));try{for(o.s();!(i=o.n()).done;){var s=(0,i.value)(n);s.length&&(r=r.concat(s))}}catch(a){o.e(a)}finally{o.f()}return!r.length&&n.changes.empty?null:new t(n.changes.invert(n.startState.doc),r,void 0,e||n.startState.selection,gu)}},{key:"selection",value:function(n){return new t(void 0,gu,void 0,void 0,n)}}]),t}();function Kk(t,n,e,i){var o=t.slice(n+1>e+20?n-e-1:0,n);return o.push(i),o}function Ade(t,n){return t.length?n.length?t.concat(n):t:n}var gu=[];function Ede(t,n){if(t.length){var e=t[t.length-1],i=e.selectionsAfter.slice(Math.max(0,e.selectionsAfter.length-200));return i.length&&i[i.length-1].eq(n)?t:(i.push(n),Kk(t,t.length-1,1e9,e.setSelAfter(i)))}return[hf.selection([n])]}function get(t){var n=t[t.length-1],e=t.slice();return e[t.length-1]=n.setSelAfter(n.selectionsAfter.slice(0,n.selectionsAfter.length-1)),e}function KR(t,n){if(!t.length)return t;for(var e=t.length,i=gu;e;){var r=met(t[e-1],n,i);if(r.changes&&!r.changes.empty||r.effects.length){var o=t.slice(0,e);return o[e-1]=r,o}n=r.mapped,e--,i=r.selectionsAfter}return i.length?[hf.selection(i)]:gu}function met(t,n,e){var i=Ade(t.selectionsAfter.length?t.selectionsAfter.map(function(a){return a.map(n)}):gu,e);if(!t.changes)return hf.selection(i);var r=t.changes.map(n),o=n.mapDesc(t.changes,!0),s=t.mapped?t.mapped.composeDesc(o):o;return new hf(r,$r.mapEffects(t.effects,n),s,t.startSelection.map(o),i)}var vet=/^(input\.type|delete)($|\.)/,k_=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;qe(this,t),this.done=n,this.undone=e,this.prevTime=i,this.prevUserEvent=r}return Xe(t,[{key:"isolate",value:function(){return this.prevTime?new t(this.done,this.undone):this}},{key:"addChanges",value:function(n,e,i,r,o){var c,u,h,s=this.done,a=s[s.length-1];return new t(s=a&&a.changes&&!a.changes.empty&&n.changes&&(!i||vet.test(i))&&(!a.selectionsAfter.length&&e-this.prevTime=C&&p<=k&&(h=!0)}}),h))||"input.type.compose"==i)?Kk(s,s.length-1,r.minDepth,new hf(n.changes.compose(a.changes),Ade(n.effects,a.effects),a.mapped,a.startSelection,gu)):Kk(s,s.length,r.minDepth,n),gu,e,i)}},{key:"addSelection",value:function(n,e,i,r){var s,a,o=this.done.length?this.done[this.done.length-1].selectionsAfter:gu;return o.length>0&&e-this.prevTime2||/[^\s,.;:]/.test(t.sliceDoc(n.from,n.to)))||n.firstChild}function Qk(t,n,e){for(var i=kl(t).resolveInner(n.head),r=e?Hr.closedBy:Hr.openedBy,o=n.head;;){var s=e?i.childAfter(o):i.childBefore(o);if(!s)break;bet(t,s,r)?i=s:o=e?s.to:s.from}var a,l;return l=i.type.prop(r)&&(a=e?yd(t,i.from,1):yd(t,i.to,-1))&&a.matched?e?a.end.to:a.end.from:e?i.to:i.from,_n.cursor(l,e?-1:1)}function Ode(t,n){return dh(t,function(e){if(!e.empty)return Jk(e,n);var i=t.moveVertically(e,n);return i.head!=e.head?i:t.moveToLineBoundary(e,n)})}var Nde=function(t){return Ode(t,!1)},Rde=function(t){return Ode(t,!0)};function $de(t){var n,e=t.scrollDOM.clientHeightl&&s.bottoms&&(e="delete.forward",l=eD(t,l,!0)),s=Math.min(s,l),a=Math.max(a,l)}else s=eD(t,s,!1),a=eD(t,a,!0);return s==a?{range:o}:{changes:{from:s,to:a},range:_n.cursor(s)}});return!r.changes.empty&&(t.dispatch(i.update(r,{scrollIntoView:!0,userEvent:e,effects:"delete.selection"==e?pi.announce.of(i.phrase("Selection deleted")):void 0})),!0)}function eD(t,n,e){if(t instanceof pi){var i,r=ot(t.state.facet(pi.atomicRanges).map(function(o){return o(t)}));try{for(r.s();!(i=r.n()).done;)i.value.between(n,n,function(o,s){on&&(n=e?s:o)})}catch(o){r.e(o)}finally{r.f()}}return n}var efe=function(t,n){return Zk(t,function(e){var i,r,o=t.state,s=o.doc.lineAt(e);if(!n&&e>s.from&&e=s.number){var l=e[e.length-1];l.to=a.to,l.ranges.push(o)}else e.push({from:s.from,to:a.to,ranges:[o]});i=a.number+1}}catch(c){r.e(c)}finally{r.f()}return e}function ofe(t,n,e){if(t.readOnly)return!1;var i,r=[],o=[],s=ot(tD(t));try{for(s.s();!(i=s.n()).done;){var a=i.value;if(e?a.to!=t.doc.length:0!=a.from){var l=t.doc.lineAt(e?a.to+1:a.from-1),c=l.length+1;if(e){r.push({from:a.to,to:l.to},{from:a.from,insert:l.text+t.lineBreak});var u,h=ot(a.ranges);try{for(h.s();!(u=h.n()).done;){var d=u.value;o.push(_n.range(Math.min(t.doc.length,d.anchor+c),Math.min(t.doc.length,d.head+c)))}}catch(w){h.e(w)}finally{h.f()}}else{r.push({from:l.from,to:a.from},{from:a.to,insert:t.lineBreak+l.text});var f,p=ot(a.ranges);try{for(p.s();!(f=p.n()).done;){var m=f.value;o.push(_n.range(m.anchor-c,m.head-c))}}catch(w){p.e(w)}finally{p.f()}}}}}catch(w){s.e(w)}finally{s.f()}return!!r.length&&(n(t.update({changes:r,scrollIntoView:!0,selection:_n.create(o,t.selection.mainIndex),userEvent:"move.line"})),!0)}function sfe(t,n,e){if(t.readOnly)return!1;var i,r=[],o=ot(tD(t));try{for(o.s();!(i=o.n()).done;){var s=i.value;r.push(e?{from:s.from,insert:t.doc.slice(s.from,s.to)+t.lineBreak}:{from:s.to,insert:t.lineBreak+t.doc.slice(s.from,s.to)})}}catch(a){o.e(a)}finally{o.f()}return n(t.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}var _et=afe(!1),wet=afe(!0);function afe(t){return function(n){var e=n.state,i=n.dispatch;if(e.readOnly)return!1;var r=e.changeByRange(function(o){var s=o.from,a=o.to,l=e.doc.lineAt(s),c=!t&&s==a&&function(f,p){if(/\(\)|\[\]|\{\}/.test(f.sliceDoc(p-1,p+1)))return{from:p,to:p};var m,w=kl(f).resolveInner(p),C=w.childBefore(p),k=w.childAfter(p);return C&&k&&C.to<=p&&k.from>=p&&(m=C.type.prop(Hr.closedBy))&&m.indexOf(k.name)>-1&&f.doc.lineAt(C.to).from==f.doc.lineAt(k.from).from?{from:C.to,to:k.from}:null}(e,s);t&&(s=a=(a<=l.to?l:e.doc.lineAt(a)).to);var u=new Uk(e,{simulateBreak:s,simulateDoubleBreak:!!c}),h=RR(u,s);for(null==h&&(h=/^\s*/.exec(e.doc.lineAt(s).text)[0].length);al.from&&se&&(i.empty||i.to>s.from)&&(n(s,r,i),e=s.number),o=s.to+1}var a=t.changes(r);return{changes:r,range:_n.range(a.mapPos(i.anchor,1),a.mapPos(i.head,1))}})}var lfe=function(t){var n=t.state;return!n.readOnly&&((0,t.dispatch)(n.update(ZR(n,function(i,r){r.push({from:i.from,insert:n.facet(zk)})}),{userEvent:"input.indent"})),!0)},cfe=function(t){var n=t.state;return!n.readOnly&&((0,t.dispatch)(n.update(ZR(n,function(i,r){var o=/^\s*/.exec(i.text)[0];if(o){for(var s=r_(o,n.tabSize),a=0,l=C_(n,Math.max(0,s-O0(n)));ae?e:Math.max(0,n-1)})}},{mac:"Mod-Delete",run:rfe}].concat(xet.map(function(t){return{mac:t.key,run:t.run,shift:t.shift}})),ket=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:function(t){return dh(t,function(n){return Qk(t.state,n,!Dl(t))})},shift:function(t){return mu(t,function(n){return Qk(t.state,n,!Dl(t))})}},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:function(t){return dh(t,function(n){return Qk(t.state,n,Dl(t))})},shift:function(t){return mu(t,function(n){return Qk(t.state,n,Dl(t))})}},{key:"Alt-ArrowUp",run:function(t){return ofe(t.state,t.dispatch,!1)}},{key:"Shift-Alt-ArrowUp",run:function(t){return sfe(t.state,t.dispatch,!1)}},{key:"Alt-ArrowDown",run:function(t){return ofe(t.state,t.dispatch,!0)}},{key:"Shift-Alt-ArrowDown",run:function(t){return sfe(t.state,t.dispatch,!0)}},{key:"Escape",run:function(t){var n=t.state,e=t.dispatch,i=n.selection,r=null;return i.ranges.length>1?r=_n.create([i.main]):i.main.empty||(r=_n.create([_n.cursor(i.main.head)])),!!r&&(e(bd(n,r)),!0)}},{key:"Mod-Enter",run:wet},{key:"Alt-l",mac:"Ctrl-l",run:function(t){var n=t.state,e=t.dispatch,i=tD(n).map(function(r){return _n.range(r.from,Math.min(r.to+1,n.doc.length))});return e(n.update({selection:_n.create(i),userEvent:"select"})),!0}},{key:"Mod-i",run:function(t){var n=t.state,e=t.dispatch,i=N0(n.selection,function(r){for(var o,s=kl(n).resolveInner(r.head,1);!(s.from=r.to||s.to>r.to&&s.from<=r.from)&&null!==(o=s.parent)&&void 0!==o&&o.parent;)s=s.parent;return _n.range(s.to,s.from)});return e(bd(n,i)),!0},preventDefault:!0},{key:"Mod-[",run:cfe},{key:"Mod-]",run:lfe},{key:"Mod-Alt-\\",run:function(t){var n=t.state,e=t.dispatch;if(n.readOnly)return!1;var i=Object.create(null),r=new Uk(n,{overrideIndentation:function(s){return i[s]??-1}}),o=ZR(n,function(s,a,l){var c=RR(r,s.from);if(null!=c){/\S/.test(s.text)||(c=0);var u=/^\s*/.exec(s.text)[0],h=C_(n,c);(u!=h||l.from0?o--:s0&&yd(n,s.head-1,1)||s.head2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.length,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0;qe(this,t),this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=n.iterRange(i,r),this.bufferStart=i,this.normalize=o?function(a){return o(hfe(a))}:hfe,this.query=this.normalize(e)}return Xe(t,[{key:"peek",value:function(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return tl(this.buffer,this.bufferPos)}},{key:"next",value:function(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}},{key:"nextOverlapping",value:function(){for(;;){var n=this.peek();if(n<0)return this.done=!0,this;var e=CN(n),i=this.bufferStart+this.bufferPos;this.bufferPos+=Nc(n);for(var r=this.normalize(e),o=0,s=i;;o++){var a=r.charCodeAt(o),l=this.match(a,s);if(l)return this.value=l,this;if(o==r.length-1)break;s==i&&o3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:n.length;if(qe(this,t),this.text=n,this.to=o,this.curLine="",this.done=!1,this.value=dfe,/\\[sWDnr]|\n|\r|\[\^/.test(e))return new gfe(n,e,i,r,o);this.re=new RegExp(e,e$+(i?.ignoreCase?"i":"")),this.test=i?.test,this.iter=n.iter();var s=n.lineAt(r);this.curLineStart=s.from,this.matchPos=nD(n,r),this.getLine(this.curLineStart)}return Xe(t,[{key:"getLine",value:function(n){this.iter.next(n),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}},{key:"nextLine",value:function(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}},{key:"next",value:function(){for(var n=this.matchPos-this.curLineStart;;){this.re.lastIndex=n;var e=this.matchPos<=this.to&&this.re.exec(this.curLine);if(e){var i=this.curLineStart+e.index,r=i+e[0].length;if(this.matchPos=nD(this.text,r+(i==r?1:0)),i==this.curLineStart+this.curLine.length&&this.nextLine(),(ithis.value.to)&&(!this.test||this.test(i,r,e)))return this.value={from:i,to:r,match:e},this;n=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=i||r.to<=e){var o=new t(e,n.sliceString(e,i));return t$.set(n,o),o}if(r.from==e&&r.to==i)return r;var s=r.text,a=r.from;return a>e&&(s=n.sliceString(e,a)+s,a=e),r.to=this.to?this.to:this.text.lineAt(n).to}},{key:"next",value:function(){for(;;){var n=this.re.lastIndex=this.matchPos-this.flat.from,e=this.re.exec(this.flat.text);if(e&&!e[0]&&e.index==n&&(this.re.lastIndex=n+1,e=this.re.exec(this.flat.text)),e){var i=this.flat.from+e.index,r=i+e[0].length;if((this.flat.to>=this.to||e.index+e[0].length<=this.flat.text.length-10)&&(!this.test||this.test(i,r,e)))return this.value={from:i,to:r,match:e},this.matchPos=nD(this.text,r+(i==r?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=pfe.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}]),t}();function nD(t,n){if(n>=t.length)return n;for(var e,i=t.lineAt(n);n=56320&&e<57344;)n++;return n}function n$(t){var n=Zo("input",{class:"cm-textfield",name:"line"});function e(){var i=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(i){var r=t.state,o=r.doc.lineAt(r.selection.main.head),s=di(i,5),a=s[1],l=s[2],c=s[3],u=s[4],h=c?+c.slice(1):0,d=l?+l:o.number;if(l&&u){var f=d/100;a&&(f=f*("-"==a?-1:1)+o.number/r.doc.lines),d=Math.round(r.doc.lines*f)}else l&&a&&(d=d*("-"==a?-1:1)+o.number);var p=r.doc.line(Math.max(1,Math.min(r.doc.lines,d)));t.dispatch({effects:iD.of(!1),selection:_n.cursor(p.from+Math.max(0,Math.min(h,p.length))),scrollIntoView:!0}),t.focus()}}return{dom:Zo("form",{class:"cm-gotoLine",onkeydown:function(i){27==i.keyCode?(i.preventDefault(),t.dispatch({effects:iD.of(!1)}),t.focus()):13==i.keyCode&&(i.preventDefault(),e())},onsubmit:function(i){i.preventDefault(),e()}},Zo("label",t.state.phrase("Go to line"),": ",n)," ",Zo("button",{class:"cm-button",type:"submit"},t.state.phrase("go")))}}typeof Symbol<"u"&&(ffe.prototype[Symbol.iterator]=gfe.prototype[Symbol.iterator]=function(){return this});var iD=$r.define(),mfe=nl.define({create:function(){return!0},update:function(t,n){var e,i=ot(n.effects);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.is(iD)&&(t=r.value)}}catch(o){i.e(o)}finally{i.f()}return t},provide:function(t){return v_.from(t,function(n){return n?n$:null})}}),Tet=pi.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),Aet={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},vfe=yi.define({combine:function(t){return fu(t,Aet,{highlightWordAroundCursor:function(n,e){return n||e},minSelectionLength:Math.min,maxMatches:Math.min})}}),Eet=Hi.mark({class:"cm-selectionMatch"}),Met=Hi.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function yfe(t,n,e,i){return!(0!=e&&t(n.sliceDoc(e-1,e))==Ds.Word||i!=n.doc.length&&t(n.sliceDoc(i,i+1))==Ds.Word)}var Iet=Ba.fromClass(function(){function t(n){qe(this,t),this.decorations=this.getDeco(n)}return Xe(t,[{key:"update",value:function(n){(n.selectionSet||n.docChanged||n.viewportChanged)&&(this.decorations=this.getDeco(n.view))}},{key:"getDeco",value:function(n){var e=n.state.facet(vfe),i=n.state,r=i.selection;if(r.ranges.length>1)return Hi.none;var o,k,E,L,B,s=r.main,a=null;if(s.empty){if(!e.highlightWordAroundCursor)return Hi.none;var l=i.wordAt(s.head);if(!l)return Hi.none;a=i.charCategorizer(s.head),o=i.sliceDoc(l.from,l.to)}else{var c=s.to-s.from;if(c200)return Hi.none;if(e.wholeWords){if(o=i.sliceDoc(s.from,s.to),!yfe(a=i.charCategorizer(s.head),i,s.from,s.to)||(B=s.to,(k=a)((E=i).sliceDoc(L=s.from,L+1))!=Ds.Word||k(E.sliceDoc(B-1,B))!=Ds.Word))return Hi.none}else if(!(o=i.sliceDoc(s.from,s.to).trim()))return Hi.none}var u,h=[],d=ot(n.visibleRanges);try{for(d.s();!(u=d.n()).done;)for(var f=u.value,p=new R0(i.doc,o,f.from,f.to);!p.next().done;){var m=p.value,w=m.from,C=m.to;if((!a||yfe(a,i,w,C))&&(s.empty&&w<=s.from&&C>=s.to?h.push(Met.range(w,C)):(w>=s.to||C<=s.from)&&h.push(Eet.range(w,C)),h.length>e.maxMatches))return Hi.none}}catch(k){d.e(k)}finally{d.f()}return Hi.set(h)}}]),t}(),{decorations:function(t){return t.decorations}}),Fet=pi.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),rD=yi.define({combine:function(t){return fu(t,{top:!1,caseSensitive:!1,literal:!1,wholeWord:!1,createPanel:function(n){return new Vet(n)}})}});function Let(t){return t?[rD.of(t),u$]:u$}var bfe=function(){function t(n){qe(this,t),this.search=n.search,this.caseSensitive=!!n.caseSensitive,this.literal=!!n.literal,this.regexp=!!n.regexp,this.replace=n.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,e$),!0}catch{return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!n.wholeWord}return Xe(t,[{key:"unquote",value:function(n){return this.literal?n:n.replace(/\\([nrt\\])/g,function(e,i){return"n"==i?"\n":"r"==i?"\r":"t"==i?"\t":"\\"})}},{key:"eq",value:function(n){return this.search==n.search&&this.replace==n.replace&&this.caseSensitive==n.caseSensitive&&this.regexp==n.regexp&&this.wholeWord==n.wholeWord}},{key:"create",value:function(){return this.regexp?new Net(this):new Oet(this)}},{key:"getCursor",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0,r=n.doc?n:Qo.create({doc:n});return null==i&&(i=r.doc.length),this.regexp?P0(this,r,e,i):$0(this,r,e,i)}}]),t}(),_fe=Xe(function t(n){qe(this,t),this.spec=n});function $0(t,n,e,i){return new R0(n.doc,t.unquoted,e,i,t.caseSensitive?void 0:function(r){return r.toLowerCase()},t.wholeWord?(r=n.doc,o=n.charCategorizer(n.selection.main.head),function(s,a,l,c){return(c>s||c+l.length=r)return null;s.push(o.value)}return s}},{key:"highlight",value:function(i,r,o,s){for(var a=$0(this.spec,i,Math.max(0,r-this.spec.unquoted.length),Math.min(o+this.spec.unquoted.length,i.doc.length));!a.next().done;)s(a.value.from,a.value.to)}}]),e}();function P0(t,n,e,i){return new ffe(n.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?(r=n.charCategorizer(n.selection.main.head),function(o,s,a){return!a[0].length||(r(oD(a.input,a.index))!=Ds.Word||r(sD(a.input,a.index))!=Ds.Word)&&(r(sD(a.input,a.index+a[0].length))!=Ds.Word||r(oD(a.input,a.index+a[0].length))!=Ds.Word)}):void 0},e,i);var r}function oD(t,n){return t.slice(ql(t,n,!1),n)}function sD(t,n){return t.slice(n,ql(t,n))}var Net=function(t){Wt(e,_fe);var n=Gt(e);function e(){return qe(this,e),n.apply(this,arguments)}return Xe(e,[{key:"nextMatch",value:function(i,r,o){var s=P0(this.spec,i,o,i.doc.length).next();return s.done&&(s=P0(this.spec,i,0,r).next()),s.done?null:s.value}},{key:"prevMatchInRange",value:function(i,r,o){for(var s=1;;s++){for(var a=Math.max(r,o-1e4*s),l=P0(this.spec,i,a,o),c=null;!l.next().done;)c=l.value;if(c&&(a==r||c.from>a+10))return c;if(a==r)return null}}},{key:"prevMatch",value:function(i,r,o){return this.prevMatchInRange(i,0,r)||this.prevMatchInRange(i,o,i.doc.length)}},{key:"getReplacement",value:function(i){return this.spec.unquote(this.spec.replace.replace(/\$([$&\d+])/g,function(r,o){return"$"==o?"$":"&"==o?i.match[0]:"0"!=o&&+o=r)return null;s.push(o.value)}return s}},{key:"highlight",value:function(i,r,o,s){for(var a=P0(this.spec,i,Math.max(0,r-250),Math.min(o+250,i.doc.length));!a.next().done;)s(a.value.from,a.value.to)}}]),e}(),D_=$r.define(),i$=$r.define(),Cp=nl.define({create:function(t){return new r$(s$(t).create(),null)},update:function(t,n){var e,i=ot(n.effects);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.is(D_)?t=new r$(r.value.create(),t.panel):r.is(i$)&&(t=new r$(t.query,r.value?o$:null))}}catch(o){i.e(o)}finally{i.f()}return t},provide:function(t){return v_.from(t,function(n){return n.panel})}}),r$=Xe(function t(n,e){qe(this,t),this.query=n,this.panel=e}),Ret=Hi.mark({class:"cm-searchMatch"}),$et=Hi.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Pet=Ba.fromClass(function(){function t(n){qe(this,t),this.view=n,this.decorations=this.highlight(n.state.field(Cp))}return Xe(t,[{key:"update",value:function(n){var e=n.state.field(Cp);(e!=n.startState.field(Cp)||n.docChanged||n.selectionSet||n.viewportChanged)&&(this.decorations=this.highlight(e))}},{key:"highlight",value:function(n){var e=n.query;if(!n.panel||!e.spec.valid)return Hi.none;for(var i=this.view,r=new Wg,o=0,s=i.visibleRanges,a=s.length;os[o+1].from-500;)u=s[++o].to;e.highlight(i.state,c,u,function(h,d){var f=i.state.selection.ranges.some(function(p){return p.from==h&&p.to==d});r.add(h,d,f?$et:Ret)})}return r.finish()}}]),t}(),{decorations:function(t){return t.decorations}});function T_(t){return function(n){var e=n.state.field(Cp,!1);return e&&e.query.spec.valid?t(n,e):a$(n)}}var aD=T_(function(t,n){var i=t.state.selection.main.to,r=n.query.nextMatch(t.state,i,i);return!!r&&(t.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:c$(t,r),userEvent:"select.search"}),!0)}),lD=T_(function(t,n){var i=t.state,r=i.selection.main.from,o=n.query.prevMatch(i,r,r);return!!o&&(t.dispatch({selection:{anchor:o.from,head:o.to},scrollIntoView:!0,effects:c$(t,o),userEvent:"select.search"}),!0)}),jet=T_(function(t,n){var e=n.query.matchAll(t.state,1e3);return!(!e||!e.length||(t.dispatch({selection:_n.create(e.map(function(i){return _n.range(i.from,i.to)})),userEvent:"select.search.matches"}),0))}),wfe=T_(function(t,n){var e=n.query,i=t.state,r=i.selection.main,o=r.from,s=r.to;if(i.readOnly)return!1;var a=e.nextMatch(i,o,o);if(!a)return!1;var l,c,u=[],h=[];if(a.from==o&&a.to==s&&(c=i.toText(e.getReplacement(a)),u.push({from:a.from,to:a.to,insert:c}),a=e.nextMatch(i,a.from,a.to),h.push(pi.announce.of(i.phrase("replaced match on line $",i.doc.lineAt(o).number)+"."))),a){var d=0==u.length||u[0].from>=a.to?0:a.to-a.from-c.length;l={anchor:a.from-d,head:a.to-d},h.push(c$(t,a))}return t.dispatch({changes:u,selection:l,scrollIntoView:!!l,effects:h,userEvent:"input.replace"}),!0}),Bet=T_(function(t,n){var e=n.query;if(t.state.readOnly)return!1;var i=e.matchAll(t.state,1e9).map(function(o){return{from:o.from,to:o.to,insert:e.getReplacement(o)}});if(!i.length)return!1;var r=t.state.phrase("replaced $ matches",i.length)+".";return t.dispatch({changes:i,effects:pi.announce.of(r),userEvent:"input.replace.all"}),!0});function o$(t){return t.state.facet(rD).createPanel(t)}function s$(t,n){var e,i,r,o,s=t.selection.main,a=s.empty||s.to>s.from+100?"":t.sliceDoc(s.from,s.to);if(n&&!a)return n;var l=t.facet(rD);return new bfe({search:(null!==(e=n?.literal)&&void 0!==e?e:l.literal)?a:a.replace(/\n/g,"\\n"),caseSensitive:null!==(i=n?.caseSensitive)&&void 0!==i?i:l.caseSensitive,literal:null!==(r=n?.literal)&&void 0!==r?r:l.literal,wholeWord:null!==(o=n?.wholeWord)&&void 0!==o?o:l.wholeWord})}var a$=function(t){var n=t.state.field(Cp,!1);if(n&&n.panel){var e=m_(t,o$);if(!e)return!1;var i=e.dom.querySelector("[main-field]");if(i&&i!=t.root.activeElement){var r=s$(t.state,n.query.spec);r.valid&&t.dispatch({effects:D_.of(r)}),i.focus(),i.select()}}else t.dispatch({effects:[i$.of(!0),n?D_.of(s$(t.state,n.query.spec)):$r.appendConfig.of(u$)]});return!0},l$=function(t){var n=t.state.field(Cp,!1);if(!n||!n.panel)return!1;var e=m_(t,o$);return e&&e.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:i$.of(!1)}),!0},Het=[{key:"Mod-f",run:a$,scope:"editor search-panel"},{key:"F3",run:aD,shift:lD,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:aD,shift:lD,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:l$,scope:"editor search-panel"},{key:"Mod-Shift-l",run:function(t){var n=t.state,e=t.dispatch,i=n.selection;if(i.ranges.length>1||i.main.empty)return!1;for(var r=i.main,o=r.from,a=[],l=0,c=new R0(n.doc,n.sliceDoc(o,r.to));!c.next().done;){if(a.length>1e3)return!1;c.value.from==o&&(l=a.length),a.push(_n.range(c.value.from,c.value.to))}return e(n.update({selection:_n.create(a,l),userEvent:"select.search.matches"})),!0}},{key:"Alt-g",run:function(t){var n=m_(t,n$);if(!n){var e=[iD.of(!0)];null==t.state.field(mfe,!1)&&e.push($r.appendConfig.of([mfe,Tet])),t.dispatch({effects:e}),n=m_(t,n$)}return n&&n.dom.querySelector("input").focus(),!0}},{key:"Mod-d",run:function(t){var s,a,l,c,u,n=t.state,e=t.dispatch,i=n.selection.ranges;if(i.some(function(s){return s.from===s.to}))return l=(s={state:n,dispatch:e}).dispatch,!(u=_n.create((c=(a=s.state).selection).ranges.map(function(h){return a.wordAt(h.head)||_n.cursor(h.head)}),c.mainIndex)).eq(c)&&(l(a.update({selection:u})),!0);var r=n.sliceDoc(i[0].from,i[0].to);if(n.selection.ranges.some(function(s){return n.sliceDoc(s.from,s.to)!=r}))return!1;var o=function(s,a){for(var l=s.selection,c=l.main,u=l.ranges,h=s.wordAt(c.head),d=h&&h.from==c.from&&h.to==c.to,f=function(C,k){if(k.next(),!k.done){if(C&&u.some(function(L){return L.from==k.value.from}))return m=k,p=C,"continue";if(d){var E=s.wordAt(k.value.from);if(!E||E.from!=k.value.from||E.to!=k.value.to)return m=k,p=C,"continue"}return p=C,m=k,{v:k.value}}if(C)return m=k,p=C,{v:null};k=new R0(s.doc,a,0,Math.max(0,u[u.length-1].from-1)),p=C=!0,m=k},p=!1,m=new R0(s.doc,a,u[u.length-1].to);;){var w=f(p,m);if("continue"!==w&&"object"===$n(w))return w.v}}(n,r);return!!o&&(e(n.update({selection:n.selection.addRange(_n.range(o.from,o.to),!1),effects:pi.scrollIntoView(o.to)})),!0)},preventDefault:!0}],Vet=function(){function t(n){var e=this;qe(this,t),this.view=n;var i=this.query=n.state.field(Cp).query.spec;function r(o,s,a){return Zo("button",{class:"cm-button",name:o,onclick:s,type:"button"},a)}this.commit=this.commit.bind(this),this.searchField=Zo("input",{value:i.search,placeholder:jc(n,"Find"),"aria-label":jc(n,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Zo("input",{value:i.replace,placeholder:jc(n,"Replace"),"aria-label":jc(n,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Zo("input",{type:"checkbox",name:"case",form:"",checked:i.caseSensitive,onchange:this.commit}),this.reField=Zo("input",{type:"checkbox",name:"re",form:"",checked:i.regexp,onchange:this.commit}),this.wordField=Zo("input",{type:"checkbox",name:"word",form:"",checked:i.wholeWord,onchange:this.commit}),this.dom=Zo("div",{onkeydown:function(o){return e.keydown(o)},class:"cm-search"},[this.searchField,r("next",function(){return aD(n)},[jc(n,"next")]),r("prev",function(){return lD(n)},[jc(n,"previous")]),r("select",function(){return jet(n)},[jc(n,"all")]),Zo("label",null,[this.caseField,jc(n,"match case")]),Zo("label",null,[this.reField,jc(n,"regexp")]),Zo("label",null,[this.wordField,jc(n,"by word")])].concat(Ti(n.state.readOnly?[]:[Zo("br"),this.replaceField,r("replace",function(){return wfe(n)},[jc(n,"replace")]),r("replaceAll",function(){return Bet(n)},[jc(n,"replace all")])]),[Zo("button",{name:"close",onclick:function(){return l$(n)},"aria-label":jc(n,"close"),type:"button"},["\xd7"])]))}return Xe(t,[{key:"commit",value:function(){var n=new bfe({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});n.eq(this.query)||(this.query=n,this.view.dispatch({effects:D_.of(n)}))}},{key:"keydown",value:function(n){!function(e,i,r){return bhe(yhe(e.state),i,e,"search-panel")}(this.view,n)?13==n.keyCode&&n.target==this.searchField?(n.preventDefault(),(n.shiftKey?lD:aD)(this.view)):13==n.keyCode&&n.target==this.replaceField&&(n.preventDefault(),wfe(this.view)):n.preventDefault()}},{key:"update",value:function(n){var e,i=ot(n.transactions);try{for(i.s();!(e=i.n()).done;){var r,o=ot(e.value.effects);try{for(o.s();!(r=o.n()).done;){var s=r.value;s.is(D_)&&!s.value.eq(this.query)&&this.setQuery(s.value)}}catch(a){o.e(a)}finally{o.f()}}}catch(a){i.e(a)}finally{i.f()}}},{key:"setQuery",value:function(n){this.query=n,this.searchField.value=n.search,this.replaceField.value=n.replace,this.caseField.checked=n.caseSensitive,this.reField.checked=n.regexp,this.wordField.checked=n.wholeWord}},{key:"mount",value:function(){this.searchField.select()}},{key:"pos",get:function(){return 80}},{key:"top",get:function(){return this.view.state.facet(rD).top}}]),t}();function jc(t,n){return t.state.phrase(n)}var cD=/[\s\.,:;?!]/;function c$(t,n){var e=n.from,i=n.to,r=t.state.doc.lineAt(e),o=t.state.doc.lineAt(i).to,s=Math.max(r.from,e-30),a=Math.min(o,i+30),l=t.state.sliceDoc(s,a);if(s!=r.from)for(var c=0;c<30;c++)if(!cD.test(l[c+1])&&cD.test(l[c])){l=l.slice(c);break}if(a!=o)for(var u=l.length-1;u>l.length-30;u--)if(!cD.test(l[u-1])&&cD.test(l[u])){l=l.slice(0,u);break}return pi.announce.of("".concat(t.state.phrase("current match"),". ").concat(l," ").concat(t.state.phrase("on line")," ").concat(r.number,"."))}var zet=pi.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),u$=[Cp,x0.lowest(Pet),zet],xfe=function(){function t(n,e,i){qe(this,t),this.state=n,this.pos=e,this.explicit=i,this.abortListeners=[]}return Xe(t,[{key:"tokenBefore",value:function(n){for(var e=kl(this.state).resolveInner(this.pos,-1);e&&n.indexOf(e.name)<0;)e=e.parent;return e?{from:e.from,to:this.pos,text:this.state.sliceDoc(e.from,this.pos),type:e.type}:null}},{key:"matchBefore",value:function(n){var e=this.state.doc.lineAt(this.pos),i=Math.max(e.from,this.pos-250),r=e.text.slice(i-e.from,this.pos-e.from),o=r.search(kfe(n,!1));return o<0?null:{from:i+o,to:this.pos,text:r.slice(o)}}},{key:"aborted",get:function(){return null==this.abortListeners}},{key:"addEventListener",value:function(n,e){"abort"==n&&this.abortListeners&&this.abortListeners.push(e)}}]),t}();function Cfe(t){var n=Object.keys(t).join(""),e=/\w/.test(n);return e&&(n=n.replace(/\w/g,"")),"[".concat(e?"\\w":"").concat(n.replace(/[^\w\s]/g,"\\$&"),"]")}var Sfe=Xe(function t(n,e,i){qe(this,t),this.completion=n,this.source=e,this.match=i});function Sp(t){return t.selection.main.head}function kfe(t,n){var e,i=t.source,r=n&&"^"!=i[0],o="$"!=i[i.length-1];return r||o?new RegExp("".concat(r?"^":"","(?:").concat(i,")").concat(o?"$":""),null!==(e=t.flags)&&void 0!==e?e:t.ignoreCase?"i":""):t}function Dfe(t,n){var r,o,s,a,e=n.completion.apply||n.completion.label,i=n.source;"string"==typeof e?t.dispatch((r=t.state,o=e,s=i.from,a=i.to,Object.assign(Object.assign({},r.changeByRange(function(l){if(l==r.selection.main)return{changes:{from:s,to:a,insert:o},range:_n.cursor(s+o.length)};var c=a-s;return!l.empty||c&&r.sliceDoc(l.from-c,l.from)!=r.sliceDoc(s,a)?{range:l}:{changes:{from:l.from-c,to:l.from,insert:o},range:_n.cursor(l.from-c+o.length)}})),{userEvent:"input.complete"}))):e(t,n.completion,i.from,i.to)}var Tfe=new WeakMap;function Wet(t){if(!Array.isArray(t))return t;var n=Tfe.get(t);return n||Tfe.set(t,n=function Uet(t){var n=t.map(function(s){return"string"==typeof s?{label:s}:s}),i=di(n.every(function(s){return/^\w+$/.test(s.label)})?[/\w*$/,/\w+$/]:function(s){var a,l=Object.create(null),c=Object.create(null),u=ot(s);try{for(u.s();!(a=u.n()).done;){var h=a.value.label;l[h[0]]=!0;for(var d=1;d=48&&re<=57||re>=97&&re<=122?2:re>=65&&re<=90?1:0:(ce=CN(re))!=ce.toLowerCase()?1:ce!=ce.toUpperCase()?2:0;(!G||1==ue&&L||0==fe&&0!=ue)&&(e[m]==re||i[m]==re&&(w=!0)?s[m++]=G:s.length&&(B=!1)),fe=ue,G+=Nc(re)}return m==c&&0==s[0]&&B?this.result((w?-200:0)-100,s,n):C==c&&0==k?[-200-n.length,0,E]:l>-1?[-700-n.length,l,l+this.pattern.length]:C==c?[-900-n.length,k,E]:m==c?this.result((w?-200:0)-100-700+(B?0:-1100),s,n):2==e.length?null:this.result((r[0]?-700:0)-200-1100,r,n)}},{key:"result",value:function(n,e,i){var r,o=[n-i.length],s=1,a=ot(e);try{for(a.s();!(r=a.n()).done;){var l=r.value,c=l+(this.astral?Nc(tl(i,l)):1);s>1&&o[s-1]==l?o[s-1]=c:(o[s++]=l,o[s++]=c)}}catch(u){a.e(u)}finally{a.f()}return o}}]),t}(),_d=yi.define({combine:function(t){return fu(t,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,optionClass:function(){return""},aboveCursor:!1,icons:!0,addToOptions:[],compareCompletions:function(n,e){return n.label.localeCompare(e.label)}},{defaultKeymap:function(n,e){return n&&e},closeOnBlur:function(n,e){return n&&e},icons:function(n,e){return n&&e},optionClass:function(n,e){return function(i){return r=n(i),o=e(i),r?o?r+" "+o:r:o;var r,o}},addToOptions:function(n,e){return n.concat(e)}})}});function Afe(t,n,e){if(t<=e)return{from:0,to:t};if(n<0&&(n=0),n<=t>>1){var i=Math.floor(n/e);return{from:i*e,to:(i+1)*e}}var r=Math.floor((t-n)/e);return{from:t-(r+1)*e,to:t-r*e}}var qet=function(){function t(n,e){var i=this;qe(this,t),this.view=n,this.stateField=e,this.info=null,this.placeInfo={read:function(){return i.measureInfo()},write:function(c){return i.positionInfo(c)},key:this};var c,u,r=n.state.field(e),o=r.open,s=o.options,a=o.selected,l=n.state.facet(_d);this.optionContent=(u=(c=l).addToOptions.slice(),c.icons&&u.push({render:function(h){var d,f=document.createElement("div");return f.classList.add("cm-completionIcon"),h.type&&(d=f.classList).add.apply(d,Ti(h.type.split(/\s+/g).map(function(p){return"cm-completionIcon-"+p}))),f.setAttribute("aria-hidden","true"),f},position:20}),u.push({render:function(h,d,f){var p=document.createElement("span");p.className="cm-completionLabel";for(var m=h.label,w=0,C=1;Cw&&p.appendChild(document.createTextNode(m.slice(w,k)));var L=p.appendChild(document.createElement("span"));L.appendChild(document.createTextNode(m.slice(k,E))),L.className="cm-completionMatchedText",w=E}return w=this.range.to)&&(this.range=Afe(i.options.length,i.selected,this.view.state.facet(_d).maxRenderedOptions),this.list.remove(),this.list=this.dom.appendChild(this.createListBox(i.options,e.id,this.range)),this.list.addEventListener("scroll",function(){n.info&&n.view.requestMeasure(n.placeInfo)})),this.updateSelectedOption(i.selected)){this.info&&(this.info.remove(),this.info=null);var r=i.options[i.selected].completion,o=r.info;if(!o)return;var s="string"==typeof o?document.createTextNode(o):o(r);if(!s)return;"then"in s?s.then(function(a){a&&n.view.state.field(n.stateField,!1)==e&&n.addInfoPane(a)}).catch(function(a){return Pc(n.view.state,a,"completion info")}):this.addInfoPane(s)}}},{key:"addInfoPane",value:function(n){var e=this.info=document.createElement("div");e.className="cm-tooltip cm-completionInfo",e.appendChild(n),this.dom.appendChild(e),this.view.requestMeasure(this.placeInfo)}},{key:"updateSelectedOption",value:function(n){for(var e=null,i=this.list.firstChild,r=this.range.from;i;i=i.nextSibling,r++)r==n?i.hasAttribute("aria-selected")||(i.setAttribute("aria-selected","true"),e=i):i.hasAttribute("aria-selected")&&i.removeAttribute("aria-selected");return e&&(s=e,a=(o=this.list).getBoundingClientRect(),(l=s.getBoundingClientRect()).topa.bottom&&(o.scrollTop+=l.bottom-a.bottom)),e;var o,s,a,l}},{key:"measureInfo",value:function(){var n=this.dom.querySelector("[aria-selected]");if(!n||!this.info)return null;var e=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),r=n.getBoundingClientRect();if(r.top>Math.min(innerHeight,e.bottom)-10||r.bottom=this.options.length?this:new t(this.options,Mfe(e,n),this.tooltip,this.timestamp,n)}},{key:"map",value:function(n){return new t(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:n.mapPos(this.tooltip.pos)}),this.timestamp,this.selected)}}],[{key:"build",value:function(n,e,i,r,o){var s=function(h,d){var f,p=[],m=0,w=ot(h);try{for(w.s();!(f=w.n()).done;){var C=f.value;if(C.hasResult())if(!1===C.result.filter){var k,E=C.result.getMatch,L=ot(C.result.options);try{for(L.s();!(k=L.n()).done;){var B=k.value,G=[1e9-m++];if(E){var oe,fe=ot(E(B));try{for(fe.s();!(oe=fe.n()).done;)G.push(oe.value)}catch(Z){fe.e(Z)}finally{fe.f()}}p.push(new Sfe(B,C,G))}}catch(Z){L.e(Z)}finally{L.f()}}else{var ce,ue=new Get(d.sliceDoc(C.from,C.to)),pe=void 0,De=ot(C.result.options);try{for(De.s();!(ce=De.n()).done;){var ie=ce.value;(pe=ue.match(ie.label))&&(null!=ie.boost&&(pe[0]+=ie.boost),p.push(new Sfe(ie,C,pe)))}}catch(Z){De.e(Z)}finally{De.f()}}}}catch(Z){w.e(Z)}finally{w.f()}var ge,we=[],le=null,Fe=d.facet(_d).compareCompletions,z=ot(p.sort(function(Z,me){return me.match[0]-Z.match[0]||Fe(Z.completion,me.completion)}));try{for(z.s();!(ge=z.n()).done;){var Q=ge.value;!le||le.label!=Q.completion.label||le.detail!=Q.completion.detail||null!=le.type&&null!=Q.completion.type&&le.type!=Q.completion.type||le.apply!=Q.completion.apply?we.push(Q):Efe(Q.completion)>Efe(le)&&(we[we.length-1]=Q),le=Q.completion}}catch(Z){z.e(Z)}finally{z.f()}return we}(n,e);if(!s.length)return null;var a,l=e.facet(_d).selectOnOpen?0:-1;if(r&&r.selected!=l&&-1!=r.selected)for(var c=r.options[r.selected].completion,u=0;u-1&&(e["aria-activedescendant"]=t+"-"+n),e}var Jet=[];function h$(t){return t.isUserEvent("input.type")?"input":t.isUserEvent("delete.backward")?"delete":null}var Kg=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;qe(this,t),this.source=n,this.state=e,this.explicitPos=i}return Xe(t,[{key:"hasResult",value:function(){return!1}},{key:"update",value:function(n,e){var i=h$(n),r=this;i?r=r.handleUserEvent(n,i,e):n.docChanged?r=r.handleChange(n):n.selection&&0!=r.state&&(r=new t(r.source,0));var o,s=ot(n.effects);try{for(s.s();!(o=s.n()).done;){var a=o.value;if(a.is(d$))r=new t(r.source,1,a.value?Sp(n.state):-1);else if(a.is(uD))r=new t(r.source,0);else if(a.is(Ife)){var l,c=ot(a.value);try{for(c.s();!(l=c.n()).done;){var u=l.value;u.source==r.source&&(r=u)}}catch(h){c.e(h)}finally{c.f()}}}}catch(h){s.e(h)}finally{s.f()}return r}},{key:"handleUserEvent",value:function(n,e,i){return"delete"!=e&&i.activateOnTyping?new t(this.source,1):this.map(n.changes)}},{key:"handleChange",value:function(n){return n.changes.touchesRange(Sp(n.startState))?new t(this.source,0):this.map(n.changes)}},{key:"map",value:function(n){return n.empty||this.explicitPos<0?this:new t(this.source,this.state,n.mapPos(this.explicitPos))}}]),t}(),Qet=function(t){Wt(e,Kg);var n=Gt(e);function e(i,r,o,s,a){var l;return qe(this,e),(l=n.call(this,i,2,r)).result=o,l.from=s,l.to=a,l}return Xe(e,[{key:"hasResult",value:function(){return!0}},{key:"handleUserEvent",value:function(i,r,o){var s,a=i.changes.mapPos(this.from),l=i.changes.mapPos(this.to,1),c=Sp(i.state);if((this.explicitPos<0?c<=a:cl||"delete"==r&&Sp(i.startState)==this.from)return new Kg(this.source,"input"==r&&o.activateOnTyping?1:0);var u,h=this.explicitPos<0?-1:i.changes.mapPos(this.explicitPos);return function(d,f,p,m){if(!d)return!1;var w=f.sliceDoc(p,m);return"function"==typeof d?d(w,p,m,f):kfe(d,!0).test(w)}(this.result.validFor,i.state,a,l)?new e(this.source,h,this.result,a,l):this.result.update&&(u=this.result.update(this.result,a,l,new xfe(i.state,c,h>=0)))?new e(this.source,h,u,u.from,null!==(s=u.to)&&void 0!==s?s:Sp(i.state)):new Kg(this.source,1,h)}},{key:"handleChange",value:function(i){return i.changes.touchesRange(this.from,this.to)?new Kg(this.source,0):this.map(i.changes)}},{key:"map",value:function(i){return i.empty?this:new e(this.source,this.explicitPos<0?-1:i.mapPos(this.explicitPos),this.result,i.mapPos(this.from),i.mapPos(this.to,1))}}]),e}(),d$=$r.define(),uD=$r.define(),Ife=$r.define({map:function(t,n){return t.map(function(e){return e.map(n)})}}),Ffe=$r.define(),vu=nl.define({create:function(){return Yet.start()},update:function(t,n){return t.update(n)},provide:function(t){return[Mk.from(t,function(n){return n.tooltip}),pi.contentAttributes.from(t,function(n){return n.attrs})]}});function hD(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"option";return function(e){var i=e.state.field(vu,!1);if(!i||!i.open||Date.now()-i.open.timestamp<75)return!1;var r,o=1;"page"==n&&(r=function QQe(t,n){var e=t.plugin(Ohe);if(!e)return null;var i=e.manager.tooltips.indexOf(n);return i<0?null:e.manager.tooltipViews[i]}(e,i.open.tooltip))&&(o=Math.max(2,Math.floor(r.dom.offsetHeight/r.dom.querySelector("li").offsetHeight)-1));var s=i.open.options.length,a=i.open.selected>-1?i.open.selected+o*(t?1:-1):t?0:s-1;return a<0?a="page"==n?0:s-1:a>=s&&(a="page"==n?s-1:0),e.dispatch({effects:Ffe.of(a)}),!0}}var Zet=Xe(function t(n,e){qe(this,t),this.active=n,this.context=e,this.time=Date.now(),this.updates=[],this.done=void 0}),ett=Ba.fromClass(function(){function t(n){qe(this,t),this.view=n,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;var e,i=ot(n.state.field(vu).active);try{for(i.s();!(e=i.n()).done;){var r=e.value;1==r.state&&this.startQuery(r)}}catch(o){i.e(o)}finally{i.f()}}return Xe(t,[{key:"update",value:function(n){var e=this,i=n.state.field(vu);if(n.selectionSet||n.docChanged||n.startState.field(vu)!=i){for(var r=n.transactions.some(function(p){return(p.selection||p.docChanged)&&!h$(p)}),o=0;o50&&Date.now()-s.time>1e3){var a,l=ot(s.context.abortListeners);try{for(l.s();!(a=l.n()).done;){var c=a.value;try{c()}catch(p){Pc(this.view.state,p)}}}catch(p){l.e(p)}finally{l.f()}s.context.abortListeners=null,this.running.splice(o--,1)}else{var u;(u=s.updates).push.apply(u,Ti(n.transactions))}}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=i.active.some(function(p){return 1==p.state&&!e.running.some(function(m){return m.active.source==p.source})})?setTimeout(function(){return e.startUpdate()},50):-1,0!=this.composing){var h,d=ot(n.transactions);try{for(d.s();!(h=d.n()).done;){var f=h.value;"input"==h$(f)?this.composing=2:2==this.composing&&f.selection&&(this.composing=3)}}catch(p){d.e(p)}finally{d.f()}}}}},{key:"startUpdate",value:function(){var n=this;this.debounceUpdate=-1;var e,i=ot(this.view.state.field(vu).active);try{var r=function(){var o=e.value;1!=o.state||n.running.some(function(s){return s.active.source==o.source})||n.startQuery(o)};for(i.s();!(e=i.n()).done;)r()}catch(o){i.e(o)}finally{i.f()}}},{key:"startQuery",value:function(n){var e=this,i=this.view.state,r=Sp(i),o=new xfe(i,r,n.explicitPos==r),s=new Zet(n,o);this.running.push(s),Promise.resolve(n.source(o)).then(function(a){s.context.aborted||(s.done=a||null,e.scheduleAccept())},function(a){e.view.dispatch({effects:uD.of(null)}),Pc(e.view.state,a)})}},{key:"scheduleAccept",value:function(){var n=this;this.running.every(function(e){return void 0!==e.done})?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(function(){return n.accept()},50))}},{key:"accept",value:function(){var n,e=this;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;for(var i=[],r=this.view.state.facet(_d),o=function(a){var l=e.running[a];if(void 0===l.done)return s=a,"continue";if(e.running.splice(a--,1),l.done){var c,u=new Qet(l.active.source,l.active.explicitPos,l.done,l.done.from,null!==(n=l.done.to)&&void 0!==n?n:Sp(l.updates.length?l.updates[0].startState:e.view.state)),h=ot(l.updates);try{for(h.s();!(c=h.n()).done;)u=u.update(c.value,r)}catch(k){h.e(k)}finally{h.f()}if(u.hasResult())return i.push(u),s=a,"continue"}var f=e.view.state.field(vu).active.find(function(k){return k.source==l.active.source});if(f&&1==f.state)if(null==l.done){var p,m=new Kg(l.active.source,0),w=ot(l.updates);try{for(w.s();!(p=w.n()).done;)m=m.update(p.value,r)}catch(k){w.e(k)}finally{w.f()}1!=m.state&&i.push(m)}else e.startQuery(f);s=a},s=0;s ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",listStyle:"none",margin:0,padding:0,"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer",padding:"1px 3px",lineHeight:1.2}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"300px"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25cb'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25cc'"}},".cm-completionIcon-variable":{"&:after":{content:"'\u{1d465}'"}},".cm-completionIcon-constant":{"&:after":{content:"'\u{1d436}'"}},".cm-completionIcon-type":{"&:after":{content:"'\u{1d461}'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222a'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25a1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\u{1f511}\ufe0e'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25a2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),dD={brackets:["(","[","{","'",'"'],before:")]}:;>"},Jg=$r.define({map:function(t,n){return n.mapPos(t,-1,Xl.TrackAfter)??void 0}}),f$=$r.define({map:function(t,n){return n.mapPos(t)}}),p$=new(function(t){Wt(e,Ug);var n=Gt(e);function e(){return qe(this,e),n.apply(this,arguments)}return Xe(e)}());p$.startSide=1,p$.endSide=-1;var Lfe=nl.define({create:function(){return cs.empty},update:function(t,n){if(n.selection){var e=n.state.doc.lineAt(n.selection.main.head).from,i=n.startState.doc.lineAt(n.startState.selection.main.head).from;e!=n.changes.mapPos(i,-1)&&(t=cs.empty)}t=t.map(n.changes);var r,o=ot(n.effects);try{var s=function(){var a=r.value;a.is(Jg)?t=t.update({add:[p$.range(a.value,a.value+1)]}):a.is(f$)&&(t=t.update({filter:function(l){return l!=a.value}}))};for(o.s();!(r=o.n()).done;)s()}catch(a){o.e(a)}finally{o.f()}return t}});function Ofe(t){for(var n=0;n<8;n+=2)if("()[]{}<>".charCodeAt(n)==t)return"()[]{}<>".charAt(n+1);return CN(t<128?t:t+1)}function Nfe(t,n){return t.languageDataAt("closeBrackets",n)[0]||dD}var ntt="object"==(typeof navigator>"u"?"undefined":$n(navigator))&&/Android\b/.test(navigator.userAgent),itt=pi.inputHandler.of(function(t,n,e,i){if((ntt?t.composing:t.compositionStarted)||t.state.readOnly)return!1;var r=t.state.selection.main;if(i.length>2||2==i.length&&1==Nc(tl(i,0))||n!=r.from||e!=r.to)return!1;var o=function(s,a){var l,c=Nfe(s,s.selection.main.head),u=c.brackets||dD.brackets,h=ot(u);try{for(h.s();!(l=h.n()).done;){var d=l.value,f=Ofe(tl(d,0));if(a==d)return f==d?att(s,d,u.indexOf(d+d+d)>-1):ott(s,d,f,c.before||dD.before);if(a==f&&Rfe(s,s.selection.main.from))return stt(s,0,f)}}catch(p){h.e(p)}finally{h.f()}return null}(t.state,i);return!!o&&(t.dispatch(o),!0)}),rtt=[{key:"Backspace",run:function(t){var n=t.state,e=t.dispatch;if(n.readOnly)return!1;var i=Nfe(n,n.selection.main.head).brackets||dD.brackets,r=null,o=n.changeByRange(function(s){if(s.empty){var a,l=Nc(tl(f=(h=n.doc).sliceString((d=s.head)-2,d),0))==f.length?f:f.slice(1),c=ot(i);try{for(c.s();!(a=c.n()).done;){var u=a.value;if(u==l&&fD(n.doc,s.head)==Ofe(tl(u,0)))return{changes:{from:s.head-u.length,to:s.head+u.length},range:_n.cursor(s.head-u.length),userEvent:"delete.backward"}}}catch(h){c.e(h)}finally{c.f()}}var h,d,f;return{range:r=s}});return r||e(n.update(o,{scrollIntoView:!0})),!r}}];function Rfe(t,n){var e=!1;return t.field(Lfe).between(0,t.doc.length,function(i){i==n&&(e=!0)}),e}function fD(t,n){var e=t.sliceString(n,n+2);return e.slice(0,Nc(tl(e,0)))}function ott(t,n,e,i){var r=null,o=t.changeByRange(function(s){if(!s.empty)return{changes:[{insert:n,from:s.from},{insert:e,from:s.to}],effects:Jg.of(s.to+n.length),range:_n.range(s.anchor+n.length,s.head+n.length)};var a=fD(t.doc,s.head);return!a||/\s/.test(a)||i.indexOf(a)>-1?{changes:{insert:n+e,from:s.head},effects:Jg.of(s.head+n.length),range:_n.cursor(s.head+n.length)}:{range:r=s}});return r?null:t.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function stt(t,n,e){var i=null,r=t.selection.ranges.map(function(o){return o.empty&&fD(t.doc,o.head)==e?_n.cursor(o.head+e.length):i=o});return i?null:t.update({selection:_n.create(r,t.selection.mainIndex),scrollIntoView:!0,effects:t.selection.ranges.map(function(o){return f$.of(o.from)})})}function att(t,n,e){var i=null,r=t.changeByRange(function(o){if(!o.empty)return{changes:[{insert:n,from:o.from},{insert:n,from:o.to}],effects:Jg.of(o.to+n.length),range:_n.range(o.anchor+n.length,o.head+n.length)};var s=o.head,a=fD(t.doc,s);if(a==n){if($fe(t,s))return{changes:{insert:n+n,from:s},effects:Jg.of(s+n.length),range:_n.cursor(s+n.length)};if(Rfe(t,s)){var l=e&&t.sliceDoc(s,s+3*n.length)==n+n+n;return{range:_n.cursor(s+n.length*(l?3:1)),effects:f$.of(s)}}}else{if(e&&t.sliceDoc(s-2*n.length,s)==n+n&&$fe(t,s-2*n.length))return{changes:{insert:n+n+n+n,from:s},effects:Jg.of(s+n.length),range:_n.cursor(s+n.length)};if(t.charCategorizer(s)(a)!=Ds.Word){var c=t.sliceDoc(s-1,s);if(c!=n&&t.charCategorizer(s)(c)!=Ds.Word&&!function(u,h,d){for(var f=kl(u).resolveInner(h,-1),p=0;p<5;p++){if(u.sliceDoc(f.from,f.from+d.length)==d){for(var m=f.firstChild;m&&m.from==f.from&&m.to-m.from>d.length;){if(u.sliceDoc(m.to-d.length,m.to)==d)return!1;m=m.firstChild}return!0}var w=f.to==h&&f.parent;if(!w)break;f=w}return!1}(t,s,n))return{changes:{insert:n+n,from:s},effects:Jg.of(s+n.length),range:_n.cursor(s+n.length)}}}return{range:i=o}});return i?null:t.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function $fe(t,n){var e=kl(t).resolveInner(n+1);return e.parent&&e.from==n}function ltt(){return[vu,_d.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),ett,ctt,ttt]}var Pfe=[{key:"Ctrl-Space",run:function(t){return!!t.state.field(vu,!1)&&(t.dispatch({effects:d$.of(!0)}),!0)}},{key:"Escape",run:function(t){var n=t.state.field(vu,!1);return!(!n||!n.active.some(function(e){return 0!=e.state})||(t.dispatch({effects:uD.of(null)}),0))}},{key:"ArrowDown",run:hD(!0)},{key:"ArrowUp",run:hD(!1)},{key:"PageDown",run:hD(!0,"page")},{key:"PageUp",run:hD(!1,"page")},{key:"Enter",run:function(t){var n=t.state.field(vu,!1);return!(t.state.readOnly||!n||!n.open||Date.now()-n.open.timestamp<75||n.open.selected<0||(Dfe(t,n.open.options[n.open.selected]),0))}}],ctt=x0.highest(Tk.computeN([_d],function(t){return t.facet(_d).defaultKeymap?[Pfe]:[]})),utt=Xe(function t(n,e,i){qe(this,t),this.from=n,this.to=e,this.diagnostic=i}),A_=function(){function t(n,e,i){qe(this,t),this.diagnostics=n,this.panel=e,this.selected=i}return Xe(t,null,[{key:"init",value:function(n,e,i){var r=n,o=i.facet(Qg).markerFilter;o&&(r=o(r));var s=Hi.set(r.map(function(a){return a.from==a.to||a.from==a.to-1&&i.doc.lineAt(a.from).to==a.from?Hi.widget({widget:new gtt(a),diagnostic:a}).range(a.from):Hi.mark({attributes:{class:"cm-lintRange cm-lintRange-"+a.severity},diagnostic:a}).range(a.from,a.to)}),!0);return new t(s,e,j0(s))}}]),t}();function j0(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=null;return t.between(arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,1e9,function(r,o,s){var a=s.spec;if(!n||a.diagnostic==n)return i=new utt(r,o,a.diagnostic),!1}),i}function jfe(t,n){return!(!t.effects.some(function(e){return e.is(pD)})&&!t.changes.touchesRange(n.pos))}function Bfe(t,n){return t.field(Bc,!1)?n:n.concat($r.appendConfig.of([Bc,pi.decorations.compute([Bc],function(e){var i=e.field(Bc),r=i.selected;return r&&i.panel&&r.from!=r.to?Hi.set([htt.range(r.from,r.to)]):Hi.none}),JQe(dtt,{hideOn:jfe}),mtt]))}var pD=$r.define(),g$=$r.define(),Hfe=$r.define(),Bc=nl.define({create:function(){return new A_(Hi.none,null,null)},update:function(t,n){if(n.docChanged){var e=t.diagnostics.map(n.changes),i=null;if(t.selected){var r=n.changes.mapPos(t.selected.from,1);i=j0(e,t.selected.diagnostic,r)||j0(e,null,r)}t=new A_(e,t.panel,i)}var o,s=ot(n.effects);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.is(pD)?t=A_.init(a.value,t.panel,n.state):a.is(g$)?t=new A_(t.diagnostics,a.value?qfe.open:null,t.selected):a.is(Hfe)&&(t=new A_(t.diagnostics,t.panel,a.value))}}catch(l){s.e(l)}finally{s.f()}return t},provide:function(t){return[v_.from(t,function(n){return n.panel}),pi.decorations.from(t,function(n){return n.diagnostics})]}}),htt=Hi.mark({class:"cm-lintRange cm-lintRange-active"});function dtt(t,n,e){var i=t.state.field(Bc).diagnostics,r=[],o=2e8,s=0;i.between(n-(e<0?1:0),n+(e>0?1:0),function(l,c,u){n>=l&&n<=c&&(l==c||(n>l||e>0)&&(n=65&&i.keyCode<=90&&e.selectedIndex>=0))return;for(var r=e.items[e.selectedIndex].diagnostic,o=Ufe(r.actions),s=0;so&&(n.items.splice(o,f-o),s=!0)),r&&h.diagnostic==r.diagnostic?h.dom.hasAttribute("aria-selected")||(h.dom.setAttribute("aria-selected","true"),a=h):h.dom.hasAttribute("aria-selected")&&h.dom.removeAttribute("aria-selected"),o++});ou.bottom&&(n.list.scrollTop+=c.bottom-u.bottom)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),s&&this.sync()}},{key:"sync",value:function(){var n=this.list.firstChild;function e(){var s=n;n=s.nextSibling,s.remove()}var i,r=ot(this.items);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.dom.parentNode==this.list){for(;n!=o.dom;)e();n=o.dom.nextSibling}else this.list.insertBefore(o.dom,n)}}catch(s){r.e(s)}finally{r.f()}for(;n;)e()}},{key:"moveSelection",value:function(n){if(!(this.selectedIndex<0)){var e=j0(this.view.state.field(Bc).diagnostics,this.items[n].diagnostic);e&&this.view.dispatch({selection:{anchor:e.from,head:e.to},scrollIntoView:!0,effects:Hfe.of(e)})}}}],[{key:"open",value:function(n){return new t(n)}}]),t}();function gD(t){return'url(\'data:image/svg+xml,1&&void 0!==arguments[1]?arguments[1]:'viewBox="0 0 40 40"',">").concat(encodeURIComponent(t),"')")}function m$(t){return gD(''),'width="6" height="3"')}var mtt=pi.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:m$("#d11")},".cm-lintRange-warning":{backgroundImage:m$("orange")},".cm-lintRange-info":{backgroundImage:m$("#999")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),vtt=function(t){Wt(e,pd);var n=Gt(e);function e(i){var r;return qe(this,e),(r=n.call(this)).diagnostics=i,r.severity=i.reduce(function(o,s){var a=s.severity;return"error"==a||"warning"==a&&"info"==o?a:o},"info"),r}return Xe(e,[{key:"toDOM",value:function(i){var r=document.createElement("div");r.className="cm-lint-marker cm-lint-marker-"+this.severity;var o=this.diagnostics,s=i.state.facet(mD).tooltipFilter;return s&&(o=s(o)),o.length&&(r.onmouseover=function(){return function(a,l,c){function u(){var p,m,f=a.elementAtHeight(l.getBoundingClientRect().top+5-a.documentTop);a.coordsAtPos(f.from)&&a.dispatch({effects:v$.of({pos:f.from,above:!1,create:function(){return{dom:Vfe(a,c),getCoords:function(){return l.getBoundingClientRect()}}}})}),l.onmouseout=l.onmousemove=null,p=a,m=l,window.addEventListener("mousemove",function C(k){var E=m.getBoundingClientRect();if(!(k.clientX>E.left-10&&k.clientXE.top-10&&k.clientY')},".cm-lint-marker-warning":{content:gD('')},".cm-lint-marker-error":{content:gD('')}}),mD=yi.define({combine:function(t){return fu(t,{hoverTime:300,markerFilter:null,tooltipFilter:null})}});function wtt(){return[mD.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Xfe,btt,_tt,Yfe]}var Kfe,xtt=function(){return[oZe(),aZe,OQe(),uet(),RZe(),DQe(),[g_,MQe],Qo.allowMultipleSelections.of(!0),Qo.transactionFilter.of(function(e){if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;var i=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!i.length)return e;var r=e.newDoc,o=e.newSelection.main.head,s=r.lineAt(o);if(o>s.from+200)return e;var a=r.sliceString(s.from,o);if(!i.some(function(k){return k.test(a)}))return e;var l,c=e.state,u=-1,h=[],d=ot(c.selection.ranges);try{for(d.s();!(l=d.n()).done;){var p=c.doc.lineAt(l.value.head);if(p.from!=u){u=p.from;var m=RR(c,p.from);if(null!=m){var w=/^\s*/.exec(p.text)[0],C=C_(c,m);w!=C&&h.push({from:p.from,to:p.from+w.length,insert:C})}}}}catch(k){d.e(k)}finally{d.f()}return h.length?[e,{changes:h,sequential:!0}]:e}),bde(BZe,{fallback:!0}),qZe(),[itt,Lfe],ltt(),HQe(),UQe(),jQe,(n=[Fet,Iet],n),Tk.of([].concat(rtt,Ti(ket),Het,yet,LZe,Pfe,ftt))];var n}(),Ctt=function(){function t(n,e,i,r,o,s,a,l,c){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,h=arguments.length>10?arguments[10]:void 0;qe(this,t),this.p=n,this.stack=e,this.state=i,this.reducePos=r,this.pos=o,this.score=s,this.buffer=a,this.bufferBase=l,this.curContext=c,this.lookAhead=u,this.parent=h}return Xe(t,[{key:"toString",value:function(){return"[".concat(this.stack.filter(function(n,e){return e%3==0}).concat(this.state),"]@").concat(this.pos).concat(this.score?"!"+this.score:"")}},{key:"context",get:function(){return this.curContext?this.curContext.context:null}},{key:"pushState",value:function(n,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=n}},{key:"reduce",value:function(n){var e=n>>19,i=65535&n,r=this.p.parser,o=r.dynamicPrecedence(i);if(o&&(this.score+=o),0==e)return this.pushState(r.getGoto(this.state,i,!0),this.reducePos),is;)this.stack.pop();this.reduceContext(i,a)}},{key:"storeNode",value:function(n,e,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:4,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(0==n&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==s.buffer[a-4]&&s.buffer[a-1]>-1){if(e==i)return;if(s.buffer[a-2]>=e)return void(s.buffer[a-2]=i)}}if(o&&this.pos!=i){var l=this.buffer.length;if(l>0&&0!=this.buffer[l-4])for(;l>0&&this.buffer[l-2]>i;)this.buffer[l]=this.buffer[l-4],this.buffer[l+1]=this.buffer[l-3],this.buffer[l+2]=this.buffer[l-2],this.buffer[l+3]=this.buffer[l-1],l-=4,r>4&&(r-=4);this.buffer[l]=n,this.buffer[l+1]=e,this.buffer[l+2]=i,this.buffer[l+3]=r}else this.buffer.push(n,e,i,r)}},{key:"shift",value:function(n,e,i){var r=this.pos;if(131072&n)this.pushState(65535&n,this.pos);else if(262144&n)this.pos=i,this.shiftContext(e,r),e<=this.p.parser.maxNode&&this.buffer.push(e,r,i,4);else{var o=n,s=this.p.parser;(i>this.pos||e<=s.maxNode)&&(this.pos=i,s.stateFlag(o,1)||(this.reducePos=i)),this.pushState(o,r),this.shiftContext(e,r),e<=s.maxNode&&this.buffer.push(e,r,i,4)}}},{key:"apply",value:function(n,e,i){65536&n?this.reduce(n):this.shift(n,e,i)}},{key:"useNode",value:function(n,e){var i=this.p.reused.length-1;(i<0||this.p.reused[i]!=n)&&(this.p.reused.push(n),i++);var r=this.pos;this.reducePos=this.pos=r+n.length,this.pushState(e,r),this.buffer.push(i,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,n,this,this.p.stream.reset(this.pos-n.length)))}},{key:"split",value:function(){for(var n=this,e=n.buffer.length;e>0&&n.buffer[e-2]>n.reducePos;)e-=4;for(var i=n.buffer.slice(e),r=n.bufferBase+e;n&&r==n.bufferBase;)n=n.parent;return new t(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,r,this.curContext,this.lookAhead,n)}},{key:"recoverByDelete",value:function(n,e){var i=n<=this.p.parser.maxNode;i&&this.storeNode(n,this.pos,e,4),this.storeNode(0,this.pos,e,i?8:4),this.pos=this.reducePos=e,this.score-=190}},{key:"canShift",value:function(n){for(var e=new Stt(this);;){var i=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,n);if(!(65536&i))return!0;if(0==i)return!1;e.reduce(i)}}},{key:"recoverByInsert",value:function(n){if(this.stack.length>=300)return[];var e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){for(var i,r=[],o=0;o>19);if(o<0||e.getGoto(this.stack[o],65535&n,!1)<0)return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}},{key:"forceAll",value:function(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}},{key:"deadEnd",get:function(){if(3!=this.stack.length)return!1;var n=this.p.parser;return 65535==n.data[n.stateSlot(this.state,1)]&&!n.stateSlot(this.state,4)}},{key:"restart",value:function(){this.state=this.stack[0],this.stack.length=0}},{key:"sameState",value:function(n){if(this.state!=n.state||this.stack.length!=n.stack.length)return!1;for(var e=0;ethis.lookAhead&&(this.emitLookAhead(),this.lookAhead=n)}},{key:"close",value:function(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}],[{key:"start",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=n.parser.context;return new t(n,[],e,i,i,0,[],0,r?new Jfe(r,r.start):null,0,null)}}]),t}(),Jfe=Xe(function t(n,e){qe(this,t),this.tracker=n,this.context=e,this.hash=n.strict?n.hash(e):0});!function(t){t[t.Insert=200]="Insert",t[t.Delete=190]="Delete",t[t.Reduce=100]="Reduce",t[t.MaxNext=4]="MaxNext",t[t.MaxInsertStackDepth=300]="MaxInsertStackDepth",t[t.DampenInsertStackDepth=120]="DampenInsertStackDepth"}(Kfe||(Kfe={}));var Stt=function(){function t(n){qe(this,t),this.start=n,this.state=n.state,this.stack=n.stack,this.base=this.stack.length}return Xe(t,[{key:"reduce",value:function(n){var e=65535&n,i=n>>19;0==i?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(i-1);var r=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=r}}]),t}(),ktt=function(){function t(n,e,i){qe(this,t),this.stack=n,this.pos=e,this.index=i,this.buffer=n.buffer,0==this.index&&this.maybeNext()}return Xe(t,[{key:"maybeNext",value:function(){var n=this.stack.parent;null!=n&&(this.index=this.stack.bufferBase-n.bufferBase,this.stack=n,this.buffer=n.buffer)}},{key:"id",get:function(){return this.buffer[this.index-4]}},{key:"start",get:function(){return this.buffer[this.index-3]}},{key:"end",get:function(){return this.buffer[this.index-2]}},{key:"size",get:function(){return this.buffer[this.index-1]}},{key:"next",value:function(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}},{key:"fork",value:function(){return new t(this.stack,this.pos,this.index)}}],[{key:"create",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.bufferBase+n.buffer.length;return new t(n,e,e-n.bufferBase)}}]),t}(),vD=Xe(function t(){qe(this,t),this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}),Qfe=new vD,Dtt=function(){function t(n,e){qe(this,t),this.input=n,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Qfe,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}return Xe(t,[{key:"resolveOffset",value:function(n,e){for(var i=this.range,r=this.rangeIndex,o=this.pos+n;oi.to:o>=i.to;){if(r==this.ranges.length-1)return null;var a=this.ranges[++r];o+=a.from-i.to,i=a}return o}},{key:"clipPos",value:function(n){if(n>=this.range.from&&nn)return Math.max(n,r.from)}}catch(o){i.e(o)}finally{i.f()}return this.end}},{key:"peek",value:function(n){var e,i,r=this.chunkOff+n;if(r>=0&&r=this.chunk2Pos&&ea.to&&(this.chunk2=this.chunk2.slice(0,a.to-e)),i=this.chunk2.charCodeAt(0)}}return e>=this.token.lookAhead&&(this.token.lookAhead=e+1),i}},{key:"acceptToken",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=e?this.resolveOffset(e,-1):this.pos;if(null==i||i=this.chunk2Pos&&this.posthis.range.to?i.slice(0,this.range.to-this.pos):i,this.chunkPos=this.pos,this.chunkOff=0}}},{key:"readNext",value:function(){return this.next=this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?-1:this.chunk.charCodeAt(this.chunkOff)}},{key:"advance",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;for(this.chunkOff+=n;this.pos+n>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();n-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=n,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}},{key:"setDone",value:function(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}},{key:"reset",value:function(n,e){if(e?(this.token=e,e.start=n,e.lookAhead=n+1,e.value=e.extended=-1):this.token=Qfe,this.pos!=n){if(this.pos=n,n==this.end)return this.setDone(),this;for(;n=this.range.to;)this.range=this.ranges[++this.rangeIndex];n>=this.chunkPos&&n=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(n-this.chunkPos,e-this.chunkPos);if(n>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(n-this.chunk2Pos,e-this.chunk2Pos);if(n>=this.range.from&&e<=this.range.to)return this.input.read(n,e);var i,r="",o=ot(this.ranges);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(s.from>=e)break;s.to>n&&(r+=this.input.read(Math.max(s.from,n),Math.min(s.to,e)))}}catch(a){o.e(a)}finally{o.f()}return r}}]),t}(),yD=function(){function t(n,e){qe(this,t),this.data=n,this.id=e}return Xe(t,[{key:"token",value:function(n,e){!function(i,r,o,s){var a=0,l=1<0){var f=i[d];if(u.allows(f)&&(-1==r.token.value||r.token.value==f||c.overrides(f,r.token.value))){r.acceptToken(f);break}}var p=r.next,m=0,w=i[a+2];if(!(r.next<0&&w>m&&65535==i[h+3*w-3])){for(;m>1,k=h+C+(C<<1);if(p=i[k+1])){a=i[k+2],r.advance();continue e}m=C+1}}break}a=i[h+3*w-1]}}(this.data,n,e,this.id)}}]),t}();function bD(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Uint16Array;if("string"!=typeof t)return t;for(var e=null,i=0,r=0;i=92&&s--,s>=34&&s--;var l=s-32;if(l>=46&&(l-=46,a=!0),o+=l,a)break;o*=46}e?e[r++]=o:e=new n(o)}return e}yD.prototype.contextual=yD.prototype.fallback=yD.prototype.extend=!1;var Zfe,fh=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG),y$=null;function epe(t,n,e){var i=t.cursor(rl.IncludeAnonymous);for(i.moveTo(n);;)if(!(e<0?i.childBefore(n):i.childAfter(n)))for(;;){if((e<0?i.ton)&&!i.type.isError)return e<0?Math.max(0,Math.min(i.to-1,n-25)):Math.min(t.length,Math.max(i.from+1,n+25));if(e<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return e<0?0:t.length}}!function(t){t[t.Margin=25]="Margin"}(Zfe||(Zfe={}));var tpe,Ttt=function(){function t(n,e){qe(this,t),this.fragments=n,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}return Xe(t,[{key:"nextFragment",value:function(){var n=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(n){for(this.safeFrom=n.openStart?epe(n.tree,n.from+n.offset,1)-n.offset:n.from,this.safeTo=n.openEnd?epe(n.tree,n.to+n.offset,-1)-n.offset:n.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(n.tree),this.start.push(-n.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}},{key:"nodeAt",value:function(n){if(nn)return this.nextStart=s,null;if(o instanceof ol){if(s==n){if(s=Math.max(this.safeFrom,n)&&(this.trees.push(o),this.start.push(s),this.index.push(0))}else this.index[e]++,this.nextStart=s+o.length}else this.trees.pop(),this.start.pop(),this.index.pop()}}}]),t}(),Att=function(){function t(n,e){qe(this,t),this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=n.tokenizers.map(function(i){return new vD})}return Xe(t,[{key:"getActions",value:function(n){for(var e=0,i=null,r=n.p.parser,o=r.tokenizers,s=r.stateSlot(n.state,3),a=n.curContext?n.curContext.hash:0,l=0,c=0;ch.end+25&&(l=Math.max(h.lookAhead,l)),0!=h.value)){var d=e;if(h.extended>-1&&(e=this.addActions(n,h.extended,h.end,e)),e=this.addActions(n,h.value,h.end,e),!u.extend&&(i=h,e>d))break}}for(;this.actions.length>e;)this.actions.pop();return l&&n.setLookAhead(l),i||n.pos!=this.stream.end||((i=new vD).value=n.p.parser.eofTerm,i.start=i.end=n.pos,e=this.addActions(n,i.value,i.end,e)),this.mainToken=i,this.actions}},{key:"getMainToken",value:function(n){if(this.mainToken)return this.mainToken;var e=new vD,i=n.pos,r=n.p;return e.start=i,e.end=Math.min(i+1,r.stream.end),e.value=i==r.stream.end?r.parser.eofTerm:0,e}},{key:"updateCachedToken",value:function(n,e,i){var r=this.stream.clipPos(i.pos);if(e.token(this.stream.reset(r,n),i),n.value>-1){for(var o=i.p.parser,s=0;s=0&&i.p.parser.dialect.allows(a>>1)){1&a?n.extended=a>>1:n.value=a>>1;break}}}else n.value=0,n.end=this.stream.clipPos(r+1)}},{key:"putAction",value:function(n,e,i,r){for(var o=0;o4*n.bufferLength?new Ttt(i,n.nodeSet):null}return Xe(t,[{key:"parsedPos",get:function(){return this.minStackPos}},{key:"advance",value:function(){for(var n,e,i=this.stacks,r=this.minStackPos,o=this.stacks=[],s=0;sr)o.push(a);else{if(this.advanceStack(a,o,i))continue;n||(n=[],e=[]),n.push(a);var l=this.tokens.getMainToken(a);e.push(l.value,l.end)}break}if(!o.length){var c=n&&function(C){var k,E=null,L=ot(C);try{for(L.s();!(k=L.n()).done;){var B=k.value,G=B.p.stoppedAt;(B.pos==B.p.stream.end||null!=G&&B.pos>G)&&B.p.parser.stateFlag(B.state,2)&&(!E||E.scorethis.stoppedAt?n[0]:this.runRecovery(n,e,o);if(u)return this.stackToTree(u.forceAll())}if(this.recovering){var h=1==this.recovering?1:3*this.recovering;if(o.length>h)for(o.sort(function(C,k){return k.score-C.score});o.length>h;)o.pop();o.some(function(C){return C.reducePos>r})&&this.recovering--}else if(o.length>1)e:for(var d=0;d500&&m.buffer.length>500){if(!((f.score-m.score||f.buffer.length-m.buffer.length)>0)){o.splice(d--,1);continue e}o.splice(p--,1)}}this.minStackPos=o[0].pos;for(var w=1;w ":"";if(null!=this.stoppedAt&&r>this.stoppedAt)return n.forceReduce()?n:null;if(this.fragments)for(var a=n.curContext&&n.curContext.tracker.strict,l=a?n.curContext.hash:0,c=this.fragments.nodeAt(r);c;){var u=this.parser.nodeSet.types[c.type.id]==c.type?o.getGoto(n.state,c.type.id):-1;if(u>-1&&c.length&&(!a||(c.prop(Hr.contextHash)||0)==l))return n.useNode(c,u),fh&&console.log(s+this.stackID(n)+" (via reuse of ".concat(o.getName(c.type.id),")")),!0;if(!(c instanceof ol)||0==c.children.length||c.positions[0]>0)break;var h=c.children[0];if(!(h instanceof ol&&0==c.positions[0]))break;c=h}var d=o.stateSlot(n.state,4);if(d>0)return n.reduce(d),fh&&console.log(s+this.stackID(n)+" (via always-reduce ".concat(o.getName(65535&d),")")),!0;if(n.stack.length>=15e3)for(;n.stack.length>9e3&&n.forceReduce(););for(var f=this.tokens.getActions(n),p=0;pr?e.push(E):i.push(E)}return!1}},{key:"advanceFully",value:function(n,e){for(var i=n.pos;;){if(!this.advanceStack(n,null,null))return!1;if(n.pos>i)return npe(n,e),!0}}},{key:"runRecovery",value:function(n,e,i){for(var r=null,o=!1,s=0;s ":"";if(!a.deadEnd||!o&&(o=!0,a.restart(),fh&&console.log(u+this.stackID(a)+" (restarted)"),!this.advanceFully(a,i))){for(var h=a.split(),d=u,f=0;h.forceReduce()&&f<10&&(fh&&console.log(d+this.stackID(h)+" (via force-reduce)"),!this.advanceFully(h,i));f++)fh&&(d=this.stackID(h)+" -> ");var p,m=ot(a.recoverByInsert(l));try{for(m.s();!(p=m.n()).done;){var w=p.value;fh&&console.log(u+this.stackID(w)+" (via recover-insert)"),this.advanceFully(w,i)}}catch(C){m.e(C)}finally{m.f()}this.stream.end>a.pos?(c==a.pos&&(c++,l=0),a.recoverByDelete(l,c),fh&&console.log(u+this.stackID(a)+" (via recover-delete ".concat(this.parser.getName(l),")")),npe(a,i)):(!r||r.score=0)h(C,m,p[w++]);else{for(var k=p[w+-C],E=-C;E>0;E--)h(p[w++],m,k);w++}}}}catch(G){f.e(G)}finally{f.f()}}o.nodeSet=new uZe(s.map(function(G,oe){return pu.define({name:oe>=o.minRepeatTerm?void 0:G,id:oe,props:c[oe],top:l.indexOf(oe)>-1,error:0==oe,skipped:i.skippedNodes&&i.skippedNodes.indexOf(oe)>-1})})),i.propSources&&(o.nodeSet=(r=o.nodeSet).extend.apply(r,Ti(i.propSources))),o.strict=!1,o.bufferLength=1024;var L=bD(i.tokenData);o.context=i.context,o.specializerSpecs=i.specialized||[],o.specialized=new Uint16Array(o.specializerSpecs.length);for(var B=0;B2&&void 0!==arguments[2]&&arguments[2],s=this.goto;if(r>=s[0])return-1;for(var a=s[r+1];;){var l=s[a++],c=1&l,u=s[a++];if(c&&o)return u;for(var h=a+(l>>1);a0}},{key:"validAction",value:function(i,r){if(r==this.stateSlot(i,4))return!0;for(var o=this.stateSlot(i,1);;o+=3){if(65535==this.data[o]){if(1!=this.data[o+1])return!1;o=df(this.data,o+2)}if(r==df(this.data,o+1))return!0}}},{key:"nextStates",value:function(i){for(var r=this,o=[],s=this.stateSlot(i,1);;s+=3){if(65535==this.data[s]){if(1!=this.data[s+1])break;s=df(this.data,s+2)}!(1&this.data[s+2])&&function(){var a=r.data[s+1];o.some(function(l,c){return 1&c&&l==a})||o.push(r.data[s],a)}()}return o}},{key:"overrides",value:function(i,r){var o=ipe(this.data,this.tokenPrecTable,r);return o<0||ipe(this.data,this.tokenPrecTable,i)0}},{key:"getName",value:function(i){return this.termNames?this.termNames[i]:String(i<=this.maxNode&&this.nodeSet.types[i].name||i)}},{key:"eofTerm",get:function(){return this.maxNode+1}},{key:"topNode",get:function(){return this.nodeSet.types[this.top[1]]}},{key:"dynamicPrecedence",value:function(i){var r=this.dynamicPrecedences;return null==r?0:r[i]||0}},{key:"parseDialect",value:function(i){var r=Object.keys(this.dialects),o=r.map(function(){return!1});if(i){var s,a=ot(i.split(" "));try{for(a.s();!(s=a.n()).done;){var c=r.indexOf(s.value);c>=0&&(o[c]=!0)}}catch(p){a.e(p)}finally{a.f()}}for(var u=null,h=0;h0&&ape(t);return{c:function(){n=Be("div"),r&&r.c(),e=xt(),o&&o.c(),i=xt(),s&&s.c(),ne(n,"class","jse-status-bar svelte-1oo7hnc")},m:function(a,l){nt(a,n,l),r&&r.m(n,null),Ie(n,e),o&&o.m(n,null),Ie(n,i),s&&s.m(n,null)},p:function(a,l){var c=di(l,1)[0];void 0!==a[0]?r?r.p(a,c):((r=ope(a)).c(),r.m(n,e)):r&&(r.d(1),r=null),void 0!==a[1]?o?o.p(a,c):((o=spe(a)).c(),o.m(n,i)):o&&(o.d(1),o=null),void 0!==a[2]&&a[2]>0?s?s.p(a,c):((s=ape(a)).c(),s.m(n,null)):s&&(s.d(1),s=null)},i:an,o:an,d:function(a){a&&tt(n),r&&r.d(),o&&o.d(),s&&s.d()}}}function $tt(t,n,e){var i,r,o,s,a,l=n.editorState;return t.$$set=function(c){"editorState"in c&&e(3,l=c.editorState)},t.$$.update=function(){var c,u,h,d,f,p,m,w;8&t.$$.dirty&&e(4,i=null===(c=l)||void 0===c||null===(u=c.selection)||void 0===u||null===(h=u.main)||void 0===h?void 0:h.head),24&t.$$.dirty&&e(5,r=null===(d=l)||void 0===d||null===(f=d.doc)||void 0===f?void 0:f.lineAt(i)),32&t.$$.dirty&&e(0,o=r?r.number:void 0),48&t.$$.dirty&&e(1,s=r?i-r.from+1:void 0),8&t.$$.dirty&&e(2,a=null===(p=l)||void 0===p||null===(m=p.selection)||void 0===m||null===(w=m.ranges)||void 0===w?void 0:w.reduce(function(C,k){return C+k.to-k.from},0))},[o,s,a,l,i,r]}var Ptt=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,$tt,Rtt,Os,{editorState:3},Ntt),r}return Xe(e)}(),b$=PR.define([{tag:Ln.propertyName,color:"var(--jse-key-color)"},{tag:Ln.number,color:"var(--jse-value-color-number)"},{tag:Ln.bool,color:"var(--jse-value-color-boolean)"},{tag:Ln.string,color:"var(--jse-value-color-string)"},{tag:Ln.keyword,color:"var(--jse-value-color-null)"}]),jtt=bde(b$),Btt=b$.style;function _$(t){return t.doc.lineAt(t.selection.main.head)}function lpe(t,n){var e=0;e:for(var i=0;i=r.level?i.level:i.empty&&0===i.level&&0!==r.level?0:r.level>i.level?i.level+1:r.level)}var o=lpe(n.text,this.state.tabSize),s=Math.floor(o/this.unitWidth);return this.set(n,o,s)}},{key:"closestNonEmpty",value:function(n,e){for(var i=n.number+e;-1===e?i>=1:i<=this.state.doc.lines;){if(this.has(i)){var r=this.get(i);if(!r.empty)return r}var o=this.state.doc.line(i);if(o.text.trim().length){var s=lpe(o.text,this.state.tabSize),a=Math.floor(s/this.unitWidth);return this.set(o,s,a)}i+=e}var l=this.state.doc.line(-1===e?1:this.state.doc.lines);return this.set(l,0,0)}},{key:"findAndSetActiveLines",value:function(){var n=_$(this.state);if(this.has(n)){var e=this.get(n);if(this.has(e.line.number+1)){var i=this.get(e.line.number+1);i.level>e.level&&(e=i)}if(this.has(e.line.number-1)){var r=this.get(e.line.number-1);r.level>e.level&&(e=r)}if(0!==e.level){var o,s;for(e.active=e.level,o=e.line.number;o>1;o--)if(this.has(o-1)){var a=this.get(o-1);if(a.level1&&void 0!==arguments[1]?arguments[1]:h.state,p=new Set,m=ot(h.visibleRanges);try{for(m.s();!(d=m.n()).done;)for(var w=d.value,k=w.to,E=w.from;E<=k;){var L=f.doc.lineAt(E);p.has(L)||p.add(L),E=L.to+1}}catch(B){m.e(B)}finally{m.f()}return p}(this.view,n),o=new Htt(r,n,this.unitWidth),s=n.facet(_D).hideFirstIndent,a=ot(r);try{for(a.s();!(e=a.n()).done;){var l=e.value,c=o.get(l.number);if(c?.level){var u=ztt(c,this.unitWidth,s);i.add(l.from,l.from,Hi.line({class:"cm-indent-markers",attributes:{style:"--indent-markers: ".concat(u)}}))}}}catch(h){a.e(h)}finally{a.f()}this.decorations=i.finish()}}]),t}();function Wtt(){return[_D.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Vtt,Ba.fromClass(Utt,{decorations:function(n){return n.decorations}})]}function Gtt(t){Ni(t,"svelte-1yqirn0",'.jse-text-mode.svelte-1yqirn0.svelte-1yqirn0{flex:1;box-sizing:border-box;display:flex;flex-direction:column;background:var(--jse-background-color)}.jse-text-mode.no-main-menu.svelte-1yqirn0.svelte-1yqirn0{border-top:var(--jse-main-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0{flex:1;display:flex;position:relative;flex-direction:column;overflow:hidden;min-width:0;min-height:0;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0:last-child{border-bottom:var(--jse-main-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.jse-hidden.svelte-1yqirn0{visibility:hidden;position:absolute;top:0;left:0}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor{flex:1;overflow:hidden}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-scroller{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);line-height:var(--jse-line-height);color:var(--jse-delimiter-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-gutters{background:var(--jse-panel-background);color:var(--jse-panel-color-readonly);border-right:var(--jse-panel-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-activeLine,.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-activeLineGutter{background:var(--jse-active-line-background-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-selectionBackground{background:var(--jse-selection-background-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-searchMatch{background-color:var(--jse-search-match-color);outline:var(--jse-search-match-outline)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-searchMatch.cm-searchMatch-selected{background-color:var(--jse-search-match-active-color);outline:var(--jse-search-match-active-outline)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-selectionMatch{background-color:var(--jse-search-match-background-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-foldPlaceholder{background:var(--jse-tag-background);color:var(--jse-tag-color);border:none;padding:0 var(--jse-padding)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-tooltip{font-size:var(--jse-font-size);font-family:var(--jse-font-family);color:var(--jse-tooltip-color);background:var(--jse-tooltip-background);border:var(--jse-tooltip-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-diagnosticAction{background:var(--jse-tooltip-action-button-color);background:var(--jse-tooltip-action-button-background)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-panels{border-bottom:var(--jse-panel-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search{background:var(--jse-panel-background);color:var(--jse-panel-color);font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search input{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);color:var(--jse-input-color);border:var(--jse-input-border);background:var(--jse-input-background);margin-right:2px}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search button{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);color:var(--jse-panel-button-color);background:var(--jse-panel-button-background);border:none;cursor:pointer;text-transform:capitalize;padding:calc(0.5 * var(--jse-padding)) var(--jse-padding);margin:0}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search button:hover{color:var(--jse-panel-button-color-highlight);background:var(--jse-panel-button-background-highlight)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search label{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);padding-left:var(--jse-padding)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search label input{margin-right:2px}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search button[name="close"]{width:32px;height:32px;font-size:24px;line-height:24px;padding:0;right:0;top:-4px}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-cursor-primary{border-color:var(--jse-text-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents .jse-loading-space.svelte-1yqirn0{flex:1}.jse-text-mode.svelte-1yqirn0 .jse-contents .jse-loading.svelte-1yqirn0{flex:2;text-align:center;color:var(--jse-panel-color-readonly);box-sizing:border-box;font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-text-mode.svelte-1yqirn0 .jse-contents.jse-preview.svelte-1yqirn0{flex:1;color:var(--jse-panel-color-readonly);overflow:auto;white-space:pre-wrap;word-break:break-word;padding:2px}')}function w$(t){var n=t.slice();return n[93]=0===n[10].length,n}function cpe(t){var n,e;return n=new fJe({props:{readOnly:t[0],onFormat:t[16],onCompact:t[17],onSort:t[18],onTransform:t[19],onToggleSearch:t[20],onUndo:t[21],onRedo:t[22],canFormat:!t[93],canCompact:!t[93],canSort:!t[93],canTransform:!t[93],canUndo:t[11],canRedo:t[12],onRenderMenu:t[3]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};1&r[0]&&(o.readOnly=i[0]),1024&r[0]&&(o.canFormat=!i[93]),1024&r[0]&&(o.canCompact=!i[93]),1024&r[0]&&(o.canSort=!i[93]),1024&r[0]&&(o.canTransform=!i[93]),2048&r[0]&&(o.canUndo=i[11]),4096&r[0]&&(o.canRedo=i[12]),8&r[0]&&(o.onRenderMenu=i[3]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function qtt(t){var n;return{c:function(){(n=Be("div")).innerHTML='
    \n
    loading...
    ',ne(n,"class","jse-contents svelte-1yqirn0")},m:function(e,i){nt(e,n,i)},p:an,i:an,o:an,d:function(e){e&&tt(n)}}}function Xtt(t){var n,e,i,r,o,s=t[92]&&upe(t),a=!t[92]&&hpe(t);return{c:function(){n=Be("div"),e=xt(),s&&s.c(),i=xt(),a&&a.c(),r=Wr(),ne(n,"class","jse-contents svelte-1yqirn0"),en(n,"jse-hidden",t[92])},m:function(l,c){nt(l,n,c),t[50](n),nt(l,e,c),s&&s.m(l,c),nt(l,i,c),a&&a.m(l,c),nt(l,r,c),o=!0},p:function(l,c){(!o||134218880&c[0])&&en(n,"jse-hidden",l[92]),l[92]?s?(s.p(l,c),1152&c[0]&&_e(s,1)):((s=upe(l)).c(),_e(s,1),s.m(i.parentNode,i)):s&&(cn(),Ee(s,1,1,function(){s=null}),un()),l[92]?a&&(cn(),Ee(a,1,1,function(){a=null}),un()):a?(a.p(l,c),1152&c[0]&&_e(a,1)):((a=hpe(l)).c(),_e(a,1),a.m(r.parentNode,r))},i:function(l){o||(_e(s),_e(a),o=!0)},o:function(l){Ee(s),Ee(a),o=!1},d:function(l){l&&tt(n),t[50](null),l&&tt(e),s&&s.d(l),l&&tt(i),a&&a.d(l),l&&tt(r)}}}function upe(t){var n,e,i,r,o,s=od(t[10]||"",2e4)+"";return n=new sh({props:{icon:jg,type:"error",message:"The JSON document is larger than ".concat(rk(10485760,1024),", ")+"and may crash your browser when loading it in text mode. Actual size: ".concat(rk(t[10].length,1024),"."),actions:[{text:"Open anyway",title:"Open the document in text mode. This may freeze or crash your browser.",onClick:t[23]},{text:"Open in tree mode",title:"Open the document in tree mode. Tree mode can handle large documents.",onClick:t[24]},{text:"Cancel",title:"Cancel opening this large document.",onClick:t[25]}]}}),{c:function(){$t(n.$$.fragment),e=xt(),i=Be("div"),r=xn(s),ne(i,"class","jse-contents jse-preview svelte-1yqirn0")},m:function(a,l){Nt(n,a,l),nt(a,e,l),nt(a,i,l),Ie(i,r),o=!0},p:function(a,l){var c={};1024&l[0]&&(c.message="The JSON document is larger than ".concat(rk(10485760,1024),", ")+"and may crash your browser when loading it in text mode. Actual size: ".concat(rk(a[10].length,1024),".")),n.$set(c),(!o||1024&l[0])&&s!==(s=od(a[10]||"",2e4)+"")&&gi(r,s)},i:function(a){o||(_e(n.$$.fragment,a),o=!0)},o:function(a){Ee(n.$$.fragment,a),o=!1},d:function(a){Rt(n,a),a&&tt(e),a&&tt(i)}}}function hpe(t){var n,e,i,r,o,s=!t[13]&&t[8]&&hoe(t[10]),a=t[2]&&dpe(t),l=t[13]&&fpe(t),c=s&&ppe(t);return r=new sN({props:{validationErrors:t[9],selectError:t[26]}}),{c:function(){a&&a.c(),n=xt(),l&&l.c(),e=xt(),c&&c.c(),i=xt(),$t(r.$$.fragment)},m:function(u,h){a&&a.m(u,h),nt(u,n,h),l&&l.m(u,h),nt(u,e,h),c&&c.m(u,h),nt(u,i,h),Nt(r,u,h),o=!0},p:function(u,h){u[2]?a?(a.p(u,h),4&h[0]&&_e(a,1)):((a=dpe(u)).c(),_e(a,1),a.m(n.parentNode,n)):a&&(cn(),Ee(a,1,1,function(){a=null}),un()),u[13]?l?(l.p(u,h),8192&h[0]&&_e(l,1)):((l=fpe(u)).c(),_e(l,1),l.m(e.parentNode,e)):l&&(cn(),Ee(l,1,1,function(){l=null}),un()),9472&h[0]&&(s=!u[13]&&u[8]&&hoe(u[10])),s?c?(c.p(u,h),9472&h[0]&&_e(c,1)):((c=ppe(u)).c(),_e(c,1),c.m(i.parentNode,i)):c&&(cn(),Ee(c,1,1,function(){c=null}),un());var d={};512&h[0]&&(d.validationErrors=u[9]),r.$set(d)},i:function(u){o||(_e(a),_e(l),_e(c),_e(r.$$.fragment,u),o=!0)},o:function(u){Ee(a),Ee(l),Ee(c),Ee(r.$$.fragment,u),o=!1},d:function(u){a&&a.d(u),u&&tt(n),l&&l.d(u),u&&tt(e),c&&c.d(u),u&&tt(i),Rt(r,u)}}}function dpe(t){var n,e;return n=new Ptt({props:{editorState:t[6]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};64&r[0]&&(o.editorState=i[6]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function fpe(t){var n,e;return n=new sh({props:{type:"error",icon:jg,message:t[13].message,actions:t[14],onClick:t[28]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};8192&r[0]&&(o.message=i[13].message),16384&r[0]&&(o.actions=i[14]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function ppe(t){var n,e;return n=new sh({props:{type:"success",message:"Do you want to format the JSON?",actions:[{icon:fN,text:"Format",title:"Format JSON: add proper indentation and new lines (Ctrl+I)",onClick:t[16]},{icon:d0,text:"No thanks",title:"Close this message",onClick:t[51]}]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};256&r[0]&&(o.actions=[{icon:fN,text:"Format",title:"Format JSON: add proper indentation and new lines (Ctrl+I)",onClick:i[16]},{icon:d0,text:"No thanks",title:"Close this message",onClick:i[51]}]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function Ytt(t){var n,e,i,r,o,s=t[1]&&cpe(w$(t)),l=[];function c(u,h){return 0===h?(p=(f=u.slice())[27](f[10],f[7]),f[92]=p,f):u;var f,p}return r=l[i=t[15]?1:0]=[Xtt,qtt][i](c(t,i)),{c:function(){n=Be("div"),s&&s.c(),e=xt(),r.c(),ne(n,"class","jse-text-mode svelte-1yqirn0"),en(n,"no-main-menu",!t[1])},m:function(u,h){nt(u,n,h),s&&s.m(n,null),Ie(n,e),l[i].m(n,null),t[52](n),o=!0},p:function(u,h){u[1]?s?(s.p(w$(u),h),2&h[0]&&_e(s,1)):((s=cpe(w$(u))).c(),_e(s,1),s.m(n,e)):s&&(cn(),Ee(s,1,1,function(){s=null}),un()),r.p(c(u,i),h),(!o||2&h[0])&&en(n,"no-main-menu",!u[1])},i:function(u){o||(_e(s),_e(r),o=!0)},o:function(u){Ee(s),Ee(r),o=!1},d:function(u){u&&tt(n),s&&s.d(),l[i].d(),t[52](null)}}}function gpe(t){return{from:t.from||0,to:t.to||0,message:t.message||"",actions:t.actions,severity:t.severity}}function Ktt(t,n,e){var i,r,o,s,a,l,c=n.readOnly,u=n.mainMenuBar,h=n.statusBar,d=n.externalContent,f=n.indentation,p=n.tabSize,m=n.escapeUnicodeCharacters,w=n.parser,C=n.validator,k=n.validationParser,E=n.onChange,L=n.onChangeMode,B=n.onError,G=n.onFocus,oe=n.onBlur,fe=n.onRenderMenu,re=n.onSortModal,ce=n.onTransformModal,ue=Pa("jsoneditor:TextMode"),pe={key:"Mod-i",run:ke,shift:Qe,preventDefault:!0},De=typeof window>"u";ue("isSSR:",De);var ie=!1,ge=!0,we=[],le=new dp,Fe=new dp,z=new dp,Q=new dp,Z=new dp,me=new dp,ae=d,Te=I2(ae,f,w),Oe=m;Zc(Dr(Rn().mark(function Pt(){return Rn().wrap(function(ei){for(;;)switch(ei.prev=ei.next){case 0:if(!De){ei.next=2;break}return ei.abrupt("return");case 2:try{s=Mi({target:o,initialText:es(Te,ie)?"":i.escapeValue(Te),readOnly:c,indentation:f})}catch(Ai){console.error(Ai)}case 3:case"end":return ei.stop()}},Pt)}))),Gu(function(){s&&(ue("Destroy CodeMirror editor"),s.destroy())});var Ze=!1,Ve=!1,wt=ep(),ct=ep();function Ct(){s&&(ue("focus"),s.focus())}var se=!1;function Se(Pt){ue("patch",Pt);var ei=w.parse(Te),Ai=Zu(ei,Pt),Vi=IQ(ei,Pt);return ro({text:w.stringify(Ai,null,f)}),{json:Ai,previousJson:ei,undo:Vi,redo:Pt}}function ke(){if(ue("format"),c)return!1;try{var Pt=w.parse(Te);return ro({text:w.stringify(Pt,null,f)}),e(8,ge=!0),!0}catch(ei){B(ei)}return!1}function Qe(){if(ue("compact"),c)return!1;try{var Pt=w.parse(Te);return ro({text:w.stringify(Pt)}),e(8,ge=!1),!0}catch(ei){B(ei)}return!1}function gt(){if(ue("repair"),!c)try{ro({text:Yh(Te)}),e(49,Zn="valid"),e(13,Ut=null)}catch(Pt){B(Pt)}}function rt(Pt){var ei=Pt.id,Ai=Pt.rootPath,Vi=Pt.onTransform,Zr=Pt.onClose;try{var yo=w.parse(Te);se=!0,ce({id:ei||ct,json:yo,rootPath:Ai||[],onTransform:function(Mo){Vi?Vi({operations:Mo,json:yo,transformedJson:Zu(yo,Mo)}):(ue("onTransform",Mo),Se(Mo))},onClose:function(){se=!1,Ct(),Zr&&Zr()}})}catch(Mo){B(Mo)}}function zt(Pt,ei){ue("setSelection",{anchor:Pt,head:ei}),s&&s.dispatch(s.state.update({selection:{anchor:Pt,head:ei},scrollIntoView:!0}))}function Qt(Pt,ei){if(1===ei.state.selection.ranges.length){var Ai=ei.state.selection.ranges[0],Vi=Te.slice(Ai.from,Ai.to);if("{"===Vi||"["===Vi){var Zr=FS.parse(Te),yo=Object.keys(Zr.pointers).find(function(da){var Vr;return(null===(Vr=Zr.pointers[da].value)||void 0===Vr?void 0:Vr.pos)===Ai.from}),Mo=Zr.pointers[yo];yo&&Mo&&Mo.value&&Mo.valueEnd&&(ue("pointer found, selecting inner contents of path:",yo,Mo),zt(Mo.value.pos+1,Mo.valueEnd.pos-1))}}}function Pn(){return function(Pt){return Qg.of({source:Pt,config:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}})}(Ii,{delay:300})}function Mi(Pt){var ei=Pt.target,Ai=Pt.initialText,Vi=Pt.readOnly,Zr=Pt.indentation;ue("Create CodeMirror editor",{readOnly:Vi,indentation:Zr});var yo=Qo.create({doc:Ai,extensions:[Tk.of([Det,pe]),le.of(Pn()),wtt(),xtt,jtt,Wtt({hideFirstIndent:!0}),pi.domEventHandlers({dblclick:Qt}),pi.updateListener.of(function(Mo){e(6,l=Mo.state),Mo.docChanged&&er()}),new DZe(Ott),Let({top:!0}),z.of(Qo.readOnly.of(Vi)),Fe.of(pi.editable.of(!Vi)),Z.of(Qo.tabSize.of(p)),Q.of(qr(Zr)),me.of(pi.theme({},{dark:Sn()})),pi.lineWrapping]});return s=new pi({state:yo,parent:ei})}function Sn(){return!!o&&getComputedStyle(o).getPropertyValue("--jse-theme").includes("dark")}function nr(Pt){var ei=Pt.path,Ai=Pt.message,Vi=function(Zr,yo){try{var Mo=FS.parse(Zr),da=An(yo),Vr=Mo.pointers[da];if(Vr)return{path:yo,line:Vr.key?Vr.key.line:Vr.value?Vr.value.line:0,column:Vr.key?Vr.key.column:Vr.value?Vr.value.column:0,from:Vr.key?Vr.key.pos:Vr.value?Vr.value.pos:0,to:Vr.keyEnd?Vr.keyEnd.pos:Vr.valueEnd?Vr.valueEnd.pos:0}}catch(fa){console.error(fa)}return null}(i.escapeValue(Te),ei);return{path:ei,line:Vi.line,column:Vi.column,from:Vi.from,to:Vi.to,message:Ai,severity:Xh.warning,actions:[]}}function On(Pt,ei){var Zr=Pt.position;return{path:[],line:Pt.line,column:Pt.column,from:Zr,to:Zr,severity:Xh.error,message:Pt.message,actions:ei&&!c?[{name:"Auto repair",apply:function(){return gt()}}]:null}}function ro(Pt){var ei=arguments.length>1&&void 0!==arguments[1]&&arguments[1],Ai=I2(Pt,f,w),Vi=!Mr(Pt,ae),Zr=ae;ae=Pt,e(10,Te=Ai),ue("setCodeMirrorContent",{isChanged:Vi,forceUpdate:ei}),s&&(Vi||ei)&&(es(Te,ie)||s.dispatch({changes:{from:0,to:s.state.doc.length,insert:i.escapeValue(Te)}}),oo(),Vi&&vo(ae,Zr))}function uo(){if(s){var Pt=s?i.unescapeValue(s.state.doc.toString()):"",ei=Pt!==Te;if(ue("onChangeCodeMirrorValue",{isChanged:ei}),ei){var Ai=ae;e(10,Te=Pt),ae={text:Te},oo(),vo(ae,Ai)}}}function qr(Pt){return zk.of("number"==typeof Pt?" ".repeat(Pt):Pt)}function oo(){e(11,Ze=fet(s.state)>0),e(12,Ve=pet(s.state)>0),ue({canUndo:Ze,canRedo:Ve})}oN({onMount:Zc,onDestroy:Gu,getWindow:function(){return Qv(a)},hasFocus:function(){return se&&document.hasFocus()||L2(a)},onFocus:G,onBlur:oe});var er=Uv(uo,300);function vo(Pt,ei){E&&E(Pt,ei,{contentErrors:ir(),patchResult:null})}function es(Pt,ei){return!!Pt&&Pt.length>10485760&&!ei}var Zn="valid",Ut=null;function Ii(){if(es(Te,ie))return[];var Pt=ir();return kae(Pt)?[gpe(On(Pt.parseError,Pt.isRepairable))]:function Jqe(t){return Ko(t)&&Array.isArray(t.validationErrors)}(Pt)?Pt.validationErrors.map(nr).map(gpe):[]}function ir(){ue("validate:start"),er.flush();var Pt=Xr(i.escapeValue(Te),C,w,k);return kae(Pt)?(e(49,Zn=Pt.isRepairable?"repairable":"invalid"),e(13,Ut=Pt.parseError),e(9,we=[])):(e(49,Zn="valid"),e(13,Ut=null),e(9,we=Pt?.validationErrors||[])),ue("validate:end"),Pt}var Xr=Jb(Nqe);function Ho(){Ut&&function(Pt){ue("select parse error",Pt);var ei=On(Pt,!1);zt(ei.from,ei.to),Ct()}(Ut)}var gs={icon:xGe,text:"Show me",title:"Move to the parse error location",onClick:Ho};return t.$$set=function(Pt){"readOnly"in Pt&&e(0,c=Pt.readOnly),"mainMenuBar"in Pt&&e(1,u=Pt.mainMenuBar),"statusBar"in Pt&&e(2,h=Pt.statusBar),"externalContent"in Pt&&e(29,d=Pt.externalContent),"indentation"in Pt&&e(30,f=Pt.indentation),"tabSize"in Pt&&e(31,p=Pt.tabSize),"escapeUnicodeCharacters"in Pt&&e(32,m=Pt.escapeUnicodeCharacters),"parser"in Pt&&e(33,w=Pt.parser),"validator"in Pt&&e(34,C=Pt.validator),"validationParser"in Pt&&e(35,k=Pt.validationParser),"onChange"in Pt&&e(36,E=Pt.onChange),"onChangeMode"in Pt&&e(37,L=Pt.onChangeMode),"onError"in Pt&&e(38,B=Pt.onError),"onFocus"in Pt&&e(39,G=Pt.onFocus),"onBlur"in Pt&&e(40,oe=Pt.onBlur),"onRenderMenu"in Pt&&e(3,fe=Pt.onRenderMenu),"onSortModal"in Pt&&e(41,re=Pt.onSortModal),"onTransformModal"in Pt&&e(42,ce=Pt.onTransformModal)},t.$$.update=function(){var Pt;2&t.$$.dirty[1]&&(i=kO({escapeControlCharacters:!1,escapeUnicodeCharacters:m})),536870912&t.$$.dirty[0]&&ro(d),8&t.$$.dirty[1]&&(ue("updateLinter",C),s&&s.dispatch({effects:le.reconfigure(Pn())})),1073741824&t.$$.dirty[0]&&(Pt=f,s&&(ue("updateIndentation",Pt),s.dispatch({effects:Q.reconfigure(qr(Pt))}))),1&t.$$.dirty[1]&&function(Pt){s&&(ue("updateTabSize",Pt),s.dispatch({effects:Z.reconfigure(Qo.tabSize.of(Pt))}))}(p),1&t.$$.dirty[0]&&function(Pt){s&&(ue("updateReadOnly",Pt),s.dispatch({effects:[z.reconfigure(Qo.readOnly.of(Pt)),Fe.reconfigure(pi.editable.of(!Pt))]}))}(c),131074&t.$$.dirty[1]&&Oe!==m&&(e(48,Oe=m),ue("forceUpdateText",{escapeUnicodeCharacters:m}),s&&s.dispatch({changes:{from:0,to:s.state.doc.length,insert:i.escapeValue(Te)}})),1&t.$$.dirty[0]|262144&t.$$.dirty[1]&&e(14,r="repairable"!==Zn||c?[gs]:[{icon:H2,text:"Auto repair",title:"Automatically repair JSON",onClick:gt},gs])},[c,u,h,fe,o,a,l,ie,ge,we,Te,Ze,Ve,Ut,r,De,ke,Qe,function(){var Pt;if(!c)try{var ei=w.parse(Te);se=!0,re({id:wt,json:ei,rootPath:[],onSort:(Pt=Dr(Rn().mark(function Ai(Vi){var Zr;return Rn().wrap(function(yo){for(;;)switch(yo.prev=yo.next){case 0:ue("onSort",Zr=Vi.operations),Se(Zr);case 3:case"end":return yo.stop()}},Ai)})),function(Ai){return Pt.apply(this,arguments)}),onClose:function(){se=!1,Ct()}})}catch(Ai){B(Ai)}},function(){c||rt({rootPath:[]})},function(){s&&(o&&o.querySelector(".cm-search")?l$(s):a$(s))},function(){c||s&&(YR(s),Ct())},function(){c||s&&(Yk(s),Ct())},function(){e(7,ie=!0),ro(d,!0)},function(){L(Za.tree)},function(){uo()},function(Pt){ue("select validation error",Pt);var ei=nr(Pt);zt(ei.from,ei.to),Ct()},es,Ho,d,f,p,m,w,C,k,E,L,B,G,oe,re,ce,Ct,Se,rt,function(){ue("refresh"),oc().then(function(){if(s){var Pt=Sn();ue("updateTheme",{dark:Pt}),s.dispatch({effects:[me.reconfigure(pi.theme({},{dark:Pt}))]})}})},ir,Oe,Zn,function(Pt){dr[Pt?"unshift":"push"](function(){e(4,o=Pt)})},function(){return e(8,ge=!1)},function(Pt){dr[Pt?"unshift":"push"](function(){e(5,a=Pt)})}]}var Jtt=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,Ktt,Ytt,Zi,{readOnly:0,mainMenuBar:1,statusBar:2,externalContent:29,indentation:30,tabSize:31,escapeUnicodeCharacters:32,parser:33,validator:34,validationParser:35,onChange:36,onChangeMode:37,onError:38,onFocus:39,onBlur:40,onRenderMenu:3,onSortModal:41,onTransformModal:42,focus:43,patch:44,openTransformModal:45,refresh:46,validate:47},Gtt,[-1,-1,-1,-1]),r}return Xe(e,[{key:"focus",get:function(){return this.$$.ctx[43]}},{key:"patch",get:function(){return this.$$.ctx[44]}},{key:"openTransformModal",get:function(){return this.$$.ctx[45]}},{key:"refresh",get:function(){return this.$$.ctx[46]}},{key:"validate",get:function(){return this.$$.ctx[47]}}]),e}();function Qtt(t){var n,e;return n=new ek({props:{items:t[0]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};1&di(r,1)[0]&&(o.items=i[0]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function Ztt(t,n,e){var i,r,o=n.json,s=n.readOnly,a=n.historyState,l=n.onSort,c=n.onTransform,u=n.onContextMenu,h=n.onUndo,d=n.onRedo,f=n.onRenderMenu;return t.$$set=function(p){"json"in p&&e(1,o=p.json),"readOnly"in p&&e(2,s=p.readOnly),"historyState"in p&&e(3,a=p.historyState),"onSort"in p&&e(4,l=p.onSort),"onTransform"in p&&e(5,c=p.onTransform),"onContextMenu"in p&&e(6,u=p.onContextMenu),"onUndo"in p&&e(7,h=p.onUndo),"onRedo"in p&&e(8,d=p.onRedo),"onRenderMenu"in p&&e(9,f=p.onRenderMenu)},t.$$.update=function(){510&t.$$.dirty&&e(10,i=s?[{type:"space"}]:[{type:"button",icon:z2,title:"Sort",className:"jse-sort",onClick:l,disabled:s||void 0===o},{type:"button",icon:B2,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:c,disabled:s||void 0===o},{type:"button",icon:yse,title:bF,className:"jse-contextmenu",onClick:u},{type:"separator"},{type:"button",icon:XO,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:h,disabled:!a.canUndo},{type:"button",icon:qO,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:d,disabled:!a.canRedo},{type:"space"}]),1536&t.$$.dirty&&e(0,r=f(i)||i)},[r,o,s,a,l,c,u,h,d,f,i]}var ent=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,Ztt,Qtt,Zi,{json:1,readOnly:2,historyState:3,onSort:4,onTransform:5,onContextMenu:6,onUndo:7,onRedo:8,onRenderMenu:9}),r}return Xe(e)}();function mpe(t,n,e){var i=t.slice();return i[9]=n[e],i}function vpe(t){var n,e,i,r=[t[9].props],o=t[9].component;function s(a){for(var l={},c=0;c0){for(var k=[w],E=wr(C);E.length>0&&!tu(m,E);)k.unshift({op:"add",path:An(E),value:{}}),E=wr(E);return k}}return w})),f);var p,m}return t.$$set=function(d){"path"in d&&e(1,o=d.path),"value"in d&&e(2,s=d.value),"context"in d&&e(3,a=d.context),"enforceString"in d&&e(4,l=d.enforceString),"selection"in d&&e(5,c=d.selection),"searchResultItems"in d&&e(6,u=d.searchResultItems)},t.$$.update=function(){40&t.$$.dirty&&e(7,i=!a.readOnly&&xr(c)&&ip(c)),254&t.$$.dirty&&e(0,r=a.onRenderValue({path:o,value:s,readOnly:a.readOnly,enforceString:l,isEditing:i,parser:a.parser,normalization:a.normalization,selection:c,searchResultItems:u,onPatch:h,onPasteJson:a.onPasteJson,onSelect:a.onSelect,onFind:a.onFind,findNextInside:a.findNextInside,focus:a.focus}))},[r,o,s,a,l,c,u,i]}var int=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,nnt,tnt,Zi,{path:1,value:2,context:3,enforceString:4,selection:5,searchResultItems:6}),r}return Xe(e)}();function rnt(t){Ni(t,"svelte-l28mqd",".jse-inline-value.svelte-l28mqd{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);line-height:var(--jse-line-height);border:none;padding:0 calc(0.5 * var(--jse-padding));background:transparent;color:inherit;cursor:pointer}.jse-inline-value.svelte-l28mqd:hover{background:var(--jse-hover-background-color)}.jse-inline-value.jse-selected.svelte-l28mqd{background:var(--jse-selection-background-color)}")}function ont(t){var n,e,i,r,o=od(t[2].stringify(t[1]),50)+"";return{c:function(){n=Be("button"),e=xn(o),ne(n,"type","button"),ne(n,"class","jse-inline-value svelte-l28mqd"),en(n,"jse-selected",t[3])},m:function(s,a){nt(s,n,a),Ie(n,e),i||(r=rn(n,"dblclick",t[6]),i=!0)},p:function(s,a){var l=di(a,1)[0];6&l&&o!==(o=od(s[2].stringify(s[1]),50)+"")&&gi(e,o),8&l&&en(n,"jse-selected",s[3])},i:an,o:an,d:function(s){s&&tt(n),i=!1,r()}}}function snt(t,n,e){var i,r=n.path,o=n.value,s=n.parser,a=n.isSelected,l=n.onEdit;return t.$$set=function(c){"path"in c&&e(0,r=c.path),"value"in c&&e(1,o=c.value),"parser"in c&&e(2,s=c.parser),"isSelected"in c&&e(3,a=c.isSelected),"onEdit"in c&&e(4,l=c.onEdit)},t.$$.update=function(){2&t.$$.dirty&&e(5,i=Ao(o)?o.length:Object.keys(o).length)},[r,o,s,a,l,i,function(){return l(r)}]}var ant=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,snt,ont,Zi,{path:0,value:1,parser:2,isSelected:3,onEdit:4},rnt),r}return Xe(e)}();function lnt(t){Ni(t,"svelte-h4fort",".jse-column-header.svelte-h4fort.svelte-h4fort{background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;display:flex;gap:var(--jse-padding);padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding));width:100%}.jse-column-header.svelte-h4fort.svelte-h4fort:hover{background:var(--jse-table-header-background-highlight)}.jse-column-header.svelte-h4fort.svelte-h4fort:not(.jse-column-header.jse-readonly){cursor:pointer}.jse-column-header.svelte-h4fort span.jse-column-sort-icon.svelte-h4fort{height:1em}")}function ype(t){var n,e,i,r;return e=new Ir({props:{data:t[1]===eu.asc?hu:vse}}),{c:function(){n=Be("span"),$t(e.$$.fragment),ne(n,"class","jse-column-sort-icon svelte-h4fort"),ne(n,"title",i="Currently sorted in ".concat(t[2]," order"))},m:function(o,s){nt(o,n,s),Nt(e,n,null),r=!0},p:function(o,s){var a={};2&s&&(a.data=o[1]===eu.asc?hu:vse),e.$set(a),(!r||4&s&&i!==(i="Currently sorted in ".concat(o[2]," order")))&&ne(n,"title",i)},i:function(o){r||(_e(e.$$.fragment,o),r=!0)},o:function(o){Ee(e.$$.fragment,o),r=!1},d:function(o){o&&tt(n),Rt(e)}}}function cnt(t){var n,e,i,r,o,s,a,l,c=od(t[3],50)+"",u=void 0!==t[1]&&ype(t);return{c:function(){n=Be("button"),e=Be("span"),i=xn(c),r=xt(),u&&u.c(),ne(e,"class","jse-column-name"),ne(n,"type","button"),ne(n,"class","jse-column-header svelte-h4fort"),ne(n,"title",o=t[0]?t[3]:t[3]+" (Click to sort the data by this column)"),en(n,"jse-readonly",t[0])},m:function(h,d){nt(h,n,d),Ie(n,e),Ie(e,i),Ie(n,r),u&&u.m(n,null),s=!0,a||(l=rn(n,"click",t[4]),a=!0)},p:function(h,d){var f=di(d,1)[0];(!s||8&f)&&c!==(c=od(h[3],50)+"")&&gi(i,c),void 0!==h[1]?u?(u.p(h,f),2&f&&_e(u,1)):((u=ype(h)).c(),_e(u,1),u.m(n,null)):u&&(cn(),Ee(u,1,1,function(){u=null}),un()),(!s||9&f&&o!==(o=h[0]?h[3]:h[3]+" (Click to sort the data by this column)"))&&ne(n,"title",o),(!s||1&f)&&en(n,"jse-readonly",h[0])},i:function(h){s||(_e(u),s=!0)},o:function(h){Ee(u),s=!1},d:function(h){h&&tt(n),u&&u.d(),a=!1,l()}}}function unt(t,n,e){var i,r,o,s=n.path,a=n.sortedColumn,l=n.readOnly,c=n.onSort;return t.$$set=function(u){"path"in u&&e(5,s=u.path),"sortedColumn"in u&&e(6,a=u.sortedColumn),"readOnly"in u&&e(0,l=u.readOnly),"onSort"in u&&e(7,c=u.onSort)},t.$$.update=function(){var u;32&t.$$.dirty&&e(3,i=fr(s)?"values":lu(lc(s))),96&t.$$.dirty&&e(1,r=Mr(s,null===(u=a)||void 0===u?void 0:u.path)?a.sortDirection:void 0),2&t.$$.dirty&&e(2,o=V7e[r])},[l,r,o,i,function(){l||c({path:s,sortDirection:r===eu.asc?eu.desc:eu.asc})},s,a,c]}var wD,xD,hnt=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,unt,cnt,Zi,{path:5,sortedColumn:6,readOnly:0,onSort:7},lnt),r}return Xe(e)}();function bpe(t,n){return wD||(xD=new WeakMap,wD=new ResizeObserver(function(e){var i,r=ot(e);try{for(r.s();!(i=r.n()).done;){var o=i.value,s=xD.get(o.target);s&&s(o.target)}}catch(a){r.e(a)}finally{r.f()}})),xD.set(t,n),wD.observe(t),{destroy:function(){xD.delete(t),wD.unobserve(t)}}}function dnt(t){var n,e;return n=new Yae({props:{items:t[1],tip:t[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};2&r[0]&&(o.items=i[1]),1&r[0]&&(o.tip=i[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function fnt(t,n,e){var i,r,o,s,a,l,c,u,h,d,f,p=n.json,m=n.documentState,w=n.parser,C=n.showTip,k=n.onCloseContextMenu,E=n.onEditValue,L=n.onEditRow,B=n.onToggleEnforceString,G=n.onCut,oe=n.onCopy,fe=n.onPaste,re=n.onRemove,ce=n.onDuplicateRow,ue=n.onInsertBeforeRow,pe=n.onInsertAfterRow,De=n.onRemoveRow;function ie(){k(),E()}function ge(){k(),L()}function we(){k(),B()}function le(){k(),G(!0)}function Fe(){k(),G(!1)}function z(){k(),oe(!0)}function Q(){k(),oe(!1)}function Z(){k(),fe()}function me(){k(),re()}function ae(){k(),ce()}function Te(){k(),ue()}function Oe(){k(),pe()}function Ze(){k(),De()}return t.$$set=function(Ve){"json"in Ve&&e(2,p=Ve.json),"documentState"in Ve&&e(3,m=Ve.documentState),"parser"in Ve&&e(4,w=Ve.parser),"showTip"in Ve&&e(0,C=Ve.showTip),"onCloseContextMenu"in Ve&&e(5,k=Ve.onCloseContextMenu),"onEditValue"in Ve&&e(6,E=Ve.onEditValue),"onEditRow"in Ve&&e(7,L=Ve.onEditRow),"onToggleEnforceString"in Ve&&e(8,B=Ve.onToggleEnforceString),"onCut"in Ve&&e(9,G=Ve.onCut),"onCopy"in Ve&&e(10,oe=Ve.onCopy),"onPaste"in Ve&&e(11,fe=Ve.onPaste),"onRemove"in Ve&&e(12,re=Ve.onRemove),"onDuplicateRow"in Ve&&e(13,ce=Ve.onDuplicateRow),"onInsertBeforeRow"in Ve&&e(14,ue=Ve.onInsertBeforeRow),"onInsertAfterRow"in Ve&&e(15,pe=Ve.onInsertAfterRow),"onRemoveRow"in Ve&&e(16,De=Ve.onRemoveRow)},t.$$.update=function(){8&t.$$.dirty[0]&&e(22,i=m.selection),4&t.$$.dirty[0]&&e(25,r=void 0!==p),4194304&t.$$.dirty[0]&&e(17,o=null!=i),4194304&t.$$.dirty[0]&&e(26,s=null!=i&&fr(i.focusPath)),4194308&t.$$.dirty[0]&&e(23,a=void 0!==p&&null!=i?Un(p,i.focusPath):void 0),37748736&t.$$.dirty[0]&&e(18,l=r&&(io(i)||$s(i)||xr(i))),104857600&t.$$.dirty[0]&&r&&null!=i&&(io(i)||xr(i)),71303172&t.$$.dirty[0]&&void 0!==p&&null!=i&&Hb(i)&&!s&&Array.isArray(Un(p,wr(i.focusPath))),37748736&t.$$.dirty[0]&&e(21,c=r&&null!=i&&Hb(i)),10485760&t.$$.dirty[0]&&e(19,u=c&&!ss(a)),262144&t.$$.dirty[0]&&e(24,h=l),29491200&t.$$.dirty[0]&&h&&$g(i)&&Ko(a),29491200&t.$$.dirty[0]&&h&&$g(i)&&Array.isArray(a),29491200&t.$$.dirty[0]&&h&&$g(i)&&ss(a),12582936&t.$$.dirty[0]&&e(20,d=null!=i&&lf(a,m.enforceStringMap,An(i.focusPath),w)),4063232&t.$$.dirty[0]&&e(1,f=[{type:"separator"},{type:"row",items:[{type:"column",items:[{type:"label",text:"Table cell:"},{type:"dropdown-button",main:{type:"button",onClick:ie,icon:u0,text:"Edit",title:"Edit the value (Double-click on the value)",disabled:!c},width:"11em",items:[{type:"button",icon:u0,text:"Edit",title:"Edit the value (Double-click on the value)",onClick:ie,disabled:!c},{type:"button",icon:d?$b:Pb,text:"Enforce string",title:"Enforce keeping the value as string when it contains a numeric value",onClick:we,disabled:!u}]},{type:"dropdown-button",main:{type:"button",onClick:le,icon:c0,text:"Cut",title:"Cut selected contents, formatted with indentation (Ctrl+X)",disabled:!l},width:"10em",items:[{type:"button",icon:c0,text:"Cut formatted",title:"Cut selected contents, formatted with indentation (Ctrl+X)",onClick:le,disabled:!l},{type:"button",icon:c0,text:"Cut compacted",title:"Cut selected contents, without indentation (Ctrl+Shift+X)",onClick:Fe,disabled:!l}]},{type:"dropdown-button",main:{type:"button",onClick:z,icon:sp,text:"Copy",title:"Copy selected contents, formatted with indentation (Ctrl+C)",disabled:!l},width:"12em",items:[{type:"button",icon:sp,text:"Copy formatted",title:"Copy selected contents, formatted with indentation (Ctrl+C)",onClick:z,disabled:!l},{type:"button",icon:sp,text:"Copy compacted",title:"Copy selected contents, without indentation (Ctrl+Shift+C)",onClick:Q,disabled:!l}]},{type:"button",onClick:Z,icon:pse,text:"Paste",title:"Paste clipboard contents (Ctrl+V)",disabled:!o},{type:"button",onClick:me,icon:GO,text:"Remove",title:"Remove selected contents (Delete)",disabled:!l}]},{type:"column",items:[{type:"label",text:"Table row:"},{type:"button",onClick:ge,icon:u0,text:"Edit row",title:"Edit the current row",disabled:!l},{type:"button",onClick:ae,icon:wse,text:"Duplicate row",title:"Duplicate the current row",disabled:!o},{type:"button",onClick:Te,icon:h0,text:"Insert before",title:"Insert a row before the current row",disabled:!o},{type:"button",onClick:Oe,icon:h0,text:"Insert after",title:"Insert a row after the current row",disabled:!o},{type:"button",onClick:Ze,icon:GO,text:"Remove row",title:"Remove current row",disabled:!o}]}]}])},[C,f,p,m,w,k,E,L,B,G,oe,fe,re,ce,ue,pe,De,o,l,u,d,c,i,a,h,r,s]}var pnt=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,fnt,dnt,Zi,{json:2,documentState:3,parser:4,showTip:0,onCloseContextMenu:5,onEditValue:6,onEditRow:7,onToggleEnforceString:8,onCut:9,onCopy:10,onPaste:11,onRemove:12,onDuplicateRow:13,onInsertBeforeRow:14,onInsertAfterRow:15,onRemoveRow:16},null,[-1,-1]),r}return Xe(e)}();function gnt(t){Ni(t,"svelte-1te5h1h",".jse-table-mode-welcome.svelte-1te5h1h.svelte-1te5h1h{flex:1;display:flex;flex-direction:column;overflow:auto;align-items:center;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-table-mode-welcome.svelte-1te5h1h.svelte-1te5h1h:last-child{border-bottom:var(--jse-main-border)}.jse-table-mode-welcome.svelte-1te5h1h .jse-space.jse-before.svelte-1te5h1h{flex:1}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays.svelte-1te5h1h{display:flex;flex-direction:column;gap:var(--jse-padding);max-width:300px;margin:var(--jse-padding);font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays .jse-nested-arrays-info.svelte-1te5h1h{color:var(--jse-panel-color-readonly)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px;text-align:left}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h:hover{background:var(--jse-button-primary-background-highlight)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h:disabled{background:var(--jse-button-primary-background-disabled)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action .jse-nested-array-count.svelte-1te5h1h{opacity:0.5;white-space:nowrap}.jse-table-mode-welcome.svelte-1te5h1h .jse-space.jse-after.svelte-1te5h1h{flex:2}")}function _pe(t,n,e){var i=t.slice();i[12]=n[e];var r=Un(i[0],i[12]).length;return i[13]=r,i}function mnt(t){var n,e;return{c:function(){n=xn(t[5]),e=xn(" cannot be opened in table mode. You can open the document in tree mode instead.")},m:function(i,r){nt(i,n,r),nt(i,e,r)},p:function(i,r){32&r&&gi(n,i[5])},d:function(i){i&&tt(n),i&&tt(e)}}}function vnt(t){var n;return{c:function(){n=xn("An object cannot be opened in table mode. You can open a nested array instead, or open the\n document in tree mode.")},m:function(e,i){nt(e,n,i)},p:an,d:function(e){e&&tt(n)}}}function wpe(t){var n,e,i,r,o,s,a,l,c,u,h,d,f,p=lu(lc(t[12]))+"",m=t[13]+"",w=1!==t[13]?"items":"item";function C(){return t[10](t[12])}return{c:function(){n=Be("button"),e=xn(t[6]),i=xn(' "'),r=xn(p),o=xn('"\n '),s=Be("span"),a=xn("("),l=xn(m),c=xt(),u=xn(w),h=xn(")"),ne(s,"class","jse-nested-array-count svelte-1te5h1h"),ne(n,"type","button"),ne(n,"class","jse-nested-array-action svelte-1te5h1h")},m:function(k,E){nt(k,n,E),Ie(n,e),Ie(n,i),Ie(n,r),Ie(n,o),Ie(n,s),Ie(s,a),Ie(s,l),Ie(s,c),Ie(s,u),Ie(s,h),d||(f=rn(n,"click",C),d=!0)},p:function(k,E){t=k,64&E&&gi(e,t[6]),8&E&&p!==(p=lu(lc(t[12]))+"")&&gi(r,p),9&E&&m!==(m=t[13]+"")&&gi(l,m),9&E&&w!==(w=1!==t[13]?"items":"item")&&gi(u,w)},d:function(k){k&&tt(n),d=!1,f()}}}function ynt(t){var n,e,i,r,o,s,a,l,c,u,h,d,f,p,m,w,C;function k(fe,re){return fe[4]?vnt:mnt}for(var E=k(t),L=E(t),B=t[3],G=[],oe=0;oe1&&void 0!==arguments[1]?arguments[1]:2,m=[];return function w(C,k){Yo(C)&&k.length0}):[]),8&t.$$.dirty&&e(4,r=!fr(s)),657&t.$$.dirty&&e(5,o=r?"Object with nested arrays":void 0!==l||""!==a&&void 0!==a?Yo(l)?"An object":Ao(l)?"An empty array":"A ".concat(jF(l,u)):"An empty document")},[l,h,d,s,r,o,i,a,c,u,function(f){return h(f)},function(){return d(Za.tree)}]}var _nt=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,bnt,ynt,Zi,{text:7,json:0,readOnly:8,parser:9,openJSONEditorModal:1,onChangeMode:2},gnt),r}return Xe(e)}();function wnt(t){Ni(t,"svelte-h4fort",".jse-column-header.svelte-h4fort{background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;display:flex;gap:var(--jse-padding);padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding));width:100%}.jse-column-header.svelte-h4fort:hover{background:var(--jse-table-header-background-highlight)}.jse-column-header.svelte-h4fort:not(.jse-column-header.jse-readonly){cursor:pointer}")}function xnt(t){var n,e,i,r,o,s;return e=new Ir({props:{data:AGe}}),{c:function(){n=Be("button"),$t(e.$$.fragment),ne(n,"type","button"),ne(n,"class","jse-column-header svelte-h4fort"),ne(n,"title",i="The Columns are created by sampling ".concat(t[1]," items out of ").concat(t[0],". ")+"If you're missing a column, click here to sample all of the items instead of a subset. This is slower.")},m:function(a,l){nt(a,n,l),Nt(e,n,null),r=!0,o||(s=rn(n,"click",t[3]),o=!0)},p:function(a,l){var c=di(l,1)[0];(!r||3&c&&i!==(i="The Columns are created by sampling ".concat(a[1]," items out of ").concat(a[0],". ")+"If you're missing a column, click here to sample all of the items instead of a subset. This is slower."))&&ne(n,"title",i)},i:function(a){r||(_e(e.$$.fragment,a),r=!0)},o:function(a){Ee(e.$$.fragment,a),r=!1},d:function(a){a&&tt(n),Rt(e),o=!1,s()}}}function Cnt(t,n,e){var i=n.count,r=n.maxSampleCount,o=n.onRefresh;return t.$$set=function(s){"count"in s&&e(0,i=s.count),"maxSampleCount"in s&&e(1,r=s.maxSampleCount),"onRefresh"in s&&e(2,o=s.onRefresh)},[i,r,o,function(){return o()}]}var Snt=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,Cnt,xnt,Zi,{count:0,maxSampleCount:1,onRefresh:2},wnt),r}return Xe(e)}();function knt(t){Ni(t,"svelte-hs49xj",".jse-table-mode.svelte-hs49xj.svelte-hs49xj{flex:1;display:flex;flex-direction:column;position:relative;background:var(--jse-background-color);min-width:0;min-height:0;font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:var(--jse-text-color)}.jse-table-mode.no-main-menu.svelte-hs49xj.svelte-hs49xj{border-top:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-hidden-input-label.svelte-hs49xj{position:fixed;right:0;top:0;width:0;height:0}.jse-table-mode.svelte-hs49xj .jse-hidden-input-label .jse-hidden-input.svelte-hs49xj{width:0;height:0;padding:0;border:0;outline:none}.jse-table-mode.svelte-hs49xj .jse-contents.svelte-hs49xj{flex:1;align-items:start;flex-direction:column;display:flex;overflow:auto;overflow-anchor:none;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-contents.svelte-hs49xj:last-child{border-bottom:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main.svelte-hs49xj{border-collapse:collapse;border-spacing:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-start-section td.svelte-hs49xj,.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-hs49xj{margin:0;padding:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-hs49xj{padding-bottom:var(--jse-padding)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row.svelte-hs49xj:hover{background-color:var(--jse-table-row-odd-background)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj{padding:0 var(--jse-padding) 0 0;vertical-align:top;white-space:nowrap;height:var(--jse-line-height)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-hs49xj,.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-hs49xj{font-weight:normal;text-align:left;color:var(--jse-text-readonly);background:var(--jse-table-header-background)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-hs49xj{padding:0;position:sticky;top:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header .jse-table-root-error.svelte-hs49xj{padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding))}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-hs49xj{padding:0 var(--jse-padding) 0 calc(0.5 * var(--jse-padding))}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-selected-value.svelte-hs49xj>.jse-value{background:var(--jse-selection-background-color)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj div{display:inline-flex}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj div.jse-value{overflow-wrap:normal;white-space:nowrap;vertical-align:top;display:inline-block}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell .jse-context-menu-anchor.svelte-hs49xj{position:relative;vertical-align:top}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading.svelte-hs49xj{align-items:unset}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading .jse-loading-space.svelte-hs49xj{flex:1}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading .jse-loading.svelte-hs49xj{flex:2;text-align:center;color:var(--jse-panel-color-readonly);box-sizing:border-box;font-family:var(--jse-font-family);font-size:var(--jse-font-size)}")}function xpe(t,n,e){var i=t.slice();return i[120]=n[e],i[124]=e,i[121]=i[22].startIndex+i[124],i[122]=i[21].rows[i[121]],i}function Cpe(t,n,e){var i,r=t.slice();r[125]=n[e],r[131]=e;var o=[String(r[121])].concat(r[125]);r[126]=o;var s=Un(r[120],r[125]);r[127]=s;var a=r[46](r[126],r[10].selection);r[128]=a;var l=null===(i=r[122])||void 0===i?void 0:i.columns[r[131]];return r[129]=l,r}function Spe(t,n,e){var i=t.slice();return i[125]=n[e],i}function kpe(t){var n,e;return n=new ent({props:{json:t[7],readOnly:t[0],historyState:t[19],onSort:t[40],onTransform:t[41],onUndo:t[42],onRedo:t[43],onContextMenu:t[32],onRenderMenu:t[5]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};128&r[0]&&(o.json=i[7]),1&r[0]&&(o.readOnly=i[0]),524288&r[0]&&(o.historyState=i[19]),32&r[0]&&(o.onRenderMenu=i[5]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function Dnt(t){var n;return{c:function(){(n=Be("div")).innerHTML='
    \n
    loading...
    ',ne(n,"class","jse-contents jse-contents-loading svelte-hs49xj")},m:function(e,i){nt(e,n,i)},p:an,i:an,o:an,d:function(e){e&&tt(n)}}}function Tnt(t){var n,e,i,r,o,s,a,l,c,u=[Mnt,Ent,Ant],h=[];function d(f,p){return f[24]?0:f[16]&&void 0!==f[15]&&""!==f[15]?1:2}return r=d(t),o=h[r]=u[r](t),{c:function(){n=Be("label"),e=Be("input"),i=xt(),o.c(),s=Wr(),ne(e,"type","text"),e.readOnly="readonly",ne(e,"tabindex","-1"),ne(e,"class","jse-hidden-input svelte-hs49xj"),ne(n,"class","jse-hidden-input-label svelte-hs49xj")},m:function(f,p){nt(f,n,p),Ie(n,e),t[71](e),nt(f,i,p),h[r].m(f,p),nt(f,s,p),a=!0,l||(c=rn(e,"paste",t[37]),l=!0)},p:function(f,p){var m=r;(r=d(f))===m?h[r].p(f,p):(cn(),Ee(h[m],1,1,function(){h[m]=null}),un(),(o=h[r])?o.p(f,p):(o=h[r]=u[r](f)).c(),_e(o,1),o.m(s.parentNode,s))},i:function(f){a||(_e(o),a=!0)},o:function(f){Ee(o),a=!1},d:function(f){f&&tt(n),t[71](null),f&&tt(i),h[r].d(f),f&&tt(s),l=!1,c()}}}function Ant(t){var n,e;return n=new _nt({props:{text:t[15],json:t[7],readOnly:t[0],parser:t[2],openJSONEditorModal:t[39],onChangeMode:t[4]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};32768&r[0]&&(o.text=i[15]),128&r[0]&&(o.json=i[7]),1&r[0]&&(o.readOnly=i[0]),4&r[0]&&(o.parser=i[2]),16&r[0]&&(o.onChangeMode=i[4]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function Ent(t){var n,e,i,r;return n=new sh({props:{type:"error",message:"The loaded JSON document is invalid and could not be repaired automatically.",actions:t[0]?[]:[{icon:op,text:"Repair manually",onClick:t[35]}]}}),i=new ece({props:{text:t[15]||"",json:t[7],indentation:t[3],parser:t[2]}}),{c:function(){$t(n.$$.fragment),e=xt(),$t(i.$$.fragment)},m:function(o,s){Nt(n,o,s),nt(o,e,s),Nt(i,o,s),r=!0},p:function(o,s){var a={};1&s[0]&&(a.actions=o[0]?[]:[{icon:op,text:"Repair manually",onClick:o[35]}]),n.$set(a);var l={};32768&s[0]&&(l.text=o[15]||""),128&s[0]&&(l.json=o[7]),8&s[0]&&(l.indentation=o[3]),4&s[0]&&(l.parser=o[2]),i.$set(l)},i:function(o){r||(_e(n.$$.fragment,o),_e(i.$$.fragment,o),r=!0)},o:function(o){Ee(n.$$.fragment,o),Ee(i.$$.fragment,o),r=!1},d:function(o){Rt(n,o),o&&tt(e),Rt(i,o)}}}function Mnt(t){for(var n,e,i,r,o,s,a,l,c,u,h,d,f,p,m,w,C,k,E,L,B,G,oe,fe,re=!fr(null===(n=t[21])||void 0===n?void 0:n.root),ce=re&&Dpe(t),ue=t[9],pe=[],De=0;De"u";a("isSSR:",m);var w,C,k,E,L,B,G=n.readOnly,oe=n.externalContent,fe=n.mainMenuBar,re=n.escapeControlCharacters,ce=n.escapeUnicodeCharacters,ue=n.flattenColumns,pe=n.parser,De=n.parseMemoizeOne,ie=n.validator,ge=n.validationParser,we=n.indentation,le=n.onChange,Fe=n.onChangeMode,z=n.onRenderValue,Q=n.onRenderMenu,Z=n.onFocus,me=n.onBlur,ae=n.onSortModal,Te=n.onTransformModal,Oe=n.onJSONEditorModal;oN({onMount:Zc,onDestroy:Gu,getWindow:function(){return Qv(C)},hasFocus:function(){return Ct&&document.hasFocus()||L2(C)},onFocus:function(){Z&&Z()},onBlur:function(){me&&me()}});var Ze,Ve=void 0,wt=1e4,ct=[],Ct=!1,se={},Se=600,ke=0;function Qe(Ke){a("updateSelection",Ke);var qt="function"==typeof Ke?Ke(rt.selection):Ke;Mr(qt,rt.selection)||e(10,rt=_t(_t({},rt),{},{selection:qt}))}function gt(Ke){void 0!==rt.selection&&void 0!==Ke&&(rt.selection&&tu(Ke,rt.selection.anchorPath)&&tu(Ke,rt.selection.focusPath)||(a("clearing selection: path does not exist anymore",rt.selection),e(10,rt=_t(_t({},rt),{},{selection:r0(Ke,rt)}))))}var Qt,rt=N2(),zt=!1,Pn=dae({onChange:function(Ke){e(19,Mi=Ke)}}),Mi=Pn.getState();function nr(Ke){var qt=Ke.previousJson,hn=Ke.previousState,kn=Ke.previousText,Fn=Ke.previousTextIsRepaired;void 0===qt&&void 0===kn||(void 0!==L?Pn.add(void 0!==qt?{undo:{patch:[{op:"replace",path:"",value:qt}],state:Cl(hn),json:void 0,text:kn,textIsRepaired:Fn},redo:{patch:[{op:"replace",path:"",value:L}],state:Cl(rt),json:void 0,text:B,textIsRepaired:zt}}:{undo:{patch:void 0,json:void 0,text:kn,state:Cl(hn),textIsRepaired:Fn},redo:{patch:void 0,json:L,state:Cl(rt),text:B,textIsRepaired:zt}}):void 0!==qt&&Pn.add({undo:{patch:void 0,json:qt,state:Cl(hn),text:kn,textIsRepaired:Fn},redo:{patch:void 0,json:void 0,text:B,textIsRepaired:zt,state:Cl(rt)}}))}var On=[],ro=Jb(fae);function uo(Ke,qt,hn,kn){p0(function(){var Fn;try{Fn=ro(Ke,qt,hn,kn)}catch(ki){Fn=[{path:[],message:"Failed to validate: "+ki.message,severity:Xh.warning}]}Mr(Fn,On)||(a("validationErrors changed:",Fn),e(11,On=Fn))},function(Fn){return a("validationErrors updated in ".concat(Fn," ms"))})}function qr(){return a("validate"),Ve?{parseError:Ve,isRepairable:!1}:(uo(L,ie,pe,ge),fr(On)?null:{validationErrors:On})}function oo(Ke,qt){if(a("patch",Ke,qt),void 0===L)throw new Error("Cannot apply patch: no JSON");var hn={json:L},kn=L,Fn=rt,ki=zt,rr=rse(L,Ke),ai=Poe(L,rt,Ke).json,_i=function IKe(t,n,e){return n.some(function(i){return function(r,o,s){if(!r)return!1;if("replace"===o.op){var a=du(Qu(o.path),s),l=a.rowIndex,c=a.columnIndex,u=s.findIndex(function(h){return Mr(h,r.path)});if(-1!==l&&-1!==c&&c!==u)return!1}return!0}(t.sortedColumn,i,e)})?_t(_t({},t),{},{sortedColumn:void 0}):t}(rt,Ke,ct),mi="function"==typeof qt?qt(ai,_i):void 0;e(7,L=mi&&void 0!==mi.json?mi.json:ai);var Ur=mi&&void 0!==mi.state?mi.state:_i;e(10,rt=Ur),e(15,B=void 0),e(18,zt=!1),e(17,Ze=void 0),Pn.add({undo:{patch:rr,json:void 0,text:void 0,state:Cl(Fn),textIsRepaired:ki},redo:{patch:Ke,json:void 0,state:Cl(Ur),text:void 0,textIsRepaired:zt}});var eo={json:L,previousJson:kn,undo:rr,redo:Ke};return vo(hn,eo),eo}function er(Ke,qt){if(!G)return oo(Ke,qt)}function vo(Ke,qt){(void 0!==Ke.json||void 0!==Ke?.text)&&(void 0!==B?le({text:B,json:void 0},Ke,{contentErrors:qr(),patchResult:qt}):void 0!==L&&le({text:void 0,json:L},Ke,{contentErrors:qr(),patchResult:qt}))}function es(Ke){a("handleFind",Ke)}function Zn(Ke){a("pasted json as text",Ke),e(17,Ze=Ke)}function Ut(Ke){var qt=parseInt(Ke[0]),hn=[String(qt+1)].concat(Ti(Ke.slice(1)));return tu(L,hn)?Br(hn,!1):Br(Ke,!1)}function Ii(){E&&(E.focus(),E.select())}function ir(){rt.selection||Qe(function(){if(Ao(L)&&!fr(L)&&!fr(ct))return Br(["0"].concat(Ti(ct[0])),!1)}())}function Xr(Ke){var qt=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],hn=vN(Ke,ct,se,18),kn=hn-ke,Fn=Pt(Ke);a("scrollTo",{path:Ke,top:hn,scrollTop:ke,elem:Fn});var ki=k.getBoundingClientRect();if(Fn&&!qt){var rr=Fn.getBoundingClientRect();if(rr.bottom>ki.top&&rr.tophn.right&&e(13,k.scrollLeft+=kn.right-hn.right,k),kn.left(ai=ke+ki.height-18)&&e(13,k.scrollTop+=Fn-ai,k),kn0&&void 0!==hn[0])||hn[0],void 0!==L){kn.next=3;break}return kn.abrupt("return");case 3:return kn.next=5,Kle({json:L,documentState:rt,indentation:qt?we:void 0,parser:pe});case 5:case"end":return kn.stop()}},Ke)})),cl.apply(this,arguments)}function Hc(){Qle({json:L,text:B,documentState:rt,keepSelection:!0,readOnly:G,onChange:le,onPatch:er})}function Ue(){!function FKe(t){var n=t.json,e=t.documentState,i=t.columns,o=t.onPatch;if(!t.readOnly&&void 0!==n&&e.selection&&a0(e.selection)){var s=du(e.selection.focusPath,i),a=s.rowIndex,l=s.columnIndex;Gl("duplicate row",{rowIndex:a});var c=[String(a)];o(tse(n,[c]),function(u,h){var d=Br(zg({rowIndex:a0?a-1:void 0,d=void 0!==h?Br(zg({rowIndex:h,columnIndex:l},i),!1):void 0;return Gl("remove row new selection",{rowIndex:a,newRowIndex:h,newSelection:d}),{state:_t(_t({},u),{},{selection:d})}})}}({json:L,documentState:rt,columns:ct,readOnly:G,onPatch:er})}function ut(){return(ut=Dr(Rn().mark(function Ke(qt){return Rn().wrap(function(hn){for(;;)switch(hn.prev=hn.next){case 0:return hn.next=2,Zle({char:qt,selectInside:!1,refJsonEditor:C,json:L,documentState:rt,readOnly:G,parser:pe,onPatch:er,onReplaceJson:Wn,onSelect:Qe});case 2:case"end":return hn.stop()}},Ke)}))).apply(this,arguments)}function Wn(Ke,qt){var hn=rt,kn=L,Fn=B,ki={json:L,text:B},rr=zt,ai=cu(L,rt,[],sd),_i="function"==typeof qt?qt(Ke,ai):void 0;e(7,L=_i&&void 0!==_i.json?_i.json:Ke),e(10,rt=_i&&void 0!==_i.state?_i.state:ai),e(15,B=void 0),e(18,zt=!1),gt(L),nr({previousJson:kn,previousState:hn,previousText:Fn,previousTextIsRepaired:rr}),vo(ki,null)}function Si(Ke,qt){a("handleChangeText");var hn=rt,kn=L,Fn=B,ki={json:L,text:B},rr=zt;try{e(7,L=De(Ke)),e(10,rt=cu(L,rt,[],sd)),e(15,B=void 0),e(18,zt=!1)}catch{try{e(7,L=De(Yh(Ke))),e(10,rt=cu(L,rt,[],sd)),e(15,B=Ke),e(18,zt=!0)}catch{e(7,L=void 0),e(10,rt=N2({json:L,expand:sd})),e(15,B=Ke),e(18,zt=!1)}}if("function"==typeof qt){var ai=qt(L,rt);e(7,L=ai&&ai.json?ai.json:L),e(10,rt=ai&&ai.state?ai.state:rt)}gt(L),nr({previousJson:kn,previousState:hn,previousText:Fn,previousTextIsRepaired:rr}),vo(ki,null)}function Li(Ke){var hn=Ke.rootPath,kn=Ke.onTransform,Fn=Ke.onClose;G||void 0===L||(Ct=!0,Te({id:Ke.id||p,json:L,rootPath:hn||[],onTransform:kn?function(ki){kn({operations:ki,json:L,transformedJson:Zu(L,ki)})}:function(ki){a("onTransform",hn,ki),er(ki)},onClose:function(){Ct=!1,Ii(),Fn&&Fn()}}))}function Fi(Ke){a("openJSONEditorModal",{path:Ke}),Ct=!0,Oe({content:{json:Un(L,Ke)},path:Ke,onPatch:Qt.onPatch,onClose:function(){Ct=!1,Ii()}})}function Yr(Ke,qt){l(Oae,{text:Ke,onParse:E2,onRepair:ooe,onApply:qt},_t(_t({},Cg),{},{styleWindow:{width:"600px",height:"500px"},styleContent:{padding:0,height:"100%"}}),{onClose:function(){return Ii()}})}function xo(){if(!G&&Pn.getState().canUndo){var Ke=Pn.undo();if(Ke){var qt={json:L,text:B};e(7,L=Ke.undo.patch?Zu(L,Ke.undo.patch):Ke.undo.json),e(10,rt=Ke.undo.state),e(15,B=Ke.undo.text),e(18,zt=Ke.undo.textIsRepaired),a("undo",{item:Ke,json:L}),vo(qt,{json:L,previousJson:qt.json,redo:Ke.undo.patch,undo:Ke.redo.patch}),Ii(),rt.selection&&Xr(rt.selection.focusPath,!1)}}}function ji(){if(!G&&Pn.getState().canRedo){var Ke=Pn.redo();if(Ke){var qt={json:L,text:B};e(7,L=Ke.redo.patch?Zu(L,Ke.redo.patch):Ke.redo.json),e(10,rt=Ke.redo.state),e(15,B=Ke.redo.text),e(18,zt=Ke.redo.textIsRepaired),a("redo",{item:Ke,json:L}),vo(qt,{json:L,previousJson:qt.json,redo:Ke.redo.patch,undo:Ke.undo.patch}),Ii(),rt.selection&&Xr(rt.selection.focusPath,!1)}}}function zr(Ke,qt){e(68,se[qt]=Ke.getBoundingClientRect().height,se)}return t.$$set=function(Ke){"readOnly"in Ke&&e(0,G=Ke.readOnly),"externalContent"in Ke&&e(47,oe=Ke.externalContent),"mainMenuBar"in Ke&&e(1,fe=Ke.mainMenuBar),"escapeControlCharacters"in Ke&&e(48,re=Ke.escapeControlCharacters),"escapeUnicodeCharacters"in Ke&&e(49,ce=Ke.escapeUnicodeCharacters),"flattenColumns"in Ke&&e(50,ue=Ke.flattenColumns),"parser"in Ke&&e(2,pe=Ke.parser),"parseMemoizeOne"in Ke&&e(51,De=Ke.parseMemoizeOne),"validator"in Ke&&e(52,ie=Ke.validator),"validationParser"in Ke&&e(53,ge=Ke.validationParser),"indentation"in Ke&&e(3,we=Ke.indentation),"onChange"in Ke&&e(54,le=Ke.onChange),"onChangeMode"in Ke&&e(4,Fe=Ke.onChangeMode),"onRenderValue"in Ke&&e(55,z=Ke.onRenderValue),"onRenderMenu"in Ke&&e(5,Q=Ke.onRenderMenu),"onFocus"in Ke&&e(56,Z=Ke.onFocus),"onBlur"in Ke&&e(57,me=Ke.onBlur),"onSortModal"in Ke&&e(58,ae=Ke.onSortModal),"onTransformModal"in Ke&&e(59,Te=Ke.onTransformModal),"onJSONEditorModal"in Ke&&e(60,Oe=Ke.onJSONEditorModal)},t.$$.update=function(){393216&t.$$.dirty[1]&&e(67,w=kO({escapeControlCharacters:re,escapeUnicodeCharacters:ce})),65536&t.$$.dirty[1]&&function Sn(Ke){var qt=L,hn=Jv(Ke)?Ke.text!==B:!Mr(qt,Ke.json);if(a("update external content",{isChanged:hn}),hn){var kn={json:L,text:B},Fn=L,ki=rt,rr=B,ai=zt;if(Jv(Ke))try{e(7,L=De(Ke.text)),e(15,B=Ke.text),e(18,zt=!1),e(16,Ve=void 0)}catch(_i){try{e(7,L=De(Yh(Ke.text))),e(15,B=Ke.text),e(18,zt=!0),e(16,Ve=void 0)}catch{e(7,L=void 0),e(15,B=oe.text),e(18,zt=!1),e(16,Ve=M2(B,_i.message||_i.toString()))}}else e(7,L=Ke.json),e(15,B=void 0),e(18,zt=!1),e(16,Ve=void 0);gt(L),rt.sortedColumn&&e(10,rt=_t(_t({},rt),{},{sortedColumn:void 0})),nr({previousJson:Fn,previousState:ki,previousText:rr,previousTextIsRepaired:ai}),vo(kn,null)}}(oe),896&t.$$.dirty[0]|524288&t.$$.dirty[1]&&e(9,ct=Ao(L)?function(Ke,qt){var hn,kn=new Set(qt.map(An)),Fn=new Set(Ke.map(An)),ki=ot(kn);try{for(ki.s();!(hn=ki.n()).done;){var rr=hn.value;Fn.has(rr)||kn.delete(rr)}}catch(Ur){ki.e(Ur)}finally{ki.f()}var ai,_i=ot(Fn);try{for(_i.s();!(ai=_i.n()).done;){var mi=ai.value;kn.has(mi)||kn.add(mi)}}catch(Ur){_i.e(Ur)}finally{_i.f()}return Ti(kn).map(Qu)}(function(Ke,qt){var hn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,kn={};Array.isArray(Ke)&&function $Ue(t,n,e){if(t.length1?(t.length-1)/(n-1):t.length,r=0;rwt),128&t.$$.dirty[0]|448&t.$$.dirty[2]&&e(22,o=function(Ke,qt,hn,kn,Fn){for(var ki=arguments.length>5&&void 0!==arguments[5]?arguments[5]:80,rr=Ao(hn)?hn.length:0,ai=function AKe(t,n){var e=Object.values(t);return fr(e)?n:e.reduce(function(r,o){return r+o})/e.length}(kn,Fn),_i=Ke-ki,mi=qt+2*ki,Ur=function(_h){return kn[_h]||Fn},eo=0,ts=0;ts<_i&&eo0&&(ts-=Ur(--eo));for(var Da=eo,bh=0;bh0?Br(zg({rowIndex:Ur.rowIndex,columnIndex:ts-1},_i),!1):mi;Qe(hn),gs(hn.focusPath)}if("ArrowRight"===qt&&(Ke.preventDefault(),ir(),rt.selection)){var kn=function(_i,mi){var Ur=du(mi.focusPath,_i),ts=Ur.columnIndex;return ts<_i.length-1?Br(zg({rowIndex:Ur.rowIndex,columnIndex:ts+1},_i),!1):mi}(ct,rt.selection);Qe(kn),gs(kn.focusPath)}if("ArrowUp"===qt&&(Ke.preventDefault(),ir(),rt.selection)){var Fn=function(_i,mi){var Ur=du(mi.focusPath,_i),eo=Ur.rowIndex;return eo>0?Br(zg({rowIndex:eo-1,columnIndex:Ur.columnIndex},_i),!1):mi}(ct,rt.selection);Qe(Fn),gs(Fn.focusPath)}if("ArrowDown"===qt&&(Ke.preventDefault(),ir(),rt.selection)){var ki=function(_i,mi,Ur){var eo=du(Ur.focusPath,mi),ts=eo.rowIndex;return ts<_i.length-1?Br(zg({rowIndex:ts+1,columnIndex:eo.columnIndex},mi),!1):Ur}(L,ct,rt.selection);Qe(ki),gs(ki.focusPath)}if("Enter"===qt&&rt.selection&&xr(rt.selection)){Ke.preventDefault();var rr=rt.selection.focusPath;ss(Un(L,rr))?Fi(rr):G||Qe(_t(_t({},rt.selection),{},{edit:!0}))}if(1===qt.replace(/^Shift\+/,"").length&&rt.selection)return Ke.preventDefault(),void function(_i){ut.apply(this,arguments)}(Ke.key);if("Ctrl+Enter"===qt&&xr(rt.selection)){var ai=Un(L,rt.selection.focusPath);jS(ai)&&window.open(String(ai),"_blank")}"Escape"===qt&&rt.selection&&(Ke.preventDefault(),Qe(void 0)),"Ctrl+F"===qt&&Ke.preventDefault(),"Ctrl+H"===qt&&Ke.preventDefault(),"Ctrl+Z"===qt&&(Ke.preventDefault(),xo()),"Ctrl+Shift+Z"===qt&&(Ke.preventDefault(),ji())},function(Ke){Ke.preventDefault(),Jle({clipboardText:Ke.clipboardData.getData("text/plain"),json:L,documentState:rt,readOnly:G,parser:pe,onPatch:er,onChangeText:Si,openRepairModal:Yr})},function(Ke){a("select validation error",Ke),Qe(Br(Ke.path,!1)),Xr(Ke.path)},Fi,function(){var Ke;Ke=[],G||void 0===L||(Ct=!0,ae({id:f,json:L,rootPath:Ke,onSort:function(qt){var hn=qt.operations,kn=qt.itemPath,Fn=qt.direction;a("onSort",hn,Ke,kn,Fn),er(hn,function(ki,rr){return{state:_t(_t({},rr),{},{sortedColumn:{path:kn,sortDirection:-1===Fn?eu.desc:eu.asc}})}})},onClose:function(){Ct=!1,Ii()}}))},function(){Li({rootPath:[]})},xo,ji,function(Ke){e(69,Se=Ke.getBoundingClientRect().height)},zr,function(Ke,qt){return!!qt&&!0===qt.pointersMap[An(Ke)]},oe,re,ce,ue,De,ie,ge,le,z,Z,me,ae,Te,Oe,qr,oo,Ii,Xr,Pt,Li,w,se,Se,ke,function(Ke){dr[Ke?"unshift":"push"](function(){e(14,E=Ke)})},function(){return e(8,wt=1/0)},function(Ke,qt){return zr(qt,Ke)},function(Ke){dr[Ke?"unshift":"push"](function(){e(13,k=Ke)})},function(Ke){dr[Ke?"unshift":"push"](function(){e(12,C=Ke)})}]}var Nnt=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,Ont,Lnt,Zi,{readOnly:0,externalContent:47,mainMenuBar:1,escapeControlCharacters:48,escapeUnicodeCharacters:49,flattenColumns:50,parser:2,parseMemoizeOne:51,validator:52,validationParser:53,indentation:3,onChange:54,onChangeMode:4,onRenderValue:55,onRenderMenu:5,onFocus:56,onBlur:57,onSortModal:58,onTransformModal:59,onJSONEditorModal:60,validate:61,patch:62,focus:63,acceptAutoRepair:6,scrollTo:64,findElement:65,openTransformModal:66},knt,[-1,-1,-1,-1,-1]),r}return Xe(e,[{key:"validate",get:function(){return this.$$.ctx[61]}},{key:"patch",get:function(){return this.$$.ctx[62]}},{key:"focus",get:function(){return this.$$.ctx[63]}},{key:"acceptAutoRepair",get:function(){return this.$$.ctx[6]}},{key:"scrollTo",get:function(){return this.$$.ctx[64]}},{key:"findElement",get:function(){return this.$$.ctx[65]}},{key:"openTransformModal",get:function(){return this.$$.ctx[66]}}]),e}();function Rnt(t){var n,e;return n=new xN({props:{externalContent:t[0],readOnly:t[1],indentation:t[2],mainMenuBar:t[5],navigationBar:t[6],escapeControlCharacters:t[8],escapeUnicodeCharacters:t[9],parser:t[11],parseMemoizeOne:t[12],validator:t[13],validationParser:t[14],pathParser:t[15],onError:t[20],onChange:t[16],onChangeMode:t[19],onRenderValue:t[17],onClassName:t[18],onFocus:t[21],onBlur:t[22],onRenderMenu:t[29],onSortModal:t[23],onTransformModal:t[24],onJSONEditorModal:t[25]}}),t[44](n),{c:function(){$t(n.$$.fragment)},m:function(r,o){Nt(n,r,o),e=!0},p:function(r,o){var s={};1&o[0]&&(s.externalContent=r[0]),2&o[0]&&(s.readOnly=r[1]),4&o[0]&&(s.indentation=r[2]),32&o[0]&&(s.mainMenuBar=r[5]),64&o[0]&&(s.navigationBar=r[6]),256&o[0]&&(s.escapeControlCharacters=r[8]),512&o[0]&&(s.escapeUnicodeCharacters=r[9]),2048&o[0]&&(s.parser=r[11]),4096&o[0]&&(s.parseMemoizeOne=r[12]),8192&o[0]&&(s.validator=r[13]),16384&o[0]&&(s.validationParser=r[14]),32768&o[0]&&(s.pathParser=r[15]),1048576&o[0]&&(s.onError=r[20]),65536&o[0]&&(s.onChange=r[16]),524288&o[0]&&(s.onChangeMode=r[19]),131072&o[0]&&(s.onRenderValue=r[17]),262144&o[0]&&(s.onClassName=r[18]),2097152&o[0]&&(s.onFocus=r[21]),4194304&o[0]&&(s.onBlur=r[22]),536870912&o[0]&&(s.onRenderMenu=r[29]),8388608&o[0]&&(s.onSortModal=r[23]),16777216&o[0]&&(s.onTransformModal=r[24]),33554432&o[0]&&(s.onJSONEditorModal=r[25]),n.$set(s)},i:function(r){e||(_e(n.$$.fragment,r),e=!0)},o:function(r){Ee(n.$$.fragment,r),e=!1},d:function(r){t[44](null),Rt(n,r)}}}function $nt(t){var n,e;return n=new Nnt({props:{externalContent:t[0],readOnly:t[1],mainMenuBar:t[5],escapeControlCharacters:t[8],escapeUnicodeCharacters:t[9],flattenColumns:t[10],parser:t[11],parseMemoizeOne:t[12],validator:t[13],validationParser:t[14],indentation:t[2],onChange:t[16],onChangeMode:t[19],onRenderValue:t[17],onFocus:t[21],onBlur:t[22],onRenderMenu:t[29],onSortModal:t[23],onTransformModal:t[24],onJSONEditorModal:t[25]}}),t[43](n),{c:function(){$t(n.$$.fragment)},m:function(r,o){Nt(n,r,o),e=!0},p:function(r,o){var s={};1&o[0]&&(s.externalContent=r[0]),2&o[0]&&(s.readOnly=r[1]),32&o[0]&&(s.mainMenuBar=r[5]),256&o[0]&&(s.escapeControlCharacters=r[8]),512&o[0]&&(s.escapeUnicodeCharacters=r[9]),1024&o[0]&&(s.flattenColumns=r[10]),2048&o[0]&&(s.parser=r[11]),4096&o[0]&&(s.parseMemoizeOne=r[12]),8192&o[0]&&(s.validator=r[13]),16384&o[0]&&(s.validationParser=r[14]),4&o[0]&&(s.indentation=r[2]),65536&o[0]&&(s.onChange=r[16]),524288&o[0]&&(s.onChangeMode=r[19]),131072&o[0]&&(s.onRenderValue=r[17]),2097152&o[0]&&(s.onFocus=r[21]),4194304&o[0]&&(s.onBlur=r[22]),536870912&o[0]&&(s.onRenderMenu=r[29]),8388608&o[0]&&(s.onSortModal=r[23]),16777216&o[0]&&(s.onTransformModal=r[24]),33554432&o[0]&&(s.onJSONEditorModal=r[25]),n.$set(s)},i:function(r){e||(_e(n.$$.fragment,r),e=!0)},o:function(r){Ee(n.$$.fragment,r),e=!1},d:function(r){t[43](null),Rt(n,r)}}}function Pnt(t){var n,e;return n=new Jtt({props:{externalContent:t[0],readOnly:t[1],indentation:t[2],tabSize:t[3],mainMenuBar:t[5],statusBar:t[7],escapeUnicodeCharacters:t[9],parser:t[11],validator:t[13],validationParser:t[14],onChange:t[16],onChangeMode:t[19],onError:t[20],onFocus:t[21],onBlur:t[22],onRenderMenu:t[29],onSortModal:t[23],onTransformModal:t[24]}}),t[42](n),{c:function(){$t(n.$$.fragment)},m:function(r,o){Nt(n,r,o),e=!0},p:function(r,o){var s={};1&o[0]&&(s.externalContent=r[0]),2&o[0]&&(s.readOnly=r[1]),4&o[0]&&(s.indentation=r[2]),8&o[0]&&(s.tabSize=r[3]),32&o[0]&&(s.mainMenuBar=r[5]),128&o[0]&&(s.statusBar=r[7]),512&o[0]&&(s.escapeUnicodeCharacters=r[9]),2048&o[0]&&(s.parser=r[11]),8192&o[0]&&(s.validator=r[13]),16384&o[0]&&(s.validationParser=r[14]),65536&o[0]&&(s.onChange=r[16]),524288&o[0]&&(s.onChangeMode=r[19]),1048576&o[0]&&(s.onError=r[20]),2097152&o[0]&&(s.onFocus=r[21]),4194304&o[0]&&(s.onBlur=r[22]),536870912&o[0]&&(s.onRenderMenu=r[29]),8388608&o[0]&&(s.onSortModal=r[23]),16777216&o[0]&&(s.onTransformModal=r[24]),n.$set(s)},i:function(r){e||(_e(n.$$.fragment,r),e=!0)},o:function(r){Ee(n.$$.fragment,r),e=!1},d:function(r){t[42](null),Rt(n,r)}}}function jnt(t){var n,e,i,r,o=[Pnt,$nt,Rnt],s=[];function a(l,c){return l[4]===Za.text||"code"===l[4]?0:l[4]===Za.table?1:2}return n=a(t),e=s[n]=o[n](t),{c:function(){e.c(),i=Wr()},m:function(l,c){s[n].m(l,c),nt(l,i,c),r=!0},p:function(l,c){var u=n;(n=a(l))===u?s[n].p(l,c):(cn(),Ee(s[u],1,1,function(){s[u]=null}),un(),(e=s[n])?e.p(l,c):(e=s[n]=o[n](l)).c(),_e(e,1),e.m(i.parentNode,i))},i:function(l){r||(_e(e),r=!0)},o:function(l){Ee(e),r=!1},d:function(l){s[n].d(l),l&&tt(i)}}}function Bnt(t,n,e){var i,r,o,s,a,l=n.content,c=n.readOnly,u=n.indentation,h=n.tabSize,d=n.mode,f=n.mainMenuBar,p=n.navigationBar,m=n.statusBar,w=n.escapeControlCharacters,C=n.escapeUnicodeCharacters,k=n.flattenColumns,E=n.parser,L=n.parseMemoizeOne,B=n.validator,G=n.validationParser,oe=n.pathParser,fe=n.insideModal,re=n.onChange,ce=n.onRenderValue,ue=n.onClassName,pe=n.onRenderMenu,De=n.onChangeMode,ie=n.onError,ge=n.onFocus,we=n.onBlur,le=n.onSortModal,Fe=n.onTransformModal,z=n.onJSONEditorModal,Q={separator:!0};return t.$$set=function(Z){"content"in Z&&e(0,l=Z.content),"readOnly"in Z&&e(1,c=Z.readOnly),"indentation"in Z&&e(2,u=Z.indentation),"tabSize"in Z&&e(3,h=Z.tabSize),"mode"in Z&&e(4,d=Z.mode),"mainMenuBar"in Z&&e(5,f=Z.mainMenuBar),"navigationBar"in Z&&e(6,p=Z.navigationBar),"statusBar"in Z&&e(7,m=Z.statusBar),"escapeControlCharacters"in Z&&e(8,w=Z.escapeControlCharacters),"escapeUnicodeCharacters"in Z&&e(9,C=Z.escapeUnicodeCharacters),"flattenColumns"in Z&&e(10,k=Z.flattenColumns),"parser"in Z&&e(11,E=Z.parser),"parseMemoizeOne"in Z&&e(12,L=Z.parseMemoizeOne),"validator"in Z&&e(13,B=Z.validator),"validationParser"in Z&&e(14,G=Z.validationParser),"pathParser"in Z&&e(15,oe=Z.pathParser),"insideModal"in Z&&e(30,fe=Z.insideModal),"onChange"in Z&&e(16,re=Z.onChange),"onRenderValue"in Z&&e(17,ce=Z.onRenderValue),"onClassName"in Z&&e(18,ue=Z.onClassName),"onRenderMenu"in Z&&e(31,pe=Z.onRenderMenu),"onChangeMode"in Z&&e(19,De=Z.onChangeMode),"onError"in Z&&e(20,ie=Z.onError),"onFocus"in Z&&e(21,ge=Z.onFocus),"onBlur"in Z&&e(22,we=Z.onBlur),"onSortModal"in Z&&e(23,le=Z.onSortModal),"onTransformModal"in Z&&e(24,Fe=Z.onTransformModal),"onJSONEditorModal"in Z&&e(25,z=Z.onJSONEditorModal)},t.$$.update=function(){524304&t.$$.dirty[0]&&e(41,s=[{type:"button",text:"text",title:"Switch to text mode (current mode: ".concat(d,")"),className:"jse-group-button jse-first"+(d===Za.text||"code"===d?" jse-selected":""),onClick:function(){return De(Za.text)}},{type:"button",text:"tree",title:"Switch to tree mode (current mode: ".concat(d,")"),className:"jse-group-button "+(d===Za.tree?" jse-selected":""),onClick:function(){return De(Za.tree)}},{type:"button",text:"table",title:"Switch to table mode (current mode: ".concat(d,")"),className:"jse-group-button jse-last"+(d===Za.table?" jse-selected":""),onClick:function(){return De(Za.table)}}]),1073741840&t.$$.dirty[0]|1025&t.$$.dirty[1]&&e(29,a=function(Z){var me=Sae(Z[0])?s.concat(Z):s.concat(Q,Z);return pe(me,{mode:d,modal:fe})||me})},[l,c,u,h,d,f,p,m,w,C,k,E,L,B,G,oe,re,ce,ue,De,ie,ge,we,le,Fe,z,i,r,o,a,fe,pe,function(Z){return i?i.patch(Z):r?r.patch(Z):o?o.patch(Z):void 0},function(Z){if(i)return i.expand(Z);throw new Error('Method expand is not available in mode "'.concat(d,'"'))},function(Z){if(o)o.openTransformModal(Z);else if(i)i.openTransformModal(Z);else{if(!r)throw new Error('Method transform is not available in mode "'.concat(d,'"'));r.openTransformModal(Z)}},function(){if(o)return o.validate();if(i)return i.validate();if(r)return r.validate();throw new Error('Method validate is not available in mode "'.concat(d,'"'))},function(){return i?i.acceptAutoRepair():l},function(Z){if(i)return i.scrollTo(Z);throw new Error('Method scrollTo is not available in mode "'.concat(d,'"'))},function(Z){if(i)return i.findElement(Z);if(r)return r.findElement(Z);throw new Error('Method findElement is not available in mode "'.concat(d,'"'))},function(){o?o.focus():i?i.focus():r&&r.focus()},function(){o&&o.refresh()},s,function(Z){dr[Z?"unshift":"push"](function(){e(28,o=Z)})},function(Z){dr[Z?"unshift":"push"](function(){e(27,r=Z)})},function(Z){dr[Z?"unshift":"push"](function(){e(26,i=Z)})}]}var Ppe=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,Bnt,jnt,Os,{content:0,readOnly:1,indentation:2,tabSize:3,mode:4,mainMenuBar:5,navigationBar:6,statusBar:7,escapeControlCharacters:8,escapeUnicodeCharacters:9,flattenColumns:10,parser:11,parseMemoizeOne:12,validator:13,validationParser:14,pathParser:15,insideModal:30,onChange:16,onRenderValue:17,onClassName:18,onRenderMenu:31,onChangeMode:19,onError:20,onFocus:21,onBlur:22,onSortModal:23,onTransformModal:24,onJSONEditorModal:25,patch:32,expand:33,transform:34,validate:35,acceptAutoRepair:36,scrollTo:37,findElement:38,focus:39,refresh:40},null,[-1,-1]),r}return Xe(e,[{key:"patch",get:function(){return this.$$.ctx[32]}},{key:"expand",get:function(){return this.$$.ctx[33]}},{key:"transform",get:function(){return this.$$.ctx[34]}},{key:"validate",get:function(){return this.$$.ctx[35]}},{key:"acceptAutoRepair",get:function(){return this.$$.ctx[36]}},{key:"scrollTo",get:function(){return this.$$.ctx[37]}},{key:"findElement",get:function(){return this.$$.ctx[38]}},{key:"focus",get:function(){return this.$$.ctx[39]}},{key:"refresh",get:function(){return this.$$.ctx[40]}}]),e}();function Hnt(t){Ni(t,"svelte-1hibiw3",".jse-modal.svelte-1hibiw3.svelte-1hibiw3{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-1hibiw3 .jse-modal-contents.svelte-1hibiw3{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1hibiw3 .jse-modal-contents .jse-actions.svelte-1hibiw3{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-1hibiw3 .jse-modal-contents .jse-actions button.jse-primary.svelte-1hibiw3{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-1hibiw3 .jse-modal-contents .jse-actions button.jse-primary.svelte-1hibiw3:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-1hibiw3 .jse-modal-contents .jse-actions button.jse-primary.svelte-1hibiw3:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 .jse-modal-contents.svelte-1hibiw3{flex:1;display:flex;flex-direction:column;padding-top:0;--jse-theme-color:var(--jse-modal-theme-color);--jse-theme-color-highlight:var(--jse-modal-theme-color-highlight)}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 .jse-modal-contents .jse-label.svelte-1hibiw3{font-weight:bold;display:block;box-sizing:border-box}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 .jse-modal-contents .jse-label .jse-label-inner.svelte-1hibiw3{margin-top:calc(2 * var(--jse-padding));margin-bottom:calc(0.5 * var(--jse-padding));box-sizing:border-box}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 .jse-modal-contents .jse-label .jse-label-inner button.svelte-1hibiw3{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;font-weight:bold;padding:0}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 .jse-modal-contents .jse-modal-inline-editor.svelte-1hibiw3{flex:1;min-height:0;min-width:0;display:flex}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 .jse-actions.svelte-1hibiw3{gap:var(--jse-padding);align-items:center}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 .jse-actions .jse-error.svelte-1hibiw3{flex:1;color:var(--jse-error-color)}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 .jse-actions button.jse-secondary.svelte-1hibiw3{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-secondary-background);color:var(--jse-button-secondary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 .jse-actions button.jse-secondary.svelte-1hibiw3:hover{background:var(--jse-button-secondary-background-highlight)}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 .jse-actions button.jse-secondary.svelte-1hibiw3:disabled{background:var(--jse-button-secondary-background-disabled)}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 input.svelte-1hibiw3{border:var(--jse-input-border);outline:none;box-sizing:border-box;padding:calc(0.5 * var(--jse-padding));font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:inherit;background:var(--jse-input-background)}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 input.svelte-1hibiw3:focus{border:var(--jse-input-border-focus)}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 input.svelte-1hibiw3:read-only{background:var(--jse-input-background-readonly)}")}function jpe(t){var n,e;return{c:function(){n=Be("div"),e=xn(t[19]),ne(n,"class","jse-error svelte-1hibiw3")},m:function(i,r){nt(i,n,r),Ie(n,e)},p:function(i,r){524288&r[0]&&gi(e,i[19])},d:function(i){i&&tt(n)}}}function Bpe(t){var n,e,i,r,o,s;return e=new Ir({props:{data:bGe}}),{c:function(){n=Be("button"),$t(e.$$.fragment),i=xn(" Back"),ne(n,"type","button"),ne(n,"class","jse-secondary svelte-1hibiw3")},m:function(a,l){nt(a,n,l),Nt(e,n,null),Ie(n,i),r=!0,o||(s=rn(n,"click",t[23]),o=!0)},p:an,i:function(a){r||(_e(e.$$.fragment,a),r=!0)},o:function(a){Ee(e.$$.fragment,a),r=!1},d:function(a){a&&tt(n),Rt(e),o=!1,s()}}}function Vnt(t){var n,e,i;return{c:function(){(n=Be("button")).textContent="Close",ne(n,"type","button"),ne(n,"class","jse-primary svelte-1hibiw3")},m:function(r,o){nt(r,n,o),e||(i=[rn(n,"click",t[23]),Ra(Hpe.call(null,n))],e=!0)},p:an,d:function(r){r&&tt(n),e=!1,Fo(i)}}}function znt(t){var n,e,i;return{c:function(){(n=Be("button")).textContent="Apply",ne(n,"type","button"),ne(n,"class","jse-primary svelte-1hibiw3")},m:function(r,o){nt(r,n,o),e||(i=[rn(n,"click",t[22]),Ra(Hpe.call(null,n))],e=!0)},p:an,d:function(r){r&&tt(n),e=!1,Fo(i)}}}function Unt(t){var n,e,i,r,o,s,a,l,c,u,h,d,f,p,m,w,C,k,E;e=new aN({props:{title:"Edit nested content "+(t[18].length>1?" (".concat(t[18].length,")"):""),onClose:t[23]}}),d=new Ppe({props:{mode:ii(t[18]).mode,content:ii(t[18]).content,readOnly:t[0],indentation:t[1],tabSize:t[2],statusBar:t[5],mainMenuBar:t[3],navigationBar:t[4],escapeControlCharacters:t[6],escapeUnicodeCharacters:t[7],flattenColumns:t[8],parser:t[9],parseMemoizeOne:t[20],validator:t[10],validationParser:t[11],pathParser:t[12],insideModal:!0,onError:t[26],onChange:t[24],onChangeMode:t[25],onRenderValue:t[13],onClassName:t[14],onFocus:hd,onBlur:hd,onRenderMenu:t[15],onSortModal:t[16],onTransformModal:t[17],onJSONEditorModal:t[27]}});var L=t[19]&&jpe(t),B=t[18].length>1&&Bpe(t);function G(re,ce){return re[0]?Vnt:znt}var oe=G(t),fe=oe(t);return{c:function(){n=Be("div"),$t(e.$$.fragment),i=xt(),r=Be("div"),(o=Be("div")).innerHTML='
    Path
    ',s=xt(),a=Be("input"),l=xt(),(c=Be("div")).innerHTML='
    Contents
    ',u=xt(),h=Be("div"),$t(d.$$.fragment),f=xt(),p=Be("div"),L&&L.c(),m=xt(),B&&B.c(),w=xt(),fe.c(),ne(o,"class","jse-label svelte-1hibiw3"),ne(a,"class","jse-path svelte-1hibiw3"),ne(a,"type","text"),a.readOnly=!0,ne(a,"title","Selected path"),a.value=t[21],ne(c,"class","jse-label svelte-1hibiw3"),ne(h,"class","jse-modal-inline-editor svelte-1hibiw3"),ne(p,"class","jse-actions svelte-1hibiw3"),ne(r,"class","jse-modal-contents svelte-1hibiw3"),ne(n,"class","jse-modal jse-jsoneditor-modal svelte-1hibiw3")},m:function(re,ce){nt(re,n,ce),Nt(e,n,null),Ie(n,i),Ie(n,r),Ie(r,o),Ie(r,s),Ie(r,a),Ie(r,l),Ie(r,c),Ie(r,u),Ie(r,h),Nt(d,h,null),Ie(r,f),Ie(r,p),L&&L.m(p,null),Ie(p,m),B&&B.m(p,null),Ie(p,w),fe.m(p,null),C=!0,k||(E=Ra(tk.call(null,n,t[23])),k=!0)},p:function(re,ce){var ue={};262144&ce[0]&&(ue.title="Edit nested content "+(re[18].length>1?" (".concat(re[18].length,")"):"")),e.$set(ue),(!C||2097152&ce[0]&&a.value!==re[21])&&(a.value=re[21]);var pe={};262144&ce[0]&&(pe.mode=ii(re[18]).mode),262144&ce[0]&&(pe.content=ii(re[18]).content),1&ce[0]&&(pe.readOnly=re[0]),2&ce[0]&&(pe.indentation=re[1]),4&ce[0]&&(pe.tabSize=re[2]),32&ce[0]&&(pe.statusBar=re[5]),8&ce[0]&&(pe.mainMenuBar=re[3]),16&ce[0]&&(pe.navigationBar=re[4]),64&ce[0]&&(pe.escapeControlCharacters=re[6]),128&ce[0]&&(pe.escapeUnicodeCharacters=re[7]),256&ce[0]&&(pe.flattenColumns=re[8]),512&ce[0]&&(pe.parser=re[9]),1048576&ce[0]&&(pe.parseMemoizeOne=re[20]),1024&ce[0]&&(pe.validator=re[10]),2048&ce[0]&&(pe.validationParser=re[11]),4096&ce[0]&&(pe.pathParser=re[12]),8192&ce[0]&&(pe.onRenderValue=re[13]),16384&ce[0]&&(pe.onClassName=re[14]),32768&ce[0]&&(pe.onRenderMenu=re[15]),65536&ce[0]&&(pe.onSortModal=re[16]),131072&ce[0]&&(pe.onTransformModal=re[17]),d.$set(pe),re[19]?L?L.p(re,ce):((L=jpe(re)).c(),L.m(p,m)):L&&(L.d(1),L=null),re[18].length>1?B?(B.p(re,ce),262144&ce[0]&&_e(B,1)):((B=Bpe(re)).c(),_e(B,1),B.m(p,w)):B&&(cn(),Ee(B,1,1,function(){B=null}),un()),oe===(oe=G(re))&&fe?fe.p(re,ce):(fe.d(1),(fe=oe(re))&&(fe.c(),fe.m(p,null)))},i:function(re){C||(_e(e.$$.fragment,re),_e(d.$$.fragment,re),_e(B),C=!0)},o:function(re){Ee(e.$$.fragment,re),Ee(d.$$.fragment,re),Ee(B),C=!1},d:function(re){re&&tt(n),Rt(e),Rt(d),L&&L.d(),B&&B.d(),fe.d(),k=!1,E()}}}function Hpe(t){t.focus()}function Wnt(t,n,e){var i,r,o,s=Pa("jsoneditor:JSONEditorModal"),a=n.content,l=n.path,c=n.onPatch,u=n.readOnly,h=n.indentation,d=n.tabSize,f=n.mainMenuBar,p=n.navigationBar,m=n.statusBar,w=n.escapeControlCharacters,C=n.escapeUnicodeCharacters,k=n.flattenColumns,E=n.parser,L=n.validator,B=n.validationParser,G=n.pathParser,oe=n.onRenderValue,fe=n.onClassName,re=n.onRenderMenu,ce=n.onSortModal,ue=n.onTransformModal,pe=$a("simple-modal").close,De=[{mode:ge(a),content:a,relativePath:l}],ie=void 0;function ge(le){return SO(le)&&Ao(le.json)?Za.table:Za.tree}function we(le){s("handleChange",le);var Fe=_t(_t({},ii(De)),{},{content:le});e(18,De=[].concat(Ti(wr(De)),[Fe]))}return t.$$set=function(le){"content"in le&&e(28,a=le.content),"path"in le&&e(29,l=le.path),"onPatch"in le&&e(30,c=le.onPatch),"readOnly"in le&&e(0,u=le.readOnly),"indentation"in le&&e(1,h=le.indentation),"tabSize"in le&&e(2,d=le.tabSize),"mainMenuBar"in le&&e(3,f=le.mainMenuBar),"navigationBar"in le&&e(4,p=le.navigationBar),"statusBar"in le&&e(5,m=le.statusBar),"escapeControlCharacters"in le&&e(6,w=le.escapeControlCharacters),"escapeUnicodeCharacters"in le&&e(7,C=le.escapeUnicodeCharacters),"flattenColumns"in le&&e(8,k=le.flattenColumns),"parser"in le&&e(9,E=le.parser),"validator"in le&&e(10,L=le.validator),"validationParser"in le&&e(11,B=le.validationParser),"pathParser"in le&&e(12,G=le.pathParser),"onRenderValue"in le&&e(13,oe=le.onRenderValue),"onClassName"in le&&e(14,fe=le.onClassName),"onRenderMenu"in le&&e(15,re=le.onRenderMenu),"onSortModal"in le&&e(16,ce=le.onSortModal),"onTransformModal"in le&&e(17,ue=le.onTransformModal)},t.$$.update=function(){262144&t.$$.dirty[0]&&e(31,i=De.flatMap(function(le){return le.relativePath})),1&t.$$.dirty[1]&&e(21,r=fr(i)?"(whole document)":lu(lc(i))),512&t.$$.dirty[0]&&e(20,o=Jb(E.parse))},[u,h,d,f,p,m,w,C,k,E,L,B,G,oe,fe,re,ce,ue,De,ie,o,r,function(){if(s("handleApply"),!u)try{e(19,ie=void 0);var le=[{op:"replace",path:An(ii(De).relativePath),value:aoe(ii(De).content,E).json}];if(De.length>1){var Fe={json:Zu(aoe(De[De.length-2].content,E).json,le)};e(18,De=wr(De)),we(Fe)}else c(le),pe()}catch(z){e(19,ie=z.toString())}},function(){s("handleClose"),De.length>1?(e(18,De=wr(De)),e(19,ie=void 0)):pe()},we,function(le){s("handleChangeMode",le);var Fe=_t(_t({},ii(De)),{},{mode:le});e(18,De=[].concat(Ti(wr(De)),[Fe]))},function(le){e(19,ie=le.toString()),console.error(le)},function(le){var Fe=le.content,z=le.path;s("handleJSONEditorModal",{content:Fe,path:z});var Q={mode:ge(Fe),content:Fe,relativePath:z};e(18,De=[].concat(Ti(De),[Q]))},a,l,c,i]}var Gnt=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,Wnt,Unt,Zi,{content:28,path:29,onPatch:30,readOnly:0,indentation:1,tabSize:2,mainMenuBar:3,navigationBar:4,statusBar:5,escapeControlCharacters:6,escapeUnicodeCharacters:7,flattenColumns:8,parser:9,validator:10,validationParser:11,pathParser:12,onRenderValue:13,onClassName:14,onRenderMenu:15,onSortModal:16,onTransformModal:17},Hnt,[-1,-1]),r}return Xe(e)}();function qnt(t,n,e){var i=$a("simple-modal");return[i.open,i.close]}var Xnt=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,qnt,null,Zi,{open:0,close:1}),r}return Xe(e,[{key:"open",get:function(){return this.$$.ctx[0]}},{key:"close",get:function(){return this.$$.ctx[1]}}]),e}();function Ynt(t){Ni(t,"svelte-sxaskb",':root{--jse-theme:light;--jse-font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,\n Cantarell, "Helvetica Neue", sans-serif;--jse-font-family-mono:consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace;--jse-font-size-mono:14px;--jse-font-size:16px;--jse-font-size-text-mode-search:80%;--jse-line-height:calc(1em + 4px);--jse-indent-size:calc(1em + 4px);--jse-color-picker-button-size:1em;--jse-padding:10px;--jse-theme-color:#3883fa;--jse-theme-color-highlight:#5f9dff;--jse-background-color:#fff;--jse-text-color:#4d4d4d;--jse-text-readonly:#8d8d8d;--jse-text-color-inverse:#fff;--jse-error-color:#ee5341;--jse-warning-color:#fdc539;--jse-main-border:1px solid #d7d7d7;--jse-menu-color:var(--jse-text-color-inverse);--jse-menu-button-size:32px;--jse-modal-background:#f5f5f5;--jse-modal-overlay-background:rgba(0, 0, 0, 0.3);--jse-modal-code-background:rgba(0, 0, 0, 0.05);--jse-modal-theme-color:#707070;--jse-modal-theme-color-highlight:#646464;--jse-tooltip-color:var(--jse-text-color);--jse-tooltip-background:var(--jse-modal-background);--jse-tooltip-border:var(--jse-main-border);--jse-tooltip-action-button-color:var(--jse-text-color-inverse);--jse-tooltip-action-button-background:#4d4d4d;--jse-panel-background:#ebebeb;--jse-panel-color:var(--jse-text-color);--jse-panel-color-readonly:#b2b2b2;--jse-panel-border:var(--jse-main-border);--jse-panel-button-color:inherit;--jse-panel-button-background:transparent;--jse-panel-button-color-highlight:var(--jse-text-color);--jse-panel-button-background-highlight:#e0e0e0;--jse-navigation-bar-background:var(--jse-background-color);--jse-navigation-bar-background-highlight:#e5e5e5;--jse-navigation-bar-dropdown-color:#656565;--jse-context-menu-background:#656565;--jse-context-menu-background-highlight:#7a7a7a;--jse-context-menu-color:var(--jse-text-color-inverse);--jse-context-menu-color-disabled:#9d9d9d;--jse-context-menu-separator-color:#7a7a7a;--jse-context-menu-pointer-hover-background:#b2b2b2;--jse-context-menu-pointer-background:var(--jse-context-menu-background);--jse-context-menu-pointer-background-highlight:var(--jse-context-menu-background-highlight);--jse-context-menu-pointer-color:var(--jse-context-menu-color);--jse-context-menu-pointer-size:calc(1em + 4px);--jse-context-menu-tip-background:rgba(255, 255, 255, 0.2);--jse-context-menu-tip-color:inherit;--jse-key-color:#1a1a1a;--jse-value-color:#1a1a1a;--jse-value-color-number:#ee422e;--jse-value-color-boolean:#ff8c00;--jse-value-color-null:#004ed0;--jse-value-color-string:#008000;--jse-value-color-url:#008000;--jse-delimiter-color:rgba(0, 0, 0, 0.38);--jse-edit-outline:2px solid #656565;--jse-contents-background-color:transparent;--jse-contents-cursor:pointer;--jse-contents-selected-cursor:grab;--jse-selection-background-color:#d3d3d3;--jse-selection-background-inactive-color:#e8e8e8;--jse-hover-background-color:rgba(0, 0, 0, 0.06);--jse-active-line-background-color:rgba(0, 0, 0, 0.06);--jse-search-match-background-color:#99ff7780;--jse-collapsed-items-background-color:#f5f5f5;--jse-collapsed-items-selected-background-color:#c2c2c2;--jse-collapsed-items-link-color:rgba(0, 0, 0, 0.38);--jse-collapsed-items-link-color-highlight:#ee5341;--jse-search-match-color:#ffe665;--jse-search-match-outline:1px solid #ffd700;--jse-search-match-active-color:#ffd700;--jse-search-match-active-outline:1px solid #e1be00;--jse-tag-background:rgba(0, 0, 0, 0.2);--jse-tag-color:var(--jse-text-color-inverse);--jse-table-header-background:#f5f5f5;--jse-table-header-background-highlight:#e8e8e8;--jse-table-row-odd-background:rgba(0, 0, 0, 0.05);--jse-controls-box-shadow:0 2px 6px 0 rgba(0, 0, 0, 0.24);--jse-input-background:var(--jse-background-color);--jse-input-background-readonly:transparent;--jse-input-border:1px solid #d8dbdf;--jse-input-border-focus:1px solid var(--jse-theme-color);--jse-input-radius:3px;--jse-button-background:#e0e0e0;--jse-button-background-highlight:#e7e7e7;--jse-button-color:var(--jse-text-color);--jse-button-primary-background:var(--jse-theme-color);--jse-button-primary-background-highlight:var(--jse-theme-color-highlight);--jse-button-primary-background-disabled:#9d9d9d;--jse-button-primary-color:var(--jse-text-color-inverse);--jse-button-secondary-background:#d3d3d3;--jse-button-secondary-background-highlight:#e1e1e1;--jse-button-secondary-background-disabled:#9d9d9d;--jse-button-secondary-color:var(--jse-text-color);--jse-a-color:#156fc5;--jse-a-color-highlight:#0f508d;--jse-message-error-background:var(--jse-error-color);--jse-message-error-color:var(--jse-text-color-inverse);--jse-message-warning-background:#ffde5c;--jse-message-warning-color:var(--jse-text-color);--jse-message-success-background:#9ac45d;--jse-message-success-color:var(--jse-text-color-inverse);--jse-message-info-background:#4f91ff;--jse-message-info-color:var(--jse-text-color-inverse);--jse-message-action-background:rgba(255, 255, 255, 0.2);--jse-message-action-background-highlight:rgba(255, 255, 255, 0.3);--item-is-active-bg:#3883fa;--border:1px solid #d8dbdf;--border-radius:3px;--background:#fff;--padding:0 10px;--multi-select-padding:0 10px;--jse-color-picker-background:var(--jse-panel-background);--jse-color-picker-border-box-shadow:#cbcbcb 0 0 0 1px}.jse-main.svelte-sxaskb{width:100%;height:100%;min-width:0;min-height:150px;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;position:relative;display:flex;flex-direction:row}')}function Vpe(t){var n,e;return n=new Ppe({props:{mode:t[1],content:t[0],readOnly:t[2],indentation:t[3],tabSize:t[4],statusBar:t[7],mainMenuBar:t[5],navigationBar:t[6],escapeControlCharacters:t[8],escapeUnicodeCharacters:t[9],flattenColumns:t[10],parser:t[11],parseMemoizeOne:t[24],validator:t[12],validationParser:t[13],pathParser:t[14],insideModal:!1,onError:t[18],onChange:t[25],onChangeMode:t[28],onRenderValue:t[15],onClassName:t[16],onFocus:t[26],onBlur:t[27],onRenderMenu:t[17],onSortModal:t[30],onTransformModal:t[29],onJSONEditorModal:t[31]}}),t[56](n),{c:function(){$t(n.$$.fragment)},m:function(r,o){Nt(n,r,o),e=!0},p:function(r,o){var s={};2&o[0]&&(s.mode=r[1]),1&o[0]&&(s.content=r[0]),4&o[0]&&(s.readOnly=r[2]),8&o[0]&&(s.indentation=r[3]),16&o[0]&&(s.tabSize=r[4]),128&o[0]&&(s.statusBar=r[7]),32&o[0]&&(s.mainMenuBar=r[5]),64&o[0]&&(s.navigationBar=r[6]),256&o[0]&&(s.escapeControlCharacters=r[8]),512&o[0]&&(s.escapeUnicodeCharacters=r[9]),1024&o[0]&&(s.flattenColumns=r[10]),2048&o[0]&&(s.parser=r[11]),16777216&o[0]&&(s.parseMemoizeOne=r[24]),4096&o[0]&&(s.validator=r[12]),8192&o[0]&&(s.validationParser=r[13]),16384&o[0]&&(s.pathParser=r[14]),262144&o[0]&&(s.onError=r[18]),32768&o[0]&&(s.onRenderValue=r[15]),65536&o[0]&&(s.onClassName=r[16]),131072&o[0]&&(s.onRenderMenu=r[17]),n.$set(s)},i:function(r){e||(_e(n.$$.fragment,r),e=!0)},o:function(r){Ee(n.$$.fragment,r),e=!1},d:function(r){t[56](null),Rt(n,r)}}}function Knt(t){var n,e,i,r,o,s=t[19];function a(u){t[55](u)}var l={};void 0!==t[22]&&(l.open=t[22]),n=new Xnt({props:l}),dr.push(function(){return Xu(n,"open",a)});var c=Vpe(t);return{c:function(){$t(n.$$.fragment),i=xt(),r=Be("div"),c.c(),ne(r,"class","jse-main svelte-sxaskb"),en(r,"jse-focus",t[20])},m:function(u,h){Nt(n,u,h),nt(u,i,h),nt(u,r,h),c.m(r,null),o=!0},p:function(u,h){var d={};!e&&4194304&h[0]&&(e=!0,d.open=u[22],qu(function(){return e=!1})),n.$set(d),524288&h[0]&&Zi(s,s=u[19])?(cn(),Ee(c,1,1,an),un(),(c=Vpe(u)).c(),_e(c,1),c.m(r,null)):c.p(u,h),(!o||1048576&h[0])&&en(r,"jse-focus",u[20])},i:function(u){o||(_e(n.$$.fragment,u),_e(c),o=!0)},o:function(u){Ee(n.$$.fragment,u),Ee(c),o=!1},d:function(u){Rt(n,u),u&&tt(i),u&&tt(r),c.d(u)}}}function Jnt(t){var n,e;return n=new xQ({props:{closeOnEsc:!1,$$slots:{default:[Knt]},$$scope:{ctx:t}}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};25165823&r[0]|268435456&r[1]&&(o.$$scope={dirty:r,ctx:i}),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function Qnt(t){for(var n,e,i,r=[{show:null===(n=t[23])||void 0===n?void 0:n.component},CQ,{closeOnEsc:!1}],o={$$slots:{default:[Jnt]},$$scope:{ctx:t}},s=0;s1)return!1;var p=this._items[0];return""===p||'""'===p}},{key:"str",get:function(){var p;return null!==(p=this._str)&&void 0!==p?p:this._str=this._items.reduce(function(m,w){return"".concat(m).concat(w)},"")}},{key:"names",get:function(){var p;return null!==(p=this._names)&&void 0!==p?p:this._names=this._items.reduce(function(m,w){return w instanceof e&&(m[w.str]=(m[w.str]||0)+1),m},{})}}]),f}(n);function r(h){for(var d=[h[0]],f=0,p=arguments.length,m=new Array(p>1?p-1:0),w=1;w1?p-1:0),w=1;w0&&void 0!==arguments[0]?arguments[0]:{},u=c.prefixes,h=c.parent;qe(this,l),this._names={},this._prefixes=u,this._parent=h}return Xe(l,[{key:"toName",value:function(c){return c instanceof e.Name?c:this.name(c)}},{key:"name",value:function(c){return new e.Name(this._newName(c))}},{key:"_newName",value:function(c){var u=this._names[c]||this._nameGroup(c);return"".concat(c).concat(u.index++)}},{key:"_nameGroup",value:function(c){var u,h;if(null!==(h=null===(u=this._parent)||void 0===u?void 0:u._prefixes)&&void 0!==h&&h.has(c)||this._prefixes&&!this._prefixes.has(c))throw new Error('CodeGen: prefix "'.concat(c,'" is not allowed in this scope'));return this._names[c]={prefix:c,index:0}}}]),l}();t.Scope=r;var o=function(l){Wt(u,l);var c=Gt(u);function u(h,d){var f;return qe(this,u),(f=c.call(this,d)).prefix=h,f}return Xe(u,[{key:"setValue",value:function(h,d){var f=d.property,p=d.itemIndex;this.value=h,this.scopePath=(0,e._)($G||($G=Je([".","[","]"])),new e.Name(f),p)}}]),u}(e.Name);t.ValueScopeName=o;var s=(0,e._)(PG||(PG=Je(["\n"],["\\n"]))),a=function(l){Wt(u,l);var c=Gt(u);function u(h){var d;return qe(this,u),(d=c.call(this,h))._values={},d._scope=h.scope,d.opts=_t(_t({},h),{},{_n:h.lines?s:e.nil}),d}return Xe(u,[{key:"get",value:function(){return this._scope}},{key:"name",value:function(h){return new o(h,this._newName(h))}},{key:"value",value:function(h,d){var f;if(void 0===d.ref)throw new Error("CodeGen: ref must be passed in value");var p=this.toName(h),m=p.prefix,w=null!==(f=d.key)&&void 0!==f?f:d.ref,C=this._values[m];if(C){var k=C.get(w);if(k)return k}else C=this._values[m]=new Map;C.set(w,p);var E=this._scope[m]||(this._scope[m]=[]),L=E.length;return E[L]=d.ref,p.setValue(d,{property:m,itemIndex:L}),p}},{key:"getValue",value:function(h,d){var f=this._values[h];if(f)return f.get(d)}},{key:"scopeRefs",value:function(h){return this._reduceValues(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._values,function(f){if(void 0===f.scopePath)throw new Error('CodeGen: name "'.concat(f,'" has no value'));return(0,e._)(jG||(jG=Je(["","",""])),h,f.scopePath)})}},{key:"scopeCode",value:function(){return this._reduceValues(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._values,function(p){if(void 0===p.value)throw new Error('CodeGen: name "'.concat(p,'" has no value'));return p.value.code},arguments.length>1?arguments[1]:void 0,arguments.length>2?arguments[2]:void 0)}},{key:"_reduceValues",value:function(h,d){var f=this,p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},m=arguments.length>3?arguments[3]:void 0,w=e.nil,C=function(E){var L=h[E];if(!L)return"continue";var B=p[E]=p[E]||new Map;L.forEach(function(G){if(!B.has(G)){B.set(G,n.Started);var oe=d(G);if(oe){var fe=f.opts.es5?t.varKinds.var:t.varKinds.const;w=(0,e._)(BG||(BG=Je(["",""," "," = ",";",""])),w,fe,G,oe,f.opts._n)}else{if(!(oe=m?.(G)))throw new i(G);w=(0,e._)(HG||(HG=Je(["","","",""])),w,oe,f.opts._n)}B.set(G,n.Completed)}})};for(var k in h)C(k);return w}}]),u}(r);t.ValueScope=a}(ege)),ege}function Gr(){return Zpe||(Zpe=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;var n=SD(),e=tge(),i=SD();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return i.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return i.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return i.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return i.Name}});var r=tge();Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return r.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return r.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return r.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return r.varKinds}}),t.operators={GT:new n._Code(">"),GTE:new n._Code(">="),LT:new n._Code("<"),LTE:new n._Code("<="),EQ:new n._Code("==="),NEQ:new n._Code("!=="),NOT:new n._Code("!"),OR:new n._Code("||"),AND:new n._Code("&&"),ADD:new n._Code("+")};var o=function(){function Z(){qe(this,Z)}return Xe(Z,[{key:"optimizeNodes",value:function(){return this}},{key:"optimizeNames",value:function(me,ae){return this}}]),Z}(),s=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(Te,Oe,Ze){var Ve;return qe(this,ae),(Ve=me.call(this)).varKind=Te,Ve.name=Oe,Ve.rhs=Ze,Ve}return Xe(ae,[{key:"render",value:function(Te){var Ze=Te._n,Ve=Te.es5?e.varKinds.var:this.varKind,wt=void 0===this.rhs?"":" = ".concat(this.rhs);return"".concat(Ve," ").concat(this.name).concat(wt,";")+Ze}},{key:"optimizeNames",value:function(Te,Oe){if(Te[this.name.str])return this.rhs&&(this.rhs=ie(this.rhs,Te,Oe)),this}},{key:"names",get:function(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}]),ae}(o),a=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(Te,Oe,Ze){var Ve;return qe(this,ae),(Ve=me.call(this)).lhs=Te,Ve.rhs=Oe,Ve.sideEffects=Ze,Ve}return Xe(ae,[{key:"render",value:function(Te){var Oe=Te._n;return"".concat(this.lhs," = ").concat(this.rhs,";")+Oe}},{key:"optimizeNames",value:function(Te,Oe){if(!(this.lhs instanceof n.Name)||Te[this.lhs.str]||this.sideEffects)return this.rhs=ie(this.rhs,Te,Oe),this}},{key:"names",get:function(){return De(this.lhs instanceof n.Name?{}:_t({},this.lhs.names),this.rhs)}}]),ae}(o),l=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(Te,Oe,Ze,Ve){var wt;return qe(this,ae),(wt=me.call(this,Te,Ze,Ve)).op=Oe,wt}return Xe(ae,[{key:"render",value:function(Te){var Oe=Te._n;return"".concat(this.lhs," ").concat(this.op,"= ").concat(this.rhs,";")+Oe}}]),ae}(a),c=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(Te){var Oe;return qe(this,ae),(Oe=me.call(this)).label=Te,Oe.names={},Oe}return Xe(ae,[{key:"render",value:function(Te){var Oe=Te._n;return"".concat(this.label,":")+Oe}}]),ae}(o),u=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(Te){var Oe;return qe(this,ae),(Oe=me.call(this)).label=Te,Oe.names={},Oe}return Xe(ae,[{key:"render",value:function(Te){var Oe=Te._n,Ze=this.label?" ".concat(this.label):"";return"break".concat(Ze,";")+Oe}}]),ae}(o),h=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(Te){var Oe;return qe(this,ae),(Oe=me.call(this)).error=Te,Oe}return Xe(ae,[{key:"render",value:function(Te){var Oe=Te._n;return"throw ".concat(this.error,";")+Oe}},{key:"names",get:function(){return this.error.names}}]),ae}(o),d=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(Te){var Oe;return qe(this,ae),(Oe=me.call(this)).code=Te,Oe}return Xe(ae,[{key:"render",value:function(Te){var Oe=Te._n;return"".concat(this.code,";")+Oe}},{key:"optimizeNodes",value:function(){return"".concat(this.code)?this:void 0}},{key:"optimizeNames",value:function(Te,Oe){return this.code=ie(this.code,Te,Oe),this}},{key:"names",get:function(){return this.code instanceof n._CodeOrName?this.code.names:{}}}]),ae}(o),f=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(){var Te,Oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return qe(this,ae),(Te=me.call(this)).nodes=Oe,Te}return Xe(ae,[{key:"render",value:function(Te){return this.nodes.reduce(function(Oe,Ze){return Oe+Ze.render(Te)},"")}},{key:"optimizeNodes",value:function(){for(var Te=this.nodes,Oe=Te.length;Oe--;){var Ze=Te[Oe].optimizeNodes();Array.isArray(Ze)?Te.splice.apply(Te,[Oe,1].concat(Ti(Ze))):Ze?Te[Oe]=Ze:Te.splice(Oe,1)}return Te.length>0?this:void 0}},{key:"optimizeNames",value:function(Te,Oe){for(var Ze=this.nodes,Ve=Ze.length;Ve--;){var wt=Ze[Ve];wt.optimizeNames(Te,Oe)||(ge(Te,wt.names),Ze.splice(Ve,1))}return Ze.length>0?this:void 0}},{key:"names",get:function(){return this.nodes.reduce(function(Te,Oe){return pe(Te,Oe.names)},{})}}]),ae}(o),p=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(){return qe(this,ae),me.apply(this,arguments)}return Xe(ae,[{key:"render",value:function(Te){return"{"+Te._n+jr(_r(ae.prototype),"render",this).call(this,Te)+"}"+Te._n}}]),ae}(f),m=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(){return qe(this,ae),me.apply(this,arguments)}return Xe(ae)}(f),w=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(){return qe(this,ae),me.apply(this,arguments)}return Xe(ae)}(p);w.kind="else";var C=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(Te,Oe){var Ze;return qe(this,ae),(Ze=me.call(this,Oe)).condition=Te,Ze}return Xe(ae,[{key:"render",value:function(Te){var Oe="if(".concat(this.condition,")")+jr(_r(ae.prototype),"render",this).call(this,Te);return this.else&&(Oe+="else "+this.else.render(Te)),Oe}},{key:"optimizeNodes",value:function(){jr(_r(ae.prototype),"optimizeNodes",this).call(this);var Te=this.condition;if(!0===Te)return this.nodes;var Oe=this.else;if(Oe){var Ze=Oe.optimizeNodes();Oe=this.else=Array.isArray(Ze)?new w(Ze):Ze}return Oe?!1===Te?Oe instanceof ae?Oe:Oe.nodes:this.nodes.length?this:new ae(we(Te),Oe instanceof ae?[Oe]:Oe.nodes):!1!==Te&&this.nodes.length?this:void 0}},{key:"optimizeNames",value:function(Te,Oe){var Ze;if(this.else=null===(Ze=this.else)||void 0===Ze?void 0:Ze.optimizeNames(Te,Oe),jr(_r(ae.prototype),"optimizeNames",this).call(this,Te,Oe)||this.else)return this.condition=ie(this.condition,Te,Oe),this}},{key:"names",get:function(){var Te=jr(_r(ae.prototype),"names",this);return De(Te,this.condition),this.else&&pe(Te,this.else.names),Te}}]),ae}(p);C.kind="if";var k=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(){return qe(this,ae),me.apply(this,arguments)}return Xe(ae)}(p);k.kind="for";var E=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(Te){var Oe;return qe(this,ae),(Oe=me.call(this)).iteration=Te,Oe}return Xe(ae,[{key:"render",value:function(Te){return"for(".concat(this.iteration,")")+jr(_r(ae.prototype),"render",this).call(this,Te)}},{key:"optimizeNames",value:function(Te,Oe){if(jr(_r(ae.prototype),"optimizeNames",this).call(this,Te,Oe))return this.iteration=ie(this.iteration,Te,Oe),this}},{key:"names",get:function(){return pe(jr(_r(ae.prototype),"names",this),this.iteration.names)}}]),ae}(k),L=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(Te,Oe,Ze,Ve){var wt;return qe(this,ae),(wt=me.call(this)).varKind=Te,wt.name=Oe,wt.from=Ze,wt.to=Ve,wt}return Xe(ae,[{key:"render",value:function(Te){var Ze=this.name,Ve=this.from,wt=this.to;return"for(".concat(Te.es5?e.varKinds.var:this.varKind," ").concat(Ze,"=").concat(Ve,"; ").concat(Ze,"<").concat(wt,"; ").concat(Ze,"++)")+jr(_r(ae.prototype),"render",this).call(this,Te)}},{key:"names",get:function(){var Te=De(jr(_r(ae.prototype),"names",this),this.from);return De(Te,this.to)}}]),ae}(k),B=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(Te,Oe,Ze,Ve){var wt;return qe(this,ae),(wt=me.call(this)).loop=Te,wt.varKind=Oe,wt.name=Ze,wt.iterable=Ve,wt}return Xe(ae,[{key:"render",value:function(Te){return"for(".concat(this.varKind," ").concat(this.name," ").concat(this.loop," ").concat(this.iterable,")")+jr(_r(ae.prototype),"render",this).call(this,Te)}},{key:"optimizeNames",value:function(Te,Oe){if(jr(_r(ae.prototype),"optimizeNames",this).call(this,Te,Oe))return this.iterable=ie(this.iterable,Te,Oe),this}},{key:"names",get:function(){return pe(jr(_r(ae.prototype),"names",this),this.iterable.names)}}]),ae}(k),G=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(Te,Oe,Ze){var Ve;return qe(this,ae),(Ve=me.call(this)).name=Te,Ve.args=Oe,Ve.async=Ze,Ve}return Xe(ae,[{key:"render",value:function(Te){return"".concat(this.async?"async ":"","function ").concat(this.name,"(").concat(this.args,")")+jr(_r(ae.prototype),"render",this).call(this,Te)}}]),ae}(p);G.kind="func";var oe=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(){return qe(this,ae),me.apply(this,arguments)}return Xe(ae,[{key:"render",value:function(Te){return"return "+jr(_r(ae.prototype),"render",this).call(this,Te)}}]),ae}(f);oe.kind="return";var fe=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(){return qe(this,ae),me.apply(this,arguments)}return Xe(ae,[{key:"render",value:function(Te){var Oe="try"+jr(_r(ae.prototype),"render",this).call(this,Te);return this.catch&&(Oe+=this.catch.render(Te)),this.finally&&(Oe+=this.finally.render(Te)),Oe}},{key:"optimizeNodes",value:function(){var Te,Oe;return jr(_r(ae.prototype),"optimizeNodes",this).call(this),null===(Te=this.catch)||void 0===Te||Te.optimizeNodes(),null===(Oe=this.finally)||void 0===Oe||Oe.optimizeNodes(),this}},{key:"optimizeNames",value:function(Te,Oe){var Ze,Ve;return jr(_r(ae.prototype),"optimizeNames",this).call(this,Te,Oe),null===(Ze=this.catch)||void 0===Ze||Ze.optimizeNames(Te,Oe),null===(Ve=this.finally)||void 0===Ve||Ve.optimizeNames(Te,Oe),this}},{key:"names",get:function(){var Te=jr(_r(ae.prototype),"names",this);return this.catch&&pe(Te,this.catch.names),this.finally&&pe(Te,this.finally.names),Te}}]),ae}(p),re=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(Te){var Oe;return qe(this,ae),(Oe=me.call(this)).error=Te,Oe}return Xe(ae,[{key:"render",value:function(Te){return"catch(".concat(this.error,")")+jr(_r(ae.prototype),"render",this).call(this,Te)}}]),ae}(p);re.kind="catch";var ce=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(){return qe(this,ae),me.apply(this,arguments)}return Xe(ae,[{key:"render",value:function(Te){return"finally"+jr(_r(ae.prototype),"render",this).call(this,Te)}}]),ae}(p);ce.kind="finally";var ue=function(){function Z(me){var ae=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};qe(this,Z),this._values={},this._blockStarts=[],this._constants={},this.opts=_t(_t({},ae),{},{_n:ae.lines?"\n":""}),this._extScope=me,this._scope=new e.Scope({parent:me}),this._nodes=[new m]}return Xe(Z,[{key:"toString",value:function(){return this._root.render(this.opts)}},{key:"name",value:function(me){return this._scope.name(me)}},{key:"scopeName",value:function(me){return this._extScope.name(me)}},{key:"scopeValue",value:function(me,ae){var Te=this._extScope.value(me,ae);return(this._values[Te.prefix]||(this._values[Te.prefix]=new Set)).add(Te),Te}},{key:"getScopeValue",value:function(me,ae){return this._extScope.getValue(me,ae)}},{key:"scopeRefs",value:function(me){return this._extScope.scopeRefs(me,this._values)}},{key:"scopeCode",value:function(){return this._extScope.scopeCode(this._values)}},{key:"_def",value:function(me,ae,Te,Oe){var Ze=this._scope.toName(ae);return void 0!==Te&&Oe&&(this._constants[Ze.str]=Te),this._leafNode(new s(me,Ze,Te)),Ze}},{key:"const",value:function(me,ae,Te){return this._def(e.varKinds.const,me,ae,Te)}},{key:"let",value:function(me,ae,Te){return this._def(e.varKinds.let,me,ae,Te)}},{key:"var",value:function(me,ae,Te){return this._def(e.varKinds.var,me,ae,Te)}},{key:"assign",value:function(me,ae,Te){return this._leafNode(new a(me,ae,Te))}},{key:"add",value:function(me,ae){return this._leafNode(new l(me,t.operators.ADD,ae))}},{key:"code",value:function(me){return"function"==typeof me?me():me!==n.nil&&this._leafNode(new d(me)),this}},{key:"object",value:function(){for(var me=["{"],ae=arguments.length,Te=new Array(ae),Oe=0;Oe1&&me.push(","),me.push(ct),(ct!==Ct||this.opts.es5)&&(me.push(":"),(0,n.addCodeArg)(me,Ct))}return me.push("}"),new n._Code(me)}},{key:"if",value:function(me,ae,Te){if(this._blockNode(new C(me)),ae&&Te)this.code(ae).else().code(Te).endIf();else if(ae)this.code(ae).endIf();else if(Te)throw new Error('CodeGen: "else" body without "then" body');return this}},{key:"elseIf",value:function(me){return this._elseNode(new C(me))}},{key:"else",value:function(){return this._elseNode(new w)}},{key:"endIf",value:function(){return this._endBlockNode(C,w)}},{key:"_for",value:function(me,ae){return this._blockNode(me),ae&&this.code(ae).endFor(),this}},{key:"for",value:function(me,ae){return this._for(new E(me),ae)}},{key:"forRange",value:function(me,ae,Te,Oe){var Ze=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.opts.es5?e.varKinds.var:e.varKinds.let,Ve=this._scope.toName(me);return this._for(new L(Ze,Ve,ae,Te),function(){return Oe(Ve)})}},{key:"forOf",value:function(me,ae,Te){var Oe=this,Ze=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.varKinds.const,Ve=this._scope.toName(me);if(this.opts.es5){var wt=ae instanceof n.Name?ae:this.var("_arr",ae);return this.forRange("_i",0,(0,n._)(VG||(VG=Je(["",".length"])),wt),function(ct){Oe.var(Ve,(0,n._)(zG||(zG=Je(["","[","]"])),wt,ct)),Te(Ve)})}return this._for(new B("of",Ze,Ve,ae),function(){return Te(Ve)})}},{key:"forIn",value:function(me,ae,Te){var Oe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.es5?e.varKinds.var:e.varKinds.const;if(this.opts.ownProperties)return this.forOf(me,(0,n._)(UG||(UG=Je(["Object.keys(",")"])),ae),Te);var Ze=this._scope.toName(me);return this._for(new B("in",Oe,Ze,ae),function(){return Te(Ze)})}},{key:"endFor",value:function(){return this._endBlockNode(k)}},{key:"label",value:function(me){return this._leafNode(new c(me))}},{key:"break",value:function(me){return this._leafNode(new u(me))}},{key:"return",value:function(me){var ae=new oe;if(this._blockNode(ae),this.code(me),1!==ae.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(oe)}},{key:"try",value:function(me,ae,Te){if(!ae&&!Te)throw new Error('CodeGen: "try" without "catch" and "finally"');var Oe=new fe;if(this._blockNode(Oe),this.code(me),ae){var Ze=this.name("e");this._currNode=Oe.catch=new re(Ze),ae(Ze)}return Te&&(this._currNode=Oe.finally=new ce,this.code(Te)),this._endBlockNode(re,ce)}},{key:"throw",value:function(me){return this._leafNode(new h(me))}},{key:"block",value:function(me,ae){return this._blockStarts.push(this._nodes.length),me&&this.code(me).endBlock(ae),this}},{key:"endBlock",value:function(me){var ae=this._blockStarts.pop();if(void 0===ae)throw new Error("CodeGen: not in self-balancing block");var Te=this._nodes.length-ae;if(Te<0||void 0!==me&&Te!==me)throw new Error("CodeGen: wrong number of nodes: ".concat(Te," vs ").concat(me," expected"));return this._nodes.length=ae,this}},{key:"func",value:function(me){var Oe=arguments.length>3?arguments[3]:void 0;return this._blockNode(new G(me,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.nil,arguments.length>2?arguments[2]:void 0)),Oe&&this.code(Oe).endFunc(),this}},{key:"endFunc",value:function(){return this._endBlockNode(G)}},{key:"optimize",value:function(){for(var me=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;me-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}},{key:"_leafNode",value:function(me){return this._currNode.nodes.push(me),this}},{key:"_blockNode",value:function(me){this._currNode.nodes.push(me),this._nodes.push(me)}},{key:"_endBlockNode",value:function(me,ae){var Te=this._currNode;if(Te instanceof me||ae&&Te instanceof ae)return this._nodes.pop(),this;throw new Error('CodeGen: not in block "'.concat(ae?"".concat(me.kind,"/").concat(ae.kind):me.kind,'"'))}},{key:"_elseNode",value:function(me){var ae=this._currNode;if(!(ae instanceof C))throw new Error('CodeGen: "else" without "if"');return this._currNode=ae.else=me,this}},{key:"_root",get:function(){return this._nodes[0]}},{key:"_currNode",get:function(){var me=this._nodes;return me[me.length-1]},set:function(me){var ae=this._nodes;ae[ae.length-1]=me}}]),Z}();function pe(Z,me){for(var ae in me)Z[ae]=(Z[ae]||0)+(me[ae]||0);return Z}function De(Z,me){return me instanceof n._CodeOrName?pe(Z,me.names):Z}function ie(Z,me,ae){return Z instanceof n.Name?Te(Z):(Oe=Z)instanceof n._Code&&Oe._items.some(function(Ze){return Ze instanceof n.Name&&1===me[Ze.str]&&void 0!==ae[Ze.str]})?new n._Code(Z._items.reduce(function(Oe,Ze){return Ze instanceof n.Name&&(Ze=Te(Ze)),Ze instanceof n._Code?Oe.push.apply(Oe,Ti(Ze._items)):Oe.push(Ze),Oe},[])):Z;var Oe;function Te(Oe){var Ze=ae[Oe.str];return void 0===Ze||1!==me[Oe.str]?Oe:(delete me[Oe.str],Ze)}}function ge(Z,me){for(var ae in me)Z[ae]=(Z[ae]||0)-(me[ae]||0)}function we(Z){return"boolean"==typeof Z||"number"==typeof Z||null===Z?!Z:(0,n._)(WG||(WG=Je(["!",""])),Q(Z))}t.CodeGen=ue,t.not=we;var le=z(t.operators.AND);t.and=function(){for(var Z=arguments.length,me=new Array(Z),ae=0;ae1&&void 0!==arguments[1]?arguments[1]:f.schema;if(f.opts.strictSchema&&"boolean"!=typeof p){var C=f.self.RULES.keywords;for(var k in p)C[k]||d(f,'unknown keyword: "'.concat(k,'"'))}}function r(f,p){if("boolean"==typeof f)return!f;for(var m in f)if(p[m])return!0;return!1}function o(f){return"number"==typeof f?"".concat(f):f.replace(/~/g,"~0").replace(/\//g,"~1")}function s(f){return f.replace(/~1/g,"/").replace(/~0/g,"~")}function a(f){var p=f.mergeNames,m=f.mergeToName,w=f.mergeValues,C=f.resultToName;return function(k,E,L,B){var G=void 0===L?E:L instanceof n.Name?(E instanceof n.Name?p(k,E,L):m(k,E,L),L):E instanceof n.Name?(m(k,L,E),E):w(E,L);return B!==n.Name||G instanceof n.Name?G:C(k,G)}}function l(f,p){if(!0===p)return f.var("props",!0);var m=f.var("props",(0,n._)(sq||(sq=Je(["{}"]))));return void 0!==p&&c(f,m,p),m}function c(f,p,m){Object.keys(m).forEach(function(w){return f.assign((0,n._)(aq||(aq=Je(["","",""])),p,(0,n.getProperty)(w)),!0)})}t.toHash=function(f){var p,m={},w=ot(f);try{for(w.s();!(p=w.n()).done;)m[p.value]=!0}catch(C){w.e(C)}finally{w.f()}return m},t.alwaysValidSchema=function(f,p){return"boolean"==typeof p?p:0===Object.keys(p).length||(i(f,p),!r(p,f.self.RULES.all))},t.checkUnknownRules=i,t.schemaHasRules=r,t.schemaHasRulesButRef=function(f,p){if("boolean"==typeof f)return!f;for(var m in f)if("$ref"!==m&&p.all[m])return!0;return!1},t.schemaRefOrVal=function(f,p,m,w){var C=f.topSchemaRef,k=f.schemaPath;if(!w){if("number"==typeof p||"boolean"==typeof p)return p;if("string"==typeof p)return(0,n._)(XG||(XG=Je(["",""])),p)}return(0,n._)(YG||(YG=Je(["","","",""])),C,k,(0,n.getProperty)(m))},t.unescapeFragment=function(f){return s(decodeURIComponent(f))},t.escapeFragment=function(f){return encodeURIComponent(o(f))},t.escapeJsonPointer=o,t.unescapeJsonPointer=s,t.eachItem=function(f,p){if(Array.isArray(f)){var m,w=ot(f);try{for(w.s();!(m=w.n()).done;)p(m.value)}catch(C){w.e(C)}finally{w.f()}}else p(f)},t.mergeEvaluated={props:a({mergeNames:function(f,p,m){return f.if((0,n._)(KG||(KG=Je([""," !== true && "," !== undefined"])),m,p),function(){f.if((0,n._)(JG||(JG=Je([""," === true"])),p),function(){return f.assign(m,!0)},function(){return f.assign(m,(0,n._)(QG||(QG=Je([""," || {}"])),m)).code((0,n._)(ZG||(ZG=Je(["Object.assign(",", ",")"])),m,p))})})},mergeToName:function(f,p,m){return f.if((0,n._)(eq||(eq=Je([""," !== true"])),m),function(){!0===p?f.assign(m,!0):(f.assign(m,(0,n._)(tq||(tq=Je([""," || {}"])),m)),c(f,m,p))})},mergeValues:function(f,p){return!0===f||_t(_t({},f),p)},resultToName:l}),items:a({mergeNames:function(f,p,m){return f.if((0,n._)(nq||(nq=Je([""," !== true && "," !== undefined"])),m,p),function(){return f.assign(m,(0,n._)(iq||(iq=Je([""," === true ? true : "," > "," ? "," : ",""])),p,m,p,m,p))})},mergeToName:function(f,p,m){return f.if((0,n._)(rq||(rq=Je([""," !== true"])),m),function(){return f.assign(m,!0===p||(0,n._)(oq||(oq=Je([""," > "," ? "," : ",""])),m,p,m,p))})},mergeValues:function(f,p){return!0===f||Math.max(f,p)},resultToName:function(f,p){return f.var("items",p)}})},t.evaluatedPropsToName=l,t.setEvaluated=c;var u,f,h={};function d(f,p){var m=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.opts.strictSchema;if(m){if(p="strict mode: ".concat(p),!0===m)throw new Error(p);f.self.logger.warn(p)}}t.useFunc=function(f,p){return f.scopeValue("func",{ref:p,code:h[p.code]||(h[p.code]=new e._Code(p.code))})},(f=u=t.Type||(t.Type={}))[f.Num=0]="Num",f[f.Str=1]="Str",t.getErrorPath=function(f,p,m){if(f instanceof n.Name){var w=p===u.Num;return(0,n._)(m?w?lq||(lq=Je(['"[" + ',' + "]"'])):cq||(cq=Je(['"[\'" + ',' + "\']"'])):w?uq||(uq=Je(['"/" + ',""])):hq||(hq=Je(['"/" + ','.replace(/~/g, "~0").replace(/\\//g, "~1")'],['"/" + ','.replace(/~/g, "~0").replace(/\\\\//g, "~1")'])),f)}return m?(0,n.getProperty)(f).toString():"/"+o(f)},t.checkStrictMode=d}(po);var nge,ige,rge,kD={};function kp(){if(nge)return kD;nge=1,Object.defineProperty(kD,"__esModule",{value:!0});var t=Gr(),n={data:new t.Name("data"),valCxt:new t.Name("valCxt"),instancePath:new t.Name("instancePath"),parentData:new t.Name("parentData"),parentDataProperty:new t.Name("parentDataProperty"),rootData:new t.Name("rootData"),dynamicAnchors:new t.Name("dynamicAnchors"),vErrors:new t.Name("vErrors"),errors:new t.Name("errors"),this:new t.Name("this"),self:new t.Name("self"),scope:new t.Name("scope"),json:new t.Name("json"),jsonPos:new t.Name("jsonPos"),jsonLen:new t.Name("jsonLen"),jsonPart:new t.Name("jsonPart")};return kD.default=n,kD}function DD(){return ige||(ige=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;var n=Gr(),e=po,i=kp();function r(h,d){var f=h.const("err",d);h.if((0,n._)(kq||(kq=Je([""," === null"])),i.default.vErrors),function(){return h.assign(i.default.vErrors,(0,n._)(Dq||(Dq=Je(["[","]"])),f))},(0,n._)(Tq||(Tq=Je(["",".push(",")"])),i.default.vErrors,f)),h.code((0,n._)(Aq||(Aq=Je(["","++"])),i.default.errors))}function o(h,d){var f=h.gen,p=h.validateName;h.schemaEnv.$async?f.throw((0,n._)(Eq||(Eq=Je(["new ","(",")"])),h.ValidationError,d)):(f.assign((0,n._)(Mq||(Mq=Je(["",".errors"])),p),d),f.return(!1))}t.keywordError={message:function(h){var d=h.keyword;return(0,n.str)(dq||(dq=Je(['must pass "','" keyword validation'])),d)}},t.keyword$DataError={message:function(h){var d=h.keyword,f=h.schemaType;return f?(0,n.str)(fq||(fq=Je(['"','" keyword must be '," ($data)"])),d,f):(0,n.str)(pq||(pq=Je(['"','" keyword is invalid ($data)'])),d)}},t.reportError=function(h){var p=arguments.length>3?arguments[3]:void 0,m=h.it,w=m.gen,C=m.compositeRule,k=m.allErrors,E=a(h,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.keywordError,arguments.length>2?arguments[2]:void 0);p??(C||k)?r(w,E):o(m,(0,n._)(gq||(gq=Je(["[","]"])),E))},t.reportExtraError=function(h){var p=h.it,w=p.compositeRule,C=p.allErrors;r(p.gen,a(h,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.keywordError,arguments.length>2?arguments[2]:void 0)),w||C||o(p,i.default.vErrors)},t.resetErrorsCount=function(h,d){h.assign(i.default.errors,d),h.if((0,n._)(mq||(mq=Je([""," !== null"])),i.default.vErrors),function(){return h.if(d,function(){return h.assign((0,n._)(vq||(vq=Je(["",".length"])),i.default.vErrors),d)},function(){return h.assign(i.default.vErrors,null)})})},t.extendErrors=function(h){var d=h.gen,f=h.keyword,p=h.schemaValue,m=h.data,w=h.errsCount,C=h.it;if(void 0===w)throw new Error("ajv implementation error");var k=d.name("err");d.forRange("i",w,i.default.errors,function(E){d.const(k,(0,n._)(yq||(yq=Je(["","[","]"])),i.default.vErrors,E)),d.if((0,n._)(bq||(bq=Je(["",".instancePath === undefined"])),k),function(){return d.assign((0,n._)(_q||(_q=Je(["",".instancePath"])),k),(0,n.strConcat)(i.default.instancePath,C.errorPath))}),d.assign((0,n._)(wq||(wq=Je(["",".schemaPath"])),k),(0,n.str)(xq||(xq=Je(["","/",""])),C.errSchemaPath,f)),C.opts.verbose&&(d.assign((0,n._)(Cq||(Cq=Je(["",".schema"])),k),p),d.assign((0,n._)(Sq||(Sq=Je(["",".data"])),k),m))})};var s={keyword:new n.Name("keyword"),schemaPath:new n.Name("schemaPath"),params:new n.Name("params"),propertyName:new n.Name("propertyName"),message:new n.Name("message"),schema:new n.Name("schema"),parentSchema:new n.Name("parentSchema")};function a(h,d,f){return!1===h.it.createErrors?(0,n._)(Iq||(Iq=Je(["{}"]))):function(p,m){var w=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},C=p.gen,k=[l(p.it,w),c(p,w)];return function u(h,d,f){var p=d.params,m=d.message,C=h.data,k=h.schemaValue,E=h.it,L=E.opts,B=E.propertyName,G=E.topSchemaRef,oe=E.schemaPath;f.push([s.keyword,h.keyword],[s.params,"function"==typeof p?p(h):p||(0,n._)(Nq||(Nq=Je(["{}"])))]),L.messages&&f.push([s.message,"function"==typeof m?m(h):m]),L.verbose&&f.push([s.schema,k],[s.parentSchema,(0,n._)(Rq||(Rq=Je(["","",""])),G,oe)],[i.default.data,C]),B&&f.push([s.propertyName,B])}(p,m,k),C.object.apply(C,k)}(h,d,f)}function l(h,d){var f=h.errorPath,p=d.instancePath,m=p?(0,n.str)(Fq||(Fq=Je(["","",""])),f,(0,e.getErrorPath)(p,e.Type.Str)):f;return[i.default.instancePath,(0,n.strConcat)(i.default.instancePath,m)]}function c(h,d){var f=h.keyword,p=h.it.errSchemaPath,m=d.schemaPath,w=d.parentSchema?p:(0,n.str)(Lq||(Lq=Je(["","/",""])),p,f);return m&&(w=(0,n.str)(Oq||(Oq=Je(["","",""])),w,(0,e.getErrorPath)(m,e.Type.Str))),[s.schemaPath,w]}}(Ype)),Ype}var E_={},em={};Object.defineProperty(em,"__esModule",{value:!0}),em.getRules=em.isJSONType=void 0;var lit=new Set(["string","number","integer","boolean","null","object","array"]);em.isJSONType=function(t){return"string"==typeof t&&lit.has(t)},em.getRules=function(){var t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:_t(_t({},t),{},{integer:!0,boolean:!0,null:!0}),rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}};var oge,pf={};function sge(){if(oge)return pf;function t(e,i){return i.rules.some(function(r){return n(e,r)})}function n(e,i){var r;return void 0!==e[i.keyword]||(null===(r=i.definition.implements)||void 0===r?void 0:r.some(function(o){return void 0!==e[o]}))}return oge=1,Object.defineProperty(pf,"__esModule",{value:!0}),pf.shouldUseRule=pf.shouldUseGroup=pf.schemaHasRulesForType=void 0,pf.schemaHasRulesForType=function(e,i){var o=e.self.RULES.types[i];return o&&!0!==o&&t(e.schema,o)},pf.shouldUseGroup=t,pf.shouldUseRule=n,pf}!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;var n,f,e=em,i=sge(),r=DD(),o=Gr(),s=po;function a(f){var p=Array.isArray(f)?f:f?[f]:[];if(p.every(e.isJSONType))return p;throw new Error("type must be JSONType or JSONType[]: "+p.join(","))}(f=n=t.DataType||(t.DataType={}))[f.Correct=0]="Correct",f[f.Wrong=1]="Wrong",t.getSchemaTypes=function(f){var p=a(f.type);if(p.includes("null")){if(!1===f.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!p.length&&void 0!==f.nullable)throw new Error('"nullable" cannot be used without "type"');!0===f.nullable&&p.push("null")}return p},t.getJSONTypes=a,t.coerceAndCheckDataType=function(f,p){var G,m=f.gen,w=f.data,C=f.opts,k=(G=C.coerceTypes)?p.filter(function(oe){return l.has(oe)||"array"===G&&"array"===oe}):[],E=p.length>0&&!(0===k.length&&1===p.length&&(0,i.schemaHasRulesForType)(f,p[0]));if(E){var L=u(p,w,C.strictNumbers,n.Wrong);m.if(L,function(){k.length?function(B,G,oe){var fe=B.gen,re=B.data,ce=B.opts,ue=fe.let("dataType",(0,o._)(Pq||(Pq=Je(["typeof ",""])),re)),pe=fe.let("coerced",(0,o._)(jq||(jq=Je(["undefined"]))));"array"===ce.coerceTypes&&fe.if((0,o._)(Bq||(Bq=Je([""," == 'object' && Array.isArray(",") && ",".length == 1"])),ue,re,re),function(){return fe.assign(re,(0,o._)(Hq||(Hq=Je(["","[0]"])),re)).assign(ue,(0,o._)(Vq||(Vq=Je(["typeof ",""])),re)).if(u(G,re,ce.strictNumbers),function(){return fe.assign(pe,re)})}),fe.if((0,o._)(zq||(zq=Je([""," !== undefined"])),pe));var De,ie=ot(oe);try{for(ie.s();!(De=ie.n()).done;){var ge=De.value;(l.has(ge)||"array"===ge&&"array"===ce.coerceTypes)&&we(ge)}}catch(le){ie.e(le)}finally{ie.f()}function we(le){switch(le){case"string":return void fe.elseIf((0,o._)(Wq||(Wq=Je(["",' == "number" || ',' == "boolean"'])),ue,ue)).assign(pe,(0,o._)(Gq||(Gq=Je(['"" + ',""])),re)).elseIf((0,o._)(qq||(qq=Je([""," === null"])),re)).assign(pe,(0,o._)(Xq||(Xq=Je(['""']))));case"number":return void fe.elseIf((0,o._)(Yq||(Yq=Je(["",' == "boolean" || '," === null\n || (",' == "string" && '," && "," == +",")"])),ue,re,ue,re,re,re)).assign(pe,(0,o._)(Kq||(Kq=Je(["+",""])),re));case"integer":return void fe.elseIf((0,o._)(Jq||(Jq=Je(["",' === "boolean" || '," === null\n || (",' === "string" && '," && "," == +"," && !("," % 1))"])),ue,re,ue,re,re,re,re)).assign(pe,(0,o._)(Qq||(Qq=Je(["+",""])),re));case"boolean":return void fe.elseIf((0,o._)(Zq||(Zq=Je(["",' === "false" || '," === 0 || "," === null"])),re,re,re)).assign(pe,!1).elseIf((0,o._)(eX||(eX=Je(["",' === "true" || '," === 1"])),re,re)).assign(pe,!0);case"null":return fe.elseIf((0,o._)(tX||(tX=Je(["",' === "" || '," === 0 || "," === false"])),re,re,re)),void fe.assign(pe,null);case"array":fe.elseIf((0,o._)(nX||(nX=Je(["",' === "string" || ',' === "number"\n || ',' === "boolean" || '," === null"])),ue,ue,ue,re)).assign(pe,(0,o._)(iX||(iX=Je(["[","]"])),re))}}fe.else(),d(B),fe.endIf(),fe.if((0,o._)(Uq||(Uq=Je([""," !== undefined"])),pe),function(){var le,Fe,z,Q,Z;fe.assign(re,pe),Fe=pe,Q=(le=B).parentData,Z=le.parentDataProperty,(z=le.gen).if((0,o._)(rX||(rX=Je([""," !== undefined"])),Q),function(){return z.assign((0,o._)(oX||(oX=Je(["","[","]"])),Q,Z),Fe)})})}(f,p,k):d(f)})}return E};var l=new Set(["string","number","integer","boolean","null"]);function c(f,p,m){var w,C=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.Correct,k=C===n.Correct?o.operators.EQ:o.operators.NEQ;switch(f){case"null":return(0,o._)(sX||(sX=Je([""," "," null"])),p,k);case"array":w=(0,o._)(aX||(aX=Je(["Array.isArray(",")"])),p);break;case"object":w=(0,o._)(lX||(lX=Je([""," && typeof ",' == "object" && !Array.isArray(',")"])),p,p,p);break;case"integer":w=E((0,o._)(cX||(cX=Je(["!("," % 1) && !isNaN(",")"])),p,p));break;case"number":w=E();break;default:return(0,o._)(uX||(uX=Je(["typeof "," "," ",""])),p,k,f)}return C===n.Correct?w:(0,o.not)(w);function E(){var L=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.nil;return(0,o.and)((0,o._)(hX||(hX=Je(["typeof ",' == "number"'])),p),L,m?(0,o._)(dX||(dX=Je(["isFinite(",")"])),p):o.nil)}}function u(f,p,m,w){if(1===f.length)return c(f[0],p,m,w);var C,k=(0,s.toHash)(f);if(k.array&&k.object){var E=(0,o._)(fX||(fX=Je(["typeof ",' != "object"'])),p);C=k.null?E:(0,o._)(pX||(pX=Je(["!"," || ",""])),p,E),delete k.null,delete k.array,delete k.object}else C=o.nil;for(var L in k.number&&delete k.integer,k)C=(0,o.and)(C,c(L,p,m,w));return C}t.checkDataType=c,t.checkDataTypes=u;var h={message:function(f){return"must be ".concat(f.schema)},params:function(f){var p=f.schema,m=f.schemaValue;return"string"==typeof p?(0,o._)(gX||(gX=Je(["{type: ","}"])),p):(0,o._)(mX||(mX=Je(["{type: ","}"])),m)}};function d(f){var m,w,C,k,E,p=(w=(m=f).gen,C=m.data,E=(0,s.schemaRefOrVal)(m,k=m.schema,"type"),{gen:w,keyword:"type",data:C,schema:k.type,schemaCode:E,schemaValue:E,parentSchema:k,params:{},it:m});(0,r.reportError)(p,h)}t.reportTypeError=d}(E_);var age,lge,cge,M_={},ph={},Oo={};function gh(){if(lge)return Oo;lge=1,Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.validateUnion=Oo.validateArray=Oo.usePattern=Oo.callValidateCode=Oo.schemaProperties=Oo.allSchemaProperties=Oo.noPropertyInData=Oo.propertyInData=Oo.isOwnProperty=Oo.hasPropFunc=Oo.reportMissingProp=Oo.checkMissingProp=Oo.checkReportMissingProp=void 0;var t=Gr(),n=po,e=kp(),i=po;function r(c){return c.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,t._)(CX||(CX=Je(["Object.prototype.hasOwnProperty"])))})}function o(c,u,h){return(0,t._)(SX||(SX=Je(["",".call(",", ",")"])),r(c),u,h)}function s(c,u,h,d){var f=(0,t._)(TX||(TX=Je(["",""," === undefined"])),u,(0,t.getProperty)(h));return d?(0,t.or)(f,(0,t.not)(o(c,u,h))):f}function a(c){return c?Object.keys(c).filter(function(u){return"__proto__"!==u}):[]}Oo.checkReportMissingProp=function(c,u){var h=c.gen;h.if(s(h,c.data,u,c.it.opts.ownProperties),function(){c.setParams({missingProperty:(0,t._)(wX||(wX=Je(["",""])),u)},!0),c.error()})},Oo.checkMissingProp=function(c,u,h){var d=c.gen,f=c.data,p=c.it.opts;return t.or.apply(void 0,Ti(u.map(function(m){return(0,t.and)(s(d,f,m,p.ownProperties),(0,t._)(xX||(xX=Je([""," = ",""])),h,m))})))},Oo.reportMissingProp=function(c,u){c.setParams({missingProperty:u},!0),c.error()},Oo.hasPropFunc=r,Oo.isOwnProperty=o,Oo.propertyInData=function(c,u,h,d){var f=(0,t._)(kX||(kX=Je(["",""," !== undefined"])),u,(0,t.getProperty)(h));return d?(0,t._)(DX||(DX=Je([""," && ",""])),f,o(c,u,h)):f},Oo.noPropertyInData=s,Oo.allSchemaProperties=a,Oo.schemaProperties=function(c,u){return a(u).filter(function(h){return!(0,n.alwaysValidSchema)(c,u[h])})},Oo.callValidateCode=function(c,u,h,d){var f=c.schemaCode,p=c.data,m=c.it,w=m.gen,C=m.topSchemaRef,k=m.schemaPath,E=m.errorPath,L=c.it,B=d?(0,t._)(AX||(AX=Je(["",", ",", ","",""])),f,p,C,k):p,G=[[e.default.instancePath,(0,t.strConcat)(e.default.instancePath,E)],[e.default.parentData,L.parentData],[e.default.parentDataProperty,L.parentDataProperty],[e.default.rootData,e.default.rootData]];L.opts.dynamicRef&&G.push([e.default.dynamicAnchors,e.default.dynamicAnchors]);var oe=(0,t._)(EX||(EX=Je(["",", ",""])),B,w.object.apply(w,G));return h!==t.nil?(0,t._)(MX||(MX=Je(["",".call(",", ",")"])),u,h,oe):(0,t._)(IX||(IX=Je(["","(",")"])),u,oe)};var l=(0,t._)(FX||(FX=Je(["new RegExp"])));return Oo.usePattern=function(c,u){var h=c.gen,d=c.it.opts,f=d.unicodeRegExp?"u":"",p=d.code.regExp,m=p(u,f);return h.scopeValue("pattern",{key:m.toString(),ref:m,code:(0,t._)(LX||(LX=Je(["","(",", ",")"])),"new RegExp"===p.code?l:(0,i.useFunc)(h,p),u,f)})},Oo.validateArray=function(c){var u=c.gen,h=c.data,d=c.keyword,f=c.it,p=u.name("valid");if(f.allErrors){var m=u.let("valid",!0);return w(function(){return u.assign(m,!1)}),m}return u.var(p,!0),w(function(){return u.break()}),p;function w(C){var k=u.const("len",(0,t._)(OX||(OX=Je(["",".length"])),h));u.forRange("i",0,k,function(E){c.subschema({keyword:d,dataProp:E,dataPropType:n.Type.Num},p),u.if((0,t.not)(p),C)})}},Oo.validateUnion=function(c){var u=c.gen,h=c.schema,d=c.keyword,f=c.it;if(!Array.isArray(h))throw new Error("ajv implementation error");if(!h.some(function(w){return(0,n.alwaysValidSchema)(f,w)})||f.opts.unevaluated){var p=u.let("valid",!1),m=u.name("_valid");u.block(function(){return h.forEach(function(w,C){var k=c.subschema({keyword:d,schemaProp:C,compositeRule:!0},m);u.assign(p,(0,t._)(NX||(NX=Je([""," || ",""])),p,m)),c.mergeValidEvaluated(k,m)||u.if((0,t.not)(p))})}),c.result(p,function(){return c.reset()},function(){return c.error(!0)})}},Oo}var uge,gf={},sl={},hge=function t(n,e){if(n===e)return!0;if(n&&e&&"object"==$n(n)&&"object"==$n(e)){if(n.constructor!==e.constructor)return!1;var i,r,o;if(Array.isArray(n)){if((i=n.length)!=e.length)return!1;for(r=i;0!=r--;)if(!t(n[r],e[r]))return!1;return!0}if(n.constructor===RegExp)return n.source===e.source&&n.flags===e.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===e.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===e.toString();if((i=(o=Object.keys(n)).length)!==Object.keys(e).length)return!1;for(r=i;0!=r--;)if(!Object.prototype.hasOwnProperty.call(e,o[r]))return!1;for(r=i;0!=r--;){var s=o[r];if(!t(n[s],e[s]))return!1}return!0}return n!=n&&e!=e},C$={},uit={get exports(){return C$},set exports(t){C$=t}},Dp=uit.exports=function(t,n,e){"function"==typeof n&&(e=n,n={}),TD(n,"function"==typeof(e=n.cb||e)?e:e.pre||function(){},e.post||function(){},t,"",t)};function TD(t,n,e,i,r,o,s,a,l,c){if(i&&"object"==$n(i)&&!Array.isArray(i)){for(var u in n(i,r,o,s,a,l,c),i){var h=i[u];if(Array.isArray(h)){if(u in Dp.arrayKeywords)for(var d=0;d1&&void 0!==arguments[1])||arguments[1];return"boolean"==typeof t||(!0===n?!S$(t):!!n&&dge(t)<=n)};var git=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function S$(t){for(var n in t){if(git.has(n))return!0;var e=t[n];if(Array.isArray(e)&&e.some(S$)||"object"==$n(e)&&S$(e))return!0}return!1}function dge(t){var n=0;for(var e in t)if("$ref"===e||(n++,!pit.has(e)&&("object"==$n(t[e])&&(0,hit.eachItem)(t[e],function(i){return n+=dge(i)}),n===1/0)))return 1/0;return n}function fge(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";!1!==(arguments.length>2?arguments[2]:void 0)&&(n=H0(n));var i=t.parse(n);return pge(t,i)}function pge(t,n){return t.serialize(n).split("#")[0]+"#"}sl.getFullPath=fge,sl._getFullPath=pge;var mit=/#\/?$/;function H0(t){return t?t.replace(mit,""):""}sl.normalizeId=H0,sl.resolveUrl=function(t,n,e){return e=H0(e),t.resolve(n,e)};var gge,vit=/^[a-z_][-a-z0-9._]*$/i;function AD(){if(gge)return ff;gge=1,Object.defineProperty(ff,"__esModule",{value:!0}),ff.getData=ff.KeywordCxt=ff.validateFunctionCode=void 0;var t=function(){if(rge)return Zg;rge=1,Object.defineProperty(Zg,"__esModule",{value:!0}),Zg.boolOrEmptySchema=Zg.topBoolOrEmptySchema=void 0;var ie=DD(),ge=Gr(),we=kp(),le={message:"boolean schema is false"};function Fe(z,Q){(0,ie.reportError)({gen:z.gen,keyword:"false schema",data:z.data,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:z},le,void 0,Q)}return Zg.topBoolOrEmptySchema=function(z){var Q=z.gen,Z=z.schema,me=z.validateName;!1===Z?Fe(z,!1):"object"==$n(Z)&&!0===Z.$async?Q.return(we.default.data):(Q.assign((0,ge._)($q||($q=Je(["",".errors"])),me),null),Q.return(!0))},Zg.boolOrEmptySchema=function(z,Q){var Z=z.gen;!1===z.schema?(Z.var(Q,!1),Fe(z)):Z.var(Q,!0)},Zg}(),n=E_,e=sge(),i=E_,r=function(){if(age)return M_;age=1,Object.defineProperty(M_,"__esModule",{value:!0}),M_.assignDefaults=void 0;var ie=Gr(),ge=po;function we(le,Fe,z){var Q=le.gen,Z=le.compositeRule,me=le.data,ae=le.opts;if(void 0!==z){var Te=(0,ie._)(vX||(vX=Je(["","",""])),me,(0,ie.getProperty)(Fe));if(Z)(0,ge.checkStrictMode)(le,"default is ignored for: ".concat(Te));else{var Oe=(0,ie._)(yX||(yX=Je([""," === undefined"])),Te);"empty"===ae.useDefaults&&(Oe=(0,ie._)(bX||(bX=Je([""," || "," === null || ",' === ""'])),Oe,Te,Te)),Q.if(Oe,(0,ie._)(_X||(_X=Je([""," = ",""])),Te,(0,ie.stringify)(z)))}}}return M_.assignDefaults=function(le,Fe){var z=le.schema,Q=z.properties,Z=z.items;if("object"===Fe&&Q)for(var me in Q)we(le,me,Q[me].default);else"array"===Fe&&Array.isArray(Z)&&Z.forEach(function(ae,Te){return we(le,Te,ae.default)})},M_}(),o=function cit(){if(cge)return ph;cge=1,Object.defineProperty(ph,"__esModule",{value:!0}),ph.validateKeywordUsage=ph.validSchemaType=ph.funcKeywordCode=ph.macroKeywordCode=void 0;var t=Gr(),n=kp(),e=gh(),i=DD();function r(s){var a=s.gen,l=s.data,c=s.it;a.if(c.parentData,function(){return a.assign(l,(0,t._)(VX||(VX=Je(["","[","]"])),c.parentData,c.parentDataProperty))})}function o(s,a,l){if(void 0===l)throw new Error('keyword "'.concat(a,'" failed to compile'));return s.scopeValue("keyword","function"==typeof l?{ref:l}:{ref:l,code:(0,t.stringify)(l)})}return ph.macroKeywordCode=function(s,a){var l=s.gen,c=s.keyword,d=s.it,f=a.macro.call(d.self,s.schema,s.parentSchema,d),p=o(l,c,f);!1!==d.opts.validateSchema&&d.self.validateSchema(f,!0);var m=l.name("valid");s.subschema({schema:f,schemaPath:t.nil,errSchemaPath:"".concat(d.errSchemaPath,"/").concat(c),topSchemaRef:p,compositeRule:!0},m),s.pass(m,function(){return s.error(!0)})},ph.funcKeywordCode=function(s,a){var l,c=s.gen,u=s.keyword,h=s.schema,d=s.parentSchema,f=s.$data,p=s.it;!function(L,B){if(B.async&&!L.schemaEnv.$async)throw new Error("async keyword in sync schema")}(p,a);var m=!f&&a.compile?a.compile.call(p.self,h,d,p):a.validate,w=o(c,u,m),C=c.let("valid");function k(){var L=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.async?(0,t._)(BX||(BX=Je(["await "]))):t.nil,B=p.opts.passContext?n.default.this:n.default.self,G=!("compile"in a&&!f||!1===a.schema);c.assign(C,(0,t._)(HX||(HX=Je(["","",""])),L,(0,e.callValidateCode)(s,w,B,G)),a.modifying)}function E(L){var B;c.if((0,t.not)(null!==(B=a.valid)&&void 0!==B?B:C),L)}s.block$data(C,function(){if(!1===a.errors)k(),a.modifying&&r(s),E(function(){return s.error()});else{var L=a.async?(G=c.let("ruleErrs",null),c.try(function(){return k((0,t._)(RX||(RX=Je(["await "]))))},function(oe){return c.assign(C,!1).if((0,t._)($X||($X=Je([""," instanceof ",""])),oe,p.ValidationError),function(){return c.assign(G,(0,t._)(PX||(PX=Je(["",".errors"])),oe))},function(){return c.throw(oe)})}),G):(B=(0,t._)(jX||(jX=Je(["",".errors"])),w),c.assign(B,null),k(t.nil),B);a.modifying&&r(s),E(function(){return function(G,oe){var fe=G.gen;fe.if((0,t._)(zX||(zX=Je(["Array.isArray(",")"])),oe),function(){fe.assign(n.default.vErrors,(0,t._)(UX||(UX=Je([""," === null ? "," : ",".concat(",")"])),n.default.vErrors,oe,n.default.vErrors,oe)).assign(n.default.errors,(0,t._)(WX||(WX=Je(["",".length"])),n.default.vErrors)),(0,i.extendErrors)(G)},function(){return G.error()})}(s,L)})}var G,B}),s.ok(null!==(l=a.valid)&&void 0!==l?l:C)},ph.validSchemaType=function(s,a){var l=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!a.length||a.some(function(c){return"array"===c?Array.isArray(s):"object"===c?s&&"object"==$n(s)&&!Array.isArray(s):$n(s)==c||l&&void 0===s})},ph.validateKeywordUsage=function(s,a,l){var c=s.schema,u=s.opts,h=s.self,d=s.errSchemaPath;if(Array.isArray(a.keyword)?!a.keyword.includes(l):a.keyword!==l)throw new Error("ajv implementation error");var f=a.dependencies;if(f?.some(function(m){return!Object.prototype.hasOwnProperty.call(c,m)}))throw new Error("parent schema must have dependencies of ".concat(l,": ").concat(f.join(",")));if(a.validateSchema&&!a.validateSchema(c[l])){var p='keyword "'.concat(l,'" value is invalid at path "').concat(d,'": ')+h.errorsText(a.validateSchema.errors);if("log"!==u.validateSchema)throw new Error(p);h.logger.error(p)}},ph}(),s=function(){if(uge)return gf;uge=1,Object.defineProperty(gf,"__esModule",{value:!0}),gf.extendSubschemaMode=gf.extendSubschemaData=gf.getSubschema=void 0;var ie=Gr(),ge=po;return gf.getSubschema=function(we,le){var Fe=le.keyword,z=le.schemaProp,Q=le.schema,Z=le.schemaPath,me=le.errSchemaPath,ae=le.topSchemaRef;if(void 0!==Fe&&void 0!==Q)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==Fe){var Te=we.schema[Fe];return void 0===z?{schema:Te,schemaPath:(0,ie._)(GX||(GX=Je(["","",""])),we.schemaPath,(0,ie.getProperty)(Fe)),errSchemaPath:"".concat(we.errSchemaPath,"/").concat(Fe)}:{schema:Te[z],schemaPath:(0,ie._)(qX||(qX=Je(["","","",""])),we.schemaPath,(0,ie.getProperty)(Fe),(0,ie.getProperty)(z)),errSchemaPath:"".concat(we.errSchemaPath,"/").concat(Fe,"/").concat((0,ge.escapeFragment)(z))}}if(void 0!==Q){if(void 0===Z||void 0===me||void 0===ae)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:Q,schemaPath:Z,topSchemaRef:ae,errSchemaPath:me}}throw new Error('either "keyword" or "schema" must be passed')},gf.extendSubschemaData=function(we,le,Fe){var z=Fe.dataProp,Q=Fe.dataPropType,Z=Fe.data,me=Fe.dataTypes,ae=Fe.propertyName;if(void 0!==Z&&void 0!==z)throw new Error('both "data" and "dataProp" passed, only one allowed');var Te=le.gen;if(void 0!==z){var Oe=le.errorPath,Ze=le.dataPathArr,Ve=le.opts;wt(Te.let("data",(0,ie._)(XX||(XX=Je(["","",""])),le.data,(0,ie.getProperty)(z)),!0)),we.errorPath=(0,ie.str)(YX||(YX=Je(["","",""])),Oe,(0,ge.getErrorPath)(z,Q,Ve.jsPropertySyntax)),we.parentDataProperty=(0,ie._)(KX||(KX=Je(["",""])),z),we.dataPathArr=[].concat(Ti(Ze),[we.parentDataProperty])}function wt(ct){we.data=ct,we.dataLevel=le.dataLevel+1,we.dataTypes=[],le.definedProperties=new Set,we.parentData=le.data,we.dataNames=[].concat(Ti(le.dataNames),[ct])}void 0!==Z&&(wt(Z instanceof ie.Name?Z:Te.let("data",Z,!0)),void 0!==ae&&(we.propertyName=ae)),me&&(we.dataTypes=me)},gf.extendSubschemaMode=function(we,le){var Fe=le.jtdDiscriminator,z=le.jtdMetadata,Q=le.compositeRule,Z=le.createErrors,me=le.allErrors;void 0!==Q&&(we.compositeRule=Q),void 0!==Z&&(we.createErrors=Z),void 0!==me&&(we.allErrors=me),we.jtdDiscriminator=Fe,we.jtdMetadata=z},gf}(),a=Gr(),l=kp(),c=sl,u=po,h=DD();function d(ie,ge){var Z,we=ie.gen,le=ie.validateName,Fe=ie.schema,z=ie.schemaEnv,Q=ie.opts;Q.code.es5?we.func(le,(0,a._)(JX||(JX=Je(["",", ",""])),l.default.data,l.default.valCxt),z.$async,function(){var Z,me;we.code((0,a._)(QX||(QX=Je(['"use strict"; ',""])),f(Fe,Q))),me=Q,(Z=we).if(l.default.valCxt,function(){Z.var(l.default.instancePath,(0,a._)(nY||(nY=Je(["",".",""])),l.default.valCxt,l.default.instancePath)),Z.var(l.default.parentData,(0,a._)(iY||(iY=Je(["",".",""])),l.default.valCxt,l.default.parentData)),Z.var(l.default.parentDataProperty,(0,a._)(rY||(rY=Je(["",".",""])),l.default.valCxt,l.default.parentDataProperty)),Z.var(l.default.rootData,(0,a._)(oY||(oY=Je(["",".",""])),l.default.valCxt,l.default.rootData)),me.dynamicRef&&Z.var(l.default.dynamicAnchors,(0,a._)(sY||(sY=Je(["",".",""])),l.default.valCxt,l.default.dynamicAnchors))},function(){Z.var(l.default.instancePath,(0,a._)(aY||(aY=Je(['""'])))),Z.var(l.default.parentData,(0,a._)(lY||(lY=Je(["undefined"])))),Z.var(l.default.parentDataProperty,(0,a._)(cY||(cY=Je(["undefined"])))),Z.var(l.default.rootData,l.default.data),me.dynamicRef&&Z.var(l.default.dynamicAnchors,(0,a._)(uY||(uY=Je(["{}"]))))}),we.code(ge)}):we.func(le,(0,a._)(ZX||(ZX=Je(["",", ",""])),l.default.data,(Z=Q,(0,a._)(eY||(eY=Je(["{",'="", ',", ",", ","=","","}={}"])),l.default.instancePath,l.default.parentData,l.default.parentDataProperty,l.default.rootData,l.default.data,Z.dynamicRef?(0,a._)(tY||(tY=Je([", ","={}"])),l.default.dynamicAnchors):a.nil))),z.$async,function(){return we.code(f(Fe,Q)).code(ge)})}function f(ie,ge){var we="object"==$n(ie)&&ie[ge.schemaId];return we&&(ge.code.source||ge.code.process)?(0,a._)(yY||(yY=Je(["/*# sourceURL="," */"])),we):a.nil}function m(ie){var ge=ie.schema,we=ie.self;if("boolean"==typeof ge)return!ge;for(var le in ge)if(we.RULES.all[le])return!0;return!1}function w(ie){return"boolean"!=typeof ie.schema}function C(ie){var ge,we,le,z;(0,u.checkUnknownRules)(ie),le=(ge=ie).errSchemaPath,z=ge.self,(we=ge.schema).$ref&&ge.opts.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(we,z.RULES)&&z.logger.warn('$ref: keywords ignored in schema at path "'.concat(le,'"'))}function k(ie,ge){if(ie.opts.jtd)return L(ie,[],!1,ge);var we=(0,n.getSchemaTypes)(ie.schema);L(ie,we,!(0,n.coerceAndCheckDataType)(ie,we),ge)}function E(ie){var ge=ie.gen,we=ie.schemaEnv,Fe=ie.errSchemaPath,z=ie.opts,Q=ie.schema.$comment;if(!0===z.$comment)ge.code((0,a._)(_Y||(_Y=Je(["",".logger.log(",")"])),l.default.self,Q));else if("function"==typeof z.$comment){var Z=(0,a.str)(wY||(wY=Je(["","/$comment"])),Fe),me=ge.scopeValue("root",{ref:we.root});ge.code((0,a._)(xY||(xY=Je(["",".opts.$comment(",", ",", ",".schema)"])),l.default.self,Q,Z,me))}}function L(ie,ge,we,le){var Oe,Ze,Ve,wt,Fe=ie.gen,z=ie.schema,Q=ie.data,Z=ie.allErrors,me=ie.opts,ae=ie.self.RULES;function Te(Oe){(0,e.shouldUseGroup)(z,Oe)&&(Oe.type?(Fe.if((0,i.checkDataType)(Oe.type,Q,me.strictNumbers)),B(ie,Oe),1===ge.length&&ge[0]===Oe.type&&we&&(Fe.else(),(0,i.reportTypeError)(ie)),Fe.endIf()):B(ie,Oe),Z||Fe.if((0,a._)(EY||(EY=Je([""," === ",""])),l.default.errors,le||0)))}!z.$ref||!me.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(z,ae)?(me.jtd||(Ze=ge,(Oe=ie).schemaEnv.meta||!Oe.opts.strictTypes||(function(Ve,wt){if(wt.length){if(!Ve.dataTypes.length)return void(Ve.dataTypes=wt);wt.forEach(function(ct){oe(Ve.dataTypes,ct)||fe(Ve,'type "'.concat(ct,'" not allowed by context "').concat(Ve.dataTypes.join(","),'"'))}),function(ct,Ct){var se,Se=[],ke=ot(ct.dataTypes);try{for(ke.s();!(se=ke.n()).done;){var Qe=se.value;oe(Ct,Qe)?Se.push(Qe):Ct.includes("integer")&&"number"===Qe&&Se.push("integer")}}catch(gt){ke.e(gt)}finally{ke.f()}ct.dataTypes=Se}(Ve,wt)}}(Oe,Ze),Oe.opts.allowUnionTypes||(Ve=Oe,(wt=Ze).length>1&&(2!==wt.length||!wt.includes("null"))&&fe(Ve,"use allowUnionTypes to allow union type keyword")),function(Ve,wt){var ct=Ve.self.RULES.all;for(var Ct in ct){var se=ct[Ct];if("object"==$n(se)&&(0,e.shouldUseRule)(Ve.schema,se)){var Se=se.definition.type;Se.length&&!Se.some(function(ke){return G(wt,ke)})&&fe(Ve,'missing type "'.concat(Se.join(","),'" for keyword "').concat(Ct,'"'))}}}(Oe,Oe.dataTypes))),Fe.block(function(){var Oe,Ze=ot(ae.rules);try{for(Ze.s();!(Oe=Ze.n()).done;)Te(Oe.value)}catch(Ve){Ze.e(Ve)}finally{Ze.f()}Te(ae.post)})):Fe.block(function(){return ce(ie,"$ref",ae.all.$ref.definition)})}function B(ie,ge){var we=ie.gen,le=ie.schema;ie.opts.useDefaults&&(0,r.assignDefaults)(ie,ge.type),we.block(function(){var Fe,z=ot(ge.rules);try{for(z.s();!(Fe=z.n()).done;){var Q=Fe.value;(0,e.shouldUseRule)(le,Q)&&ce(ie,Q.keyword,Q.definition,ge.type)}}catch(Z){z.e(Z)}finally{z.f()}})}function G(ie,ge){return ie.includes(ge)||"number"===ge&&ie.includes("integer")}function oe(ie,ge){return ie.includes(ge)||"integer"===ge&&ie.includes("number")}function fe(ie,ge){ge+=' at "'.concat(ie.schemaEnv.baseId+ie.errSchemaPath,'" (strictTypes)'),(0,u.checkStrictMode)(ie,ge,ie.opts.strictTypes)}ff.validateFunctionCode=function(ie){var ge,we,le,Fe;w(ie)&&(C(ie),m(ie))?(we=(ge=ie).schema,le=ge.opts,Fe=ge.gen,d(ge,function(){var z,Z;le.$comment&&we.$comment&&E(ge),Z=(z=ge).opts,void 0!==z.schema.default&&Z.useDefaults&&Z.strictSchema&&(0,u.checkStrictMode)(z,"default is ignored in the schema root"),Fe.let(l.default.vErrors,null),Fe.let(l.default.errors,0),le.unevaluated&&function(z){var Q=z.gen,Z=z.validateName;z.evaluated=Q.const("evaluated",(0,a._)(hY||(hY=Je(["",".evaluated"])),Z)),Q.if((0,a._)(dY||(dY=Je(["",".dynamicProps"])),z.evaluated),function(){return Q.assign((0,a._)(fY||(fY=Je(["",".props"])),z.evaluated),(0,a._)(pY||(pY=Je(["undefined"]))))}),Q.if((0,a._)(gY||(gY=Je(["",".dynamicItems"])),z.evaluated),function(){return Q.assign((0,a._)(mY||(mY=Je(["",".items"])),z.evaluated),(0,a._)(vY||(vY=Je(["undefined"]))))})}(ge),k(ge),function(z){var Oe,Ze,Ve,wt,ct,Q=z.gen,me=z.validateName,ae=z.ValidationError,Te=z.opts;z.schemaEnv.$async?Q.if((0,a._)(CY||(CY=Je([""," === 0"])),l.default.errors),function(){return Q.return(l.default.data)},function(){return Q.throw((0,a._)(SY||(SY=Je(["new ","(",")"])),ae,l.default.vErrors))}):(Q.assign((0,a._)(kY||(kY=Je(["",".errors"])),me),l.default.vErrors),Te.unevaluated&&(Ze=(Oe=z).gen,Ve=Oe.evaluated,ct=Oe.items,(wt=Oe.props)instanceof a.Name&&Ze.assign((0,a._)(TY||(TY=Je(["",".props"])),Ve),wt),ct instanceof a.Name&&Ze.assign((0,a._)(AY||(AY=Je(["",".items"])),Ve),ct)),Q.return((0,a._)(DY||(DY=Je([""," === 0"])),l.default.errors)))}(ge)})):d(ie,function(){return(0,t.topBoolOrEmptySchema)(ie)})};var re=function(){function ie(ge,we,le){if(qe(this,ie),(0,o.validateKeywordUsage)(ge,we,le),this.gen=ge.gen,this.allErrors=ge.allErrors,this.keyword=le,this.data=ge.data,this.schema=ge.schema[le],this.$data=we.$data&&ge.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)(ge,this.schema,le,this.$data),this.schemaType=we.schemaType,this.parentSchema=ge.schema,this.params={},this.it=ge,this.def=we,this.$data)this.schemaCode=ge.gen.const("vSchema",De(this.$data,ge));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,we.schemaType,we.allowUndefined))throw new Error("".concat(le," value must be ").concat(JSON.stringify(we.schemaType)));("code"in we?we.trackErrors:!1!==we.errors)&&(this.errsCount=ge.gen.const("_errs",l.default.errors))}return Xe(ie,[{key:"result",value:function(ge,we,le){this.failResult((0,a.not)(ge),we,le)}},{key:"failResult",value:function(ge,we,le){this.gen.if(ge),le?le():this.error(),we?(this.gen.else(),we(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}},{key:"pass",value:function(ge,we){this.failResult((0,a.not)(ge),void 0,we)}},{key:"fail",value:function(ge){if(void 0===ge)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(ge),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}},{key:"fail$data",value:function(ge){if(!this.$data)return this.fail(ge);var we=this.schemaCode;this.fail((0,a._)(MY||(MY=Je([""," !== undefined && (",")"])),we,(0,a.or)(this.invalid$data(),ge)))}},{key:"error",value:function(ge,we,le){if(we)return this.setParams(we),this._error(ge,le),void this.setParams({});this._error(ge,le)}},{key:"_error",value:function(ge,we){(ge?h.reportExtraError:h.reportError)(this,this.def.error,we)}},{key:"$dataError",value:function(){(0,h.reportError)(this,this.def.$dataError||h.keyword$DataError)}},{key:"reset",value:function(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,h.resetErrorsCount)(this.gen,this.errsCount)}},{key:"ok",value:function(ge){this.allErrors||this.gen.if(ge)}},{key:"setParams",value:function(ge,we){we?Object.assign(this.params,ge):this.params=ge}},{key:"block$data",value:function(ge,we){var le=this,Fe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.nil;this.gen.block(function(){le.check$data(ge,Fe),we()})}},{key:"check$data",value:function(){var ge=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.nil,we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.nil;if(this.$data){var le=this.gen,Fe=this.schemaCode,z=this.schemaType,Q=this.def;le.if((0,a.or)((0,a._)(IY||(IY=Je([""," === undefined"])),Fe),we)),ge!==a.nil&&le.assign(ge,!0),(z.length||Q.validateSchema)&&(le.elseIf(this.invalid$data()),this.$dataError(),ge!==a.nil&&le.assign(ge,!1)),le.else()}}},{key:"invalid$data",value:function(){var ge=this.gen,we=this.schemaCode,le=this.schemaType,Fe=this.def,z=this.it;return(0,a.or)(function(){if(le.length){if(!(we instanceof a.Name))throw new Error("ajv implementation error");var Q=Array.isArray(le)?le:[le];return(0,a._)(FY||(FY=Je(["",""])),(0,i.checkDataTypes)(Q,we,z.opts.strictNumbers,i.DataType.Wrong))}return a.nil}(),function(){if(Fe.validateSchema){var Q=ge.scopeValue("validate$data",{ref:Fe.validateSchema});return(0,a._)(LY||(LY=Je(["!","(",")"])),Q,we)}return a.nil}())}},{key:"subschema",value:function(ge,we){var le=(0,s.getSubschema)(this.it,ge);(0,s.extendSubschemaData)(le,this.it,ge),(0,s.extendSubschemaMode)(le,ge);var Fe=_t(_t(_t({},this.it),le),{},{items:void 0,props:void 0});return function p(ie,ge){w(ie)&&(C(ie),m(ie))?function(we,le){var Z,me,z=we.gen;we.opts.$comment&&we.schema.$comment&&E(we),(me=(Z=we).schema[Z.opts.schemaId])&&(Z.baseId=(0,c.resolveUrl)(Z.opts.uriResolver,Z.baseId,me)),function(Z){if(Z.schema.$async&&!Z.schemaEnv.$async)throw new Error("async schema in sync schema")}(we);var Q=z.const("_errs",l.default.errors);k(we,Q),z.var(le,(0,a._)(bY||(bY=Je([""," === ",""])),Q,l.default.errors))}(ie,ge):(0,t.boolOrEmptySchema)(ie,ge)}(Fe,we),Fe}},{key:"mergeEvaluated",value:function(ge,we){var le=this.it,Fe=this.gen;le.opts.unevaluated&&(!0!==le.props&&void 0!==ge.props&&(le.props=u.mergeEvaluated.props(Fe,ge.props,le.props,we)),!0!==le.items&&void 0!==ge.items&&(le.items=u.mergeEvaluated.items(Fe,ge.items,le.items,we)))}},{key:"mergeValidEvaluated",value:function(ge,we){var le=this,Fe=this.it;if(Fe.opts.unevaluated&&(!0!==Fe.props||!0!==Fe.items))return this.gen.if(we,function(){return le.mergeEvaluated(ge,a.Name)}),!0}}]),ie}();function ce(ie,ge,we,le){var Fe=new re(ie,we,ge);"code"in we?we.code(Fe,le):Fe.$data&&we.validate?(0,o.funcKeywordCode)(Fe,we):"macro"in we?(0,o.macroKeywordCode)(Fe,we):(we.compile||we.validate)&&(0,o.funcKeywordCode)(Fe,we)}ff.KeywordCxt=re;var ue=/^\/(?:[^~]|~0|~1)*$/,pe=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function De(ie,ge){var we,le,Fe=ge.dataLevel,z=ge.dataNames,Q=ge.dataPathArr;if(""===ie)return l.default.rootData;if("/"===ie[0]){if(!ue.test(ie))throw new Error("Invalid JSON-pointer: ".concat(ie));we=ie,le=l.default.rootData}else{var Z=pe.exec(ie);if(!Z)throw new Error("Invalid JSON-pointer: ".concat(ie));var me=+Z[1];if("#"===(we=Z[2])){if(me>=Fe)throw new Error(Ve("property/index",me));return Q[Fe-me]}if(me>Fe)throw new Error(Ve("data",me));if(le=z[Fe-me],!we)return le}var ae,Te=le,Oe=ot(we.split("/"));try{for(Oe.s();!(ae=Oe.n()).done;){var Ze=ae.value;Ze&&(le=(0,a._)(OY||(OY=Je(["","",""])),le,(0,a.getProperty)((0,u.unescapeJsonPointer)(Ze))),Te=(0,a._)(NY||(NY=Je([""," && ",""])),Te,le))}}catch(wt){Oe.e(wt)}finally{Oe.f()}return Te;function Ve(wt,ct){return"Cannot access ".concat(wt," ").concat(ct," levels up, current level is ").concat(Fe)}}return ff.getData=De,ff}sl.getSchemaRefs=function(t,n){var e=this;if("boolean"==typeof t)return{};var i=this.opts,r=i.schemaId,o=i.uriResolver,s=H0(t[r]||n),a={"":s},l=fge(o,s,!1),c={},u=new Set;return fit(t,{allKeys:!0},function(f,p,m,w){if(void 0!==w){var C=l+p,k=a[w];"string"==typeof f[r]&&(k=E.call(e,f[r])),L.call(e,f.$anchor),L.call(e,f.$dynamicAnchor),a[p]=k}function E(B){if(B=H0(k?(0,this.opts.uriResolver.resolve)(k,B):B),u.has(B))throw d(B);u.add(B);var oe=this.refs[B];return"string"==typeof oe&&(oe=this.refs[oe]),"object"==$n(oe)?h(f,oe.schema,B):B!==H0(C)&&("#"===B[0]?(h(f,c[B],B),c[B]=f):this.refs[B]=C),B}function L(B){if("string"==typeof B){if(!vit.test(B))throw new Error('invalid anchor "'.concat(B,'"'));E.call(this,"#".concat(B))}}}),c;function h(f,p,m){if(void 0!==p&&!dit(f,p))throw d(m)}function d(f){return new Error('reference "'.concat(f,'" resolves to more than one schema'))}};var mge,ED={};function k$(){if(mge)return ED;mge=1,Object.defineProperty(ED,"__esModule",{value:!0});var t=function(n){Wt(i,sb(Error));var e=Gt(i);function i(r){var o;return qe(this,i),(o=e.call(this,"validation failed")).errors=r,o.ajv=o.validation=!0,o}return Xe(i)}();return ED.default=t,ED}var vge,MD={};function D$(){if(vge)return MD;vge=1,Object.defineProperty(MD,"__esModule",{value:!0});var t=sl,n=function(e){Wt(r,sb(Error));var i=Gt(r);function r(o,s,a,l){var c;return qe(this,r),(c=i.call(this,l||"can't resolve reference ".concat(a," from id ").concat(s))).missingRef=(0,t.resolveUrl)(o,s,a),c.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(o,c.missingRef)),c}return Xe(r)}();return MD.default=n,MD}var uc={};Object.defineProperty(uc,"__esModule",{value:!0}),uc.resolveSchema=uc.getCompilingSchema=uc.resolveRef=uc.compileSchema=uc.SchemaEnv=void 0;var mh=Gr(),yit=k$(),tm=kp(),vh=sl,yge=po,bit=AD(),ID=Xe(function t(n){var e,i;qe(this,t),this.refs={},this.dynamicAnchors={},"object"==$n(n.schema)&&(i=n.schema),this.schema=n.schema,this.schemaId=n.schemaId,this.root=n.root||this,this.baseId=null!==(e=n.baseId)&&void 0!==e?e:(0,vh.normalizeId)(i?.[n.schemaId||"$id"]),this.schemaPath=n.schemaPath,this.localRefs=n.localRefs,this.meta=n.meta,this.$async=i?.$async,this.refs={}});function T$(t){var n=bge.call(this,t);if(n)return n;var e,i=(0,vh.getFullPath)(this.opts.uriResolver,t.root.baseId),r=this.opts.code,l=new mh.CodeGen(this.scope,{es5:r.es5,lines:r.lines,ownProperties:this.opts.ownProperties});t.$async&&(e=l.scopeValue("Error",{ref:yit.default,code:(0,mh._)(RY||(RY=Je(['require("ajv/dist/runtime/validation_error").default'])))}));var c=l.scopeName("validate");t.validateName=c;var u,h={gen:l,allErrors:this.opts.allErrors,data:tm.default.data,parentData:tm.default.parentData,parentDataProperty:tm.default.parentDataProperty,dataNames:[tm.default.data],dataPathArr:[mh.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:l.scopeValue("schema",!0===this.opts.code.source?{ref:t.schema,code:(0,mh.stringify)(t.schema)}:{ref:t.schema}),validateName:c,ValidationError:e,schema:t.schema,schemaEnv:t,rootId:i,baseId:t.baseId||i,schemaPath:mh.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,mh._)($Y||($Y=Je(['""']))),opts:this.opts,self:this};try{this._compilations.add(t),(0,bit.validateFunctionCode)(h),l.optimize(this.opts.code.optimize);var d=l.toString();u="".concat(l.scopeRefs(tm.default.scope),"return ").concat(d),this.opts.code.process&&(u=this.opts.code.process(u,t));var f=new Function("".concat(tm.default.self),"".concat(tm.default.scope),u)(this,this.scope.get());if(this.scope.value(c,{ref:f}),f.errors=null,f.schema=t.schema,f.schemaEnv=t,t.$async&&(f.$async=!0),!0===this.opts.code.source&&(f.source={validateName:c,validateCode:d,scopeValues:l._values}),this.opts.unevaluated){var p=h.props,m=h.items;f.evaluated={props:p instanceof mh.Name?void 0:p,items:m instanceof mh.Name?void 0:m,dynamicProps:p instanceof mh.Name,dynamicItems:m instanceof mh.Name},f.source&&(f.source.evaluated=(0,mh.stringify)(f.evaluated))}return t.validate=f,t}catch(w){throw delete t.validate,delete t.validateName,u&&this.logger.error("Error compiling schema, function code:",u),w}finally{this._compilations.delete(t)}}function _it(t){return(0,vh.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:T$.call(this,t)}function bge(t){var n,e,i,r=ot(this._compilations);try{for(r.s();!(n=r.n()).done;){var o=n.value;if((e=o).schema===(i=t).schema&&e.root===i.root&&e.baseId===i.baseId)return o}}catch(s){r.e(s)}finally{r.f()}}function wit(t,n){for(var e;"string"==typeof(e=this.refs[n]);)n=e;return e||this.schemas[n]||FD.call(this,t,n)}function FD(t,n){var e=this.opts.uriResolver.parse(n),i=(0,vh._getFullPath)(this.opts.uriResolver,e),r=(0,vh.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&i===r)return A$.call(this,e,t);var o=(0,vh.normalizeId)(i),s=this.refs[o]||this.schemas[o];if("string"==typeof s){var a=FD.call(this,t,s);return"object"!==$n(a?.schema)?void 0:A$.call(this,e,a)}if("object"===$n(s?.schema)){if(s.validate||T$.call(this,s),o===(0,vh.normalizeId)(n)){var l=s.schema,c=this.opts.schemaId,u=l[c];return u&&(r=(0,vh.resolveUrl)(this.opts.uriResolver,r,u)),new ID({schema:l,schemaId:c,root:t,baseId:r})}return A$.call(this,e,s)}}uc.SchemaEnv=ID,uc.compileSchema=T$,uc.resolveRef=function(t,n,e){var i;e=(0,vh.resolveUrl)(this.opts.uriResolver,n,e);var r=t.refs[e];if(r)return r;var o=wit.call(this,t,e);if(void 0===o){var s=null===(i=t.localRefs)||void 0===i?void 0:i[e];s&&(o=new ID({schema:s,schemaId:this.opts.schemaId,root:t,baseId:n}))}return void 0!==o?t.refs[e]=_it.call(this,o):void 0},uc.getCompilingSchema=bge,uc.resolveSchema=FD;var xit=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function A$(t,n){var e,i=n.baseId,r=n.schema,o=n.root;if("/"===(null===(e=t.fragment)||void 0===e?void 0:e[0])){var s,a,l=ot(t.fragment.slice(1).split("/"));try{for(l.s();!(s=l.n()).done;){var c=s.value;if("boolean"==typeof r)return;var u=r[(0,yge.unescapeFragment)(c)];if(void 0===u)return;var h="object"===$n(r=u)&&r[this.opts.schemaId];!xit.has(c)&&h&&(i=(0,vh.resolveUrl)(this.opts.uriResolver,i,h))}}catch(p){l.e(p)}finally{l.f()}if("boolean"!=typeof r&&r.$ref&&!(0,yge.schemaHasRulesButRef)(r,this.RULES)){var d=(0,vh.resolveUrl)(this.opts.uriResolver,i,r.$ref);a=FD.call(this,o,d)}return(a=a||new ID({schema:r,schemaId:this.opts.schemaId,root:o,baseId:i})).schema!==a.root.schema?a:void 0}}var Cit={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1},E$={},_ge={};(function(t){function n(){for(var Ue=arguments.length,lt=Array(Ue),ft=0;ft1){lt[0]=lt[0].slice(0,-1);for(var Mt=lt.length-1,ut=1;ut= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ce=Math.floor,ue=String.fromCharCode;function pe(Ue){throw new RangeError(fe[Ue])}function ie(Ue,lt){var ft=Ue.split("@"),Mt="";return ft.length>1&&(Mt=ft[0]+"@",Ue=ft[1]),Mt+function De(Ue,lt){for(var ft=[],Mt=Ue.length;Mt--;)ft[Mt]=lt(Ue[Mt]);return ft}((Ue=Ue.replace(oe,".")).split("."),lt).join(".")}function ge(Ue){for(var lt=[],ft=0,Mt=Ue.length;ft=55296&&ut<=56319&&ft>1,Ue+=ce(Ue/lt);Ue>455;Mt+=f)Ue=ce(Ue/35);return ce(Mt+36*Ue/(Ue+38))},Q=function(Ue){var lt=[],ft=Ue.length,Mt=0,ut=128,Wn=72,Si=Ue.lastIndexOf("-");Si<0&&(Si=0);for(var Li=0;Li=128&&pe("not-basic"),lt.push(Ue.charCodeAt(Li));for(var Fi=Si>0?Si+1:0;Fi=ft&&pe("invalid-input");var zr=le(Ue.charCodeAt(Fi++));(zr>=f||zr>ce((d-Mt)/xo))&&pe("overflow"),Mt+=zr*xo;var Ke=ji<=Wn?1:ji>=Wn+26?26:ji-Wn;if(zrce(d/qt)&&pe("overflow"),xo*=qt}var hn=lt.length+1;Wn=z(Mt-Yr,hn,0==Yr),ce(Mt/hn)>d-ut&&pe("overflow"),ut+=ce(Mt/hn),Mt%=hn,lt.splice(Mt++,0,ut)}return String.fromCodePoint.apply(String,lt)},Z=function(Ue){var lt=[],ft=(Ue=ge(Ue)).length,Mt=128,ut=0,Wn=72,Si=!0,Li=!1,Fi=void 0;try{for(var Yr,xo=Ue[Symbol.iterator]();!(Si=(Yr=xo.next()).done);Si=!0){var ji=Yr.value;ji<128&<.push(ue(ji))}}catch(wh){Li=!0,Fi=wh}finally{try{!Si&&xo.return&&xo.return()}finally{if(Li)throw Fi}}var zr=lt.length,Ke=zr;for(zr&<.push("-");Ke=Mt&&aice((d-ut)/_i)&&pe("overflow"),ut+=(qt-Mt)*_i,Mt=qt;var mi=!0,Ur=!1,eo=void 0;try{for(var ts,Da=Ue[Symbol.iterator]();!(mi=(ts=Da.next()).done);mi=!0){var bh=ts.value;if(bhd&&pe("overflow"),bh==Mt){for(var bu=ut,Ta=f;;Ta+=f){var Yl=Ta<=Wn?1:Ta>=Wn+26?26:Ta-Wn;if(bu>6|192).toString(16).toUpperCase()+"%"+(63<|128).toString(16).toUpperCase():"%"+(lt>>12|224).toString(16).toUpperCase()+"%"+(lt>>6&63|128).toString(16).toUpperCase()+"%"+(63<|128).toString(16).toUpperCase()}function Ve(Ue){for(var lt="",ft=0,Mt=Ue.length;ft=194&&ut<224){if(Mt-ft>=6){var Wn=parseInt(Ue.substr(ft+4,2),16);lt+=String.fromCharCode((31&ut)<<6|63&Wn)}else lt+=Ue.substr(ft,6);ft+=6}else if(ut>=224){if(Mt-ft>=9){var Si=parseInt(Ue.substr(ft+4,2),16),Li=parseInt(Ue.substr(ft+7,2),16);lt+=String.fromCharCode((15&ut)<<12|(63&Si)<<6|63&Li)}else lt+=Ue.substr(ft,9);ft+=9}else lt+=Ue.substr(ft,3),ft+=3}return lt}function wt(Ue,lt){function ft(Mt){var ut=Ve(Mt);return ut.match(lt.UNRESERVED)?ut:Mt}return Ue.scheme&&(Ue.scheme=String(Ue.scheme).replace(lt.PCT_ENCODED,ft).toLowerCase().replace(lt.NOT_SCHEME,"")),void 0!==Ue.userinfo&&(Ue.userinfo=String(Ue.userinfo).replace(lt.PCT_ENCODED,ft).replace(lt.NOT_USERINFO,Ze).replace(lt.PCT_ENCODED,r)),void 0!==Ue.host&&(Ue.host=String(Ue.host).replace(lt.PCT_ENCODED,ft).toLowerCase().replace(lt.NOT_HOST,Ze).replace(lt.PCT_ENCODED,r)),void 0!==Ue.path&&(Ue.path=String(Ue.path).replace(lt.PCT_ENCODED,ft).replace(Ue.scheme?lt.NOT_PATH:lt.NOT_PATH_NOSCHEME,Ze).replace(lt.PCT_ENCODED,r)),void 0!==Ue.query&&(Ue.query=String(Ue.query).replace(lt.PCT_ENCODED,ft).replace(lt.NOT_QUERY,Ze).replace(lt.PCT_ENCODED,r)),void 0!==Ue.fragment&&(Ue.fragment=String(Ue.fragment).replace(lt.PCT_ENCODED,ft).replace(lt.NOT_FRAGMENT,Ze).replace(lt.PCT_ENCODED,r)),Ue}function ct(Ue){return Ue.replace(/^0*(.*)/,"$1")||"0"}function Ct(Ue,lt){var ft=Ue.match(lt.IPV4ADDRESS)||[],Mt=u(ft,2)[1];return Mt?Mt.split(".").map(ct).join("."):Ue}function se(Ue,lt){var ft=Ue.match(lt.IPV6ADDRESS)||[],Mt=u(ft,3),ut=Mt[1],Wn=Mt[2];if(ut){for(var Si=ut.toLowerCase().split("::").reverse(),Li=u(Si,2),Fi=Li[0],Yr=Li[1],xo=Yr?Yr.split(":").map(ct):[],ji=Fi.split(":").map(ct),zr=lt.IPV4ADDRESS.test(ji[ji.length-1]),Ke=zr?7:8,qt=ji.length-Ke,hn=Array(Ke),kn=0;kn1){var rr=hn.slice(0,Fn.index),ai=hn.slice(Fn.index+Fn.length);ki=rr.join(":")+"::"+ai.join(":")}else ki=hn.join(":");return Wn&&(ki+="%"+Wn),ki}return Ue}var Se=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,ke=void 0==="".match(/(){0}/)[1];function Qe(Ue){var lt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ft={},Mt=!1!==lt.iri?c:l;"suffix"===lt.reference&&(Ue=(lt.scheme?lt.scheme+":":"")+"//"+Ue);var ut=Ue.match(Se);if(ut){ke?(ft.scheme=ut[1],ft.userinfo=ut[3],ft.host=ut[4],ft.port=parseInt(ut[5],10),ft.path=ut[6]||"",ft.query=ut[7],ft.fragment=ut[8],isNaN(ft.port)&&(ft.port=ut[5])):(ft.scheme=ut[1]||void 0,ft.userinfo=-1!==Ue.indexOf("@")?ut[3]:void 0,ft.host=-1!==Ue.indexOf("//")?ut[4]:void 0,ft.port=parseInt(ut[5],10),ft.path=ut[6]||"",ft.query=-1!==Ue.indexOf("?")?ut[7]:void 0,ft.fragment=-1!==Ue.indexOf("#")?ut[8]:void 0,isNaN(ft.port)&&(ft.port=Ue.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?ut[4]:void 0)),ft.host&&(ft.host=se(Ct(ft.host,Mt),Mt)),ft.reference=void 0!==ft.scheme||void 0!==ft.userinfo||void 0!==ft.host||void 0!==ft.port||ft.path||void 0!==ft.query?void 0===ft.scheme?"relative":void 0===ft.fragment?"absolute":"uri":"same-document",lt.reference&&"suffix"!==lt.reference&<.reference!==ft.reference&&(ft.error=ft.error||"URI is not a "+lt.reference+" reference.");var Wn=Oe[(lt.scheme||ft.scheme||"").toLowerCase()];if(lt.unicodeSupport||Wn&&Wn.unicodeSupport)wt(ft,Mt);else{if(ft.host&&(lt.domainHost||Wn&&Wn.domainHost))try{ft.host=Te.toASCII(ft.host.replace(Mt.PCT_ENCODED,Ve).toLowerCase())}catch(Si){ft.error=ft.error||"Host's domain name can not be converted to ASCII via punycode: "+Si}wt(ft,l)}Wn&&Wn.parse&&Wn.parse(ft,lt)}else ft.error=ft.error||"URI can not be parsed.";return ft}var rt=/^\.\.?\//,zt=/^\/\.(\/|$)/,Qt=/^\/\.\.(\/|$)/,Pn=/^\/?(?:.|\n)*?(?=\/|$)/;function Mi(Ue){for(var lt=[];Ue.length;)if(Ue.match(rt))Ue=Ue.replace(rt,"");else if(Ue.match(zt))Ue=Ue.replace(zt,"/");else if(Ue.match(Qt))Ue=Ue.replace(Qt,"/"),lt.pop();else if("."===Ue||".."===Ue)Ue="";else{var ft=Ue.match(Pn);if(!ft)throw new Error("Unexpected dot segment condition");var Mt=ft[0];Ue=Ue.slice(Mt.length),lt.push(Mt)}return lt.join("")}function Sn(Ue){var lt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ft=lt.iri?c:l,Mt=[],ut=Oe[(lt.scheme||Ue.scheme||"").toLowerCase()];if(ut&&ut.serialize&&ut.serialize(Ue,lt),Ue.host&&!ft.IPV6ADDRESS.test(Ue.host)&&(lt.domainHost||ut&&ut.domainHost))try{Ue.host=lt.iri?Te.toUnicode(Ue.host):Te.toASCII(Ue.host.replace(ft.PCT_ENCODED,Ve).toLowerCase())}catch(Li){Ue.error=Ue.error||"Host's domain name can not be converted to "+(lt.iri?"Unicode":"ASCII")+" via punycode: "+Li}wt(Ue,ft),"suffix"!==lt.reference&&Ue.scheme&&(Mt.push(Ue.scheme),Mt.push(":"));var Wn=function gt(Ue,lt){var ft=!1!==lt.iri?c:l,Mt=[];return void 0!==Ue.userinfo&&(Mt.push(Ue.userinfo),Mt.push("@")),void 0!==Ue.host&&Mt.push(se(Ct(String(Ue.host),ft),ft).replace(ft.IPV6ADDRESS,function(ut,Wn,Si){return"["+Wn+(Si?"%25"+Si:"")+"]"})),"number"!=typeof Ue.port&&"string"!=typeof Ue.port||(Mt.push(":"),Mt.push(String(Ue.port))),Mt.length?Mt.join(""):void 0}(Ue,lt);if(void 0!==Wn&&("suffix"!==lt.reference&&Mt.push("//"),Mt.push(Wn),Ue.path&&"/"!==Ue.path.charAt(0)&&Mt.push("/")),void 0!==Ue.path){var Si=Ue.path;lt.absolutePath||ut&&ut.absolutePath||(Si=Mi(Si)),void 0===Wn&&(Si=Si.replace(/^\/\//,"/%2F")),Mt.push(Si)}return void 0!==Ue.query&&(Mt.push("?"),Mt.push(Ue.query)),void 0!==Ue.fragment&&(Mt.push("#"),Mt.push(Ue.fragment)),Mt.join("")}function nr(Ue,lt){var ft=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Mt={};return arguments[3]||(Ue=Qe(Sn(Ue,ft),ft),lt=Qe(Sn(lt,ft),ft)),!(ft=ft||{}).tolerant&<.scheme?(Mt.scheme=lt.scheme,Mt.userinfo=lt.userinfo,Mt.host=lt.host,Mt.port=lt.port,Mt.path=Mi(lt.path||""),Mt.query=lt.query):(void 0!==lt.userinfo||void 0!==lt.host||void 0!==lt.port?(Mt.userinfo=lt.userinfo,Mt.host=lt.host,Mt.port=lt.port,Mt.path=Mi(lt.path||""),Mt.query=lt.query):(lt.path?("/"===lt.path.charAt(0)?Mt.path=Mi(lt.path):(Mt.path=void 0===Ue.userinfo&&void 0===Ue.host&&void 0===Ue.port||Ue.path?Ue.path?Ue.path.slice(0,Ue.path.lastIndexOf("/")+1)+lt.path:lt.path:"/"+lt.path,Mt.path=Mi(Mt.path)),Mt.query=lt.query):(Mt.path=Ue.path,Mt.query=void 0!==lt.query?lt.query:Ue.query),Mt.userinfo=Ue.userinfo,Mt.host=Ue.host,Mt.port=Ue.port),Mt.scheme=Ue.scheme),Mt.fragment=lt.fragment,Mt}function oo(Ue,lt){return Ue&&Ue.toString().replace(lt&<.iri?c.PCT_ENCODED:l.PCT_ENCODED,Ve)}var er={scheme:"http",domainHost:!0,parse:function(Ue,lt){return Ue.host||(Ue.error=Ue.error||"HTTP URIs must have a host."),Ue},serialize:function(Ue,lt){var ft="https"===String(Ue.scheme).toLowerCase();return Ue.port!==(ft?443:80)&&""!==Ue.port||(Ue.port=void 0),Ue.path||(Ue.path="/"),Ue}},vo={scheme:"https",domainHost:er.domainHost,parse:er.parse,serialize:er.serialize};function es(Ue){return"boolean"==typeof Ue.secure?Ue.secure:"wss"===String(Ue.scheme).toLowerCase()}var Zn={scheme:"ws",domainHost:!0,parse:function(Ue,lt){var ft=Ue;return ft.secure=es(ft),ft.resourceName=(ft.path||"/")+(ft.query?"?"+ft.query:""),ft.path=void 0,ft.query=void 0,ft},serialize:function(Ue,lt){if(Ue.port!==(es(Ue)?443:80)&&""!==Ue.port||(Ue.port=void 0),"boolean"==typeof Ue.secure&&(Ue.scheme=Ue.secure?"wss":"ws",Ue.secure=void 0),Ue.resourceName){var ft=Ue.resourceName.split("?"),Mt=u(ft,2),ut=Mt[0],Wn=Mt[1];Ue.path=ut&&"/"!==ut?ut:void 0,Ue.query=Wn,Ue.resourceName=void 0}return Ue.fragment=void 0,Ue}},Ut={scheme:"wss",domainHost:Zn.domainHost,parse:Zn.parse,serialize:Zn.serialize},Ii={},ir="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Xr="[0-9A-Fa-f]",Ho=e(e("%[EFef]"+Xr+"%"+Xr+Xr+"%"+Xr+Xr)+"|"+e("%[89A-Fa-f]"+Xr+"%"+Xr+Xr)+"|"+e("%"+Xr+Xr)),Pt=n("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),Ai=new RegExp(ir,"g"),Vi=new RegExp(Ho,"g"),Zr=new RegExp(n("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',Pt),"g"),yo=new RegExp(n("[^]",ir,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),Mo=yo;function da(Ue){var lt=Ve(Ue);return lt.match(Ai)?lt:Ue}var Vr={scheme:"mailto",parse:function(Ue,lt){var ft=Ue,Mt=ft.to=ft.path?ft.path.split(","):[];if(ft.path=void 0,ft.query){for(var ut=!1,Wn={},Si=ft.query.split("&"),Li=0,Fi=Si.length;Li string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},C={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},E=function(){function z(){var Q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};qe(this,z),this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,Q=this.opts=_t(_t({},Q),function k(z){var Q,Z,me,ae,Te,Oe,Ze,Ve,wt,ct,Ct,se,Se,ke,Qe,gt,rt,zt,Qt,Pn,Mi,Sn,nr,On,ro,uo=z.strict,qr=null===(Q=z.code)||void 0===Q?void 0:Q.optimize,oo=!0===qr||void 0===qr?1:qr||0,er=null!==(me=null===(Z=z.code)||void 0===Z?void 0:Z.regExp)&&void 0!==me?me:f,vo=null!==(ae=z.uriResolver)&&void 0!==ae?ae:d.default;return{strictSchema:null===(Oe=null!==(Te=z.strictSchema)&&void 0!==Te?Te:uo)||void 0===Oe||Oe,strictNumbers:null===(Ve=null!==(Ze=z.strictNumbers)&&void 0!==Ze?Ze:uo)||void 0===Ve||Ve,strictTypes:null!==(ct=null!==(wt=z.strictTypes)&&void 0!==wt?wt:uo)&&void 0!==ct?ct:"log",strictTuples:null!==(se=null!==(Ct=z.strictTuples)&&void 0!==Ct?Ct:uo)&&void 0!==se?se:"log",strictRequired:null!==(ke=null!==(Se=z.strictRequired)&&void 0!==Se?Se:uo)&&void 0!==ke&&ke,code:z.code?_t(_t({},z.code),{},{optimize:oo,regExp:er}):{optimize:oo,regExp:er},loopRequired:null!==(Qe=z.loopRequired)&&void 0!==Qe?Qe:200,loopEnum:null!==(gt=z.loopEnum)&&void 0!==gt?gt:200,meta:null===(rt=z.meta)||void 0===rt||rt,messages:null===(zt=z.messages)||void 0===zt||zt,inlineRefs:null===(Qt=z.inlineRefs)||void 0===Qt||Qt,schemaId:null!==(Pn=z.schemaId)&&void 0!==Pn?Pn:"$id",addUsedSchema:null===(Mi=z.addUsedSchema)||void 0===Mi||Mi,validateSchema:null===(Sn=z.validateSchema)||void 0===Sn||Sn,validateFormats:null===(nr=z.validateFormats)||void 0===nr||nr,unicodeRegExp:null===(On=z.unicodeRegExp)||void 0===On||On,int32range:null===(ro=z.int32range)||void 0===ro||ro,uriResolver:vo}}(Q));var Z=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:m,es5:Z.es5,lines:Z.lines}),this.logger=function ue(z){if(!1===z)return ce;if(void 0===z)return console;if(z.log&&z.warn&&z.error)return z;throw new Error("logger must implement log, warn and error methods")}(Q.logger);var Te=Q.validateFormats;Q.validateFormats=!1,this.RULES=(0,o.getRules)(),L.call(this,w,Q,"NOT SUPPORTED"),L.call(this,C,Q,"DEPRECATED","warn"),this._metaOpts=re.call(this),Q.formats&&oe.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),Q.keywords&&fe.call(this,Q.keywords),"object"==$n(Q.meta)&&this.addMetaSchema(Q.meta),G.call(this),Q.validateFormats=Te}return Xe(z,[{key:"_addVocabularies",value:function(){this.addKeyword("$async")}},{key:"_addDefaultMetaSchema",value:function(){var Q=this.opts,Z=Q.$data,me=Q.meta,ae=Q.schemaId,Te=h;"id"===ae&&((Te=_t({},h)).id=Te.$id,delete Te.$id),me&&Z&&this.addMetaSchema(Te,Te[ae],!1)}},{key:"defaultMeta",value:function(){var Q=this.opts,Z=Q.meta,me=Q.schemaId;return this.opts.defaultMeta="object"==$n(Z)?Z[me]||Z:void 0}},{key:"validate",value:function(Q,Z){var me;if("string"==typeof Q){if(!(me=this.getSchema(Q)))throw new Error('no schema with key or ref "'.concat(Q,'"'))}else me=this.compile(Q);var ae=me(Z);return"$async"in me||(this.errors=me.errors),ae}},{key:"compile",value:function(Q,Z){var me=this._addSchema(Q,Z);return me.validate||this._compileSchemaEnv(me)}},{key:"compileAsync",value:function(Q,Z){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");var me=this.opts.loadSchema;return ae.call(this,Q,Z);function ae(Qe,gt){return Te.apply(this,arguments)}function Te(){return(Te=Dr(Rn().mark(function Qe(gt,rt){var zt;return Rn().wrap(function(Qt){for(;;)switch(Qt.prev=Qt.next){case 0:return Qt.next=2,Oe.call(this,gt.$schema);case 2:return zt=this._addSchema(gt,rt),Qt.abrupt("return",zt.validate||Ve.call(this,zt));case 4:case"end":return Qt.stop()}},Qe,this)}))).apply(this,arguments)}function Oe(Qe){return Ze.apply(this,arguments)}function Ze(){return(Ze=Dr(Rn().mark(function Qe(gt){return Rn().wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:if(!gt||this.getSchema(gt)){rt.next=3;break}return rt.next=3,ae.call(this,{$ref:gt},!0);case 3:case"end":return rt.stop()}},Qe,this)}))).apply(this,arguments)}function Ve(Qe){return wt.apply(this,arguments)}function wt(){return(wt=Dr(Rn().mark(function Qe(gt){return Rn().wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:return rt.prev=0,rt.abrupt("return",this._compileSchemaEnv(gt));case 4:if(rt.prev=4,rt.t0=rt.catch(0),rt.t0 instanceof r.default){rt.next=8;break}throw rt.t0;case 8:return ct.call(this,rt.t0),rt.next=11,Ct.call(this,rt.t0.missingSchema);case 11:return rt.abrupt("return",Ve.call(this,gt));case 12:case"end":return rt.stop()}},Qe,this,[[0,4]])}))).apply(this,arguments)}function ct(Qe){var gt=Qe.missingSchema,rt=Qe.missingRef;if(this.refs[gt])throw new Error("AnySchema ".concat(gt," is loaded but ").concat(rt," cannot be resolved"))}function Ct(Qe){return se.apply(this,arguments)}function se(){return(se=Dr(Rn().mark(function Qe(gt){var rt;return Rn().wrap(function(zt){for(;;)switch(zt.prev=zt.next){case 0:return zt.next=2,Se.call(this,gt);case 2:if(rt=zt.sent,this.refs[gt]){zt.next=6;break}return zt.next=6,Oe.call(this,rt.$schema);case 6:this.refs[gt]||this.addSchema(rt,gt,Z);case 7:case"end":return zt.stop()}},Qe,this)}))).apply(this,arguments)}function Se(Qe){return ke.apply(this,arguments)}function ke(){return(ke=Dr(Rn().mark(function Qe(gt){var rt;return Rn().wrap(function(zt){for(;;)switch(zt.prev=zt.next){case 0:if(!(rt=this._loading[gt])){zt.next=3;break}return zt.abrupt("return",rt);case 3:return zt.prev=3,zt.next=6,this._loading[gt]=me(gt);case 6:return zt.abrupt("return",zt.sent);case 7:return zt.prev=7,delete this._loading[gt],zt.finish(7);case 10:case"end":return zt.stop()}},Qe,this,[[3,,7,10]])}))).apply(this,arguments)}}},{key:"addSchema",value:function(Q,Z,me){var ae,Te=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.validateSchema;if(Array.isArray(Q)){var Oe,Ze=ot(Q);try{for(Ze.s();!(Oe=Ze.n()).done;)this.addSchema(Oe.value,void 0,me,Te)}catch(ct){Ze.e(ct)}finally{Ze.f()}return this}if("object"===$n(Q)){var wt=this.opts.schemaId;if(void 0!==(ae=Q[wt])&&"string"!=typeof ae)throw new Error("schema ".concat(wt," must be string"))}return Z=(0,l.normalizeId)(Z||ae),this._checkUnique(Z),this.schemas[Z]=this._addSchema(Q,me,Z,Te,!0),this}},{key:"addMetaSchema",value:function(Q,Z){return this.addSchema(Q,Z,!0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.opts.validateSchema),this}},{key:"validateSchema",value:function(Q,Z){if("boolean"==typeof Q)return!0;var me;if(void 0!==(me=Q.$schema)&&"string"!=typeof me)throw new Error("$schema must be a string");if(!(me=me||this.opts.defaultMeta||this.defaultMeta()))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var ae=this.validate(me,Q);if(!ae&&Z){var Te="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(Te);this.logger.error(Te)}return ae}},{key:"getSchema",value:function(Q){for(var Z;"string"==typeof(Z=B.call(this,Q));)Q=Z;if(void 0===Z){var ae=new s.SchemaEnv({schema:{},schemaId:this.opts.schemaId});if(!(Z=s.resolveSchema.call(this,ae,Q)))return;this.refs[Q]=Z}return Z.validate||this._compileSchemaEnv(Z)}},{key:"removeSchema",value:function(Q){if(Q instanceof RegExp)return this._removeAllSchemas(this.schemas,Q),this._removeAllSchemas(this.refs,Q),this;switch($n(Q)){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":var Z=B.call(this,Q);return"object"==$n(Z)&&this._cache.delete(Z.schema),delete this.schemas[Q],delete this.refs[Q],this;case"object":this._cache.delete(Q);var ae=Q[this.opts.schemaId];return ae&&(ae=(0,l.normalizeId)(ae),delete this.schemas[ae],delete this.refs[ae]),this;default:throw new Error("ajv.removeSchema: invalid parameter")}}},{key:"addVocabulary",value:function(Q){var Z,me=ot(Q);try{for(me.s();!(Z=me.n()).done;)this.addKeyword(Z.value)}catch(Te){me.e(Te)}finally{me.f()}return this}},{key:"addKeyword",value:function(Q,Z){var me,ae=this;if("string"==typeof Q)me=Q,"object"==$n(Z)&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),Z.keyword=me);else{if("object"!=$n(Q)||void 0!==Z)throw new Error("invalid addKeywords parameters");if(me=(Z=Q).keyword,Array.isArray(me)&&!me.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(De.call(this,me,Z),!Z)return(0,u.eachItem)(me,function(Oe){return ie.call(ae,Oe)}),this;we.call(this,Z);var Te=_t(_t({},Z),{},{type:(0,c.getJSONTypes)(Z.type),schemaType:(0,c.getJSONTypes)(Z.schemaType)});return(0,u.eachItem)(me,0===Te.type.length?function(Oe){return ie.call(ae,Oe,Te)}:function(Oe){return Te.type.forEach(function(Ze){return ie.call(ae,Oe,Te,Ze)})}),this}},{key:"getKeyword",value:function(Q){var Z=this.RULES.all[Q];return"object"==$n(Z)?Z.definition:!!Z}},{key:"removeKeyword",value:function(Q){var Z=this.RULES;delete Z.keywords[Q],delete Z.all[Q];var me,ae=ot(Z.rules);try{for(ae.s();!(me=ae.n()).done;){var Te=me.value,Oe=Te.rules.findIndex(function(Ze){return Ze.keyword===Q});Oe>=0&&Te.rules.splice(Oe,1)}}catch(Ze){ae.e(Ze)}finally{ae.f()}return this}},{key:"addFormat",value:function(Q,Z){return"string"==typeof Z&&(Z=new RegExp(Z)),this.formats[Q]=Z,this}},{key:"errorsText",value:function(){var Q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.errors,Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},me=Z.separator,ae=void 0===me?", ":me,Te=Z.dataVar,Oe=void 0===Te?"data":Te;return Q&&0!==Q.length?Q.map(function(Ze){return"".concat(Oe).concat(Ze.instancePath," ").concat(Ze.message)}).reduce(function(Ze,Ve){return Ze+ae+Ve}):"No errors"}},{key:"$dataMetaSchema",value:function(Q,Z){var me=this.RULES.all;Q=JSON.parse(JSON.stringify(Q));var ae,Te=ot(Z);try{for(Te.s();!(ae=Te.n()).done;){var Oe,Ze=ae.value.split("/").slice(1),Ve=Q,wt=ot(Ze);try{for(wt.s();!(Oe=wt.n()).done;)Ve=Ve[Oe.value]}catch(ke){wt.e(ke)}finally{wt.f()}for(var ct in me){var Ct=me[ct];if("object"==$n(Ct)){var Se=Ve[ct];Ct.definition.$data&&Se&&(Ve[ct]=Fe(Se))}}}}catch(ke){Te.e(ke)}finally{Te.f()}return Q}},{key:"_removeAllSchemas",value:function(Q,Z){for(var me in Q){var ae=Q[me];Z&&!Z.test(me)||("string"==typeof ae?delete Q[me]:ae&&!ae.meta&&(this._cache.delete(ae.schema),delete Q[me]))}}},{key:"_addSchema",value:function(Q,Z,me){var ae,Te=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.validateSchema,Oe=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.opts.addUsedSchema,Ze=this.opts.schemaId;if("object"==$n(Q))ae=Q[Ze];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof Q)throw new Error("schema must be object or boolean")}var Ve=this._cache.get(Q);if(void 0!==Ve)return Ve;me=(0,l.normalizeId)(ae||me);var wt=l.getSchemaRefs.call(this,Q,me);return Ve=new s.SchemaEnv({schema:Q,schemaId:Ze,meta:Z,baseId:me,localRefs:wt}),this._cache.set(Ve.schema,Ve),Oe&&!me.startsWith("#")&&(me&&this._checkUnique(me),this.refs[me]=Ve),Te&&this.validateSchema(Q,!0),Ve}},{key:"_checkUnique",value:function(Q){if(this.schemas[Q]||this.refs[Q])throw new Error('schema with key or id "'.concat(Q,'" already exists'))}},{key:"_compileSchemaEnv",value:function(Q){if(Q.meta?this._compileMetaSchema(Q):s.compileSchema.call(this,Q),!Q.validate)throw new Error("ajv implementation error");return Q.validate}},{key:"_compileMetaSchema",value:function(Q){var Z=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,Q)}finally{this.opts=Z}}}]),z}();function L(z,Q,Z){var me=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"error";for(var ae in z){var Te=ae;Te in Q&&this.logger[me]("".concat(Z,": option ").concat(ae,". ").concat(z[Te]))}}function B(z){return z=(0,l.normalizeId)(z),this.schemas[z]||this.refs[z]}function G(){var z=this.opts.schemas;if(z)if(Array.isArray(z))this.addSchema(z);else for(var Q in z)this.addSchema(z[Q],Q)}function oe(){for(var z in this.opts.formats){var Q=this.opts.formats[z];Q&&this.addFormat(z,Q)}}function fe(z){if(Array.isArray(z))this.addVocabulary(z);else for(var Q in this.logger.warn("keywords option as map is deprecated, pass array"),z){var Z=z[Q];Z.keyword||(Z.keyword=Q),this.addKeyword(Z)}}function re(){var z,Q=_t({},this.opts),Z=ot(p);try{for(Z.s();!(z=Z.n()).done;)delete Q[z.value]}catch(me){Z.e(me)}finally{Z.f()}return Q}t.default=E,E.ValidationError=i.default,E.MissingRefError=r.default;var ce={log:function(){},warn:function(){},error:function(){}},pe=/^[a-z_$][a-z0-9_$:-]*$/i;function De(z,Q){var Z=this.RULES;if((0,u.eachItem)(z,function(me){if(Z.keywords[me])throw new Error("Keyword ".concat(me," is already defined"));if(!pe.test(me))throw new Error("Keyword ".concat(me," has invalid name"))}),Q&&Q.$data&&!("code"in Q)&&!("validate"in Q))throw new Error('$data keyword must have "code" or "validate" function')}function ie(z,Q,Z){var me,ae=this,Te=Q?.post;if(Z&&Te)throw new Error('keyword with "post" flag cannot have "type"');var Oe=this.RULES,Ze=Te?Oe.post:Oe.rules.find(function(wt){return wt.type===Z});if(Ze||Oe.rules.push(Ze={type:Z,rules:[]}),Oe.keywords[z]=!0,Q){var Ve={keyword:z,definition:_t(_t({},Q),{},{type:(0,c.getJSONTypes)(Q.type),schemaType:(0,c.getJSONTypes)(Q.schemaType)})};Q.before?ge.call(this,Ze,Ve,Q.before):Ze.rules.push(Ve),Oe.all[z]=Ve,null===(me=Q.implements)||void 0===me||me.forEach(function(wt){return ae.addKeyword(wt)})}}function ge(z,Q,Z){var me=z.rules.findIndex(function(ae){return ae.keyword===Z});me>=0?z.rules.splice(me,0,Q):(z.rules.push(Q),this.logger.warn("rule ".concat(Z," is not defined")))}function we(z){var Q=z.metaSchema;void 0!==Q&&(z.$data&&this.opts.$data&&(Q=Fe(Q)),z.validateSchema=this.compile(Q,!0))}var le={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Fe(z){return{anyOf:[z,le]}}}(Xpe);var M$={},I$={},F$={};Object.defineProperty(F$,"__esModule",{value:!0}),F$.default={keyword:"id",code:function(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};var nm={};Object.defineProperty(nm,"__esModule",{value:!0}),nm.callRef=nm.getValidate=void 0;var kit=D$(),xge=gh(),hc=Gr(),V0=kp(),Cge=uc,LD=po,Dit={keyword:"$ref",schemaType:"string",code:function(t){var n=t.gen,e=t.schema,i=t.it,r=i.baseId,o=i.schemaEnv,s=i.validateName,a=i.opts,l=i.self,c=o.root;if(("#"===e||"#/"===e)&&r===c.baseId)return function(){if(o===c)return OD(t,s,o,o.$async);var m=n.scopeValue("root",{ref:c});return OD(t,(0,hc._)(PY||(PY=Je(["",".validate"])),m),c,c.$async)}();var u,h,d,f,m,w,p=Cge.resolveRef.call(l,c,r,e);if(void 0===p)throw new kit.default(i.opts.uriResolver,r,e);return p instanceof Cge.SchemaEnv?(w=Sge(t,m=p),void OD(t,w,m,m.$async)):(u=p,h=n.scopeValue("schema",!0===a.code.source?{ref:u,code:(0,hc.stringify)(u)}:{ref:u}),d=n.name("valid"),f=t.subschema({schema:u,dataTypes:[],schemaPath:hc.nil,topSchemaRef:h,errSchemaPath:e},d),t.mergeEvaluated(f),void t.ok(d))}};function Sge(t,n){var e=t.gen;return n.validate?e.scopeValue("validate",{ref:n.validate}):(0,hc._)(jY||(jY=Je(["",".validate"])),e.scopeValue("wrapper",{ref:n}))}function OD(t,n,e,i){var r=t.gen,o=t.it,s=o.allErrors,a=o.schemaEnv,l=o.opts.passContext?V0.default.this:hc.nil;function c(h){var d=(0,hc._)(VY||(VY=Je(["",".errors"])),h);r.assign(V0.default.vErrors,(0,hc._)(zY||(zY=Je([""," === null ? "," : ",".concat(",")"])),V0.default.vErrors,d,V0.default.vErrors,d)),r.assign(V0.default.errors,(0,hc._)(UY||(UY=Je(["",".length"])),V0.default.vErrors))}function u(h){var d;if(o.opts.unevaluated){var f=null===(d=e?.validate)||void 0===d?void 0:d.evaluated;if(!0!==o.props)if(f&&!f.dynamicProps)void 0!==f.props&&(o.props=LD.mergeEvaluated.props(r,f.props,o.props));else{var p=r.var("props",(0,hc._)(WY||(WY=Je(["",".evaluated.props"])),h));o.props=LD.mergeEvaluated.props(r,p,o.props,hc.Name)}if(!0!==o.items)if(f&&!f.dynamicItems)void 0!==f.items&&(o.items=LD.mergeEvaluated.items(r,f.items,o.items));else{var m=r.var("items",(0,hc._)(GY||(GY=Je(["",".evaluated.items"])),h));o.items=LD.mergeEvaluated.items(r,m,o.items,hc.Name)}}}i?function(){if(!a.$async)throw new Error("async schema referenced by sync schema");var h=r.let("valid");r.try(function(){r.code((0,hc._)(BY||(BY=Je(["await ",""])),(0,xge.callValidateCode)(t,n,l))),u(n),s||r.assign(h,!0)},function(d){r.if((0,hc._)(HY||(HY=Je(["!("," instanceof ",")"])),d,o.ValidationError),function(){return r.throw(d)}),c(d),s||r.assign(h,!1)}),t.ok(h)}():t.result((0,xge.callValidateCode)(t,n,l),function(){return u(n)},function(){return c(n)})}nm.getValidate=Sge,nm.callRef=OD,nm.default=Dit,Object.defineProperty(I$,"__esModule",{value:!0}),I$.default=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",F$.default,nm.default];var L$={},O$={};Object.defineProperty(O$,"__esModule",{value:!0});var ND=Gr(),Tp=ND.operators,RD={maximum:{okStr:"<=",ok:Tp.LTE,fail:Tp.GT},minimum:{okStr:">=",ok:Tp.GTE,fail:Tp.LT},exclusiveMaximum:{okStr:"<",ok:Tp.LT,fail:Tp.GTE},exclusiveMinimum:{okStr:">",ok:Tp.GT,fail:Tp.LTE}},Eit={message:function(t){var n=t.keyword,e=t.schemaCode;return(0,ND.str)(qY||(qY=Je(["must be "," ",""])),RD[n].okStr,e)},params:function(t){var n=t.keyword,e=t.schemaCode;return(0,ND._)(XY||(XY=Je(["{comparison: ",", limit: ","}"])),RD[n].okStr,e)}},Mit={keyword:Object.keys(RD),type:"number",schemaType:"number",$data:!0,error:Eit,code:function(t){var n=t.keyword,e=t.data,i=t.schemaCode;t.fail$data((0,ND._)(YY||(YY=Je([""," "," "," || isNaN(",")"])),e,RD[n].fail,i,e))}};O$.default=Mit;var N$={};Object.defineProperty(N$,"__esModule",{value:!0});var I_=Gr(),Iit={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:function(t){var n=t.schemaCode;return(0,I_.str)(KY||(KY=Je(["must be multiple of ",""])),n)},params:function(t){var n=t.schemaCode;return(0,I_._)(JY||(JY=Je(["{multipleOf: ","}"])),n)}},code:function(t){var e=t.data,i=t.schemaCode,r=t.it.opts.multipleOfPrecision,o=t.gen.let("res"),s=r?(0,I_._)(QY||(QY=Je(["Math.abs(Math.round(",") - ",") > 1e-",""])),o,o,r):(0,I_._)(ZY||(ZY=Je([""," !== parseInt(",")"])),o,o);t.fail$data((0,I_._)(eK||(eK=Je(["("," === 0 || ("," = ","/",", ","))"])),i,o,e,i,s))}};N$.default=Iit;var R$={},$$={};function kge(t){for(var n,e=t.length,i=0,r=0;r=55296&&n<=56319&&r=a.loopRequired;if(s.allErrors?function(){if(l||o)t.block$data(O_.nil,w);else{var C,k=ot(e);try{for(k.s();!(C=k.n()).done;)(0,L_.checkReportMissingProp)(t,C.value)}catch(L){k.e(L)}finally{k.f()}}}():function(){var C=n.let("missing");if(l||o){var k=n.let("valid",!0);t.block$data(k,function(){return L=k,t.setParams({missingProperty:E=C}),void n.forOf(E,i,function(){n.assign(L,(0,L_.propertyInData)(n,r,E,a.ownProperties)),n.if((0,O_.not)(L),function(){t.error(),n.break()})},O_.nil);var E,L}),t.ok(k)}else n.if((0,L_.checkMissingProp)(t,e,C)),(0,L_.reportMissingProp)(t,C),n.else()}(),a.strictRequired){var c,u=t.parentSchema.properties,h=t.it.definedProperties,d=ot(e);try{for(d.s();!(c=d.n()).done;){var f=c.value;if(void 0===u?.[f]&&!h.has(f)){var p=s.schemaEnv.baseId+s.errSchemaPath,m='required property "'.concat(f,'" is not defined at "').concat(p,'" (strictRequired)');(0,Bit.checkStrictMode)(s,m,s.opts.strictRequired)}}}catch(C){d.e(C)}finally{d.f()}}}function w(){n.forOf("prop",i,function(C){t.setParams({missingProperty:C}),n.if((0,L_.noPropertyInData)(n,r,C,a.ownProperties),function(){return t.error()})})}}};B$.default=Hit;var H$={};Object.defineProperty(H$,"__esModule",{value:!0});var N_=Gr(),Vit={message:function(t){var e=t.schemaCode,i="maxItems"===t.keyword?"more":"fewer";return(0,N_.str)(gK||(gK=Je(["must NOT have "," than "," items"])),i,e)},params:function(t){var n=t.schemaCode;return(0,N_._)(mK||(mK=Je(["{limit: ","}"])),n)}},zit={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Vit,code:function(t){var e=t.data,i=t.schemaCode,r="maxItems"===t.keyword?N_.operators.GT:N_.operators.LT;t.fail$data((0,N_._)(vK||(vK=Je(["",".length "," ",""])),e,r,i))}};H$.default=zit;var V$={},R_={};Object.defineProperty(R_,"__esModule",{value:!0});var Dge=hge;Dge.code='require("ajv/dist/runtime/equal").default',R_.default=Dge,Object.defineProperty(V$,"__esModule",{value:!0});var z$=E_,al=Gr(),Uit=po,Wit=R_,Git={message:function(t){var n=t.params,e=n.i,i=n.j;return(0,al.str)(yK||(yK=Je(["must NOT have duplicate items (items ## "," and "," are identical)"])),i,e)},params:function(t){var n=t.params,e=n.i,i=n.j;return(0,al._)(bK||(bK=Je(["{i: ",", j: ","}"])),e,i)}},qit={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Git,code:function(t){var n=t.gen,e=t.data,o=t.parentSchema,s=t.schemaCode,a=t.it;if(t.$data||t.schema){var l=n.let("valid"),c=o.items?(0,z$.getSchemaTypes)(o.items):[];t.block$data(l,function(){var d=n.let("i",(0,al._)(wK||(wK=Je(["",".length"])),e)),f=n.let("j");t.setParams({i:d,j:f}),n.assign(l,!0),n.if((0,al._)(xK||(xK=Je([""," > 1"])),d),function(){return(c.length>0&&!c.some(function(p){return"object"===p||"array"===p})?u:h)(d,f)})},(0,al._)(_K||(_K=Je([""," === false"])),s)),t.ok(l)}function u(d,f){var p=n.name("item"),m=(0,z$.checkDataTypes)(c,p,a.opts.strictNumbers,z$.DataType.Wrong),w=n.const("indices",(0,al._)(CK||(CK=Je(["{}"]))));n.for((0,al._)(SK||(SK=Je([";","--;"])),d),function(){n.let(p,(0,al._)(kK||(kK=Je(["","[","]"])),e,d)),n.if(m,(0,al._)(DK||(DK=Je(["continue"])))),c.length>1&&n.if((0,al._)(TK||(TK=Je(["typeof ",' == "string"'])),p),(0,al._)(AK||(AK=Je(["",' += "_"'])),p)),n.if((0,al._)(EK||(EK=Je(["typeof ","[",'] == "number"'])),w,p),function(){n.assign(f,(0,al._)(MK||(MK=Je(["","[","]"])),w,p)),t.error(),n.assign(l,!1).break()}).code((0,al._)(IK||(IK=Je(["","[","] = ",""])),w,p,d))})}function h(d,f){var p=(0,Uit.useFunc)(n,Wit.default),m=n.name("outer");n.label(m).for((0,al._)(FK||(FK=Je([";","--;"])),d),function(){return n.for((0,al._)(LK||(LK=Je([""," = ","; ","--;"])),f,d,f),function(){return n.if((0,al._)(OK||(OK=Je(["","(","[","], ","[","])"])),p,e,d,e,f),function(){t.error(),n.assign(l,!1).break(m)})})})}}};V$.default=qit;var U$={};Object.defineProperty(U$,"__esModule",{value:!0});var W$=Gr(),Xit=po,Yit=R_,Kit={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:function(t){var n=t.schemaCode;return(0,W$._)(NK||(NK=Je(["{allowedValue: ","}"])),n)}},code:function(t){var n=t.gen,e=t.data,r=t.schemaCode,o=t.schema;t.$data||o&&"object"==$n(o)?t.fail$data((0,W$._)(RK||(RK=Je(["!","(",", ",")"])),(0,Xit.useFunc)(n,Yit.default),e,r)):t.fail((0,W$._)($K||($K=Je([""," !== ",""])),o,e))}};U$.default=Kit;var G$={};Object.defineProperty(G$,"__esModule",{value:!0});var $_=Gr(),Jit=po,Qit=R_,Zit={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:function(t){var n=t.schemaCode;return(0,$_._)(PK||(PK=Je(["{allowedValues: ","}"])),n)}},code:function(t){var n=t.gen,e=t.data,i=t.$data,r=t.schema,o=t.schemaCode,s=t.it;if(!i&&0===r.length)throw new Error("enum must have non-empty array");var a,l,u=function(){return a??(a=(0,Jit.useFunc)(n,Qit.default))};if(r.length>=s.opts.loopEnum||i)l=n.let("valid"),t.block$data(l,function(){n.assign(l,!1),n.forOf("v",o,function(d){return n.if((0,$_._)(jK||(jK=Je(["","(",", ",")"])),u(),e,d),function(){return n.assign(l,!0).break()})})});else{if(!Array.isArray(r))throw new Error("ajv implementation error");var h=n.const("vSchema",o);l=$_.or.apply(void 0,Ti(r.map(function(d,f){return p=h,"object"===$n(w=r[m=f])&&null!==w?(0,$_._)(BK||(BK=Je(["","(",", ","[","])"])),u(),e,p,m):(0,$_._)(HK||(HK=Je([""," === ",""])),e,w);var p,m,w})))}t.pass(l)}};G$.default=Zit,Object.defineProperty(L$,"__esModule",{value:!0}),L$.default=[O$.default,N$.default,R$.default,P$.default,j$.default,B$.default,H$.default,V$.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},U$.default,G$.default];var q$={},z0={};Object.defineProperty(z0,"__esModule",{value:!0}),z0.validateAdditionalItems=void 0;var rm=Gr(),X$=po,urt={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:function(t){var n=t.params.len;return(0,rm.str)(VK||(VK=Je(["must NOT have more than "," items"])),n)},params:function(t){var n=t.params.len;return(0,rm._)(zK||(zK=Je(["{limit: ","}"])),n)}},code:function(t){var e=t.it,i=t.parentSchema.items;Array.isArray(i)?Tge(t,i):(0,X$.checkStrictMode)(e,'"additionalItems" is ignored when "items" is not an array of schemas')}};function Tge(t,n){var e=t.gen,i=t.schema,r=t.data,o=t.keyword,s=t.it;s.items=!0;var a=e.const("len",(0,rm._)(UK||(UK=Je(["",".length"])),r));if(!1===i)t.setParams({len:n.length}),t.pass((0,rm._)(WK||(WK=Je([""," <= ",""])),a,n.length));else if("object"==$n(i)&&!(0,X$.alwaysValidSchema)(s,i)){var l=e.var("valid",(0,rm._)(GK||(GK=Je([""," <= ",""])),a,n.length));e.if((0,rm.not)(l),function(){return c=l,void e.forRange("i",n.length,a,function(u){t.subschema({keyword:o,dataProp:u,dataPropType:X$.Type.Num},c),s.allErrors||e.if((0,rm.not)(c),function(){return e.break()})});var c}),t.ok(l)}}z0.validateAdditionalItems=Tge,z0.default=urt;var Y$={},U0={};Object.defineProperty(U0,"__esModule",{value:!0}),U0.validateTuple=void 0;var Age=Gr(),PD=po,hrt=gh(),drt={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code:function(t){var n=t.schema,e=t.it;if(Array.isArray(n))return Ege(t,"additionalItems",n);e.items=!0,(0,PD.alwaysValidSchema)(e,n)||t.ok((0,hrt.validateArray)(t))}};function Ege(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.schema,i=t.gen,o=t.data,s=t.keyword,a=t.it;(function u(h){var d=a.opts,f=a.errSchemaPath,p=e.length;if(d.strictTuples&&!(p===h.minItems&&(p===h.maxItems||!1===h[n]))){var w='"'.concat(s,'" is ').concat(p,"-tuple, but minItems or maxItems/").concat(n,' are not specified or different at path "').concat(f,'"');(0,PD.checkStrictMode)(a,w,d.strictTuples)}})(t.parentSchema),a.opts.unevaluated&&e.length&&!0!==a.items&&(a.items=PD.mergeEvaluated.items(i,e.length,a.items));var l=i.name("valid"),c=i.const("len",(0,Age._)(qK||(qK=Je(["",".length"])),o));e.forEach(function(h,d){(0,PD.alwaysValidSchema)(a,h)||(i.if((0,Age._)(XK||(XK=Je([""," > ",""])),c,d),function(){return t.subschema({keyword:s,schemaProp:d,dataProp:d},l)}),t.ok(l))})}U0.validateTuple=Ege,U0.default=drt,Object.defineProperty(Y$,"__esModule",{value:!0});var frt=U0,prt={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:function(t){return(0,frt.validateTuple)(t,"items")}};Y$.default=prt;var K$={};Object.defineProperty(K$,"__esModule",{value:!0});var Mge=Gr(),grt=po,mrt=gh(),vrt=z0,yrt={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:function(t){var n=t.params.len;return(0,Mge.str)(YK||(YK=Je(["must NOT have more than "," items"])),n)},params:function(t){var n=t.params.len;return(0,Mge._)(KK||(KK=Je(["{limit: ","}"])),n)}},code:function(t){var n=t.schema,i=t.it,r=t.parentSchema.prefixItems;i.items=!0,(0,grt.alwaysValidSchema)(i,n)||(r?(0,vrt.validateAdditionalItems)(t,r):t.ok((0,mrt.validateArray)(t)))}};K$.default=yrt;var J$={};Object.defineProperty(J$,"__esModule",{value:!0});var yu=Gr(),jD=po,brt={message:function(t){var n=t.params,e=n.min,i=n.max;return void 0===i?(0,yu.str)(JK||(JK=Je(["must contain at least "," valid item(s)"])),e):(0,yu.str)(QK||(QK=Je(["must contain at least "," and no more than "," valid item(s)"])),e,i)},params:function(t){var n=t.params,e=n.min,i=n.max;return void 0===i?(0,yu._)(ZK||(ZK=Je(["{minContains: ","}"])),e):(0,yu._)(eJ||(eJ=Je(["{minContains: ",", maxContains: ","}"])),e,i)}},_rt={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:brt,code:function(t){var n,e,i=t.gen,r=t.schema,o=t.parentSchema,s=t.data,a=t.it,l=o.minContains;a.opts.next?(n=void 0===l?1:l,e=o.maxContains):n=1;var u=i.const("len",(0,yu._)(tJ||(tJ=Je(["",".length"])),s));if(t.setParams({min:n,max:e}),void 0!==e||0!==n){if(void 0!==e&&n>e)return(0,jD.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void t.fail();if((0,jD.alwaysValidSchema)(a,r)){var h=(0,yu._)(nJ||(nJ=Je([""," >= ",""])),u,n);return void 0!==e&&(h=(0,yu._)(iJ||(iJ=Je([""," && "," <= ",""])),h,u,e)),void t.pass(h)}a.items=!0;var d=i.name("valid");void 0===e&&1===n?p(d,function(){return i.if(d,function(){return i.break()})}):0===n?(i.let(d,!0),void 0!==e&&i.if((0,yu._)(rJ||(rJ=Je(["",".length > 0"])),s),f)):(i.let(d,!1),f()),t.result(d,function(){return t.reset()})}else(0,jD.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');function f(){var m=i.name("_valid"),w=i.let("count",0);p(m,function(){return i.if(m,function(){return C=w,i.code((0,yu._)(oJ||(oJ=Je(["","++"])),C)),void(void 0===e?i.if((0,yu._)(sJ||(sJ=Je([""," >= ",""])),C,n),function(){return i.assign(d,!0).break()}):(i.if((0,yu._)(aJ||(aJ=Je([""," > ",""])),C,e),function(){return i.assign(d,!1).break()}),1===n?i.assign(d,!0):i.if((0,yu._)(lJ||(lJ=Je([""," >= ",""])),C,n),function(){return i.assign(d,!0)})));var C})})}function p(m,w){i.forRange("i",0,u,function(C){t.subschema({keyword:"contains",dataProp:C,dataPropType:jD.Type.Num,compositeRule:!0},m),w()})}}};J$.default=_rt;var Ige={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;var n=Gr(),e=po,i=gh();t.error={message:function(a){var l=a.params,c=l.property,h=l.deps,d=1===l.depsCount?"property":"properties";return(0,n.str)(cJ||(cJ=Je(["must have "," "," when property "," is present"])),d,h,c)},params:function(a){var l=a.params,c=l.property,u=l.depsCount,h=l.deps,d=l.missingProperty;return(0,n._)(uJ||(uJ=Je(["{property: ",",\n missingProperty: ",",\n depsCount: ",",\n deps: ","}"])),c,d,u,h)}};var r={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code:function(a){var l=di(function(h){var d=h.schema,f={},p={};for(var m in d)"__proto__"!==m&&((Array.isArray(d[m])?f:p)[m]=d[m]);return[f,p]}(a),2),u=l[1];o(a,l[0]),s(a,u)}};function o(a){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.schema,c=a.gen,u=a.data,h=a.it;if(0!==Object.keys(l).length){var d=c.let("missing"),f=function(m){var w=l[m];if(0===w.length)return"continue";var C=(0,i.propertyInData)(c,u,m,h.opts.ownProperties);a.setParams({property:m,depsCount:w.length,deps:w.join(", ")}),h.allErrors?c.if(C,function(){var k,E=ot(w);try{for(E.s();!(k=E.n()).done;)(0,i.checkReportMissingProp)(a,k.value)}catch(B){E.e(B)}finally{E.f()}}):(c.if((0,n._)(hJ||(hJ=Je([""," && (",")"])),C,(0,i.checkMissingProp)(a,w,d))),(0,i.reportMissingProp)(a,d),c.else())};for(var p in l)f(p)}}function s(a){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.schema,c=a.gen,u=a.data,h=a.keyword,d=a.it,f=c.name("valid"),p=function(w){if((0,e.alwaysValidSchema)(d,l[w]))return"continue";c.if((0,i.propertyInData)(c,u,w,d.opts.ownProperties),function(){var C=a.subschema({keyword:h,schemaProp:w},f);a.mergeValidEvaluated(C,f)},function(){return c.var(f,!0)}),a.ok(f)};for(var m in l)p(m)}t.validatePropertyDeps=o,t.validateSchemaDeps=s,t.default=r}(Ige);var Q$={};Object.defineProperty(Q$,"__esModule",{value:!0});var Fge=Gr(),wrt=po,xrt={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:function(t){var n=t.params;return(0,Fge._)(dJ||(dJ=Je(["{propertyName: ","}"])),n.propertyName)}},code:function(t){var n=t.gen,i=t.data,r=t.it;if(!(0,wrt.alwaysValidSchema)(r,t.schema)){var o=n.name("valid");n.forIn("key",i,function(s){t.setParams({propertyName:s}),t.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},o),n.if((0,Fge.not)(o),function(){t.error(!0),r.allErrors||n.break()})}),t.ok(o)}}};Q$.default=xrt;var BD={};Object.defineProperty(BD,"__esModule",{value:!0});var HD=gh(),yh=Gr(),Crt=kp(),VD=po,Srt={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:function(t){var n=t.params;return(0,yh._)(fJ||(fJ=Je(["{additionalProperty: ","}"])),n.additionalProperty)}},code:function(t){var n=t.gen,e=t.schema,i=t.parentSchema,r=t.data,o=t.errsCount,s=t.it;if(!o)throw new Error("ajv implementation error");var a=s.allErrors,l=s.opts;if(s.props=!0,"all"===l.removeAdditional||!(0,VD.alwaysValidSchema)(s,e)){var c=(0,HD.allSchemaProperties)(i.properties),u=(0,HD.allSchemaProperties)(i.patternProperties);n.forIn("key",r,function(p){c.length||u.length?n.if(function(m){var w;if(c.length>8){var C=(0,VD.schemaRefOrVal)(s,i.properties,"properties");w=(0,HD.isOwnProperty)(n,C,m)}else w=c.length?yh.or.apply(void 0,Ti(c.map(function(k){return(0,yh._)(gJ||(gJ=Je([""," === ",""])),m,k)}))):yh.nil;return u.length&&(w=yh.or.apply(void 0,[w].concat(Ti(u.map(function(k){return(0,yh._)(mJ||(mJ=Je(["",".test(",")"])),(0,HD.usePattern)(t,k),m)}))))),(0,yh.not)(w)}(p),function(){return d(p)}):d(p)}),t.ok((0,yh._)(pJ||(pJ=Je([""," === ",""])),o,Crt.default.errors))}function h(p){n.code((0,yh._)(vJ||(vJ=Je(["delete ","[","]"])),r,p))}function d(p){if("all"===l.removeAdditional||l.removeAdditional&&!1===e)h(p);else{if(!1===e)return t.setParams({additionalProperty:p}),t.error(),void(a||n.break());if("object"==$n(e)&&!(0,VD.alwaysValidSchema)(s,e)){var m=n.name("valid");"failing"===l.removeAdditional?(f(p,m,!1),n.if((0,yh.not)(m),function(){t.reset(),h(p)})):(f(p,m),a||n.if((0,yh.not)(m),function(){return n.break()}))}}}function f(p,m,w){var C={keyword:"additionalProperties",dataProp:p,dataPropType:VD.Type.Str};!1===w&&Object.assign(C,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(C,m)}}};BD.default=Srt;var Z$={};Object.defineProperty(Z$,"__esModule",{value:!0});var krt=AD(),Lge=gh(),e4=po,Oge=BD,Drt={keyword:"properties",type:"object",schemaType:"object",code:function(t){var n=t.gen,e=t.schema,r=t.data,o=t.it;"all"===o.opts.removeAdditional&&void 0===t.parentSchema.additionalProperties&&Oge.default.code(new krt.KeywordCxt(o,Oge.default,"additionalProperties"));var s,a=(0,Lge.allSchemaProperties)(e),l=ot(a);try{for(l.s();!(s=l.n()).done;)o.definedProperties.add(s.value)}catch(C){l.e(C)}finally{l.f()}o.opts.unevaluated&&a.length&&!0!==o.props&&(o.props=e4.mergeEvaluated.props(n,(0,e4.toHash)(a),o.props));var C,u=a.filter(function(C){return!(0,e4.alwaysValidSchema)(o,e[C])});if(0!==u.length){var h,d=n.name("valid"),f=ot(u);try{for(f.s();!(h=f.n()).done;){var p=h.value;o.opts.useDefaults&&!o.compositeRule&&void 0!==e[C=p].default?w(p):(n.if((0,Lge.propertyInData)(n,r,p,o.opts.ownProperties)),w(p),o.allErrors||n.else().var(d,!0),n.endIf()),t.it.definedProperties.add(p),t.ok(d)}}catch(C){f.e(C)}finally{f.f()}}function w(C){t.subschema({keyword:"properties",schemaProp:C,dataProp:C},d)}}};Z$.default=Drt;var t4={};Object.defineProperty(t4,"__esModule",{value:!0});var Nge=gh(),zD=Gr(),Rge=po,$ge=po,Trt={keyword:"patternProperties",type:"object",schemaType:"object",code:function(t){var n=t.gen,e=t.schema,i=t.data,r=t.parentSchema,o=t.it,s=o.opts,a=(0,Nge.allSchemaProperties)(e),l=a.filter(function(p){return(0,Rge.alwaysValidSchema)(o,e[p])});if(0!==a.length&&(l.length!==a.length||o.opts.unevaluated&&!0!==o.props)){var c=s.strictSchema&&!s.allowMatchingProperties&&r.properties,u=n.name("valid");!0===o.props||o.props instanceof zD.Name||(o.props=(0,$ge.evaluatedPropsToName)(n,o.props));var h=o.props;!function(){var p,m=ot(a);try{for(m.s();!(p=m.n()).done;){var w=p.value;c&&d(w),o.allErrors?f(w):(n.var(u,!0),f(w),n.if(u))}}catch(C){m.e(C)}finally{m.f()}}()}function d(p){for(var m in c)new RegExp(p).test(m)&&(0,Rge.checkStrictMode)(o,"property ".concat(m," matches pattern ").concat(p," (use allowMatchingProperties)"))}function f(p){n.forIn("key",i,function(m){n.if((0,zD._)(yJ||(yJ=Je(["",".test(",")"])),(0,Nge.usePattern)(t,p),m),function(){var w=l.includes(p);w||t.subschema({keyword:"patternProperties",schemaProp:p,dataProp:m,dataPropType:$ge.Type.Str},u),o.opts.unevaluated&&!0!==h?n.assign((0,zD._)(bJ||(bJ=Je(["","[","]"])),h,m),!0):w||o.allErrors||n.if((0,zD.not)(u),function(){return n.break()})})})}}};t4.default=Trt;var n4={};Object.defineProperty(n4,"__esModule",{value:!0});var Art=po,Ert={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code:function(t){var n=t.gen;if((0,Art.alwaysValidSchema)(t.it,t.schema))t.fail();else{var r=n.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},r),t.failResult(r,function(){return t.reset()},function(){return t.error()})}},error:{message:"must NOT be valid"}};n4.default=Ert;var i4={};Object.defineProperty(i4,"__esModule",{value:!0});var Mrt={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:gh().validateUnion,error:{message:"must match a schema in anyOf"}};i4.default=Mrt;var r4={};Object.defineProperty(r4,"__esModule",{value:!0});var UD=Gr(),Irt=po,Frt={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:function(t){var n=t.params;return(0,UD._)(_J||(_J=Je(["{passingSchemas: ","}"])),n.passing)}},code:function(t){var n=t.gen,e=t.schema,i=t.parentSchema,r=t.it;if(!Array.isArray(e))throw new Error("ajv implementation error");if(!r.opts.discriminator||!i.discriminator){var o=e,s=n.let("valid",!1),a=n.let("passing",null),l=n.name("_valid");t.setParams({passing:a}),n.block(function(){o.forEach(function(c,u){var h;(0,Irt.alwaysValidSchema)(r,c)?n.var(l,!0):h=t.subschema({keyword:"oneOf",schemaProp:u,compositeRule:!0},l),u>0&&n.if((0,UD._)(wJ||(wJ=Je([""," && ",""])),l,s)).assign(s,!1).assign(a,(0,UD._)(xJ||(xJ=Je(["[",", ","]"])),a,u)).else(),n.if(l,function(){n.assign(s,!0),n.assign(a,u),h&&t.mergeEvaluated(h,UD.Name)})})}),t.result(s,function(){return t.reset()},function(){return t.error(!0)})}}};r4.default=Frt;var o4={};Object.defineProperty(o4,"__esModule",{value:!0});var Lrt=po,Ort={keyword:"allOf",schemaType:"array",code:function(t){var n=t.gen,e=t.schema,i=t.it;if(!Array.isArray(e))throw new Error("ajv implementation error");var r=n.name("valid");e.forEach(function(o,s){if(!(0,Lrt.alwaysValidSchema)(i,o)){var a=t.subschema({keyword:"allOf",schemaProp:s},r);t.ok(r),t.mergeEvaluated(a)}})}};o4.default=Ort;var s4={};Object.defineProperty(s4,"__esModule",{value:!0});var WD=Gr(),Pge=po,Nrt={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:function(t){var n=t.params;return(0,WD.str)(CJ||(CJ=Je(['must match "','" schema'])),n.ifClause)},params:function(t){var n=t.params;return(0,WD._)(SJ||(SJ=Je(["{failingKeyword: ","}"])),n.ifClause)}},code:function(t){var n=t.gen,e=t.parentSchema,i=t.it;void 0===e.then&&void 0===e.else&&(0,Pge.checkStrictMode)(i,'"if" without "then" and "else" is ignored');var r=jge(i,"then"),o=jge(i,"else");if(r||o){var s,a=n.let("valid",!0),l=n.name("_valid");if(s=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},l),t.mergeEvaluated(s),t.reset(),r&&o){var c=n.let("ifClause");t.setParams({ifClause:c}),n.if(l,u("then",c),u("else",c))}else r?n.if(l,u("then")):n.if((0,WD.not)(l),u("else"));t.pass(a,function(){return t.error(!0)})}function u(h,d){return function(){var f=t.subschema({keyword:h},l);n.assign(a,l),t.mergeValidEvaluated(f,a),d?n.assign(d,(0,WD._)(kJ||(kJ=Je(["",""])),h)):t.setParams({ifClause:h})}}}};function jge(t,n){var e=t.schema[n];return void 0!==e&&!(0,Pge.alwaysValidSchema)(t,e)}s4.default=Nrt;var a4={};Object.defineProperty(a4,"__esModule",{value:!0});var Rrt=po,$rt={keyword:["then","else"],schemaType:["object","boolean"],code:function(t){void 0===t.parentSchema.if&&(0,Rrt.checkStrictMode)(t.it,'"'.concat(t.keyword,'" without "if" is ignored'))}};a4.default=$rt,Object.defineProperty(q$,"__esModule",{value:!0});var Prt=z0,jrt=Y$,Brt=U0,Hrt=K$,Vrt=J$,zrt=Ige,Urt=Q$,Wrt=BD,Grt=Z$,qrt=t4,Xrt=n4,Yrt=i4,Krt=r4,Jrt=o4,Qrt=s4,Zrt=a4;q$.default=function(){var n=[Xrt.default,Yrt.default,Krt.default,Jrt.default,Qrt.default,Zrt.default,Urt.default,Wrt.default,zrt.default,Grt.default,qrt.default];return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.push(jrt.default,Hrt.default):n.push(Prt.default,Brt.default),n.push(Vrt.default),n};var l4={},c4={};Object.defineProperty(c4,"__esModule",{value:!0});var Js=Gr(),eot={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:function(t){var n=t.schemaCode;return(0,Js.str)(DJ||(DJ=Je(['must match format "','"'])),n)},params:function(t){var n=t.schemaCode;return(0,Js._)(TJ||(TJ=Je(["{format: ","}"])),n)}},code:function(t,n){var w,C,d,f,p,m,e=t.gen,i=t.data,o=t.schema,s=t.schemaCode,a=t.it,l=a.opts,c=a.errSchemaPath,u=a.schemaEnv,h=a.self;l.validateFormats&&(t.$data?(d=e.scopeValue("formats",{ref:h.formats,code:l.code.formats}),f=e.const("fDef",(0,Js._)(AJ||(AJ=Je(["","[","]"])),d,s)),p=e.let("fType"),m=e.let("format"),e.if((0,Js._)(EJ||(EJ=Je(["typeof ",' == "object" && !('," instanceof RegExp)"])),f,f),function(){return e.assign(p,(0,Js._)(MJ||(MJ=Je(["",'.type || "string"'])),f)).assign(m,(0,Js._)(IJ||(IJ=Je(["",".validate"])),f))},function(){return e.assign(p,(0,Js._)(FJ||(FJ=Je(['"string"'])))).assign(m,f)}),t.fail$data((0,Js.or)(!1===l.strictSchema?Js.nil:(0,Js._)(LJ||(LJ=Je([""," && !",""])),s,m),(w=u.$async?(0,Js._)(OJ||(OJ=Je(["(",".async ? await ","(",") : ","(","))"])),f,m,i,m,i):(0,Js._)(NJ||(NJ=Je(["","(",")"])),m,i),C=(0,Js._)(RJ||(RJ=Je(["(typeof ",' == "function" ? '," : ",".test(","))"])),m,w,m,i),(0,Js._)($J||($J=Je([""," && "," !== true && "," === "," && !",""])),m,m,p,n,C))))):function(){var d=h.formats[o];if(d){if(!0!==d){var f=di(function(C){var k=C instanceof RegExp?(0,Js.regexpCode)(C):l.code.formats?(0,Js._)(PJ||(PJ=Je(["","",""])),l.code.formats,(0,Js.getProperty)(o)):void 0,E=e.scopeValue("formats",{key:o,ref:C,code:k});return"object"!=$n(C)||C instanceof RegExp?["string",C,E]:[C.type||"string",C.validate,(0,Js._)(jJ||(jJ=Je(["",".validate"])),E)]}(d),3),m=f[1],w=f[2];f[0]===n&&t.pass(function(){if("object"==$n(d)&&!(d instanceof RegExp)&&d.async){if(!u.$async)throw new Error("async format in sync schema");return(0,Js._)(BJ||(BJ=Je(["await ","(",")"])),w,i)}return(0,Js._)("function"==typeof m?HJ||(HJ=Je(["","(",")"])):VJ||(VJ=Je(["",".test(",")"])),w,i)}())}}else!function(){if(!1!==l.strictSchema)throw new Error(C());function C(){return'unknown format "'.concat(o,'" ignored in schema at path "').concat(c,'"')}h.logger.warn(C())}()}())}};c4.default=eot,Object.defineProperty(l4,"__esModule",{value:!0}),l4.default=[c4.default];var W0={};Object.defineProperty(W0,"__esModule",{value:!0}),W0.contentVocabulary=W0.metadataVocabulary=void 0,W0.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],W0.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(M$,"__esModule",{value:!0});var rot=l4,Bge=W0,oot=[I$.default,L$.default,(0,q$.default)(),rot.default,Bge.metadataVocabulary,Bge.contentVocabulary];M$.default=oot;var u4={},Hge={};(function(t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,(n=t.DiscrError||(t.DiscrError={})).Tag="tag",n.Mapping="mapping"})(Hge),Object.defineProperty(u4,"__esModule",{value:!0});var G0=Gr(),h4=Hge,Vge=uc,sot=po,aot={keyword:"discriminator",type:"object",schemaType:"object",error:{message:function(t){var n=t.params,i=n.tagName;return n.discrError===h4.DiscrError.Tag?'tag "'.concat(i,'" must be string'):'value of tag "'.concat(i,'" must be in oneOf')},params:function(t){var n=t.params,e=n.discrError,i=n.tag,r=n.tagName;return(0,G0._)(zJ||(zJ=Je(["{error: ",", tag: ",", tagValue: ","}"])),e,r,i)}},code:function(t){var n=t.gen,e=t.data,i=t.schema,r=t.parentSchema,o=t.it,s=r.oneOf;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");var a=i.propertyName;if("string"!=typeof a)throw new Error("discriminator: requires propertyName");if(i.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");var l=n.let("valid",!1),c=n.const("tag",(0,G0._)(UJ||(UJ=Je(["","",""])),e,(0,G0.getProperty)(a)));function u(h){var d=n.name("valid"),f=t.subschema({keyword:"oneOf",schemaProp:h},d);return t.mergeEvaluated(f,G0.Name),d}n.if((0,G0._)(WJ||(WJ=Je(["typeof ",' == "string"'])),c),function(){return function(){var h=function(){for(var f,p={},m=L(r),w=!0,C=0;C",9:"Array"},u="UnquotedIdentifier",h="QuotedIdentifier",d="Rbracket",f="Rparen",p="Comma",m="Colon",w="Rbrace",C="Number",k="Current",E="Expref",L="Pipe",De="Flatten",ie="Star",ge="Filter",we="Dot",Fe="Lbrace",z="Lbracket",Q="Lparen",Z="Literal",me={".":we,"*":ie,",":p,":":m,"{":Fe,"}":w,"]":d,"(":Q,")":f,"@":k},ae={"<":!0,">":!0,"=":!0,"!":!0},Te={" ":!0,"\t":!0,"\n":!0};function Oe(se){return se>="0"&&se<="9"||"-"===se}function Ze(){}Ze.prototype={tokenize:function(se){var Se,ke,Qe,gt,rt=[];for(this._current=0;this._current="a"&><="z"||gt>="A"&><="Z"||"_"===gt)Se=this._current,ke=this._consumeUnquotedIdentifier(se),rt.push({type:u,value:ke,start:Se});else if(void 0!==me[se[this._current]])rt.push({type:me[se[this._current]],value:se[this._current],start:this._current}),this._current++;else if(Oe(se[this._current]))Qe=this._consumeNumber(se),rt.push(Qe);else if("["===se[this._current])Qe=this._consumeLBracket(se),rt.push(Qe);else if('"'===se[this._current])Se=this._current,ke=this._consumeQuotedIdentifier(se),rt.push({type:h,value:ke,start:Se});else if("'"===se[this._current])Se=this._current,ke=this._consumeRawStringLiteral(se),rt.push({type:Z,value:ke,start:Se});else if("`"===se[this._current]){Se=this._current;var zt=this._consumeLiteral(se);rt.push({type:Z,value:zt,start:Se})}else if(void 0!==ae[se[this._current]])rt.push(this._consumeOperator(se));else if(void 0!==Te[se[this._current]])this._current++;else if("&"===se[this._current])Se=this._current,this._current++,"&"===se[this._current]?(this._current++,rt.push({type:"And",value:"&&",start:Se})):rt.push({type:E,value:"&",start:Se});else{if("|"!==se[this._current]){var Qt=new Error("Unknown character:"+se[this._current]);throw Qt.name="LexerError",Qt}Se=this._current,this._current++,"|"===se[this._current]?(this._current++,rt.push({type:"Or",value:"||",start:Se})):rt.push({type:L,value:"|",start:Se})}return rt},_consumeUnquotedIdentifier:function(se){var Se,ke=this._current;for(this._current++;this._current="a"&&Se<="z"||Se>="A"&&Se<="Z"||Se>="0"&&Se<="9"||"_"===Se);)this._current++;return se.slice(ke,this._current)},_consumeQuotedIdentifier:function(se){var Se=this._current;this._current++;for(var ke=se.length;'"'!==se[this._current]&&this._current"===ke?"="===se[this._current]?(this._current++,{type:"GTE",value:">=",start:Se}):{type:"GT",value:">",start:Se}:"="===ke&&"="===se[this._current]?(this._current++,{type:"EQ",value:"==",start:Se}):void 0},_consumeLiteral:function(se){this._current++;for(var Se,ke=this._current,Qe=se.length;"`"!==se[this._current]&&this._current=0||["true","false","null"].indexOf(se)>=0)return!0;if(!("-0123456789".indexOf(se[0])>=0))return!1;try{return JSON.parse(se),!0}catch{return!1}}};var Ve={};function wt(){}function ct(se){this.runtime=se}function Ct(se){this._interpreter=se,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[s]}]},avg:{_func:this._functionAvg,_signature:[{types:[8]}]},ceil:{_func:this._functionCeil,_signature:[{types:[s]}]},contains:{_func:this._functionContains,_signature:[{types:[a,3]},{types:[1]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[a]},{types:[a]}]},floor:{_func:this._functionFloor,_signature:[{types:[s]}]},length:{_func:this._functionLength,_signature:[{types:[a,3,4]}]},map:{_func:this._functionMap,_signature:[{types:[6]},{types:[3]}]},max:{_func:this._functionMax,_signature:[{types:[8,9]}]},merge:{_func:this._functionMerge,_signature:[{types:[4],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[3]},{types:[6]}]},sum:{_func:this._functionSum,_signature:[{types:[8]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[a]},{types:[a]}]},min:{_func:this._functionMin,_signature:[{types:[8,9]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[3]},{types:[6]}]},type:{_func:this._functionType,_signature:[{types:[1]}]},keys:{_func:this._functionKeys,_signature:[{types:[4]}]},values:{_func:this._functionValues,_signature:[{types:[4]}]},sort:{_func:this._functionSort,_signature:[{types:[9,8]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[3]},{types:[6]}]},join:{_func:this._functionJoin,_signature:[{types:[a]},{types:[9]}]},reverse:{_func:this._functionReverse,_signature:[{types:[a,3]}]},to_array:{_func:this._functionToArray,_signature:[{types:[1]}]},to_string:{_func:this._functionToString,_signature:[{types:[1]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[1]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[1],variadic:!0}]}}}Ve.EOF=0,Ve.UnquotedIdentifier=0,Ve.QuotedIdentifier=0,Ve.Rbracket=0,Ve.Rparen=0,Ve.Comma=0,Ve.Rbrace=0,Ve.Number=0,Ve.Current=0,Ve.Expref=0,Ve.Pipe=1,Ve.Or=2,Ve.And=3,Ve.EQ=5,Ve.GT=5,Ve.LT=5,Ve.GTE=5,Ve.LTE=5,Ve.NE=5,Ve.Flatten=9,Ve.Star=20,Ve.Filter=21,Ve.Dot=40,Ve.Not=45,Ve.Lbrace=50,Ve.Lbracket=55,Ve.Lparen=60,wt.prototype={parse:function(se){this._loadTokens(se),this.index=0;var Se=this.expression(0);if("EOF"!==this._lookahead(0)){var ke=this._lookaheadToken(0),Qe=new Error("Unexpected token type: "+ke.type+", value: "+ke.value);throw Qe.name="ParserError",Qe}return Se},_loadTokens:function(se){var Se=(new Ze).tokenize(se);Se.push({type:"EOF",value:"",start:se.length}),this.tokens=Se},expression:function(se){var Se=this._lookaheadToken(0);this._advance();for(var ke=this.nud(Se),Qe=this._lookahead(0);se=0?this.expression(se):Se===z?(this._match(z),this._parseMultiselectList()):Se===Fe?(this._match(Fe),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(se){var Se;if(Ve[this._lookahead(0)]<10)Se={type:"Identity"};else if(this._lookahead(0)===z)Se=this.expression(se);else if(this._lookahead(0)===ge)Se=this.expression(se);else{if(this._lookahead(0)!==we){var ke=this._lookaheadToken(0),Qe=new Error("Sytanx error, unexpected token: "+ke.value+"("+ke.type+")");throw Qe.name="ParserError",Qe}this._match(we),Se=this._parseDotRHS(se)}return Se},_parseMultiselectList:function(){for(var se=[];this._lookahead(0)!==d;){var Se=this.expression(0);if(se.push(Se),this._lookahead(0)===p&&(this._match(p),this._lookahead(0)===d))throw new Error("Unexpected token Rbracket")}return this._match(d),{type:"MultiSelectList",children:se}},_parseMultiselectHash:function(){for(var se,Se,ke,Qe=[],gt=[u,h];;){if(se=this._lookaheadToken(0),gt.indexOf(se.type)<0)throw new Error("Expecting an identifier token, got: "+se.type);if(Se=se.value,this._advance(),this._match(m),ke={type:"KeyValuePair",name:Se,value:this.expression(0)},Qe.push(ke),this._lookahead(0)===p)this._match(p);else if(this._lookahead(0)===w){this._match(w);break}}return{type:"MultiSelectHash",children:Qe}}},ct.prototype={search:function(se,Se){return this.visit(se,Se)},visit:function(se,Se){var ke,Qe,gt,rt,zt,Qt,Pn,Mi,Sn;switch(se.type){case"Field":return null!==Se&&e(Se)?void 0===(Qt=Se[se.name])?null:Qt:null;case"Subexpression":for(gt=this.visit(se.children[0],Se),Sn=1;Sn0)for(Sn=uo;Snqr;Sn+=oo)gt.push(Se[Sn]);return gt;case"Projection":var er=this.visit(se.children[0],Se);if(!n(er))return null;for(Mi=[],Sn=0;Snzt;break;case"GTE":gt=rt>=zt;break;case"LT":gt=rt=se&&(Se=ke<0?se-1:se),Se}},Ct.prototype={callFunction:function(se,Se){var ke=this.functionTable[se];if(void 0===ke)throw new Error("Unknown function: "+se+"()");return this._validateArgs(se,Se,ke._signature),ke._func.call(this,Se)},_validateArgs:function(se,Se,ke){var Qe,gt,rt,zt;if(ke[ke.length-1].variadic){if(Se.length=0;Qe--)ke+=Se[Qe];return ke}var gt=se[0].slice(0);return gt.reverse(),gt},_functionAbs:function(se){return Math.abs(se[0])},_functionCeil:function(se){return Math.ceil(se[0])},_functionAvg:function(se){for(var Se=0,ke=se[0],Qe=0;Qe=0},_functionFloor:function(se){return Math.floor(se[0])},_functionLength:function(se){return e(se[0])?Object.keys(se[0]).length:se[0].length},_functionMap:function(se){for(var Se=[],ke=this._interpreter,Qe=se[0],gt=se[1],rt=0;rt0){if(this._getTypeName(se[0][0])===s)return Math.max.apply(Math,se[0]);for(var Se=se[0],ke=Se[0],Qe=1;Qe0){if(this._getTypeName(se[0][0])===s)return Math.min.apply(Math,se[0]);for(var Se=se[0],ke=Se[0],Qe=1;QeOn?1:nrzt&&(zt=ke,Se=gt[Qt]);return Se},_functionMinBy:function(se){for(var Se,ke,gt=se[0],rt=this.createKeyFunction(se[1],[s,a]),zt=1/0,Qt=0;Qt1&&void 0!==arguments[1]?arguments[1]:1;return(n>0?t.toFixed(n).replace(/0+$/,"").replace(/\.$/,""):t.toString())||"0"}var dot=function(){function t(n,e,i,r){d4(this,t);var o=this;if(void 0!==n)if(Array.isArray(n))this.rgba=n;else if(void 0===i){var s=n&&""+n;s&&function(a){if(a.startsWith("hsl")){var l=a.match(/([\-\d\.e]+)/g).map(Number),c=GD(l,4),u=c[0],h=c[1],d=c[2],f=c[3];void 0===f&&(f=1),o.hsla=[u/=360,h/=100,d/=100,f]}else if(a.startsWith("rgb")){var p=a.match(/([\-\d\.e]+)/g).map(Number),m=GD(p,4),E=m[3];void 0===E&&(E=1),o.rgba=[m[0],m[1],m[2],E]}else o.rgba=a.startsWith("#")?t.hexToRgb(a):t.nameToRgb(a)||t.hexToRgb(a)}(s.toLowerCase())}else this.rgba=[n,e,i,void 0===r?1:r]}return f4(t,[{key:"printRGB",value:function(n){var e=(n?this.rgba:this.rgba.slice(0,3)).map(function(i,r){return Wge(i,3===r?3:0)});return n?"rgba("+e+")":"rgb("+e+")"}},{key:"printHSL",value:function(n){var e=[360,100,100,1],i=["","%","%",""],r=(n?this.hsla:this.hsla.slice(0,3)).map(function(o,s){return Wge(o*e[s],3===s?3:1)+i[s]});return n?"hsla("+r+")":"hsl("+r+")"}},{key:"printHex",value:function(n){var e=this.hex;return n?e:e.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(!this._hsla)throw new Error("No color is set");return this._rgba=t.hslToRgb(this._hsla)},set:function(n){3===n.length&&(n[3]=1),this._rgba=n,this._hsla=null}},{key:"rgbString",get:function(){return this.printRGB()}},{key:"rgbaString",get:function(){return this.printRGB(!0)}},{key:"hsla",get:function(){if(this._hsla)return this._hsla;if(!this._rgba)throw new Error("No color is set");return this._hsla=t.rgbToHsl(this._rgba)},set:function(n){3===n.length&&(n[3]=1),this._hsla=n,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){var n=this.rgba.map(function(e,i){return i<3?e.toString(16):Math.round(255*e).toString(16)});return"#"+n.map(function(e){return e.padStart(2,"0")}).join("")},set:function(n){this.rgba=t.hexToRgb(n)}}],[{key:"hexToRgb",value:function(n){var e=(n.startsWith("#")?n.slice(1):n).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(!e.match(/^([0-9a-fA-F]{8})$/))throw new Error("Unknown hex color; "+n);var i=e.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map(function(r){return parseInt(r,16)});return i[3]=i[3]/255,i}},{key:"nameToRgb",value:function(n){var e=n.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),i=hot[e];return void 0===i?i:t.hexToRgb(i.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(n){var e=GD(n,4),i=e[0],r=e[1],o=e[2],s=e[3];i/=255,r/=255,o/=255;var a=Math.max(i,r,o),l=Math.min(i,r,o),c=void 0,u=void 0,h=(a+l)/2;if(a===l)c=u=0;else{var d=a-l;switch(u=h>.5?d/(2-a-l):d/(a+l),a){case i:c=(r-o)/d+(r1&&(w-=1),w<.16666666666666666?p+6*(m-p)*w:w<.5?m:w<.6666666666666666?p+(m-p)*(.6666666666666666-w)*6:p},h=o<.5?o*(1+r):o+r-o*r,d=2*o-h;a=u(d,h,i+1/3),l=u(d,h,i),c=u(d,h,i-1/3)}var f=[255*a,255*l,255*c].map(Math.round);return f[3]=s,f}}]),t}(),fot=function(){function t(){d4(this,t),this._events=[]}return f4(t,[{key:"add",value:function(n,e,i){n.addEventListener(e,i,!1),this._events.push({target:n,type:e,handler:i})}},{key:"remove",value:function(n,e,i){this._events=this._events.filter(function(r){var o=!0;return n&&n!==r.target&&(o=!1),e&&e!==r.type&&(o=!1),i&&i!==r.handler&&(o=!1),o&&t._doRemove(r.target,r.type,r.handler),!o})}},{key:"destroy",value:function(){this._events.forEach(function(n){return t._doRemove(n.target,n.type,n.handler)}),this._events=[]}}],[{key:"_doRemove",value:function(n,e,i){n.removeEventListener(e,i,!1)}}]),t}();function p4(t,n,e){var i=!1;function r(l,c,u){return Math.max(c,Math.min(l,u))}function o(l,c,u){if(u&&(i=!0),i){l.preventDefault();var h=n.getBoundingClientRect(),d=h.width,f=h.height,m=c.clientY,w=r(c.clientX-h.left,0,d),C=r(m-h.top,0,f);e(w/d,C/f)}}function s(l,c){1===(void 0===l.buttons?l.which:l.buttons)?o(l,l,c):i=!1}function a(l,c){1===l.touches.length?o(l,l.touches[0],c):i=!1}t.add(n,"mousedown",function(l){s(l,!0)}),t.add(n,"touchstart",function(l){a(l,!0)}),t.add(window,"mousemove",s),t.add(n,"touchmove",a),t.add(window,"mouseup",function(l){i=!1}),t.add(n,"touchend",function(l){i=!1}),t.add(n,"touchcancel",function(l){i=!1})}function wd(t,n){return(n||document).querySelector(t)}function Gge(t){t.preventDefault(),t.stopPropagation()}function g4(t,n,e,i,r){t.add(n,"keydown",function(o){e.indexOf(o.key)>=0&&(r&&Gge(o),i(o))})}var qge=function(){function t(n){d4(this,t),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new fot,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(n)}return f4(t,[{key:"setOptions",value:function(n){var e=this;if(n){var i=this.settings;if(n instanceof HTMLElement)i.parent=n;else{i.parent&&n.parent&&i.parent!==n.parent&&(this._events.remove(i.parent),this._popupInited=!1),function(a,l,c){for(var u in a)l[u]=a[u]}(n,i),n.onChange&&(this.onChange=n.onChange),n.onDone&&(this.onDone=n.onDone),n.onOpen&&(this.onOpen=n.onOpen),n.onClose&&(this.onClose=n.onClose);var r=n.color||n.colour;r&&this._setColor(r)}var o=i.parent;if(o&&i.popup&&!this._popupInited){var s=function(a){return e.openHandler(a)};this._events.add(o,"click",s),g4(this._events,o,[" ","Spacebar","Enter"],s),this._popupInited=!0}else n.parent&&!i.popup&&this.show()}}},{key:"openHandler",value:function(n){if(this.show()){n&&n.preventDefault(),this.settings.parent.style.pointerEvents="none";var e=n&&"keydown"===n.type?this._domEdit:this.domElement;setTimeout(function(){return e.focus()},100),this.onOpen&&this.onOpen(this.colour)}}},{key:"closeHandler",value:function(n){var e=n&&n.type,i=!1;n?"mousedown"===e||"focusin"===e?n.timeStamp>(this.__containedEvent||0)+100&&(i=!0):(Gge(n),i=!0):i=!0,i&&this.hide()&&(this.settings.parent.style.pointerEvents="","mousedown"!==e&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:"movePopup",value:function(n,e){this.closeHandler(),this.setOptions(n),e&&this.openHandler()}},{key:"setColor",value:function(n,e){this._setColor(n,{silent:e})}},{key:"_setColor",value:function(n,e){if("string"==typeof n&&(n=n.trim()),n){e=e||{};var i=void 0;try{i=new dot(n)}catch(o){if(e.failSilently)return;throw o}if(!this.settings.alpha){var r=i.hsla;r[3]=1,i.hsla=r}this.colour=this.color=i,this._setHSLA(null,null,null,null,e)}}},{key:"setColour",value:function(n,e){this.setColor(n,e)}},{key:"show",value:function(){if(!this.settings.parent)return!1;if(this.domElement){var n=this._toggleDOM(!0);return this._setPosition(),n}var e,i,o=(e=this.settings.template||'
    ',(i=document.createElement("div")).innerHTML=e,i.firstElementChild);return this.domElement=o,this._domH=wd(".picker_hue",o),this._domSL=wd(".picker_sl",o),this._domA=wd(".picker_alpha",o),this._domEdit=wd(".picker_editor input",o),this._domSample=wd(".picker_sample",o),this._domOkay=wd(".picker_done button",o),this._domCancel=wd(".picker_cancel button",o),o.classList.add("layout_"+this.settings.layout),this.settings.alpha||o.classList.add("no_alpha"),this.settings.editor||o.classList.add("no_editor"),this.settings.cancelButton||o.classList.add("no_cancel"),this._ifPopup(function(){return o.classList.add("popup")}),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){var n=this,e=this,i=this.domElement,r=this._events;function o(l,c,u){r.add(l,c,u)}o(i,"click",function(l){return l.preventDefault()}),p4(r,this._domH,function(l,c){return e._setHSLA(l)}),p4(r,this._domSL,function(l,c){return e._setHSLA(null,l,1-c)}),this.settings.alpha&&p4(r,this._domA,function(l,c){return e._setHSLA(null,null,null,1-c)});var s=this._domEdit;o(s,"input",function(l){e._setColor(this.value,{fromEditor:!0,failSilently:!0})}),o(s,"focus",function(l){var c=this;c.selectionStart===c.selectionEnd&&c.select()}),this._ifPopup(function(){var l=function(u){return n.closeHandler(u)};o(window,"mousedown",l),o(window,"focusin",l),g4(r,i,["Esc","Escape"],l);var c=function(u){n.__containedEvent=u.timeStamp};o(i,"mousedown",c),o(i,"focusin",c),o(n._domCancel,"click",l)});var a=function(l){n._ifPopup(function(){return n.closeHandler(l)}),n.onDone&&n.onDone(n.colour)};o(this._domOkay,"click",a),g4(r,i,["Enter"],a)}},{key:"_setPosition",value:function(){var n=this.settings.parent,e=this.domElement;n!==e.parentNode&&n.appendChild(e),this._ifPopup(function(i){"static"===getComputedStyle(n).position&&(n.style.position="relative");var r=!0===i?"popup_right":"popup_"+i;["popup_top","popup_bottom","popup_left","popup_right"].forEach(function(o){o===r?e.classList.add(o):e.classList.remove(o)}),e.classList.add(r)})}},{key:"_setHSLA",value:function(n,e,i,r,o){o=o||{};var s=this.colour,a=s.hsla;[n,e,i,r].forEach(function(l,c){(l||0===l)&&(a[c]=l)}),s.hsla=a,this._updateUI(o),this.onChange&&!o.silent&&this.onChange(s)}},{key:"_updateUI",value:function(n){if(this.domElement){n=n||{};var e=this.colour,i=e.hsla,r="hsl("+360*i[0]+", 100%, 50%)",o=e.hslString,s=e.hslaString,l=this._domSL,c=this._domA,u=wd(".picker_selector",this._domH),h=wd(".picker_selector",l),d=wd(".picker_selector",c);E(0,u,i[0]),this._domSL.style.backgroundColor=this._domH.style.color=r,E(0,h,i[1]),L(0,h,1-i[2]),l.style.color=o,L(0,d,1-i[3]);var f=o,p=f.replace("hsl","hsla").replace(")",", 0)");if(this._domA.style.background="linear-gradient("+[f,p]+"), linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em,\n linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em",!n.fromEditor){var C=this.settings.alpha,k=void 0;switch(this.settings.editorFormat){case"rgb":k=e.printRGB(C);break;case"hsl":k=e.printHSL(C);break;default:k=e.printHex(C)}this._domEdit.value=k}this._domSample.style.color=s}function E(B,G,oe){G.style.left=100*oe+"%"}function L(B,G,oe){G.style.top=100*oe+"%"}}},{key:"_ifPopup",value:function(n,e){this.settings.parent&&this.settings.popup?n&&n(this.settings.popup):e&&e()}},{key:"_toggleDOM",value:function(n){var e=this.domElement;if(!e)return!1;var i=n?"":"none",r=e.style.display!==i;return r&&(e.style.display=i),r}}]),t}(),m4=document.createElement("style");m4.textContent='.picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:"";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:"";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:"";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:"";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}',document.documentElement.firstElementChild.appendChild(m4),qge.StyleElement=m4;var pot=Object.freeze({__proto__:null,default:qge});const got=["editor"];function mot(t,n){if(1&t&&(A(0,"ngb-alert",37),je(1,"img",38),A(2,"h6",39),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("Error while modifying storage object: ",e.error,"")}}function vot(t,n){1&t&&(A(0,"ngb-alert",40),je(1,"img",41),A(2,"h6",39),J(3,"Storage object was modified successfully."),M()()),2&t&&N("dismissible",!1)}function yot(t,n){1&t&&(A(0,"span"),J(1,"Save as a copy"),M())}function bot(t,n){1&t&&J(0,"Save")}function _ot(t,n){if(1&t&&(A(0,"button",42),ye(1,yot,2,0,"span",43),ye(2,bot,1,0,"ng-template",null,44,go),M()),2&t){const e=Io(3),i=te();N("disabled",i.updating),I(1),N("ngIf",i.object.collection!==i.f.collection.value||i.object.key!==i.f.keyname.value||i.object.user_id!==i.f.user_id.value)("ngIfElse",e)}}const v4=function(){return["/storage"]},wot=function(t){return{collection:t}},xot=function(t,n){return{collection:t,key:n}},Cot=function(t,n,e){return{collection:t,key:n,user_id:e}},y4=function(t){return{"is-invalid":t}};let Sot=(()=>{class t{ngOnInit(){this.objectForm=this.formBuilder.group({collection:["",Wo.required],keyname:["",Wo.required],user_id:["",Wo.required],permission_read:[0,Wo.required],permission_write:[0,Wo.required]}),this.route.data.subscribe(e=>{this.object=e[0],this.f.collection.setValue(this.object.collection),this.f.keyname.setValue(this.object.key),this.f.user_id.setValue(this.object.user_id),this.f.permission_read.setValue(this.object.permission_read),this.f.permission_write.setValue(this.object.permission_write),this.updateAllowed()||this.objectForm.disable()},e=>{this.error=e})}constructor(e,i,r,o,s){be(this,"route",void 0),be(this,"router",void 0),be(this,"consoleService",void 0),be(this,"authService",void 0),be(this,"formBuilder",void 0),be(this,"editor",void 0),be(this,"jsonEditor",void 0),be(this,"error",""),be(this,"object",void 0),be(this,"objectForm",void 0),be(this,"updating",!1),be(this,"updated",!1),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngAfterViewInit(){this.jsonEditor=new x$({target:this.editor.nativeElement,props:{readOnly:!this.updateAllowed(),content:{text:this.object.value}}})}updateObject(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=this.jsonEditor.get().text}catch(o){return this.error=o,void(this.updating=!1)}let i=this.object.version;(this.object.collection!==this.f.collection.value||this.object.key!==this.f.keyname.value||this.object.user_id!==this.f.user_id.value)&&(i=""),this.consoleService.writeStorageObject("",this.f.collection.value,this.f.keyname.value,this.f.user_id.value,{version:i,value:e,permission_read:this.f.permission_read.value,permission_write:this.f.permission_write.value}).subscribe(o=>{this.updated=!0,this.updating=!1,this.object.version=o.version,""===i&&(this.object.collection=this.f.collection.value,this.object.key=this.f.keyname.value,this.object.user_id=this.f.user_id.value,this.object.permission_read=this.f.permission_read.value,this.object.permission_write=this.f.permission_write.value)},o=>{this.error=o,this.updating=!1})}deleteObject(){this.error="",this.updated=!1,this.updating=!1;const e=this.object;this.consoleService.deleteStorageObject("",e.collection,e.key,e.user_id,e.version).subscribe(()=>{this.router.navigate(["/storage"],{relativeTo:this.route,queryParams:{collection:this.f.collection.value,key:this.f.key.value,user_id:this.f.user_id.value}})},i=>{this.error=i})}updateAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}get f(){return this.objectForm.controls}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Ui),Ae(ds),Ae(Pl))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&Do(got,5),2&e){let r;En(r=Mn())&&(i.editor=r.first)}},decls:88,vars:50,consts:[[1,"pb-1"],[1,"storage-top-nav","d-flex","justify-content-between","align-items-baseline","mb-3"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink","queryParams"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","collection",1,"d-inline"],["type","text","id","collection","placeholder","Collection","required","","formControlName","collection",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","key",1,"d-inline"],["type","text","id","key","placeholder","Key","required","","formControlName","keyname",1,"form-control","form-control-sm","my-2",3,"ngClass"],["for","user_id",1,"d-inline"],["type","text","id","user_id","placeholder","User ID","required","","formControlName","user_id",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","permission_read",1,"d-inline"],["ngbRadioGroup","","id","permission_read","name","permission_read","formControlName","permission_read",1,"btn-group","btn-group-toggle"],["ngbButtonLabel","",1,"btn-outline-secondary"],["ngbButton","","type","radio",3,"disabled","value"],["for","version",1,"d-inline"],["type","text","id","version","placeholder","Version","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","permission_write",1,"d-inline"],["ngbRadioGroup","","id","permission_write","name","permission_write","formControlName","permission_write",1,"btn-group","btn-group-toggle"],[1,"row","add-border-single-row-bottom","mb-3"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","update_time",1,"d-inline"],["type","text","id","update_time","placeholder","Update Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"card","p-2","mt-3","mb-3","jsoneditor",2,"height","518px"],[2,"height","500px"],["editor",""],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","submit",1,"btn","btn-primary",3,"disabled"],[4,"ngIf","ngIfElse"],["elseBlock",""]],template:function(e,i){1&e&&(A(0,"h2",0),J(1,"Storage Object"),M(),A(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4),J(6,"Storage"),M(),A(7,"li",4)(8,"a",5),J(9),M()(),A(10,"li",4)(11,"a",5),J(12),M()(),A(13,"li",4)(14,"a",5),J(15),M()()()()(),ye(16,mot,4,2,"ngb-alert",6),ye(17,vot,4,1,"ngb-alert",7),A(18,"form",8),He("ngSubmit",function(){return i.updateObject()}),A(19,"div",9)(20,"div",10)(21,"div",11)(22,"label",12),J(23,"Collection"),M()(),je(24,"input",13),A(25,"div",14),J(26,"Collection is required"),M()(),A(27,"div",10)(28,"div",11)(29,"label",15),J(30,"Key"),M()(),je(31,"input",16),A(32,"div",14),J(33,"Key is required"),M()()(),A(34,"div",9)(35,"div",10)(36,"div",11)(37,"label",17),J(38,"User ID"),M()(),je(39,"input",18),A(40,"div",14),J(41,"User ID is required"),M()(),A(42,"div",19)(43,"div",11)(44,"label",20),J(45,"Read Permission"),M()(),A(46,"div",21)(47,"label",22),je(48,"input",23),J(49," No Read "),M(),A(50,"label",22),je(51,"input",23),J(52," Owner Read "),M(),A(53,"label",22),je(54,"input",23),J(55," Public Read "),M()()()(),A(56,"div",9)(57,"div",10)(58,"div",11)(59,"label",24),J(60,"Version"),M()(),je(61,"input",25),M(),A(62,"div",19)(63,"div",11)(64,"label",26),J(65,"Write Permission"),M()(),A(66,"div",27)(67,"label",22),je(68,"input",23),J(69," No Write "),M(),A(70,"label",22),je(71,"input",23),J(72," Owner Write "),M()()()(),A(73,"div",28)(74,"div",10)(75,"div",11)(76,"label",29),J(77,"Create Time"),M()(),je(78,"input",30),M(),A(79,"div",10)(80,"div",11)(81,"label",31),J(82,"Update Time"),M()(),je(83,"input",32),M()(),A(84,"div",33),je(85,"div",34,35),M(),ye(87,_ot,4,3,"button",36),M()),2&e&&(I(8),N("routerLink",Ll(32,v4))("queryParams",Lr(33,wot,i.object.collection)),I(1),Xt(i.object.collection),I(2),N("routerLink",Ll(35,v4))("queryParams",Kr(36,xot,i.object.collection,i.object.key)),I(1),Xt(i.object.key),I(2),N("routerLink",Ll(39,v4))("queryParams",zm(40,Cot,i.object.collection,i.object.key,i.object.user_id)),I(1),Xt(i.object.user_id),I(1),N("ngIf",i.error),I(1),N("ngIf",i.updated),I(1),N("formGroup",i.objectForm),I(6),N("ngClass",Lr(44,y4,i.f.collection.dirty&&i.f.collection.errors)),I(1),N("hidden",i.f.collection.disabled||i.f.collection.valid||i.f.collection.pristine),I(6),N("ngClass",Lr(46,y4,i.f.keyname.dirty&&i.f.keyname.errors)),I(1),N("hidden",i.f.keyname.disabled||i.f.keyname.valid||i.f.keyname.pristine),I(7),N("ngClass",Lr(48,y4,i.f.user_id.dirty&&i.f.user_id.errors)),I(1),N("hidden",i.f.user_id.disabled||i.f.user_id.valid||i.f.user_id.pristine),I(8),N("disabled",!i.updateAllowed())("value",0),I(3),N("disabled",!i.updateAllowed())("value",1),I(3),N("disabled",!i.updateAllowed())("value",2),I(7),N("value",i.object.version),I(7),N("disabled",!i.updateAllowed())("value",0),I(3),N("disabled",!i.updateAllowed())("value",1),I(7),N("value",i.object.create_time),I(5),N("value",i.object.update_time),I(4),N("ngIf",i.updateAllowed()))},dependencies:[Ru,Pd,Nn,Go,TC,M3,MV,bl,qa,vl,yl,Ff,Ea,Ya],styles:[".storage-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})),t})(),kot=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.paramMap.get("collection"),o=e.paramMap.get("key"),s=e.paramMap.get("user_id");return this.consoleService.getStorage("",r,o,s)}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Dot(t,n){if(1&t&&(A(0,"ngb-alert",10),je(1,"img",11),A(2,"h6",12),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("Error while processing request: ",e.error,"")}}function Tot(t,n){1&t&&(A(0,"th",13),J(1,"Remove"),M())}function Aot(t,n){if(1&t){const e=Bt();A(0,"td",17),He("click",function(){st(e);const r=te().$implicit;return at(te().viewLeaderboardEntries(r))}),J(1,"Yes"),M()}}function Eot(t,n){if(1&t){const e=Bt();A(0,"td",17),He("click",function(){st(e);const r=te().$implicit;return at(te().viewLeaderboardEntries(r))}),J(1,"No"),M()}}function Mot(t,n){if(1&t){const e=Bt();A(0,"td",17),He("click",function(){st(e);const r=te().$implicit;return at(te().viewLeaderboardEntries(r))}),J(1,"Yes"),M()}}function Iot(t,n){if(1&t){const e=Bt();A(0,"td",17),He("click",function(){st(e);const r=te().$implicit;return at(te().viewLeaderboardEntries(r))}),J(1,"No"),M()}}function Fot(t,n){if(1&t){const e=Bt();A(0,"td",18)(1,"button",19),He("click",function(r){st(e);const o=te(),s=o.index,a=o.$implicit;return at(te().deleteLeaderboard(r,s,a))}),J(2,"Delete"),M()()}}function Lot(t,n){if(1&t){const e=Bt();A(0,"tr")(1,"td",14),He("click",function(){const o=st(e).$implicit;return at(te().viewLeaderboardEntries(o))}),J(2),M(),A(3,"td",14),He("click",function(){const o=st(e).$implicit;return at(te().viewLeaderboardEntries(o))}),J(4),M(),A(5,"td",14),He("click",function(){const o=st(e).$implicit;return at(te().viewLeaderboardEntries(o))}),J(6),M(),A(7,"td",14),He("click",function(){const o=st(e).$implicit;return at(te().viewLeaderboardEntries(o))}),J(8),M(),ye(9,Aot,2,0,"td",15),ye(10,Eot,2,0,"td",15),ye(11,Mot,2,0,"td",15),ye(12,Iot,2,0,"td",15),ye(13,Fot,3,0,"td",16),M()}if(2&t){const e=n.$implicit,i=te();I(2),Xt(e.id),I(2),Xt(i.orderString[e.sort_order]),I(2),Xt(i.operatorString[e.operator]),I(2),Xt(""===e.reset_schedule?"-":e.reset_schedule),I(1),N("ngIf",e.authoritative),I(1),N("ngIf",!e.authoritative),I(1),N("ngIf",e.tournament),I(1),N("ngIf",!e.tournament),I(1),N("ngIf",i.deleteAllowed())}}function Oot(t,n){1&t&&(A(0,"tr")(1,"td",20),J(2,"No leaderboards were found."),M()())}let Not=(()=>{class t{constructor(e,i,r,o){be(this,"route",void 0),be(this,"router",void 0),be(this,"authService",void 0),be(this,"consoleService",void 0),be(this,"error",""),be(this,"leaderboards",[]),be(this,"orderString",{0:"Ascending",1:"Descending"}),be(this,"operatorString",{0:"Best",1:"Set",2:"Increment",3:"Decrement"}),this.route=e,this.router=i,this.authService=r,this.consoleService=o}ngOnInit(){this.route.data.subscribe(e=>{this.leaderboards.length=0,this.leaderboards.push(...e[0].leaderboards)},e=>{this.error=e})}deleteAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_DEVELOPER}deleteLeaderboard(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteLeaderboard("",r.id).subscribe(()=>{this.error="",this.leaderboards.splice(i,1)},o=>{this.error=o})}viewLeaderboardEntries(e){this.router.navigate(["/leaderboards",e.id],{relativeTo:this.route})}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(ds),Ae(Ui))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],decls:24,vars:5,consts:[[1,"pb-1"],[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],[1,"table","table-sm","table-bordered","table-hover"],[1,"thead-light"],[2,"width","130px"],[2,"width","100px"],["style","width: 90px",4,"ngIf"],[4,"ngFor","ngForOf"],[4,"ngIf"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],[3,"click"],["class","text-center",3,"click",4,"ngIf"],["class","text-center",4,"ngIf"],[1,"text-center",3,"click"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],["colspan","7",1,"text-muted"]],template:function(e,i){1&e&&(A(0,"h2",0),J(1,"Leaderboards"),M(),A(2,"h6",1),J(3),M(),ye(4,Dot,4,2,"ngb-alert",2),A(5,"table",3)(6,"thead",4)(7,"tr")(8,"th"),J(9,"Leaderboard ID"),M(),A(10,"th",5),J(11,"Sort Order"),M(),A(12,"th",5),J(13,"Operator"),M(),A(14,"th",5),J(15,"Reset Schedule"),M(),A(16,"th",6),J(17,"Authoritative"),M(),A(18,"th",6),J(19,"Tournament"),M(),ye(20,Tot,2,0,"th",7),M()(),A(21,"tbody"),ye(22,Lot,14,9,"tr",8),ye(23,Oot,3,0,"tr",9),M()()),2&e&&(I(3),jn("",i.leaderboards.length," leaderboards found."),I(1),N("ngIf",i.error),I(16),N("ngIf",i.deleteAllowed()),I(2),N("ngForOf",i.leaderboards),I(1),N("ngIf",0===i.leaderboards.length))},dependencies:[ti,Nn,Go],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})),t})(),Rot=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.listLeaderboards("")}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function $ot(t,n){if(1&t&&(A(0,"ngb-alert",31),je(1,"img",32),A(2,"h6",33),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("Error when querying accounts: ",e.error,"")}}function Pot(t,n){1&t&&(A(0,"th",34),J(1,"Remove"),M())}function jot(t,n){1&t&&(A(0,"tr")(1,"td",35),J(2,"No users found - change the filter criteria or add new user accounts."),M()())}function Bot(t,n){1&t&&je(0,"td")}function Hot(t,n){if(1&t){const e=Bt();A(0,"td",38)(1,"button",39),He("click",function(r){st(e);const o=te(),s=o.index,a=o.$implicit;return at(te().deleteAccount(r,s,a))}),J(2,"Delete"),M()()}}function Vot(t,n){if(1&t){const e=Bt();A(0,"tr")(1,"td",36),He("click",function(){const o=st(e).$implicit;return at(te().viewAccount(o))}),J(2),M(),A(3,"td",36),He("click",function(){const o=st(e).$implicit;return at(te().viewAccount(o))}),J(4),M(),A(5,"td",36),He("click",function(){const o=st(e).$implicit;return at(te().viewAccount(o))}),J(6),M(),A(7,"td",36),He("click",function(){const o=st(e).$implicit;return at(te().viewAccount(o))}),J(8),M(),ye(9,Bot,1,0,"td",29),ye(10,Hot,3,0,"td",37),M()}if(2&t){const e=n.$implicit,i=te();I(2),Xt(e.id),I(2),Xt(e.username),I(2),Xt(e.display_name),I(2),Xt(e.update_time),I(1),N("ngIf",i.deleteAllowed()&&e.id===i.systemUserId),I(1),N("ngIf",i.deleteAllowed()&&e.id!==i.systemUserId)}}let zot=(()=>{class t{constructor(e,i,r,o,s){be(this,"route",void 0),be(this,"router",void 0),be(this,"consoleService",void 0),be(this,"authService",void 0),be(this,"formBuilder",void 0),be(this,"systemUserId","00000000-0000-0000-0000-000000000000"),be(this,"error",""),be(this,"accountsCount",0),be(this,"accounts",[]),be(this,"nextCursor",""),be(this,"prevCursor",""),be(this,"searchForm",void 0),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.searchForm=this.formBuilder.group({filter:[""],filter_type:[0]});const e=this.route.snapshot.queryParamMap;this.f.filter.setValue(e.get("filter")),this.f.filter_type.setValue(+e.get("filter_type")),this.nextCursor=e.get("cursor"),this.nextCursor&&""!==this.nextCursor?this.search(1):(this.f.filter.value||this.f.filter_type.value)&&this.search(0),this.route.data.subscribe(i=>{this.accounts.length=0,i&&(this.accounts.push(...i[0].users),this.accountsCount=i[0].total_count,this.nextCursor=i[0].next_cursor,this.prevCursor=i[0].prev_cursor)},i=>{this.error=i})}search(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listAccounts("",this.f.filter.value,this.f.filter_type.value&&1===this.f.filter_type.value,i).subscribe(o=>{this.error="",this.accounts.length=0,this.accounts.push(...o.users),this.accountsCount=o.total_count,this.nextCursor=o.next_cursor,this.router.navigate([],{relativeTo:this.route,queryParams:{filter:this.f.filter.value,filter_type:this.f.filter_type.value,cursor:i},queryParamsHandling:"merge"})},o=>{this.error=o})}deleteAccount(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteAccount("",r.id,!1).subscribe(()=>{this.error="",this.accounts.splice(i,1),this.accountsCount--},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_DEVELOPER}viewAccount(e){this.router.navigate(["/accounts",e.id],{relativeTo:this.route})}get f(){return this.searchForm.controls}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Ui),Ae(ds),Ae(Pl))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],decls:45,vars:9,consts:[[1,"pb-1"],[1,"pb-3"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","filter","placeholder","Filter by user ID, social provider ID, device ID, or username (use '%' for prefix or suffix wildcard search)",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"input-group-text",3,"click"],["src","/static/svg/purple-cog-1.svg","alt","","width","20","height","",1,"mr-1"],[1,"btn-group"],["type","button",1,"btn","btn-primary","dropdown-radius",3,"click"],["ngbDropdown","","role","group","aria-label","Button group with nested dropdown",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-primary","dropdown-toggle-split",3,"disabled"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(e,i){1&e&&(A(0,"h2",0),J(1,"User Accounts"),M(),A(2,"h6",1),J(3),M(),A(4,"div",2)(5,"div",3)(6,"div",4)(7,"form",5),He("ngSubmit",function(){return i.search(0)}),A(8,"div",6),je(9,"input",7),A(10,"div",8)(11,"span",9),He("click",function(){return i.f.filter.setValue(i.systemUserId)}),je(12,"img",10),M()(),A(13,"div",8)(14,"div",11)(15,"button",12),He("click",function(){return i.f.filter_type.setValue(0),i.search(0)}),J(16,"Search"),M(),A(17,"div",13),je(18,"button",14),A(19,"div",15)(20,"button",16),He("click",function(){return i.f.filter_type.setValue(1),i.search(0)}),J(21,"Tombstones"),M()()()()()()()(),A(22,"div",17)(23,"div",18)(24,"button",19),He("click",function(){return i.search(0)}),je(25,"img",20),M(),A(26,"button",19),He("click",function(){return i.search(1)}),je(27,"img",21),M()()()()(),ye(28,$ot,4,2,"ngb-alert",22),A(29,"div",23)(30,"table",24)(31,"thead",25)(32,"tr")(33,"th",26),J(34,"User ID"),M(),A(35,"th"),J(36,"Username"),M(),A(37,"th"),J(38,"Display Name"),M(),A(39,"th",27),J(40,"Last Update"),M(),ye(41,Pot,2,0,"th",28),M()(),A(42,"tbody"),ye(43,jot,3,0,"tr",29),ye(44,Vot,11,6,"tr",30),M()()()),2&e&&(I(3),jn("",i.accountsCount," accounts found."),I(4),N("formGroup",i.searchForm),I(11),N("disabled",!i.f.filter.value||""===i.f.filter.value),I(6),N("disabled",0===i.accounts.length),I(2),N("disabled",""===i.nextCursor),I(2),N("ngIf",i.error),I(13),N("ngIf",i.deleteAllowed()),I(2),N("ngIf",0===i.accounts.length),I(1),N("ngForOf",i.accounts))},dependencies:[ti,Nn,Go,Bu,rg,Rf,Nf,bl,qa,vl,yl,Ea,Ya],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})),t})(),Uot=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.queryParamMap.get("filter"),o=e.queryParamMap.get("tombstones");return this.consoleService.listAccounts("",r,"true"===o,null)}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Wot(t,n){if(1&t){const e=Bt();A(0,"button",15),He("click",function(r){return st(e),at(te().exportAccount(r))}),je(1,"img",16),J(2,"Export"),M()}}function Got(t,n){1&t&&(A(0,"span"),J(1,"Unban"),M())}function qot(t,n){1&t&&(A(0,"span"),J(1,"Ban"),M())}function Xot(t,n){if(1&t){const e=Bt();A(0,"button",15),He("click",function(r){return st(e),at(te().banUnbanAccount(r))}),je(1,"img",17),ye(2,Got,2,0,"span",18),ye(3,qot,2,0,"span",18),M()}if(2&t){const e=te();I(2),N("ngIf",e.account.disable_time),I(1),N("ngIf",!e.account.disable_time)}}function Yot(t,n){if(1&t){const e=Bt();A(0,"button",19),He("click",function(r){return st(e),at(te().deleteAccount(r,!1))}),je(1,"img",20),J(2,"Delete"),M()}}function Kot(t,n){if(1&t){const e=Bt();A(0,"button",19),He("click",function(r){return st(e),at(te().deleteAccount(r,!0))}),je(1,"img",21),J(2,"Recorded delete"),M()}}function Jot(t,n){if(1&t&&(A(0,"ngb-alert",22),je(1,"img",23),A(2,"h6",24),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("An error occurred: ",e.error,"")}}const Qot=function(t,n){return["/accounts",t,n]};function Zot(t,n){if(1&t&&(A(0,"div"),va(1,25),A(2,"a",26),J(3),M(),ya(),M()),2&t){const e=n.$implicit,i=te();I(1),N("ngbNavItem",e.path),I(1),N("routerLink",Kr(3,Qot,i.account.user.id,e.path)),I(1),Xt(e.label)}}const est=function(){return["/accounts"]},tst=function(){return["/storage"]},nst=function(t){return{user_id:t}};let ist=(()=>{class t{constructor(e,i,r,o){be(this,"route",void 0),be(this,"router",void 0),be(this,"consoleService",void 0),be(this,"authService",void 0),be(this,"account",void 0),be(this,"error",""),be(this,"views",[{label:"Profile",path:"profile"},{label:"Authentication",path:"authentication"},{label:"Friends",path:"friends"},{label:"Groups",path:"groups"},{label:"Wallet",path:"wallet"},{label:"Purchases",path:"purchases"},{label:"Subscriptions",path:"subscriptions"}]),this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}deleteAccount(e,i){e.target.disabled=!0,this.error="",this.consoleService.deleteAccount("",this.account.user.id,i).subscribe(()=>{this.error="",this.router.navigate(["/accounts"])},r=>{this.error=r})}banUnbanAccount(e){e.target.disabled=!0,this.error="",this.account.disable_time?this.consoleService.unbanAccount("",this.account.user.id).subscribe(()=>{this.error="",this.account.disable_time=null,e.target.disabled=!1},i=>{this.error=i,e.target.disabled=!1}):this.consoleService.banAccount("",this.account.user.id).subscribe(()=>{this.error="",this.account.disable_time=Date.now().toString(),e.target.disabled=!1},i=>{this.error=i,e.target.disabled=!1})}exportAccount(e){e.target.disabled=!0,this.error="",this.consoleService.exportAccount("",this.account.user.id).subscribe(i=>{this.error="";const r=this.account.user.id+"-export.json",o=JSON.stringify(i,null,2),s=(new TextEncoder).encode(o),a=new Blob([s],{type:"application/json;charset=utf-8"});(0,nF.saveAs)(a,r),e.target.disabled=!1},i=>{e.target.disabled=!1,this.error=i})}updateAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}exportAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}banAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Ui),Ae(ds))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],decls:24,vars:14,consts:[[1,"pb-1"],[1,"account-top-nav","d-flex","justify-content-between","align-items-baseline","mb-4"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active"],["type","button","class","btn btn-outline-secondary mr-2",3,"click",4,"ngIf"],["type","button","class","btn btn-danger btn-danger-icon mr-2",3,"click",4,"ngIf"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["ngbNav","",1,"navbar-expand-sm","p-0","mb-3"],["accountNav","ngbNav"],[4,"ngFor","ngForOf"],["ngbNavItem","storage"],["ngbNavLink","",3,"routerLink","queryParams"],["type","button",1,"btn","btn-outline-secondary","mr-2",3,"click"],["src","/static/svg/export.svg","alt","","width","13","height","13",1,"mr-2"],["src","/static/svg/ban.svg","alt","","width","13","height","13",1,"mr-2"],[4,"ngIf"],["type","button",1,"btn","btn-danger","btn-danger-icon","mr-2",3,"click"],["src","/static/svg/bin-red.svg","alt","","width","14","height","",1,"mr-2"],["src","/static/svg/bin-recorded.svg","alt","","width","15","height","",1,"mr-2"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"ngbNavItem"],["ngbNavLink","","routerLinkActive","account-link-active",3,"routerLink"]],template:function(e,i){1&e&&(A(0,"h2",0),J(1,"User Account"),M(),A(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4)(6,"a",5),J(7,"Account"),M()(),A(8,"li",6),J(9),M()()(),A(10,"div"),ye(11,Wot,3,0,"button",7),ye(12,Xot,4,2,"button",7),ye(13,Yot,3,0,"button",8),ye(14,Kot,3,0,"button",8),M()(),ye(15,Jot,4,2,"ngb-alert",9),A(16,"nav",10,11),ye(18,Zot,4,6,"div",12),A(19,"div"),va(20,13),A(21,"a",14),J(22," Storage "),M(),ya(),M()(),je(23,"router-outlet")),2&e&&(I(6),N("routerLink",Ll(10,est)),I(3),Xt(i.account.user.id),I(2),N("ngIf",i.exportAllowed()),I(1),N("ngIf",i.banAllowed()),I(1),N("ngIf",i.deleteAllowed()),I(1),N("ngIf",i.deleteAllowed()),I(1),N("ngIf",i.error),I(3),N("ngForOf",i.views),I(3),N("routerLink",Ll(11,tst))("queryParams",Lr(12,nst,i.account.user.id)))},dependencies:[Kp,Ru,uy,ti,Nn,Go,ag,sg,dv],styles:[".nav-link[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#000;opacity:.5;padding:0 0 1.6em;margin-right:3em;margin-bottom:-2px;font-weight:600}.nav-link[_ngcontent-%COMP%]:hover{opacity:1}.nav-link.account-link-active[_ngcontent-%COMP%]{opacity:1;border-bottom:solid 2px #7668ED}.navbar-expand-sm[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9}.account-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})),t})(),rst=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.paramMap.get("id");return this.consoleService.getAccount("",r)}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();const ost=["editor"];function sst(t,n){if(1&t&&(A(0,"ngb-alert",29),je(1,"img",30),A(2,"h6",31),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("An error occurred: ",e.error,"")}}function ast(t,n){1&t&&(A(0,"ngb-alert",32),je(1,"img",33),A(2,"h6",31),J(3,"Account was modified successfully."),M()()),2&t&&N("dismissible",!1)}function lst(t,n){1&t&&(A(0,"button",34),J(1,"Save"),M()),2&t&&N("disabled",te().updating)}const cst=function(t){return{"is-invalid":t}};let ust=(()=>{class t{constructor(e,i,r,o,s){be(this,"route",void 0),be(this,"router",void 0),be(this,"consoleService",void 0),be(this,"authService",void 0),be(this,"formBuilder",void 0),be(this,"editor",void 0),be(this,"jsonEditor",void 0),be(this,"error",""),be(this,"account",void 0),be(this,"accountForm",void 0),be(this,"updating",!1),be(this,"updated",!1),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.accountForm=this.formBuilder.group({username:["",Wo.required],display_name:[""],avatar_url:[""],location:[""],timezone:[""]}),this.route.parent.data.subscribe(e=>{this.account=e[0].account,this.f.username.setValue(this.account.user.username),this.f.display_name.setValue(this.account.user.display_name),this.f.avatar_url.setValue(this.account.user.avatar_url),this.f.location.setValue(this.account.user.location),this.f.timezone.setValue(this.account.user.timezone),this.updateAllowed()||this.accountForm.disable()},e=>{this.error=e})}ngAfterViewInit(){this.jsonEditor=new x$({target:this.editor.nativeElement,props:{readOnly:!this.updateAllowed(),content:{text:this.account.user.metadata}}})}updateAccount(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=this.jsonEditor.get().text}catch(r){return this.error=r,void(this.updating=!1)}this.consoleService.updateAccount("",this.account.user.id,{username:this.f.username.value,display_name:this.f.display_name.value,avatar_url:this.f.avatar_url.value,location:this.f.location.value,timezone:this.f.timezone.value,metadata:e}).subscribe(r=>{this.updated=!0,this.updating=!1},r=>{this.error=r,this.updating=!1})}updateAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}get f(){return this.accountForm.controls}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Ui),Ae(ds),Ae(Pl))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&Do(ost,5),2&e){let r;En(r=Mn())&&(i.editor=r.first)}},decls:53,vars:11,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","user_id",1,"d-inline"],["type","text","id","user_id","placeholder","User ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","username",1,"d-inline"],["type","text","id","username","placeholder","Username","required","","formControlName","username",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","display_name",1,"d-inline"],["type","text","id","display_name","placeholder","Display Name","formControlName","display_name",1,"form-control","form-control-sm","my-2"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","avatar_url",1,"d-inline"],["type","text","id","avatar_url","placeholder","Avatar URL","formControlName","avatar_url",1,"form-control","form-control-sm","my-2"],["for","location",1,"d-inline"],["type","text","id","location","placeholder","Location","formControlName","location",1,"form-control","form-control-sm","my-2"],["for","timezone",1,"d-inline"],["type","text","id","timezone","placeholder","Timezone","formControlName","timezone",1,"form-control","form-control-sm","my-2"],[1,"row","mb-3","add-border-single-row-bottom"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","update_time",1,"d-inline"],["type","text","id","update_time","placeholder","Update Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(e,i){1&e&&(ye(0,sst,4,2,"ngb-alert",0),ye(1,ast,4,1,"ngb-alert",1),A(2,"form",2),He("ngSubmit",function(){return i.updateAccount()}),A(3,"div",3)(4,"div",4)(5,"div",5)(6,"label",6),J(7,"User ID"),M()(),je(8,"input",7),M(),A(9,"div",4)(10,"div",5)(11,"label",8),J(12,"Username"),M()(),je(13,"input",9),A(14,"div",10),J(15,"Username is required"),M()()(),A(16,"div",3)(17,"div",4)(18,"div",5)(19,"label",11),J(20,"Display Name"),M()(),je(21,"input",12),M(),A(22,"div",13)(23,"div",5)(24,"label",14),J(25,"Avatar URL"),M()(),je(26,"input",15),M()(),A(27,"div",3)(28,"div",4)(29,"div",5)(30,"label",16),J(31,"Location"),M()(),je(32,"input",17),M(),A(33,"div",13)(34,"div",5)(35,"label",18),J(36,"Timezone"),M()(),je(37,"input",19),M()(),A(38,"div",20)(39,"div",4)(40,"div",5)(41,"label",21),J(42,"Create Time"),M()(),je(43,"input",22),M(),A(44,"div",4)(45,"div",5)(46,"label",23),J(47,"Update Time"),M()(),je(48,"input",24),M()(),A(49,"div",25),je(50,"div",26,27),M(),ye(52,lst,2,1,"button",28),M()),2&e&&(N("ngIf",i.error),I(1),N("ngIf",i.updated),I(1),N("formGroup",i.accountForm),I(6),N("value",i.account.user.id),I(5),N("ngClass",Lr(9,cst,i.f.username.dirty&&i.f.username.errors)),I(1),N("hidden",i.f.username.disabled||i.f.username.valid||i.f.username.pristine),I(29),N("value",i.account.user.create_time),I(5),N("value",i.account.user.update_time),I(4),N("ngIf",i.updateAllowed()))},dependencies:[Pd,Nn,Go,bl,qa,vl,yl,Ff,Ea,Ya]})),t})();function hst(t,n){if(1&t&&(A(0,"ngb-alert",36),je(1,"img",37),A(2,"h6",38),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("An error occurred: ",e.error,"")}}function dst(t,n){1&t&&(A(0,"ngb-alert",39),je(1,"img",40),A(2,"h6",38),J(3,"Account was modified successfully."),M()()),2&t&&N("dismissible",!1)}function fst(t,n){if(1&t&&(A(0,"option",41),J(1),M()),2&t){const e=n.$implicit,i=n.index;Ld("value",i),N("selected",0===i),I(1),Xt(e.id)}}function pst(t,n){1&t&&(A(0,"button",42),J(1,"Save"),M()),2&t&&N("disabled",te().updating)}let gst=(()=>{class t{constructor(e,i,r,o,s){be(this,"route",void 0),be(this,"router",void 0),be(this,"consoleService",void 0),be(this,"authService",void 0),be(this,"formBuilder",void 0),be(this,"error",""),be(this,"account",void 0),be(this,"accountForm",void 0),be(this,"updating",!1),be(this,"updated",!1),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.accountForm=this.formBuilder.group({email:[""],password:[""],selected_device_id_index:[""]}),this.route.parent.data.subscribe(e=>{this.account=e[0].account,this.f.email.setValue(this.account.email),this.f.password.setValue(""),this.f.selected_device_id_index.setValue(0),0===this.account.devices.length&&this.f.selected_device_id_index.disable(),this.updateAllowed()||this.accountForm.disable()},e=>{this.error=e})}updateAccount(){this.error="",this.updated=!1,this.updating=!0;let e={email:this.f.email.value};this.f.password.dirty&&(e.password=this.f.password.value),this.consoleService.updateAccount("",this.account.user.id,e).subscribe(i=>{this.updated=!0,this.updating=!1,this.f.password.reset()},i=>{this.error=i,this.updating=!1})}unlinkDeviceId(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkDevice("",this.account.user.id,{device_id:this.account.devices[this.f.selected_device_id_index.value].id}).subscribe(()=>{this.error="",this.account.devices.splice(this.f.selected_device_id_index.value,1),this.f.selected_device_id_index.setValue(0)},r=>{this.error=r})}unlinkCustomID(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkCustom("",this.account.user.id).subscribe(()=>{this.error="",this.account.custom_id=null},i=>{this.error=i})}unlinkFacebook(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkFacebook("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.facebook_id=null},i=>{this.error=i})}unlinkFacebookInstantGames(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkFacebookInstantGame("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.facebook_instant_game_id=null},i=>{this.error=i})}unlinkApple(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkApple("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.apple_id=null},i=>{this.error=i})}unlinkGameCenter(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkGameCenter("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.gamecenter_id=null},i=>{this.error=i})}unlinkGoogle(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkGoogle("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.google_id=null},i=>{this.error=i})}unlinkSteam(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkSteam("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.steam_id=null},i=>{this.error=i})}updateAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}copyDeviceIdToClipboard(e){const i=document.createElement("textarea");i.style.position="fixed",i.style.left="0",i.style.top="0",i.style.opacity="0",i.value=this.account.devices[e].id,document.body.appendChild(i),i.focus(),i.select(),document.execCommand("copy"),document.body.removeChild(i)}get f(){return this.accountForm.controls}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Ui),Ae(ds),Ae(Pl))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],decls:102,vars:21,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","selected_device_id_index",1,"d-inline"],[1,"input-group"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["src","/static/svg/copy.svg","alt","","width","16","height","",1,""],["id","selected_device_id_index","formControlName","selected_device_id_index",1,"form-control","custom-select","custom-select-sm"],[3,"value","selected",4,"ngFor","ngForOf"],[1,"input-group-append"],["type","button",1,"btn","btn-sm","btn-outline-danger",3,"disabled","click"],["for","custom_id",1,"d-inline"],["type","text","id","custom_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","facebook_id",1,"d-inline"],["type","text","id","facebook_id","disabled","",1,"form-control","form-control-sm",3,"value"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","facebook_instant_game_id",1,"d-inline"],["type","text","id","facebook_instant_game_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","apple_id",1,"d-inline"],["type","text","id","apple_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","gamecenter_id",1,"d-inline"],["type","text","id","gamecenter_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","google_id",1,"d-inline"],["type","text","id","google_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","steam_id",1,"d-inline"],["type","text","id","steam_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","email",1,"d-inline"],["type","text","id","email","placeholder","Email","formControlName","email",1,"form-control","form-control-sm"],["for","password",1,"d-inline"],["type","text","id","password","placeholder","Password","formControlName","password",1,"form-control","form-control-sm"],[1,"row","remove-sides"],[1,"small"],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],[3,"value","selected"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(e,i){1&e&&(ye(0,hst,4,2,"ngb-alert",0),ye(1,dst,4,1,"ngb-alert",1),A(2,"form",2),He("ngSubmit",function(){return i.updateAccount()}),A(3,"div",3)(4,"div",4)(5,"div",5)(6,"label",6),J(7,"Device IDs"),M()(),A(8,"div",7)(9,"button",8),He("click",function(){return i.copyDeviceIdToClipboard(i.f.selected_device_id_index.value)}),je(10,"img",9),J(11," Copy "),M(),A(12,"select",10),ye(13,fst,2,3,"option",11),M(),A(14,"div",12)(15,"button",13),He("click",function(o){return i.unlinkDeviceId(o)}),J(16,"Unlink"),M()()()(),A(17,"div",4)(18,"div",5)(19,"label",14),J(20,"Custom ID"),M()(),A(21,"div",7),je(22,"input",15),A(23,"div",12)(24,"button",13),He("click",function(o){return i.unlinkCustomID(o)}),J(25,"Unlink"),M()()()()(),A(26,"div",3)(27,"div",4)(28,"div",5)(29,"label",16),J(30,"Facebook ID"),M()(),A(31,"div",7),je(32,"input",17),A(33,"div",12)(34,"button",13),He("click",function(o){return i.unlinkFacebook(o)}),J(35,"Unlink"),M()()()(),A(36,"div",18)(37,"div",5)(38,"label",19),J(39,"FB Instant Game ID"),M()(),A(40,"div",7),je(41,"input",20),A(42,"div",12)(43,"button",13),He("click",function(o){return i.unlinkFacebookInstantGames(o)}),J(44,"Unlink"),M()()()()(),A(45,"div",3)(46,"div",4)(47,"div",5)(48,"label",21),J(49,"Apple ID"),M()(),A(50,"div",7),je(51,"input",22),A(52,"div",12)(53,"button",13),He("click",function(o){return i.unlinkApple(o)}),J(54,"Unlink"),M()()()(),A(55,"div",18)(56,"div",5)(57,"label",23),J(58,"GameCenter ID"),M()(),A(59,"div",7),je(60,"input",24),A(61,"div",12)(62,"button",13),He("click",function(o){return i.unlinkGameCenter(o)}),J(63,"Unlink"),M()()()()(),A(64,"div",3)(65,"div",4)(66,"div",5)(67,"label",25),J(68,"Google ID"),M()(),A(69,"div",7),je(70,"input",26),A(71,"div",12)(72,"button",13),He("click",function(o){return i.unlinkGoogle(o)}),J(73,"Unlink"),M()()()(),A(74,"div",4)(75,"div",5)(76,"label",27),J(77,"Steam ID"),M()(),A(78,"div",7),je(79,"input",28),A(80,"div",12)(81,"button",13),He("click",function(o){return i.unlinkSteam(o)}),J(82,"Unlink"),M()()()()(),A(83,"div",3)(84,"div",4)(85,"div",5)(86,"label",29),J(87,"Email"),M(),je(88,"br"),M(),je(89,"input",30),M(),A(90,"div",4)(91,"div",5)(92,"label",31),J(93,"Password"),M()(),je(94,"input",32),M()(),A(95,"div",33)(96,"div",4),je(97,"div",5),A(98,"span",34),J(99),M()(),je(100,"div",4),M(),ye(101,pst,2,1,"button",35),M()),2&e&&(N("ngIf",i.error),I(1),N("ngIf",i.updated),I(1),N("formGroup",i.accountForm),I(11),N("ngForOf",i.account.devices),I(2),N("disabled",!i.updateAllowed()||0===i.account.devices.length),I(7),N("value",i.account.custom_id),I(2),N("disabled",!i.updateAllowed()||!i.account.custom_id||""===i.account.custom_id),I(8),N("value",i.account.user.facebook_id),I(2),N("disabled",!i.updateAllowed()||!i.account.user.facebook_id||""===i.account.user.facebook_id),I(7),N("value",i.account.user.facebook_instant_game_id),I(2),N("disabled",!i.updateAllowed()||!i.account.user.facebook_instant_game_id||""===i.account.user.facebook_instant_game_id),I(8),N("value",i.account.user.apple_id),I(2),N("disabled",!i.updateAllowed()||!i.account.user.apple_id||""===i.account.user.apple_id),I(7),N("value",i.account.user.gamecenter_id),I(2),N("disabled",!i.updateAllowed()||!i.account.user.gamecenter_id||""===i.account.user.gamecenter_id),I(8),N("value",i.account.user.google_id),I(2),N("disabled",!i.updateAllowed()||!i.account.user.google_id||""===i.account.user.google_id),I(7),N("value",i.account.user.steam_id),I(2),N("disabled",!i.updateAllowed()||!i.account.user.steam_id||""===i.account.user.steam_id),I(18),jn("Verification Status: ",null===i.account.verify_time?"Not Verified":"Verified",""),I(2),N("ngIf",i.updateAllowed()))},dependencies:[ti,Nn,Go,bl,by,_y,qa,rv,vl,yl,Ea,Ya],styles:[".custom-select[_ngcontent-%COMP%]{height:auto}"]})),t})();const mst=["editor"];function vst(t,n){if(1&t&&(A(0,"ngb-alert",24),je(1,"img",25),A(2,"h6",26),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("An error occurred: ",e.error,"")}}function yst(t,n){1&t&&(A(0,"ngb-alert",27),je(1,"img",28),A(2,"h6",26),J(3,"Account was modified successfully."),M()()),2&t&&N("dismissible",!1)}function bst(t,n){if(1&t){const e=Bt();A(0,"button",29),He("click",function(){return st(e),at(te().updateWallet())}),J(1,"Save"),M()}2&t&&N("disabled",te().updating)}function _st(t,n){1&t&&(A(0,"th",30),J(1,"Remove"),M())}function wst(t,n){1&t&&(A(0,"tr")(1,"td",31),J(2,"No wallet ledger items found."),M()())}function xst(t,n){1&t&&je(0,"div",37)}function Cst(t,n){1&t&&je(0,"div",38)}function Sst(t,n){if(1&t){const e=Bt();A(0,"td")(1,"button",39),He("click",function(r){st(e);const o=te(),s=o.index,a=o.$implicit;return at(te().deleteLedgerItem(r,s,a))}),J(2,"Delete"),M()()}}function kst(t,n){if(1&t&&(A(0,"tr")(1,"td",40)(2,"pre",41)(3,"small"),J(4),M()()()()),2&t){const e=te().$implicit;I(4),Xt(e.metadata)}}function Dst(t,n){if(1&t){const e=Bt();A(0,"tr")(1,"td")(2,"div",32),He("click",function(){const o=st(e).index,s=te();return at(s.walletLedgerMetadataOpen[o]=!s.walletLedgerMetadataOpen[o])}),ye(3,xst,1,0,"div",33),ye(4,Cst,1,0,"div",34),M(),J(5),M(),A(6,"td",35)(7,"pre",36),J(8),M()(),A(9,"td"),J(10),M(),ye(11,Sst,3,0,"td",22),M(),ye(12,kst,5,1,"tr",22)}if(2&t){const e=n.index,i=n.$implicit,r=te();I(3),N("ngIf",!r.walletLedgerMetadataOpen[e]),I(1),N("ngIf",r.walletLedgerMetadataOpen[e]),I(1),jn(" ",i.id," "),I(3),Xt(i.changeset),I(2),Xt(i.update_time),I(1),N("ngIf",r.deleteAllowed()),I(1),N("ngIf",r.walletLedgerMetadataOpen[e])}}let Tst=(()=>{class t{constructor(e,i,r,o){be(this,"route",void 0),be(this,"router",void 0),be(this,"consoleService",void 0),be(this,"authService",void 0),be(this,"editor",void 0),be(this,"jsonEditor",void 0),be(this,"error",""),be(this,"account",void 0),be(this,"walletLedger",[]),be(this,"walletLedgerMetadataOpen",[]),be(this,"updating",!1),be(this,"updated",!1),be(this,"nextCursor",""),be(this,"prevCursor",""),be(this,"limit",100),be(this,"userID",void 0),this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.userID=this.route.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(e=>{this.walletLedger.length=0,this.walletLedger.push(...e[0].items),this.walletLedgerMetadataOpen.length=this.walletLedger.length,this.nextCursor=e[0].next_cursor,this.prevCursor=e[0].prev_cursor},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}loadData(e){this.consoleService.getWalletLedger("",this.userID,this.limit,e).subscribe(i=>{this.walletLedger=i.items,this.walletLedgerMetadataOpen=[],this.nextCursor=i.next_cursor,this.prevCursor=i.prev_cursor},i=>{this.error=i})}ngAfterViewInit(){this.jsonEditor=new x$({target:this.editor.nativeElement,props:{readOnly:!this.updateAllowed(),content:{text:this.account.wallet}}})}updateWallet(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=this.jsonEditor.get().text}catch(r){return this.error=r,void(this.updating=!1)}this.consoleService.updateAccount("",this.account.user.id,{wallet:e}).subscribe(r=>{this.updated=!0,this.updating=!1},r=>{this.error=r,this.updating=!1})}updateAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}deleteLedgerItem(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteWalletLedger("",this.account.user.id,r.id).subscribe(()=>{this.error="",this.walletLedger.splice(i,1),this.walletLedgerMetadataOpen.splice(i,1)},o=>{this.error=o})}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Ui),Ae(ds))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&Do(mst,5),2&e){let r;En(r=Mn())&&(i.editor=r.first)}},decls:32,vars:9,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","button","class","btn btn-primary",3,"disabled","click",4,"ngIf"],[1,"my-4"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered"],[1,"thead-light"],[2,"width","315px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],["ngFor","",3,"ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","button",1,"btn","btn-primary",3,"disabled","click"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],[1,"align-middle"],[1,"m-0","p-0"],[1,"arrow-right"],[1,"arrow-down"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],["colspan","5",1,"align-middle"],[1,"pre-wrap","m-0","p-0"]],template:function(e,i){1&e&&(ye(0,vst,4,2,"ngb-alert",0),ye(1,yst,4,1,"ngb-alert",1),A(2,"div",2),je(3,"div",3,4),M(),ye(5,bst,2,1,"button",5),je(6,"hr",6),A(7,"div",7)(8,"div",8),je(9,"div",9),A(10,"div",10)(11,"div",11)(12,"button",12),He("click",function(){return i.loadData("")}),je(13,"img",13),M(),A(14,"button",12),He("click",function(){return i.loadData(i.prevCursor)}),je(15,"img",14),M(),A(16,"button",12),He("click",function(){return i.loadData(i.nextCursor)}),je(17,"img",15),M()()()()(),A(18,"div",16)(19,"table",17)(20,"thead",18)(21,"tr")(22,"th",19),J(23,"ID"),M(),A(24,"th"),J(25,"Changeset"),M(),A(26,"th",20),J(27,"Update Time"),M(),ye(28,_st,2,0,"th",21),M()(),A(29,"tbody"),ye(30,wst,3,0,"tr",22),ye(31,Dst,13,7,"ng-template",23),M()()()),2&e&&(N("ngIf",i.error),I(1),N("ngIf",i.updated),I(4),N("ngIf",i.updateAllowed()),I(7),N("disabled",0===i.walletLedger.length),I(2),N("disabled",""===i.prevCursor),I(2),N("disabled",""===i.nextCursor),I(12),N("ngIf",i.deleteAllowed()),I(2),N("ngIf",0===i.walletLedger.length),I(1),N("ngForOf",i.walletLedger))},dependencies:[ti,Nn,Go],styles:[".pre-wrap[_ngcontent-%COMP%]{word-wrap:anywhere;word-break:break-all;white-space:pre-wrap}"]})),t})(),Ast=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getWalletLedger("",r,100,"")}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Est(t,n){if(1&t&&(A(0,"ngb-alert",10),je(1,"img",11),A(2,"h6",12),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("An error occurred: ",e.error,"")}}function Mst(t,n){1&t&&(A(0,"th",13),J(1,"Remove"),M())}function Ist(t,n){1&t&&(A(0,"tr")(1,"td",14),J(2,"No friends found."),M()())}function Fst(t,n){1&t&&(A(0,"span"),J(1,"Friend (0)"),M())}function Lst(t,n){1&t&&(A(0,"span"),J(1,"Invite Sent (1)"),M())}function Ost(t,n){1&t&&(A(0,"span"),J(1,"Invite Received (2)"),M())}function Nst(t,n){1&t&&(A(0,"span"),J(1,"Blocked (3)"),M())}function Rst(t,n){if(1&t){const e=Bt();A(0,"td",16)(1,"button",17),He("click",function(r){st(e);const o=te(),s=o.index,a=o.$implicit;return at(te().deleteFriend(r,s,a))}),J(2,"Delete"),M()()}}function $st(t,n){if(1&t&&(A(0,"tr")(1,"td"),J(2),M(),A(3,"td"),J(4),M(),A(5,"td"),ye(6,Fst,2,0,"span",8),ye(7,Lst,2,0,"span",8),ye(8,Ost,2,0,"span",8),ye(9,Nst,2,0,"span",8),M(),A(10,"td"),J(11),M(),ye(12,Rst,3,0,"td",15),M()),2&t){const e=n.$implicit,i=te();I(2),Xt(e.user.id),I(2),Xt(e.user.username),I(2),N("ngIf",0===e.state),I(1),N("ngIf",1===e.state),I(1),N("ngIf",2===e.state),I(1),N("ngIf",3===e.state),I(2),Xt(e.update_time),I(1),N("ngIf",i.deleteAllowed())}}let Pst=(()=>{class t{constructor(e,i,r,o){be(this,"route",void 0),be(this,"router",void 0),be(this,"consoleService",void 0),be(this,"authService",void 0),be(this,"error",""),be(this,"account",void 0),be(this,"friends",[]),this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.friends.length=0,this.friends.push(...e[0].friends)},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}deleteAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}deleteFriend(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteFriend("",this.account.user.id,r.user.id).subscribe(()=>{this.error="",this.friends.splice(i,1)},o=>{this.error=o})}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Ui),Ae(ds))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],decls:17,vars:4,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","300px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(e,i){1&e&&(ye(0,Est,4,2,"ngb-alert",0),A(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr")(5,"th",4),J(6,"User ID"),M(),A(7,"th"),J(8,"Username"),M(),A(9,"th",5),J(10,"State"),M(),A(11,"th",6),J(12,"Update Time"),M(),ye(13,Mst,2,0,"th",7),M()(),A(14,"tbody"),ye(15,Ist,3,0,"tr",8),ye(16,$st,13,8,"tr",9),M()()()),2&e&&(N("ngIf",i.error),I(13),N("ngIf",i.deleteAllowed()),I(2),N("ngIf",0===i.friends.length),I(1),N("ngForOf",i.friends))},dependencies:[ti,Nn,Go],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})),t})(),jst=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getFriends("",r)}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Bst(t,n){if(1&t&&(A(0,"ngb-alert",10),je(1,"img",11),A(2,"h6",12),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("An error occurred: ",e.error,"")}}function Hst(t,n){1&t&&(A(0,"th",13),J(1,"Remove"),M())}function Vst(t,n){1&t&&(A(0,"tr")(1,"td",14),J(2,"No group membership found."),M()())}function zst(t,n){1&t&&(A(0,"span"),J(1,"Superadmin (0)"),M())}function Ust(t,n){1&t&&(A(0,"span"),J(1,"Admin (1)"),M())}function Wst(t,n){1&t&&(A(0,"span"),J(1,"Member (2)"),M())}function Gst(t,n){1&t&&(A(0,"span"),J(1,"Join Request (3)"),M())}function qst(t,n){1&t&&(A(0,"span"),J(1,"Banned (4)"),M())}function Xst(t,n){if(1&t){const e=Bt();A(0,"td")(1,"button",16),He("click",function(r){st(e);const o=te(),s=o.index,a=o.$implicit;return at(te().deleteGroupUser(r,s,a))}),J(2,"Delete"),M()()}}function Yst(t,n){if(1&t){const e=Bt();A(0,"tr")(1,"td",15),He("click",function(){const o=st(e).$implicit;return at(te().viewAccount(o))}),J(2),M(),A(3,"td",15),He("click",function(){const o=st(e).$implicit;return at(te().viewAccount(o))}),J(4),M(),A(5,"td",15),He("click",function(){const o=st(e).$implicit;return at(te().viewAccount(o))}),ye(6,zst,2,0,"span",8),ye(7,Ust,2,0,"span",8),ye(8,Wst,2,0,"span",8),ye(9,Gst,2,0,"span",8),ye(10,qst,2,0,"span",8),M(),A(11,"td",15),He("click",function(){const o=st(e).$implicit;return at(te().viewAccount(o))}),J(12),M(),ye(13,Xst,3,0,"td",8),M()}if(2&t){const e=n.$implicit,i=te();I(2),Xt(e.group.id),I(2),Xt(e.group.name),I(2),N("ngIf",0===e.state),I(1),N("ngIf",1===e.state),I(1),N("ngIf",2===e.state),I(1),N("ngIf",3===e.state),I(1),N("ngIf",4===e.state),I(2),Xt(e.group.update_time),I(1),N("ngIf",i.deleteAllowed())}}let Kst=(()=>{class t{constructor(e,i,r,o){be(this,"route",void 0),be(this,"router",void 0),be(this,"consoleService",void 0),be(this,"authService",void 0),be(this,"error",""),be(this,"account",void 0),be(this,"groups",[]),this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.groups.length=0,this.groups.push(...e[0].user_groups)},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}deleteAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}deleteGroupUser(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteGroupUser("",this.account.user.id,r.group.id).subscribe(()=>{this.error="",this.groups.splice(i,1)},o=>{this.error=o})}viewAccount(e){this.router.navigate(["/groups",e.group.id],{relativeTo:this.route})}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Ui),Ae(ds))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],decls:17,vars:4,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","300px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(e,i){1&e&&(ye(0,Bst,4,2,"ngb-alert",0),A(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr")(5,"th",4),J(6,"Group ID"),M(),A(7,"th"),J(8,"Name"),M(),A(9,"th",5),J(10,"State"),M(),A(11,"th",6),J(12,"Update Time"),M(),ye(13,Hst,2,0,"th",7),M()(),A(14,"tbody"),ye(15,Vst,3,0,"tr",8),ye(16,Yst,14,9,"tr",9),M()()()),2&e&&(N("ngIf",i.error),I(13),N("ngIf",i.deleteAllowed()),I(2),N("ngIf",0===i.groups.length),I(1),N("ngForOf",i.groups))},dependencies:[ti,Nn,Go],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})),t})(),Jst=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getGroups("",r)}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();var ka=Ye(682);const Qst=["editor"];function Zst(t,n){if(1&t&&(A(0,"ngb-alert",34),je(1,"img",35),A(2,"h6",36),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("An error occurred: ",e.error,"")}}function eat(t,n){1&t&&(A(0,"ngb-alert",37),je(1,"img",38),A(2,"h6",36),J(3,"Group was modified successfully."),M()()),2&t&&N("dismissible",!1)}function tat(t,n){1&t&&(A(0,"button",39),J(1,"Save"),M()),2&t&&N("disabled",te().updating)}const nat=function(t){return["/accounts",t]},iat=function(t){return{"is-invalid":t}};let rat=(()=>{class t{constructor(e,i,r,o,s){be(this,"route",void 0),be(this,"router",void 0),be(this,"consoleService",void 0),be(this,"authService",void 0),be(this,"formBuilder",void 0),be(this,"editor",void 0),be(this,"aceEditor",void 0),be(this,"error",""),be(this,"group",void 0),be(this,"groupForm",void 0),be(this,"updating",!1),be(this,"updated",!1),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.groupForm=this.formBuilder.group({name:["",Wo.required],description:[""],avatar_url:[""],lang_tag:[""],open:[""],max_count:[""]}),this.route.parent.data.subscribe(e=>{this.group=e[0],this.f.name.setValue(this.group.name),this.f.description.setValue(this.group.description),this.f.avatar_url.setValue(this.group.avatar_url),this.f.lang_tag.setValue(this.group.lang_tag),this.f.open.setValue(this.group.open),this.f.max_count.setValue(this.group.max_count),this.updateAllowed()||this.groupForm.disable()},e=>{this.error=e})}ngAfterViewInit(){ka.config.set("fontSize","14px"),ka.config.set("printMarginColumn",0),ka.config.set("useWorker",!0),ka.config.set("highlightSelectedWord",!0),ka.config.set("fontFamily",'"Courier New", Courier, monospace'),this.aceEditor=ka.edit(this.editor.nativeElement),this.aceEditor.setReadOnly(!this.updateAllowed());const e=JSON.stringify(JSON.parse(this.group.metadata),null,2);this.aceEditor.session.setValue(e)}updateGroup(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=JSON.stringify(JSON.parse(this.aceEditor.session.getValue()))}catch(r){return this.error=r,void(this.updating=!1)}if(this.f.max_count.value{this.updated=!0,this.updating=!1},r=>{this.error=r,this.updating=!1})}updateAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}get f(){return this.groupForm.controls}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Ui),Ae(ds),Ae(Pl))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&Do(Qst,5),2&e){let r;En(r=Mn())&&(i.editor=r.first)}},decls:71,vars:16,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","group_id",1,"d-inline"],["type","text","id","group_id","placeholder","Group ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","creator_id",1,"d-inline"],[2,"width","100%",3,"routerLink"],["type","text","id","creator_id","placeholder","Creator ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","name",1,"d-inline"],["type","text","id","name","placeholder","Name","required","","formControlName","name",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","description",1,"d-inline"],["type","text","id","description","placeholder","Description","formControlName","description",1,"form-control","form-control-sm","my-2"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","avatar_url",1,"d-inline"],["type","text","id","avatar_url","placeholder","Avatar URL","formControlName","avatar_url",1,"form-control","form-control-sm","my-2"],["for","lang_tag",1,"d-inline"],["type","text","id","lang_tag","placeholder","Language","formControlName","lang_tag",1,"form-control","form-control-sm","my-2"],["type","text","id","edge_count","placeholder","Members","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","max_count",1,"d-inline"],["type","text","id","max_count","placeholder","Max Count","formControlName","max_count",1,"form-control","form-control-sm","my-2"],["type","checkbox","id","open","formControlName","open",1,"my-2"],[1,"row","mb-3","add-border-single-row-bottom"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","update_time",1,"d-inline"],["type","text","id","update_time","placeholder","Update Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"card","p-2","mb-3",2,"height","400px"],[2,"height","400px"],["editor",""],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(e,i){1&e&&(ye(0,Zst,4,2,"ngb-alert",0),ye(1,eat,4,1,"ngb-alert",1),A(2,"form",2),He("ngSubmit",function(){return i.updateGroup()}),A(3,"div",3)(4,"div",4)(5,"div",5)(6,"label",6),J(7,"Group ID"),M()(),je(8,"input",7),M(),A(9,"div",4)(10,"div",5)(11,"label",8),J(12,"Creator ID"),M()(),A(13,"a",9),je(14,"input",10),M()()(),A(15,"div",3)(16,"div",4)(17,"div",5)(18,"label",11),J(19,"Name"),M()(),je(20,"input",12),A(21,"div",13),J(22,"Name is required"),M()(),A(23,"div",4)(24,"div",5)(25,"label",14),J(26,"Description"),M()(),je(27,"input",15),M()(),A(28,"div",3)(29,"div",16)(30,"div",5)(31,"label",17),J(32,"Avatar URL"),M()(),je(33,"input",18),M(),A(34,"div",4)(35,"div",5)(36,"label",19),J(37,"Language"),M()(),je(38,"input",20),M()(),A(39,"div",3)(40,"div",4)(41,"div",5)(42,"label",8),J(43,"Members"),M()(),je(44,"input",21),M(),A(45,"div",16)(46,"div",5)(47,"label",22),J(48,"Max Count"),M()(),je(49,"input",23),M()(),A(50,"div",3)(51,"div",16)(52,"div",5)(53,"label",22),J(54,"Open"),M()(),je(55,"input",24),M()(),A(56,"div",25)(57,"div",4)(58,"div",5)(59,"label",26),J(60,"Create Time"),M()(),je(61,"input",27),M(),A(62,"div",4)(63,"div",5)(64,"label",28),J(65,"Update Time"),M()(),je(66,"input",29),M()(),A(67,"div",30),je(68,"div",31,32),M(),ye(70,tat,2,1,"button",33),M()),2&e&&(N("ngIf",i.error),I(1),N("ngIf",i.updated),I(1),N("formGroup",i.groupForm),I(6),N("value",i.group.id),I(5),N("routerLink",Lr(12,nat,i.group.creator_id)),I(1),N("value",i.group.creator_id),I(6),N("ngClass",Lr(14,iat,i.f.name.dirty&&i.f.name.errors)),I(1),N("hidden",i.f.name.disabled||i.f.name.valid||i.f.name.pristine),I(23),N("value",i.group.edge_count),I(17),N("value",i.group.create_time),I(5),N("value",i.group.update_time),I(4),N("ngIf",i.updateAllowed()))},dependencies:[Ru,Pd,Nn,Go,bl,qa,oC,vl,yl,Ff,Ea,Ya]})),t})();function oat(t,n){if(1&t&&(A(0,"ngb-alert",13),je(1,"img",14),A(2,"h6",15),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("An error occurred: ",e.error,"")}}function sat(t,n){1&t&&(A(0,"span"),J(1,"Add by membership state"),M())}function aat(t,n){if(1&t&&(A(0,"span"),J(1),M()),2&t){const e=te(2);I(1),Xt(e.activeState)}}function lat(t,n){if(1&t){const e=Bt();A(0,"button",20),He("click",function(){const o=st(e).$implicit;return at(te(2).activeState=o)}),J(1),M()}if(2&t){const e=n.$implicit;I(1),Xt(e)}}function cat(t,n){if(1&t&&(A(0,"div",16)(1,"button",17),ye(2,sat,2,0,"span",11),ye(3,aat,2,1,"span",11),M(),A(4,"div",18),ye(5,lat,2,1,"button",19),M()()),2&t){const e=te();I(2),N("ngIf",!e.activeState||""===e.activeState),I(1),N("ngIf",e.activeState&&""!==e.activeState),I(2),N("ngForOf",e.states)}}function uat(t,n){if(1&t){const e=Bt();A(0,"div",21)(1,"div",22)(2,"div",23)(3,"form",24)(4,"div",25),je(5,"input",26),A(6,"div",27)(7,"div",28)(8,"button",29),He("click",function(){return st(e),at(te().add())}),J(9,"Add"),M()()()()()()()()}if(2&t){const e=te();I(3),N("formGroup",e.addForm)}}function hat(t,n){1&t&&(A(0,"th",30),J(1,"Demote"),M())}function dat(t,n){1&t&&(A(0,"th",30),J(1,"Promote"),M())}function fat(t,n){1&t&&(A(0,"th",31),J(1,"Remove"),M())}function pat(t,n){1&t&&(A(0,"tr")(1,"td",32),J(2,"No group membership found."),M()())}function gat(t,n){1&t&&(A(0,"span"),J(1,"Superadmin (0)"),M())}function mat(t,n){1&t&&(A(0,"span"),J(1,"Admin (1)"),M())}function vat(t,n){1&t&&(A(0,"span"),J(1,"Member (2)"),M())}function yat(t,n){1&t&&(A(0,"span"),J(1,"Join Request (3)"),M())}function bat(t,n){1&t&&(A(0,"span"),J(1,"Banned (4)"),M())}function _at(t,n){if(1&t){const e=Bt();A(0,"td",36)(1,"button",37),He("click",function(r){st(e);const o=te(),s=o.index,a=o.$implicit;return at(te().demoteGroupUser(r,s,a))}),kt(),A(2,"svg",38),je(3,"path",39),M()()()}}function wat(t,n){if(1&t){const e=Bt();A(0,"td",36)(1,"button",37),He("click",function(r){st(e);const o=te(),s=o.index,a=o.$implicit;return at(te().promoteGroupUser(r,s,a))}),kt(),A(2,"svg",40),je(3,"path",41),M()()()}}function xat(t,n){if(1&t){const e=Bt();A(0,"td",42)(1,"button",43),He("click",function(r){st(e);const o=te(),s=o.index,a=o.$implicit;return at(te().deleteGroupUser(r,s,a))}),J(2,"Delete"),M()()}}function Cat(t,n){if(1&t){const e=Bt();A(0,"tr")(1,"td",33),He("click",function(){const o=st(e).$implicit;return at(te().viewAccount(o))}),J(2),M(),A(3,"td",33),He("click",function(){const o=st(e).$implicit;return at(te().viewAccount(o))}),J(4),M(),A(5,"td",33),He("click",function(){const o=st(e).$implicit;return at(te().viewAccount(o))}),ye(6,gat,2,0,"span",11),ye(7,mat,2,0,"span",11),ye(8,vat,2,0,"span",11),ye(9,yat,2,0,"span",11),ye(10,bat,2,0,"span",11),M(),A(11,"td",33),He("click",function(){const o=st(e).$implicit;return at(te().viewAccount(o))}),J(12),M(),ye(13,_at,4,0,"td",34),ye(14,wat,4,0,"td",34),ye(15,xat,3,0,"td",35),M()}if(2&t){const e=n.$implicit,i=te();I(2),Xt(e.user.id),I(2),Xt(e.user.username),I(2),N("ngIf",0===e.state),I(1),N("ngIf",1===e.state),I(1),N("ngIf",2===e.state),I(1),N("ngIf",3===e.state),I(1),N("ngIf",4===e.state),I(2),Xt(e.user.update_time),I(1),N("ngIf",i.editionAllowed()),I(1),N("ngIf",i.editionAllowed()),I(1),N("ngIf",i.editionAllowed())}}let Sat=(()=>{class t{constructor(e,i,r,o,s){be(this,"route",void 0),be(this,"router",void 0),be(this,"consoleService",void 0),be(this,"formBuilder",void 0),be(this,"authService",void 0),be(this,"error",""),be(this,"group",void 0),be(this,"members",[]),be(this,"activeState","Add Member"),be(this,"states",["Add Member","Join"]),be(this,"addForm",void 0),this.route=e,this.router=i,this.consoleService=r,this.formBuilder=o,this.authService=s,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.addForm=this.formBuilder.group({ids:[""]})}ngOnInit(){this.route.data.subscribe(e=>{this.members.length=0,this.members.push(...e[0].group_users)},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.group=e[0]},e=>{this.error=e})}editionAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}deleteGroupUser(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteGroupUser("",r.user.id,this.group.id).subscribe(()=>{this.members.splice(i,1)},o=>{this.error=o})}demoteGroupUser(e,i,r){this.error="",this.consoleService.demoteGroupMember("",this.group.id,r.user.id).subscribe(()=>{this.members[i].state++},o=>{this.error=o})}promoteGroupUser(e,i,r){this.error="",this.consoleService.promoteGroupMember("",this.group.id,r.user.id).subscribe(()=>{this.members[i].state--},o=>{this.error=o})}viewAccount(e){this.router.navigate(["/accounts",e.user.id],{relativeTo:this.route})}add(){this.consoleService.addGroupUsers("",this.group.id,{ids:this.f.ids.value,join_request:"Join"===this.activeState}).subscribe(()=>{this.error="",this.router.navigate([this.router.url])},i=>{this.error=i})}get f(){return this.addForm.controls}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Ui),Ae(Pl),Ae(ds))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],decls:21,vars:8,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["class","btn-group mb-1","ngbDropdown","",4,"ngIf"],["class","row no-gutters mb-4",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","300px"],[2,"width","180px"],["style","width: 70px",4,"ngIf"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["ngbDropdown","",1,"btn-group","mb-1"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],["type","button","ngbDropdownItem","",3,"click"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup"],[1,"input-group"],["id","ids","type","text","formControlName","ids","placeholder","Add user IDs as members, comma-separated",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","submit",1,"btn","btn-primary","dropdown-radius-left",3,"click"],[2,"width","70px"],[2,"width","90px"],["colSpan","7",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],["class","text-center align-middle",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-outline-secondary",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-arrow-down"],["fill-rule","evenodd","d","M8 1a.5.5 0 0 1 .5.5v11.793l3.146-3.147a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L7.5 13.293V1.5A.5.5 0 0 1 8 1z"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-arrow-up"],["fill-rule","evenodd","d","M8 15a.5.5 0 0 0 .5-.5V2.707l3.146 3.147a.5.5 0 0 0 .708-.708l-4-4a.5.5 0 0 0-.708 0l-4 4a.5.5 0 1 0 .708.708L7.5 2.707V14.5a.5.5 0 0 0 .5.5z"],[1,"text-center","align-middle"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(e,i){1&e&&(ye(0,oat,4,2,"ngb-alert",0),ye(1,cat,6,3,"div",1),ye(2,uat,10,1,"div",2),A(3,"div",3)(4,"table",4)(5,"thead",5)(6,"tr")(7,"th",6),J(8,"User ID"),M(),A(9,"th"),J(10,"Name"),M(),A(11,"th",7),J(12,"State"),M(),A(13,"th",8),J(14,"Update Time"),M(),ye(15,hat,2,0,"th",9),ye(16,dat,2,0,"th",9),ye(17,fat,2,0,"th",10),M()(),A(18,"tbody"),ye(19,pat,3,0,"tr",11),ye(20,Cat,16,11,"tr",12),M()()()),2&e&&(N("ngIf",i.error),I(1),N("ngIf",!i.group.open&&i.editionAllowed()),I(1),N("ngIf",i.editionAllowed()),I(13),N("ngIf",i.editionAllowed()),I(1),N("ngIf",i.editionAllowed()),I(1),N("ngIf",i.editionAllowed()),I(2),N("ngIf",0===i.members.length),I(1),N("ngForOf",i.members))},dependencies:[ti,Nn,Go,Bu,rg,Rf,Nf,bl,qa,vl,yl,Ea,Ya],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}.dropdown-radius-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}"]})),t})(),kat=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getMembers("",r)}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Dat(t,n){if(1&t&&(A(0,"ngb-alert",28),je(1,"img",29),A(2,"h6",30),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("An error occurred: ",e.error,"")}}function Tat(t,n){if(1&t&&(A(0,"span"),J(1),M()),2&t){const e=te();I(1),Xt(e.activeType)}}function Aat(t,n){if(1&t){const e=Bt();A(0,"button",31),He("click",function(){const o=st(e).$implicit;return at(te().activeType=o)}),J(1),M()}if(2&t){const e=n.$implicit;I(1),Xt(e)}}function Eat(t,n){if(1&t&&(A(0,"span"),J(1),M()),2&t){const e=te();I(1),Xt(e.activeNode)}}function Mat(t,n){if(1&t){const e=Bt();A(0,"button",31),He("click",function(){const o=st(e).$implicit;return at(te().activeNode=o)}),J(1),M()}if(2&t){const e=n.$implicit;I(1),Xt(e)}}function Iat(t,n){1&t&&(A(0,"tr")(1,"td",32),J(2,"No realtime matches were found."),M()())}function Fat(t,n){1&t&&je(0,"div",40)}function Lat(t,n){1&t&&je(0,"div",41)}function Oat(t,n){if(1&t){const e=Bt();A(0,"div",37),He("click",function(){st(e);const r=te(),o=r.index,s=r.$implicit,a=te();return a.getMatchState(o,s),at(a.matchStatesOpen[o]=!a.matchStatesOpen[o])}),ye(1,Fat,1,0,"div",38),ye(2,Lat,1,0,"div",39),M()}if(2&t){const e=te().index,i=te();I(1),N("ngIf",!i.matchStatesOpen[e]),I(1),N("ngIf",i.matchStatesOpen[e])}}function Nat(t,n){1&t&&je(0,"div",42)}function Rat(t,n){1&t&&(A(0,"span"),J(1,"Yes"),M())}function $at(t,n){1&t&&(A(0,"span"),J(1,"No"),M())}function Pat(t,n){1&t&&je(0,"img",51)}function jat(t,n){if(1&t&&(A(0,"div")(1,"small")(2,"b"),J(3,"Current Tick"),M()(),A(4,"pre",47)(5,"small"),J(6),M()(),A(7,"small")(8,"b"),J(9,"Match State"),M()(),A(10,"pre",47)(11,"small"),J(12),M()()()),2&t){const e=te(2).index,i=te();I(6),Xt(i.matchStates[e].tick),I(6),Xt(i.matchStates[e].state)}}function Bat(t,n){1&t&&je(0,"img",51)}function Hat(t,n){if(1&t&&(A(0,"pre",47)(1,"small"),J(2),M()()),2&t){const e=te(2).index,i=te();I(2),Xt(i.getMatchPresencesString(i.matchStates[e].presences))}}function Vat(t,n){if(1&t&&(A(0,"tr",43)(1,"td",44)(2,"div",45)(3,"div",46)(4,"small")(5,"b"),J(6,"Match Label"),M()(),A(7,"pre",47)(8,"small"),J(9),M()()(),A(10,"div",48),ye(11,Pat,1,0,"img",49),ye(12,jat,13,2,"div",7),M(),A(13,"div",48)(14,"small")(15,"b"),J(16,"Match Presences"),M()(),ye(17,Bat,1,0,"img",49),ye(18,Hat,3,1,"pre",50),M()()()()),2&t){const e=te(),i=e.$implicit,r=e.index,o=te();I(9),Xt(i.api_match.label),I(2),N("ngIf",!o.matchStates[r]||null===o.matchStates[r]),I(1),N("ngIf",null!==o.matchStates[r]),I(5),N("ngIf",!o.matchStates[r]||null===o.matchStates[r]),I(1),N("ngIf",null!==o.matchStates[r])}}function zat(t,n){if(1&t&&(A(0,"tr")(1,"td"),ye(2,Oat,3,2,"div",33),ye(3,Nat,1,0,"div",34),J(4),M(),A(5,"td"),J(6),M(),A(7,"td",35),ye(8,Rat,2,0,"span",7),ye(9,$at,2,0,"span",7),M(),A(10,"td"),J(11),M(),A(12,"td"),J(13),M(),A(14,"td"),J(15),M()(),ye(16,Vat,19,5,"tr",36)),2&t){const e=n.index,i=n.$implicit,r=te();I(2),N("ngIf",i.api_match.authoritative),I(1),N("ngIf",!i.api_match.authoritative),I(1),jn(" ",i.api_match.match_id," "),I(2),Xt(i.api_match.size),I(2),N("ngIf",i.api_match.authoritative),I(1),N("ngIf",!i.api_match.authoritative),I(2),Xt(i.node),I(2),Xt(i.api_match.handler_name),I(2),Xt(i.api_match.authoritative?i.api_match.tick_rate:"-"),I(1),N("ngIf",r.matchStatesOpen[e])}}let Uat=(()=>{class t{constructor(e,i,r,o){be(this,"route",void 0),be(this,"router",void 0),be(this,"formBuilder",void 0),be(this,"consoleService",void 0),be(this,"error",""),be(this,"matches",[]),be(this,"matchStates",[]),be(this,"matchStatesOpen",[]),be(this,"updated",!1),be(this,"searchForm1",void 0),be(this,"searchForm2",void 0),be(this,"searchForm3",void 0),be(this,"type",void 0),be(this,"activeType","All"),be(this,"types",["All","Authoritative","Relayed"]),be(this,"activeNode","All Nodes"),be(this,"nodes",["All Nodes"]),this.route=e,this.router=i,this.formBuilder=r,this.consoleService=o,this.searchForm1=this.formBuilder.group({match_id:""}),this.searchForm2=this.formBuilder.group({match_id:""}),this.searchForm3=this.formBuilder.group({query:""})}ngOnInit(){const e=this.route.snapshot.queryParamMap;this.f1.match_id.setValue(e.get("match_id")),this.f2.match_id.setValue(e.get("match_id")),this.f3.query.setValue(e.get("query"));let i=e.get("type");this.type=Number(i);let r=e.get("node");if(this.route.data.subscribe(o=>{console.log(o),o&&(o[0]&&(this.error="",this.matches.length=0,this.matches.push(...o[0].matches),this.matchStates.length=this.matches.length,this.matchStatesOpen.length=this.matches.length),o[1]&&this.nodes.push(...o[1]),o.error&&(this.error=o.error))},o=>{this.error=o}),null===i?(this.type=0,this.activeType=this.types[0]):0==this.type||1==this.type||2==this.type?this.activeType=this.types[this.type]:this.error="Invalid type",null!==r){let o=!1;this.nodes.forEach(s=>{r===s&&(this.activeNode=r,o=!0)}),o||(this.error="Invalid node.")}}search(){const e=this.getType();this.type=e,Xge(this.consoleService,e,0==e?this.f1.match_id.value:this.f2.match_id.value,this.f3.query.value,this.activeNode===this.nodes[0]?"":this.activeNode).subscribe(i=>this.postData(i),i=>{this.error=i})}postData(e){let i;switch(this.error="",this.matches.length=0,this.matches.push(...e.matches),this.matchStates.length=this.matches.length,this.matchStatesOpen.length=this.matches.length,this.type){case 0:i={type:this.type,match_id:this.f1.match_id.value};break;case 1:i={type:this.type,query:this.f3.query.value},this.activeNode!==this.nodes[0]&&(i.node=this.activeNode);break;case 2:i={type:this.type,match_id:this.f2.match_id.value}}this.router.navigate([],{relativeTo:this.route,queryParams:i})}getType(){let e=0;return this.types.forEach((i,r)=>{this.activeType===i&&(e=r)}),e}getMatchState(e,i){this.matchStatesOpen[e]||(this.matchStates[e]=null,this.error="",this.consoleService.getMatchState("",i.api_match.match_id).subscribe(r=>{this.matchStatesOpen[e]=!0,this.matchStates[e]=r},r=>{this.matchStatesOpen[e]=!1,this.matchStates[e]=null,this.error=r}))}getMatchPresencesString(e){return JSON.stringify(e)}get f1(){return this.searchForm1.controls}get f2(){return this.searchForm2.controls}get f3(){return this.searchForm3.controls}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Pl),Ae(Ui))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],decls:53,vars:16,consts:[[1,"pb-1"],[1,"pb-4"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"input-group","mb-1"],[1,"input-group-prepend"],["ngbDropdown","",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary","dropdown-radius-right"],[4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],[1,"input-group-append"],["type","submit",1,"btn","btn-primary",3,"click"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"hidden","formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","match_id","placeholder","Filter by match ID",1,"form-control"],["type","text","formControlName","query","placeholder","Filter by query or match ID",1,"form-control","border-right-0"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary","dropdown-radius-left"],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered"],[1,"thead-light"],[2,"width","140px"],[2,"width","100px"],[2,"width","130px"],[2,"width","90px"],["ngFor","",3,"ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","button","ngbDropdownItem","",3,"click"],["colSpan","8",1,"text-muted"],["class","arrow",3,"click",4,"ngIf"],["class","d-inline-block mr-3",4,"ngIf"],[1,"text-center"],["class","open-row",4,"ngIf"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"d-inline-block","mr-3"],[1,"open-row"],["colspan","6",1,"align-middle"],[1,"d-flex","p-0"],[1,"p-3","w-33","border"],[1,"pre-wrap","m-0","p-0"],[1,"p-3","w-33","border","border-left-0"],["src","/static/spinner.svg","class","d-block","width","16",4,"ngIf"],["class","pre-wrap m-0 p-0",4,"ngIf"],["src","/static/spinner.svg","width","16",1,"d-block"]],template:function(e,i){1&e&&(A(0,"h2",0),J(1,"Active Matches"),M(),A(2,"h6",1),J(3),M(),ye(4,Dat,4,2,"ngb-alert",2),A(5,"div",3)(6,"div",4)(7,"div",5)(8,"button",6),ye(9,Tat,2,1,"span",7),M(),A(10,"div",8),ye(11,Aat,2,1,"button",9),M()()(),A(12,"div",10)(13,"button",11),He("click",function(){return i.search()}),J(14,"Search"),M()()(),A(15,"div",12)(16,"div",13)(17,"div",14)(18,"form",15),He("ngSubmit",function(){return i.search()}),A(19,"div",16),je(20,"input",17),M()(),A(21,"form",15),He("ngSubmit",function(){return i.search()}),A(22,"div",16),je(23,"input",17),M()(),A(24,"form",15),He("ngSubmit",function(){return i.search()}),A(25,"div",16),je(26,"input",18),A(27,"div",10)(28,"div",5)(29,"button",19),ye(30,Eat,2,1,"span",7),M(),A(31,"div",8),ye(32,Mat,2,1,"button",9),M()()()()()()()(),A(33,"div",20)(34,"table",21)(35,"thead",22)(36,"tr")(37,"th")(38,"span"),J(39,"Match ID"),M()(),A(40,"th",23),J(41,"Presence Count"),M(),A(42,"th",24),J(43,"Authoritative"),M(),A(44,"th",24),J(45,"Node"),M(),A(46,"th",25),J(47,"Handler Name"),M(),A(48,"th",26),J(49,"Tick Rate"),M()()(),A(50,"tbody"),ye(51,Iat,3,0,"tr",7),ye(52,zat,17,10,"ng-template",27),M()()()),2&e&&(I(3),jn("",i.matches.length," running matches found."),I(1),N("ngIf",i.error),I(5),N("ngIf",i.activeType&&""!==i.activeType),I(2),N("ngForOf",i.types),I(7),N("hidden","All"!==i.activeType)("formGroup",i.searchForm1),I(3),N("hidden","Relayed"!==i.activeType)("formGroup",i.searchForm2),I(3),N("hidden","Authoritative"!==i.activeType)("formGroup",i.searchForm3),I(6),N("ngIf",i.activeNode&&""!==i.activeNode),I(2),N("ngForOf",i.nodes),I(6),Kn("pl-3",i.matches.length>0),I(13),N("ngIf",0===i.matches.length),I(1),N("ngForOf",i.matches))},dependencies:[ti,Nn,Go,Bu,rg,Rf,Nf,bl,qa,vl,yl,Ea,Ya],styles:[".pre-wrap[_ngcontent-%COMP%]{word-wrap:anywhere;word-break:break-all;white-space:pre-wrap}.open-row[_ngcontent-%COMP%]{background:#FAFAFC}.w-33[_ngcontent-%COMP%]{width:33.3333%!important}.dropdown-radius-right[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.dropdown-radius-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}"]})),t})(),Wat=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){let r=Number(e.queryParamMap.get("type"));return Xge(this.consoleService,r,e.queryParamMap.get("match_id"),e.queryParamMap.get("query"),e.queryParamMap.get("node")).pipe(tc(o=>(e.data={...e.data,error:o},oi(null))))}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Xge(t,n,e,i,r){switch(n){case 0:return t.listMatches("",null,null,null,null,null,e);case 1:return t.listMatches("",null,!0,null,null,null,null,i,r);case 2:return t.listMatches("",null,!1,null,null,null,e)}return oi(null)}let Gat=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.getStatus("").pipe(et(r=>oi(r.nodes.map(o=>o.name)))).pipe(tc(r=>(e.data={...e.data,error:r},oi([]))))}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function qat(t,n){if(1&t&&(A(0,"ngb-alert",25),je(1,"img",26),A(2,"h6",27),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("Error when querying groups: ",e.error,"")}}function Xat(t,n){1&t&&(A(0,"th",28),J(1,"Remove"),M())}function Yat(t,n){1&t&&(A(0,"tr")(1,"td",29),J(2,"No groups found - change the filter criteria or add new user groups."),M()())}function Kat(t,n){1&t&&je(0,"td")}function Jat(t,n){if(1&t){const e=Bt();A(0,"td",32)(1,"button",33),He("click",function(r){st(e);const o=te(),s=o.index,a=o.$implicit;return at(te().deleteGroup(r,s,a))}),J(2,"Delete"),M()()}}function Qat(t,n){if(1&t){const e=Bt();A(0,"tr")(1,"td",30),He("click",function(){const o=st(e).$implicit;return at(te().viewGroup(o))}),J(2),M(),A(3,"td",30),He("click",function(){const o=st(e).$implicit;return at(te().viewGroup(o))}),J(4),M(),A(5,"td",30),He("click",function(){const o=st(e).$implicit;return at(te().viewGroup(o))}),J(6),M(),ye(7,Kat,1,0,"td",23),ye(8,Jat,3,0,"td",31),M()}if(2&t){const e=n.$implicit,i=te();I(2),Xt(e.id),I(2),Xt(e.name),I(2),Xt(e.update_time),I(1),N("ngIf",i.deleteAllowed()&&e.id===i.systemUserId),I(1),N("ngIf",i.deleteAllowed()&&e.id!==i.systemUserId)}}let Zat=(()=>{class t{constructor(e,i,r,o,s){be(this,"route",void 0),be(this,"router",void 0),be(this,"consoleService",void 0),be(this,"authService",void 0),be(this,"formBuilder",void 0),be(this,"systemUserId","00000000-0000-0000-0000-000000000000"),be(this,"error",""),be(this,"groupsCount",0),be(this,"groups",[]),be(this,"nextCursor",""),be(this,"prevCursor",""),be(this,"searchForm",void 0),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.searchForm=this.formBuilder.group({filter:[""]});const e=this.route.snapshot.queryParamMap;this.f.filter.setValue(e.get("filter")),this.nextCursor=e.get("cursor"),this.nextCursor&&""!==this.nextCursor?this.search(1):this.f.filter.value&&this.search(0),this.route.data.subscribe(i=>{this.groups.length=0,i&&(this.groups.push(...i[0].groups),this.groupsCount=i[0].total_count,this.nextCursor=i[0].next_cursor,this.prevCursor=i[0].prev_cursor)},i=>{this.error=i})}search(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listGroups("",this.f.filter.value,i).subscribe(r=>{this.error="",this.groups.length=0,this.groups.push(...r.groups),this.groupsCount=r.total_count,this.nextCursor=r.next_cursor,this.router.navigate([],{relativeTo:this.route,queryParams:{filter:this.f.filter.value,cursor:i},queryParamsHandling:"merge"})},r=>{this.error=r})}deleteGroup(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteGroup("",r.id).subscribe(()=>{this.error="",this.groups.splice(i,1),this.groupsCount--},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_DEVELOPER}viewGroup(e){this.router.navigate(["/groups",e.id],{relativeTo:this.route})}get f(){return this.searchForm.controls}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Ui),Ae(ds),Ae(Pl))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],decls:35,vars:8,consts:[[1,"pb-1"],[1,"pb-3"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","filter","placeholder","Filter by group ID or name (use '%' for wildcard search)",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","button",1,"btn","btn-primary","dropdown-radius",3,"click"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(e,i){1&e&&(A(0,"h2",0),J(1,"User Groups"),M(),A(2,"h6",1),J(3),M(),A(4,"div",2)(5,"div",3)(6,"div",4)(7,"form",5),He("ngSubmit",function(){return i.search(0)}),A(8,"div",6),je(9,"input",7),A(10,"div",8)(11,"div",9)(12,"button",10),He("click",function(){return i.search(0)}),J(13,"Search"),M()()()()()(),A(14,"div",11)(15,"div",12)(16,"button",13),He("click",function(){return i.search(0)}),je(17,"img",14),M(),A(18,"button",13),He("click",function(){return i.search(1)}),je(19,"img",15),M()()()()(),ye(20,qat,4,2,"ngb-alert",16),A(21,"div",17)(22,"table",18)(23,"thead",19)(24,"tr")(25,"th",20),J(26,"Group ID"),M(),A(27,"th"),J(28,"Name"),M(),A(29,"th",21),J(30,"Last Update"),M(),ye(31,Xat,2,0,"th",22),M()(),A(32,"tbody"),ye(33,Yat,3,0,"tr",23),ye(34,Qat,9,5,"tr",24),M()()()),2&e&&(I(3),jn("",i.groupsCount," groups found."),I(4),N("formGroup",i.searchForm),I(9),N("disabled",0===i.groups.length),I(2),N("disabled",""===i.nextCursor),I(2),N("ngIf",i.error),I(11),N("ngIf",i.deleteAllowed()),I(2),N("ngIf",0===i.groups.length),I(1),N("ngForOf",i.groups))},dependencies:[ti,Nn,Go,bl,qa,vl,yl,Ea,Ya],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})),t})(),elt=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.queryParamMap.get("filter");return this.consoleService.listGroups("",r,null)}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function tlt(t,n){if(1&t){const e=Bt();A(0,"button",13),He("click",function(r){return st(e),at(te().exportGroup(r))}),je(1,"img",14),J(2,"Export"),M()}}function nlt(t,n){if(1&t){const e=Bt();A(0,"button",15),He("click",function(r){return st(e),at(te().deleteGroup(r,!1))}),je(1,"img",16),J(2,"Delete"),M()}}function ilt(t,n){if(1&t&&(A(0,"ngb-alert",17),je(1,"img",18),A(2,"h6",19),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("An error occurred: ",e.error,"")}}const rlt=function(t,n){return["/groups",t,n]};function olt(t,n){if(1&t&&(A(0,"div"),va(1,20),A(2,"a",21),J(3),M(),ya(),M()),2&t){const e=n.$implicit,i=te();I(1),N("ngbNavItem",e.path),I(1),N("routerLink",Kr(3,rlt,i.group.id,e.path)),I(1),Xt(e.label)}}const slt=function(){return["/groups"]};let alt=(()=>{class t{constructor(e,i,r,o){be(this,"route",void 0),be(this,"router",void 0),be(this,"consoleService",void 0),be(this,"authService",void 0),be(this,"group",void 0),be(this,"error",""),be(this,"views",[{label:"Details",path:"details"},{label:"Members",path:"members"}]),this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.group=e[0]},e=>{this.error=e})}deleteGroup(e,i){e.target.disabled=!0,this.error="",this.consoleService.deleteGroup("",this.group.id).subscribe(()=>{this.error="",this.router.navigate(["/groups"])},r=>{this.error=r})}exportGroup(e){e.target.disabled=!0,this.error="",this.consoleService.exportGroup("",this.group.id).subscribe(i=>{this.error="";const r=this.group.id+"-export.json",o=JSON.stringify(i,null,2),s=(new TextEncoder).encode(o),a=new Blob([s],{type:"application/json;charset=utf-8"});(0,nF.saveAs)(a,r),e.target.disabled=!1},i=>{e.target.disabled=!1,this.error=i})}updateAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}exportAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}banAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Ui),Ae(ds))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],decls:18,vars:7,consts:[[1,"pb-1"],[1,"account-top-nav","d-flex","justify-content-between","align-items-baseline","mb-4"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active"],["type","button","class","btn btn-outline-secondary mr-2",3,"click",4,"ngIf"],["type","button","class","btn btn-danger btn-danger-icon mr-2",3,"click",4,"ngIf"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["ngbNav","",1,"navbar-expand-sm","p-0","mb-3"],["accountNav","ngbNav"],[4,"ngFor","ngForOf"],["type","button",1,"btn","btn-outline-secondary","mr-2",3,"click"],["src","/static/svg/export.svg","alt","","width","13","height","13",1,"mr-2"],["type","button",1,"btn","btn-danger","btn-danger-icon","mr-2",3,"click"],["src","/static/svg/bin-red.svg","alt","","width","14","height","",1,"mr-2"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"ngbNavItem"],["ngbNavLink","","routerLinkActive","account-link-active",3,"routerLink"]],template:function(e,i){1&e&&(A(0,"h2",0),J(1,"User Group"),M(),A(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4)(6,"a",5),J(7,"Group"),M()(),A(8,"li",6),J(9),M()()(),A(10,"div"),ye(11,tlt,3,0,"button",7),ye(12,nlt,3,0,"button",8),M()(),ye(13,ilt,4,2,"ngb-alert",9),A(14,"nav",10,11),ye(16,olt,4,6,"div",12),M(),je(17,"router-outlet")),2&e&&(I(6),N("routerLink",Ll(6,slt)),I(3),Xt(i.group.id),I(2),N("ngIf",i.exportAllowed()),I(1),N("ngIf",i.deleteAllowed()),I(1),N("ngIf",i.error),I(3),N("ngForOf",i.views))},dependencies:[Kp,Ru,uy,ti,Nn,Go,ag,sg,dv],styles:[".nav-link[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#000;opacity:.5;padding:0 0 1.6em;margin-right:3em;margin-bottom:-2px;font-weight:600}.nav-link[_ngcontent-%COMP%]:hover{opacity:1}.nav-link.account-link-active[_ngcontent-%COMP%]{opacity:1;border-bottom:solid 2px #7668ED}.navbar-expand-sm[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9}.account-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})),t})(),llt=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.paramMap.get("id");return this.consoleService.getGroup("",r)}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function clt(t,n){if(1&t){const e=Bt();A(0,"button",12),He("click",function(r){return st(e),at(te().deleteLeaderboard(r))}),je(1,"img",13),J(2,"Delete Leaderboard"),M()}}function ult(t,n){if(1&t&&(A(0,"ngb-alert",14),je(1,"img",15),A(2,"h6",16),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("An error occurred: ",e.error,"")}}const hlt=function(t,n){return["/leaderboards",t,n]};function dlt(t,n){if(1&t&&(A(0,"div"),va(1,17),A(2,"a",18),J(3),M(),ya(),M()),2&t){const e=n.$implicit,i=te();I(1),N("ngbNavItem",e.path),I(1),N("routerLink",Kr(3,hlt,i.leaderboard.id,e.path)),I(1),Xt(e.label)}}const flt=function(){return["/leaderboards"]};let plt=(()=>{class t{constructor(e,i,r,o){be(this,"route",void 0),be(this,"router",void 0),be(this,"consoleService",void 0),be(this,"authService",void 0),be(this,"leaderboard",void 0),be(this,"error",""),be(this,"views",[{label:"Details",path:"details"},{label:"Records",path:"records"}]),this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.leaderboard=e[0]},e=>{this.error=e})}deleteLeaderboard(e){e.target.disabled=!0,this.error="",this.consoleService.deleteLeaderboard("",this.leaderboard.id).subscribe(()=>{this.error="",this.router.navigate(["/leaderboards"])},i=>{this.error=i})}deleteAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_DEVELOPER}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Ui),Ae(ds))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],decls:17,vars:6,consts:[[1,"pb-1"],[1,"leaderboard-top-nav","d-flex","justify-content-between","align-items-baseline","mb-3"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active"],["type","button","class","btn btn-danger btn-danger-icon",3,"click",4,"ngIf"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["ngbNav","",1,"navbar-expand-sm","p-0","mb-3"],["leaderboardNav","ngbNav"],[4,"ngFor","ngForOf"],["type","button",1,"btn","btn-danger","btn-danger-icon",3,"click"],["src","/static/svg/bin-red.svg","alt","","width","13","height","13",1,"mr-2"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"ngbNavItem"],["ngbNavLink","","routerLinkActive","account-link-active",3,"routerLink"]],template:function(e,i){1&e&&(A(0,"h2",0),J(1,"Leaderboard"),M(),A(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4)(6,"a",5),J(7,"Leaderboards"),M()(),A(8,"li",6),J(9),M()()(),A(10,"div"),ye(11,clt,3,0,"button",7),M()(),ye(12,ult,4,2,"ngb-alert",8),A(13,"nav",9,10),ye(15,dlt,4,6,"div",11),M(),je(16,"router-outlet")),2&e&&(I(6),N("routerLink",Ll(5,flt)),I(3),Xt(i.leaderboard.id),I(2),N("ngIf",i.deleteAllowed()),I(1),N("ngIf",i.error),I(3),N("ngForOf",i.views))},dependencies:[Kp,Ru,uy,ti,Nn,Go,ag,sg,dv],styles:[".nav-link[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#000;opacity:.5;padding:0 0 1.6em;margin-right:3em;margin-bottom:-2px;font-weight:600}.nav-link[_ngcontent-%COMP%]:hover{opacity:1}.nav-link.account-link-active[_ngcontent-%COMP%]{opacity:1;border-bottom:solid 2px #7668ED}.navbar-expand-sm[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9}.leaderboard-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})),t})(),glt=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.paramMap.get("id");return this.consoleService.getLeaderboard("",r)}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();const mlt=["editor"];function vlt(t,n){if(1&t&&(A(0,"ngb-alert",24),je(1,"img",25),A(2,"h6",26),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("An error occurred: ",e.error,"")}}function ylt(t,n){if(1&t&&(A(0,"div",27)(1,"h6"),J(2,"Tournament"),M(),je(3,"hr",28),A(4,"div",2)(5,"div",3)(6,"div",4)(7,"label",29),J(8,"Title"),M()(),je(9,"input",30),M(),A(10,"div",3)(11,"div",4)(12,"label",31),J(13,"Description"),M()(),je(14,"input",32),M()(),A(15,"div",2)(16,"div",3)(17,"div",4)(18,"label",33),J(19,"Category"),M()(),je(20,"input",34),M(),A(21,"div",3)(22,"div",4)(23,"label",35),J(24,"Max Num Score"),M()(),je(25,"input",36),M()(),A(26,"div",2)(27,"div",3)(28,"div",4)(29,"label",37),J(30,"Size"),M()(),je(31,"input",38),M(),A(32,"div",3)(33,"div",4)(34,"label",39),J(35,"Max Size"),M()(),je(36,"input",40),M()(),A(37,"div",2)(38,"div",3)(39,"div",4)(40,"label",41),J(41,"Duration"),M()(),je(42,"input",42),M(),A(43,"div",3)(44,"div",4)(45,"label",43),J(46,"Join Required"),M()(),je(47,"input",44),M()(),A(48,"div",2)(49,"div",3)(50,"div",4)(51,"label",45),J(52,"Start Time"),M()(),je(53,"input",46),M(),A(54,"div",3)(55,"div",4)(56,"label",47),J(57,"End Time"),M()(),je(58,"input",48),M()(),A(59,"div",2)(60,"div",3)(61,"div",4)(62,"label",49),J(63,"Start Active"),M()(),je(64,"input",50),M(),A(65,"div",3)(66,"div",4)(67,"label",51),J(68,"End Active"),M()(),je(69,"input",52),M()()()),2&t){const e=te();I(9),N("value",e.leaderboard.title),I(5),N("value",e.leaderboard.description),I(6),N("value",e.leaderboard.category),I(5),N("value",e.leaderboard.max_num_score),I(6),N("value",e.leaderboard.size),I(5),N("value",e.leaderboard.max_size),I(6),N("value",e.leaderboard.duration),I(5),N("value",e.leaderboard.join_required),I(6),N("value",e.leaderboard.start_time),I(5),N("value",e.leaderboard.end_time),I(6),N("value",e.leaderboard.start_active),I(5),N("value",e.leaderboard.end_active)}}let blt=(()=>{class t{constructor(e){be(this,"route",void 0),be(this,"editor",void 0),be(this,"orderString",{0:"Ascending",1:"Descending"}),be(this,"operatorString",{0:"Best",1:"Set",2:"Increment",3:"Decrement"}),be(this,"aceEditor",void 0),be(this,"leaderboard",void 0),be(this,"error",""),this.route=e}ngOnInit(){this.route.parent.data.subscribe(e=>{this.leaderboard=e[0]},e=>{this.error=e})}ngAfterViewInit(){if(ka.config.set("fontSize","14px"),ka.config.set("printMarginColumn",0),ka.config.set("useWorker",!0),ka.config.set("highlightSelectedWord",!0),ka.config.set("fontFamily",'"Courier New", Courier, monospace'),this.aceEditor=ka.edit(this.editor.nativeElement),this.aceEditor.setReadOnly(!0),this.leaderboard.metadata){const e=JSON.stringify(JSON.parse(this.leaderboard.metadata),null,2);this.aceEditor.session.setValue(e)}}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&Do(mlt,5),2&e){let r;En(r=Mn())&&(i.editor=r.first)}},decls:50,vars:10,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border","mb-3"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","id",1,"d-inline"],["type","text","id","id","placeholder","ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","authoritative",1,"d-inline"],["type","text","id","authoritative","placeholder","Authoritative","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","sortorder",1,"d-inline"],["type","text","id","sortorder","placeholder","Sort Order","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","operator",1,"d-inline"],["type","text","id","operator","placeholder","Operator","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","reset",1,"d-inline"],["type","text","id","reset","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"row","add-border-single-row-bottom"],["type","text","id","prev_reset","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["type","text","id","next_reset","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["class","mt-4",4,"ngIf"],[1,"card","p-2","mb-3",2,"height","400px"],[2,"height","400px"],["editor",""],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[1,"mt-4"],[1,"mb-4"],["for","title",1,"d-inline"],["type","text","id","title","placeholder","Title","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","description",1,"d-inline"],["type","text","id","description","placeholder","Description","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","category",1,"d-inline"],["type","text","id","category","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","max_num_score",1,"d-inline"],["type","text","id","max_num_score","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","size",1,"d-inline"],["type","text","id","size","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","max_size",1,"d-inline"],["type","text","id","max_size","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","duration",1,"d-inline"],["type","text","id","duration","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","join_required",1,"d-inline"],["type","text","id","join_required","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","start_time",1,"d-inline"],["type","text","id","start_time","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","end_time",1,"d-inline"],["type","text","id","end_time","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","start_active",1,"d-inline"],["type","text","id","start_active","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","end_active",1,"d-inline"],["type","text","id","end_active","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"]],template:function(e,i){1&e&&(ye(0,vlt,4,2,"ngb-alert",0),A(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"label",5),J(6,"ID"),M()(),je(7,"input",6),M(),A(8,"div",3)(9,"div",4)(10,"label",7),J(11,"Authoritative"),M()(),je(12,"input",8),M()(),A(13,"div",2)(14,"div",3)(15,"div",4)(16,"label",9),J(17,"Sort Order"),M()(),je(18,"input",10),M(),A(19,"div",3)(20,"div",4)(21,"label",11),J(22,"Operator"),M()(),je(23,"input",12),M()(),A(24,"div",2)(25,"div",3)(26,"div",4)(27,"label",13),J(28,"Reset Schedule"),M()(),je(29,"input",14),M(),A(30,"div",3)(31,"div",4)(32,"label",15),J(33,"Create Time"),M()(),je(34,"input",16),M()(),A(35,"div",17)(36,"div",3)(37,"div",4)(38,"label",13),J(39,"Prev Reset"),M()(),je(40,"input",18),M(),A(41,"div",3)(42,"div",4)(43,"label",15),J(44,"Next Reset"),M()(),je(45,"input",19),M()()(),ye(46,ylt,70,12,"div",20),A(47,"div",21),je(48,"div",22,23),M()),2&e&&(N("ngIf",i.error),I(7),N("value",i.leaderboard.id),I(5),N("value",i.leaderboard.authoritative),I(6),N("value",i.orderString[i.leaderboard.sort_order]),I(5),N("value",i.operatorString[i.leaderboard.operator]),I(6),N("value",i.leaderboard.reset_schedule),I(5),N("value",i.leaderboard.create_time),I(6),N("value",i.leaderboard.prev_reset),I(5),N("value",i.leaderboard.next_reset),I(1),N("ngIf",i.leaderboard.tournament))},dependencies:[Nn,Go],styles:[".leaderboard-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})),t})();function _lt(t,n){if(1&t&&(A(0,"ngb-alert",19),je(1,"img",20),A(2,"h6",21),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("An error occurred: ",e.error,"")}}function wlt(t,n){1&t&&(A(0,"th",22),J(1,"Remove"),M())}function xlt(t,n){1&t&&(A(0,"tr")(1,"td",23),J(2,"No records found."),M()())}function Clt(t,n){1&t&&je(0,"div",28)}function Slt(t,n){1&t&&je(0,"div",29)}function klt(t,n){if(1&t){const e=Bt();A(0,"td",30)(1,"button",31),He("click",function(r){st(e);const o=te(),s=o.index,a=o.$implicit;return at(te().deleteRecord(r,s,a))}),J(2,"Delete"),M()()}}function Dlt(t,n){if(1&t&&(A(0,"tr")(1,"td",32)(2,"pre",33)(3,"small"),J(4),M()()()()),2&t){const e=te().$implicit;I(4),Xt(e.metadata)}}function Tlt(t,n){if(1&t){const e=Bt();A(0,"tr")(1,"td")(2,"div",24),He("click",function(){const o=st(e).index,s=te();return at(s.recordsMetadataOpen[o]=!s.recordsMetadataOpen[o])}),ye(3,Clt,1,0,"div",25),ye(4,Slt,1,0,"div",26),M(),J(5),M(),A(6,"td"),J(7),M(),A(8,"td"),J(9),M(),A(10,"td"),J(11),M(),A(12,"td"),J(13),M(),A(14,"td"),J(15),M(),A(16,"td"),J(17),M(),ye(18,klt,3,0,"td",27),M(),ye(19,Dlt,5,1,"tr",17)}if(2&t){const e=n.index,i=n.$implicit,r=te();I(3),N("ngIf",!r.recordsMetadataOpen[e]),I(1),N("ngIf",r.recordsMetadataOpen[e]),I(1),jn(" ",i.owner_id," "),I(2),Xt(i.username),I(2),Xt(i.score),I(2),Xt(i.subscore),I(2),Xt(i.rank),I(2),Xt(i.num_score),I(2),Xt(i.expiry_time?i.expiry_time:"-"),I(1),N("ngIf",r.deleteAllowed()),I(1),N("ngIf",r.recordsMetadataOpen[e])}}let Alt=(()=>{class t{constructor(e,i,r){be(this,"route",void 0),be(this,"consoleService",void 0),be(this,"authService",void 0),be(this,"error",""),be(this,"leaderboard",void 0),be(this,"records",[]),be(this,"recordsMetadataOpen",[]),be(this,"nextCursor",""),be(this,"prevCursor",""),this.route=e,this.consoleService=i,this.authService=r}ngOnInit(){this.route.data.subscribe(e=>{this.records.length=0,this.records.push(...e[0].records),this.nextCursor=e[0].next_cursor,this.prevCursor=e[0].prev_cursor,this.recordsMetadataOpen.length=this.records.length},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.leaderboard=e[0]},e=>{this.error=e})}loadRecords(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listLeaderboardRecords("",this.leaderboard.id,null,100,i,null).subscribe(r=>{this.error="",this.nextCursor=r.next_cursor,this.prevCursor=r.prev_cursor,this.records.length=0,this.records.push(...r.records),this.recordsMetadataOpen.length=0,this.recordsMetadataOpen.length=this.records.length},r=>{this.error=r})}deleteRecord(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteLeaderboardRecord("",r.leaderboard_id,r.owner_id).subscribe(()=>{this.error="",this.records.splice(i,1),this.recordsMetadataOpen.splice(i,1)},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Ui),Ae(ds))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],decls:34,vars:7,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered"],[1,"thead-light"],[2,"width","380px"],[2,"width","150px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],["ngFor","",3,"ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","8",1,"text-muted"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","text-center",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],["colspan","7",1,"align-middle"],[1,"pre-wrap","m-0","p-0"]],template:function(e,i){1&e&&(ye(0,_lt,4,2,"ngb-alert",0),A(1,"div",1)(2,"div",2),je(3,"div",3),A(4,"div",4)(5,"div",5)(6,"button",6),He("click",function(){return i.loadRecords(0)}),je(7,"img",7),M(),A(8,"button",6),He("click",function(){return i.loadRecords(-1)}),je(9,"img",8),M(),A(10,"button",6),He("click",function(){return i.loadRecords(1)}),je(11,"img",9),M()()()()(),A(12,"div",10)(13,"table",11)(14,"thead",12)(15,"tr")(16,"th",13),J(17,"Owner ID"),M(),A(18,"th"),J(19,"Username"),M(),A(20,"th",14),J(21,"Score"),M(),A(22,"th",14),J(23,"Subscore"),M(),A(24,"th",14),J(25,"Rank"),M(),A(26,"th",14),J(27,"No. of scores"),M(),A(28,"th",15),J(29,"Expiry Time"),M(),ye(30,wlt,2,0,"th",16),M()(),A(31,"tbody"),ye(32,xlt,3,0,"tr",17),ye(33,Tlt,20,11,"ng-template",18),M()()()),2&e&&(N("ngIf",i.error),I(6),N("disabled",0===i.records.length),I(2),N("disabled",""===i.prevCursor),I(2),N("disabled",""===i.nextCursor),I(20),N("ngIf",i.deleteAllowed()),I(2),N("ngIf",0===i.records.length),I(1),N("ngForOf",i.records))},dependencies:[ti,Nn,Go]})),t})(),Elt=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.listLeaderboardRecords("",r,null,100,null,null)}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();const Mlt=["editor"],Ilt=["editorResponse"];function Flt(t,n){if(1&t&&(A(0,"ngb-alert",23),je(1,"img",24),A(2,"h6",25),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("Error whilst making RPC call: ",e.error,"")}}function Llt(t,n){if(1&t&&(A(0,"option",26),J(1),M()),2&t){const e=n.$implicit;Ld("value",e.method),I(1),Xt(e.method)}}function Olt(t,n){if(1&t&&(A(0,"option",26),J(1),M()),2&t){const e=n.$implicit;Ld("value",e.method),I(1),Xt(e.method)}}let Nlt=(()=>{class t{constructor(e,i,r,o){be(this,"route",void 0),be(this,"router",void 0),be(this,"consoleService",void 0),be(this,"formBuilder",void 0),be(this,"editor",void 0),be(this,"editorResponse",void 0),be(this,"aceEditor",void 0),be(this,"aceEditorResponse",void 0),be(this,"error",""),be(this,"rpcEndpoints",[]),be(this,"endpoints",[]),be(this,"endpointCallForm",void 0),this.route=e,this.router=i,this.consoleService=r,this.formBuilder=o}ngOnInit(){this.endpointCallForm=this.formBuilder.group({method:["",Wo.required],user_id:[""]}),this.f.method.valueChanges.subscribe(i=>{const r=this.endpoints.concat(this.rpcEndpoints).find(o=>o.method===i?o:null);this.updateQueryParam(r.method),this.setupRequestBody(r.body_template)}),this.route.data.subscribe(i=>{const r=i[0];this.endpoints.length=0,this.endpoints.push(...r.endpoints),this.rpcEndpoints.length=0,this.rpcEndpoints.push(...r.rpc_endpoints)},i=>{this.error=i});const e=this.endpoints.concat(this.rpcEndpoints).find(i=>i.method===this.route.snapshot.queryParamMap.get("endpoint")?i:null);null!=e&&this.f.method.setValue(e.method)}ngAfterViewInit(){ka.config.set("fontSize","14px"),ka.config.set("printMarginColumn",0),ka.config.set("useWorker",!0),ka.config.set("highlightSelectedWord",!0),ka.config.set("fontFamily",'"Courier New", Courier, monospace'),this.aceEditor=ka.edit(this.editor.nativeElement),this.aceEditor.setReadOnly(!0),this.aceEditorResponse=ka.edit(this.editorResponse.nativeElement),this.aceEditorResponse.setReadOnly(!0)}sendRequest(){this.error="";let e=this.aceEditor.session.getValue();if(""!==e)try{e=JSON.stringify(JSON.parse(e))}catch(o){return void(this.error=o)}const i={user_id:this.f.user_id.value,body:e};let r=null;r=this.isRpcEndpoint(this.f.method.value)?this.consoleService.callRpcEndpoint("",this.f.method.value,i):this.consoleService.callApiEndpoint("",this.f.method.value,i),r.subscribe(o=>{if(o.error_message&&""!==o.error_message)this.aceEditorResponse.session.setValue(o.error_message);else{e="";try{e=JSON.stringify(JSON.parse(o.body),null,2)}catch(s){return void(this.error=s)}this.aceEditorResponse.session.setValue(e)}},o=>{this.aceEditorResponse.session.setValue(""),this.error=o})}isRpcEndpoint(e){return null!=this.rpcEndpoints.find(i=>i.method===e?i:null)}setupRequestBody(e){if(null!=this.aceEditor){if(!e||""===e)return this.aceEditor.session.setValue(""),void this.aceEditor.setReadOnly(!this.isRpcEndpoint(this.f.method.value));try{const i=JSON.stringify(JSON.parse(e),null,2);this.aceEditor.session.setValue(i),this.aceEditor.setReadOnly(!1)}catch(i){return void(this.error=i)}}else console.log("problem?")}updateQueryParam(e){this.router.navigate([],{relativeTo:this.route,queryParams:{endpoint:e},queryParamsHandling:"merge"})}get f(){return this.endpointCallForm.controls}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Ui),Ae(Pl))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&(Do(Mlt,5),Do(Ilt,5)),2&e){let r;En(r=Mn())&&(i.editor=r.first),En(r=Mn())&&(i.editorResponse=r.first)}},decls:35,vars:6,consts:[[1,"pb-4"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],[1,"input-group-prepend"],["id","method","formControlName","method",1,"form-control","custom-select","dropdown-radius"],["disabled","",3,"value"],[3,"value",4,"ngFor","ngForOf"],["disabled","",1,"text-muted"],["type","text","formControlName","user_id","placeholder","set user ID as request context",1,"form-control","border-right-0"],[1,"input-group-append"],["type","submit",1,"btn","btn-primary",3,"disabled"],[1,"d-flex"],[1,"w-50","py-3"],[1,"mb-4"],[1,"card","p-2","mb-3"],[2,"height","500px"],["editor",""],[1,"w-50","pl-3","py-3"],["editorResponse",""],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"value"]],template:function(e,i){1&e&&(A(0,"h2",0),J(1,"API Explorer"),M(),ye(2,Flt,4,2,"ngb-alert",1),A(3,"div",2)(4,"div",3)(5,"div",4)(6,"form",5),He("ngSubmit",function(){return i.sendRequest()}),A(7,"div",6)(8,"div",7)(9,"select",8)(10,"option",9),J(11,"Select Endpoint"),M(),ye(12,Llt,2,2,"option",10),A(13,"option",11),J(14,"----"),M(),ye(15,Olt,2,2,"option",10),M()(),je(16,"input",12),A(17,"div",13)(18,"button",14),J(19,"Send Request"),M()()()()()()(),A(20,"div",15)(21,"div",16)(22,"h5"),J(23,"Request Body"),M(),je(24,"hr",17),A(25,"div",18),je(26,"div",19,20),M()(),A(28,"div",21)(29,"h5"),J(30,"Response"),M(),je(31,"hr",17),A(32,"div",18),je(33,"div",19,22),M()()()),2&e&&(I(2),N("ngIf",i.error),I(4),N("formGroup",i.endpointCallForm),I(4),N("value",""),I(2),N("ngForOf",i.rpcEndpoints),I(3),N("ngForOf",i.endpoints),I(3),N("disabled",i.f.method.invalid))},dependencies:[ti,Nn,Go,bl,by,_y,qa,rv,vl,yl,Ea,Ya],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}"]})),t})(),Rlt=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.listApiEndpoints("")}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function $lt(t,n){if(1&t&&(A(0,"ngb-alert",16),je(1,"img",17),A(2,"h6",18),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("Error while processing request: ",e.error,"")}}function Plt(t,n){1&t&&je(0,"div",23)}function jlt(t,n){1&t&&je(0,"div",24)}function Blt(t,n){if(1&t&&(A(0,"tr",25)(1,"td",26)(2,"div",27)(3,"div")(4,"small")(5,"b"),J(6,"Provider Response"),M()()(),A(7,"div")(8,"pre",28)(9,"small"),J(10),M()()()()()()),2&t){const e=te().$implicit;I(10),Xt(e.provider_response)}}function Hlt(t,n){if(1&t){const e=Bt();A(0,"tr")(1,"td")(2,"div",19),He("click",function(){const o=st(e).index,s=te();return at(s.purchasesRowsOpen[o]=!s.purchasesRowsOpen[o])}),ye(3,Plt,1,0,"div",20),ye(4,jlt,1,0,"div",21),M(),J(5),M(),A(6,"td"),J(7),M(),A(8,"td"),J(9),M(),A(10,"td"),J(11),M(),A(12,"td"),J(13),M()(),ye(14,Blt,11,1,"tr",22)}if(2&t){const e=n.index,i=n.$implicit,r=te();I(3),N("ngIf",!r.purchasesRowsOpen[e]),I(1),N("ngIf",r.purchasesRowsOpen[e]),I(1),jn(" ",i.product_id," "),I(2),Xt(i.transaction_id),I(2),Xt(r.getStoreText(i.store)),I(2),Xt(i.purchase_time),I(2),Xt(i.create_time),I(1),N("ngIf",r.purchasesRowsOpen[e])}}function Vlt(t,n){1&t&&(A(0,"tr")(1,"td",29),J(2,"No purchases were found."),M()())}let zlt=(()=>{class t{constructor(e,i,r){be(this,"route",void 0),be(this,"router",void 0),be(this,"consoleService",void 0),be(this,"purchases",[]),be(this,"purchasesRowsOpen",[]),be(this,"error",""),be(this,"nextCursor",""),be(this,"prevCursor",""),be(this,"userID",void 0),be(this,"limit",100),this.route=e,this.router=i,this.consoleService=r}ngOnInit(){this.userID=this.route.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(e=>{this.purchases=e[0].validated_purchases,this.nextCursor=e[0].cursor,this.prevCursor=e[0].prev_cursor})}loadData(e){this.consoleService.listPurchases("",this.userID,this.limit,e).subscribe(i=>{this.purchases=i.validated_purchases,this.purchasesRowsOpen=[],this.nextCursor=i.cursor,this.prevCursor=i.prev_cursor},i=>{this.error=i})}getStoreText(e){return this.formatStoreText(Cy[e])}formatStoreText(e){return e.split("_").map(i=>i[0]+i.slice(1).toLowerCase()).join(" ")}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Ui))}),be(t,"\u0275cmp",ln({type:t,selectors:[["app-purchases"]],decls:29,vars:6,consts:[["type","danger",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered","table-hover"],[1,"thead-light"],[2,"width","180px"],["ngFor","",3,"ngForOf"],[4,"ngIf"],["type","danger",3,"dismissible"],["src","/src/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","open-row",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"open-row"],["colspan","7"],[1,"p-2"],[1,"pre-wrap","m-0","p-0"],["colspan","5",1,"text-muted"]],template:function(e,i){1&e&&(ye(0,$lt,4,2,"ngb-alert",0),A(1,"div",1)(2,"div",2),je(3,"div",3),A(4,"div",4)(5,"div",5)(6,"button",6),He("click",function(){return i.loadData("")}),je(7,"img",7),M(),A(8,"button",6),He("click",function(){return i.loadData(i.prevCursor)}),je(9,"img",8),M(),A(10,"button",6),He("click",function(){return i.loadData(i.nextCursor)}),je(11,"img",9),M()()()()(),A(12,"div",10)(13,"table",11)(14,"thead",12)(15,"tr")(16,"th"),J(17,"Product ID"),M(),A(18,"th"),J(19,"Transaction ID"),M(),A(20,"th"),J(21,"Store"),M(),A(22,"th",13),J(23,"Purchase Time"),M(),A(24,"th",13),J(25,"Create Time"),M()()(),A(26,"tbody"),ye(27,Hlt,15,8,"ng-template",14),ye(28,Vlt,3,0,"tr",15),M()()()),2&e&&(N("ngIf",i.error),I(6),N("disabled",0===i.purchases.length),I(2),N("disabled",""===i.prevCursor),I(2),N("disabled",""===i.nextCursor),I(17),N("ngForOf",i.purchases),I(1),N("ngIf",0===i.purchases.length))},dependencies:[ti,Nn,Go]})),t})(),Ult=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.listPurchases("",r,100,"")}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Wlt(t,n){1&t&&(A(0,"span"),J(1,"Filter by type"),M())}function Glt(t,n){if(1&t&&(A(0,"span"),J(1),M()),2&t){const e=te();I(1),Xt(e.activeFilter)}}function qlt(t,n){if(1&t){const e=Bt();A(0,"button",40),He("click",function(){const o=st(e).$implicit;return at(te().activeFilter=o)}),J(1),M()}if(2&t){const e=n.$implicit;I(1),Xt(e)}}function Xlt(t,n){if(1&t&&(A(0,"h6"),J(1),M()),2&t){const e=te();I(1),jn("Showing results for chat room label: ",e.f1.label.value,"")}}const Ylt=function(t){return["/groups",t]};function Klt(t,n){if(1&t&&(A(0,"h6"),J(1,"Showing results for group ID: "),A(2,"a",41),J(3),M()()),2&t){const e=te();I(2),N("routerLink",Lr(2,Ylt,e.route.snapshot.queryParamMap.get("group_id"))),I(1),Xt(e.f2.group_id.value)}}const Yge=function(t){return["/accounts",t]};function Jlt(t,n){if(1&t&&(A(0,"h6"),J(1,"Showing results for user IDs: "),A(2,"a",41),J(3),M(),J(4,", "),A(5,"a",41),J(6),M()()),2&t){const e=te();I(2),N("routerLink",Lr(4,Yge,e.route.snapshot.queryParamMap.get("user_id_one"))),I(1),Xt(e.f3.user_id_one.value),I(2),N("routerLink",Lr(6,Yge,e.route.snapshot.queryParamMap.get("user_id_two"))),I(1),Xt(e.f3.user_id_two.value)}}function Qlt(t,n){if(1&t&&(A(0,"ngb-alert",42),je(1,"img",43),A(2,"h6",44),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("Error when querying messages: ",e.error,"")}}function Zlt(t,n){1&t&&(A(0,"th",45),J(1,"Remove"),M())}function ect(t,n){if(1&t&&(A(0,"tr")(1,"td",46),J(2,"No messages found."),M()()),2&t){const e=te();I(1),Ft("colspan",e.deleteAllowed()?6:5)}}function tct(t,n){1&t&&je(0,"div",55)}function nct(t,n){1&t&&je(0,"div",56)}function ict(t,n){1&t&&je(0,"td")}function rct(t,n){if(1&t){const e=Bt();A(0,"td",57)(1,"button",58),He("click",function(r){st(e);const o=te(),s=o.index,a=o.$implicit;return at(te().deleteMessage(r,s,a))}),J(2,"Delete"),M()()}}function oct(t,n){if(1&t&&(A(0,"tr",59)(1,"td"),J(2),M()()),2&t){const e=te().$implicit,i=te();I(1),Ft("colspan",i.deleteAllowed()?6:5),I(1),jn(" ",e.content," ")}}function sct(t,n){if(1&t){const e=Bt();A(0,"tr")(1,"td"),J(2),M(),A(3,"td",47),He("click",function(){const o=st(e).$implicit;return at(te().viewAccount(o))}),J(4),M(),A(5,"td",48),He("click",function(){const o=st(e).$implicit;return at(te().viewAccount(o))}),J(6),M(),A(7,"td",49)(8,"div",50),He("click",function(){const o=st(e).index,s=te();return at(s.messageStatesOpen[o]=!s.messageStatesOpen[o])}),ye(9,tct,1,0,"div",51),ye(10,nct,1,0,"div",52),M(),J(11),M(),A(12,"td"),J(13),M(),ye(14,ict,1,0,"td",3),ye(15,rct,3,0,"td",53),M(),ye(16,oct,3,2,"tr",54)}if(2&t){const e=n.$implicit,i=n.index,r=te();I(2),Xt(e.code),I(2),Xt(e.sender_id),I(2),Xt(e.username),I(3),N("ngIf",!r.messageStatesOpen[i]),I(1),N("ngIf",r.messageStatesOpen[i]),I(1),jn(" ",e.content," "),I(2),Xt(e.create_time),I(1),N("ngIf",r.deleteAllowed()&&e.sender_id===r.systemUserId),I(1),N("ngIf",r.deleteAllowed()&&e.sender_id!==r.systemUserId),I(1),N("ngIf",r.messageStatesOpen[i])}}function act(t,n){if(1&t&&(A(0,"ngb-alert",60),je(1,"img",43),A(2,"h6",44),J(3,"Failed to delete data."),M(),A(4,"p",61),J(5),M()()),2&t){const e=te();N("dismissible",!1),I(5),Xt(e.deleteError)}}function lct(t,n){if(1&t){const e=Bt();A(0,"ngb-alert",62),He("close",function(){return st(e),at(te().deleteSuccess=!1)}),je(1,"img",63),A(2,"h6",44),J(3),M()()}if(2&t){const e=te();N("dismissible",!0),I(3),$h("",e.total_deleted," messages ",e.total_deleted>0?"successfully":""," deleted.")}}const cct=function(t){return{"is-invalid":t}};function uct(t,n){if(1&t){const e=Bt();A(0,"div",64)(1,"h5",65),J(2,"Delete messages"),M(),A(3,"button",66),He("click",function(){return at(st(e).$implicit.dismiss())}),A(4,"span",67),J(5,"\xd7"),M()()(),A(6,"div",68)(7,"div",69)(8,"form",70)(9,"div",71)(10,"p")(11,"b"),J(12,"Choose how many days to retain: "),M(),je(13,"input",72),M()(),je(14,"input",73),M()()(),A(15,"div",74)(16,"button",75),He("click",function(){return at(st(e).$implicit.dismiss())}),J(17,"Cancel"),M(),A(18,"button",76),He("click",function(){return at(st(e).$implicit.close())}),J(19,"DELETE"),M()()}if(2&t){const e=te();I(8),N("formGroup",e.confirmDeleteForm),I(6),N("ngClass",Lr(3,cct,e.f.delete.touched&&e.f.delete.invalid)),I(4),N("disabled",e.f.delete.invalid)}}function hct(t,n){if(1&t){const e=Bt();A(0,"button",76),He("click",function(){st(e);const r=te(),o=Io(68);return at(r.openDeleteDataModal(o))}),J(1,"Delete messages"),M()}2&t&&N("disabled",te().deleting)}let dct=(()=>{class t{constructor(e,i,r,o,s,a){be(this,"route",void 0),be(this,"router",void 0),be(this,"consoleService",void 0),be(this,"authService",void 0),be(this,"formBuilder",void 0),be(this,"modalService",void 0),be(this,"systemUserId","00000000-0000-0000-0000-000000000000"),be(this,"error",""),be(this,"messages",[]),be(this,"nextCursor",""),be(this,"searchForm1",void 0),be(this,"searchForm2",void 0),be(this,"searchForm3",void 0),be(this,"type",void 0),be(this,"confirmDeleteForm",void 0),be(this,"deleteError",""),be(this,"deleteSuccess",!1),be(this,"deleting",!1),be(this,"total_deleted",0),be(this,"activeFilter",""),be(this,"filters",["Chat Room","Group Chat","Direct Chat"]),be(this,"messageStatesOpen",[]),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s,this.modalService=a,this.searchForm1=this.formBuilder.group({label:""}),this.searchForm2=this.formBuilder.group({group_id:""}),this.searchForm3=this.formBuilder.group({user_id_one:"",user_id_two:""}),this.confirmDeleteForm=this.formBuilder.group({delete:["",Wo.compose([Wo.required,Wo.pattern("DELETE")])],days:30})}ngOnInit(){const e=this.route.snapshot.queryParamMap;this.f1.label.setValue(e.get("label")),this.f2.group_id.setValue(e.get("group_id")),this.f3.user_id_one.setValue(e.get("user_id_one")),this.f3.user_id_two.setValue(e.get("user_id_two")),this.nextCursor=e.get("cursor");let i=e.get("type");this.type=Number(i),this.route.data.subscribe(r=>{r&&(r[0]&&(this.error="",this.messageStatesOpen=[],this.messages.length=0,this.messages.push(...r[0].messages),this.nextCursor=r[0].next_cursor),r.error&&(this.error=r.error))},r=>{this.error=r}),null===i?(this.type=2,this.activeFilter=this.filters[0]):2==this.type||3==this.type||4==this.type?this.activeFilter=this.filters[this.type-2]:this.error="Invalid type."}search(e){let i="";switch(e){case 0:i="";break;case 1:i=this.nextCursor}this.updateMessages(this.type,this.f1.label.value,this.f2.group_id.value,this.f3.user_id_one.value,this.f3.user_id_two.value,i)}updateMessages(e,i,r,o,s,a){switch(e){case 2:this.consoleService.listChannelMessages("",e.toString(),i,null,null,null,encodeURIComponent(a)).subscribe(l=>this.postData(l,a),l=>{this.error=l});break;case 3:this.consoleService.listChannelMessages("",e.toString(),null,r,null,null,encodeURIComponent(a)).subscribe(l=>this.postData(l,a),l=>{this.error=l});break;case 4:this.consoleService.listChannelMessages("",e.toString(),null,null,o,s,encodeURIComponent(a)).subscribe(l=>this.postData(l,a),l=>{this.error=l})}}postData(e,i){let r;switch(this.error="",this.messageStatesOpen=[],this.messages.length=0,this.messages.push(...e.messages),this.nextCursor=e.next_cursor,this.type){case 2:r={type:this.type,label:this.f1.label.value,cursor:i};break;case 3:r={type:this.type,group_id:this.f2.group_id.value,cursor:i};break;case 4:r={type:this.type,user_id_one:this.f3.user_id_one.value,user_id_two:this.f3.user_id_two.value,cursor:i}}this.router.navigate([],{relativeTo:this.route,queryParams:r})}deleteMessage(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteChannelMessages("",null,[r.message_id]).subscribe(()=>{this.error="",this.messageStatesOpen.splice(i,1),this.messages.splice(i,1)},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}deleteMessagesAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}get f1(){return this.searchForm1.controls}get f2(){return this.searchForm2.controls}get f3(){return this.searchForm3.controls}get f(){return this.confirmDeleteForm.controls}openDeleteDataModal(e){this.modalService.open(e,{centered:!0}).result.then(()=>{this.deleteData(),this.confirmDeleteForm.controls.delete.setValue("")},()=>{this.confirmDeleteForm.controls.delete.setValue("")})}deleteData(){this.deleteError="",this.deleting=!0;let e=new Date;e.setDate(e.getDate()-this.f.days.value),this.consoleService.deleteChannelMessages("",e.toISOString(),null).subscribe(i=>{this.total_deleted=Number(i.total),this.deleting=!1,this.deleteError="",this.deleteSuccess=!0;const r=this.route.snapshot.queryParamMap;let o=r.get("type"),s=r.get("label");s||(s="0");let a=r.get("group_id"),l=r.get("user_id_one"),c=r.get("user_id_two"),u=r.get("cursor");u||(u=""),o&&this.updateMessages(Number(o),s,a,l,c,u)},i=>{this.deleting=!1,this.deleteError=i})}viewAccount(e){this.router.navigate(["/accounts",e.sender_id],{relativeTo:this.route})}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Ui),Ae(ds),Ae(Pl),Ae(B3))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],decls:70,vars:21,consts:[[1,"pb-1"],["ngbDropdown","",1,"btn-group","mb-1"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary"],[4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"hidden","formGroup"],[1,"input-group"],["type","text","formControlName","label","placeholder","Search by chat room label",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","submit",1,"btn","btn-primary","dropdown-radius-left",3,"click"],["type","text","formControlName","group_id","placeholder","Search by group ID",1,"form-control","border-right-0"],["type","text","formControlName","user_id_one","placeholder","Search by user ID 1",1,"form-control","border-right-0"],[1,"input-group-text",3,"click"],["src","/static/svg/purple-cog-1.svg","alt","","width","20","height","",1,"mr-1"],["type","text","formControlName","user_id_two","placeholder","Search by user ID 2",1,"form-control","border-right-0"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered",2,"table-layout","fixed"],[1,"thead-light"],[2,"width","60px"],[2,"width","320px"],[2,"width","150px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],["ngFor","",3,"ngForOf"],["type","danger",3,"dismissible",4,"ngIf"],["type","success",3,"dismissible","close",4,"ngIf"],["role","alert",1,"d-flex","justify-content-between","align-items-center"],["confirmDelete",""],["type","button","class","btn btn-danger",3,"disabled","click",4,"ngIf"],["type","button","ngbDropdownItem","",3,"click"],[2,"width","100%",3,"routerLink"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],[1,"text-muted"],[3,"click"],[2,"text-overflow","ellipsis","overflow","hidden",3,"click"],[2,"white-space","nowrap","text-overflow","ellipsis","overflow","hidden"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","text-center",4,"ngIf"],["class","open-row",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],[1,"open-row"],["type","danger",3,"dismissible"],[1,"mb-0","pl-4"],["type","success",3,"dismissible","close"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-describedby","modal-title",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"d-flex","flex-column","justify-content-center"],["autocomplete","off",3,"formGroup"],[1,"mt-2"],["type","number","value","30","min","0","formControlName","days",2,"width","80px"],["type","text","id","delete-confirm","placeholder","Type 'DELETE' to confirm","formControlName","delete",1,"form-control",3,"ngClass"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-danger",3,"disabled","click"]],template:function(e,i){1&e&&(A(0,"h2",0),J(1,"Chat Messages"),M(),A(2,"div",1)(3,"button",2),ye(4,Wlt,2,0,"span",3),ye(5,Glt,2,1,"span",3),M(),A(6,"div",4),ye(7,qlt,2,1,"button",5),M()(),A(8,"div",6)(9,"div",7)(10,"div",8)(11,"form",9)(12,"div",10),je(13,"input",11),A(14,"div",12)(15,"div",13)(16,"button",14),He("click",function(){return i.type=2,i.search(0)}),J(17,"Search"),M()()()()(),A(18,"form",9)(19,"div",10),je(20,"input",15),A(21,"div",12)(22,"div",13)(23,"button",14),He("click",function(){return i.type=3,i.search(0)}),J(24,"Search "),M()()()()(),A(25,"form",9)(26,"div",10),je(27,"input",16),A(28,"div",12)(29,"span",17),He("click",function(){return i.f3.user_id_one.setValue(i.systemUserId)}),je(30,"img",18),M()(),je(31,"input",19),A(32,"div",12)(33,"div",13)(34,"button",14),He("click",function(){return i.type=4,i.search(0)}),J(35,"Search "),M()()()()()(),A(36,"div",20)(37,"div",21)(38,"button",22),He("click",function(){return i.search(0)}),je(39,"img",23),M(),A(40,"button",22),He("click",function(){return i.search(1)}),je(41,"img",24),M()()()()(),ye(42,Xlt,2,1,"h6",3),ye(43,Klt,4,4,"h6",3),ye(44,Jlt,7,8,"h6",3),ye(45,Qlt,4,2,"ngb-alert",25),A(46,"div",26)(47,"table",27)(48,"thead",28)(49,"tr")(50,"th",29),J(51,"Code"),M(),A(52,"th",30),J(53,"Sender ID"),M(),A(54,"th",31),J(55,"Username"),M(),A(56,"th"),J(57,"Content"),M(),A(58,"th",32),J(59,"Create Time"),M(),ye(60,Zlt,2,0,"th",33),M()(),A(61,"tbody"),ye(62,ect,3,1,"tr",3),ye(63,sct,17,10,"ng-template",34),M()()(),ye(64,act,6,2,"ngb-alert",35),ye(65,lct,4,3,"ngb-alert",36),A(66,"div",37),ye(67,uct,20,5,"ng-template",null,38,go),ye(69,hct,2,1,"button",39),M()),2&e&&(I(4),N("ngIf",!i.activeFilter||""===i.activeFilter),I(1),N("ngIf",i.activeFilter&&""!==i.activeFilter),I(2),N("ngForOf",i.filters),I(4),N("hidden","Chat Room"!==i.activeFilter)("formGroup",i.searchForm1),I(7),N("hidden","Group Chat"!==i.activeFilter)("formGroup",i.searchForm2),I(7),N("hidden","Direct Chat"!==i.activeFilter)("formGroup",i.searchForm3),I(13),N("disabled",0===i.messages.length),I(2),N("disabled",""===i.nextCursor||null===i.nextCursor),I(2),N("ngIf",0!=i.messages.length&&""===i.error&&2==i.type),I(1),N("ngIf",0!=i.messages.length&&""===i.error&&3==i.type),I(1),N("ngIf",0!=i.messages.length&&""===i.error&&4==i.type),I(1),N("ngIf",i.error),I(15),N("ngIf",i.deleteAllowed()),I(2),N("ngIf",0===i.messages.length),I(1),N("ngForOf",i.messages),I(1),N("ngIf",i.deleteError),I(1),N("ngIf",i.deleteSuccess),I(4),N("ngIf",i.deleteMessagesAllowed()))},dependencies:[Ru,Pd,ti,Nn,Go,Bu,rg,Rf,Nf,bl,qa,a3,vl,yl,d3,Ea,Ya],styles:[".input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}.dropdown-radius-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.open-row[_ngcontent-%COMP%]{background:#FAFAFC}"]})),t})(),fct=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){let r=Number(e.queryParamMap.get("type"));switch(r){case 2:return this.consoleService.listChannelMessages("",r.toString(),e.queryParamMap.get("label"),null,null,null,encodeURIComponent(e.queryParamMap.get("cursor"))).pipe(tc(o=>(e.data={...e.data,error:o},oi(null))));case 3:return this.consoleService.listChannelMessages("",r.toString(),null,e.queryParamMap.get("group_id"),null,null,encodeURIComponent(e.queryParamMap.get("cursor"))).pipe(tc(o=>(e.data={...e.data,error:o},oi(null))));case 4:return this.consoleService.listChannelMessages("",r.toString(),null,null,e.queryParamMap.get("user_id_one"),e.queryParamMap.get("user_id_two"),encodeURIComponent(e.queryParamMap.get("cursor"))).pipe(tc(o=>(e.data={...e.data,error:o},oi(null))));default:return oi(null)}}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function pct(t,n){if(1&t&&(A(0,"ngb-alert",16),je(1,"img",17),A(2,"h6",18),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("Error while processing request: ",e.error,"")}}function gct(t,n){if(1&t&&(A(0,"tr")(1,"td"),J(2),M(),A(3,"td"),J(4),M(),A(5,"td"),J(6),M(),A(7,"td"),J(8),M(),A(9,"td"),J(10),M(),A(11,"td"),J(12),M()()),2&t){const e=n.$implicit,i=te();I(2),Xt(e.product_id),I(2),Xt(e.original_transaction_id),I(2),Xt(i.getStoreText(e.store)),I(2),Xt(e.purchase_time),I(2),Xt(e.expiry_time),I(2),Xt(e.create_time)}}function mct(t,n){1&t&&(A(0,"tr")(1,"td",19),J(2,"No purchases were found."),M()())}const vct=[{path:"",component:yLe,canActivate:[tMe],canActivateChild:[bLe],children:[{path:"",redirectTo:"status",pathMatch:"full"},{path:"status",component:rBe,resolve:[oBe]},{path:"config",component:OBe,resolve:[NBe]},{path:"users",component:BBe,resolve:[HBe]},{path:"modules",component:t7e,resolve:[n7e]},{path:"storage",component:h7e,resolve:[d7e,f7e],pathMatch:"full"},{path:"storage/:collection/:key/:user_id",component:Sot,resolve:[kot],pathMatch:"full"},{path:"leaderboards",component:Not,resolve:[Rot]},{path:"leaderboards/:id",component:plt,resolve:[glt],children:[{path:"",redirectTo:"details",pathMatch:"full"},{path:"details",component:blt,resolve:[]},{path:"records",component:Alt,resolve:[Elt]}]},{path:"matches",component:Uat,resolve:[Wat,Gat]},{path:"groups",component:Zat,resolve:[elt]},{path:"groups/:id",component:alt,resolve:[llt],children:[{path:"",redirectTo:"details",pathMatch:"full"},{path:"details",component:rat,resolve:[]},{path:"members",component:Sat,resolve:[kat],runGuardsAndResolvers:"always"}]},{path:"accounts",component:zot,resolve:[Uot]},{path:"accounts/:id",component:ist,resolve:[rst],children:[{path:"",redirectTo:"profile",pathMatch:"full"},{path:"profile",component:ust,resolve:[]},{path:"authentication",component:gst,resolve:[]},{path:"wallet",component:Tst,resolve:[Ast]},{path:"friends",component:Pst,resolve:[jst]},{path:"groups",component:Kst,resolve:[Jst]},{path:"purchases",component:zlt,resolve:[Ult]},{path:"subscriptions",component:(()=>{class t{constructor(e,i,r){be(this,"route",void 0),be(this,"router",void 0),be(this,"consoleService",void 0),be(this,"subscriptions",[]),be(this,"error",""),be(this,"nextCursor",""),be(this,"prevCursor",""),be(this,"userID",void 0),be(this,"limit",100),this.route=e,this.router=i,this.consoleService=r}ngOnInit(){this.userID=this.route.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(e=>{this.subscriptions=e[0].validated_subscriptions,this.nextCursor=e[0].cursor,this.prevCursor=e[0].prev_cursor})}loadData(e){this.consoleService.listSubscriptions("",this.userID,this.limit,e).subscribe(i=>{this.subscriptions=i.validated_subscriptions,this.nextCursor=i.cursor,this.prevCursor=i.prev_cursor},i=>{this.error=i})}getStoreText(e){return this.formatStoreText(Cy[e])}formatStoreText(e){return e.split("_").map(i=>i[0]+i.slice(1).toLowerCase()).join(" ")}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Ui))}),be(t,"\u0275cmp",ln({type:t,selectors:[["app-subscriptions"]],decls:31,vars:6,consts:[["type","danger",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered","table-hover"],[1,"thead-light"],[2,"width","180px"],["ngFor","",3,"ngForOf"],[4,"ngIf"],["type","danger",3,"dismissible"],["src","/src/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["colspan","6",1,"text-muted"]],template:function(e,i){1&e&&(ye(0,pct,4,2,"ngb-alert",0),A(1,"div",1)(2,"div",2),je(3,"div",3),A(4,"div",4)(5,"div",5)(6,"button",6),He("click",function(){return i.loadData("")}),je(7,"img",7),M(),A(8,"button",6),He("click",function(){return i.loadData(i.prevCursor)}),je(9,"img",8),M(),A(10,"button",6),He("click",function(){return i.loadData(i.nextCursor)}),je(11,"img",9),M()()()()(),A(12,"div",10)(13,"table",11)(14,"thead",12)(15,"tr")(16,"th"),J(17,"Product ID"),M(),A(18,"th"),J(19,"Original Transaction ID"),M(),A(20,"th"),J(21,"Store"),M(),A(22,"th",13),J(23,"Purchase Time"),M(),A(24,"th",13),J(25,"Expiry Time"),M(),A(26,"th",13),J(27,"Create Time"),M()()(),A(28,"tbody"),ye(29,gct,13,6,"ng-template",14),ye(30,mct,3,0,"tr",15),M()()()),2&e&&(N("ngIf",i.error),I(6),N("disabled",0===i.subscriptions.length),I(2),N("disabled",""===i.prevCursor),I(2),N("disabled",""===i.nextCursor),I(19),N("ngForOf",i.subscriptions),I(1),N("ngIf",0===i.subscriptions.length))},dependencies:[ti,Nn,Go]})),t})(),resolve:[(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.listSubscriptions("",r,100,"")}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})()]}]},{path:"apiexplorer",component:Nlt,resolve:[Rlt]},{path:"chat",component:dct,resolve:[fct]}]},{path:"login",component:ZEe,canActivate:[eMe]},{path:"**",redirectTo:""}];let yct=(()=>{class t{}return be(t,"\u0275fac",function(e){return new(e||t)}),be(t,"\u0275mod",Ji({type:t})),be(t,"\u0275inj",Xi({imports:[Y9.forRoot(vct,{useHash:!0}),Y9]})),t})(),bct=(()=>{class t{}return be(t,"\u0275fac",function(e){return new(e||t)}),be(t,"\u0275cmp",ln({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(e,i){1&e&&je(0,"router-outlet")},dependencies:[Kp]})),t})();new class kct extends Vh{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++r0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=requestAnimationFrame(()=>n.flush(null))))}recycleAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length&&(cancelAnimationFrame(e),n.scheduled=void 0)}});let Tct=1;const Act=Promise.resolve(),qD={};function Kge(t){return t in qD&&(delete qD[t],!0)}const Jge={setImmediate(t){const n=Tct++;return qD[n]=!0,Act.then(()=>Kge(n)&&t()),n},clearImmediate(t){Kge(t)}};new class Mct extends Vh{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++r0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=Jge.setImmediate(n.flush.bind(n,null))))}recycleAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length&&(Jge.clearImmediate(e),n.scheduled=void 0)}});RegExp(/[&<>"']/g.source);const js={Tab:9,Enter:13,Esc:27,Space:32,ArrowUp:38,ArrowDown:40,Backspace:8};js[js.Tab]="Tab",js[js.Enter]="Enter",js[js.Esc]="Esc",js[js.Space]="Space",js[js.ArrowUp]="ArrowUp",js[js.ArrowDown]="ArrowDown",js[js.Backspace]="Backspace";const ime=new hi("ng-select-selection-model");class Rut{constructor(){this._selected=[]}get value(){return this._selected}select(n,e,i){if(n.selected=!0,(!n.children||!e&&i)&&this._selected.push(n),e)if(n.parent){const r=n.parent.children.length,o=n.parent.children.filter(s=>s.selected).length;n.parent.selected=r===o}else n.children&&(this._setChildrenSelectedState(n.children,!0),this._removeChildren(n),this._selected=i&&this._activeChildren(n)?[...this._selected.filter(r=>r.parent!==n),n]:[...this._selected,...n.children.filter(r=>!r.disabled)])}unselect(n,e){if(this._selected=this._selected.filter(i=>i!==n),n.selected=!1,e)if(n.parent&&n.parent.selected){const i=n.parent.children;this._removeParent(n.parent),this._removeChildren(n.parent),this._selected.push(...i.filter(r=>r!==n&&!r.disabled)),n.parent.selected=!1}else n.children&&(this._setChildrenSelectedState(n.children,!1),this._removeChildren(n))}clear(n){this._selected=n?this._selected.filter(e=>e.disabled):[]}_setChildrenSelectedState(n,e){for(const i of n)i.disabled||(i.selected=e)}_removeChildren(n){this._selected=[...this._selected.filter(e=>e.parent!==n),...n.children.filter(e=>e.parent===n&&e.disabled&&e.selected)]}_removeParent(n){this._selected=this._selected.filter(e=>e!==n)}_activeChildren(n){return n.children.every(e=>!e.disabled||e.selected)}}const $ut=function Nut(){return new Rut};let Put=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({providers:[{provide:ime,useValue:$ut}],imports:[ia]}),t})(),jut=(()=>{class t{constructor(e){be(this,"authenticationService",void 0),this.authenticationService=e}intercept(e,i){const r=this.authenticationService.currentSessionValue;return r&&r.token&&(e=e.clone({setHeaders:{Authorization:`Bearer ${r.token}`}})),i.handle(e)}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(ds))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac})),t})(),But=(()=>{class t{constructor(e,i){be(this,"authenticationService",void 0),be(this,"router",void 0),this.authenticationService=e,this.router=i}intercept(e,i){return i.handle(e).pipe(tc(r=>(401===r.status?this.authenticationService.logout().subscribe({next:()=>{e.url.includes("/v3/auth")||this.router.navigate(["/login"],{queryParams:{next:this.router.routerState.snapshot.url}})}}):r.status>=500&&console.log(`${r.status}: + ${r.error.message||r.statusText}`),qp(r.error.message||r.statusText))))}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(ds),Et(Or))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac})),t})(),Hut=(()=>{class t{}return be(t,"\u0275fac",function(e){return new(e||t)}),be(t,"\u0275mod",Ji({type:t,bootstrap:[bct]})),be(t,"\u0275inj",Xi({providers:[KEe,Mz,{provide:w3,useValue:{host:document.location.origin,timeout:15e3}},{provide:b3,useClass:jut,multi:!0},{provide:b3,useClass:But,multi:!0}],imports:[pBe,yct,WE,kke,qEe,cLe,$6e,kEe.forRoot({apiKey:"",debug:!1,loadOnInitialization:!1}),Dke,xEe,QH,Put]})),t})();mSe().bootstrapModule(Hut).then(t=>{window.ngRef&&window.ngRef.destroy(),window.ngRef=t}).catch(t=>console.error(t))},682:(fn,Gn,Ye)=>{fn=Ye.nmd(fn),function(){var ee=function(){return this}();!ee&&typeof window<"u"&&(ee=window);var it=function(v,g,_){"string"==typeof v?(2==arguments.length&&(_=g),it.modules[v]||(it.payloads[v]=_,it.modules[v]=null)):it.original?it.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace())};it.modules={},it.payloads={};var he=function(v,g,_){if("string"==typeof g){var y=D(v,g);if(null!=y)return _&&_(),y}else if("[object Array]"===Object.prototype.toString.call(g)){for(var b=[],x=0,T=g.length;x=0?parseFloat((R.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((R.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),ee.isOldIE=ee.isIE&&ee.isIE<9,ee.isGecko=ee.isMozilla=R.match(/ Gecko\/\d+/),ee.isOpera="object"==typeof opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),ee.isWebKit=parseFloat(R.split("WebKit/")[1])||void 0,ee.isChrome=parseFloat(R.split(" Chrome/")[1])||void 0,ee.isEdge=parseFloat(R.split(" Edge/")[1])||void 0,ee.isAIR=R.indexOf("AdobeAIR")>=0,ee.isAndroid=R.indexOf("Android")>=0,ee.isChromeOS=R.indexOf(" CrOS ")>=0,ee.isIOS=/iPad|iPhone|iPod/.test(R)&&!window.MSStream,ee.isIOS&&(ee.isMac=!0),ee.isMobile=ee.isIOS||ee.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(ve,ee,it){"use strict";var he=ve("./useragent");if(ee.buildDom=function D(S,v,g){if("string"==typeof S&&S){var _=document.createTextNode(S);return v&&v.appendChild(_),_}if(!Array.isArray(S))return S&&S.appendChild&&v&&v.appendChild(S),S;if("string"!=typeof S[0]||!S[0]){for(var y=[],b=0;b"u"&&(ee.importCssString=function(){}),ee.computedStyle=function(D,S){return window.getComputedStyle(D,"")||{}},ee.setStyle=function(D,S,v){D[S]!==v&&(D[S]=v)},ee.HAS_CSS_ANIMATION=!1,ee.HAS_CSS_TRANSFORMS=!1,ee.HI_DPI=!he.isWin||typeof window<"u"&&window.devicePixelRatio>=1.5,typeof document<"u"){var R=document.createElement("div");ee.HI_DPI&&void 0!==R.style.transform&&(ee.HAS_CSS_TRANSFORMS=!0),!he.isEdge&&typeof R.style.animationName<"u"&&(ee.HAS_CSS_ANIMATION=!0),R=null}ee.translate=ee.HAS_CSS_TRANSFORMS?function(D,S,v){D.style.transform="translate("+Math.round(S)+"px, "+Math.round(v)+"px)"}:function(D,S,v){D.style.top=Math.round(v)+"px",D.style.left=Math.round(S)+"px"}}),ace.define("ace/lib/oop",["require","exports","module"],function(ve,ee,it){"use strict";ee.inherits=function(he,W){he.super_=W,he.prototype=Object.create(W.prototype,{constructor:{value:he,enumerable:!1,writable:!0,configurable:!0}})},ee.mixin=function(he,W){for(var R in W)he[R]=W[R];return he},ee.implement=function(he,W){ee.mixin(he,W)}}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(ve,ee,it){"use strict";var he=ve("./oop"),W=function(){var D,S,R={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};for(S in R.FUNCTION_KEYS)D=R.FUNCTION_KEYS[S].toLowerCase(),R[D]=parseInt(S,10);for(S in R.PRINTABLE_KEYS)D=R.PRINTABLE_KEYS[S].toLowerCase(),R[D]=parseInt(S,10);return he.mixin(R,R.MODIFIER_KEYS),he.mixin(R,R.PRINTABLE_KEYS),he.mixin(R,R.FUNCTION_KEYS),R.enter=R.return,R.escape=R.esc,R.del=R.delete,R[173]="-",function(){for(var v=["cmd","ctrl","alt","shift"],g=Math.pow(2,v.length);g--;)R.KEY_MODS[g]=v.filter(function(_){return g&R.KEY_MODS[_]}).join("-")+"-"}(),R.KEY_MODS[0]="",R.KEY_MODS[-1]="input-",R}();he.mixin(ee,W),ee.keyCodeToString=function(R){var D=W[R];return"string"!=typeof D&&(D=String.fromCharCode(R)),D.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(ve,ee,it){"use strict";var S,he=ve("./keys"),W=ve("./useragent"),R=null,D=0;function g(){return null==S&&function v(){S=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){S={passive:!1}}})}catch{}}(),S}function _(K,q,O){this.elem=K,this.type=q,this.callback=O}_.prototype.destroy=function(){b(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var y=ee.addListener=function(K,q,O,U){K.addEventListener(q,O,g()),U&&U.$toDestroy.push(new _(K,q,O))},b=ee.removeListener=function(K,q,O){K.removeEventListener(q,O,g())};ee.stopEvent=function(K){return ee.stopPropagation(K),ee.preventDefault(K),!1},ee.stopPropagation=function(K){K.stopPropagation&&K.stopPropagation()},ee.preventDefault=function(K){K.preventDefault&&K.preventDefault()},ee.getButton=function(K){return"dblclick"==K.type?0:"contextmenu"==K.type||W.isMac&&K.ctrlKey&&!K.altKey&&!K.shiftKey?2:K.button},ee.capture=function(K,q,O){var U=K&&K.ownerDocument||document;function P($){q&&q($),O&&O($),b(U,"mousemove",q),b(U,"mouseup",P),b(U,"dragstart",P)}return y(U,"mousemove",q),y(U,"mouseup",P),y(U,"dragstart",P),P},ee.addMouseWheelListener=function(K,q,O){"onmousewheel"in K?y(K,"mousewheel",function(U){void 0!==U.wheelDeltaX?(U.wheelX=-U.wheelDeltaX/8,U.wheelY=-U.wheelDeltaY/8):(U.wheelX=0,U.wheelY=-U.wheelDelta/8),q(U)},O):"onwheel"in K?y(K,"wheel",function(U){switch(U.deltaMode){case U.DOM_DELTA_PIXEL:U.wheelX=.35*U.deltaX||0,U.wheelY=.35*U.deltaY||0;break;case U.DOM_DELTA_LINE:case U.DOM_DELTA_PAGE:U.wheelX=5*(U.deltaX||0),U.wheelY=5*(U.deltaY||0)}q(U)},O):y(K,"DOMMouseScroll",function(U){U.axis&&U.axis==U.HORIZONTAL_AXIS?(U.wheelX=5*(U.detail||0),U.wheelY=0):(U.wheelX=0,U.wheelY=5*(U.detail||0)),q(U)},O)},ee.addMultiMouseDownListener=function(K,q,O,U,P){var V,F,X,$=0,Ce={2:"dblclick",3:"tripleclick",4:"quadclick"};function Me(Re){if(0!==ee.getButton(Re)?$=0:Re.detail>1?++$>4&&($=1):$=1,W.isIE){var ze=Math.abs(Re.clientX-V)>5||Math.abs(Re.clientY-F)>5;(!X||ze)&&($=1),X&&clearTimeout(X),X=setTimeout(function(){X=null},q[$-1]||600),1==$&&(V=Re.clientX,F=Re.clientY)}if(Re._clicks=$,O[U]("mousedown",Re),$>4)$=0;else if($>1)return O[U](Ce[$],Re)}Array.isArray(K)||(K=[K]),K.forEach(function(Re){y(Re,"mousedown",Me,P)})};var x=function(K){return 0|(K.ctrlKey?1:0)|(K.altKey?2:0)|(K.shiftKey?4:0)|(K.metaKey?8:0)};function T(K,q,O){var U=x(q);if(!W.isMac&&R){if(q.getModifierState&&(q.getModifierState("OS")||q.getModifierState("Win"))&&(U|=8),R.altGr){if(3==(3&U))return;R.altGr=0}if(18===O||17===O){var P="location"in q?q.location:q.keyLocation;17===O&&1===P?1==R[O]&&(D=q.timeStamp):18===O&&3===U&&2===P&&q.timeStamp-D<50&&(R.altGr=!0)}}if(O in he.MODIFIER_KEYS&&(O=-1),U||13!==O||3!==(P="location"in q?q.location:q.keyLocation)||(K(q,U,-O),!q.defaultPrevented)){if(W.isChromeOS&&8&U){if(K(q,U,O),q.defaultPrevented)return;U&=-9}return!!(U||O in he.FUNCTION_KEYS||O in he.PRINTABLE_KEYS)&&K(q,U,O)}}function j(){R=Object.create(null)}if(ee.getModifierString=function(K){return he.KEY_MODS[x(K)]},ee.addCommandKeyListener=function(K,q,O){if(W.isOldGecko||W.isOpera&&!("KeyboardEvent"in window)){var U=null;y(K,"keydown",function($){U=$.keyCode},O),y(K,"keypress",function($){return T(q,$,U)},O)}else{var P=null;y(K,"keydown",function($){R[$.keyCode]=(R[$.keyCode]||0)+1;var V=T(q,$,$.keyCode);return P=$.defaultPrevented,V},O),y(K,"keypress",function($){P&&($.ctrlKey||$.altKey||$.shiftKey||$.metaKey)&&(ee.stopEvent($),P=null)},O),y(K,"keyup",function($){R[$.keyCode]=null},O),R||(j(),y(window,"focus",j))}},"object"==typeof window&&window.postMessage&&!W.isOldIE){var Y=1;ee.nextTick=function(K,q){q=q||window;var O="zero-timeout-message-"+Y++,U=function(P){P.data==O&&(ee.stopPropagation(P),b(q,"message",U),K())};y(q,"message",U),q.postMessage(O,"*")}}ee.$idleBlocked=!1,ee.onIdle=function(K,q){return setTimeout(function O(){ee.$idleBlocked?setTimeout(O,100):K()},q)},ee.$idleBlockId=null,ee.blockIdle=function(K){ee.$idleBlockId&&clearTimeout(ee.$idleBlockId),ee.$idleBlocked=!0,ee.$idleBlockId=setTimeout(function(){ee.$idleBlocked=!1},K||100)},ee.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),ee.nextFrame=ee.nextFrame?ee.nextFrame.bind(window):function(K){setTimeout(K,17)}}),ace.define("ace/range",["require","exports","module"],function(ve,ee,it){"use strict";var W=function(R,D,S,v){this.start={row:R,column:D},this.end={row:S,column:v}};(function(){this.isEqual=function(R){return this.start.row===R.start.row&&this.end.row===R.end.row&&this.start.column===R.start.column&&this.end.column===R.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(R,D){return 0==this.compare(R,D)},this.compareRange=function(R){var D,S=R.end,v=R.start;return 1==(D=this.compare(S.row,S.column))?1==(D=this.compare(v.row,v.column))?2:0==D?1:0:-1==D?-2:-1==(D=this.compare(v.row,v.column))?-1:1==D?42:0},this.comparePoint=function(R){return this.compare(R.row,R.column)},this.containsRange=function(R){return 0==this.comparePoint(R.start)&&0==this.comparePoint(R.end)},this.intersects=function(R){var D=this.compareRange(R);return-1==D||0==D||1==D},this.isEnd=function(R,D){return this.end.row==R&&this.end.column==D},this.isStart=function(R,D){return this.start.row==R&&this.start.column==D},this.setStart=function(R,D){"object"==typeof R?(this.start.column=R.column,this.start.row=R.row):(this.start.row=R,this.start.column=D)},this.setEnd=function(R,D){"object"==typeof R?(this.end.column=R.column,this.end.row=R.row):(this.end.row=R,this.end.column=D)},this.inside=function(R,D){return 0==this.compare(R,D)&&!(this.isEnd(R,D)||this.isStart(R,D))},this.insideStart=function(R,D){return 0==this.compare(R,D)&&!this.isEnd(R,D)},this.insideEnd=function(R,D){return 0==this.compare(R,D)&&!this.isStart(R,D)},this.compare=function(R,D){return this.isMultiLine()||R!==this.start.row?Rthis.end.row?1:this.start.row===R?D>=this.start.column?0:-1:this.end.row===R?D<=this.end.column?0:1:0:Dthis.end.column?1:0},this.compareStart=function(R,D){return this.start.row==R&&this.start.column==D?-1:this.compare(R,D)},this.compareEnd=function(R,D){return this.end.row==R&&this.end.column==D?1:this.compare(R,D)},this.compareInside=function(R,D){return this.end.row==R&&this.end.column==D?1:this.start.row==R&&this.start.column==D?-1:this.compare(R,D)},this.clipRows=function(R,D){if(this.end.row>D)var S={row:D+1,column:0};else this.end.rowD)var v={row:D+1,column:0};else this.start.row0;)1&D&&(S+=R),(D>>=1)&&(R+=R);return S};var he=/^\s\s*/,W=/\s\s*$/;ee.stringTrimLeft=function(R){return R.replace(he,"")},ee.stringTrimRight=function(R){return R.replace(W,"")},ee.copyObject=function(R){var D={};for(var S in R)D[S]=R[S];return D},ee.copyArray=function(R){for(var D=[],S=0,v=R.length;SDate.now()-50)||(he=!1)},cancel:function(){he=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(ve,ee,it){"use strict";var he=ve("../lib/event"),W=ve("../lib/useragent"),R=ve("../lib/dom"),D=ve("../lib/lang"),S=ve("../clipboard"),v=W.isChrome<18,g=W.isIE,_=W.isChrome>63,y=400,b=ve("../lib/keys"),x=b.KEY_MODS,T=W.isIOS,j=T?/\s/:/\n/,Y=W.isMobile;ee.TextInput=function(q,O){var U=R.createElement("textarea");U.className="ace_text-input",U.setAttribute("wrap","off"),U.setAttribute("autocorrect","off"),U.setAttribute("autocapitalize","off"),U.setAttribute("spellcheck",!1),U.style.opacity="0",q.insertBefore(U,q.firstChild);var P=!1,$=!1,V=!1,F=!1,X="";Y||(U.style.fontSize="1px");var Ce=!1,Me=!1,Re="",ze=0,Pe=0,Tt=0;try{var St=document.activeElement===U}catch{}he.addListener(U,"blur",function(Le){Me||(O.onBlur(Le),St=!1)},O),he.addListener(U,"focus",function(Le){if(!Me){if(St=!0,W.isEdge)try{if(!document.hasFocus())return}catch{}O.onFocus(Le),W.isEdge?setTimeout(ht):ht()}},O),this.$focusScroll=!1,this.focus=function(){if(X||_||"browser"==this.$focusScroll)return U.focus({preventScroll:!0});var Le=U.style.top;U.style.position="fixed",U.style.top="0px";try{var et=0!=U.getBoundingClientRect().top}catch{return}var Ot=[];if(et)for(var Jt=U.parentElement;Jt&&1==Jt.nodeType;)Ot.push(Jt),Jt.setAttribute("ace_nocontext",!0),Jt=!Jt.parentElement&&Jt.getRootNode?Jt.getRootNode().host:Jt.parentElement;U.focus({preventScroll:!0}),et&&Ot.forEach(function(si){si.removeAttribute("ace_nocontext")}),setTimeout(function(){U.style.position="","0px"==U.style.top&&(U.style.top=Le)},0)},this.blur=function(){U.blur()},this.isFocused=function(){return St},O.on("beforeEndOperation",function(){var Le=O.curOp,et=Le&&Le.command&&Le.command.name;"insertstring"!=et&&(V&&et&&(Le.docChanged||Le.selectionChanged)&&(Re=U.value="",lr()),ht())});var ht=T?function(Le){if(St&&(!P||Le)&&!F){Le||(Le="");var et="\n ab"+Le+"cde fg\n";et!=U.value&&(U.value=Re=et);var Jt=4+(Le.length||(O.selection.isEmpty()?0:1));(4!=ze||Pe!=Jt)&&U.setSelectionRange(4,Jt),ze=4,Pe=Jt}}:function(){if(!V&&!F&&(St||At)){V=!0;var Le=0,et=0,Ot="";if(O.session){var Jt=O.selection,si=Jt.getRange(),H=Jt.cursor.row;if(Le=si.start.column,et=si.end.column,Ot=O.session.getLine(H),si.start.row!=H){var yt=O.session.getLine(H-1);Le=si.start.rowH+1?Lt.length:et,et+=Ot.length+1,Ot=Ot+"\n"+Lt}else Y&&H>0&&(Ot="\n"+Ot,et+=1,Le+=1);Ot.length>y&&(Le0&&Re[Vt]==Le[Vt];)Vt++,si--;for(yt=yt.slice(Vt),Vt=1;H>0&&Re.length-Vt>ze-1&&Re[Re.length-Vt]==Le[Le.length-Vt];)Vt++,H--;Lt-=Vt-1,Kt-=Vt-1;var wn=yt.length-Vt+1;if(wn<0&&(si=-wn,wn=0),yt=yt.slice(0,wn),!(et||yt||Lt||si||H||Kt))return"";F=!0;var Ne=!1;return W.isAndroid&&". "==yt&&(yt=" ",Ne=!0),yt&&!si&&!H&&!Lt&&!Kt||Ce?O.onTextInput(yt):O.onTextInput(yt,{extendLeft:si,extendRight:H,restoreStart:Lt,restoreEnd:Kt}),F=!1,Re=Le,ze=Ot,Pe=Jt,Tt=Kt,Ne?"\n":yt},Tn=function(Le){if(V)return qn();if(Le&&Le.inputType){if("historyUndo"==Le.inputType)return O.execCommand("undo");if("historyRedo"==Le.inputType)return O.execCommand("redo")}var et=U.value,Ot=pn(et,!0);(et.length>500||j.test(Ot)||Y&&ze<1&&ze==Pe)&&ht()},Vn=function(Le,et,Ot){var Jt=Le.clipboardData||window.clipboardData;if(Jt&&!v){var si=g||Ot?"Text":"text/plain";try{return et?!1!==Jt.setData(si,et):Jt.getData(si)}catch(H){if(!Ot)return Vn(H,et,!0)}}},wi=function(Le,et){var Ot=O.getCopyText();if(!Ot)return he.preventDefault(Le);Vn(Le,Ot)?(T&&(ht(Ot),P=Ot,setTimeout(function(){P=!1},10)),et?O.onCut():O.onCopy(),he.preventDefault(Le)):(P=!0,U.value=Ot,U.select(),setTimeout(function(){P=!1,ht(),et?O.onCut():O.onCopy()}))},pr=function(Le){wi(Le,!0)},Ri=function(Le){wi(Le,!1)},ci=function(Le){var et=Vn(Le);S.pasteCancelled()||("string"==typeof et?(et&&O.onPaste(et,Le),W.isIE&&setTimeout(ht),he.preventDefault(Le)):(U.value="",$=!0))};he.addCommandKeyListener(U,O.onCommandKey.bind(O),O),he.addListener(U,"select",function(Le){V||(P?P=!1:function(Le){return 0===Le.selectionStart&&Le.selectionEnd>=Re.length&&Le.value===Re&&Re&&Le.selectionEnd!==Pe}(U)?(O.selectAll(),ht()):Y&&U.selectionStart!=ze&&ht())},O),he.addListener(U,"input",Tn,O),he.addListener(U,"cut",pr,O),he.addListener(U,"copy",Ri,O),he.addListener(U,"paste",ci,O),(!("oncut"in U)||!("oncopy"in U)||!("onpaste"in U))&&he.addListener(q,"keydown",function(Le){if((!W.isMac||Le.metaKey)&&Le.ctrlKey)switch(Le.keyCode){case 67:Ri(Le);break;case 86:ci(Le);break;case 88:pr(Le)}},O);var qn=function(){if(V&&O.onCompositionUpdate&&!O.$readOnly){if(Ce)return Wi();V.useTextareaForIME?O.onCompositionUpdate(U.value):(pn(U.value),V.markerRange&&(V.context&&(V.markerRange.start.column=V.selectionStart=V.context.compositionStartOffset),V.markerRange.end.column=V.markerRange.start.column+Pe-V.selectionStart+Tt))}},lr=function(Le){!O.onCompositionEnd||O.$readOnly||(V=!1,O.onCompositionEnd(),O.off("mousedown",Wi),Le&&Tn())};function Wi(){Me=!0,U.blur(),U.focus(),Me=!1}var vr,Gi=D.delayedCall(qn,50).schedule.bind(null,null);function We(){clearTimeout(vr),vr=setTimeout(function(){X&&(U.style.cssText=X,X=""),O.renderer.$isMousePressed=!1,O.renderer.$keepTextAreaAtCursor&&O.renderer.$moveTextAreaToCursor()},0)}he.addListener(U,"compositionstart",function(Le){if(!V&&O.onCompositionStart&&!O.$readOnly&&(V={},!Ce)){Le.data&&(V.useTextareaForIME=!1),setTimeout(qn,0),O._signal("compositionStart"),O.on("mousedown",Wi);var et=O.getSelectionRange();et.end.row=et.start.row,et.end.column=et.start.column,V.markerRange=et,V.selectionStart=ze,O.onCompositionStart(V),V.useTextareaForIME?(Re=U.value="",ze=0,Pe=0):(U.msGetInputContext&&(V.context=U.msGetInputContext()),U.getInputContext&&(V.context=U.getInputContext()))}},O),he.addListener(U,"compositionupdate",qn,O),he.addListener(U,"keyup",function zn(Le){27==Le.keyCode&&U.value.lengthPe&&"\n"==Re[Kt]?Vt=b.end:LtPe&&Re.slice(0,Kt).split("\n").length>2?Vt=b.down:Kt>Pe&&" "==Re[Kt-1]?(Vt=b.right,wn=x.option):(Kt>Pe||Kt==Pe&&Pe!=ze&&Lt==Kt)&&(Vt=b.right),Lt!==Kt&&(wn|=x.shift),Vt){if(!et.onCommandKey({},wn,Vt)&&et.commands){Vt=b.keyCodeToString(Vt);var jt=et.commands.findKeyCommand(wn,Vt);jt&&et.execCommand(jt)}ze=Lt,Pe=Kt,ht("")}}};document.addEventListener("selectionchange",H),et.on("destroy",function(){document.removeEventListener("selectionchange",H)})}(0,O,U)},ee.$setUserAgentForTests=function(q,O){Y=q,T=O}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(ve,ee,it){"use strict";var he=ve("../lib/useragent");function D(g){g.$clickSelection=null;var _=g.editor;_.setDefaultHandler("mousedown",this.onMouseDown.bind(g)),_.setDefaultHandler("dblclick",this.onDoubleClick.bind(g)),_.setDefaultHandler("tripleclick",this.onTripleClick.bind(g)),_.setDefaultHandler("quadclick",this.onQuadClick.bind(g)),_.setDefaultHandler("mousewheel",this.onMouseWheel.bind(g)),["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach(function(b){g[b]=this[b]},this),g.selectByLines=this.extendSelectionBy.bind(g,"getLineRange"),g.selectByWords=this.extendSelectionBy.bind(g,"getWordRange")}function v(g,_){if(g.start.row==g.end.row)var y=2*_.column-g.start.column-g.end.column;else if(g.start.row!=g.end.row-1||g.start.column||g.end.column)y=2*_.row-g.start.row-g.end.row;else y=_.column-4;return y<0?{cursor:g.start,anchor:g.end}:{cursor:g.end,anchor:g.start}}(function(){this.onMouseDown=function(g){var _=g.inSelection(),y=g.getDocumentPosition();this.mousedownEvent=g;var b=this.editor,x=g.getButton();return 0!==x?((b.getSelectionRange().isEmpty()||1==x)&&b.selection.moveToPosition(y),void(2==x&&(b.textInput.onContextMenu(g.domEvent),he.isMozilla||g.preventDefault()))):(this.mousedownEvent.time=Date.now(),!_||b.isFocused()||(b.focus(),!this.$focusTimeout||this.$clickSelection||b.inMultiSelectMode)?(this.captureMouse(g),this.startSelect(y,g.domEvent._clicks>1),g.preventDefault()):(this.setState("focusWait"),void this.captureMouse(g)))},this.startSelect=function(g,_){g=g||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var y=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?y.selection.selectToPosition(g):_||y.selection.moveToPosition(g),_||this.select(),y.renderer.scroller.setCapture&&y.renderer.scroller.setCapture(),y.setStyle("ace_selecting"),this.setState("select"))},this.select=function(){var g,_=this.editor,y=_.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var b=this.$clickSelection.comparePoint(y);if(-1==b)g=this.$clickSelection.end;else if(1==b)g=this.$clickSelection.start;else{var x=v(this.$clickSelection,y);y=x.cursor,g=x.anchor}_.selection.setSelectionAnchor(g.row,g.column)}_.selection.selectToPosition(y),_.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(g){var _,y=this.editor,b=y.renderer.screenToTextCoordinates(this.x,this.y),x=y.selection[g](b.row,b.column);if(this.$clickSelection){var T=this.$clickSelection.comparePoint(x.start),j=this.$clickSelection.comparePoint(x.end);if(-1==T&&j<=0)_=this.$clickSelection.end,(x.end.row!=b.row||x.end.column!=b.column)&&(b=x.start);else if(1==j&&T>=0)_=this.$clickSelection.start,(x.start.row!=b.row||x.start.column!=b.column)&&(b=x.end);else if(-1==T&&1==j)b=x.end,_=x.start;else{var Y=v(this.$clickSelection,b);b=Y.cursor,_=Y.anchor}y.selection.setSelectionAnchor(_.row,_.column)}y.selection.selectToPosition(b),y.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var g=function S(g,_,y,b){return Math.sqrt(Math.pow(y-g,2)+Math.pow(b-_,2))}(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),_=Date.now();(g>0||_-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(g){var _=g.getDocumentPosition(),y=this.editor,x=y.session.getBracketRange(_);x?(x.isEmpty()&&(x.start.column--,x.end.column++),this.setState("select")):(x=y.selection.getWordRange(_.row,_.column),this.setState("selectByWords")),this.$clickSelection=x,this.select()},this.onTripleClick=function(g){var _=g.getDocumentPosition(),y=this.editor;this.setState("selectByLines");var b=y.getSelectionRange();b.isMultiLine()&&b.contains(_.row,_.column)?(this.$clickSelection=y.selection.getLineRange(b.start.row),this.$clickSelection.end=y.selection.getLineRange(b.end.row).end):this.$clickSelection=y.selection.getLineRange(_.row),this.select()},this.onQuadClick=function(g){var _=this.editor;_.selectAll(),this.$clickSelection=_.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(g){if(!g.getAccelKey()){g.getShiftKey()&&g.wheelY&&!g.wheelX&&(g.wheelX=g.wheelY,g.wheelY=0);var _=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var y=this.$lastScroll,b=g.domEvent.timeStamp,x=b-y.t,T=x?g.wheelX/x:y.vx,j=x?g.wheelY/x:y.vy;x<550&&(T=(T+y.vx)/2,j=(j+y.vy)/2);var Y=Math.abs(T/j),K=!1;if(Y>=1&&_.renderer.isScrollableBy(g.wheelX*g.speed,0)&&(K=!0),Y<=1&&_.renderer.isScrollableBy(0,g.wheelY*g.speed)&&(K=!0),K?y.allowed=b:b-y.allowed<550&&(Math.abs(T)<=1.5*Math.abs(y.vx)&&Math.abs(j)<=1.5*Math.abs(y.vy)?(K=!0,y.allowed=b):y.allowed=0),y.t=b,y.vx=T,y.vy=j,K)return _.renderer.scrollBy(g.wheelX*g.speed,g.wheelY*g.speed),g.stop()}}}).call(D.prototype),ee.DefaultHandlers=D}),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],function(ve,ee,it){"use strict";ve("./lib/oop");var W=ve("./lib/dom");function R(D){this.isOpen=!1,this.$element=null,this.$parentNode=D}(function(){this.$init=function(){return this.$element=W.createElement("div"),this.$element.className="ace_tooltip",this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(D){this.getElement().textContent=D},this.setHtml=function(D){this.getElement().innerHTML=D},this.setPosition=function(D,S){this.getElement().style.left=D+"px",this.getElement().style.top=S+"px"},this.setClassName=function(D){W.addCssClass(this.getElement(),D)},this.show=function(D,S,v){null!=D&&this.setText(D),null!=S&&null!=v&&this.setPosition(S,v),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(R.prototype),ee.Tooltip=R}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],function(ve,ee,it){"use strict";var he=ve("../lib/dom"),W=ve("../lib/oop"),R=ve("../lib/event"),D=ve("../tooltip").Tooltip;function v(g){D.call(this,g)}W.inherits(v,D),function(){this.setPosition=function(g,_){var y=window.innerWidth||document.documentElement.clientWidth,b=window.innerHeight||document.documentElement.clientHeight,x=this.getWidth(),T=this.getHeight();(g+=15)+x>y&&(g-=g+x-y),(_+=15)+T>b&&(_-=20+T),D.prototype.setPosition.call(this,g,_)}}.call(v.prototype),ee.GutterHandler=function S(g){var x,T,j,_=g.editor,y=_.renderer.$gutterLayer,b=new v(_.container);function K(){x&&(x=clearTimeout(x)),j&&(b.hide(),j=null,_._signal("hideGutterTooltip",b),_.off("mousewheel",K))}function q(O){b.setPosition(O.x,O.y)}g.editor.setDefaultHandler("guttermousedown",function(O){if(_.isFocused()&&0==O.getButton()&&"foldWidgets"!=y.getRegion(O)){var P=O.getDocumentPosition().row,$=_.session.selection;if(O.getShiftKey())$.selectTo(P,0);else{if(2==O.domEvent.detail)return _.selectAll(),O.preventDefault();g.$clickSelection=_.selection.getLineRange(P)}return g.setState("selectByLines"),g.captureMouse(O),O.preventDefault()}}),g.editor.setDefaultHandler("guttermousemove",function(O){if(he.hasCssClass(O.domEvent.target||O.domEvent.srcElement,"ace_fold-widget"))return K();j&&g.$tooltipFollowsMouse&&q(O),T=O,!x&&(x=setTimeout(function(){x=null,T&&!g.isMousePressed?function Y(){var O=T.getDocumentPosition().row,U=y.$annotations[O];if(!U)return K();if(O==_.session.getLength()){var $=_.renderer.pixelToScreenCoordinates(0,T.y).row,V=T.$pos;if($>_.session.documentToScreenRow(V.row,V.column))return K()}if(j!=U)if(j=U.text.join("
    "),b.setHtml(j),b.show(),_._signal("showGutterTooltip",b),_.on("mousewheel",K),g.$tooltipFollowsMouse)q(T);else{var X=T.domEvent.target.getBoundingClientRect(),Ce=b.getElement().style;Ce.left=X.right+"px",Ce.top=X.bottom+"px"}}():K()},50))}),R.addListener(_.renderer.$gutter,"mouseout",function(O){T=null,j&&!x&&(x=setTimeout(function(){x=null,K()},50))},_),_.on("changeSession",K)}}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(ve,ee,it){"use strict";var he=ve("../lib/event"),W=ve("../lib/useragent"),R=ee.MouseEvent=function(D,S){this.domEvent=D,this.editor=S,this.x=this.clientX=D.clientX,this.y=this.clientY=D.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){he.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){he.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var S=this.editor.getSelectionRange();if(S.isEmpty())this.$inSelection=!1;else{var v=this.getDocumentPosition();this.$inSelection=S.contains(v.row,v.column)}return this.$inSelection},this.getButton=function(){return he.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=W.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(R.prototype)}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(ve,ee,it){"use strict";var he=ve("../lib/dom"),W=ve("../lib/event"),R=ve("../lib/useragent"),D=200,S=200,v=5;function g(y){var b=y.editor,x=he.createElement("img");x.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",R.isOpera&&(x.style.cssText="width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;"),["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach(function(At){y[At]=this[At]},this),b.on("mousedown",this.onMouseDown.bind(y));var Y,K,q,O,U,P,V,F,X,Ce,Me,j=b.container,$=0;function Pe(){var At=P;(function Re(At,pn){var Tn=Date.now();Ce&&pn&&At.row==pn.row&&pn&&At.column==pn.column?_(Me.x,Me.y,K,q)>v?Ce=null:Tn-Ce>=S&&(b.renderer.scrollCursorIntoView(),Ce=null):(b.moveCursorToPosition(At),Ce=Tn,Me={x:K,y:q})})(P=b.renderer.screenToTextCoordinates(K,q),At),function ze(At,pn){var Tn=Date.now(),Vn=b.renderer.layerConfig.lineHeight,wi=b.renderer.layerConfig.characterWidth,pr=b.renderer.scroller.getBoundingClientRect(),Ri={x:{left:K-pr.left,right:pr.right-K},y:{top:q-pr.top,bottom:pr.bottom-q}},ci=Math.min(Ri.x.left,Ri.x.right),$i=Math.min(Ri.y.top,Ri.y.bottom),qn={row:At.row,column:At.column};ci/wi<=2&&(qn.column+=Ri.x.left=D&&b.renderer.scrollCursorIntoView(qn):X=Tn:X=null}(P,At)}function Tt(){U=b.selection.toOrientedRange(),Y=b.session.addMarker(U,"ace_selection",b.getSelectionStyle()),b.clearSelection(),b.isFocused()&&b.renderer.$cursorLayer.setBlinking(!1),clearInterval(O),Pe(),O=setInterval(Pe,20),$=0,W.addListener(document,"mousemove",It)}function St(){clearInterval(O),b.session.removeMarker(Y),Y=null,b.selection.fromOrientedRange(U),b.isFocused()&&!F&&b.$resetCursorStyle(),U=null,P=null,$=0,X=null,Ce=null,W.removeListener(document,"mousemove",It)}this.onDragStart=function(At){if(this.cancelDrag||!j.draggable){var pn=this;return setTimeout(function(){pn.startSelect(),pn.captureMouse(At)},0),At.preventDefault()}U=b.getSelectionRange();var Tn=At.dataTransfer;Tn.effectAllowed=b.getReadOnly()?"copy":"copyMove",R.isOpera&&(b.container.appendChild(x),x.scrollTop=0),Tn.setDragImage&&Tn.setDragImage(x,0,0),R.isOpera&&b.container.removeChild(x),Tn.clearData(),Tn.setData("Text",b.session.getTextRange()),F=!0,this.setState("drag")},this.onDragEnd=function(At){j.draggable=!1,F=!1,this.setState(null),b.getReadOnly()||(!V&&"move"==At.dataTransfer.dropEffect&&b.session.remove(b.getSelectionRange()),b.$resetCursorStyle()),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(At){if(!b.getReadOnly()&&mt(At.dataTransfer))return K=At.clientX,q=At.clientY,Y||Tt(),$++,At.dataTransfer.dropEffect=V=Zt(At),W.preventDefault(At)},this.onDragOver=function(At){if(!b.getReadOnly()&&mt(At.dataTransfer))return K=At.clientX,q=At.clientY,Y||(Tt(),$++),null!==ht&&(ht=null),At.dataTransfer.dropEffect=V=Zt(At),W.preventDefault(At)},this.onDragLeave=function(At){if(--$<=0&&Y)return St(),V=null,W.preventDefault(At)},this.onDrop=function(At){if(P){var pn=At.dataTransfer;if(F)switch(V){case"move":U=U.contains(P.row,P.column)?{start:P,end:P}:b.moveText(U,P);break;case"copy":U=b.moveText(U,P,!0)}else{var Tn=pn.getData("Text");U={start:P,end:b.session.insert(P,Tn)},b.focus(),V=null}return St(),W.preventDefault(At)}},W.addListener(j,"dragstart",this.onDragStart.bind(y),b),W.addListener(j,"dragend",this.onDragEnd.bind(y),b),W.addListener(j,"dragenter",this.onDragEnter.bind(y),b),W.addListener(j,"dragover",this.onDragOver.bind(y),b),W.addListener(j,"dragleave",this.onDragLeave.bind(y),b),W.addListener(j,"drop",this.onDrop.bind(y),b);var ht=null;function It(){null==ht&&(ht=setTimeout(function(){null!=ht&&Y&&St()},20))}function mt(At){var pn=At.types;return!pn||Array.prototype.some.call(pn,function(Tn){return"text/plain"==Tn||"Text"==Tn})}function Zt(At){var pn=["copy","copymove","all","uninitialized"],Vn=R.isMac?At.altKey:At.ctrlKey,wi="uninitialized";try{wi=At.dataTransfer.effectAllowed.toLowerCase()}catch{}var pr="none";return Vn&&pn.indexOf(wi)>=0?pr="copy":["move","copymove","linkmove","all","uninitialized"].indexOf(wi)>=0?pr="move":pn.indexOf(wi)>=0&&(pr="copy"),pr}}function _(y,b,x,T){return Math.sqrt(Math.pow(x-y,2)+Math.pow(T-b,2))}(function(){this.dragWait=function(){Date.now()-this.mousedownEvent.time>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(y){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var y=this.editor;y.container.draggable=!0,y.renderer.$cursorLayer.setBlinking(!1),y.setStyle("ace_dragging"),y.renderer.setCursorStyle(R.isWin?"default":"move"),this.setState("dragReady")},this.onMouseDrag=function(y){var b=this.editor.container;R.isIE&&"dragReady"==this.state&&_(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>3&&b.dragDrop(),"dragWait"===this.state&&_(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>0&&(b.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))},this.onMouseDown=function(y){if(this.$dragEnabled){this.mousedownEvent=y;var b=this.editor,x=y.inSelection(),T=y.getButton();if(1===(y.domEvent.detail||1)&&0===T&&x){if(y.editor.inMultiSelectMode&&(y.getAccelKey()||y.getShiftKey()))return;this.mousedownEvent.time=Date.now();var Y=y.domEvent.target||y.domEvent.srcElement;"unselectable"in Y&&(Y.unselectable="on"),b.getDragDelay()?(R.isWebKit&&(this.cancelDrag=!0,b.container.draggable=!0),this.setState("dragWait")):this.startDrag(),this.captureMouse(y,this.onMouseDrag.bind(this)),y.defaultPrevented=!0}}}}).call(g.prototype),ee.DragdropHandler=g}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(ve,ee,it){"use strict";var he=ve("./mouse_event").MouseEvent,W=ve("../lib/event"),R=ve("../lib/dom");ee.addTouchListeners=function(D,S){var g,_,y,b,x,T,Y,U,P,v="scroll",j=0,K=0,q=0,O=0;function V(){P||function $(){var Re=window.navigator&&window.navigator.clipboard,ze=!1,Tt=function(St){var ht=St.target.getAttribute("action");if("more"==ht||!ze)return ze=!ze,function(){var St=S.getCopyText(),ht=S.session.getUndoManager().hasUndo();P.replaceChild(R.buildDom(ze?["span",!St&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],St&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],St&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],Re&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],ht&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPallete"},"Pallete"]]:["span"]),P.firstChild)}();"paste"==ht?Re.readText().then(function(It){S.execCommand(ht,It)}):ht&&(("cut"==ht||"copy"==ht)&&(Re?Re.writeText(S.getCopyText()):document.execCommand("copy")),S.execCommand(ht)),P.firstChild.style.display="none",ze=!1,"openCommandPallete"!=ht&&S.focus()};P=R.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(St){v="menu",St.stopPropagation(),St.preventDefault(),S.textInput.focus()},ontouchend:function(St){St.stopPropagation(),St.preventDefault(),Tt(St)},onclick:Tt},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],S.container)}();var Re=S.selection.cursor,ze=S.renderer.textToScreenCoordinates(Re.row,Re.column),Pe=S.renderer.textToScreenCoordinates(0,0).pageX,Tt=S.renderer.scrollLeft,St=S.container.getBoundingClientRect();P.style.top=ze.pageY-St.top-3+"px",ze.pageX-St.left1)return clearTimeout(x),x=null,y=-1,void(v="zoom");U=S.$mouseHandler.isMousePressed=!0;var Pe=S.renderer.layerConfig.lineHeight,Tt=S.renderer.layerConfig.lineHeight,St=Re.timeStamp;b=St;var ht=ze[0],It=ht.clientX,mt=ht.clientY;Math.abs(g-It)+Math.abs(_-mt)>Pe&&(y=-1),g=Re.clientX=It,_=Re.clientY=mt,q=O=0;var Zt=new he(Re,S);if(Y=Zt.getDocumentPosition(),St-y<500&&1==ze.length&&!j)K++,Re.preventDefault(),Re.button=0,function Ce(){x=null,clearTimeout(x),S.selection.moveToPosition(Y);var Re=K>=2?S.selection.getLineRange(Y.row):S.session.getBracketRange(Y);Re&&!Re.isEmpty()?S.selection.setRange(Re):S.selection.selectWord(),v="wait"}();else{K=0;var At=S.selection.cursor,pn=S.selection.isEmpty()?At:S.selection.anchor,Tn=S.renderer.$cursorLayer.getPixelPosition(At,!0),Vn=S.renderer.$cursorLayer.getPixelPosition(pn,!0),wi=S.renderer.scroller.getBoundingClientRect(),pr=S.renderer.layerConfig.offset,Ri=S.renderer.scrollLeft,ci=function(lr,Wi){return(lr/=Tt)*lr+(Wi=Wi/Pe-.75)*Wi};if(Re.clientXqn?"cursor":"anchor"),v=qn<3.5?"anchor":$i<3.5?"cursor":"scroll",x=setTimeout(X,450)}y=St},S),W.addListener(D,"touchend",function(Re){U=S.$mouseHandler.isMousePressed=!1,T&&clearInterval(T),"zoom"==v?(v="",j=0):x?(S.selection.moveToPosition(Y),j=0,V()):"scroll"==v?(function Me(){j+=60,T=setInterval(function(){j--<=0&&(clearInterval(T),T=null),Math.abs(q)<.01&&(q=0),Math.abs(O)<.01&&(O=0),j<20&&(q*=.9),j<20&&(O*=.9);var Re=S.session.getScrollTop();S.renderer.scrollBy(10*q,10*O),Re==S.session.getScrollTop()&&(j=0)},10)}(),F()):V(),clearTimeout(x),x=null},S),W.addListener(D,"touchmove",function(Re){x&&(clearTimeout(x),x=null);var ze=Re.touches;if(!(ze.length>1||"zoom"==v)){var Pe=ze[0],Tt=g-Pe.clientX,St=_-Pe.clientY;if("wait"==v){if(!(Tt*Tt+St*St>4))return Re.preventDefault();v="cursor"}g=Pe.clientX,_=Pe.clientY,Re.clientX=Pe.clientX,Re.clientY=Pe.clientY;var ht=Re.timeStamp,It=ht-b;if(b=ht,"scroll"==v){var mt=new he(Re,S);mt.speed=1,mt.wheelX=Tt,mt.wheelY=St,10*Math.abs(Tt)1&&(Y=T[T.length-2]);var q=v[x+"Path"];return null==q?q=v.basePath:"/"==j&&(x=j=""),q&&"/"!=q.slice(-1)&&(q+="/"),q+x+j+Y+this.get("suffix")},ee.setModuleUrl=function(b,x){return v.$moduleUrls[b]=x},ee.$loading={},ee.loadModule=function(b,x){var T,j;Array.isArray(b)&&(j=b[0],b=b[1]);try{T=ve(b)}catch{}if(T&&!ee.$loading[b])return x&&x(T);if(ee.$loading[b]||(ee.$loading[b]=[]),ee.$loading[b].push(x),!(ee.$loading[b].length>1)){var Y=function(){ve([b],function(K){ee._emit("load.module",{name:b,module:K});var q=ee.$loading[b];ee.$loading[b]=null,q.forEach(function(O){O&&O(K)})})};if(!ee.get("packaged"))return Y();R.loadScript(ee.moduleUrl(b,j),Y),g()}};var g=function(){!v.basePath&&!v.workerPath&&!v.modePath&&!v.themePath&&!Object.keys(v.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),g=function(){})};function _(b){if(S&&S.document){v.packaged=b||ve.packaged||it.packaged||S.define&&Ye.amdD.packaged;for(var x={},T="",j=document.currentScript||document._currentScript,K=(j&&j.ownerDocument||document).getElementsByTagName("script"),q=0;q=Ri){for(Wi=lr+1;Wi=Ri;)Wi++;for(Gi=lr,zn=Wi-1;Gi=ci.length||(Wi=$i[qn-1])!=O&&Wi!=U||(Gi=ci[qn+1])!=O&&Gi!=U?P:(S&&(Gi=U),Gi==Wi?Gi:P);case Me:return(Wi=qn>0?$i[qn-1]:$)==O&&qn+10&&$i[qn-1]==O)return O;if(S)return P;for(vr=qn+1,zn=ci.length;vr=1425&&We<=2303||64286==We)&&(Wi==q||Wi==F))return q}return qn<1||(Wi=ci[qn-1])==$?P:$i[qn-1];case $:return S=!1,g=!0,R;case V:return _=!0,P;case Pe:case Tt:case ht:case It:case St:S=!1;case mt:return P}}function wi(Ri){var ci=Ri.charCodeAt(0),$i=ci>>8;return 0==$i?ci>191?K:Zt[ci]:5==$i?/[\u0591-\u05f4]/.test(Ri)?q:K:6==$i?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(Ri)?ze:/[\u0660-\u0669\u066b-\u066c]/.test(Ri)?U:1642==ci?Re:/[\u06f0-\u06f9]/.test(Ri)?O:F:32==$i&&ci<=8287?At[255&ci]:254==$i&&ci>=65136?F:P}ee.L=K,ee.R=q,ee.EN=O,ee.ON_R=3,ee.AN=4,ee.R_H=5,ee.B=6,ee.RLE=7,ee.DOT="\xb7",ee.doBidiReorder=function(Ri,ci,$i){if(Ri.length<2)return{};var qn=Ri.split(""),lr=new Array(qn.length),Wi=new Array(qn.length),Gi=[];R=$i?Y:0,function pn(Ri,ci,$i,qn){var lr=R?T:x,Wi=null,Gi=null,zn=null,vr=0,We=null,xe=-1,Le=null,et=null,Ot=[];if(!qn)for(Le=0,qn=[];Le<$i;Le++)qn[Le]=wi(Ri[Le]);for(D=R,S=!1,g=!1,_=!1,et=0;et<$i;et++){if(Wi=vr,Ot[et]=Gi=Vn(Ri,qn,Ot,et),We=240&(vr=lr[Wi][Gi]),ci[et]=zn=lr[vr&=15][5],We>0)if(16==We){for(Le=xe;Le-1){for(Le=xe;Le=0&&qn[Jt]==X;Jt--)ci[Jt]=R}}(qn,Gi,qn.length,ci);for(var zn=0;znF&&ci[zn]0&&"\u0644"===qn[zn-1]&&/\u0622|\u0623|\u0625|\u0627/.test(qn[zn])&&(Gi[zn-1]=Gi[zn]=ee.R_H,zn++);for(qn[qn.length-1]===ee.DOT&&(Gi[qn.length-1]=ee.B),"\u202b"===qn[0]&&(Gi[0]=ee.RLE),zn=0;zn=0&&(S=this.session.$docRowCache[g])}return S},this.getSplitIndex=function(){var S=0,v=this.session.$screenRowCache;if(v.length)for(var g,_=this.session.$getRowCacheIndex(v,this.currentRow);this.currentRow-S>0&&(g=this.session.$getRowCacheIndex(v,this.currentRow-S-1))===_;)_=g,S++;else S=this.currentRow;return S},this.updateRowLine=function(S,v){void 0===S&&(S=this.getDocumentRow());var _=S===this.session.getLength()-1?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(S),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var y=this.session.$wrapData[S];y&&(void 0===v&&(v=this.getSplitIndex()),v>0&&y.length?(this.wrapIndent=y.indent,this.wrapOffset=this.wrapIndent*this.charWidths[he.L],this.line=vv?this.session.getOverwrite()?S:S-1:v,_=he.getVisualFromLogicalIdx(g,this.bidiMap),y=this.bidiMap.bidiLevels,b=0;!this.session.getOverwrite()&&S<=v&&y[_]%2!=0&&_++;for(var x=0;x<_;x++)b+=this.charWidths[y[x]];return!this.session.getOverwrite()&&S>v&&y[_]%2==0&&(b+=this.charWidths[y[_]]),this.wrapIndent&&(b+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(b+=this.rtlLineOffset),b},this.getSelections=function(S,v){var y,g=this.bidiMap,_=g.bidiLevels,b=[],x=0,T=Math.min(S,v)-this.wrapIndent,j=Math.max(S,v)-this.wrapIndent,Y=!1,K=!1,q=0;this.wrapIndent&&(x+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var O,U=0;U<_.length;U++)y=_[U],(Y=(O=g.logicalFromVisual[U])>=T&&O_+x/2;){if(_+=x,y===b.length-1){x=0;break}x=this.charWidths[b[++y]]}return y>0&&b[y-1]%2!=0&&b[y]%2==0?(g<_&&y--,v=this.bidiMap.logicalFromVisual[y]):y>0&&b[y-1]%2==0&&b[y]%2!=0?v=1+(g>_?this.bidiMap.logicalFromVisual[y]:this.bidiMap.logicalFromVisual[y-1]):this.isRtlDir&&y===b.length-1&&0===x&&b[y-1]%2==0||!this.isRtlDir&&0===y&&b[y]%2!=0?v=1+this.bidiMap.logicalFromVisual[y]:(y>0&&b[y-1]%2!=0&&0!==x&&y--,v=this.bidiMap.logicalFromVisual[y]),0===v&&this.isRtlDir&&v++,v+this.wrapIndent}}).call(D.prototype),ee.BidiHandler=D}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(ve,ee,it){"use strict";var he=ve("./lib/oop"),W=ve("./lib/lang"),R=ve("./lib/event_emitter").EventEmitter,D=ve("./range").Range,S=function(v){this.session=v,this.doc=v.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var g=this;this.cursor.on("change",function(_){g.$cursorChanged=!0,g.$silent||g._emit("changeCursor"),!g.$isEmpty&&!g.$silent&&g._emit("changeSelection"),!g.$keepDesiredColumnOnChange&&_.old.column!=_.value.column&&(g.$desiredColumn=null)}),this.anchor.on("change",function(){g.$anchorChanged=!0,!g.$isEmpty&&!g.$silent&&g._emit("changeSelection")})};(function(){he.implement(this,R),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(v,g){this.$isEmpty=!1,this.anchor.setPosition(v,g)},this.getAnchor=this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.isBackwards=function(){var v=this.anchor,g=this.lead;return v.row>g.row||v.row==g.row&&v.column>g.column},this.getRange=function(){var v=this.anchor,g=this.lead;return this.$isEmpty?D.fromPoints(g,g):this.isBackwards()?D.fromPoints(g,v):D.fromPoints(v,g)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(v,g){var _=g?v.end:v.start,y=g?v.start:v.end;this.$setSelection(_.row,_.column,y.row,y.column)},this.$setSelection=function(v,g,_,y){if(!this.$silent){var b=this.$isEmpty,x=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(v,g),this.cursor.setPosition(_,y),this.$isEmpty=!D.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||b!=this.$isEmpty||x)&&this._emit("changeSelection")}},this.$moveSelection=function(v){var g=this.lead;this.$isEmpty&&this.setSelectionAnchor(g.row,g.column),v.call(this)},this.selectTo=function(v,g){this.$moveSelection(function(){this.moveCursorTo(v,g)})},this.selectToPosition=function(v){this.$moveSelection(function(){this.moveCursorToPosition(v)})},this.moveTo=function(v,g){this.clearSelection(),this.moveCursorTo(v,g)},this.moveToPosition=function(v){this.clearSelection(),this.moveCursorToPosition(v)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(v,g){if(typeof g>"u"){var _=v||this.lead;v=_.row,g=_.column}return this.session.getWordRange(v,g)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var v=this.getCursor(),g=this.session.getAWordRange(v.row,v.column);this.setSelectionRange(g)},this.getLineRange=function(v,g){var y,_="number"==typeof v?v:this.lead.row,b=this.session.getFoldLine(_);return b?(_=b.start.row,y=b.end.row):y=_,!0===g?new D(_,0,y,this.session.getLine(y).length):new D(_,0,y+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(v,g,_){var y=v.column,b=v.column+g;return _<0&&(y=v.column-g,b=v.column),this.session.isTabStop(v)&&this.doc.getLine(v.row).slice(y,b).split(" ").length-1==g},this.moveCursorLeft=function(){var g,v=this.lead.getPosition();if(g=this.session.getFoldAt(v.row,v.column,-1))this.moveCursorTo(g.start.row,g.start.column);else if(0===v.column)v.row>0&&this.moveCursorTo(v.row-1,this.doc.getLine(v.row-1).length);else{var _=this.session.getTabSize();this.wouldMoveIntoSoftTab(v,_,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-_):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var g,v=this.lead.getPosition();if(g=this.session.getFoldAt(v.row,v.column,1))this.moveCursorTo(g.end.row,g.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(g.column=y)}}this.moveCursorTo(g.row,g.column)},this.moveCursorFileEnd=function(){var v=this.doc.getLength()-1,g=this.doc.getLine(v).length;this.moveCursorTo(v,g)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var v=this.lead.row,g=this.lead.column,_=this.doc.getLine(v),y=_.substring(g);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var b=this.session.getFoldAt(v,g,1);if(!b)return this.session.nonTokenRe.exec(y)&&(g+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,y=_.substring(g)),g>=_.length?(this.moveCursorTo(v,_.length),this.moveCursorRight(),void(v0&&this.moveCursorWordLeft());this.session.tokenRe.exec(b)&&(g-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(v,g)}},this.$shortWordEndIndex=function(v){var _,g=0,y=/\s/,b=this.session.tokenRe;if(b.lastIndex=0,this.session.tokenRe.exec(v))g=this.session.tokenRe.lastIndex;else{for(;(_=v[g])&&y.test(_);)g++;if(g<1)for(b.lastIndex=0;(_=v[g])&&!b.test(_);)if(b.lastIndex=0,g++,y.test(_)){if(g>2){g--;break}for(;(_=v[g])&&y.test(_);)g++;if(g>2)break}}return b.lastIndex=0,g},this.moveCursorShortWordRight=function(){var v=this.lead.row,g=this.lead.column,_=this.doc.getLine(v),y=_.substring(g),b=this.session.getFoldAt(v,g,1);if(b)return this.moveCursorTo(b.end.row,b.end.column);if(g==_.length){var x=this.doc.getLength();do{v++,y=this.doc.getLine(v)}while(v0&&/^\s*$/.test(y));g=y.length,/\s+$/.test(y)||(y="")}var b=W.stringReverse(y),x=this.$shortWordEndIndex(b);return this.moveCursorTo(v,g-x)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(v,g){var y,_=this.session.documentToScreenPosition(this.lead.row,this.lead.column);if(0===g&&(0!==v&&(this.session.$bidiHandler.isBidiRow(_.row,this.lead.row)?(y=this.session.$bidiHandler.getPosLeft(_.column),_.column=Math.round(y/this.session.$bidiHandler.charWidths[0])):y=_.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?_.column=this.$desiredColumn:this.$desiredColumn=_.column),0!=v&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var b=this.session.lineWidgets[this.lead.row];v<0?v-=b.rowsAbove||0:v>0&&(v+=b.rowCount-(b.rowsAbove||0))}var x=this.session.screenToDocumentPosition(_.row+v,_.column,y);this.moveCursorTo(x.row,x.column+g,0===g)},this.moveCursorToPosition=function(v){this.moveCursorTo(v.row,v.column)},this.moveCursorTo=function(v,g,_){var y=this.session.getFoldAt(v,g,1);y&&(v=y.start.row,g=y.start.column),this.$keepDesiredColumnOnChange=!0;var b=this.session.getLine(v);/[\uDC00-\uDFFF]/.test(b.charAt(g))&&b.charAt(g-1)&&(this.lead.row==v&&this.lead.column==g+1?g-=1:g+=1),this.lead.setPosition(v,g),this.$keepDesiredColumnOnChange=!1,_||(this.$desiredColumn=null)},this.moveCursorToScreen=function(v,g,_){var y=this.session.screenToDocumentPosition(v,g);this.moveCursorTo(y.row,y.column,_)},this.detach=function(){this.lead.detach(),this.anchor.detach(),this.session=this.doc=null},this.fromOrientedRange=function(v){this.setSelectionRange(v,v.cursor==v.start),this.$desiredColumn=v.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(v){var g=this.getRange();return v?(v.start.column=g.start.column,v.start.row=g.start.row,v.end.column=g.end.column,v.end.row=g.end.row):v=g,v.cursor=this.isBackwards()?v.start:v.end,v.desiredColumn=this.$desiredColumn,v},this.getRangeOfMovements=function(v){var g=this.getCursor();try{v(this);var _=this.getCursor();return D.fromPoints(g,_)}catch{return D.fromPoints(g,g)}finally{this.moveCursorToPosition(g)}},this.toJSON=function(){if(this.rangeCount)var v=this.ranges.map(function(g){var _=g.clone();return _.isBackwards=g.cursor==g.start,_});else(v=this.getRange()).isBackwards=this.isBackwards();return v},this.fromJSON=function(v){if(null==v.start){if(this.rangeList&&v.length>1){this.toSingleRange(v[0]);for(var g=v.length;g--;){var _=D.fromPoints(v[g].start,v[g].end);v[g].isBackwards&&(_.cursor=_.start),this.addRange(_,!0)}return}v=v[0]}this.rangeList&&this.toSingleRange(v),this.setSelectionRange(v,v.isBackwards)},this.isEqual=function(v){if((v.length||this.rangeCount)&&v.length!=this.rangeCount)return!1;if(!v.length||!this.ranges)return this.getRange().isEqual(v);for(var g=this.ranges.length;g--;)if(!this.ranges[g].isEqual(v[g]))return!1;return!0}}).call(S.prototype),ee.Selection=S}),ace.define("ace/tokenizer",["require","exports","module","ace/config"],function(ve,ee,it){"use strict";var he=ve("./config"),W=2e3,R=function(D){for(var S in this.states=D,this.regExps={},this.matchMappings={},this.states){for(var v=this.states[S],g=[],_=0,y=this.matchMappings[S]={defaultToken:"text"},b="g",x=[],T=0;T1?this.$applyToken:j.token),K>1&&(/\\\d/.test(j.regex)?Y=j.regex.replace(/\\([0-9]+)/g,function(q,O){return"\\"+(parseInt(O,10)+_+1)}):(K=1,Y=this.removeCapturingGroups(j.regex)),!j.splitRegex&&"string"!=typeof j.token&&x.push(j)),y[_]=T,_+=K,g.push(Y),j.onMatch||(j.onMatch=null)}}g.length||(y[0]=0,g.push("$")),x.forEach(function(q){q.splitRegex=this.createSplitterRegexp(q.regex,b)},this),this.regExps[S]=new RegExp("("+g.join(")|(")+")|($)",b)}};(function(){this.$setMaxTokenCount=function(D){W=0|D},this.$applyToken=function(D){var S=this.splitRegex.exec(D).slice(1),v=this.token.apply(this,S);if("string"==typeof v)return[{type:v,value:D}];for(var g=[],_=0,y=v.length;_j){var $=D.substring(j,P-U.length);K.type==q?K.value+=$:(K.type&&T.push(K),K={type:q,value:$})}for(var V=0;VW){for(Y>2*D.length&&this.reportError("infinite loop with in ace tokenizer",{startState:S,line:D});j1&&v[0]!==g&&v.unshift("#tmp",g),{tokens:T,state:v.length?v:g}},this.reportError=he.reportError}).call(R.prototype),ee.Tokenizer=R}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],function(ve,ee,it){"use strict";var he=ve("../lib/lang"),W=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(S,v){if(v)for(var g in S){for(var _=S[g],y=0;y<_.length;y++){var b=_[y];(b.next||b.onMatch)&&("string"==typeof b.next&&0!==b.next.indexOf(v)&&(b.next=v+b.next),b.nextState&&0!==b.nextState.indexOf(v)&&(b.nextState=v+b.nextState))}this.$rules[v+g]=_}else for(var g in S)this.$rules[g]=S[g]},this.getRules=function(){return this.$rules},this.embedRules=function(S,v,g,_,y){var b="function"==typeof S?(new S).getRules():S;if(_)for(var x=0;x<_.length;x++)_[x]=v+_[x];else for(var T in _=[],b)_.push(v+T);if(this.addRules(b,v),g){var j=Array.prototype[y?"push":"unshift"];for(x=0;x<_.length;x++)j.apply(this.$rules[_[x]],he.deepCopy(g))}this.$embeds||(this.$embeds=[]),this.$embeds.push(v)},this.getEmbeds=function(){return this.$embeds};var R=function(S,v){return("start"!=S||v.length)&&v.unshift(this.nextState,S),this.nextState},D=function(S,v){return v.shift(),v.shift()||"start"};this.normalizeRules=function(){var S=0,v=this.$rules;Object.keys(v).forEach(function g(_){var y=v[_];y.processed=!0;for(var b=0;b=this.$rowTokens.length;){if(this.$row+=1,R||(R=this.$session.getLength()),this.$row>=R)return this.$row=R-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var R=this.$rowTokens,D=this.$tokenIndex,S=R[D].start;if(void 0!==S)return S;for(S=0;D>0;)S+=R[D-=1].value.length;return S},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var R=this.$rowTokens[this.$tokenIndex],D=this.getCurrentTokenColumn();return new he(this.$row,D,this.$row,D+R.value.length)}}).call(W.prototype),ee.TokenIterator=W}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(ve,ee,it){"use strict";var g,he=ve("../../lib/oop"),W=ve("../behaviour").Behaviour,R=ve("../../token_iterator").TokenIterator,D=ve("../../lib/lang"),S=["text","paren.rparen","rparen","paren","punctuation.operator"],v=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],_={},y={'"':'"',"'":"'"},b=function(j){var Y=-1;if(j.multiSelect&&(Y=j.selection.index,_.rangeCount!=j.multiSelect.rangeCount&&(_={rangeCount:j.multiSelect.rangeCount})),_[Y])return g=_[Y];g=_[Y]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},x=function(j,Y,K,q){var O=j.end.row-j.start.row;return{text:K+Y+q,selection:[0,j.start.column+1,O,j.end.column+(O?0:1)]}},T=function(j){this.add("braces","insertion",function(Y,K,q,O,U){var P=q.getCursorPosition(),$=O.doc.getLine(P.row);if("{"==U){b(q);var V=q.getSelectionRange(),F=O.doc.getTextRange(V);if(""!==F&&"{"!==F&&q.getWrapBehavioursEnabled())return x(V,F,"{","}");if(T.isSaneInsertion(q,O))return/[\]\}\)]/.test($[P.column])||q.inMultiSelectMode||j&&j.braces?(T.recordAutoInsert(q,O,"}"),{text:"{}",selection:[1,1]}):(T.recordMaybeInsert(q,O,"{"),{text:"{",selection:[1,1]})}else if("}"==U){if(b(q),"}"==$.substring(P.column,P.column+1)&&null!==O.$findOpeningBracket("}",{column:P.column+1,row:P.row})&&T.isAutoInsertedClosing(P,$,U))return T.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if("\n"==U||"\r\n"==U){b(q);var Me="";if(T.isMaybeInsertedClosing(P,$)&&(Me=D.stringRepeat("}",g.maybeInsertedBrackets),T.clearMaybeInsertedClosing()),"}"===$.substring(P.column,P.column+1)){var Re=O.findMatchingBracket({row:P.row,column:P.column+1},"}");if(!Re)return null;var ze=this.$getIndent(O.getLine(Re.row))}else{if(!Me)return void T.clearMaybeInsertedClosing();ze=this.$getIndent($)}var Pe=ze+O.getTabString();return{text:"\n"+Pe+"\n"+ze+Me,selection:[1,Pe.length,1,Pe.length]}}T.clearMaybeInsertedClosing()}}),this.add("braces","deletion",function(Y,K,q,O,U){var P=O.doc.getTextRange(U);if(!U.isMultiLine()&&"{"==P){if(b(q),"}"==O.doc.getLine(U.start.row).substring(U.end.column,U.end.column+1))return U.end.column++,U;g.maybeInsertedBrackets--}}),this.add("parens","insertion",function(Y,K,q,O,U){if("("==U){b(q);var P=q.getSelectionRange(),$=O.doc.getTextRange(P);if(""!==$&&q.getWrapBehavioursEnabled())return x(P,$,"(",")");if(T.isSaneInsertion(q,O))return T.recordAutoInsert(q,O,")"),{text:"()",selection:[1,1]}}else if(")"==U){b(q);var V=q.getCursorPosition(),F=O.doc.getLine(V.row);if(")"==F.substring(V.column,V.column+1)&&null!==O.$findOpeningBracket(")",{column:V.column+1,row:V.row})&&T.isAutoInsertedClosing(V,F,U))return T.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("parens","deletion",function(Y,K,q,O,U){var P=O.doc.getTextRange(U);if(!U.isMultiLine()&&"("==P&&(b(q),")"==O.doc.getLine(U.start.row).substring(U.start.column+1,U.start.column+2)))return U.end.column++,U}),this.add("brackets","insertion",function(Y,K,q,O,U){if("["==U){b(q);var P=q.getSelectionRange(),$=O.doc.getTextRange(P);if(""!==$&&q.getWrapBehavioursEnabled())return x(P,$,"[","]");if(T.isSaneInsertion(q,O))return T.recordAutoInsert(q,O,"]"),{text:"[]",selection:[1,1]}}else if("]"==U){b(q);var V=q.getCursorPosition(),F=O.doc.getLine(V.row);if("]"==F.substring(V.column,V.column+1)&&null!==O.$findOpeningBracket("]",{column:V.column+1,row:V.row})&&T.isAutoInsertedClosing(V,F,U))return T.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("brackets","deletion",function(Y,K,q,O,U){var P=O.doc.getTextRange(U);if(!U.isMultiLine()&&"["==P&&(b(q),"]"==O.doc.getLine(U.start.row).substring(U.start.column+1,U.start.column+2)))return U.end.column++,U}),this.add("string_dquotes","insertion",function(Y,K,q,O,U){var P=O.$mode.$quotes||y;if(1==U.length&&P[U]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(U))return;b(q);var $=U,V=q.getSelectionRange(),F=O.doc.getTextRange(V);if(""!==F&&(1!=F.length||!P[F])&&q.getWrapBehavioursEnabled())return x(V,F,$,$);if(!F){var X=q.getCursorPosition(),Ce=O.doc.getLine(X.row),Me=Ce.substring(X.column-1,X.column),Re=Ce.substring(X.column,X.column+1),ze=O.getTokenAt(X.row,X.column),Pe=O.getTokenAt(X.row,X.column+1);if("\\"==Me&&ze&&/escape/.test(ze.type))return null;var ht,Tt=ze&&/string|escape/.test(ze.type),St=!Pe||/string|escape/.test(Pe.type);if(Re==$)(ht=Tt!==St)&&/string\.end/.test(Pe.type)&&(ht=!1);else{if(Tt&&!St||Tt&&St)return null;var It=O.$mode.tokenRe;It.lastIndex=0;var mt=It.test(Me);It.lastIndex=0;var Zt=It.test(Me);if(mt||Zt||Re&&!/[\s;,.})\]\\]/.test(Re))return null;var At=Ce[X.column-2];if(Me==$&&(At==$||It.test(At)))return null;ht=!0}return{text:ht?$+$:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(Y,K,q,O,U){var P=O.$mode.$quotes||y,$=O.doc.getTextRange(U);if(!U.isMultiLine()&&P.hasOwnProperty($)&&(b(q),O.doc.getLine(U.start.row).substring(U.start.column+1,U.start.column+2)==$))return U.end.column++,U})};T.isSaneInsertion=function(j,Y){var K=j.getCursorPosition(),q=new R(Y,K.row,K.column);if(!this.$matchTokenType(q.getCurrentToken()||"text",S)){if(/[)}\]]/.test(j.session.getLine(K.row)[K.column]))return!0;var O=new R(Y,K.row,K.column+1);if(!this.$matchTokenType(O.getCurrentToken()||"text",S))return!1}return q.stepForward(),q.getCurrentTokenRow()!==K.row||this.$matchTokenType(q.getCurrentToken()||"text",v)},T.$matchTokenType=function(j,Y){return Y.indexOf(j.type||j)>-1},T.recordAutoInsert=function(j,Y,K){var q=j.getCursorPosition(),O=Y.doc.getLine(q.row);this.isAutoInsertedClosing(q,O,g.autoInsertedLineEnd[0])||(g.autoInsertedBrackets=0),g.autoInsertedRow=q.row,g.autoInsertedLineEnd=K+O.substr(q.column),g.autoInsertedBrackets++},T.recordMaybeInsert=function(j,Y,K){var q=j.getCursorPosition(),O=Y.doc.getLine(q.row);this.isMaybeInsertedClosing(q,O)||(g.maybeInsertedBrackets=0),g.maybeInsertedRow=q.row,g.maybeInsertedLineStart=O.substr(0,q.column)+K,g.maybeInsertedLineEnd=O.substr(q.column),g.maybeInsertedBrackets++},T.isAutoInsertedClosing=function(j,Y,K){return g.autoInsertedBrackets>0&&j.row===g.autoInsertedRow&&K===g.autoInsertedLineEnd[0]&&Y.substr(j.column)===g.autoInsertedLineEnd},T.isMaybeInsertedClosing=function(j,Y){return g.maybeInsertedBrackets>0&&j.row===g.maybeInsertedRow&&Y.substr(j.column)===g.maybeInsertedLineEnd&&Y.substr(0,j.column)==g.maybeInsertedLineStart},T.popAutoInsertedClosing=function(){g.autoInsertedLineEnd=g.autoInsertedLineEnd.substr(1),g.autoInsertedBrackets--},T.clearMaybeInsertedClosing=function(){g&&(g.maybeInsertedBrackets=0,g.maybeInsertedRow=-1)},he.inherits(T,W),ee.CstyleBehaviour=T}),ace.define("ace/unicode",["require","exports","module"],function(ve,ee,it){"use strict";for(var he=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],W=0,R=[],D=0;D2?Tn%U!=U-1:Tn%U==0}}else{if(!this.blockComment)return!1;$=this.blockComment.start;var V=this.blockComment.end,X=(F=new RegExp("^(\\s*)(?:"+v.escapeRegExp($)+")"),new RegExp("(?:"+v.escapeRegExp(V)+")\\s*$"));Ce=function(ht,It){Re(ht,It)||(!K||/\S/.test(ht))&&(Y.insertInLine({row:It,column:ht.length},V),Y.insertInLine({row:It,column:O},$))},Me=function(ht,It){var mt;(mt=ht.match(X))&&Y.removeInLine(It,ht.length-mt[0].length,ht.length),(mt=ht.match(F))&&Y.removeInLine(It,mt[1].length,mt[0].length)},Re=function(ht,It){if(F.test(ht))return!0;for(var mt=x.getTokens(It),Zt=0;Ztht.length&&(St=ht.length)}),O==1/0&&(O=St,K=!1,q=!1),P&&O%U!=0&&(O=Math.floor(O/U)*U),Tt(q?Me:Ce)},this.toggleBlockComment=function(b,x,T,j){var Y=this.blockComment;if(Y){!Y.start&&Y[0]&&(Y=Y[0]);var P,$,q=(K=new g(x,j.row,j.column)).getCurrentToken(),U=x.selection.toOrientedRange();if(q&&/comment/.test(q.type)){for(var V,F;q&&/comment/.test(q.type);){if(-1!=(X=q.value.indexOf(Y.start))){var Ce=K.getCurrentTokenRow(),Me=K.getCurrentTokenColumn()+X;V=new _(Ce,Me,Ce,Me+Y.start.length);break}q=K.stepBackward()}var K;for(q=(K=new g(x,j.row,j.column)).getCurrentToken();q&&/comment/.test(q.type);){var X;if(-1!=(X=q.value.indexOf(Y.end))){Ce=K.getCurrentTokenRow(),Me=K.getCurrentTokenColumn()+X,F=new _(Ce,Me,Ce,Me+Y.end.length);break}q=K.stepForward()}F&&x.remove(F),V&&(x.remove(V),P=V.start.row,$=-Y.start.length)}else $=Y.start.length,P=T.start.row,x.insert(T.end,Y.end),x.insert(T.start,Y.start);U.start.row==P&&(U.start.column+=$),U.end.row==P&&(U.end.column+=$),x.selection.fromOrientedRange(U)}},this.getNextLineIndent=function(b,x,T){return this.$getIndent(x)},this.checkOutdent=function(b,x,T){return!1},this.autoOutdent=function(b,x,T){},this.$getIndent=function(b){return b.match(/^\s*/)[0]},this.createWorker=function(b){return null},this.createModeDelegates=function(b){for(var x in this.$embeds=[],this.$modes={},b)if(b[x]){var T=b[x],j=T.prototype.$id,Y=he.$modes[j];Y||(he.$modes[j]=Y=new T),he.$modes[x]||(he.$modes[x]=Y),this.$embeds.push(x),this.$modes[x]=Y}var K=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(x=0;x"u"?this.setPosition(S.row,S.column):this.setPosition(S,v)};(function(){function D(v,g,_){return v.rowthis.row)){var g=function S(v,g,_){var y="insert"==v.action,b=(y?1:-1)*(v.end.row-v.start.row),x=(y?1:-1)*(v.end.column-v.start.column),T=v.start,j=y?T:v.end;return D(g,T,_)?{row:g.row,column:g.column}:D(j,g,!_)?{row:g.row+b,column:g.column+(g.row==j.row?x:0)}:{row:T.row,column:T.column}}(v,{row:this.row,column:this.column},this.$insertRight);this.setPosition(g.row,g.column,!0)}},this.setPosition=function(v,g,_){var y;if(y=_?{row:v,column:g}:this.$clipPositionToDocument(v,g),this.row!=y.row||this.column!=y.column){var b={row:this.row,column:this.column};this.row=y.row,this.column=y.column,this._signal("change",{old:b,value:y})}},this.detach=function(){this.document.off("change",this.$onChange)},this.attach=function(v){this.document=v||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(v,g){var _={};return v>=this.document.getLength()?(_.row=Math.max(0,this.document.getLength()-1),_.column=this.document.getLine(_.row).length):v<0?(_.row=0,_.column=0):(_.row=v,_.column=Math.min(this.document.getLine(_.row).length,Math.max(0,g))),g<0&&(_.column=0),_}}).call(R.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(ve,ee,it){"use strict";var he=ve("./lib/oop"),W=ve("./apply_delta").applyDelta,R=ve("./lib/event_emitter").EventEmitter,D=ve("./range").Range,S=ve("./anchor").Anchor,v=function(g){this.$lines=[""],0===g.length?this.$lines=[""]:Array.isArray(g)?this.insertMergedLines({row:0,column:0},g):this.insert({row:0,column:0},g)};(function(){he.implement(this,R),this.setValue=function(g){var _=this.getLength()-1;this.remove(new D(0,0,_,this.getLine(_).length)),this.insert({row:0,column:0},g)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(g,_){return new S(this,g,_)},this.$split=0==="aaa".split(/a/).length?function(g){return g.replace(/\r\n|\r/g,"\n").split("\n")}:function(g){return g.split(/\r\n|\r|\n/)},this.$detectNewLine=function(g){var _=g.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=_?_[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(g){this.$newLineMode!==g&&(this.$newLineMode=g,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(g){return"\r\n"==g||"\r"==g||"\n"==g},this.getLine=function(g){return this.$lines[g]||""},this.getLines=function(g,_){return this.$lines.slice(g,_+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(g){return this.getLinesForRange(g).join(this.getNewLineCharacter())},this.getLinesForRange=function(g){var _;if(g.start.row===g.end.row)_=[this.getLine(g.start.row).substring(g.start.column,g.end.column)];else{(_=this.getLines(g.start.row,g.end.row))[0]=(_[0]||"").substring(g.start.column);var y=_.length-1;g.end.row-g.start.row==y&&(_[y]=_[y].substring(0,g.end.column))}return _},this.insertLines=function(g,_){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(g,_)},this.removeLines=function(g,_){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(g,_)},this.insertNewLine=function(g){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(g,["",""])},this.insert=function(g,_){return this.getLength()<=1&&this.$detectNewLine(_),this.insertMergedLines(g,this.$split(_))},this.insertInLine=function(g,_){var y=this.clippedPos(g.row,g.column),b=this.pos(g.row,g.column+_.length);return this.applyDelta({start:y,end:b,action:"insert",lines:[_]},!0),this.clonePos(b)},this.clippedPos=function(g,_){var y=this.getLength();void 0===g?g=y:g<0?g=0:g>=y&&(g=y-1,_=void 0);var b=this.getLine(g);return null==_&&(_=b.length),{row:g,column:_=Math.min(Math.max(_,0),b.length)}},this.clonePos=function(g){return{row:g.row,column:g.column}},this.pos=function(g,_){return{row:g,column:_}},this.$clipPosition=function(g){var _=this.getLength();return g.row>=_?(g.row=Math.max(0,_-1),g.column=this.getLine(_-1).length):(g.row=Math.max(0,g.row),g.column=Math.min(Math.max(g.column,0),this.getLine(g.row).length)),g},this.insertFullLines=function(g,_){var y=0;(g=Math.min(Math.max(g,0),this.getLength()))0,b=_=0&&this.applyDelta({start:this.pos(g,this.getLine(g).length),end:this.pos(g+1,0),action:"remove",lines:["",""]})},this.replace=function(g,_){return g instanceof D||(g=D.fromPoints(g.start,g.end)),0===_.length&&g.isEmpty()?g.start:_==this.getTextRange(g)?g.end:(this.remove(g),_?this.insert(g.start,_):g.start)},this.applyDeltas=function(g){for(var _=0;_=0;_--)this.revertDelta(g[_])},this.applyDelta=function(g,_){var y="insert"==g.action;(y?g.lines.length<=1&&!g.lines[0]:!D.comparePoints(g.start,g.end))||(y&&g.lines.length>2e4?this.$splitAndapplyLargeDelta(g,2e4):(W(this.$lines,g,_),this._signal("change",g)))},this.$safeApplyDelta=function(g){var _=this.$lines.length;("remove"==g.action&&g.start.row<_&&g.end.row<_||"insert"==g.action&&g.start.row<=_)&&this.applyDelta(g)},this.$splitAndapplyLargeDelta=function(g,_){for(var y=g.lines,b=y.length-_+1,x=g.start.row,T=g.start.column,j=0,Y=0;j20){v.running=setTimeout(v.$worker,20);break}}v.currentLine=_,-1==y&&(y=_),x<=y&&v.fireUpdateEvent(x,y)}}};(function(){he.implement(this,W),this.setTokenizer=function(D){this.tokenizer=D,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(D){this.doc=D,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(D,S){this._signal("update",{data:{first:D,last:S}})},this.start=function(D){this.currentLine=Math.min(D||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(D){var S=D.start.row,v=D.end.row-S;if(0===v)this.lines[S]=null;else if("remove"==D.action)this.lines.splice(S,v+1,null),this.states.splice(S,v+1,null);else{var g=Array(v+1);g.unshift(S,1),this.lines.splice.apply(this.lines,g),this.states.splice.apply(this.states,g)}this.currentLine=Math.min(S,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(D){return this.lines[D]||this.$tokenizeRow(D)},this.getState=function(D){return this.currentLine==D&&this.$tokenizeRow(D),this.states[D]||"start"},this.$tokenizeRow=function(D){var S=this.doc.getLine(D),g=this.tokenizer.getLineTokens(S,this.states[D-1],D);return this.states[D]+""!=g.state+""?(this.states[D]=g.state,this.lines[D+1]=null,this.currentLine>D+1&&(this.currentLine=D+1)):this.currentLine==D&&(this.currentLine=D+1),this.lines[D]=g.tokens}}).call(R.prototype),ee.BackgroundTokenizer=R}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(ve,ee,it){"use strict";var he=ve("./lib/lang"),R=(ve("./lib/oop"),ve("./range").Range),D=function(S,v,g){this.setRegexp(S),this.clazz=v,this.type=g||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(S){this.regExp+""!=S+""&&(this.regExp=S,this.cache=[])},this.update=function(S,v,g,_){if(this.regExp)for(var b=_.lastRow,x=_.firstRow;x<=b;x++){var T=this.cache[x];null==T&&((T=he.getMatchOffsets(g.getLine(x),this.regExp)).length>this.MAX_RANGES&&(T=T.slice(0,this.MAX_RANGES)),T=T.map(function(Y){return new R(x,Y.offset,x,Y.offset+Y.length)}),this.cache[x]=T.length?T:"");for(var j=T.length;j--;)v.drawSingleLineMarker(S,T[j].toScreenRange(g),this.clazz,_)}}}).call(D.prototype),ee.SearchHighlight=D}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(ve,ee,it){"use strict";var he=ve("../range").Range;function W(R,D){this.foldData=R,Array.isArray(D)?this.folds=D:D=this.folds=[D];var S=D[D.length-1];this.range=new he(D[0].start.row,D[0].start.column,S.end.row,S.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(v){v.setFoldLine(this)},this)}(function(){this.shiftRow=function(R){this.start.row+=R,this.end.row+=R,this.folds.forEach(function(D){D.start.row+=R,D.end.row+=R})},this.addFold=function(R){if(R.sameRow){if(R.start.rowthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(R),this.folds.sort(function(D,S){return-D.range.compareEnd(S.start.row,S.start.column)}),this.range.compareEnd(R.start.row,R.start.column)>0?(this.end.row=R.end.row,this.end.column=R.end.column):this.range.compareStart(R.end.row,R.end.column)<0&&(this.start.row=R.start.row,this.start.column=R.start.column)}else if(R.start.row==this.end.row)this.folds.push(R),this.end.row=R.end.row,this.end.column=R.end.column;else{if(R.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(R),this.start.row=R.start.row,this.start.column=R.start.column}R.foldLine=this},this.containsRow=function(R){return R>=this.start.row&&R<=this.end.row},this.walk=function(R,D,S){var _,y,v=0,g=this.folds,x=!0;null==D&&(D=this.end.row,S=this.end.column);for(var T=0;T0)){var x=W(D,y.start);return 0===b?S&&0!==x?-_-2:_:x>0||0===x&&!S?_:-_-1}}return-_-1},this.add=function(D){var S=!D.isEmpty(),v=this.pointIndex(D.start,S);v<0&&(v=-v-1);var g=this.pointIndex(D.end,S,v);return g<0?g=-g-1:g++,this.ranges.splice(v,g-v,D)},this.addList=function(D){for(var S=[],v=D.length;v--;)S.push.apply(S,this.add(D[v]));return S},this.substractPoint=function(D){var S=this.pointIndex(D);if(S>=0)return this.ranges.splice(S,1)},this.merge=function(){for(var g,D=[],S=this.ranges,v=(S=S.sort(function(b,x){return W(b.start,x.start)}))[0],_=1;_=0},this.containsPoint=function(D){return this.pointIndex(D)>=0},this.rangeAtPoint=function(D){var S=this.pointIndex(D);if(S>=0)return this.ranges[S]},this.clipRows=function(D,S){var v=this.ranges;if(v[0].start.row>S||v[v.length-1].start.row=g);b++);if("insert"==D.action){for(var j=_-g,Y=-S.column+v.column;bg);b++)if(T.start.row==g&&T.start.column>=S.column&&(T.start.column==S.column&&this.$bias<=0||(T.start.column+=Y,T.start.row+=j)),T.end.row==g&&T.end.column>=S.column){if(T.end.column==S.column&&this.$bias<0)continue;T.end.column==S.column&&Y>0&&bT.start.column&&T.end.column==y[b+1].start.column&&(T.end.column-=Y),T.end.column+=Y,T.end.row+=j}}else for(j=g-_,Y=S.column-v.column;b_);b++)T.end.row<_&&(gS.column)&&(T.end.column=S.column,T.end.row=S.row):(T.end.column+=Y,T.end.row+=j):T.end.row>_&&(T.end.row+=j),T.start.row<_&&(gS.column)&&(T.start.column=S.column,T.start.row=S.row):(T.start.column+=Y,T.start.row+=j):T.start.row>_&&(T.start.row+=j);if(0!=j&&b=v)return b;if(b.end.row>v)return null}return null},this.getNextFoldLine=function(v,g){var _=this.$foldData,y=0;for(g&&(y=_.indexOf(g)),-1==y&&(y=0);y<_.length;y++){var b=_[y];if(b.end.row>=v)return b}return null},this.getFoldedRowCount=function(v,g){for(var _=this.$foldData,y=g-v+1,b=0;b<_.length;b++){var x=_[b],T=x.end.row,j=x.start.row;if(T>=g){j=v?y-=g-j:y=0);break}T>=v&&(y-=j>=v?T-j:T-v+1)}return y},this.$addFoldLine=function(v){return this.$foldData.push(v),this.$foldData.sort(function(g,_){return g.start.row-_.start.row}),v},this.addFold=function(v,g){var b,_=this.$foldData,y=!1;v instanceof R?b=v:(b=new R(g,v)).collapseChildren=g.collapseChildren,this.$clipRangeToDocument(b.range);var x=b.start.row,T=b.start.column,j=b.end.row,Y=b.end.column,K=this.getFoldAt(x,T,1),q=this.getFoldAt(j,Y,-1);if(K&&q==K)return K.addSubFold(b);K&&!K.range.isStart(x,T)&&this.removeFold(K),q&&!q.range.isEnd(j,Y)&&this.removeFold(q);var O=this.getFoldsInRange(b.range);O.length>0&&(this.removeFolds(O),b.collapseChildren||O.forEach(function(V){b.addSubFold(V)}));for(var U=0;U<_.length;U++){var P=_[U];if(j==P.start.row){P.addFold(b),y=!0;break}if(x==P.end.row){if(P.addFold(b),y=!0,!b.sameRow){var $=_[U+1];if($&&$.start.row==j){P.merge($);break}}break}if(j<=P.start.row)break}return y||(P=this.$addFoldLine(new W(this.$foldData,b))),this.$useWrapMode?this.$updateWrapData(P.start.row,P.start.row):this.$updateRowLengthCache(P.start.row,P.start.row),this.$modified=!0,this._signal("changeFold",{data:b,action:"add"}),b},this.addFolds=function(v){v.forEach(function(g){this.addFold(g)},this)},this.removeFold=function(v){var g=v.foldLine,_=g.start.row,y=g.end.row,b=this.$foldData,x=g.folds;if(1==x.length)b.splice(b.indexOf(g),1);else if(g.range.isEnd(v.end.row,v.end.column))x.pop(),g.end.row=x[x.length-1].end.row,g.end.column=x[x.length-1].end.column;else if(g.range.isStart(v.start.row,v.start.column))x.shift(),g.start.row=x[0].start.row,g.start.column=x[0].start.column;else if(v.sameRow)x.splice(x.indexOf(v),1);else{var T=g.split(v.start.row,v.start.column);(x=T.folds).shift(),T.start.row=x[0].start.row,T.start.column=x[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(_,y):this.$updateRowLengthCache(_,y)),this.$modified=!0,this._signal("changeFold",{data:v,action:"remove"})},this.removeFolds=function(v){for(var g=[],_=0;_0&&this.foldAll(v.start.row+1,v.end.row,v.collapseChildren-1),v.subFolds=[]},this.expandFolds=function(v){v.forEach(function(g){this.expandFold(g)},this)},this.unfold=function(v,g){var _,y;if(null==v?(_=new he(0,0,this.getLength(),0),null==g&&(g=!0)):_="number"==typeof v?new he(v,0,v,this.getLine(v).length):"row"in v?he.fromPoints(v,v):v,y=this.getFoldsInRangeList(_),0!=g?this.removeFolds(y):this.expandFolds(y),y.length)return y},this.isRowFolded=function(v,g){return!!this.getFoldLine(v,g)},this.getRowFoldEnd=function(v,g){var _=this.getFoldLine(v,g);return _?_.end.row:v},this.getRowFoldStart=function(v,g){var _=this.getFoldLine(v,g);return _?_.start.row:v},this.getFoldDisplayLine=function(v,g,_,y,b){null==y&&(y=v.start.row),null==b&&(b=0),null==g&&(g=v.end.row),null==_&&(_=this.getLine(g).length);var x=this.doc,T="";return v.walk(function(j,Y,K,q){if(!(YY)break}while(b&&T.test(b.type));b=y.stepBackward()}else b=y.getCurrentToken();return j.end.row=y.getCurrentTokenRow(),j.end.column=y.getCurrentTokenColumn()+b.value.length-2,j}},this.foldAll=function(v,g,_,y){null==_&&(_=1e5);var b=this.foldWidgets;if(b){g=g||this.getLength();for(var x=v=v||0;x=v&&(x=T.end.row,T.collapseChildren=_,this.addFold("...",T))}}},this.foldToLevel=function(v){for(this.foldAll();v-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var v=this;this.foldAll(null,null,null,function(g){for(var _=v.getTokens(g),y=0;y<_.length;y++){var b=_[y];if("text"!=b.type||!/^\s+$/.test(b.value))return!!/comment/.test(b.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(v){if(!this.$foldStyles[v])throw new Error("invalid fold style: "+v+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=v){this.$foldStyle=v,"manual"==v&&this.unfold();var g=this.$foldMode;this.$setFolding(null),this.$setFolding(g)}},this.$setFolding=function(v){if(this.$foldMode!=v){if(this.$foldMode=v,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!v||"manual"==this.$foldStyle)return void(this.foldWidgets=null);this.foldWidgets=[],this.getFoldWidget=v.getFoldWidget.bind(v,this,this.$foldStyle),this.getFoldWidgetRange=v.getFoldWidgetRange.bind(v,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)}},this.getParentFoldRangeData=function(v,g){var _=this.foldWidgets;if(!_||g&&_[v])return{};for(var b,y=v-1;y>=0;){var x=_[y];if(null==x&&(x=_[y]=this.getFoldWidget(y)),"start"==x){var T=this.getFoldWidgetRange(y);if(b||(b=T),T&&T.end.row>=v)break}y--}return{range:-1!==y&&T,firstRange:b}},this.onFoldWidgetClick=function(v,g){if(!this.$toggleFoldWidget(v,{children:(g=g.domEvent).shiftKey,all:g.ctrlKey||g.metaKey,siblings:g.altKey})){var b=g.target||g.srcElement;b&&/ace_fold-widget/.test(b.className)&&(b.className+=" ace_invalid")}},this.$toggleFoldWidget=function(v,g){if(this.getFoldWidget){var _=this.getFoldWidget(v),y=this.getLine(v),b="end"===_?-1:1,x=this.getFoldAt(v,-1===b?0:y.length,b);if(x)return g.children||g.all?this.removeFold(x):this.expandFold(x),x;var T=this.getFoldWidgetRange(v,!0);if(T&&!T.isMultiLine()&&(x=this.getFoldAt(T.start.row,T.start.column,1))&&T.isEqual(x.range))return this.removeFold(x),x;if(g.siblings){var j=this.getParentFoldRangeData(v);if(j.range)var Y=j.range.start.row+1,K=j.range.end.row;this.foldAll(Y,K,g.all?1e4:0)}else g.children?(K=T?T.end.row:this.getLength(),this.foldAll(v+1,K,g.all?1e4:0)):T&&(g.all&&(T.collapseChildren=1e4),this.addFold("...",T));return T}},this.toggleFoldWidget=function(v){var g=this.selection.getCursor().row;g=this.getRowFoldStart(g);var _=this.$toggleFoldWidget(g,{});if(!_){var y=this.getParentFoldRangeData(g,!0);if(_=y.range||y.firstRange){var b=this.getFoldAt(g=_.start.row,this.getLine(g).length,1);b?this.removeFold(b):this.addFold("...",_)}}},this.updateFoldWidgets=function(v){var g=v.start.row,_=v.end.row-g;if(0===_)this.foldWidgets[g]=null;else if("remove"==v.action)this.foldWidgets.splice(g,_+1,null);else{var y=Array(_+1);y.unshift(g,1),this.foldWidgets.splice.apply(this.foldWidgets,y)}},this.tokenizerUpdateFoldWidgets=function(v){var g=v.data;g.first!=g.last&&this.foldWidgets.length>g.first&&this.foldWidgets.splice(g.first,this.foldWidgets.length)}}}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(ve,ee,it){"use strict";var he=ve("../token_iterator").TokenIterator,W=ve("../range").Range;ee.BracketMatch=function R(){this.findMatchingBracket=function(D,S){if(0==D.column)return null;var v=S||this.getLine(D.row).charAt(D.column-1);if(""==v)return null;var g=v.match(/([\(\[\{])|([\)\]\}])/);return g?g[1]?this.$findClosingBracket(g[1],D):this.$findOpeningBracket(g[2],D):null},this.getBracketRange=function(D){var g,S=this.getLine(D.row),v=!0,_=S.charAt(D.column-1),y=_&&_.match(/([\(\[\{])|([\)\]\}])/);if(y||(_=S.charAt(D.column),D={row:D.row,column:D.column+1},y=_&&_.match(/([\(\[\{])|([\)\]\}])/),v=!1),!y)return null;if(y[1]){if(!(b=this.$findClosingBracket(y[1],D)))return null;g=W.fromPoints(D,b),v||(g.end.column++,g.start.column--),g.cursor=g.end}else{var b;if(!(b=this.$findOpeningBracket(y[2],D)))return null;g=W.fromPoints(b,D),v||(g.start.column++,g.end.column--),g.cursor=g.start}return g},this.getMatchingBracketRanges=function(D){var S=this.getLine(D.row),v=S.charAt(D.column-1),g=v&&v.match(/([\(\[\{])|([\)\]\}])/);if(g||(v=S.charAt(D.column),D={row:D.row,column:D.column+1},g=v&&v.match(/([\(\[\{])|([\)\]\}])/)),!g)return null;var _=new W(D.row,D.column-1,D.row,D.column),y=g[1]?this.$findClosingBracket(g[1],D):this.$findOpeningBracket(g[2],D);return y?[_,new W(y.row,y.column,y.row,y.column+1)]:[_]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(D,S,v){var g=this.$brackets[D],_=1,y=new he(this,S.row,S.column),b=y.getCurrentToken();if(b||(b=y.stepForward()),b){v||(v=new RegExp("(\\.?"+b.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));for(var x=S.column-y.getCurrentTokenColumn()-2,T=b.value;;){for(;x>=0;){var j=T.charAt(x);if(j==g){if(0==(_-=1))return{row:y.getCurrentTokenRow(),column:x+y.getCurrentTokenColumn()}}else j==D&&(_+=1);x-=1}do{b=y.stepBackward()}while(b&&!v.test(b.type));if(null==b)break;x=(T=b.value).length-1}return null}},this.$findClosingBracket=function(D,S,v){var g=this.$brackets[D],_=1,y=new he(this,S.row,S.column),b=y.getCurrentToken();if(b||(b=y.stepForward()),b){v||(v=new RegExp("(\\.?"+b.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));for(var x=S.column-y.getCurrentTokenColumn();;){for(var T=b.value,j=T.length;xCe&&(this.$docRowCache.splice(Ce,X),this.$screenRowCache.splice(Ce,X))},this.$getRowCacheIndex=function(F,X){for(var Ce=0,Me=F.length-1;Ce<=Me;){var Re=Ce+Me>>1,ze=F[Re];if(X>ze)Ce=Re+1;else{if(!(X=X);ze++);return(Me=Ce[ze])?(Me.index=ze,Me.start=Re-Me.value.length,Me):null},this.setUndoManager=function(F){if(this.$undoManager=F,this.$informUndoManager&&this.$informUndoManager.cancel(),F){var X=this;F.addSession(this),this.$syncInformUndoManager=function(){X.$informUndoManager.cancel(),X.mergeUndoDeltas=!1},this.$informUndoManager=W.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?W.stringRepeat(" ",this.getTabSize()):"\t"},this.setUseSoftTabs=function(F){this.setOption("useSoftTabs",F)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(F){this.setOption("tabSize",F)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(F){return this.$useSoftTabs&&F.column%this.$tabSize==0},this.setNavigateWithinSoftTabs=function(F){this.setOption("navigateWithinSoftTabs",F)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(F){this.setOption("overwrite",F)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(F,X){this.$decorations[F]||(this.$decorations[F]=""),this.$decorations[F]+=" "+X,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(F,X){this.$decorations[F]=(this.$decorations[F]||"").replace(" "+X,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(F){this.$breakpoints=[];for(var X=0;X0&&(Me=!!Ce.charAt(X-1).match(this.tokenRe)),Me||(Me=!!Ce.charAt(X).match(this.tokenRe)),Me)var Re=this.tokenRe;else Re=/^\s+$/.test(Ce.slice(X-1,X+1))?/\s/:this.nonTokenRe;var ze=X;if(ze>0){do{ze--}while(ze>=0&&Ce.charAt(ze).match(Re));ze++}for(var Pe=X;PeF&&(F=X.screenWidth)}),this.lineWidgetWidth=F},this.$computeWidth=function(F){if(this.$modified||F){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var X=this.doc.getAllLines(),Ce=this.$rowLengthCache,Me=0,Re=0,ze=this.$foldData[Re],Pe=ze?ze.start.row:1/0,Tt=X.length,St=0;StPe){if((St=ze.end.row+1)>=Tt)break;Pe=(ze=this.$foldData[Re++])?ze.start.row:1/0}null==Ce[St]&&(Ce[St]=this.$getStringScreenWidth(X[St])[0]),Ce[St]>Me&&(Me=Ce[St])}this.screenWidth=Me}},this.getLine=function(F){return this.doc.getLine(F)},this.getLines=function(F,X){return this.doc.getLines(F,X)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(F){return this.doc.getTextRange(F||this.selection.getRange())},this.insert=function(F,X){return this.doc.insert(F,X)},this.remove=function(F){return this.doc.remove(F)},this.removeFullLines=function(F,X){return this.doc.removeFullLines(F,X)},this.undoChanges=function(F,X){if(F.length){this.$fromUndo=!0;for(var Ce=F.length-1;-1!=Ce;Ce--){var Me=F[Ce];"insert"==Me.action||"remove"==Me.action?this.doc.revertDelta(Me):Me.folds&&this.addFolds(Me.folds)}!X&&this.$undoSelect&&(F.selectionBefore?this.selection.fromJSON(F.selectionBefore):this.selection.setRange(this.$getUndoSelection(F,!0))),this.$fromUndo=!1}},this.redoChanges=function(F,X){if(F.length){this.$fromUndo=!0;for(var Ce=0;CeF.end.column&&(ze.start.column+=Tt),ze.end.row==F.end.row&&ze.end.column>F.end.column&&(ze.end.column+=Tt)),Pe&&ze.start.row>=F.end.row&&(ze.start.row+=Pe,ze.end.row+=Pe)),ze.end=this.insert(ze.start,Me),Re.length){var St=F.start,ht=ze.start,Pe=ht.row-St.row,Tt=ht.column-St.column;this.addFolds(Re.map(function(Zt){return(Zt=Zt.clone()).start.row==St.row&&(Zt.start.column+=Tt),Zt.end.row==St.row&&(Zt.end.column+=Tt),Zt.start.row+=Pe,Zt.end.row+=Pe,Zt}))}return ze},this.indentRows=function(F,X,Ce){Ce=Ce.replace(/\t/g,this.getTabString());for(var Me=F;Me<=X;Me++)this.doc.insertInLine({row:Me,column:0},Ce)},this.outdentRows=function(F){for(var X=F.collapseRows(),Ce=new _(0,0,0,0),Me=this.getTabSize(),Re=X.start.row;Re<=X.end.row;++Re){var ze=this.getLine(Re);Ce.start.row=Re,Ce.end.row=Re;for(var Pe=0;Pe0){var Me;if((Me=this.getRowFoldEnd(X+Ce))>this.doc.getLength()-1)return 0;Re=Me-X}else F=this.$clipRowToDocument(F),Re=(X=this.$clipRowToDocument(X))-F+1;var ze=new _(F,0,X,Number.MAX_VALUE),Pe=this.getFoldsInRange(ze).map(function(St){return(St=St.clone()).start.row+=Re,St.end.row+=Re,St}),Tt=0==Ce?this.doc.getLines(F,X):this.doc.removeFullLines(F,X);return this.doc.insertFullLines(F+Re,Tt),Pe.length&&this.addFolds(Pe),Re},this.moveLinesUp=function(F,X){return this.$moveLines(F,X,-1)},this.moveLinesDown=function(F,X){return this.$moveLines(F,X,1)},this.duplicateLines=function(F,X){return this.$moveLines(F,X,0)},this.$clipRowToDocument=function(F){return Math.max(0,Math.min(F,this.doc.getLength()-1))},this.$clipColumnToRow=function(F,X){return X<0?0:Math.min(this.doc.getLine(F).length,X)},this.$clipPositionToDocument=function(F,X){if(X=Math.max(0,X),F<0)F=0,X=0;else{var Ce=this.doc.getLength();F>=Ce?(F=Ce-1,X=this.doc.getLine(Ce-1).length):X=Math.min(this.doc.getLine(F).length,X)}return{row:F,column:X}},this.$clipRangeToDocument=function(F){F.start.row<0?(F.start.row=0,F.start.column=0):F.start.column=this.$clipColumnToRow(F.start.row,F.start.column);var X=this.doc.getLength()-1;return F.end.row>X?(F.end.row=X,F.end.column=this.doc.getLine(X).length):F.end.column=this.$clipColumnToRow(F.end.row,F.end.column),F},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(F){if(F!=this.$useWrapMode){if(this.$useWrapMode=F,this.$modified=!0,this.$resetRowCache(0),F){var X=this.getLength();this.$wrapData=Array(X),this.$updateWrapData(0,X-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(F,X){(this.$wrapLimitRange.min!==F||this.$wrapLimitRange.max!==X)&&(this.$wrapLimitRange={min:F,max:X},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(F,X){var Ce=this.$wrapLimitRange;Ce.max<0&&(Ce={min:X,max:X});var Me=this.$constrainWrapLimit(F,Ce.min,Ce.max);return Me!=this.$wrapLimit&&Me>1&&(this.$wrapLimit=Me,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},this.$constrainWrapLimit=function(F,X,Ce){return X&&(F=Math.max(X,F)),Ce&&(F=Math.min(Ce,F)),F},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(F){this.setWrapLimitRange(F,F)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(F){var X=this.$useWrapMode,Ce=F.action,Me=F.start,Re=F.end,ze=Me.row,Pe=Re.row,Tt=Pe-ze,St=null;if(this.$updating=!0,0!=Tt)if("remove"===Ce){this[X?"$wrapData":"$rowLengthCache"].splice(ze,Tt);var ht=this.$foldData;St=this.getFoldsInRange(F),this.removeFolds(St);var mt=0;if(It=this.getFoldLine(Re.row)){It.addRemoveChars(Re.row,Re.column,Me.column-Re.column),It.shiftRow(-Tt);var Zt=this.getFoldLine(ze);Zt&&Zt!==It&&(Zt.merge(It),It=Zt),mt=ht.indexOf(It)+1}for(;mt=Re.row&&It.shiftRow(-Tt);Pe=ze}else{var At=Array(Tt);At.unshift(ze,0);var pn=X?this.$wrapData:this.$rowLengthCache;if(pn.splice.apply(pn,At),ht=this.$foldData,mt=0,It=this.getFoldLine(ze)){var Tn=It.range.compareInside(Me.row,Me.column);0==Tn?(It=It.split(Me.row,Me.column))&&(It.shiftRow(Tt),It.addRemoveChars(Pe,0,Re.column-Me.column)):-1==Tn&&(It.addRemoveChars(ze,0,Re.column-Me.column),It.shiftRow(Tt)),mt=ht.indexOf(It)+1}for(;mt=ze&&It.shiftRow(Tt)}}else Tt=Math.abs(F.start.column-F.end.column),"remove"===Ce&&(St=this.getFoldsInRange(F),this.removeFolds(St),Tt=-Tt),(It=this.getFoldLine(ze))&&It.addRemoveChars(ze,Me.column,Tt);return X&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,X?this.$updateWrapData(ze,Pe):this.$updateRowLengthCache(ze,Pe),St},this.$updateRowLengthCache=function(F,X,Ce){this.$rowLengthCache[F]=null,this.$rowLengthCache[X]=null},this.$updateWrapData=function(F,X){var Pe,Tt,Ce=this.doc.getAllLines(),Me=this.getTabSize(),Re=this.$wrapData,ze=this.$wrapLimit,St=F;for(X=Math.min(X,Ce.length-1);St<=X;)(Tt=this.getFoldLine(St,Tt))?(Pe=[],Tt.walk(function(ht,It,mt,Zt){var At;if(null!=ht){(At=this.$getDisplayTokens(ht,Pe.length))[0]=K;for(var pn=1;pn=4352&&F<=4447||F>=4515&&F<=4519||F>=4602&&F<=4607||F>=9001&&F<=9002||F>=11904&&F<=11929||F>=11931&&F<=12019||F>=12032&&F<=12245||F>=12272&&F<=12283||F>=12288&&F<=12350||F>=12353&&F<=12438||F>=12441&&F<=12543||F>=12549&&F<=12589||F>=12593&&F<=12686||F>=12688&&F<=12730||F>=12736&&F<=12771||F>=12784&&F<=12830||F>=12832&&F<=12871||F>=12880&&F<=13054||F>=13056&&F<=19903||F>=19968&&F<=42124||F>=42128&&F<=42182||F>=43360&&F<=43388||F>=44032&&F<=55203||F>=55216&&F<=55238||F>=55243&&F<=55291||F>=63744&&F<=64255||F>=65040&&F<=65049||F>=65072&&F<=65106||F>=65108&&F<=65126||F>=65128&&F<=65131||F>=65281&&F<=65376||F>=65504&&F<=65510)}this.$computeWrapSplits=function(F,X,Ce){if(0==F.length)return[];var Me=[],Re=F.length,ze=0,Pe=0,Tt=this.$wrapAsCode,St=this.$indentedSoftWrap,ht=X<=Math.max(2*Ce,8)||!1===St?0:Math.floor(X/2);function mt(Tn){for(var Vn=Tn-ze,wi=ze;wiX-Zt;){var At=ze+X-Zt;if(F[At-1]>=U&&F[At]>=U)mt(At);else if(F[At]!=K&&F[At]!=q){for(var pn=Math.max(At-(X-(X>>2)),ze-1);At>pn&&F[At]pn&&F[At]pn&&9==F[At];)At--}else for(;At>pn&&F[At]pn?mt(++At):(2==F[At=ze+X]&&At--,mt(At-Zt))}else{for(;At!=ze-1&&F[At]!=K;At--);if(At>ze){mt(At);continue}for(At=ze+X;At39&&ze<48||ze>57&&ze<64?Ce.push(9):ze>=4352&&V(ze)?Ce.push(1,2):Ce.push(1)}return Ce},this.$getStringScreenWidth=function(F,X,Ce){if(0==X)return[0,0];var Me,Re;for(null==X&&(X=1/0),Ce=Ce||0,Re=0;Re=4352&&V(Me)?Ce+=2:Ce+=1,!(Ce>X));Re++);return[Ce,Re]},this.lineWidgets=null,this.getRowLength=function(F){var X=1;return this.lineWidgets&&(X+=this.lineWidgets[F]&&this.lineWidgets[F].rowCount||0),this.$useWrapMode&&this.$wrapData[F]?this.$wrapData[F].length+X:X},this.getRowLineCount=function(F){return this.$useWrapMode&&this.$wrapData[F]?this.$wrapData[F].length+1:1},this.getRowWrapIndent=function(F){if(this.$useWrapMode){var X=this.screenToDocumentPosition(F,Number.MAX_VALUE),Ce=this.$wrapData[X.row];return Ce.length&&Ce[0]=0){Tt=ht[It],Re=this.$docRowCache[It];var Zt=F>ht[mt-1]}else Zt=!mt;for(var At=this.getLength()-1,pn=this.getNextFoldLine(Re),Tn=pn?pn.start.row:1/0;Tt<=F&&!(Tt+(St=this.getRowLength(Re))>F||Re>=At);)Tt+=St,++Re>Tn&&(Tn=(pn=this.getNextFoldLine(Re=pn.end.row+1,pn))?pn.start.row:1/0),Zt&&(this.$docRowCache.push(Re),this.$screenRowCache.push(Tt));if(pn&&pn.start.row<=Re)Me=this.getFoldDisplayLine(pn),Re=pn.start.row;else{if(Tt+St<=F||Re>At)return{row:At,column:this.getLine(At).length};Me=this.getLine(Re),pn=null}var Vn=0,wi=Math.floor(F-Tt);if(this.$useWrapMode){var pr=this.$wrapData[Re];pr&&(Pe=pr[wi],wi>0&&pr.length&&(Vn=pr.indent,Me=Me.substring(ze=pr[wi-1]||pr[pr.length-1])))}return void 0!==Ce&&this.$bidiHandler.isBidiRow(Tt+wi,Re,wi)&&(X=this.$bidiHandler.offsetToCol(Ce)),ze+=this.$getStringScreenWidth(Me,X-Vn)[1],this.$useWrapMode&&ze>=Pe&&(ze=Pe-1),pn?pn.idxToPosition(ze):{row:Re,column:ze}},this.documentToScreenPosition=function(F,X){if(typeof X>"u")var Ce=this.$clipPositionToDocument(F.row,F.column);else Ce=this.$clipPositionToDocument(F,X);var ze,Me=0,Re=null;(ze=this.getFoldAt(F=Ce.row,X=Ce.column,1))&&(F=ze.start.row,X=ze.start.column);var Pe,Tt=0,St=this.$docRowCache,ht=this.$getRowCacheIndex(St,F),It=St.length;if(It&&ht>=0){Tt=St[ht],Me=this.$screenRowCache[ht];var mt=F>St[It-1]}else mt=!It;for(var Zt=this.getNextFoldLine(Tt),At=Zt?Zt.start.row:1/0;Tt=At){if((Pe=Zt.end.row+1)>F)break;At=(Zt=this.getNextFoldLine(Pe,Zt))?Zt.start.row:1/0}else Pe=Tt+1;Me+=this.getRowLength(Tt),Tt=Pe,mt&&(this.$docRowCache.push(Tt),this.$screenRowCache.push(Me))}var pn="";Zt&&Tt>=At?(pn=this.getFoldDisplayLine(Zt,F,X),Re=Zt.start.row):(pn=this.getLine(F).substring(0,X),Re=F);var Tn=0;if(this.$useWrapMode){var Vn=this.$wrapData[Re];if(Vn){for(var wi=0;pn.length>=Vn[wi];)Me++,wi++;pn=pn.substring(Vn[wi-1]||0,pn.length),Tn=wi>0?Vn.indent:0}}return this.lineWidgets&&this.lineWidgets[Tt]&&this.lineWidgets[Tt].rowsAbove&&(Me+=this.lineWidgets[Tt].rowsAbove),{row:Me,column:Tn+this.$getStringScreenWidth(pn)[0]}},this.documentToScreenColumn=function(F,X){return this.documentToScreenPosition(F,X).column},this.documentToScreenRow=function(F,X){return this.documentToScreenPosition(F,X).row},this.getScreenLength=function(){var F=0,X=null;if(this.$useWrapMode)for(var Re=this.$wrapData.length,ze=0,Me=0,Pe=(X=this.$foldData[Me++])?X.start.row:1/0;zePe&&(ze=X.end.row+1,Pe=(X=this.$foldData[Me++])?X.start.row:1/0)}else{F=this.getLength();var Ce=this.$foldData;for(Me=0;MeCe);ze++);return[Me,ze]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker(),this.removeAllListeners(),this.selection.detach()},this.isFullWidth=V}.call(T.prototype),ve("./edit_session/folding").Folding.call(T.prototype),ve("./edit_session/bracket_match").BracketMatch.call(T.prototype),D.defineOptions(T.prototype,"session",{wrap:{set:function(j){if(j&&"off"!=j?"free"==j?j=!0:"printMargin"==j?j=-1:"string"==typeof j&&(j=parseInt(j,10)||!1):j=!1,this.$wrap!=j)if(this.$wrap=j,j){var Y="number"==typeof j?j:null;this.setWrapLimitRange(Y,Y),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(j){(j="auto"==j?"text"!=this.$mode.type:"text"!=j)!=this.$wrapAsCode&&(this.$wrapAsCode=j,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(j){this.$useWorker=j,this.$stopWorker(),j&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(j){(j=parseInt(j))>0&&this.$tabSize!==j&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=j,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(j){this.setFoldStyle(j)},handlesSet:!0},overwrite:{set:function(j){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(j){this.doc.setNewLineMode(j)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(j){this.setMode(j)},get:function(){return this.$modeId},handlesSet:!0}}),ee.EditSession=T}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(ve,ee,it){"use strict";var he=ve("./lib/lang"),W=ve("./lib/oop"),R=ve("./range").Range,D=function(){this.$options={}};(function(){this.set=function(v){return W.mixin(this.$options,v),this},this.getOptions=function(){return he.copyObject(this.$options)},this.setOptions=function(v){this.$options=v},this.find=function(v){var g=this.$options,_=this.$matchIterator(v,g);if(!_)return!1;var y=null;return _.forEach(function(b,x,T,j){return y=new R(b,x,T,j),!(x==j&&g.start&&g.start.start&&0!=g.skipCurrent&&y.isEqual(g.start)&&(y=null,1))}),y},this.findAll=function(v){var g=this.$options;if(!g.needle)return[];this.$assembleRegExp(g);var _=g.range,y=_?v.getLines(_.start.row,_.end.row):v.doc.getAllLines(),b=[],x=g.re;if(g.$isMultiLine){var Y,T=x.length,j=y.length-T;e:for(var K=x.offset||0;K<=j;K++){for(var q=0;qP||(b.push(Y=new R(K,P,K+T-1,$)),T>2&&(K=K+T-2))}}else for(var V=0;VMe&&b[q].end.row==_.end.row;)q--;for(b=b.slice(V,q+1),V=0,q=b.length;V=j;P--)if(O(P,Number.MAX_VALUE,U))return;if(0!=g.wrap)for(P=Y,j=T.row;P>=j;P--)if(O(P,Number.MAX_VALUE,U))return}};else K=function(P){var $=T.row;if(!O($,T.column,P)){for($+=1;$<=Y;$++)if(O($,0,P))return;if(0!=g.wrap)for($=j,Y=T.row;$<=Y;$++)if(O($,0,P))return}};if(g.$isMultiLine)var q=_.length,O=function(U,P,$){var V=y?U-q+1:U;if(!(V<0)){var F=v.getLine(V),X=F.search(_[0]);if(!(!y&&XP)&&$(V,X,V+q-1,Me))return!0}}};else O=y?function(P,$,V){var Ce,F=v.getLine(P),X=[],Me=0;for(_.lastIndex=0;Ce=_.exec(F);){if(Me=Ce.index,!(Re=Ce[0].length)){if(Me>=F.length)break;_.lastIndex=Me+=1}if(Ce.index+Re>$)break;X.push(Ce.index,Re)}for(var ze=X.length-1;ze>=0;ze-=2){var Re,Pe=X[ze-1];if(V(P,Pe,P,Pe+(Re=X[ze])))return!0}}:function(P,$,V){var X,Ce,F=v.getLine(P);for(_.lastIndex=$;Ce=_.exec(F);){var Me=Ce[0].length;if(V(P,X=Ce.index,P,X+Me))return!0;if(!Me&&(_.lastIndex=X+=1,X>=F.length))return!1}};return{forEach:K}}}).call(D.prototype),ee.Search=D}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(ve,ee,it){"use strict";var he=ve("../lib/keys"),W=ve("../lib/useragent"),R=he.KEY_MODS;function D(v,g){this.platform=g||(W.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(v),this.$singleCommand=!0}function S(v,g){D.call(this,v,g),this.$singleCommand=!1}S.prototype=D.prototype,function(){function v(g){return"object"==typeof g&&g.bindKey&&g.bindKey.position||(g.isDefault?-100:0)}this.addCommand=function(g){this.commands[g.name]&&this.removeCommand(g),this.commands[g.name]=g,g.bindKey&&this._buildKeyHash(g)},this.removeCommand=function(g,_){var y=g&&("string"==typeof g?g:g.name);g=this.commands[y],_||delete this.commands[y];var b=this.commandKeyBinding;for(var x in b){var T=b[x];if(T==g)delete b[x];else if(Array.isArray(T)){var j=T.indexOf(g);-1!=j&&(T.splice(j,1),1==T.length&&(b[x]=T[0]))}}},this.bindKey=function(g,_,y){if("object"==typeof g&&g&&(null==y&&(y=g.position),g=g[this.platform]),g){if("function"==typeof _)return this.addCommand({exec:_,bindKey:g,name:_.name||g});g.split("|").forEach(function(b){var x="";if(-1!=b.indexOf(" ")){var T=b.split(/\s+/);b=T.pop(),T.forEach(function(K){var q=this.parseKeys(K);this._addCommandToBinding(x+=(x?" ":"")+(R[q.hashId]+q.key),"chainKeys")},this),x+=" "}var j=this.parseKeys(b);this._addCommandToBinding(x+(R[j.hashId]+j.key),_,y)},this)}},this._addCommandToBinding=function(g,_,y){var x,b=this.commandKeyBinding;if(_)if(!b[g]||this.$singleCommand)b[g]=_;else{Array.isArray(b[g])?-1!=(x=b[g].indexOf(_))&&b[g].splice(x,1):b[g]=[b[g]],"number"!=typeof y&&(y=v(_));var T=b[g];for(x=0;xy);x++);T.splice(x,0,_)}else delete b[g]},this.addCommands=function(g){g&&Object.keys(g).forEach(function(_){var y=g[_];if(y){if("string"==typeof y)return this.bindKey(y,_);"function"==typeof y&&(y={exec:y}),"object"==typeof y&&(y.name||(y.name=_),this.addCommand(y))}},this)},this.removeCommands=function(g){Object.keys(g).forEach(function(_){this.removeCommand(g[_])},this)},this.bindKeys=function(g){Object.keys(g).forEach(function(_){this.bindKey(_,g[_])},this)},this._buildKeyHash=function(g){this.bindKey(g.bindKey,g)},this.parseKeys=function(g){var _=g.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(Y){return Y}),y=_.pop(),b=he[y];if(he.FUNCTION_KEYS[b])y=he.FUNCTION_KEYS[b].toLowerCase();else{if(!_.length)return{key:y,hashId:-1};if(1==_.length&&"shift"==_[0])return{key:y.toUpperCase(),hashId:-1}}for(var x=0,T=_.length;T--;){var j=he.KEY_MODS[_[T]];if(null==j)return typeof console<"u"&&console.error("invalid modifier "+_[T]+" in "+g),!1;x|=j}return{key:y,hashId:x}},this.findKeyCommand=function(_,y){return this.commandKeyBinding[R[_]+y]},this.handleKeyboard=function(g,_,y,b){if(!(b<0)){var x=R[_]+y,T=this.commandKeyBinding[x];return g.$keyChain&&(g.$keyChain+=" "+x,T=this.commandKeyBinding[g.$keyChain]||T),!T||"chainKeys"!=T&&"chainKeys"!=T[T.length-1]?(g.$keyChain&&(_&&4!=_||1!=y.length?(-1==_||b>0)&&(g.$keyChain=""):g.$keyChain=g.$keyChain.slice(0,-x.length-1)),{command:T}):(g.$keyChain=g.$keyChain||x,{command:"null"})}},this.getStatusText=function(g,_){return _.$keyChain||""}}.call(D.prototype),ee.HashHandler=D,ee.MultiHashHandler=S}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(ve,ee,it){"use strict";var he=ve("../lib/oop"),W=ve("../keyboard/hash_handler").MultiHashHandler,R=ve("../lib/event_emitter").EventEmitter,D=function(S,v){W.call(this,v,S),this.byName=this.commands,this.setDefaultHandler("exec",function(g){return g.command.exec(g.editor,g.args||{})})};he.inherits(D,W),function(){he.implement(this,R),this.exec=function(S,v,g){if(Array.isArray(S)){for(var _=S.length;_--;)if(this.exec(S[_],v,g))return!0;return!1}if("string"==typeof S&&(S=this.commands[S]),!S||v&&v.$readOnly&&!S.readOnly||0!=this.$checkCommandState&&S.isAvailable&&!S.isAvailable(v))return!1;var y={editor:v,command:S,args:g};return y.returnValue=this._emit("exec",y),this._signal("afterExec",y),!1!==y.returnValue},this.toggleRecording=function(S){if(!this.$inReplay)return S&&S._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(v){this.macro.push([v.command,v.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(S){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(S);try{this.$inReplay=!0,this.macro.forEach(function(v){"string"==typeof v?this.exec(v,S):this.exec(v[0],S,v[1])},this)}finally{this.$inReplay=!1}}},this.trimMacro=function(S){return S.map(function(v){return"string"!=typeof v[0]&&(v[0]=v[0].name),v[1]||(v=v[0]),v})}}.call(D.prototype),ee.CommandManager=D}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(ve,ee,it){"use strict";var he=ve("../lib/lang"),W=ve("../config"),R=ve("../range").Range;function D(v,g){return{win:v,mac:g}}ee.commands=[{name:"showSettingsMenu",bindKey:D("Ctrl-,","Command-,"),exec:function(v){W.loadModule("ace/ext/settings_menu",function(g){g.init(v),v.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",bindKey:D("Alt-E","F4"),exec:function(v){W.loadModule("./ext/error_marker",function(g){g.showErrorMarker(v,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",bindKey:D("Alt-Shift-E","Shift-F4"),exec:function(v){W.loadModule("./ext/error_marker",function(g){g.showErrorMarker(v,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:D("Ctrl-A","Command-A"),exec:function(v){v.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:D(null,"Ctrl-L"),exec:function(v){v.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:D("Ctrl-L","Command-L"),exec:function(v,g){"number"==typeof g&&!isNaN(g)&&v.gotoLine(g),v.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:D("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(v){v.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:D("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(v){v.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",bindKey:D("F2","F2"),exec:function(v){v.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",bindKey:D("Alt-F2","Alt-F2"),exec:function(v){v.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:D(null,"Ctrl-Command-Option-0"),exec:function(v){v.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:D(null,"Ctrl-Command-Option-0"),exec:function(v){v.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:D("Alt-0","Command-Option-0"),exec:function(v){v.session.foldAll(),v.session.unfold(v.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:D("Alt-Shift-0","Command-Option-Shift-0"),exec:function(v){v.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:D("Ctrl-K","Command-G"),exec:function(v){v.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:D("Ctrl-Shift-K","Command-Shift-G"),exec:function(v){v.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:D("Alt-K","Ctrl-G"),exec:function(v){v.selection.isEmpty()?v.selection.selectWord():v.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:D("Alt-Shift-K","Ctrl-Shift-G"),exec:function(v){v.selection.isEmpty()?v.selection.selectWord():v.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:D("Ctrl-F","Command-F"),exec:function(v){W.loadModule("ace/ext/searchbox",function(g){g.Search(v)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(v){v.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:D("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(v){v.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:D("Ctrl-Home","Command-Home|Command-Up"),exec:function(v){v.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:D("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(v){v.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:D("Up","Up|Ctrl-P"),exec:function(v,g){v.navigateUp(g.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:D("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(v){v.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:D("Ctrl-End","Command-End|Command-Down"),exec:function(v){v.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:D("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(v){v.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:D("Down","Down|Ctrl-N"),exec:function(v,g){v.navigateDown(g.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:D("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(v){v.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:D("Ctrl-Left","Option-Left"),exec:function(v){v.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:D("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(v){v.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:D("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(v){v.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:D("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(v){v.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:D("Left","Left|Ctrl-B"),exec:function(v,g){v.navigateLeft(g.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:D("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(v){v.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:D("Ctrl-Right","Option-Right"),exec:function(v){v.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:D("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(v){v.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:D("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(v){v.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:D("Shift-Right","Shift-Right"),exec:function(v){v.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:D("Right","Right|Ctrl-F"),exec:function(v,g){v.navigateRight(g.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(v){v.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:D(null,"Option-PageDown"),exec:function(v){v.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:D("PageDown","PageDown|Ctrl-V"),exec:function(v){v.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(v){v.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:D(null,"Option-PageUp"),exec:function(v){v.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(v){v.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:D("Ctrl-Up",null),exec:function(v){v.renderer.scrollBy(0,-2*v.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:D("Ctrl-Down",null),exec:function(v){v.renderer.scrollBy(0,2*v.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(v){v.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(v){v.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:D("Ctrl-Alt-E","Command-Option-E"),exec:function(v){v.commands.toggleRecording(v)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:D("Ctrl-Shift-E","Command-Shift-E"),exec:function(v){v.commands.replay(v)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:D("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(v){v.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:D("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(v){v.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:D("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(v){v.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:D(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(v){},readOnly:!0},{name:"cut",description:"Cut",exec:function(v){var _=v.$copyWithEmptySelection&&v.selection.isEmpty()?v.selection.getLineRange():v.selection.getRange();v._emit("cut",_),_.isEmpty()||v.session.remove(_),v.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(v,g){v.$handlePaste(g)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:D("Ctrl-D","Command-D"),exec:function(v){v.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:D("Ctrl-Shift-D","Command-Shift-D"),exec:function(v){v.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:D("Ctrl-Alt-S","Command-Alt-S"),exec:function(v){v.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:D("Ctrl-/","Command-/"),exec:function(v){v.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:D("Ctrl-Shift-/","Command-Shift-/"),exec:function(v){v.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:D("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(v){v.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:D("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(v){v.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:D("Ctrl-H","Command-Option-F"),exec:function(v){W.loadModule("ace/ext/searchbox",function(g){g.Search(v,!0)})}},{name:"undo",description:"Undo",bindKey:D("Ctrl-Z","Command-Z"),exec:function(v){v.undo()}},{name:"redo",description:"Redo",bindKey:D("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(v){v.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:D("Alt-Shift-Up","Command-Option-Up"),exec:function(v){v.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:D("Alt-Up","Option-Up"),exec:function(v){v.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:D("Alt-Shift-Down","Command-Option-Down"),exec:function(v){v.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:D("Alt-Down","Option-Down"),exec:function(v){v.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:D("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(v){v.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:D("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(v){v.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:D("Shift-Delete",null),exec:function(v){if(!v.selection.isEmpty())return!1;v.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:D("Alt-Backspace","Command-Backspace"),exec:function(v){v.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:D("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(v){v.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:D("Ctrl-Shift-Backspace",null),exec:function(v){var g=v.selection.getRange();g.start.column=0,v.session.remove(g)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:D("Ctrl-Shift-Delete",null),exec:function(v){var g=v.selection.getRange();g.end.column=Number.MAX_VALUE,v.session.remove(g)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:D("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(v){v.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:D("Ctrl-Delete","Alt-Delete"),exec:function(v){v.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:D("Shift-Tab","Shift-Tab"),exec:function(v){v.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:D("Tab","Tab"),exec:function(v){v.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:D("Ctrl-[","Ctrl-["),exec:function(v){v.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:D("Ctrl-]","Ctrl-]"),exec:function(v){v.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(v,g){v.insert(g)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(v,g){v.insert(he.stringRepeat(g.text||"",g.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:D(null,"Ctrl-O"),exec:function(v){v.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:D("Alt-Shift-X","Ctrl-T"),exec:function(v){v.transposeLetters()},multiSelectAction:function(v){v.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:D("Ctrl-U","Ctrl-U"),exec:function(v){v.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:D("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(v){v.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:D(null,null),exec:function(v){v.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:D("Ctrl-Shift-L","Command-Shift-L"),exec:function(v){var g=v.selection.getRange();g.start.column=g.end.column=0,g.end.row++,v.selection.setRange(g,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",description:"Join lines",bindKey:D(null,null),exec:function(v){for(var g=v.selection.isBackwards(),_=g?v.selection.getSelectionLead():v.selection.getSelectionAnchor(),y=g?v.selection.getSelectionAnchor():v.selection.getSelectionLead(),b=v.session.doc.getLine(_.row).length,T=v.session.doc.getTextRange(v.selection.getRange()).replace(/\n\s*/," ").length,j=v.session.doc.getLine(_.row),Y=_.row+1;Y<=y.row+1;Y++){var K=he.stringTrimLeft(he.stringTrimRight(v.session.doc.getLine(Y)));0!==K.length&&(K=" "+K),j+=K}y.row+10?(v.selection.moveCursorTo(_.row,_.column),v.selection.selectTo(_.row,_.column+T)):(b=v.session.doc.getLine(_.row).length>b?b+1:b,v.selection.moveCursorTo(_.row,b))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:D(null,null),exec:function(v){var g=v.session.doc.getLength()-1,_=v.session.doc.getLine(g).length,y=v.selection.rangeList.ranges,b=[];y.length<1&&(y=[v.selection.getRange()]);for(var x=0;x=Ce.lastRow||X.end.row<=Ce.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==F&&this.renderer.animateScrolling(this.curOp.scrollTop)}var Me=this.selection.toJSON();this.curOp.selectionAfter=Me,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(Me),this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function($){if(this.$mergeUndoDeltas){var V=this.prevOp,F=this.$mergeableCommands,X=V.command&&$.command.name==V.command.name;if("insertstring"==$.command.name){var Ce=$.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),X=X&&this.mergeNextCommand&&(!/\s/.test(Ce)||/\s/.test(V.args)),this.mergeNextCommand=!0}else X=X&&-1!==F.indexOf($.command.name);"always"!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(X=!1),X?this.session.mergeUndoDeltas=!0:-1!==F.indexOf($.command.name)&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function($,V){if($&&"string"==typeof $&&"ace"!=$){this.$keybindingId=$;var F=this;K.loadModule(["keybinding",$],function(X){F.$keybindingId==$&&F.keyBinding.setKeyboardHandler(X&&X.handler),V&&V()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler($),V&&V()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function($){if(this.session!=$){this.curOp&&this.endOperation(),this.curOp={};var V=this.session;if(V){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var F=this.session.getSelection();F.off("changeCursor",this.$onCursorChange),F.off("changeSelection",this.$onSelectionChange)}this.session=$,$?(this.$onDocumentChange=this.onDocumentChange.bind(this),$.on("change",this.$onDocumentChange),this.renderer.setSession($),this.$onChangeMode=this.onChangeMode.bind(this),$.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),$.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),$.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),$.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),$.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),$.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=$.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession($)),this._signal("changeSession",{session:$,oldSession:V}),this.curOp=null,V&&V._signal("changeEditor",{oldEditor:this}),$&&$._signal("changeEditor",{editor:this}),$&&$.bgTokenizer&&$.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function($,V){return this.session.doc.setValue($),V?1==V?this.navigateFileEnd():-1==V&&this.navigateFileStart():this.selectAll(),$},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function($){this.renderer.onResize($)},this.setTheme=function($,V){this.renderer.setTheme($,V)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function($){this.renderer.setStyle($)},this.unsetStyle=function($){this.renderer.unsetStyle($)},this.getFontSize=function(){return this.getOption("fontSize")||W.computedStyle(this.container).fontSize},this.setFontSize=function($){this.setOption("fontSize",$)},this.$highlightBrackets=function(){if(!this.$highlightPending){var $=this;this.$highlightPending=!0,setTimeout(function(){$.$highlightPending=!1;var V=$.session;if(V&&V.bgTokenizer){V.$bracketHighlight&&(V.$bracketHighlight.markerIds.forEach(function(Ce){V.removeMarker(Ce)}),V.$bracketHighlight=null);var F=V.getMatchingBracketRanges($.getCursorPosition());if(!F&&V.$mode.getMatching&&(F=V.$mode.getMatching($.session)),F){var X="ace_bracket";Array.isArray(F)?1==F.length&&(X="ace_error_bracket"):F=[F],2==F.length&&(0==x.comparePoints(F[0].end,F[1].start)?F=[x.fromPoints(F[0].start,F[1].end)]:0==x.comparePoints(F[0].start,F[1].end)&&(F=[x.fromPoints(F[1].start,F[0].end)])),V.$bracketHighlight={ranges:F,markerIds:F.map(function(Ce){return V.addMarker(Ce,X,"text")})}}}},50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var $=this;this.$highlightTagPending=!0,setTimeout(function(){$.$highlightTagPending=!1;var V=$.session;if(V&&V.bgTokenizer){var F=$.getCursorPosition(),X=new q($.session,F.row,F.column),Ce=X.getCurrentToken();if(!Ce||!/\b(?:tag-open|tag-name)/.test(Ce.type))return V.removeMarker(V.$tagHighlight),void(V.$tagHighlight=null);if(-1===Ce.type.indexOf("tag-open")||(Ce=X.stepForward())){var Me=Ce.value,Re=Ce.value,ze=0,Pe=X.stepBackward();if("<"===Pe.value)do{Pe=Ce,(Ce=X.stepForward())&&(-1!==Ce.type.indexOf("tag-name")?Me===(Re=Ce.value)&&("<"===Pe.value?ze++:""===Ce.value&&ze--)}while(Ce&&ze>=0);else{do{if(Ce=Pe,Pe=X.stepBackward(),Ce)if(-1!==Ce.type.indexOf("tag-name"))Me===Ce.value&&("<"===Pe.value?ze++:""===Ce.value){for(var Tt=0,St=Pe;St;){if(-1!==St.type.indexOf("tag-name")&&St.value===Me){ze--;break}if("<"===St.value)break;St=X.stepBackward(),Tt++}for(var ht=0;ht1)&&(V=!1)),$.$highlightLineMarker&&!V)$.removeMarker($.$highlightLineMarker.id),$.$highlightLineMarker=null;else if(!$.$highlightLineMarker&&V){var F=new x(V.row,V.column,V.row,1/0);F.id=$.addMarker(F,"ace_active-line","screenLine"),$.$highlightLineMarker=F}else V&&($.$highlightLineMarker.start.row=V.row,$.$highlightLineMarker.end.row=V.row,$.$highlightLineMarker.start.column=V.column,$._signal("changeBackMarker"))},this.onSelectionChange=function($){var V=this.session;if(V.$selectionMarker&&V.removeMarker(V.$selectionMarker),V.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var F=this.selection.getRange(),X=this.getSelectionStyle();V.$selectionMarker=V.addMarker(F,"ace_selection",X)}var Ce=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(Ce),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var $=this.session,V=this.getSelectionRange();if(!V.isEmpty()&&!V.isMultiLine()){var F=V.start.column,X=V.end.column,Ce=$.getLine(V.start.row),Me=Ce.substring(F,X);if(!(Me.length>5e3)&&/[\w\d]/.test(Me)){var Re=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:Me}),ze=Ce.substring(F-1,X+1);if(Re.test(ze))return Re}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function($){this.renderer.updateText(),this._emit("changeMode",$)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var $=this.getSelectedText(),V=this.session.doc.getNewLineCharacter(),F=!1;if(!$&&this.$copyWithEmptySelection){F=!0;for(var X=this.selection.getAllRanges(),Ce=0;CeSt.search(/\S|$/)){var ze=St.substr(Ce.column).search(/\S|$/);F.doc.removeInLine(Ce.row,Ce.column,Ce.column+ze)}}this.clearSelection();var Pe=Ce.column,Tt=F.getState(Ce.row),ht=(St=F.getLine(Ce.row),X.checkOutdent(Tt,St,$));if(F.insert(Ce,$),Me&&Me.selection&&this.selection.setSelectionRange(2==Me.selection.length?new x(Ce.row,Pe+Me.selection[0],Ce.row,Pe+Me.selection[1]):new x(Ce.row+Me.selection[0],Me.selection[1],Ce.row+Me.selection[2],Me.selection[3])),this.$enableAutoIndent){if(F.getDocument().isNewLine($)){var It=X.getNextLineIndent(Tt,St.slice(0,Ce.column),F.getTabString());F.insert({row:Ce.row+1,column:0},It)}ht&&X.autoOutdent(Tt,F,Ce.row)}},this.autoIndent=function(){var F,X,$=this.session,V=$.getMode();if(this.selection.isEmpty())F=0,X=$.doc.getLength()-1;else{var Ce=this.getSelectionRange();F=Ce.start.row,X=Ce.end.row}for(var Pe,Tt,St,Me="",Re="",ze="",ht=$.getTabString(),It=F;It<=X;It++)It>0&&(Me=$.getState(It-1),Re=$.getLine(It-1),ze=V.getNextLineIndent(Me,Re,ht)),Pe=$.getLine(It),ze!==(Tt=V.$getIndent(Pe))&&(Tt.length>0&&(St=new x(It,0,It,Tt.length),$.remove(St)),ze.length>0&&$.insert({row:It,column:0},ze)),V.autoOutdent(Me,$,It)},this.onTextInput=function($,V){if(!V)return this.keyBinding.onTextInput($);this.startOperation({command:{name:"insertstring"}});var F=this.applyComposition.bind(this,$,V);this.selection.rangeCount?this.forEachSelection(F):F(),this.endOperation()},this.applyComposition=function($,V){var F;(V.extendLeft||V.extendRight)&&((F=this.selection.getRange()).start.column-=V.extendLeft,F.end.column+=V.extendRight,F.start.column<0&&(F.start.row--,F.start.column+=this.session.getLine(F.start.row).length+1),this.selection.setRange(F),!$&&!F.isEmpty()&&this.remove()),($||!this.selection.isEmpty())&&this.insert($,!0),(V.restoreStart||V.restoreEnd)&&((F=this.selection.getRange()).start.column-=V.restoreStart,F.end.column-=V.restoreEnd,this.selection.setRange(F))},this.onCommandKey=function($,V,F){return this.keyBinding.onCommandKey($,V,F)},this.setOverwrite=function($){this.session.setOverwrite($)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function($){this.setOption("scrollSpeed",$)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function($){this.setOption("dragDelay",$)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function($){this.setOption("selectionStyle",$)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function($){this.setOption("highlightActiveLine",$)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function($){this.setOption("highlightGutterLine",$)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function($){this.setOption("highlightSelectedWord",$)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function($){this.renderer.setAnimatedScroll($)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function($){this.renderer.setShowInvisibles($)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function($){this.renderer.setDisplayIndentGuides($)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function($){this.renderer.setShowPrintMargin($)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function($){this.renderer.setPrintMarginColumn($)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function($){this.setOption("readOnly",$)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function($){this.setOption("behavioursEnabled",$)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function($){this.setOption("wrapBehavioursEnabled",$)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function($){this.setOption("showFoldWidgets",$)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function($){this.setOption("fadeFoldWidgets",$)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function($){this.selection.isEmpty()&&("left"==$?this.selection.selectLeft():this.selection.selectRight());var V=this.getSelectionRange();if(this.getBehavioursEnabled()){var F=this.session,X=F.getState(V.start.row),Ce=F.getMode().transformAction(X,"deletion",this,F,V);if(0===V.end.column){var Me=F.getTextRange(V);if("\n"==Me[Me.length-1]){var Re=F.getLine(V.end.row);/^\s+$/.test(Re)&&(V.end.column=Re.length)}}Ce&&(V=Ce)}this.session.remove(V),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var $=this.getSelectionRange();$.start.column==$.end.column&&$.start.row==$.end.row&&($.end.column=0,$.end.row++),this.session.remove($),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var $=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition($)},this.transposeLetters=function(){if(this.selection.isEmpty()){var $=this.getCursorPosition(),V=$.column;if(0!==V){var X,Ce,F=this.session.getLine($.row);Vze.toLowerCase()?1:0});var Ce=new x(0,0,0,0);for(X=$.first;X<=$.last;X++){var Me=V.getLine(X);Ce.start.row=X,Ce.end.row=X,Ce.end.column=Me.length,V.replace(Ce,F[X-$.first])}},this.toggleCommentLines=function(){var $=this.session.getState(this.getCursorPosition().row),V=this.$getSelectedRows();this.session.getMode().toggleCommentLines($,this.session,V.first,V.last)},this.toggleBlockComment=function(){var $=this.getCursorPosition(),V=this.session.getState($.row),F=this.getSelectionRange();this.session.getMode().toggleBlockComment(V,this.session,F,$)},this.getNumberAt=function($,V){var F=/[\-]?[0-9]+(?:\.[0-9]+)?/g;F.lastIndex=0;for(var X=this.session.getLine($);F.lastIndex=V)return{value:Ce[0],start:Ce.index,end:Ce.index+Ce[0].length}}return null},this.modifyNumber=function($){var V=this.selection.getCursor().row,F=this.selection.getCursor().column,X=new x(V,F-1,V,F),Ce=this.session.getTextRange(X);if(!isNaN(parseFloat(Ce))&&isFinite(Ce)){var Me=this.getNumberAt(V,F);if(Me){var Re=Me.value.indexOf(".")>=0?Me.start+Me.value.indexOf(".")+1:Me.end,ze=Me.start+Me.value.length-Re,Pe=parseFloat(Me.value);Pe*=Math.pow(10,ze),Pe+=$*=Re!==Me.end&&F=Re&&Me<=ze&&(F=Tn,Pe.selection.clearSelection(),Pe.moveCursorTo($,Re+X),Pe.selection.selectTo($,ze+X)),Re=ze});for(var St,Tt=this.$toggleWordPairs,ht=0;htmt+1)break;mt=Zt.last}for(St--,ze=this.session.$moveLines(It,mt,V?0:$),V&&-1==$&&(ht=St+1);ht<=St;)Re[ht].moveBy(ze,0),ht++;V||(ze=0),Pe+=ze}Ce.fromOrientedRange(Ce.ranges[0]),Ce.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function($){return $=($||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart($.start.row),last:this.session.getRowFoldEnd($.end.row)}},this.onCompositionStart=function($){this.renderer.showComposition($)},this.onCompositionUpdate=function($){this.renderer.setCompositionText($)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function($){return $>=this.getFirstVisibleRow()&&$<=this.getLastVisibleRow()},this.isRowFullyVisible=function($){return $>=this.renderer.getFirstFullyVisibleRow()&&$<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function($,V){var F=this.renderer,X=this.renderer.layerConfig,Ce=$*Math.floor(X.height/X.lineHeight);!0===V?this.selection.$moveSelection(function(){this.moveCursorBy(Ce,0)}):!1===V&&(this.selection.moveCursorBy(Ce,0),this.selection.clearSelection());var Me=F.scrollTop;F.scrollBy(0,Ce*X.lineHeight),null!=V&&F.scrollCursorIntoView(null,.5),F.animateScrolling(Me)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function($){this.renderer.scrollToRow($)},this.scrollToLine=function($,V,F,X){this.renderer.scrollToLine($,V,F,X)},this.centerSelection=function(){var $=this.getSelectionRange(),V={row:Math.floor($.start.row+($.end.row-$.start.row)/2),column:Math.floor($.start.column+($.end.column-$.start.column)/2)};this.renderer.alignCursor(V,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function($,V){this.selection.moveCursorTo($,V)},this.moveCursorToPosition=function($){this.selection.moveCursorToPosition($)},this.jumpToMatching=function($,V){var F=this.getCursorPosition(),X=new q(this.session,F.row,F.column),Ce=X.getCurrentToken(),Me=Ce||X.stepForward();if(Me){var Re,St,ze=!1,Pe={},Tt=F.column-Me.start,ht={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(Me.value.match(/[{}()\[\]]/g)){for(;Tt=0;--Me)this.$tryReplace(F[Me],$)&&X++;return this.selection.setSelectionRange(Ce),X},this.$tryReplace=function($,V){var F=this.session.getTextRange($);return null!==(V=this.$search.replace(F,V))?($.end=this.session.replace($,V),$):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function($,V,F){V||(V={}),"string"==typeof $||$ instanceof RegExp?V.needle=$:"object"==typeof $&&he.mixin(V,$);var X=this.selection.getRange();null==V.needle&&(($=this.session.getTextRange(X)||this.$search.$options.needle)||(X=this.session.getWordRange(X.start.row,X.start.column),$=this.session.getTextRange(X)),this.$search.set({needle:$})),this.$search.set(V),V.start||this.$search.set({start:X});var Ce=this.$search.find(this.session);return V.preventScroll?Ce:Ce?(this.revealRange(Ce,F),Ce):(V.backwards?X.start=X.end:X.end=X.start,void this.selection.setRange(X))},this.findNext=function($,V){this.find({skipCurrent:!0,backwards:!1},$,V)},this.findPrevious=function($,V){this.find($,{skipCurrent:!0,backwards:!0},V)},this.revealRange=function($,V){this.session.unfold($),this.selection.setSelectionRange($);var F=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView($.start,$.end,.5),!1!==V&&this.renderer.animateScrolling(F)},this.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function($){$.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},this.setAutoScrollEditorIntoView=function($){if($){var V,F=this,X=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var Ce=this.$scrollAnchor;Ce.style.cssText="position:absolute",this.container.insertBefore(Ce,this.container.firstChild);var Me=this.on("changeSelection",function(){X=!0}),Re=this.renderer.on("beforeRender",function(){X&&(V=F.renderer.container.getBoundingClientRect())}),ze=this.renderer.on("afterRender",function(){if(X&&V&&(F.isFocused()||F.searchBox&&F.searchBox.isFocused())){var Pe=F.renderer,Tt=Pe.$cursorLayer.$pixelPos,St=Pe.layerConfig,ht=Tt.top-St.offset;null!=(X=Tt.top>=0&&ht+V.top<0||!(Tt.topwindow.innerHeight)&&null)&&(Ce.style.top=ht+"px",Ce.style.left=Tt.left+"px",Ce.style.height=St.lineHeight+"px",Ce.scrollIntoView(X)),X=V=null}});this.setAutoScrollEditorIntoView=function(Pe){Pe||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",Me),this.renderer.off("afterRender",ze),this.renderer.off("beforeRender",Re))}}},this.$resetCursorStyle=function(){var $=this.$cursorStyle||"ace",V=this.renderer.$cursorLayer;V&&(V.setSmoothBlinking(/smooth/.test($)),V.isBlinking=!this.$readOnly&&"wide"!=$,W.setCssClass(V.element,"ace_slim-cursors",/slim/.test($)))},this.prompt=function($,V,F){var X=this;K.loadModule("./ext/prompt",function(Ce){Ce.prompt(X,$,V,F)})}}.call(U.prototype),K.defineOptions(U.prototype,"editor",{selectionStyle:{set:function($){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:$})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function($){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function($){this.textInput.setReadOnly($),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function($){this.textInput.setCopyWithEmptySelection($)},initialValue:!1},cursorStyle:{set:function($){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function($){this.setAutoScrollEditorIntoView($)}},keyboardHandler:{set:function($){this.setKeyboardHandler($)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function($){this.session.setValue($)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function($){this.setSession($)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function($){this.renderer.$gutterLayer.setShowLineNumbers($),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),$&&this.$relativeLineNumbers?P.attach(this):P.detach(this)},initialValue:!0},relativeLineNumbers:{set:function($){this.$showLineNumbers&&$?P.attach(this):P.detach(this)}},placeholder:{set:function($){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var V=this.session&&(this.renderer.$composition||this.getValue());if(V&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),W.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(V||this.renderer.placeholderNode)!V&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"");else{this.renderer.on("afterRender",this.$updatePlaceholder),W.addCssClass(this.container,"ace_hasPlaceholder");var F=W.createElement("div");F.className="ace_placeholder",F.textContent=this.$placeholder||"",this.renderer.placeholderNode=F,this.renderer.content.appendChild(this.renderer.placeholderNode)}}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var P={getText:function($,V){return(Math.abs($.selection.lead.row-V)||V+1+(V<9?"\xb7":""))+""},getWidth:function($,V,F){return Math.max(V.toString().length,(F.lastRow+1).toString().length,2)*F.characterWidth},update:function($,V){V.renderer.$loop.schedule(V.renderer.CHANGE_GUTTER)},attach:function($){$.renderer.$gutterLayer.$renderer=this,$.on("changeSelection",this.update),this.update(null,$)},detach:function($){$.renderer.$gutterLayer.$renderer==this&&($.renderer.$gutterLayer.$renderer=null),$.off("changeSelection",this.update),this.update(null,$)}};ee.Editor=U}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(ve,ee,it){"use strict";var he=function(){this.$maxRev=0,this.$fromUndo=!1,this.reset()};(function(){this.addSession=function(P){this.$session=P},this.add=function(P,$,V){this.$fromUndo||P!=this.$lastDelta&&(this.$keepRedoStack||(this.$redoStack.length=0),(!1===$||!this.lastDeltas)&&(this.lastDeltas=[],this.$undoStack.push(this.lastDeltas),P.id=this.$rev=++this.$maxRev),("remove"==P.action||"insert"==P.action)&&(this.$lastDelta=P),this.lastDeltas.push(P))},this.addSelection=function(P,$){this.selections.push({value:P,rev:$||this.$rev})},this.startNewGroup=function(){return this.lastDeltas=null,this.$rev},this.markIgnored=function(P,$){null==$&&($=this.$rev+1);for(var V=this.$undoStack,F=V.length;F--;){var X=V[F][0];if(X.id<=P)break;X.id<$&&(X.ignore=!0)}this.lastDeltas=null},this.getSelection=function(P,$){for(var V=this.selections,F=V.length;F--;){var X=V[F];if(X.rev0},this.canRedo=function(){return this.$redoStack.length>0},this.bookmark=function(P){null==P&&(P=this.$rev),this.mark=P},this.isAtBookmark=function(){return this.$rev===this.mark},this.toJSON=function(){},this.fromJSON=function(){},this.hasUndo=this.canUndo,this.hasRedo=this.canRedo,this.isClean=this.isAtBookmark,this.markClean=this.bookmark,this.$prettyPrint=function(P){return P?y(P):y(this.$undoStack)+"\n---\n"+y(this.$redoStack)}}).call(he.prototype);var R=ve("./range").Range,D=R.comparePoints;function g(P){return{row:P.row,column:P.column}}function y(P){if(P=P||this,Array.isArray(P))return P.map(y).join("\n");var $="";return P.action?($="insert"==P.action?"+":"-",$+="["+P.lines+"]"):P.value&&($=Array.isArray(P.value)?P.value.map(b).join("\n"):b(P.value)),P.start&&($+=b(P)),(P.id||P.rev)&&($+="\t("+(P.id||P.rev)+")"),$}function b(P){return P.start.row+":"+P.start.column+"=>"+P.end.row+":"+P.end.column}function x(P,$){var V="insert"==P.action,F="insert"==$.action;if(V&&F)if(D($.start,P.end)>=0)Y($,P,-1);else{if(!(D($.start,P.start)<=0))return null;Y(P,$,1)}else if(V&&!F)if(D($.start,P.end)>=0)Y($,P,-1);else{if(!(D($.end,P.start)<=0))return null;Y(P,$,-1)}else if(!V&&F)if(D($.start,P.start)>=0)Y($,P,1);else{if(!(D($.start,P.start)<=0))return null;Y(P,$,1)}else if(!V&&!F)if(D($.start,P.start)>=0)Y($,P,1);else{if(!(D($.end,P.start)<=0))return null;Y(P,$,-1)}return[$,P]}function T(P,$){for(var V=P.length;V--;)for(var F=0;F<$.length;F++)if(!x(P[V],$[F])){for(;V=0?Y(P,$,-1):(D(P.start,$.start)<=0||Y(P,R.fromPoints($.start,P.start),-1),Y($,P,1));else if(!V&&F)D($.start,P.end)>=0?Y($,P,-1):(D($.start,P.start)<=0||Y($,R.fromPoints(P.start,$.start),-1),Y(P,$,1));else if(!V&&!F)if(D($.start,P.end)>=0)Y($,P,-1);else{var X,Ce;if(!(D($.end,P.start)<=0))return D(P.start,$.start)<0&&(X=P,P=q(P,$.start)),D(P.end,$.end)>0&&(Ce=q(P,$.end)),K($.end,P.start,P.end,-1),Ce&&!X&&(P.lines=Ce.lines,P.start=Ce.start,P.end=Ce.end,Ce=P),[$,X,Ce].filter(Boolean);Y(P,$,-1)}return[$,P]}function Y(P,$,V){K(P.start,$.start,$.end,V),K(P.end,$.start,$.end,V)}function K(P,$,V,F){P.row==(1==F?$:V).row&&(P.column+=F*(V.column-$.column)),P.row+=F*(V.row-$.row)}function q(P,$){var V=P.lines,F=P.end;P.end=g($);var X=P.end.row-P.start.row,Ce=V.splice(X,V.length),Me=X?$.column:$.column-P.start.column;return V.push(Ce[0].substring(0,Me)),Ce[0]=Ce[0].substr(Me),{start:g($),end:F,lines:Ce,action:P.action}}function O(P,$){$=function _(P){return{start:g(P.start),end:g(P.end),action:P.action,lines:P.lines.slice()}}($);for(var V=P.length;V--;){for(var F=P[V],X=0;Xj&&(j=(T=y.getNextFoldLine(q=T.end.row+1,T))?T.start.row:1/0),q>x){for(;this.$lines.getLength()>K+1;)this.$lines.pop();break}(Y=this.$lines.get(++K))?Y.row=q:(Y=this.$lines.createCell(q,_,this.session,g),this.$lines.push(Y)),this.$renderCell(Y,_,T,q),q++}this._signal("afterRender"),this.$updateGutterWidth(_)},this.$updateGutterWidth=function(_){var y=this.session,b=y.gutterRenderer||this.$renderer,x=y.$firstLineNumber,T=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||y.$useWrapMode)&&(T=y.getLength()+x-1);var j=b?b.getWidth(y,T,_):T.toString().length*_.characterWidth,Y=this.$padding||this.$computePadding();(j+=Y.left+Y.right)!==this.gutterWidth&&!isNaN(j)&&(this.gutterWidth=j,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",j))},this.$updateCursorRow=function(){if(this.$highlightGutterLine){var _=this.session.selection.getCursor();this.$cursorRow!==_.row&&(this.$cursorRow=_.row)}},this.updateLineHighlight=function(){if(this.$highlightGutterLine){var _=this.session.selection.cursor.row;if(this.$cursorRow=_,!this.$cursorCell||this.$cursorCell.row!=_){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var y=this.$lines.cells;this.$cursorCell=null;for(var b=0;b=this.$cursorRow){if(x.row>this.$cursorRow){var T=this.session.getFoldLine(this.$cursorRow);if(!(b>0&&T&&T.start.row==y[b-1].row))break;x=y[b-1]}x.element.className="ace_gutter-active-line "+x.element.className,this.$cursorCell=x;break}}}}},this.scrollLines=function(_){var y=this.config;if(this.config=_,this.$updateCursorRow(),this.$lines.pageChanged(y,_))return this.update(_);this.$lines.moveContainer(_);var b=Math.min(_.lastRow+_.gutterOffset,this.session.getLength()-1),x=this.oldLastRow;if(this.oldLastRow=b,!y||x<_.firstRow)return this.update(_);if(b0;T--)this.$lines.shift();if(x>b)for(T=this.session.getFoldedRowCount(b+1,x);T>0;T--)this.$lines.pop();_.firstRowx&&this.$lines.push(this.$renderLines(_,x+1,b)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(_)},this.$renderLines=function(_,y,b){for(var x=[],T=y,j=this.session.getNextFoldLine(T),Y=j?j.start.row:1/0;T>Y&&(Y=(j=this.session.getNextFoldLine(T=j.end.row+1,j))?j.start.row:1/0),!(T>b);){var K=this.$lines.createCell(T,_,this.session,g);this.$renderCell(K,_,j,T),x.push(K),T++}return x},this.$renderCell=function(_,y,b,x){var T=_.element,j=this.session,Y=T.childNodes[0],K=T.childNodes[1],q=j.$firstLineNumber,O=j.$breakpoints,U=j.$decorations,P=j.gutterRenderer||this.$renderer,$=this.$showFoldWidgets&&j.foldWidgets,V=b?b.start.row:Number.MAX_VALUE,F="ace_gutter-cell ";if(this.$highlightGutterLine&&(x==this.$cursorRow||b&&x=V&&this.$cursorRow<=b.end.row)&&(F+="ace_gutter-active-line ",this.$cursorCell!=_&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=_)),O[x]&&(F+=O[x]),U[x]&&(F+=U[x]),this.$annotations[x]&&(F+=this.$annotations[x].className),T.className!=F&&(T.className=F),$){var X=$[x];null==X&&(X=$[x]=j.getFoldWidget(x))}X?(F="ace_fold-widget ace_"+X,K.className!=(F+="start"==X&&x==V&&xb.right-y.right?"foldWidgets":void 0}}).call(v.prototype),ee.Gutter=v}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(ve,ee,it){"use strict";var he=ve("../range").Range,W=ve("../lib/dom"),R=function(D){this.element=W.createElement("div"),this.element.className="ace_layer ace_marker-layer",D.appendChild(this.element)};(function(){function D(S,v,g,_){return(S?1:0)|(v?2:0)|(g?4:0)|(_?8:0)}this.$padding=0,this.setPadding=function(S){this.$padding=S},this.setSession=function(S){this.session=S},this.setMarkers=function(S){this.markers=S},this.elt=function(S,v){var g=-1!=this.i&&this.element.childNodes[this.i];g?this.i++:(g=document.createElement("div"),this.element.appendChild(g),this.i=-1),g.style.cssText=v,g.className=S},this.update=function(S){if(S){var v;for(var g in this.config=S,this.i=0,this.markers){var _=this.markers[g];if(_.range){var y=_.range.clipRows(S.firstRow,S.lastRow);if(!y.isEmpty())if(y=y.toScreenRange(this.session),_.renderer){var b=this.$getTop(y.start.row,S);_.renderer(v,y,this.$padding+y.start.column*S.characterWidth,b,S)}else"fullLine"==_.type?this.drawFullLineMarker(v,y,_.clazz,S):"screenLine"==_.type?this.drawScreenLineMarker(v,y,_.clazz,S):y.isMultiLine()?"text"==_.type?this.drawTextMarker(v,y,_.clazz,S):this.drawMultiLineMarker(v,y,_.clazz,S):this.drawSingleLineMarker(v,y,_.clazz+" ace_start ace_br15",S)}else _.update(v,this,this.session,S)}if(-1!=this.i)for(;this.iq,j==T),_,j==T?0:1,y)},this.drawMultiLineMarker=function(S,v,g,_,y){var Y,b=this.$padding,x=_.lineHeight,T=this.$getTop(v.start.row,_),j=b+v.start.column*_.characterWidth;if(y=y||"",this.session.$bidiHandler.isBidiRow(v.start.row)?((Y=v.clone()).end.row=Y.start.row,Y.end.column=this.session.getLine(Y.start.row).length,this.drawBidiSingleLineMarker(S,Y,g+" ace_br1 ace_start",_,null,y)):this.elt(g+" ace_br1 ace_start","height:"+x+"px;right:0;top:"+T+"px;left:"+j+"px;"+(y||"")),this.session.$bidiHandler.isBidiRow(v.end.row)?((Y=v.clone()).start.row=Y.end.row,Y.start.column=0,this.drawBidiSingleLineMarker(S,Y,g+" ace_br12",_,null,y)):(T=this.$getTop(v.end.row,_),this.elt(g+" ace_br12","height:"+x+"px;width:"+v.end.column*_.characterWidth+"px;top:"+T+"px;left:"+b+"px;"+(y||""))),!((x=(v.end.row-v.start.row-1)*_.lineHeight)<=0)){T=this.$getTop(v.start.row+1,_);var q=(v.start.column?1:0)|(v.end.column?0:8);this.elt(g+(q?" ace_br"+q:""),"height:"+x+"px;right:0;top:"+T+"px;left:"+b+"px;"+(y||""))}},this.drawSingleLineMarker=function(S,v,g,_,y,b){if(this.session.$bidiHandler.isBidiRow(v.start.row))return this.drawBidiSingleLineMarker(S,v,g,_,y,b);var x=_.lineHeight,T=(v.end.column+(y||0)-v.start.column)*_.characterWidth,j=this.$getTop(v.start.row,_);this.elt(g,"height:"+x+"px;width:"+T+"px;top:"+j+"px;left:"+(this.$padding+v.start.column*_.characterWidth)+"px;"+(b||""))},this.drawBidiSingleLineMarker=function(S,v,g,_,y,b){var x=_.lineHeight,T=this.$getTop(v.start.row,_),j=this.$padding;this.session.$bidiHandler.getSelections(v.start.column,v.end.column).forEach(function(K){this.elt(g,"height:"+x+"px;width:"+K.width+(y||0)+"px;top:"+T+"px;left:"+(j+K.left)+"px;"+(b||""))},this)},this.drawFullLineMarker=function(S,v,g,_,y){var b=this.$getTop(v.start.row,_),x=_.lineHeight;v.start.row!=v.end.row&&(x+=this.$getTop(v.end.row,_)-b),this.elt(g,"height:"+x+"px;top:"+b+"px;left:0;right:0;"+(y||""))},this.drawScreenLineMarker=function(S,v,g,_,y){var b=this.$getTop(v.start.row,_);this.elt(g,"height:"+_.lineHeight+"px;top:"+b+"px;left:0;right:0;"+(y||""))}}).call(R.prototype),ee.Marker=R}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter"],function(ve,ee,it){"use strict";var he=ve("../lib/oop"),W=ve("../lib/dom"),R=ve("../lib/lang"),D=ve("./lines").Lines,S=ve("../lib/event_emitter").EventEmitter,v=function(g){this.dom=W,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",g.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new D(this.element)};(function(){he.implement(this,S),this.EOF_CHAR="\xb6",this.EOL_CHAR_LF="\xac",this.EOL_CHAR_CRLF="\xa4",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="\u2014",this.SPACE_CHAR="\xb7",this.$padding=0,this.MAX_LINE_LENGTH=1e4,this.$updateEolChar=function(){var g=this.session.doc,y="\n"==g.getNewLineCharacter()&&"windows"!=g.getNewLineMode()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=y)return this.EOL_CHAR=y,!0},this.setPadding=function(g){this.$padding=g,this.element.style.margin="0 "+g+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(g){this.$fontMetrics=g,this.$fontMetrics.on("changeCharacterSize",function(_){this._signal("changeCharacterSize",_)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(g){this.session=g,g&&this.$computeTabString()},this.showInvisibles=!1,this.showSpaces=!1,this.showTabs=!1,this.showEOL=!1,this.setShowInvisibles=function(g){return this.showInvisibles!=g&&(this.showInvisibles=g,"string"==typeof g?(this.showSpaces=/tab/i.test(g),this.showTabs=/space/i.test(g),this.showEOL=/eol/i.test(g)):this.showSpaces=this.showTabs=this.showEOL=g,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(g){return this.displayIndentGuides!=g&&(this.displayIndentGuides=g,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var g=this.session.getTabSize();this.tabSize=g;for(var _=this.$tabStrings=[0],y=1;yO&&(O=(q=this.session.getNextFoldLine(K=q.end.row+1,q))?q.start.row:1/0),!(K>x);){var U=T[j++];if(U){this.dom.removeChildren(U),this.$renderLine(U,K,K==O&&q),Y&&(U.style.top=this.$lines.computeLineTop(K,g,this.session)+"px");var P=g.lineHeight*this.session.getRowLength(K)+"px";U.style.height!=P&&(Y=!0,U.style.height=P)}K++}if(Y)for(;j0;x--)this.$lines.shift();if(_.lastRow>g.lastRow)for(x=this.session.getFoldedRowCount(g.lastRow+1,_.lastRow);x>0;x--)this.$lines.pop();g.firstRow<_.firstRow&&this.$lines.unshift(this.$renderLinesFragment(g,g.firstRow,_.firstRow-1)),g.lastRow>_.lastRow&&this.$lines.push(this.$renderLinesFragment(g,_.lastRow+1,g.lastRow))},this.$renderLinesFragment=function(g,_,y){for(var b=[],x=_,T=this.session.getNextFoldLine(x),j=T?T.start.row:1/0;x>j&&(j=(T=this.session.getNextFoldLine(x=T.end.row+1,T))?T.start.row:1/0),!(x>y);){var Y=this.$lines.createCell(x,g,this.session),K=Y.element;this.dom.removeChildren(K),W.setStyle(K.style,"height",this.$lines.computeLineHeight(x,g,this.session)+"px"),W.setStyle(K.style,"top",this.$lines.computeLineTop(x,g,this.session)+"px"),this.$renderLine(K,x,x==j&&T),K.className=this.$useLineGroups()?"ace_line_group":"ace_line",b.push(Y),x++}return b},this.update=function(g){this.$lines.moveContainer(g),this.config=g;for(var _=g.firstRow,y=g.lastRow,b=this.$lines;b.getLength();)b.pop();b.push(this.$renderLinesFragment(g,_,y))},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(g,_,y,b){for(var Y,x=this,T=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,j=this.dom.createFragment(this.element),K=0;Y=T.exec(b);){var q=Y[1],O=Y[2],U=Y[3],P=Y[4],$=Y[5];if(x.showSpaces||!O){var V=K!=Y.index?b.slice(K,Y.index):"";if(K=Y.index+Y[0].length,V&&j.appendChild(this.dom.createTextNode(V,this.element)),q){var F=x.session.getScreenTabSize(_+Y.index);j.appendChild(x.$tabStrings[F].cloneNode(!0)),_+=F-1}else O?x.showSpaces?((X=this.dom.createElement("span")).className="ace_invisible ace_invisible_space",X.textContent=R.stringRepeat(x.SPACE_CHAR,O.length),j.appendChild(X)):j.appendChild(this.com.createTextNode(O,this.element)):U?((X=this.dom.createElement("span")).className="ace_invisible ace_invisible_space ace_invalid",X.textContent=R.stringRepeat(x.SPACE_CHAR,U.length),j.appendChild(X)):P?(_+=1,(X=this.dom.createElement("span")).style.width=2*x.config.characterWidth+"px",X.className=x.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",X.textContent=x.showSpaces?x.SPACE_CHAR:P,j.appendChild(X)):$&&(_+=1,(X=this.dom.createElement("span")).style.width=2*x.config.characterWidth+"px",X.className="ace_cjk",X.textContent=$,j.appendChild(X))}}if(j.appendChild(this.dom.createTextNode(K?b.slice(K):b,this.element)),this.$textToken[y.type])g.appendChild(j);else{var Ce="ace_"+y.type.replace(/\./g," ace_"),X=this.dom.createElement("span");"fold"==y.type&&(X.style.width=y.value.length*this.config.characterWidth+"px"),X.className=Ce,X.appendChild(j),g.appendChild(X)}return _+b.length},this.renderIndentGuide=function(g,_,y){var b=_.search(this.$indentGuideRe);if(b<=0||b>=y)return _;if(" "==_[0]){for(var x=(b-=b%this.tabSize)/this.tabSize,T=0;T=T;)j=this.$renderToken(Y,j,q,O.substring(0,T-b)),O=O.substring(T-b),b=T,Y=this.$createLineElement(),g.appendChild(Y),Y.appendChild(this.dom.createTextNode(R.stringRepeat("\xa0",y.indent),this.element)),j=0,T=y[++x]||Number.MAX_VALUE;0!=O.length&&(b+=O.length,j=this.$renderToken(Y,j,q,O))}}y[y.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(Y,j,null,"",!0)},this.$renderSimpleLine=function(g,_){var y=0,b=_[0],x=b.value;this.displayIndentGuides&&(x=this.renderIndentGuide(g,x)),x&&(y=this.$renderToken(g,y,b,x));for(var T=1;T<_.length;T++){if(y+(x=(b=_[T]).value).length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(g,y,b,x);y=this.$renderToken(g,y,b,x)}},this.$renderOverflowMessage=function(g,_,y,b,x){y&&this.$renderToken(g,_,y,b.slice(0,this.MAX_LINE_LENGTH-_));var T=this.dom.createElement("span");T.className="ace_inline_button ace_keyword ace_toggle_wrap",T.textContent=x?"":"",g.appendChild(T)},this.$renderLine=function(g,_,y){if(!y&&0!=y&&(y=this.session.getFoldLine(_)),y)var b=this.$getFoldLineTokens(_,y);else b=this.session.getTokens(_);var x=g;if(b.length){var T=this.session.getRowSplitData(_);T&&T.length?(this.$renderWrappedLine(g,b,T),x=g.lastChild):(x=g,this.$useLineGroups()&&(x=this.$createLineElement(),g.appendChild(x)),this.$renderSimpleLine(x,b))}else this.$useLineGroups()&&(x=this.$createLineElement(),g.appendChild(x));if(this.showEOL&&x){y&&(_=y.end.row);var j=this.dom.createElement("span");j.className="ace_invisible ace_invisible_eol",j.textContent=_==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,x.appendChild(j)}},this.$getFoldLineTokens=function(g,_){var y=this.session,b=[],T=y.getTokens(g);return _.walk(function(j,Y,K,q,O){null!=j?b.push({type:"fold",value:j}):(O&&(T=y.getTokens(Y)),T.length&&function x(j,Y,K){for(var q=0,O=0;O+j[q].value.lengthK-Y&&(U=U.substring(0,K-Y)),b.push({type:j[q].type,value:U}),O=Y+U.length,q+=1);OK?{type:j[q].type,value:U.substring(0,K-O)}:j[q]),O+=U.length,q+=1}}(T,q,K))},_.end.row,this.session.getLine(_.end.row).length),b},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(v.prototype),ee.Text=v}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(ve,ee,it){"use strict";var he=ve("../lib/dom"),W=function(R){this.element=he.createElement("div"),this.element.className="ace_layer ace_cursor-layer",R.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),he.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)};(function(){this.$updateOpacity=function(R){for(var D=this.cursors,S=D.length;S--;)he.setStyle(D[S].style,"opacity",R?"":"0")},this.$startCssAnimation=function(){for(var R=this.cursors,D=R.length;D--;)R[D].style.animationDuration=this.blinkInterval+"ms";setTimeout(function(){he.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){he.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(R){this.$padding=R},this.setSession=function(R){this.session=R},this.setBlinking=function(R){R!=this.isBlinking&&(this.isBlinking=R,this.restartTimer())},this.setBlinkInterval=function(R){R!=this.blinkInterval&&(this.blinkInterval=R,this.restartTimer())},this.setSmoothBlinking=function(R){R!=this.smoothBlinking&&(this.smoothBlinking=R,he.setCssClass(this.element,"ace_smooth-blinking",R),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var R=he.createElement("div");return R.className="ace_cursor",this.element.appendChild(R),this.cursors.push(R),R},this.removeCursor=function(){if(this.cursors.length>1){var R=this.cursors.pop();return R.parentNode.removeChild(R),R}},this.hideCursor=function(){this.isVisible=!1,he.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,he.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var R=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&he.removeCssClass(this.element,"ace_smooth-blinking"),R(!0),this.isBlinking&&this.blinkInterval&&this.isVisible)if(this.smoothBlinking&&setTimeout(function(){he.addCssClass(this.element,"ace_smooth-blinking")}.bind(this)),he.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var D=function(){this.timeoutId=setTimeout(function(){R(!1)},.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval(function(){R(!0),D()},this.blinkInterval),D()}else this.$stopCssAnimation()},this.getPixelPosition=function(R,D){if(!this.config||!this.session)return{left:0,top:0};R||(R=this.session.selection.getCursor());var S=this.session.documentToScreenPosition(R);return{left:this.$padding+(this.session.$bidiHandler.isBidiRow(S.row,R.row)?this.session.$bidiHandler.getPosLeft(S.column):S.column*this.config.characterWidth),top:(S.row-(D?this.config.firstRowScreen:0))*this.config.lineHeight}},this.isCursorInView=function(R,D){return R.top>=0&&R.topR.height+R.offset||_.top<0)&&S>1)){var y=this.cursors[v++]||this.addCursor(),b=y.style;this.drawCursor?this.drawCursor(y,_,R,D[S],this.session):this.isCursorInView(_,R)?(he.setStyle(b,"display","block"),he.translate(y,_.left,_.top),he.setStyle(b,"width",Math.round(R.characterWidth)+"px"),he.setStyle(b,"height",R.lineHeight+"px")):he.setStyle(b,"display","none")}}for(;this.cursors.length>v;)this.removeCursor();var x=this.session.getOverwrite();this.$setOverwrite(x),this.$pixelPos=_,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(R){R!=this.overwrite&&(this.overwrite=R,R?he.addCssClass(this.element,"ace_overwrite-cursors"):he.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(W.prototype),ee.Cursor=W}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(ve,ee,it){"use strict";var he=ve("./lib/oop"),W=ve("./lib/dom"),R=ve("./lib/event"),D=ve("./lib/event_emitter").EventEmitter,S=32768,v=function(y){this.element=W.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=W.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent="\xa0",this.element.appendChild(this.inner),y.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,R.addListener(this.element,"scroll",this.onScroll.bind(this)),R.addListener(this.element,"mousedown",R.preventDefault)};(function(){he.implement(this,D),this.setVisible=function(y){this.element.style.display=y?"":"none",this.isVisible=y,this.coeff=1}}).call(v.prototype);var g=function(y,b){v.call(this,y),this.scrollTop=0,this.scrollHeight=0,b.$scrollbarWidth=this.width=W.scrollbarWidth(y.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};he.inherits(g,v),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var y=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-y)/(this.coeff-y)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(y){this.element.style.height=y+"px"},this.setInnerHeight=this.setScrollHeight=function(y){this.scrollHeight=y,y>S?(this.coeff=S/y,y=S):1!=this.coeff&&(this.coeff=1),this.inner.style.height=y+"px"},this.setScrollTop=function(y){this.scrollTop!=y&&(this.skipEvent=!0,this.scrollTop=y,this.element.scrollTop=y*this.coeff)}}.call(g.prototype);var _=function(y,b){v.call(this,y),this.scrollLeft=0,this.height=b.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};he.inherits(_,v),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(y){this.element.style.width=y+"px"},this.setInnerWidth=function(y){this.inner.style.width=y+"px"},this.setScrollWidth=function(y){this.inner.style.width=y+"px"},this.setScrollLeft=function(y){this.scrollLeft!=y&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=y)}}.call(_.prototype),ee.ScrollBar=g,ee.ScrollBarV=g,ee.ScrollBarH=_,ee.VScrollBar=g,ee.HScrollBar=_}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(ve,ee,it){"use strict";var he=ve("./lib/event"),W=function(R,D){this.onRender=R,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=D||window;var S=this;this._flush=function(v){S.pending=!1;var g=S.changes;if(g&&(he.blockIdle(100),S.changes=0,S.onRender(g)),S.changes){if(S.$recursionLimit--<0)return;S.schedule()}else S.$recursionLimit=2}};(function(){this.schedule=function(R){this.changes=this.changes|R,this.changes&&!this.pending&&(he.nextFrame(this._flush),this.pending=!0)},this.clear=function(R){var D=this.changes;return this.changes=0,D}}).call(W.prototype),ee.RenderLoop=W}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(ve,ee,it){var he=ve("../lib/oop"),W=ve("../lib/dom"),R=ve("../lib/lang"),D=ve("../lib/event"),S=ve("../lib/useragent"),v=ve("../lib/event_emitter").EventEmitter,g=256,_="function"==typeof ResizeObserver,y=200,b=ee.FontMetrics=function(x){this.el=W.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=W.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=W.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),x.appendChild(this.el),this.$measureNode.textContent=R.stringRepeat("X",g),this.$characterSize={width:0,height:0},_?this.$addObserver():this.checkForSizeChanges()};(function(){he.implement(this,v),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(x,T){x.width=x.height="auto",x.left=x.top="0px",x.visibility="hidden",x.position="absolute",x.whiteSpace="pre",S.isIE<8?x["font-family"]="inherit":x.font="inherit",x.overflow=T?"hidden":"visible"},this.checkForSizeChanges=function(x){if(void 0===x&&(x=this.$measureSizes()),x&&(this.$characterSize.width!==x.width||this.$characterSize.height!==x.height)){this.$measureNode.style.fontWeight="bold";var T=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=x,this.charSizes=Object.create(null),this.allowBoldFonts=T&&T.width===x.width&&T.height===x.height,this._emit("changeCharacterSize",{data:x})}},this.$addObserver=function(){var x=this;this.$observer=new window.ResizeObserver(function(T){x.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var x=this;return this.$pollSizeChangesTimer=D.onIdle(function T(){x.checkForSizeChanges(),D.onIdle(T,500)},500)},this.setPolling=function(x){x?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(x){var T={height:(x||this.$measureNode).clientHeight,width:(x||this.$measureNode).clientWidth/g};return 0===T.width||0===T.height?null:T},this.$measureCharWidth=function(x){return this.$main.textContent=R.stringRepeat(x,g),this.$main.getBoundingClientRect().width/g},this.getCharacterWidth=function(x){var T=this.charSizes[x];return void 0===T&&(T=this.charSizes[x]=this.$measureCharWidth(x)/this.$characterSize.width),T},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function x(T){return T&&T.parentElement?(window.getComputedStyle(T).zoom||1)*x(T.parentElement):1},this.$initTransformMeasureNodes=function(){var x=function(T,j){return["div",{style:"position: absolute;top:"+T+"px;left:"+j+"px;"}]};this.els=W.buildDom([x(0,0),x(y,0),x(0,y),x(y,y)],this.el)},this.transformCoordinates=function(x,T){function Y(ht,It,mt){var Zt=ht[1]*It[0]-ht[0]*It[1];return[(-It[1]*mt[0]+It[0]*mt[1])/Zt,(+ht[1]*mt[0]-ht[0]*mt[1])/Zt]}function K(ht,It){return[ht[0]-It[0],ht[1]-It[1]]}function q(ht,It){return[ht[0]+It[0],ht[1]+It[1]]}function O(ht,It){return[ht*It[0],ht*It[1]]}function U(ht){var It=ht.getBoundingClientRect();return[It.left,It.top]}x&&(x=O(1/this.$getZoom(this.el),x)),this.els||this.$initTransformMeasureNodes();var P=U(this.els[0]),$=U(this.els[1]),V=U(this.els[2]),F=U(this.els[3]),X=Y(K(F,$),K(F,V),K(q($,V),q(F,P))),Ce=O(1+X[0],K($,P)),Me=O(1+X[1],K(V,P));if(T){var Re=T,ze=X[0]*Re[0]/y+X[1]*Re[1]/y+1,Pe=q(O(Re[0],Ce),O(Re[1],Me));return q(O(1/ze/y,Pe),P)}var Tt=K(x,P),St=Y(K(Ce,O(X[0],Tt)),K(Me,O(X[1],Tt)),Tt);return O(y,St)}}).call(b.prototype)}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/lib/useragent"],function(ve,ee,it){"use strict";var he=ve("./lib/oop"),W=ve("./lib/dom"),R=ve("./config"),D=ve("./layer/gutter").Gutter,S=ve("./layer/marker").Marker,v=ve("./layer/text").Text,g=ve("./layer/cursor").Cursor,_=ve("./scrollbar").HScrollBar,y=ve("./scrollbar").VScrollBar,b=ve("./renderloop").RenderLoop,x=ve("./layer/font_metrics").FontMetrics,T=ve("./lib/event_emitter").EventEmitter,j='.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_editor {position: relative;overflow: hidden;padding: 0;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;box-sizing: border-box;min-width: 100%;contain: style size layout;font-variant-ligatures: no-common-ligatures;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;contain: style size layout;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {position: absolute;top: 0;left: 0;right: 0;padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {contain: strict;position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;contain: strict;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: transparent;color: inherit;z-index: 1000;opacity: 1;}.ace_composition_placeholder { color: transparent }.ace_composition_marker { border-bottom: 1px solid;position: absolute;border-radius: 0;margin-top: 1px;}[ace_nocontext=true] {transform: none!important;filter: none!important;clip-path: none!important;mask : none!important;contain: none!important;perspective: none!important;mix-blend-mode: initial!important;z-index: auto;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;height: 1000000px;contain: style size layout;}.ace_text-layer {font: inherit !important;position: absolute;height: 1000000px;width: 1000000px;contain: style size layout;}.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {contain: style size layout;position: absolute;top: 0;left: 0;right: 0;}.ace_hidpi .ace_text-layer,.ace_hidpi .ace_gutter-layer,.ace_hidpi .ace_content,.ace_hidpi .ace_gutter {contain: strict;will-change: transform;}.ace_hidpi .ace_text-layer > .ace_line, .ace_hidpi .ace_text-layer > .ace_line_group {contain: strict;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {opacity: 0;}.ace_smooth-blinking .ace_cursor {transition: opacity 0.18s;}.ace_animate-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: step-end;animation-name: blink-ace-animate;animation-iteration-count: infinite;}.ace_animate-blinking.ace_smooth-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: ease-in-out;animation-name: blink-ace-animate-smooth;}@keyframes blink-ace-animate {from, to { opacity: 1; }60% { opacity: 0; }}@keyframes blink-ace-animate-smooth {from, to { opacity: 1; }45% { opacity: 1; }60% { opacity: 0; }85% { opacity: 0; }}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_error_bracket {position: absolute;border-bottom: 1px solid #DE5555;border-radius: 0;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;box-sizing: border-box;}.ace_line .ace_fold {box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_inline_button {border: 1px solid lightgray;display: inline-block;margin: -1px 8px;padding: 0 5px;pointer-events: auto;cursor: pointer;}.ace_inline_button:hover {border-color: gray;background: rgba(200,200,200,0.2);display: inline-block;pointer-events: auto;}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_mobile-menu {position: absolute;line-height: 1.5;border-radius: 4px;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;background: white;box-shadow: 1px 3px 2px grey;border: 1px solid #dcdcdc;color: black;}.ace_dark > .ace_mobile-menu {background: #333;color: #ccc;box-shadow: 1px 3px 2px grey;border: 1px solid #444;}.ace_mobile-button {padding: 2px;cursor: pointer;overflow: hidden;}.ace_mobile-button:hover {background-color: #eee;opacity:1;}.ace_mobile-button:active {background-color: #ddd;}.ace_placeholder {font-family: arial;transform: scale(0.9);transform-origin: left;white-space: pre;opacity: 0.7;margin: 0 10px;}',Y=ve("./lib/useragent"),K=Y.isIE;W.importCssString(j,"ace_editor.css");var q=function(O,U){var P=this;this.container=O||W.createElement("div"),W.addCssClass(this.container,"ace_editor"),W.HI_DPI&&W.addCssClass(this.container,"ace_hidpi"),this.setTheme(U),this.$gutter=W.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=W.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=W.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new D(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new S(this.content);var $=this.$textLayer=new v(this.content);this.canvas=$.element,this.$markerFront=new S(this.content),this.$cursorLayer=new g(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new y(this.container,this),this.scrollBarH=new _(this.container,this),this.scrollBarV.on("scroll",function(V){P.$scrollAnimation||P.session.setScrollTop(V.data-P.scrollMargin.top)}),this.scrollBarH.on("scroll",function(V){P.$scrollAnimation||P.session.setScrollLeft(V.data-P.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new x(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(V){P.updateCharacterSize(),P.onResize(!0,P.gutterWidth,P.$size.width,P.$size.height),P._signal("changeCharacterSize",V)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!Y.isIOS,this.$loop=new b(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),R.resetOptions(this),R._signal("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,he.implement(this,T),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),W.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},this.setSession=function(O){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=O,O&&this.scrollMargin.top&&O.getScrollTop()<=0&&O.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(O),this.$markerBack.setSession(O),this.$markerFront.setSession(O),this.$gutterLayer.setSession(O),this.$textLayer.setSession(O),O&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(O,U,P){if(void 0===U&&(U=1/0),this.$changedLines?(this.$changedLines.firstRow>O&&(this.$changedLines.firstRow=O),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(O){O?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(O,U,P,$){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=O?1:0;var V=this.container;$||($=V.clientHeight||V.scrollHeight),P||(P=V.clientWidth||V.scrollWidth);var F=this.$updateCachedSize(O,U,P,$);if(!this.$size.scrollerHeight||!P&&!$)return this.resizing=0;O&&(this.$gutterLayer.$padding=null),O?this.$renderChanges(F|this.$changes,!0):this.$loop.schedule(F|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarV.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(O,U,P,$){var V=0,F=this.$size,X={width:F.width,height:F.height,scrollerHeight:F.scrollerHeight,scrollerWidth:F.scrollerWidth};if(($-=this.$extraHeight||0)&&(O||F.height!=$)&&(F.height=$,V|=this.CHANGE_SIZE,F.scrollerHeight=F.height,this.$horizScroll&&(F.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",V|=this.CHANGE_SCROLL),P&&(O||F.width!=P)){V|=this.CHANGE_SIZE,F.width=P,null==U&&(U=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=U,W.setStyle(this.scrollBarH.element.style,"left",U+"px"),W.setStyle(this.scroller.style,"left",U+this.margin.left+"px"),F.scrollerWidth=Math.max(0,P-U-this.scrollBarV.getWidth()-this.margin.h),W.setStyle(this.$gutter.style,"left",this.margin.left+"px");var Ce=this.scrollBarV.getWidth()+"px";W.setStyle(this.scrollBarH.element.style,"right",Ce),W.setStyle(this.scroller.style,"right",Ce),W.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||O)&&(V|=this.CHANGE_FULL)}return F.$dirty=!P||!$,V&&this._signal("resize",X),V},this.onGutterResize=function(O){var U=this.$showGutter?O:0;U!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,U,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},this.adjustWrapLimit=function(){var U=Math.floor((this.$size.scrollerWidth-2*this.$padding)/this.characterWidth);return this.session.adjustWrapLimit(U,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(O){this.setOption("animatedScroll",O)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(O){this.setOption("showInvisibles",O),this.session.$bidiHandler.setShowInvisibles(O)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(O){this.setOption("displayIndentGuides",O)},this.setShowPrintMargin=function(O){this.setOption("showPrintMargin",O)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(O){this.setOption("printMarginColumn",O)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(O){return this.setOption("showGutter",O)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(O){this.setOption("fadeFoldWidgets",O)},this.setHighlightGutterLine=function(O){this.setOption("highlightGutterLine",O)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var O=W.createElement("div");O.className="ace_layer ace_print-margin-layer",this.$printMarginEl=W.createElement("div"),this.$printMarginEl.className="ace_print-margin",O.appendChild(this.$printMarginEl),this.content.insertBefore(O,this.content.firstChild)}var U=this.$printMarginEl.style;U.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",U.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var O=this.textarea.style,U=this.$composition;if(!this.$keepTextAreaAtCursor&&!U)return void W.translate(this.textarea,-100,0);var P=this.$cursorLayer.$pixelPos;if(P){U&&U.markerRange&&(P=this.$cursorLayer.getPixelPosition(U.markerRange.start,!0));var $=this.layerConfig,V=P.top,F=P.left,X=U&&U.useTextareaForIME?this.lineHeight:K?0:1;if((V-=$.offset)<0||V>$.height-X)return void W.translate(this.textarea,0,0);var Ce=1,Me=this.$size.height-X;U?U.useTextareaForIME?Ce=this.characterWidth*this.session.$getStringScreenWidth(this.textarea.value)[0]:V+=this.lineHeight+2:V+=this.lineHeight,(F-=this.scrollLeft)>this.$size.scrollerWidth-Ce&&(F=this.$size.scrollerWidth-Ce),F+=this.gutterWidth+this.margin.left,W.setStyle(O,"height",X+"px"),W.setStyle(O,"width",Ce+"px"),W.translate(this.textarea,Math.min(F,this.$size.scrollerWidth-Ce),Math.min(V,Me))}}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var O=this.layerConfig,U=O.lastRow;return this.session.documentToScreenRow(U,0)*O.lineHeight-this.session.getScrollTop()>O.height-O.lineHeight?U-1:U},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(O){this.$padding=O,this.$textLayer.setPadding(O),this.$cursorLayer.setPadding(O),this.$markerFront.setPadding(O),this.$markerBack.setPadding(O),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(O,U,P,$){var V=this.scrollMargin;V.top=0|O,V.bottom=0|U,V.right=0|$,V.left=0|P,V.v=V.top+V.bottom,V.h=V.left+V.right,V.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-V.top),this.updateFull()},this.setMargin=function(O,U,P,$){var V=this.margin;V.top=0|O,V.bottom=0|U,V.right=0|$,V.left=0|P,V.v=V.top+V.bottom,V.h=V.left+V.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(O){this.setOption("hScrollBarAlwaysVisible",O)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(O){this.setOption("vScrollBarAlwaysVisible",O)},this.$updateScrollBarV=function(){var O=this.layerConfig.maxHeight,U=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&this.scrollTop>(O-=(U-this.lineHeight)*this.$scrollPastEnd)-U&&(O=this.scrollTop+U,this.scrollBarV.scrollTop=null),this.scrollBarV.setScrollHeight(O+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(O,U){if(this.$changes&&(O|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(O||U)){if(this.$size.$dirty)return this.$changes|=O,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",O),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var P=this.layerConfig;if(O&this.CHANGE_FULL||O&this.CHANGE_SIZE||O&this.CHANGE_TEXT||O&this.CHANGE_LINES||O&this.CHANGE_SCROLL||O&this.CHANGE_H_SCROLL){if(O|=this.$computeLayerConfig()|this.$loop.clear(),P.firstRow!=this.layerConfig.firstRow&&P.firstRowScreen==this.layerConfig.firstRowScreen){var $=this.scrollTop+(P.firstRow-this.layerConfig.firstRow)*this.lineHeight;$>0&&(this.scrollTop=$,O|=this.CHANGE_SCROLL,O|=this.$computeLayerConfig()|this.$loop.clear())}P=this.layerConfig,this.$updateScrollBarV(),O&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),W.translate(this.content,-this.scrollLeft,-P.offset);var F=P.minHeight+"px";W.setStyle(this.content.style,"width",P.width+2*this.$padding+"px"),W.setStyle(this.content.style,"height",F)}return O&this.CHANGE_H_SCROLL&&(W.translate(this.content,-this.scrollLeft,-P.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),O&this.CHANGE_FULL?(this.$changedLines=null,this.$textLayer.update(P),this.$showGutter&&this.$gutterLayer.update(P),this.$markerBack.update(P),this.$markerFront.update(P),this.$cursorLayer.update(P),this.$moveTextAreaToCursor(),void this._signal("afterRender",O)):O&this.CHANGE_SCROLL?(this.$changedLines=null,O&this.CHANGE_TEXT||O&this.CHANGE_LINES?this.$textLayer.update(P):this.$textLayer.scrollLines(P),this.$showGutter&&(O&this.CHANGE_GUTTER||O&this.CHANGE_LINES?this.$gutterLayer.update(P):this.$gutterLayer.scrollLines(P)),this.$markerBack.update(P),this.$markerFront.update(P),this.$cursorLayer.update(P),this.$moveTextAreaToCursor(),void this._signal("afterRender",O)):(O&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(P),this.$showGutter&&this.$gutterLayer.update(P)):O&this.CHANGE_LINES?(this.$updateLines()||O&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(P):O&this.CHANGE_TEXT||O&this.CHANGE_GUTTER?this.$showGutter&&this.$gutterLayer.update(P):O&this.CHANGE_CURSOR&&this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(P),O&this.CHANGE_CURSOR&&(this.$cursorLayer.update(P),this.$moveTextAreaToCursor()),O&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(P),O&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(P),void this._signal("afterRender",O))}this.$changes|=O},this.$autosize=function(){var O=this.session.getScreenLength()*this.lineHeight,U=this.$maxLines*this.lineHeight,P=Math.min(U,Math.max((this.$minLines||1)*this.lineHeight,O))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(P+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&P>this.$maxPixelHeight&&(P=this.$maxPixelHeight);var V=!(P<=2*this.lineHeight)&&O>U;if(P!=this.desiredHeight||this.$size.height!=this.desiredHeight||V!=this.$vScroll){V!=this.$vScroll&&(this.$vScroll=V,this.scrollBarV.setVisible(V));var F=this.container.clientWidth;this.container.style.height=P+"px",this.$updateCachedSize(!0,this.$gutterWidth,F,P),this.desiredHeight=P,this._signal("autosize")}},this.$computeLayerConfig=function(){var O=this.session,U=this.$size,P=U.height<=2*this.lineHeight,V=this.session.getScreenLength()*this.lineHeight,F=this.$getLongestLine(),X=!P&&(this.$hScrollBarAlwaysVisible||U.scrollerWidth-F-2*this.$padding<0),Ce=this.$horizScroll!==X;Ce&&(this.$horizScroll=X,this.scrollBarH.setVisible(X));var Me=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var Re=U.scrollerHeight+this.lineHeight,ze=!this.$maxLines&&this.$scrollPastEnd?(U.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;V+=ze;var Pe=this.scrollMargin;this.session.setScrollTop(Math.max(-Pe.top,Math.min(this.scrollTop,V-U.scrollerHeight+Pe.bottom))),this.session.setScrollLeft(Math.max(-Pe.left,Math.min(this.scrollLeft,F+2*this.$padding-U.scrollerWidth+Pe.right)));var Tt=!P&&(this.$vScrollBarAlwaysVisible||U.scrollerHeight-V+ze<0||this.scrollTop>Pe.top),St=Me!==Tt;St&&(this.$vScroll=Tt,this.scrollBarV.setVisible(Tt));var At,pn,ht=this.scrollTop%this.lineHeight,It=Math.ceil(Re/this.lineHeight)-1,mt=Math.max(0,Math.round((this.scrollTop-ht)/this.lineHeight)),Zt=mt+It,Tn=this.lineHeight;mt=O.screenToDocumentRow(mt,0);var Vn=O.getFoldLine(mt);Vn&&(mt=Vn.start.row),At=O.documentToScreenRow(mt,0),pn=O.getRowLength(mt)*Tn,Zt=Math.min(O.screenToDocumentRow(Zt,0),O.getLength()-1),Re=U.scrollerHeight+O.getRowLength(Zt)*Tn+pn,ht=this.scrollTop-At*Tn;var wi=0;return(this.layerConfig.width!=F||Ce)&&(wi=this.CHANGE_H_SCROLL),(Ce||St)&&(wi|=this.$updateCachedSize(!0,this.gutterWidth,U.width,U.height),this._signal("scrollbarVisibilityChanged"),St&&(F=this.$getLongestLine())),this.layerConfig={width:F,padding:this.$padding,firstRow:mt,firstRowScreen:At,lastRow:Zt,lineHeight:Tn,characterWidth:this.characterWidth,minHeight:Re,maxHeight:V,offset:ht,gutterOffset:Tn?Math.max(0,Math.ceil((ht+U.height-U.scrollerHeight)/Tn)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(F-this.$padding),wi},this.$updateLines=function(){if(this.$changedLines){var O=this.$changedLines.firstRow,U=this.$changedLines.lastRow;this.$changedLines=null;var P=this.layerConfig;if(!(O>P.lastRow+1||Uthis.$textLayer.MAX_LINE_LENGTH&&(O=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(O*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(O,U){this.$gutterLayer.addGutterDecoration(O,U)},this.removeGutterDecoration=function(O,U){this.$gutterLayer.removeGutterDecoration(O,U)},this.updateBreakpoints=function(O){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(O){this.$gutterLayer.setAnnotations(O),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(O,U,P){this.scrollCursorIntoView(O,P),this.scrollCursorIntoView(U,P)},this.scrollCursorIntoView=function(O,U,P){if(0!==this.$size.scrollerHeight){var $=this.$cursorLayer.getPixelPosition(O),V=$.left,F=$.top,X=P&&P.top||0,Ce=P&&P.bottom||0,Me=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;Me+X>F?(U&&Me+X>F+this.lineHeight&&(F-=U*this.$size.scrollerHeight),0===F&&(F=-this.scrollMargin.top),this.session.setScrollTop(F)):Me+this.$size.scrollerHeight-CeV?(V=1-this.scrollMargin.top||U>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||O<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||O>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},this.pixelToScreenCoordinates=function(O,U){var P;if(this.$hasCssTransforms){P={top:0,left:0};var $=this.$fontMetrics.transformCoordinates([O,U]);O=$[1]-this.gutterWidth-this.margin.left,U=$[0]}else P=this.scroller.getBoundingClientRect();var V=O+this.scrollLeft-P.left-this.$padding,F=V/this.characterWidth,X=Math.floor((U+this.scrollTop-P.top)/this.lineHeight),Ce=this.$blockCursor?Math.floor(F):Math.round(F);return{row:X,column:Ce,side:F-Ce>0?1:-1,offsetX:V}},this.screenToTextCoordinates=function(O,U){var P;if(this.$hasCssTransforms){P={top:0,left:0};var $=this.$fontMetrics.transformCoordinates([O,U]);O=$[1]-this.gutterWidth-this.margin.left,U=$[0]}else P=this.scroller.getBoundingClientRect();var V=O+this.scrollLeft-P.left-this.$padding,F=V/this.characterWidth,X=this.$blockCursor?Math.floor(F):Math.round(F),Ce=Math.floor((U+this.scrollTop-P.top)/this.lineHeight);return this.session.screenToDocumentPosition(Ce,Math.max(X,0),V)},this.textToScreenCoordinates=function(O,U){var P=this.scroller.getBoundingClientRect(),$=this.session.documentToScreenPosition(O,U),V=this.$padding+(this.session.$bidiHandler.isBidiRow($.row,O)?this.session.$bidiHandler.getPosLeft($.column):Math.round($.column*this.characterWidth));return{pageX:P.left+V-this.scrollLeft,pageY:P.top+$.row*this.lineHeight-this.scrollTop}},this.visualizeFocus=function(){W.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){W.removeCssClass(this.container,"ace_focus")},this.showComposition=function(O){this.$composition=O,O.cssText||(O.cssText=this.textarea.style.cssText),null==O.useTextareaForIME&&(O.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(W.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):O.markerId=this.session.addMarker(O.markerRange,"ace_composition_marker","text")},this.setCompositionText=function(O){var U=this.session.selection.cursor;this.addToken(O,"composition_placeholder",U.row,U.column),this.$moveTextAreaToCursor()},this.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),W.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var O=this.session.selection.cursor;this.removeExtraToken(O.row,O.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},this.addToken=function(O,U,P,$){var V=this.session;V.bgTokenizer.lines[P]=null;var F={type:U,value:O},X=V.getTokens(P);if(null==$)X.push(F);else for(var Ce=0,Me=0;Me"u")return{postMessage:function(){},terminate:function(){}};if(D.get("loadWorkerFromBlob")){var b=function S(y){var b="importScripts('"+W.qualifyURL(y)+"');";try{return new Blob([b],{type:"application/javascript"})}catch{var T=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder);return T.append(b),T.getBlob("application/javascript")}}(y),T=(window.URL||window.webkitURL).createObjectURL(b);return new Worker(T)}return new Worker(y)}var g=function(y){y.postMessage||(y=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=y,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){he.implement(this,R),this.$createWorkerFromOldConfig=function(y,b,x,T,j){if(ve.nameToUrl&&!ve.toUrl&&(ve.toUrl=ve.nameToUrl),D.get("packaged")||!ve.toUrl)T=T||D.moduleUrl(b,"worker");else{var Y=this.$normalizePath;T=T||Y(ve.toUrl("ace/worker/worker.js",null,"_"));var K={};y.forEach(function(q){K[q]=Y(ve.toUrl(q,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=v(T),j&&this.send("importScripts",j),this.$worker.postMessage({init:!0,tlns:K,module:b,classname:x}),this.$worker},this.onMessage=function(y){var b=y.data;switch(b.type){case"event":this._signal(b.name,{data:b.data});break;case"call":var x=this.callbacks[b.id];x&&(x(b.data),delete this.callbacks[b.id]);break;case"error":this.reportError(b.data);break;case"log":window.console&&console.log&&console.log.apply(console,b.data)}},this.reportError=function(y){window.console&&console.error&&console.error(y)},this.$normalizePath=function(y){return W.qualifyURL(y)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(y,b){this.$worker.postMessage({command:y,args:b})},this.call=function(y,b,x){if(x){var T=this.callbackId++;this.callbacks[T]=x,b.push(T)}this.send(y,b)},this.emit=function(y,b){try{b.data&&b.data.err&&(b.data.err={message:b.data.err.message,stack:b.data.err.stack,code:b.data.err.code}),this.$worker.postMessage({event:y,data:{data:b.data}})}catch(x){console.error(x.stack)}},this.attachToDocument=function(y){this.$doc&&this.terminate(),this.$doc=y,this.call("setValue",[y.getValue()]),y.on("change",this.changeListener)},this.changeListener=function(y){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),this.deltaQueue.push(y.start,"insert"==y.action?y.lines:y.end)},this.$sendDeltaQueue=function(){var y=this.deltaQueue;y&&(this.deltaQueue=null,y.length>50&&y.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:y}))}}).call(g.prototype),ee.UIWorkerClient=function(y,b,x){var T=null,j=!1,Y=Object.create(R),K=[],q=new g({messageBuffer:K,terminate:function(){},postMessage:function(U){K.push(U),T&&(j?setTimeout(O):O())}});q.setEmitSync=function(U){j=U};var O=function(){var U=K.shift();U.command?T[U.command].apply(T,U.args):U.event&&Y._signal(U.event,U.data)};return Y.postMessage=function(U){q.onMessage({data:U})},Y.callback=function(U,P){this.postMessage({type:"call",id:P,data:U})},Y.emit=function(U,P){this.postMessage({type:"event",name:U,data:P})},D.loadModule(["worker",b],function(U){for(T=new U[x](Y);K.length;)O()}),q},ee.WorkerClient=g,ee.createWorker=v}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(ve,ee,it){"use strict";var he=ve("./range").Range,W=ve("./lib/event_emitter").EventEmitter,R=ve("./lib/oop"),D=function(S,v,g,_,y,b){var x=this;this.length=v,this.session=S,this.doc=S.getDocument(),this.mainClass=y,this.othersClass=b,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=_,this.$onCursorChange=function(){setTimeout(function(){x.onCursorChange()})},this.$pos=g;var T=S.getUndoManager().$undoStack||S.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=T.length,this.setup(),S.selection.on("changeCursor",this.$onCursorChange)};(function(){R.implement(this,W),this.setup=function(){var S=this,v=this.doc,g=this.session;this.selectionBefore=g.selection.toJSON(),g.selection.inMultiSelectMode&&g.selection.toSingleRange(),this.pos=v.createAnchor(this.$pos.row,this.$pos.column);var _=this.pos;_.$insertRight=!0,_.detach(),_.markerId=g.addMarker(new he(_.row,_.column,_.row,_.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(y){var b=v.createAnchor(y.row,y.column);b.$insertRight=!0,b.detach(),S.others.push(b)}),g.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var S=this.session,v=this;this.othersActive=!0,this.others.forEach(function(g){g.markerId=S.addMarker(new he(g.row,g.column,g.row,g.column+v.length),v.othersClass,null,!1)})}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var S=0;S=this.pos.column&&v.start.column<=this.pos.column+this.length+1,y=v.start.column-this.pos.column;if(this.updateAnchors(S),_&&(this.length+=g),_&&!this.session.$fromUndo)if("insert"===S.action)for(var b=this.others.length-1;b>=0;b--)this.doc.insertMergedLines(T={row:(x=this.others[b]).row,column:x.column+y},S.lines);else if("remove"===S.action)for(b=this.others.length-1;b>=0;b--){var x,T;this.doc.remove(new he((T={row:(x=this.others[b]).row,column:x.column+y}).row,T.column,T.row,T.column-g))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(S){this.pos.onChange(S);for(var v=this.others.length;v--;)this.others[v].onChange(S);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var S=this,v=this.session,g=function(y,b){v.removeMarker(y.markerId),y.markerId=v.addMarker(new he(y.row,y.column,y.row,y.column+S.length),b,null,!1)};g(this.pos,this.mainClass);for(var _=this.others.length;_--;)g(this.others[_],this.othersClass)}},this.onCursorChange=function(S){if(!this.$updating&&this.session){var v=this.session.selection.getCursor();v.row===this.pos.row&&v.column>=this.pos.column&&v.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",S)):(this.hideOtherMarkers(),this._emit("cursorLeave",S))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var S=this.session.getUndoManager(),v=(S.$undoStack||S.$undostack).length-this.$undoStackDepth,g=0;g1?W.multiSelect.joinSelections():W.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(W){W.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(W){W.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(W){W.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],ee.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(W){W.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(W){return W&&W.inMultiSelectMode}}];var he=ve("../keyboard/hash_handler").HashHandler;ee.keyboardHandler=new he(ee.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(ve,ee,it){var he=ve("./range_list").RangeList,W=ve("./range").Range,R=ve("./selection").Selection,D=ve("./mouse/multi_select_handler").onMouseDown,S=ve("./lib/event"),v=ve("./lib/lang"),g=ve("./commands/multi_select_commands");ee.commands=g.defaultCommands.concat(g.multiSelectCommands);var y=new(0,ve("./search").Search),x=ve("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(x.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(q,O){if(q){if(!this.inMultiSelectMode&&0===this.rangeCount){var U=this.toOrientedRange();if(this.rangeList.add(U),this.rangeList.add(q),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),O||this.fromOrientedRange(q);this.rangeList.removeAll(),this.rangeList.add(U),this.$onAddRange(U)}q.cursor||(q.cursor=q.end);var P=this.rangeList.add(q);return this.$onAddRange(q),P.length&&this.$onRemoveRange(P),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),O||this.fromOrientedRange(q)}},this.toSingleRange=function(q){q=q||this.ranges[0];var O=this.rangeList.removeAll();O.length&&this.$onRemoveRange(O),q&&this.fromOrientedRange(q)},this.substractPoint=function(q){var O=this.rangeList.substractPoint(q);if(O)return this.$onRemoveRange(O),O[0]},this.mergeOverlappingRanges=function(){var q=this.rangeList.merge();q.length&&this.$onRemoveRange(q)},this.$onAddRange=function(q){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(q),this._signal("addRange",{range:q})},this.$onRemoveRange=function(q){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var O=this.rangeList.ranges.pop();q.push(O),this.rangeCount=0}for(var U=q.length;U--;){var P=this.ranges.indexOf(q[U]);this.ranges.splice(P,1)}this._signal("removeRange",{ranges:q}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(O=O||this.ranges[0])&&!O.isEqual(this.getRange())&&this.fromOrientedRange(O)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new he,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var q=this.ranges.length?this.ranges:[this.getRange()],O=[],U=0;U1){var q=this.rangeList.ranges,O=q[q.length-1],U=W.fromPoints(q[0].start,O.end);this.toSingleRange(),this.setSelectionRange(U,O.cursor==O.start)}else{var P=this.session.documentToScreenPosition(this.cursor),$=this.session.documentToScreenPosition(this.anchor);this.rectangularRangeBlock(P,$).forEach(this.addRange,this)}},this.rectangularRangeBlock=function(q,O,U){var P=[],$=q.column0;)ht--;if(ht>0)for(var It=0;P[It].isEmpty();)It++;for(var mt=ht;mt>=It;mt--)P[mt].isEmpty()&&P.splice(mt,1)}return P}}.call(R.prototype);var T=ve("./editor").Editor;function j(q,O){return q.row==O.row&&q.column==O.column}function Y(q){q.$multiselectOnSessionChange||(q.$onAddRange=q.$onAddRange.bind(q),q.$onRemoveRange=q.$onRemoveRange.bind(q),q.$onMultiSelect=q.$onMultiSelect.bind(q),q.$onSingleSelect=q.$onSingleSelect.bind(q),q.$multiselectOnSessionChange=ee.onSessionChange.bind(q),q.$checkMultiselectChange=q.$checkMultiselectChange.bind(q),q.$multiselectOnSessionChange(q),q.on("changeSession",q.$multiselectOnSessionChange),q.on("mousedown",D),q.commands.addCommands(g.defaultCommands),function K(q){if(q.textInput){var O=q.textInput.getElement(),U=!1;S.addListener(O,"keydown",function($){q.$blockSelectEnabled&&18==$.keyCode&&!($.ctrlKey||$.shiftKey||$.metaKey)?U||(q.renderer.setMouseCursor("crosshair"),U=!0):U&&P()},q),S.addListener(O,"keyup",P,q),S.addListener(O,"blur",P,q)}function P($){U&&(q.renderer.setMouseCursor(""),U=!1)}}(q))}(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(q){q.cursor||(q.cursor=q.end);var O=this.getSelectionStyle();return q.marker=this.session.addMarker(q,"ace_selection",O),this.session.$selectionMarkers.push(q),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,q},this.removeSelectionMarker=function(q){if(q.marker){this.session.removeMarker(q.marker);var O=this.session.$selectionMarkers.indexOf(q);-1!=O&&this.session.$selectionMarkers.splice(O,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(q){for(var O=this.session.$selectionMarkers,U=q.length;U--;){var P=q[U];if(P.marker){this.session.removeMarker(P.marker);var $=O.indexOf(P);-1!=$&&O.splice($,1)}}this.session.selectionMarkerCount=O.length},this.$onAddRange=function(q){this.addSelectionMarker(q.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(q){this.removeSelectionMarkers(q.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(q){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(g.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(q){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(g.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(q){var O=q.command,U=q.editor;if(U.multiSelect){if(O.multiSelectAction)"forEach"==O.multiSelectAction?P=U.forEachSelection(O,q.args):"forEachLine"==O.multiSelectAction?P=U.forEachSelection(O,q.args,!0):"single"==O.multiSelectAction?(U.exitMultiSelectMode(),P=O.exec(U,q.args||{})):P=O.multiSelectAction(U,q.args||{});else{var P=O.exec(U,q.args||{});U.multiSelect.addRange(U.multiSelect.toOrientedRange()),U.multiSelect.mergeOverlappingRanges()}return P}},this.forEachSelection=function(q,O,U){if(!this.inVirtualSelectionMode){var Me,$=1==U||U&&U.$byLines,V=this.session,F=this.selection,Ce=(U&&U.keepOrder?F:F.rangeList).ranges;if(!Ce.length)return q.exec?q.exec(this,O||{}):q(this,O||{});var Re=F._eventRegistry;F._eventRegistry={};var ze=new R(V);this.inVirtualSelectionMode=!0;for(var Pe=Ce.length;Pe--;){if($)for(;Pe>0&&Ce[Pe].start.row==Ce[Pe-1].end.row;)Pe--;ze.fromOrientedRange(Ce[Pe]),ze.index=Pe,this.selection=V.selection=ze;var Tt=q.exec?q.exec(this,O||{}):q(this,O||{});!Me&&void 0!==Tt&&(Me=Tt),ze.toOrientedRange(Ce[Pe])}ze.detach(),this.selection=V.selection=F,this.inVirtualSelectionMode=!1,F._eventRegistry=Re,F.mergeOverlappingRanges(),F.ranges[0]&&F.fromOrientedRange(F.ranges[0]);var St=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),St&&St.from==St.to&&this.renderer.animateScrolling(St.from),Me}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var q="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var O=this.multiSelect.rangeList.ranges,U=[],P=0;PPe&&(Pe=It.column),ZtAt?q.insert(mt,v.stringRepeat(" ",Zt-At)):q.remove(new W(mt.row,mt.column,mt.row,mt.column-Zt+At)),ht.start.column=ht.end.column=Pe,ht.start.row=ht.end.row=mt.row,ht.cursor=ht.end}),O.fromOrientedRange(U[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var V=this.selection.getRange(),F=V.start.row,X=V.end.row,Ce=F==X;if(Ce){var Re,Me=this.session.getLength();do{Re=this.session.getLine(X)}while(/[=:]/.test(Re)&&++X0);F<0&&(F=0),X>=Me&&(X=Me-1)}var ze=this.session.removeFullLines(F,X);ze=this.$reAlignText(ze,Ce),this.session.insert({row:F,column:0},ze.join("\n")+"\n"),Ce||(V.start.column=0,V.end.column=ze[ze.length-1].length),this.selection.setRange(V)}},this.$reAlignText=function(q,O){var $,V,F,U=!0,P=!0;return q.map(function(ze){var Pe=ze.match(/(\s*)(.*?)(\s*)([=:].*)/);return Pe?null==$?($=Pe[1].length,V=Pe[2].length,F=Pe[3].length,Pe):($+V+F!=Pe[1].length+Pe[2].length+Pe[3].length&&(P=!1),$!=Pe[1].length&&(U=!1),$>Pe[1].length&&($=Pe[1].length),VPe[3].length&&(F=Pe[3].length),Pe):[ze]}).map(O?Ce:U?P?function Me(ze){return ze[2]?X($+V-ze[2].length)+ze[2]+X(F)+ze[4].replace(/^([=:])\s+/,"$1 "):ze[0]}:Ce:function Re(ze){return ze[2]?X($)+ze[2]+X(F)+ze[4].replace(/^([=:])\s+/,"$1 "):ze[0]});function X(ze){return v.stringRepeat(" ",ze)}function Ce(ze){return ze[2]?X($)+ze[2]+X(V-ze[2].length+F)+ze[4].replace(/^([=:])\s+/,"$1 "):ze[0]}}}).call(T.prototype),ee.onSessionChange=function(q){var O=q.session;O&&!O.multiSelect&&(O.$selectionMarkers=[],O.selection.$initRangeList(),O.multiSelect=O.selection),this.multiSelect=O&&O.multiSelect;var U=q.oldSession;U&&(U.multiSelect.off("addRange",this.$onAddRange),U.multiSelect.off("removeRange",this.$onRemoveRange),U.multiSelect.off("multiSelect",this.$onMultiSelect),U.multiSelect.off("singleSelect",this.$onSingleSelect),U.multiSelect.lead.off("change",this.$checkMultiselectChange),U.multiSelect.anchor.off("change",this.$checkMultiselectChange)),O&&(O.multiSelect.on("addRange",this.$onAddRange),O.multiSelect.on("removeRange",this.$onRemoveRange),O.multiSelect.on("multiSelect",this.$onMultiSelect),O.multiSelect.on("singleSelect",this.$onSingleSelect),O.multiSelect.lead.on("change",this.$checkMultiselectChange),O.multiSelect.anchor.on("change",this.$checkMultiselectChange)),O&&this.inMultiSelectMode!=O.selection.inMultiSelectMode&&(O.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},ee.MultiSelect=Y,ve("./config").defineOptions(T.prototype,"editor",{enableMultiselect:{set:function(q){Y(this),q?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",D)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",D))},value:!0},enableBlockSelect:{set:function(q){this.$blockSelectEnabled=q},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(ve,ee,it){"use strict";var he=ve("../../range").Range,W=ee.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(R,D,S){var v=R.getLine(S);return this.foldingStartMarker.test(v)?"start":"markbeginend"==D&&this.foldingStopMarker&&this.foldingStopMarker.test(v)?"end":""},this.getFoldWidgetRange=function(R,D,S){return null},this.indentationBlock=function(R,D,S){var v=/\S/,g=R.getLine(D),_=g.search(v);if(-1!=_){for(var y=S||g.length,b=R.getLength(),x=D,T=D;++Dx){var K=R.getLine(T).length;return new he(x,y,T,K)}}},this.openingBracketBlock=function(R,D,S,v,g){var _={row:S,column:v+1},y=R.$findClosingBracket(D,_,g);if(y){var b=R.foldWidgets[y.row];return null==b&&(b=R.getFoldWidget(y.row)),"start"==b&&y.row>_.row&&(y.row--,y.column=R.getLine(y.row).length),he.fromPoints(_,y)}},this.closingBracketBlock=function(R,D,S,v,g){var _={row:S,column:v},y=R.$findOpeningBracket(D,_);if(y)return y.column++,_.column--,he.fromPoints(y,_)}}).call(W.prototype)}),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],function(ve,ee,it){"use strict";ee.isDark=!1,ee.cssClass="ace-tm",ee.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',ee.$id="ace/theme/textmate",ve("../lib/dom").importCssString(ee.cssText,ee.cssClass)}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(ve,ee,it){"use strict";var he=ve("./lib/dom");function W(R){this.session=R,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}(function(){this.getRowLength=function(R){var D;return D=this.lineWidgets&&this.lineWidgets[R]&&this.lineWidgets[R].rowCount||0,this.$useWrapMode&&this.$wrapData[R]?this.$wrapData[R].length+1+D:1+D},this.$getWidgetScreenLength=function(){var R=0;return this.lineWidgets.forEach(function(D){D&&D.rowCount&&!D.hidden&&(R+=D.rowCount)}),R},this.$onChangeEditor=function(R){this.attach(R.editor)},this.attach=function(R){R&&R.widgetManager&&R.widgetManager!=this&&R.widgetManager.detach(),this.editor!=R&&(this.detach(),this.editor=R,R&&(R.widgetManager=this,R.renderer.on("beforeRender",this.measureWidgets),R.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(R){var D=this.editor;if(D){this.editor=null,D.widgetManager=null,D.renderer.off("beforeRender",this.measureWidgets),D.renderer.off("afterRender",this.renderWidgets);var S=this.session.lineWidgets;S&&S.forEach(function(v){v&&v.el&&v.el.parentNode&&(v._inDocument=!1,v.el.parentNode.removeChild(v.el))})}},this.updateOnFold=function(R,D){var S=D.lineWidgets;if(S&&R.action){for(var v=R.data,g=v.start.row,_=v.end.row,y="add"==R.action,b=g+1;b<_;b++)S[b]&&(S[b].hidden=y);S[_]&&(y?S[g]?S[_].hidden=y:S[g]=S[_]:(S[g]==S[_]&&(S[g]=void 0),S[_].hidden=y))}},this.updateOnChange=function(R){var D=this.session.lineWidgets;if(D){var S=R.start.row,v=R.end.row-S;if(0!==v)if("remove"==R.action){var g=D.splice(S+1,v);!D[S]&&g[g.length-1]&&(D[S]=g.pop()),g.forEach(function(y){y&&this.removeLineWidget(y)},this),this.$updateRows()}else{var _=new Array(v);D[S]&&null!=D[S].column&&R.start.column>D[S].column&&S++,_.unshift(S,0),D.splice.apply(D,_),this.$updateRows()}}},this.$updateRows=function(){var R=this.session.lineWidgets;if(R){var D=!0;R.forEach(function(S,v){if(S)for(D=!1,S.row=v;S.$oldWidget;)S.$oldWidget.row=v,S=S.$oldWidget}),D&&(this.session.lineWidgets=null)}},this.$registerLineWidget=function(R){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var D=this.session.lineWidgets[R.row];return D&&(R.$oldWidget=D,D.el&&D.el.parentNode&&(D.el.parentNode.removeChild(D.el),D._inDocument=!1)),this.session.lineWidgets[R.row]=R,R},this.addLineWidget=function(R){if(this.$registerLineWidget(R),R.session=this.session,!this.editor)return R;var D=this.editor.renderer;R.html&&!R.el&&(R.el=he.createElement("div"),R.el.innerHTML=R.html),R.el&&(he.addCssClass(R.el,"ace_lineWidgetContainer"),R.el.style.position="absolute",R.el.style.zIndex=5,D.container.appendChild(R.el),R._inDocument=!0,R.coverGutter||(R.el.style.zIndex=3),null==R.pixelHeight&&(R.pixelHeight=R.el.offsetHeight)),null==R.rowCount&&(R.rowCount=R.pixelHeight/D.layerConfig.lineHeight);var S=this.session.getFoldAt(R.row,0);if(R.$fold=S,S){var v=this.session.lineWidgets;R.row!=S.end.row||v[S.start.row]?R.hidden=!0:v[S.start.row]=R}return this.session._emit("changeFold",{data:{start:{row:R.row}}}),this.$updateRows(),this.renderWidgets(null,D),this.onWidgetChanged(R),R},this.removeLineWidget=function(R){if(R._inDocument=!1,R.session=null,R.el&&R.el.parentNode&&R.el.parentNode.removeChild(R.el),R.editor&&R.editor.destroy)try{R.editor.destroy()}catch{}if(this.session.lineWidgets){var D=this.session.lineWidgets[R.row];if(D==R)this.session.lineWidgets[R.row]=R.$oldWidget,R.$oldWidget&&this.onWidgetChanged(R.$oldWidget);else for(;D;){if(D.$oldWidget==R){D.$oldWidget=R.$oldWidget;break}D=D.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:R.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(R){for(var D=this.session.lineWidgets,S=D&&D[R],v=[];S;)v.push(S),S=S.$oldWidget;return v},this.onWidgetChanged=function(R){this.session._changedWidgets.push(R),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(R,D){var S=this.session._changedWidgets,v=D.layerConfig;if(S&&S.length){for(var g=1/0,_=0;_0&&!v[g];)g--;this.firstRow=S.firstRow,this.lastRow=S.lastRow,D.$cursorLayer.config=S;for(var y=g;y<=_;y++){var b=v[y];if(b&&b.el){if(b.hidden){b.el.style.top=-100-(b.pixelHeight||0)+"px";continue}b._inDocument||(b._inDocument=!0,D.container.appendChild(b.el));var x=D.$cursorLayer.getPixelPosition({row:y,column:0},!0).top;b.coverLine||(x+=S.lineHeight*this.session.getRowLineCount(b.row)),b.el.style.top=x-S.offset+"px";var T=b.coverGutter?0:D.gutterWidth;b.fixedWidth||(T-=D.scrollLeft),b.el.style.left=T+"px",b.fullWidth&&b.screenWidth&&(b.el.style.minWidth=S.width+2*S.padding+"px"),b.el.style.right=b.fixedWidth?D.scrollBar.getWidth()+"px":""}}}}}).call(W.prototype),ee.LineWidgets=W}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],function(ve,ee,it){"use strict";var he=ve("../line_widgets").LineWidgets,W=ve("../lib/dom"),R=ve("../range").Range;ee.showErrorMarker=function(v,g){var _=v.session;_.widgetManager||(_.widgetManager=new he(_),_.widgetManager.attach(v));var y=v.getCursorPosition(),b=y.row,x=_.widgetManager.getWidgetsAtRow(b).filter(function($){return"errorMarker"==$.type})[0];x?x.destroy():b-=g;var j,T=function S(v,g,_){var y=v.getAnnotations().sort(R.comparePoints);if(y.length){var b=function D(v,g,_){for(var y=0,b=v.length-1;y<=b;){var x=y+b>>1,T=_(g,v[x]);if(T>0)y=x+1;else{if(!(T<0))return x;b=x-1}}return-(y+1)}(y,{row:g,column:-1},R.comparePoints);b<0&&(b=-b-1),b>=y.length?b=_>0?0:y.length-1:0===b&&_<0&&(b=y.length-1);var x=y[b];if(x&&_){if(x.row===g){do{x=y[b+=_]}while(x&&x.row===g);if(!x)return y.slice()}var T=[];g=x.row;do{T[_<0?"unshift":"push"](x),x=y[b+=_]}while(x&&x.row==g);return T.length&&T}}}(_,b,g);if(T){var Y=T[0];y.column=(Y.pos&&"number"!=typeof Y.column?Y.pos.sc:Y.column)||0,y.row=Y.row,j=v.renderer.$gutterLayer.$annotations[y.row]}else{if(x)return;j={text:["Looks good!"],className:"ace_ok"}}v.session.unfold(y.row),v.selection.moveToPosition(y);var K={row:y.row,fixedWidth:!0,coverGutter:!0,el:W.createElement("div"),type:"errorMarker"},q=K.el.appendChild(W.createElement("div")),O=K.el.appendChild(W.createElement("div"));O.className="error_widget_arrow "+j.className;var U=v.renderer.$cursorLayer.getPixelPosition(y).left;O.style.left=U+v.renderer.gutterWidth-5+"px",K.el.className="error_widget_wrapper",q.className="error_widget "+j.className,q.innerHTML=j.text.join("
    "),q.appendChild(W.createElement("div"));var P=function($,V,F){if(0===V&&("esc"===F||"return"===F))return K.destroy(),{command:"null"}};K.destroy=function(){v.$mouseHandler.isMousePressed||(v.keyBinding.removeKeyboardHandler(P),_.widgetManager.removeLineWidget(K),v.off("changeSelection",K.destroy),v.off("changeSession",K.destroy),v.off("mouseup",K.destroy),v.off("change",K.destroy))},v.keyBinding.addKeyboardHandler(P),v.on("changeSelection",K.destroy),v.on("changeSession",K.destroy),v.on("mouseup",K.destroy),v.on("change",K.destroy),v.session.widgetManager.addLineWidget(K),K.el.onmousedown=v.focus.bind(v),v.renderer.scrollCursorIntoView(null,.5,{bottom:K.el.offsetHeight})},W.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","")}),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],function(ve,ee,it){"use strict";ve("./lib/fixoldbrowsers");var he=ve("./lib/dom"),W=ve("./lib/event"),R=ve("./range").Range,D=ve("./editor").Editor,S=ve("./edit_session").EditSession,v=ve("./undomanager").UndoManager,g=ve("./virtual_renderer").VirtualRenderer;ve("./worker/worker_client"),ve("./keyboard/hash_handler"),ve("./placeholder"),ve("./multi_select"),ve("./mode/folding/fold_mode"),ve("./theme/textmate"),ve("./ext/error_marker"),ee.config=ve("./config"),ee.require=ve,ee.define=Ye.amdD,ee.edit=function(_,y){if("string"==typeof _){var b=_;if(!(_=document.getElementById(b)))throw new Error("ace.edit can't find div #"+b)}if(_&&_.env&&_.env.editor instanceof D)return _.env.editor;var x="";if(_&&/input|textarea/i.test(_.tagName)){var T=_;x=T.value,_=he.createElement("pre"),T.parentNode.replaceChild(_,T)}else _&&(x=_.textContent,_.innerHTML="");var j=ee.createEditSession(x),Y=new D(new g(_),j,y),K={document:j,editor:Y,onResize:Y.resize.bind(Y,null)};return T&&(K.textarea=T),W.addListener(window,"resize",K.onResize),Y.on("destroy",function(){W.removeListener(window,"resize",K.onResize),K.editor.container.env=null}),Y.container.env=Y.env=K,Y},ee.createEditSession=function(_,y){var b=new S(_,y);return b.setUndoManager(new v),b},ee.Range=R,ee.Editor=D,ee.EditSession=S,ee.UndoManager=v,ee.VirtualRenderer=g,ee.version=ee.config.version}),ace.require(["ace/ace"],function(ve){for(var ee in ve&&(ve.config.init(!0),ve.define=ace.define),window.ace||(window.ace=ve),ve)ve.hasOwnProperty(ee)&&(window.ace[ee]=ve[ee]);window.ace.default=window.ace,fn&&(fn.exports=window.ace)})},343:(fn,Gn)=>{"use strict";Gn.byteLength=function D(b){var x=R(b),j=x[1];return 3*(x[0]+j)/4-j},Gn.toByteArray=function v(b){var x,U,T=R(b),j=T[0],Y=T[1],K=new ee(function S(b,x,T){return 3*(x+T)/4-T}(0,j,Y)),q=0,O=Y>0?j-4:j;for(U=0;U>16&255,K[q++]=x>>8&255,K[q++]=255&x;return 2===Y&&(x=ve[b.charCodeAt(U)]<<2|ve[b.charCodeAt(U+1)]>>4,K[q++]=255&x),1===Y&&(x=ve[b.charCodeAt(U)]<<10|ve[b.charCodeAt(U+1)]<<4|ve[b.charCodeAt(U+2)]>>2,K[q++]=x>>8&255,K[q++]=255&x),K},Gn.fromByteArray=function y(b){for(var x,T=b.length,j=T%3,Y=[],K=16383,q=0,O=T-j;qO?O:q+K));return 1===j?Y.push(Ye[(x=b[T-1])>>2]+Ye[x<<4&63]+"=="):2===j&&Y.push(Ye[(x=(b[T-2]<<8)+b[T-1])>>10]+Ye[x>>4&63]+Ye[x<<2&63]+"="),Y.join("")};for(var Ye=[],ve=[],ee=typeof Uint8Array<"u"?Uint8Array:Array,it="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",he=0,W=it.length;he0)throw new Error("Invalid string. Length must be a multiple of 4");var T=b.indexOf("=");return-1===T&&(T=x),[T,T===x?0:4-T%4]}function g(b){return Ye[b>>18&63]+Ye[b>>12&63]+Ye[b>>6&63]+Ye[63&b]}function _(b,x,T){for(var Y=[],K=x;K{"use strict";var ee=Ye(343),it=Ye(461),he="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;Gn.lW=S,Gn.h2=50;var W=2147483647;function D(We){if(We>W)throw new RangeError('The value "'+We+'" is invalid for option "size"');var de=new Uint8Array(We);return Object.setPrototypeOf(de,S.prototype),de}function S(We,de,xe){if("number"==typeof We){if("string"==typeof de)throw new TypeError('The "string" argument must be of type string. Received type number');return y(We)}return v(We,de,xe)}function v(We,de,xe){if("string"==typeof We)return function b(We,de){if(("string"!=typeof de||""===de)&&(de="utf8"),!S.isEncoding(de))throw new TypeError("Unknown encoding: "+de);var xe=0|O(We,de),Le=D(xe),et=Le.write(We,de);return et!==xe&&(Le=Le.slice(0,et)),Le}(We,de);if(ArrayBuffer.isView(We))return function T(We){if(Gi(We,Uint8Array)){var de=new Uint8Array(We);return j(de.buffer,de.byteOffset,de.byteLength)}return x(We)}(We);if(null==We)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof We);if(Gi(We,ArrayBuffer)||We&&Gi(We.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Gi(We,SharedArrayBuffer)||We&&Gi(We.buffer,SharedArrayBuffer)))return j(We,de,xe);if("number"==typeof We)throw new TypeError('The "value" argument must not be of type number. Received type number');var Le=We.valueOf&&We.valueOf();if(null!=Le&&Le!==We)return S.from(Le,de,xe);var et=function Y(We){if(S.isBuffer(We)){var de=0|K(We.length),xe=D(de);return 0===xe.length||We.copy(xe,0,0,de),xe}return void 0!==We.length?"number"!=typeof We.length||zn(We.length)?D(0):x(We):"Buffer"===We.type&&Array.isArray(We.data)?x(We.data):void 0}(We);if(et)return et;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof We[Symbol.toPrimitive])return S.from(We[Symbol.toPrimitive]("string"),de,xe);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof We)}function g(We){if("number"!=typeof We)throw new TypeError('"size" argument must be of type number');if(We<0)throw new RangeError('The value "'+We+'" is invalid for option "size"')}function y(We){return g(We),D(We<0?0:0|K(We))}function x(We){for(var de=We.length<0?0:0|K(We.length),xe=D(de),Le=0;Le=W)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+W.toString(16)+" bytes");return 0|We}function O(We,de){if(S.isBuffer(We))return We.length;if(ArrayBuffer.isView(We)||Gi(We,ArrayBuffer))return We.byteLength;if("string"!=typeof We)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof We);var xe=We.length,Le=arguments.length>2&&!0===arguments[2];if(!Le&&0===xe)return 0;for(var et=!1;;)switch(de){case"ascii":case"latin1":case"binary":return xe;case"utf8":case"utf-8":return ci(We).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*xe;case"hex":return xe>>>1;case"base64":return lr(We).length;default:if(et)return Le?-1:ci(We).length;de=(""+de).toLowerCase(),et=!0}}function U(We,de,xe){var Le=!1;if((void 0===de||de<0)&&(de=0),de>this.length||((void 0===xe||xe>this.length)&&(xe=this.length),xe<=0)||(xe>>>=0)<=(de>>>=0))return"";for(We||(We="utf8");;)switch(We){case"hex":return mt(this,de,xe);case"utf8":case"utf-8":return Pe(this,de,xe);case"ascii":return ht(this,de,xe);case"latin1":case"binary":return It(this,de,xe);case"base64":return ze(this,de,xe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Zt(this,de,xe);default:if(Le)throw new TypeError("Unknown encoding: "+We);We=(We+"").toLowerCase(),Le=!0}}function P(We,de,xe){var Le=We[de];We[de]=We[xe],We[xe]=Le}function $(We,de,xe,Le,et){if(0===We.length)return-1;if("string"==typeof xe?(Le=xe,xe=0):xe>2147483647?xe=2147483647:xe<-2147483648&&(xe=-2147483648),zn(xe=+xe)&&(xe=et?0:We.length-1),xe<0&&(xe=We.length+xe),xe>=We.length){if(et)return-1;xe=We.length-1}else if(xe<0){if(!et)return-1;xe=0}if("string"==typeof de&&(de=S.from(de,Le)),S.isBuffer(de))return 0===de.length?-1:V(We,de,xe,Le,et);if("number"==typeof de)return de&=255,"function"==typeof Uint8Array.prototype.indexOf?et?Uint8Array.prototype.indexOf.call(We,de,xe):Uint8Array.prototype.lastIndexOf.call(We,de,xe):V(We,[de],xe,Le,et);throw new TypeError("val must be string, number or Buffer")}function V(We,de,xe,Le,et){var yt,Ot=1,Jt=We.length,si=de.length;if(void 0!==Le&&("ucs2"===(Le=String(Le).toLowerCase())||"ucs-2"===Le||"utf16le"===Le||"utf-16le"===Le)){if(We.length<2||de.length<2)return-1;Ot=2,Jt/=2,si/=2,xe/=2}function H(wn,Ne){return 1===Ot?wn[Ne]:wn.readUInt16BE(Ne*Ot)}if(et){var Lt=-1;for(yt=xe;ytJt&&(xe=Jt-si),yt=xe;yt>=0;yt--){for(var Kt=!0,Vt=0;Vtet&&(Le=et):Le=et;var Ot=de.length;Le>Ot/2&&(Le=Ot/2);for(var Jt=0;Jt>8,Ot.push(xe%256),Ot.push(Le);return Ot}(de,We.length-xe),We,xe,Le)}function ze(We,de,xe){return ee.fromByteArray(0===de&&xe===We.length?We:We.slice(de,xe))}function Pe(We,de,xe){xe=Math.min(We.length,xe);for(var Le=[],et=de;et239?4:Ot>223?3:Ot>191?2:1;if(et+si<=xe)switch(si){case 1:Ot<128&&(Jt=Ot);break;case 2:128==(192&(H=We[et+1]))&&(Kt=(31&Ot)<<6|63&H)>127&&(Jt=Kt);break;case 3:yt=We[et+2],128==(192&(H=We[et+1]))&&128==(192&yt)&&(Kt=(15&Ot)<<12|(63&H)<<6|63&yt)>2047&&(Kt<55296||Kt>57343)&&(Jt=Kt);break;case 4:yt=We[et+2],Lt=We[et+3],128==(192&(H=We[et+1]))&&128==(192&yt)&&128==(192&Lt)&&(Kt=(15&Ot)<<18|(63&H)<<12|(63&yt)<<6|63&Lt)>65535&&Kt<1114112&&(Jt=Kt)}null===Jt?(Jt=65533,si=1):Jt>65535&&(Le.push((Jt-=65536)>>>10&1023|55296),Jt=56320|1023&Jt),Le.push(Jt),et+=si}return function St(We){var de=We.length;if(de<=Tt)return String.fromCharCode.apply(String,We);for(var xe="",Le=0;Leet.length?S.from(Jt).copy(et,Ot):Uint8Array.prototype.set.call(et,Jt,Ot);else{if(!S.isBuffer(Jt))throw new TypeError('"list" argument must be an Array of Buffers');Jt.copy(et,Ot)}Ot+=Jt.length}return et},S.byteLength=O,S.prototype._isBuffer=!0,S.prototype.swap16=function(){var de=this.length;if(de%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var xe=0;xexe&&(de+=" ... "),""},he&&(S.prototype[he]=S.prototype.inspect),S.prototype.compare=function(de,xe,Le,et,Ot){if(Gi(de,Uint8Array)&&(de=S.from(de,de.offset,de.byteLength)),!S.isBuffer(de))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof de);if(void 0===xe&&(xe=0),void 0===Le&&(Le=de?de.length:0),void 0===et&&(et=0),void 0===Ot&&(Ot=this.length),xe<0||Le>de.length||et<0||Ot>this.length)throw new RangeError("out of range index");if(et>=Ot&&xe>=Le)return 0;if(et>=Ot)return-1;if(xe>=Le)return 1;if(this===de)return 0;for(var Jt=(Ot>>>=0)-(et>>>=0),si=(Le>>>=0)-(xe>>>=0),H=Math.min(Jt,si),yt=this.slice(et,Ot),Lt=de.slice(xe,Le),Kt=0;Kt>>=0,isFinite(Le)?(Le>>>=0,void 0===et&&(et="utf8")):(et=Le,Le=void 0)}var Ot=this.length-xe;if((void 0===Le||Le>Ot)&&(Le=Ot),de.length>0&&(Le<0||xe<0)||xe>this.length)throw new RangeError("Attempt to write outside buffer bounds");et||(et="utf8");for(var Jt=!1;;)switch(et){case"hex":return F(this,de,xe,Le);case"utf8":case"utf-8":return X(this,de,xe,Le);case"ascii":case"latin1":case"binary":return Ce(this,de,xe,Le);case"base64":return Me(this,de,xe,Le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Re(this,de,xe,Le);default:if(Jt)throw new TypeError("Unknown encoding: "+et);et=(""+et).toLowerCase(),Jt=!0}},S.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Tt=4096;function ht(We,de,xe){var Le="";xe=Math.min(We.length,xe);for(var et=de;etLe)&&(xe=Le);for(var et="",Ot=de;Otxe)throw new RangeError("Trying to access beyond buffer length")}function pn(We,de,xe,Le,et,Ot){if(!S.isBuffer(We))throw new TypeError('"buffer" argument must be a Buffer instance');if(de>et||deWe.length)throw new RangeError("Index out of range")}function Tn(We,de,xe,Le,et,Ot){if(xe+Le>We.length)throw new RangeError("Index out of range");if(xe<0)throw new RangeError("Index out of range")}function Vn(We,de,xe,Le,et){return de=+de,xe>>>=0,et||Tn(We,0,xe,4),it.write(We,de,xe,Le,23,4),xe+4}function wi(We,de,xe,Le,et){return de=+de,xe>>>=0,et||Tn(We,0,xe,8),it.write(We,de,xe,Le,52,8),xe+8}S.prototype.slice=function(de,xe){var Le=this.length;(de=~~de)<0?(de+=Le)<0&&(de=0):de>Le&&(de=Le),(xe=void 0===xe?Le:~~xe)<0?(xe+=Le)<0&&(xe=0):xe>Le&&(xe=Le),xe>>=0,xe>>>=0,Le||At(de,xe,this.length);for(var et=this[de],Ot=1,Jt=0;++Jt>>=0,xe>>>=0,Le||At(de,xe,this.length);for(var et=this[de+--xe],Ot=1;xe>0&&(Ot*=256);)et+=this[de+--xe]*Ot;return et},S.prototype.readUint8=S.prototype.readUInt8=function(de,xe){return de>>>=0,xe||At(de,1,this.length),this[de]},S.prototype.readUint16LE=S.prototype.readUInt16LE=function(de,xe){return de>>>=0,xe||At(de,2,this.length),this[de]|this[de+1]<<8},S.prototype.readUint16BE=S.prototype.readUInt16BE=function(de,xe){return de>>>=0,xe||At(de,2,this.length),this[de]<<8|this[de+1]},S.prototype.readUint32LE=S.prototype.readUInt32LE=function(de,xe){return de>>>=0,xe||At(de,4,this.length),(this[de]|this[de+1]<<8|this[de+2]<<16)+16777216*this[de+3]},S.prototype.readUint32BE=S.prototype.readUInt32BE=function(de,xe){return de>>>=0,xe||At(de,4,this.length),16777216*this[de]+(this[de+1]<<16|this[de+2]<<8|this[de+3])},S.prototype.readIntLE=function(de,xe,Le){de>>>=0,xe>>>=0,Le||At(de,xe,this.length);for(var et=this[de],Ot=1,Jt=0;++Jt=(Ot*=128)&&(et-=Math.pow(2,8*xe)),et},S.prototype.readIntBE=function(de,xe,Le){de>>>=0,xe>>>=0,Le||At(de,xe,this.length);for(var et=xe,Ot=1,Jt=this[de+--et];et>0&&(Ot*=256);)Jt+=this[de+--et]*Ot;return Jt>=(Ot*=128)&&(Jt-=Math.pow(2,8*xe)),Jt},S.prototype.readInt8=function(de,xe){return de>>>=0,xe||At(de,1,this.length),128&this[de]?-1*(255-this[de]+1):this[de]},S.prototype.readInt16LE=function(de,xe){de>>>=0,xe||At(de,2,this.length);var Le=this[de]|this[de+1]<<8;return 32768&Le?4294901760|Le:Le},S.prototype.readInt16BE=function(de,xe){de>>>=0,xe||At(de,2,this.length);var Le=this[de+1]|this[de]<<8;return 32768&Le?4294901760|Le:Le},S.prototype.readInt32LE=function(de,xe){return de>>>=0,xe||At(de,4,this.length),this[de]|this[de+1]<<8|this[de+2]<<16|this[de+3]<<24},S.prototype.readInt32BE=function(de,xe){return de>>>=0,xe||At(de,4,this.length),this[de]<<24|this[de+1]<<16|this[de+2]<<8|this[de+3]},S.prototype.readFloatLE=function(de,xe){return de>>>=0,xe||At(de,4,this.length),it.read(this,de,!0,23,4)},S.prototype.readFloatBE=function(de,xe){return de>>>=0,xe||At(de,4,this.length),it.read(this,de,!1,23,4)},S.prototype.readDoubleLE=function(de,xe){return de>>>=0,xe||At(de,8,this.length),it.read(this,de,!0,52,8)},S.prototype.readDoubleBE=function(de,xe){return de>>>=0,xe||At(de,8,this.length),it.read(this,de,!1,52,8)},S.prototype.writeUintLE=S.prototype.writeUIntLE=function(de,xe,Le,et){de=+de,xe>>>=0,Le>>>=0,et||pn(this,de,xe,Le,Math.pow(2,8*Le)-1,0);var Jt=1,si=0;for(this[xe]=255&de;++si>>=0,Le>>>=0,et||pn(this,de,xe,Le,Math.pow(2,8*Le)-1,0);var Jt=Le-1,si=1;for(this[xe+Jt]=255&de;--Jt>=0&&(si*=256);)this[xe+Jt]=de/si&255;return xe+Le},S.prototype.writeUint8=S.prototype.writeUInt8=function(de,xe,Le){return de=+de,xe>>>=0,Le||pn(this,de,xe,1,255,0),this[xe]=255&de,xe+1},S.prototype.writeUint16LE=S.prototype.writeUInt16LE=function(de,xe,Le){return de=+de,xe>>>=0,Le||pn(this,de,xe,2,65535,0),this[xe]=255&de,this[xe+1]=de>>>8,xe+2},S.prototype.writeUint16BE=S.prototype.writeUInt16BE=function(de,xe,Le){return de=+de,xe>>>=0,Le||pn(this,de,xe,2,65535,0),this[xe]=de>>>8,this[xe+1]=255&de,xe+2},S.prototype.writeUint32LE=S.prototype.writeUInt32LE=function(de,xe,Le){return de=+de,xe>>>=0,Le||pn(this,de,xe,4,4294967295,0),this[xe+3]=de>>>24,this[xe+2]=de>>>16,this[xe+1]=de>>>8,this[xe]=255&de,xe+4},S.prototype.writeUint32BE=S.prototype.writeUInt32BE=function(de,xe,Le){return de=+de,xe>>>=0,Le||pn(this,de,xe,4,4294967295,0),this[xe]=de>>>24,this[xe+1]=de>>>16,this[xe+2]=de>>>8,this[xe+3]=255&de,xe+4},S.prototype.writeIntLE=function(de,xe,Le,et){if(de=+de,xe>>>=0,!et){var Ot=Math.pow(2,8*Le-1);pn(this,de,xe,Le,Ot-1,-Ot)}var Jt=0,si=1,H=0;for(this[xe]=255&de;++Jt>0)-H&255;return xe+Le},S.prototype.writeIntBE=function(de,xe,Le,et){if(de=+de,xe>>>=0,!et){var Ot=Math.pow(2,8*Le-1);pn(this,de,xe,Le,Ot-1,-Ot)}var Jt=Le-1,si=1,H=0;for(this[xe+Jt]=255&de;--Jt>=0&&(si*=256);)de<0&&0===H&&0!==this[xe+Jt+1]&&(H=1),this[xe+Jt]=(de/si>>0)-H&255;return xe+Le},S.prototype.writeInt8=function(de,xe,Le){return de=+de,xe>>>=0,Le||pn(this,de,xe,1,127,-128),de<0&&(de=255+de+1),this[xe]=255&de,xe+1},S.prototype.writeInt16LE=function(de,xe,Le){return de=+de,xe>>>=0,Le||pn(this,de,xe,2,32767,-32768),this[xe]=255&de,this[xe+1]=de>>>8,xe+2},S.prototype.writeInt16BE=function(de,xe,Le){return de=+de,xe>>>=0,Le||pn(this,de,xe,2,32767,-32768),this[xe]=de>>>8,this[xe+1]=255&de,xe+2},S.prototype.writeInt32LE=function(de,xe,Le){return de=+de,xe>>>=0,Le||pn(this,de,xe,4,2147483647,-2147483648),this[xe]=255&de,this[xe+1]=de>>>8,this[xe+2]=de>>>16,this[xe+3]=de>>>24,xe+4},S.prototype.writeInt32BE=function(de,xe,Le){return de=+de,xe>>>=0,Le||pn(this,de,xe,4,2147483647,-2147483648),de<0&&(de=4294967295+de+1),this[xe]=de>>>24,this[xe+1]=de>>>16,this[xe+2]=de>>>8,this[xe+3]=255&de,xe+4},S.prototype.writeFloatLE=function(de,xe,Le){return Vn(this,de,xe,!0,Le)},S.prototype.writeFloatBE=function(de,xe,Le){return Vn(this,de,xe,!1,Le)},S.prototype.writeDoubleLE=function(de,xe,Le){return wi(this,de,xe,!0,Le)},S.prototype.writeDoubleBE=function(de,xe,Le){return wi(this,de,xe,!1,Le)},S.prototype.copy=function(de,xe,Le,et){if(!S.isBuffer(de))throw new TypeError("argument should be a Buffer");if(Le||(Le=0),!et&&0!==et&&(et=this.length),xe>=de.length&&(xe=de.length),xe||(xe=0),et>0&&et=this.length)throw new RangeError("Index out of range");if(et<0)throw new RangeError("sourceEnd out of bounds");et>this.length&&(et=this.length),de.length-xe>>=0,Le=void 0===Le?this.length:Le>>>0,de||(de=0),"number"==typeof de)for(Jt=xe;Jt55295&&xe<57344){if(!et){if(xe>56319){(de-=3)>-1&&Ot.push(239,191,189);continue}if(Jt+1===Le){(de-=3)>-1&&Ot.push(239,191,189);continue}et=xe;continue}if(xe<56320){(de-=3)>-1&&Ot.push(239,191,189),et=xe;continue}xe=65536+(et-55296<<10|xe-56320)}else et&&(de-=3)>-1&&Ot.push(239,191,189);if(et=null,xe<128){if((de-=1)<0)break;Ot.push(xe)}else if(xe<2048){if((de-=2)<0)break;Ot.push(xe>>6|192,63&xe|128)}else if(xe<65536){if((de-=3)<0)break;Ot.push(xe>>12|224,xe>>6&63|128,63&xe|128)}else{if(!(xe<1114112))throw new Error("Invalid code point");if((de-=4)<0)break;Ot.push(xe>>18|240,xe>>12&63|128,xe>>6&63|128,63&xe|128)}}return Ot}function lr(We){return ee.toByteArray(function Ri(We){if((We=(We=We.split("=")[0]).trim().replace(pr,"")).length<2)return"";for(;We.length%4!=0;)We+="=";return We}(We))}function Wi(We,de,xe,Le){for(var et=0;et=de.length||et>=We.length);++et)de[et+xe]=We[et];return et}function Gi(We,de){return We instanceof de||null!=We&&null!=We.constructor&&null!=We.constructor.name&&We.constructor.name===de.name}function zn(We){return We!=We}var vr=function(){for(var We="0123456789abcdef",de=new Array(256),xe=0;xe<16;++xe)for(var Le=16*xe,et=0;et<16;++et)de[Le+et]=We[xe]+We[et];return de}()},797:function(fn){fn.exports=function(Gn){var Ye={};function ve(ee){if(Ye[ee])return Ye[ee].exports;var it=Ye[ee]={exports:{},id:ee,loaded:!1};return Gn[ee].call(it.exports,it,it.exports,ve),it.loaded=!0,it.exports}return ve.m=Gn,ve.c=Ye,ve.p="",ve(0)}([function(Gn,Ye,ve){"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});var ee=ve(1),it=ve(3),he=ve(8),W=ve(15);function R(_,y,b){var x=null,T=function($,V){b&&b($,V),x&&x.visit($,V)},j="function"==typeof b?T:null,Y=!1;if(y){var K="boolean"==typeof y.attachComment&&y.attachComment;((Y="boolean"==typeof y.comment&&y.comment)||K)&&((x=new ee.CommentHandler).attach=K,y.comment=!0,j=T)}var O,q=!1;y&&"string"==typeof y.sourceType&&(q="module"===y.sourceType),O=y&&"boolean"==typeof y.jsx&&y.jsx?new it.JSXParser(_,y,j):new he.Parser(_,y,j);var P=q?O.parseModule():O.parseScript();return Y&&x&&(P.comments=x.comments),O.config.tokens&&(P.tokens=O.tokens),O.config.tolerant&&(P.errors=O.errorHandler.errors),P}Ye.parse=R,Ye.parseModule=function D(_,y,b){var x=y||{};return x.sourceType="module",R(_,x,b)},Ye.parseScript=function S(_,y,b){var x=y||{};return x.sourceType="script",R(_,x,b)},Ye.tokenize=function v(_,y,b){var T,x=new W.Tokenizer(_,y);T=[];try{for(;;){var j=x.getNextToken();if(!j)break;b&&(j=b(j)),T.push(j)}}catch(Y){x.errorHandler.tolerate(Y)}return x.errorHandler.tolerant&&(T.errors=x.errors()),T};var g=ve(2);Ye.Syntax=g.Syntax,Ye.version="4.0.1"},function(Gn,Ye,ve){"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});var ee=ve(2),it=function(){function he(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return he.prototype.insertInnerComments=function(W,R){if(W.type===ee.Syntax.BlockStatement&&0===W.body.length){for(var D=[],S=this.leading.length-1;S>=0;--S){var v=this.leading[S];R.end.offset>=v.start&&(D.unshift(v.comment),this.leading.splice(S,1),this.trailing.splice(S,1))}D.length&&(W.innerComments=D)}},he.prototype.findTrailingComments=function(W){var R=[];if(this.trailing.length>0){for(var D=this.trailing.length-1;D>=0;--D){var S=this.trailing[D];S.start>=W.end.offset&&R.unshift(S.comment)}return this.trailing.length=0,R}var v=this.stack[this.stack.length-1];if(v&&v.node.trailingComments){var g=v.node.trailingComments[0];g&&g.range[0]>=W.end.offset&&(R=v.node.trailingComments,delete v.node.trailingComments)}return R},he.prototype.findLeadingComments=function(W){for(var D,R=[];this.stack.length>0&&(S=this.stack[this.stack.length-1])&&S.start>=W.start.offset;)D=S.node,this.stack.pop();if(D){for(var g=(D.leadingComments?D.leadingComments.length:0)-1;g>=0;--g){var _=D.leadingComments[g];_.range[1]<=W.start.offset&&(R.unshift(_),D.leadingComments.splice(g,1))}return D.leadingComments&&0===D.leadingComments.length&&delete D.leadingComments,R}for(g=this.leading.length-1;g>=0;--g){var S;(S=this.leading[g]).start<=W.start.offset&&(R.unshift(S.comment),this.leading.splice(g,1))}return R},he.prototype.visitNode=function(W,R){if(!(W.type===ee.Syntax.Program&&W.body.length>0)){this.insertInnerComments(W,R);var D=this.findTrailingComments(R),S=this.findLeadingComments(R);S.length>0&&(W.leadingComments=S),D.length>0&&(W.trailingComments=D),this.stack.push({node:W,start:R.start.offset})}},he.prototype.visitComment=function(W,R){var D="L"===W.type[0]?"Line":"Block",S={type:D,value:W.value};if(W.range&&(S.range=W.range),W.loc&&(S.loc=W.loc),this.comments.push(S),this.attach){var v={comment:{type:D,value:W.value,range:[R.start.offset,R.end.offset]},start:R.start.offset};W.loc&&(v.comment.loc=W.loc),W.type=D,this.leading.push(v),this.trailing.push(v)}},he.prototype.visit=function(W,R){"LineComment"===W.type||"BlockComment"===W.type?this.visitComment(W,R):this.attach&&this.visitNode(W,R)},he}();Ye.CommentHandler=it},function(Gn,Ye){"use strict";Object.defineProperty(Ye,"__esModule",{value:!0}),Ye.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(Gn,Ye,ve){"use strict";var y,ee=this&&this.__extends||(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var T in x)x.hasOwnProperty(T)&&(b[T]=x[T])},function(b,x){function T(){this.constructor=b}y(b,x),b.prototype=null===x?Object.create(x):(T.prototype=x.prototype,new T)});Object.defineProperty(Ye,"__esModule",{value:!0});var it=ve(4),he=ve(5),W=ve(6),R=ve(7),D=ve(8),S=ve(13),v=ve(14);function g(y){var b;switch(y.type){case W.JSXSyntax.JSXIdentifier:b=y.name;break;case W.JSXSyntax.JSXNamespacedName:var T=y;b=g(T.namespace)+":"+g(T.name);break;case W.JSXSyntax.JSXMemberExpression:var j=y;b=g(j.object)+"."+g(j.property)}return b}S.TokenName[100]="JSXIdentifier",S.TokenName[101]="JSXText";var _=function(y){function b(x,T,j){return y.call(this,x,T,j)||this}return ee(b,y),b.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():y.prototype.parsePrimaryExpression.call(this)},b.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},b.prototype.finishJSX=function(){this.nextToken()},b.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},b.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},b.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},b.prototype.scanXHTMLEntity=function(x){for(var T="&",j=!0,Y=!1,K=!1,q=!1;!this.scanner.eof()&&j&&!Y;){var O=this.scanner.source[this.scanner.index];if(O===x)break;if(Y=";"===O,T+=O,++this.scanner.index,!Y)switch(T.length){case 2:K="#"===O;break;case 3:K&&(j=(q="x"===O)||it.Character.isDecimalDigit(O.charCodeAt(0)),K=K&&!q);break;default:j=(j=j&&!(K&&!it.Character.isDecimalDigit(O.charCodeAt(0))))&&!(q&&!it.Character.isHexDigit(O.charCodeAt(0)))}}if(j&&Y&&T.length>2){var U=T.substr(1,T.length-2);K&&U.length>1?T=String.fromCharCode(parseInt(U.substr(1),10)):q&&U.length>2?T=String.fromCharCode(parseInt("0"+U.substr(1),16)):!K&&!q&&v.XHTMLEntities[U]&&(T=v.XHTMLEntities[U])}return T},b.prototype.lexJSX=function(){var x=this.scanner.source.charCodeAt(this.scanner.index);if(60===x||62===x||47===x||58===x||61===x||123===x||125===x)return{type:7,value:T=this.scanner.source[this.scanner.index++],lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index};if(34===x||39===x){for(var j=this.scanner.index,Y=this.scanner.source[this.scanner.index++],K="";!this.scanner.eof()&&(q=this.scanner.source[this.scanner.index++])!==Y;)K+="&"===q?this.scanXHTMLEntity(Y):q;return{type:8,value:K,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:j,end:this.scanner.index}}if(46===x){var T,O=this.scanner.source.charCodeAt(this.scanner.index+1),U=this.scanner.source.charCodeAt(this.scanner.index+2);return j=this.scanner.index,this.scanner.index+=(T=46===O&&46===U?"...":".").length,{type:7,value:T,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:j,end:this.scanner.index}}if(96===x)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(it.Character.isIdentifierStart(x)&&92!==x){for(j=this.scanner.index,++this.scanner.index;!this.scanner.eof();){var q=this.scanner.source.charCodeAt(this.scanner.index);if(it.Character.isIdentifierPart(q)&&92!==q)++this.scanner.index;else{if(45!==q)break;++this.scanner.index}}return{type:100,value:this.scanner.source.slice(j,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:j,end:this.scanner.index}}return this.scanner.lex()},b.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var x=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(x)),x},b.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var x=this.scanner.index,T="";!this.scanner.eof();){var j=this.scanner.source[this.scanner.index];if("{"===j||"<"===j)break;++this.scanner.index,T+=j,it.Character.isLineTerminator(j.charCodeAt(0))&&(++this.scanner.lineNumber,"\r"===j&&"\n"===this.scanner.source[this.scanner.index]&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var Y={type:101,value:T,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:x,end:this.scanner.index};return T.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(Y)),Y},b.prototype.peekJSXToken=function(){var x=this.scanner.saveState();this.scanner.scanComments();var T=this.lexJSX();return this.scanner.restoreState(x),T},b.prototype.expectJSX=function(x){var T=this.nextJSXToken();(7!==T.type||T.value!==x)&&this.throwUnexpectedToken(T)},b.prototype.matchJSX=function(x){var T=this.peekJSXToken();return 7===T.type&&T.value===x},b.prototype.parseJSXIdentifier=function(){var x=this.createJSXNode(),T=this.nextJSXToken();return 100!==T.type&&this.throwUnexpectedToken(T),this.finalize(x,new he.JSXIdentifier(T.value))},b.prototype.parseJSXElementName=function(){var x=this.createJSXNode(),T=this.parseJSXIdentifier();if(this.matchJSX(":")){var j=T;this.expectJSX(":");var Y=this.parseJSXIdentifier();T=this.finalize(x,new he.JSXNamespacedName(j,Y))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var K=T;this.expectJSX(".");var q=this.parseJSXIdentifier();T=this.finalize(x,new he.JSXMemberExpression(K,q))}return T},b.prototype.parseJSXAttributeName=function(){var T,x=this.createJSXNode(),j=this.parseJSXIdentifier();if(this.matchJSX(":")){var Y=j;this.expectJSX(":");var K=this.parseJSXIdentifier();T=this.finalize(x,new he.JSXNamespacedName(Y,K))}else T=j;return T},b.prototype.parseJSXStringLiteralAttribute=function(){var x=this.createJSXNode(),T=this.nextJSXToken();8!==T.type&&this.throwUnexpectedToken(T);var j=this.getTokenRaw(T);return this.finalize(x,new R.Literal(T.value,j))},b.prototype.parseJSXExpressionAttribute=function(){var x=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var T=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(x,new he.JSXExpressionContainer(T))},b.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},b.prototype.parseJSXNameValueAttribute=function(){var x=this.createJSXNode(),T=this.parseJSXAttributeName(),j=null;return this.matchJSX("=")&&(this.expectJSX("="),j=this.parseJSXAttributeValue()),this.finalize(x,new he.JSXAttribute(T,j))},b.prototype.parseJSXSpreadAttribute=function(){var x=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var T=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(x,new he.JSXSpreadAttribute(T))},b.prototype.parseJSXAttributes=function(){for(var x=[];!this.matchJSX("/")&&!this.matchJSX(">");){var T=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();x.push(T)}return x},b.prototype.parseJSXOpeningElement=function(){var x=this.createJSXNode();this.expectJSX("<");var T=this.parseJSXElementName(),j=this.parseJSXAttributes(),Y=this.matchJSX("/");return Y&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(x,new he.JSXOpeningElement(T,Y,j))},b.prototype.parseJSXBoundaryElement=function(){var x=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var T=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(x,new he.JSXClosingElement(T))}var j=this.parseJSXElementName(),Y=this.parseJSXAttributes(),K=this.matchJSX("/");return K&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(x,new he.JSXOpeningElement(j,K,Y))},b.prototype.parseJSXEmptyExpression=function(){var x=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(x,new he.JSXEmptyExpression)},b.prototype.parseJSXExpressionContainer=function(){var T,x=this.createJSXNode();return this.expectJSX("{"),this.matchJSX("}")?(T=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),T=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(x,new he.JSXExpressionContainer(T))},b.prototype.parseJSXChildren=function(){for(var x=[];!this.scanner.eof();){var T=this.createJSXChildNode(),j=this.nextJSXText();if(j.start0))break;q=this.finalize(x.node,new he.JSXElement(x.opening,x.children,x.closing)),(x=T[T.length-1]).children.push(q),T.pop()}}return x},b.prototype.parseJSXElement=function(){var x=this.createJSXNode(),T=this.parseJSXOpeningElement(),j=[],Y=null;if(!T.selfClosing){var K=this.parseComplexJSXElement({node:x,opening:T,closing:Y,children:j});j=K.children,Y=K.closing}return this.finalize(x,new he.JSXElement(T,j,Y))},b.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var x=this.parseJSXElement();return this.finishJSX(),x},b.prototype.isStartOfExpression=function(){return y.prototype.isStartOfExpression.call(this)||this.match("<")},b}(D.Parser);Ye.JSXParser=_},function(Gn,Ye){"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});var ve={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};Ye.Character={fromCodePoint:function(ee){return ee<65536?String.fromCharCode(ee):String.fromCharCode(55296+(ee-65536>>10))+String.fromCharCode(56320+(ee-65536&1023))},isWhiteSpace:function(ee){return 32===ee||9===ee||11===ee||12===ee||160===ee||ee>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(ee)>=0},isLineTerminator:function(ee){return 10===ee||13===ee||8232===ee||8233===ee},isIdentifierStart:function(ee){return 36===ee||95===ee||ee>=65&&ee<=90||ee>=97&&ee<=122||92===ee||ee>=128&&ve.NonAsciiIdentifierStart.test(Ye.Character.fromCodePoint(ee))},isIdentifierPart:function(ee){return 36===ee||95===ee||ee>=65&&ee<=90||ee>=97&&ee<=122||ee>=48&&ee<=57||92===ee||ee>=128&&ve.NonAsciiIdentifierPart.test(Ye.Character.fromCodePoint(ee))},isDecimalDigit:function(ee){return ee>=48&&ee<=57},isHexDigit:function(ee){return ee>=48&&ee<=57||ee>=65&&ee<=70||ee>=97&&ee<=102},isOctalDigit:function(ee){return ee>=48&&ee<=55}}},function(Gn,Ye,ve){"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});var ee=ve(6);Ye.JSXClosingElement=function x(T){this.type=ee.JSXSyntax.JSXClosingElement,this.name=T},Ye.JSXElement=function x(T,j,Y){this.type=ee.JSXSyntax.JSXElement,this.openingElement=T,this.children=j,this.closingElement=Y},Ye.JSXEmptyExpression=function x(){this.type=ee.JSXSyntax.JSXEmptyExpression},Ye.JSXExpressionContainer=function x(T){this.type=ee.JSXSyntax.JSXExpressionContainer,this.expression=T},Ye.JSXIdentifier=function x(T){this.type=ee.JSXSyntax.JSXIdentifier,this.name=T},Ye.JSXMemberExpression=function x(T,j){this.type=ee.JSXSyntax.JSXMemberExpression,this.object=T,this.property=j},Ye.JSXAttribute=function x(T,j){this.type=ee.JSXSyntax.JSXAttribute,this.name=T,this.value=j},Ye.JSXNamespacedName=function x(T,j){this.type=ee.JSXSyntax.JSXNamespacedName,this.namespace=T,this.name=j},Ye.JSXOpeningElement=function x(T,j,Y){this.type=ee.JSXSyntax.JSXOpeningElement,this.name=T,this.selfClosing=j,this.attributes=Y},Ye.JSXSpreadAttribute=function x(T){this.type=ee.JSXSyntax.JSXSpreadAttribute,this.argument=T},Ye.JSXText=function x(T,j){this.type=ee.JSXSyntax.JSXText,this.value=T,this.raw=j}},function(Gn,Ye){"use strict";Object.defineProperty(Ye,"__esModule",{value:!0}),Ye.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(Gn,Ye,ve){"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});var ee=ve(2);Ye.ArrayExpression=function dt(pt){this.type=ee.Syntax.ArrayExpression,this.elements=pt},Ye.ArrayPattern=function dt(pt){this.type=ee.Syntax.ArrayPattern,this.elements=pt},Ye.ArrowFunctionExpression=function dt(pt,Ht,Bn){this.type=ee.Syntax.ArrowFunctionExpression,this.id=null,this.params=pt,this.body=Ht,this.generator=!1,this.expression=Bn,this.async=!1},Ye.AssignmentExpression=function dt(pt,Ht,Bn){this.type=ee.Syntax.AssignmentExpression,this.operator=pt,this.left=Ht,this.right=Bn},Ye.AssignmentPattern=function dt(pt,Ht){this.type=ee.Syntax.AssignmentPattern,this.left=pt,this.right=Ht},Ye.AsyncArrowFunctionExpression=function dt(pt,Ht,Bn){this.type=ee.Syntax.ArrowFunctionExpression,this.id=null,this.params=pt,this.body=Ht,this.generator=!1,this.expression=Bn,this.async=!0},Ye.AsyncFunctionDeclaration=function dt(pt,Ht,Bn){this.type=ee.Syntax.FunctionDeclaration,this.id=pt,this.params=Ht,this.body=Bn,this.generator=!1,this.expression=!1,this.async=!0},Ye.AsyncFunctionExpression=function dt(pt,Ht,Bn){this.type=ee.Syntax.FunctionExpression,this.id=pt,this.params=Ht,this.body=Bn,this.generator=!1,this.expression=!1,this.async=!0},Ye.AwaitExpression=function dt(pt){this.type=ee.Syntax.AwaitExpression,this.argument=pt},Ye.BinaryExpression=function dt(pt,Ht,Bn){this.type="||"===pt||"&&"===pt?ee.Syntax.LogicalExpression:ee.Syntax.BinaryExpression,this.operator=pt,this.left=Ht,this.right=Bn},Ye.BlockStatement=function dt(pt){this.type=ee.Syntax.BlockStatement,this.body=pt},Ye.BreakStatement=function dt(pt){this.type=ee.Syntax.BreakStatement,this.label=pt},Ye.CallExpression=function dt(pt,Ht){this.type=ee.Syntax.CallExpression,this.callee=pt,this.arguments=Ht},Ye.CatchClause=function dt(pt,Ht){this.type=ee.Syntax.CatchClause,this.param=pt,this.body=Ht},Ye.ClassBody=function dt(pt){this.type=ee.Syntax.ClassBody,this.body=pt},Ye.ClassDeclaration=function dt(pt,Ht,Bn){this.type=ee.Syntax.ClassDeclaration,this.id=pt,this.superClass=Ht,this.body=Bn},Ye.ClassExpression=function dt(pt,Ht,Bn){this.type=ee.Syntax.ClassExpression,this.id=pt,this.superClass=Ht,this.body=Bn},Ye.ComputedMemberExpression=function dt(pt,Ht){this.type=ee.Syntax.MemberExpression,this.computed=!0,this.object=pt,this.property=Ht},Ye.ConditionalExpression=function dt(pt,Ht,Bn){this.type=ee.Syntax.ConditionalExpression,this.test=pt,this.consequent=Ht,this.alternate=Bn},Ye.ContinueStatement=function dt(pt){this.type=ee.Syntax.ContinueStatement,this.label=pt},Ye.DebuggerStatement=function dt(){this.type=ee.Syntax.DebuggerStatement},Ye.Directive=function dt(pt,Ht){this.type=ee.Syntax.ExpressionStatement,this.expression=pt,this.directive=Ht},Ye.DoWhileStatement=function dt(pt,Ht){this.type=ee.Syntax.DoWhileStatement,this.body=pt,this.test=Ht},Ye.EmptyStatement=function dt(){this.type=ee.Syntax.EmptyStatement},Ye.ExportAllDeclaration=function dt(pt){this.type=ee.Syntax.ExportAllDeclaration,this.source=pt},Ye.ExportDefaultDeclaration=function dt(pt){this.type=ee.Syntax.ExportDefaultDeclaration,this.declaration=pt},Ye.ExportNamedDeclaration=function dt(pt,Ht,Bn){this.type=ee.Syntax.ExportNamedDeclaration,this.declaration=pt,this.specifiers=Ht,this.source=Bn},Ye.ExportSpecifier=function dt(pt,Ht){this.type=ee.Syntax.ExportSpecifier,this.exported=Ht,this.local=pt},Ye.ExpressionStatement=function dt(pt){this.type=ee.Syntax.ExpressionStatement,this.expression=pt},Ye.ForInStatement=function dt(pt,Ht,Bn){this.type=ee.Syntax.ForInStatement,this.left=pt,this.right=Ht,this.body=Bn,this.each=!1},Ye.ForOfStatement=function dt(pt,Ht,Bn){this.type=ee.Syntax.ForOfStatement,this.left=pt,this.right=Ht,this.body=Bn},Ye.ForStatement=function dt(pt,Ht,Bn,so){this.type=ee.Syntax.ForStatement,this.init=pt,this.test=Ht,this.update=Bn,this.body=so},Ye.FunctionDeclaration=function dt(pt,Ht,Bn,so){this.type=ee.Syntax.FunctionDeclaration,this.id=pt,this.params=Ht,this.body=Bn,this.generator=so,this.expression=!1,this.async=!1},Ye.FunctionExpression=function dt(pt,Ht,Bn,so){this.type=ee.Syntax.FunctionExpression,this.id=pt,this.params=Ht,this.body=Bn,this.generator=so,this.expression=!1,this.async=!1},Ye.Identifier=function dt(pt){this.type=ee.Syntax.Identifier,this.name=pt},Ye.IfStatement=function dt(pt,Ht,Bn){this.type=ee.Syntax.IfStatement,this.test=pt,this.consequent=Ht,this.alternate=Bn},Ye.ImportDeclaration=function dt(pt,Ht){this.type=ee.Syntax.ImportDeclaration,this.specifiers=pt,this.source=Ht},Ye.ImportDefaultSpecifier=function dt(pt){this.type=ee.Syntax.ImportDefaultSpecifier,this.local=pt},Ye.ImportNamespaceSpecifier=function dt(pt){this.type=ee.Syntax.ImportNamespaceSpecifier,this.local=pt},Ye.ImportSpecifier=function dt(pt,Ht){this.type=ee.Syntax.ImportSpecifier,this.local=pt,this.imported=Ht},Ye.LabeledStatement=function dt(pt,Ht){this.type=ee.Syntax.LabeledStatement,this.label=pt,this.body=Ht},Ye.Literal=function dt(pt,Ht){this.type=ee.Syntax.Literal,this.value=pt,this.raw=Ht},Ye.MetaProperty=function dt(pt,Ht){this.type=ee.Syntax.MetaProperty,this.meta=pt,this.property=Ht},Ye.MethodDefinition=function dt(pt,Ht,Bn,so,q0){this.type=ee.Syntax.MethodDefinition,this.key=pt,this.computed=Ht,this.value=Bn,this.kind=so,this.static=q0},Ye.Module=function dt(pt){this.type=ee.Syntax.Program,this.body=pt,this.sourceType="module"},Ye.NewExpression=function dt(pt,Ht){this.type=ee.Syntax.NewExpression,this.callee=pt,this.arguments=Ht},Ye.ObjectExpression=function dt(pt){this.type=ee.Syntax.ObjectExpression,this.properties=pt},Ye.ObjectPattern=function dt(pt){this.type=ee.Syntax.ObjectPattern,this.properties=pt},Ye.Property=function dt(pt,Ht,Bn,so,q0,yr){this.type=ee.Syntax.Property,this.key=Ht,this.computed=Bn,this.value=so,this.kind=pt,this.method=q0,this.shorthand=yr},Ye.RegexLiteral=function dt(pt,Ht,Bn,so){this.type=ee.Syntax.Literal,this.value=pt,this.raw=Ht,this.regex={pattern:Bn,flags:so}},Ye.RestElement=function dt(pt){this.type=ee.Syntax.RestElement,this.argument=pt},Ye.ReturnStatement=function dt(pt){this.type=ee.Syntax.ReturnStatement,this.argument=pt},Ye.Script=function dt(pt){this.type=ee.Syntax.Program,this.body=pt,this.sourceType="script"},Ye.SequenceExpression=function dt(pt){this.type=ee.Syntax.SequenceExpression,this.expressions=pt},Ye.SpreadElement=function dt(pt){this.type=ee.Syntax.SpreadElement,this.argument=pt},Ye.StaticMemberExpression=function dt(pt,Ht){this.type=ee.Syntax.MemberExpression,this.computed=!1,this.object=pt,this.property=Ht},Ye.Super=function dt(){this.type=ee.Syntax.Super},Ye.SwitchCase=function dt(pt,Ht){this.type=ee.Syntax.SwitchCase,this.test=pt,this.consequent=Ht},Ye.SwitchStatement=function dt(pt,Ht){this.type=ee.Syntax.SwitchStatement,this.discriminant=pt,this.cases=Ht},Ye.TaggedTemplateExpression=function dt(pt,Ht){this.type=ee.Syntax.TaggedTemplateExpression,this.tag=pt,this.quasi=Ht},Ye.TemplateElement=function dt(pt,Ht){this.type=ee.Syntax.TemplateElement,this.value=pt,this.tail=Ht},Ye.TemplateLiteral=function dt(pt,Ht){this.type=ee.Syntax.TemplateLiteral,this.quasis=pt,this.expressions=Ht},Ye.ThisExpression=function dt(){this.type=ee.Syntax.ThisExpression},Ye.ThrowStatement=function dt(pt){this.type=ee.Syntax.ThrowStatement,this.argument=pt},Ye.TryStatement=function dt(pt,Ht,Bn){this.type=ee.Syntax.TryStatement,this.block=pt,this.handler=Ht,this.finalizer=Bn},Ye.UnaryExpression=function dt(pt,Ht){this.type=ee.Syntax.UnaryExpression,this.operator=pt,this.argument=Ht,this.prefix=!0},Ye.UpdateExpression=function dt(pt,Ht,Bn){this.type=ee.Syntax.UpdateExpression,this.operator=pt,this.argument=Ht,this.prefix=Bn},Ye.VariableDeclaration=function dt(pt,Ht){this.type=ee.Syntax.VariableDeclaration,this.declarations=pt,this.kind=Ht},Ye.VariableDeclarator=function dt(pt,Ht){this.type=ee.Syntax.VariableDeclarator,this.id=pt,this.init=Ht},Ye.WhileStatement=function dt(pt,Ht){this.type=ee.Syntax.WhileStatement,this.test=pt,this.body=Ht},Ye.WithStatement=function dt(pt,Ht){this.type=ee.Syntax.WithStatement,this.object=pt,this.body=Ht},Ye.YieldExpression=function dt(pt,Ht){this.type=ee.Syntax.YieldExpression,this.argument=pt,this.delegate=Ht}},function(Gn,Ye,ve){"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});var ee=ve(9),it=ve(10),he=ve(11),W=ve(7),R=ve(12),D=ve(2),S=ve(13),v="ArrowParameterPlaceHolder",g=function(){function _(y,b,x){void 0===b&&(b={}),this.config={range:"boolean"==typeof b.range&&b.range,loc:"boolean"==typeof b.loc&&b.loc,source:null,tokens:"boolean"==typeof b.tokens&&b.tokens,comment:"boolean"==typeof b.comment&&b.comment,tolerant:"boolean"==typeof b.tolerant&&b.tolerant},this.config.loc&&b.source&&null!==b.source&&(this.config.source=String(b.source)),this.delegate=x,this.errorHandler=new it.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new R.Scanner(y,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return _.prototype.throwError=function(y){for(var b=[],x=1;x0&&this.delegate)for(var b=0;b>="===y||">>>="===y||"&="===y||"^="===y||"|="===y},_.prototype.isolateCoverGrammar=function(y){var b=this.context.isBindingElement,x=this.context.isAssignmentTarget,T=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var j=y.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=b,this.context.isAssignmentTarget=x,this.context.firstCoverInitializedNameError=T,j},_.prototype.inheritCoverGrammar=function(y){var b=this.context.isBindingElement,x=this.context.isAssignmentTarget,T=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var j=y.call(this);return this.context.isBindingElement=this.context.isBindingElement&&b,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&x,this.context.firstCoverInitializedNameError=T||this.context.firstCoverInitializedNameError,j},_.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(2!==this.lookahead.type&&!this.match("}")&&this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},_.prototype.parsePrimaryExpression=function(){var b,x,T,y=this.createNode();switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&"await"===this.lookahead.value&&this.tolerateUnexpectedToken(this.lookahead),b=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(y,new W.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,he.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,x=this.nextToken(),T=this.getTokenRaw(x),b=this.finalize(y,new W.Literal(x.value,T));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,x=this.nextToken(),T=this.getTokenRaw(x),b=this.finalize(y,new W.Literal("true"===x.value,T));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,x=this.nextToken(),T=this.getTokenRaw(x),b=this.finalize(y,new W.Literal(null,T));break;case 10:b=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,b=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":b=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":b=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,x=this.nextRegexToken(),T=this.getTokenRaw(x),b=this.finalize(y,new W.RegexLiteral(x.regex,T,x.pattern,x.flags));break;default:b=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?b=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?b=this.finalize(y,new W.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?b=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),b=this.finalize(y,new W.ThisExpression)):b=this.matchKeyword("class")?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:b=this.throwUnexpectedToken(this.nextToken())}return b},_.prototype.parseSpreadElement=function(){var y=this.createNode();this.expect("...");var b=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(y,new W.SpreadElement(b))},_.prototype.parseArrayInitializer=function(){var y=this.createNode(),b=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),b.push(null);else if(this.match("...")){var x=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),b.push(x)}else b.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(y,new W.ArrayExpression(b))},_.prototype.parsePropertyMethod=function(y){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var b=this.context.strict,x=this.context.allowStrictDirective;this.context.allowStrictDirective=y.simple;var T=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&y.firstRestricted&&this.tolerateUnexpectedToken(y.firstRestricted,y.message),this.context.strict&&y.stricted&&this.tolerateUnexpectedToken(y.stricted,y.message),this.context.strict=b,this.context.allowStrictDirective=x,T},_.prototype.parsePropertyMethodFunction=function(){var b=this.createNode(),x=this.context.allowYield;this.context.allowYield=!0;var T=this.parseFormalParameters(),j=this.parsePropertyMethod(T);return this.context.allowYield=x,this.finalize(b,new W.FunctionExpression(null,T.params,j,!1))},_.prototype.parsePropertyMethodAsyncFunction=function(){var y=this.createNode(),b=this.context.allowYield,x=this.context.await;this.context.allowYield=!1,this.context.await=!0;var T=this.parseFormalParameters(),j=this.parsePropertyMethod(T);return this.context.allowYield=b,this.context.await=x,this.finalize(y,new W.AsyncFunctionExpression(null,T.params,j))},_.prototype.parseObjectPropertyKey=function(){var x,y=this.createNode(),b=this.nextToken();switch(b.type){case 8:case 6:this.context.strict&&b.octal&&this.tolerateUnexpectedToken(b,he.Messages.StrictOctalLiteral);var T=this.getTokenRaw(b);x=this.finalize(y,new W.Literal(b.value,T));break;case 3:case 1:case 5:case 4:x=this.finalize(y,new W.Identifier(b.value));break;case 7:"["===b.value?(x=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):x=this.throwUnexpectedToken(b);break;default:x=this.throwUnexpectedToken(b)}return x},_.prototype.isPropertyKey=function(y,b){return y.type===D.Syntax.Identifier&&y.name===b||y.type===D.Syntax.Literal&&y.value===b},_.prototype.parseObjectProperty=function(y){var T,b=this.createNode(),x=this.lookahead,j=null,Y=null,K=!1,q=!1,O=!1,U=!1;if(3===x.type){var P=x.value;this.nextToken(),K=this.match("["),j=(U=!(this.hasLineTerminator||"async"!==P||this.match(":")||this.match("(")||this.match("*")||this.match(",")))?this.parseObjectPropertyKey():this.finalize(b,new W.Identifier(P))}else this.match("*")?this.nextToken():(K=this.match("["),j=this.parseObjectPropertyKey());var $=this.qualifiedPropertyName(this.lookahead);if(3===x.type&&!U&&"get"===x.value&&$)T="get",K=this.match("["),j=this.parseObjectPropertyKey(),this.context.allowYield=!1,Y=this.parseGetterMethod();else if(3===x.type&&!U&&"set"===x.value&&$)T="set",K=this.match("["),j=this.parseObjectPropertyKey(),Y=this.parseSetterMethod();else if(7===x.type&&"*"===x.value&&$)T="init",K=this.match("["),j=this.parseObjectPropertyKey(),Y=this.parseGeneratorMethod(),q=!0;else if(j||this.throwUnexpectedToken(this.lookahead),T="init",this.match(":")&&!U)!K&&this.isPropertyKey(j,"__proto__")&&(y.value&&this.tolerateError(he.Messages.DuplicateProtoProperty),y.value=!0),this.nextToken(),Y=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))Y=U?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),q=!0;else if(3===x.type)if(P=this.finalize(b,new W.Identifier(x.value)),this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),O=!0;var V=this.isolateCoverGrammar(this.parseAssignmentExpression);Y=this.finalize(b,new W.AssignmentPattern(P,V))}else O=!0,Y=P;else this.throwUnexpectedToken(this.nextToken());return this.finalize(b,new W.Property(T,j,K,Y,q,O))},_.prototype.parseObjectInitializer=function(){var y=this.createNode();this.expect("{");for(var b=[],x={value:!1};!this.match("}");)b.push(this.parseObjectProperty(x)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(y,new W.ObjectExpression(b))},_.prototype.parseTemplateHead=function(){ee.assert(this.lookahead.head,"Template literal must start with a template head");var y=this.createNode(),b=this.nextToken();return this.finalize(y,new W.TemplateElement({raw:b.value,cooked:b.cooked},b.tail))},_.prototype.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();var y=this.createNode(),b=this.nextToken();return this.finalize(y,new W.TemplateElement({raw:b.value,cooked:b.cooked},b.tail))},_.prototype.parseTemplateLiteral=function(){var y=this.createNode(),b=[],x=[],T=this.parseTemplateHead();for(x.push(T);!T.tail;)b.push(this.parseExpression()),T=this.parseTemplateElement(),x.push(T);return this.finalize(y,new W.TemplateLiteral(x,b))},_.prototype.reinterpretExpressionAsPattern=function(y){switch(y.type){case D.Syntax.Identifier:case D.Syntax.MemberExpression:case D.Syntax.RestElement:case D.Syntax.AssignmentPattern:break;case D.Syntax.SpreadElement:y.type=D.Syntax.RestElement,this.reinterpretExpressionAsPattern(y.argument);break;case D.Syntax.ArrayExpression:y.type=D.Syntax.ArrayPattern;for(var b=0;b")||this.expect("=>"),y={type:v,params:[],async:!1};else{var b=this.lookahead,x=[];if(this.match("..."))y=this.parseRestElement(x),this.expect(")"),this.match("=>")||this.expect("=>"),y={type:v,params:[y],async:!1};else{var T=!1;if(this.context.isBindingElement=!0,y=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var j=[];for(this.context.isAssignmentTarget=!1,j.push(y);2!==this.lookahead.type&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var Y=0;Y")||this.expect("=>"),this.context.isBindingElement=!1,Y=0;Y")&&(y.type===D.Syntax.Identifier&&"yield"===y.name&&(T=!0,y={type:v,params:[y],async:!1}),!T)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),y.type===D.Syntax.SequenceExpression)for(Y=0;Y")){for(var q=0;q0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var j=[y,this.lookahead],Y=b,K=this.isolateCoverGrammar(this.parseExponentiationExpression),q=[Y,x.value,K],O=[T];!((T=this.binaryPrecedence(this.lookahead))<=0);){for(;q.length>2&&T<=O[O.length-1];){K=q.pop();var U=q.pop();O.pop(),Y=q.pop(),j.pop();var P=this.startNode(j[j.length-1]);q.push(this.finalize(P,new W.BinaryExpression(U,Y,K)))}q.push(this.nextToken().value),O.push(T),j.push(this.lookahead),q.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var $=q.length-1;b=q[$];for(var V=j.pop();$>1;){var F=j.pop();P=this.startNode(F,V&&V.lineStart),b=this.finalize(P,new W.BinaryExpression(U=q[$-1],q[$-2],b)),$-=2,V=F}}return b},_.prototype.parseConditionalExpression=function(){var y=this.lookahead,b=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var x=this.context.allowIn;this.context.allowIn=!0;var T=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=x,this.expect(":");var j=this.isolateCoverGrammar(this.parseAssignmentExpression);b=this.finalize(this.startNode(y),new W.ConditionalExpression(b,T,j)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return b},_.prototype.checkPatternParam=function(y,b){switch(b.type){case D.Syntax.Identifier:this.validateParam(y,b,b.name);break;case D.Syntax.RestElement:this.checkPatternParam(y,b.argument);break;case D.Syntax.AssignmentPattern:this.checkPatternParam(y,b.left);break;case D.Syntax.ArrayPattern:for(var x=0;x")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var j=y.async,Y=this.reinterpretAsCoverFormalsList(y);if(Y){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var K=this.context.strict,q=this.context.allowStrictDirective;this.context.allowStrictDirective=Y.simple;var O=this.context.allowYield,U=this.context.await;this.context.allowYield=!0,this.context.await=j;var P=this.startNode(b);this.expect("=>");var $=void 0;if(this.match("{")){var V=this.context.allowIn;this.context.allowIn=!0,$=this.parseFunctionSourceElements(),this.context.allowIn=V}else $=this.isolateCoverGrammar(this.parseAssignmentExpression);var F=$.type!==D.Syntax.BlockStatement;this.context.strict&&Y.firstRestricted&&this.throwUnexpectedToken(Y.firstRestricted,Y.message),this.context.strict&&Y.stricted&&this.tolerateUnexpectedToken(Y.stricted,Y.message),y=this.finalize(P,j?new W.AsyncArrowFunctionExpression(Y.params,$,F):new W.ArrowFunctionExpression(Y.params,$,F)),this.context.strict=K,this.context.allowStrictDirective=q,this.context.allowYield=O,this.context.await=U}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(he.Messages.InvalidLHSInAssignment),this.context.strict&&y.type===D.Syntax.Identifier){var X=y;this.scanner.isRestrictedWord(X.name)&&this.tolerateUnexpectedToken(x,he.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(X.name)&&this.tolerateUnexpectedToken(x,he.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(y):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1);var Ce=(x=this.nextToken()).value,Me=this.isolateCoverGrammar(this.parseAssignmentExpression);y=this.finalize(this.startNode(b),new W.AssignmentExpression(Ce,y,Me)),this.context.firstCoverInitializedNameError=null}}return y},_.prototype.parseExpression=function(){var y=this.lookahead,b=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var x=[];for(x.push(b);2!==this.lookahead.type&&this.match(",");)this.nextToken(),x.push(this.isolateCoverGrammar(this.parseAssignmentExpression));b=this.finalize(this.startNode(y),new W.SequenceExpression(x))}return b},_.prototype.parseStatementListItem=function(){var y;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,4===this.lookahead.type)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,he.Messages.IllegalExportDeclaration),y=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,he.Messages.IllegalImportDeclaration),y=this.parseImportDeclaration();break;case"const":y=this.parseLexicalDeclaration({inFor:!1});break;case"function":y=this.parseFunctionDeclaration();break;case"class":y=this.parseClassDeclaration();break;case"let":y=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:y=this.parseStatement()}else y=this.parseStatement();return y},_.prototype.parseBlock=function(){var y=this.createNode();this.expect("{");for(var b=[];!this.match("}");)b.push(this.parseStatementListItem());return this.expect("}"),this.finalize(y,new W.BlockStatement(b))},_.prototype.parseLexicalBinding=function(y,b){var x=this.createNode(),j=this.parsePattern([],y);this.context.strict&&j.type===D.Syntax.Identifier&&this.scanner.isRestrictedWord(j.name)&&this.tolerateError(he.Messages.StrictVarName);var Y=null;return"const"===y?!this.matchKeyword("in")&&!this.matchContextualKeyword("of")&&(this.match("=")?(this.nextToken(),Y=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(he.Messages.DeclarationMissingInitializer,"const")):(!b.inFor&&j.type!==D.Syntax.Identifier||this.match("="))&&(this.expect("="),Y=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(x,new W.VariableDeclarator(j,Y))},_.prototype.parseBindingList=function(y,b){for(var x=[this.parseLexicalBinding(y,b)];this.match(",");)this.nextToken(),x.push(this.parseLexicalBinding(y,b));return x},_.prototype.isLexicalDeclaration=function(){var y=this.scanner.saveState();this.scanner.scanComments();var b=this.scanner.lex();return this.scanner.restoreState(y),3===b.type||7===b.type&&"["===b.value||7===b.type&&"{"===b.value||4===b.type&&"let"===b.value||4===b.type&&"yield"===b.value},_.prototype.parseLexicalDeclaration=function(y){var b=this.createNode(),x=this.nextToken().value;ee.assert("let"===x||"const"===x,"Lexical declaration must be either let or const");var T=this.parseBindingList(x,y);return this.consumeSemicolon(),this.finalize(b,new W.VariableDeclaration(T,x))},_.prototype.parseBindingRestElement=function(y,b){var x=this.createNode();this.expect("...");var T=this.parsePattern(y,b);return this.finalize(x,new W.RestElement(T))},_.prototype.parseArrayPattern=function(y,b){var x=this.createNode();this.expect("[");for(var T=[];!this.match("]");)if(this.match(","))this.nextToken(),T.push(null);else{if(this.match("...")){T.push(this.parseBindingRestElement(y,b));break}T.push(this.parsePatternWithDefault(y,b)),this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(x,new W.ArrayPattern(T))},_.prototype.parsePropertyPattern=function(y,b){var K,q,x=this.createNode(),T=!1,j=!1;if(3===this.lookahead.type){var O=this.lookahead;K=this.parseVariableIdentifier();var U=this.finalize(x,new W.Identifier(O.value));if(this.match("=")){y.push(O),j=!0,this.nextToken();var P=this.parseAssignmentExpression();q=this.finalize(this.startNode(O),new W.AssignmentPattern(U,P))}else this.match(":")?(this.expect(":"),q=this.parsePatternWithDefault(y,b)):(y.push(O),j=!0,q=U)}else T=this.match("["),K=this.parseObjectPropertyKey(),this.expect(":"),q=this.parsePatternWithDefault(y,b);return this.finalize(x,new W.Property("init",K,T,q,!1,j))},_.prototype.parseObjectPattern=function(y,b){var x=this.createNode(),T=[];for(this.expect("{");!this.match("}");)T.push(this.parsePropertyPattern(y,b)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(x,new W.ObjectPattern(T))},_.prototype.parsePattern=function(y,b){var x;return this.match("[")?x=this.parseArrayPattern(y,b):this.match("{")?x=this.parseObjectPattern(y,b):(this.matchKeyword("let")&&("const"===b||"let"===b)&&this.tolerateUnexpectedToken(this.lookahead,he.Messages.LetInLexicalBinding),y.push(this.lookahead),x=this.parseVariableIdentifier(b)),x},_.prototype.parsePatternWithDefault=function(y,b){var x=this.lookahead,T=this.parsePattern(y,b);if(this.match("=")){this.nextToken();var j=this.context.allowYield;this.context.allowYield=!0;var Y=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=j,T=this.finalize(this.startNode(x),new W.AssignmentPattern(T,Y))}return T},_.prototype.parseVariableIdentifier=function(y){var b=this.createNode(),x=this.nextToken();return 4===x.type&&"yield"===x.value?this.context.strict?this.tolerateUnexpectedToken(x,he.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(x):3!==x.type?this.context.strict&&4===x.type&&this.scanner.isStrictModeReservedWord(x.value)?this.tolerateUnexpectedToken(x,he.Messages.StrictReservedWord):(this.context.strict||"let"!==x.value||"var"!==y)&&this.throwUnexpectedToken(x):(this.context.isModule||this.context.await)&&3===x.type&&"await"===x.value&&this.tolerateUnexpectedToken(x),this.finalize(b,new W.Identifier(x.value))},_.prototype.parseVariableDeclaration=function(y){var b=this.createNode(),T=this.parsePattern([],"var");this.context.strict&&T.type===D.Syntax.Identifier&&this.scanner.isRestrictedWord(T.name)&&this.tolerateError(he.Messages.StrictVarName);var j=null;return this.match("=")?(this.nextToken(),j=this.isolateCoverGrammar(this.parseAssignmentExpression)):T.type!==D.Syntax.Identifier&&!y.inFor&&this.expect("="),this.finalize(b,new W.VariableDeclarator(T,j))},_.prototype.parseVariableDeclarationList=function(y){var b={inFor:y.inFor},x=[];for(x.push(this.parseVariableDeclaration(b));this.match(",");)this.nextToken(),x.push(this.parseVariableDeclaration(b));return x},_.prototype.parseVariableStatement=function(){var y=this.createNode();this.expectKeyword("var");var b=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(y,new W.VariableDeclaration(b,"var"))},_.prototype.parseEmptyStatement=function(){var y=this.createNode();return this.expect(";"),this.finalize(y,new W.EmptyStatement)},_.prototype.parseExpressionStatement=function(){var y=this.createNode(),b=this.parseExpression();return this.consumeSemicolon(),this.finalize(y,new W.ExpressionStatement(b))},_.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(he.Messages.StrictFunction),this.parseStatement()},_.prototype.parseIfStatement=function(){var b,y=this.createNode(),x=null;this.expectKeyword("if"),this.expect("(");var T=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),b=this.finalize(this.createNode(),new W.EmptyStatement)):(this.expect(")"),b=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),x=this.parseIfClause())),this.finalize(y,new W.IfStatement(T,b,x))},_.prototype.parseDoWhileStatement=function(){var y=this.createNode();this.expectKeyword("do");var b=this.context.inIteration;this.context.inIteration=!0;var x=this.parseStatement();this.context.inIteration=b,this.expectKeyword("while"),this.expect("(");var T=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(y,new W.DoWhileStatement(x,T))},_.prototype.parseWhileStatement=function(){var b,y=this.createNode();this.expectKeyword("while"),this.expect("(");var x=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),b=this.finalize(this.createNode(),new W.EmptyStatement);else{this.expect(")");var T=this.context.inIteration;this.context.inIteration=!0,b=this.parseStatement(),this.context.inIteration=T}return this.finalize(y,new W.WhileStatement(x,b))},_.prototype.parseForStatement=function(){var j,Y,F,y=null,b=null,x=null,T=!0,K=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){y=this.createNode(),this.nextToken();var q=this.context.allowIn;this.context.allowIn=!1;var O=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=q,1===O.length&&this.matchKeyword("in")){var U=O[0];U.init&&(U.id.type===D.Syntax.ArrayPattern||U.id.type===D.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(he.Messages.ForInOfLoopInitializer,"for-in"),y=this.finalize(y,new W.VariableDeclaration(O,"var")),this.nextToken(),j=y,Y=this.parseExpression(),y=null}else 1===O.length&&null===O[0].init&&this.matchContextualKeyword("of")?(y=this.finalize(y,new W.VariableDeclaration(O,"var")),this.nextToken(),j=y,Y=this.parseAssignmentExpression(),y=null,T=!1):(y=this.finalize(y,new W.VariableDeclaration(O,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){y=this.createNode();var P=this.nextToken().value;this.context.strict||"in"!==this.lookahead.value?(q=this.context.allowIn,this.context.allowIn=!1,O=this.parseBindingList(P,{inFor:!0}),this.context.allowIn=q,1===O.length&&null===O[0].init&&this.matchKeyword("in")?(y=this.finalize(y,new W.VariableDeclaration(O,P)),this.nextToken(),j=y,Y=this.parseExpression(),y=null):1===O.length&&null===O[0].init&&this.matchContextualKeyword("of")?(y=this.finalize(y,new W.VariableDeclaration(O,P)),this.nextToken(),j=y,Y=this.parseAssignmentExpression(),y=null,T=!1):(this.consumeSemicolon(),y=this.finalize(y,new W.VariableDeclaration(O,P)))):(y=this.finalize(y,new W.Identifier(P)),this.nextToken(),j=y,Y=this.parseExpression(),y=null)}else{var $=this.lookahead;if(q=this.context.allowIn,this.context.allowIn=!1,y=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=q,this.matchKeyword("in"))(!this.context.isAssignmentTarget||y.type===D.Syntax.AssignmentExpression)&&this.tolerateError(he.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(y),j=y,Y=this.parseExpression(),y=null;else if(this.matchContextualKeyword("of"))(!this.context.isAssignmentTarget||y.type===D.Syntax.AssignmentExpression)&&this.tolerateError(he.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(y),j=y,Y=this.parseAssignmentExpression(),y=null,T=!1;else{if(this.match(",")){for(var V=[y];this.match(",");)this.nextToken(),V.push(this.isolateCoverGrammar(this.parseAssignmentExpression));y=this.finalize(this.startNode($),new W.SequenceExpression(V))}this.expect(";")}}if(typeof j>"u"&&(this.match(";")||(b=this.parseExpression()),this.expect(";"),this.match(")")||(x=this.parseExpression())),!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),F=this.finalize(this.createNode(),new W.EmptyStatement);else{this.expect(")");var X=this.context.inIteration;this.context.inIteration=!0,F=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=X}return this.finalize(K,typeof j>"u"?new W.ForStatement(y,b,x,F):T?new W.ForInStatement(j,Y,F):new W.ForOfStatement(j,Y,F))},_.prototype.parseContinueStatement=function(){var y=this.createNode();this.expectKeyword("continue");var b=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var x=this.parseVariableIdentifier();b=x,Object.prototype.hasOwnProperty.call(this.context.labelSet,"$"+x.name)||this.throwError(he.Messages.UnknownLabel,x.name)}return this.consumeSemicolon(),null===b&&!this.context.inIteration&&this.throwError(he.Messages.IllegalContinue),this.finalize(y,new W.ContinueStatement(b))},_.prototype.parseBreakStatement=function(){var y=this.createNode();this.expectKeyword("break");var b=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var x=this.parseVariableIdentifier();Object.prototype.hasOwnProperty.call(this.context.labelSet,"$"+x.name)||this.throwError(he.Messages.UnknownLabel,x.name),b=x}return this.consumeSemicolon(),null===b&&!this.context.inIteration&&!this.context.inSwitch&&this.throwError(he.Messages.IllegalBreak),this.finalize(y,new W.BreakStatement(b))},_.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(he.Messages.IllegalReturn);var y=this.createNode();this.expectKeyword("return");var x=(this.match(";")||this.match("}")||this.hasLineTerminator||2===this.lookahead.type)&&8!==this.lookahead.type&&10!==this.lookahead.type?null:this.parseExpression();return this.consumeSemicolon(),this.finalize(y,new W.ReturnStatement(x))},_.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(he.Messages.StrictModeWith);var b,y=this.createNode();this.expectKeyword("with"),this.expect("(");var x=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),b=this.finalize(this.createNode(),new W.EmptyStatement)):(this.expect(")"),b=this.parseStatement()),this.finalize(y,new W.WithStatement(x,b))},_.prototype.parseSwitchCase=function(){var b,y=this.createNode();this.matchKeyword("default")?(this.nextToken(),b=null):(this.expectKeyword("case"),b=this.parseExpression()),this.expect(":");for(var x=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)x.push(this.parseStatementListItem());return this.finalize(y,new W.SwitchCase(b,x))},_.prototype.parseSwitchStatement=function(){var y=this.createNode();this.expectKeyword("switch"),this.expect("(");var b=this.parseExpression();this.expect(")");var x=this.context.inSwitch;this.context.inSwitch=!0;var T=[],j=!1;for(this.expect("{");!this.match("}");){var Y=this.parseSwitchCase();null===Y.test&&(j&&this.throwError(he.Messages.MultipleDefaultsInSwitch),j=!0),T.push(Y)}return this.expect("}"),this.context.inSwitch=x,this.finalize(y,new W.SwitchStatement(b,T))},_.prototype.parseLabelledStatement=function(){var x,y=this.createNode(),b=this.parseExpression();if(b.type===D.Syntax.Identifier&&this.match(":")){this.nextToken();var T=b,j="$"+T.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,j)&&this.throwError(he.Messages.Redeclaration,"Label",T.name),this.context.labelSet[j]=!0;var Y=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),Y=this.parseClassDeclaration();else if(this.matchKeyword("function")){var K=this.lookahead,q=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(K,he.Messages.StrictFunction):q.generator&&this.tolerateUnexpectedToken(K,he.Messages.GeneratorInLegacyContext),Y=q}else Y=this.parseStatement();delete this.context.labelSet[j],x=new W.LabeledStatement(T,Y)}else this.consumeSemicolon(),x=new W.ExpressionStatement(b);return this.finalize(y,x)},_.prototype.parseThrowStatement=function(){var y=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(he.Messages.NewlineAfterThrow);var b=this.parseExpression();return this.consumeSemicolon(),this.finalize(y,new W.ThrowStatement(b))},_.prototype.parseCatchClause=function(){var y=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var b=[],x=this.parsePattern(b),T={},j=0;j0&&this.tolerateError(he.Messages.BadGetterArity);var j=this.parsePropertyMethod(T);return this.context.allowYield=x,this.finalize(y,new W.FunctionExpression(null,T.params,j,false))},_.prototype.parseSetterMethod=function(){var y=this.createNode(),x=this.context.allowYield;this.context.allowYield=!0;var T=this.parseFormalParameters();1!==T.params.length?this.tolerateError(he.Messages.BadSetterArity):T.params[0]instanceof W.RestElement&&this.tolerateError(he.Messages.BadSetterRestParameter);var j=this.parsePropertyMethod(T);return this.context.allowYield=x,this.finalize(y,new W.FunctionExpression(null,T.params,j,false))},_.prototype.parseGeneratorMethod=function(){var y=this.createNode(),x=this.context.allowYield;this.context.allowYield=!0;var T=this.parseFormalParameters();this.context.allowYield=!1;var j=this.parsePropertyMethod(T);return this.context.allowYield=x,this.finalize(y,new W.FunctionExpression(null,T.params,j,!0))},_.prototype.isStartOfExpression=function(){var y=!0,b=this.lookahead.value;switch(this.lookahead.type){case 7:y="["===b||"("===b||"{"===b||"+"===b||"-"===b||"!"===b||"~"===b||"++"===b||"--"===b||"/"===b||"/="===b;break;case 4:y="class"===b||"delete"===b||"function"===b||"let"===b||"new"===b||"super"===b||"this"===b||"typeof"===b||"void"===b||"yield"===b}return y},_.prototype.parseYieldExpression=function(){var y=this.createNode();this.expectKeyword("yield");var b=null,x=!1;if(!this.hasLineTerminator){var T=this.context.allowYield;this.context.allowYield=!1,(x=this.match("*"))?(this.nextToken(),b=this.parseAssignmentExpression()):this.isStartOfExpression()&&(b=this.parseAssignmentExpression()),this.context.allowYield=T}return this.finalize(y,new W.YieldExpression(b,x))},_.prototype.parseClassElement=function(y){var b=this.lookahead,x=this.createNode(),T="",j=null,Y=null,K=!1,q=!1,O=!1,U=!1;if(this.match("*"))this.nextToken();else if(K=this.match("["),"static"===(j=this.parseObjectPropertyKey()).name&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(b=this.lookahead,O=!0,K=this.match("["),this.match("*")?this.nextToken():j=this.parseObjectPropertyKey()),3===b.type&&!this.hasLineTerminator&&"async"===b.value){var $=this.lookahead.value;":"!==$&&"("!==$&&"*"!==$&&(U=!0,b=this.lookahead,j=this.parseObjectPropertyKey(),3===b.type&&"constructor"===b.value&&this.tolerateUnexpectedToken(b,he.Messages.ConstructorIsAsync))}var V=this.qualifiedPropertyName(this.lookahead);return 3===b.type?"get"===b.value&&V?(T="get",K=this.match("["),j=this.parseObjectPropertyKey(),this.context.allowYield=!1,Y=this.parseGetterMethod()):"set"===b.value&&V&&(T="set",K=this.match("["),j=this.parseObjectPropertyKey(),Y=this.parseSetterMethod()):7===b.type&&"*"===b.value&&V&&(T="init",K=this.match("["),j=this.parseObjectPropertyKey(),Y=this.parseGeneratorMethod(),q=!0),!T&&j&&this.match("(")&&(T="init",Y=U?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),q=!0),T||this.throwUnexpectedToken(this.lookahead),"init"===T&&(T="method"),K||(O&&this.isPropertyKey(j,"prototype")&&this.throwUnexpectedToken(b,he.Messages.StaticPrototype),!O&&this.isPropertyKey(j,"constructor")&&(("method"!==T||!q||Y&&Y.generator)&&this.throwUnexpectedToken(b,he.Messages.ConstructorSpecialMethod),y.value?this.throwUnexpectedToken(b,he.Messages.DuplicateConstructor):y.value=!0,T="constructor")),this.finalize(x,new W.MethodDefinition(j,K,Y,T,O))},_.prototype.parseClassElementList=function(){var y=[],b={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():y.push(this.parseClassElement(b));return this.expect("}"),y},_.prototype.parseClassBody=function(){var y=this.createNode(),b=this.parseClassElementList();return this.finalize(y,new W.ClassBody(b))},_.prototype.parseClassDeclaration=function(y){var b=this.createNode(),x=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var T=y&&3!==this.lookahead.type?null:this.parseVariableIdentifier(),j=null;this.matchKeyword("extends")&&(this.nextToken(),j=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var Y=this.parseClassBody();return this.context.strict=x,this.finalize(b,new W.ClassDeclaration(T,j,Y))},_.prototype.parseClassExpression=function(){var y=this.createNode(),b=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var x=3===this.lookahead.type?this.parseVariableIdentifier():null,T=null;this.matchKeyword("extends")&&(this.nextToken(),T=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var j=this.parseClassBody();return this.context.strict=b,this.finalize(y,new W.ClassExpression(x,T,j))},_.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var y=this.createNode(),b=this.parseDirectivePrologues();2!==this.lookahead.type;)b.push(this.parseStatementListItem());return this.finalize(y,new W.Module(b))},_.prototype.parseScript=function(){for(var y=this.createNode(),b=this.parseDirectivePrologues();2!==this.lookahead.type;)b.push(this.parseStatementListItem());return this.finalize(y,new W.Script(b))},_.prototype.parseModuleSpecifier=function(){var y=this.createNode();8!==this.lookahead.type&&this.throwError(he.Messages.InvalidModuleSpecifier);var b=this.nextToken(),x=this.getTokenRaw(b);return this.finalize(y,new W.Literal(b.value,x))},_.prototype.parseImportSpecifier=function(){var b,x,y=this.createNode();return 3===this.lookahead.type?(x=b=this.parseVariableIdentifier(),this.matchContextualKeyword("as")&&(this.nextToken(),x=this.parseVariableIdentifier())):(x=b=this.parseIdentifierName(),this.matchContextualKeyword("as")?(this.nextToken(),x=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(y,new W.ImportSpecifier(x,b))},_.prototype.parseNamedImports=function(){this.expect("{");for(var y=[];!this.match("}");)y.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),y},_.prototype.parseImportDefaultSpecifier=function(){var y=this.createNode(),b=this.parseIdentifierName();return this.finalize(y,new W.ImportDefaultSpecifier(b))},_.prototype.parseImportNamespaceSpecifier=function(){var y=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(he.Messages.NoAsAfterImportNamespace),this.nextToken();var b=this.parseIdentifierName();return this.finalize(y,new W.ImportNamespaceSpecifier(b))},_.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(he.Messages.IllegalImportDeclaration);var y=this.createNode();this.expectKeyword("import");var b,x=[];return 8===this.lookahead.type||(this.match("{")?x=x.concat(this.parseNamedImports()):this.match("*")?x.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(x.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?x.push(this.parseImportNamespaceSpecifier()):this.match("{")?x=x.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),this.matchContextualKeyword("from")||this.throwError(this.lookahead.value?he.Messages.UnexpectedToken:he.Messages.MissingFromClause,this.lookahead.value),this.nextToken()),b=this.parseModuleSpecifier(),this.consumeSemicolon(),this.finalize(y,new W.ImportDeclaration(x,b))},_.prototype.parseExportSpecifier=function(){var y=this.createNode(),b=this.parseIdentifierName(),x=b;return this.matchContextualKeyword("as")&&(this.nextToken(),x=this.parseIdentifierName()),this.finalize(y,new W.ExportSpecifier(b,x))},_.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(he.Messages.IllegalExportDeclaration);var b,y=this.createNode();if(this.expectKeyword("export"),this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var x=this.parseFunctionDeclaration(!0);b=this.finalize(y,new W.ExportDefaultDeclaration(x))}else this.matchKeyword("class")?(x=this.parseClassDeclaration(!0),b=this.finalize(y,new W.ExportDefaultDeclaration(x))):this.matchContextualKeyword("async")?(x=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression(),b=this.finalize(y,new W.ExportDefaultDeclaration(x))):(this.matchContextualKeyword("from")&&this.throwError(he.Messages.UnexpectedToken,this.lookahead.value),x=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression(),this.consumeSemicolon(),b=this.finalize(y,new W.ExportDefaultDeclaration(x)));else if(this.match("*")){this.nextToken(),this.matchContextualKeyword("from")||this.throwError(this.lookahead.value?he.Messages.UnexpectedToken:he.Messages.MissingFromClause,this.lookahead.value),this.nextToken();var j=this.parseModuleSpecifier();this.consumeSemicolon(),b=this.finalize(y,new W.ExportAllDeclaration(j))}else if(4===this.lookahead.type){switch(x=void 0,this.lookahead.value){case"let":case"const":x=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":x=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}b=this.finalize(y,new W.ExportNamedDeclaration(x,[],null))}else if(this.matchAsyncFunction())x=this.parseFunctionDeclaration(),b=this.finalize(y,new W.ExportNamedDeclaration(x,[],null));else{var Y=[],K=null,q=!1;for(this.expect("{");!this.match("}");)q=q||this.matchKeyword("default"),Y.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");this.expect("}"),this.matchContextualKeyword("from")?(this.nextToken(),K=this.parseModuleSpecifier(),this.consumeSemicolon()):q?this.throwError(this.lookahead.value?he.Messages.UnexpectedToken:he.Messages.MissingFromClause,this.lookahead.value):this.consumeSemicolon(),b=this.finalize(y,new W.ExportNamedDeclaration(null,Y,K))}return b},_}();Ye.Parser=g},function(Gn,Ye){"use strict";Object.defineProperty(Ye,"__esModule",{value:!0}),Ye.assert=function ve(ee,it){if(!ee)throw new Error("ASSERT: "+it)}},function(Gn,Ye){"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});var ve=function(){function ee(){this.errors=[],this.tolerant=!1}return ee.prototype.recordError=function(it){this.errors.push(it)},ee.prototype.tolerate=function(it){if(!this.tolerant)throw it;this.recordError(it)},ee.prototype.constructError=function(it,he){var W=new Error(it);try{throw W}catch(R){Object.create&&Object.defineProperty&&(W=Object.create(R),Object.defineProperty(W,"column",{value:he}))}return W},ee.prototype.createError=function(it,he,W,R){var S=this.constructError("Line "+he+": "+R,W);return S.index=it,S.lineNumber=he,S.description=R,S},ee.prototype.throwError=function(it,he,W,R){throw this.createError(it,he,W,R)},ee.prototype.tolerateError=function(it,he,W,R){var D=this.createError(it,he,W,R);if(!this.tolerant)throw D;this.recordError(D)},ee}();Ye.ErrorHandler=ve},function(Gn,Ye){"use strict";Object.defineProperty(Ye,"__esModule",{value:!0}),Ye.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(Gn,Ye,ve){"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});var ee=ve(9),it=ve(4),he=ve(11);function W(S){return"0123456789abcdef".indexOf(S.toLowerCase())}function R(S){return"01234567".indexOf(S)}var D=function(){function S(v,g){this.source=v,this.errorHandler=g,this.trackComment=!1,this.isModule=!1,this.length=v.length,this.index=0,this.lineNumber=v.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return S.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},S.prototype.restoreState=function(v){this.index=v.index,this.lineNumber=v.lineNumber,this.lineStart=v.lineStart},S.prototype.eof=function(){return this.index>=this.length},S.prototype.throwUnexpectedToken=function(v){return void 0===v&&(v=he.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,v)},S.prototype.tolerateUnexpectedToken=function(v){void 0===v&&(v=he.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,v)},S.prototype.skipSingleLineComment=function(v){var _,y,g=[];for(this.trackComment&&(g=[],_=this.index-v,y={start:{line:this.lineNumber,column:this.index-this.lineStart-v},end:{}});!this.eof();){var b=this.source.charCodeAt(this.index);if(++this.index,it.Character.isLineTerminator(b))return this.trackComment&&(y.end={line:this.lineNumber,column:this.index-this.lineStart-1},g.push({multiLine:!1,slice:[_+v,this.index-1],range:[_,this.index-1],loc:y})),13===b&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,g}return this.trackComment&&(y.end={line:this.lineNumber,column:this.index-this.lineStart},g.push({multiLine:!1,slice:[_+v,this.index],range:[_,this.index],loc:y})),g},S.prototype.skipMultiLineComment=function(){var g,_,v=[];for(this.trackComment&&(v=[],g=this.index-2,_={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var y=this.source.charCodeAt(this.index);if(it.Character.isLineTerminator(y))13===y&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===y){if(47===this.source.charCodeAt(this.index+1))return this.index+=2,this.trackComment&&(_.end={line:this.lineNumber,column:this.index-this.lineStart},v.push({multiLine:!0,slice:[g+2,this.index-2],range:[g,this.index],loc:_})),v;++this.index}else++this.index}return this.trackComment&&(_.end={line:this.lineNumber,column:this.index-this.lineStart},v.push({multiLine:!0,slice:[g+2,this.index],range:[g,this.index],loc:_})),this.tolerateUnexpectedToken(),v},S.prototype.scanComments=function(){var v;this.trackComment&&(v=[]);for(var g=0===this.index;!this.eof();){var _=this.source.charCodeAt(this.index);if(it.Character.isWhiteSpace(_))++this.index;else if(it.Character.isLineTerminator(_))++this.index,13===_&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,g=!0;else if(47===_)if(47===(_=this.source.charCodeAt(this.index+1))){this.index+=2;var y=this.skipSingleLineComment(2);this.trackComment&&(v=v.concat(y)),g=!0}else{if(42!==_)break;this.index+=2,y=this.skipMultiLineComment(),this.trackComment&&(v=v.concat(y))}else if(g&&45===_){if(45!==this.source.charCodeAt(this.index+1)||62!==this.source.charCodeAt(this.index+2))break;this.index+=3,y=this.skipSingleLineComment(3),this.trackComment&&(v=v.concat(y))}else{if(60!==_||this.isModule)break;if("!--"!==this.source.slice(this.index+1,this.index+4))break;this.index+=4,y=this.skipSingleLineComment(4),this.trackComment&&(v=v.concat(y))}}return v},S.prototype.isFutureReservedWord=function(v){switch(v){case"enum":case"export":case"import":case"super":return!0;default:return!1}},S.prototype.isStrictModeReservedWord=function(v){switch(v){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},S.prototype.isRestrictedWord=function(v){return"eval"===v||"arguments"===v},S.prototype.isKeyword=function(v){switch(v.length){case 2:return"if"===v||"in"===v||"do"===v;case 3:return"var"===v||"for"===v||"new"===v||"try"===v||"let"===v;case 4:return"this"===v||"else"===v||"case"===v||"void"===v||"with"===v||"enum"===v;case 5:return"while"===v||"break"===v||"catch"===v||"throw"===v||"const"===v||"yield"===v||"class"===v||"super"===v;case 6:return"return"===v||"typeof"===v||"delete"===v||"switch"===v||"export"===v||"import"===v;case 7:return"default"===v||"finally"===v||"extends"===v;case 8:return"function"===v||"continue"===v||"debugger"===v;case 10:return"instanceof"===v;default:return!1}},S.prototype.codePointAt=function(v){var g=this.source.charCodeAt(v);if(g>=55296&&g<=56319){var _=this.source.charCodeAt(v+1);_>=56320&&_<=57343&&(g=1024*(g-55296)+_-56320+65536)}return g},S.prototype.scanHexEscape=function(v){for(var g="u"===v?4:2,_=0,y=0;y1114111||"}"!==v)&&this.throwUnexpectedToken(),it.Character.fromCodePoint(g)},S.prototype.getIdentifier=function(){for(var v=this.index++;!this.eof();){var g=this.source.charCodeAt(this.index);if(92===g)return this.index=v,this.getComplexIdentifier();if(g>=55296&&g<57343)return this.index=v,this.getComplexIdentifier();if(!it.Character.isIdentifierPart(g))break;++this.index}return this.source.slice(v,this.index)},S.prototype.getComplexIdentifier=function(){var _,v=this.codePointAt(this.index),g=it.Character.fromCodePoint(v);for(this.index+=g.length,92===v&&(117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,_=this.scanUnicodeCodePointEscape()):(null===(_=this.scanHexEscape("u"))||"\\"===_||!it.Character.isIdentifierStart(_.charCodeAt(0)))&&this.throwUnexpectedToken(),g=_);!this.eof()&&(v=this.codePointAt(this.index),it.Character.isIdentifierPart(v));)g+=_=it.Character.fromCodePoint(v),this.index+=_.length,92===v&&(g=g.substr(0,g.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,_=this.scanUnicodeCodePointEscape()):(null===(_=this.scanHexEscape("u"))||"\\"===_||!it.Character.isIdentifierPart(_.charCodeAt(0)))&&this.throwUnexpectedToken(),g+=_);return g},S.prototype.octalToDecimal=function(v){var g="0"!==v,_=R(v);return!this.eof()&&it.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(g=!0,_=8*_+R(this.source[this.index++]),"0123".indexOf(v)>=0&&!this.eof()&&it.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(_=8*_+R(this.source[this.index++]))),{code:_,octal:g}},S.prototype.scanIdentifier=function(){var v,g=this.index,_=92===this.source.charCodeAt(g)?this.getComplexIdentifier():this.getIdentifier();if(3!=(v=1===_.length?3:this.isKeyword(_)?4:"null"===_?5:"true"===_||"false"===_?1:3)&&g+_.length!==this.index){var y=this.index;this.index=g,this.tolerateUnexpectedToken(he.Messages.InvalidEscapedReservedWord),this.index=y}return{type:v,value:_,lineNumber:this.lineNumber,lineStart:this.lineStart,start:g,end:this.index}},S.prototype.scanPunctuator=function(){var v=this.index,g=this.source[this.index];switch(g){case"(":case"{":"{"===g&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,"."===this.source[this.index]&&"."===this.source[this.index+1]&&(this.index+=2,g="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:">>>="===(g=this.source.substr(this.index,4))?this.index+=4:"==="===(g=g.substr(0,3))||"!=="===g||">>>"===g||"<<="===g||">>="===g||"**="===g?this.index+=3:"&&"===(g=g.substr(0,2))||"||"===g||"=="===g||"!="===g||"+="===g||"-="===g||"*="===g||"/="===g||"++"===g||"--"===g||"<<"===g||">>"===g||"&="===g||"|="===g||"^="===g||"%="===g||"<="===g||">="===g||"=>"===g||"**"===g?this.index+=2:"<>=!+-*%&|^/".indexOf(g=this.source[this.index])>=0&&++this.index}return this.index===v&&this.throwUnexpectedToken(),{type:7,value:g,lineNumber:this.lineNumber,lineStart:this.lineStart,start:v,end:this.index}},S.prototype.scanHexLiteral=function(v){for(var g="";!this.eof()&&it.Character.isHexDigit(this.source.charCodeAt(this.index));)g+=this.source[this.index++];return 0===g.length&&this.throwUnexpectedToken(),it.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+g,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:v,end:this.index}},S.prototype.scanBinaryLiteral=function(v){for(var _,g="";!this.eof()&&("0"===(_=this.source[this.index])||"1"===_);)g+=this.source[this.index++];return 0===g.length&&this.throwUnexpectedToken(),this.eof()||(_=this.source.charCodeAt(this.index),(it.Character.isIdentifierStart(_)||it.Character.isDecimalDigit(_))&&this.throwUnexpectedToken()),{type:6,value:parseInt(g,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:v,end:this.index}},S.prototype.scanOctalLiteral=function(v,g){var _="",y=!1;for(it.Character.isOctalDigit(v.charCodeAt(0))?(y=!0,_="0"+this.source[this.index++]):++this.index;!this.eof()&&it.Character.isOctalDigit(this.source.charCodeAt(this.index));)_+=this.source[this.index++];return!y&&0===_.length&&this.throwUnexpectedToken(),(it.Character.isIdentifierStart(this.source.charCodeAt(this.index))||it.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(_,8),octal:y,lineNumber:this.lineNumber,lineStart:this.lineStart,start:g,end:this.index}},S.prototype.isImplicitOctalLiteral=function(){for(var v=this.index+1;v=0&&(y=y.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(x,T,j){var Y=parseInt(T||j,16);return Y>1114111&&b.throwUnexpectedToken(he.Messages.InvalidRegExp),Y<=65535?String.fromCharCode(Y):"\uffff"}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"\uffff"));try{RegExp(y)}catch{this.throwUnexpectedToken(he.Messages.InvalidRegExp)}try{return new RegExp(v,g)}catch{return null}},S.prototype.scanRegExpBody=function(){var v=this.source[this.index];ee.assert("/"===v,"Regular expression literal must start with a slash");for(var g=this.source[this.index++],_=!1,y=!1;!this.eof();)if(g+=v=this.source[this.index++],"\\"===v)v=this.source[this.index++],it.Character.isLineTerminator(v.charCodeAt(0))&&this.throwUnexpectedToken(he.Messages.UnterminatedRegExp),g+=v;else if(it.Character.isLineTerminator(v.charCodeAt(0)))this.throwUnexpectedToken(he.Messages.UnterminatedRegExp);else if(_)"]"===v&&(_=!1);else{if("/"===v){y=!0;break}"["===v&&(_=!0)}return y||this.throwUnexpectedToken(he.Messages.UnterminatedRegExp),g.substr(1,g.length-2)},S.prototype.scanRegExpFlags=function(){for(var g="";!this.eof();){var _=this.source[this.index];if(!it.Character.isIdentifierPart(_.charCodeAt(0)))break;if(++this.index,"\\"!==_||this.eof())g+=_;else if("u"===(_=this.source[this.index])){++this.index;var y=this.index,b=this.scanHexEscape("u");if(null!==b)for(g+=b;y=55296&&v<57343&&it.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},S}();Ye.Scanner=D},function(Gn,Ye){"use strict";Object.defineProperty(Ye,"__esModule",{value:!0}),Ye.TokenName={},Ye.TokenName[1]="Boolean",Ye.TokenName[2]="",Ye.TokenName[3]="Identifier",Ye.TokenName[4]="Keyword",Ye.TokenName[5]="Null",Ye.TokenName[6]="Numeric",Ye.TokenName[7]="Punctuator",Ye.TokenName[8]="String",Ye.TokenName[9]="RegularExpression",Ye.TokenName[10]="Template"},function(Gn,Ye){"use strict";Object.defineProperty(Ye,"__esModule",{value:!0}),Ye.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",frasl:"\u2044",euro:"\u20ac",image:"\u2111",weierp:"\u2118",real:"\u211c",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lArr:"\u21d0",uArr:"\u21d1",rArr:"\u21d2",dArr:"\u21d3",hArr:"\u21d4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",lang:"\u27e8",rang:"\u27e9"}},function(Gn,Ye,ve){"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});var ee=ve(10),it=ve(12),he=ve(13),W=function(){function D(){this.values=[],this.curly=this.paren=-1}return D.prototype.beforeFunctionExpression=function(S){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(S)>=0},D.prototype.isRegexStart=function(){var S=this.values[this.values.length-1],v=null!==S;switch(S){case"this":case"]":v=!1;break;case")":var g=this.values[this.paren-1];v="if"===g||"while"===g||"for"===g||"with"===g;break;case"}":if(v=!1,"function"===this.values[this.curly-3])v=!!(_=this.values[this.curly-4])&&!this.beforeFunctionExpression(_);else if("function"===this.values[this.curly-4]){var _;v=!(_=this.values[this.curly-5])||!this.beforeFunctionExpression(_)}}return v},D.prototype.push=function(S){7===S.type||4===S.type?("{"===S.value?this.curly=this.values.length:"("===S.value&&(this.paren=this.values.length),this.values.push(S.value)):this.values.push(null)},D}(),R=function(){function D(S,v){this.errorHandler=new ee.ErrorHandler,this.errorHandler.tolerant=!!v&&"boolean"==typeof v.tolerant&&v.tolerant,this.scanner=new it.Scanner(S,this.errorHandler),this.scanner.trackComment=!!v&&"boolean"==typeof v.comment&&v.comment,this.trackRange=!!v&&"boolean"==typeof v.range&&v.range,this.trackLoc=!!v&&"boolean"==typeof v.loc&&v.loc,this.buffer=[],this.reader=new W}return D.prototype.errors=function(){return this.errorHandler.errors},D.prototype.getNextToken=function(){if(0===this.buffer.length){var S=this.scanner.scanComments();if(this.scanner.trackComment)for(var v=0;v=_.status}function R(g){try{g.dispatchEvent(new MouseEvent("click"))}catch{var _=document.createEvent("MouseEvents");_.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),g.dispatchEvent(_)}}var D="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,S=D.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),v=D.saveAs||("object"!=typeof window||window!==D?function(){}:"download"in HTMLAnchorElement.prototype&&!S?function(g,_,y){var b=D.URL||D.webkitURL,x=document.createElement("a");x.download=_=_||g.name||"download",x.rel="noopener","string"==typeof g?(x.href=g,x.origin===location.origin?R(x):W(x.href)?he(g,_,y):R(x,x.target="_blank")):(x.href=b.createObjectURL(g),setTimeout(function(){b.revokeObjectURL(x.href)},4e4),setTimeout(function(){R(x)},0))}:"msSaveOrOpenBlob"in navigator?function(g,_,y){if(_=_||g.name||"download","string"!=typeof g)navigator.msSaveOrOpenBlob(function it(g,_){return typeof _>"u"?_={autoBom:!1}:"object"!=typeof _&&(console.warn("Deprecated: Expected third argument to be a object"),_={autoBom:!_}),_.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(g.type)?new Blob(["\ufeff",g],{type:g.type}):g}(g,y),_);else if(W(g))he(g,_,y);else{var b=document.createElement("a");b.href=g,b.target="_blank",setTimeout(function(){R(b)})}}:function(g,_,y,b){if((b=b||open("","_blank"))&&(b.document.title=b.document.body.innerText="downloading..."),"string"==typeof g)return he(g,_,y);var x="application/octet-stream"===g.type,T=/constructor/i.test(D.HTMLElement)||D.safari,j=/CriOS\/[\d]+/.test(navigator.userAgent);if((j||x&&T||S)&&typeof FileReader<"u"){var Y=new FileReader;Y.onloadend=function(){var O=Y.result;O=j?O:O.replace(/^data:[^;]*;/,"data:attachment/file;"),b?b.location.href=O:location=O,b=null},Y.readAsDataURL(g)}else{var K=D.URL||D.webkitURL,q=K.createObjectURL(g);b?b.location=q:location.href=q,b=null,setTimeout(function(){K.revokeObjectURL(q)},4e4)}});D.saveAs=v.saveAs=v,fn.exports=v})?Ye.apply(Gn,[]):Ye)&&(fn.exports=ee)},461:(fn,Gn)=>{Gn.read=function(Ye,ve,ee,it,he){var W,R,D=8*he-it-1,S=(1<>1,g=-7,_=ee?he-1:0,y=ee?-1:1,b=Ye[ve+_];for(_+=y,W=b&(1<<-g)-1,b>>=-g,g+=D;g>0;W=256*W+Ye[ve+_],_+=y,g-=8);for(R=W&(1<<-g)-1,W>>=-g,g+=it;g>0;R=256*R+Ye[ve+_],_+=y,g-=8);if(0===W)W=1-v;else{if(W===S)return R?NaN:1/0*(b?-1:1);R+=Math.pow(2,it),W-=v}return(b?-1:1)*R*Math.pow(2,W-it)},Gn.write=function(Ye,ve,ee,it,he,W){var R,D,S,v=8*W-he-1,g=(1<>1,y=23===he?Math.pow(2,-24)-Math.pow(2,-77):0,b=it?0:W-1,x=it?1:-1,T=ve<0||0===ve&&1/ve<0?1:0;for(ve=Math.abs(ve),isNaN(ve)||ve===1/0?(D=isNaN(ve)?1:0,R=g):(R=Math.floor(Math.log(ve)/Math.LN2),ve*(S=Math.pow(2,-R))<1&&(R--,S*=2),(ve+=R+_>=1?y/S:y*Math.pow(2,1-_))*S>=2&&(R++,S/=2),R+_>=g?(D=0,R=g):R+_>=1?(D=(ve*S-1)*Math.pow(2,he),R+=_):(D=ve*Math.pow(2,_-1)*Math.pow(2,he),R=0));he>=8;Ye[ee+b]=255&D,b+=x,D/=256,he-=8);for(R=R<0;Ye[ee+b]=255&R,b+=x,R/=256,v-=8);Ye[ee+b-x]|=128*T}},870:(fn,Gn,Ye)=>{"use strict";var ve=Ye(133);fn.exports=ve},133:(fn,Gn,Ye)=>{"use strict";var ve=Ye(840),ee=Ye(34);function it(he){return function(){throw new Error("Function "+he+" is deprecated and cannot be used.")}}fn.exports.Type=Ye(647),fn.exports.Schema=Ye(372),fn.exports.FAILSAFE_SCHEMA=Ye(746),fn.exports.JSON_SCHEMA=Ye(147),fn.exports.CORE_SCHEMA=Ye(192),fn.exports.DEFAULT_SAFE_SCHEMA=Ye(31),fn.exports.DEFAULT_FULL_SCHEMA=Ye(94),fn.exports.load=ve.load,fn.exports.loadAll=ve.loadAll,fn.exports.safeLoad=ve.safeLoad,fn.exports.safeLoadAll=ve.safeLoadAll,fn.exports.dump=ee.dump,fn.exports.safeDump=ee.safeDump,fn.exports.YAMLException=Ye(314),fn.exports.MINIMAL_SCHEMA=Ye(746),fn.exports.SAFE_SCHEMA=Ye(31),fn.exports.DEFAULT_SCHEMA=Ye(94),fn.exports.scan=it("scan"),fn.exports.parse=it("parse"),fn.exports.compose=it("compose"),fn.exports.addConstructor=it("addConstructor")},997:fn=>{"use strict";function Gn(W){return typeof W>"u"||null===W}fn.exports.isNothing=Gn,fn.exports.isObject=function Ye(W){return"object"==typeof W&&null!==W},fn.exports.toArray=function ve(W){return Array.isArray(W)?W:Gn(W)?[]:[W]},fn.exports.repeat=function it(W,R){var S,D="";for(S=0;S{"use strict";var ve=Ye(997),ee=Ye(314),it=Ye(94),he=Ye(31),W=Object.prototype.toString,R=Object.prototype.hasOwnProperty,D=9,S=10,v=13,g=32,_=33,y=34,b=35,x=37,T=38,j=39,Y=42,K=44,q=45,O=58,U=61,P=62,$=63,V=64,F=91,X=93,Ce=96,Me=123,Re=124,ze=125,Pe={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},Tt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function ht(Ne){var jt,nn,yn;if(jt=Ne.toString(16).toUpperCase(),Ne<=255)nn="x",yn=2;else if(Ne<=65535)nn="u",yn=4;else{if(!(Ne<=4294967295))throw new ee("code point within a string may not be greater than 0xFFFFFFFF");nn="U",yn=8}return"\\"+nn+ve.repeat("0",yn-jt.length)+jt}function It(Ne){this.schema=Ne.schema||it,this.indent=Math.max(1,Ne.indent||2),this.noArrayIndent=Ne.noArrayIndent||!1,this.skipInvalid=Ne.skipInvalid||!1,this.flowLevel=ve.isNothing(Ne.flowLevel)?-1:Ne.flowLevel,this.styleMap=function St(Ne,jt){var nn,yn,mn,sn,In,gn,dt;if(null===jt)return{};for(nn={},mn=0,sn=(yn=Object.keys(jt)).length;mn0?Ne.charCodeAt(sn-1):null,so=so&&wi(In,gn)}else{for(sn=0;snyn&&" "!==Ne[Bn+1],Bn=sn);else if(!Tn(In))return Wi;gn=sn>0?Ne.charCodeAt(sn-1):null,so=so&&wi(In,gn)}pt=pt||Ht&&sn-Bn-1>yn&&" "!==Ne[Bn+1]}return dt||pt?nn>9&&Ri(Ne)?Wi:pt?lr:qn:so&&!mn(Ne)?ci:$i}(jt,yn||Ne.flowLevel>-1&&nn>=Ne.flowLevel,Ne.indent,sn,function gn(dt){return function At(Ne,jt){var nn,yn;for(nn=0,yn=Ne.implicitTypes.length;nn"+vr(jt,Ne.indent)+We(mt(function de(Ne,jt){for(var sn,In,nn=/(\n+)([^\n]*)/g,yn=(pt=void 0,pt=Ne.indexOf("\n"),nn.lastIndex=pt=-1!==pt?pt:Ne.length,xe(Ne.slice(0,pt),jt)),mn="\n"===Ne[0]||" "===Ne[0];In=nn.exec(Ne);){var dt=In[2];sn=" "===dt[0],yn+=In[1]+(mn||sn||""===dt?"":"\n")+xe(dt,jt),mn=sn}var pt;return yn}(jt,sn),mn));case Wi:return'"'+function Le(Ne){for(var nn,yn,mn,jt="",sn=0;sn=55296&&nn<=56319&&(yn=Ne.charCodeAt(sn+1))>=56320&&yn<=57343?(jt+=ht(1024*(nn-55296)+yn-56320+65536),sn++):jt+=!(mn=Pe[nn])&&Tn(nn)?Ne[sn]:mn||ht(nn);return jt}(jt)+'"';default:throw new ee("impossible error: invalid scalar style")}}()}function vr(Ne,jt){var nn=Ri(Ne)?String(jt):"",yn="\n"===Ne[Ne.length-1];return nn+(!yn||"\n"!==Ne[Ne.length-2]&&"\n"!==Ne?yn?"":"-":"+")+"\n"}function We(Ne){return"\n"===Ne[Ne.length-1]?Ne.slice(0,-1):Ne}function xe(Ne,jt){if(""===Ne||" "===Ne[0])return Ne;for(var yn,sn,nn=/ [^ ]/g,mn=0,In=0,gn=0,dt="";yn=nn.exec(Ne);)(gn=yn.index)-mn>jt&&(dt+="\n"+Ne.slice(mn,sn=In>mn?In:gn),mn=sn+1),In=gn;return dt+="\n",(dt+=Ne.length-mn>jt&&In>mn?Ne.slice(mn,In)+"\n"+Ne.slice(In+1):Ne.slice(mn)).slice(1)}function H(Ne,jt,nn){var yn,mn,sn,In,gn,dt;for(sn=0,In=(mn=nn?Ne.explicitTypes:Ne.implicitTypes).length;sn tag resolver accepts not "'+dt+'" style');yn=gn.represent[dt](jt,dt)}Ne.dump=yn}return!0}return!1}function yt(Ne,jt,nn,yn,mn,sn){Ne.tag=null,Ne.dump=nn,H(Ne,nn,!1)||H(Ne,nn,!0);var In=W.call(Ne.dump);yn&&(yn=Ne.flowLevel<0||Ne.flowLevel>jt);var dt,pt,gn="[object Object]"===In||"[object Array]"===In;if(gn&&(pt=-1!==(dt=Ne.duplicates.indexOf(nn))),(null!==Ne.tag&&"?"!==Ne.tag||pt||2!==Ne.indent&&jt>0)&&(mn=!1),pt&&Ne.usedDuplicates[dt])Ne.dump="*ref_"+dt;else{if(gn&&pt&&!Ne.usedDuplicates[dt]&&(Ne.usedDuplicates[dt]=!0),"[object Object]"===In)yn&&0!==Object.keys(Ne.dump).length?(function si(Ne,jt,nn,yn){var gn,dt,pt,Ht,Bn,so,mn="",sn=Ne.tag,In=Object.keys(nn);if(!0===Ne.sortKeys)In.sort();else if("function"==typeof Ne.sortKeys)In.sort(Ne.sortKeys);else if(Ne.sortKeys)throw new ee("sortKeys must be a boolean or a function");for(gn=0,dt=In.length;gn1024)&&(Ne.dump&&S===Ne.dump.charCodeAt(0)?so+="?":so+="? "),so+=Ne.dump,Bn&&(so+=Zt(Ne,jt)),yt(Ne,jt+1,Ht,!0,Bn)&&(Ne.dump&&S===Ne.dump.charCodeAt(0)?so+=":":so+=": ",mn+=so+=Ne.dump));Ne.tag=sn,Ne.dump=mn||"{}"}(Ne,jt,Ne.dump,mn),pt&&(Ne.dump="&ref_"+dt+Ne.dump)):(function Jt(Ne,jt,nn){var In,gn,dt,pt,Ht,yn="",mn=Ne.tag,sn=Object.keys(nn);for(In=0,gn=sn.length;In1024&&(Ht+="? "),Ht+=Ne.dump+(Ne.condenseFlow?'"':"")+":"+(Ne.condenseFlow?"":" "),yt(Ne,jt,pt,!1,!1)&&(yn+=Ht+=Ne.dump));Ne.tag=mn,Ne.dump="{"+yn+"}"}(Ne,jt,Ne.dump),pt&&(Ne.dump="&ref_"+dt+" "+Ne.dump));else if("[object Array]"===In){var Ht=Ne.noArrayIndent&&jt>0?jt-1:jt;yn&&0!==Ne.dump.length?(function Ot(Ne,jt,nn,yn){var In,gn,mn="",sn=Ne.tag;for(In=0,gn=nn.length;In "+Ne.dump)}return!0}function Lt(Ne,jt){var mn,sn,nn=[],yn=[];for(Kt(Ne,nn,yn),mn=0,sn=yn.length;mn{"use strict";function Gn(Ye,ve){Error.call(this),this.name="YAMLException",this.reason=Ye,this.mark=ve,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}(Gn.prototype=Object.create(Error.prototype)).constructor=Gn,Gn.prototype.toString=function(ve){var ee=this.name+": ";return ee+=this.reason||"(unknown reason)",!ve&&this.mark&&(ee+=" "+this.mark.toString()),ee},fn.exports=Gn},840:(fn,Gn,Ye)=>{"use strict";var ve=Ye(997),ee=Ye(314),it=Ye(48),he=Ye(31),W=Ye(94),R=Object.prototype.hasOwnProperty,D=1,S=2,v=3,g=4,_=1,y=2,b=3,x=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,T=/[\x85\u2028\u2029]/,j=/[,\[\]\{\}]/,Y=/^(?:!|!!|![a-z\-]+!)$/i,K=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function q(H){return Object.prototype.toString.call(H)}function O(H){return 10===H||13===H}function U(H){return 9===H||32===H}function P(H){return 9===H||32===H||10===H||13===H}function $(H){return 44===H||91===H||93===H||123===H||125===H}function V(H){var yt;return 48<=H&&H<=57?H-48:97<=(yt=32|H)&&yt<=102?yt-97+10:-1}function F(H){return 120===H?2:117===H?4:85===H?8:0}function X(H){return 48<=H&&H<=57?H-48:-1}function Ce(H){return 48===H?"\0":97===H?"\x07":98===H?"\b":116===H||9===H?"\t":110===H?"\n":118===H?"\v":102===H?"\f":114===H?"\r":101===H?"\x1b":32===H?" ":34===H?'"':47===H?"/":92===H?"\\":78===H?"\x85":95===H?"\xa0":76===H?"\u2028":80===H?"\u2029":""}function Me(H){return H<=65535?String.fromCharCode(H):String.fromCharCode(55296+(H-65536>>10),56320+(H-65536&1023))}for(var Re=new Array(256),ze=new Array(256),Pe=0;Pe<256;Pe++)Re[Pe]=Ce(Pe)?1:0,ze[Pe]=Ce(Pe);function Tt(H,yt){this.input=H,this.filename=yt.filename||null,this.schema=yt.schema||W,this.onWarning=yt.onWarning||null,this.legacy=yt.legacy||!1,this.json=yt.json||!1,this.listener=yt.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=H.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function St(H,yt){return new ee(yt,new it(H.filename,H.input,H.position,H.line,H.position-H.lineStart))}function ht(H,yt){throw St(H,yt)}function It(H,yt){H.onWarning&&H.onWarning.call(null,St(H,yt))}var mt={YAML:function(yt,Lt,Kt){var Vt,wn,Ne;null!==yt.version&&ht(yt,"duplication of %YAML directive"),1!==Kt.length&&ht(yt,"YAML directive accepts exactly one argument"),null===(Vt=/^([0-9]+)\.([0-9]+)$/.exec(Kt[0]))&&ht(yt,"ill-formed argument of the YAML directive"),wn=parseInt(Vt[1],10),Ne=parseInt(Vt[2],10),1!==wn&&ht(yt,"unacceptable YAML version of the document"),yt.version=Kt[0],yt.checkLineBreaks=Ne<2,1!==Ne&&2!==Ne&&It(yt,"unsupported YAML version of the document")},TAG:function(yt,Lt,Kt){var Vt,wn;2!==Kt.length&&ht(yt,"TAG directive accepts exactly two arguments"),wn=Kt[1],Y.test(Vt=Kt[0])||ht(yt,"ill-formed tag handle (first argument) of the TAG directive"),R.call(yt.tagMap,Vt)&&ht(yt,'there is a previously declared suffix for "'+Vt+'" tag handle'),K.test(wn)||ht(yt,"ill-formed tag prefix (second argument) of the TAG directive"),yt.tagMap[Vt]=wn}};function Zt(H,yt,Lt,Kt){var Vt,wn,Ne,jt;if(yt1&&(H.result+=ve.repeat("\n",yt-1))}function Wi(H,yt){var Lt,nn,Kt=H.tag,Vt=H.anchor,wn=[],jt=!1;for(null!==H.anchor&&(H.anchorMap[H.anchor]=wn),nn=H.input.charCodeAt(H.position);0!==nn&&45===nn&&P(H.input.charCodeAt(H.position+1));)if(jt=!0,H.position++,Vn(H,!0,-1)&&H.lineIndent<=yt)wn.push(null),nn=H.input.charCodeAt(H.position);else if(Lt=H.line,de(H,yt,v,!1,!0),wn.push(H.result),Vn(H,!0,-1),nn=H.input.charCodeAt(H.position),(H.line===Lt||H.lineIndent>yt)&&0!==nn)ht(H,"bad indentation of a sequence entry");else if(H.lineIndentyt?nn=1:H.lineIndent===yt?nn=0:H.lineIndentyt?nn=1:H.lineIndent===yt?nn=0:H.lineIndentyt)&&(de(H,yt,g,!0,Vt)&&(dt?In=H.result:gn=H.result),dt||(pn(H,yn,mn,sn,In,gn,wn,Ne),sn=In=gn=null),Vn(H,!0,-1),Ht=H.input.charCodeAt(H.position)),H.lineIndent>yt&&0!==Ht)ht(H,"bad indentation of a mapping entry");else if(H.lineIndent=0))break;0===mn?ht(H,"bad explicit indentation width of a block scalar; it cannot be less than one"):Ne?ht(H,"repeat of an indentation width identifier"):(jt=yt+mn-1,Ne=!0)}if(U(sn)){do{sn=H.input.charCodeAt(++H.position)}while(U(sn));if(35===sn)do{sn=H.input.charCodeAt(++H.position)}while(!O(sn)&&0!==sn)}for(;0!==sn;){for(Tn(H),H.lineIndent=0,sn=H.input.charCodeAt(H.position);(!Ne||H.lineIndentjt&&(jt=H.lineIndent),O(sn))nn++;else{if(H.lineIndent0){for(Vt=Ne,wn=0;Vt>0;Vt--)(Ne=V(jt=H.input.charCodeAt(++H.position)))>=0?wn=(wn<<4)+Ne:ht(H,"expected hexadecimal character");H.result+=Me(wn),H.position++}else ht(H,"unknown escape sequence");Lt=Kt=H.position}else O(jt)?(Zt(H,Lt,Kt,!0),pr(H,Vn(H,!1,yt)),Lt=Kt=H.position):H.position===H.lineStart&&wi(H)?ht(H,"unexpected end of the document within a double quoted scalar"):(H.position++,Kt=H.position)}ht(H,"unexpected end of the stream within a double quoted scalar")}(H,dt)?mn=!0:function We(H){var yt,Lt,Kt;if(42!==(Kt=H.input.charCodeAt(H.position)))return!1;for(Kt=H.input.charCodeAt(++H.position),yt=H.position;0!==Kt&&!P(Kt)&&!$(Kt);)Kt=H.input.charCodeAt(++H.position);return H.position===yt&&ht(H,"name of an alias node must contain at least one character"),Lt=H.input.slice(yt,H.position),H.anchorMap.hasOwnProperty(Lt)||ht(H,'unidentified alias "'+Lt+'"'),H.result=H.anchorMap[Lt],Vn(H,!0,-1),!0}(H)?(mn=!0,(null!==H.tag||null!==H.anchor)&&ht(H,"alias node should not have any properties")):function Ri(H,yt,Lt){var Vt,wn,Ne,jt,nn,yn,mn,gn,sn=H.kind,In=H.result;if(P(gn=H.input.charCodeAt(H.position))||$(gn)||35===gn||38===gn||42===gn||33===gn||124===gn||62===gn||39===gn||34===gn||37===gn||64===gn||96===gn||(63===gn||45===gn)&&(P(Vt=H.input.charCodeAt(H.position+1))||Lt&&$(Vt)))return!1;for(H.kind="scalar",H.result="",wn=Ne=H.position,jt=!1;0!==gn;){if(58===gn){if(P(Vt=H.input.charCodeAt(H.position+1))||Lt&&$(Vt))break}else if(35===gn){if(P(H.input.charCodeAt(H.position-1)))break}else{if(H.position===H.lineStart&&wi(H)||Lt&&$(gn))break;if(O(gn)){if(nn=H.line,yn=H.lineStart,mn=H.lineIndent,Vn(H,!1,-1),H.lineIndent>=yt){jt=!0,gn=H.input.charCodeAt(H.position);continue}H.position=Ne,H.line=nn,H.lineStart=yn,H.lineIndent=mn;break}}jt&&(Zt(H,wn,Ne,!1),pr(H,H.line-nn),wn=Ne=H.position,jt=!1),U(gn)||(Ne=H.position+1),gn=H.input.charCodeAt(++H.position)}return Zt(H,wn,Ne,!1),!!H.result||(H.kind=sn,H.result=In,!1)}(H,dt,D===Lt)&&(mn=!0,null===H.tag&&(H.tag="?")),null!==H.anchor&&(H.anchorMap[H.anchor]=H.result)):0===nn&&(mn=jt&&Wi(H,pt))),null!==H.tag&&"!"!==H.tag)if("?"===H.tag){for(null!==H.result&&"scalar"!==H.kind&&ht(H,'unacceptable node kind for ! tag; it should be "scalar", not "'+H.kind+'"'),sn=0,In=H.implicitTypes.length;sn tag; it should be "'+gn.kind+'", not "'+H.kind+'"'),gn.resolve(H.result)?(H.result=gn.construct(H.result),null!==H.anchor&&(H.anchorMap[H.anchor]=H.result)):ht(H,"cannot resolve a node with !<"+H.tag+"> explicit tag")):ht(H,"unknown tag !<"+H.tag+">");return null!==H.listener&&H.listener("close",H),null!==H.tag||null!==H.anchor||mn}function xe(H){var Lt,Kt,Vt,Ne,yt=H.position,wn=!1;for(H.version=null,H.checkLineBreaks=H.legacy,H.tagMap={},H.anchorMap={};0!==(Ne=H.input.charCodeAt(H.position))&&(Vn(H,!0,-1),Ne=H.input.charCodeAt(H.position),!(H.lineIndent>0||37!==Ne));){for(wn=!0,Ne=H.input.charCodeAt(++H.position),Lt=H.position;0!==Ne&&!P(Ne);)Ne=H.input.charCodeAt(++H.position);for(Vt=[],(Kt=H.input.slice(Lt,H.position)).length<1&&ht(H,"directive name must not be less than one character in length");0!==Ne;){for(;U(Ne);)Ne=H.input.charCodeAt(++H.position);if(35===Ne){do{Ne=H.input.charCodeAt(++H.position)}while(0!==Ne&&!O(Ne));break}if(O(Ne))break;for(Lt=H.position;0!==Ne&&!P(Ne);)Ne=H.input.charCodeAt(++H.position);Vt.push(H.input.slice(Lt,H.position))}0!==Ne&&Tn(H),R.call(mt,Kt)?mt[Kt](H,Kt,Vt):It(H,'unknown document directive "'+Kt+'"')}Vn(H,!0,-1),0===H.lineIndent&&45===H.input.charCodeAt(H.position)&&45===H.input.charCodeAt(H.position+1)&&45===H.input.charCodeAt(H.position+2)?(H.position+=3,Vn(H,!0,-1)):wn&&ht(H,"directives end mark is expected"),de(H,H.lineIndent-1,g,!1,!0),Vn(H,!0,-1),H.checkLineBreaks&&T.test(H.input.slice(yt,H.position))&&It(H,"non-ASCII line breaks are interpreted as content"),H.documents.push(H.result),H.position===H.lineStart&&wi(H)?46===H.input.charCodeAt(H.position)&&(H.position+=3,Vn(H,!0,-1)):H.position"u"&&(Lt=yt,yt=null);var Kt=Le(H,Lt);if("function"!=typeof yt)return Kt;for(var Vt=0,wn=Kt.length;Vt"u"&&(Lt=yt,yt=null),et(H,yt,ve.extend({schema:he},Lt))},fn.exports.safeLoad=function si(H,yt){return Ot(H,ve.extend({schema:he},yt))}},48:(fn,Gn,Ye)=>{"use strict";var ve=Ye(997);function ee(it,he,W,R,D){this.name=it,this.buffer=he,this.position=W,this.line=R,this.column=D}ee.prototype.getSnippet=function(he,W){var R,D,S,v,g;if(!this.buffer)return null;for(he=he||4,W=W||75,R="",D=this.position;D>0&&-1==="\0\r\n\x85\u2028\u2029".indexOf(this.buffer.charAt(D-1));)if(this.position-(D-=1)>W/2-1){R=" ... ",D+=5;break}for(S="",v=this.position;vW/2-1){S=" ... ",v-=5;break}return g=this.buffer.slice(D,v),ve.repeat(" ",he)+R+g+S+"\n"+ve.repeat(" ",he+this.position-D+R.length)+"^"},ee.prototype.toString=function(he){var W,R="";return this.name&&(R+='in "'+this.name+'" '),R+="at line "+(this.line+1)+", column "+(this.column+1),he||(W=this.getSnippet())&&(R+=":\n"+W),R},fn.exports=ee},372:(fn,Gn,Ye)=>{"use strict";var ve=Ye(997),ee=Ye(314),it=Ye(647);function he(D,S,v){var g=[];return D.include.forEach(function(_){v=he(_,S,v)}),D[S].forEach(function(_){v.forEach(function(y,b){y.tag===_.tag&&y.kind===_.kind&&g.push(b)}),v.push(_)}),v.filter(function(_,y){return-1===g.indexOf(y)})}function R(D){this.include=D.include||[],this.implicit=D.implicit||[],this.explicit=D.explicit||[],this.implicit.forEach(function(S){if(S.loadKind&&"scalar"!==S.loadKind)throw new ee("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=he(this,"implicit",[]),this.compiledExplicit=he(this,"explicit",[]),this.compiledTypeMap=function W(){var S,v,D={scalar:{},sequence:{},mapping:{},fallback:{}};function g(_){D[_.kind][_.tag]=D.fallback[_.tag]=_}for(S=0,v=arguments.length;S{"use strict";var ve=Ye(372);fn.exports=new ve({include:[Ye(147)]})},94:(fn,Gn,Ye)=>{"use strict";var ve=Ye(372);fn.exports=ve.DEFAULT=new ve({include:[Ye(31)],explicit:[Ye(771),Ye(632),Ye(716)]})},31:(fn,Gn,Ye)=>{"use strict";var ve=Ye(372);fn.exports=new ve({include:[Ye(192)],implicit:[Ye(934),Ye(996)],explicit:[Ye(486),Ye(166),Ye(711),Ye(738)]})},746:(fn,Gn,Ye)=>{"use strict";var ve=Ye(372);fn.exports=new ve({explicit:[Ye(464),Ye(322),Ye(71)]})},147:(fn,Gn,Ye)=>{"use strict";var ve=Ye(372);fn.exports=new ve({include:[Ye(746)],implicit:[Ye(568),Ye(911),Ye(877),Ye(615)]})},647:(fn,Gn,Ye)=>{"use strict";var ve=Ye(314),ee=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],it=["scalar","sequence","mapping"];fn.exports=function W(R,D){if(D=D||{},Object.keys(D).forEach(function(S){if(-1===ee.indexOf(S))throw new ve('Unknown option "'+S+'" is met in definition of "'+R+'" YAML type.')}),this.tag=R,this.kind=D.kind||null,this.resolve=D.resolve||function(){return!0},this.construct=D.construct||function(S){return S},this.instanceOf=D.instanceOf||null,this.predicate=D.predicate||null,this.represent=D.represent||null,this.defaultStyle=D.defaultStyle||null,this.styleAliases=function he(R){var D={};return null!==R&&Object.keys(R).forEach(function(S){R[S].forEach(function(v){D[String(v)]=S})}),D}(D.styleAliases||null),-1===it.indexOf(this.kind))throw new ve('Unknown kind "'+this.kind+'" is specified for "'+R+'" YAML type.')}},486:(fn,Gn,Ye)=>{"use strict";var ve;try{ve=Ye(172).lW}catch{}var it=Ye(647),he="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";fn.exports=new it("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function W(v){if(null===v)return!1;var g,_,y=0,b=v.length,x=he;for(_=0;_64)){if(g<0)return!1;y+=6}return y%8==0},construct:function R(v){var g,_,y=v.replace(/[\r\n=]/g,""),b=y.length,x=he,T=0,j=[];for(g=0;g>16&255),j.push(T>>8&255),j.push(255&T)),T=T<<6|x.indexOf(y.charAt(g));return 0==(_=b%4*6)?(j.push(T>>16&255),j.push(T>>8&255),j.push(255&T)):18===_?(j.push(T>>10&255),j.push(T>>2&255)):12===_&&j.push(T>>4&255),ve?ve.from?ve.from(j):new ve(j):j},predicate:function S(v){return ve&&ve.isBuffer(v)},represent:function D(v){var y,b,g="",_=0,x=v.length,T=he;for(y=0;y>18&63],g+=T[_>>12&63],g+=T[_>>6&63],g+=T[63&_]),_=(_<<8)+v[y];return 0==(b=x%3)?(g+=T[_>>18&63],g+=T[_>>12&63],g+=T[_>>6&63],g+=T[63&_]):2===b?(g+=T[_>>10&63],g+=T[_>>4&63],g+=T[_<<2&63],g+=T[64]):1===b&&(g+=T[_>>2&63],g+=T[_<<4&63],g+=T[64],g+=T[64]),g}})},911:(fn,Gn,Ye)=>{"use strict";var ve=Ye(647);fn.exports=new ve("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function ee(W){if(null===W)return!1;var R=W.length;return 4===R&&("true"===W||"True"===W||"TRUE"===W)||5===R&&("false"===W||"False"===W||"FALSE"===W)},construct:function it(W){return"true"===W||"True"===W||"TRUE"===W},predicate:function he(W){return"[object Boolean]"===Object.prototype.toString.call(W)},represent:{lowercase:function(W){return W?"true":"false"},uppercase:function(W){return W?"TRUE":"FALSE"},camelcase:function(W){return W?"True":"False"}},defaultStyle:"lowercase"})},615:(fn,Gn,Ye)=>{"use strict";var ve=Ye(997),ee=Ye(647),it=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),R=/^[-+]?[0-9]+e/;fn.exports=new ee("tag:yaml.org,2002:float",{kind:"scalar",resolve:function he(v){return!(null===v||!it.test(v)||"_"===v[v.length-1])},construct:function W(v){var g,_,y,b;return _="-"===(g=v.replace(/_/g,"").toLowerCase())[0]?-1:1,b=[],"+-".indexOf(g[0])>=0&&(g=g.slice(1)),".inf"===g?1===_?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===g?NaN:g.indexOf(":")>=0?(g.split(":").forEach(function(x){b.unshift(parseFloat(x,10))}),g=0,y=1,b.forEach(function(x){g+=x*y,y*=60}),_*g):_*parseFloat(g,10)},predicate:function S(v){return"[object Number]"===Object.prototype.toString.call(v)&&(v%1!=0||ve.isNegativeZero(v))},represent:function D(v,g){var _;if(isNaN(v))switch(g){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===v)switch(g){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===v)switch(g){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(ve.isNegativeZero(v))return"-0.0";return _=v.toString(10),R.test(_)?_.replace("e",".e"):_},defaultStyle:"lowercase"})},877:(fn,Gn,Ye)=>{"use strict";var ve=Ye(997),ee=Ye(647);function it(v){return 48<=v&&v<=57||65<=v&&v<=70||97<=v&&v<=102}function he(v){return 48<=v&&v<=55}function W(v){return 48<=v&&v<=57}fn.exports=new ee("tag:yaml.org,2002:int",{kind:"scalar",resolve:function R(v){if(null===v)return!1;var b,g=v.length,_=0,y=!1;if(!g)return!1;if(("-"===(b=v[_])||"+"===b)&&(b=v[++_]),"0"===b){if(_+1===g)return!0;if("b"===(b=v[++_])){for(_++;_=0?"0b"+v.toString(2):"-0b"+v.toString(2).slice(1)},octal:function(v){return v>=0?"0"+v.toString(8):"-0"+v.toString(8).slice(1)},decimal:function(v){return v.toString(10)},hexadecimal:function(v){return v>=0?"0x"+v.toString(16).toUpperCase():"-0x"+v.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},716:(fn,Gn,Ye)=>{"use strict";var ve;try{ve=Ye(797)}catch{typeof window<"u"&&(ve=window.esprima)}var it=Ye(647);fn.exports=new it("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function he(S){if(null===S)return!1;try{var g=ve.parse("("+S+")",{range:!0});return!("Program"!==g.type||1!==g.body.length||"ExpressionStatement"!==g.body[0].type||"ArrowFunctionExpression"!==g.body[0].expression.type&&"FunctionExpression"!==g.body[0].expression.type)}catch{return!1}},construct:function W(S){var y,v="("+S+")",g=ve.parse(v,{range:!0}),_=[];if("Program"!==g.type||1!==g.body.length||"ExpressionStatement"!==g.body[0].type||"ArrowFunctionExpression"!==g.body[0].expression.type&&"FunctionExpression"!==g.body[0].expression.type)throw new Error("Failed to resolve function");return g.body[0].expression.params.forEach(function(b){_.push(b.name)}),y=g.body[0].expression.body.range,new Function(_,"BlockStatement"===g.body[0].expression.body.type?v.slice(y[0]+1,y[1]-1):"return "+v.slice(y[0],y[1]))},predicate:function D(S){return"[object Function]"===Object.prototype.toString.call(S)},represent:function R(S){return S.toString()}})},632:(fn,Gn,Ye)=>{"use strict";var ve=Ye(647);fn.exports=new ve("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:function ee(R){if(null===R||0===R.length)return!1;var D=R,S=/\/([gim]*)$/.exec(R),v="";return!("/"===D[0]&&(S&&(v=S[1]),v.length>3||"/"!==D[D.length-v.length-1]))},construct:function it(R){var D=R,S=/\/([gim]*)$/.exec(R),v="";return"/"===D[0]&&(S&&(v=S[1]),D=D.slice(1,D.length-v.length-1)),new RegExp(D,v)},predicate:function W(R){return"[object RegExp]"===Object.prototype.toString.call(R)},represent:function he(R){var D="/"+R.source+"/";return R.global&&(D+="g"),R.multiline&&(D+="m"),R.ignoreCase&&(D+="i"),D}})},771:(fn,Gn,Ye)=>{"use strict";var ve=Ye(647);fn.exports=new ve("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:function ee(){return!0},construct:function it(){},predicate:function W(R){return typeof R>"u"},represent:function he(){return""}})},71:(fn,Gn,Ye)=>{"use strict";var ve=Ye(647);fn.exports=new ve("tag:yaml.org,2002:map",{kind:"mapping",construct:function(ee){return null!==ee?ee:{}}})},996:(fn,Gn,Ye)=>{"use strict";var ve=Ye(647);fn.exports=new ve("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function ee(it){return"<<"===it||null===it}})},568:(fn,Gn,Ye)=>{"use strict";var ve=Ye(647);fn.exports=new ve("tag:yaml.org,2002:null",{kind:"scalar",resolve:function ee(W){if(null===W)return!0;var R=W.length;return 1===R&&"~"===W||4===R&&("null"===W||"Null"===W||"NULL"===W)},construct:function it(){return null},predicate:function he(W){return null===W},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},166:(fn,Gn,Ye)=>{"use strict";var ve=Ye(647),ee=Object.prototype.hasOwnProperty,it=Object.prototype.toString;fn.exports=new ve("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function he(R){if(null===R)return!0;var S,v,g,_,y,D=[],b=R;for(S=0,v=b.length;S{"use strict";var ve=Ye(647),ee=Object.prototype.toString;fn.exports=new ve("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function it(W){if(null===W)return!0;var R,D,S,v,g,_=W;for(g=new Array(_.length),R=0,D=_.length;R{"use strict";var ve=Ye(647);fn.exports=new ve("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(ee){return null!==ee?ee:[]}})},738:(fn,Gn,Ye)=>{"use strict";var ve=Ye(647),ee=Object.prototype.hasOwnProperty;fn.exports=new ve("tag:yaml.org,2002:set",{kind:"mapping",resolve:function it(W){if(null===W)return!0;var R,D=W;for(R in D)if(ee.call(D,R)&&null!==D[R])return!1;return!0},construct:function he(W){return null!==W?W:{}}})},464:(fn,Gn,Ye)=>{"use strict";var ve=Ye(647);fn.exports=new ve("tag:yaml.org,2002:str",{kind:"scalar",construct:function(ee){return null!==ee?ee:""}})},934:(fn,Gn,Ye)=>{"use strict";var ve=Ye(647),ee=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),it=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");fn.exports=new ve("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function he(D){return null!==D&&(null!==ee.exec(D)||null!==it.exec(D))},construct:function W(D){var S,v,g,_,y,b,x,q,T=0,j=null;if(null===(S=ee.exec(D))&&(S=it.exec(D)),null===S)throw new Error("Date resolve error");if(v=+S[1],g=+S[2]-1,_=+S[3],!S[4])return new Date(Date.UTC(v,g,_));if(y=+S[4],b=+S[5],x=+S[6],S[7]){for(T=S[7].slice(0,3);T.length<3;)T+="0";T=+T}return S[9]&&(j=6e4*(60*+S[10]+ +(S[11]||0)),"-"===S[9]&&(j=-j)),q=new Date(Date.UTC(v,g,_,y,b,x,T)),j&&q.setTime(q.getTime()-j),q},instanceOf:Date,represent:function R(D){return D.toISOString()}})}},fn=>{fn(fn.s=440)}]); \ No newline at end of file diff --git a/console/ui/dist/prod-nt/runtime.72fa9d749641f9d8.js b/console/ui/dist/prod-nt/runtime.72fa9d749641f9d8.js new file mode 100644 index 000000000..ce1bf2cd5 --- /dev/null +++ b/console/ui/dist/prod-nt/runtime.72fa9d749641f9d8.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,v={},p={};function n(e){var f=p[e];if(void 0!==f)return f.exports;var r=p[e]={exports:{}};return v[e].call(r.exports,r,r.exports,n),r.exports}n.m=v,e=[],n.O=(f,r,o,l)=>{if(!r){var c=1/0;for(a=0;a=l)&&Object.keys(n.O).every(h=>n.O[h](r[u]))?r.splice(u--,1):(t=!1,l0&&e[a-1][2]>l;a--)e[a]=e[a-1];e[a]=[r,o,l]},n.o=(e,f)=>Object.prototype.hasOwnProperty.call(e,f),(()=>{var e={666:0};n.O.j=o=>0===e[o];var f=(o,l)=>{var u,s,[a,c,t]=l,i=0;if(a.some(d=>0!==e[d])){for(u in c)n.o(c,u)&&(n.m[u]=c[u]);if(t)var _=t(n)}for(o&&o(l);i{"use strict";var e,d={},h={};function a(e){var i=h[e];if(void 0!==i)return i.exports;var r=h[e]={id:e,loaded:!1,exports:{}};return d[e].call(r.exports,r,r.exports,a),r.loaded=!0,r.exports}a.m=d,a.amdD=function(){throw new Error("define cannot be used indirect")},e=[],a.O=(i,r,t,f)=>{if(!r){var o=1/0;for(n=0;n=f)&&Object.keys(a.O).every(_=>a.O[_](r[l]))?r.splice(l--,1):(s=!1,f0&&e[n-1][2]>f;n--)e[n]=e[n-1];e[n]=[r,t,f]},a.o=(e,i)=>Object.prototype.hasOwnProperty.call(e,i),a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={666:0};a.O.j=t=>0===e[t];var i=(t,f)=>{var l,c,[n,o,s]=f,u=0;if(n.some(p=>0!==e[p])){for(l in o)a.o(o,l)&&(a.m[l]=o[l]);if(s)var v=s(a)}for(t&&t(f);u Nakama Console - + - + \ No newline at end of file diff --git a/console/ui/dist/prod/main.2357b54074463f87.js b/console/ui/dist/prod/main.2357b54074463f87.js deleted file mode 100644 index e22cb6b9d..000000000 --- a/console/ui/dist/prod/main.2357b54074463f87.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkui=self.webpackChunkui||[]).push([[179],{440:(fn,Gn,Ye)=>{"use strict";function ve(t){return"function"==typeof t}let ee=!1;const it={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const n=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+n.stack)}else ee&&console.log("RxJS: Back to a better error behavior. Thank you. <3");ee=t},get useDeprecatedSynchronousErrorHandling(){return ee}};function he(t){setTimeout(()=>{throw t},0)}const W={closed:!0,next(t){},error(t){if(it.useDeprecatedSynchronousErrorHandling)throw t;he(t)},complete(){}},R=Array.isArray||(t=>t&&"number"==typeof t.length);function D(t){return null!==t&&"object"==typeof t}const v=(()=>{function t(n){return Error.call(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n,this}return t.prototype=Object.create(Error.prototype),t})();class g{constructor(n){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,n&&(this._ctorUnsubscribe=!0,this._unsubscribe=n)}unsubscribe(){let n;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof g)e.remove(this);else if(null!==e)for(let s=0;sn.concat(e instanceof v?e.errors:e),[])}g.EMPTY=((t=new g).closed=!0,t);const y="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class x extends g{constructor(n,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=W;break;case 1:if(!n){this.destination=W;break}if("object"==typeof n){n instanceof x?(this.syncErrorThrowable=n.syncErrorThrowable,this.destination=n,n.add(this)):(this.syncErrorThrowable=!0,this.destination=new T(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new T(this,n,e,i)}}[y](){return this}static create(n,e,i){const r=new x(n,e,i);return r.syncErrorThrowable=!1,r}next(n){this.isStopped||this._next(n)}error(n){this.isStopped||(this.isStopped=!0,this._error(n))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(n){this.destination.next(n)}_error(n){this.destination.error(n),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:n}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=n,this}}class T extends x{constructor(n,e,i,r){super(),this._parentSubscriber=n;let o,s=this;ve(e)?o=e:e&&(o=e.next,i=e.error,r=e.complete,e!==W&&(s=Object.create(e),ve(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=i,this._complete=r}next(n){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;it.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,n)&&this.unsubscribe():this.__tryOrUnsub(this._next,n)}}error(n){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=it;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,n),this.unsubscribe()):(this.__tryOrUnsub(this._error,n),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=n,e.syncErrorThrown=!0):he(n),this.unsubscribe();else{if(this.unsubscribe(),i)throw n;he(n)}}}complete(){if(!this.isStopped){const{_parentSubscriber:n}=this;if(this._complete){const e=()=>this._complete.call(this._context);it.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?(this.__tryOrSetError(n,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(n,e){try{n.call(this._context,e)}catch(i){if(this.unsubscribe(),it.useDeprecatedSynchronousErrorHandling)throw i;he(i)}}__tryOrSetError(n,e,i){if(!it.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return it.useDeprecatedSynchronousErrorHandling?(n.syncErrorValue=r,n.syncErrorThrown=!0,!0):(he(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:n}=this;this._context=null,this._parentSubscriber=null,n.unsubscribe()}}const K="function"==typeof Symbol&&Symbol.observable||"@@observable";function q(t){return t}function U(t){return 0===t.length?q:1===t.length?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}let P=(()=>{class t{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:o}=this,s=function Y(t,n,e){if(t){if(t instanceof x)return t;if(t[y])return t[y]()}return t||n||e?new x(t,n,e):new x(W)}(e,i,r);if(s.add(o?o.call(s,this.source):this.source||it.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),it.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(i){it.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function j(t){for(;t;){const{closed:n,destination:e,isStopped:i}=t;if(n||i)return!1;t=e&&e instanceof x?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=$(i))((r,o)=>{let s;s=this.subscribe(a=>{try{e(a)}catch(l){o(l),s&&s.unsubscribe()}},o,r)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[K](){return this}pipe(...e){return 0===e.length?this:U(e)(this)}toPromise(e){return new(e=$(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return t.create=n=>new t(n),t})();function $(t){if(t||(t=it.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const F=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class X extends g{constructor(n,e){super(),this.subject=n,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const n=this.subject,e=n.observers;if(this.subject=null,!e||0===e.length||n.isStopped||n.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class Ce extends x{constructor(n){super(n),this.destination=n}}let Me=(()=>{class t extends P{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[y](){return new Ce(this)}lift(e){const i=new Re(this,this);return i.operator=e,i}next(e){if(this.closed)throw new F;if(!this.isStopped){const{observers:i}=this,r=i.length,o=i.slice();for(let s=0;snew Re(n,e),t})();class Re extends Me{constructor(n,e){super(),this.destination=n,this.source=e}next(n){const{destination:e}=this;e&&e.next&&e.next(n)}error(n){const{destination:e}=this;e&&e.error&&this.destination.error(n)}complete(){const{destination:n}=this;n&&n.complete&&this.destination.complete()}_subscribe(n){const{source:e}=this;return e?this.source.subscribe(n):g.EMPTY}}function ze(t){return t&&"function"==typeof t.schedule}function Pe(t,n){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new Tt(t,n))}}class Tt{constructor(n,e){this.project=n,this.thisArg=e}call(n,e){return e.subscribe(new St(n,this.project,this.thisArg))}}class St extends x{constructor(n,e,i){super(n),this.project=e,this.count=0,this.thisArg=i||this}_next(n){let e;try{e=this.project.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const ht=t=>n=>{for(let e=0,i=t.length;et&&"number"==typeof t.length&&"function"!=typeof t;function wi(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const pr=t=>{if(t&&"function"==typeof t[K])return(t=>n=>{const e=t[K]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(n)})(t);if(Vn(t))return ht(t);if(wi(t))return(t=>n=>(t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,he),n))(t);if(t&&"function"==typeof t[Zt])return(t=>n=>{const e=t[Zt]();for(;;){let i;try{i=e.next()}catch(r){return n.error(r),n}if(i.done){n.complete();break}if(n.next(i.value),n.closed)break}return"function"==typeof e.return&&n.add(()=>{e.return&&e.return()}),n})(t);{const e=`You provided ${D(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function $i(t,n){return new P(e=>{const i=new g;let r=0;return i.add(n.schedule(function(){r!==t.length?(e.next(t[r++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function zn(t,n){return n?function Gi(t,n){if(null!=t){if(function lr(t){return t&&"function"==typeof t[K]}(t))return function Ri(t,n){return new P(e=>{const i=new g;return i.add(n.schedule(()=>{const r=t[K]();i.add(r.subscribe({next(o){i.add(n.schedule(()=>e.next(o)))},error(o){i.add(n.schedule(()=>e.error(o)))},complete(){i.add(n.schedule(()=>e.complete()))}}))})),i})}(t,n);if(wi(t))return function ci(t,n){return new P(e=>{const i=new g;return i.add(n.schedule(()=>t.then(r=>{i.add(n.schedule(()=>{e.next(r),i.add(n.schedule(()=>e.complete()))}))},r=>{i.add(n.schedule(()=>e.error(r)))}))),i})}(t,n);if(Vn(t))return $i(t,n);if(function Wi(t){return t&&"function"==typeof t[Zt]}(t)||"string"==typeof t)return function qn(t,n){if(!t)throw new Error("Iterable cannot be null");return new P(e=>{const i=new g;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(n.schedule(()=>{r=t[Zt](),i.add(n.schedule(function(){if(e.closed)return;let o,s;try{const a=r.next();o=a.value,s=a.done}catch(a){return void e.error(a)}s?e.complete():(e.next(o),this.schedule())}))})),i})}(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,n):t instanceof P?t:new P(pr(t))}class vr extends x{constructor(n){super(),this.parent=n}_next(n){this.parent.notifyNext(n)}_error(n){this.parent.notifyError(n),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class de extends x{notifyNext(n){this.destination.next(n)}notifyError(n){this.destination.error(n)}notifyComplete(){this.destination.complete()}}function Le(t,n){if(!n.closed)return t instanceof P?t.subscribe(n):pr(t)(n)}function et(t,n,e=Number.POSITIVE_INFINITY){return"function"==typeof n?i=>i.pipe(et((r,o)=>zn(t(r,o)).pipe(Pe((s,a)=>n(r,s,o,a))),e)):("number"==typeof n&&(e=n),i=>i.lift(new Ot(t,e)))}class Ot{constructor(n,e=Number.POSITIVE_INFINITY){this.project=n,this.concurrent=e}call(n,e){return e.subscribe(new Jt(n,this.project,this.concurrent))}}class Jt extends de{constructor(n,e,i=Number.POSITIVE_INFINITY){super(n),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(n){this.active0?this._next(n.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function H(t=Number.POSITIVE_INFINITY){return et(q,t)}function yt(t,n){return n?$i(t,n):new P(ht(t))}function Lt(...t){let n=Number.POSITIVE_INFINITY,e=null,i=t[t.length-1];return ze(i)?(e=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===e&&1===t.length&&t[0]instanceof P?t[0]:H(n)(yt(t,e))}function Kt(){return function(n){return n.lift(new Vt(n))}}class Vt{constructor(n){this.connectable=n}call(n,e){const{connectable:i}=this;i._refCount++;const r=new wn(n,i),o=e.subscribe(r);return r.closed||(r.connection=i.connect()),o}}class wn extends x{constructor(n,e){super(n),this.connectable=e}_unsubscribe(){const{connectable:n}=this;if(!n)return void(this.connection=null);this.connectable=null;const e=n._refCount;if(e<=0)return void(this.connection=null);if(n._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,r=n._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class Ne extends P{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let n=this._connection;return n||(this._isComplete=!1,n=this._connection=new g,n.add(this.source.subscribe(new nn(this.getSubject(),this))),n.closed&&(this._connection=null,n=g.EMPTY)),n}refCount(){return Kt()(this)}}const jt=(()=>{const t=Ne.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class nn extends Ce{constructor(n,e){super(n),this.connectable=e}_error(n){this._unsubscribe(),super._error(n)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const n=this.connectable;if(n){this.connectable=null;const e=n._connection;n._refCount=0,n._subject=null,n._connection=null,e&&e.unsubscribe()}}}class In{constructor(n,e){this.subjectFactory=n,this.selector=e}call(n,e){const{selector:i}=this,r=this.subjectFactory(),o=i(r).subscribe(n);return o.add(e.subscribe(r)),o}}function gn(){return new Me}function dt(){return t=>Kt()(function sn(t,n){return function(i){let r;if(r="function"==typeof t?t:function(){return t},"function"==typeof n)return i.lift(new In(r,n));const o=Object.create(i,jt);return o.source=i,o.subjectFactory=r,o}}(gn)(t))}function pt(t){for(let n in t)if(t[n]===pt)return n;throw Error("Could not find renamed property on target object.")}function Ht(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function Bn(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Bn).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function so(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const q0=pt({__forward_ref__:pt});function yr(t){return t.__forward_ref__=yr,t.toString=function(){return Bn(this())},t}function qi(t){return ZD(t)?t():t}function ZD(t){return"function"==typeof t&&t.hasOwnProperty(q0)&&t.__forward_ref__===yr}function eT(t){return t&&!!t.\u0275providers}const V_="https://g.co/ng/security#xss";class on extends Error{constructor(n,e){super(z_(n,e)),this.code=n}}function z_(t,n){return`NG0${Math.abs(t)}${n?": "+n.trim():""}`}function cr(t){return"string"==typeof t?t:null==t?"":String(t)}function U_(t,n){throw new on(-201,!1)}function Vc(t,n){null==t&&function So(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(n,t,null,"!=")}function Yt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Xi(t){return{providers:t.providers||[],imports:t.imports||[]}}function W_(t){return b4(t,G_)||b4(t,w4)}function b4(t,n){return t.hasOwnProperty(n)?t[n]:null}function _4(t){return t&&(t.hasOwnProperty(tT)||t.hasOwnProperty(dme))?t[tT]:null}const G_=pt({\u0275prov:pt}),tT=pt({\u0275inj:pt}),w4=pt({ngInjectableDef:pt}),dme=pt({ngInjectorDef:pt});var Yi=(()=>((Yi=Yi||{})[Yi.Default=0]="Default",Yi[Yi.Host=1]="Host",Yi[Yi.Self=2]="Self",Yi[Yi.SkipSelf=4]="SkipSelf",Yi[Yi.Optional=8]="Optional",Yi))();let nT;function zc(t){const n=nT;return nT=t,n}function x4(t,n,e){const i=W_(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&Yi.Optional?null:void 0!==n?n:void U_(Bn(t))}const is=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),X0={},iT="__NG_DI_FLAG__",q_="ngTempTokenPath",pme="ngTokenPath",gme=/\n/gm,mme="\u0275",C4="__source";let Y0;function om(t){const n=Y0;return Y0=t,n}function vme(t,n=Yi.Default){if(void 0===Y0)throw new on(-203,!1);return null===Y0?x4(t,void 0,n):Y0.get(t,n&Yi.Optional?null:void 0,n)}function Et(t,n=Yi.Default){return(function fme(){return nT}()||vme)(qi(t),n)}function Fr(t,n=Yi.Default){return Et(t,X_(n))}function X_(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function rT(t){const n=[];for(let e=0;e((Th=Th||{})[Th.OnPush=0]="OnPush",Th[Th.Default=1]="Default",Th))(),xu=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(xu||(xu={})),xu))();const Sd={},bo=[],Y_=pt({\u0275cmp:pt}),oT=pt({\u0275dir:pt}),sT=pt({\u0275pipe:pt}),k4=pt({\u0275mod:pt}),kd=pt({\u0275fac:pt}),J0=pt({__NG_ELEMENT_ID__:pt});let wme=0;function ln(t){return vf(()=>{const e=!0===t.standalone,i={},r={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Th.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&t.dependencies||null,getStandaloneInjector:null,selectors:t.selectors||bo,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||xu.Emulated,id:"c"+wme++,styles:t.styles||bo,_:null,setInput:null,schemas:t.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},o=t.dependencies,s=t.features;return r.inputs=A4(t.inputs,i),r.outputs=A4(t.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(D4).filter(T4):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(Al).filter(T4):null,r})}function D4(t){return ko(t)||ul(t)}function T4(t){return null!==t}function Ji(t){return vf(()=>({type:t.type,bootstrap:t.bootstrap||bo,declarations:t.declarations||bo,imports:t.imports||bo,exports:t.exports||bo,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function A4(t,n){if(null==t)return Sd;const e={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,n&&(n[r]=o)}return e}const bn=ln;function Tl(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function ko(t){return t[Y_]||null}function ul(t){return t[oT]||null}function Al(t){return t[sT]||null}function pc(t,n){const e=t[k4]||null;if(!e&&!0===n)throw new Error(`Type ${Bn(t)} does not have '\u0275mod' property.`);return e}const Dd=0,ri=1,Cr=2,Es=3,Cu=4,Ap=5,hl=6,am=7,Bs=8,K_=9,J_=10,Ar=11,aT=12,Q0=13,E4=14,lm=15,dl=16,Z0=17,cm=18,Ah=19,e1=20,M4=21,rs=22,lT=1,I4=2,Q_=7,Z_=8,um=9,El=10;function gc(t){return Array.isArray(t)&&"object"==typeof t[lT]}function Su(t){return Array.isArray(t)&&!0===t[lT]}function cT(t){return 0!=(4&t.flags)}function t1(t){return t.componentOffset>-1}function ew(t){return 1==(1&t.flags)}function ku(t){return null!==t.template}function Sme(t){return 0!=(256&t[Cr])}function Ep(t,n){return t.hasOwnProperty(kd)?t[kd]:null}class Tme{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function ui(){return O4}function O4(t){return t.type.prototype.ngOnChanges&&(t.setInput=Eme),Ame}function Ame(){const t=R4(this),n=t?.current;if(n){const e=t.previous;if(e===Sd)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function Eme(t,n,e,i){const r=this.declaredInputs[e],o=R4(t)||function Mme(t,n){return t[N4]=n}(t,{previous:Sd,current:null}),s=o.current||(o.current={}),a=o.previous,l=a[r];s[r]=new Tme(l&&l.currentValue,n,a===Sd),t[i]=n}ui.ngInherit=!0;const N4="__ngSimpleChanges__";function R4(t){return t[N4]||null}const Uc=function(t,n,e){},$4="svg";function Ha(t){for(;Array.isArray(t);)t=t[Dd];return t}function tw(t,n){return Ha(n[t])}function mc(t,n){return Ha(n[t.index])}function j4(t,n){return t.data[n]}function hm(t,n){return t[n]}function vc(t,n){const e=n[t];return gc(e)?e:e[Dd]}function nw(t){return 64==(64&t[Cr])}function yf(t,n){return null==n?null:t[n]}function B4(t){t[cm]=0}function hT(t,n){t[Ap]+=n;let e=t,i=t[Es];for(;null!==i&&(1===n&&1===e[Ap]||-1===n&&0===e[Ap]);)i[Ap]+=n,e=i,i=i[Es]}const ur={lFrame:K4(null),bindingsEnabled:!0};function V4(){return ur.bindingsEnabled}function dn(){return ur.lFrame.lView}function ao(){return ur.lFrame.tView}function st(t){return ur.lFrame.contextLView=t,t[Bs]}function at(t){return ur.lFrame.contextLView=null,t}function Va(){let t=z4();for(;null!==t&&64===t.type;)t=t.parent;return t}function z4(){return ur.lFrame.currentTNode}function Eh(t,n){const e=ur.lFrame;e.currentTNode=t,e.isParent=n}function dT(){return ur.lFrame.isParent}function fT(){ur.lFrame.isParent=!1}function Ml(){const t=ur.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function dm(){return ur.lFrame.bindingIndex++}function Ad(t){const n=ur.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function zme(t,n){const e=ur.lFrame;e.bindingIndex=e.bindingRootIndex=t,pT(n)}function pT(t){ur.lFrame.currentDirectiveIndex=t}function q4(){return ur.lFrame.currentQueryIndex}function mT(t){ur.lFrame.currentQueryIndex=t}function Wme(t){const n=t[ri];return 2===n.type?n.declTNode:1===n.type?t[hl]:null}function X4(t,n,e){if(e&Yi.SkipSelf){let r=n,o=t;for(;!(r=r.parent,null!==r||e&Yi.Host||(r=Wme(o),null===r||(o=o[lm],10&r.type))););if(null===r)return!1;n=r,t=o}const i=ur.lFrame=Y4();return i.currentTNode=n,i.lView=t,!0}function vT(t){const n=Y4(),e=t[ri];ur.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function Y4(){const t=ur.lFrame,n=null===t?null:t.child;return null===n?K4(t):n}function K4(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function J4(){const t=ur.lFrame;return ur.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Q4=J4;function yT(){const t=J4();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Il(){return ur.lFrame.selectedIndex}function Mp(t){ur.lFrame.selectedIndex=t}function vs(){const t=ur.lFrame;return j4(t.tView,t.selectedIndex)}function kt(){ur.lFrame.currentNamespace=$4}function Ip(){!function Yme(){ur.lFrame.currentNamespace=null}()}function iw(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[l]<0&&(t[cm]+=65536),(a>11>16&&(3&t[Cr])===n){t[Cr]+=2048,Uc(4,a,o);try{o.call(a)}finally{Uc(5,a,o)}}}else{Uc(4,a,o);try{o.call(a)}finally{Uc(5,a,o)}}}const fm=-1;class i1{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function wT(t,n,e){let i=0;for(;in){s=o-1;break}}}for(;o>16}(t),i=n;for(;e>0;)i=i[lm],e--;return i}let xT=!0;function lw(t){const n=xT;return xT=t,n}const rP=255,oP=5;let ive=0;const Mh={};function cw(t,n){const e=sP(t,n);if(-1!==e)return e;const i=n[ri];i.firstCreatePass&&(t.injectorIndex=n.length,CT(i.data,t),CT(n,null),CT(i.blueprint,null));const r=ST(t,n),o=t.injectorIndex;if(iP(r)){const s=sw(r),a=aw(r,n),l=a[ri].data;for(let c=0;c<8;c++)n[o+c]=a[s+c]|l[s+c]}return n[o+8]=r,o}function CT(t,n){t.push(0,0,0,0,0,0,0,0,n)}function sP(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function ST(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;null!==r;){if(i=fP(r),null===i)return fm;if(e++,r=r[lm],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return fm}function kT(t,n,e){!function rve(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(J0)&&(i=e[J0]),null==i&&(i=e[J0]=ive++);const r=i&rP;n.data[t+(r>>oP)]|=1<=0?n&rP:lve:n}(e);if("function"==typeof o){if(!X4(n,t,i))return i&Yi.Host?aP(r,0,i):lP(n,e,i,r);try{const s=o(i);if(null!=s||i&Yi.Optional)return s;U_()}finally{Q4()}}else if("number"==typeof o){let s=null,a=sP(t,n),l=fm,c=i&Yi.Host?n[dl][hl]:null;for((-1===a||i&Yi.SkipSelf)&&(l=-1===a?ST(t,n):n[a+8],l!==fm&&dP(i,!1)?(s=n[ri],a=sw(l),n=aw(l,n)):a=-1);-1!==a;){const u=n[ri];if(hP(o,a,u.data)){const h=sve(a,n,e,s,i,c);if(h!==Mh)return h}l=n[a+8],l!==fm&&dP(i,n[ri].data[a+8]===c)&&hP(o,a,n)?(s=u,a=sw(l),n=aw(l,n)):a=-1}}return r}function sve(t,n,e,i,r,o){const s=n[ri],a=s.data[t+8],u=uw(a,s,e,null==i?t1(a)&&xT:i!=s&&0!=(3&a.type),r&Yi.Host&&o===a);return null!==u?Fp(n,s,u,a):Mh}function uw(t,n,e,i,r){const o=t.providerIndexes,s=n.data,a=1048575&o,l=t.directiveStart,u=o>>20,d=r?a+u:t.directiveEnd;for(let f=i?a:a+u;f=l&&p.type===e)return f}if(r){const f=s[l];if(f&&ku(f)&&f.type===e)return l}return null}function Fp(t,n,e,i){let r=t[e];const o=n.data;if(function Zme(t){return t instanceof i1}(r)){const s=r;s.resolving&&function rme(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new on(-200,`Circular dependency in DI detected for ${t}${e}`)}(function Co(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():cr(t)}(o[e]));const a=lw(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?zc(s.injectImpl):null;X4(t,i,Yi.Default);try{r=t[e]=s.factory(void 0,o,t,i),n.firstCreatePass&&e>=i.directiveStart&&function Jme(t,n,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const s=O4(n);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,s)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,r),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,o))}(e,o[e],n)}finally{null!==l&&zc(l),lw(a),s.resolving=!1,Q4()}}return r}function hP(t,n,e){return!!(e[n+(t>>oP)]&1<{const n=t.prototype.constructor,e=n[kd]||DT(n),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const o=r[kd]||DT(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function DT(t){return ZD(t)?()=>{const n=DT(qi(t));return n&&n()}:Ep(t)}function fP(t){const n=t[ri],e=n.type;return 2===e?n.declTNode:1===e?t[hl]:null}function Ed(t){return function ove(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let r=0;for(;r{const i=function TT(t){return function(...e){if(t){const i=t(...e);for(const r in i)this[r]=i[r]}}}(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,u){const h=l.hasOwnProperty(mm)?l[mm]:Object.defineProperty(l,mm,{value:[]})[mm];for(;h.length<=u;)h.push(null);return(h[u]=h[u]||[]).push(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class hi{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=Yt({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Lp(t,n){t.forEach(e=>Array.isArray(e)?Lp(e,n):n(e))}function gP(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function hw(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function a1(t,n){const e=[];for(let i=0;i=0?t[1|i]=e:(i=~i,function fve(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(1===r)t.push(i,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>n;)t[r]=t[r-2],r--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function ET(t,n){const e=bm(t,n);if(e>=0)return t[1|e]}function bm(t,n){return function mP(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=t[o<n?r=o:i=o+1}return~(r<((Jl=Jl||{})[Jl.Important=1]="Important",Jl[Jl.DashCase=2]="DashCase",Jl))();const NT=new Map;let Nve=0;const $T="__ngContext__";function fl(t,n){gc(n)?(t[$T]=n[e1],function $ve(t){NT.set(t[e1],t)}(n)):t[$T]=n}let PT;function jT(t,n){return PT(t,n)}function f1(t){const n=t[Es];return Su(n)?n[Es]:n}function BT(t){return RP(t[Q0])}function HT(t){return RP(t[Cu])}function RP(t){for(;null!==t&&!Su(t);)t=t[Cu];return t}function wm(t,n,e,i,r){if(null!=i){let o,s=!1;Su(i)?o=i:gc(i)&&(s=!0,i=i[Dd]);const a=Ha(i);0===t&&null!==e?null==r?VP(n,e,a):Op(n,e,a,r||null,!0):1===t&&null!==e?Op(n,e,a,r||null,!0):2===t?function XT(t,n,e){const i=gw(t,n);i&&function i0e(t,n,e,i){t.removeChild(n,e,i)}(t,i,n,e)}(n,a,s):3===t&&n.destroyNode(a),null!=o&&function s0e(t,n,e,i,r){const o=e[Q_];o!==Ha(e)&&wm(n,t,i,o,r);for(let a=El;a0&&(t[e-1][Cu]=i[Cu]);const o=hw(t,El+n);!function Yve(t,n){p1(t,n,n[Ar],2,null,null),n[Dd]=null,n[hl]=null}(i[ri],i);const s=o[Ah];null!==s&&s.detachView(o[ri]),i[Es]=null,i[Cu]=null,i[Cr]&=-65}return i}function jP(t,n){if(!(128&n[Cr])){const e=n[Ar];e.destroyNode&&p1(t,n,e,3,null,null),function Qve(t){let n=t[Q0];if(!n)return WT(t[ri],t);for(;n;){let e=null;if(gc(n))e=n[Q0];else{const i=n[El];i&&(e=i)}if(!e){for(;n&&!n[Cu]&&n!==t;)gc(n)&&WT(n[ri],n),n=n[Es];null===n&&(n=t),gc(n)&&WT(n[ri],n),e=n&&n[Cu]}n=e}}(n)}}function WT(t,n){if(!(128&n[Cr])){n[Cr]&=-65,n[Cr]|=128,function n0e(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i=0?i[r=s]():i[r=-s].unsubscribe(),o+=2}else{const s=i[r=e[o+1]];e[o].call(s)}if(null!==i){for(let o=r+1;o-1){const{encapsulation:o}=t.data[i.directiveStart+r];if(o===xu.None||o===xu.Emulated)return null}return mc(i,e)}}(t,n.parent,e)}function Op(t,n,e,i,r){t.insertBefore(n,e,i,r)}function VP(t,n,e){t.appendChild(n,e)}function zP(t,n,e,i,r){null!==i?Op(t,n,e,i,r):VP(t,n,e)}function gw(t,n){return t.parentNode(n)}function UP(t,n,e){return GP(t,n,e)}let GT,yw,JT,bw,GP=function WP(t,n,e){return 40&t.type?mc(t,e):null};function mw(t,n,e,i){const r=BP(t,i,n),o=n[Ar],a=UP(i.parent||n[hl],i,n);if(null!=r)if(Array.isArray(e))for(let l=0;lt,createScript:t=>t,createScriptURL:t=>t})}catch{}return yw}()?.createHTML(t)||t}function QT(){if(void 0===bw&&(bw=null,is.trustedTypes))try{bw=is.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return bw}function ZP(t){return QT()?.createHTML(t)||t}function tj(t){return QT()?.createScriptURL(t)||t}class Np{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${V_})`}}class f0e extends Np{getTypeName(){return"HTML"}}class p0e extends Np{getTypeName(){return"Style"}}class g0e extends Np{getTypeName(){return"Script"}}class m0e extends Np{getTypeName(){return"URL"}}class v0e extends Np{getTypeName(){return"ResourceURL"}}function bc(t){return t instanceof Np?t.changingThisBreaksApplicationSecurity:t}function Ih(t,n){const e=function y0e(t){return t instanceof Np&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${V_})`)}return e===n}class S0e{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString(xm(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class k0e{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const e=this.inertDocument.createElement("template");return e.innerHTML=xm(n),e}}const T0e=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function _w(t){return(t=String(t)).match(T0e)?t:"unsafe:"+t}function Md(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function g1(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const ij=Md("area,br,col,hr,img,wbr"),rj=Md("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),oj=Md("rp,rt"),ZT=g1(ij,g1(rj,Md("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),g1(oj,Md("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),g1(oj,rj)),eA=Md("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),sj=g1(eA,Md("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Md("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),A0e=Md("script,style,template");class E0e{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!ZT.hasOwnProperty(e))return this.sanitizedSomething=!0,!A0e.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let r=0;r"),!0}endElement(n){const e=n.nodeName.toLowerCase();ZT.hasOwnProperty(e)&&!ij.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(aj(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const M0e=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,I0e=/([^\#-~ |!])/g;function aj(t){return t.replace(/&/g,"&").replace(M0e,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(I0e,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let ww;function lj(t,n){let e=null;try{ww=ww||function nj(t){const n=new k0e(t);return function D0e(){try{return!!(new window.DOMParser).parseFromString(xm(""),"text/html")}catch{return!1}}()?new S0e(n):n}(t);let i=n?String(n):"";e=ww.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=ww.getInertBodyElement(i)}while(i!==o);return xm((new E0e).sanitizeChildren(tA(e)||e))}finally{if(e){const i=tA(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function tA(t){return"content"in t&&function F0e(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var zo=(()=>((zo=zo||{})[zo.NONE=0]="NONE",zo[zo.HTML=1]="HTML",zo[zo.STYLE=2]="STYLE",zo[zo.SCRIPT=3]="SCRIPT",zo[zo.URL=4]="URL",zo[zo.RESOURCE_URL=5]="RESOURCE_URL",zo))();function xw(t){const n=v1();return n?ZP(n.sanitize(zo.HTML,t)||""):Ih(t,"HTML")?ZP(bc(t)):lj(function QP(){return void 0!==JT?JT:typeof document<"u"?document:void 0}(),cr(t))}function m1(t){const n=v1();return n?n.sanitize(zo.URL,t)||"":Ih(t,"URL")?bc(t):_w(cr(t))}function cj(t){const n=v1();if(n)return tj(n.sanitize(zo.RESOURCE_URL,t)||"");if(Ih(t,"ResourceURL"))return tj(bc(t));throw new on(904,!1)}function v1(){const t=dn();return t&&t[aT]}const Cw=new hi("ENVIRONMENT_INITIALIZER"),Sw=new hi("INJECTOR",-1),hj=new hi("INJECTOR_DEF_TYPES");class dj{get(n,e=X0){if(e===X0){const i=new Error(`NullInjectorError: No provider for ${Bn(n)}!`);throw i.name="NullInjectorError",i}return e}}function j0e(...t){return{\u0275providers:fj(0,t),\u0275fromNgModule:!0}}function fj(t,...n){const e=[],i=new Set;let r;return Lp(n,o=>{const s=o;nA(s,e,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&pj(r,e),e}function pj(t,n){for(let e=0;e{n.push(o)})}}function nA(t,n,e,i){if(!(t=qi(t)))return!1;let r=null,o=_4(t);const s=!o&&ko(t);if(o||s){if(s&&!s.standalone)return!1;r=t}else{const l=t.ngModule;if(o=_4(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)nA(c,n,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{Lp(o.imports,u=>{nA(u,n,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&pj(c,n)}if(!a){const c=Ep(r)||(()=>new r);n.push({provide:r,useFactory:c,deps:bo},{provide:hj,useValue:r,multi:!0},{provide:Cw,useValue:()=>Et(r),multi:!0})}const l=o.providers;null==l||a||iA(l,u=>{n.push(u)})}}return r!==t&&void 0!==t.providers}function iA(t,n){for(let e of t)eT(e)&&(e=e.\u0275providers),Array.isArray(e)?iA(e,n):n(e)}const B0e=pt({provide:String,useValue:pt});function rA(t){return null!==t&&"object"==typeof t&&B0e in t}function Rp(t){return"function"==typeof t}const oA=new hi("Set Injector scope."),kw={},V0e={};let sA;function Dw(){return void 0===sA&&(sA=new dj),sA}class Fh{}class vj extends Fh{get destroyed(){return this._destroyed}constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,lA(n,s=>this.processProvider(s)),this.records.set(Sw,Cm(void 0,this)),r.has("environment")&&this.records.set(Fh,Cm(void 0,this));const o=this.records.get(oA);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(hj.multi,bo,Yi.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();for(const n of this._onDestroyHooks)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(n){this._onDestroyHooks.push(n)}runInContext(n){this.assertNotDestroyed();const e=om(this),i=zc(void 0);try{return n()}finally{om(e),zc(i)}}get(n,e=X0,i=Yi.Default){this.assertNotDestroyed(),i=X_(i);const r=om(this),o=zc(void 0);try{if(!(i&Yi.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function q0e(t){return"function"==typeof t||"object"==typeof t&&t instanceof hi}(n)&&W_(n);a=l&&this.injectableDefInScope(l)?Cm(aA(n),kw):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(i&Yi.Self?Dw():this.parent).get(n,e=i&Yi.Optional&&e===X0?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[q_]=s[q_]||[]).unshift(Bn(n)),r)throw s;return function bme(t,n,e,i){const r=t[q_];throw n[C4]&&r.unshift(n[C4]),t.message=function _me(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&t.charAt(1)==mme?t.slice(2):t;let r=Bn(n);if(Array.isArray(n))r=n.map(Bn).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):Bn(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(gme,"\n ")}`}("\n"+t.message,r,e,i),t[pme]=r,t[q_]=null,t}(s,n,"R3InjectorError",this.source)}throw s}finally{zc(o),om(r)}}resolveInjectorInitializers(){const n=om(this),e=zc(void 0);try{const i=this.get(Cw.multi,bo,Yi.Self);for(const r of i)r()}finally{om(n),zc(e)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(Bn(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new on(205,!1)}processProvider(n){let e=Rp(n=qi(n))?n:qi(n&&n.provide);const i=function U0e(t){return rA(t)?Cm(void 0,t.useValue):Cm(yj(t),kw)}(n);if(Rp(n)||!0!==n.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=Cm(void 0,kw,!0),r.factory=()=>rT(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e){return e.value===kw&&(e.value=V0e,e.value=e.factory()),"object"==typeof e.value&&e.value&&function G0e(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=qi(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function aA(t){const n=W_(t),e=null!==n?n.factory:Ep(t);if(null!==e)return e;if(t instanceof hi)throw new on(204,!1);if(t instanceof Function)return function z0e(t){const n=t.length;if(n>0)throw a1(n,"?"),new on(204,!1);const e=function ume(t){const n=t&&(t[G_]||t[w4]);return n?(function hme(t){if(t.hasOwnProperty("name"))return t.name;(""+t).match(/^function\s*([^\s(]+)/)}(t),n):null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new on(204,!1)}function yj(t,n,e){let i;if(Rp(t)){const r=qi(t);return Ep(r)||aA(r)}if(rA(t))i=()=>qi(t.useValue);else if(function mj(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...rT(t.deps||[]));else if(function gj(t){return!(!t||!t.useExisting)}(t))i=()=>Et(qi(t.useExisting));else{const r=qi(t&&(t.useClass||t.provide));if(!function W0e(t){return!!t.deps}(t))return Ep(r)||aA(r);i=()=>new r(...rT(t.deps))}return i}function Cm(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function lA(t,n){for(const e of t)Array.isArray(e)?lA(e,n):e&&eT(e)?lA(e.\u0275providers,n):n(e)}class X0e{}class bj{}class K0e{resolveComponentFactory(n){throw function Y0e(t){const n=Error(`No component factory found for ${Bn(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let Gc=(()=>{class t{}return t.NULL=new K0e,t})();function J0e(){return Sm(Va(),dn())}function Sm(t,n){return new xi(mc(t,n))}let xi=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=J0e,t})();function Q0e(t){return t instanceof xi?t.nativeElement:t}class $p{}let Hs=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function Z0e(){const t=dn(),e=vc(Va().index,t);return(gc(e)?e:t)[Ar]}(),t})(),e1e=(()=>{class t{}return t.\u0275prov=Yt({token:t,providedIn:"root",factory:()=>null}),t})();class y1{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const t1e=new y1("15.2.2"),cA={},uA="ngOriginalError";function hA(t){return t[uA]}class km{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&hA(n);for(;e&&hA(e);)e=hA(e);return e||null}}function wj(t){return t.ownerDocument.defaultView}function Id(t){return t instanceof Function?t():t}function Cj(t,n,e){let i=t.length;for(;;){const r=t.indexOf(n,e);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const o=n.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r}e=r+1}}const Sj="ng-template";function h1e(t,n,e){let i=0;for(;io?"":r[h+1].toLowerCase();const f=8&i?d:null;if(f&&-1!==Cj(f,c,0)||2&i&&c!==d){if(Du(i))return!1;s=!0}}}}else{if(!s&&!Du(i)&&!Du(l))return!1;if(s&&Du(l))continue;s=!1,i=l|1&i}}return Du(i)||s}function Du(t){return 0==(1&t)}function p1e(t,n,e,i){if(null===n)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!Du(s)&&(n+=Tj(o,r),r=""),i=s,o=o||!Du(i);e++}return""!==r&&(n+=Tj(o,r)),n}const hr={};function I(t){Aj(ao(),dn(),Il()+t,!1)}function Aj(t,n,e,i){if(!i)if(3==(3&n[Cr])){const o=t.preOrderCheckHooks;null!==o&&rw(n,o,e)}else{const o=t.preOrderHooks;null!==o&&ow(n,o,0,e)}Mp(e)}function Fj(t,n=null,e=null,i){const r=Lj(t,n,e,i);return r.resolveInjectorInitializers(),r}function Lj(t,n=null,e=null,i,r=new Set){const o=[e||bo,j0e(t)];return i=i||("object"==typeof t?void 0:Bn(t)),new vj(o,n||Dw(),i||null,r)}let ea=(()=>{class t{static create(e,i){if(Array.isArray(e))return Fj({name:""},i,e,"");{const r=e.name??"";return Fj({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=X0,t.NULL=new dj,t.\u0275prov=Yt({token:t,providedIn:"any",factory:()=>Et(Sw)}),t.__NG_ELEMENT_ID__=-1,t})();function Ae(t,n=Yi.Default){const e=dn();return null===e?Et(t,n):cP(Va(),e,qi(t),n)}function Hj(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;irs&&Aj(t,n,rs,!1),Uc(s?2:0,r),e(i,r)}finally{Mp(o),Uc(s?3:1,r)}}function yA(t,n,e){if(cT(n)){const r=n.directiveEnd;for(let o=n.directiveStart;o0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(s)!=a&&s.push(a),s.push(e,i,o)}}(t,n,i,b1(t,e,r.hostVars,hr),r)}function Lh(t,n,e,i,r,o){const s=mc(t,n);!function SA(t,n,e,i,r,o,s){if(null==o)t.removeAttribute(n,r,e);else{const a=null==s?cr(o):s(o,i||"",r);t.setAttribute(n,r,a,e)}}(n[Ar],s,o,t.value,e,i,r)}function oye(t,n,e,i,r,o){const s=o[n];if(null!==s){const a=i.setInput;for(let l=0;l0&&kA(e)}}function kA(t){for(let i=BT(t);null!==i;i=HT(i))for(let r=El;r0&&kA(o)}const e=t[ri].components;if(null!==e)for(let i=0;i0&&kA(r)}}function uye(t,n){const e=vc(n,t),i=e[ri];(function hye(t,n){for(let e=n.length;e-1&&(UT(n,i),hw(e,i))}this._attachedToViewContainer=!1}jP(this._lView[ri],this._lView)}onDestroy(n){Uj(this._lView[ri],this._lView,null,n)}markForCheck(){DA(this._cdRefInjectingView||this._lView)}detach(){this._lView[Cr]&=-65}reattach(){this._lView[Cr]|=64}detectChanges(){Iw(this._lView[ri],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new on(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Jve(t,n){p1(t,n,n[Ar],2,null,null)}(this._lView[ri],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new on(902,!1);this._appRef=n}}class dye extends _1{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;Iw(n[ri],n,n[Bs],!1)}checkNoChanges(){}get context(){return null}}class t5 extends Gc{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=ko(n);return new w1(e,this.ngModule)}}function n5(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class pye{constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){i=X_(i);const r=this.injector.get(n,cA,i);return r!==cA||e===cA?r:this.parentInjector.get(n,e,i)}}class w1 extends bj{get inputs(){return n5(this.componentDef.inputs)}get outputs(){return n5(this.componentDef.outputs)}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function _1e(t){return t.map(b1e).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}create(n,e,i,r){let o=(r=r||this.ngModule)instanceof Fh?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new pye(n,o):n,a=s.get($p,null);if(null===a)throw new on(407,!1);const l=s.get(e1e,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",h=i?function U1e(t,n,e){return t.selectRootElement(n,e===xu.ShadowDom)}(c,i,this.componentDef.encapsulation):zT(c,u,function fye(t){const n=t.toLowerCase();return"svg"===n?$4:"math"===n?"math":null}(u)),d=this.componentDef.onPush?288:272,f=wA(0,null,null,1,0,null,null,null,null,null),p=Aw(null,f,null,d,null,null,a,c,l,s,null);let m,w;vT(p);try{const C=this.componentDef;let k,E=null;C.findHostDirectiveDefs?(k=[],E=new Map,C.findHostDirectiveDefs(C,k,E),k.push(C)):k=[C];const L=function mye(t,n){const e=t[ri],i=rs;return t[i]=n,Am(e,i,2,"#host",null)}(p,h),B=function vye(t,n,e,i,r,o,s,a){const l=r[ri];!function yye(t,n,e,i){for(const r of t)n.mergedAttrs=r1(n.mergedAttrs,r.hostAttrs);null!==n.mergedAttrs&&(Fw(n,n.mergedAttrs,!0),null!==e&&JP(i,e,n))}(i,t,n,s);const c=o.createRenderer(n,e),u=Aw(r,zj(e),null,e.onPush?32:16,r[t.index],t,o,c,a||null,null,null);return l.firstCreatePass&&CA(l,t,i.length-1),Mw(r,u),r[t.index]=u}(L,h,C,k,p,a,c);w=j4(f,rs),h&&function _ye(t,n,e,i){if(i)wT(t,e,["ng-version",t1e.full]);else{const{attrs:r,classes:o}=function w1e(t){const n=[],e=[];let i=1,r=2;for(;i0&&KP(t,e,o.join(" "))}}(c,C,h,i),void 0!==e&&function wye(t,n,e){const i=t.projection=[];for(let r=0;r=0;i--){const r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=r1(r.hostAttrs,e=r1(e,r.hostAttrs))}}(i)}function EA(t){return t===Sd?{}:t===bo?[]:t}function Sye(t,n){const e=t.viewQuery;t.viewQuery=e?(i,r)=>{n(i,r),e(i,r)}:n}function kye(t,n){const e=t.contentQueries;t.contentQueries=e?(i,r,o)=>{n(i,r,o),e(i,r,o)}:n}function Dye(t,n){const e=t.hostBindings;t.hostBindings=e?(i,r)=>{n(i,r),e(i,r)}:n}function Ow(t){return!!MA(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function MA(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Oh(t,n,e){return t[n]=e}function pl(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function Pp(t,n,e,i){const r=pl(t,n,e);return pl(t,n+1,i)||r}function Ft(t,n,e,i){const r=dn();return pl(r,dm(),n)&&(ao(),Lh(vs(),r,t,n,e,i)),Ft}function Mm(t,n,e,i){return pl(t,dm(),e)?n+cr(e)+i:hr}function Im(t,n,e,i,r,o){const a=Pp(t,function Td(){return ur.lFrame.bindingIndex}(),e,r);return Ad(2),a?n+cr(e)+i+cr(r)+o:hr}function ye(t,n,e,i,r,o,s,a){const l=dn(),c=ao(),u=t+rs,h=c.firstCreatePass?function Rye(t,n,e,i,r,o,s,a,l){const c=n.consts,u=Am(n,t,4,s||null,yf(c,a));xA(n,e,u,yf(c,l)),iw(n,u);const h=u.tView=wA(2,u,i,r,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c);return null!==n.queries&&(n.queries.template(n,u),h.queries=n.queries.embeddedTView(u)),u}(u,c,l,n,e,i,r,o,s):c.data[u];Eh(h,!1);const d=l[Ar].createComment("");mw(c,l,d,h),fl(d,l),Mw(l,l[u]=Kj(d,l,d,h)),ew(h)&&bA(c,l,h),null!=s&&_A(l,h,a)}function Io(t){return hm(function Hme(){return ur.lFrame.contextLView}(),rs+t)}function N(t,n,e){const i=dn();return pl(i,dm(),n)&&_c(ao(),vs(),i,t,n,i[Ar],e,!1),N}function IA(t,n,e,i,r){const s=r?"class":"style";AA(t,e,n.inputs[s],s,i)}function A(t,n,e,i){const r=dn(),o=ao(),s=rs+t,a=r[Ar],l=o.firstCreatePass?function Pye(t,n,e,i,r,o){const s=n.consts,l=Am(n,t,2,i,yf(s,r));return xA(n,e,l,yf(s,o)),null!==l.attrs&&Fw(l,l.attrs,!1),null!==l.mergedAttrs&&Fw(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(s,o,r,n,e,i):o.data[s],c=r[s]=zT(a,n,function Kme(){return ur.lFrame.currentNamespace}()),u=ew(l);return Eh(l,!0),JP(a,c,l),32!=(32&l.flags)&&mw(o,r,c,l),0===function Rme(){return ur.lFrame.elementDepthCount}()&&fl(c,r),function $me(){ur.lFrame.elementDepthCount++}(),u&&(bA(o,r,l),yA(o,l,r)),null!==i&&_A(r,l),A}function M(){let t=Va();dT()?fT():(t=t.parent,Eh(t,!1));const n=t;!function Pme(){ur.lFrame.elementDepthCount--}();const e=ao();return e.firstCreatePass&&(iw(e,t),cT(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function eve(t){return 0!=(8&t.flags)}(n)&&IA(e,n,dn(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function tve(t){return 0!=(16&t.flags)}(n)&&IA(e,n,dn(),n.stylesWithoutHost,!1),M}function je(t,n,e,i){return A(t,n,e,i),M(),je}function va(t,n,e){const i=dn(),r=ao(),o=t+rs,s=r.firstCreatePass?function jye(t,n,e,i,r){const o=n.consts,s=yf(o,i),a=Am(n,t,8,"ng-container",s);return null!==s&&Fw(a,s,!0),xA(n,e,a,yf(o,r)),null!==n.queries&&n.queries.elementStart(n,a),a}(o,r,i,n,e):r.data[o];Eh(s,!0);const a=i[o]=i[Ar].createComment("");return mw(r,i,a,s),fl(a,i),ew(s)&&(bA(r,i,s),yA(r,s,i)),null!=e&&_A(i,s),va}function ya(){let t=Va();const n=ao();return dT()?fT():(t=t.parent,Eh(t,!1)),n.firstCreatePass&&(iw(n,t),cT(t)&&n.queries.elementEnd(t)),ya}function Bt(){return dn()}function C1(t){return!!t&&"function"==typeof t.then}const FA=function m5(t){return!!t&&"function"==typeof t.subscribe};function He(t,n,e,i){const r=dn(),o=ao(),s=Va();return function y5(t,n,e,i,r,o,s){const a=ew(i),c=t.firstCreatePass&&Qj(t),u=n[Bs],h=Jj(n);let d=!0;if(3&i.type||s){const m=mc(i,n),w=s?s(m):m,C=h.length,k=s?L=>s(Ha(L[i.index])):i.index;let E=null;if(!s&&a&&(E=function Bye(t,n,e,i){const r=t.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(t,n,r,i.index)),null!==E)(E.__ngLastListenerFn__||E).__ngNextListenerFn__=o,E.__ngLastListenerFn__=o,d=!1;else{o=_5(i,n,u,o,!1);const L=e.listen(w,r,o);h.push(o,L),c&&c.push(r,k,C,C+1)}}else o=_5(i,n,u,o,!1);const f=i.outputs;let p;if(d&&null!==f&&(p=f[r])){const m=p.length;if(m)for(let w=0;w-1?vc(t.index,n):n);let l=b5(n,e,i,s),c=o.__ngNextListenerFn__;for(;c;)l=b5(n,e,c,s)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function te(t=1){return function Gme(t){return(ur.lFrame.contextLView=function qme(t,n){for(;t>0;)n=n[lm],t--;return n}(t,ur.lFrame.contextLView))[Bs]}(t)}function Hye(t,n){let e=null;const i=function g1e(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let r=0;r>17&32767}function LA(t){return 2|t}function Bp(t){return(131068&t)>>2}function OA(t,n){return-131069&t|n<<2}function NA(t){return 1|t}function E5(t,n,e,i,r){const o=t[e+1],s=null===n;let a=i?bf(o):Bp(o),l=!1;for(;0!==a&&(!1===l||s);){const u=t[a+1];qye(t[a],n)&&(l=!0,t[a+1]=i?NA(u):LA(u)),a=i?bf(u):Bp(u)}l&&(t[e+1]=i?LA(o):NA(o))}function qye(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&bm(t,n)>=0}const ba={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function M5(t){return t.substring(ba.key,ba.keyEnd)}function I5(t,n){const e=ba.textEnd;return e===n?-1:(n=ba.keyEnd=function Jye(t,n,e){for(;n32;)n++;return n}(t,ba.key=n,e),Pm(t,n,e))}function Pm(t,n,e){for(;n=0;e=I5(n,e))yc(t,M5(n),!0)}function Mu(t,n,e,i){const r=dn(),o=ao(),s=Ad(2);o.firstUpdatePass&&$5(o,t,s,i),n!==hr&&pl(r,s,n)&&j5(o,o.data[Il()],r,r[Ar],t,r[s+1]=function abe(t,n){return null==t||("string"==typeof n?t+=n:"object"==typeof t&&(t=Bn(bc(t)))),t}(n,e),i,s)}function Iu(t,n,e,i){const r=ao(),o=Ad(2);r.firstUpdatePass&&$5(r,null,o,i);const s=dn();if(e!==hr&&pl(s,o,e)){const a=r.data[Il()];if(H5(a,i)&&!R5(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=so(l,e||"")),IA(r,a,s,e,i)}else!function sbe(t,n,e,i,r,o,s,a){r===hr&&(r=bo);let l=0,c=0,u=0=t.expandoStartIndex}function $5(t,n,e,i){const r=t.data;if(null===r[e+1]){const o=r[Il()],s=R5(t,e);H5(o,i)&&null===n&&!s&&(n=!1),n=function tbe(t,n,e,i){const r=function gT(t){const n=ur.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let o=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(e=S1(e=RA(null,t,n,e,i),n.attrs,i),o=null);else{const s=n.directiveStylingLast;if(-1===s||t[s]!==r)if(e=RA(r,t,n,e,i),null===o){let l=function nbe(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==Bp(i))return t[bf(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=RA(null,t,n,l[1],i),l=S1(l,n.attrs,i),function ibe(t,n,e,i){t[bf(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else o=function rbe(t,n,e){let i;const r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0)&&(c=!0)):u=e,r)if(0!==l){const d=bf(t[a+1]);t[i+1]=$w(d,a),0!==d&&(t[d+1]=OA(t[d+1],i)),t[a+1]=function zye(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=$w(a,0),0!==a&&(t[a+1]=OA(t[a+1],i)),a=i;else t[i+1]=$w(l,0),0===a?a=i:t[l+1]=OA(t[l+1],i),l=i;c&&(t[i+1]=LA(t[i+1])),E5(t,u,i,!0),E5(t,u,i,!1),function Gye(t,n,e,i,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof n&&bm(o,n)>=0&&(e[i+1]=NA(e[i+1]))}(n,u,t,i,o),s=$w(a,l),o?n.classBindings=s:n.styleBindings=s}(r,o,n,e,s,i)}}function RA(t,n,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=t[r],c=Array.isArray(l),u=c?l[1]:l,h=null===u;let d=e[r+1];d===hr&&(d=h?bo:void 0);let f=h?ET(d,i):u===i?d:void 0;if(c&&!Pw(f)&&(f=ET(l,i)),Pw(f)&&(a=f,s))return a;const p=t[r+1];r=s?bf(p):Bp(p)}if(null!==n){let l=o?n.residualClasses:n.residualStyles;null!=l&&(a=ET(l,i))}return a}function Pw(t){return void 0!==t}function H5(t,n){return 0!=(t.flags&(n?8:16))}function J(t,n=""){const e=dn(),i=ao(),r=t+rs,o=i.firstCreatePass?Am(i,r,1,n,null):i.data[r],s=e[r]=function VT(t,n){return t.createText(n)}(e[Ar],n);mw(i,e,s,o),Eh(o,!1)}function Xt(t){return jn("",t,""),Xt}function jn(t,n,e){const i=dn(),r=Mm(i,t,n,e);return r!==hr&&Fd(i,Il(),r),jn}function $h(t,n,e,i,r){const o=dn(),s=Im(o,t,n,e,i,r);return s!==hr&&Fd(o,Il(),s),$h}function wc(t,n,e){const i=dn();return pl(i,dm(),n)&&_c(ao(),vs(),i,t,n,i[Ar],e,!0),wc}const Bm="en-US";let c8=Bm;function jA(t,n,e,i,r){if(t=qi(t),Array.isArray(t))for(let o=0;o>20;if(Rp(t)||!t.multi){const f=new i1(l,r,Ae),p=HA(a,n,r?u:u+d,h);-1===p?(kT(cw(c,s),o,a),BA(o,t,n.length),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(f),s.push(f)):(e[p]=f,s[p]=f)}else{const f=HA(a,n,u+d,h),p=HA(a,n,u,u+d),w=p>=0&&e[p];if(r&&!w||!r&&!(f>=0&&e[f])){kT(cw(c,s),o,a);const C=function w_e(t,n,e,i,r){const o=new i1(t,e,Ae);return o.multi=[],o.index=n,o.componentProviders=0,L8(o,r,i&&!e),o}(r?__e:b_e,e.length,r,i,l);!r&&w&&(e[p].providerFactory=C),BA(o,t,n.length,0),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(C),s.push(C)}else BA(o,t,f>-1?f:p,L8(e[r?p:f],l,!r&&i));!r&&i&&w&&e[p].componentProviders++}}}function BA(t,n,e,i){const r=Rp(n),o=function H0e(t){return!!t.useClass}(n);if(r||o){const l=(o?qi(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function L8(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function HA(t,n,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function y_e(t,n,e){const i=ao();if(i.firstCreatePass){const r=ku(t);jA(e,i.data,i.blueprint,r,!0),jA(n,i.data,i.blueprint,r,!1)}}(i,r?r(t):t,n)}}class Vm{}class O8{}class N8 extends Vm{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new t5(this);const i=pc(n);this._bootstrapComponents=Id(i.bootstrap),this._r3Injector=Lj(n,e,[{provide:Vm,useValue:this},{provide:Gc,useValue:this.componentFactoryResolver}],Bn(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class zA extends O8{constructor(n){super(),this.moduleType=n}create(n){return new N8(this.moduleType,n)}}class C_e extends Vm{constructor(n,e,i){super(),this.componentFactoryResolver=new t5(this),this.instance=null;const r=new vj([...n,{provide:Vm,useValue:this},{provide:Gc,useValue:this.componentFactoryResolver}],e||Dw(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function zw(t,n,e=null){return new C_e(t,n,e).injector}let S_e=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=fj(0,e.type),r=i.length>0?zw([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,r)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return t.\u0275prov=Yt({token:t,providedIn:"environment",factory:()=>new t(Et(Fh))}),t})();function R8(t){t.getStandaloneInjector=n=>n.get(S_e).getOrCreateStandaloneInjector(t)}function Ll(t,n,e){const i=Ml()+t,r=dn();return r[i]===hr?Oh(r,i,e?n.call(e):n()):function x1(t,n){return t[n]}(r,i)}function Lr(t,n,e,i){return U8(dn(),Ml(),t,n,e,i)}function Kr(t,n,e,i,r){return function W8(t,n,e,i,r,o,s){const a=n+e;return Pp(t,a,r,o)?Oh(t,a+2,s?i.call(s,r,o):i(r,o)):I1(t,a+2)}(dn(),Ml(),t,n,e,i,r)}function zm(t,n,e,i,r,o){return function G8(t,n,e,i,r,o,s,a){const l=n+e;return function Nw(t,n,e,i,r){const o=Pp(t,n,e,i);return pl(t,n+2,r)||o}(t,l,r,o,s)?Oh(t,l+3,a?i.call(a,r,o,s):i(r,o,s)):I1(t,l+3)}(dn(),Ml(),t,n,e,i,r,o)}function I1(t,n){const e=t[n];return e===hr?void 0:e}function U8(t,n,e,i,r,o){const s=n+e;return pl(t,s,r)?Oh(t,s+1,o?i.call(o,r):i(r)):I1(t,s+1)}function GA(t,n,e){const i=t+rs,r=dn(),o=hm(r,i);return function F1(t,n){return t[ri].data[n].pure}(r,i)?U8(r,Ml(),n,o.transform,e,o):o.transform(e)}function qA(t){return n=>{setTimeout(t,void 0,n)}}const vt=class z_e extends Me{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){let r=n,o=e||(()=>null),s=i;if(n&&"object"==typeof n){const l=n;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=qA(o),r&&(r=qA(r)),s&&(s=qA(s)));const a=super.subscribe({next:r,error:o,complete:s});return n instanceof g&&n.add(a),a}};function U_e(){return this._results[Symbol.iterator]()}class XA{get changes(){return this._changes||(this._changes=new vt)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=XA.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=U_e)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const r=function Wc(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function hve(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i{class t{}return t.__NG_ELEMENT_ID__=q_e,t})();const W_e=Ki,G_e=class extends W_e{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n,e){const i=this._declarationTContainer.tView,r=Aw(this._declarationLView,i,n,16,null,i.declTNode,null,null,null,null,e||null);r[Z0]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[Ah];return null!==s&&(r[Ah]=s.createEmbeddedView(i)),vA(i,r,n),new _1(r)}};function q_e(){return Uw(Va(),dn())}function Uw(t,n){return 4&t.type?new G_e(n,t,Sm(t,n)):null}let gl=(()=>{class t{}return t.__NG_ELEMENT_ID__=X_e,t})();function X_e(){return J8(Va(),dn())}const Y_e=gl,Y8=class extends Y_e{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Sm(this._hostTNode,this._hostLView)}get injector(){return new pm(this._hostTNode,this._hostLView)}get parentInjector(){const n=ST(this._hostTNode,this._hostLView);if(iP(n)){const e=aw(n,this._hostLView),i=sw(n);return new pm(e[ri].data[i+8],e)}return new pm(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=K8(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-El}createEmbeddedView(n,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=n.createEmbeddedView(e||{},o);return this.insert(s,r),s}createComponent(n,e,i,r,o){const s=n&&!function s1(t){return"function"==typeof t}(n);let a;if(s)a=e;else{const h=e||{};a=h.index,i=h.injector,r=h.projectableNodes,o=h.environmentInjector||h.ngModuleRef}const l=s?n:new w1(ko(n)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const d=(s?c:this.parentInjector).get(Fh,null);d&&(o=d)}const u=l.create(c,r,void 0,o);return this.insert(u.hostView,a),u}insert(n,e){const i=n._lView,r=i[ri];if(function Nme(t){return Su(t[Es])}(i)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const h=i[Es],d=new Y8(h,h[hl],h[Es]);d.detach(d.indexOf(n))}}const o=this._adjustIndex(e),s=this._lContainer;!function Zve(t,n,e,i){const r=El+i,o=e.length;i>0&&(e[r-1][Cu]=n),i0)i.push(s[a/2]);else{const c=o[a+1],u=n[-l];for(let h=El;h{class t{constructor(e){this.appInits=e,this.resolve=Gw,this.reject=Gw,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Et(qw,8))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const O1=new hi("AppId",{providedIn:"root",factory:function _6(){return`${sE()}${sE()}${sE()}`}});function sE(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const w6=new hi("Platform Initializer"),N1=new hi("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),x6=new hi("AnimationModuleType");let wwe=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const xc=new hi("LocaleId",{providedIn:"root",factory:()=>Fr(xc,Yi.Optional|Yi.SkipSelf)||function xwe(){return typeof $localize<"u"&&$localize.locale||Bm}()});class Swe{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let C6=(()=>{class t{compileModuleSync(e){return new zA(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=Id(pc(e).declarations).reduce((s,a)=>{const l=ko(a);return l&&s.push(new w1(l)),s},[]);return new Swe(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Twe=(()=>Promise.resolve(0))();function aE(t){typeof Zone>"u"?Twe.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class br{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new vt(!1),this.onMicrotaskEmpty=new vt(!1),this.onStable=new vt(!1),this.onError=new vt(!1),typeof Zone>"u")throw new on(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function Awe(){let t=is.requestAnimationFrame,n=is.cancelAnimationFrame;if(typeof Zone<"u"&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function Iwe(t){const n=()=>{!function Mwe(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(is,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,cE(t),t.isCheckStableRunning=!0,lE(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),cE(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return D6(t),e.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&n(),T6(t)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return D6(t),e.invoke(r,o,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),T6(t)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,cE(t),lE(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!br.isInAngularZone())throw new on(909,!1)}static assertNotInAngularZone(){if(br.isInAngularZone())throw new on(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,n,Ewe,Gw,Gw);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const Ewe={};function lE(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function cE(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function D6(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function T6(t){t._nesting--,lE(t)}class Fwe{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new vt,this.onMicrotaskEmpty=new vt,this.onStable=new vt,this.onError=new vt}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}}const A6=new hi(""),Yw=new hi("");let dE,uE=(()=>{class t{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,dE||(function Lwe(t){dE=t}(r),r.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{br.assertNotInAngularZone(),aE(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())aE(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}}return t.\u0275fac=function(e){return new(e||t)(Et(br),Et(hE),Et(Yw))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})(),hE=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return dE?.findTestabilityInTree(this,e,i)??null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const Od=!1;let _f=null;const E6=new hi("AllowMultipleToken"),fE=new hi("PlatformDestroyListeners"),M6=new hi("appBootstrapListener");class I6{constructor(n,e){this.name=n,this.token=e}}function L6(t,n,e=[]){const i=`Platform: ${n}`,r=new hi(i);return(o=[])=>{let s=pE();if(!s||s.injector.get(E6,!1)){const a=[...e,...o,{provide:r,useValue:!0}];t?t(a):function Rwe(t){if(_f&&!_f.get(E6,!1))throw new on(400,!1);_f=t;const n=t.get(N6);(function F6(t){const n=t.get(w6,null);n&&n.forEach(e=>e())})(t)}(function O6(t=[],n){return ea.create({name:n,providers:[{provide:oA,useValue:"platform"},{provide:fE,useValue:new Set([()=>_f=null])},...t]})}(a,i))}return function Pwe(t){const n=pE();if(!n)throw new on(401,!1);return n}()}}function pE(){return _f?.get(N6)??null}let N6=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function $6(t,n){let e;return e="noop"===t?new Fwe:("zone.js"===t?void 0:t)||new br(n),e}(i?.ngZone,function R6(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:br,useValue:r}];return r.run(()=>{const s=ea.create({providers:o,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(km,null);if(!l)throw new on(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{Kw(this._modules,a),c.unsubscribe()})}),function P6(t,n,e){try{const i=e();return C1(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(l,r,()=>{const c=a.injector.get(Xw);return c.runInitializers(),c.donePromise.then(()=>(function u8(t){Vc(t,"Expected localeId to be defined"),"string"==typeof t&&(c8=t.toLowerCase().replace(/_/g,"-"))}(a.injector.get(xc,Bm)||Bm),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=j6({},i);return function Owe(t,n,e){const i=new zA(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(Lu);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new on(-403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new on(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(fE,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(Et(ea))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function j6(t,n){return Array.isArray(n)?n.reduce(j6,t):{...t,...n}}let Lu=(()=>{class t{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(e,i,r){this._zone=e,this._injector=i,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new P(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new P(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{br.assertNotInAngularZone(),aE(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{br.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=Lt(o,s.pipe(dt()))}bootstrap(e,i){const r=e instanceof bj;if(!this._injector.get(Xw).done){!r&&function sm(t){const n=ko(t)||ul(t)||Al(t);return null!==n&&n.standalone}(e);throw new on(405,Od)}let s;s=r?e:this._injector.get(Gc).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function Nwe(t){return t.isBoundToModule}(s)?void 0:this._injector.get(Vm),c=s.create(ea.NULL,[],i||s.selector,a),u=c.location.nativeElement,h=c.injector.get(A6,null);return h?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Kw(this.components,c),h?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new on(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Kw(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(M6,[]);i.push(...this._bootstrapListeners),i.forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Kw(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new on(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return t.\u0275fac=function(e){return new(e||t)(Et(br),Et(Fh),Et(km))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Kw(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let hs=(()=>{class t{}return t.__NG_ELEMENT_ID__=Bwe,t})();function Bwe(t){return function Hwe(t,n,e){if(t1(t)&&!e){const i=vc(t.index,n);return new _1(i,i)}return 47&t.type?new _1(n[dl],n):null}(Va(),dn(),16==(16&t))}class U6{constructor(){}supports(n){return Ow(n)}create(n){return new qwe(n)}}const Gwe=(t,n)=>n;class qwe{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||Gwe}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const s=!i||e&&e.currentIndex{s=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,r){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new Xwe(e,i),o,r),n}_verifyReinsertion(n,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,o=n._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const r=null===e?this._itHead:e._next;return n._next=r,n._prev=e,null===r?this._itTail=n:r._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new W6),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new W6),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class Xwe{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Ywe{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class W6{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new Ywe,this.map.set(e,i)),i.add(n)}get(n,e){const r=this.map.get(n);return r?r.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function G6(t,n,e){const i=t.previousIndex;if(null===i)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const r=this._records.get(n);this._maybeAddToChanges(r,e);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new Jwe(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class Jwe{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function X6(){return new Zw([new U6])}let Zw=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||X6()),deps:[[t,new c1,new l1]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new on(901,!1)}}return t.\u0275prov=Yt({token:t,providedIn:"root",factory:X6}),t})();function Y6(){return new R1([new q6])}let R1=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Y6()),deps:[[t,new c1,new l1]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new on(901,!1)}}return t.\u0275prov=Yt({token:t,providedIn:"root",factory:Y6}),t})();const exe=L6(null,"core",[]);let txe=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(Et(Lu))},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({}),t})();function Gm(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}let bE=null;function Nd(){return bE}class rxe{}const no=new hi("DocumentToken");let _E=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:function(){return function oxe(){return Et(K6)}()},providedIn:"platform"}),t})();const sxe=new hi("Location Initialized");let K6=(()=>{class t extends _E{constructor(e){super(),this._doc=e,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Nd().getBaseHref(this._doc)}onPopState(e){const i=Nd().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Nd().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,r){J6()?this._history.pushState(e,i,r):this._location.hash=r}replaceState(e,i,r){J6()?this._history.replaceState(e,i,r):this._location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(Et(no))},t.\u0275prov=Yt({token:t,factory:function(){return function axe(){return new K6(Et(no))}()},providedIn:"platform"}),t})();function J6(){return!!window.history.pushState}function wE(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function Q6(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Rd(t){return t&&"?"!==t[0]?"?"+t:t}let zp=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:function(){return Fr(eB)},providedIn:"root"}),t})();const Z6=new hi("appBaseHref");let eB=(()=>{class t extends zp{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??Fr(no).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return wE(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Rd(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+Rd(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+Rd(o));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(Et(_E),Et(Z6,8))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),lxe=(()=>{class t extends zp{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=wE(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+Rd(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+Rd(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(Et(_E),Et(Z6,8))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})(),xE=(()=>{class t{constructor(e){this._subject=new vt,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function hxe(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(Q6(tB(i))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Rd(i))}normalize(e){return t.stripTrailingSlash(function uxe(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,tB(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Rd(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Rd(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return t.normalizeQueryParams=Rd,t.joinWithSlash=wE,t.stripTrailingSlash=Q6,t.\u0275fac=function(e){return new(e||t)(Et(zp))},t.\u0275prov=Yt({token:t,factory:function(){return function cxe(){return new xE(Et(zp))}()},providedIn:"root"}),t})();function tB(t){return t.replace(/\/index.html$/,"")}function fB(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}const LE=/\s+/,pB=[];let Pd=(()=>{class t{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this.initialClasses=pB,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(LE):pB}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(LE):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,Boolean(e[i]));this._applyStateDiff()}_updateState(e,i){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(LE).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return t.\u0275fac=function(e){return new(e||t)(Ae(Zw),Ae(R1),Ae(xi),Ae(Hs))},t.\u0275dir=bn({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),t})();class Wxe{constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let ti=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new Wxe(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),vB(a,r)}});for(let r=0,o=i.length;r{vB(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(Ae(gl),Ae(Ki),Ae(Zw))},t.\u0275dir=bn({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function vB(t,n){t.context.$implicit=n.item}let Nn=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new qxe,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){yB("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){yB("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(Ae(gl),Ae(Ki))},t.\u0275dir=bn({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class qxe{constructor(){this.$implicit=null,this.ngIf=null}}function yB(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Bn(n)}'.`)}class OE{constructor(n,e){this._viewContainerRef=n,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let cx=(()=>{class t{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const i of this._defaultViews)i.enforceState(e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=bn({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),t})(),bB=(()=>{class t{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new OE(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(Ae(gl),Ae(Ki),Ae(cx,9))},t.\u0275dir=bn({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),t})(),wB=(()=>{class t{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[r,o]=e.split("."),s=-1===r.indexOf("-")?void 0:Jl.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${i}${o}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,r,s)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(Ae(xi),Ae(R1),Ae(Hs))},t.\u0275dir=bn({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),t})(),Nl=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:o,ngTemplateOutletInjector:s}=this;this._viewRef=i.createEmbeddedView(r,o,s?{injector:s}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(Ae(gl))},t.\u0275dir=bn({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[ui]}),t})(),ia=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({}),t})();const SB="browser";let _Ce=(()=>{class t{}return t.\u0275prov=Yt({token:t,providedIn:"root",factory:()=>new wCe(Et(no),window)}),t})();class wCe{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function xCe(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=n)}}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=DB(this.window.history)||DB(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function DB(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class TB{}class YCe extends rxe{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class jE extends YCe{static makeCurrent(){!function ixe(t){bE||(bE=t)}(new jE)}onAndCancel(n,e,i){return n.addEventListener(e,i,!1),()=>{n.removeEventListener(e,i,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function KCe(){return B1=B1||document.querySelector("base"),B1?B1.getAttribute("href"):null}();return null==e?null:function JCe(t){dx=dx||document.createElement("a"),dx.setAttribute("href",t);const n=dx.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){B1=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return fB(document.cookie,n)}}let dx,B1=null;const FB=new hi("TRANSITION_ID"),ZCe=[{provide:qw,useFactory:function QCe(t,n,e){return()=>{e.get(Xw).donePromise.then(()=>{const i=Nd(),r=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let o=0;o{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})();const fx=new hi("EventManagerPlugins");let px=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let o=0;o{class t{constructor(){this.usageCount=new Map}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)0===this.changeUsageCount(i,-1)&&this.onStyleRemoved(i)}onStyleRemoved(e){}onStyleAdded(e){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(e,i){const r=this.usageCount;let o=r.get(e)??0;return o+=i,o>0?r.set(e,o):r.delete(e),o}ngOnDestroy(){for(const e of this.getAllStyles())this.onStyleRemoved(e);this.usageCount.clear()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})(),H1=(()=>{class t extends OB{constructor(e){super(),this.doc=e,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.forEach(o=>o.remove()),i.delete(e)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}addStyleToHost(e,i){const r=this.doc.createElement("style");r.textContent=i,e.appendChild(r);const o=this.styleRef.get(i);o?o.push(r):this.styleRef.set(i,[r])}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}}return t.\u0275fac=function(e){return new(e||t)(Et(no))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})();const BE={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},HE=/%COMP%/g,$B=new hi("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function PB(t,n){return n.flat(100).map(e=>e.replace(HE,t))}function jB(t){return n=>{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let gx=(()=>{class t{constructor(e,i,r,o){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestory=o,this.rendererByCompId=new Map,this.defaultRenderer=new VE(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;const r=this.getOrCreateRenderer(e,i);return r instanceof VB?r.applyToHost(e):r instanceof zE&&r.applyStyles(),r}getOrCreateRenderer(e,i){const r=this.rendererByCompId;let o=r.get(i.id);if(!o){const s=this.eventManager,a=this.sharedStylesHost,l=this.removeStylesOnCompDestory;switch(i.encapsulation){case xu.Emulated:o=new VB(s,a,i,this.appId,l);break;case xu.ShadowDom:return new lSe(s,a,e,i);default:o=new zE(s,a,i,l)}o.onDestroy=()=>r.delete(i.id),r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(Et(px),Et(H1),Et(O1),Et($B))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})();class VE{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(BE[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){(HB(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(HB(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;const o=BE[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const r=BE[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(Jl.DashCase|Jl.Important)?n.style.setProperty(e,i,r&Jl.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&Jl.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,jB(i)):this.eventManager.addEventListener(n,e,jB(i))}}function HB(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class lSe extends VE{constructor(n,e,i,r){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=PB(r.id,r.styles);for(const s of o){const a=document.createElement("style");a.textContent=s,this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class zE extends VE{constructor(n,e,i,r,o=i.id){super(n),this.sharedStylesHost=e,this.removeStylesOnCompDestory=r,this.rendererUsageCount=0,this.styles=PB(o,i.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class VB extends zE{constructor(n,e,i,r,o){const s=r+"-"+i.id;super(n,e,i,o,s),this.contentAttr=function oSe(t){return"_ngcontent-%COMP%".replace(HE,t)}(s),this.hostAttr=function sSe(t){return"_nghost-%COMP%".replace(HE,t)}(s)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}let cSe=(()=>{class t extends LB{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return t.\u0275fac=function(e){return new(e||t)(Et(no))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})();const zB=["alt","control","meta","shift"],uSe={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},hSe={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let dSe=(()=>{class t extends LB{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,r){const o=t.parseEventName(i),s=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Nd().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=t._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),zB.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),s+=c+".")}),s+=o,0!=i.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(e,i){let r=uSe[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),zB.forEach(s=>{s!==r&&(0,hSe[s])(e)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(Et(no))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})();const WB=[{provide:N1,useValue:SB},{provide:w6,useValue:function fSe(){jE.makeCurrent()},multi:!0},{provide:no,useFactory:function gSe(){return function d0e(t){JT=t}(document),document},deps:[]}],mSe=L6(exe,"browser",WB),GB=new hi(""),qB=[{provide:Yw,useClass:class eSe{addToWindow(n){is.getAngularTestability=(i,r=!0)=>{const o=n.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},is.getAllAngularTestabilities=()=>n.getAllTestabilities(),is.getAllAngularRootElements=()=>n.getAllRootElements(),is.frameworkStabilizers||(is.frameworkStabilizers=[]),is.frameworkStabilizers.push(i=>{const r=is.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,e,i){return null==e?null:n.getTestability(e)??(i?Nd().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:A6,useClass:uE,deps:[br,hE,Yw]},{provide:uE,useClass:uE,deps:[br,hE,Yw]}],XB=[{provide:oA,useValue:"root"},{provide:km,useFactory:function pSe(){return new km},deps:[]},{provide:fx,useClass:cSe,multi:!0,deps:[no,br,N1]},{provide:fx,useClass:dSe,multi:!0,deps:[no]},{provide:gx,useClass:gx,deps:[px,H1,O1,$B]},{provide:$p,useExisting:gx},{provide:OB,useExisting:H1},{provide:H1,useClass:H1,deps:[no]},{provide:px,useClass:px,deps:[fx,br]},{provide:TB,useClass:tSe,deps:[]},[]];let WE=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:O1,useValue:e.appId},{provide:FB,useExisting:O1},ZCe]}}}return t.\u0275fac=function(e){return new(e||t)(Et(GB,12))},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({providers:[...XB,...qB],imports:[ia,txe]}),t})(),YB=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return t.\u0275fac=function(e){return new(e||t)(Et(no))},t.\u0275prov=Yt({token:t,factory:function(e){let i=null;return i=e?new e:function ySe(){return new YB(Et(no))}(),i},providedIn:"root"}),t})();typeof window<"u"&&window;let QB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:function(e){let i=null;return i=e?new(e||t):Et(ZB),i},providedIn:"root"}),t})(),ZB=(()=>{class t extends QB{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case zo.NONE:return i;case zo.HTML:return Ih(i,"HTML")?bc(i):lj(this._doc,String(i)).toString();case zo.STYLE:return Ih(i,"Style")?bc(i):i;case zo.SCRIPT:if(Ih(i,"Script"))return bc(i);throw new Error("unsafe value used in a script context");case zo.URL:return Ih(i,"URL")?bc(i):_w(String(i));case zo.RESOURCE_URL:if(Ih(i,"ResourceURL"))return bc(i);throw new Error(`unsafe value used in a resource URL context (see ${V_})`);default:throw new Error(`Unexpected SecurityContext ${e} (see ${V_})`)}}bypassSecurityTrustHtml(e){return function b0e(t){return new f0e(t)}(e)}bypassSecurityTrustStyle(e){return function _0e(t){return new p0e(t)}(e)}bypassSecurityTrustScript(e){return function w0e(t){return new g0e(t)}(e)}bypassSecurityTrustUrl(e){return function x0e(t){return new m0e(t)}(e)}bypassSecurityTrustResourceUrl(e){return function C0e(t){return new v0e(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(Et(no))},t.\u0275prov=Yt({token:t,factory:function(e){let i=null;return i=e?new e:function CSe(t){return new ZB(t.get(no))}(Et(ea)),i},providedIn:"root"}),t})();function V1(t){return(V1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function be(t,n,e){return(n=function kSe(t){var n=function SSe(t,n){if("object"!==V1(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,n||"default");if("object"!==V1(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"===V1(n)?n:String(n)}(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}class e7{}class DSe{}const jd="*";function ml(t,n){return{type:7,name:t,definitions:n,options:{}}}function Ua(t,n=null){return{type:4,styles:n,timings:t}}function t7(t,n=null){return{type:2,steps:t,options:n}}function Jr(t){return{type:6,styles:t,offset:null}}function Wa(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function n7(t){Promise.resolve().then(t)}class z1{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){n7(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class i7{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,r=0;const o=this.players.length;0==o?n7(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const qE="!";function r7(t){return new on(3e3,!1)}function a2e(){return typeof window<"u"&&typeof window.document<"u"}function XE(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function xf(t){switch(t.length){case 0:return new z1;case 1:return t[0];default:return new i7(t)}}function o7(t,n,e,i,r=new Map,o=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const h=u.get("offset"),d=h==l,f=d&&c||new Map;u.forEach((p,m)=>{let w=m,C=p;if("offset"!==m)switch(w=n.normalizePropertyName(w,s),C){case qE:C=r.get(m);break;case jd:C=o.get(m);break;default:C=n.normalizeStyleValue(m,w,C,s)}f.set(w,C)}),d||a.push(f),c=f,l=h}),s.length)throw function YSe(t){return new on(3502,!1)}();return a}function YE(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&KE(e,"start",t)));break;case"done":t.onDone(()=>i(e&&KE(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&KE(e,"destroy",t)))}}function KE(t,n,e){const o=JE(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),s=t._data;return null!=s&&(o._data=s),o}function JE(t,n,e,i,r="",o=0,s){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function Cc(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function s7(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}let QE=(t,n)=>!1,a7=(t,n,e)=>[],l7=null;function ZE(t){const n=t.parentNode||t.host;return n===l7?null:n}(XE()||typeof Element<"u")&&(a2e()?(l7=(()=>document.documentElement)(),QE=(t,n)=>{for(;n;){if(n===t)return!0;n=ZE(n)}return!1}):QE=(t,n)=>t.contains(n),a7=(t,n,e)=>{if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]});let Up=null,c7=!1;const u7=QE,h7=a7;let d7=(()=>{class t{validateStyleProperty(e){return function c2e(t){Up||(Up=function u2e(){return typeof document<"u"?document.body:null}()||{},c7=!!Up.style&&"WebkitAppearance"in Up.style);let n=!0;return Up.style&&!function l2e(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Up.style,!n&&c7&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Up.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return u7(e,i)}getParentElement(e){return ZE(e)}query(e,i,r){return h7(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new z1(r,o)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})(),eM=(()=>{class t{}return t.NOOP=new d7,t})();const h2e=1e3,tM="ng-enter",mx="ng-leave",vx="ng-trigger",yx=".ng-trigger",p7="ng-animating",nM=".ng-animating";function Bd(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:iM(parseFloat(n[1]),n[2])}function iM(t,n){return"s"===n?t*h2e:t}function bx(t,n,e){return t.hasOwnProperty("duration")?t:function f2e(t,n,e){let r,o=0,s="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(r7()),{duration:0,delay:0,easing:""};r=iM(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=iM(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=t;if(!e){let a=!1,l=n.length;r<0&&(n.push(function TSe(){return new on(3100,!1)}()),a=!0),o<0&&(n.push(function ASe(){return new on(3101,!1)}()),a=!0),a&&n.splice(l,0,r7())}return{duration:r,delay:o,easing:s}}(t,n,e)}function U1(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function g7(t){const n=new Map;return Object.keys(t).forEach(e=>{n.set(e,t[e])}),n}function Cf(t,n=new Map,e){if(e)for(let[i,r]of e)n.set(i,r);for(let[i,r]of t)n.set(i,r);return n}function v7(t,n,e){return e?n+":"+e+";":""}function y7(t){let n="";for(let e=0;e{const o=oM(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=i}),XE()&&y7(t))}function Wp(t,n){t.style&&(n.forEach((e,i)=>{const r=oM(i);t.style[r]=""}),XE()&&y7(t))}function W1(t){return Array.isArray(t)?1==t.length?t[0]:t7(t):t}const rM=new RegExp("{{\\s*(.+?)\\s*}}","g");function b7(t){let n=[];if("string"==typeof t){let e;for(;e=rM.exec(t);)n.push(e[1]);rM.lastIndex=0}return n}function G1(t,n,e){const i=t.toString(),r=i.replace(rM,(o,s)=>{let a=n[s];return null==a&&(e.push(function MSe(t){return new on(3003,!1)}()),a=""),a.toString()});return r==i?t:r}function _x(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const m2e=/-+([a-z0-9])/g;function oM(t){return t.replace(m2e,(...n)=>n[1].toUpperCase())}function v2e(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Sc(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw function ISe(t){return new on(3004,!1)}()}}function _7(t,n){return window.getComputedStyle(t)[n]}const Cx="*";function C2e(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function S2e(t,n,e){if(":"==t[0]){const l=function k2e(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function USe(t){return new on(3015,!1)}()),n;const r=i[1],o=i[2],s=i[3];n.push(w7(r,s));"<"==o[0]&&!(r==Cx&&s==Cx)&&n.push(w7(s,r))}(i,e,n)):e.push(t),e}const Sx=new Set(["true","1"]),kx=new Set(["false","0"]);function w7(t,n){const e=Sx.has(t)||kx.has(t),i=Sx.has(n)||kx.has(n);return(r,o)=>{let s=t==Cx||t==r,a=n==Cx||n==o;return!s&&e&&"boolean"==typeof r&&(s=r?Sx.has(t):kx.has(t)),!a&&i&&"boolean"==typeof o&&(a=o?Sx.has(n):kx.has(n)),s&&a}}const D2e=new RegExp("s*:selfs*,?","g");function sM(t,n,e,i){return new T2e(t).build(n,e,i)}class T2e{constructor(n){this._driver=n}build(n,e,i){const r=new M2e(e);return this._resetContextStyleTimingState(r),Sc(this,W1(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],s=[];return"@"==n.name.charAt(0)&&e.errors.push(function LSe(){return new on(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,s.push(l)}else e.errors.push(function OSe(){return new on(3007,!1)}())}),{type:7,name:n.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{b7(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(_x(o.values()),e.errors.push(function NSe(t,n){return new on(3008,!1)}()))}return{type:0,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=Sc(this,W1(n.animation),e);return{type:1,matchers:C2e(n.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Gp(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(i=>Sc(this,i,e)),options:Gp(n.options)}}visitGroup(n,e){const i=e.currentTime;let r=0;const o=n.steps.map(s=>{e.currentTime=i;const a=Sc(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:Gp(n.options)}}visitAnimate(n,e){const i=function F2e(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return aM(bx(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=aM(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=bx(e,n);return aM(r.duration,r.delay,r.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let r,o=n.styles?n.styles:Jr({});if(5==o.type)r=this.visitKeyframes(o,e);else{let s=n.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=Jr(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of r)"string"==typeof a?a===jd?i.push(a):e.errors.push(new on(3002,!1)):i.push(g7(a));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:s,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),n.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let h=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(e.errors.push(function $Se(t,n,e,i,r){return new on(3010,!1)}()),h=!1),o=u.startTime),h&&c.set(l,{startTime:o,endTime:r}),e.options&&function g2e(t,n,e){const i=n.params||{},r=b7(t);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function ESe(t){return new on(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function PSe(){return new on(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=n.steps.map(C=>{const k=this._makeStyleAst(C,e);let E=null!=k.offset?k.offset:function I2e(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(k.styles),L=0;return null!=E&&(o++,L=k.offset=E),l=l||L<0||L>1,a=a||L0&&o{const E=d>0?k==f?1:d*k:s[k],L=E*w;e.currentTime=p+m.delay+L,m.duration=L,this._validateStyleAst(C,e),C.offset=E,i.styles.push(C)}),i}visitReference(n,e){return{type:8,animation:Sc(this,W1(n.animation),e),options:Gp(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:Gp(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:Gp(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,r=n.options||{};e.queryCount++,e.currentQuery=n;const[o,s]=function A2e(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(D2e,"")),t=t.replace(/@\*/g,yx).replace(/@\w+/g,e=>yx+"-"+e.slice(1)).replace(/:animating/g,nM),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+o:o,Cc(e.collectedStyles,e.currentQuerySelector,new Map);const a=Sc(this,W1(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:Gp(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function VSe(){return new on(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:bx(n.timings,e.errors,!0);return{type:12,animation:Sc(this,W1(n.animation),e),timings:i,options:null}}}class M2e{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Gp(t){return t?(t=U1(t)).params&&(t.params=function E2e(t){return t?U1(t):null}(t.params)):t={},t}function aM(t,n,e){return{duration:t,delay:n,easing:e}}function lM(t,n,e,i,r,o,s=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class Dx{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const N2e=new RegExp(":enter","g"),$2e=new RegExp(":leave","g");function cM(t,n,e,i,r,o=new Map,s=new Map,a,l,c=[]){return(new P2e).buildKeyframes(t,n,e,i,r,o,s,a,l,c)}class P2e{buildKeyframes(n,e,i,r,o,s,a,l,c,u=[]){c=c||new Dx;const h=new uM(n,e,c,r,o,u,[]);h.options=l;const d=l.delay?Bd(l.delay):0;h.currentTimeline.delayNextStep(d),h.currentTimeline.setStyles([s],null,h.errors,l),Sc(this,i,h);const f=h.timelines.filter(p=>p.containsAnimation());if(f.length&&a.size){let p;for(let m=f.length-1;m>=0;m--){const w=f[m];if(w.element===e){p=w;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,h.errors,l)}return f.length?f.map(p=>p.buildKeyframes()):[lM(e,[],[],[],0,d,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(n.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(const r of n){const o=r?.delay;if(o){const s="number"==typeof o?o:Bd(G1(o,r?.params??{},e.errors));i.delayNextStep(s)}}}_visitSubInstructions(n,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?Bd(i.duration):null,a=null!=i.delay?Bd(i.delay):null;return 0!==s&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(n,e){e.updateOptions(n.options,!0),Sc(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let r=e;const o=n.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Tx);const s=Bd(o.delay);r.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>Sc(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let r=e.currentTimeline.currentTime;const o=n.options&&n.options.delay?Bd(n.options.delay):0;n.steps.forEach(s=>{const a=e.createSubContext(n.options);o&&a.delayNextStep(o),Sc(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return bx(e.params?G1(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=n.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(o):i.setStyles(n.styles,o,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,r=n.options||{},o=r.delay?Bd(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Tx);let s=i;const a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const h=e.createSubContext(n.options,c);o&&h.delayNextStep(o),c===e.element&&(l=h.currentTimeline),Sc(this,n.animation,h),h.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,h.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,r=e.currentTimeline,o=n.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const h=u.currentTime;Sc(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=r.currentTime-h+(r.startTime-i.currentTimeline.startTime)}}const Tx={};class uM{constructor(n,e,i,r,o,s,a,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Tx,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Ax(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let r=this.options;null!=i.duration&&(r.duration=Bd(i.duration)),null!=i.delay&&(r.delay=Bd(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=G1(o[a],s,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return n}createSubContext(n=null,e,i){const r=e||this.element,o=new uM(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=Tx,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const r={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},o=new j2e(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,r,o,s){let a=[];if(r&&a.push(this.element),n.length>0){n=(n=n.replace(N2e,"."+this._enterClassName)).replace($2e,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&0==a.length&&s.push(function zSe(t){return new on(3014,!1)}()),a}}class Ax{constructor(n,e,i,r){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new Ax(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||jd),this._currentKeyframe.set(e,jd);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},s=function B2e(t,n){const e=new Map;let i;return t.forEach(r=>{if("*"===r){i=i||n.keys();for(let o of i)e.set(o,jd)}else Cf(r,e)}),e}(n,this._globalTimelineStyles);for(let[a,l]of s){const c=G1(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??jd),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Cf(a,new Map,this._backFill);c.forEach((u,h)=>{u===qE?n.add(h):u===jd&&e.add(h)}),i||c.set("offset",l/this.duration),r.push(c)});const o=n.size?_x(n.values()):[],s=e.size?_x(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return lM(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class j2e extends Ax{constructor(n,e,i,r,o,s,a=!1){super(n,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,l=Cf(n[0]);l.set("offset",0),o.push(l);const c=Cf(n[0]);c.set("offset",S7(a)),o.push(c);const u=n.length-1;for(let h=1;h<=u;h++){let d=Cf(n[h]);const f=d.get("offset");d.set("offset",S7((e+f*i)/s)),o.push(d)}i=s,e=0,r="",n=o}return lM(this.element,n,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function S7(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class hM{}const H2e=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class V2e extends hM{normalizePropertyName(n,e){return oM(n)}normalizeStyleValue(n,e,i,r){let o="";const s=i.toString().trim();if(H2e.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function FSe(t,n){return new on(3005,!1)}())}return s+o}}function k7(t,n,e,i,r,o,s,a,l,c,u,h,d){return{type:0,element:t,triggerName:n,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const dM={};class D7{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,r){return function z2e(t,n,e,i,r){return t.some(o=>o(n,e,i,r))}(this.ast.matchers,n,e,i,r)}buildStyles(n,e,i){let r=this._stateStyles.get("*");return void 0!==n&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(e,i):new Map}build(n,e,i,r,o,s,a,l,c,u){const h=[],d=this.ast.options&&this.ast.options.params||dM,p=this.buildStyles(i,a&&a.params||dM,h),m=l&&l.params||dM,w=this.buildStyles(r,m,h),C=new Set,k=new Map,E=new Map,L="void"===r,B={params:U2e(m,d),delay:this.ast.options?.delay},G=u?[]:cM(n,e,this.ast.animation,o,s,p,w,B,c,h);let oe=0;if(G.forEach(re=>{oe=Math.max(re.duration+re.delay,oe)}),h.length)return k7(e,this._triggerName,i,r,L,p,w,[],[],k,E,oe,h);G.forEach(re=>{const ce=re.element,ue=Cc(k,ce,new Set);re.preStyleProps.forEach(De=>ue.add(De));const pe=Cc(E,ce,new Set);re.postStyleProps.forEach(De=>pe.add(De)),ce!==e&&C.add(ce)});const fe=_x(C.values());return k7(e,this._triggerName,i,r,L,p,w,G,fe,k,E,oe)}}function U2e(t,n){const e=U1(n);for(const i in t)t.hasOwnProperty(i)&&null!=t[i]&&(e[i]=t[i]);return e}class W2e{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,r=U1(this.defaultParams);return Object.keys(n).forEach(o=>{const s=n[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=G1(s,r,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(a,s)})}),i}}class q2e{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new W2e(r.style,r.options&&r.options.params||{},i))}),T7(this.states,"true","1"),T7(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new D7(n,r,this.states))}),this.fallbackTransition=function X2e(t,n,e){return new D7(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,r){return this.transitionFactories.find(s=>s.match(n,e,i,r))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function T7(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const Y2e=new Dx;class K2e{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const i=[],r=[],o=sM(this._driver,e,i,r);if(i.length)throw function KSe(t){return new on(3503,!1)}();this._animations.set(n,o)}_buildPlayer(n,e,i){const r=n.element,o=o7(0,this._normalizer,0,n.keyframes,e,i);return this._driver.animate(r,o,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const r=[],o=this._animations.get(n);let s;const a=new Map;if(o?(s=cM(this._driver,e,o,tM,mx,new Map,new Map,i,Y2e,r),s.forEach(u=>{const h=Cc(a,u.element,new Map);u.postStyleProps.forEach(d=>h.set(d,null))})):(r.push(function JSe(){return new on(3300,!1)}()),s=[]),r.length)throw function QSe(t){return new on(3504,!1)}();a.forEach((u,h)=>{u.forEach((d,f)=>{u.set(f,this._driver.computeStyle(h,f,jd))})});const c=xf(s.map(u=>{const h=a.get(u.element);return this._buildPlayer(u,new Map,h)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function ZSe(t){return new on(3301,!1)}();return e}listen(n,e,i,r){const o=JE(e,"","","");return YE(this._getPlayer(n),i,o,r),()=>{}}command(n,e,i,r){if("register"==i)return void this.register(n,r[0]);if("create"==i)return void this.create(n,e,r[0]||{});const o=this._getPlayer(n);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n)}}}const A7="ng-animate-queued",fM="ng-animate-disabled",tke=[],E7={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},nke={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Kc="__ng_removed";class pM{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function ske(t){return t??null}(i?n.value:n),i){const o=U1(n);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const q1="void",gM=new pM(q1);class ike{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,Jc(e,this._hostClassName)}listen(n,e,i,r){if(!this._triggers.has(e))throw function e2e(t,n){return new on(3302,!1)}();if(null==i||0==i.length)throw function t2e(t){return new on(3303,!1)}();if(!function ake(t){return"start"==t||"done"==t}(i))throw function n2e(t,n){return new on(3400,!1)}();const o=Cc(this._elementListeners,n,[]),s={name:e,phase:i,callback:r};o.push(s);const a=Cc(this._engine.statesByElement,n,new Map);return a.has(e)||(Jc(n,vx),Jc(n,vx+"-"+e),a.set(e,gM)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function i2e(t){return new on(3401,!1)}();return e}trigger(n,e,i,r=!0){const o=this._getTrigger(e),s=new mM(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(Jc(n,vx),Jc(n,vx+"-"+e),this._engine.statesByElement.set(n,a=new Map));let l=a.get(e);const c=new pM(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=gM),c.value!==q1&&l.value===c.value){if(!function uke(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let r=0;r{Wp(n,w),Ph(n,C)})}return}const d=Cc(this._engine.playersByElement,n,[]);d.forEach(m=>{m.namespaceId==this.id&&m.triggerName==e&&m.queued&&m.destroy()});let f=o.matchTransition(l.value,c.value,n,c.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:p}),p||(Jc(n,A7),s.onStart(()=>{qm(n,A7)})),s.onDone(()=>{let m=this.players.indexOf(s);m>=0&&this.players.splice(m,1);const w=this._engine.playersByElement.get(n);if(w){let C=w.indexOf(s);C>=0&&w.splice(C,1)}}),this.players.push(s),d.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,yx,!0);i.forEach(r=>{if(r[Kc])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,e,i,r){const o=this._engine.statesByElement.get(n),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(n,c,q1,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,s),i&&xf(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const r=new Set;e.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||gM,u=new pM(q1),h=new mM(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:l,fromState:c,toState:u,player:h,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(n):[];if(o&&o.length)r=!0;else{let s=n;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,e);else{const o=n[Kc];(!o||o===E7)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){Jc(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=JE(o,i.triggerName,i.fromState.value,i.toState.value);l._data=n,YE(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}elementContainsData(n){let e=!1;return this._elementListeners.has(n)&&(e=!0),e=!!this._queue.find(i=>i.element===n)||e,e}}class rke{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new ike(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(n)}else i.push(n);return r.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let r=this._namespaceLookup[n];r&&r.register(e,i)&&this.totalAnimations++}destroy(n,e){if(!n)return;const i=this._fetchNamespace(n);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[n];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(n,e,i,r){if(Ex(e)){const o=this._fetchNamespace(n);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(n,e,i,r){if(!Ex(e))return;const o=e[Kc];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){const s=this._fetchNamespace(n);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Jc(n,fM)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),qm(n,fM))}removeNode(n,e,i,r){if(Ex(e)){const o=n?this._fetchNamespace(n):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(n,e,!1,r),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==n&&s.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(n,e,i,r,o){this.collectedLeaveElements.push(e),e[Kc]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,e,i,r,o){return Ex(e)?this._fetchNamespace(n).listen(e,i,r,o):()=>{}}_buildInstruction(n,e,i,r,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,e,o)}destroyInnerAnimations(n){let e=this.driver.query(n,yx,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,nM,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return xf(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[Kc];if(e&&e.setForRemoval){if(n[Kc]=E7,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(fM)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?xf(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw function r2e(t){return new on(3402,!1)}()}_flushAnimations(n,e){const i=new Dx,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(we=>{u.add(we);const le=this.driver.query(we,".ng-animate-queued",!0);for(let Fe=0;Fe{const Fe=tM+m++;p.set(le,Fe),we.forEach(z=>Jc(z,Fe))});const w=[],C=new Set,k=new Set;for(let we=0;weC.add(z)):k.add(le))}const E=new Map,L=F7(d,Array.from(C));L.forEach((we,le)=>{const Fe=mx+m++;E.set(le,Fe),we.forEach(z=>Jc(z,Fe))}),n.push(()=>{f.forEach((we,le)=>{const Fe=p.get(le);we.forEach(z=>qm(z,Fe))}),L.forEach((we,le)=>{const Fe=E.get(le);we.forEach(z=>qm(z,Fe))}),w.forEach(we=>{this.processLeaveNode(we)})});const B=[],G=[];for(let we=this._namespaceList.length-1;we>=0;we--)this._namespaceList[we].drainQueuedTransitions(e).forEach(Fe=>{const z=Fe.player,Q=Fe.element;if(B.push(z),this.collectedEnterElements.length){const Ve=Q[Kc];if(Ve&&Ve.setForMove){if(Ve.previousTriggersValues&&Ve.previousTriggersValues.has(Fe.triggerName)){const wt=Ve.previousTriggersValues.get(Fe.triggerName),ct=this.statesByElement.get(Fe.element);if(ct&&ct.has(Fe.triggerName)){const Ct=ct.get(Fe.triggerName);Ct.value=wt,ct.set(Fe.triggerName,Ct)}}return void z.destroy()}}const Z=!h||!this.driver.containsElement(h,Q),me=E.get(Q),ae=p.get(Q),Te=this._buildInstruction(Fe,i,ae,me,Z);if(Te.errors&&Te.errors.length)return void G.push(Te);if(Z)return z.onStart(()=>Wp(Q,Te.fromStyles)),z.onDestroy(()=>Ph(Q,Te.toStyles)),void r.push(z);if(Fe.isFallbackTransition)return z.onStart(()=>Wp(Q,Te.fromStyles)),z.onDestroy(()=>Ph(Q,Te.toStyles)),void r.push(z);const Oe=[];Te.timelines.forEach(Ve=>{Ve.stretchStartingKeyframe=!0,this.disabledNodes.has(Ve.element)||Oe.push(Ve)}),Te.timelines=Oe,i.append(Q,Te.timelines),s.push({instruction:Te,player:z,element:Q}),Te.queriedElements.forEach(Ve=>Cc(a,Ve,[]).push(z)),Te.preStyleProps.forEach((Ve,wt)=>{if(Ve.size){let ct=l.get(wt);ct||l.set(wt,ct=new Set),Ve.forEach((Ct,se)=>ct.add(se))}}),Te.postStyleProps.forEach((Ve,wt)=>{let ct=c.get(wt);ct||c.set(wt,ct=new Set),Ve.forEach((Ct,se)=>ct.add(se))})});if(G.length){const we=[];G.forEach(le=>{we.push(function o2e(t,n){return new on(3505,!1)}())}),B.forEach(le=>le.destroy()),this.reportError(we)}const oe=new Map,fe=new Map;s.forEach(we=>{const le=we.element;i.has(le)&&(fe.set(le,le),this._beforeAnimationBuild(we.player.namespaceId,we.instruction,oe))}),r.forEach(we=>{const le=we.element;this._getPreviousPlayers(le,!1,we.namespaceId,we.triggerName,null).forEach(z=>{Cc(oe,le,[]).push(z),z.destroy()})});const re=w.filter(we=>O7(we,l,c)),ce=new Map;I7(ce,this.driver,k,c,jd).forEach(we=>{O7(we,l,c)&&re.push(we)});const pe=new Map;f.forEach((we,le)=>{I7(pe,this.driver,new Set(we),l,qE)}),re.forEach(we=>{const le=ce.get(we),Fe=pe.get(we);ce.set(we,new Map([...Array.from(le?.entries()??[]),...Array.from(Fe?.entries()??[])]))});const De=[],ie=[],ge={};s.forEach(we=>{const{element:le,player:Fe,instruction:z}=we;if(i.has(le)){if(u.has(le))return Fe.onDestroy(()=>Ph(le,z.toStyles)),Fe.disabled=!0,Fe.overrideTotalTime(z.totalTime),void r.push(Fe);let Q=ge;if(fe.size>1){let me=le;const ae=[];for(;me=me.parentNode;){const Te=fe.get(me);if(Te){Q=Te;break}ae.push(me)}ae.forEach(Te=>fe.set(Te,Q))}const Z=this._buildAnimation(Fe.namespaceId,z,oe,o,pe,ce);if(Fe.setRealPlayer(Z),Q===ge)De.push(Fe);else{const me=this.playersByElement.get(Q);me&&me.length&&(Fe.parentPlayer=xf(me)),r.push(Fe)}}else Wp(le,z.fromStyles),Fe.onDestroy(()=>Ph(le,z.toStyles)),ie.push(Fe),u.has(le)&&r.push(Fe)}),ie.forEach(we=>{const le=o.get(we.element);if(le&&le.length){const Fe=xf(le);we.setRealPlayer(Fe)}}),r.forEach(we=>{we.parentPlayer?we.syncPlayerEvents(we.parentPlayer):we.destroy()});for(let we=0;we!Z.destroyed);Q.length?lke(this,le,Q):this.processLeaveNode(le)}return w.length=0,De.forEach(we=>{this.players.push(we),we.onDone(()=>{we.destroy();const le=this.players.indexOf(we);this.players.splice(le,1)}),we.play()}),De}elementContainsData(n,e){let i=!1;const r=e[Kc];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(n).elementContainsData(e)||i}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,r,o){let s=[];if(e){const a=this.playersByQueriedElement.get(n);a&&(s=a)}else{const a=this.playersByElement.get(n);if(a){const l=!o||o==q1;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(n,e,i){const o=e.element,s=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==o,h=Cc(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),h.push(f)})}Wp(o,e.fromStyles)}_buildAnimation(n,e,i,r,o,s){const a=e.triggerName,l=e.element,c=[],u=new Set,h=new Set,d=e.timelines.map(p=>{const m=p.element;u.add(m);const w=m[Kc];if(w&&w.removedBeforeQueried)return new z1(p.duration,p.delay);const C=m!==l,k=function cke(t){const n=[];return L7(t,n),n}((i.get(m)||tke).map(oe=>oe.getRealPlayer())).filter(oe=>!!oe.element&&oe.element===m),E=o.get(m),L=s.get(m),B=o7(0,this._normalizer,0,p.keyframes,E,L),G=this._buildPlayer(p,B,k);if(p.subTimeline&&r&&h.add(m),C){const oe=new mM(n,a,m);oe.setRealPlayer(G),c.push(oe)}return G});c.forEach(p=>{Cc(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function oke(t,n,e){let i=t.get(n);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>Jc(p,p7));const f=xf(d);return f.onDestroy(()=>{u.forEach(p=>qm(p,p7)),Ph(l,e.toStyles)}),h.forEach(p=>{Cc(r,p,[]).push(f)}),f}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new z1(n.duration,n.delay)}}class mM{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new z1,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>YE(n,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){Cc(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function Ex(t){return t&&1===t.nodeType}function M7(t,n){const e=t.style.display;return t.style.display=n??"none",e}function I7(t,n,e,i,r){const o=[];e.forEach(l=>o.push(M7(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(h=>{const d=n.computeStyle(c,h,r);u.set(h,d),(!d||0==d.length)&&(c[Kc]=nke,s.push(c))}),t.set(c,u)});let a=0;return e.forEach(l=>M7(l,o[a++])),s}function F7(t,n){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==n.length)return e;const i=1,r=new Set(n),o=new Map;function s(a){if(!a)return i;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?i:s(c),o.set(a,l),l}return n.forEach(a=>{const l=s(a);l!==i&&e.get(l).push(a)}),e}function Jc(t,n){t.classList?.add(n)}function qm(t,n){t.classList?.remove(n)}function lke(t,n,e){xf(e).onDone(()=>t.processLeaveNode(n))}function L7(t,n){for(let e=0;er.add(o)):n.set(t,i),e.delete(t),!0}class Mx{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new rke(n,e,i),this._timelineEngine=new K2e(n,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(n,e,i,r,o){const s=n+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],c=[],u=sM(this._driver,o,l,c);if(l.length)throw function XSe(t,n){return new on(3404,!1)}();a=function G2e(t,n,e){return new q2e(t,n,e)}(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,r){this._transitionEngine.insertNode(n,e,i,r)}onRemove(n,e,i,r){this._transitionEngine.removeNode(n,e,r||!1,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,r){if("@"==i.charAt(0)){const[o,s]=s7(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(n,e,i,r)}listen(n,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=s7(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(n,e,i,r,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let dke=(()=>{class t{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=t.initialStylesByElement.get(e);o||t.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Ph(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ph(this._element,this._initialStyles),this._endStyles&&(Ph(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Wp(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Wp(this._element,this._endStyles),this._endStyles=null),Ph(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function vM(t){let n=null;return t.forEach((e,i)=>{(function fke(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class N7{constructor(n,e,i,r){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&n.set(r,this._finished?i:_7(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class pke{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return u7(n,e)}getParentElement(n){return ZE(n)}query(n,e,i){return h7(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}animate(n,e,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,u=s.filter(f=>f instanceof N7);(function y2e(t,n){return 0===t||0===n})(i,r)&&u.forEach(f=>{f.currentSnapshot.forEach((p,m)=>c.set(m,p))});let h=function p2e(t){return t.length?t[0]instanceof Map?t:t.map(n=>g7(n)):[]}(e).map(f=>Cf(f));h=function b2e(t,n,e){if(e.size&&n.length){let i=n[0],r=[];if(e.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,_7(t,a)))}}return n}(n,h,c);const d=function hke(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=vM(n[0]),n.length>1&&(i=vM(n[n.length-1]))):n instanceof Map&&(e=vM(n)),e||i?new dke(t,e,i):null}(n,h);return new N7(n,h,l,d)}}let gke=(()=>{class t extends e7{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:xu.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?t7(e):e;return R7(this._renderer,null,i,"register",[r]),new mke(i,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(Et($p),Et(no))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})();class mke extends DSe{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new vke(this._id,n,e||{},this._renderer)}}class vke{constructor(n,e,i,r){this.id=n,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return R7(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function R7(t,n,e,i,r){return t.setProperty(n,`@@${e}:${i}`,r)}const $7="@.disabled";let yke=(()=>{class t{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(o);return u||(u=new P7("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,u)),u}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,e,u.name,u)};return i.data.animation.forEach(l),new bke(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(Et($p),Et(Mx),Et(br))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})();class P7{constructor(n,e,i,r){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=r,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,r=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,r)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,r){this.delegate.setAttribute(n,e,i,r)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,r){this.delegate.setStyle(n,e,i,r)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==$7?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class bke extends P7{constructor(n,e,i,r,o){super(e,i,r,o),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==$7?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const r=function _ke(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function wke(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,e,i)}}let xke=(()=>{class t extends Mx{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(Et(no),Et(eM),Et(hM),Et(Lu))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})();const j7=[{provide:e7,useClass:gke},{provide:hM,useFactory:function Cke(){return new V2e}},{provide:Mx,useClass:xke},{provide:$p,useFactory:function Ske(t,n,e){return new yke(t,n,e)},deps:[gx,Mx,br]}],yM=[{provide:eM,useFactory:()=>new pke},{provide:x6,useValue:"BrowserAnimations"},...j7],bM=[{provide:eM,useClass:d7},{provide:x6,useValue:"NoopAnimations"},...j7];let kke=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?bM:yM}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({providers:yM,imports:[WE]}),t})(),Dke=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({providers:bM,imports:[WE]}),t})();function oi(...t){let n=t[t.length-1];return ze(n)?(t.pop(),$i(t,n)):yt(t)}class ra extends Me{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return e&&!e.closed&&n.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new F;return this._value}next(n){super.next(this._value=n)}}const Fx=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();class _M extends x{notifyNext(n,e,i,r,o){this.destination.next(e)}notifyError(n,e){this.destination.error(n)}notifyComplete(n){this.destination.complete()}}class Tke extends x{constructor(n,e,i){super(),this.parent=n,this.outerValue=e,this.outerIndex=i,this.index=0}_next(n){this.parent.notifyNext(this.outerValue,n,this.outerIndex,this.index++,this)}_error(n){this.parent.notifyError(n,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function wM(t,n,e,i,r=new Tke(t,e,i)){if(!r.closed)return n instanceof P?n.subscribe(r):pr(n)(r)}const B7={};function Lx(...t){let n,e;return ze(t[t.length-1])&&(e=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&R(t[0])&&(t=t[0]),yt(t,e).lift(new Ake(n))}class Ake{constructor(n){this.resultSelector=n}call(n,e){return e.subscribe(new Eke(n,this.resultSelector))}}class Eke extends _M{constructor(n,e){super(n),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(n){this.values.push(B7),this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;it.complete());function Nx(t){return t?function Ike(t){return new P(n=>t.schedule(()=>n.complete()))}(t):Hd}function H7(t){return new P(n=>{let e;try{e=t()}catch(r){return void n.error(r)}return(e?zn(e):Nx()).subscribe(n)})}function qp(t,n){return new P(n?e=>n.schedule(Fke,0,{error:t,subscriber:e}):e=>e.error(t))}function Fke({error:t,subscriber:n}){n.error(t)}function ec(t,n){return"function"==typeof n?e=>e.pipe(ec((i,r)=>zn(t(i,r)).pipe(Pe((o,s)=>n(i,o,r,s))))):e=>e.lift(new Lke(t))}class Lke{constructor(n){this.project=n}call(n,e){return e.subscribe(new Oke(n,this.project))}}class Oke extends de{constructor(n,e){super(n),this.project=e,this.index=0}_next(n){let e;const i=this.index++;try{e=this.project(n,i)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(n){const e=this.innerSubscription;e&&e.unsubscribe();const i=new vr(this),r=this.destination;r.add(i),this.innerSubscription=Le(n,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:n}=this;(!n||n.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(n){this.destination.next(n)}}const V7=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function Rl(t){return n=>0===t?Nx():n.lift(new Nke(t))}class Nke{constructor(n){if(this.total=n,this.total<0)throw new V7}call(n,e){return e.subscribe(new Rke(n,this.total))}}class Rke extends x{constructor(n,e){super(n),this.total=e,this.count=0}_next(n){const e=this.total,i=++this.count;i<=e&&(this.destination.next(n),i===e&&(this.destination.complete(),this.unsubscribe()))}}function bs(t,n){return function(i){return i.lift(new $ke(t,n))}}class $ke{constructor(n,e){this.predicate=n,this.thisArg=e}call(n,e){return e.subscribe(new Pke(n,this.predicate,this.thisArg))}}class Pke extends x{constructor(n,e,i){super(n),this.predicate=e,this.thisArg=i,this.count=0}_next(n){let e;try{e=this.predicate.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(n)}}function Rx(t=null){return n=>n.lift(new jke(t))}class jke{constructor(n){this.defaultValue=n}call(n,e){return e.subscribe(new Bke(n,this.defaultValue))}}class Bke extends x{constructor(n,e){super(n),this.defaultValue=e,this.isEmpty=!0}_next(n){this.isEmpty=!1,this.destination.next(n)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function z7(t=zke){return n=>n.lift(new Hke(t))}class Hke{constructor(n){this.errorFactory=n}call(n,e){return e.subscribe(new Vke(n,this.errorFactory))}}class Vke extends x{constructor(n,e){super(n),this.errorFactory=e,this.hasValue=!1}_next(n){this.hasValue=!0,this.destination.next(n)}_complete(){if(this.hasValue)return this.destination.complete();{let n;try{n=this.errorFactory()}catch(e){n=e}this.destination.error(n)}}}function zke(){return new Fx}function Sf(t,n){const e=arguments.length>=2;return i=>i.pipe(t?bs((r,o)=>t(r,o,i)):q,Rl(1),e?Rx(n):z7(()=>new Fx))}function kf(t,n){return et(t,n,1)}function Vd(){}function _s(t,n,e){return function(r){return r.lift(new Uke(t,n,e))}}class Uke{constructor(n,e,i){this.nextOrObserver=n,this.error=e,this.complete=i}call(n,e){return e.subscribe(new Wke(n,this.nextOrObserver,this.error,this.complete))}}class Wke extends x{constructor(n,e,i,r){super(n),this._tapNext=Vd,this._tapError=Vd,this._tapComplete=Vd,this._tapError=i||Vd,this._tapComplete=r||Vd,ve(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Vd,this._tapError=e.error||Vd,this._tapComplete=e.complete||Vd)}_next(n){try{this._tapNext.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.next(n)}_error(n){try{this._tapError.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.error(n)}_complete(){try{this._tapComplete.call(this._context)}catch(n){return void this.destination.error(n)}return this.destination.complete()}}function tc(t){return function(e){const i=new Gke(t),r=e.lift(i);return i.caught=r}}class Gke{constructor(n){this.selector=n}call(n,e){return e.subscribe(new qke(n,this.selector,this.caught))}}class qke extends de{constructor(n,e,i){super(n),this.selector=e,this.caught=i}error(n){if(!this.isStopped){let e;try{e=this.selector(n,this.caught)}catch(o){return void super.error(o)}this._unsubscribeAndRecycle();const i=new vr(this);this.add(i);const r=Le(e,i);r!==i&&this.add(r)}}}function U7(t,n){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new Xke(t,n,e))}}class Xke{constructor(n,e,i=!1){this.accumulator=n,this.seed=e,this.hasSeed=i}call(n,e){return e.subscribe(new Yke(n,this.accumulator,this.seed,this.hasSeed))}}class Yke extends x{constructor(n,e,i,r){super(n),this.accumulator=e,this._seed=i,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(n){this.hasSeed=!0,this._seed=n}_next(n){if(this.hasSeed)return this._tryNext(n);this.seed=n,this.destination.next(n)}_tryNext(n){const e=this.index++;let i;try{i=this.accumulator(this.seed,n,e)}catch(r){this.destination.error(r)}this.seed=i,this.destination.next(i)}}function xM(t){return function(e){return 0===t?Nx():e.lift(new Kke(t))}}class Kke{constructor(n){if(this.total=n,this.total<0)throw new V7}call(n,e){return e.subscribe(new Jke(n,this.total))}}class Jke extends x{constructor(n,e){super(n),this.total=e,this.ring=new Array,this.count=0}_next(n){const e=this.ring,i=this.total,r=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,r=this.ring;for(let o=0;o=2;return i=>i.pipe(t?bs((r,o)=>t(r,o,i)):q,xM(1),e?Rx(n):z7(()=>new Fx))}class Zke{constructor(n,e){this.predicate=n,this.inclusive=e}call(n,e){return e.subscribe(new eDe(n,this.predicate,this.inclusive))}}class eDe extends x{constructor(n,e,i){super(n),this.predicate=e,this.inclusive=i,this.index=0}_next(n){const e=this.destination;let i;try{i=this.predicate(n,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(n,i)}nextOrComplete(n,e){const i=this.destination;Boolean(e)?i.next(n):(this.inclusive&&i.next(n),i.complete())}}class nDe{constructor(n){this.value=n}call(n,e){return e.subscribe(new iDe(n,this.value))}}class iDe extends x{constructor(n,e){super(n),this.value=e}_next(n){this.destination.next(this.value)}}function CM(t){return n=>n.lift(new rDe(t))}class rDe{constructor(n){this.callback=n}call(n,e){return e.subscribe(new oDe(n,this.callback))}}class oDe extends x{constructor(n,e){super(n),this.add(new g(e))}}const gr="primary",Y1=Symbol("RouteTitle");class sDe{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Xm(t){return new sDe(t)}function aDe(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.lengthi[o]===r)}return t===n}function q7(t){return Array.prototype.concat.apply([],t)}function X7(t){return t.length>0?t[t.length-1]:null}function Ga(t,n){for(const e in t)t.hasOwnProperty(e)&&n(t[e],e)}function Df(t){return FA(t)?t:C1(t)?zn(Promise.resolve(t)):oi(t)}const $x=!1,cDe={exact:function J7(t,n,e){if(!Xp(t.segments,n.segments)||!Px(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!J7(t.children[i],n.children[i],e))return!1;return!0},subset:Q7},Y7={exact:function uDe(t,n){return jh(t,n)},subset:function hDe(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>G7(t[e],n[e]))},ignored:()=>!0};function K7(t,n,e){return cDe[e.paths](t.root,n.root,e.matrixParams)&&Y7[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function Q7(t,n,e){return Z7(t,n,n.segments,e)}function Z7(t,n,e,i){if(t.segments.length>e.length){const r=t.segments.slice(0,e.length);return!(!Xp(r,e)||n.hasChildren()||!Px(r,e,i))}if(t.segments.length===e.length){if(!Xp(t.segments,e)||!Px(t.segments,e,i))return!1;for(const r in n.children)if(!t.children[r]||!Q7(t.children[r],n.children[r],i))return!1;return!0}{const r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!!(Xp(t.segments,r)&&Px(t.segments,r,i)&&t.children[gr])&&Z7(t.children[gr],n,o,i)}}function Px(t,n,e){return n.every((i,r)=>Y7[e](t[r].parameters,i.parameters))}class Tf{constructor(n=new Pr([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Xm(this.queryParams)),this._queryParamMap}toString(){return pDe.serialize(this)}}class Pr{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Ga(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return jx(this)}}class K1{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Xm(this.parameters)),this._parameterMap}toString(){return n9(this)}}function Xp(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let J1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:function(){return new SM},providedIn:"root"}),t})();class SM{parse(n){const e=new CDe(n);return new Tf(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${Q1(n.root,!0)}`,i=function vDe(t){const n=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(r=>`${Bx(e)}=${Bx(r)}`).join("&"):`${Bx(e)}=${Bx(i)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams),r="string"==typeof n.fragment?`#${function gDe(t){return encodeURI(t)}(n.fragment)}`:"";return`${e}${i}${r}`}}const pDe=new SM;function jx(t){return t.segments.map(n=>n9(n)).join("/")}function Q1(t,n){if(!t.hasChildren())return jx(t);if(n){const e=t.children[gr]?Q1(t.children[gr],!1):"",i=[];return Ga(t.children,(r,o)=>{o!==gr&&i.push(`${o}:${Q1(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function fDe(t,n){let e=[];return Ga(t.children,(i,r)=>{r===gr&&(e=e.concat(n(i,r)))}),Ga(t.children,(i,r)=>{r!==gr&&(e=e.concat(n(i,r)))}),e}(t,(i,r)=>r===gr?[Q1(t.children[gr],!1)]:[`${r}:${Q1(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[gr]?`${jx(t)}/${e[0]}`:`${jx(t)}/(${e.join("//")})`}}function e9(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Bx(t){return e9(t).replace(/%3B/gi,";")}function kM(t){return e9(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Hx(t){return decodeURIComponent(t)}function t9(t){return Hx(t.replace(/\+/g,"%20"))}function n9(t){return`${kM(t.path)}${function mDe(t){return Object.keys(t).map(n=>`;${kM(n)}=${kM(t[n])}`).join("")}(t.parameters)}`}const yDe=/^[^\/()?;=#]+/;function Vx(t){const n=t.match(yDe);return n?n[0]:""}const bDe=/^[^=?&#]+/,wDe=/^[^&#]+/;class CDe{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Pr([],{}):new Pr([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[gr]=new Pr(n,e)),i}parseSegment(){const n=Vx(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new on(4009,$x);return this.capture(n),new K1(Hx(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=Vx(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=Vx(this.remaining);r&&(i=r,this.capture(i))}n[Hx(e)]=Hx(i)}parseQueryParam(n){const e=function _De(t){const n=t.match(bDe);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function xDe(t){const n=t.match(wDe);return n?n[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=t9(e),o=t9(i);if(n.hasOwnProperty(r)){let s=n[r];Array.isArray(s)||(s=[s],n[r]=s),s.push(o)}else n[r]=o}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Vx(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new on(4010,$x);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=gr);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[gr]:new Pr([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new on(4011,$x)}}function DM(t){return t.segments.length>0?new Pr([],{[gr]:t}):t}function zx(t){const n={};for(const i of Object.keys(t.children)){const o=zx(t.children[i]);(o.segments.length>0||o.hasChildren())&&(n[i]=o)}return function SDe(t){if(1===t.numberOfChildren&&t.children[gr]){const n=t.children[gr];return new Pr(t.segments.concat(n.segments),n.children)}return t}(new Pr(t.segments,n))}function Yp(t){return t instanceof Tf}const TM=!1;function kDe(t,n,e,i,r){if(0===e.length)return Ym(n.root,n.root,n.root,i,r);const o=function a9(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new s9(!0,0,t);let n=0,e=!1;const i=t.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Ga(o.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?n++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new s9(e,n,i)}(e);return o.toRoot()?Ym(n.root,n.root,new Pr([],{}),i,r):function s(l){const c=function TDe(t,n,e,i){if(t.isAbsolute)return new Km(n.root,!0,0);if(-1===i)return new Km(e,e===n.root,0);return function l9(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new on(4005,TM&&"Invalid number of '../'");r=i.segments.length}return new Km(i,!1,r-o)}(e,i+(Z1(t.commands[0])?0:1),t.numberOfDoubleDots)}(o,n,t.snapshot?._urlSegment,l),u=c.processChildren?Jm(c.segmentGroup,c.index,o.commands):AM(c.segmentGroup,c.index,o.commands);return Ym(n.root,c.segmentGroup,u,i,r)}(t.snapshot?._lastPathIndex)}function Z1(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function ey(t){return"object"==typeof t&&null!=t&&t.outlets}function Ym(t,n,e,i,r){let s,o={};i&&Ga(i,(l,c)=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=t===n?e:o9(t,n,e);const a=DM(zx(s));return new Tf(a,o,r)}function o9(t,n,e){const i={};return Ga(t.children,(r,o)=>{i[o]=r===n?e:o9(r,n,e)}),new Pr(t.segments,i)}class s9{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&Z1(i[0]))throw new on(4003,TM&&"Root segment cannot have matrix parameters");const r=i.find(ey);if(r&&r!==X7(i))throw new on(4004,TM&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Km{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function AM(t,n,e){if(t||(t=new Pr([],{})),0===t.segments.length&&t.hasChildren())return Jm(t,n,e);const i=function EDe(t,n,e){let i=0,r=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const s=t.segments[r],a=e[i];if(ey(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!u9(l,c,s))return o;i+=2}else{if(!u9(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=AM(t.children[s],n,o))}),Ga(t.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new Pr(t.segments,r))}}function EM(t,n,e){const i=t.segments.slice(0,n);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(n[i]=EM(new Pr([],{}),0,e))}),n}function c9(t){const n={};return Ga(t,(e,i)=>n[i]=`${e}`),n}function u9(t,n,e){return t==e.path&&jh(n,e.parameters)}const ty="imperative";class Bh{constructor(n,e){this.id=n,this.url=e}}class Ux extends Bh{constructor(n,e,i="imperative",r=null){super(n,e),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class zd extends Bh{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ny extends Bh{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Wx extends Bh{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=16}}class Gx extends Bh{constructor(n,e,i,r){super(n,e),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class IDe extends Bh{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class FDe extends Bh{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class LDe extends Bh{constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ODe extends Bh{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class NDe extends Bh{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class RDe{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class $De{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class PDe{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jDe{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class BDe{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class HDe{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class h9{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let UDe=(()=>{class t{createUrlTree(e,i,r,o,s,a){return kDe(e||i.root,r,o,s,a)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})(),GDe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:function(n){return UDe.\u0275fac(n)},providedIn:"root"}),t})();class d9{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=MM(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=MM(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=IM(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return IM(n,this._root).map(e=>e.value)}}function MM(t,n){if(t===n.value)return n;for(const e of n.children){const i=MM(t,e);if(i)return i}return null}function IM(t,n){if(t===n.value)return[n];for(const e of n.children){const i=IM(t,e);if(i.length)return i.unshift(n),i}return[]}class Ud{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function Qm(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class f9 extends d9{constructor(n,e){super(n),this.snapshot=e,FM(this,n)}toString(){return this.snapshot.toString()}}function p9(t,n){const e=function qDe(t,n){const s=new qx([],{},{},"",{},gr,n,null,t.root,-1,{});return new m9("",new Ud(s,[]))}(t,n),i=new ra([new K1("",{})]),r=new ra({}),o=new ra({}),s=new ra({}),a=new ra(""),l=new co(i,r,s,a,o,gr,n,e.root);return l.snapshot=e.root,new f9(new Ud(l,[]),e)}class co{constructor(n,e,i,r,o,s,a,l){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.pipe(Pe(c=>c[Y1]))??oi(void 0),this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Pe(n=>Xm(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Pe(n=>Xm(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function g9(t,n="emptyOnly"){const e=t.pathFromRoot;let i=0;if("always"!==n)for(i=e.length-1;i>=1;){const r=e[i],o=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function XDe(t){return t.reduce((n,e)=>({params:{...n.params,...e.params},data:{...n.data,...e.data},resolve:{...e.data,...n.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(i))}class qx{get title(){return this.data?.[Y1]}constructor(n,e,i,r,o,s,a,l,c,u,h){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._resolve=h}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Xm(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Xm(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class m9 extends d9{constructor(n,e){super(e),this.url=n,FM(this,e)}toString(){return v9(this._root)}}function FM(t,n){n.value._routerState=t,n.children.forEach(e=>FM(t,e))}function v9(t){const n=t.children.length>0?` { ${t.children.map(v9).join(", ")} } `:"";return`${t.value}${n}`}function LM(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,jh(n.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),n.fragment!==e.fragment&&t.fragment.next(e.fragment),jh(n.params,e.params)||t.params.next(e.params),function lDe(t,n){if(t.length!==n.length)return!1;for(let e=0;ejh(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||OM(t.parent,n.parent))}function iy(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const r=function KDe(t,n,e){return n.children.map(i=>{for(const r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return iy(t,i,r);return iy(t,i)})}(t,n,e);return new Ud(i,r)}{if(t.shouldAttach(n.value)){const o=t.retrieve(n.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>iy(t,a)),s}}const i=function JDe(t){return new co(new ra(t.url),new ra(t.params),new ra(t.queryParams),new ra(t.fragment),new ra(t.data),t.outlet,t.component,t)}(n.value),r=n.children.map(o=>iy(t,o));return new Ud(i,r)}}const NM="ngNavigationCancelingError";function y9(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=Yp(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=b9(!1,0,n);return r.url=e,r.navigationBehaviorOptions=i,r}function b9(t,n,e){const i=new Error("NavigationCancelingError: "+(t||""));return i[NM]=!0,i.cancellationCode=n,e&&(i.url=e),i}function _9(t){return w9(t)&&Yp(t.url)}function w9(t){return t&&t[NM]}class QDe{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new ry,this.attachRef=null}}let ry=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new QDe,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Xx=!1;let Kp=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=gr,this.activateEvents=new vt,this.deactivateEvents=new vt,this.attachEvents=new vt,this.detachEvents=new vt,this.parentContexts=Fr(ry),this.location=Fr(gl),this.changeDetector=Fr(hs),this.environmentInjector=Fr(Fh)}ngOnChanges(e){if(e.name){const{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new on(4012,Xx);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new on(4012,Xx);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new on(4012,Xx);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new on(4013,Xx);this._activatedRoute=e;const r=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new ZDe(e,a,r.injector);if(i&&function eTe(t){return!!t.resolveComponentFactory}(i)){const c=i.resolveComponentFactory(s);this.activated=r.createComponent(c,r.length,l)}else this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=bn({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[ui]}),t})();class ZDe{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===co?this.route:n===ry?this.childContexts:this.parent.get(n,e)}}let RM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ln({type:t,selectors:[["ng-component"]],standalone:!0,features:[R8],decls:1,vars:0,template:function(e,i){1&e&&je(0,"router-outlet")},dependencies:[Kp],encapsulation:2}),t})();function x9(t,n){return t.providers&&!t._injector&&(t._injector=zw(t.providers,n,`Route: ${t.path}`)),t._injector??n}function PM(t){const n=t.children&&t.children.map(PM),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==gr&&(e.component=RM),e}function Qc(t){return t.outlet||gr}function C9(t,n){const e=t.filter(i=>Qc(i)===n);return e.push(...t.filter(i=>Qc(i)!==n)),e}function oy(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class oTe{constructor(n,e,i,r){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),LM(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const r=Qm(e);n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Ga(r,(o,s)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Qm(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Qm(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,e,i){const r=Qm(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new HDe(o.value.snapshot))}),n.children.length&&this.forwardEvent(new jDe(n.value.snapshot))}activateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(LM(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),LM(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=oy(r.snapshot),l=a?.get(Gc)??null;s.attachRef=null,s.route=r,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,i)}}class S9{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class Yx{constructor(n,e){this.component=n,this.route=e}}function sTe(t,n,e){const i=t._root;return sy(i,n?n._root:null,e,[i.value])}function Zm(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function cme(t){return null!==W_(t)}(t)?n.get(t):t:i}function sy(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Qm(n);return t.children.forEach(s=>{(function lTe(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function cTe(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!Xp(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Xp(t.url,n.url)||!jh(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!OM(t,n)||!jh(t.queryParams,n.queryParams);default:return!OM(t,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new S9(i)):(o.data=s.data,o._resolvedData=s._resolvedData),sy(t,n,o.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Yx(a.outlet.component,s))}else s&&ay(n,a,r),r.canActivateChecks.push(new S9(i)),sy(t,null,o.component?a?a.children:null:e,i,r)})(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),Ga(o,(s,a)=>ay(s,e.getContext(a),r)),r}function ay(t,n,e){const i=Qm(t),r=t.value;Ga(i,(o,s)=>{ay(o,r.component?n?n.children.getContext(s):null:n,e)}),e.canDeactivateChecks.push(new Yx(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}function ly(t){return"function"==typeof t}function jM(t){return t instanceof Fx||"EmptyError"===t?.name}const Kx=Symbol("INITIAL_VALUE");function ev(){return ec(t=>Lx(t.map(n=>n.pipe(Rl(1),function X1(...t){const n=t[t.length-1];return ze(n)?(t.pop(),e=>Ox(t,e,n)):e=>Ox(t,e)}(Kx)))).pipe(Pe(n=>{for(const e of n)if(!0!==e){if(e===Kx)return Kx;if(!1===e||e instanceof Tf)return e}return!0}),bs(n=>n!==Kx),Rl(1)))}function k9(t){return function O(...t){return U(t)}(_s(n=>{if(Yp(n))throw y9(0,n)}),Pe(n=>!0===n))}const BM={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function D9(t,n,e,i,r){const o=HM(t,n,e);return o.matched?function DTe(t,n,e,i){const r=n.canMatch;return r&&0!==r.length?oi(r.map(s=>{const a=Zm(s,t);return Df(function gTe(t){return t&&ly(t.canMatch)}(a)?a.canMatch(n,e):t.runInContext(()=>a(n,e)))})).pipe(ev(),k9()):oi(!0)}(i=x9(n,i),n,e).pipe(Pe(s=>!0===s?o:{...BM})):oi(o)}function HM(t,n,e){if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...BM}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(n.matcher||aDe)(e,t,n);if(!r)return{...BM};const o={};Ga(r.posParams,(a,l)=>{o[l]=a.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function Jx(t,n,e,i){if(e.length>0&&function ETe(t,n,e){return e.some(i=>Qx(t,n,i)&&Qc(i)!==gr)}(t,e,i)){const o=new Pr(n,function ATe(t,n,e,i){const r={};r[gr]=i,i._sourceSegment=t,i._segmentIndexShift=n.length;for(const o of e)if(""===o.path&&Qc(o)!==gr){const s=new Pr([],{});s._sourceSegment=t,s._segmentIndexShift=n.length,r[Qc(o)]=s}return r}(t,n,i,new Pr(e,t.children)));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function MTe(t,n,e){return e.some(i=>Qx(t,n,i))}(t,e,i)){const o=new Pr(t.segments,function TTe(t,n,e,i,r){const o={};for(const s of i)if(Qx(t,e,s)&&!r[Qc(s)]){const a=new Pr([],{});a._sourceSegment=t,a._segmentIndexShift=n.length,o[Qc(s)]=a}return{...r,...o}}(t,n,e,i,t.children));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:e}}const r=new Pr(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=n.length,{segmentGroup:r,slicedSegments:e}}function Qx(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}function T9(t,n,e,i){return!!(Qc(t)===i||i!==gr&&Qx(n,e,t))&&("**"===t.path||HM(n,t,e).matched)}function A9(t,n,e){return 0===n.length&&!t.children[e]}const Zx=!1;class eC{constructor(n){this.segmentGroup=n||null}}class E9{constructor(n){this.urlTree=n}}function cy(t){return qp(new eC(t))}function M9(t){return qp(new E9(t))}function ITe(t){return qp(new on(4e3,Zx&&`Only absolute redirects can have named outlets. redirectTo: '${t}'`))}class OTe{constructor(n,e,i,r,o){this.injector=n,this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const n=Jx(this.urlTree.root,[],[],this.config).segmentGroup,e=new Pr(n.segments,n.children);return this.expandSegmentGroup(this.injector,this.config,e,gr).pipe(Pe(o=>this.createUrlTree(zx(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(tc(o=>{if(o instanceof E9)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof eC?this.noMatchError(o):o}))}match(n){return this.expandSegmentGroup(this.injector,this.config,n.root,gr).pipe(Pe(r=>this.createUrlTree(zx(r),n.queryParams,n.fragment))).pipe(tc(r=>{throw r instanceof eC?this.noMatchError(r):r}))}noMatchError(n){return new on(4002,Zx&&`Cannot match any routes. URL Segment: '${n.segmentGroup}'`)}createUrlTree(n,e,i){const r=DM(n);return new Tf(r,e,i)}expandSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,e,i).pipe(Pe(o=>new Pr([],o))):this.expandSegment(n,i,e,i.segments,r,!0)}expandChildren(n,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return zn(r).pipe(kf(o=>{const s=i.children[o],a=C9(e,o);return this.expandSegmentGroup(n,a,s,o).pipe(Pe(l=>({segment:l,outlet:o})))}),U7((o,s)=>(o[s.outlet]=s.segment,o),{}),W7())}expandSegment(n,e,i,r,o,s){return zn(i).pipe(kf(a=>this.expandSegmentAgainstRoute(n,e,i,a,r,o,s).pipe(tc(c=>{if(c instanceof eC)return oi(null);throw c}))),Sf(a=>!!a),tc((a,l)=>{if(jM(a))return A9(e,r,o)?oi(new Pr([],{})):cy(e);throw a}))}expandSegmentAgainstRoute(n,e,i,r,o,s,a){return T9(r,e,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,e,r,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s):cy(e):cy(e)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?M9(o):this.lineralizeSegments(i,o).pipe(et(s=>{const a=new Pr(s,{});return this.expandSegment(n,a,e,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=HM(e,r,o);if(!a)return cy(e);const h=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?M9(h):this.lineralizeSegments(r,h).pipe(et(d=>this.expandSegment(n,e,i,d.concat(c),s,!1)))}matchSegmentAgainstRoute(n,e,i,r,o){return"**"===i.path?(n=x9(i,n),i.loadChildren?(i._loadedRoutes?oi({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(n,i)).pipe(Pe(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new Pr(r,{})))):oi(new Pr(r,{}))):D9(e,i,r,n).pipe(ec(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(n=i._injector??n,i,r).pipe(et(u=>{const h=u.injector??n,d=u.routes,{segmentGroup:f,slicedSegments:p}=Jx(e,a,l,d),m=new Pr(f.segments,f.children);if(0===p.length&&m.hasChildren())return this.expandChildren(h,d,m).pipe(Pe(E=>new Pr(a,E)));if(0===d.length&&0===p.length)return oi(new Pr(a,{}));const w=Qc(i)===o;return this.expandSegment(h,m,d,p,w?gr:o,!0).pipe(Pe(k=>new Pr(a.concat(k.segments),k.children)))})):cy(e)))}getChildConfig(n,e,i){return e.children?oi({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?oi({routes:e._loadedRoutes,injector:e._loadedInjector}):function kTe(t,n,e,i){const r=n.canLoad;return void 0===r||0===r.length?oi(!0):oi(r.map(s=>{const a=Zm(s,t);return Df(function hTe(t){return t&&ly(t.canLoad)}(a)?a.canLoad(n,e):t.runInContext(()=>a(n,e)))})).pipe(ev(),k9())}(n,e,i).pipe(et(r=>r?this.configLoader.loadChildren(n,e).pipe(_s(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function FTe(t){return qp(b9(Zx&&`Cannot load children because the guard of the route "path: '${t.path}'" returned false`,3))}(e))):oi({routes:[],injector:n})}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return oi(i);if(r.numberOfChildren>1||!r.children[gr])return ITe(n.redirectTo);r=r.children[gr]}}applyRedirectCommands(n,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i)}applyRedirectCreateUrlTree(n,e,i,r){const o=this.createSegmentGroup(n,e.root,i,r);return new Tf(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return Ga(n,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[o]=e[a]}else i[o]=r}),i}createSegmentGroup(n,e,i,r){const o=this.createSegments(n,e.segments,i,r);let s={};return Ga(e.children,(a,l)=>{s[l]=this.createSegmentGroup(n,a,i,r)}),new Pr(o,s)}createSegments(n,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){const r=i[e.path.substring(1)];if(!r)throw new on(4001,Zx&&`Cannot redirect to '${n}'. Cannot find '${e.path}'.`);return r}findOrReturn(n,e){let i=0;for(const r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}}class RTe{}class jTe{constructor(n,e,i,r,o,s,a){this.injector=n,this.rootComponentType=e,this.config=i,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a}recognize(){const n=Jx(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,gr).pipe(Pe(e=>{if(null===e)return null;const i=new qx([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},gr,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Ud(i,e),o=new m9(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(n){const e=n.value,i=g9(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),n.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,r)}processChildren(n,e,i){return zn(Object.keys(i.children)).pipe(kf(r=>{const o=i.children[r],s=C9(e,r);return this.processSegmentGroup(n,s,o,r)}),U7((r,o)=>r&&o?(r.push(...o),r):null),function Qke(t,n=!1){return e=>e.lift(new Zke(t,n))}(r=>null!==r),Rx(null),W7(),Pe(r=>{if(null===r)return null;const o=F9(r);return function BTe(t){t.sort((n,e)=>n.value.outlet===gr?-1:e.value.outlet===gr?1:n.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(n,e,i,r,o){return zn(e).pipe(kf(s=>this.processSegmentAgainstRoute(s._injector??n,s,i,r,o)),Sf(s=>!!s),tc(s=>{if(jM(s))return A9(i,r,o)?oi([]):oi(null);throw s}))}processSegmentAgainstRoute(n,e,i,r,o){if(e.redirectTo||!T9(e,i,r,o))return oi(null);let s;if("**"===e.path){const a=r.length>0?X7(r).parameters:{},l=O9(i)+r.length;s=oi({snapshot:new qx(r,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,N9(e),Qc(e),e.component??e._loadedComponent??null,e,L9(i),l,R9(e)),consumedSegments:[],remainingSegments:[]})}else s=D9(i,e,r,n).pipe(Pe(({matched:a,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!a)return null;const h=O9(i)+l.length;return{snapshot:new qx(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,N9(e),Qc(e),e.component??e._loadedComponent??null,e,L9(i),h,R9(e)),consumedSegments:l,remainingSegments:c}}));return s.pipe(ec(a=>{if(null===a)return oi(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=a;n=e._injector??n;const h=e._loadedInjector??n,d=function HTe(t){return t.children?t.children:t.loadChildren?t._loadedRoutes:[]}(e),{segmentGroup:f,slicedSegments:p}=Jx(i,c,u,d.filter(w=>void 0===w.redirectTo));if(0===p.length&&f.hasChildren())return this.processChildren(h,d,f).pipe(Pe(w=>null===w?null:[new Ud(l,w)]));if(0===d.length&&0===p.length)return oi([new Ud(l,[])]);const m=Qc(e)===o;return this.processSegment(h,d,f,p,m?gr:o).pipe(Pe(w=>null===w?null:[new Ud(l,w)]))}))}}function VTe(t){const n=t.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function F9(t){const n=[],e=new Set;for(const i of t){if(!VTe(i)){n.push(i);continue}const r=n.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):n.push(i)}for(const i of e){const r=F9(i.children);n.push(new Ud(i.value,r))}return n.filter(i=>!e.has(i))}function L9(t){let n=t;for(;n._sourceSegment;)n=n._sourceSegment;return n}function O9(t){let n=t,e=n._segmentIndexShift??0;for(;n._sourceSegment;)n=n._sourceSegment,e+=n._segmentIndexShift??0;return e-1}function N9(t){return t.data||{}}function R9(t){return t.resolve||{}}function $9(t){return"string"==typeof t.title||null===t.title}function VM(t){return ec(n=>{const e=t(n);return e?zn(e).pipe(Pe(()=>n)):oi(n)})}const tv=new hi("ROUTES");let zM=(()=>{class t{constructor(e,i){this.injector=e,this.compiler=i,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return oi(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=Df(e.loadComponent()).pipe(Pe(j9),_s(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),CM(()=>{this.componentLoaders.delete(e)})),r=new Ne(i,()=>new Me).pipe(Kt());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return oi({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(Pe(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(e).injector,c=q7(l.get(tv,[],Yi.Self|Yi.Optional)));return{routes:c.map(PM),injector:l}}),CM(()=>{this.childrenLoaders.delete(i)})),s=new Ne(o,()=>new Me).pipe(Kt());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(e){return Df(e()).pipe(Pe(j9),et(r=>r instanceof O8||Array.isArray(r)?oi(r):zn(this.compiler.compileModuleAsync(r))))}}return t.\u0275fac=function(e){return new(e||t)(Et(ea),Et(C6))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function j9(t){return function JTe(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let nC=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new Me,this.configLoader=Fr(zM),this.environmentInjector=Fr(Fh),this.urlSerializer=Fr(J1),this.rootContexts=Fr(ry),this.navigationId=0,this.afterPreactivation=()=>oi(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new $De(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new RDe(r))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:i})}setupNavigations(e){return this.transitions=new ra({id:0,targetPageId:0,currentUrlTree:e.currentUrlTree,currentRawUrl:e.currentUrlTree,extractedUrl:e.urlHandlingStrategy.extract(e.currentUrlTree),urlAfterRedirects:e.urlHandlingStrategy.extract(e.currentUrlTree),rawUrl:e.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:ty,restoredState:null,currentSnapshot:e.routerState.snapshot,targetSnapshot:null,currentRouterState:e.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(bs(i=>0!==i.id),Pe(i=>({...i,extractedUrl:e.urlHandlingStrategy.extract(i.rawUrl)})),ec(i=>{let r=!1,o=!1;return oi(i).pipe(_s(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),ec(s=>{const a=e.browserUrlTree.toString(),l=!e.navigated||s.extractedUrl.toString()!==a||a!==e.currentUrlTree.toString();if(!l&&"reload"!==(s.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const u="";return this.events.next(new Wx(s.id,e.serializeUrl(i.rawUrl),u,0)),e.rawUrlTree=s.rawUrl,s.resolve(null),Hd}if(e.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return B9(s.source)&&(e.browserUrlTree=s.extractedUrl),oi(s).pipe(ec(u=>{const h=this.transitions?.getValue();return this.events.next(new Ux(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),h!==this.transitions?.getValue()?Hd:Promise.resolve(u)}),function NTe(t,n,e,i){return ec(r=>function LTe(t,n,e,i,r){return new OTe(t,n,e,i,r).apply()}(t,n,e,r.extractedUrl,i).pipe(Pe(o=>({...r,urlAfterRedirects:o}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,e.config),_s(u=>{this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},i.urlAfterRedirects=u.urlAfterRedirects}),function UTe(t,n,e,i,r){return et(o=>function PTe(t,n,e,i,r,o,s="emptyOnly"){return new jTe(t,n,e,i,r,s,o).recognize().pipe(ec(a=>null===a?function $Te(t){return new P(n=>n.error(t))}(new RTe):oi(a)))}(t,n,e,o.urlAfterRedirects,i.serialize(o.urlAfterRedirects),i,r).pipe(Pe(s=>({...o,targetSnapshot:s}))))}(this.environmentInjector,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),_s(u=>{if(i.targetSnapshot=u.targetSnapshot,"eager"===e.urlUpdateStrategy){if(!u.extras.skipLocationChange){const d=e.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);e.setBrowserUrl(d,u)}e.browserUrlTree=u.urlAfterRedirects}const h=new IDe(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(h)}));if(l&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){const{id:u,extractedUrl:h,source:d,restoredState:f,extras:p}=s,m=new Ux(u,this.urlSerializer.serialize(h),d,f);this.events.next(m);const w=p9(h,this.rootComponentType).snapshot;return oi(i={...s,targetSnapshot:w,urlAfterRedirects:h,extras:{...p,skipLocationChange:!1,replaceUrl:!1}})}{const u="";return this.events.next(new Wx(s.id,e.serializeUrl(i.extractedUrl),u,1)),e.rawUrlTree=s.rawUrl,s.resolve(null),Hd}}),_s(s=>{const a=new FDe(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),Pe(s=>i={...s,guards:sTe(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function vTe(t,n){return et(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?oi({...e,guardsResult:!0}):function yTe(t,n,e,i){return zn(t).pipe(et(r=>function STe(t,n,e,i,r){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?oi(o.map(a=>{const l=oy(n)??r,c=Zm(a,l);return Df(function pTe(t){return t&&ly(t.canDeactivate)}(c)?c.canDeactivate(t,n,e,i):l.runInContext(()=>c(t,n,e,i))).pipe(Sf())})).pipe(ev()):oi(!0)}(r.component,r.route,e,n,i)),Sf(r=>!0!==r,!0))}(s,i,r,t).pipe(et(a=>a&&function uTe(t){return"boolean"==typeof t}(a)?function bTe(t,n,e,i){return zn(n).pipe(kf(r=>Ox(function wTe(t,n){return null!==t&&n&&n(new PDe(t)),oi(!0)}(r.route.parent,i),function _Te(t,n){return null!==t&&n&&n(new BDe(t)),oi(!0)}(r.route,i),function CTe(t,n,e){const i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function aTe(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(s)).filter(s=>null!==s).map(s=>H7(()=>oi(s.guards.map(l=>{const c=oy(s.node)??e,u=Zm(l,c);return Df(function fTe(t){return t&&ly(t.canActivateChild)}(u)?u.canActivateChild(i,t):c.runInContext(()=>u(i,t))).pipe(Sf())})).pipe(ev())));return oi(o).pipe(ev())}(t,r.path,e),function xTe(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return oi(!0);const r=i.map(o=>H7(()=>{const s=oy(n)??e,a=Zm(o,s);return Df(function dTe(t){return t&&ly(t.canActivate)}(a)?a.canActivate(n,t):s.runInContext(()=>a(n,t))).pipe(Sf())}));return oi(r).pipe(ev())}(t,r.route,e))),Sf(r=>!0!==r,!0))}(i,o,t,n):oi(a)),Pe(a=>({...e,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),_s(s=>{if(i.guardsResult=s.guardsResult,Yp(s.guardsResult))throw y9(0,s.guardsResult);const a=new LDe(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),bs(s=>!!s.guardsResult||(e.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),VM(s=>{if(s.guards.canActivateChecks.length)return oi(s).pipe(_s(a=>{const l=new ODe(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),ec(a=>{let l=!1;return oi(a).pipe(function WTe(t,n){return et(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return oi(e);let o=0;return zn(r).pipe(kf(s=>function GTe(t,n,e,i){const r=t.routeConfig,o=t._resolve;return void 0!==r?.title&&!$9(r)&&(o[Y1]=r.title),function qTe(t,n,e,i){const r=function XTe(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===r.length)return oi({});const o={};return zn(r).pipe(et(s=>function YTe(t,n,e,i){const r=oy(n)??i,o=Zm(t,r);return Df(o.resolve?o.resolve(n,e):r.runInContext(()=>o(n,e)))}(t[s],n,e,i).pipe(Sf(),_s(a=>{o[s]=a}))),xM(1),function tDe(t){return n=>n.lift(new nDe(t))}(o),tc(s=>jM(s)?Hd:qp(s)))}(o,t,n,i).pipe(Pe(s=>(t._resolvedData=s,t.data=g9(t,e).resolve,r&&$9(r)&&(t.data[Y1]=r.title),null)))}(s.route,i,t,n)),_s(()=>o++),xM(1),et(s=>o===r.length?oi(e):Hd))})}(e.paramsInheritanceStrategy,this.environmentInjector),_s({next:()=>l=!0,complete:()=>{l||(e.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),_s(a=>{const l=new NDe(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}))}),VM(s=>{const a=l=>{const c=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(l.routeConfig).pipe(_s(u=>{l.component=u}),Pe(()=>{})));for(const u of l.children)c.push(...a(u));return c};return Lx(a(s.targetSnapshot.root)).pipe(Rx(),Rl(1))}),VM(()=>this.afterPreactivation()),Pe(s=>{const a=function YDe(t,n,e){const i=iy(t,n._root,e?e._root:void 0);return new f9(i,n)}(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return i={...s,targetRouterState:a}}),_s(s=>{e.currentUrlTree=s.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),e.routerState=s.targetRouterState,"deferred"===e.urlUpdateStrategy&&(s.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,s),e.browserUrlTree=s.urlAfterRedirects)}),((t,n,e)=>Pe(i=>(new oTe(n,i.targetRouterState,i.currentRouterState,e).activate(t),i)))(this.rootContexts,e.routeReuseStrategy,s=>this.events.next(s)),_s({next:s=>{r=!0,this.lastSuccessfulNavigation=this.currentNavigation,e.navigated=!0,this.events.next(new zd(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(e.currentUrlTree))),e.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{r=!0}}),CM(()=>{r||o||this.cancelNavigationTransition(i,"",1),this.currentNavigation?.id===i.id&&(this.currentNavigation=null)}),tc(s=>{if(o=!0,w9(s)){_9(s)||(e.navigated=!0,e.restoreHistory(i,!0));const a=new ny(i.id,this.urlSerializer.serialize(i.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),_9(s)){const l=e.urlHandlingStrategy.merge(s.url,e.rawUrlTree),c={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy||B9(i.source)};e.scheduleNavigation(l,ty,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}else i.resolve(!1)}else{e.restoreHistory(i,!0);const a=new Gx(i.id,this.urlSerializer.serialize(i.extractedUrl),s,i.targetSnapshot??void 0);this.events.next(a);try{i.resolve(e.errorHandler(s))}catch(l){i.reject(l)}}return Hd}))}))}cancelNavigationTransition(e,i,r){const o=new ny(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),e.resolve(!1)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function B9(t){return t!==ty}let H9=(()=>{class t{buildTitle(e){let i,r=e.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===gr);return i}getResolvedTitleForRoute(e){return e.data[Y1]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:function(){return Fr(QTe)},providedIn:"root"}),t})(),QTe=(()=>{class t extends H9{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}}return t.\u0275fac=function(e){return new(e||t)(Et(YB))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ZTe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:function(){return Fr(tAe)},providedIn:"root"}),t})();class eAe{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let tAe=(()=>{class t extends eAe{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=or(t)))(i||t)}}(),t.\u0275prov=Yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const iC=new hi("",{providedIn:"root",factory:()=>({})});let iAe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:function(){return Fr(rAe)},providedIn:"root"}),t})(),rAe=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function oAe(t){throw t}function sAe(t,n,e){return n.parse("/")}const aAe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},lAe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Or=(()=>{class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=Fr(wwe),this.isNgZoneEnabled=!1,this.options=Fr(iC,{optional:!0})||{},this.errorHandler=this.options.errorHandler||oAe,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||sAe,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=Fr(iAe),this.routeReuseStrategy=Fr(ZTe),this.urlCreationStrategy=Fr(GDe),this.titleStrategy=Fr(H9),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=q7(Fr(tv,{optional:!0})??[]),this.navigationTransitions=Fr(nC),this.urlSerializer=Fr(J1),this.location=Fr(xE),this.isNgZoneEnabled=Fr(br)instanceof br&&br.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Tf,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=p9(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const e=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),ty,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,i,e.state)},0)}))}navigateToSyncWithBrowser(e,i,r){const o={replaceUrl:!0},s=r?.navigationId?r:null;if(r){const l={...r};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(o.state=l)}const a=this.parseUrl(e);this.scheduleNavigation(a,i,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(e){this.config=e.map(PM),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:s;let u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...o};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=o||null}return null!==u&&(u=this.removeEmptyProps(u)),this.urlCreationStrategy.createUrlTree(r,this.routerState,this.currentUrlTree,e,u,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=Yp(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,ty,null,i)}navigate(e,i={skipLocationChange:!1}){return function cAe(t){for(let n=0;n{const o=e[r];return null!=o&&(i[r]=o),i},{})}scheduleNavigation(e,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c,u;return s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((h,d)=>{a=h,l=d}),u="computed"===this.canceledNavigationResolution?r&&r.\u0275routerPageId?r.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:u,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(h=>Promise.reject(h))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e),o={...i.extras.state,...this.generateNgRouterState(i.id,i.targetPageId)};this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",o):this.location.go(r,"",o)}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.getCurrentNavigation()?.finalUrl||0===r?this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ru=(()=>{class t{constructor(e,i,r,o,s,a){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=s,this.locationStrategy=a,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new Me;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof zd&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(e){this._preserveFragment=Gm(e)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(e){this._skipLocationChange=Gm(e)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(e){this._replaceUrl=Gm(e)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,i,r,o,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==e||i||r||o||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const e=null===this.href?null:function uj(t,n,e){return function $0e(t,n){return"src"===n&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===n&&("base"===t||"link"===t)?cj:m1}(n,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",e)}applyAttributeValue(e,i){const r=this.renderer,o=this.el.nativeElement;null!==i?r.setAttribute(o,e,i):r.removeAttribute(o,e)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return t.\u0275fac=function(e){return new(e||t)(Ae(Or),Ae(co),Ed("tabindex"),Ae(Hs),Ae(xi),Ae(zp))},t.\u0275dir=bn({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(e,i){1&e&&He("click",function(o){return i.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),2&e&&Ft("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[ui]}),t})(),uy=(()=>{class t{get isActive(){return this._isActive}constructor(e,i,r,o,s){this.router=e,this.element=i,this.renderer=r,this.cdr=o,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new vt,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof zd&&this.update()})}ngAfterContentInit(){oi(this.links.changes,oi(null)).pipe(H()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=zn(e).pipe(H()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){const i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(r=>!!r)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const e=this.hasActiveLinks();this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.classes.forEach(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),e&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(e))})}isLinkActive(e){const i=function uAe(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>!!r.urlTree&&e.isActive(r.urlTree,i)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}}return t.\u0275fac=function(e){return new(e||t)(Ae(Or),Ae(xi),Ae(Hs),Ae(hs),Ae(Ru,8))},t.\u0275dir=bn({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(e,i,r){if(1&e&&Ci(r,Ru,5),2&e){let o;En(o=Mn())&&(i.links=o)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[ui]}),t})();class V9{}let hAe=(()=>{class t{constructor(e,i,r,o,s){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(bs(e=>e instanceof zd),kf(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=zw(o.providers,e,`Route: ${o.path}`));const s=o._injector??e,a=o._loadedInjector??s;o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent?r.push(this.preloadConfig(s,o)):(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return zn(r).pipe(H())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):oi(null);const o=r.pipe(et(s=>null===s?oi(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));return i.loadComponent&&!i._loadedComponent?zn([o,this.loader.loadComponent(i)]).pipe(H()):o})}}return t.\u0275fac=function(e){return new(e||t)(Et(Or),Et(C6),Et(Fh),Et(V9),Et(zM))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const WM=new hi("");let z9=(()=>{class t{constructor(e,i,r,o,s={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Ux?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof zd&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof h9&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new h9(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return t.\u0275fac=function(e){!function Bj(){throw new Error("invalid")}()},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})();var kc=(()=>((kc=kc||{})[kc.COMPLETE=0]="COMPLETE",kc[kc.FAILED=1]="FAILED",kc[kc.REDIRECTING=2]="REDIRECTING",kc))();const nv=!1;function Af(t,n){return{\u0275kind:t,\u0275providers:n}}const GM=new hi("",{providedIn:"root",factory:()=>!1});function W9(){const t=Fr(ea);return n=>{const e=t.get(Lu);if(n!==e.components[0])return;const i=t.get(Or),r=t.get(G9);1===t.get(qM)&&i.initialNavigation(),t.get(q9,null,Yi.Optional)?.setUpPreloading(),t.get(WM,null,Yi.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.unsubscribe())}}const G9=new hi(nv?"bootstrap done indicator":"",{factory:()=>new Me}),qM=new hi(nv?"initial navigation":"",{providedIn:"root",factory:()=>1});function mAe(){let t=[];return t=nv?[{provide:Cw,multi:!0,useFactory:()=>{const n=Fr(Or);return()=>n.events.subscribe(e=>{console.group?.(`Router Event: ${e.constructor.name}`),console.log(function VDe(t){if(!("type"in t))return`Unknown Router Event: ${t.constructor.name}`;switch(t.type){case 14:return`ActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state}, shouldActivate: ${t.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 2:return`NavigationCancel(id: ${t.id}, url: '${t.url}')`;case 16:return`NavigationSkipped(id: ${t.id}, url: '${t.url}')`;case 1:return`NavigationEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${t.id}, url: '${t.url}', error: ${t.error})`;case 0:return`NavigationStart(id: ${t.id}, url: '${t.url}')`;case 6:return`ResolveEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 5:return`ResolveStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 10:return`RouteConfigLoadEnd(path: ${t.route.path})`;case 9:return`RouteConfigLoadStart(path: ${t.route.path})`;case 4:return`RoutesRecognized(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 15:return`Scroll(anchor: '${t.anchor}', position: '${t.position?`${t.position[0]}, ${t.position[1]}`:null}')`}}(e)),console.log(e),console.groupEnd?.()})}}]:[],Af(1,t)}const q9=new hi(nv?"router preloader":"");function vAe(t){return Af(0,[{provide:q9,useExisting:hAe},{provide:V9,useExisting:t}])}const hy=!1,X9=new hi(hy?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),yAe=[xE,{provide:J1,useClass:SM},Or,ry,{provide:co,useFactory:function U9(t){return t.routerState.root},deps:[Or]},zM,hy?{provide:GM,useValue:!0}:[]];function bAe(){return new I6("Router",Or)}let Y9=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[yAe,hy&&i?.enableTracing?mAe().\u0275providers:[],{provide:tv,multi:!0,useValue:e},{provide:X9,useFactory:CAe,deps:[[Or,new l1,new c1]]},{provide:iC,useValue:i||{}},i?.useHash?{provide:zp,useClass:lxe}:{provide:zp,useClass:eB},{provide:WM,useFactory:()=>{const t=Fr(_Ce),n=Fr(br),e=Fr(iC),i=Fr(nC),r=Fr(J1);return e.scrollOffset&&t.setOffset(e.scrollOffset),new z9(r,i,t,n,e)}},i?.preloadingStrategy?vAe(i.preloadingStrategy).\u0275providers:[],{provide:I6,multi:!0,useFactory:bAe},i?.initialNavigation?SAe(i):[],[{provide:K9,useFactory:W9},{provide:M6,multi:!0,useExisting:K9}]]}}static forChild(e){return{ngModule:t,providers:[{provide:tv,multi:!0,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)(Et(X9,8))},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[RM]}),t})();function CAe(t){if(hy&&t)throw new on(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function SAe(t){return["disabled"===t.initialNavigation?Af(3,[{provide:qw,multi:!0,useFactory:()=>{const n=Fr(Or);return()=>{n.setUpLocationChangeListener()}}},{provide:qM,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Af(2,[{provide:qM,useValue:0},{provide:qw,multi:!0,deps:[ea],useFactory:n=>{const e=n.get(sxe,Promise.resolve());return()=>e.then(()=>new Promise(i=>{const r=n.get(Or),o=n.get(G9);(function dAe(t,n){t.events.pipe(bs(e=>e instanceof zd||e instanceof ny||e instanceof Gx||e instanceof Wx),Pe(e=>e instanceof zd||e instanceof Wx?kc.COMPLETE:e instanceof ny&&(0===e.code||1===e.code)?kc.REDIRECTING:kc.FAILED),bs(e=>e!==kc.REDIRECTING),Rl(1)).subscribe(()=>{n()})})(r,()=>{i(!0)}),n.get(nC).afterPreactivation=()=>(i(!0),o.closed?oi(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const K9=new hi(hy?"Router Initializer":"");function rC(t,n){return new P(e=>{const i=t.length;if(0===i)return void e.complete();const r=new Array(i);let o=0,s=0;for(let a=0;a{c||(c=!0,s++),r[a]=u},error:u=>e.error(u),complete:()=>{o++,(o===i||!c)&&(s===i&&e.next(n?n.reduce((u,h,d)=>(u[h]=r[d],u),{}):r),e.complete())}}))}})}let J9=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(Ae(Hs),Ae(xi))},t.\u0275dir=bn({type:t}),t})(),Jp=(()=>{class t extends J9{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=or(t)))(i||t)}}(),t.\u0275dir=bn({type:t,features:[Bi]}),t})();const Aa=new hi("NgValueAccessor"),TAe={provide:Aa,useExisting:yr(()=>oC),multi:!0};let oC=(()=>{class t extends Jp{writeValue(e){this.setProperty("checked",e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=or(t)))(i||t)}}(),t.\u0275dir=bn({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,i){1&e&&He("change",function(o){return i.onChange(o.target.checked)})("blur",function(){return i.onTouched()})},features:[lo([TAe]),Bi]}),t})();const AAe={provide:Aa,useExisting:yr(()=>qa),multi:!0},MAe=new hi("CompositionEventMode");let qa=(()=>{class t extends J9{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function EAe(){const t=Nd()?Nd().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return t.\u0275fac=function(e){return new(e||t)(Ae(Hs),Ae(xi),Ae(MAe,8))},t.\u0275dir=bn({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&He("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[lo([AAe]),Bi]}),t})();const IAe=!1;function Ef(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function Q9(t){return null!=t&&"number"==typeof t.length}const Xa=new hi("NgValidators"),Mf=new hi("NgAsyncValidators"),FAe=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Wo{static min(n){return Z9(n)}static max(n){return function eH(t){return n=>{if(Ef(n.value)||Ef(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return tH(n)}static requiredTrue(n){return function nH(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function iH(t){return Ef(t.value)||FAe.test(t.value)?null:{email:!0}}(n)}static minLength(n){return function rH(t){return n=>Ef(n.value)||!Q9(n.value)?null:n.value.lengthQ9(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}(n)}static pattern(n){return function sH(t){if(!t)return sC;let n,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(Ef(i.value))return null;const r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(n)}static nullValidator(n){return null}static compose(n){return dH(n)}static composeAsync(n){return fH(n)}}function Z9(t){return n=>{if(Ef(n.value)||Ef(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function uH(t,n){return n.map(e=>e(t))}function hH(t){return t.map(n=>function LAe(t){return!t.validate}(n)?n:e=>n.validate(e))}function dH(t){if(!t)return null;const n=t.filter(aH);return 0==n.length?null:function(e){return cH(uH(e,n))}}function XM(t){return null!=t?dH(hH(t)):null}function fH(t){if(!t)return null;const n=t.filter(aH);return 0==n.length?null:function(e){return function DAe(...t){if(1===t.length){const n=t[0];if(R(n))return rC(n,null);if(D(n)&&Object.getPrototypeOf(n)===Object.prototype){const e=Object.keys(n);return rC(e.map(i=>n[i]),e)}}if("function"==typeof t[t.length-1]){const n=t.pop();return rC(t=1===t.length&&R(t[0])?t[0]:t,null).pipe(Pe(e=>n(...e)))}return rC(t,null)}(uH(e,n).map(lH)).pipe(Pe(cH))}}function YM(t){return null!=t?fH(hH(t)):null}function pH(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function gH(t){return t._rawValidators}function mH(t){return t._rawAsyncValidators}function KM(t){return t?Array.isArray(t)?t:[t]:[]}function aC(t,n){return Array.isArray(t)?t.includes(n):t===n}function vH(t,n){const e=KM(n);return KM(t).forEach(r=>{aC(e,r)||e.push(r)}),e}function yH(t,n){return KM(n).filter(e=>!aC(t,e))}class bH{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=XM(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=YM(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class $l extends bH{get formDirective(){return null}get path(){return null}}class If extends bH{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class _H{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let vl=(()=>{class t extends _H{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(Ae(If,2))},t.\u0275dir=bn({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&Kn("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[Bi]}),t})(),yl=(()=>{class t extends _H{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(Ae($l,10))},t.\u0275dir=bn({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&Kn("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[Bi]}),t})();function wH(t,n){return t?`with name: '${n}'`:`at index: ${n}`}const ZM=!1,dy="VALID",cC="INVALID",iv="PENDING",fy="DISABLED";function e3(t){return(uC(t)?t.validators:t)||null}function t3(t,n){return(uC(n)?n.asyncValidators:t)||null}function uC(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function xH(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new on(1e3,ZM?function $Ae(t){return`\n There are no form controls registered with this ${t?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(n):"");if(!i[e])throw new on(1001,ZM?function PAe(t,n){return`Cannot find form control ${wH(t,n)}`}(n,e):"")}function CH(t,n,e){t._forEachChild((i,r)=>{if(void 0===e[r])throw new on(1002,ZM?function jAe(t,n){return`Must supply a value for form control ${wH(t,n)}`}(n,r):"")})}class hC{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===dy}get invalid(){return this.status===cC}get pending(){return this.status==iv}get disabled(){return this.status===fy}get enabled(){return this.status!==fy}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(vH(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(vH(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(yH(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(yH(n,this._rawAsyncValidators))}hasValidator(n){return aC(this._rawValidators,n)}hasAsyncValidator(n){return aC(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=iv,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=fy,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=dy,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===dy||this.status===iv)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?fy:dy}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=iv,this._hasOwnPendingAsyncValidator=!0;const e=lH(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new vt,this.statusChanges=new vt}_calculateStatus(){return this._allControlsDisabled()?fy:this.errors?cC:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(iv)?iv:this._anyControlsHaveStatus(cC)?cC:dy}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){uC(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function BAe(t){return Array.isArray(t)?XM(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function HAe(t){return Array.isArray(t)?YM(t):t||null}(this._rawAsyncValidators)}}class py extends hC{constructor(n,e,i){super(e3(e),t3(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){CH(this,!0,n),Object.keys(n).forEach(i=>{xH(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{const r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class SH extends py{}const Qp=new hi("CallSetDisabledState",{providedIn:"root",factory:()=>gy}),gy="always";function my(t,n,e=gy){n3(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function zAe(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&kH(t,n)})}(t,n),function WAe(t,n){const e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function UAe(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&kH(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function VAe(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function fC(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),gC(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function pC(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function n3(t,n){const e=gH(t);null!==n.validator?t.setValidators(pH(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=mH(t);null!==n.asyncValidator?t.setAsyncValidators(pH(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();pC(n._rawValidators,r),pC(n._rawAsyncValidators,r)}function gC(t,n){let e=!1;if(null!==t){if(null!==n.validator){const r=gH(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(null!==n.asyncValidator){const r=mH(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}const i=()=>{};return pC(n._rawValidators,i),pC(n._rawAsyncValidators,i),e}function kH(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function AH(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function EH(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const yy=class extends hC{constructor(n=null,e,i){super(e3(e),t3(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),uC(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=EH(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){AH(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){AH(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){EH(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};let bl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=bn({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const eEe={provide:Aa,useExisting:yr(()=>a3),multi:!0};let a3=(()=>{class t extends Jp{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=or(t)))(i||t)}}(),t.\u0275dir=bn({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,i){1&e&&He("input",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},features:[lo([eEe]),Bi]}),t})(),OH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({}),t})();const l3=new hi("NgModelWithFormControlWarning"),oEe={provide:$l,useExisting:yr(()=>Ea)};let Ea=(()=>{class t extends $l{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new vt,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(gC(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return my(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){fC(e.control||null,e,!1),function YAe(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,function TH(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(fC(i||null,e),(t=>t instanceof yy)(r)&&(my(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);(function DH(t,n){n3(t,n)})(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function GAe(t,n){return gC(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){n3(this.form,this),this._oldForm&&gC(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(Ae(Xa,10),Ae(Mf,10),Ae(Qp,8))},t.\u0275dir=bn({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&He("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[lo([oEe]),Bi,ui]}),t})();const lEe={provide:If,useExisting:yr(()=>Ya)};let Ya=(()=>{class t extends If{set isDisabled(e){}constructor(e,i,r,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new vt,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function o3(t,n){if(!n)return null;let e,i,r;return Array.isArray(n),n.forEach(o=>{o.constructor===qa?e=o:function XAe(t){return Object.getPrototypeOf(t.constructor)===Jp}(o)?i=o:r=o}),r||i||e||null}(0,o)}ngOnChanges(e){this._added||this._setUpControl(),function r3(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return function dC(t,n){return[...n.path,t]}(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return t._ngModelWarningSentOnce=!1,t.\u0275fac=function(e){return new(e||t)(Ae($l,13),Ae(Xa,10),Ae(Mf,10),Ae(Aa,10),Ae(l3,8))},t.\u0275dir=bn({type:t,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[lo([lEe]),Bi,ui]}),t})();const cEe={provide:Aa,useExisting:yr(()=>rv),multi:!0};function jH(t,n){return null==t?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let rv=(()=>{class t extends Jp{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const r=jH(this._getOptionId(e),e);this.setProperty("value",r)}registerOnChange(e){this.onChange=i=>{this.value=this._getOptionValue(i),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const i of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(i),e))return i;return null}_getOptionValue(e){const i=function uEe(t){return t.split(":")[0]}(e);return this._optionMap.has(i)?this._optionMap.get(i):e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=or(t)))(i||t)}}(),t.\u0275dir=bn({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,i){1&e&&He("change",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[lo([cEe]),Bi]}),t})(),by=(()=>{class t{constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(jH(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(Ae(xi),Ae(Hs),Ae(rv,9))},t.\u0275dir=bn({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const hEe={provide:Aa,useExisting:yr(()=>h3),multi:!0};function BH(t,n){return null==t?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let h3=(()=>{class t extends Jp{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let i;if(this.value=e,Array.isArray(e)){const r=e.map(o=>this._getOptionId(o));i=(o,s)=>{o._setSelected(r.indexOf(s.toString())>-1)}}else i=(r,o)=>{r._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(e){this.onChange=i=>{const r=[],o=i.selectedOptions;if(void 0!==o){const s=o;for(let a=0;a{class t{constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(BH(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(BH(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(Ae(xi),Ae(Hs),Ae(h3,9))},t.\u0275dir=bn({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();let Zp=(()=>{class t{constructor(){this._validator=sC}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):sC,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=bn({type:t,features:[ui]}),t})();const pEe={provide:Xa,useExisting:yr(()=>d3),multi:!0};let d3=(()=>{class t extends Zp{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>function VH(t){return"number"==typeof t?t:parseFloat(t)}(e),this.createValidator=e=>Z9(e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=or(t)))(i||t)}}(),t.\u0275dir=bn({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(e,i){2&e&&Ft("min",i._enabled?i.min:null)},inputs:{min:"min"},features:[lo([pEe]),Bi]}),t})();const gEe={provide:Xa,useExisting:yr(()=>Ff),multi:!0};let Ff=(()=>{class t extends Zp{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Gm,this.createValidator=e=>tH}enabled(e){return e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=or(t)))(i||t)}}(),t.\u0275dir=bn({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,i){2&e&&Ft("required",i._enabled?"":null)},inputs:{required:"required"},features:[lo([gEe]),Bi]}),t})(),YH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[OH]}),t})();class KH extends hC{constructor(n,e,i){super(e3(e),t3(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){CH(this,!1,n),n.forEach((i,r)=>{xH(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function JH(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let wEe=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,i=null){const r=this._reduceControls(e);let o={};return JH(i)?o=i:null!==i&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new py(r,o)}record(e,i=null){const r=this._reduceControls(e);return new SH(r,i)}control(e,i,r){let o={};return this.useNonNullable?(JH(i)?o=i:(o.validators=i,o.asyncValidators=r),new yy(e,{...o,nonNullable:!0})):new yy(e,i,r)}array(e,i,r){const o=e.map(s=>this._createControl(s));return new KH(o,i,r)}_reduceControls(e){const i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){return e instanceof yy||e instanceof hC?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Pl=(()=>{class t extends wEe{group(e,i=null){return super.group(e,i)}control(e,i,r){return super.control(e,i,r)}array(e,i,r){return super.array(e,i,r)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=or(t)))(i||t)}}(),t.\u0275prov=Yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),QH=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Qp,useValue:e.callSetDisabledState??gy}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[YH]}),t})(),xEe=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:l3,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Qp,useValue:e.callSetDisabledState??gy}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[YH]}),t})();const f3=new hi("ngx-segment-analytics.config"),CEe={debug:!1,loadOnInitialization:!0,segmentHost:"cdn.segment.com",segmentUri:"/analytics.js/v1/$API_KEY$/analytics.min.js"};let p3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})(),mC=(()=>{class t{constructor(e,i,r){if(this._w=e,this._doc=i,this._config=Object.assign(Object.assign({},CEe),r),this._config.loadOnInitialization&&(typeof this._config.apiKey>"u"||""===this._config.apiKey))console.error("The API Key cannot be an empty string if Segment must be loaded on initialization.");else if(typeof this._w.analytics>"u"||typeof this._w.analytics.initialize>"u"||!1===this._w.analytics.initialize){if(typeof this._w.analytics<"u"&&!0===this._w.analytics.invoked)return void console.error("Segment snippet included twice.");this._config.debug&&console.log("Segment initialization..."),this._w.analytics=[],this._w.analytics.invoked=!0,this._w.analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware"],this._w.analytics.factory=o=>(...s)=>(s.unshift(o),this._w.analytics.push(s),this._w.analytics),this._w.analytics.methods.forEach(o=>{this._w.analytics[o]=this._w.analytics.factory(o)}),this._w.analytics.load=(o,s)=>{const a=this._doc.createElement("script");a.type="text/javascript",a.async=!0,a.src="https://"+this._config.segmentHost+this._config.segmentUri.replace("$API_KEY$",o);const l=this._doc.getElementsByTagName("script")[0];l.parentNode.insertBefore(a,l),this._w.analytics._loadOptions=s},this._w.analytics.SNIPPET_VERSION="4.1.0",this._config.loadOnInitialization&&this.load(this._config.apiKey)}}load(e,i){this._w.analytics.load(e,i),this._config.debug&&console.log("Segment initialized"),this.debug(this._config.debug)}identify(e,i,r){return new Promise(o=>{this._w.analytics.identify(e,i,r,s=>o(this))})}track(e,i,r){return new Promise(o=>{this._w.analytics.track(e,i,r,s=>o(this))})}page(e,i,r,o){return new Promise(s=>{this._w.analytics.page(e,i,r,o,a=>s(this))})}group(e,i){return new Promise(r=>{this._w.analytics.group(e,i,o=>r(this))})}alias(e,i,r){return new Promise(o=>{this._w.analytics.alias(e,i,r,s=>o(this))})}ready(){return new Promise(e=>{this._w.analytics.ready(i=>e(this))})}user(){return this._w.analytics.user()}id(){return this._w.analytics.id()}traits(){return this._w.analytics.traits()}reset(){this._w.analytics.reset()}debug(e){this._w.analytics.debug(e)}on(e,i){this._w.analytics.on(e,i)}trackLink(e,i,r){this._w.analytics.trackLink(e,i,r)}trackForm(e,i,r){this._w.analytics.trackForm(e,i,r)}timeout(e){this._w.analytics.timeout(e)}addSourceMiddleware(e){this._w.analytics.addSourceMiddleware(e)}get plugins(){return this._w.analytics.plugins}}return t.\u0275fac=function(e){return new(e||t)(Et(p3),Et(no),Et(f3))},t.\u0275prov=Yt({factory:function(){return new t(Et(p3),Et(no),Et(f3))},token:t,providedIn:"root"}),t})();function SEe(t){return function kB(t){return t===SB}(t)?window:{}}let kEe=(()=>{class t{constructor(e){if(e)throw new Error("SegmentModule is already loaded. Import it in the AppModule only")}static forRoot(e){return{ngModule:t,providers:[{provide:f3,useValue:e},mC]}}}return t.\u0275fac=function(e){return new(e||t)(Et(t,12))},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({providers:[{provide:p3,useFactory:SEe,deps:[N1]}],imports:[ia]}),t})();class vC{}class g3{}class $u{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(n).forEach(e=>{let i=n[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof $u?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new $u;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof $u?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const r=("a"===n.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=n.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class DEe{encodeKey(n){return ZH(n)}encodeValue(n){return ZH(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const AEe=/%(\d[a-f0-9])/gi,EEe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ZH(t){return encodeURIComponent(t).replace(AEe,(n,e)=>EEe[e]??n)}function yC(t){return`${t}`}class Jn{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new DEe,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function TEe(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],r=Array.isArray(i)?i.map(yC):[yC(i)];this.map.set(e,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new Jn({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(yC(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const r=i.indexOf(yC(n.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class MEe{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function eV(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function tV(t){return typeof Blob<"u"&&t instanceof Blob}function nV(t){return typeof FormData<"u"&&t instanceof FormData}class wy{constructor(n,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function IEe(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new $u),this.context||(this.context=new MEe),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ah.set(d,n.setHeaders[d]),l)),n.setParams&&(c=Object.keys(n.setParams).reduce((h,d)=>h.set(d,n.setParams[d]),c)),new wy(e,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var oa=(()=>((oa=oa||{})[oa.Sent=0]="Sent",oa[oa.UploadProgress=1]="UploadProgress",oa[oa.ResponseHeader=2]="ResponseHeader",oa[oa.DownloadProgress=3]="DownloadProgress",oa[oa.Response=4]="Response",oa[oa.User=5]="User",oa))();class m3{constructor(n,e=200,i="OK"){this.headers=n.headers||new $u,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class v3 extends m3{constructor(n={}){super(n),this.type=oa.ResponseHeader}clone(n={}){return new v3({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class bC extends m3{constructor(n={}){super(n),this.type=oa.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new bC({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class iV extends m3{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function y3(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let _C=(()=>{class t{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof wy)o=e;else{let l,c;l=r.headers instanceof $u?r.headers:new $u(r.headers),r.params&&(c=r.params instanceof Jn?r.params:new Jn({fromObject:r.params})),o=new wy(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const s=oi(o).pipe(kf(l=>this.handler.handle(l)));if(e instanceof wy||"events"===r.observe)return s;const a=s.pipe(bs(l=>l instanceof bC));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(Pe(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(Pe(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(Pe(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(Pe(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new Jn).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,y3(r,i))}post(e,i,r={}){return this.request("POST",e,y3(r,i))}put(e,i,r={}){return this.request("PUT",e,y3(r,i))}}return t.\u0275fac=function(e){return new(e||t)(Et(vC))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})();function rV(t,n){return n(t)}function LEe(t,n){return(e,i)=>n.intercept(e,{handle:r=>t(r,i)})}const b3=new hi("HTTP_INTERCEPTORS"),xy=new hi("HTTP_INTERCEPTOR_FNS");function NEe(){let t=null;return(n,e)=>(null===t&&(t=(Fr(b3,{optional:!0})??[]).reduceRight(LEe,rV)),t(n,e))}let oV=(()=>{class t extends vC{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=Array.from(new Set(this.injector.get(xy)));this.chain=i.reduceRight((r,o)=>function OEe(t,n,e){return(i,r)=>e.runInContext(()=>n(i,o=>t(o,r)))}(r,o,this.injector),rV)}return this.chain(e,i=>this.backend.handle(i))}}return t.\u0275fac=function(e){return new(e||t)(Et(g3),Et(Fh))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})();const jEe=/^\)\]\}',?\n/;let aV=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new P(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((f,p)=>r.setRequestHeader(f,p.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const f=e.detectContentTypeHeader();null!==f&&r.setRequestHeader("Content-Type",f)}if(e.responseType){const f=e.responseType.toLowerCase();r.responseType="json"!==f?f:"text"}const o=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const f=r.statusText||"OK",p=new $u(r.getAllResponseHeaders()),m=function BEe(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new v3({headers:p,status:r.status,statusText:f,url:m}),s},l=()=>{let{headers:f,status:p,statusText:m,url:w}=a(),C=null;204!==p&&(C=typeof r.response>"u"?r.responseText:r.response),0===p&&(p=C?200:0);let k=p>=200&&p<300;if("json"===e.responseType&&"string"==typeof C){const E=C;C=C.replace(jEe,"");try{C=""!==C?JSON.parse(C):null}catch(L){C=E,k&&(k=!1,C={error:L,text:C})}}k?(i.next(new bC({body:C,headers:f,status:p,statusText:m,url:w||void 0})),i.complete()):i.error(new iV({error:C,headers:f,status:p,statusText:m,url:w||void 0}))},c=f=>{const{url:p}=a(),m=new iV({error:f,status:r.status||0,statusText:r.statusText||"Unknown Error",url:p||void 0});i.error(m)};let u=!1;const h=f=>{u||(i.next(a()),u=!0);let p={type:oa.DownloadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),"text"===e.responseType&&r.responseText&&(p.partialText=r.responseText),i.next(p)},d=f=>{let p={type:oa.UploadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),i.next(p)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",h),null!==o&&r.upload&&r.upload.addEventListener("progress",d)),r.send(o),i.next({type:oa.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",h),null!==o&&r.upload&&r.upload.removeEventListener("progress",d)),r.readyState!==r.DONE&&r.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(Et(TB))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})();const _3=new hi("XSRF_ENABLED"),lV=new hi("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),cV=new hi("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class uV{}let zEe=(()=>{class t{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=fB(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(Et(no),Et(N1),Et(lV))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})();function UEe(t,n){const e=t.url.toLowerCase();if(!Fr(_3)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const i=Fr(uV).getToken(),r=Fr(cV);return null!=i&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,i)})),n(t)}var zs=(()=>((zs=zs||{})[zs.Interceptors=0]="Interceptors",zs[zs.LegacyInterceptors=1]="LegacyInterceptors",zs[zs.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",zs[zs.NoXsrfProtection=3]="NoXsrfProtection",zs[zs.JsonpSupport=4]="JsonpSupport",zs[zs.RequestsMadeViaParent=5]="RequestsMadeViaParent",zs))();function ov(t,n){return{\u0275kind:t,\u0275providers:n}}function WEe(...t){const n=[_C,aV,oV,{provide:vC,useExisting:oV},{provide:g3,useExisting:aV},{provide:xy,useValue:UEe,multi:!0},{provide:_3,useValue:!0},{provide:uV,useClass:zEe}];for(const e of t)n.push(...e.\u0275providers);return function P0e(t){return{\u0275providers:t}}(n)}const hV=new hi("LEGACY_INTERCEPTOR_FN");let qEe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({providers:[WEe(ov(zs.LegacyInterceptors,[{provide:hV,useFactory:NEe},{provide:xy,useExisting:hV,multi:!0}]))]}),t})();var Di=(()=>(function(t){t[t.USER_ROLE_UNKNOWN=0]="USER_ROLE_UNKNOWN",t[t.USER_ROLE_ADMIN=1]="USER_ROLE_ADMIN",t[t.USER_ROLE_DEVELOPER=2]="USER_ROLE_DEVELOPER",t[t.USER_ROLE_MAINTAINER=3]="USER_ROLE_MAINTAINER",t[t.USER_ROLE_READONLY=4]="USER_ROLE_READONLY"}(Di||(Di={})),Di))(),Cy=(()=>(function(t){t[t.APPLE_APP_STORE=0]="APPLE_APP_STORE",t[t.GOOGLE_PLAY_STORE=1]="GOOGLE_PLAY_STORE",t[t.HUAWEI_APP_GALLERY=2]="HUAWEI_APP_GALLERY"}(Cy||(Cy={})),Cy))();class w3{constructor(){be(this,"host",void 0),be(this,"timeoutMs",void 0)}}let Ui=(()=>{class t{constructor(e,i){be(this,"httpClient",void 0),be(this,"config",void 0),this.httpClient=e,this.config=i||{host:"http://127.0.0.1:7120",timeoutMs:5e3}}deleteAccounts(e){let r=new Jn;return this.httpClient.delete(this.config.host+"/v2/console/account",{params:r,headers:this.getTokenAuthHeaders(e)})}listAccounts(e,i,r,o){let a=new Jn;return i&&(a=a.set("filter",i)),(r||!1===r)&&(a=a.set("tombstones",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+"/v2/console/account",{params:a,headers:this.getTokenAuthHeaders(e)})}getWalletLedger(e,i,r,o){const s=`/v2/console/account/${i=encodeURIComponent(String(i))}/wallet`;let a=new Jn;return r&&(a=a.set("limit",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+s,{params:a,headers:this.getTokenAuthHeaders(e)})}deleteAccount(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}`;let s=new Jn;return(r||!1===r)&&(s=s.set("record_deletion",String(r))),this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}getAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}`;let o=new Jn;return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}updateAccount(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}`;let s=new Jn;return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}banAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/ban`;let o=new Jn;return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}exportAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/export`;let o=new Jn;return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getFriends(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/friend`;let o=new Jn;return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteFriend(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/friend/${r=encodeURIComponent(String(r))}`;let s=new Jn;return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}getGroups(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/group`;let o=new Jn;return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteGroupUser(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/group/${r=encodeURIComponent(String(r))}`;let s=new Jn;return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}unbanAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unban`;let o=new Jn;return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkApple(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/apple`;let o=new Jn;return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkCustom(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/custom`;let o=new Jn;return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkDevice(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/device`;let s=new Jn;return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}unlinkEmail(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/email`;let o=new Jn;return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkFacebook(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/facebook`;let o=new Jn;return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkFacebookInstantGame(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/facebookinstantgame`;let o=new Jn;return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkGameCenter(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/gamecenter`;let o=new Jn;return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkGoogle(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/google`;let o=new Jn;return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkSteam(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/steam`;let o=new Jn;return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteWalletLedger(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/wallet/${r=encodeURIComponent(String(r))}`;let s=new Jn;return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}deleteAllData(e){let r=new Jn;return this.httpClient.delete(this.config.host+"/v2/console/all",{params:r,headers:this.getTokenAuthHeaders(e)})}listApiEndpoints(e){let r=new Jn;return this.httpClient.get(this.config.host+"/v2/console/api/endpoints",{params:r,headers:this.getTokenAuthHeaders(e)})}callRpcEndpoint(e,i,r){const o=`/v2/console/api/endpoints/rpc/${i=encodeURIComponent(String(i))}`;let s=new Jn;return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}callApiEndpoint(e,i,r){const o=`/v2/console/api/endpoints/${i=encodeURIComponent(String(i))}`;let s=new Jn;return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}authenticate(e){let r=new Jn;return this.httpClient.post(this.config.host+"/v2/console/authenticate",e,{params:r})}authenticateLogout(e,i){let o=new Jn;return this.httpClient.post(this.config.host+"/v2/console/authenticate/logout",i,{params:o,headers:this.getTokenAuthHeaders(e)})}listChannelMessages(e,i,r,o,s,a,l){let u=new Jn;return i&&(u=u.set("type",i)),r&&(u=u.set("label",r)),o&&(u=u.set("group_id",o)),s&&(u=u.set("user_id_one",s)),a&&(u=u.set("user_id_two",a)),l&&(u=u.set("cursor",l)),this.httpClient.get(this.config.host+"/v2/console/channel",{params:u,headers:this.getTokenAuthHeaders(e)})}getConfig(e){let r=new Jn;return this.httpClient.get(this.config.host+"/v2/console/config",{params:r,headers:this.getTokenAuthHeaders(e)})}listGroups(e,i,r){let s=new Jn;return i&&(s=s.set("filter",i)),r&&(s=s.set("cursor",r)),this.httpClient.get(this.config.host+"/v2/console/group",{params:s,headers:this.getTokenAuthHeaders(e)})}demoteGroupMember(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}/account/${r=encodeURIComponent(String(r))}/demote`;let s=new Jn;return this.httpClient.post(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}promoteGroupMember(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}/account/${r=encodeURIComponent(String(r))}/promote`;let s=new Jn;return this.httpClient.post(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}addGroupUsers(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}/add`;let s=new Jn;return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}deleteGroup(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}`;let o=new Jn;return this.httpClient.delete(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getGroup(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}`;let o=new Jn;return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}updateGroup(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}`;let s=new Jn;return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}exportGroup(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}/export`;let o=new Jn;return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getMembers(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}/member`;let o=new Jn;return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}listLeaderboards(e){let r=new Jn;return this.httpClient.get(this.config.host+"/v2/console/leaderboard",{params:r,headers:this.getTokenAuthHeaders(e)})}deleteLeaderboard(e,i){const r=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}`;let o=new Jn;return this.httpClient.delete(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getLeaderboard(e,i){const r=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}`;let o=new Jn;return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteLeaderboardRecord(e,i,r){const o=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}/owner/${r=encodeURIComponent(String(r))}`;let s=new Jn;return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}listLeaderboardRecords(e,i,r,o,s,a){const l=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}/records`;let c=new Jn;return r&&r.forEach(u=>c=c.append("owner_ids",String(u))),o&&(c=c.set("limit",String(o))),s&&(c=c.set("cursor",s)),a&&(c=c.set("expiry",a)),this.httpClient.get(this.config.host+l,{params:c,headers:this.getTokenAuthHeaders(e)})}listMatches(e,i,r,o,s,a,l,c,u){let d=new Jn;return i&&(d=d.set("limit",String(i))),(r||!1===r)&&(d=d.set("authoritative",String(r))),o&&(d=d.set("label",o)),s&&(d=d.set("min_size",String(s))),a&&(d=d.set("max_size",String(a))),l&&(d=d.set("match_id",l)),c&&(d=d.set("query",c)),u&&(d=d.set("node",u)),this.httpClient.get(this.config.host+"/v2/console/match",{params:d,headers:this.getTokenAuthHeaders(e)})}getMatchState(e,i){const r=`/v2/console/match/${i=encodeURIComponent(String(i))}/state`;let o=new Jn;return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteChannelMessages(e,i,r){let s=new Jn;return i&&(s=s.set("before",i)),r&&r.forEach(a=>s=s.append("ids",String(a))),this.httpClient.delete(this.config.host+"/v2/console/message",{params:s,headers:this.getTokenAuthHeaders(e)})}listPurchases(e,i,r,o){let a=new Jn;return i&&(a=a.set("user_id",i)),r&&(a=a.set("limit",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+"/v2/console/purchase",{params:a,headers:this.getTokenAuthHeaders(e)})}getRuntime(e){let r=new Jn;return this.httpClient.get(this.config.host+"/v2/console/runtime",{params:r,headers:this.getTokenAuthHeaders(e)})}getStatus(e){let r=new Jn;return this.httpClient.get(this.config.host+"/v2/console/status",{params:r,headers:this.getTokenAuthHeaders(e)})}deleteStorage(e){let r=new Jn;return this.httpClient.delete(this.config.host+"/v2/console/storage",{params:r,headers:this.getTokenAuthHeaders(e)})}listStorage(e,i,r,o,s){let l=new Jn;return i&&(l=l.set("user_id",i)),r&&(l=l.set("key",r)),o&&(l=l.set("collection",o)),s&&(l=l.set("cursor",s)),this.httpClient.get(this.config.host+"/v2/console/storage",{params:l,headers:this.getTokenAuthHeaders(e)})}listStorageCollections(e){let r=new Jn;return this.httpClient.get(this.config.host+"/v2/console/storage/collections",{params:r,headers:this.getTokenAuthHeaders(e)})}deleteStorageObject(e,i,r,o,s){const a=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}`;let l=new Jn;return s&&(l=l.set("version",s)),this.httpClient.delete(this.config.host+a,{params:l,headers:this.getTokenAuthHeaders(e)})}getStorage(e,i,r,o){const s=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}`;let a=new Jn;return this.httpClient.get(this.config.host+s,{params:a,headers:this.getTokenAuthHeaders(e)})}writeStorageObject(e,i,r,o,s){const a=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}`;let l=new Jn;return this.httpClient.put(this.config.host+a,s,{params:l,headers:this.getTokenAuthHeaders(e)})}deleteStorageObject2(e,i,r,o,s){const a=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}/${s=encodeURIComponent(String(s))}`;let l=new Jn;return this.httpClient.delete(this.config.host+a,{params:l,headers:this.getTokenAuthHeaders(e)})}listSubscriptions(e,i,r,o){let a=new Jn;return i&&(a=a.set("user_id",i)),r&&(a=a.set("limit",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+"/v2/console/subscription",{params:a,headers:this.getTokenAuthHeaders(e)})}deleteUser(e,i){let o=new Jn;return i&&(o=o.set("username",i)),this.httpClient.delete(this.config.host+"/v2/console/user",{params:o,headers:this.getTokenAuthHeaders(e)})}listUsers(e){let r=new Jn;return this.httpClient.get(this.config.host+"/v2/console/user",{params:r,headers:this.getTokenAuthHeaders(e)})}addUser(e,i){let o=new Jn;return this.httpClient.post(this.config.host+"/v2/console/user",i,{params:o,headers:this.getTokenAuthHeaders(e)})}getTokenAuthHeaders(e){return(new $u).set("Authorization","Bearer "+e)}getBasicAuthHeaders(e,i){return(new $u).set("Authorization","Basic "+btoa(e+":"+i))}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(_C),Et(w3,8))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();const dV=new hi("window"),KEe=[{provide:dV,useFactory:()=>window}],x3="currentSession";let ds=(()=>{class t{constructor(e,i,r,o){be(this,"window",void 0),be(this,"segment",void 0),be(this,"http",void 0),be(this,"consoleService",void 0),be(this,"currentSessionSubject",void 0),be(this,"currentSession",void 0),this.window=e,this.segment=i,this.http=r,this.consoleService=o;const s=JSON.parse(localStorage.getItem(x3));s&&this.segmentIdentify(s),this.currentSessionSubject=new ra(s),this.currentSession=this.currentSessionSubject.asObservable()}get currentSessionValue(){return this.currentSessionSubject.getValue()}get username(){const e=this.currentSessionSubject.getValue().token;return JSON.parse(atob(e.split(".")[1])).usn}get sessionRole(){const e=this.currentSessionSubject.getValue().token;switch(JSON.parse(atob(e.split(".")[1])).rol){case 1:return Di.USER_ROLE_ADMIN;case 2:return Di.USER_ROLE_DEVELOPER;case 3:return Di.USER_ROLE_MAINTAINER;case 4:return Di.USER_ROLE_READONLY;default:return Di.USER_ROLE_UNKNOWN}}login(e,i){return this.consoleService.authenticate({username:e,password:i}).pipe(_s(r=>{localStorage.setItem(x3,JSON.stringify(r)),this.currentSessionSubject.next(r),this.segmentIdentify(r)}))}logout(){return this.currentSessionSubject.getValue()?this.consoleService.authenticateLogout("",{token:this.currentSessionSubject.getValue()?.token}).pipe(_s(()=>{localStorage.removeItem(x3),this.currentSessionSubject.next(null)})):Hd}segmentIdentify(e){const r=JSON.parse(atob(e.token.split(".")[1]));this.segment.identify(null,{username:r.usn,email:r.ema,cookie:r.cki})}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(dV),Et(mC),Et(_C),Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function JEe(t,n){if(1&t&&(A(0,"div",17),J(1),M()),2&t){const e=te();I(1),jn(" ",e.error," ")}}const QEe=function(t){return{"was-validated":t}},fV=function(t){return{"is-invalid":t}};let ZEe=(()=>{class t{constructor(e,i,r,o,s){be(this,"segment",void 0),be(this,"formBuilder",void 0),be(this,"route",void 0),be(this,"router",void 0),be(this,"authenticationService",void 0),be(this,"error",""),be(this,"loginForm",void 0),be(this,"submitted",void 0),be(this,"returnUrl",void 0),this.segment=e,this.formBuilder=i,this.route=r,this.router=o,this.authenticationService=s}ngOnInit(){this.segment.page("/login"),this.loginForm=this.formBuilder.group({username:["",Wo.compose([Wo.required])],password:["",Wo.compose([Wo.required,Wo.minLength(8)])]}),this.returnUrl=this.route.snapshot.queryParams.next||"/"}onSubmit(){this.submitted=!0,this.error="",!this.loginForm.invalid&&this.authenticationService.login(this.f.username.value,this.f.password.value).subscribe(e=>{this.loginForm.reset(),this.submitted=!1,this.router.navigate([this.returnUrl])},e=>{this.error=e,this.submitted=!1})}get f(){return this.loginForm.controls}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(mC),Ae(Pl),Ae(co),Ae(Or),Ae(ds))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],decls:26,vars:14,consts:[[1,"bg-grad","d-flex","h-100"],[1,"align-self-center","mx-auto"],[1,"text-center","mb-4"],["src","/static/svg/logo.svg","alt","Nakama Logo","width","175"],["class","alert alert-warning","role","alert",4,"ngIf"],[1,"card"],[1,"card-body"],[1,"text-center"],[3,"formGroup","ngClass","ngSubmit"],[1,"form-group","form-row"],[1,"col-sm-12"],["for","username"],["type","text","id","username","formControlName","username","required","","autofocus","",1,"form-control",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","password"],["type","password","id","password","formControlName","password","required","",1,"form-control",3,"ngClass"],[1,"btn","btn-primary","btn-lg","btn-block",3,"disabled"],["role","alert",1,"alert","alert-warning"]],template:function(e,i){1&e&&(A(0,"div",0)(1,"div",1)(2,"h1",2),je(3,"img",3),M(),ye(4,JEe,2,1,"div",4),A(5,"div",5)(6,"div",6)(7,"h3",7),J(8,"Login"),M(),A(9,"form",8),He("ngSubmit",function(){return i.onSubmit()}),A(10,"div",9)(11,"div",10)(12,"label",11),J(13,"Username"),M(),je(14,"input",12),A(15,"div",13),J(16,"Please enter a username."),M()()(),A(17,"div",9)(18,"div",10)(19,"label",14),J(20,"Password"),M(),je(21,"input",15),A(22,"div",13),J(23,"Password must be at least 8 characters."),M()()(),A(24,"button",16),J(25,"Login"),M()()()()()()),2&e&&(I(4),N("ngIf",i.error),I(5),N("formGroup",i.loginForm)("ngClass",Lr(8,QEe,i.submitted)),I(5),N("ngClass",Lr(10,fV,i.f.username.dirty&&i.f.username.errors)),I(1),N("hidden",i.f.username.disabled||i.f.username.valid||i.f.username.pristine),I(6),N("ngClass",Lr(12,fV,i.f.password.dirty&&i.f.password.errors)),I(1),N("hidden",i.f.password.disabled||i.f.password.valid||i.f.password.pristine),I(2),N("disabled",!i.loginForm.valid||i.submitted))},dependencies:[Pd,Nn,bl,qa,vl,yl,Ff,Ea,Ya],styles:["div[_ngcontent-%COMP%] .mx-auto[_ngcontent-%COMP%]{width:420px}"]})),t})(),eMe=(()=>{class t{constructor(e,i){be(this,"authService",void 0),be(this,"router",void 0),this.authService=e,this.router=i}canActivate(e,i){return!this.authService.currentSessionValue||(this.router.navigate(["/"]),!1)}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(ds),Et(Or))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})(),tMe=(()=>{class t{constructor(e,i){be(this,"router",void 0),be(this,"authenticationService",void 0),this.router=e,this.authenticationService=i}canActivate(e,i){return!!this.authenticationService.currentSessionValue||(this.router.navigate(["/login"],{queryParams:{next:i.url}}),!1)}canActivateChild(e,i){return this.canActivate(e,i)}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Or),Et(ds))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();class nMe extends g{constructor(n,e){super()}schedule(n,e=0){return this}}class C3 extends nMe{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){if(this.closed)return this;this.state=n;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(n,e,i=0){return setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let r,i=!1;try{this.work(n)}catch(o){i=!0,r=!!o&&o||new Error(o)}if(i)return this.unsubscribe(),r}_unsubscribe(){const n=this.id,e=this.scheduler,i=e.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null}}let pV=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return t.now=()=>Date.now(),t})();class Vh extends pV{constructor(n,e=pV.now){super(n,()=>Vh.delegate&&Vh.delegate!==this?Vh.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(n,e=0,i){return Vh.delegate&&Vh.delegate!==this?Vh.delegate.schedule(n,e,i):super.schedule(n,e,i)}flush(n){const{actions:e}=this;if(this.active)return void e.push(n);let i;this.active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this.active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const Sy=new Vh(C3);class rMe{constructor(n,e,i,r){this.bufferTimeSpan=n,this.bufferCreationInterval=e,this.maxBufferSize=i,this.scheduler=r}call(n,e){return e.subscribe(new sMe(n,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}class oMe{constructor(){this.buffer=[]}}class sMe extends x{constructor(n,e,i,r,o){super(n),this.bufferTimeSpan=e,this.bufferCreationInterval=i,this.maxBufferSize=r,this.scheduler=o,this.contexts=[];const s=this.openContext();if(this.timespanOnly=null==i||i<0,this.timespanOnly)this.add(s.closeAction=o.schedule(gV,e,{subscriber:this,context:s,bufferTimeSpan:e}));else{const l={bufferTimeSpan:e,bufferCreationInterval:i,subscriber:this,scheduler:o};this.add(s.closeAction=o.schedule(mV,e,{subscriber:this,context:s})),this.add(o.schedule(aMe,i,l))}}_next(n){const e=this.contexts,i=e.length;let r;for(let o=0;o0;){const i=n.shift();e.next(i.buffer)}super._complete()}_unsubscribe(){this.contexts=null}onBufferFull(n){this.closeContext(n);const e=n.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){n=this.openContext();const i=this.bufferTimeSpan;this.add(n.closeAction=this.scheduler.schedule(gV,i,{subscriber:this,context:n,bufferTimeSpan:i}))}}openContext(){const n=new oMe;return this.contexts.push(n),n}closeContext(n){this.destination.next(n.buffer);const e=this.contexts;(e?e.indexOf(n):-1)>=0&&e.splice(e.indexOf(n),1)}}function gV(t){const n=t.subscriber,e=t.context;e&&n.closeContext(e),n.closed||(t.context=n.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function aMe(t){const{bufferCreationInterval:n,bufferTimeSpan:e,subscriber:i,scheduler:r}=t,o=i.openContext();i.closed||(i.add(o.closeAction=r.schedule(mV,e,{subscriber:i,context:o})),this.schedule(t,n))}function mV(t){const{subscriber:n,context:e}=t;n.closeContext(e)}class lMe{constructor(n,e){this.compare=n,this.keySelector=e}call(n,e){return e.subscribe(new cMe(n,this.compare,this.keySelector))}}class cMe extends x{constructor(n,e,i){super(n),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(n,e){return n===e}_next(n){let e;try{const{keySelector:r}=this;e=r?r(n):n}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(n))}}function Us(t,n,e,i){return ve(e)&&(i=e,e=void 0),i?Us(t,n,e).pipe(Pe(r=>R(r)?i(...r):i(r))):new P(r=>{vV(t,n,function o(s){r.next(arguments.length>1?Array.prototype.slice.call(arguments):s)},r,e)})}function vV(t,n,e,i,r){let o;if(function dMe(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const s=t;t.addEventListener(n,e,r),o=()=>s.removeEventListener(n,e,r)}else if(function hMe(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const s=t;t.on(n,e),o=()=>s.off(n,e)}else if(function uMe(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const s=t;t.addListener(n,e),o=()=>s.removeListener(n,e)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let s=0,a=t.length;s=0}function sv(t=0,n,e){let i=-1;return yV(n)?i=Number(n)<1?1:Number(n):ze(n)&&(e=n),ze(e)||(e=Sy),new P(r=>{const o=yV(t)?t:+t-e.now();return e.schedule(fMe,o,{index:0,period:i,subscriber:r})})}function fMe(t){const{index:n,period:e,subscriber:i}=t;if(i.next(n),!i.closed){if(-1===e)return i.complete();t.index=n+1,this.schedule(t,e)}}function bV(...t){if(1===t.length){if(!R(t[0]))return t[0];t=t[0]}return yt(t,void 0).lift(new pMe)}class pMe{call(n,e){return e.subscribe(new gMe(n))}}class gMe extends _M{constructor(n){super(n),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(n){this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{for(let i=0;ithis.index}hasCompleted(){return this.array.length===this.index}}class _Me extends de{constructor(n,e,i){super(n),this.parent=e,this.observable=i,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[Zt](){return this}next(){const n=this.buffer;return 0===n.length&&this.isComplete?{value:null,done:!0}:{value:n.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(n){this.buffer.push(n),this.parent.checkIterators()}subscribe(){return Le(this.observable,new vr(this))}}function Po(t){return n=>n.lift(new xMe(t))}class xMe{constructor(n){this.notifier=n}call(n,e){const i=new CMe(n),r=Le(this.notifier,new vr(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class CMe extends de{constructor(n){super(n),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function S3(...t){return n=>{let e;return"function"==typeof t[t.length-1]&&(e=t.pop()),n.lift(new SMe(t,e))}}class SMe{constructor(n,e){this.observables=n,this.project=e}call(n,e){return e.subscribe(new kMe(n,this.observables,this.project))}}class kMe extends _M{constructor(n,e,i){super(n),this.observables=e,this.project=i,this.toRespond=[];const r=e.length;this.values=new Array(r);for(let o=0;o0){const o=r.indexOf(i);-1!==o&&r.splice(o,1)}}notifyComplete(){}_next(n){if(0===this.toRespond.length){const e=[n,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(n){let e;try{e=this.project.apply(this,n)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}class Pu{constructor(n,e,i){this.kind=n,this.value=e,this.error=i,this.hasValue="N"===n}observe(n){switch(this.kind){case"N":return n.next&&n.next(this.value);case"E":return n.error&&n.error(this.error);case"C":return n.complete&&n.complete()}}do(n,e,i){switch(this.kind){case"N":return n&&n(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(n,e,i){return n&&"function"==typeof n.next?this.observe(n):this.do(n,e,i)}toObservable(){switch(this.kind){case"N":return oi(this.value);case"E":return qp(this.error);case"C":return Nx()}throw new Error("unexpected notification kind value")}static createNext(n){return typeof n<"u"?new Pu("N",n):Pu.undefinedValueNotification}static createError(n){return new Pu("E",void 0,n)}static createComplete(){return Pu.completeNotification}}function k3(t,n=Sy){const i=function DMe(t){return t instanceof Date&&!isNaN(+t)}(t)?+t-n.now():Math.abs(t);return r=>r.lift(new TMe(i,n))}Pu.completeNotification=new Pu("C"),Pu.undefinedValueNotification=new Pu("N",void 0);class TMe{constructor(n,e){this.delay=n,this.scheduler=e}call(n,e){return e.subscribe(new D3(n,this.delay,this.scheduler))}}class D3 extends x{constructor(n,e,i){super(n),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(n){const e=n.source,i=e.queue,r=n.scheduler,o=n.destination;for(;i.length>0&&i[0].time-r.now()<=0;)i.shift().notification.observe(o);if(i.length>0){const s=Math.max(0,i[0].time-r.now());this.schedule(n,s)}else this.unsubscribe(),e.active=!1}_schedule(n){this.active=!0,this.destination.add(n.schedule(D3.dispatch,this.delay,{source:this,destination:this.destination,scheduler:n}))}scheduleNotification(n){if(!0===this.errored)return;const e=this.scheduler,i=new AMe(e.now()+this.delay,n);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(n){this.scheduleNotification(Pu.createNext(n))}_error(n){this.errored=!0,this.queue=[],this.destination.error(n),this.unsubscribe()}_complete(){this.scheduleNotification(Pu.createComplete()),this.unsubscribe()}}class AMe{constructor(n,e){this.time=n,this.notification=e}}function jMe(t,n){if(1&t){const e=Bt();A(0,"button",1),He("click",function(){return st(e),at(te().close())}),A(1,"span",2),J(2,"\xd7"),M()()}}const av=["*"],b3e=["dialog"];function Lf(t){return null!=t}typeof Element<"u"&&!Element.prototype.closest&&(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(t){let n=this;if(!document.documentElement.contains(n))return null;do{if(n.matches(t))return n;n=n.parentElement||n.parentNode}while(null!==n&&1===n.nodeType);return null});const xV={animation:!0,transitionTimerDelayMs:5};let Ma=(()=>{class t{constructor(){this.animation=xV.animation}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const TIe=()=>{},{transitionTimerDelayMs:AIe}=xV,DC=new Map,Ia=(t,n,e)=>{let i=e.context||{};const r=DC.get(t);if(r)switch(e.runningTransition){case"continue":return Hd;case"stop":r.transition$.complete(),i=Object.assign(r.context,i),DC.delete(t)}!function kC(t){return(t||document.body).offsetHeight}(t);const o=n(t,i)||TIe;if(!e.animation||"none"===window.getComputedStyle(t).transitionProperty)return o(),oi(void 0);const s=new Me,a=s.pipe(function wMe(...t){return n=>Ox(n,oi(...t))}(!0));DC.set(t,{transition$:s,context:i});const l=function DIe(t){const{transitionDelay:n,transitionDuration:e}=window.getComputedStyle(t);return 1e3*(parseFloat(n)+parseFloat(e))}(t),c=Us(t,"transitionend").pipe(Po(a),bs(({target:h})=>h===t));return bV(sv(l+AIe).pipe(Po(a)),c).pipe(Po(a)).subscribe(()=>{DC.delete(t),o(),s.next(),s.complete()}),s.asObservable()};let AV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[ia]}),t})(),IIe=(()=>{class t{constructor(e){this.dismissible=!0,this.type="warning",this.animation=e.animation}}return t.\u0275fac=function(e){return new(e||t)(Et(Ma))},t.\u0275prov=Yt({factory:function(){return new t(Et(Ma))},token:t,providedIn:"root"}),t})();const FIe=({classList:t})=>{t.remove("show")};let Go=(()=>{class t{constructor(e,i,r){this._renderer=i,this._element=r,this.closed=new vt,this.dismissible=e.dismissible,this.type=e.type,this.animation=e.animation}close(){const e=Ia(this._element.nativeElement,FIe,{animation:this.animation,runningTransition:"continue"});return e.subscribe(()=>this.closed.emit()),e}ngOnChanges(e){const i=e.type;i&&!i.firstChange&&(this._renderer.removeClass(this._element.nativeElement,`alert-${i.previousValue}`),this._renderer.addClass(this._element.nativeElement,`alert-${i.currentValue}`))}ngOnInit(){this._renderer.addClass(this._element.nativeElement,`alert-${this.type}`)}}return t.\u0275fac=function(e){return new(e||t)(Ae(IIe),Ae(Hs),Ae(xi))},t.\u0275cmp=ln({type:t,selectors:[["ngb-alert"]],hostAttrs:["role","alert",1,"alert","show"],hostVars:4,hostBindings:function(e,i){2&e&&Kn("fade",i.animation)("alert-dismissible",i.dismissible)},inputs:{dismissible:"dismissible",type:"type",animation:"animation"},outputs:{closed:"closed"},exportAs:["ngbAlert"],features:[ui],ngContentSelectors:av,decls:2,vars:1,consts:function(){let n;return n=$localize`:@@ngb.alert.close␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`,[["type","button","class","close","aria-label",n,3,"click",4,"ngIf"],["type","button","aria-label",n,1,"close",3,"click"],["aria-hidden","true"]]},template:function(e,i){1&e&&(Tu(),Au(0),ye(1,jMe,3,0,"button",0)),2&e&&(I(1),N("ngIf",i.dismissible))},dependencies:[Nn],styles:["ngb-alert{display:block}"],encapsulation:2,changeDetection:0}),t})(),EV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[ia]}),t})(),TC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=bn({type:t,selectors:[["","ngbButtonLabel",""]],hostVars:8,hostBindings:function(e,i){2&e&&Kn("btn",!0)("active",i.active)("disabled",i.disabled)("focus",i.focused)}}),t})(),OIe=0,M3=(()=>{class t{constructor(){this._radios=new Set,this._value=null,this.name="ngb-radio-"+OIe++,this.onChange=e=>{},this.onTouched=()=>{}}get disabled(){return this._disabled}set disabled(e){this.setDisabledState(e)}onRadioChange(e){this.writeValue(e.value),this.onChange(e.value)}onRadioValueUpdate(){this._updateRadiosValue()}register(e){this._radios.add(e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._disabled=e,this._updateRadiosDisabled()}unregister(e){this._radios.delete(e)}writeValue(e){this._value=e,this._updateRadiosValue()}_updateRadiosValue(){this._radios.forEach(e=>e.updateValue(this._value))}_updateRadiosDisabled(){this._radios.forEach(e=>e.updateDisabled())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=bn({type:t,selectors:[["","ngbRadioGroup",""]],hostAttrs:["role","radiogroup"],inputs:{name:"name"},features:[lo([{provide:Aa,useExisting:yr(()=>t),multi:!0}])]}),t})(),MV=(()=>{class t{constructor(e,i,r,o,s){this._group=e,this._label=i,this._renderer=r,this._element=o,this._cd=s,this._value=null,this._group.register(this),this.updateDisabled()}set value(e){this._value=e;const i=e?e.toString():"";this._renderer.setProperty(this._element.nativeElement,"value",i),this._group.onRadioValueUpdate()}set disabled(e){this._disabled=!1!==e,this.updateDisabled()}set focused(e){this._label&&(this._label.focused=e),e||this._group.onTouched()}get checked(){return this._checked}get disabled(){return this._group.disabled||this._disabled}get value(){return this._value}get nameAttr(){return this.name||this._group.name}ngOnDestroy(){this._group.unregister(this)}onChange(){this._group.onRadioChange(this)}updateValue(e){this.value!==e&&this._cd.markForCheck(),this._checked=this.value===e,this._label.active=this._checked}updateDisabled(){this._label.disabled=this.disabled}}return t.\u0275fac=function(e){return new(e||t)(Ae(M3),Ae(TC),Ae(Hs),Ae(xi),Ae(hs))},t.\u0275dir=bn({type:t,selectors:[["","ngbButton","","type","radio"]],hostVars:3,hostBindings:function(e,i){1&e&&He("change",function(){return i.onChange()})("focus",function(){return i.focused=!0})("blur",function(){return i.focused=!1}),2&e&&wc("checked",i.checked)("disabled",i.disabled)("name",i.nameAttr)},inputs:{value:"value",disabled:"disabled",name:"name"}}),t})(),IV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({}),t})(),NV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[ia]}),t})(),RV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({}),t})();var Nr=(()=>(function(t){t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown"}(Nr||(Nr={})),Nr))();const IC=(t,n)=>!!n&&n.some(e=>e.contains(t)),BV=(t,n)=>!n||null!=function SIe(t,n){return!n||typeof t.closest>"u"?null:t.closest(n)}(t,n),sFe=typeof navigator<"u"&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent)),aFe=t=>sFe?()=>setTimeout(()=>t(),100):t;function Dy(t,n,e,i,r,o,s,a){e&&t.runOutsideAngular(aFe(()=>{const c=Us(n,"keydown").pipe(Po(r),bs(d=>d.which===Nr.Escape),_s(d=>d.preventDefault())),u=Us(n,"mousedown").pipe(Pe(d=>{const f=d.target;return 2!==d.button&&!IC(f,s)&&("inside"===e?IC(f,o)&&BV(f,a):"outside"===e?!IC(f,o):BV(f,a)||!IC(f,o))}),Po(r)),h=Us(n,"mouseup").pipe(S3(u),bs(([d,f])=>f),k3(0),Po(r));bV([c.pipe(Pe(d=>0)),h.pipe(Pe(d=>1))]).subscribe(d=>t.run(()=>i(d)))}))}const HV=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function VV(t){const n=Array.from(t.querySelectorAll(HV)).filter(e=>-1!==e.tabIndex);return[n[0],n[n.length-1]]}const cFe=/\s+/,UV=new class lFe{getAllStyles(n){return window.getComputedStyle(n)}getStyle(n,e){return this.getAllStyles(n)[e]}isStaticPositioned(n){return"static"===(this.getStyle(n,"position")||"static")}offsetParent(n){let e=n.offsetParent||document.documentElement;for(;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement}position(n,e=!0){let i,r={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(n,"position"))i=n.getBoundingClientRect(),i={top:i.top,bottom:i.bottom,left:i.left,right:i.right,height:i.height,width:i.width};else{const o=this.offsetParent(n);i=this.offset(n,!1),o!==document.documentElement&&(r=this.offset(o,!1)),r.top+=o.clientTop,r.left+=o.clientLeft}return i.top-=r.top,i.bottom-=r.top,i.left-=r.left,i.right-=r.left,e&&(i.top=Math.round(i.top),i.bottom=Math.round(i.bottom),i.left=Math.round(i.left),i.right=Math.round(i.right)),i}offset(n,e=!0){const i=n.getBoundingClientRect(),r_top=window.pageYOffset-document.documentElement.clientTop,r_left=window.pageXOffset-document.documentElement.clientLeft;let o={height:i.height||n.offsetHeight,width:i.width||n.offsetWidth,top:i.top+r_top,bottom:i.bottom+r_top,left:i.left+r_left,right:i.right+r_left};return e&&(o.height=Math.round(o.height),o.width=Math.round(o.width),o.top=Math.round(o.top),o.bottom=Math.round(o.bottom),o.left=Math.round(o.left),o.right=Math.round(o.right)),o}positionElements(n,e,i,r){const[o="top",s="center"]=i.split("-"),a=r?this.offset(n,!1):this.position(n,!1),l=this.getAllStyles(e),c=parseFloat(l.marginTop),u=parseFloat(l.marginBottom),h=parseFloat(l.marginLeft),d=parseFloat(l.marginRight);let f=0,p=0;switch(o){case"top":f=a.top-(e.offsetHeight+c+u);break;case"bottom":f=a.top+a.height;break;case"left":p=a.left-(e.offsetWidth+h+d);break;case"right":p=a.left+a.width}switch(s){case"top":f=a.top;break;case"bottom":f=a.top+a.height-e.offsetHeight;break;case"left":p=a.left;break;case"right":p=a.left+a.width-e.offsetWidth;break;case"center":"top"===o||"bottom"===o?p=a.left+a.width/2-e.offsetWidth/2:f=a.top+a.height/2-e.offsetHeight/2}e.style.transform=`translate(${Math.round(p)}px, ${Math.round(f)}px)`;const m=e.getBoundingClientRect(),w=document.documentElement,C=window.innerHeight||w.clientHeight,k=window.innerWidth||w.clientWidth;return m.left>=0&&m.top>=0&&m.right<=k&&m.bottom<=C}};function Ty(t,n,e,i,r){let o=Array.isArray(e)?e:e.split(cFe);const s=["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"],a=n.classList,l=f=>{const[p,m]=f.split("-"),w=[];return r&&(w.push(`${r}-${p}`),m&&w.push(`${r}-${p}-${m}`),w.forEach(C=>{a.add(C)})),w};r&&s.forEach(f=>{a.remove(`${r}-${f}`)});let c=o.findIndex(f=>"auto"===f);c>=0&&s.forEach(function(f){null==o.find(p=>-1!==p.search("^"+f))&&o.splice(c++,1,f)});const u=n.style;u.position="absolute",u.top="0",u.left="0",u["will-change"]="transform";let h=null,d=!1;for(h of o){let f=l(h);if(UV.positionElements(t,n,h,i)){d=!0;break}r&&f.forEach(p=>{a.remove(p)})}return d||(h=o[0],l(h),UV.positionElements(t,n,h,i)),h}new Date(1882,10,12),new Date(2174,10,25);let QV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[ia,QH]}),t})(),wFe=(()=>{class t{constructor(){this.autoClose=!0,this.placement=["bottom-left","bottom-right","top-left","top-right"]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Yt({factory:function(){return new t},token:t,providedIn:"root"}),t})(),ZV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=bn({type:t,selectors:[["",8,"navbar"]]}),t})(),Nf=(()=>{class t{constructor(e){this.elementRef=e,this._disabled=!1}set disabled(e){this._disabled=""===e||!0===e}get disabled(){return this._disabled}}return t.\u0275fac=function(e){return new(e||t)(Ae(xi))},t.\u0275dir=bn({type:t,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:2,hostBindings:function(e,i){2&e&&Kn("disabled",i.disabled)},inputs:{disabled:"disabled"}}),t})(),Rf=(()=>{class t{constructor(e,i){this.dropdown=e,this.placement="bottom",this.isOpen=!1,this.nativeElement=i.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(Ae(yr(()=>Bu)),Ae(xi))},t.\u0275dir=bn({type:t,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(e,i,r){if(1&e&&Ci(r,Nf,4),2&e){let o;En(o=Mn())&&(i.menuItems=o)}},hostVars:5,hostBindings:function(e,i){1&e&&He("keydown.ArrowUp",function(o){return i.dropdown.onKeyDown(o)})("keydown.ArrowDown",function(o){return i.dropdown.onKeyDown(o)})("keydown.Home",function(o){return i.dropdown.onKeyDown(o)})("keydown.End",function(o){return i.dropdown.onKeyDown(o)})("keydown.Enter",function(o){return i.dropdown.onKeyDown(o)})("keydown.Space",function(o){return i.dropdown.onKeyDown(o)})("keydown.Tab",function(o){return i.dropdown.onKeyDown(o)})("keydown.Shift.Tab",function(o){return i.dropdown.onKeyDown(o)}),2&e&&(Ft("x-placement",i.placement),Kn("dropdown-menu",!0)("show",i.dropdown.isOpen()))}}),t})(),NC=(()=>{class t{constructor(e,i){this.dropdown=e,this.nativeElement=i.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(Ae(yr(()=>Bu)),Ae(xi))},t.\u0275dir=bn({type:t,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,i){2&e&&Ft("aria-expanded",i.dropdown.isOpen())}}),t})(),rg=(()=>{class t extends NC{constructor(e,i){super(e,i)}}return t.\u0275fac=function(e){return new(e||t)(Ae(yr(()=>Bu)),Ae(xi))},t.\u0275dir=bn({type:t,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,i){1&e&&He("click",function(){return i.dropdown.toggle()})("keydown.ArrowUp",function(o){return i.dropdown.onKeyDown(o)})("keydown.ArrowDown",function(o){return i.dropdown.onKeyDown(o)})("keydown.Home",function(o){return i.dropdown.onKeyDown(o)})("keydown.End",function(o){return i.dropdown.onKeyDown(o)})("keydown.Tab",function(o){return i.dropdown.onKeyDown(o)})("keydown.Shift.Tab",function(o){return i.dropdown.onKeyDown(o)}),2&e&&Ft("aria-expanded",i.dropdown.isOpen())},features:[lo([{provide:NC,useExisting:yr(()=>t)}]),Bi]}),t})(),Bu=(()=>{class t{constructor(e,i,r,o,s,a,l){this._changeDetector=e,this._document=r,this._ngZone=o,this._elementRef=s,this._renderer=a,this._closed$=new Me,this._bodyContainer=null,this._open=!1,this.openChange=new vt,this.placement=i.placement,this.container=i.container,this.autoClose=i.autoClose,this.display=l?"static":"dynamic",this._zoneSubscription=o.onStable.subscribe(()=>{this._positionMenu()})}ngAfterContentInit(){this._ngZone.onStable.pipe(Rl(1)).subscribe(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()})}ngOnChanges(e){e.container&&this._open&&this._applyContainer(this.container),e.placement&&!e.placement.isFirstChange&&this._applyPlacementClasses()}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&this._anchor.nativeElement.focus())}_setCloseHandlers(){Dy(this._ngZone,this._document,this.autoClose,e=>{this.close(),0===e&&this._anchor.nativeElement.focus()},this._closed$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._closed$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this._resetContainer(),this._closed$.next(),this._zoneSubscription.unsubscribe()}onKeyDown(e){const i=e.which,r=this._getMenuElements();let o=-1,s=null;const a=this._isEventFromToggle(e);if(!a&&r.length&&r.forEach((l,c)=>{l.contains(e.target)&&(s=l),l===this._document.activeElement&&(o=c)}),i!==Nr.Space&&i!==Nr.Enter){if(i!==Nr.Tab){if(a||s){if(this.open(),r.length){switch(i){case Nr.ArrowDown:o=Math.min(o+1,r.length-1);break;case Nr.ArrowUp:if(this._isDropup()&&-1===o){o=r.length-1;break}o=Math.max(o-1,0);break;case Nr.Home:o=0;break;case Nr.End:o=r.length-1}r[o].focus()}e.preventDefault()}}else if(e.target&&this.isOpen()&&this.autoClose){if(this._anchor.nativeElement===e.target)return void("body"!==this.container||e.shiftKey?e.shiftKey&&this.close():(this._renderer.setAttribute(this._menu.nativeElement,"tabindex","0"),this._menu.nativeElement.focus(),this._renderer.removeAttribute(this._menu.nativeElement,"tabindex")));if("body"===this.container){const l=this._menu.nativeElement.querySelectorAll(HV);e.shiftKey&&e.target===l[0]?(this._anchor.nativeElement.focus(),e.preventDefault()):!e.shiftKey&&e.target===l[l.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else Us(e.target,"focusout").pipe(Rl(1)).subscribe(({relatedTarget:l})=>{this._elementRef.nativeElement.contains(l)||this.close()})}}else s&&(!0===this.autoClose||"inside"===this.autoClose)&&Us(s,"click").pipe(Rl(1)).subscribe(()=>this.close())}_isDropup(){return this._elementRef.nativeElement.classList.contains("dropup")}_isEventFromToggle(e){return this._anchor.nativeElement.contains(e.target)}_getMenuElements(){const e=this._menu;return null==e?[]:e.menuItems.filter(i=>!i.disabled).map(i=>i.elementRef.nativeElement)}_positionMenu(){const e=this._menu;this.isOpen()&&e&&this._applyPlacementClasses("dynamic"===this.display?Ty(this._anchor.nativeElement,this._bodyContainer||this._menu.nativeElement,this.placement,"body"===this.container):this._getFirstPlacement(this.placement))}_getFirstPlacement(e){return Array.isArray(e)?e[0]:e.split(" ")[0]}_resetContainer(){const e=this._renderer;if(this._menu){const r=this._menu.nativeElement;e.appendChild(this._elementRef.nativeElement,r),e.removeStyle(r,"position"),e.removeStyle(r,"transform")}this._bodyContainer&&(e.removeChild(this._document.body,this._bodyContainer),this._bodyContainer=null)}_applyContainer(e=null){if(this._resetContainer(),"body"===e){const i=this._renderer,r=this._menu.nativeElement,o=this._bodyContainer=this._bodyContainer||i.createElement("div");i.setStyle(o,"position","absolute"),i.setStyle(r,"position","static"),i.setStyle(o,"z-index","1050"),i.appendChild(o,r),i.appendChild(this._document.body,o)}}_applyPlacementClasses(e){const i=this._menu;if(i){e||(e=this._getFirstPlacement(this.placement));const r=this._renderer,o=this._elementRef.nativeElement;r.removeClass(o,"dropup"),r.removeClass(o,"dropdown"),i.placement="static"===this.display?null:e;const s=-1!==e.search("^top")?"dropup":"dropdown";r.addClass(o,s);const a=this._bodyContainer;a&&(r.removeClass(a,"dropup"),r.removeClass(a,"dropdown"),r.addClass(a,s))}}}return t.\u0275fac=function(e){return new(e||t)(Ae(hs),Ae(wFe),Ae(no),Ae(br),Ae(xi),Ae(Hs),Ae(ZV,8))},t.\u0275dir=bn({type:t,selectors:[["","ngbDropdown",""]],contentQueries:function(e,i,r){if(1&e&&(Ci(r,Rf,5),Ci(r,NC,5)),2&e){let o;En(o=Mn())&&(i._menu=o.first),En(o=Mn())&&(i._anchor=o.first)}},hostVars:2,hostBindings:function(e,i){2&e&&Kn("show",i.isOpen())},inputs:{_open:["open","_open"],placement:"placement",container:"container",autoClose:"autoClose",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],features:[ui]}),t})(),ez=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({}),t})(),tz=(()=>{class t{constructor(e){this.backdrop=!0,this.keyboard=!0,this.animation=e.animation}}return t.\u0275fac=function(e){return new(e||t)(Et(Ma))},t.\u0275prov=Yt({factory:function(){return new t(Et(Ma))},token:t,providedIn:"root"}),t})();class og{constructor(n,e,i){this.nodes=n,this.viewRef=e,this.componentRef=i}}class j3{constructor(n,e,i,r,o,s,a){this._type=n,this._injector=e,this._viewContainerRef=i,this._renderer=r,this._ngZone=o,this._componentFactoryResolver=s,this._applicationRef=a,this._windowRef=null,this._contentRef=null}open(n,e,i=!1){this._windowRef||(this._contentRef=this._getContentRef(n,e),this._windowRef=this._viewContainerRef.createComponent(this._componentFactoryResolver.resolveComponentFactory(this._type),this._viewContainerRef.length,this._injector,this._contentRef.nodes));const{nativeElement:r}=this._windowRef.location,s=this._ngZone.onStable.asObservable().pipe(Rl(1)).pipe(et(()=>this._ngZone.run(()=>Ia(r,({classList:a})=>a.add("show"),{animation:i,runningTransition:"continue"}))));return{windowRef:this._windowRef,transition$:s}}close(n=!1){return this._windowRef?Ia(this._windowRef.location.nativeElement,({classList:e})=>e.remove("show"),{animation:n,runningTransition:"stop"}).pipe(_s(()=>{var e;this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),null!==(e=this._contentRef)&&void 0!==e&&e.viewRef&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):oi(void 0)}_getContentRef(n,e){if(n){if(n instanceof Ki){const i=n.createEmbeddedView(e);return this._applicationRef.attachView(i),new og([i.rootNodes],i)}return new og([[this._renderer.createText(`${n}`)]])}return new og([])}}const xFe=()=>{};let nz=(()=>{class t{constructor(e){this._document=e}compensate(){const e=this._getWidth();return this._isPresent(e)?this._adjustBody(e):xFe}_adjustBody(e){const i=this._document.body,r=i.style.paddingRight,o=parseFloat(window.getComputedStyle(i)["padding-right"]);return i.style["padding-right"]=`${o+e}px`,()=>i.style["padding-right"]=r}_isPresent(e){const i=this._document.body.getBoundingClientRect();return window.innerWidth-(i.left+i.right)>=e-.1*e}_getWidth(){const e=this._document.createElement("div");e.className="modal-scrollbar-measure";const i=this._document.body;i.appendChild(e);const r=e.getBoundingClientRect().width-e.clientWidth;return i.removeChild(e),r}}return t.\u0275fac=function(e){return new(e||t)(Et(no))},t.\u0275prov=Yt({factory:function(){return new t(Et(no))},token:t,providedIn:"root"}),t})(),CFe=(()=>{class t{constructor(e,i){this._el=e,this._zone=i}ngOnInit(){this._zone.onStable.asObservable().pipe(Rl(1)).subscribe(()=>{Ia(this._el.nativeElement,({classList:e})=>e.add("show"),{animation:this.animation,runningTransition:"continue"})})}hide(){return Ia(this._el.nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return t.\u0275fac=function(e){return new(e||t)(Ae(xi),Ae(br))},t.\u0275cmp=ln({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:6,hostBindings:function(e,i){2&e&&(Eu("modal-backdrop"+(i.backdropClass?" "+i.backdropClass:"")),Kn("show",!i.animation)("fade",i.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})();class iz{close(n){}dismiss(n){}}class SFe{constructor(n,e,i,r){this._windowCmptRef=n,this._contentRef=e,this._backdropCmptRef=i,this._beforeDismiss=r,this._closed=new Me,this._dismissed=new Me,this._hidden=new Me,n.instance.dismissEvent.subscribe(o=>{this.dismiss(o)}),this.result=new Promise((o,s)=>{this._resolve=o,this._reject=s}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(Po(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(Po(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(n){this._windowCmptRef&&(this._closed.next(n),this._resolve(n),this._removeModalElements())}_dismiss(n){this._dismissed.next(n),this._reject(n),this._removeModalElements()}dismiss(n){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();e&&e.then?e.then(i=>{!1!==i&&this._dismiss(n)},()=>{}):!1!==e&&this._dismiss(n)}else this._dismiss(n)}_removeModalElements(){const n=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():oi(void 0);n.subscribe(()=>{const{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),xC(n,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var My=(()=>(function(t){t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC"}(My||(My={})),My))();let kFe=(()=>{class t{constructor(e,i,r){this._document=e,this._elRef=i,this._zone=r,this._closed$=new Me,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new vt,this.shown=new Me,this.hidden=new Me}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement}ngAfterViewInit(){this._show()}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:e}=this._elRef,i={animation:this.animation,runningTransition:"stop"},s=xC(Ia(e,()=>e.classList.remove("show"),i),Ia(this._dialogEl.nativeElement,()=>{},i));return s.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),s}_show(){const{nativeElement:e}=this._elRef,i={animation:this.animation,runningTransition:"continue"};xC(Ia(e,()=>e.classList.add("show"),i),Ia(this._dialogEl.nativeElement,()=>{},i)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:e}=this._elRef;this._zone.runOutsideAngular(()=>{Us(e,"keydown").pipe(Po(this._closed$),bs(r=>r.which===Nr.Escape)).subscribe(r=>{this.keyboard?requestAnimationFrame(()=>{r.defaultPrevented||this._zone.run(()=>this.dismiss(My.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let i=!1;Us(this._dialogEl.nativeElement,"mousedown").pipe(Po(this._closed$),_s(()=>i=!1),ec(()=>Us(e,"mouseup").pipe(Po(this._closed$),Rl(1))),bs(({target:r})=>e===r)).subscribe(()=>{i=!0}),Us(e,"click").pipe(Po(this._closed$)).subscribe(({target:r})=>{e===r&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!i&&this._zone.run(()=>this.dismiss(My.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:e}=this._elRef;if(!e.contains(document.activeElement)){const i=e.querySelector("[ngbAutofocus]"),r=VV(e)[0];(i||r||e).focus()}}_restoreFocus(){const e=this._document.body,i=this._elWithFocus;let r;r=i&&i.focus&&e.contains(i)?i:e,this._zone.runOutsideAngular(()=>{setTimeout(()=>r.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&Ia(this._elRef.nativeElement,({classList:e})=>(e.add("modal-static"),()=>e.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return t.\u0275fac=function(e){return new(e||t)(Ae(no),Ae(xi),Ae(br))},t.\u0275cmp=ln({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(e,i){if(1&e&&Do(b3e,7),2&e){let r;En(r=Mn())&&(i._dialogEl=r.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(e,i){2&e&&(Ft("aria-modal",!0)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy),Eu("modal d-block"+(i.windowClass?" "+i.windowClass:"")),Kn("fade",i.animation))},inputs:{backdrop:"backdrop",keyboard:"keyboard",animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",centered:"centered",scrollable:"scrollable",size:"size",windowClass:"windowClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:av,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(e,i){1&e&&(Tu(),A(0,"div",0,1)(2,"div",2),Au(3),M()()),2&e&&Eu("modal-dialog"+(i.size?" modal-"+i.size:"")+(i.centered?" modal-dialog-centered":"")+(i.scrollable?" modal-dialog-scrollable":""))},styles:["ngb-modal-window .component-host-scrollable{-ms-flex-direction:column;display:-ms-flexbox;display:flex;flex-direction:column;overflow:hidden}"],encapsulation:2}),t})(),rz=(()=>{class t{constructor(e,i,r,o,s,a){this._applicationRef=e,this._injector=i,this._document=r,this._scrollBar=o,this._rendererFactory=s,this._ngZone=a,this._activeWindowCmptHasChanged=new Me,this._ariaHiddenValues=new Map,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","keyboard","scrollable","size","windowClass"],this._windowCmpts=[],this._activeInstances=new vt,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const l=this._windowCmpts[this._windowCmpts.length-1];((t,n,e,i=!1)=>{t.runOutsideAngular(()=>{const r=Us(n,"focusin").pipe(Po(e),Pe(o=>o.target));Us(n,"keydown").pipe(Po(e),bs(o=>o.which===Nr.Tab),S3(r)).subscribe(([o,s])=>{const[a,l]=VV(n);(s===a||s===n)&&o.shiftKey&&(l.focus(),o.preventDefault()),s===l&&!o.shiftKey&&(a.focus(),o.preventDefault())}),i&&Us(n,"click").pipe(Po(e),S3(r),Pe(o=>o[1])).subscribe(o=>o.focus())})})(this._ngZone,l.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(l.location.nativeElement)}})}open(e,i,r,o){const s=o.container instanceof HTMLElement?o.container:Lf(o.container)?this._document.querySelector(o.container):this._document.body,a=this._rendererFactory.createRenderer(null,null),l=this._scrollBar.compensate(),c=()=>{this._modalRefs.length||(a.removeClass(this._document.body,"modal-open"),this._revertAriaHidden())};if(!s)throw new Error(`The specified modal container "${o.container||"body"}" was not found in the DOM.`);const u=new iz,h=this._getContentRef(e,o.injector||i,r,u,o);let d=!1!==o.backdrop?this._attachBackdrop(e,s):void 0,f=this._attachWindowComponent(e,s,h),p=new SFe(f,h,d,o.beforeDismiss);return this._registerModalRef(p),this._registerWindowCmpt(f),p.result.then(l,l),p.result.then(c,c),u.close=m=>{p.close(m)},u.dismiss=m=>{p.dismiss(m)},this._applyWindowOptions(f.instance,o),1===this._modalRefs.length&&a.addClass(this._document.body,"modal-open"),d&&d.instance&&this._applyBackdropOptions(d.instance,o),p}get activeInstances(){return this._activeInstances}dismissAll(e){this._modalRefs.forEach(i=>i.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e,i){let o=e.resolveComponentFactory(CFe).create(this._injector);return this._applicationRef.attachView(o.hostView),i.appendChild(o.location.nativeElement),o}_attachWindowComponent(e,i,r){let s=e.resolveComponentFactory(kFe).create(this._injector,r.nodes);return this._applicationRef.attachView(s.hostView),i.appendChild(s.location.nativeElement),s}_applyWindowOptions(e,i){this._windowAttributes.forEach(r=>{Lf(i[r])&&(e[r]=i[r])})}_applyBackdropOptions(e,i){this._backdropAttributes.forEach(r=>{Lf(i[r])&&(e[r]=i[r])})}_getContentRef(e,i,r,o,s){return r?r instanceof Ki?this._createFromTemplateRef(r,o):function SC(t){return"string"==typeof t}(r)?this._createFromString(r):this._createFromComponent(e,i,r,o,s):new og([])}_createFromTemplateRef(e,i){const o=e.createEmbeddedView({$implicit:i,close(s){i.close(s)},dismiss(s){i.dismiss(s)}});return this._applicationRef.attachView(o),new og([o.rootNodes],o)}_createFromString(e){const i=this._document.createTextNode(`${e}`);return new og([[i]])}_createFromComponent(e,i,r,o,s){const a=e.resolveComponentFactory(r),l=ea.create({providers:[{provide:iz,useValue:o}],parent:i}),c=a.create(l),u=c.location.nativeElement;return s.scrollable&&u.classList.add("component-host-scrollable"),this._applicationRef.attachView(c.hostView),new og([[u]],c.hostView,c)}_setAriaHidden(e){const i=e.parentElement;i&&e!==this._document.body&&(Array.from(i.children).forEach(r=>{r!==e&&"SCRIPT"!==r.nodeName&&(this._ariaHiddenValues.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((e,i)=>{e?i.setAttribute("aria-hidden",e):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(e){const i=()=>{const r=this._modalRefs.indexOf(e);r>-1&&(this._modalRefs.splice(r,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(e),this._activeInstances.emit(this._modalRefs),e.result.then(i,i)}_registerWindowCmpt(e){this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(()=>{const i=this._windowCmpts.indexOf(e);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}}return t.\u0275fac=function(e){return new(e||t)(Et(Lu),Et(ea),Et(no),Et(nz),Et($p),Et(br))},t.\u0275prov=Yt({factory:function(){return new t(Et(Lu),Et(Sw),Et(no),Et(nz),Et($p),Et(br))},token:t,providedIn:"root"}),t})(),B3=(()=>{class t{constructor(e,i,r,o){this._moduleCFR=e,this._injector=i,this._modalStack=r,this._config=o}open(e,i={}){const r=Object.assign({},this._config,i);return this._modalStack.open(this._moduleCFR,this._injector,e,r)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return t.\u0275fac=function(e){return new(e||t)(Et(Gc),Et(ea),Et(rz),Et(tz))},t.\u0275prov=Yt({factory:function(){return new t(Et(Gc),Et(Sw),Et(rz),Et(tz))},token:t,providedIn:"root"}),t})(),oz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({providers:[B3]}),t})(),DFe=(()=>{class t{constructor(e){this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist",this.keyboard=!1,this.animation=e.animation}}return t.\u0275fac=function(e){return new(e||t)(Et(Ma))},t.\u0275prov=Yt({factory:function(){return new t(Et(Ma))},token:t,providedIn:"root"}),t})();const sz=t=>Lf(t)&&""!==t;let TFe=0,az=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(Ae(Ki))},t.\u0275dir=bn({type:t,selectors:[["ng-template","ngbNavContent",""]]}),t})(),sg=(()=>{class t{constructor(e,i){this.elementRef=i,this.disabled=!1,this.shown=new vt,this.hidden=new vt,this._nav=e}ngAfterContentChecked(){this.contentTpl=this.contentTpls.first}ngOnInit(){Lf(this.domId)||(this.domId="ngb-nav-"+TFe++)}get active(){return this._nav.activeId===this.id}get id(){return sz(this._id)?this._id:this.domId}get panelDomId(){return`${this.domId}-panel`}isPanelInDom(){return(Lf(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}}return t.\u0275fac=function(e){return new(e||t)(Ae(yr(()=>ag)),Ae(xi))},t.\u0275dir=bn({type:t,selectors:[["","ngbNavItem",""]],contentQueries:function(e,i,r){if(1&e&&Ci(r,az,4),2&e){let o;En(o=Mn())&&(i.contentTpls=o)}},hostVars:2,hostBindings:function(e,i){2&e&&Kn("nav-item",!0)},inputs:{disabled:"disabled",domId:"domId",destroyOnHide:"destroyOnHide",_id:["ngbNavItem","_id"]},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbNavItem"]}),t})(),ag=(()=>{class t{constructor(e,i,r,o){this.role=e,this._cd=r,this._document=o,this.activeIdChange=new vt,this.shown=new vt,this.hidden=new vt,this.destroy$=new Me,this.navItemChange$=new Me,this.navChange=new vt,this.animation=i.animation,this.destroyOnHide=i.destroyOnHide,this.orientation=i.orientation,this.roles=i.roles,this.keyboard=i.keyboard}click(e){e.disabled||this._updateActiveId(e.id)}onKeyDown(e){if("tablist"!==this.roles||!this.keyboard)return;const i=e.which,r=this.links.filter(a=>!a.navItem.disabled),{length:o}=r;let s=-1;if(r.forEach((a,l)=>{a.elRef.nativeElement===this._document.activeElement&&(s=l)}),o){switch(i){case Nr.ArrowLeft:if("vertical"===this.orientation)return;s=(s-1+o)%o;break;case Nr.ArrowRight:if("vertical"===this.orientation)return;s=(s+1)%o;break;case Nr.ArrowDown:if("horizontal"===this.orientation)return;s=(s+1)%o;break;case Nr.ArrowUp:if("horizontal"===this.orientation)return;s=(s-1+o)%o;break;case Nr.Home:s=0;break;case Nr.End:s=o-1}"changeWithArrows"===this.keyboard&&this.select(r[s].navItem.id),r[s].elRef.nativeElement.focus(),e.preventDefault()}}select(e){this._updateActiveId(e,!1)}ngAfterContentInit(){if(!Lf(this.activeId)){const e=this.items.first?this.items.first.id:null;sz(e)&&(this._updateActiveId(e,!1),this._cd.detectChanges())}this.items.changes.pipe(Po(this.destroy$)).subscribe(()=>this._notifyItemChanged(this.activeId))}ngOnChanges({activeId:e}){e&&!e.firstChange&&this._notifyItemChanged(e.currentValue)}ngOnDestroy(){this.destroy$.next()}_updateActiveId(e,i=!0){if(this.activeId!==e){let r=!1;i&&this.navChange.emit({activeId:this.activeId,nextId:e,preventDefault:()=>{r=!0}}),r||(this.activeId=e,this.activeIdChange.emit(e),this._notifyItemChanged(e))}}_notifyItemChanged(e){this.navItemChange$.next(this._getItemById(e))}_getItemById(e){return this.items&&this.items.find(i=>i.id===e)||null}}return t.\u0275fac=function(e){return new(e||t)(Ed("role"),Ae(DFe),Ae(hs),Ae(no))},t.\u0275dir=bn({type:t,selectors:[["","ngbNav",""]],contentQueries:function(e,i,r){if(1&e&&(Ci(r,sg,4),Ci(r,dv,5)),2&e){let o;En(o=Mn())&&(i.items=o),En(o=Mn())&&(i.links=o)}},hostVars:6,hostBindings:function(e,i){1&e&&He("keydown.arrowLeft",function(o){return i.onKeyDown(o)})("keydown.arrowRight",function(o){return i.onKeyDown(o)})("keydown.arrowDown",function(o){return i.onKeyDown(o)})("keydown.arrowUp",function(o){return i.onKeyDown(o)})("keydown.Home",function(o){return i.onKeyDown(o)})("keydown.End",function(o){return i.onKeyDown(o)}),2&e&&(Ft("aria-orientation","vertical"===i.orientation&&"tablist"===i.roles?"vertical":void 0)("role",i.role?i.role:i.roles?"tablist":void 0),Kn("nav",!0)("flex-column","vertical"===i.orientation))},inputs:{animation:"animation",destroyOnHide:"destroyOnHide",orientation:"orientation",roles:"roles",keyboard:"keyboard",activeId:"activeId"},outputs:{activeIdChange:"activeIdChange",shown:"shown",hidden:"hidden",navChange:"navChange"},exportAs:["ngbNav"],features:[ui]}),t})(),dv=(()=>{class t{constructor(e,i,r,o){this.role=e,this.navItem=i,this.nav=r,this.elRef=o}hasNavItemClass(){return this.navItem.elementRef.nativeElement.nodeType===Node.COMMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(Ed("role"),Ae(sg),Ae(ag),Ae(xi))},t.\u0275dir=bn({type:t,selectors:[["a","ngbNavLink",""]],hostAttrs:["href",""],hostVars:14,hostBindings:function(e,i){1&e&&He("click",function(o){return i.nav.click(i.navItem),o.preventDefault()}),2&e&&(wc("id",i.navItem.domId),Ft("role",i.role?i.role:i.nav.roles?"tab":void 0)("tabindex",i.navItem.disabled?-1:void 0)("aria-controls",i.navItem.isPanelInDom()?i.navItem.panelDomId:null)("aria-selected",i.navItem.active)("aria-disabled",i.navItem.disabled),Kn("nav-link",!0)("nav-item",i.hasNavItemClass())("active",i.navItem.active)("disabled",i.navItem.disabled))}}),t})(),lz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[ia]}),t})(),gz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[ia]}),t})();class FFe{constructor(n,e){this.open=n,this.close=e,e||(this.close=n)}isManual(){return"manual"===this.open||"manual"===this.close}}const LFe={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},mz=t=>t>0?k3(t):n=>n;let yz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[ia]}),t})(),bz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[ia]}),t})(),_z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[ia]}),t})(),Sz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[ia]}),t})(),kz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[ia]}),t})(),QFe=(()=>{class t{constructor(e){this.autoClose=!0,this.placement="auto",this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0,this.animation=e.animation}}return t.\u0275fac=function(e){return new(e||t)(Et(Ma))},t.\u0275prov=Yt({factory:function(){return new t(Et(Ma))},token:t,providedIn:"root"}),t})(),ZFe=0,eLe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ln({type:t,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(e,i){2&e&&(wc("id",i.id),Eu("tooltip"+(i.tooltipClass?" "+i.tooltipClass:"")),Kn("fade",i.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},ngContentSelectors:av,decls:3,vars:0,consts:[[1,"arrow"],[1,"tooltip-inner"]],template:function(e,i){1&e&&(Tu(),je(0,"div",0),A(1,"div",1),Au(2),M())},styles:["ngb-tooltip-window.bs-tooltip-bottom .arrow,ngb-tooltip-window.bs-tooltip-top .arrow{left:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-bottom-left .arrow,ngb-tooltip-window.bs-tooltip-top-left .arrow{left:1em}ngb-tooltip-window.bs-tooltip-bottom-right .arrow,ngb-tooltip-window.bs-tooltip-top-right .arrow{left:auto;right:.8rem}ngb-tooltip-window.bs-tooltip-left .arrow,ngb-tooltip-window.bs-tooltip-right .arrow{top:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-left-top .arrow,ngb-tooltip-window.bs-tooltip-right-top .arrow{top:.4rem}ngb-tooltip-window.bs-tooltip-left-bottom .arrow,ngb-tooltip-window.bs-tooltip-right-bottom .arrow{bottom:.4rem;top:auto}"],encapsulation:2,changeDetection:0}),t})(),tLe=(()=>{class t{constructor(e,i,r,o,s,a,l,c,u,h){this._elementRef=e,this._renderer=i,this._ngZone=l,this._document=c,this._changeDetector=u,this.shown=new vt,this.hidden=new vt,this._ngbTooltipWindowId="ngb-tooltip-"+ZFe++,this._windowRef=null,this.animation=a.animation,this.autoClose=a.autoClose,this.placement=a.placement,this.triggers=a.triggers,this.container=a.container,this.disableTooltip=a.disableTooltip,this.tooltipClass=a.tooltipClass,this.openDelay=a.openDelay,this.closeDelay=a.closeDelay,this._popupService=new j3(eLe,r,s,i,this._ngZone,o,h),this._zoneSubscription=l.onStable.subscribe(()=>{this._windowRef&&Ty(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container,"bs-tooltip")})}set ngbTooltip(e){this._ngbTooltip=e,!e&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(e){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:i,transition$:r}=this._popupService.open(this._ngbTooltip,e,this.animation);this._windowRef=i,this._windowRef.instance.animation=this.animation,this._windowRef.instance.tooltipClass=this.tooltipClass,this._windowRef.instance.id=this._ngbTooltipWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),Dy(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),r.subscribe(()=>this.shown.emit())}}close(){null!=this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(this.animation).subscribe(()=>{this._windowRef=null,this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=function vz(t,n,e,i,r,o,s=0,a=0){const l=function OFe(t,n=LFe){const e=(t||"").trim();if(0===e.length)return[];const i=e.split(/\s+/).map(o=>o.split(":")).map(o=>{let s=n[o[0]]||o;return new FFe(s[0],s[1])}),r=i.filter(o=>o.isManual());if(r.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===r.length&&i.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return i}(e);if(1===l.length&&l[0].isManual())return()=>{};const c=function NFe(t,n,e,i){return new P(r=>{const o=[],s=()=>r.next(!0),a=()=>r.next(!1),l=()=>r.next(!i());return e.forEach(c=>{c.open===c.close?o.push(t.listen(n,c.open,l)):o.push(t.listen(n,c.open,s),t.listen(n,c.close,a))}),()=>{o.forEach(c=>c())}})}(t,n,l,i).pipe(function RFe(t,n,e){return i=>{let r=null;const o=i.pipe(Pe(l=>({open:l})),bs(l=>{const c=e();return c===l.open||r&&r.open!==c?(r&&r.open!==l.open&&(r=null),!1):(r=l,!0)}),dt());return Lt(o.pipe(bs(l=>l.open),mz(t)),o.pipe(bs(l=>!l.open),mz(n))).pipe(bs(l=>l===r&&(r=null,l.open!==e())),Pe(l=>l.open))}}(s,a,i)).subscribe(u=>u?r():o());return()=>c.unsubscribe()}(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:e}){e&&this.isOpen()&&(this._windowRef.instance.tooltipClass=e.currentValue)}ngOnDestroy(){this.close(),this._unregisterListenersFn&&this._unregisterListenersFn(),this._zoneSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Ae(xi),Ae(Hs),Ae(ea),Ae(Gc),Ae(gl),Ae(QFe),Ae(br),Ae(no),Ae(hs),Ae(Lu))},t.\u0275dir=bn({type:t,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",triggers:"triggers",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],features:[ui]}),t})(),Dz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({}),t})();new hi("live announcer delay",{providedIn:"root",factory:function rLe(){return 100}});let Ez=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[ia]}),t})();const lLe=[AV,EV,IV,NV,RV,QV,ez,oz,lz,gz,yz,bz,_z,Sz,kz,Dz,Ez];let cLe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[lLe,AV,EV,IV,NV,RV,QV,ez,oz,lz,gz,yz,bz,_z,Sz,kz,Dz,Ez]}),t})(),Mz=(()=>{class t{constructor(){be(this,"restrictedPages",new Map([["users",Di.USER_ROLE_ADMIN],["config",Di.USER_ROLE_DEVELOPER],["modules",Di.USER_ROLE_DEVELOPER],["apiexplorer",Di.USER_ROLE_DEVELOPER]]))}}return be(t,"\u0275fac",function(e){return new(e||t)}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function uLe(t,n){if(1&t&&(va(0,5),A(1,"a",27),je(2,"img",28),A(3,"span",12),J(4),M()(),ya()),2&t){const e=te().$implicit;N("ngbNavItem",e.navItem),I(1),N("routerLink",e.routerLink),I(1),jp("src","/static/svg/",e.icon,".svg",m1),I(2),Xt(e.label)}}function hLe(t,n){1&t&&je(0,"hr")}function dLe(t,n){if(1&t&&(ye(0,uLe,5,4,"ng-container",26),ye(1,hLe,1,0,"hr",25)),2&t){const e=n.$implicit;N("ngIf",te().getSessionRole()<=e.minRole),I(1),N("ngIf",e.separator)}}function fLe(t,n){if(1&t&&(A(0,"div",29)(1,"h2",30),je(2,"img",31),J(3,"An error has occurred!"),M(),A(4,"h6",32),J(5),M(),A(6,"p"),J(7,"Please refresh the page to try again."),M()()),2&t){const e=te();I(5),Xt(e.error)}}function pLe(t,n){1&t&&(A(0,"div",33),je(1,"img",34),M())}function gLe(t,n){1&t&&je(0,"router-outlet")}const mLe=function(){return["/"]},vLe=function(){return["/login"]};let yLe=(()=>{class t{constructor(e,i,r,o,s){be(this,"route",void 0),be(this,"router",void 0),be(this,"segment",void 0),be(this,"consoleService",void 0),be(this,"authService",void 0),be(this,"routerSub",void 0),be(this,"segmentRouterSub",void 0),be(this,"loading",!0),be(this,"error",""),be(this,"routes",[{navItem:"status",routerLink:["/status"],label:"Status",minRole:Di.USER_ROLE_READONLY,icon:"status"},{navItem:"users",routerLink:["/users"],label:"User Management",minRole:Di.USER_ROLE_ADMIN,icon:"user-management"},{navItem:"config",routerLink:["/config"],label:"Configuration",minRole:Di.USER_ROLE_DEVELOPER,icon:"configuration"},{navItem:"modules",routerLink:["/modules"],label:"Runtime Modules",minRole:Di.USER_ROLE_DEVELOPER,separator:!0,icon:"runtime-modules"},{navItem:"accounts",routerLink:["/accounts"],label:"Accounts",minRole:Di.USER_ROLE_READONLY,icon:"accounts"},{navItem:"groups",routerLink:["/groups"],label:"Groups",minRole:Di.USER_ROLE_READONLY,icon:"groups"},{navItem:"storage",routerLink:["/storage"],label:"Storage",minRole:Di.USER_ROLE_READONLY,icon:"storage"},{navItem:"leaderboards",routerLink:["/leaderboards"],label:"Leaderboards",minRole:Di.USER_ROLE_READONLY,icon:"leaderboard"},{navItem:"chat",routerLink:["/chat"],label:"Chat Messages",minRole:Di.USER_ROLE_READONLY,icon:"chat"},{navItem:"matches",routerLink:["/matches"],label:"Matches",minRole:Di.USER_ROLE_READONLY,icon:"running-matches"},{navItem:"apiexplorer",routerLink:["/apiexplorer"],label:"API Explorer",minRole:Di.USER_ROLE_DEVELOPER,icon:"api-explorer"}]),this.route=e,this.router=i,this.segment=r,this.consoleService=o,this.authService=s,this.loading=!1,this.routerSub=this.router.events.pipe(function iMe(t){let n=arguments.length,e=Sy;ze(arguments[arguments.length-1])&&(e=arguments[arguments.length-1],n--);let i=null;n>=2&&(i=arguments[1]);let r=Number.POSITIVE_INFINITY;return n>=3&&(r=arguments[2]),function(s){return s.lift(new rMe(t,i,r,e))}}(2e3)).subscribe(a=>{if(0===a.length)return;const l=a[a.length-1];l instanceof Ux&&(this.loading=!0),l instanceof zd&&(this.loading=!1),l instanceof ny&&(this.loading=!1),l instanceof Gx&&(this.loading=!1,this.error=l.error)}),this.segmentRouterSub=i.events.pipe(function wC(t,n){return e=>e.lift(new lMe(t,n))}((a,l)=>!(l instanceof zd)||a.url===l.url)).subscribe(a=>{a&&r.page(a.url)})}ngOnInit(){this.route.data.subscribe(e=>{this.error=e.error?e.error:""})}getSessionRole(){return this.authService.sessionRole}getUsername(){return this.authService.username}logout(){this.authService.logout().subscribe(()=>{this.router.navigate(["/login"])})}ngOnDestroy(){this.segmentRouterSub.unsubscribe(),this.routerSub.unsubscribe()}onSidebarNavChange(e){}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(mC),Ae(Ui),Ae(ds))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],decls:40,vars:11,consts:[[1,"container-fluid"],[1,"row"],["ngbNav","",1,"col-md-2","d-none","d-md-block","sidebar","position-fixed","px-0",3,"navChange"],["sidenav","ngbNav"],[1,"flex-column","text-uppercase"],[3,"ngbNavItem"],[3,"routerLink"],["src","/static/svg/logo.svg","alt","","width","175","height","",1,"logo-full","mx-3","mt-3","mb-1"],["src","/static/svg/logo-icon.svg","alt","","width","32","height","",1,"logo-icon","mx-3","mt-3","mb-1"],["ngFor","",3,"ngForOf"],["href","https://cloud.heroiclabs.com","target","_blank",1,"nav-link"],["src","/static/svg/heroiccloud.svg","alt","","width","24","height","",1,"link-icon","mr-1"],[1,"link-text"],["href","https://heroiclabs.com/docs","target","_blank",1,"nav-link"],["src","/static/svg/docs.svg","alt","","width","24","height","",1,"link-icon","mr-1"],["href","https://forum.heroiclabs.com","target","_blank",1,"nav-link"],["src","/static/svg/forum.svg","alt","","width","24","height","",1,"link-icon","mr-1"],["href","https://heroiclabs.com/blog","target","_blank",1,"nav-link"],["src","/static/svg/blog.svg","alt","","width","24","height","",1,"link-icon","mr-1"],[1,"logged-in-as","nav-link","disabled"],["ngbNavLink","","routerLinkActive","active",3,"routerLink","click"],["src","/static/svg/log-out.svg","alt","","width","24","height","",1,"mr-1"],["role","main",1,"ml-sm-auto","col-md-10","col-lg-10","main-extended","px-4","py-4"],["class","mx-auto",4,"ngIf"],["class","loading mx-auto",4,"ngIf"],[4,"ngIf"],[3,"ngbNavItem",4,"ngIf"],["ngbNavLink","","routerLinkActive","active",3,"routerLink"],["alt","","width","24","height","",1,"link-icon","mr-1",3,"src"],[1,"mx-auto"],[1,"pb-2"],["src","/static/svg/red-triangle.svg",1,"mr-2",2,"width","1em","height","1em"],[1,"mr-2","d-inline","font-weight-bold"],[1,"loading","mx-auto"],["src","/static/spinner.svg",1,"p-1","loading"]],template:function(e,i){1&e&&(A(0,"div",0)(1,"div",1)(2,"nav",2,3),He("navChange",function(o){return i.onSidebarNavChange(o)}),A(4,"div",4),va(5,5),A(6,"a",6),je(7,"img",7)(8,"img",8),M(),ya(),je(9,"hr"),ye(10,dLe,2,2,"ng-template",9),je(11,"hr"),A(12,"a",10),je(13,"img",11),A(14,"span",12),J(15,"Heroic Cloud"),M()(),A(16,"a",13),je(17,"img",14),A(18,"span",12),J(19,"Documentation"),M()(),A(20,"a",15),je(21,"img",16),A(22,"span",12),J(23,"Forum"),M()(),A(24,"a",17),je(25,"img",18),A(26,"span",12),J(27,"Heroic Labs Blog"),M()(),je(28,"hr"),A(29,"div",19),J(30),M(),va(31,5),A(32,"a",20),He("click",function(){return i.logout()}),je(33,"img",21),A(34,"span",12),J(35,"Logout"),M()(),ya(),M()(),A(36,"main",22),ye(37,fLe,8,1,"div",23),ye(38,pLe,2,0,"div",24),ye(39,gLe,1,0,"router-outlet",25),M()()()),2&e&&(I(5),N("ngbNavItem","logo"),I(1),N("routerLink",Ll(9,mLe)),I(4),N("ngForOf",i.routes),I(20),jn("Logged in as: ",i.getUsername(),""),I(1),N("ngbNavItem","logout"),I(1),N("routerLink",Ll(10,vLe)),I(5),N("ngIf",i.error),I(1),N("ngIf",!i.error&&i.loading),I(1),N("ngIf",!i.error&&!i.loading))},dependencies:[Kp,Ru,uy,ti,Nn,ag,sg,dv],styles:[".nav-link.no-active[_ngcontent-%COMP%]{background-color:transparent!important}.nav-item[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-top-color:#708090}.sidebar[_ngcontent-%COMP%]{background-color:#333564;position:fixed;top:0;bottom:0;left:0;z-index:100;font-family:Montserrat,sans-serif;overflow-y:auto}.sidebar[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{color:#fff;font-size:12px;letter-spacing:.1em;opacity:.6;font-weight:500!important}.sidebar[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover{opacity:1;background-color:#e1e1e11a}.sidebar[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-color:#fff;opacity:.2}.active[_ngcontent-%COMP%]{opacity:1}.nav-link.active[_ngcontent-%COMP%]{opacity:1;color:#a69bff}.navbar-collapse[_ngcontent-%COMP%]{letter-spacing:0;text-transform:capitalize}.logo-icon[_ngcontent-%COMP%]{display:none}.link-text[_ngcontent-%COMP%]{padding-left:4px}@media screen and (max-width: 1200px){.main-extended[_ngcontent-%COMP%]{width:94.333333%!important;max-width:94.333333%!important;flex:0 0 94.333333%!important}.sidebar[_ngcontent-%COMP%]{min-width:65px!important;width:5.66%!important;max-width:5.66%!important}.sidebar[_ngcontent-%COMP%] .logo-full[_ngcontent-%COMP%]{display:none}.sidebar[_ngcontent-%COMP%] .logo-icon[_ngcontent-%COMP%]{display:block}.sidebar[_ngcontent-%COMP%] .link-icon[_ngcontent-%COMP%]{width:30px}.sidebar[_ngcontent-%COMP%] .link-text[_ngcontent-%COMP%], .sidebar[_ngcontent-%COMP%] .logged-in-as[_ngcontent-%COMP%]{display:none}}"]})),t})(),bLe=(()=>{class t{constructor(e,i,r){be(this,"authService",void 0),be(this,"router",void 0),be(this,"globals",void 0),this.authService=e,this.router=i,this.globals=r}canActivate(e,i){return!0}canActivateChild(e,i){const r=this.globals.restrictedPages.get(e.url[0].path);return!(null!==r&&r{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let r;return n.viewContainerRef?(r=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(n.injector||this._defaultInjector||ea.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=n,r}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}class SLe extends CLe{}class ALe{constructor(n,e){this.dueTime=n,this.scheduler=e}call(n,e){return e.subscribe(new ELe(n,this.dueTime,this.scheduler))}}class ELe extends x{constructor(n,e,i){super(n),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(n){this.clearDebounce(),this.lastValue=n,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(MLe,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:n}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(n)}}clearDebounce(){const n=this.debouncedSubscription;null!==n&&(this.remove(n),n.unsubscribe(),this.debouncedSubscription=null)}}function MLe(t){t.debouncedNext()}function ILe(){}function U3(t){return null==t?ILe:function(){return this.querySelector(t)}}function LLe(){return[]}function Rz(t){return null==t?LLe:function(){return this.querySelectorAll(t)}}function $z(t){return function(){return this.matches(t)}}function Pz(t){return new Array(t.length)}function $C(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}$C.prototype={constructor:$C,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var jz="$";function PLe(t,n,e,i,r,o){for(var a,s=0,l=n.length,c=o.length;sn?1:t>=n?0:NaN}var W3="http://www.w3.org/1999/xhtml";const Bz={svg:"http://www.w3.org/2000/svg",xhtml:W3,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function PC(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Bz.hasOwnProperty(n)?{space:Bz[n],local:t}:t}function ZLe(t){return function(){this.removeAttribute(t)}}function eOe(t){return function(){this.removeAttributeNS(t.space,t.local)}}function tOe(t,n){return function(){this.setAttribute(t,n)}}function nOe(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function iOe(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function rOe(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function Hz(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function sOe(t){return function(){this.style.removeProperty(t)}}function aOe(t,n,e){return function(){this.style.setProperty(t,n,e)}}function lOe(t,n,e){return function(){var i=n.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,e)}}function fv(t,n){return t.style.getPropertyValue(n)||Hz(t).getComputedStyle(t,null).getPropertyValue(n)}function uOe(t){return function(){delete this[t]}}function hOe(t,n){return function(){this[t]=n}}function dOe(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Vz(t){return t.trim().split(/^|\s+/)}function G3(t){return t.classList||new zz(t)}function zz(t){this._node=t,this._names=Vz(t.getAttribute("class")||"")}function Uz(t,n){for(var e=G3(t),i=-1,r=n.length;++i=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var qz={},fo=null;function VOe(t,n,e){return t=Xz(t,n,e),function(i){var r=i.relatedTarget;(!r||r!==this&&!(8&r.compareDocumentPosition(this)))&&t.call(this,i)}}function Xz(t,n,e){return function(i){var r=fo;fo=i;try{t.call(this,this.__data__,n,e)}finally{fo=r}}}function UOe(t){return function(){var n=this.__on;if(n){for(var o,e=0,i=-1,r=n.length;e=E&&(E=k+1);!(B=w[E])&&++E=0;)(s=i[r])&&(o&&4^s.compareDocumentPosition(o)&&o.parentNode.insertBefore(s,o),o=s);return this},sort:function WLe(t){function n(h,d){return h&&d?t(h.__data__,d.__data__):!h-!d}t||(t=GLe);for(var e=this._groups,i=e.length,r=new Array(i),o=0;o1?this.each((null==n?sOe:"function"==typeof n?lOe:aOe)(t,n,e??"")):fv(this.node(),t)},property:function fOe(t,n){return arguments.length>1?this.each((null==n?uOe:"function"==typeof n?dOe:hOe)(t,n)):this.node()[t]},classed:function vOe(t,n){var e=Vz(t+"");if(arguments.length<2){for(var i=G3(this.node()),r=-1,o=e.length;++r=0&&(e=n.slice(i+1),n=n.slice(0,i)),{type:n,name:e}})}(t+""),o=i.length;if(!(arguments.length<2)){for(a=n?WOe:UOe,null==e&&(e=!1),r=0;r=0&&(i=e.slice(r+1),e=e.slice(0,r)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:i}})}(t+"",e),o=-1,s=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o0)for(var r,o,e=new Array(r),i=0;i>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?HC(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?HC(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=iNe.exec(t))?new Tc(n[1],n[2],n[3],1):(n=rNe.exec(t))?new Tc(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=oNe.exec(t))?HC(n[1],n[2],n[3],n[4]):(n=sNe.exec(t))?HC(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=aNe.exec(t))?lU(n[1],n[2]/100,n[3]/100,1):(n=lNe.exec(t))?lU(n[1],n[2]/100,n[3]/100,n[4]):nU.hasOwnProperty(t)?oU(nU[t]):"transparent"===t?new Tc(NaN,NaN,NaN,0):null}function oU(t){return new Tc(t>>16&255,t>>8&255,255&t,1)}function HC(t,n,e,i){return i<=0&&(t=n=e=NaN),new Tc(t,n,e,i)}function Ny(t,n,e,i){return 1===arguments.length?function uNe(t){return t instanceof Fy||(t=lg(t)),t?new Tc((t=t.rgb()).r,t.g,t.b,t.opacity):new Tc}(t):new Tc(t,n,e,i??1)}function Tc(t,n,e,i){this.r=+t,this.g=+n,this.b=+e,this.opacity=+i}function sU(){return"#"+Y3(this.r)+Y3(this.g)+Y3(this.b)}function aU(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Y3(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function lU(t,n,e,i){return i<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Uh(t,n,e,i)}function cU(t){if(t instanceof Uh)return new Uh(t.h,t.s,t.l,t.opacity);if(t instanceof Fy||(t=lg(t)),!t)return new Uh;if(t instanceof Uh)return t;var n=(t=t.rgb()).r/255,e=t.g/255,i=t.b/255,r=Math.min(n,e,i),o=Math.max(n,e,i),s=NaN,a=o-r,l=(o+r)/2;return a?(s=n===o?(e-i)/a+6*(e0&&l<1?0:s,new Uh(s,a,l,t.opacity)}function Uh(t,n,e,i){this.h=+t,this.s=+n,this.l=+e,this.opacity=+i}function K3(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function uU(t,n,e,i,r){var o=t*t,s=o*t;return((1-3*t+3*o-s)*n+(4-6*o+3*s)*e+(1+3*t+3*o-3*s)*i+s*r)/6}function J3(t){return function(){return t}}function dU(t,n){var e=n-t;return e?function hU(t,n){return function(e){return t+e*n}}(t,e):J3(isNaN(t)?n:t)}X3(Fy,lg,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:iU,formatHex:iU,formatHsl:function cNe(){return cU(this).formatHsl()},formatRgb:rU,toString:rU}),X3(Tc,Ny,tU(Fy,{brighter:function(t){return t=null==t?BC:Math.pow(BC,t),new Tc(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Tc(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:sU,formatHex:sU,formatRgb:aU,toString:aU})),X3(Uh,function hNe(t,n,e,i){return 1===arguments.length?cU(t):new Uh(t,n,e,i??1)},tU(Fy,{brighter:function(t){return t=null==t?BC:Math.pow(BC,t),new Uh(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Uh(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,i=e+(e<.5?e:1-e)*n,r=2*e-i;return new Tc(K3(t>=240?t-240:t+120,r,i),K3(t,r,i),K3(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const VC=function t(n){var e=function gNe(t){return 1==(t=+t)?dU:function(n,e){return e-n?function pNe(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(i){return Math.pow(t+i*n,e)}}(n,e,t):J3(isNaN(n)?e:n)}}(n);function i(r,o){var s=e((r=Ny(r)).r,(o=Ny(o)).r),a=e(r.g,o.g),l=e(r.b,o.b),c=dU(r.opacity,o.opacity);return function(u){return r.r=s(u),r.g=a(u),r.b=l(u),r.opacity=c(u),r+""}}return i.gamma=t,i}(1);function fU(t){return function(n){var s,a,e=n.length,i=new Array(e),r=new Array(e),o=new Array(e);for(s=0;s=1?(e=1,n-1):Math.floor(e*n),r=t[i],o=t[i+1];return uU((e-i/n)*n,i>0?t[i-1]:2*r-o,r,o,ie&&(o=n.slice(e,o),a[s]?a[s]+=o:a[++s]=o),(i=i[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,l.push({i:s,x:Hu(i,r)})),e=Z3.lastIndex;return e=0&&t._call.call(null,n),t=t._next;--gv}()}finally{gv=0,function TNe(){for(var t,e,n=zC,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:zC=e);Py=t,eI(i)}(),ug=0}}function DNe(){var t=jy.now(),n=t-UC;n>yU&&(WC-=n,UC=t)}function eI(t){gv||(Ry&&(Ry=clearTimeout(Ry)),t-ug>24?(t<1/0&&(Ry=setTimeout(wU,t-jy.now()-WC)),$y&&($y=clearInterval($y))):($y||(UC=jy.now(),$y=setInterval(DNe,yU)),gv=1,bU(wU)))}function xU(t,n,e){var i=new qC;return i.restart(function(r){i.stop(),t(r+n)},n=null==n?0:+n,e),i}qC.prototype=_U.prototype={constructor:qC,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?GC():+e)+(null==n?0:+n),!this._next&&Py!==this&&(Py?Py._next=this:zC=this,Py=this),this._call=t,this._time=e,eI()},stop:function(){this._call&&(this._call=null,this._time=1/0,eI())}};var ANe=eU("start","end","cancel","interrupt"),ENe=[],CU=0,SU=1,tI=2,XC=3,kU=4,nI=5,YC=6;function KC(t,n,e,i,r,o){var s=t.__transition;if(s){if(e in s)return}else t.__transition={};!function MNe(t,n,e){var r,i=t.__transition;function s(c){var u,h,d,f;if(e.state!==SU)return l();for(u in i)if((f=i[u]).name===e.name){if(f.state===XC)return xU(s);f.state===kU?(f.state=YC,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[u]):+uCU)throw new Error("too late; already scheduled");return e}function Wd(t,n){var e=Vu(t,n);if(e.state>XC)throw new Error("too late; already running");return e}function Vu(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function rI(t,n){var i,r,s,e=t.__transition,o=!0;if(e){for(s in n=null==n?null:n+"",e)(i=e[s]).name===n?(r=i.state>tI&&i.state180?u+=360:u-c>180&&(c+=360),d.push({i:h.push(r(h)+"rotate(",null,i)-2,x:Hu(c,u)})):u&&h.push(r(h)+"rotate("+u+i)}(c.rotate,u.rotate,h,d),function a(c,u,h,d){c!==u?d.push({i:h.push(r(h)+"skewX(",null,i)-2,x:Hu(c,u)}):u&&h.push(r(h)+"skewX("+u+i)}(c.skewX,u.skewX,h,d),function l(c,u,h,d,f,p){if(c!==h||u!==d){var m=f.push(r(f)+"scale(",null,",",null,")");p.push({i:m-4,x:Hu(c,h)},{i:m-2,x:Hu(u,d)})}else(1!==h||1!==d)&&f.push(r(f)+"scale("+h+","+d+")")}(c.scaleX,c.scaleY,u.scaleX,u.scaleY,h,d),c=u=null,function(f){for(var w,p=-1,m=d.length;++p=0&&(n=n.slice(0,e)),!n||"start"===n})}(n)?iI:Wd;return function(){var s=o(this,t),a=s.on;a!==i&&(r=(i=a).copy()).on(n,e),s.on=r}}(e,t,n))},attr:function WNe(t,n){var e=PC(t),i="transform"===e?NNe:MU;return this.attrTween(t,"function"==typeof n?(e.local?UNe:zNe)(e,i,aI(this,"attr."+t,n)):null==n?(e.local?BNe:jNe)(e):(e.local?VNe:HNe)(e,i,n))},attrTween:function KNe(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var i=PC(t);return this.tween(e,(i.local?XNe:YNe)(i,n))},style:function _Re(t,n,e){var i="transform"==(t+="")?ONe:MU;return null==n?this.styleTween(t,function mRe(t,n){var e,i,r;return function(){var o=fv(this,t),s=(this.style.removeProperty(t),fv(this,t));return o===s?null:o===e&&s===i?r:r=n(e=o,i=s)}}(t,i)).on("end.style."+t,IU(t)):"function"==typeof n?this.styleTween(t,function yRe(t,n,e){var i,r,o;return function(){var s=fv(this,t),a=e(this),l=a+"";return null==a&&(this.style.removeProperty(t),l=a=fv(this,t)),s===l?null:s===i&&l===r?o:(r=l,o=n(i=s,a))}}(t,i,aI(this,"style."+t,n))).each(function bRe(t,n){var e,i,r,a,o="style."+n,s="end."+o;return function(){var l=Wd(this,t),c=l.on,u=null==l.value[o]?a||(a=IU(n)):void 0;(c!==e||r!==u)&&(i=(e=c).copy()).on(s,r=u),l.on=i}}(this._id,t)):this.styleTween(t,function vRe(t,n,e){var i,o,r=e+"";return function(){var s=fv(this,t);return s===r?null:s===i?o:o=n(i=s,e)}}(t,i,n),e).on("end.style."+t,null)},styleTween:function CRe(t,n,e){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==n)return this.tween(i,null);if("function"!=typeof n)throw new Error;return this.tween(i,function xRe(t,n,e){var i,r;function o(){var s=n.apply(this,arguments);return s!==r&&(i=(r=s)&&function wRe(t,n,e){return function(i){this.style.setProperty(t,n.call(this,i),e)}}(t,s,e)),i}return o._value=n,o}(t,n,e??""))},text:function DRe(t){return this.tween("text","function"==typeof t?function kRe(t){return function(){var n=t(this);this.textContent=n??""}}(aI(this,"text",t)):function SRe(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function ERe(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,function ARe(t){var n,e;function i(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&function TRe(t){return function(n){this.textContent=t.call(this,n)}}(r)),n}return i._value=t,i}(t))},remove:function hRe(){return this.on("end.remove",function uRe(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function PNe(t,n){var e=this._id;if(t+="",arguments.length<2){for(var s,i=Vu(this.node(),e).tween,r=0,o=i.length;r0&&(re=ce-Q),L<0?Fe=z-Z:L>0&&(pe=De-Z),k=hI,se.attr("cursor",qd.selection),Qe());break;default:return}uI()},!0).on("keyup.brush",function zt(){switch(fo.keyCode){case 16:ae&&(Te=Oe=ae=!1,Qe());break;case 18:k===yv&&(E<0?ge=we:E>0&&(re=ce),L<0?Fe=z:L>0&&(pe=De),k=vv,Qe());break;case 32:k===hI&&(fo.altKey?(E&&(ge=we-Q*E,re=ce+Q*E),L&&(Fe=z-Z*L,pe=De+Z*L),k=yv):(E<0?ge=we:E>0&&(re=ce),L<0?Fe=z:L>0&&(pe=De),k=vv),se.attr("cursor",qd[C]),Qe());break;default:return}uI()},!0),function eNe(t){var n=t.document.documentElement,e=La(t).on("dragstart.drag",q3,!0);"onselectstart"in n?e.on("selectstart.drag",q3,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}(fo.view)}LU(),rI(w),c.call(w),ct.start()}function ke(){var Qt=Ze(w);ae&&!Te&&!Oe&&(Math.abs(Qt[0]-wt[0])>Math.abs(Qt[1]-wt[1])?Oe=!0:Te=!0),wt=Qt,me=!0,uI(),Qe()}function Qe(){var Qt;switch(Q=wt[0]-Ve[0],Z=wt[1]-Ve[1],k){case hI:case OU:E&&(Q=Math.max(fe-re,Math.min(ie-ge,Q)),ce=re+Q,we=ge+Q),L&&(Z=Math.max(ue-pe,Math.min(le-Fe,Z)),De=pe+Z,z=Fe+Z);break;case vv:E<0?(Q=Math.max(fe-re,Math.min(ie-re,Q)),ce=re+Q,we=ge):E>0&&(Q=Math.max(fe-ge,Math.min(ie-ge,Q)),ce=re,we=ge+Q),L<0?(Z=Math.max(ue-pe,Math.min(le-pe,Z)),De=pe+Z,z=Fe):L>0&&(Z=Math.max(ue-Fe,Math.min(le-Fe,Z)),De=pe,z=Fe+Z);break;case yv:E&&(ce=Math.max(fe,Math.min(ie,re-Q*E)),we=Math.max(fe,Math.min(ie,ge+Q*E))),L&&(De=Math.max(ue,Math.min(le,pe-Z*L)),z=Math.max(ue,Math.min(le,Fe+Z*L)))}wen?1:t>=n?0:NaN}function mI(t){let n=t,e=t;function i(s,a,l,c){for(null==l&&(l=0),null==c&&(c=s.length);l>>1;e(s[u],a)<0?l=u+1:c=u}return l}return 1===t.length&&(n=(s,a)=>t(s)-a,e=function XRe(t){return(n,e)=>gI(t(n),e)}(t)),{left:i,center:function o(s,a,l,c){null==l&&(l=0),null==c&&(c=s.length);const u=i(s,a,l,c-1);return u>l&&n(s[u-1],a)>-n(s[u],a)?u-1:u},right:function r(s,a,l,c){for(null==l&&(l=0),null==c&&(c=s.length);l>>1;e(s[u],a)>0?c=u:l=u+1}return l}}}var vI=Math.sqrt(50),yI=Math.sqrt(10),bI=Math.sqrt(2);function PU(t,n,e){var i=(n-t)/Math.max(0,e),r=Math.floor(Math.log(i)/Math.LN10),o=i/Math.pow(10,r);return r>=0?(o>=vI?10:o>=yI?5:o>=bI?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=vI?10:o>=yI?5:o>=bI?2:1)}function _I(t,n,e){var i=Math.abs(n-t)/Math.max(0,e),r=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/r;return o>=vI?r*=10:o>=yI?r*=5:o>=bI&&(r*=2),n0))return l;do{l.push(c=new Date(+o)),n(o,a),t(o)}while(c=s)for(;t(s),!o(s);)s.setTime(s-1)},function(s,a){if(s>=s)if(a<0)for(;++a<=0;)for(;n(s,-1),!o(s););else for(;--a>=0;)for(;n(s,1),!o(s););})},e&&(r.count=function(o,s){return wI.setTime(+o),xI.setTime(+s),t(wI),t(xI),Math.floor(e(wI,xI))},r.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?r.filter(i?function(s){return i(s)%o==0}:function(s){return r.count(0,s)%o==0}):r:null}),r}var CI=zu(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});CI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?zu(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const KRe=CI;var jU=zu(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,n){t.setMonth(t.getMonth()+n)},function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())},function(t){return t.getMonth()});const JRe=jU;var Vy=6e4,ZRe=6048e5;function hg(t){return zu(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*Vy)/ZRe})}var HU=hg(0),VU=(hg(1),hg(2),hg(3),hg(4),hg(5),hg(6),zu(t=>t.setHours(0,0,0,0),(t,n)=>t.setDate(t.getDate()+n),(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Vy)/864e5,t=>t.getDate()-1));const s$e=VU;var zU=zu(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-t.getMinutes()*Vy)},function(t,n){t.setTime(+t+36e5*n)},function(t,n){return(n-t)/36e5},function(t){return t.getHours()});const a$e=zU;var UU=zu(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},function(t,n){t.setTime(+t+n*Vy)},function(t,n){return(n-t)/Vy},function(t){return t.getMinutes()});const l$e=UU;var WU=zu(function(t){t.setTime(t-t.getMilliseconds())},function(t,n){t.setTime(+t+1e3*n)},function(t,n){return(n-t)/1e3},function(t){return t.getUTCSeconds()});const c$e=WU;var tS=zu(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});tS.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?zu(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):tS:null};const u$e=tS;var SI=new Date,kI=new Date;function Xd(t,n,e,i){function r(o){return t(o=0===arguments.length?new Date:new Date(+o)),o}return r.floor=function(o){return t(o=new Date(+o)),o},r.ceil=function(o){return t(o=new Date(o-1)),n(o,1),t(o),o},r.round=function(o){var s=r(o),a=r.ceil(o);return o-s0))return l;do{l.push(c=new Date(+o)),n(o,a),t(o)}while(c=s)for(;t(s),!o(s);)s.setTime(s-1)},function(s,a){if(s>=s)if(a<0)for(;++a<=0;)for(;n(s,-1),!o(s););else for(;--a>=0;)for(;n(s,1),!o(s););})},e&&(r.count=function(o,s){return SI.setTime(+o),kI.setTime(+s),t(SI),t(kI),Math.floor(e(SI,kI))},r.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?r.filter(i?function(s){return i(s)%o==0}:function(s){return r.count(0,s)%o==0}):r:null}),r}var GU=6e4,XU=6048e5;function dg(t){return Xd(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCDate(n.getUTCDate()+7*e)},function(n,e){return(e-n)/XU})}var YU=dg(0),nS=dg(1),bv=(dg(2),dg(3),dg(4)),KU=(dg(5),dg(6),Xd(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/864e5},function(t){return t.getUTCDate()-1}));const JU=KU;function fg(t){return Xd(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*GU)/XU})}var QU=fg(0),iS=fg(1),_v=(fg(2),fg(3),fg(4)),ZU=(fg(5),fg(6),Xd(function(t){t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*GU)/864e5},function(t){return t.getDate()-1}));const eW=ZU;var DI=Xd(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});DI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Xd(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const zy=DI;var TI=Xd(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});TI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Xd(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};const Uy=TI;function AI(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function EI(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Wy(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var wv,gW,tW={"-":"",_:" ",0:"0"},Oa=/^\s*\d+/,_$e=/^%/,w$e=/[\\^$*+?|[\]().{}]/g;function mo(t,n,e){var i=t<0?"-":"",r=(i?-t:t)+"",o=r.length;return i+(o68?1900:2e3),e+i[0].length):-1}function A$e(t,n,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function E$e(t,n,e){var i=Oa.exec(n.slice(e,e+1));return i?(t.q=3*i[0]-3,e+i[0].length):-1}function M$e(t,n,e){var i=Oa.exec(n.slice(e,e+2));return i?(t.m=i[0]-1,e+i[0].length):-1}function rW(t,n,e){var i=Oa.exec(n.slice(e,e+2));return i?(t.d=+i[0],e+i[0].length):-1}function I$e(t,n,e){var i=Oa.exec(n.slice(e,e+3));return i?(t.m=0,t.d=+i[0],e+i[0].length):-1}function oW(t,n,e){var i=Oa.exec(n.slice(e,e+2));return i?(t.H=+i[0],e+i[0].length):-1}function F$e(t,n,e){var i=Oa.exec(n.slice(e,e+2));return i?(t.M=+i[0],e+i[0].length):-1}function L$e(t,n,e){var i=Oa.exec(n.slice(e,e+2));return i?(t.S=+i[0],e+i[0].length):-1}function O$e(t,n,e){var i=Oa.exec(n.slice(e,e+3));return i?(t.L=+i[0],e+i[0].length):-1}function N$e(t,n,e){var i=Oa.exec(n.slice(e,e+6));return i?(t.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function R$e(t,n,e){var i=_$e.exec(n.slice(e,e+1));return i?e+i[0].length:-1}function $$e(t,n,e){var i=Oa.exec(n.slice(e));return i?(t.Q=+i[0],e+i[0].length):-1}function P$e(t,n,e){var i=Oa.exec(n.slice(e));return i?(t.s=+i[0],e+i[0].length):-1}function sW(t,n){return mo(t.getDate(),n,2)}function j$e(t,n){return mo(t.getHours(),n,2)}function B$e(t,n){return mo(t.getHours()%12||12,n,2)}function H$e(t,n){return mo(1+eW.count(zy(t),t),n,3)}function aW(t,n){return mo(t.getMilliseconds(),n,3)}function V$e(t,n){return aW(t,n)+"000"}function z$e(t,n){return mo(t.getMonth()+1,n,2)}function U$e(t,n){return mo(t.getMinutes(),n,2)}function W$e(t,n){return mo(t.getSeconds(),n,2)}function G$e(t){var n=t.getDay();return 0===n?7:n}function q$e(t,n){return mo(QU.count(zy(t)-1,t),n,2)}function lW(t){var n=t.getDay();return n>=4||0===n?_v(t):_v.ceil(t)}function X$e(t,n){return t=lW(t),mo(_v.count(zy(t),t)+(4===zy(t).getDay()),n,2)}function Y$e(t){return t.getDay()}function K$e(t,n){return mo(iS.count(zy(t)-1,t),n,2)}function J$e(t,n){return mo(t.getFullYear()%100,n,2)}function Q$e(t,n){return mo((t=lW(t)).getFullYear()%100,n,2)}function Z$e(t,n){return mo(t.getFullYear()%1e4,n,4)}function e4e(t,n){var e=t.getDay();return mo((t=e>=4||0===e?_v(t):_v.ceil(t)).getFullYear()%1e4,n,4)}function t4e(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+mo(n/60|0,"0",2)+mo(n%60,"0",2)}function cW(t,n){return mo(t.getUTCDate(),n,2)}function n4e(t,n){return mo(t.getUTCHours(),n,2)}function i4e(t,n){return mo(t.getUTCHours()%12||12,n,2)}function r4e(t,n){return mo(1+JU.count(Uy(t),t),n,3)}function uW(t,n){return mo(t.getUTCMilliseconds(),n,3)}function o4e(t,n){return uW(t,n)+"000"}function s4e(t,n){return mo(t.getUTCMonth()+1,n,2)}function a4e(t,n){return mo(t.getUTCMinutes(),n,2)}function l4e(t,n){return mo(t.getUTCSeconds(),n,2)}function c4e(t){var n=t.getUTCDay();return 0===n?7:n}function u4e(t,n){return mo(YU.count(Uy(t)-1,t),n,2)}function hW(t){var n=t.getUTCDay();return n>=4||0===n?bv(t):bv.ceil(t)}function h4e(t,n){return t=hW(t),mo(bv.count(Uy(t),t)+(4===Uy(t).getUTCDay()),n,2)}function d4e(t){return t.getUTCDay()}function f4e(t,n){return mo(nS.count(Uy(t)-1,t),n,2)}function p4e(t,n){return mo(t.getUTCFullYear()%100,n,2)}function g4e(t,n){return mo((t=hW(t)).getUTCFullYear()%100,n,2)}function m4e(t,n){return mo(t.getUTCFullYear()%1e4,n,4)}function v4e(t,n){var e=t.getUTCDay();return mo((t=e>=4||0===e?bv(t):bv.ceil(t)).getUTCFullYear()%1e4,n,4)}function y4e(){return"+0000"}function dW(){return"%"}function fW(t){return+t}function pW(t){return Math.floor(+t/1e3)}function mW(t){return null===t?NaN:+t}!function x4e(t){wv=function b$e(t){var n=t.dateTime,e=t.date,i=t.time,r=t.periods,o=t.days,s=t.shortDays,a=t.months,l=t.shortMonths,c=Gy(r),u=qy(r),h=Gy(o),d=qy(o),f=Gy(s),p=qy(s),m=Gy(a),w=qy(a),C=Gy(l),k=qy(l),E={a:function le(ct){return s[ct.getDay()]},A:function Fe(ct){return o[ct.getDay()]},b:function z(ct){return l[ct.getMonth()]},B:function Q(ct){return a[ct.getMonth()]},c:null,d:sW,e:sW,f:V$e,g:Q$e,G:e4e,H:j$e,I:B$e,j:H$e,L:aW,m:z$e,M:U$e,p:function Z(ct){return r[+(ct.getHours()>=12)]},q:function me(ct){return 1+~~(ct.getMonth()/3)},Q:fW,s:pW,S:W$e,u:G$e,U:q$e,V:X$e,w:Y$e,W:K$e,x:null,X:null,y:J$e,Y:Z$e,Z:t4e,"%":dW},L={a:function ae(ct){return s[ct.getUTCDay()]},A:function Te(ct){return o[ct.getUTCDay()]},b:function Oe(ct){return l[ct.getUTCMonth()]},B:function Ze(ct){return a[ct.getUTCMonth()]},c:null,d:cW,e:cW,f:o4e,g:g4e,G:v4e,H:n4e,I:i4e,j:r4e,L:uW,m:s4e,M:a4e,p:function Ve(ct){return r[+(ct.getUTCHours()>=12)]},q:function wt(ct){return 1+~~(ct.getUTCMonth()/3)},Q:fW,s:pW,S:l4e,u:c4e,U:u4e,V:h4e,w:d4e,W:f4e,x:null,X:null,y:p4e,Y:m4e,Z:y4e,"%":dW},B={a:function ce(ct,Ct,se){var Se=f.exec(Ct.slice(se));return Se?(ct.w=p[Se[0].toLowerCase()],se+Se[0].length):-1},A:function ue(ct,Ct,se){var Se=h.exec(Ct.slice(se));return Se?(ct.w=d[Se[0].toLowerCase()],se+Se[0].length):-1},b:function pe(ct,Ct,se){var Se=C.exec(Ct.slice(se));return Se?(ct.m=k[Se[0].toLowerCase()],se+Se[0].length):-1},B:function De(ct,Ct,se){var Se=m.exec(Ct.slice(se));return Se?(ct.m=w[Se[0].toLowerCase()],se+Se[0].length):-1},c:function ie(ct,Ct,se){return fe(ct,n,Ct,se)},d:rW,e:rW,f:N$e,g:iW,G:nW,H:oW,I:oW,j:I$e,L:O$e,m:M$e,M:F$e,p:function re(ct,Ct,se){var Se=c.exec(Ct.slice(se));return Se?(ct.p=u[Se[0].toLowerCase()],se+Se[0].length):-1},q:E$e,Q:$$e,s:P$e,S:L$e,u:S$e,U:k$e,V:D$e,w:C$e,W:T$e,x:function ge(ct,Ct,se){return fe(ct,e,Ct,se)},X:function we(ct,Ct,se){return fe(ct,i,Ct,se)},y:iW,Y:nW,Z:A$e,"%":R$e};function G(ct,Ct){return function(se){var rt,zt,Qt,Se=[],ke=-1,Qe=0,gt=ct.length;for(se instanceof Date||(se=new Date(+se));++ke53)return null;"w"in Se||(Se.w=1),"Z"in Se?(gt=(Qe=EI(Wy(Se.y,0,1))).getUTCDay(),Qe=gt>4||0===gt?nS.ceil(Qe):nS(Qe),Qe=JU.offset(Qe,7*(Se.V-1)),Se.y=Qe.getUTCFullYear(),Se.m=Qe.getUTCMonth(),Se.d=Qe.getUTCDate()+(Se.w+6)%7):(gt=(Qe=AI(Wy(Se.y,0,1))).getDay(),Qe=gt>4||0===gt?iS.ceil(Qe):iS(Qe),Qe=eW.offset(Qe,7*(Se.V-1)),Se.y=Qe.getFullYear(),Se.m=Qe.getMonth(),Se.d=Qe.getDate()+(Se.w+6)%7)}else("W"in Se||"U"in Se)&&("w"in Se||(Se.w="u"in Se?Se.u%7:"W"in Se?1:0),gt="Z"in Se?EI(Wy(Se.y,0,1)).getUTCDay():AI(Wy(Se.y,0,1)).getDay(),Se.m=0,Se.d="W"in Se?(Se.w+6)%7+7*Se.W-(gt+5)%7:Se.w+7*Se.U-(gt+6)%7);return"Z"in Se?(Se.H+=Se.Z/100|0,Se.M+=Se.Z%100,EI(Se)):AI(Se)}}function fe(ct,Ct,se,Se){for(var rt,zt,ke=0,Qe=Ct.length,gt=se.length;ke=gt)return-1;if(37===(rt=Ct.charCodeAt(ke++))){if(rt=Ct.charAt(ke++),!(zt=B[rt in tW?Ct.charAt(ke++):rt])||(Se=zt(ct,se,Se))<0)return-1}else if(rt!=se.charCodeAt(Se++))return-1}return Se}return E.x=G(e,E),E.X=G(i,E),E.c=G(n,E),L.x=G(e,L),L.X=G(i,L),L.c=G(n,L),{format:function(ct){var Ct=G(ct+="",E);return Ct.toString=function(){return ct},Ct},parse:function(ct){var Ct=oe(ct+="",!1);return Ct.toString=function(){return ct},Ct},utcFormat:function(ct){var Ct=G(ct+="",L);return Ct.toString=function(){return ct},Ct},utcParse:function(ct){var Ct=oe(ct+="",!0);return Ct.toString=function(){return ct},Ct}}}(t),gW=wv.format}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const C4e=mI(gI).right,yW=(mI(mW),C4e);function S4e(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function D4e(t){return+t}var bW=[0,1];function xv(t){return t}function MI(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:function k4e(t){return function(){return t}}(isNaN(n)?NaN:.5)}function A4e(t,n,e){var i=t[0],r=t[1],o=n[0],s=n[1];return rn&&(e=t,t=n,n=e),function(i){return Math.max(t,Math.min(n,i))}}(t[0],t[d-1])),a=d>2?E4e:A4e,l=c=null,h}function h(d){return isNaN(d=+d)?o:(l||(l=a(t.map(i),n,e)))(i(s(d)))}return h.invert=function(d){return s(r((c||(c=a(n,t.map(i),Hu)))(d)))},h.domain=function(d){return arguments.length?(t=Array.from(d,D4e),u()):t.slice()},h.range=function(d){return arguments.length?(n=Array.from(d),u()):n.slice()},h.rangeRound=function(d){return n=Array.from(d),e=S4e,u()},h.clamp=function(d){return arguments.length?(s=!!d||xv,u()):s!==xv},h.interpolate=function(d){return arguments.length?(e=d,u()):e},h.unknown=function(d){return arguments.length?(o=d,h):o},function(d,f){return i=d,r=f,u()}}()(xv,xv)}function Xy(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}var Yy=1e3,Ky=60*Yy,Jy=60*Ky,Qy=24*Jy,F4e=7*Qy,xW=30*Qy,II=365*Qy;function L4e(t){return new Date(t)}function O4e(t){return t instanceof Date?+t:+new Date(+t)}function CW(t,n,e,i,r,o,s,a,l){var c=wW(),u=c.invert,h=c.domain,d=l(".%L"),f=l(":%S"),p=l("%I:%M"),m=l("%I %p"),w=l("%a %d"),C=l("%b %d"),k=l("%B"),E=l("%Y"),L=[[s,1,Yy],[s,5,5*Yy],[s,15,15*Yy],[s,30,30*Yy],[o,1,Ky],[o,5,5*Ky],[o,15,15*Ky],[o,30,30*Ky],[r,1,Jy],[r,3,3*Jy],[r,6,6*Jy],[r,12,12*Jy],[i,1,Qy],[i,2,2*Qy],[e,1,F4e],[n,1,xW],[n,3,3*xW],[t,1,II]];function B(oe){return(s(oe)=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function rS(t){if(!(n=N4e.exec(t)))throw new Error("invalid format: "+t);var n;return new FI({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function FI(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function oS(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,i=t.slice(0,e);return[i.length>1?i[0]+i.slice(2):i,+t.slice(e+1)]}function Cv(t){return(t=oS(Math.abs(t)))?t[1]:NaN}function kW(t,n){var e=oS(t,n);if(!e)return t+"";var i=e[0],r=e[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}rS.prototype=FI.prototype,FI.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const DW={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function R4e(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return kW(100*t,n)},r:kW,s:function H4e(t,n){var e=oS(t,n);if(!e)return t+"";var i=e[0],r=e[1],o=r-(SW=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,s=i.length;return o===s?i:o>s?i+new Array(o-s+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+oS(t,Math.max(0,n+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function TW(t){return t}var sS,LI,MW,AW=Array.prototype.map,EW=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function q4e(t){var n=t.domain;return t.ticks=function(e){var i=n();return function YRe(t,n,e){var i,o,s,a,r=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((i=n0)for(t=Math.ceil(t/a),n=Math.floor(n/a),s=new Array(o=Math.ceil(n-t+1));++r0;){if((c=PU(s,a,e))===l)return i[r]=s,i[o]=a,n(i);if(c>0)s=Math.floor(s/c)*c,a=Math.ceil(a/c)*c;else{if(!(c<0))break;s=Math.ceil(s*c)/c,a=Math.floor(a*c)/c}l=c}return t},t}function jo(){var t=wW();return t.copy=function(){return _W(t,jo())},Xy.apply(t,arguments),q4e(t)}function IW(t,n,e){t=+t,n=+n,e=(r=arguments.length)<2?(n=t,t=0,1):r<3?1:+e;for(var i=-1,r=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(r);++i0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),o.push(e.substring(r-=a,r+a)),!((l+=a+1)>i));)a=t[s=(s+1)%t.length];return o.reverse().join(n)}}(AW.call(t.grouping,Number),t.thousands+""),e=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",r=void 0===t.decimal?".":t.decimal+"",o=void 0===t.numerals?TW:function j4e(t){return function(n){return n.replace(/[0-9]/g,function(e){return t[+e]})}}(AW.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",a=void 0===t.minus?"-":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function c(h){var d=(h=rS(h)).fill,f=h.align,p=h.sign,m=h.symbol,w=h.zero,C=h.width,k=h.comma,E=h.precision,L=h.trim,B=h.type;"n"===B?(k=!0,B="g"):DW[B]||(void 0===E&&(E=12),L=!0,B="g"),(w||"0"===d&&"="===f)&&(w=!0,d="0",f="=");var G="$"===m?e:"#"===m&&/[boxX]/.test(B)?"0"+B.toLowerCase():"",oe="$"===m?i:/[%p]/.test(B)?s:"",fe=DW[B],re=/[defgprs%]/.test(B);function ce(ue){var ie,ge,we,pe=G,De=oe;if("c"===B)De=fe(ue)+De,ue="";else{var le=(ue=+ue)<0||1/ue<0;if(ue=isNaN(ue)?l:fe(Math.abs(ue),E),L&&(ue=function B4e(t){e:for(var r,n=t.length,e=1,i=-1;e0&&(i=0)}return i>0?t.slice(0,i)+t.slice(r+1):t}(ue)),le&&0==+ue&&"+"!==p&&(le=!1),pe=(le?"("===p?p:a:"-"===p||"("===p?"":p)+pe,De=("s"===B?EW[8+SW/3]:"")+De+(le&&"("===p?")":""),re)for(ie=-1,ge=ue.length;++ie(we=ue.charCodeAt(ie))||we>57){De=(46===we?r+ue.slice(ie+1):ue.slice(ie))+De,ue=ue.slice(0,ie);break}}k&&!w&&(ue=n(ue,1/0));var Fe=pe.length+ue.length+De.length,z=Fe>1)+pe+ue+De+z.slice(Fe);break;default:ue=z+pe+ue+De}return o(ue)}return E=void 0===E?6:/[gprs]/.test(B)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E)),ce.toString=function(){return h+""},ce}return{format:c,formatPrefix:function u(h,d){var f=c(((h=rS(h)).type="f",h)),p=3*Math.max(-8,Math.min(8,Math.floor(Cv(d)/3))),m=Math.pow(10,-p),w=EW[8+p/3];return function(C){return f(m*C)+w}}}}(t),LI=sS.format,MW=sS.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});const FW=Symbol("implicit");function OI(){var t=new Map,n=[],e=[],i=FW;function r(o){var s=o+"",a=t.get(s);if(!a){if(i!==FW)return i;t.set(s,a=n.push(o))}return e[(a-1)%e.length]}return r.domain=function(o){if(!arguments.length)return n.slice();n=[],t=new Map;for(const s of o){const a=s+"";t.has(a)||t.set(a,n.push(s))}return r},r.range=function(o){return arguments.length?(e=Array.from(o),r):e.slice()},r.unknown=function(o){return arguments.length?(i=o,r):i},r.copy=function(){return OI(n,e).unknown(i)},Xy.apply(r,arguments),r}function Ja(){var o,s,t=OI().unknown(void 0),n=t.domain,e=t.range,i=0,r=1,a=!1,l=0,c=0,u=.5;function h(){var d=n().length,f=r=1)return+e(t[i-1],i-1,t);var i,r=(i-1)*n,o=Math.floor(r),s=+e(t[o],o,t);return s+(+e(t[o+1],o+1,t)-s)*(r-o)}}function OW(){var i,t=[],n=[],e=[];function r(){var s=0,a=Math.max(1,n.length);for(e=new Array(a-1);++s0?e[a-1]:t[0],avg)if(Math.abs(u*a-l*c)>vg&&r){var d=e-o,f=i-s,p=a*a+l*l,m=d*d+f*f,w=Math.sqrt(p),C=Math.sqrt(h),k=r*Math.tan((NI-Math.acos((p+h-m)/(2*w*C)))/2),E=k/C,L=k/w;Math.abs(E-1)>vg&&(this._+="L"+(t+E*c)+","+(n+E*u)),this._+="A"+r+","+r+",0,0,"+ +(u*d>c*f)+","+(this._x1=t+L*a)+","+(this._y1=n+L*l)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,i,r,o){t=+t,n=+n,o=!!o;var s=(e=+e)*Math.cos(i),a=e*Math.sin(i),l=t+s,c=n+a,u=1^o,h=o?i-r:r-i;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>vg||Math.abs(this._y1-c)>vg)&&(this._+="L"+l+","+c),e&&(h<0&&(h=h%RI+RI),h>Y4e?this._+="A"+e+","+e+",0,1,"+u+","+(t-s)+","+(n-a)+"A"+e+","+e+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):h>vg&&(this._+="A"+e+","+e+",0,"+ +(h>=NI)+","+u+","+(this._x1=t+e*Math.cos(r))+","+(this._y1=n+e*Math.sin(r))))},rect:function(t,n,e,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}};const PI=RW;function No(t){return function(){return t}}function $W(t){return t[0]}function PW(t){return t[1]}function aS(){var t=$W,n=PW,e=No(!0),i=null,r=mg,o=null;function s(a){var l,u,d,c=a.length,h=!1;for(null==i&&(o=r(d=PI())),l=0;l<=c;++l)!(l=d;--f)a.point(k[f],E[f]);a.lineEnd(),a.areaEnd()}w&&(k[h]=+t(m,h,u),E[h]=+e(m,h,u),a.point(n?+n(m,h,u):k[h],i?+i(m,h,u):E[h]))}if(C)return a=null,C+""||null}function c(){return aS().defined(r).curve(s).context(o)}return l.x=function(u){return arguments.length?(t="function"==typeof u?u:No(+u),n=null,l):t},l.x0=function(u){return arguments.length?(t="function"==typeof u?u:No(+u),l):t},l.x1=function(u){return arguments.length?(n=null==u?null:"function"==typeof u?u:No(+u),l):n},l.y=function(u){return arguments.length?(e="function"==typeof u?u:No(+u),i=null,l):e},l.y0=function(u){return arguments.length?(e="function"==typeof u?u:No(+u),l):e},l.y1=function(u){return arguments.length?(i=null==u?null:"function"==typeof u?u:No(+u),l):i},l.lineX0=l.lineY0=function(){return c().x(t).y(e)},l.lineY1=function(){return c().x(t).y(i)},l.lineX1=function(){return c().x(n).y(e)},l.defined=function(u){return arguments.length?(r="function"==typeof u?u:No(!!u),l):r},l.curve=function(u){return arguments.length?(s=u,null!=o&&(a=s(o)),l):s},l.context=function(u){return arguments.length?(null==u?o=a=null:a=s(o=u),l):o},l}function jW(){}function jI(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function BW(t,n){this._context=t,this._k=(1-n)/6}function HW(t,n){this._context=t,this._k=(1-n)/6}function VW(t){this._curve=t}function fPe(t,n,e,i,r){for(var s,o=t.children,a=-1,l=o.length,c=t.value&&(i-n)/t.value;++a=0;)n+=e[i].value;else n=1;t.value=n}function qW(t,n){var r,s,a,l,c,e=new nb(t),i=+t.value&&(e.value=t.value),o=[e];for(null==n&&(n=LPe);r=o.pop();)if(i&&(r.value=+r.data.value),(a=n(r.data))&&(c=a.length))for(r.children=new Array(c),l=c-1;l>=0;--l)o.push(s=r.children[l]=new nb(a[l])),s.parent=r,s.depth=r.depth+1;return e.eachBefore(XW)}function LPe(t){return t.children}function OPe(t){t.data=t.data.data}function XW(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function nb(t){this.data=t,this.depth=this.height=0,this.parent=null}BW.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:jI(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:jI(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(n){function e(i){return new BW(i,n)}return e.tension=function(i){return t(+i)},e}(0),HW.prototype={areaStart:jW,areaEnd:jW,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:jI(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(n){function e(i){return new HW(i,n)}return e.tension=function(i){return t(+i)},e}(0),function zW(t){function n(e){return new VW(t(e))}return n._curve=t,n}(mg),VW.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}},Math,Math,Math,Math,Math,Math,Math,Math,function t(n){function e(i,r,o,s,a){!function mPe(t,n,e,i,r,o){for(var l,c,f,p,w,C,k,E,L,B,G,s=[],a=n.children,u=0,h=0,d=a.length,m=n.value;uk&&(k=c),G=w*w*B,(E=Math.max(k/G,G/C))>L){w-=c;break}L=E}s.push(l={value:w,dice:f1?i:1)},e}((1+Math.sqrt(5))/2),nb.prototype=qW.prototype={constructor:nb,count:function _Pe(){return this.eachAfter(bPe)},each:function wPe(t){var e,r,o,s,n=this,i=[n];do{for(e=i.reverse(),i=[];n=e.pop();)if(t(n),r=n.children)for(o=0,s=r.length;o=0;--r)e.push(i[r]);return this},sum:function SPe(t){return this.eachAfter(function(n){for(var e=+t(n.data)||0,i=n.children,r=i&&i.length;--r>=0;)e+=i[r].value;n.value=e})},sort:function kPe(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})},path:function DPe(t){for(var n=this,e=function TPe(t,n){if(t===n)return t;var e=t.ancestors(),i=n.ancestors(),r=null;for(t=e.pop(),n=i.pop();t===n;)r=t,t=e.pop(),n=i.pop();return r}(n,t),i=[n];n!==e;)i.push(n=n.parent);for(var r=i.length;t!==e;)i.splice(r,0,t),t=t.parent;return i},ancestors:function APe(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function EPe(){var t=[];return this.each(function(n){t.push(n)}),t},leaves:function MPe(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t},links:function IPe(){var t=this,n=[];return t.each(function(e){e!==t&&n.push({source:e.parent,target:e})}),n},copy:function FPe(){return qW(this).eachBefore(OPe)}};const jPe=["caretElm"];function BPe(t,n){}const HPe=function(t){return{model:t}};function VPe(t,n){if(1&t&&(A(0,"span"),ye(1,BPe,0,0,"ng-template",5),M()),2&t){const e=te();I(1),N("ngTemplateOutlet",e.template)("ngTemplateOutletContext",Lr(2,HPe,e.context))}}function zPe(t,n){1&t&&je(0,"span",6),2&t&&N("innerHTML",te().title,xw)}function UPe(t,n){if(1&t&&(kt(),Ip(),je(0,"ngx-charts-scale-legend",4)),2&t){const e=te();N("horizontal",e.legendOptions&&"below"===e.legendOptions.position)("valueRange",e.legendOptions.domain)("colors",e.legendOptions.colors)("height",e.view[1])("width",e.legendWidth)}}function WPe(t,n){if(1&t){const e=Bt();kt(),Ip(),A(0,"ngx-charts-legend",5),He("labelClick",function(r){return st(e),at(te().legendLabelClick.emit(r))})("labelActivate",function(r){return st(e),at(te().legendLabelActivate.emit(r))})("labelDeactivate",function(r){return st(e),at(te().legendLabelDeactivate.emit(r))}),M()}if(2&t){const e=te();N("horizontal",e.legendOptions&&"below"===e.legendOptions.position)("data",e.legendOptions.domain)("title",e.legendOptions.title)("colors",e.legendOptions.colors)("height",e.view[1])("width",e.legendWidth)("activeEntries",e.activeEntries)}}const JW=["*"],GPe=["ngx-charts-axis-label",""],QW=["ticksel"],qPe=["ngx-charts-x-axis-ticks",""];function XPe(t,n){if(1&t&&(kt(),A(0,"g",3)(1,"title"),J(2),M(),A(3,"text",4),J(4),M()()),2&t){const e=n.$implicit,i=te();Ft("transform",i.tickTransform(e)),I(2),Xt(i.tickFormat(e)),I(1),Er("font-size","12px"),Ft("text-anchor",i.textAnchor)("transform",i.textTransform),I(1),jn(" ",i.tickTrim(i.tickFormat(e))," ")}}function YPe(t,n){if(1&t&&(kt(),A(0,"g"),je(1,"line",6),M()),2&t){const e=te(2);Ft("transform",e.gridLineTransform()),I(1),Ft("y1",-e.gridLineHeight)}}function KPe(t,n){if(1&t&&(kt(),A(0,"g"),ye(1,YPe,2,2,"g",5),M()),2&t){const e=n.$implicit,i=te();Ft("transform",i.tickTransform(e)),I(1),N("ngIf",i.showGridLines)}}const JPe=["ngx-charts-x-axis",""];function QPe(t,n){if(1&t){const e=Bt();kt(),A(0,"g",2),He("dimensionsChanged",function(r){return st(e),at(te().emitTicksHeight(r))}),M()}if(2&t){const e=te();N("trimTicks",e.trimTicks)("rotateTicks",e.rotateTicks)("maxTickLength",e.maxTickLength)("tickFormatting",e.tickFormatting)("tickArguments",e.tickArguments)("tickStroke",e.tickStroke)("scale",e.xScale)("orient",e.xOrient)("showGridLines",e.showGridLines)("gridLineHeight",e.dims.height)("width",e.dims.width)("tickValues",e.ticks)}}function ZPe(t,n){if(1&t&&(kt(),je(0,"g",3)),2&t){const e=te();N("label",e.labelText)("offset",e.labelOffset)("orient","bottom")("height",e.dims.height)("width",e.dims.width)}}const eje=["ngx-charts-y-axis-ticks",""];function tje(t,n){if(1&t&&(kt(),A(0,"g",4)(1,"title"),J(2),M(),A(3,"text",5),J(4),M()()),2&t){const e=n.$implicit,i=te();Ft("transform",i.transform(e)),I(2),Xt(i.tickFormat(e)),I(1),Er("font-size","12px"),Ft("dy",i.dy)("x",i.x1)("y",i.y1)("text-anchor",i.textAnchor),I(1),jn(" ",i.tickTrim(i.tickFormat(e))," ")}}function nje(t,n){if(1&t&&(kt(),je(0,"path",6)),2&t){const e=te();Ft("d",e.referenceAreaPath)("transform",e.gridLineTransform())}}function ije(t,n){1&t&&(kt(),je(0,"line",9)),2&t&&Ft("x2",te(3).gridLineWidth)}function rje(t,n){1&t&&(kt(),je(0,"line",9)),2&t&&Ft("x2",-te(3).gridLineWidth)}function oje(t,n){if(1&t&&(kt(),A(0,"g"),ye(1,ije,1,1,"line",8),ye(2,rje,1,1,"line",8),M()),2&t){const e=te(2);Ft("transform",e.gridLineTransform()),I(1),N("ngIf","left"===e.orient),I(1),N("ngIf","right"===e.orient)}}function sje(t,n){if(1&t&&(kt(),A(0,"g"),ye(1,oje,3,3,"g",7),M()),2&t){const e=n.$implicit,i=te();Ft("transform",i.transform(e)),I(1),N("ngIf",i.showGridLines)}}function aje(t,n){if(1&t&&(kt(),A(0,"g")(1,"title"),J(2),M(),A(3,"text",11),J(4),M()()),2&t){const e=te(2).$implicit,i=te();I(2),Xt(i.tickTrim(i.tickFormat(e.value))),I(1),Ft("dy",i.dy)("y",-6)("x",i.gridLineWidth)("text-anchor",i.textAnchor),I(1),jn(" ",e.name," ")}}function lje(t,n){if(1&t&&(kt(),A(0,"g"),je(1,"line",10),ye(2,aje,5,6,"g",7),M()),2&t){const e=te().$implicit,i=te();Ft("transform",i.transform(e.value)),I(1),Ft("x2",i.gridLineWidth)("transform",i.gridLineTransform()),I(1),N("ngIf",i.showRefLabels)}}function cje(t,n){if(1&t&&(kt(),A(0,"g"),ye(1,lje,3,4,"g",7),M()),2&t){const e=te();I(1),N("ngIf",e.showRefLines)}}const uje=["ngx-charts-y-axis",""];function hje(t,n){if(1&t){const e=Bt();kt(),A(0,"g",2),He("dimensionsChanged",function(r){return st(e),at(te().emitTicksWidth(r))}),M()}if(2&t){const e=te();N("trimTicks",e.trimTicks)("maxTickLength",e.maxTickLength)("tickFormatting",e.tickFormatting)("tickArguments",e.tickArguments)("tickValues",e.ticks)("tickStroke",e.tickStroke)("scale",e.yScale)("orient",e.yOrient)("showGridLines",e.showGridLines)("gridLineWidth",e.dims.width)("referenceLines",e.referenceLines)("showRefLines",e.showRefLines)("showRefLabels",e.showRefLabels)("height",e.dims.height)}}function dje(t,n){if(1&t&&(kt(),je(0,"g",3)),2&t){const e=te();N("label",e.labelText)("offset",e.labelOffset)("orient",e.yOrient)("height",e.dims.height)("width",e.dims.width)}}const fje=["ngx-charts-circle-series",""];function pje(t,n){if(1&t&&(kt(),je(0,"rect",4)),2&t){const e=te(2);N("@animationState","active"),Ft("x",e.circle.cx-e.circle.radius)("y",e.circle.cy)("width",2*e.circle.radius)("height",e.circle.height)("fill",e.gradientFill)}}const gje=function(t){return{name:t}};function mje(t,n){if(1&t){const e=Bt();kt(),A(0,"g")(1,"defs"),je(2,"g",1),M(),ye(3,pje,1,6,"rect",2),A(4,"g",3),He("select",function(){st(e);const r=te();return at(r.onClick(r.circle.data))})("activate",function(){return st(e),at(te().activateCircle())})("deactivate",function(){return st(e),at(te().deactivateCircle())}),M()()}if(2&t){const e=te();I(2),N("name",e.gradientId)("stops",e.circle.gradientStops),I(1),N("ngIf",e.barVisible&&"standard"===e.type),I(1),Kn("active",e.isActive(Lr(18,gje,e.circle.seriesName))),N("cx",e.circle.cx)("cy",e.circle.cy)("r",e.circle.radius)("fill",e.circle.color)("pointerEvents",0===e.circle.value?"none":"all")("data",e.circle.value)("classNames",e.circle.classNames)("tooltipDisabled",e.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",e.tooltipTemplate?void 0:e.getTooltipText(e.circle))("tooltipTemplate",e.tooltipTemplate)("tooltipContext",e.circle.data)}}const vje=["ngx-charts-circle",""],wje=["ngx-charts-svg-linear-gradient",""];function xje(t,n){if(1&t&&(kt(),je(0,"stop")),2&t){const e=n.$implicit;Er("stop-color",e.color)("stop-opacity",e.opacity),Ft("offset",e.offset+"%")}}const kje=["ngx-charts-area",""];function Dje(t,n){if(1&t&&(kt(),A(0,"defs"),je(1,"g",2),M()),2&t){const e=te();I(1),N("name",e.gradientId)("stops",e.gradientStops)}}const Aje=["tooltipAnchor"],Eje=["ngx-charts-tooltip-area",""];function Mje(t,n){if(1&t&&(A(0,"div",6),je(1,"span",7),J(2),M()),2&t){const e=n.$implicit,i=te(2);I(1),Er("background-color",e.color),I(1),jn(" ",i.getToolTipText(e)," ")}}function Ije(t,n){if(1&t&&(kt(),Ip(),A(0,"div",4),ye(1,Mje,3,3,"div",5),M()),2&t){const e=n.model;I(1),N("ngForOf",e)}}const Fje=["ngx-charts-timeline",""];function Lje(t,n){if(1&t&&(A(0,"header",4)(1,"span",5),J(2),M()()),2&t){const e=te();I(2),Xt(e.title)}}function Oje(t,n){if(1&t){const e=Bt();A(0,"li",6)(1,"ngx-charts-legend-entry",7),He("select",function(r){return st(e),at(te().labelClick.emit(r))})("activate",function(r){return st(e),at(te().activate(r))})("deactivate",function(r){return st(e),at(te().deactivate(r))}),M()()}if(2&t){const e=n.$implicit,i=te();I(1),N("label",e.label)("formattedLabel",e.formattedLabel)("color",e.color)("isActive",i.isActive(e))}}const sa=["tooltipTemplate"],dS=["seriesTooltipTemplate"],qo=function(t,n){return[t,n]},n8e=["ngx-charts-line",""];function i8e(t,n){if(1&t){const e=Bt();kt(),A(0,"g",7),He("dimensionsChanged",function(r){return st(e),at(te().updateXAxisHeight(r))}),M()}if(2&t){const e=te();N("xScale",e.xScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)}}function r8e(t,n){if(1&t){const e=Bt();kt(),A(0,"g",8),He("dimensionsChanged",function(r){return st(e),at(te().updateYAxisWidth(r))}),M()}if(2&t){const e=te();N("yScale",e.yScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)("referenceLines",e.referenceLines)("showRefLines",e.showRefLines)("showRefLabels",e.showRefLabels)}}function o8e(t,n){if(1&t&&(kt(),A(0,"g"),je(1,"g",9),M()),2&t){const e=n.$implicit,i=te();N("@animationState","active"),I(1),N("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("activeEntries",i.activeEntries)("scaleType",i.scaleType)("curve",i.curve)("rangeFillOpacity",i.rangeFillOpacity)("hasRange",i.hasRange)("animations",i.animations)}}function s8e(t,n){if(1&t){const e=Bt();kt(),A(0,"g")(1,"g",13),He("select",function(r){return st(e),at(te(2).onClick(r))})("activate",function(r){return st(e),at(te(2).onActivate(r))})("deactivate",function(r){return st(e),at(te(2).onDeactivate(r))}),M()()}if(2&t){const e=n.$implicit,i=te(2);I(1),N("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("visibleValue",i.hoveredVertical)("activeEntries",i.activeEntries)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)}}function a8e(t,n){if(1&t){const e=Bt();kt(),A(0,"g",10),He("mouseleave",function(){return st(e),at(te().hideCircles())}),A(1,"g",11),He("hover",function(r){return st(e),at(te().updateHoveredVertical(r))}),M(),ye(2,s8e,2,9,"g",12),M()}if(2&t){const e=te();I(1),N("dims",e.dims)("xSet",e.xSet)("xScale",e.xScale)("yScale",e.yScale)("results",e.results)("colors",e.colors)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.seriesTooltipTemplate),I(1),N("ngForOf",e.results)}}function l8e(t,n){if(1&t&&(kt(),A(0,"g"),je(1,"g",15),M()),2&t){const e=n.$implicit,i=te(2);I(1),N("xScale",i.timelineXScale)("yScale",i.timelineYScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("curve",i.curve)("hasRange",i.hasRange)("animations",i.animations)}}function c8e(t,n){if(1&t){const e=Bt();kt(),A(0,"g",14),He("onDomainChange",function(r){return st(e),at(te().updateDomain(r))}),ye(1,l8e,2,8,"g",4),M()}if(2&t){const e=te();N("results",e.results)("view",Kr(10,qo,e.timelineWidth,e.height))("height",e.timelineHeight)("scheme",e.scheme)("customColors",e.customColors)("scaleType",e.scaleType)("legend",e.legend),Ft("transform",e.timelineTransform),I(1),N("ngForOf",e.results)("ngForTrackBy",e.trackBy)}}const u8e=["ngx-charts-line-series",""];function h8e(t,n){if(1&t&&(kt(),je(0,"g",4)),2&t){const e=te();N("name",e.gradientId)("stops",e.gradientStops)}}function d8e(t,n){if(1&t&&(kt(),je(0,"g",5)),2&t){const e=te();Kn("active",e.isActive(e.data))("inactive",e.isInactive(e.data)),N("data",e.data)("path",e.outerPath)("fill",e.hasGradient?e.gradientUrl:e.colors.getColor(e.data.name))("opacity",e.rangeFillOpacity)("animations",e.animations)}}let nG=(()=>{class t{constructor(e,i,r){this.applicationRef=e,this.componentFactoryResolver=i,this.injector=r}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(e){this._container=e}getComponentRootNode(e){return function a6e(t){return t.element}(e)?e.element.nativeElement:e.hostView&&e.hostView.rootNodes.length>0?e.hostView.rootNodes[0]:e.location.nativeElement}getRootViewContainerNode(e){return this.getComponentRootNode(e)}projectComponentBindings(e,i){if(i){if(void 0!==i.inputs){const r=Object.getOwnPropertyNames(i.inputs);for(const o of r)e.instance[o]=i.inputs[o]}if(void 0!==i.outputs){const r=Object.getOwnPropertyNames(i.outputs);for(const o of r)e.instance[o]=i.outputs[o]}}return e}appendComponent(e,i={},r){r||(r=this.getRootViewContainer());const o=this.getComponentRootNode(r),s=new SLe(o,this.componentFactoryResolver,this.applicationRef,this.injector),a=new Iz(e),l=s.attach(a);return this.projectComponentBindings(l,i),l}}return t.\u0275fac=function(e){return new(e||t)(Et(Lu),Et(Gc),Et(ea))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t})();function l6e(t,n,e){e=e||{};let i,r,o,s=null,a=0;function l(){a=!1===e.leading?0:+new Date,s=null,o=t.apply(i,r)}return function(){const c=+new Date;!a&&!1===e.leading&&(a=c);const u=n-(c-a);return i=this,r=arguments,u<=0?(clearTimeout(s),s=null,a=c,o=t.apply(i,r)):!s&&!1!==e.trailing&&(s=setTimeout(l,u)),o}}function c6e(t,n){return function(i,r,o){return{configurable:!0,enumerable:o.enumerable,get:function(){return Object.defineProperty(this,r,{configurable:!0,enumerable:o.enumerable,value:l6e(o.value,t,n)}),this[r]}}}}var aa=(()=>(function(t){t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right"}(aa||(aa={})),aa))();const $f=7;function iG(t,n,e){return"top"===e?t.top-$f:"bottom"===e?t.top+t.height-n.height+$f:"center"===e?t.top+t.height/2-n.height/2:void 0}function rG(t,n,e){return"left"===e?t.left-$f:"right"===e?t.left+t.width-n.width+$f:"center"===e?t.left+t.width/2-n.width/2:void 0}class Ac{static calculateVerticalAlignment(n,e,i){let r=iG(n,e,i);return r+e.height>window.innerHeight&&(r=window.innerHeight-e.height),r}static calculateVerticalCaret(n,e,i,r){let o;"top"===r&&(o=n.height/2-i.height/2+$f),"bottom"===r&&(o=e.height-n.height/2-i.height/2-$f),"center"===r&&(o=e.height/2-i.height/2);const s=iG(n,e,r);return s+e.height>window.innerHeight&&(o+=s+e.height-window.innerHeight),o}static calculateHorizontalAlignment(n,e,i){let r=rG(n,e,i);return r+e.width>window.innerWidth&&(r=window.innerWidth-e.width),r}static calculateHorizontalCaret(n,e,i,r){let o;"left"===r&&(o=n.width/2-i.width/2+$f),"right"===r&&(o=e.width-n.width/2-i.width/2-$f),"center"===r&&(o=e.width/2-i.width/2);const s=rG(n,e,r);return s+e.width>window.innerWidth&&(o+=s+e.width-window.innerWidth),o}static shouldFlip(n,e,i,r){let o=!1;return"right"===i&&n.left+n.width+e.width+r>window.innerWidth&&(o=!0),"left"===i&&n.left-e.width-r<0&&(o=!0),"top"===i&&n.top-e.height-r<0&&(o=!0),"bottom"===i&&n.top+n.height+e.height+r>window.innerHeight&&(o=!0),o}static positionCaret(n,e,i,r,o){let s=0,a=0;return n===aa.right?(a=-7,s=Ac.calculateVerticalCaret(i,e,r,o)):n===aa.left?(a=e.width,s=Ac.calculateVerticalCaret(i,e,r,o)):n===aa.top?(s=e.height,a=Ac.calculateHorizontalCaret(i,e,r,o)):n===aa.bottom&&(s=-7,a=Ac.calculateHorizontalCaret(i,e,r,o)),{top:s,left:a}}static positionContent(n,e,i,r,o){let s=0,a=0;return n===aa.right?(a=i.left+i.width+r,s=Ac.calculateVerticalAlignment(i,e,o)):n===aa.left?(a=i.left-e.width-r,s=Ac.calculateVerticalAlignment(i,e,o)):n===aa.top?(s=i.top-e.height-r,a=Ac.calculateHorizontalAlignment(i,e,o)):n===aa.bottom&&(s=i.top+i.height+r,a=Ac.calculateHorizontalAlignment(i,e,o)),{top:s,left:a}}static determinePlacement(n,e,i,r){if(Ac.shouldFlip(i,e,n,r)){if(n===aa.right)return aa.left;if(n===aa.left)return aa.right;if(n===aa.top)return aa.bottom;if(n===aa.bottom)return aa.top}return n}}let u6e=(()=>{class t{constructor(e,i){this.element=e,this.renderer=i}get cssClasses(){let e="ngx-charts-tooltip-content";return e+=` position-${this.placement}`,e+=` type-${this.type}`,e+=` ${this.cssClass}`,e}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){const e=this.element.nativeElement,i=this.host.nativeElement.getBoundingClientRect();if(!i.height&&!i.width)return;const r=e.getBoundingClientRect();this.checkFlip(i,r),this.positionContent(e,i,r),this.showCaret&&this.positionCaret(i,r),setTimeout(()=>this.renderer.addClass(e,"animate"),1)}positionContent(e,i,r){const{top:o,left:s}=Ac.positionContent(this.placement,r,i,this.spacing,this.alignment);this.renderer.setStyle(e,"top",`${o}px`),this.renderer.setStyle(e,"left",`${s}px`)}positionCaret(e,i){const r=this.caretElm.nativeElement,o=r.getBoundingClientRect(),{top:s,left:a}=Ac.positionCaret(this.placement,i,e,o,this.alignment);this.renderer.setStyle(r,"top",`${s}px`),this.renderer.setStyle(r,"left",`${a}px`)}checkFlip(e,i){this.placement=Ac.determinePlacement(this.placement,i,e,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(Ae(xi),Ae(Hs))},t.\u0275cmp=ln({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(e,i){if(1&e&&Do(jPe,5),2&e){let r;En(r=Mn())&&(i.caretElm=r.first)}},hostVars:2,hostBindings:function(e,i){1&e&&He("resize",function(){return i.onWindowResize()},0,wj),2&e&&Eu(i.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(e,i){1&e&&(A(0,"div"),je(1,"span",0,1),A(3,"div",2),ye(4,VPe,2,4,"span",3),ye(5,zPe,1,1,"span",4),M()()),2&e&&(I(1),function Y5(t,n,e){Iu(yc,Rh,Mm(dn(),t,n,e),!0)}("tooltip-caret position-",i.placement,""),N("hidden",!i.showCaret),I(3),N("ngIf",!i.title),I(1),N("ngIf",i.title))},dependencies:[Nn,Nl],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),function kLe(t,n,e,i){var s,r=arguments.length,o=r<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,n,e,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(r<3?s(o):r>3?s(n,e,o):s(n,e))||o);r>3&&o&&Object.defineProperty(n,e,o)}([c6e(100)],t.prototype,"onWindowResize",null),t})();class h6e{constructor(n){this.injectionService=n,this.defaults={},this.components=new Map}getByType(n=this.type){return this.components.get(n)}create(n){return this.createByType(this.type,n)}createByType(n,e){e=this.assignDefaults(e);const i=this.injectComponent(n,e);return this.register(n,i),i}destroy(n){const e=this.components.get(n.componentType);if(e&&e.length){const i=e.indexOf(n);i>-1&&(e[i].destroy(),e.splice(i,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(n){const e=this.components.get(n);if(e&&e.length){let i=e.length-1;for(;i>=0;)this.destroy(e[i--])}}injectComponent(n,e){return this.injectionService.appendComponent(n,e)}assignDefaults(n){const e=Object.assign({},this.defaults.inputs),i=Object.assign({},this.defaults.outputs);return!n.inputs&&!n.outputs&&(n={inputs:n}),e&&(n.inputs=Object.assign(Object.assign({},e),n.inputs)),i&&(n.outputs=Object.assign(Object.assign({},i),n.outputs)),n}register(n,e){this.components.has(n)||this.components.set(n,[]),this.components.get(n).push(e)}}let VI=(()=>{class t extends h6e{constructor(e){super(e),this.type=u6e}}return t.\u0275fac=function(e){return new(e||t)(Et(nG))},t.\u0275prov=Yt({token:t,factory:t.\u0275fac}),t})(),xs=(()=>{class t{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new vt,this.legendLabelActivate=new vt,this.legendLabelDeactivate=new vt}ngOnChanges(e){this.update()}update(){let e=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||"right"===this.legendOptions.position)&&(e="scaleLegend"===this.legendType?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-e)/12),this.legendWidth=this.legendOptions&&"right"!==this.legendOptions.position?this.chartWidth:Math.floor(this.view[0]*e/12)}getLegendType(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ln({type:t,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",data:"data",legendData:"legendData",colors:"colors",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[lo([VI]),ui],ngContentSelectors:JW,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(e,i){1&e&&(Tu(),A(0,"div",0),kt(),A(1,"svg",1),Au(2),M(),ye(3,UPe,1,5,"ngx-charts-scale-legend",2),ye(4,WPe,1,7,"ngx-charts-legend",3),M()),2&e&&(Er("width",i.view[0],"px"),N("@animationState","active")("@.disabled",!i.animations),I(1),Ft("width",i.chartWidth)("height",i.view[1]),I(2),N("ngIf",i.showLegend&&"scaleLegend"===i.legendType),I(1),N("ngIf",i.showLegend&&"legend"===i.legendType))},dependencies:function(){return[Nn,mG,yG]},encapsulation:2,data:{animation:[ml("animationState",[Wa(":enter",[Jr({opacity:0}),Ua("500ms 100ms",Jr({opacity:1}))])])]},changeDetection:0}),t})(),d6e=(()=>{class t{constructor(e,i){this.element=e,this.zone=i,this.visible=new vt,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const e=()=>{if(!this.element)return;const{offsetHeight:i,offsetWidth:r}=this.element.nativeElement;i&&r?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e())})}}return t.\u0275fac=function(e){return new(e||t)(Ae(xi),Ae(br))},t.\u0275dir=bn({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t})(),Cs=(()=>{class t{constructor(e,i,r){this.chartElement=e,this.zone=i,this.cd=r,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new vt}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new d6e(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(e){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const e=this.getContainerDims();e&&(this.width=e.width,this.height=e.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let e,i;const r=this.chartElement.nativeElement;if(null!==r.parentNode){const o=r.parentNode.getBoundingClientRect();e=o.width,i=o.height}return e&&i?{width:e,height:i}:null}formatDates(){for(let e=0;ee.lift(new ALe(t,n))}(200)).subscribe(r=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=i}cloneData(e){const i=[];for(const r of e){const o={name:r.name};if(void 0!==r.value&&(o.value=r.value),void 0!==r.series){o.series=[];for(const s of r.series){const a=Object.assign({},s);o.series.push(a)}}void 0!==r.extra&&(o.extra=JSON.parse(JSON.stringify(r.extra))),i.push(o)}return i}}return t.\u0275fac=function(e){return new(e||t)(Ae(xi),Ae(br),Ae(hs))},t.\u0275cmp=ln({type:t,selectors:[["base-chart"]],inputs:{scheme:"scheme",schemeType:"schemeType",animations:"animations",results:"results",view:"view",customColors:"customColors"},outputs:{select:"select"},features:[ui],decls:1,vars:0,template:function(e,i){1&e&&je(0,"div")},encapsulation:2}),t})(),zI=(()=>{class t{constructor(e){this.textHeight=25,this.margin=5,this.element=e.nativeElement}ngOnChanges(e){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case"top":case"bottom":this.y=this.offset,this.x=this.width/2;break;case"left":this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case"right":this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return t.\u0275fac=function(e){return new(e||t)(Ae(xi))},t.\u0275cmp=ln({type:t,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[ui],attrs:GPe,decls:2,vars:6,template:function(e,i){1&e&&(kt(),A(0,"text"),J(1),M()),2&e&&(Ft("stroke-width",i.strokeWidth)("x",i.x)("y",i.y)("text-anchor",i.textAnchor)("transform",i.transform),I(1),jn(" ",i.label," "))},encapsulation:2,changeDetection:0}),t})();function Pf(t,n=16){return"string"!=typeof t?"number"==typeof t?t+"":"":(t=t.trim()).length<=n?t:`${t.slice(0,n)}...`}function oG(t,n){if(t.length>n){const e=[],i=Math.floor(t.length/n);for(let r=0;r{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.dimensionsChanged=new vt,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor="middle",this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0}ngOnChanges(e){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);e!==this.height&&(this.height=e,this.dimensionsChanged.emit({height:e}),setTimeout(()=>this.updateDims()))}update(){const e=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(r){return"Date"===r.constructor.name?r.toLocaleDateString():r.toLocaleString()};const i=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(r){return this.scale(r)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",i&&0!==i?(this.textTransform=`rotate(${i})`,this.textAnchor="end",this.verticalSpacing=10):this.textAnchor="middle",setTimeout(()=>this.updateDims())}getRotationAngle(e){let i=0;this.maxTicksLength=0;for(let c=0;cthis.maxTicksLength&&(this.maxTicksLength=h)}const s=8*Math.min(this.maxTicksLength,this.maxAllowedLength);let a=s;const l=Math.floor(this.width/e.length);for(;a>l&&i>-90;)i-=30,a=Math.cos(i*(Math.PI/180))*s;return i}getTicks(){let e;const i=this.getMaxTicks(20),r=this.getMaxTicks(100);return this.tickValues?e=this.tickValues:this.scale.ticks?e=this.scale.ticks.apply(this.scale,[r]):(e=this.scale.domain(),e=oG(e,i)),e}getMaxTicks(e){return Math.floor(this.width/e)}tickTransform(e){return"translate("+this.adjustedScale(e)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(e){return this.trimTicks?Pf(e,this.maxTickLength):e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ln({type:t,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(e,i){if(1&e&&Do(QW,5),2&e){let r;En(r=Mn())&&(i.ticksElement=r.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",rotateTicks:"rotateTicks",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineHeight:"gridLineHeight",width:"width"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[ui],attrs:qPe,decls:4,vars:2,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[4,"ngIf"],["y2","0",1,"gridline-path","gridline-path-vertical"]],template:function(e,i){1&e&&(kt(),A(0,"g",null,0),ye(2,XPe,5,7,"g",1),M(),ye(3,KPe,2,2,"g",2)),2&e&&(I(2),N("ngForOf",i.ticks),I(1),N("ngForOf",i.ticks))},dependencies:[ti,Nn],encapsulation:2,changeDetection:0}),t})(),ic=(()=>{class t{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient="bottom",this.xAxisOffset=0,this.dimensionsChanged=new vt,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5}ngOnChanges(e){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,typeof this.xAxisTickCount<"u"&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:e}){const i=e+25+5;i!==this.labelOffset&&(this.labelOffset=i,setTimeout(()=>{this.dimensionsChanged.emit({height:e})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ln({type:t,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(e,i){if(1&e&&Do(sG,5),2&e){let r;En(r=Mn())&&(i.ticksComponent=r.first)}},inputs:{rotateTicks:"rotateTicks",showGridLines:"showGridLines",xOrient:"xOrient",xAxisOffset:"xAxisOffset",xScale:"xScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickInterval:"xAxisTickInterval",xAxisTickCount:"xAxisTickCount"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[ui],attrs:JPe,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(e,i){1&e&&(kt(),A(0,"g"),ye(1,QPe,1,12,"g",0),ye(2,ZPe,1,5,"g",1),M()),2&e&&(Ft("class",i.xAxisClassName)("transform",i.transform),I(1),N("ngIf",i.xScale),I(1),N("ngIf",i.showLabel))},dependencies:[Nn,zI,sG],encapsulation:2,changeDetection:0}),t})();let aG=(()=>{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new vt,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor="middle",this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0}ngOnChanges(e){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);e!==this.width&&(this.width=e,this.dimensionsChanged.emit({width:e}),setTimeout(()=>this.updateDims()))}update(){let e;const i="top"===this.orient||"right"===this.orient?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,e=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(r){return"Date"===r.constructor.name?r.toLocaleDateString():r.toLocaleString()},this.adjustedScale=e.bandwidth?function(r){return e(r)+.5*e.bandwidth()}:e,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case"top":case"bottom":this.transform=function(r){return"translate("+this.adjustedScale(r)+",0)"},this.textAnchor="middle",this.y2=this.innerTickSize*i,this.y1=this.tickSpacing*i,this.dy=i<0?"0em":".71em";break;case"left":this.transform=function(r){return"translate(0,"+this.adjustedScale(r)+")"},this.textAnchor="end",this.x2=this.innerTickSize*-i,this.x1=this.tickSpacing*-i,this.dy=".32em";break;case"right":this.transform=function(r){return"translate(0,"+this.adjustedScale(r)+")"},this.textAnchor="start",this.x2=this.innerTickSize*-i,this.x1=this.tickSpacing*-i,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(e=>e.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(e=>e.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=function Yd(t,n,e,i,r,[o,s,a,l]){let c="";return c=`M${[t+r,n]}`,c+="h"+((e=0===(e=Math.floor(e))?1:e)-2*r),c+=s?`a${[r,r]} 0 0 1 ${[r,r]}`:`h${r}v${r}`,c+="v"+((i=0===(i=Math.floor(i))?1:i)-2*r),c+=l?`a${[r,r]} 0 0 1 ${[-r,r]}`:`v${r}h${-r}`,c+="h"+(2*r-e),c+=a?`a${[r,r]} 0 0 1 ${[-r,-r]}`:`h${-r}v${-r}`,c+="v"+(2*r-i),c+=o?`a${[r,r]} 0 0 1 ${[r,-r]}`:`v${-r}h${r}`,c+="z",c}(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let e;const i=this.getMaxTicks(20),r=this.getMaxTicks(50);return this.tickValues?e=this.tickValues:this.scale.ticks?e=this.scale.ticks.apply(this.scale,[r]):(e=this.scale.domain(),e=oG(e,i)),e}getMaxTicks(e){return Math.floor(this.height/e)}tickTransform(e){return`translate(${this.adjustedScale(e)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(e){return this.trimTicks?Pf(e,this.maxTickLength):e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ln({type:t,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(e,i){if(1&e&&Do(QW,5),2&e){let r;En(r=Mn())&&(i.ticksElement=r.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[ui],attrs:eje,decls:6,vars:4,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[1,"reference-area"],[4,"ngIf"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(e,i){1&e&&(kt(),A(0,"g",null,0),ye(2,tje,5,9,"g",1),M(),ye(3,nje,1,2,"path",2),ye(4,sje,2,2,"g",3),ye(5,cje,2,1,"g",3)),2&e&&(I(2),N("ngForOf",i.ticks),I(1),N("ngIf",i.referenceLineLength>1&&i.refMax&&i.refMin&&i.showRefLines),I(1),N("ngForOf",i.ticks),I(1),N("ngForOf",i.referenceLines))},dependencies:[ti,Nn],encapsulation:2,changeDetection:0}),t})(),jl=(()=>{class t{constructor(){this.showGridLines=!1,this.yOrient="left",this.yAxisOffset=0,this.dimensionsChanged=new vt,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(e){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),"right"===this.yOrient?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):(this.offset=this.offset,this.transform=`translate(${this.offset} , 0)`),void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:e}){e!==this.labelOffset&&"right"===this.yOrient?(this.labelOffset=e+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:e})},0)):e!==this.labelOffset&&(this.labelOffset=e,setTimeout(()=>{this.dimensionsChanged.emit({width:e})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ln({type:t,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(e,i){if(1&e&&Do(aG,5),2&e){let r;En(r=Mn())&&(i.ticksComponent=r.first)}},inputs:{showGridLines:"showGridLines",yOrient:"yOrient",yAxisOffset:"yAxisOffset",yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showLabel:"showLabel",labelText:"labelText",yAxisTickInterval:"yAxisTickInterval",yAxisTickCount:"yAxisTickCount",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[ui],attrs:uje,decls:3,vars:4,consts:[["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(e,i){1&e&&(kt(),A(0,"g"),ye(1,hje,1,14,"g",0),ye(2,dje,1,5,"g",1),M()),2&e&&(Ft("class",i.yAxisClassName)("transform",i.transform),I(1),N("ngIf",i.yScale),I(1),N("ngIf",i.showLabel))},dependencies:[Nn,zI,aG],encapsulation:2,changeDetection:0}),t})(),lG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[ia]}),t})();var fS=(()=>(function(t){t[t.popover="popover"]="popover",t[t.tooltip="tooltip"]="tooltip"}(fS||(fS={})),fS))(),pS=(()=>(function(t){t[t.left="left"]="left",t[t.center="center"]="center",t[t.right="right"]="right"}(pS||(pS={})),pS))(),jf=(()=>(function(t){t[t.all="all"]="all",t[t.focus="focus"]="focus",t[t.mouseover="mouseover"]="mouseover"}(jf||(jf={})),jf))();let Uu=(()=>{class t{constructor(e,i,r){this.tooltipService=e,this.viewContainerRef=i,this.renderer=r,this.tooltipCssClass="",this.tooltipTitle="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=aa.top,this.tooltipAlignment=pS.center,this.tooltipType=fS.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=jf.all,this.tooltipImmediateExit=!1,this.show=new vt,this.hide=new vt}get listensForFocus(){return this.tooltipShowEvent===jf.all||this.tooltipShowEvent===jf.focus}get listensForHover(){return this.tooltipShowEvent===jf.all||this.tooltipShowEvent===jf.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(e){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(e))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(e){if(this.component||this.tooltipDisabled)return;const i=e?0:this.tooltipShowTimeout;clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const r=this.createBoundOptions();this.component=this.tooltipService.create(r),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},i)}addHideListeners(e){this.mouseEnterContentEvent=this.renderer.listen(e,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(e,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen(document,"click",i=>{e.contains(i.target)||this.hideTooltip()}))}hideTooltip(e=!1){if(!this.component)return;const i=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),e?i():this.timeout=setTimeout(i,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return t.\u0275fac=function(e){return new(e||t)(Ae(VI),Ae(gl),Ae(Hs))},t.\u0275dir=bn({type:t,selectors:[["","ngx-tooltip",""]],hostBindings:function(e,i){1&e&&He("focusin",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(o){return i.onMouseLeave(o.target)})("click",function(){return i.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),t})(),cG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({providers:[nG,VI],imports:[ia]}),t})();function Qa(t){return t instanceof Date?t.toLocaleDateString():t.toLocaleString()}function wa(t){return t.toLocaleString().replace(/[&'`"<>]/g,n=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[n]))}const uG={};function Bl(){let t=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return t=`a${t}`,uG[t]?Bl():(uG[t]=!0,t)}let qI,ib=(()=>{class t{constructor(){this.type="standard",this.tooltipDisabled=!1,this.select=new vt,this.activate=new vt,this.deactivate=new vt,this.barVisible=!1}ngOnInit(){this.gradientId="grad"+Bl().toString(),this.gradientFill=`url(#${this.gradientId})`}ngOnChanges(e){this.update()}update(){this.circle=this.getActiveCircle()}getActiveCircle(){const e=this.data.series.findIndex(i=>{const r=i.name;return r&&this.visibleValue&&r.toString()===this.visibleValue.toString()&&void 0!==i.value});if(-1!==e)return this.mapDataPointToCircle(this.data.series[e],e)}mapDataPointToCircle(e,i){const r=this.data.name,o=e.value,s=e.name,a=Qa(s);let l;l=this.xScale("time"===this.scaleType?s:"linear"===this.scaleType?Number(s):s);const c=this.yScale("standard"===this.type?o:e.d1),h=this.yScale.range()[0]-c;let f;return f=this.colors.getColor("linear"===this.colors.scaleType?"standard"===this.type?o:e.d1:r),{classNames:[`circle-data-${i}`],value:o,label:s,data:Object.assign({},e,{series:r,value:o,name:s}),cx:l,cy:c,radius:5,height:h,tooltipLabel:a,color:f,opacity:1,seriesName:r,gradientStops:this.getGradientStops(f),min:e.min,max:e.max}}getTooltipText({tooltipLabel:e,value:i,seriesName:r,min:o,max:s}){return`\n ${wa(r)} \u2022 ${wa(e)}\n ${i.toLocaleString()}${this.getTooltipMinMaxText(o,s)}\n `}getTooltipMinMaxText(e,i){if(void 0!==e||void 0!==i){let r=" (";return void 0!==e?(void 0===i&&(r+="\u2265"),r+=e.toLocaleString(),void 0!==i&&(r+=" - ")):void 0!==i&&(r+="\u2264"),void 0!==i&&(r+=i.toLocaleString()),r+=")",r}return""}getGradientStops(e){return[{offset:0,color:e,opacity:.2},{offset:100,color:e,opacity:1}]}onClick(e){this.select.emit(e)}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(r=>e.name===r.name)}activateCircle(){this.barVisible=!0,this.activate.emit({name:this.data.name})}deactivateCircle(){this.barVisible=!1,this.circle.opacity=0,this.deactivate.emit({name:this.data.name})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ln({type:t,selectors:[["g","ngx-charts-circle-series",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",visibleValue:"visibleValue",activeEntries:"activeEntries",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[ui],attrs:fje,decls:1,vars:1,consts:[[4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],["class","tooltip-bar",4,"ngIf"],["ngx-charts-circle","","ngx-tooltip","",1,"circle",3,"cx","cy","r","fill","pointerEvents","data","classNames","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"],[1,"tooltip-bar"]],template:function(e,i){1&e&&ye(0,mje,5,20,"g",0),2&e&&N("ngIf",i.circle)},dependencies:function(){return[Nn,Uu,gS,bg]},encapsulation:2,data:{animation:[ml("animationState",[Wa(":enter",[Jr({opacity:0}),Ua(250,Jr({opacity:1}))])])]},changeDetection:0}),t})(),gS=(()=>{class t{constructor(){this.select=new vt,this.activate=new vt,this.deactivate=new vt}onClick(){this.select.emit(this.data)}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}ngOnChanges(e){this.classNames=Array.isArray(this.classNames)?this.classNames.join(" "):"",this.classNames+="circle"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ln({type:t,selectors:[["g","ngx-charts-circle",""]],hostBindings:function(e,i){1&e&&He("click",function(){return i.onClick()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{classNames:"classNames",cx:"cx",cy:"cy",r:"r",fill:"fill",stroke:"stroke",data:"data",circleOpacity:"circleOpacity",pointerEvents:"pointerEvents"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[ui],attrs:vje,decls:1,vars:8,template:function(e,i){1&e&&(kt(),je(0,"circle")),2&e&&Ft("cx",i.cx)("cy",i.cy)("r",i.r)("fill",i.fill)("stroke",i.stroke)("opacity",i.circleOpacity)("class",i.classNames)("pointer-events",i.pointerEvents)},encapsulation:2,changeDetection:0}),t})(),bg=(()=>{class t{constructor(){this.orientation="vertical"}ngOnChanges(e){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%","horizontal"===this.orientation?this.x2="100%":"vertical"===this.orientation&&(this.y1="100%")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ln({type:t,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[ui],attrs:wje,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(e,i){1&e&&(kt(),A(0,"linearGradient",0),ye(1,xje,1,5,"stop",1),M()),2&e&&(N("id",i.name),Ft("x1",i.x1)("y1",i.y1)("x2",i.x2)("y2",i.y2),I(1),N("ngForOf",i.stops))},dependencies:[ti],encapsulation:2,changeDetection:0}),t})(),GI=(()=>{class t{constructor(e){this.opacity=1,this.startOpacity=.5,this.endOpacity=1,this.gradient=!1,this.animations=!0,this.select=new vt,this.initialized=!1,this.hasGradient=!1,this.element=e.nativeElement}ngOnChanges(e){this.initialized?this.update():(this.loadAnimation(),this.initialized=!0)}update(){this.gradientId="grad"+Bl().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl()}loadAnimation(){this.areaPath=this.startingPath,setTimeout(this.update.bind(this),100)}updatePathEl(){const e=La(this.element).select(".area");this.animations?e.transition().duration(750).attr("d",this.path):e.attr("d",this.path)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.startOpacity},{offset:100,color:this.fill,opacity:this.endOpacity}]}}return t.\u0275fac=function(e){return new(e||t)(Ae(xi))},t.\u0275cmp=ln({type:t,selectors:[["g","ngx-charts-area",""]],inputs:{opacity:"opacity",startOpacity:"startOpacity",endOpacity:"endOpacity",gradient:"gradient",animations:"animations",data:"data",path:"path",startingPath:"startingPath",fill:"fill",activeLabel:"activeLabel",stops:"stops"},outputs:{select:"select"},features:[ui],attrs:kje,decls:2,vars:5,consts:[[4,"ngIf"],[1,"area"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"]],template:function(e,i){1&e&&(ye(0,Dje,2,2,"defs",0),kt(),je(1,"path",1)),2&e&&(N("ngIf",i.gradient),I(1),Er("opacity",i.opacity),Ft("d",i.areaPath)("fill",i.gradient?i.gradientFill:i.fill))},dependencies:[Nn,bg],encapsulation:2,changeDetection:0}),t})();typeof window<"u"?qI=window:typeof global<"u"&&(qI=global);const gG=qI.MouseEvent;function XI(t,n=!1,e=!0){if("function"==typeof gG)return new gG(t,{bubbles:n,cancelable:e});{const i=document.createEvent("MouseEvent");return i.initEvent(t,n,e),i}}let rb=(()=>{class t{constructor(){this.anchorOpacity=0,this.anchorPos=-1,this.anchorValues=[],this.showPercentage=!1,this.tooltipDisabled=!1,this.hover=new vt}getValues(e){const i=[];for(const r of this.results){const o=r.series.find(a=>a.name.toString()===e.toString());let s=r.name;if(s instanceof Date&&(s=s.toLocaleDateString()),o){const a=o.name;let c,l=o.value;if(this.showPercentage&&(l=(o.d1-o.d0).toFixed(2)+"%"),"linear"===this.colors.scaleType){let h=l;o.d1&&(h=o.d1),c=this.colors.getColor(h)}else c=this.colors.getColor(r.name);const u=Object.assign({},o,{value:l,name:a,series:s,min:o.min,max:o.max,color:c});i.push(u)}}return i}mouseMove(e){const i=e.pageX-e.target.getBoundingClientRect().left,r=this.findClosestPointIndex(i),o=this.xSet[r];if(this.anchorPos=this.xScale(o),this.anchorPos=Math.max(0,this.anchorPos),this.anchorPos=Math.min(this.dims.width,this.anchorPos),this.anchorValues=this.getValues(o),this.anchorPos!==this.lastAnchorPos){const s=XI("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(s),this.anchorOpacity=.7,this.hover.emit({value:o}),this.showTooltip(),this.lastAnchorPos=this.anchorPos}}findClosestPointIndex(e){let i=0,r=this.xSet.length-1,o=Number.MAX_VALUE,s=0;for(;i<=r;){const a=(i+r)/2|0,l=this.xScale(this.xSet[a]),c=Math.abs(l-e);if(ce)){o=0,s=a;break}r=a-1}}return s}showTooltip(){const e=XI("mouseenter");this.tooltipAnchor.nativeElement.dispatchEvent(e)}hideTooltip(){const e=XI("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(e),this.anchorOpacity=0,this.lastAnchorPos=-1}getToolTipText(e){let i="";return i+=void 0!==e.series?e.series:"???",i+=": ",void 0!==e.value&&(i+=e.value.toLocaleString()),(void 0!==e.min||void 0!==e.max)&&(i+=" (",void 0!==e.min?(void 0===e.max&&(i+="\u2265"),i+=e.min.toLocaleString(),void 0!==e.max&&(i+=" - ")):void 0!==e.max&&(i+="\u2264"),void 0!==e.max&&(i+=e.max.toLocaleString()),i+=")"),i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ln({type:t,selectors:[["g","ngx-charts-tooltip-area",""]],viewQuery:function(e,i){if(1&e&&Do(Aje,5),2&e){let r;En(r=Mn())&&(i.tooltipAnchor=r.first)}},inputs:{showPercentage:"showPercentage",tooltipDisabled:"tooltipDisabled",dims:"dims",xSet:"xSet",xScale:"xScale",yScale:"yScale",results:"results",colors:"colors",tooltipTemplate:"tooltipTemplate"},outputs:{hover:"hover"},attrs:Eje,decls:6,vars:18,consts:[["y","0",1,"tooltip-area",2,"opacity","0","cursor","auto",3,"mousemove","mouseleave"],["defaultTooltipTemplate",""],["y","0","ngx-tooltip","",1,"tooltip-anchor",3,"tooltipDisabled","tooltipPlacement","tooltipType","tooltipSpacing","tooltipTemplate","tooltipContext","tooltipImmediateExit"],["tooltipAnchor",""],[1,"area-tooltip-container"],["class","tooltip-item",4,"ngFor","ngForOf"],[1,"tooltip-item"],[1,"tooltip-item-color"]],template:function(e,i){if(1&e&&(kt(),A(0,"g")(1,"rect",0),He("mousemove",function(o){return i.mouseMove(o)})("mouseleave",function(){return i.hideTooltip()}),M(),ye(2,Ije,2,1,"ng-template",null,1,go),je(4,"rect",2,3),M()),2&e){const r=Io(3);I(1),Ft("x",0)("width",i.dims.width)("height",i.dims.height),I(3),Er("opacity",i.anchorOpacity)("pointer-events","none"),N("@animationState",0!==i.anchorOpacity?"active":"inactive")("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement","right")("tooltipType","tooltip")("tooltipSpacing",15)("tooltipTemplate",i.tooltipTemplate?i.tooltipTemplate:r)("tooltipContext",i.anchorValues)("tooltipImmediateExit",!0),Ft("x",i.anchorPos)("width",1)("height",i.dims.height)}},dependencies:[ti,Uu],encapsulation:2,data:{animation:[ml("animationState",[Wa("inactive => active",[Jr({opacity:0}),Ua(250,Jr({opacity:.7}))]),Wa("active => inactive",[Jr({opacity:.7}),Ua(250,Jr({opacity:0}))])])]},changeDetection:0}),t})(),ob=(()=>{class t{constructor(e,i){this.cd=i,this.height=50,this.select=new vt,this.onDomainChange=new vt,this.initialized=!1,this.element=e.nativeElement}ngOnChanges(e){this.update(),this.initialized||(this.addBrush(),this.initialized=!0)}update(){this.dims=this.getDims(),this.height=this.dims.height;const e=this.view[1]-this.height;this.xDomain=this.getXDomain(),this.xScale=this.getXScale(),this.brush&&this.updateBrush(),this.transform=`translate(0 , ${e})`,this.filterId="filter"+Bl().toString(),this.filter=`url(#${this.filterId})`,this.cd.markForCheck()}getXDomain(){let e=[];for(const r of this.results)for(const o of r.series)e.includes(o.name)||e.push(o.name);let i=[];return"time"===this.scaleType?i=[Math.min(...e),Math.max(...e)]:"linear"===this.scaleType?(e=e.map(s=>Number(s)),i=[Math.min(...e),Math.max(...e)]):i=e,i}getXScale(){let e;return"time"===this.scaleType?e=pg().range([0,this.dims.width]).domain(this.xDomain):"linear"===this.scaleType?e=jo().range([0,this.dims.width]).domain(this.xDomain):"ordinal"===this.scaleType&&(e=gg().range([0,this.dims.width]).padding(.1).domain(this.xDomain)),e}addBrush(){if(this.brush)return;const e=this.height,i=this.view[0];this.brush=function qRe(){return pI(QC)}().extent([[0,0],[i,e]]).on("brush end",()=>{const o=(fo.selection||this.xScale.range()).map(this.xScale.invert);this.onDomainChange.emit(o),this.cd.markForCheck()}),La(this.element).select(".brush").call(this.brush)}updateBrush(){this.brush&&(this.brush.extent([[0,0],[this.view[0],this.height]]),La(this.element).select(".brush").call(this.brush),La(this.element).select(".selection").attr("fill",void 0).attr("stroke",void 0).attr("fill-opacity",void 0),this.cd.markForCheck())}getDims(){return{width:this.view[0],height:this.height}}}return t.\u0275fac=function(e){return new(e||t)(Ae(xi),Ae(hs))},t.\u0275cmp=ln({type:t,selectors:[["g","ngx-charts-timeline",""]],inputs:{height:"height",view:"view",state:"state",results:"results",scheme:"scheme",customColors:"customColors",legend:"legend",miniChart:"miniChart",autoScale:"autoScale",scaleType:"scaleType"},outputs:{select:"select",onDomainChange:"onDomainChange"},features:[ui],attrs:Fje,ngContentSelectors:JW,decls:7,vars:4,consts:[[1,"timeline"],["in","SourceGraphic","type","matrix","values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"],[1,"embedded-chart"],["x","0","y","0",1,"brush-background"],[1,"brush"]],template:function(e,i){1&e&&(Tu(),kt(),A(0,"g",0)(1,"filter"),je(2,"feColorMatrix",1),M(),A(3,"g",2),Au(4),M(),je(5,"rect",3)(6,"g",4),M()),2&e&&(Ft("transform",i.transform),I(1),Ft("id",i.filterId),I(4),Ft("width",i.view[0])("height",i.height))},styles:[".timeline .brush-background{fill:rgba(0,0,0,.05)}.timeline .brush .selection{fill:rgba(0,0,0,.1);stroke:#888;stroke-width:1px}.timeline .brush .handle{fill-opacity:0}.timeline .embedded-chart{opacity:.6}"],encapsulation:2,changeDetection:0}),t})(),mG=(()=>{class t{constructor(e){this.cd=e,this.horizontal=!1,this.labelClick=new vt,this.labelActivate=new vt,this.labelDeactivate=new vt,this.legendEntries=[]}ngOnChanges(e){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const e=[];for(const i of this.data){const r=Qa(i);-1===e.findIndex(s=>s.label===r)&&e.push({label:i,formattedLabel:r,color:this.colors.getColor(i)})}return e}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(r=>e.label===r.name)}activate(e){this.labelActivate.emit(e)}deactivate(e){this.labelDeactivate.emit(e)}trackBy(e,i){return i.label}}return t.\u0275fac=function(e){return new(e||t)(Ae(hs))},t.\u0275cmp=ln({type:t,selectors:[["ngx-charts-legend"]],inputs:{horizontal:"horizontal",data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[ui],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(e,i){1&e&&(A(0,"div"),ye(1,Lje,3,1,"header",0),A(2,"div",1)(3,"ul",2),ye(4,Oje,2,4,"li",3),M()()()),2&e&&(Er("width",i.width,"px"),I(1),N("ngIf",(null==i.title?null:i.title.length)>0),I(2),Er("max-height",i.height-45,"px"),Kn("horizontal-legend",i.horizontal),I(1),N("ngForOf",i.legendEntries)("ngForTrackBy",i.trackBy))},dependencies:function(){return[ti,Nn,vG]},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{font-size:14px;font-weight:700;margin-bottom:5px;margin-left:10px;overflow:hidden;white-space:nowrap}.chart-legend li,.chart-legend ul{list-style:none;margin:0;padding:0}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{background:rgba(0,0,0,.05);border-radius:3px;float:left;line-height:85%;list-style:none;overflow-x:hidden;overflow-y:auto;text-align:left;white-space:nowrap;width:100%}.chart-legend .legend-label{color:#afb7c8;cursor:pointer;font-size:90%;margin:8px}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{border-radius:3px;color:#5b646b;display:inline-block;height:15px;margin-right:5px;width:15px}.chart-legend .legend-label-text{font-size:12px;line-height:15px;vertical-align:top;width:calc(100% - 20px)}.chart-legend .legend-label-text,.chart-legend .legend-title-text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-legend .legend-title-text{line-height:16px;vertical-align:bottom}"],encapsulation:2,changeDetection:0}),t})(),vG=(()=>{class t{constructor(){this.isActive=!1,this.select=new vt,this.activate=new vt,this.deactivate=new vt,this.toggle=new vt}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ln({type:t,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(e,i){1&e&&He("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(e,i){1&e&&(A(0,"span",0),He("click",function(){return i.select.emit(i.formattedLabel)}),A(1,"span",1),He("click",function(){return i.toggle.emit(i.formattedLabel)}),M(),A(2,"span",2),J(3),M()()),2&e&&(Kn("active",i.isActive),N("title",i.formattedLabel),I(1),Er("background-color",i.color),I(2),jn(" ",i.trimmedLabel," "))},encapsulation:2,changeDetection:0}),t})(),yG=(()=>{class t{constructor(e){this.sanitizer=e,this.horizontal=!1}ngOnChanges(e){const i=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle(`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${i})`)}gradientString(e,i){i.push(1);const r=[];return e.reverse().forEach((o,s)=>{r.push(`${o} ${Math.round(100*i[s])}%`)}),r.join(", ")}}return t.\u0275fac=function(e){return new(e||t)(Ae(QB))},t.\u0275cmp=ln({type:t,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[ui],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(e,i){1&e&&(A(0,"div",0)(1,"div",1)(2,"span"),J(3),M()(),je(4,"div",2),A(5,"div",1)(6,"span"),J(7),M()()()),2&e&&(Er("height",i.horizontal?void 0:i.height,"px")("width",i.width,"px"),Kn("horizontal-legend",i.horizontal),I(3),Xt(i.valueRange[1].toLocaleString()),I(1),Er("background",i.gradient),I(3),Xt(i.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{display:flex;flex-direction:column;text-align:center}.chart-legend .scale-legend-wrap{border-radius:5px;display:inline-block;flex:1;margin:0 auto;width:30px}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{height:30px;margin:0 16px;width:auto}"],encapsulation:2,changeDetection:0}),t})(),Wu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[ia,lG,cG,ia,lG,cG]}),t})();let _G=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class Ls{constructor(n,e,i,r){"string"==typeof n&&(n=_G.find(o=>o.name===n)),this.colorDomain=n.domain,this.scaleType=e,this.domain=i,this.customColors=r,this.scale=this.generateColorScheme(n,e,this.domain)}generateColorScheme(n,e,i){let r;if("string"==typeof n&&(n=_G.find(o=>o.name===n)),"quantile"===e)r=OW().range(n.domain).domain(i);else if("ordinal"===e)r=OI().range(n.domain).domain(i);else if("linear"===e){const o=[...n.domain];1===o.length&&(o.push(o[0]),this.colorDomain=o);const s=IW(0,1,1/o.length);r=jo().domain(s).range(o)}return r}getColor(n){if(null==n)throw new Error("Value can not be null");if("linear"===this.scaleType){const e=jo().domain(this.domain).range([0,1]);return this.scale(e(n))}{if("function"==typeof this.customColors)return this.customColors(n);const e=n.toString();let i;return this.customColors&&this.customColors.length>0&&(i=this.customColors.find(r=>r.name.toLowerCase()===e.toLowerCase())),i?i.value:this.scale(n)}}getLinearGradientStops(n,e){void 0===e&&(e=this.domain[0]);const i=jo().domain(this.domain).range([0,1]),r=Ja().domain(this.colorDomain).range([0,1]),o=this.getColor(n),s=i(e),a=this.getColor(e),l=i(n);let c=1,u=s;const h=[];for(h.push({color:a,offset:s,originalOffset:s,opacity:1});u=(l-r.bandwidth()).toFixed(4))break;h.push({color:d,offset:f,opacity:1}),u=f,c++}}if(h[h.length-1].offset<100&&h.push({color:o,offset:l,opacity:1}),l===s)h[0].offset=0,h[1].offset=100;else if(100!==h[h.length-1].offset)for(const d of h)d.offset=(d.offset-s)/(l-s)*100;return h}}let f6e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[Wu]}),t})(),xG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[Wu]}),t})(),g6e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[Wu]}),t})(),y6e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[Wu]}),t})(),kG=(()=>{class t{constructor(e){this.element=e,this.fill="none",this.animations=!0,this.select=new vt,this.initialized=!1}ngOnChanges(e){this.initialized?this.updatePathEl():(this.initialized=!0,this.initialPath=this.path)}updatePathEl(){const e=La(this.element.nativeElement).select(".line");this.animations?e.transition().duration(750).attr("d",this.path):e.attr("d",this.path)}}return t.\u0275fac=function(e){return new(e||t)(Ae(xi))},t.\u0275cmp=ln({type:t,selectors:[["g","ngx-charts-line",""]],inputs:{fill:"fill",animations:"animations",path:"path",stroke:"stroke",data:"data"},outputs:{select:"select"},features:[ui],attrs:n8e,decls:1,vars:4,consts:[["stroke-width","1.5px",1,"line"]],template:function(e,i){1&e&&(kt(),je(0,"path",0)),2&e&&(N("@animationState","active"),Ft("d",i.initialPath)("fill",i.fill)("stroke",i.stroke))},encapsulation:2,data:{animation:[ml("animationState",[Wa(":enter",[Jr({strokeDasharray:2e3,strokeDashoffset:2e3}),Ua(1e3,Jr({strokeDashoffset:0}))])])]},changeDetection:0}),t})(),b6e=(()=>{class t extends Cs{constructor(){super(...arguments),this.legendTitle="Legend",this.legendPosition="right",this.showGridLines=!0,this.curve=mg,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.showRefLines=!1,this.showRefLabels=!0,this.activate=new vt,this.deactivate=new vt,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.timelineHeight=50,this.timelinePadding=10}update(){super.update(),this.dims=function Fs({width:t,height:n,margins:e,showXAxis:i=!1,showYAxis:r=!1,xAxisHeight:o=0,yAxisWidth:s=0,showXLabel:a=!1,showYLabel:l=!1,showLegend:c=!1,legendType:u="ordinal",legendPosition:h="right",columns:d=12}){let f=e[3],p=t,m=n-e[0]-e[2];return c&&"right"===h&&(d-="ordinal"===u?2:1),p=p*d/12,p=p-e[1]-e[3],i&&(m-=5,m-=o,a&&(m-=30)),r&&(p-=5,p-=s,f+=s,f+=10,l&&(p-=30,f+=30)),p=Math.max(0,p),m=Math.max(0,m),{width:Math.floor(p),height:Math.floor(m),xOffset:Math.floor(f)}}({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height),this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`,this.clipPathId="clip"+Bl().toString(),this.clipPath=`url(#${this.clipPathId})`}updateTimeline(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform=`translate(${this.dims.xOffset}, ${-this.margin[2]})`)}getXDomain(){let e=function vS(t){const n=new Set;for(const e of t)for(const i of e.series)n.add(i.name);return Array.from(n)}(this.results);this.scaleType=function Bf(t,n=!0){return n&&t.every(r=>r instanceof Date)?"time":t.every(i=>"number"==typeof i)?"linear":"ordinal"}(e);let r,o,i=[];return"linear"===this.scaleType&&(e=e.map(s=>Number(s))),("time"===this.scaleType||"linear"===this.scaleType)&&(r=this.xScaleMin?this.xScaleMin:Math.min(...e),o=this.xScaleMax?this.xScaleMax:Math.max(...e)),"time"===this.scaleType?(i=[new Date(r),new Date(o)],this.xSet=[...e].sort((s,a)=>{const l=s.getTime(),c=a.getTime();return l>c?1:c>l?-1:0})):"linear"===this.scaleType?(i=[r,o],this.xSet=[...e].sort((s,a)=>s-a)):(i=e,this.xSet=e),i}getYDomain(){const e=[];for(const s of this.results)for(const a of s.series)e.indexOf(a.value)<0&&e.push(a.value),void 0!==a.min&&(this.hasRange=!0,e.indexOf(a.min)<0&&e.push(a.min)),void 0!==a.max&&(this.hasRange=!0,e.indexOf(a.max)<0&&e.push(a.max));const i=[...e];return this.autoScale||i.push(0),[this.yScaleMin?this.yScaleMin:Math.min(...i),this.yScaleMax?this.yScaleMax:Math.max(...i)]}getSeriesDomain(){return this.results.map(e=>e.name)}getXScale(e,i){let r;return"time"===this.scaleType?r=pg().range([0,i]).domain(e):"linear"===this.scaleType?(r=jo().range([0,i]).domain(e),this.roundDomains&&(r=r.nice())):"ordinal"===this.scaleType&&(r=gg().range([0,i]).padding(.1).domain(e)),r}getYScale(e,i){const r=jo().range([i,0]).domain(e);return this.roundDomains?r.nice():r}updateDomain(e){this.filteredDomain=e,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)}updateHoveredVertical(e){this.hoveredVertical=e.value,this.deactivateAll()}hideCircles(){this.hoveredVertical=null,this.deactivateAll()}onClick(e){this.select.emit(e)}trackBy(e,i){return i.name}setColors(){let e;e="ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.colors=new Ls(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===e.scaleType?(e.domain=this.seriesDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.yDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onActivate(e){this.deactivateAll(),!(this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value)>-1)&&(this.activeEntries=[e],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const e of this.activeEntries)this.deactivate.emit({value:e,entries:[]});this.activeEntries=[]}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=or(t)))(i||t)}}(),t.\u0275cmp=ln({type:t,selectors:[["ngx-charts-line-chart"]],contentQueries:function(e,i,r){if(1&e&&(Ci(r,sa,5),Ci(r,dS,5)),2&e){let o;En(o=Mn())&&(i.tooltipTemplate=o.first),En(o=Mn())&&(i.seriesTooltipTemplate=o.first)}},hostBindings:function(e,i){1&e&&He("mouseleave",function(){return i.hideCircles()})},inputs:{legendTitle:"legendTitle",legendPosition:"legendPosition",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",showRefLines:"showRefLines",showRefLabels:"showRefLabels",legend:"legend",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",autoScale:"autoScale",timeline:"timeline",gradient:"gradient",schemeType:"schemeType",rangeFillOpacity:"rangeFillOpacity",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",referenceLines:"referenceLines",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",yScaleMin:"yScaleMin",yScaleMax:"yScaleMax"},outputs:{activate:"activate",deactivate:"deactivate"},features:[Bi],decls:11,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"line-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","activeEntries","scaleType","curve","rangeFillOpacity","hasRange","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","tooltipDisabled","tooltipTemplate","hover"],[4,"ngFor","ngForOf"],["ngx-charts-circle-series","",3,"xScale","yScale","colors","data","scaleType","visibleValue","activeEntries","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","scaleType","curve","hasRange","animations"]],template:function(e,i){1&e&&(A(0,"ngx-charts-chart",0),He("legendLabelClick",function(o){return i.onClick(o)})("legendLabelActivate",function(o){return i.onActivate(o)})("legendLabelDeactivate",function(o){return i.onDeactivate(o)}),kt(),A(1,"defs")(2,"clipPath"),je(3,"rect"),M()(),A(4,"g",1),ye(5,i8e,1,10,"g",2),ye(6,r8e,1,12,"g",3),A(7,"g"),ye(8,o8e,2,11,"g",4),ye(9,a8e,3,9,"g",5),M()(),ye(10,c8e,2,13,"g",6),M()),2&e&&(N("view",Kr(17,qo,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),I(2),Ft("id",i.clipPathId),I(1),Ft("width",i.dims.width+10)("height",i.dims.height+10)("transform","translate(-5, -5)"),I(1),Ft("transform",i.transform),I(1),N("ngIf",i.xAxis),I(1),N("ngIf",i.yAxis),I(1),Ft("clip-path",i.clipPath),I(1),N("ngForOf",i.results)("ngForTrackBy",i.trackBy),I(1),N("ngIf",!i.tooltipDisabled),I(1),N("ngIf",i.timeline&&"ordinal"!=i.scaleType))},dependencies:function(){return[ti,Nn,ic,jl,rb,xs,ib,ob,_6e]},styles:[".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:none}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:none}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{opacity:.2;transition:opacity .1s ease-in-out}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{fill:none;stroke:#ddd;stroke-width:1}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-dasharray:5;stroke-dashoffset:5;stroke-width:1}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill:#000;fill-opacity:.05}.ngx-charts .gridline-path-dotted{fill:none;stroke:#ddd;stroke-dasharray:1,20;stroke-dashoffset:3;stroke-width:1}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}"],encapsulation:2,data:{animation:[ml("animationState",[Wa(":leave",[Jr({opacity:1}),Ua(500,Jr({opacity:0}))])])]},changeDetection:0}),t})(),_6e=(()=>{class t{constructor(){this.animations=!0}ngOnChanges(e){this.update()}update(){this.updateGradients();const e=this.sortData(this.data.series),i=this.getLineGenerator();this.path=i(e)||"";const r=this.getAreaGenerator();if(this.areaPath=r(e)||"",this.hasRange){const o=this.getRangeGenerator();this.outerPath=o(e)||""}if(this.hasGradient){this.stroke=this.gradientUrl;const o=this.data.series.map(l=>l.value),s=Math.max(...o);s===Math.min(...o)&&(this.stroke=this.colors.getColor(s))}else this.stroke=this.colors.getColor(this.data.name)}getLineGenerator(){return aS().x(e=>{const i=e.name;let r;return r=this.xScale("time"===this.scaleType?i:"linear"===this.scaleType?Number(i):i),r}).y(e=>this.yScale(e.value)).curve(this.curve)}getRangeGenerator(){return Sv().x(e=>{const i=e.name;let r;return r=this.xScale("time"===this.scaleType?i:"linear"===this.scaleType?Number(i):i),r}).y0(e=>this.yScale("number"==typeof e.min?e.min:e.value)).y1(e=>this.yScale("number"==typeof e.max?e.max:e.value)).curve(this.curve)}getAreaGenerator(){return Sv().x(i=>this.xScale(i.name)).y0(()=>this.yScale.range()[0]).y1(i=>this.yScale(i.value)).curve(this.curve)}sortData(e){return"linear"===this.scaleType?function YI(t,n,e="asc"){return t.sort((i,r)=>"asc"===e?i[n]-r[n]:r[n]-i[n])}(e,"name"):"time"===this.scaleType?function JI(t,n,e="asc"){return t.sort((i,r)=>{const o=i[n].getTime(),s=r[n].getTime();return"asc"===e?o>s?1:s>o?-1:0:o>s?-1:s>o?1:0})}(e,"name"):function KI(t,n,e="asc",i){return t.sort((r,o)=>{const a=o[n],l=i.indexOf(r[n]),c=i.indexOf(a);return"asc"===e?l-c:c-l})}(e,"name","asc",this.xScale.domain())}updateGradients(){if("linear"===this.colors.scaleType){this.hasGradient=!0,this.gradientId="grad"+Bl().toString(),this.gradientUrl=`url(#${this.gradientId})`;const e=this.data.series.map(o=>o.value),i=Math.max(...e),r=Math.min(...e);this.gradientStops=this.colors.getLinearGradientStops(i,r),this.areaGradientStops=this.colors.getLinearGradientStops(i)}else this.hasGradient=!1,this.gradientStops=void 0,this.areaGradientStops=void 0}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(r=>e.name===r.name)}isInactive(e){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(r=>e.name===r.name)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ln({type:t,selectors:[["g","ngx-charts-line-series",""]],inputs:{animations:"animations",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",curve:"curve",activeEntries:"activeEntries",rangeFillOpacity:"rangeFillOpacity",hasRange:"hasRange"},features:[ui],attrs:u8e,decls:6,vars:22,consts:[["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops",4,"ngIf"],["ngx-charts-area","",1,"line-highlight",3,"data","path","fill","opacity","startOpacity","gradient","stops","animations"],["ngx-charts-line","",1,"line-series",3,"data","path","stroke","animations"],["ngx-charts-area","","class","line-series-range",3,"data","path","fill","active","inactive","opacity","animations",4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],["ngx-charts-area","",1,"line-series-range",3,"data","path","fill","opacity","animations"]],template:function(e,i){1&e&&(kt(),A(0,"g")(1,"defs"),ye(2,h8e,1,2,"g",0),M(),je(3,"g",1)(4,"g",2),ye(5,d8e,1,9,"g",3),M()),2&e&&(I(2),N("ngIf",i.hasGradient),I(1),Kn("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),N("data",i.data)("path",i.areaPath)("fill",i.hasGradient?i.gradientUrl:i.colors.getColor(i.data.name))("opacity",.25)("startOpacity",0)("gradient",!0)("stops",i.areaGradientStops)("animations",i.animations),I(1),Kn("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),N("data",i.data)("path",i.path)("stroke",i.stroke)("animations",i.animations),I(1),N("ngIf",i.hasRange))},dependencies:[Nn,GI,bg,kG],encapsulation:2,changeDetection:0}),t})(),DG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[Wu]}),t})();Math;let tF=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[Wu]}),t})(),k6e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[Wu,tF,DG]}),t})(),E6e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[Wu]}),t})(),F6e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[Wu]}),t})(),N6e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[Wu,tF,xG]}),t})(),$6e=(()=>{class t{constructor(){!function R6e(){typeof SVGElement<"u"&&typeof SVGElement.prototype.contains>"u"&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({imports:[Wu,f6e,xG,g6e,y6e,DG,k6e,E6e,tF,F6e,N6e]}),t})();function P6e(t,n){if(1&t&&(A(0,"ngb-alert",19),je(1,"img",20),A(2,"h6",21),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("An error occurred: ",e.error,"")}}function j6e(t,n){1&t&&je(0,"img",31)}function B6e(t,n){1&t&&je(0,"img",32)}function H6e(t,n){1&t&&je(0,"img",33)}function V6e(t,n){1&t&&je(0,"img",34)}function z6e(t,n){if(1&t&&(A(0,"tr",24)(1,"td"),va(2,25),ye(3,j6e,1,0,"img",26),ye(4,B6e,1,0,"img",27),ye(5,H6e,1,0,"img",28),ye(6,V6e,1,0,"img",29),ya(),A(7,"span"),J(8),M()(),A(9,"td"),J(10),A(11,"span",30),J(12),M()(),A(13,"td"),J(14),A(15,"span",30),J(16),M()(),A(17,"td"),J(18),A(19,"span",30),J(20),M()(),A(21,"td"),J(22),A(23,"span",30),J(24),M()()()),2&t){const e=n.$implicit,i=te(2);I(2),N("ngSwitch",e.health),I(1),N("ngSwitchCase",0),I(1),N("ngSwitchCase",1),I(1),N("ngSwitchCase",2),I(1),N("ngSwitchCase",3),I(2),Xt(e.name),I(2),jn("",e.session_count," "),I(1),N("hidden",!i.showDelta),I(1),jn("(",i.getMaxSessionCount()-e.session_count," delta)"),I(2),jn("",e.presence_count," "),I(1),N("hidden",!i.showDelta),I(1),jn("(",i.getMaxPresenceCount()-e.presence_count," delta)"),I(2),jn("",e.match_count," "),I(1),N("hidden",!i.showDelta),I(1),jn("(",i.getMaxMatchCount()-e.match_count," delta)"),I(2),jn("",e.goroutine_count," "),I(1),N("hidden",!i.showDelta),I(1),jn("(",i.getMaxGoroutineCount()-e.goroutine_count," delta)")}}function U6e(t,n){if(1&t&&(A(0,"tbody"),ye(1,z6e,25,18,"tr",22),A(2,"tr",3),je(3,"td",23),A(4,"th",3),J(5),M(),A(6,"th",3),J(7),M(),A(8,"th",3),J(9),M(),A(10,"th",3),J(11),M()()()),2&t){const e=te();I(1),N("ngForOf",e.statusData.nodes),I(4),Xt(e.getTotalSessionCount()),I(2),Xt(e.getMaxPresenceCount()),I(2),Xt(e.getTotalMatchCount()),I(2),Xt(e.getTotalGorountineCount())}}function W6e(t,n){if(1&t&&(A(0,"option",35),J(1),M()),2&t){const e=n.$implicit,i=te();Ld("value",e),I(1),Xt(i.ranges[e])}}const _S=function(t){return{"background-color":t}};function G6e(t,n){if(1&t&&(A(0,"span"),je(1,"br")(2,"span",41),A(3,"span",42),J(4),M()()),2&t){const e=n.$implicit;I(2),N("ngStyle",Lr(3,_S,e.color)),I(2),$h("",e.series,": ",e.value,"")}}function q6e(t,n){if(1&t&&(A(0,"div",39),J(1),ye(2,G6e,5,5,"span",40),M()),2&t){const e=n.model;I(1),jn(" ",e[0].name.toLocaleString()," "),I(1),N("ngForOf",e)}}function X6e(t,n){if(1&t&&(A(0,"div",36)(1,"ngx-charts-line-chart",37),ye(2,q6e,3,2,"ng-template",null,38,go),M()()),2&t){const e=te();I(1),N("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.latencyGraphData)}}function Y6e(t,n){if(1&t&&(A(0,"span"),je(1,"br")(2,"span",41),A(3,"span",42),J(4),M()()),2&t){const e=n.$implicit;I(2),N("ngStyle",Lr(3,_S,e.color)),I(2),$h("",e.series,": ",e.value,"")}}function K6e(t,n){if(1&t&&(A(0,"div",39),J(1),ye(2,Y6e,5,5,"span",40),M()),2&t){const e=n.model;I(1),jn(" ",e[0].name.toLocaleString()," "),I(1),N("ngForOf",e)}}function J6e(t,n){if(1&t&&(A(0,"div",36)(1,"ngx-charts-line-chart",43),ye(2,K6e,3,2,"ng-template",null,38,go),M()()),2&t){const e=te();I(1),N("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.rateGraphData)}}function Q6e(t,n){if(1&t&&(A(0,"span"),je(1,"br")(2,"span",41),A(3,"span",42),J(4),M()()),2&t){const e=n.$implicit;I(2),N("ngStyle",Lr(3,_S,e.color)),I(2),$h("",e.series,": ",e.value,"")}}function Z6e(t,n){if(1&t&&(A(0,"div",39),J(1),ye(2,Q6e,5,5,"span",40),M()),2&t){const e=n.model;I(1),jn(" ",e[0].name.toLocaleString()," "),I(1),N("ngForOf",e)}}function eBe(t,n){if(1&t&&(A(0,"div",36)(1,"ngx-charts-line-chart",44),ye(2,Z6e,3,2,"ng-template",null,38,go),M()()),2&t){const e=te();I(1),N("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.inputGraphData)}}function tBe(t,n){if(1&t&&(A(0,"span"),je(1,"br")(2,"span",41),A(3,"span",42),J(4),M()()),2&t){const e=n.$implicit;I(2),N("ngStyle",Lr(3,_S,e.color)),I(2),$h("",e.series,": ",e.value,"")}}function nBe(t,n){if(1&t&&(A(0,"div",39),J(1),ye(2,tBe,5,5,"span",40),M()),2&t){const e=n.model;I(1),jn(" ",e[0].name.toLocaleString()," "),I(1),N("ngForOf",e)}}function iBe(t,n){if(1&t&&(A(0,"div",36)(1,"ngx-charts-line-chart",45),ye(2,nBe,3,2,"ng-template",null,38,go),M()()),2&t){const e=te();I(1),N("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.outputGraphData)}}let rBe=(()=>{class t{constructor(e,i,r){be(this,"route",void 0),be(this,"consoleService",void 0),be(this,"formBuilder",void 0),be(this,"error",""),be(this,"showDelta",!1),be(this,"statusData",void 0),be(this,"rateGraphData",[]),be(this,"latencyGraphData",[]),be(this,"inputGraphData",[]),be(this,"outputGraphData",[]),be(this,"rangeForm",void 0),be(this,"ranges",{1:"last 1 minute",10:"last 10 minutes",30:"last 30 minutes",60:"last 1 hour",1440:"last 24 hours"}),be(this,"rangesKeys",Object.keys(this.ranges).map(o=>+o)),be(this,"colorScheme",{domain:["#5AA454","#E44D25","#1e59cf","#7aa3e5","#a8385d","#d0bd00"]}),be(this,"samples",60),be(this,"refreshTimer",void 0),be(this,"$refreshTimer",void 0),this.route=e,this.consoleService=i,this.formBuilder=r}ngOnInit(){this.rangeForm=this.formBuilder.group({rangeMinutes:[10]}),this.route.data.subscribe(e=>{this.initData(e[0]),this.refresh(),this.refreshTimer=sv(0,1e3*this.getPeriod()),this.$refreshTimer=this.refreshTimer.subscribe(r=>this.refresh())},e=>{this.error=e})}refresh(){this.consoleService.getStatus("").subscribe(e=>{this.statusData=e,this.rateGraphData=this.updateData(this.rateGraphData,"avg_rate_sec",e),this.latencyGraphData=this.updateData(this.latencyGraphData,"avg_latency_ms",e),this.inputGraphData=this.updateData(this.inputGraphData,"avg_input_kbs",e),this.outputGraphData=this.updateData(this.outputGraphData,"avg_output_kbs",e)})}generateSeries(){let e=new Date;e.setMilliseconds(0);const i=[];for(let r=0;r({name:r,value:0}))}initData(e){const i=this.generateSeries();this.latencyGraphData=e.map(r=>({name:r,series:i})),this.rateGraphData=e.map(r=>({name:r,series:i})),this.inputGraphData=e.map(r=>({name:r,series:i})),this.outputGraphData=e.map(r=>({name:r,series:i}))}updateData(e,i,r){const o=r.nodes,s=[],a=r.timestamp,l=e.map(h=>h.name),c=o.map(h=>h.name),u=this.diff(l,c);for(const h of e)u.includes(h.name)&&s.push({name:h.name,series:this.shiftData(h.series,0,a)});for(const h of o){let d=[],f={};const p=e.find(m=>m.name===h.name)?.series;d=this.shiftData(p||this.generateSeries(),h[i],a),f={name:h.name,series:d},s.push(f)}return s}shiftData(e,i,r){const o=e.slice(1);return o.push({name:new Date(r),value:i}),o}getPeriod(){return Math.floor(60*this.f.rangeMinutes.value/this.samples)}setRange(e){this.rangeForm.reset({rangeMinutes:+e.target.value}),this.reset()}reset(){this.consoleService.getStatus("").subscribe(e=>{this.initData(e.nodes.map(i=>i.name)),this.$refreshTimer?.unsubscribe(),this.refreshTimer=sv(0,1e3*this.getPeriod()),this.$refreshTimer=this.refreshTimer.subscribe(i=>this.refresh())},e=>{this.error=e})}diff(e,i){const r=new Set(e);for(const o of i)r.delete(o);return Array.from(r)}get f(){return this.rangeForm.controls}ngOnDestroy(){this.$refreshTimer.unsubscribe()}getTotalSessionCount(){return this.statusData.nodes.reduce((e,i)=>e+i.session_count,0)}getMaxSessionCount(){return Math.max(...this.statusData.nodes.map(e=>e.session_count))}getMaxPresenceCount(){return Math.max(...this.statusData.nodes.map(e=>e.presence_count))}getMaxMatchCount(){return Math.max(...this.statusData.nodes.map(e=>e.match_count))}getTotalMatchCount(){return this.statusData.nodes.reduce((e,i)=>e+i.match_count,0)}getMaxGoroutineCount(){return Math.max(...this.statusData.nodes.map(e=>e.goroutine_count))}getTotalGorountineCount(){return this.statusData.nodes.reduce((e,i)=>e+i.goroutine_count,0)}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Ui),Ae(Pl))}),be(t,"\u0275cmp",ln({type:t,selectors:[["app-status"]],decls:62,vars:10,consts:[[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],[1,"status-table","table","table-sm","table-striped","mb-4",3,"mouseover","mouseout"],[1,"thead-light"],["scope","col"],[4,"ngIf"],[3,"formGroup"],[1,"row","no-gutters","justify-content-end"],[1,"col-12","text-right"],["ngbDropdown","","role","group",1,"btn-group"],["formControlName","rangeMinutes",1,"custom-select","custom-select-sm","ml-3",3,"change"],[3,"value",4,"ngFor","ngForOf"],[1,"row"],[1,"col-6","d-inline-flex","justify-content-between","align-items-center"],[1,"graph-title"],[1,"d-inline"],[1,"col-6"],["class","graph",4,"ngIf"],[1,"row","mt-4"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["class","clickable",4,"ngFor","ngForOf"],[1,"border-0"],[1,"clickable"],[3,"ngSwitch"],["class","mr-2","src","/static/svg/green-tick.svg","alt","","width","15","height","","ngbTooltip","OK",4,"ngSwitchCase"],["class","mr-2","src","/static/svg/red-triangle.svg","alt","","width","15","height","","ngbTooltip","Error",4,"ngSwitchCase"],["class","mr-2","src","/static/blue-spinner.svg","alt","","width","15","height","","ngbTooltip","Connecting",4,"ngSwitchCase"],["class","mr-2","src","/static/red-spinner.svg","alt","","width","15","height","","ngbTooltip","Disconnecting",4,"ngSwitchCase"],[1,"text-muted","small",3,"hidden"],["src","/static/svg/green-tick.svg","alt","","width","15","height","","ngbTooltip","OK",1,"mr-2"],["src","/static/svg/red-triangle.svg","alt","","width","15","height","","ngbTooltip","Error",1,"mr-2"],["src","/static/blue-spinner.svg","alt","","width","15","height","","ngbTooltip","Connecting",1,"mr-2"],["src","/static/red-spinner.svg","alt","","width","15","height","","ngbTooltip","Disconnecting",1,"mr-2"],[3,"value"],[1,"graph"],["xAxisLabel","Time","yAxisLabel","Latency (ms)",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"],["seriesTooltipTemplate",""],[1,"chart-legend"],[4,"ngFor","ngForOf"],[1,"legend-label-color",3,"ngStyle"],[1,"legend-label-text"],["xAxisLabel","Time","yAxisLabel","Request Count",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"],["xAxisLabel","Time","yAxisLabel","Input (kb/s)",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"],["xAxisLabel","Time","yAxisLabel","Output (kb/s)",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"]],template:function(e,i){1&e&&(A(0,"h2",0),J(1,"Status"),M(),ye(2,P6e,4,2,"ngb-alert",1),A(3,"table",2),He("mouseover",function(){return i.showDelta=!0})("mouseout",function(){return i.showDelta=!1}),A(4,"thead",3)(5,"tr")(6,"th",4),J(7,"Node name"),M(),A(8,"th",4),J(9,"Sessions"),M(),A(10,"th",4),J(11,"Presences"),M(),A(12,"th",4),J(13,"Authoritative Matches"),M(),A(14,"th",4),J(15,"Goroutines"),M()()(),ye(16,U6e,12,5,"tbody",5),M(),A(17,"form",6)(18,"div",7)(19,"div",8)(20,"span"),J(21,"View:"),M(),A(22,"div",9)(23,"select",10),He("change",function(o){return i.setRange(o)}),ye(24,W6e,2,2,"option",11),function WA(t,n){const e=ao();let i;const r=t+rs;e.firstCreatePass?(i=function P_e(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=Ep(i.type)),s=zc(Ae);try{const a=lw(!1),l=o();return lw(a),function $ye(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,dn(),r,l),l}finally{zc(s)}}(25,"sortNumbers"),M()()()()(),A(26,"div",12)(27,"div",13)(28,"div",14)(29,"h5",15),J(30,"Processing Latency"),M(),A(31,"small"),J(32," (ms)"),M()()(),A(33,"div",13)(34,"div",14)(35,"h5",15),J(36,"Rate"),M(),A(37,"small"),J(38," (rpc/s)"),M()()()(),A(39,"div",12)(40,"div",16),ye(41,X6e,4,12,"div",17),M(),A(42,"div",16),ye(43,J6e,4,12,"div",17),M()(),A(44,"div",18)(45,"div",13)(46,"div",14)(47,"h5",15),J(48,"Input"),M(),A(49,"small"),J(50," (kb/s)"),M()()(),A(51,"div",13)(52,"div",14)(53,"h5",15),J(54,"Output"),M(),A(55,"small"),J(56," (kb/s)"),M()()()(),A(57,"div",12)(58,"div",16),ye(59,eBe,4,12,"div",17),M(),A(60,"div",16),ye(61,iBe,4,12,"div",17),M()()),2&e&&(I(2),N("ngIf",i.error),I(14),N("ngIf",i.statusData),I(1),N("formGroup",i.rangeForm),I(7),N("ngForOf",GA(25,8,i.rangesKeys)),I(17),N("ngIf",i.latencyGraphData.length>0),I(2),N("ngIf",i.rateGraphData.length>0),I(16),N("ngIf",i.inputGraphData.length>0),I(2),N("ngIf",i.outputGraphData.length>0))},dependencies:function(){return[ti,Nn,wB,cx,bB,Go,Bu,tLe,b6e,bl,by,_y,rv,vl,yl,Ea,Ya,sBe]},styles:[".graph[_ngcontent-%COMP%]{height:450px;border-radius:5px;border:solid 1px #dadae9}.graph-title[_ngcontent-%COMP%]{padding:.5rem .5rem .5rem 0}.table[_ngcontent-%COMP%]{table-layout:fixed}h4[_ngcontent-%COMP%]{margin-bottom:0}.status-table[_ngcontent-%COMP%]{empty-cells:hide}.status-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fff}.status-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:solid 1px #dadae9;padding:.6em 1em;font-weight:500}.status-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:solid 1px #dadae9;padding:.6em 1em}.status-table[_ngcontent-%COMP%] .total-row[_ngcontent-%COMP%]{border:solid 2px #dadae9;background-color:#f5f5f5}.status-table[_ngcontent-%COMP%] .total-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:solid 2px #dadae9}"]})),t})(),oBe=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.getStatus("").pipe(et(r=>oi(r.nodes.map(o=>o.name)))).pipe(tc(r=>(e.data={...e.data,error:r},oi([]))))}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})(),sBe=(()=>{class t{transform(e){return e.sort((i,r)=>i-r)}}return be(t,"\u0275fac",function(e){return new(e||t)}),be(t,"\u0275pipe",Tl({name:"sortNumbers",type:t,pure:!1})),t})();var aBe=Ye(870),nF=Ye(327);const lBe=["fileSelector"];function cBe(t,n){if(1&t&&(A(0,"div",8),J(1),M()),2&t){const e=te(2);I(1),Xt(e.dropZoneLabel)}}function uBe(t,n){if(1&t){const e=Bt();A(0,"div")(1,"input",9),He("click",function(r){return st(e),at(te(2).openFileSelector(r))}),M()()}if(2&t){const e=te(2);I(1),Ld("value",e.browseBtnLabel),N("className",e.browseBtnClassName)}}function hBe(t,n){if(1&t&&(ye(0,cBe,2,1,"div",6),ye(1,uBe,2,2,"div",7)),2&t){const e=te();N("ngIf",e.dropZoneLabel),I(1),N("ngIf",e.showBrowseBtn)}}function dBe(t,n){}const fBe=function(t){return{openFileSelector:t}};class wS{constructor(n,e){this.relativePath=n,this.fileEntry=e}}let LG=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(Ae(Ki))},t.\u0275dir=bn({type:t,selectors:[["","ngx-file-drop-content-tmp",""]]}),t})(),OG=(()=>{class t{constructor(e,i){this.zone=e,this.renderer=i,this.accept="*",this.directory=!1,this.multiple=!0,this.dropZoneLabel="",this.dropZoneClassName="ngx-file-drop__drop-zone",this.useDragEnter=!1,this.contentClassName="ngx-file-drop__content",this.showBrowseBtn=!1,this.browseBtnClassName="btn btn-primary btn-xs ngx-file-drop__browse-btn",this.browseBtnLabel="Browse files",this.onFileDrop=new vt,this.onFileOver=new vt,this.onFileLeave=new vt,this.isDraggingOverDropZone=!1,this.globalDraggingInProgress=!1,this.files=[],this.numOfActiveReadEntries=0,this.helperFormEl=null,this.fileInputPlaceholderEl=null,this.dropEventTimerSubscription=null,this._disabled=!1,this.openFileSelector=r=>{this.fileSelector&&this.fileSelector.nativeElement&&this.fileSelector.nativeElement.click()},this.globalDragStartListener=this.renderer.listen("document","dragstart",r=>{this.globalDraggingInProgress=!0}),this.globalDragEndListener=this.renderer.listen("document","dragend",r=>{this.globalDraggingInProgress=!1})}get disabled(){return this._disabled}set disabled(e){this._disabled=null!=e&&"false"!=`${e}`}ngOnDestroy(){this.dropEventTimerSubscription&&(this.dropEventTimerSubscription.unsubscribe(),this.dropEventTimerSubscription=null),this.globalDragStartListener(),this.globalDragEndListener(),this.files=[],this.helperFormEl=null,this.fileInputPlaceholderEl=null}onDragOver(e){this.useDragEnter?(this.preventAndStop(e),e.dataTransfer&&(e.dataTransfer.dropEffect="copy")):!this.isDropzoneDisabled()&&!this.useDragEnter&&e.dataTransfer&&(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(e)),this.preventAndStop(e),e.dataTransfer.dropEffect="copy")}onDragEnter(e){!this.isDropzoneDisabled()&&this.useDragEnter&&(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(e)),this.preventAndStop(e))}onDragLeave(e){this.isDropzoneDisabled()||(this.isDraggingOverDropZone&&(this.isDraggingOverDropZone=!1,this.onFileLeave.emit(e)),this.preventAndStop(e))}dropFiles(e){if(!this.isDropzoneDisabled()&&(this.isDraggingOverDropZone=!1,e.dataTransfer)){let i;i=e.dataTransfer.items?e.dataTransfer.items:e.dataTransfer.files,this.preventAndStop(e),this.checkFiles(i)}}uploadFiles(e){!this.isDropzoneDisabled()&&e.target&&(this.checkFiles(e.target.files||[]),this.resetFileInput())}checkFiles(e){for(let i=0;il(r)},a=new wS(s.name,s);this.addToQueue(a)}}this.dropEventTimerSubscription&&this.dropEventTimerSubscription.unsubscribe(),this.dropEventTimerSubscription=sv(200,200).subscribe(()=>{if(this.files.length>0&&0===this.numOfActiveReadEntries){const i=this.files;this.files=[],this.onFileDrop.emit(i)}})}traverseFileTree(e,i){if(e.isFile){const r=new wS(i,e);this.files.push(r)}else{i+="/";const r=e.createReader();let o=[];const s=()=>{this.numOfActiveReadEntries++,r.readEntries(a=>{if(a.length)o=o.concat(a),s();else if(0===o.length){const l=new wS(i,e);this.zone.run(()=>{this.addToQueue(l)})}else for(let l=0;l{this.traverseFileTree(o[l],i+o[l].name)});this.numOfActiveReadEntries--})};s()}}resetFileInput(){if(this.fileSelector&&this.fileSelector.nativeElement){const e=this.fileSelector.nativeElement,i=e.parentElement,r=this.getHelperFormElement(),o=this.getFileInputPlaceholderElement();i!==r&&(this.renderer.insertBefore(i,o,e),this.renderer.appendChild(r,e),r.reset(),this.renderer.insertBefore(i,e,o),this.renderer.removeChild(i,o))}}getHelperFormElement(){return this.helperFormEl||(this.helperFormEl=this.renderer.createElement("form")),this.helperFormEl}getFileInputPlaceholderElement(){return this.fileInputPlaceholderEl||(this.fileInputPlaceholderEl=this.renderer.createElement("div")),this.fileInputPlaceholderEl}canGetAsEntry(e){return!!e.webkitGetAsEntry}isDropzoneDisabled(){return this.globalDraggingInProgress||this.disabled}addToQueue(e){this.files.push(e)}preventAndStop(e){e.stopPropagation(),e.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(Ae(br),Ae(Hs))},t.\u0275cmp=ln({type:t,selectors:[["ngx-file-drop"]],contentQueries:function(e,i,r){if(1&e&&Ci(r,LG,5,Ki),2&e){let o;En(o=Mn())&&(i.contentTemplate=o.first)}},viewQuery:function(e,i){if(1&e&&Do(lBe,7),2&e){let r;En(r=Mn())&&(i.fileSelector=r.first)}},inputs:{accept:"accept",directory:"directory",multiple:"multiple",dropZoneLabel:"dropZoneLabel",dropZoneClassName:"dropZoneClassName",useDragEnter:"useDragEnter",contentClassName:"contentClassName",showBrowseBtn:"showBrowseBtn",browseBtnClassName:"browseBtnClassName",browseBtnLabel:"browseBtnLabel",disabled:"disabled"},outputs:{onFileDrop:"onFileDrop",onFileOver:"onFileOver",onFileLeave:"onFileLeave"},decls:7,vars:15,consts:[[3,"className","drop","dragover","dragenter","dragleave"],[3,"className"],["type","file",1,"ngx-file-drop__file-input",3,"accept","multiple","change"],["fileSelector",""],["defaultContentTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ngx-file-drop__drop-zone-label",4,"ngIf"],[4,"ngIf"],[1,"ngx-file-drop__drop-zone-label"],["type","button",3,"className","value","click"]],template:function(e,i){if(1&e&&(A(0,"div",0),He("drop",function(o){return i.dropFiles(o)})("dragover",function(o){return i.onDragOver(o)})("dragenter",function(o){return i.onDragEnter(o)})("dragleave",function(o){return i.onDragLeave(o)}),A(1,"div",1)(2,"input",2,3),He("change",function(o){return i.uploadFiles(o)}),M(),ye(4,hBe,2,2,"ng-template",null,4,go),ye(6,dBe,0,0,"ng-template",5),M()()),2&e){const r=Io(5);Kn("ngx-file-drop__drop-zone--over",i.isDraggingOverDropZone),N("className",i.dropZoneClassName),I(1),N("className",i.contentClassName),I(1),N("accept",i.accept)("multiple",i.multiple),Ft("directory",i.directory||void 0)("webkitdirectory",i.directory||void 0)("mozdirectory",i.directory||void 0)("msdirectory",i.directory||void 0)("odirectory",i.directory||void 0),I(4),N("ngTemplateOutlet",i.contentTemplate||r)("ngTemplateOutletContext",Lr(13,fBe,i.openFileSelector))}},dependencies:[Nn,Nl],styles:[".ngx-file-drop__drop-zone[_ngcontent-%COMP%]{border:2px dotted #0782d0;border-radius:30px;height:100px;margin:auto}.ngx-file-drop__drop-zone--over[_ngcontent-%COMP%]{background-color:hsla(0,0%,57.6%,.5)}.ngx-file-drop__content[_ngcontent-%COMP%]{align-items:center;color:#0782d0;display:flex;height:100px;justify-content:center}.ngx-file-drop__drop-zone-label[_ngcontent-%COMP%]{text-align:center}.ngx-file-drop__file-input[_ngcontent-%COMP%]{display:none}"]}),t})(),pBe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t,bootstrap:function(){return[OG]}}),t.\u0275inj=Xi({imports:[ia]}),t})();function gBe(t,n){1&t&&(A(0,"ngb-alert",22),je(1,"img",23),A(2,"h6",24),J(3,"Failed to retrieve configuration."),M()()),2&t&&N("dismissible",!1)}function mBe(t,n){if(1&t&&(A(0,"span",33),J(1),M()),2&t){const e=te(2).$implicit;N("id",e.name),I(1),Xt(e.value)}}function vBe(t,n){1&t&&(A(0,"span",34),J(1,"(empty)"),M()),2&t&&N("id",te(2).$implicit.name)}function yBe(t,n){if(1&t&&(A(0,"div",35)(1,"b"),J(2),M(),A(3,"label",27)(4,"a",28),je(5,"img",10),M()()()),2&t){const e=te(2).index,i=te();I(2),Xt(i.flatConfig[e+1].name),I(1),N("for",i.flatConfig[e+1].name),I(1),jp("href","https://heroiclabs.com/docs/install-configuration/#",i.flatConfig[e+1].name,"",m1)}}function bBe(t,n){if(1&t&&(A(0,"span",33),J(1),M()),2&t){const e=te(3).index,i=te();N("id",i.flatConfig[e+1].name),I(1),Xt(i.flatConfig[e+1].value)}}function _Be(t,n){if(1&t&&(A(0,"span",34),J(1,"(empty)"),M()),2&t){const e=te(3).index;N("id",te().flatConfig[e+1].name)}}function wBe(t,n){if(1&t&&(A(0,"div",36),ye(1,bBe,2,2,"span",29),ye(2,_Be,2,1,"span",30),M()),2&t){const e=te(2).index,i=te();I(1),N("ngIf",!i.isEmpty(i.flatConfig[e+1].value)),I(1),N("ngIf",i.isEmpty(i.flatConfig[e+1].value))}}function xBe(t,n){if(1&t&&(A(0,"div",26)(1,"div",7)(2,"b"),J(3),M(),A(4,"label",27)(5,"a",28),je(6,"img",10),M()()(),A(7,"div",7),ye(8,mBe,2,2,"span",29),ye(9,vBe,2,1,"span",30),M(),ye(10,yBe,6,3,"div",31),ye(11,wBe,3,2,"div",32),M()),2&t){const e=te(),i=e.index,r=e.$implicit,o=te();Kn("border-top-0",i>0),I(3),Xt(r.name),I(1),N("for",r.name),I(1),jp("href","https://heroiclabs.com/docs/install-configuration/#",r.value.name,"",m1),I(3),N("ngIf",!o.isEmpty(r.value)),I(1),N("ngIf",o.isEmpty(r.value)),I(1),N("ngIf",i{class t{constructor(e,i,r,o,s,a){be(this,"config",void 0),be(this,"route",void 0),be(this,"httpClient",void 0),be(this,"modalService",void 0),be(this,"consoleService",void 0),be(this,"formBuilder",void 0),be(this,"configError",""),be(this,"uploadError",""),be(this,"deleteError",""),be(this,"jsonConfig",void 0),be(this,"flatConfig",void 0),be(this,"nakamaVersion",void 0),be(this,"file",void 0),be(this,"uploading",!1),be(this,"uploadSuccess",!1),be(this,"deleteSuccess",!1),be(this,"deleting",!1),be(this,"confirmDeleteForm",void 0),be(this,"apiConfig",void 0),this.config=e,this.route=i,this.httpClient=r,this.modalService=o,this.consoleService=s,this.formBuilder=a,this.apiConfig=e}ngOnInit(){this.route.data.subscribe(e=>{this.nakamaVersion=e[0].server_version;const i=JSON.parse(e[0].config);this.jsonConfig=i,this.flatConfig=this.flattenConfig(i)},e=>{this.configError=e}),this.confirmDeleteForm=this.formBuilder.group({delete:["",Wo.compose([Wo.required,Wo.pattern("DELETE")])]})}flattenConfig(e){const i=[];return this.traverseConfig("",e,i),i.sort((o,s)=>o.name.localeCompare(s.name))}traverseConfig(e,i,r){for(const o in i)"env"!==o&&(Array.isArray(i[o])?r.push({name:e+o,value:i[o].join(", ")}):"object"==typeof i[o]?this.traverseConfig(o+".",i[o],r):r.push({name:e+o,value:i[o]}))}isEmpty(e){return""===e||0===e}exportYaml(){const e=new Blob([(0,aBe.safeDump)(this.jsonConfig)],{type:"text/yaml;charset=utf-8"});nF.saveAs(e,"config.yaml")}dropped(e){this.uploadError="",this.uploadSuccess=!1;for(const i of e)if(i.fileEntry.isFile){const r=i.fileEntry.name.split(".");r.length>1&&["json","csv"].includes(r[r.length-1].toLowerCase())?i.fileEntry.file(a=>{this.uploadFile(a)}):this.uploadError="Invalid file: must have extension .json or .csv"}}uploadFile(e){const i=new FormData;i.append(e.name,e),this.uploading=!0,this.httpClient.post(this.apiConfig.host+"/v2/console/storage/import",i,{headers:{Authorization:"Bearer "}}).subscribe(()=>{this.uploading=!1,this.uploadSuccess=!0},o=>{this.uploading=!1,this.uploadError=o})}deleteData(){this.deleteError="",this.deleting=!0,this.consoleService.deleteAllData("").pipe(k3(2e3)).subscribe(()=>{this.deleting=!1,this.deleteError="",this.deleteSuccess=!0},e=>{this.deleting=!1,this.deleteError=e})}openDeleteDataModal(e){this.modalService.open(e,{centered:!0}).result.then(()=>{this.deleteData(),this.confirmDeleteForm.controls.delete.setValue("")},()=>{this.confirmDeleteForm.controls.delete.setValue("")})}get f(){return this.confirmDeleteForm.controls}ngOnDestroy(){}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(w3),Ae(co),Ae(_C),Ae(B3),Ae(Ui),Ae(Pl))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],decls:43,vars:11,consts:[["type","danger",3,"dismissible",4,"ngIf"],[1,"pb-4"],[1,"d-flex","justify-content-between","mb-4","align-items-baseline"],[1,"btn","btn-primary","btn-sm",3,"click"],[1,"config-table"],[4,"ngFor","ngForOf"],[1,"row","py-2","border","border-top-0","add-border-larger","mb-5"],[1,"col-lg-3"],[1,"pl-1"],["target","_blank","href","https://heroiclabs.com/docs/install-configuration/#runtime.env",1,"d-inline"],["src","/static/svg/hint.svg","alt","","width","16","height",""],[1,"col-lg-9"],[4,"ngIf"],[1,"section-divider","d-flex","mb-4"],["type","success",3,"dismissible","close",4,"ngIf"],["accept",".json,.csv","dropZoneClassName","drop-zone","contentClassName","drop-zone-content","dropZoneLabel","Drop CSV or JSON file here",3,"disabled","onFileDrop"],["ngx-file-drop-content-tmp",""],["role","alert",1,"alert","alert-danger","d-flex","justify-content-between","align-items-center"],["src","/static/svg/red-triangle.svg","alt","","width","16","height",""],[1,"pl-2"],["confirmDelete",""],["type","button",1,"btn","btn-danger",3,"disabled","click"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["class","row py-2 border",3,"border-top-0",4,"ngIf"],[1,"row","py-2","border"],[1,"pl-1",3,"for"],["target","_blank",1,"d-inline",3,"href"],["class","text-break-all",3,"id",4,"ngIf"],["class","text-muted",3,"id",4,"ngIf"],["class","col-md-3 left-line",4,"ngIf"],["class","col-md-3",4,"ngIf"],[1,"text-break-all",3,"id"],[1,"text-muted",3,"id"],[1,"col-md-3","left-line"],[1,"col-md-3"],["class","mb-0 text-break-all",4,"ngFor","ngForOf"],[1,"mb-0","text-break-all"],[1,"mb-0","text-muted"],[1,"mb-0","pl-4"],["type","success",3,"dismissible","close"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","button",1,"btn","btn-primary",3,"click"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-describedby","modal-title",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"d-flex","flex-column","justify-content-center"],[1,"mt-2"],["autocomplete","off",3,"formGroup"],["type","text","id","delete-confirm","placeholder","Type 'DELETE' to confirm","formControlName","delete",1,"form-control",3,"ngClass"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"]],template:function(e,i){if(1&e){const r=Bt();ye(0,gBe,4,1,"ngb-alert",0),A(1,"h2",1),J(2,"Server Configuration"),M(),A(3,"div",2)(4,"h5")(5,"b"),J(6,"Server version:"),M(),J(7),M(),A(8,"button",3),He("click",function(){return i.exportYaml()}),J(9,"Export Configuration"),M()(),A(10,"div",4),ye(11,CBe,2,1,"ng-container",5),A(12,"div",6)(13,"div",7)(14,"b"),J(15,"runtime.env"),M(),A(16,"label",8)(17,"a",9),je(18,"img",10),M()()(),A(19,"div",11),ye(20,kBe,2,1,"div",12),ye(21,DBe,3,0,"div",12),M()()(),A(22,"h5",13),J(23,"Import storage data"),M(),A(24,"p"),J(25,"Import storage objects from a CSV or JSON file by dragging and dropping it below."),M(),ye(26,TBe,6,2,"ngb-alert",0),ye(27,ABe,4,1,"ngb-alert",14),A(28,"ngx-file-drop",15),He("onFileDrop",function(s){return i.dropped(s)}),ye(29,EBe,2,0,"ng-template",16),M(),A(30,"h5",13),J(31,"Delete all data"),M(),ye(32,MBe,6,2,"ngb-alert",0),ye(33,IBe,4,1,"ngb-alert",14),A(34,"div",17)(35,"div"),je(36,"img",18),A(37,"small",19),J(38,"Warning - this operation is not reversible!"),M()(),ye(39,LBe,19,5,"ng-template",null,20,go),A(41,"button",21),He("click",function(){st(r);const s=Io(40);return at(i.openDeleteDataModal(s))}),J(42,"Delete all"),M()()}2&e&&(N("ngIf",i.configError),I(7),jn(" ",i.nakamaVersion,""),I(4),N("ngForOf",i.flatConfig),I(9),N("ngIf",i.jsonConfig.runtime&&i.jsonConfig.runtime.env&&i.jsonConfig.runtime.env.length>0),I(1),N("ngIf",i.jsonConfig.runtime&&i.jsonConfig.runtime.env&&0===i.jsonConfig.runtime.env.length),I(5),N("ngIf",i.uploadError),I(1),N("ngIf",i.uploadSuccess),I(1),N("disabled",i.uploading),I(4),N("ngIf",i.deleteError),I(1),N("ngIf",i.deleteSuccess),I(8),N("disabled",i.deleting))},dependencies:[OG,LG,Pd,ti,Nn,Go,bl,qa,vl,yl,Ea,Ya],styles:["label[_ngcontent-%COMP%]{margin-bottom:0}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.text-break-all[_ngcontent-%COMP%]{word-break:break-all;word-wrap:anywhere}.config-table[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:nth-child(even){background-color:#fafafc}.config-table[_ngcontent-%COMP%] .left-line[_ngcontent-%COMP%]{border-left:solid 1px #dadae9}"]})),t})(),NBe=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.getConfig("")}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function RBe(t,n){if(1&t&&(A(0,"ngb-alert",48),je(1,"img",49),A(2,"h6",50),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("An error occurred: ",e.error,"")}}function $Be(t,n){1&t&&(A(0,"tr")(1,"td",51),J(2,"No additional users are setup. Create a new user below."),M()()),2&t&&(I(1),N("colSpan",4))}function PBe(t,n){if(1&t){const e=Bt();A(0,"tr")(1,"td"),J(2),M(),A(3,"td"),J(4),M(),A(5,"td")(6,"span",36),J(7,"Administrator"),M(),A(8,"span",36),J(9,"Developer"),M(),A(10,"span",36),J(11,"Maintainer"),M(),A(12,"span",36),J(13,"View Only"),M()(),A(14,"td")(15,"button",52),He("click",function(){const o=st(e).$implicit;return at(te().deleteUser(o.username))}),J(16,"Delete"),M()()()}if(2&t){const e=n.$implicit,i=te();I(2),Xt(e.username),I(2),Xt(e.email),I(2),N("hidden",e.role!==i.adminRole),I(2),N("hidden",e.role!==i.developerRole),I(2),N("hidden",e.role!==i.maintainerRole),I(2),N("hidden",e.role!==i.readonlyRole)}}function jBe(t,n){if(1&t&&(A(0,"ngb-alert",48),je(1,"img",49),A(2,"h6",50),J(3,"An error occurred:"),M(),A(4,"p",53),J(5),M()()),2&t){const e=te();N("dismissible",!1),I(5),Xt(e.userCreateError)}}const iF=function(t){return{"is-invalid":t}};let BBe=(()=>{class t{constructor(e,i,r){be(this,"route",void 0),be(this,"consoleService",void 0),be(this,"formBuilder",void 0),be(this,"error",""),be(this,"userCreateError",""),be(this,"users",[]),be(this,"createUserForm",void 0),be(this,"adminRole",Di.USER_ROLE_ADMIN),be(this,"developerRole",Di.USER_ROLE_DEVELOPER),be(this,"maintainerRole",Di.USER_ROLE_MAINTAINER),be(this,"readonlyRole",Di.USER_ROLE_READONLY),this.route=e,this.consoleService=i,this.formBuilder=r}ngOnInit(){this.createUserForm=this.formBuilder.group({username:["",Wo.required],email:["",[Wo.required,Wo.email]],password:["",Wo.compose([Wo.required,Wo.minLength(8)])],role:[+this.readonlyRole,Wo.required],newsletter:[!1]}),this.route.data.subscribe(e=>{const i=e[0];this.users.length=0,this.users.push(...i.users)},e=>{this.error=e})}deleteUser(e){this.error="",this.consoleService.deleteUser("",e).pipe(et(()=>this.consoleService.listUsers(""))).subscribe(i=>{this.error="",this.users.length=0,this.users.push(...i.users)},i=>{this.error=i})}addUser(){this.userCreateError="",this.createUserForm.disable();let e=Di.USER_ROLE_READONLY;switch(this.f.role.value){case 1:e=Di.USER_ROLE_ADMIN;break;case 2:e=Di.USER_ROLE_DEVELOPER;break;case 3:e=Di.USER_ROLE_MAINTAINER;break;case 4:e=Di.USER_ROLE_READONLY}this.consoleService.addUser("",{username:this.f.username.value,email:this.f.email.value,password:this.f.password.value,role:e,newsletter_subscription:this.f.newsletter.value}).pipe(et(()=>this.consoleService.listUsers(""))).subscribe(r=>{this.userCreateError="",this.createUserForm.reset({role:+e}),this.createUserForm.enable(),this.users.length=0,this.users.push(...r.users)},r=>{this.userCreateError=r,this.createUserForm.enable()})}get f(){return this.createUserForm.controls}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Ui),Ae(Pl))}),be(t,"\u0275cmp",ln({type:t,selectors:[["app-users"]],decls:121,vars:24,consts:[[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],[1,"user-details","mb-5","table","table-bordered","table-sm","table-striped"],[1,"thead-light"],[2,"width","400px"],[2,"width","300px"],[2,"width","90px"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"section-divider","d-flex","mb-4"],[1,"mb-4","alert-permissions",3,"type"],[1,"alert-title","font-weight-bold"],[1,"d-flex","flex-wrap","flex-row"],[1,"col","col-md-3","p-4","flex-fill","flex-grow-1"],[1,"d-flex","align-items-center","mb-3"],["src","/static/svg/role-admin.svg","alt","","width","30","height","",1,"mr-2"],[1,"m-0","font-weight-bold"],["src","/static/svg/role-developer.svg","alt","","width","30","height","",1,"mr-2"],["src","/static/svg/role-maintainer.svg","alt","","width","30","height","",1,"mr-2"],["src","/static/svg/role-viewonly.svg","alt","","width","30","height","",1,"mr-2"],[1,"add-border","rounded"],[3,"formGroup","ngSubmit"],[1,"row","no-gutters"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"col-md-3"],["for","email",1,"d-inline"],[1,"col-md-9","ml-0","p-0"],["type","email","id","email","placeholder","email@example.com","required","","formControlName","email",1,"form-control",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","username",1,"d-inline"],["type","text","id","username","placeholder","Username","required","","formControlName","username",1,"form-control",3,"ngClass"],["for","password",1,"d-inline"],["type","password","id","password","placeholder","Password","required","","formControlName","password",1,"form-control",3,"ngClass"],[1,"d-inline"],[1,"btn-group"],["disabled","",1,"btn","btn-outline-dark","disabled"],[3,"hidden"],["ngbDropdown","","role","group",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-primary","dropdown-toggle-split"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click"],[1,"row","no-gutters","add-border-single-row-bottom","mb-4"],[1,"col","d-flex","align-items-center"],[1,"custom-control","custom-checkbox"],["type","checkbox","id","newsletter","formControlName","newsletter",1,"custom-control-input","mr-2","my-2"],["for","newsletter",1,"form-check-label","custom-control-label"],[1,""],["type","submit",1,"btn","btn-primary",3,"disabled"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[1,"text-muted",3,"colSpan"],["type","button",1,"btn","btn-danger","btn-outline-dark",3,"click"],[1,"mb-0","pl-4"]],template:function(e,i){1&e&&(A(0,"h2",0),J(1,"User Management"),M(),ye(2,RBe,4,2,"ngb-alert",1),A(3,"table",2)(4,"thead",3)(5,"tr")(6,"th",4),J(7,"Username"),M(),A(8,"th"),J(9,"Email"),M(),A(10,"th",5),J(11,"Role"),M(),A(12,"th",6),J(13,"Action"),M()()(),A(14,"tbody"),ye(15,$Be,3,1,"tr",7),ye(16,PBe,17,6,"tr",8),M()(),A(17,"h5",9),J(18,"Add new user"),M(),A(19,"ngb-alert",10)(20,"h6",11),J(21,"User roles"),M(),A(22,"div",12)(23,"div",13)(24,"div",14),je(25,"img",15),A(26,"h6",16),J(27,"Administrator"),M()(),A(28,"small"),J(29," Owners have complete control over the server, its users and resources. "),M()(),A(30,"div",13)(31,"div",14),je(32,"img",17),A(33,"h6",16),J(34,"Developer"),M()(),A(35,"small"),J(36," Like Administrators, Developers have complete control over the server, resources and data. However they cannot add, change or delete console users. "),M()(),A(37,"div",13)(38,"div",14),je(39,"img",18),A(40,"h6",16),J(41,"Maintainer"),M()(),A(42,"small"),J(43," Maintainers have access to adding, changing and delete client resources such as accounts, storage and leaderboard records. They don't have access to the API Explorer or the console users. "),M()(),A(44,"div",13)(45,"div",14),je(46,"img",19),A(47,"h6",16),J(48,"View Only"),M()(),A(49,"small"),J(50," View Only users can only view client resources but cannot make any changes to the data whatsoever. "),M()()()(),ye(51,jBe,6,2,"ngb-alert",1),A(52,"div",20)(53,"form",21),He("ngSubmit",function(){return i.addUser()}),A(54,"div",22)(55,"div",23)(56,"div",24)(57,"label",25),J(58,"Email"),M()(),A(59,"div",26),je(60,"input",27),A(61,"div",28),J(62,"Email is required"),M()()()(),A(63,"div",22)(64,"div",23)(65,"div",24)(66,"label",29),J(67,"Username"),M()(),A(68,"div",26),je(69,"input",30),A(70,"div",28),J(71,"Username is required"),M()()()(),A(72,"div",22)(73,"div",23)(74,"div",24)(75,"label",31),J(76,"Password"),M()(),A(77,"div",26),je(78,"input",32),A(79,"div",28),J(80,"Password is required, must be 8 chars or longer and consist of at least a capital letter, a small letter and a number."),M()()()(),A(81,"div",22)(82,"div",23)(83,"div",24)(84,"label",33),J(85,"Role"),M()(),A(86,"div",26)(87,"div",34)(88,"button",35)(89,"span",36),J(90,"Administrator"),M(),A(91,"span",36),J(92,"Developer"),M(),A(93,"span",36),J(94,"Maintainer"),M(),A(95,"span",36),J(96,"View Only"),M()(),A(97,"div",37),je(98,"button",38),A(99,"div",39)(100,"button",40),He("click",function(){return i.f.role.setValue(+i.adminRole)}),J(101,"Administrator"),M(),A(102,"button",40),He("click",function(){return i.f.role.setValue(+i.developerRole)}),J(103,"Developer"),M(),A(104,"button",40),He("click",function(){return i.f.role.setValue(+i.maintainerRole)}),J(105,"Maintainer"),M(),A(106,"button",40),He("click",function(){return i.f.role.setValue(+i.readonlyRole)}),J(107,"View Only"),M()()()(),A(108,"div",28),J(109,"Role is required"),M()()()(),A(110,"div",41)(111,"div",42),je(112,"div",24),A(113,"div",26)(114,"div",43),je(115,"input",44),A(116,"label",45),J(117,"Subscribe to Heroic Labs' newsletters to receive latest updates to Nakama and other news."),M()()()()(),A(118,"div",46)(119,"button",47),J(120,"Save"),M()()()()),2&e&&(I(2),N("ngIf",i.error),I(13),N("ngIf",0===i.users.length),I(1),N("ngForOf",i.users),I(3),N("type","secondary"),I(32),N("ngIf",i.userCreateError),I(2),N("formGroup",i.createUserForm),I(7),N("ngClass",Lr(18,iF,i.f.email.dirty&&i.f.email.errors)),I(1),N("hidden",i.f.email.disabled||i.f.email.valid||i.f.email.pristine),I(8),N("ngClass",Lr(20,iF,i.f.username.dirty&&i.f.username.errors)),I(1),N("hidden",i.f.username.disabled||i.f.username.valid||i.f.username.pristine),I(8),N("ngClass",Lr(22,iF,i.f.password.dirty&&i.f.password.errors)),I(1),N("hidden",i.f.password.disabled||i.f.password.valid||i.f.password.pristine),I(10),N("hidden",i.f.role.value!==+i.adminRole),I(2),N("hidden",i.f.role.value!==+i.developerRole),I(2),N("hidden",i.f.role.value!==+i.maintainerRole),I(2),N("hidden",i.f.role.value!==+i.readonlyRole),I(13),N("hidden",i.f.role.disabled||i.f.role.valid||i.f.role.pristine),I(11),N("disabled",i.createUserForm.invalid))},dependencies:[Pd,ti,Nn,Go,Bu,rg,Rf,Nf,bl,qa,oC,vl,yl,Ff,Ea,Ya],styles:[".user-details[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fff}.user-details[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:.6em 1em;font-weight:500}.user-details[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.6em 1em}.alert-permissions[_ngcontent-%COMP%]{padding:0}.alert-permissions[_ngcontent-%COMP%] .alert-title[_ngcontent-%COMP%]{padding:1rem}.alert-permissions[_ngcontent-%COMP%] .flex-row[_ngcontent-%COMP%]{border-top:solid 1px #dadae9;margin:0}.alert-permissions[_ngcontent-%COMP%] .flex-row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]{border-right:solid 1px #dadae9}.alert-permissions[_ngcontent-%COMP%] .flex-row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]:last-child{border-right:none}"]})),t})(),HBe=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.listUsers("")}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function VBe(t,n){if(1&t&&(A(0,"ngb-alert",10),je(1,"img",11),A(2,"h6",12),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("Failed to retrieve runtime information: ",e.error,"")}}function zBe(t,n){if(1&t&&(A(0,"tr")(1,"td"),J(2),M(),A(3,"td",13),J(4),M()()),2&t){const e=n.$implicit;I(2),Xt(e.path),I(2),Xt(e.mod_time)}}function UBe(t,n){1&t&&(A(0,"tr")(1,"td",14),J(2,"No Go modules were found."),M(),je(3,"td"),M())}function WBe(t,n){if(1&t&&(A(0,"tr")(1,"td"),J(2),M(),A(3,"td",13),J(4),M()()),2&t){const e=n.$implicit;I(2),Xt(e.path),I(2),Xt(e.mod_time)}}function GBe(t,n){1&t&&(A(0,"tr")(1,"td",14),J(2,"No Lua modules were found."),M(),je(3,"td"),M())}function qBe(t,n){if(1&t&&(A(0,"tr")(1,"td"),J(2),M(),A(3,"td",13),J(4),M()()),2&t){const e=n.$implicit;I(2),Xt(e.path),I(2),Xt(e.mod_time)}}function XBe(t,n){1&t&&(A(0,"tr")(1,"td",14),J(2,"No JavaScript modules were found."),M(),je(3,"td"),M())}const rF=function(){return["/apiexplorer"]},oF=function(t){return{endpoint:t}};function YBe(t,n){if(1&t&&(A(0,"tr")(1,"td")(2,"code"),J(3),M()(),A(4,"td",15)(5,"a",16),J(6,"API Explorer"),M()()()),2&t){const e=n.$implicit;I(3),Xt(e),I(2),N("routerLink",Ll(3,rF))("queryParams",Lr(4,oF,e))}}function KBe(t,n){1&t&&(A(0,"tr")(1,"td",17),J(2,"No Go RPC functions were found."),M()())}function JBe(t,n){if(1&t&&(A(0,"tr")(1,"td")(2,"code"),J(3),M()(),A(4,"td",15)(5,"a",16),J(6,"API Explorer"),M()()()),2&t){const e=n.$implicit;I(3),Xt(e),I(2),N("routerLink",Ll(3,rF))("queryParams",Lr(4,oF,e))}}function QBe(t,n){1&t&&(A(0,"tr")(1,"td",17),J(2,"No Lua RPC functions were found."),M()())}function ZBe(t,n){if(1&t&&(A(0,"tr")(1,"td")(2,"code"),J(3),M()(),A(4,"td",15)(5,"a",16),J(6,"API Explorer"),M()()()),2&t){const e=n.$implicit;I(3),Xt(e),I(2),N("routerLink",Ll(3,rF))("queryParams",Lr(4,oF,e))}}function e7e(t,n){1&t&&(A(0,"tr")(1,"td",17),J(2,"No JavaScript RPC functions were found."),M()())}let t7e=(()=>{class t{constructor(e,i){be(this,"route",void 0),be(this,"consoleService",void 0),be(this,"error",""),be(this,"runtimeInfo",void 0),this.route=e,this.consoleService=i}ngOnInit(){this.route.data.subscribe(e=>{this.runtimeInfo=e[0]},e=>{this.error=e})}ngOnDestroy(){}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Ui))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],decls:51,vars:13,consts:[[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],[1,"runtime-table","mb-4","table","table-sm","table-bordered","mb-5"],[1,"thead-light"],[2,"width","180px"],[4,"ngFor","ngForOf"],[4,"ngIf"],["colspan","2"],[1,"mb-4","section-divider","d-flex"],[1,"runtime-table","table","table-sm","table-bordered"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","200px"],[1,"text-muted"],[2,"width","180px","text-align","center"],[1,"btn","btn-sm","btn-secondary",3,"routerLink","queryParams"],["colspan","2",1,"text-muted"]],template:function(e,i){1&e&&(A(0,"h2",0),J(1,"Runtime Modules"),M(),ye(2,VBe,4,2,"ngb-alert",1),A(3,"table",2)(4,"thead",3)(5,"tr")(6,"th"),J(7,"Go Modules"),M(),A(8,"th",4),J(9,"Last Modified"),M()()(),A(10,"tbody"),ye(11,zBe,5,2,"tr",5),ye(12,UBe,4,0,"tr",6),M(),A(13,"thead",3)(14,"tr")(15,"th",7),J(16,"Lua Modules"),M()()(),A(17,"tbody"),ye(18,WBe,5,2,"tr",5),ye(19,GBe,4,0,"tr",6),M(),A(20,"thead",3)(21,"tr")(22,"th",7),J(23,"JavaScript Modules"),M()()(),A(24,"tbody"),ye(25,qBe,5,2,"tr",5),ye(26,XBe,4,0,"tr",6),M()(),A(27,"h4",8),J(28,"Registered RPC Functions"),M(),A(29,"table",9)(30,"thead",3)(31,"tr")(32,"th",7),J(33,"Go RPC Functions"),M()()(),A(34,"tbody"),ye(35,YBe,7,6,"tr",5),ye(36,KBe,3,0,"tr",6),M(),A(37,"thead",3)(38,"tr")(39,"th",7),J(40,"Lua RPC Functions"),M()()(),A(41,"tbody"),ye(42,JBe,7,6,"tr",5),ye(43,QBe,3,0,"tr",6),M(),A(44,"thead",3)(45,"tr")(46,"th",7),J(47,"JavaScript RPC Functions"),M()()(),A(48,"tbody"),ye(49,ZBe,7,6,"tr",5),ye(50,e7e,3,0,"tr",6),M()()),2&e&&(I(2),N("ngIf",i.error),I(9),N("ngForOf",i.runtimeInfo.go_modules),I(1),N("ngIf",0===i.runtimeInfo.go_modules.length),I(6),N("ngForOf",i.runtimeInfo.lua_modules),I(1),N("ngIf",0===i.runtimeInfo.lua_modules.length),I(6),N("ngForOf",i.runtimeInfo.js_modules),I(1),N("ngIf",0===i.runtimeInfo.js_modules.length),I(9),N("ngForOf",i.runtimeInfo.go_rpc_functions),I(1),N("ngIf",0===i.runtimeInfo.go_rpc_functions.length),I(6),N("ngForOf",i.runtimeInfo.lua_rpc_functions),I(1),N("ngIf",0===i.runtimeInfo.lua_rpc_functions.length),I(6),N("ngForOf",i.runtimeInfo.js_rpc_functions),I(1),N("ngIf",0===i.runtimeInfo.js_rpc_functions.length))},dependencies:[Ru,ti,Nn,Go],styles:["label[_ngcontent-%COMP%]{margin-bottom:0}.opaque[_ngcontent-%COMP%]{opacity:40%}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.runtime-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fff}.runtime-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:.6em 1em;font-weight:500}.runtime-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-left:1em;padding-right:1em;vertical-align:middle}"]})),t})(),n7e=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.getRuntime("")}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function i7e(t,n){1&t&&(A(0,"span"),J(1,"Filter by collection"),M())}function r7e(t,n){if(1&t&&(A(0,"span"),J(1),M()),2&t){const e=te();I(1),Xt(e.f.collection.value)}}function o7e(t,n){if(1&t){const e=Bt();A(0,"button",34),He("click",function(){const o=st(e).$implicit;return at(te().f.collection.setValue(o))}),J(1),M()}if(2&t){const e=n.$implicit;I(1),Xt(e)}}function s7e(t,n){if(1&t&&(A(0,"ngb-alert",35),je(1,"img",36),A(2,"h6",37),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("Error when querying storage objects: ",e.error,"")}}function a7e(t,n){1&t&&(A(0,"th",38),J(1,"Remove"),M())}function l7e(t,n){1&t&&(A(0,"tr")(1,"td",39),J(2,"No storage objects found - change the filter criteria or add new objects."),M()())}function c7e(t,n){if(1&t){const e=Bt();A(0,"td",42)(1,"button",43),He("click",function(r){st(e);const o=te(),s=o.index,a=o.$implicit;return at(te().deleteObject(r,s,a))}),J(2,"Delete"),M()()}}function u7e(t,n){if(1&t){const e=Bt();A(0,"tr")(1,"td",40),He("click",function(){const o=st(e).$implicit;return at(te().viewObject(o))}),J(2),M(),A(3,"td",40),He("click",function(){const o=st(e).$implicit;return at(te().viewObject(o))}),J(4),M(),A(5,"td",40),He("click",function(){const o=st(e).$implicit;return at(te().viewObject(o))}),J(6),M(),A(7,"td",40),He("click",function(){const o=st(e).$implicit;return at(te().viewObject(o))}),J(8),M(),ye(9,c7e,3,0,"td",41),M()}if(2&t){const e=n.$implicit,i=te();I(2),Xt(e.collection),I(2),Xt(e.key),I(2),Xt(e.user_id),I(2),Xt(e.update_time),I(1),N("ngIf",i.deleteAllowed())}}let h7e=(()=>{class t{constructor(e,i,r,o,s){be(this,"route",void 0),be(this,"router",void 0),be(this,"consoleService",void 0),be(this,"authService",void 0),be(this,"formBuilder",void 0),be(this,"systemUserId","00000000-0000-0000-0000-000000000000"),be(this,"error",""),be(this,"collections",[]),be(this,"objects",[]),be(this,"objectCount",0),be(this,"nextCursor",""),be(this,"prevCursor",""),be(this,"searchForm",void 0),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.searchForm=this.formBuilder.group({collection:[""],key:[""],user_id:[""]});const e=this.route.snapshot.queryParamMap;this.f.collection.setValue(e.get("collection")),this.f.key.setValue(e.get("key")),this.f.user_id.setValue(e.get("user_id")),this.nextCursor=e.get("cursor"),this.nextCursor&&""!==this.nextCursor?this.search(1):(this.f.collection.value||this.f.user_id.value)&&this.search(0),this.route.data.subscribe(i=>{this.collections.length=0,this.collections.push(...i[0].collections),this.objectCount=i[1].total_count,this.nextCursor=i[1].next_cursor,this.prevCursor=i[1].prev_cursor,this.objects.length=0,this.objects.push(...i[1].objects)},i=>{this.error=i})}disableSearch(){return!(!this.f.key.value||""===this.f.key.value||this.f.collection.value&&""!==this.f.collection.value)}search(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listStorage("",this.f.user_id.value,this.f.key.value,this.f.collection.value,i).subscribe(r=>{this.error="",this.objectCount=r.total_count,this.nextCursor=r.next_cursor,this.objects.length=0,this.objects.push(...r.objects),this.router.navigate([],{relativeTo:this.route,queryParams:{collection:this.f.collection.value,key:this.f.key.value,user_id:this.f.user_id.value,cursor:i},queryParamsHandling:"merge"})},r=>{this.error=r})}deleteObject(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteStorageObject("",r.collection,r.key,r.user_id,r.version).subscribe(()=>{this.error="",this.objectCount--,this.objects.splice(i,1)},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}viewObject(e){this.router.navigate(["/storage",e.collection,e.key,e.user_id],{relativeTo:this.route})}get f(){return this.searchForm.controls}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Ui),Ae(ds),Ae(Pl))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],decls:50,vars:15,consts:[[1,"pb-1"],[1,"pb-4"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],[1,"input-group-prepend"],["ngbDropdown","",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary","dropdown-radius",3,"disabled"],[4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",1,"btn","btn-secondary","text-secondary",3,"hidden","click"],[1,"dropdown-divider",3,"hidden"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],["type","text","formControlName","key","placeholder","Filter by key",1,"form-control"],["type","text","formControlName","user_id","placeholder","Filter by user ID",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"input-group-text",3,"click"],["src","/static/svg/purple-cog-1.svg","alt","","width","20","height","",1,"mr-1"],["type","submit",1,"btn","btn-primary",3,"disabled","click"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngFor","ngForOf"],["type","button","ngbDropdownItem","",3,"click"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(e,i){1&e&&(A(0,"h2",0),J(1,"Storage Objects"),M(),A(2,"h6",1),J(3),M(),A(4,"div",2)(5,"div",3)(6,"div",4)(7,"form",5),He("ngSubmit",function(){return i.search(0)}),A(8,"div",6)(9,"div",7)(10,"div",8)(11,"button",9),ye(12,i7e,2,0,"span",10),ye(13,r7e,2,1,"span",10),M(),A(14,"div",11)(15,"button",12),He("click",function(){return i.f.collection.reset()}),J(16,"\u2718 Deselect collection"),M(),je(17,"div",13),ye(18,o7e,2,1,"button",14),M()()(),je(19,"input",15)(20,"input",16),A(21,"div",17)(22,"span",18),He("click",function(){return i.f.user_id.setValue(i.systemUserId)}),je(23,"img",19),M()(),A(24,"div",17)(25,"button",20),He("click",function(){return i.search(0)}),J(26,"Search"),M()()()()(),A(27,"div",21)(28,"div",22)(29,"button",23),He("click",function(){return i.search(0)}),je(30,"img",24),M(),A(31,"button",23),He("click",function(){return i.search(1)}),je(32,"img",25),M()()()()(),ye(33,s7e,4,2,"ngb-alert",26),A(34,"div",27)(35,"table",28)(36,"thead",29)(37,"tr")(38,"th"),J(39,"Collection Name"),M(),A(40,"th"),J(41,"Key Name"),M(),A(42,"th",30),J(43,"User ID"),M(),A(44,"th",31),J(45,"Last Update"),M(),ye(46,a7e,2,0,"th",32),M()(),A(47,"tbody"),ye(48,l7e,3,0,"tr",10),ye(49,u7e,10,5,"tr",33),M()()()),2&e&&(I(3),jn("",i.objectCount," objects found."),I(4),N("formGroup",i.searchForm),I(4),N("disabled",0===i.collections.length),I(1),N("ngIf",!i.f.collection.value||""===i.f.collection.value),I(1),N("ngIf",i.f.collection.value&&""!==i.f.collection.value),I(2),N("hidden",!i.f.collection.value||""===i.f.collection.value),I(2),N("hidden",!i.f.collection.value||""===i.f.collection.value),I(1),N("ngForOf",i.collections),I(7),N("disabled",i.disableSearch()),I(4),N("disabled",0===i.objects.length),I(2),N("disabled",""===i.nextCursor),I(2),N("ngIf",i.error),I(13),N("ngIf",i.deleteAllowed()),I(2),N("ngIf",0===i.objects.length),I(1),N("ngForOf",i.objects))},dependencies:[ti,Nn,Go,Bu,rg,Rf,Nf,bl,qa,vl,yl,Ea,Ya],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})),t})(),d7e=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.listStorageCollections("")}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})(),f7e=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.queryParamMap.get("collection"),o=e.queryParamMap.get("key"),s=e.queryParamMap.get("user_id");return this.consoleService.listStorage("",s,o,r,null)}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();var sF,NG,RG,$G,PG,jG,BG,HG,VG,zG,UG,WG,GG,qG,XG,YG,KG,JG,QG,ZG,eq,tq,nq,iq,rq,oq,sq,aq,lq,cq,uq,hq,dq,fq,pq,gq,mq,vq,yq,bq,_q,wq,xq,Cq,Sq,kq,Dq,Tq,Aq,Eq,Mq,Iq,Fq,Lq,Oq,Nq,Rq,$q,Pq,jq,Bq,Hq,Vq,zq,Uq,Wq,Gq,qq,Xq,Yq,Kq,Jq,Qq,Zq,eX,tX,nX,iX,rX,oX,sX,aX,lX,cX,uX,hX,dX,fX,pX,gX,mX,vX,yX,bX,_X,wX,xX,CX,SX,kX,DX,TX,AX,EX,MX,IX,FX,LX,OX,NX,RX,$X,PX,jX,BX,HX,VX,zX,UX,WX,GX,qX,XX,YX,KX,JX,QX,ZX,eY,tY,nY,iY,rY,oY,sY,aY,lY,cY,uY,hY,dY,fY,pY,gY,mY,vY,yY,bY,_Y,wY,xY,CY,SY,kY,DY,TY,AY,EY,MY,IY,FY,LY,OY,NY,RY,$Y,PY,jY,BY,HY,VY,zY,UY,WY,GY,qY,XY,YY,KY,JY,QY,ZY,eK,tK,nK,iK,rK,oK,sK,aK,lK,cK,uK,hK,dK,fK,pK,gK,mK,vK,yK,bK,_K,wK,xK,CK,SK,kK,DK,TK,AK,EK,MK,IK,FK,LK,OK,NK,RK,$K,PK,jK,BK,HK,VK,zK,UK,WK,GK,qK,XK,YK,KK,JK,QK,ZK,eJ,tJ,nJ,iJ,rJ,oJ,sJ,aJ,lJ,cJ,uJ,hJ,dJ,fJ,pJ,gJ,mJ,vJ,yJ,bJ,_J,wJ,xJ,CJ,SJ,kJ,DJ,TJ,AJ,EJ,MJ,IJ,FJ,LJ,OJ,NJ,RJ,$J,PJ,jJ,BJ,HJ,VJ,zJ,UJ,WJ,GJ,p7e=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],g7e=["mainAxis","crossAxis","limiter"];function sb(t){var n="function"==typeof Map?new Map:void 0;return sb=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return aF(e,arguments,_r(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ab(r,e)},sb(t)}function aF(t,n,e){return(aF=QJ()?Reflect.construct.bind():function(i,r,o){var s=[null];s.push.apply(s,r);var a=new(Function.bind.apply(i,s));return o&&ab(a,o.prototype),a}).apply(null,arguments)}function Je(t,n){return n||(n=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))}function qJ(t,n){if(null==t)return{};var e,i,r=function(s,a){if(null==s)return{};var l,c,u={},h=Object.keys(s);for(c=0;c=0||(u[l]=s[l]);return u}(t,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(r[e]=t[e])}return r}function ot(t,n){var e=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=xS(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(l){throw l},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){e=e.call(t)},n:function(){var l=e.next();return s=l.done,l},e:function(l){a=!0,o=l},f:function(){try{s||null==e.return||e.return()}finally{if(a)throw o}}}}function Rn(){Rn=function(){return t};var t={},n=Object.prototype,e=n.hasOwnProperty,i=Object.defineProperty||function(pe,De,ie){pe[De]=ie.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function l(pe,De,ie){return Object.defineProperty(pe,De,{value:ie,enumerable:!0,configurable:!0,writable:!0}),pe[De]}try{l({},"")}catch{l=function(De,ie,ge){return De[ie]=ge}}function c(pe,De,ie,ge){var le=Object.create((De&&De.prototype instanceof d?De:d).prototype),Fe=new re(ge||[]);return i(le,"_invoke",{value:B(pe,ie,Fe)}),le}function u(pe,De,ie){try{return{type:"normal",arg:pe.call(De,ie)}}catch(ge){return{type:"throw",arg:ge}}}t.wrap=c;var h={};function d(){}function f(){}function p(){}var m={};l(m,o,function(){return this});var w=Object.getPrototypeOf,C=w&&w(w(ce([])));C&&C!==n&&e.call(C,o)&&(m=C);var k=p.prototype=d.prototype=Object.create(m);function E(pe){["next","throw","return"].forEach(function(De){l(pe,De,function(ie){return this._invoke(De,ie)})})}function L(pe,De){function ie(we,le,Fe,z){var Q=u(pe[we],pe,le);if("throw"!==Q.type){var Z=Q.arg,me=Z.value;return me&&"object"==$n(me)&&e.call(me,"__await")?De.resolve(me.__await).then(function(ae){ie("next",ae,Fe,z)},function(ae){ie("throw",ae,Fe,z)}):De.resolve(me).then(function(ae){Z.value=ae,Fe(Z)},function(ae){return ie("throw",ae,Fe,z)})}z(Q.arg)}var ge;i(this,"_invoke",{value:function(we,le){function Fe(){return new De(function(z,Q){ie(we,le,z,Q)})}return ge=ge?ge.then(Fe,Fe):Fe()}})}function B(pe,De,ie){var ge="suspendedStart";return function(we,le){if("executing"===ge)throw new Error("Generator is already running");if("completed"===ge){if("throw"===we)throw le;return{value:void 0,done:!0}}for(ie.method=we,ie.arg=le;;){var Fe=ie.delegate;if(Fe){var z=G(Fe,ie);if(z){if(z===h)continue;return z}}if("next"===ie.method)ie.sent=ie._sent=ie.arg;else if("throw"===ie.method){if("suspendedStart"===ge)throw ge="completed",ie.arg;ie.dispatchException(ie.arg)}else"return"===ie.method&&ie.abrupt("return",ie.arg);ge="executing";var Q=u(pe,De,ie);if("normal"===Q.type){if(ge=ie.done?"completed":"suspendedYield",Q.arg===h)continue;return{value:Q.arg,done:ie.done}}"throw"===Q.type&&(ge="completed",ie.method="throw",ie.arg=Q.arg)}}}function G(pe,De){var ie=De.method,ge=pe.iterator[ie];if(void 0===ge)return De.delegate=null,"throw"===ie&&pe.iterator.return&&(De.method="return",De.arg=void 0,G(pe,De),"throw"===De.method)||"return"!==ie&&(De.method="throw",De.arg=new TypeError("The iterator does not provide a '"+ie+"' method")),h;var we=u(ge,pe.iterator,De.arg);if("throw"===we.type)return De.method="throw",De.arg=we.arg,De.delegate=null,h;var le=we.arg;return le?le.done?(De[pe.resultName]=le.value,De.next=pe.nextLoc,"return"!==De.method&&(De.method="next",De.arg=void 0),De.delegate=null,h):le:(De.method="throw",De.arg=new TypeError("iterator result is not an object"),De.delegate=null,h)}function oe(pe){var De={tryLoc:pe[0]};1 in pe&&(De.catchLoc=pe[1]),2 in pe&&(De.finallyLoc=pe[2],De.afterLoc=pe[3]),this.tryEntries.push(De)}function fe(pe){var De=pe.completion||{};De.type="normal",delete De.arg,pe.completion=De}function re(pe){this.tryEntries=[{tryLoc:"root"}],pe.forEach(oe,this),this.reset(!0)}function ce(pe){if(pe){var De=pe[o];if(De)return De.call(pe);if("function"==typeof pe.next)return pe;if(!isNaN(pe.length)){var ie=-1,ge=function we(){for(;++ie=0;--ge){var we=this.tryEntries[ge],le=we.completion;if("root"===we.tryLoc)return ie("end");if(we.tryLoc<=this.prev){var Fe=e.call(we,"catchLoc"),z=e.call(we,"finallyLoc");if(Fe&&z){if(this.prev=0;--ie){var ge=this.tryEntries[ie];if(ge.tryLoc<=this.prev&&e.call(ge,"finallyLoc")&&this.prev=0;--De){var ie=this.tryEntries[De];if(ie.finallyLoc===pe)return this.complete(ie.completion,ie.afterLoc),fe(ie),h}},catch:function(pe){for(var De=this.tryEntries.length-1;De>=0;--De){var ie=this.tryEntries[De];if(ie.tryLoc===pe){var ge=ie.completion;if("throw"===ge.type){var we=ge.arg;fe(ie)}return we}}throw new Error("illegal catch attempt")},delegateYield:function(pe,De,ie){return this.delegate={iterator:ce(pe),resultName:De,nextLoc:ie},"next"===this.method&&(this.arg=void 0),h}},t}function XJ(t,n,e,i,r,o,s){try{var a=t[o](s),l=a.value}catch(c){return void e(c)}a.done?n(l):Promise.resolve(l).then(i,r)}function Dr(t){return function(){var n=this,e=arguments;return new Promise(function(i,r){var o=t.apply(n,e);function s(l){XJ(o,i,r,s,a,"next",l)}function a(l){XJ(o,i,r,s,a,"throw",l)}s(void 0)})}}function di(t,n){return KJ(t)||function(e,i){var r=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,s,a,l,c=[],u=!0,h=!1;try{if(a=(r=r.call(e)).next,0===i){if(Object(r)!==r)return;u=!1}else for(;!(u=(o=a.call(r)).done)&&(c.push(o.value),c.length!==i);u=!0);}catch(d){h=!0,s=d}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(h)throw s}}return c}}(t,n)||xS(t,n)||YJ()}function YJ(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function KJ(t){if(Array.isArray(t))return t}function JJ(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,i)}return e}function _t(t){for(var n=1;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _r(t){return(_r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function qe(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function ZJ(t,n){for(var e=0;et.length)&&(n=t.length);for(var e=0,i=new Array(n);e32){for(var n=[],e=t.ctx.length/32,i=0;i2&&void 0!==arguments[2]?arguments[2]:{},i=e.bubbles,r=void 0!==i&&i,o=e.cancelable,s=void 0!==o&&o,a=document.createEvent("CustomEvent");return a.initCustomEvent(t,r,s,n),a}function qh(t,n){return new t(n)}var cb,SS=new Map,hF=0;function dQ(t,n,e,i,r,o,s){for(var a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,l=16.666/i,c="{\n",u=0;u<=1;u+=l){var h=n+(e-n)*o(u);c+=100*u+"%{".concat(s(h,1-h),"}\n")}var d=c+"100% {".concat(s(e,1-e),"}\n}"),f="__svelte_".concat(function w7e(t){for(var n=5381,e=t.length;e--;)n=(n<<5)-n^t.charCodeAt(e);return n>>>0}(d),"_").concat(a),p=uF(t),m=SS.get(p)||function x7e(t,n){var e={stylesheet:b7e(n),rules:{}};return SS.set(t,e),e}(p,t),w=m.stylesheet,C=m.rules;C[f]||(C[f]=!0,w.insertRule("@keyframes ".concat(f," ").concat(d),w.cssRules.length));var k=t.style.animation||"";return t.style.animation="".concat(k?"".concat(k,", "):"").concat(f," ").concat(i,"ms linear ").concat(r,"ms 1 both"),hF+=1,f}function ub(t){cb=t}function Dv(){if(!cb)throw new Error("Function called outside component initialization");return cb}function Zc(t){Dv().$$.on_mount.push(t)}function Gu(t){Dv().$$.on_destroy.push(t)}function fQ(){var t=Dv();return function(n,e){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).cancelable,s=t.$$.callbacks[n];if(s){var a=hQ(n,e,{cancelable:void 0!==r&&r});return s.slice().forEach(function(l){l.call(t,a)}),!a.defaultPrevented}return!0}}function pQ(t,n){return Dv().$$.context.set(t,n),n}function $a(t){return Dv().$$.context.get(t)}function kS(t,n){var e=this,i=t.$$.callbacks[n.type];i&&i.slice().forEach(function(r){return r.call(e,n)})}var Tv=[],dr=[],DS=[],dF=[],gQ=Promise.resolve(),fF=!1;function mQ(){fF||(fF=!0,gQ.then(vQ))}function oc(){return mQ(),gQ}function _g(t){DS.push(t)}function qu(t){dF.push(t)}var TS,pF=new Set,Av=0;function vQ(){if(0===Av){var t=cb;do{try{for(;Avl.start&&(a=h(l,E),l=null,gF(t,a.b,"start"),fe&&(u(),c=dQ(t,s,a.b,a.duration,0,B,o.css))),a&&(ce>=a.end?(oe(s=a.b,1-s),gF(t,a.b,"end"),l||(a.b?u():--a.group.r||Fo(a.group.c)),a=null):ce>=a.start&&(s=a.a+a.d*B((ce-a.start)/a.duration),oe(s,1-s))),!(!a&&!l)},0===lb.size&&cF(aQ),new Promise(function(ce){lb.add({c:p,f:ce})}))}return{run:function(f){Na(o)?(TS||(TS=Promise.resolve()).then(function(){TS=null}),TS).then(function(){o=o(r),d(f)}):d(f)},end:function(){u(),a=l=null}}}var mF=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function D7e(t,n){t.d(1),n.delete(t.key)}function vF(t,n){Ee(t,1,1,function(){n.delete(t.key)})}function MS(t,n,e,i,r,o,s,a,l,c,u,h){for(var d=t.length,f=o.length,p=d,m={};p--;)m[t[p].key]=p;var w=[],C=new Map,k=new Map;for(p=f;p--;){var E=h(r,o,p),L=e(E),B=s.get(L);B?i&&B.p(E,n):(B=c(L,E)).c(),C.set(L,w[p]=B),L in m&&k.set(L,Math.abs(p-m[L]))}var G=new Set,oe=new Set;function fe(ie){_e(ie,1),ie.m(a,u),s.set(ie.key,ie),u=ie.first,f--}for(;d&&f;){var re=w[f-1],ce=t[d-1],ue=re.key,pe=ce.key;re===ce?(u=re.first,d--,f--):C.has(pe)?!s.has(ue)||G.has(ue)?fe(re):oe.has(pe)?d--:k.get(ue)>k.get(pe)?(oe.add(ue),fe(re)):(G.add(pe),d--):(l(ce,s),d--)}for(;d--;){var De=t[d];C.has(De.key)||l(De,s)}for(;f;)fe(w[f-1]);return w}function wg(t,n){for(var e={},i={},r={$$scope:1},o=t.length;o--;){var s=t[o],a=n[o];if(a){for(var l in s)l in a||(i[l]=1);for(var c in a)r[c]||(e[c]=a[c],r[c]=1);t[o]=a}else for(var u in s)r[u]=1}for(var h in i)h in e||(e[h]=void 0);return e}function IS(t){return"object"===$n(t)&&null!==t?t:{}}function Xu(t,n,e){var i=t.$$.props[n];void 0!==i&&(t.$$.bound[i]=e,e(t.$$.ctx[i]))}function $t(t){t&&t.c()}function Nt(t,n,e,i){var r=t.$$,o=r.fragment,s=r.after_update;o&&o.m(n,e),i||_g(function(){var a,l=t.$$.on_mount.map(iQ).filter(Na);t.$$.on_destroy?(a=t.$$.on_destroy).push.apply(a,Ti(l)):Fo(l),t.$$.on_mount=[]}),s.forEach(_g)}function Rt(t,n){var e=t.$$;null!==e.fragment&&(Fo(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function ni(t,n,e,i,r,o,s){var a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1],l=cb;ub(t);var c=t.$$={fragment:null,ctx:[],props:o,update:an,not_equal:r,bound:rQ(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(l?l.$$.context:[])),callbacks:rQ(),dirty:a,skip_bound:!1,root:n.target||l.$$.root};s&&s(c.root);var u=!1;if(c.ctx=e?e(t,n.props||{},function(d,f){var p=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:f;return c.ctx&&r(c.ctx[d],c.ctx[d]=p)&&(!c.skip_bound&&c.bound[d]&&c.bound[d](p),u&&function T7e(t,n){-1===t.$$.dirty[0]&&(Tv.push(t),mQ(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<1&&void 0!==arguments[1]?arguments[1]:!!function M7e(t){try{if(typeof window<"u"&&void 0!==window.localStorage)return window.localStorage[t]}catch{}}("debug");if(n){var e=function I7e(t){for(var n=0,e=0;e1&&void 0!==arguments[1]?arguments[1]:{},e=n.delay,i=void 0===e?0:e,r=n.duration,o=void 0===r?400:r,s=n.easing,a=void 0===s?nQ:s,l=+getComputedStyle(t).opacity;return{delay:i,duration:o,easing:a,css:function(c){return"opacity: ".concat(c*l)}}}var L7e=mF.window;function O7e(t){Ni(t,"svelte-n7cvum",".svelte-n7cvum{box-sizing:border-box}.bg.svelte-n7cvum{position:fixed;z-index:1000;top:0;left:0;display:flex;flex-direction:column;justify-content:center;width:100vw;height:100vh;background:rgba(0, 0, 0, 0.66)}@supports (-webkit-touch-callout: none){}.wrap.svelte-n7cvum{position:relative;margin:2rem;max-height:100%}.window.svelte-n7cvum{position:relative;width:40rem;max-width:100%;max-height:100%;margin:2rem auto;color:black;border-radius:0.5rem;background:white}.content.svelte-n7cvum{position:relative;padding:1rem;max-height:calc(100vh - 4rem);overflow:auto}.close.svelte-n7cvum{display:block;box-sizing:border-box;position:absolute;z-index:1000;top:1rem;right:1rem;margin:0;padding:0;width:1.5rem;height:1.5rem;border:0;color:black;border-radius:1.5rem;background:white;box-shadow:0 0 0 1px black;transition:transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),\n background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);-webkit-appearance:none}.close.svelte-n7cvum:before,.close.svelte-n7cvum:after{content:'';display:block;box-sizing:border-box;position:absolute;top:50%;width:1rem;height:1px;background:black;transform-origin:center;transition:height 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),\n background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1)}.close.svelte-n7cvum:before{-webkit-transform:translate(0, -50%) rotate(45deg);-moz-transform:translate(0, -50%) rotate(45deg);transform:translate(0, -50%) rotate(45deg);left:0.25rem}.close.svelte-n7cvum:after{-webkit-transform:translate(0, -50%) rotate(-45deg);-moz-transform:translate(0, -50%) rotate(-45deg);transform:translate(0, -50%) rotate(-45deg);left:0.25rem}.close.svelte-n7cvum:hover{background:black}.close.svelte-n7cvum:hover:before,.close.svelte-n7cvum:hover:after{height:2px;background:white}.close.svelte-n7cvum:focus{border-color:#3399ff;box-shadow:0 0 0 2px #3399ff}.close.svelte-n7cvum:active{transform:scale(0.9)}.close.svelte-n7cvum:hover,.close.svelte-n7cvum:focus,.close.svelte-n7cvum:active{outline:none}")}function bQ(t){var n,e,i,r,o,s,a,l,c,u,h,d,f,p,m,w,C,k,E=t[1].closeButton&&_Q(t),L=t[2];return L&&(s=qh(L,{})),{c:function(){n=Be("div"),e=Be("div"),i=Be("div"),E&&E.c(),r=xt(),o=Be("div"),s&&$t(s.$$.fragment),ne(o,"class",a=Xo(t[1].classContent)+" svelte-n7cvum"),ne(o,"style",t[9]),en(o,"content",!t[0]),ne(i,"class",l=Xo(t[1].classWindow)+" svelte-n7cvum"),ne(i,"role","dialog"),ne(i,"aria-modal","true"),ne(i,"aria-label",c=t[1].ariaLabelledBy?null:t[1].ariaLabel||null),ne(i,"aria-labelledby",u=t[1].ariaLabelledBy||null),ne(i,"style",t[8]),en(i,"window",!t[0]),ne(e,"class",d=Xo(t[1].classWindowWrap)+" svelte-n7cvum"),ne(e,"style",t[7]),en(e,"wrap",!t[0]),ne(n,"id",f=t[1].id),ne(n,"class",p=Xo(t[1].classBg)+" svelte-n7cvum"),ne(n,"style",t[6]),en(n,"bg",!t[0])},m:function(B,G){nt(B,n,G),Ie(n,e),Ie(e,i),E&&E.m(i,null),Ie(i,r),Ie(i,o),s&&Nt(s,o,null),t[50](i),t[51](e),t[52](n),w=!0,C||(k=[rn(i,"introstart",function(){Na(t[13])&&t[13].apply(this,arguments)}),rn(i,"outrostart",function(){Na(t[14])&&t[14].apply(this,arguments)}),rn(i,"introend",function(){Na(t[15])&&t[15].apply(this,arguments)}),rn(i,"outroend",function(){Na(t[16])&&t[16].apply(this,arguments)}),rn(n,"mousedown",t[20]),rn(n,"mouseup",t[21])],C=!0)},p:function(B,G){if((t=B)[1].closeButton?E?(E.p(t,G),2&G[0]&&_e(E,1)):((E=_Q(t)).c(),_e(E,1),E.m(i,r)):E&&(cn(),Ee(E,1,1,function(){E=null}),un()),L!==(L=t[2])){if(s){cn();var oe=s;Ee(oe.$$.fragment,1,0,function(){Rt(oe,1)}),un()}L?($t((s=qh(L,{})).$$.fragment),_e(s.$$.fragment,1),Nt(s,o,null)):s=null}(!w||2&G[0]&&a!==(a=Xo(t[1].classContent)+" svelte-n7cvum"))&&ne(o,"class",a),(!w||512&G[0])&&ne(o,"style",t[9]),(!w||3&G[0])&&en(o,"content",!t[0]),(!w||2&G[0]&&l!==(l=Xo(t[1].classWindow)+" svelte-n7cvum"))&&ne(i,"class",l),(!w||2&G[0]&&c!==(c=t[1].ariaLabelledBy?null:t[1].ariaLabel||null))&&ne(i,"aria-label",c),(!w||2&G[0]&&u!==(u=t[1].ariaLabelledBy||null))&&ne(i,"aria-labelledby",u),(!w||256&G[0])&&ne(i,"style",t[8]),(!w||3&G[0])&&en(i,"window",!t[0]),(!w||2&G[0]&&d!==(d=Xo(t[1].classWindowWrap)+" svelte-n7cvum"))&&ne(e,"class",d),(!w||128&G[0])&&ne(e,"style",t[7]),(!w||3&G[0])&&en(e,"wrap",!t[0]),(!w||2&G[0]&&f!==(f=t[1].id))&&ne(n,"id",f),(!w||2&G[0]&&p!==(p=Xo(t[1].classBg)+" svelte-n7cvum"))&&ne(n,"class",p),(!w||64&G[0])&&ne(n,"style",t[6]),(!w||3&G[0])&&en(n,"bg",!t[0])},i:function(B){w||(_e(E),s&&_e(s.$$.fragment,B),_g(function(){h||(h=ES(i,t[12],t[1].transitionWindowProps,!0)),h.run(1)}),_g(function(){m||(m=ES(n,t[11],t[1].transitionBgProps,!0)),m.run(1)}),w=!0)},o:function(B){Ee(E),s&&Ee(s.$$.fragment,B),h||(h=ES(i,t[12],t[1].transitionWindowProps,!1)),h.run(0),m||(m=ES(n,t[11],t[1].transitionBgProps,!1)),m.run(0),w=!1},d:function(B){B&&tt(n),E&&E.d(),s&&Rt(s),t[50](null),B&&h&&h.end(),t[51](null),t[52](null),B&&m&&m.end(),C=!1,Fo(k)}}}function _Q(t){var n,e,i,r,o,s=[R7e,N7e],a=[];function l(c,u){return 2&u[0]&&(n=null),null==n&&(n=!!c[17](c[1].closeButton)),n?0:1}return e=l(t,[-1,-1,-1]),i=a[e]=s[e](t),{c:function(){i.c(),r=Wr()},m:function(c,u){a[e].m(c,u),nt(c,r,u),o=!0},p:function(c,u){var h=e;(e=l(c,u))===h?a[e].p(c,u):(cn(),Ee(a[h],1,1,function(){a[h]=null}),un(),(i=a[e])?i.p(c,u):(i=a[e]=s[e](c)).c(),_e(i,1),i.m(r.parentNode,r))},i:function(c){o||(_e(i),o=!0)},o:function(c){Ee(i),o=!1},d:function(c){a[e].d(c),c&&tt(r)}}}function N7e(t){var n,e,i,r;return{c:function(){ne(n=Be("button"),"class",e=Xo(t[1].classCloseButton)+" svelte-n7cvum"),ne(n,"aria-label","Close modal"),ne(n,"style",t[10]),ne(n,"type","button"),en(n,"close",!t[0])},m:function(o,s){nt(o,n,s),i||(r=rn(n,"click",t[18]),i=!0)},p:function(o,s){2&s[0]&&e!==(e=Xo(o[1].classCloseButton)+" svelte-n7cvum")&&ne(n,"class",e),1024&s[0]&&ne(n,"style",o[10]),3&s[0]&&en(n,"close",!o[0])},i:an,o:an,d:function(o){o&&tt(n),i=!1,r()}}}function R7e(t){var n,e,i,r=t[1].closeButton;function o(s){return{props:{onClose:s[18]}}}return r&&(n=qh(r,o(t))),{c:function(){n&&$t(n.$$.fragment),e=Wr()},m:function(s,a){n&&Nt(n,s,a),nt(s,e,a),i=!0},p:function(s,a){if(r!==(r=s[1].closeButton)){if(n){cn();var l=n;Ee(l.$$.fragment,1,0,function(){Rt(l,1)}),un()}r?($t((n=qh(r,o(s))).$$.fragment),_e(n.$$.fragment,1),Nt(n,e.parentNode,e)):n=null}},i:function(s){i||(n&&_e(n.$$.fragment,s),i=!0)},o:function(s){n&&Ee(n.$$.fragment,s),i=!1},d:function(s){s&&tt(e),n&&Rt(n,s)}}}function $7e(t){var n,e,i,r,o=t[2]&&bQ(t),s=t[49].default,a=Gs(s,t,t[48],null);return{c:function(){o&&o.c(),n=xt(),a&&a.c()},m:function(l,c){o&&o.m(l,c),nt(l,n,c),a&&a.m(l,c),e=!0,i||(r=rn(L7e,"keydown",t[19]),i=!0)},p:function(l,c){l[2]?o?(o.p(l,c),4&c[0]&&_e(o,1)):((o=bQ(l)).c(),_e(o,1),o.m(n.parentNode,n)):o&&(cn(),Ee(o,1,1,function(){o=null}),un()),a&&a.p&&(!e||131072&c[1])&&Xs(a,s,l,l[48],e?qs(s,l[48],c,null):Ys(l[48]),null)},i:function(l){e||(_e(o),_e(a,l),e=!0)},o:function(l){Ee(o),Ee(a,l),e=!1},d:function(l){o&&o.d(l),l&&tt(n),a&&a.d(l),i=!1,r()}}}function wQ(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e){return new t(_t(_t({},e),{},{props:_t(_t({},n),e.props)}))}}function P7e(t,n,e){var i,r,o,s,a,l,c,u,h,d,f,p,m,w,C,k=n.$$slots,E=void 0===k?{}:k,L=n.$$scope,B=fQ(),oe=n.isTabbable,fe=void 0===oe?function(ut){return ut.tabIndex>=0&&!ut.hidden&&!ut.disabled&&"none"!==ut.style.display&&"hidden"!==ut.type&&Boolean(ut.offsetWidth||ut.offsetHeight||ut.getClientRects().length)}:oe,re=n.show,ce=void 0===re?null:re,ue=n.id,pe=void 0===ue?null:ue,De=n.key,ie=void 0===De?"simple-modal":De,ge=n.ariaLabel,we=void 0===ge?null:ge,le=n.ariaLabelledBy,Fe=void 0===le?null:le,z=n.closeButton,Q=void 0===z||z,Z=n.closeOnEsc,me=void 0===Z||Z,ae=n.closeOnOuterClick,Te=void 0===ae||ae,Oe=n.styleBg,Ze=void 0===Oe?{}:Oe,Ve=n.styleWindowWrap,wt=void 0===Ve?{}:Ve,ct=n.styleWindow,Ct=void 0===ct?{}:ct,se=n.styleContent,Se=void 0===se?{}:se,ke=n.styleCloseButton,Qe=void 0===ke?{}:ke,gt=n.classBg,rt=void 0===gt?null:gt,zt=n.classWindowWrap,Qt=void 0===zt?null:zt,Pn=n.classWindow,Mi=void 0===Pn?null:Pn,Sn=n.classContent,nr=void 0===Sn?null:Sn,On=n.classCloseButton,ro=void 0===On?null:On,uo=n.unstyled,qr=void 0!==uo&&uo,oo=n.setContext,er=void 0===oo?pQ:oo,vo=n.transitionBg,es=void 0===vo?F7e:vo,Zn=n.transitionBgProps,Ut=void 0===Zn?{duration:250}:Zn,Ii=n.transitionWindow,ir=void 0===Ii?es:Ii,Xr=n.transitionWindowProps,Ho=void 0===Xr?Ut:Xr,gs=n.disableFocusTrap,Pt=void 0!==gs&&gs,ei={id:pe,ariaLabel:we,ariaLabelledBy:Fe,closeButton:Q,closeOnEsc:me,closeOnOuterClick:Te,styleBg:Ze,styleWindowWrap:wt,styleWindow:Ct,styleContent:Se,styleCloseButton:Qe,classBg:rt,classWindowWrap:Qt,classWindow:Mi,classContent:nr,classCloseButton:ro,transitionBg:es,transitionBgProps:Ut,transitionWindow:ir,transitionWindowProps:Ho,disableFocusTrap:Pt,isTabbable:fe,unstyled:qr},Ai=_t({},ei),Vi=null,Zr=function(ut){return ut?Object.keys(ut).reduce(function(Wn,Si){return"".concat(Wn,"; ").concat((Li=Si,Li.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()),": ").concat(ut[Si]);var Li},""):""},yo=function(ut){return!!(ut&&ut.constructor&&ut.call&&ut.apply)},Mo=function(){e(6,a=Zr(Object.assign({},{width:window.innerWidth,height:window.innerHeight},Ai.styleBg))),e(7,l=Zr(Ai.styleWindowWrap)),e(8,c=Zr(Ai.styleWindow)),e(9,u=Zr(Ai.styleContent)),e(10,h=Zr(Ai.styleCloseButton)),e(11,d=Ai.transitionBg),e(12,f=Ai.transitionWindow)},da=function(){},Vr=da,fa=da,ll=da,cl=da,Hc=function(ut){var Si=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Li=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e(2,Vi=wQ(ut,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})),e(1,Ai=_t(_t({},ei),Si)),Mo(),lt(),e(13,Vr=function(Fi){Li.onOpen&&Li.onOpen(Fi),B("open"),B("opening")}),e(14,fa=function(Fi){Li.onClose&&Li.onClose(Fi),B("close"),B("closing")}),e(15,ll=function(Fi){Li.onOpened&&Li.onOpened(Fi),B("opened")}),e(16,cl=function(Fi){Li.onClosed&&Li.onClosed(Fi),B("closed")})},Ue=function(){var ut=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Vi&&(e(14,fa=ut.onClose||fa),e(16,cl=ut.onClosed||cl),e(2,Vi=null),ft())},lt=function(){s=window.scrollY,p=document.body.style.position,m=document.body.style.overflow,w=document.body.style.width,document.body.style.position="fixed",document.body.style.top="-".concat(s,"px"),document.body.style.overflow="hidden",document.body.style.width="100%"},ft=function(){document.body.style.position=p||"",document.body.style.top="",document.body.style.overflow=m||"",document.body.style.width=w||"",window.scrollTo({top:s,left:0,behavior:"instant"})};er(ie,{open:Hc,close:Ue});var Mt=!1;return Gu(function(){Mt&&Ue()}),Zc(function(){e(47,Mt=!0)}),t.$$set=function(ut){"isTabbable"in ut&&e(22,fe=ut.isTabbable),"show"in ut&&e(23,ce=ut.show),"id"in ut&&e(24,pe=ut.id),"key"in ut&&e(25,ie=ut.key),"ariaLabel"in ut&&e(26,we=ut.ariaLabel),"ariaLabelledBy"in ut&&e(27,Fe=ut.ariaLabelledBy),"closeButton"in ut&&e(28,Q=ut.closeButton),"closeOnEsc"in ut&&e(29,me=ut.closeOnEsc),"closeOnOuterClick"in ut&&e(30,Te=ut.closeOnOuterClick),"styleBg"in ut&&e(31,Ze=ut.styleBg),"styleWindowWrap"in ut&&e(32,wt=ut.styleWindowWrap),"styleWindow"in ut&&e(33,Ct=ut.styleWindow),"styleContent"in ut&&e(34,Se=ut.styleContent),"styleCloseButton"in ut&&e(35,Qe=ut.styleCloseButton),"classBg"in ut&&e(36,rt=ut.classBg),"classWindowWrap"in ut&&e(37,Qt=ut.classWindowWrap),"classWindow"in ut&&e(38,Mi=ut.classWindow),"classContent"in ut&&e(39,nr=ut.classContent),"classCloseButton"in ut&&e(40,ro=ut.classCloseButton),"unstyled"in ut&&e(0,qr=ut.unstyled),"setContext"in ut&&e(41,er=ut.setContext),"transitionBg"in ut&&e(42,es=ut.transitionBg),"transitionBgProps"in ut&&e(43,Ut=ut.transitionBgProps),"transitionWindow"in ut&&e(44,ir=ut.transitionWindow),"transitionWindowProps"in ut&&e(45,Ho=ut.transitionWindowProps),"disableFocusTrap"in ut&&e(46,Pt=ut.disableFocusTrap),"$$scope"in ut&&e(48,L=ut.$$scope)},t.$$.update=function(){8388608&t.$$.dirty[0]|65536&t.$$.dirty[1]&&Mt&&(yo(ce)?Hc(ce):Ue())},[qr,Ai,Vi,i,r,o,a,l,c,u,h,d,f,Vr,fa,ll,cl,yo,Ue,function(ut){if(Ai.closeOnEsc&&Vi&&"Escape"===ut.key&&(ut.preventDefault(),Ue()),Vi&&"Tab"===ut.key&&!Ai.disableFocusTrap){var Wn=o.querySelectorAll("*"),Si=Array.from(Wn).filter(Ai.isTabbable).sort(function(Fi,Yr){return Fi.tabIndex-Yr.tabIndex}),Li=Si.indexOf(document.activeElement);-1===Li&&ut.shiftKey&&(Li=0),Li+=Si.length+(ut.shiftKey?-1:1),Si[Li%=Si.length].focus(),ut.preventDefault()}},function(ut){!Ai.closeOnOuterClick||ut.target!==i&&ut.target!==r||(C=ut.target)},function(ut){Ai.closeOnOuterClick&&ut.target===C&&(ut.preventDefault(),Ue())},fe,ce,pe,ie,we,Fe,Q,me,Te,Ze,wt,Ct,Se,Qe,rt,Qt,Mi,nr,ro,er,es,Ut,ir,Ho,Pt,Mt,L,E,function(ut){dr[ut?"unshift":"push"](function(){e(5,o=ut)})},function(ut){dr[ut?"unshift":"push"](function(){e(4,r=ut)})},function(ut){dr[ut?"unshift":"push"](function(){e(3,i=ut)})}]}var Za,To,Yu,Xh,Ku,eu,xQ=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,P7e,$7e,Os,{isTabbable:22,show:23,id:24,key:25,ariaLabel:26,ariaLabelledBy:27,closeButton:28,closeOnEsc:29,closeOnOuterClick:30,styleBg:31,styleWindowWrap:32,styleWindow:33,styleContent:34,styleCloseButton:35,classBg:36,classWindowWrap:37,classWindow:38,classContent:39,classCloseButton:40,unstyled:0,setContext:41,transitionBg:42,transitionBgProps:43,transitionWindow:44,transitionWindowProps:45,disableFocusTrap:46},O7e,[-1,-1,-1]),r}return Xe(e)}();(function(t){t.text="text",t.tree="tree",t.table="table"})(Za||(Za={})),function(t){t.after="after",t.inside="inside",t.key="key",t.value="value",t.multi="multi"}(To||(To={})),function(t){t.after="after",t.key="key",t.value="value",t.inside="inside"}(Yu||(Yu={})),function(t){t.info="info",t.warning="warning",t.error="error"}(Xh||(Xh={})),function(t){t.key="key",t.value="value"}(Ku||(Ku={})),function(t){t.asc="asc",t.desc="desc"}(eu||(eu={}));var xg=[{start:0,end:100}],Cg={closeButton:!1,classBg:"jse-modal-bg",classWindow:"jse-modal-window",classWindowWrap:"jse-modal-window-wrap",classContent:"jse-modal-content"},j7e=_t(_t({},Cg),{},{classWindow:"jse-modal-window jse-modal-window-sort"}),B7e=_t(_t({},Cg),{},{classWindow:"jse-modal-window jse-modal-window-transform"}),CQ=_t(_t({},Cg),{},{classWindow:"jse-modal-window jse-modal-window-jsoneditor"}),yF="Insert or paste contents, enter [ insert a new array, enter { to insert a new object, or start typing to insert a new value",bF="Open context menu (Click here, right click on the selection, or use the context menu button or Ctrl+Q)",H7e="NO",_F="SELF",wF="NEXT_INSIDE",V7e=(rc(sF={},eu.asc,"ascending"),rc(sF,eu.desc,"descending"),sF),z7e=0;function hb(){return++z7e}function Uf(t){return(Uf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function Ao(t){return Array.isArray(t)}function Yo(t){return null!==t&&"object"===Uf(t)&&t.constructor===Object}function SQ(t){return!(!t||"object"!==Uf(t))&&"add"===t.op}function kQ(t){return!(!t||"object"!==Uf(t))&&"remove"===t.op}function xF(t){return!(!t||"object"!==Uf(t))&&"replace"===t.op}function CF(t){return!(!t||"object"!==Uf(t))&&"copy"===t.op}function Ev(t){return!(!t||"object"!==Uf(t))&&"move"===t.op}function SF(t){return(SF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function U7e(t,n){return t===n}function DQ(t){return t.slice(0,t.length-1)}function TQ(t){return"object"===SF(t)&&null!==t}function db(t){return(db="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function AQ(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,i)}return e}function W7e(t,n,e){return r=function(o,s){if("object"!==db(o)||null===o)return o;var a=o[Symbol.toPrimitive];if(void 0!==a){var l=a.call(o,"string");if("object"!==db(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(o)}(n),(n="symbol"===db(r)?r:String(r))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t;var r}function kF(t){if(Ao(t)){var n=t.slice();return Object.getOwnPropertySymbols(t).forEach(function(i){n[i]=t[i]}),n}if(Yo(t)){var e=function(i){for(var r=1;r3&&void 0!==arguments[3]&&arguments[3];if(0===n.length)return e;var r=n[0],o=Ju(t?t[r]:void 0,n.slice(1),e,i);if(Yo(t)||Ao(t))return DF(t,r,o);if(i){var s=G7e.test(r)?[]:{};return s[r]=o,s}throw new Error("Path does not exist")}var G7e=/^\d+$/;function EQ(t,n,e){if(0===n.length)return e(t);if(!TQ(t))throw new Error("Path doesn't exist");var i=n[0];return DF(t,i,EQ(t[i],n.slice(1),e))}function TF(t,n){if(0===n.length)return t;if(!TQ(t))throw new Error("Path does not exist");if(1===n.length){var e=n[0];if(e in t){var i=kF(t);return Ao(i)&&i.splice(parseInt(e),1),Yo(i)&&delete i[e],i}return t}var r=n[0];return DF(t,r,TF(t[r],n.slice(1)))}function AF(t,n,e){var i=n.slice(0,n.length-1),r=n[n.length-1];return EQ(t,i,function(o){if(!Array.isArray(o))throw new TypeError("Array expected at path "+JSON.stringify(i));var s=kF(o);return s.splice(parseInt(r),0,e),s})}function tu(t,n){return void 0!==t&&(0===n.length||null!==t&&tu(t[n[0]],n.slice(1)))}function Qu(t){var n=t.split("/");return n.shift(),n.map(function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")})}function An(t){return t.map(MQ).join("")}function MQ(t){return"/"+String(t).replace(/~/g,"~0").replace(/\//g,"~1")}function EF(t,n){return t+MQ(n)}function Mv(t,n){return t.startsWith(n)&&(t.length===n.length||"/"===t[n.length])}function Zu(t,n,e){for(var i=t,r=0;rt.length)&&(n=t.length);for(var e=0,i=new Array(n);e2&&void 0!==arguments[2]?arguments[2]:U7e;if(p.length=0?fe=function(){var ce="",ue=!0;"-"==t[s]&&(ce+=d()),ce+="0"==t[s]?d():m(),"."==t[s]&&(ce+=d()+m(),ue=!1),"e"!=t[s]&&"E"!=t[s]||(ce+=d(),"+"!=t[s]&&"-"!=t[s]||(ce+=d()),ce+=m(),ue=!1);var pe=+ce;return a&&ue&&(pe>Number.MAX_SAFE_INTEGER||pe="a"&&fe<="f"?oe+=fe.charCodeAt()-n9e+10:fe>="0"&&fe<="9"?oe+=+fe:L()}return String.fromCharCode(oe)}function m(){for(var G="";t[s]>="0"&&t[s]<="9";)G+=d();if(G.length)return G;B(),E()}function w(G,oe){C(G,oe,k())}function C(G,oe,fe){i[G]=i[G]||{},i[G][oe]=fe}function k(){return{line:r,column:o,pos:s}}function E(){throw new SyntaxError("Unexpected token "+t[s]+" in JSON at position "+s)}function L(){f(),E()}function B(){if(s>=t.length)throw new SyntaxError("Unexpected end of JSON input")}},FS.stringify=function(t,n,e){if(LS(t)){var i,r,o=0,s="object"==$n(e)?e.space:e;switch($n(s)){case"number":var a=s>10?10:s<0?0:Math.floor(s);s=a&&k(a," "),i=a,r=a;break;case"string":s=s.slice(0,10),i=0,r=0;for(var l=0;l=0}var r9e=/"|\\/g,o9e=/[\b]/g,s9e=/\f/g,a9e=/\n/g,l9e=/\r/g,c9e=/\t/g;function OS(t){return'"'+(t=t.replace(r9e,"\\$&").replace(s9e,"\\f").replace(o9e,"\\b").replace(a9e,"\\n").replace(l9e,"\\r").replace(c9e,"\\t"))+'"'}var u9e=/~/g,h9e=/\//g;function FF(t){return t.replace(u9e,"~0").replace(h9e,"~1")}function LF(t){return(LF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function OF(t){var n="function"==typeof Map?new Map:void 0;return OF=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return NF(e,arguments,gb(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),pb(r,e)},OF(t)}function NF(t,n,e){return(NF=$Q()?Reflect.construct.bind():function(i,r,o){var s=[null];s.push.apply(s,r);var a=new(Function.bind.apply(i,s));return o&&pb(a,o.prototype),a}).apply(null,arguments)}function $Q(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function pb(t,n){return(pb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,i){return e.__proto__=i,e})(t,n)}function gb(t){return(gb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}var Wf=function(t){!function(l,c){if("function"!=typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(c&&c.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),c&&pb(l,c)}(a,OF(Error));var n,e,i,s=(n=a,e=$Q(),function(){var l,c=gb(n);if(e){var u=gb(this).constructor;l=Reflect.construct(c,arguments,u)}else l=c.apply(this,arguments);return function d9e(t,n){if(n&&("object"===LF(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}(this,l)});function a(l,c){var u;return function(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}(this,a),(u=s.call(this,l+" at position "+c)).position=c,u}return i=a,Object.defineProperty(i,"prototype",{writable:!1}),i}();function NS(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function RS(t){return t>=48&&t<=57}function f9e(t){return t>=32&&t<=1114111}var p9e=/^[,:[\]{}()\n]$/;function PQ(t){return g9e.test(t)||t&&PS(t.charCodeAt(0))}var g9e=/^[[{\w-]$/;function m9e(t){return 10===t||13===t||9===t||8===t||12===t}function $S(t){return 32===t||10===t||9===t||13===t}function v9e(t){return 160===t||t>=8192&&t<=8202||8239===t||8287===t||12288===t}function PS(t){return jQ(t)||RF(t)}function jQ(t){return 34===t||8220===t||8221===t}function RF(t){return 39===t||8216===t||8217===t||96===t||180===t}function mb(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t.lastIndexOf(n);return-1!==i?t.substring(0,i)+(e?"":t.substring(i+1)):t}function Sg(t,n){var e=t.length;if(!$S(t.charCodeAt(e-1)))return t+n;for(;$S(t.charCodeAt(e-1));)e--;return t.substring(0,e)+n+t.substring(e)}function y9e(t,n,e){return t.substring(0,n)+t.substring(n+e)}var b9e={"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},_9e={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function Yh(t){var n=0,e="";r()||function(){throw new Wf("Unexpected end of json string",t.length)}();var i=l(44);if(i&&o(),PQ(t[n])&&/[,\n][ \t\r]*$/.test(e)?(i||(e=Sg(e,",")),function(){for(var E=!0,L=!0;L;)E?E=!1:l(44)||(e=Sg(e,",")),L=r();L||(e=mb(e,",")),e="[\n".concat(e,"\n]")}()):i&&(e=mb(e,",")),n>=t.length)return e;function r(){o();var E=function(){if(123===t.charCodeAt(n)){e+="{",n++,o();for(var L=!0;n=49&&B<=57)for(n++;RS(t.charCodeAt(n));)n++;if(46===t.charCodeAt(n))for(n++,f(L);RS(t.charCodeAt(n));)n++;if(101===t.charCodeAt(n)||69===t.charCodeAt(n))for(n++,45!==t.charCodeAt(n)&&43!==t.charCodeAt(n)||n++,f(L);RS(t.charCodeAt(n));)n++;return n>L&&(e+=t.slice(L,n),!0)}()||h("true","true")||h("false","false")||h("null","null")||h("True","true")||h("False","false")||h("None","null")||d();return o(),E}function o(){var E=n,L=s();do{(L=a())&&(L=s())}while(L);return n>E}function s(){for(var E,L="";(E=$S(t.charCodeAt(n)))||v9e(t.charCodeAt(n));)L+=E?t[n]:" ",n++;return L.length>0&&(e+=L,!0)}function a(){if(47===t.charCodeAt(n)&&42===t.charCodeAt(n+1)){for(;nL){if(40===t.charCodeAt(n))return n++,r(),41===t.charCodeAt(n)&&(n++,59===t.charCodeAt(n)&&n++),!0;for(;$S(t.charCodeAt(n-1))&&n>0;)n--;var B=t.slice(L,n);return e+=JSON.stringify(B),!0}}function f(E){if(!RS(t.charCodeAt(n))){var L=t.slice(E,n);throw new Wf("Invalid number '".concat(L,"', expecting a digit ").concat(t[n]?"but got '".concat(t[n],"'"):"but reached end of input"),2)}}function p(E){throw new Wf("Invalid character "+JSON.stringify(E),n)}function m(){throw new Wf("Object key expected",n)}function w(){throw new Wf("Object value expected",n)}function C(){throw new Wf("Colon expected",n)}function k(E){for(var L=E+2;/\w/.test(t[L]);)L++;var B=t.slice(E,L);throw new Wf('Invalid unicode character "'.concat(B,'"'),n)}!function(){throw new Wf("Unexpected character "+JSON.stringify(t[n]),n)}()}function w9e(t,n){return"*"===t[n]&&"/"===t[n+1]}function la(t){return parseInt(t,10)}function $F(t){return x9e.test(t)}var x9e=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function Ko(t){return"object"===$n(t)&&null!==t&&t.constructor===Object}function ss(t){return"object"===$n(t)&&null!==t&&(t.constructor===Object||t.constructor===Array)}function PF(t){if("number"==typeof t)return t>9466848e5&&isFinite(t)&&Math.floor(t)===t&&!isNaN(new Date(t).valueOf());if("bigint"==typeof t)return PF(Number(t));try{var n=t&&t.valueOf();if(n!==t)return PF(n)}catch{return!1}return!1}function BQ(t){var n=window.document.createElement("div");n.style.color=t;var e=n.style.color;return""!==e?e.replace(/\s+/g,"").toLowerCase():null}function jF(t,n){if("number"==typeof t||"string"==typeof t||"boolean"==typeof t||void 0===t)return $n(t);if("bigint"==typeof t)return"number";if(null===t)return"null";if(Array.isArray(t))return"array";if(Ko(t))return"object";var e=n.stringify(t);return e&&$F(e)?"number":"true"===e||"false"===e?"boolean":"null"===e?"null":"unknown"}var C9e=/^https?:\/\/\S+$/;function jS(t){return"string"==typeof t&&C9e.test(t)}function Iv(t,n){if(""===t)return"";var e=t.trim();return"null"===e?null:"true"===e||"false"!==e&&($F(e)?n.parse(e):t)}var S9e=/^-?[0-9]+$/,VQ="object"==(typeof global>"u"?"undefined":$n(global))&&global&&global.Object===Object&&global,k9e="object"==(typeof self>"u"?"undefined":$n(self))&&self&&self.Object===Object&&self,ja=VQ||k9e||Function("return this")(),wl=ja.Symbol,zQ=Object.prototype,D9e=zQ.hasOwnProperty,T9e=zQ.toString,vb=wl?wl.toStringTag:void 0,A9e=Object.prototype.toString,UQ=wl?wl.toStringTag:void 0;function Hl(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":UQ&&UQ in Object(t)?function(n){var e=D9e.call(n,vb),i=n[vb];try{n[vb]=void 0;var r=!0}catch{}var o=T9e.call(n);return r&&(e?n[vb]=i:delete n[vb]),o}(t):A9e.call(t)}function ks(t){return null!=t&&"object"==$n(t)}function sc(t){return"symbol"==$n(t)||ks(t)&&"[object Symbol]"==Hl(t)}function WQ(t){return"number"==typeof t?t:sc(t)?NaN:+t}function ps(t,n){for(var e=-1,i=null==t?0:t.length,r=Array(i);++e0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var aZ=sZ(tZ),J9e=/\{\n\/\* \[wrapped with (.+)\] \*/,Q9e=/,? & /,Z9e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function WS(t){return function(){return t}}var eHe=function(){try{var t=Dg(Object,"defineProperty");return t({},"",{}),t}catch{}}(),GS=eHe,tHe=GS?function(t,n){return GS(t,"toString",{configurable:!0,enumerable:!1,value:WS(n),writable:!0})}:xl,VF=sZ(tHe);function iu(t,n){for(var e=-1,i=null==t?0:t.length;++e-1}var nHe=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function cZ(t,n,e){var o,i=n+"";return VF(t,function(r,o){var s=o.length;if(!s)return r;var a=s-1;return o[a]=(s>1?"& ":"")+o[a],o=o.join(s>2?", ":" "),r.replace(Z9e,"{\n/* [wrapped with "+o+"] */\n")}(i,function(r,o){return iu(nHe,function(s){var a="_."+s[0];o&s[1]&&!XS(r,a)&&r.push(a)}),r.sort()}((o=i.match(J9e))?o[1].split(Q9e):[],e)))}function uZ(t,n,e,i,r,o,s,a,l,c){var u=8&n;n|=u?32:64,4&(n&=~(u?64:32))||(n&=-4);var h=[t,n,r,u?o:void 0,u?s:void 0,u?void 0:o,u?void 0:s,a,l,c],d=e.apply(void 0,h);return HF(t)&&aZ(d,h),d.placeholder=i,cZ(d,t,n)}function Nv(t){return t.placeholder}var iHe=/^(?:0|[1-9]\d*)$/;function Zd(t,n){var e=$n(t);return!!(n=n??9007199254740991)&&("number"==e||"symbol"!=e&&iHe.test(t))&&t>-1&&t%1==0&&t1&&k.reverse(),u&&l-1&&t%1==0&&t<=9007199254740991}function Vl(t){return null!=t&&wb(t.length)&&!Jh(t)}function zl(t,n,e){if(!as(e))return!1;var i=$n(n);return!!("number"==i?Vl(e)&&Zd(n,e.length):"string"==i&&n in e)&&ru(e[n],t)}function Rv(t){return Rr(function(n,e){var i=-1,r=e.length,o=r>1?e[r-1]:void 0,s=r>2?e[2]:void 0;for(o=t.length>3&&"function"==typeof o?(r--,o):void 0,s&&zl(e[0],e[1],s)&&(o=r<3?void 0:o,r=1),n=Object(n);++i"u"?"undefined":$n(exports))&&exports&&!exports.nodeType&&exports,vZ=mZ&&"object"==(typeof module>"u"?"undefined":$n(module))&&module&&!module.nodeType&&module,yZ=vZ&&vZ.exports===mZ?ja.Buffer:void 0,nf=(yZ?yZ.isBuffer:void 0)||KS,ls={};function Lc(t){return function(n){return t(n)}}ls["[object Float32Array]"]=ls["[object Float64Array]"]=ls["[object Int8Array]"]=ls["[object Int16Array]"]=ls["[object Int32Array]"]=ls["[object Uint8Array]"]=ls["[object Uint8ClampedArray]"]=ls["[object Uint16Array]"]=ls["[object Uint32Array]"]=!0,ls["[object Arguments]"]=ls["[object Array]"]=ls["[object ArrayBuffer]"]=ls["[object Boolean]"]=ls["[object DataView]"]=ls["[object Date]"]=ls["[object Error]"]=ls["[object Function]"]=ls["[object Map]"]=ls["[object Number]"]=ls["[object Object]"]=ls["[object RegExp]"]=ls["[object Set]"]=ls["[object String]"]=ls["[object WeakMap]"]=!1;var bZ="object"==(typeof exports>"u"?"undefined":$n(exports))&&exports&&!exports.nodeType&&exports,Cb=bZ&&"object"==(typeof module>"u"?"undefined":$n(module))&&module&&!module.nodeType&&module,WF=Cb&&Cb.exports===bZ&&VQ.process,ou=function(){try{return Cb&&Cb.require&&Cb.require("util").types||WF&&WF.binding&&WF.binding("util")}catch{}}(),_Z=ou&&ou.isTypedArray,Tg=_Z?Lc(_Z):function(t){return ks(t)&&wb(t.length)&&!!ls[Hl(t)]},dHe=Object.prototype.hasOwnProperty;function wZ(t,n){var e=sr(t),i=!e&&qf(t),r=!e&&!i&&nf(t),o=!e&&!i&&!r&&Tg(t),s=e||i||r||o,a=s?UF(t.length,String):[],l=a.length;for(var c in t)!n&&!dHe.call(t,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Zd(c,l))||a.push(c);return a}function xZ(t,n){return function(e){return t(n(e))}}var fHe=xZ(Object.keys,Object),pHe=Object.prototype.hasOwnProperty;function GF(t){if(!xb(t))return fHe(t);var n=[];for(var e in Object(t))pHe.call(t,e)&&"constructor"!=e&&n.push(e);return n}function ca(t){return Vl(t)?wZ(t):GF(t)}var gHe=Object.prototype.hasOwnProperty,mHe=Rv(function(t,n){if(xb(n)||Vl(n))Qh(n,ca(n),t);else for(var e in n)gHe.call(n,e)&&_b(t,e,n[e])}),CZ=mHe,vHe=Object.prototype.hasOwnProperty;function Ul(t){return Vl(t)?wZ(t,!0):function yHe(t){if(!as(t))return function(r){var o=[];if(null!=r)for(var s in Object(r))o.push(s);return o}(t);var n=xb(t),e=[];for(var i in t)("constructor"!=i||!n&&vHe.call(t,i))&&e.push(i);return e}(t)}var bHe=Rv(function(t,n){Qh(n,Ul(n),t)}),JS=bHe,_He=Rv(function(t,n,e,i){Qh(n,Ul(n),t,i)}),$v=_He,wHe=Rv(function(t,n,e,i){Qh(n,ca(n),t,i)}),SZ=wHe,xHe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,CHe=/^\w*$/;function qF(t,n){if(sr(t))return!1;var e=$n(t);return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!sc(t))||CHe.test(t)||!xHe.test(t)||null!=n&&t in Object(n)}var Sb=Dg(Object,"create"),SHe=Object.prototype.hasOwnProperty,kHe=Object.prototype.hasOwnProperty;function Ag(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n-1},rf.prototype.set=function(t,n){var e=this.__data__,i=QS(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this};var kb=Dg(ja,"Map");function ZS(t,n){var i,r,e=t.__data__;return("string"==(r=$n(i=n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==i:null===i)?e["string"==typeof n?"string":"hash"]:e.map}function sf(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n0&&e(a)?n>1?el(a,n-1,e,i,r):Yf(r,a):i||(r[r.length]=a)}return r}function YF(t){return null!=t&&t.length?el(t,1):[]}function af(t){return VF(fZ(t,void 0,YF),t+"")}var TZ=af(XF),t2=xZ(Object.getPrototypeOf,Object),AZ=Function.prototype.toString,LHe=Object.prototype.hasOwnProperty,OHe=AZ.call(Object);function jv(t){if(!ks(t)||"[object Object]"!=Hl(t))return!1;var n=t2(t);if(null===n)return!0;var e=LHe.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&AZ.call(e)==OHe}function n2(t){if(!ks(t))return!1;var n=Hl(t);return"[object Error]"==n||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!jv(t)}var NHe=Rr(function(t,n){try{return Fc(t,void 0,n)}catch(e){return n2(e)?e:new Error(e)}}),KF=NHe;function JF(t,n){var e;if("function"!=typeof n)throw new TypeError("Expected a function");return t=mr(t),function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=void 0),e}}var QF=Rr(function(t,n,e){var i=1;if(e.length){var r=Gf(e,Nv(QF));i|=32}return ef(t,i,n,e,r)});QF.placeholder={};var ZF=QF,RHe=af(function(t,n){return iu(n,function(e){e=Zh(e),tf(t,e,ZF(t[e],t))}),t}),EZ=RHe,eL=Rr(function(t,n,e){var i=3;if(e.length){var r=Gf(e,Nv(eL));i|=32}return ef(n,i,t,e,r)});eL.placeholder={};var MZ=eL;function su(t,n,e){var i=-1,r=t.length;n<0&&(n=-n>r?0:r+n),(e=e>r?r:e)<0&&(e+=r),r=n>e?0:e-n>>>0,n>>>=0;for(var o=Array(r);++i=i?t:su(t,n,e)}var $He=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Bv(t){return $He.test(t)}var tL="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",nL="\\ud83c[\\udffb-\\udfff]",IZ="[^\\ud800-\\udfff]",FZ="(?:\\ud83c[\\udde6-\\uddff]){2}",LZ="[\\ud800-\\udbff][\\udc00-\\udfff]",OZ="(?:"+tL+"|"+nL+")?",jHe="[\\ufe0e\\ufe0f]?"+OZ+"(?:\\u200d(?:"+[IZ,FZ,LZ].join("|")+")[\\ufe0e\\ufe0f]?"+OZ+")*",BHe="(?:"+[IZ+tL+"?",tL,FZ,LZ,"[\\ud800-\\udfff]"].join("|")+")",HHe=RegExp(nL+"(?="+nL+")|"+BHe+jHe,"g");function th(t){return Bv(t)?function(n){return n.match(HHe)||[]}(t):function(n){return n.split("")}(t)}function NZ(t){return function(n){var e=Bv(n=_o(n))?th(n):void 0,i=e?e[0]:n.charAt(0),r=e?Kf(e,1).join(""):n.slice(1);return i[t]()+r}}var i2=NZ("toUpperCase");function iL(t){return i2(_o(t).toLowerCase())}function rL(t,n,e,i){var r=-1,o=null==t?0:t.length;for(i&&o&&(e=t[++r]);++r=n?t:n)),t}function YZ(t,n,e){return void 0===e&&(e=n,n=void 0),void 0!==e&&(e=(e=Ic(e))==e?e:0),void 0!==n&&(n=(n=Ic(n))==n?n:0),Mg(Ic(t),n,e)}function nh(t){var n=this.__data__=new rf(t);this.size=n.size}function KZ(t,n){return t&&Qh(n,ca(n),t)}nh.prototype.clear=function(){this.__data__=new rf,this.size=0},nh.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},nh.prototype.get=function(t){return this.__data__.get(t)},nh.prototype.has=function(t){return this.__data__.has(t)},nh.prototype.set=function(t,n){var e=this.__data__;if(e instanceof rf){var i=e.__data__;if(!kb||i.length<199)return i.push([t,n]),this.size=++e.size,this;e=this.__data__=new sf(i)}return e.set(t,n),this.size=e.size,this};var JZ="object"==(typeof exports>"u"?"undefined":$n(exports))&&exports&&!exports.nodeType&&exports,QZ=JZ&&"object"==(typeof module>"u"?"undefined":$n(module))&&module&&!module.nodeType&&module,ZZ=QZ&&QZ.exports===JZ?ja.Buffer:void 0,eee=ZZ?ZZ.allocUnsafe:void 0;function tee(t,n){if(n)return t.slice();var e=t.length,i=eee?eee(e):new t.constructor(e);return t.copy(i),i}function Jf(t,n){for(var e=-1,i=null==t?0:t.length,r=0,o=[];++ea))return!1;var c=o.get(t),u=o.get(n);if(c&&u)return c==n&&u==t;var h=-1,d=!0,f=2&e?new Fg:void 0;for(o.set(t,n),o.set(n,t);++h=n||L<0||h&&E-c>=o}function w(){var L,B,E=Ab();if(m(E))return C(E);a=setTimeout(w,(B=n-((L=E)-l),h?CVe(B,o-(L-c)):B))}function C(E){return a=void 0,d&&i?f(E):(i=r=void 0,s)}function k(){var E=Ab(),L=m(E);if(i=arguments,r=this,l=E,L){if(void 0===a)return function p(E){return c=E,a=setTimeout(w,n),u?f(E):s}(l);if(h)return clearTimeout(a),a=setTimeout(w,n),f(l)}return void 0===a&&(a=setTimeout(w,n)),s}return n=Ic(n)||0,as(e)&&(u=!!e.leading,o=(h="maxWait"in e)?xVe(Ic(e.maxWait)||0,n):o,d="trailing"in e?!!e.trailing:d),k.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=l=r=a=void 0},k.flush=function(){return void 0===a?s:C(Ab())},k}function Fee(t,n){return null==t||t!=t?n:t}var Lee=Object.prototype,SVe=Lee.hasOwnProperty,kVe=Rr(function(t,n){t=Object(t);var e=-1,i=n.length,r=i>2?n[2]:void 0;for(r&&zl(n[0],n[1],r)&&(i=1);++e=200&&(o=Db,s=!1,n=new Fg(n));e:for(;++r=0&&t.slice(e,r)==n}function Jee(t){return function(n){var i,r,o,e=ed(n);return"[object Map]"==e?wL(n):"[object Set]"==e?(i=n,r=-1,o=Array(i.size),i.forEach(function(s){o[++r]=[s,s]}),o):function(i,r){return ps(r,function(o){return[o,i[o]]})}(n,t(n))}}var g2=Jee(ca),m2=Jee(Ul),LVe=oL({"&":"&","<":"<",">":">",'"':""","'":"'"}),Qee=/[&<>"']/g,OVe=RegExp(Qee.source);function OL(t){return(t=_o(t))&&OVe.test(t)?t.replace(Qee,LVe):t}var Zee=/[\\^$.*+?()[\]{}|]/g,NVe=RegExp(Zee.source);function ete(t){return(t=_o(t))&&NVe.test(t)?t.replace(Zee,"\\$&"):t}function tte(t,n){for(var e=-1,i=null==t?0:t.length;++ec?0:c+a),(l=void 0===l||l>c?c:mr(l))<0&&(l+=c),l=a>l?0:NL(l);a-1?r[o?n[s]:s]:void 0}}var $Ve=Math.max;function RL(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=null==e?0:mr(e);return r<0&&(r=$Ve(i+r,0)),qS(t,ar(n),r)}var ate=ste(RL);function lte(t,n,e){var i;return e(t,function(r,o,s){if(n(r,o,s))return i=o,!1}),i}function cte(t,n){return lte(t,ar(n),td)}var PVe=Math.max,jVe=Math.min;function $L(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=i-1;return void 0!==e&&(r=mr(e),r=e<0?PVe(i+r,0):jVe(r,i-1)),qS(t,ar(n),r,!0)}var ute=ste($L);function hte(t,n){return lte(t,ar(n),LL)}function xa(t){return t&&t.length?t[0]:void 0}function dte(t,n){var e=-1,i=Vl(t)?Array(t.length):[];return Qf(t,function(r,o,s){i[++e]=n(r,o,s)}),i}function Wv(t,n){return(sr(t)?ps:dte)(t,ar(n))}function fte(t,n){return el(Wv(t,n),1)}function pte(t,n){return el(Wv(t,n),1/0)}function gte(t,n,e){return e=void 0===e?1:mr(e),el(Wv(t,n),e)}function mte(t){return null!=t&&t.length?el(t,1/0):[]}function vte(t,n){return null!=t&&t.length?el(t,n=void 0===n?1:mr(n)):[]}function yte(t){return ef(t,512)}var bte=lL("floor");function _te(t){return af(function(n){var e=n.length,i=e,r=nu.prototype.thru;for(t&&n.reverse();i--;){var o=n[i];if("function"!=typeof o)throw new TypeError("Expected a function");if(r&&!s&&"wrapper"==US(o))var s=new nu([],!0)}for(i=s?i:e;++in}function y2(t){return function(n,e){return"string"==typeof n&&"string"==typeof e||(n=Ic(n),e=Ic(e)),t(n,e)}}var Mte=y2(PL),Ite=y2(function(t,n){return t>=n}),VVe=Object.prototype.hasOwnProperty;function zVe(t,n){return null!=t&&VVe.call(t,n)}function Fte(t,n){return null!=t&&xee(t,n,zVe)}var UVe=Math.max,WVe=Math.min;function Lte(t,n,e){return n=Kh(n),void 0===e?(e=n,n=0):e=Kh(e),(i=t=Ic(t))>=WVe(r=n,o=e)&&i-1:!!r&&Ov(t,n,e)>-1}var qVe=Math.max;function Nte(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=null==e?0:mr(e);return r<0&&(r=qVe(i+r,0)),Ov(t,n,r)}function wr(t){return null!=t&&t.length?su(t,0,-1):[]}var XVe=Math.min;function BL(t,n,e){for(var i=e?FL:XS,r=t[0].length,o=t.length,s=o,a=Array(o),l=1/0,c=[];s--;){var u=t[s];s&&n&&(u=ps(u,Lc(n))),l=XVe(u.length,l),a[s]=!e&&(n||r>=120&&u.length>=120)?new Fg(s&&u):void 0}u=t[0];var h=-1,d=a[0];e:for(;++h=-9007199254740991&&t<=9007199254740991}function lne(t){return void 0===t}function cne(t){return ks(t)&&"[object WeakMap]"==ed(t)}function une(t){return ks(t)&&"[object WeakSet]"==Hl(t)}function hne(t){return ar("function"==typeof t?t:au(t,1))}var oze=Array.prototype.join;function dne(t,n){return null==t?"":oze.call(t,n)}var sze=Vv(function(t,n,e){return t+(e?"-":"")+n.toLowerCase()}),fne=sze,aze=c2(function(t,n,e){tf(t,e,n)}),pne=aze,lze=Math.max,cze=Math.min;function gne(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=i;return void 0!==e&&(r=(r=mr(e))<0?lze(i+r,0):cze(r,i-1)),n==n?function(o,s,a){for(var l=a+1;l--;)if(o[l]===s)return l;return l}(t,n,r):qS(t,lZ,r,!0)}var uze=Vv(function(t,n,e){return t+(e?" ":"")+n.toLowerCase()}),mne=uze,vne=NZ("toLowerCase");function UL(t,n){return t=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}}function Lne(t,n){var e=t.length;if(e)return Zd(n+=n<0?e:0,e)?t[n]:void 0}function One(t,n){return t&&t.length?Lne(t,mr(n)):void 0}function Nne(t){return t=mr(t),Rr(function(n){return Lne(n,t)})}function JL(t,n){return null==(t=zte(t,n=Xf(n,t)))||delete t[Zh(ii(n))]}function pze(t){return jv(t)?void 0:t}var gze=af(function(t,n){var e={};if(null==t)return e;var i=!1;n=ps(n,function(o){return o=Xf(o,t),i||(i=o.length>1),o}),Qh(t,dL(t),e),i&&(e=au(e,7,pze));for(var r=n.length;r--;)JL(e,n[r]);return e}),Rne=gze;function Lb(t,n,e,i){if(!as(t))return t;for(var r=-1,o=(n=Xf(n,t)).length,s=o-1,a=t;null!=a&&++rn||o&&s&&l&&!a&&!c||i&&s&&l||!e&&l||!r)return 1;if(!i&&!o&&!c&&t=p?m:m*("desc"==c[u]?-1:1)}return a.index-l.index}(o,s,e)});a--;)o[a]=o[a].value;return o}(dte(t,function(o,s,a){return{criteria:ps(n,function(c){return c(o)}),index:++i,value:o}}))}function Vne(t,n,e,i){return null==t?[]:(sr(n)||(n=null==n?[]:[n]),sr(e=i?void 0:e)||(e=null==e?[]:[e]),Hne(t,n,e))}function ZL(t){return af(function(n){return n=ps(n,Lc(ar)),Rr(function(e){var i=this;return t(n,function(r){return Fc(r,i,e)})})})}var zne=ZL(ps),vze=Math.min,yze=Rr(function(t,n){var e=(n=1==n.length&&sr(n[0])?ps(n[0],Lc(ar)):ps(el(n,1),Lc(ar))).length;return Rr(function(i){for(var r=-1,o=vze(i.length,e);++r9007199254740991)return e;do{n%2&&(e+=t),(n=bze(n/2))&&(t+=t)}while(n);return e}var _ze=kL("length"),tO="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",nO="\\ud83c[\\udffb-\\udfff]",qne="[^\\ud800-\\udfff]",Xne="(?:\\ud83c[\\udde6-\\uddff]){2}",Yne="[\\ud800-\\udbff][\\udc00-\\udfff]",Kne="(?:"+tO+"|"+nO+")?",xze="[\\ufe0e\\ufe0f]?"+Kne+"(?:\\u200d(?:"+[qne,Xne,Yne].join("|")+")[\\ufe0e\\ufe0f]?"+Kne+")*",Cze="(?:"+[qne+tO+"?",tO,Xne,Yne,"[\\ud800-\\udfff]"].join("|")+")",Jne=RegExp(nO+"(?="+nO+")|"+Cze+xze,"g");function Yv(t){return Bv(t)?function(n){for(var e=Jne.lastIndex=0;Jne.test(n);)++e;return e}(t):_ze(t)}var Sze=Math.ceil;function w2(t,n){var e=(n=void 0===n?" ":Mc(n)).length;if(e<2)return e?eO(n,t):n;var i=eO(n,Sze(t/Yv(n)));return Bv(n)?Kf(th(i),0,t).join(""):i.slice(0,t)}var kze=Math.ceil,Dze=Math.floor;function Qne(t,n,e){t=_o(t);var i=(n=mr(n))?Yv(t):0;if(!n||i>=n)return t;var r=(n-i)/2;return w2(Dze(r),e)+t+w2(kze(r),e)}function Zne(t,n,e){t=_o(t);var i=(n=mr(n))?Yv(t):0;return n&&i-1;)a!==t&&oie.call(a,l,1),oie.call(t,l,1);return t}function cO(t,n){return t&&t.length&&n&&n.length?lO(t,n):t}var sie=Rr(cO);function aie(t,n,e){return t&&t.length&&n&&n.length?lO(t,n,ar(e)):t}function lie(t,n,e){return t&&t.length&&n&&n.length?lO(t,n,void 0,e):t}var Fze=Array.prototype.splice;function cie(t,n){for(var e=t?n.length:0,i=e-1;e--;){var r=n[e];if(e==i||r!==o){var o=r;Zd(r)?Fze.call(t,r,1):JL(t,r)}}return t}var Lze=af(function(t,n){var e=null==t?0:t.length,i=XF(t,n);return cie(t,ps(n,function(r){return Zd(r,e)?+r:r}).sort(Bne)),i}),uie=Lze,Oze=Math.floor,Nze=Math.random;function uO(t,n){return t+Oze(Nze()*(n-t+1))}var Rze=parseFloat,$ze=Math.min,Pze=Math.random;function hie(t,n,e){if(e&&"boolean"!=typeof e&&zl(t,n,e)&&(n=e=void 0),void 0===e&&("boolean"==typeof n?(e=n,n=void 0):"boolean"==typeof t&&(e=t,t=void 0)),void 0===t&&void 0===n?(t=0,n=1):(t=Kh(t),void 0===n?(n=t,t=0):n=Kh(n)),t>n){var i=t;t=n,n=i}if(e||t%1||n%1){var r=Pze();return $ze(t+r*(n-t+Rze("1e-"+((r+"").length-1))),n)}return uO(t,n)}var jze=Math.ceil,Bze=Math.max;function die(t){return function(n,e,i){return i&&"number"!=typeof i&&zl(n,e,i)&&(e=i=void 0),n=Kh(n),void 0===e?(e=n,n=0):e=Kh(e),function(r,o,s,a){for(var l=-1,c=Bze(jze((o-r)/(s||1)),0),u=Array(c);c--;)u[a?c:++l]=r,r+=s;return u}(n,e,i=void 0===i?n1&&zl(t,n[0],n[1])?n=[]:e>2&&zl(n[0],n[1],n[2])&&(n=[n[0]]),Hne(t,el(n,1),[])}),dO=Jze,Qze=Math.floor,Zze=Math.min;function fO(t,n,e,i){var r=0,o=null==t?0:t.length;if(0===o)return 0;for(var s=(n=e(n))!=n,a=null===n,l=sc(n),c=void 0===n;r>>1,s=t[o];null!==s&&!sc(s)&&(e?s<=n:s>>0)?(t=_o(t))&&("string"==typeof n||null!=n&&!b2(n))&&!(n=Mc(n))&&Bv(t)?Kf(th(t),0,e):t.split(n,e):[]}var eUe=Math.max;function Wie(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return n=null==n?0:eUe(mr(n),0),Rr(function(e){var i=e[n],r=Kf(e,0,n);return i&&Yf(r,i),Fc(t,this,r)})}var tUe=Vv(function(t,n,e){return t+(e?" ":"")+i2(n)}),Gie=tUe;function qie(t,n,e){return t=_o(t),e=null==e?0:Mg(mr(e),0,t.length),n=Mc(n),t.slice(e,e+n.length)==n}function Xie(){return{}}function Yie(){return""}function Kie(){return!0}var Jie=BS(function(t,n){return t-n},0);function Qie(t){return t&&t.length?GL(t,xl):0}function Zie(t,n){return t&&t.length?GL(t,ar(n)):0}function ere(t){var n=null==t?0:t.length;return n?su(t,1,n):[]}function tre(t,n,e){return t&&t.length?su(t,0,(n=e||void 0===n?1:mr(n))<0?0:n):[]}function nre(t,n,e){var i=null==t?0:t.length;return i?su(t,(n=i-(n=e||void 0===n?1:mr(n)))<0?0:n,i):[]}function ire(t,n){return t&&t.length?f2(t,ar(n),!1,!0):[]}function rre(t,n){return t&&t.length?f2(t,ar(n)):[]}function ore(t,n){return n(t),t}var sre=Object.prototype,nUe=sre.hasOwnProperty;function are(t,n,e,i){return void 0===t||ru(t,sre[e])&&!nUe.call(i,e)?n:t}var iUe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function rUe(t){return"\\"+iUe[t]}var lre=/<%=([\s\S]+?)%>/g,k2={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:lre,variable:"",imports:{_:{escape:OL}}},oUe=/\b__p \+= '';/g,sUe=/\b(__p \+=) '' \+/g,aUe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,lUe=/[()=,{}\[\]\/\s]/,cUe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,D2=/($^)/,uUe=/['\n\r\u2028\u2029\\]/g,cre=Object.prototype.hasOwnProperty;function ure(t,n,e){var i=k2.imports._.templateSettings||k2;e&&zl(t,n,e)&&(n=void 0),t=_o(t),n=$v({},n,i,are);var r,o,s=$v({},n.imports,i.imports,are),a=ca(s),l=jL(s,a),c=0,u=n.interpolate||D2,h="__p += '",d=RegExp((n.escape||D2).source+"|"+u.source+"|"+(u===lre?cUe:D2).source+"|"+(n.evaluate||D2).source+"|$","g"),f=cre.call(n,"sourceURL")?"//# sourceURL="+(n.sourceURL+"").replace(/\s/g," ")+"\n":"";t.replace(d,function(w,C,k,E,L,B){return k||(k=E),h+=t.slice(c,B).replace(uUe,rUe),C&&(r=!0,h+="' +\n__e("+C+") +\n'"),L&&(o=!0,h+="';\n"+L+";\n__p += '"),k&&(h+="' +\n((__t = ("+k+")) == null ? '' : __t) +\n'"),c=B+w.length,w}),h+="';\n";var p=cre.call(n,"variable")&&n.variable;if(p){if(lUe.test(p))throw new Error("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(o?h.replace(oUe,""):h).replace(sUe,"$1").replace(aUe,"$1;"),h="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var m=KF(function(){return Function(a,f+"return "+h).apply(void 0,l)});if(m.source=h,n2(m))throw m;return m}function pO(t,n,e){var i=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return as(e)&&(i="leading"in e?!!e.leading:i,r="trailing"in e?!!e.trailing:r),Uv(t,n,{leading:i,maxWait:n,trailing:r})}function Kv(t,n){return n(t)}var hUe=Math.min;function gO(t,n){if((t=mr(t))<1||t>9007199254740991)return[];var e=4294967295,i=hUe(t,4294967295);t-=4294967295;for(var r=UF(i,n=nd(n));++e-1;);return e}function yre(t,n){for(var e=-1,i=t.length;++e-1;);return e}function bre(t,n,e){if((t=_o(t))&&(e||void 0===n))return KQ(t);if(!t||!(n=Mc(n)))return t;var i=th(t),r=th(n);return Kf(i,yre(i,r),vre(i,r)+1).join("")}function _re(t,n,e){if((t=_o(t))&&(e||void 0===n))return t.slice(0,YQ(t)+1);if(!t||!(n=Mc(n)))return t;var i=th(t);return Kf(i,0,vre(i,th(n))+1).join("")}var dUe=/^\s+/;function wre(t,n,e){if((t=_o(t))&&(e||void 0===n))return t.replace(dUe,"");if(!t||!(n=Mc(n)))return t;var i=th(t);return Kf(i,yre(i,th(n))).join("")}var fUe=/\w*$/;function xre(t,n){var e=30,i="...";if(as(n)){var r="separator"in n?n.separator:r;e="length"in n?mr(n.length):e,i="omission"in n?Mc(n.omission):i}var o=(t=_o(t)).length;if(Bv(t)){var s=th(t);o=s.length}if(e>=o)return t;var a=e-Yv(i);if(a<1)return i;var l=s?Kf(s,0,a).join(""):t.slice(0,a);if(void 0===r)return l+i;if(s&&(a+=l.length-a),b2(r)){if(t.slice(a).search(r)){var c,u=l;for(r.global||(r=RegExp(r.source,_o(fUe.exec(r))+"g")),r.lastIndex=0;c=r.exec(u);)var h=c.index;l=l.slice(0,void 0===h?a:h)}}else if(t.indexOf(Mc(r),a)!=a){var d=l.lastIndexOf(r);d>-1&&(l=l.slice(0,d))}return l+i}function Cre(t){return zF(t,1)}var pUe=oL({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Sre=/&(?:amp|lt|gt|quot|#39);/g,gUe=RegExp(Sre.source);function kre(t){return(t=_o(t))&&gUe.test(t)?t.replace(Sre,pUe):t}var mUe=zv&&1/s2(new zv([,-0]))[1]==1/0?function(t){return new zv(t)}:Ro,vUe=mUe;function Zf(t,n,e){var i=-1,r=XS,o=t.length,s=!0,a=[],l=a;if(e)s=!1,r=FL;else if(o>=200){var c=n?null:vUe(t);if(c)return s2(c);s=!1,r=Db,l=new Fg}else l=n?[]:a;e:for(;++i1||this.__actions__.length)&&i instanceof Qr&&Zd(e)?((i=i.slice(e,+e+(n?1:0))).__actions__.push({func:Kv,args:[r],thisArg:void 0}),new nu(i,this.__chain__).thru(function(o){return n&&!o.length&&o.push(void 0),o})):this.thru(r)}),Bre=CUe;function Hre(){return cL(this)}function Vre(){var t=this.__wrapped__;if(t instanceof Qr){var n=t;return this.__actions__.length&&(n=new Qr(this)),(n=n.reverse()).__actions__.push({func:Kv,args:[x2],thisArg:void 0}),new nu(n,this.__chain__)}return this.thru(x2)}function yO(t,n,e){var i=t.length;if(i<2)return i?Zf(t[0]):[];for(var r=-1,o=Array(i);++r1?t[n-1]:void 0;return e="function"==typeof e?(t.pop(),e):void 0,vO(t,e)}),Kre=kUe,fi={chunk:XZ,compact:pee,concat:gee,difference:Bee,differenceBy:Hee,differenceWith:Vee,drop:Uee,dropRight:Wee,dropRightWhile:Gee,dropWhile:qee,fill:ite,findIndex:RL,findLastIndex:$L,first:xa,flatten:YF,flattenDeep:mte,flattenDepth:vte,fromPairs:Tte,head:xa,indexOf:Nte,initial:wr,intersection:Rte,intersectionBy:$te,intersectionWith:Pte,join:dne,last:ii,lastIndexOf:gne,nth:One,pull:sie,pullAll:cO,pullAllBy:aie,pullAllWith:lie,pullAt:uie,remove:bie,reverse:x2,slice:Fie,sortedIndex:Nie,sortedIndexBy:Rie,sortedIndexOf:$ie,sortedLastIndex:Pie,sortedLastIndexBy:jie,sortedLastIndexOf:Bie,sortedUniq:Vie,sortedUniqBy:zie,tail:ere,take:tre,takeRight:nre,takeRightWhile:ire,takeWhile:rre,union:Dre,unionBy:Tre,unionWith:Are,uniq:Ere,uniqBy:Mre,uniqWith:Ire,unzip:T2,unzipWith:vO,without:Pre,xor:zre,xorBy:Ure,xorWith:Wre,zip:Gre,zipObject:Xre,zipObjectDeep:Yre,zipWith:Kre},$o={countBy:Mee,each:p2,eachRight:Mb,every:nte,filter:ote,find:ate,findLast:ute,flatMap:fte,flatMapDeep:pte,flatMapDepth:gte,forEach:p2,forEachRight:Mb,groupBy:Gv,includes:Ote,invokeMap:Wte,keyBy:pne,map:Wv,orderBy:Vne,partition:sO,reduce:mie,reduceRight:vie,reject:yie,sample:Die,sampleSize:Tie,shuffle:Mie,size:Iie,some:Oie,sortBy:dO},DUe={now:Ab},Rs={after:JQ,ary:zF,before:JF,bind:ZF,bindKey:MZ,curry:u2,curryRight:h2,debounce:Uv,defer:Pee,delay:jee,flip:yte,memoize:Pv,negate:Xv,once:jne,overArgs:Une,partial:rO,partialRight:nie,rearg:pie,rest:xie,spread:Wie,throttle:pO,unary:Cre,wrap:jre},Pi={castArray:GZ,clone:hee,cloneDeep:dee,cloneDeepWith:yL,cloneWith:fee,conformsTo:Tee,eq:ru,gt:Mte,gte:Ite,isArguments:qf,isArray:sr,isArrayBuffer:qte,isArrayLike:Vl,isArrayLikeObject:Ns,isBoolean:Xte,isBuffer:nf,isDate:Kte,isElement:Jte,isEmpty:fr,isEqual:Mr,isEqualWith:Qte,isError:n2,isFinite:Zte,isFunction:Jh,isInteger:VL,isLength:wb,isMap:mL,isMatch:ene,isMatchWith:tne,isNaN:nne,isNative:ine,isNil:rne,isNull:one,isNumber:zL,isObject:as,isObjectLike:ks,isPlainObject:jv,isRegExp:b2,isSafeInteger:ane,isSet:vL,isString:Ib,isSymbol:sc,isTypedArray:Tg,isUndefined:lne,isWeakMap:cne,isWeakSet:une,lt:yne,lte:bne,toArray:YL,toFinite:Kh,toInteger:mr,toLength:NL,toNumber:Ic,toPlainObject:ML,toSafeInteger:pre,toString:_o},Wl={add:XQ,ceil:qZ,divide:zee,floor:bte,max:Cne,maxBy:Sne,mean:Dne,meanBy:Tne,min:Ine,minBy:qv,multiply:Fne,round:Sie,subtract:Jie,sum:Qie,sumBy:Zie},TUe=YZ,AUe=Lte,EUe=hie,tr={assign:CZ,assignIn:JS,assignInWith:$v,assignWith:SZ,at:TZ,create:Iee,defaults:Oee,defaultsDeep:Ree,entries:g2,entriesIn:m2,extend:JS,extendWith:$v,findKey:cte,findLastKey:hte,forIn:Cte,forInRight:Ste,forOwn:kte,forOwnRight:Dte,functions:Ate,functionsIn:Ete,get:e2,has:Fte,hasIn:l2,invert:Bte,invertBy:Vte,invoke:Ute,keys:ca,keysIn:Ul,mapKeys:_ne,mapValues:WL,merge:Ane,mergeWith:IL,omit:Rne,omitBy:Pne,pick:iie,pickBy:QL,result:Cie,set:Aie,setWith:Eie,toPairs:g2,toPairsIn:m2,transform:mre,unset:Fre,update:Ore,updateWith:Nre,values:Lg,valuesIn:$re},id={at:Bre,chain:cL,commit:bL,lodash:$e,next:KL,plant:aO,reverse:Vre,tap:ore,thru:Kv,toIterator:mO,toJSON:Og,value:Og,valueOf:Og,wrapperChain:Hre},wo={camelCase:WZ,capitalize:iL,deburr:sL,endsWith:Kee,escape:OL,escapeRegExp:ete,kebabCase:fne,lowerCase:mne,lowerFirst:vne,pad:Qne,padEnd:Zne,padStart:eie,parseInt:tie,repeat:_ie,replace:wie,snakeCase:Lie,split:Uie,startCase:Gie,startsWith:qie,template:ure,templateSettings:k2,toLower:dre,toUpper:gre,trim:bre,trimEnd:_re,trimStart:wre,truncate:xre,unescape:kre,upperCase:Rre,upperFirst:i2,words:aL},Eo={attempt:KF,bindAll:EZ,cond:See,conforms:Dee,constant:WS,defaultTo:Fee,flow:wte,flowRight:xte,identity:xl,iteratee:hne,matches:wne,matchesProperty:xne,method:Ene,methodOf:Mne,mixin:qL,noop:Ro,nthArg:Nne,over:zne,overEvery:Wne,overSome:Gne,property:DL,propertyOf:rie,range:hO,rangeRight:fie,stubArray:r2,stubFalse:KS,stubObject:Xie,stubString:Yie,stubTrue:Kie,times:gO,toPath:fre,uniqueId:ep},MUe=Math.max,IUe=Math.min,FUe=Math.min,LUe=Array.prototype,Jre=Object.prototype.hasOwnProperty,Qre=wl?wl.iterator:void 0,OUe=Math.max,Zre=Math.min,_O=function(t){return function(n,e,i){if(null==i){var r=as(e),o=r&&ca(e),s=o&&o.length&&v2(e,o);(s?s.length:r)||(i=e,e=n,n=this)}return t(n,e,i)}}(qL);$e.after=Rs.after,$e.ary=Rs.ary,$e.assign=tr.assign,$e.assignIn=tr.assignIn,$e.assignInWith=tr.assignInWith,$e.assignWith=tr.assignWith,$e.at=tr.at,$e.before=Rs.before,$e.bind=Rs.bind,$e.bindAll=Eo.bindAll,$e.bindKey=Rs.bindKey,$e.castArray=Pi.castArray,$e.chain=id.chain,$e.chunk=fi.chunk,$e.compact=fi.compact,$e.concat=fi.concat,$e.cond=Eo.cond,$e.conforms=Eo.conforms,$e.constant=Eo.constant,$e.countBy=$o.countBy,$e.create=tr.create,$e.curry=Rs.curry,$e.curryRight=Rs.curryRight,$e.debounce=Rs.debounce,$e.defaults=tr.defaults,$e.defaultsDeep=tr.defaultsDeep,$e.defer=Rs.defer,$e.delay=Rs.delay,$e.difference=fi.difference,$e.differenceBy=fi.differenceBy,$e.differenceWith=fi.differenceWith,$e.drop=fi.drop,$e.dropRight=fi.dropRight,$e.dropRightWhile=fi.dropRightWhile,$e.dropWhile=fi.dropWhile,$e.fill=fi.fill,$e.filter=$o.filter,$e.flatMap=$o.flatMap,$e.flatMapDeep=$o.flatMapDeep,$e.flatMapDepth=$o.flatMapDepth,$e.flatten=fi.flatten,$e.flattenDeep=fi.flattenDeep,$e.flattenDepth=fi.flattenDepth,$e.flip=Rs.flip,$e.flow=Eo.flow,$e.flowRight=Eo.flowRight,$e.fromPairs=fi.fromPairs,$e.functions=tr.functions,$e.functionsIn=tr.functionsIn,$e.groupBy=$o.groupBy,$e.initial=fi.initial,$e.intersection=fi.intersection,$e.intersectionBy=fi.intersectionBy,$e.intersectionWith=fi.intersectionWith,$e.invert=tr.invert,$e.invertBy=tr.invertBy,$e.invokeMap=$o.invokeMap,$e.iteratee=Eo.iteratee,$e.keyBy=$o.keyBy,$e.keys=ca,$e.keysIn=tr.keysIn,$e.map=$o.map,$e.mapKeys=tr.mapKeys,$e.mapValues=tr.mapValues,$e.matches=Eo.matches,$e.matchesProperty=Eo.matchesProperty,$e.memoize=Rs.memoize,$e.merge=tr.merge,$e.mergeWith=tr.mergeWith,$e.method=Eo.method,$e.methodOf=Eo.methodOf,$e.mixin=_O,$e.negate=Xv,$e.nthArg=Eo.nthArg,$e.omit=tr.omit,$e.omitBy=tr.omitBy,$e.once=Rs.once,$e.orderBy=$o.orderBy,$e.over=Eo.over,$e.overArgs=Rs.overArgs,$e.overEvery=Eo.overEvery,$e.overSome=Eo.overSome,$e.partial=Rs.partial,$e.partialRight=Rs.partialRight,$e.partition=$o.partition,$e.pick=tr.pick,$e.pickBy=tr.pickBy,$e.property=Eo.property,$e.propertyOf=Eo.propertyOf,$e.pull=fi.pull,$e.pullAll=fi.pullAll,$e.pullAllBy=fi.pullAllBy,$e.pullAllWith=fi.pullAllWith,$e.pullAt=fi.pullAt,$e.range=Eo.range,$e.rangeRight=Eo.rangeRight,$e.rearg=Rs.rearg,$e.reject=$o.reject,$e.remove=fi.remove,$e.rest=Rs.rest,$e.reverse=fi.reverse,$e.sampleSize=$o.sampleSize,$e.set=tr.set,$e.setWith=tr.setWith,$e.shuffle=$o.shuffle,$e.slice=fi.slice,$e.sortBy=$o.sortBy,$e.sortedUniq=fi.sortedUniq,$e.sortedUniqBy=fi.sortedUniqBy,$e.split=wo.split,$e.spread=Rs.spread,$e.tail=fi.tail,$e.take=fi.take,$e.takeRight=fi.takeRight,$e.takeRightWhile=fi.takeRightWhile,$e.takeWhile=fi.takeWhile,$e.tap=id.tap,$e.throttle=Rs.throttle,$e.thru=Kv,$e.toArray=Pi.toArray,$e.toPairs=tr.toPairs,$e.toPairsIn=tr.toPairsIn,$e.toPath=Eo.toPath,$e.toPlainObject=Pi.toPlainObject,$e.transform=tr.transform,$e.unary=Rs.unary,$e.union=fi.union,$e.unionBy=fi.unionBy,$e.unionWith=fi.unionWith,$e.uniq=fi.uniq,$e.uniqBy=fi.uniqBy,$e.uniqWith=fi.uniqWith,$e.unset=tr.unset,$e.unzip=fi.unzip,$e.unzipWith=fi.unzipWith,$e.update=tr.update,$e.updateWith=tr.updateWith,$e.values=tr.values,$e.valuesIn=tr.valuesIn,$e.without=fi.without,$e.words=wo.words,$e.wrap=Rs.wrap,$e.xor=fi.xor,$e.xorBy=fi.xorBy,$e.xorWith=fi.xorWith,$e.zip=fi.zip,$e.zipObject=fi.zipObject,$e.zipObjectDeep=fi.zipObjectDeep,$e.zipWith=fi.zipWith,$e.entries=tr.toPairs,$e.entriesIn=tr.toPairsIn,$e.extend=tr.assignIn,$e.extendWith=tr.assignInWith,_O($e,$e),$e.add=Wl.add,$e.attempt=Eo.attempt,$e.camelCase=wo.camelCase,$e.capitalize=wo.capitalize,$e.ceil=Wl.ceil,$e.clamp=TUe,$e.clone=Pi.clone,$e.cloneDeep=Pi.cloneDeep,$e.cloneDeepWith=Pi.cloneDeepWith,$e.cloneWith=Pi.cloneWith,$e.conformsTo=Pi.conformsTo,$e.deburr=wo.deburr,$e.defaultTo=Eo.defaultTo,$e.divide=Wl.divide,$e.endsWith=wo.endsWith,$e.eq=Pi.eq,$e.escape=wo.escape,$e.escapeRegExp=wo.escapeRegExp,$e.every=$o.every,$e.find=$o.find,$e.findIndex=fi.findIndex,$e.findKey=tr.findKey,$e.findLast=$o.findLast,$e.findLastIndex=fi.findLastIndex,$e.findLastKey=tr.findLastKey,$e.floor=Wl.floor,$e.forEach=$o.forEach,$e.forEachRight=$o.forEachRight,$e.forIn=tr.forIn,$e.forInRight=tr.forInRight,$e.forOwn=tr.forOwn,$e.forOwnRight=tr.forOwnRight,$e.get=tr.get,$e.gt=Pi.gt,$e.gte=Pi.gte,$e.has=tr.has,$e.hasIn=tr.hasIn,$e.head=fi.head,$e.identity=xl,$e.includes=$o.includes,$e.indexOf=fi.indexOf,$e.inRange=AUe,$e.invoke=tr.invoke,$e.isArguments=Pi.isArguments,$e.isArray=sr,$e.isArrayBuffer=Pi.isArrayBuffer,$e.isArrayLike=Pi.isArrayLike,$e.isArrayLikeObject=Pi.isArrayLikeObject,$e.isBoolean=Pi.isBoolean,$e.isBuffer=Pi.isBuffer,$e.isDate=Pi.isDate,$e.isElement=Pi.isElement,$e.isEmpty=Pi.isEmpty,$e.isEqual=Pi.isEqual,$e.isEqualWith=Pi.isEqualWith,$e.isError=Pi.isError,$e.isFinite=Pi.isFinite,$e.isFunction=Pi.isFunction,$e.isInteger=Pi.isInteger,$e.isLength=Pi.isLength,$e.isMap=Pi.isMap,$e.isMatch=Pi.isMatch,$e.isMatchWith=Pi.isMatchWith,$e.isNaN=Pi.isNaN,$e.isNative=Pi.isNative,$e.isNil=Pi.isNil,$e.isNull=Pi.isNull,$e.isNumber=Pi.isNumber,$e.isObject=as,$e.isObjectLike=Pi.isObjectLike,$e.isPlainObject=Pi.isPlainObject,$e.isRegExp=Pi.isRegExp,$e.isSafeInteger=Pi.isSafeInteger,$e.isSet=Pi.isSet,$e.isString=Pi.isString,$e.isSymbol=Pi.isSymbol,$e.isTypedArray=Pi.isTypedArray,$e.isUndefined=Pi.isUndefined,$e.isWeakMap=Pi.isWeakMap,$e.isWeakSet=Pi.isWeakSet,$e.join=fi.join,$e.kebabCase=wo.kebabCase,$e.last=ii,$e.lastIndexOf=fi.lastIndexOf,$e.lowerCase=wo.lowerCase,$e.lowerFirst=wo.lowerFirst,$e.lt=Pi.lt,$e.lte=Pi.lte,$e.max=Wl.max,$e.maxBy=Wl.maxBy,$e.mean=Wl.mean,$e.meanBy=Wl.meanBy,$e.min=Wl.min,$e.minBy=Wl.minBy,$e.stubArray=Eo.stubArray,$e.stubFalse=Eo.stubFalse,$e.stubObject=Eo.stubObject,$e.stubString=Eo.stubString,$e.stubTrue=Eo.stubTrue,$e.multiply=Wl.multiply,$e.nth=fi.nth,$e.noop=Eo.noop,$e.now=DUe.now,$e.pad=wo.pad,$e.padEnd=wo.padEnd,$e.padStart=wo.padStart,$e.parseInt=wo.parseInt,$e.random=EUe,$e.reduce=$o.reduce,$e.reduceRight=$o.reduceRight,$e.repeat=wo.repeat,$e.replace=wo.replace,$e.result=tr.result,$e.round=Wl.round,$e.sample=$o.sample,$e.size=$o.size,$e.snakeCase=wo.snakeCase,$e.some=$o.some,$e.sortedIndex=fi.sortedIndex,$e.sortedIndexBy=fi.sortedIndexBy,$e.sortedIndexOf=fi.sortedIndexOf,$e.sortedLastIndex=fi.sortedLastIndex,$e.sortedLastIndexBy=fi.sortedLastIndexBy,$e.sortedLastIndexOf=fi.sortedLastIndexOf,$e.startCase=wo.startCase,$e.startsWith=wo.startsWith,$e.subtract=Wl.subtract,$e.sum=Wl.sum,$e.sumBy=Wl.sumBy,$e.template=wo.template,$e.times=Eo.times,$e.toFinite=Pi.toFinite,$e.toInteger=mr,$e.toLength=Pi.toLength,$e.toLower=wo.toLower,$e.toNumber=Pi.toNumber,$e.toSafeInteger=Pi.toSafeInteger,$e.toString=Pi.toString,$e.toUpper=wo.toUpper,$e.trim=wo.trim,$e.trimEnd=wo.trimEnd,$e.trimStart=wo.trimStart,$e.truncate=wo.truncate,$e.unescape=wo.unescape,$e.uniqueId=Eo.uniqueId,$e.upperCase=wo.upperCase,$e.upperFirst=wo.upperFirst,$e.each=$o.forEach,$e.eachRight=$o.forEachRight,$e.first=fi.head,_O($e,(bO={},td($e,function(t,n){Jre.call($e.prototype,n)||(bO[n]=t)}),bO),{chain:!1}),$e.VERSION="4.17.21",($e.templateSettings=wo.templateSettings).imports._=$e,iu(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){$e[t].placeholder=$e}),iu(["drop","take"],function(t,n){Qr.prototype[t]=function(e){e=void 0===e?1:OUe(mr(e),0);var i=this.__filtered__&&!n?new Qr(this):this.clone();return i.__filtered__?i.__takeCount__=Zre(e,i.__takeCount__):i.__views__.push({size:Zre(e,4294967295),type:t+(i.__dir__<0?"Right":"")}),i},Qr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),iu(["filter","map","takeWhile"],function(t,n){var e=n+1,i=1==e||3==e;Qr.prototype[t]=function(r){var o=this.clone();return o.__iteratees__.push({iteratee:ar(r),type:e}),o.__filtered__=o.__filtered__||i,o}}),iu(["head","last"],function(t,n){var e="take"+(n?"Right":"");Qr.prototype[t]=function(){return this[e](1).value()[0]}}),iu(["initial","tail"],function(t,n){var e="drop"+(n?"":"Right");Qr.prototype[t]=function(){return this.__filtered__?new Qr(this):this[e](1)}}),Qr.prototype.compact=function(){return this.filter(xl)},Qr.prototype.find=function(t){return this.filter(t).head()},Qr.prototype.findLast=function(t){return this.reverse().find(t)},Qr.prototype.invokeMap=Rr(function(t,n){return"function"==typeof t?new Qr(this):this.map(function(e){return Fb(e,t,n)})}),Qr.prototype.reject=function(t){return this.filter(Xv(ar(t)))},Qr.prototype.slice=function(t,n){t=mr(t);var e=this;return e.__filtered__&&(t>0||n<0)?new Qr(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),void 0!==n&&(e=(n=mr(n))<0?e.dropRight(-n):e.take(n-t)),e)},Qr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Qr.prototype.toArray=function(){return this.take(4294967295)},td(Qr.prototype,function(t,n){var e=/^(?:filter|find|map|reject)|While$/.test(n),i=/^(?:head|last)$/.test(n),r=$e[i?"take"+("last"==n?"Right":""):n],o=i||/^find/.test(n);r&&($e.prototype[n]=function(){var s=this.__wrapped__,a=i?[1]:arguments,l=s instanceof Qr,c=a[0],u=l||sr(s),h=function(C){var k=r.apply($e,Yf([C],a));return i&&d?k[0]:k};u&&e&&"function"==typeof c&&1!=c.length&&(l=u=!1);var d=this.__chain__,p=o&&!d,m=l&&!this.__actions__.length;if(!o&&u){s=m?s:new Qr(this);var w=t.apply(s,a);return w.__actions__.push({func:Kv,args:[h],thisArg:void 0}),new nu(w,d)}return p&&m?t.apply(this,a):(w=this.thru(h),p?i?w.value()[0]:w.value():w)})}),iu(["pop","push","shift","sort","splice","unshift"],function(t){var n=LUe[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);$e.prototype[t]=function(){var r=arguments;if(i&&!this.__chain__){var o=this.value();return n.apply(sr(o)?o:[],r)}return this[e](function(s){return n.apply(sr(s)?s:[],r)})}}),td(Qr.prototype,function(t,n){var e=$e[n];if(e){var i=e.name+"";Jre.call(Lv,i)||(Lv[i]=[]),Lv[i].push({name:n,func:e})}}),Lv[YS(void 0,2).name]=[{name:"wrapper",func:void 0}],Qr.prototype.clone=function(){var t=new Qr(this.__wrapped__);return t.__actions__=ac(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=ac(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=ac(this.__views__),t},Qr.prototype.reverse=function(){if(this.__filtered__){var t=new Qr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Qr.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=sr(t),i=n<0,r=e?t.length:0,o=function(B,G,oe){for(var fe=-1,re=oe.length;++fe1&&void 0!==arguments[1]&&arguments[1],e={};if(!Array.isArray(t))throw new TypeError("Array expected");function i(l,c){(!Array.isArray(l)&&!Ko(l)||n&&c.length>0)&&(e[An(c)]=!0),Ko(l)&&Object.keys(l).forEach(function(u){i(l[u],c.concat(u))})}for(var r=Math.min(t.length,1e4),o=0;on?t.slice(0,n):t}function toe(t){return _t({},t)}function noe(t){return Object.values(t)}function ioe(t,n,e,i){var r=t.slice(0),o=r.splice(n,e);return r.splice.apply(r,[n+i,0].concat(Ti(o))),r}function xO(t,n){try{return n.parse(t)}catch{return n.parse(Yh(t))}}function roe(t,n){try{return xO(t,n)}catch{return}}function E2(t,n){t=t.replace(soe,"");try{return n(t)}catch{}try{return n("["+t+"]")}catch{}try{return n("{"+t+"}")}catch{}throw new Error("Failed to parse partial JSON")}function ooe(t){t=t.replace(soe,"");try{return Yh(t)}catch{}try{var n=Yh("["+t+"]");return n.substring(1,n.length-1)}catch{}try{var e=Yh("{"+t+"}");return e.substring(1,e.length-1)}catch{}throw new Error("Failed to repair partial JSON")}var soe=/,\s*$/;function M2(t,n){var e=coe.exec(n);if(e){var i=la(e[2]),r=function(f,p){for(var w=arguments.length>3&&void 0!==arguments[3]?arguments[3]:f.length,C=0,k=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;k1&&void 0!==arguments[1]?arguments[1]:JSON;return SO(t)?t:{json:n.parse(t.text)}}function I2(t,n,e){return function PUe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:JSON;return Jv(t)?t:{text:e.stringify(t.json,null,n)}}(t,n,e).text}function loe(t,n){return function jUe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;if(Jv(t))return t.text.length;var i=0;return function r(o){if(Array.isArray(o)){if((i+=o.length-1+2)>n)return i;for(var s=0;sn)return i}else if(Ko(o)){var a=Object.keys(o);i+=2+a.length+(a.length-1);for(var l=0;ln}var coe=/(position|char) (\d+)/,BUe=/line (\d+)/,HUe=/column (\d+)/;function hoe(t){return VUe.test(t)&&t.length>2}var VUe=/^[[{]\S/;function kO(t){var e=t.escapeUnicodeCharacters;return t.escapeControlCharacters?e?zUe:UUe:e?WUe:GUe}var zUe={escapeValue:function(t){return doe(goe(String(t)))},unescapeValue:function(t){return moe(foe(t))}},UUe={escapeValue:function(t){return goe(String(t))},unescapeValue:function(t){return moe(t)}},WUe={escapeValue:function(t){return doe(String(t))},unescapeValue:function(t){return foe(t)}},GUe={escapeValue:function(t){return String(t)},unescapeValue:function(t){return t}};function doe(t){return t.replace(/[^\x20-\x7F]/g,function(n){var e;return"\b"===n||"\f"===n||"\n"===n||"\r"===n||"\t"===n?n:"\\u"+("000"+(null===(e=n.codePointAt(0))||void 0===e?void 0:e.toString(16))).slice(-4)})}function foe(t){return t.replace(/\\u[a-fA-F0-9]{4}/g,function(n){try{var e=JSON.parse('"'+n+'"');return poe[e]||e}catch{return n}})}var poe={'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},qUe={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"};function goe(t){return t.replace(/["\b\f\n\r\t\\]/g,function(n){return poe[n]||n})}function moe(t){return t.replace(/\\["bfnrt\\]/g,function(n){return qUe[n]||n})}function Ng(t){return"string"!=typeof t?String(t):t.endsWith("\n")?t+"\n":t}function voe(t,n){return Ob(t,function(e){return e.nodeName.toUpperCase()===n.toUpperCase()})}function Rg(t,n,e){return Ob(t,function(i){return s=e,"function"==typeof(r=i).getAttribute&&r.getAttribute(n)===s;var r,s})}function Ob(t,n){return!!DO(t,n)}function DO(t,n){for(var e=t;e&&!n(e);)e=e.parentNode;return e||void 0}function yoe(t){if(null!=t.firstChild){var n=document.createRange(),e=window.getSelection();n.setStart(t,1),n.collapse(!0),e?.removeAllRanges(),e?.addRange(n)}else t.focus()}function F2(t,n,e){var i=Qv(t);if(i){var r=i.document.activeElement?i.document.activeElement:null;r&&r.isContentEditable&&(r.textContent=e?n:r.textContent+n,yoe(r))}}function Qv(t){return t&&t.ownerDocument?t.ownerDocument.defaultView:null}function L2(t){var e=Qv(t)?.document.activeElement;return!!e&&Ob(e,function(i){return i===t})}function boe(t,n){return DO(t,function(e){return e.nodeName===n})}function TO(t){return Rg(t,"data-type","selectable-key")?To.key:Rg(t,"data-type","selectable-value")?To.value:Rg(t,"data-type","insert-selection-area-inside")?To.inside:Rg(t,"data-type","insert-selection-area-after")?To.after:To.multi}function Zv(t){return encodeURIComponent(An(t))}function _oe(t){var e=DO(t,function(i){return!(null==i||!i.hasAttribute)&&i.hasAttribute("data-path")})?.getAttribute("data-path");return e?Qu(decodeURIComponent(e)):null}function tp(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"+",e=[];t.ctrlKey&&e.push("Ctrl"),t.metaKey&&e.push("Ctrl"),t.altKey&&e.push("Alt"),t.shiftKey&&e.push("Shift");var i=1===t.key.length?t.key.toUpperCase():t.key;return i in YUe||e.push(i),e.join(n)}var YUe={Ctrl:!0,Command:!0,Control:!0,Alt:!0,Option:!0,Shift:!0},AO=mF.window;function KUe(t){Ni(t,"svelte-1r8q3m8",".jse-absolute-popup.svelte-1r8q3m8.svelte-1r8q3m8{position:relative;left:0;top:0;width:0;height:0;z-index:1001}.jse-absolute-popup.svelte-1r8q3m8 .jse-hidden-input.svelte-1r8q3m8{position:fixed;left:0;top:0;width:0;height:0;padding:0;margin:0;border:none;outline:none;overflow:hidden}.jse-absolute-popup.svelte-1r8q3m8 .jse-absolute-popup-content.svelte-1r8q3m8{position:absolute}")}function woe(t){var n,e,i,r,o,s,a=[t[0].props],l=t[0].component;function c(u){for(var h={},d=0;dwindow.innerHeight&&L>d,fe="left"===C||E+u>window.innerWidth&&E>u;return{left:fe?k.right-w:E+w,top:oe?L-p:k.bottom+p,positionAbove:oe,positionLeft:fe}}if("number"==typeof n.left&&"number"==typeof n.top){var re=n.left,ce=n.top,ue=n.width,pe=void 0===ue?0:ue,De=n.height,ie=void 0===De?0:De;return{left:re,top:ce,positionAbove:ce+ie>window.innerHeight&&ce>ie,positionLeft:re+pe>window.innerWidth&&re>pe}}throw new Error('Invalid config: pass either "left" and "top", or pass "anchor"')}(),r=i.left,o=i.top,a=i.positionLeft;return(i.positionAbove?"bottom: ".concat(e.top-o,"px;"):"top: ".concat(o-e.top,"px;"))+(a?"right: ".concat(e.left-r,"px;"):"left: ".concat(r-e.left,"px;"))}function ZUe(t,n,e){var i,r,o=n.popup,s=n.closeAbsolutePopup;function a(l){o.options&&o.options.closeOnOuterClick&&!Ob(l.target,function(c){return c===i})&&s(o.id)}return Zc(function(){r&&r.focus()}),t.$$set=function(l){"popup"in l&&e(0,o=l.popup),"closeAbsolutePopup"in l&&e(6,s=l.closeAbsolutePopup)},[o,i,r,function(l){a(l)},function(l){"Escape"===tp(l)&&s(o.id)},function(l){a(l)},s,function(l){dr[l?"unshift":"push"](function(){e(2,r=l)})},function(l){dr[l?"unshift":"push"](function(){e(1,i=l)})}]}var eWe=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,ZUe,JUe,Os,{popup:0,closeAbsolutePopup:6},KUe),r}return Xe(e)}();function Coe(t,n,e){var i=t.slice();return i[6]=n[e],i}function Soe(t){var n,e;return n=new eWe({props:{popup:t[6],closeAbsolutePopup:t[1]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};1&r&&(o.popup=i[6]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function tWe(t){for(var n,e,i=t[0],r=[],o=0;o0;){var i=n.match(rWe);if(!i)throw new SyntaxError('Cannot parse path: unexpected part "'.concat(n,'" at position ').concat(t.length-n.length));e.push(i[1]||i[2]||i[3]),n=n.substring(i[0].length)}var r;return e}var rWe=new RegExp(["^\\.([A-zA-Z$_][a-zA-Z$_0-9]*)","^\\[([0-9]+)]","^\\['(.*)']"].join("|"));function Nb(t){return{value:t,label:fr(t)?"(whole item)":lu(lc(t))}}function rd(t){return t.map(function(n){return MO.test(n)?"?.[".concat(n,"]"):EO.test(n)?"?.".concat(n):"?.[".concat(JSON.stringify(n),"]")}).join("")}var EO=/^[a-zA-Z$_][a-zA-Z$_\d]*$/,MO=/^\d+$/;function Rb(t,n){for(var e=new Set(n),i=t.replace(/ \(copy( \d+)?\)$/,""),r=t,o=1;e.has(r);){var s="copy"+(o>1?" "+o:"");r="".concat(i," (").concat(s,")"),o++}return r}function od(t,n){return t.length>n?t.substring(0,n-3)+"...":t}var oWe={id:"javascript",name:"JavaScript",description:"\n

    \n Enter a JavaScript function to filter, sort, or transform the data.\n

    \n",createQuery:function(t,n){var e=n.filter,i=n.sort,r=n.projection,o=[" return data\n"];if(e&&e.path&&e.relation&&e.value){var s="item => item".concat(rd(e.path)),a=function IO(t){if(""===t)return"";var n=t.toLowerCase();if("null"===n)return null;if("true"===n)return!0;if("false"===n)return!1;if("undefined"!==n){var e=Number(t),i=parseFloat(t);return isNaN(e)||isNaN(i)?t:e}}(e.value),l="string"==typeof a?"'".concat(e.value,"'"):function HQ(t){return S9e.test(t)}(e.value)&&!Number.isSafeInteger(a)?"".concat(e.value,"n"):e.value;o.push(" .filter(".concat(s," ").concat(e.relation," ").concat(l,")\n"))}if(i&&i.path&&i.direction&&o.push("desc"===i.direction?" .slice()\n .sort((a, b) => {\n // sort descending\n"+" const valueA = a".concat(rd(i.path),"\n")+" const valueB = b".concat(rd(i.path),"\n")+" return valueA > valueB ? -1 : valueA < valueB ? 1 : 0\n })\n":" .slice()\n .sort((a, b) => {\n // sort ascending\n"+" const valueA = a".concat(rd(i.path),"\n")+" const valueB = b".concat(rd(i.path),"\n")+" return valueA > valueB ? 1 : valueA < valueB ? -1 : 0\n })\n"),r&&r.paths)if(r.paths.length>1){var c=r.paths.map(function(h){var d=h[h.length-1]||"item",f="item".concat(rd(h));return" ".concat(JSON.stringify(d),": ").concat(f)});o.push(" .map(item => ({\n".concat(c.join(",\n"),"})\n )\n"))}else{var u="item".concat(rd(r.paths[0]));o.push(" .map(item => ".concat(u,")\n"))}return"function query (data) {\n".concat(o.join(""),"}")},executeQuery:function(t,n){var e=new Function('"use strict";\n\n'+n+'\n\nif (typeof query !== "function") {\n throw new Error("Cannot execute query: expecting a function named \'query\' but is undefined")\n}\n\nreturn query;\n')()(t);return void 0!==e?e:null}},sWe={prefix:"far",iconName:"lightbulb",icon:[384,512,[128161],"f0eb","M281.2 248.9C295.6 228.3 304 203.2 304 176c0-70.7-57.3-128-128-128S48 105.3 48 176c0 27.2 8.4 52.3 22.8 72.9c3.7 5.3 8.1 11.3 12.8 17.7l0 0c12.9 17.7 28.3 38.9 39.8 59.8c10.4 19 15.7 38.8 18.3 57.5H93c-2.2-12-5.9-23.7-11.8-34.5c-9.9-18-22.2-34.9-34.5-51.8l0 0 0 0c-5.2-7.1-10.4-14.2-15.4-21.4C11.6 247.9 0 213.3 0 176C0 78.8 78.8 0 176 0s176 78.8 176 176c0 37.3-11.6 71.9-31.4 100.3c-5 7.2-10.2 14.3-15.4 21.4l0 0 0 0c-12.3 16.8-24.6 33.7-34.5 51.8c-5.9 10.8-9.6 22.5-11.8 34.5H210.4c2.6-18.7 7.9-38.6 18.3-57.5c11.5-20.9 26.9-42.1 39.8-59.8l0 0 0 0 0 0c4.7-6.4 9-12.4 12.7-17.7zM176 128c-26.5 0-48 21.5-48 48c0 8.8-7.2 16-16 16s-16-7.2-16-16c0-44.2 35.8-80 80-80c8.8 0 16 7.2 16 16s-7.2 16-16 16zm0 384c-44.2 0-80-35.8-80-80V416H256v16c0 44.2-35.8 80-80 80z"]},$b={prefix:"far",iconName:"square-check",icon:[448,512,[9745,9989,61510,"check-square"],"f14a","M211.8 339.8C200.9 350.7 183.1 350.7 172.2 339.8L108.2 275.8C97.27 264.9 97.27 247.1 108.2 236.2C119.1 225.3 136.9 225.3 147.8 236.2L192 280.4L300.2 172.2C311.1 161.3 328.9 161.3 339.8 172.2C350.7 183.1 350.7 200.9 339.8 211.8L211.8 339.8zM0 96C0 60.65 28.65 32 64 32H384C419.3 32 448 60.65 448 96V416C448 451.3 419.3 480 384 480H64C28.65 480 0 451.3 0 416V96zM48 96V416C48 424.8 55.16 432 64 432H384C392.8 432 400 424.8 400 416V96C400 87.16 392.8 80 384 80H64C55.16 80 48 87.16 48 96z"]},Pb={prefix:"far",iconName:"square",icon:[448,512,[9632,9723,9724,61590],"f0c8","M384 32C419.3 32 448 60.65 448 96V416C448 451.3 419.3 480 384 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H384zM384 80H64C55.16 80 48 87.16 48 96V416C48 424.8 55.16 432 64 432H384C392.8 432 400 424.8 400 416V96C400 87.16 392.8 80 384 80z"]},aWe={prefix:"far",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]};function lWe(t){for(var n,e=[t[0]],i={},r=0;r300},{anchor:d.target,closeOnOuterClick:!0,onClose:h,offsetTop:18,offsetLeft:-8,height:300})}},o,l,c]}var NWe=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,OWe,LWe,Zi,{path:4,value:0,readOnly:1,onPatch:5,focus:6},FWe),r}return Xe(e)}();function Noe(t){for(var n=dO(t,function(a){return a.start}),e=[n[0]],i=0;i=e.start&&n0){var h=R2(n,u);LO(l,h,function(w){o[c]=String(w),a(l[w])}),o.pop()}}}else if(Ko(l)&&i(o)){r[An(o)]=!0;var d=Object.keys(l);if(d.length>0){var f,p=ot(d);try{for(p.s();!(f=p.n()).done;){var m=f.value;o[c]=m,a(l[m])}}catch(w){p.e(w)}finally{p.f()}o.pop()}}}(s),_t(_t({},n),{},{expandedMap:r})}function Roe(t,n){var e=e0(t.expandedMap,n),i=e0(t.enforceStringMap,n),r=e0(t.visibleSectionsMap,n);return _t(_t({},t),{},{expandedMap:e,enforceStringMap:i,visibleSectionsMap:r})}function $oe(t,n,e){if(e){var i=_t({},t.enforceStringMap);return i[n]=e,_t(_t({},t),{},{enforceStringMap:i})}if("boolean"==typeof t.enforceStringMap[n]){var r=_t({},t.enforceStringMap);return delete r[n],_t(_t({},t),{},{enforceStringMap:r})}return t}function Poe(t,n,e){var i=Zu(t,e),r=e.reduce(function(o,s){return SQ(s)?joe(i,o,s):kQ(s)?Boe(i,o,s):xF(s)?(u=(c=s).path,h=PO(a=i,(l=o).expandedMap),d=PO(a,l.enforceStringMap),f=PO(a,l.visibleSectionsMap),Yo(c.value)||Ao(c.value)||delete h[u],Ao(c.value)||delete f[u],(Yo(c.value)||Ao(c.value))&&delete d[u],_t(_t({},l),{},{expandedMap:h,enforceStringMap:d,visibleSectionsMap:f})):CF(s)||Ev(s)?function(a,l,c){if(Ev(c)&&c.from===c.path)return l;var u=function(k){return c.path+k.substring(c.from.length)},h=$O(NO(l.expandedMap,c.from),u),d=$O(NO(l.enforceStringMap,c.from),u),f=$O(NO(l.visibleSectionsMap,c.from),u),p=l;Ev(c)&&(p=Boe(a,p,{op:"remove",path:c.from}));var m=RO((p=joe(a,p,{op:"add",path:c.path,value:null})).expandedMap,h),w=RO(p.enforceStringMap,d),C=RO(p.visibleSectionsMap,f);return _t(_t({},l),{},{expandedMap:m,enforceStringMap:w,visibleSectionsMap:C})}(i,o,s):o;var a,l,c,u,h,d,f},n);return{json:i,documentState:r}}function joe(t,n,e){var i=eh(t,e.path),r=wr(i),o=An(r);if(Ao(Un(t,r))){var s=la(ii(i)),a=t0(n.expandedMap,r,s,1),l=t0(n.enforceStringMap,r,s,1),c=t0(n.visibleSectionsMap,r,s,1);return c=Hoe(c,o,function(u){return Voe(u,s,1)}),_t(_t({},n),{},{expandedMap:a,enforceStringMap:l,visibleSectionsMap:c})}return n}function Boe(t,n,e){var i=eh(t,e.path),r=wr(i),o=An(r),s=Un(t,r),a=n.expandedMap,l=n.enforceStringMap,c=n.visibleSectionsMap;if(a=e0(a,i),l=e0(l,i),c=e0(c,i),Ao(s)){var u=la(ii(i));a=t0(a,r,u,-1),l=t0(l,r,u,-1),c=Hoe(c=t0(c,r,u,-1),o,function(h){return Voe(h,u,-1)})}return _t(_t({},n),{},{expandedMap:a,enforceStringMap:l,visibleSectionsMap:c})}function e0(t,n){var e={},i=An(n);return Object.keys(t).forEach(function(r){Mv(r,i)||(e[r]=t[r])}),e}function NO(t,n){var e={};return Object.keys(t).forEach(function(i){Mv(i,n)&&(e[i]=t[i])}),e}function RO(t,n){return _t(_t({},t),n)}function $O(t,n){var e={};return Object.keys(t).forEach(function(i){var r=n(i);e[r]=t[i]}),e}function t0(t,n,e,i){for(var r=n.length,o=An(n),s=[],a=0,l=Object.keys(t);a=e&&(u[r]=String(h+i),s.push({oldPointer:c,newPointer:An(u),value:t[c]}))}}if(0===s.length)return t;var d=_t({},t);return s.forEach(function(f){delete d[f.oldPointer]}),s.forEach(function(f){d[f.newPointer]=f.value}),d}function PO(t,n){var e={};return Object.keys(n).filter(function(i){return tu(t,eh(t,i))}).forEach(function(i){e[i]=n[i]}),e}function Hoe(t,n,e){var i=t[n];if(n in t){var r=e(i);if(!Mr(i,r)){var o=_t({},t);return void 0===r?delete o[n]:o[n]=r,o}}return t}function Voe(t,n,e){return t.map(function(i){return{start:i.start>n?i.start+e:i.start,end:i.end>=n?i.end+e:i.end}})}function lf(t,n,e,i){var o,r=n?n[e]:void 0;return"boolean"==typeof r?r:"string"==typeof(o=t)&&"string"!=typeof Iv(o,i)}function jb(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t.indexOf(n);return-1!==i?t.slice(e?i:i+1):[]}function jO(t,n){var e=[];return function i(r,o){e.push(o);var s=An(o);if(r&&!0===n.expandedMap[s]){if(Ao(r)){var a=R2(n,s);LO(r,a,function(l){i(r[l],o.concat(String(l)))})}Yo(r)&&Object.keys(r).forEach(function(l){i(r[l],o.concat(l))})}}(t,[]),e}function zoe(t,n){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=[];return function r(o,s){i.push({path:s,type:Yu.value});var a=An(s);if(o&&!0===n.expandedMap[a]){if(e&&i.push({path:s,type:Yu.inside}),Ao(o)){var l=R2(n,a);LO(o,l,function(c){var u=s.concat(String(c));r(o[c],u),e&&i.push({path:u,type:Yu.after})})}Yo(o)&&Object.keys(o).forEach(function(c){var u=s.concat(c);i.push({path:u,type:Yu.key}),r(o[c],u),e&&i.push({path:u,type:Yu.after})})}}(t,[]),i}function BO(t,n,e){var i=jO(t,n),r=i.map(An).indexOf(An(e));return-1!==r&&r0;){if(!0===t.pointersMap[An(i)])return!0;i.pop()}return $s(t)?e===To.key&&Mr(t.focusPath,n):!(!xr(t)||!(e===To.value&&Mr(t.focusPath,n)||s0(n,t.focusPath)&&n.length>t.focusPath.length&&(e===To.key||e===To.value||e===To.multi)))}function Goe(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n.selection;if(!r)return null;var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3]||!io(r)?r.focusPath:xa(r.paths),s=function PWe(t,n,e){var i=jO(t,n),r=i.map(An),o=An(e),s=r.indexOf(o);return-1!==s&&s>0?i[s-1]:null}(t,n,o);if(null===s)return null;var a=s,l=s;if(e)return ih(r)||ua(r)?Ks(t,r.anchorPath,r.anchorPath):Ks(t,r.anchorPath,l);if($s(r)){var u=Un(t,wr(s));return Array.isArray(u)||fr(s)?Br(s,!1):uu(s,!1)}return xr(r)?Br(s,!1):ih(r)||ua(r)?Ks(t,o,o):Ks(t,a,l)}function qoe(t,n,e){var i=n.selection;if(!i)return{caret:null,previous:null,next:null};var r=zoe(t,n,e),o=r.findIndex(function(s){return Mr(s.path,i.focusPath)&&String(s.type)===String(i.type)});return{caret:-1!==o?r[o]:null,previous:-1!==o&&o>0?r[o-1]:null,next:-1!==o&&oe[i].length;)i++;var r=e[i];return 0===r.length||Array.isArray(Un(t,wr(r)))?Br(r,!1):uu(r,!1)}function o0(t,n){if(1===n.length){var e=xa(n);if("replace"===e.op||"move"===e.op)return Br(eh(t,e.path),!1)}if(!fr(n)&&n.every(function(s){return"move"===s.op})){var i=xa(n),r=n.slice(1);if((CF(i)||Ev(i))&&i.from!==i.path&&r.every(function(s){return(CF(s)||Ev(s))&&s.from===s.path}))return uu(eh(t,i.path),!1)}var o=n.filter(function(s){return"test"!==s.op&&"remove"!==s.op&&("move"!==s.op||s.from!==s.path)&&"string"==typeof s.path}).map(function(s){return eh(t,s.path)});if(!fr(o))return{type:To.multi,paths:o,anchorPath:xa(o),focusPath:ii(o),pointersMap:Xoe(o)}}function Xoe(t){var n={};return t.forEach(function(e){n[An(e)]=!0}),n}function P2(t){return rc({},An(t),!0)}function Hb(t){return void 0!==t&&($s(t)||xr(t)||io(t)&&1===t.paths.length)}function Yoe(t,n){return Hb(n)&&ss(Un(t,n.focusPath))?n.focusPath:wr(n.focusPath)}function s0(t,n){if(t.length0?0:-1,e=t.items[n],i=t.items.map(function(r,o){return _t(_t({},r),{},{active:o===n})});return _t(_t({},t),{},{items:i,itemsMap:Gv(i,function(r){return An(r.path)}),activeItem:e,activeIndex:n})}function qWe(t){var n=t.activeIndex>0?t.activeIndex-1:t.items.length-1,e=t.items[n],i=t.items.map(function(r,o){return _t(_t({},r),{},{active:o===n})});return _t(_t({},t),{},{items:i,itemsMap:Gv(i,function(r){return An(r.path)}),activeItem:e,activeIndex:n})}function sse(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,i=[],r=[];function o(l){i.length=e)return;r.pop()}else if(Yo(c)){var d=Object.keys(c),f=r.length;r.push("");for(var p=0,m=d;p=e)return}r.pop()}else ase(String(c),l,r,Ku.value,o)}(t.toLowerCase(),n),i}function ase(t,n,e,i,r){var o=t.toLowerCase(),s=0,a=-1,l=-1;do{-1!==(l=o.indexOf(n,a))&&(a=l+n.length,r({path:e.slice(0),field:i,fieldIndex:s,start:l,end:a}),s++)}while(-1!==l)}function UO(t,n,e,i){return t.substring(0,e)+n+t.substring(i)}function lse(t,n,e){var i=t;return Mb(e,function(r){i=UO(i,n,r.start,r.end)}),i}function XWe(t,n,e,i,r){var o=i.field,s=i.path,a=i.start,l=i.end;if(o===Ku.key){var c=wr(s),u=Un(t,c),h=ii(s),d=zb(c,Object.keys(u),h,UO(h,e,a,l));return{newSelection:o0(t,d),operations:d}}if(o===Ku.value){var f=Un(t,s);if(void 0===f)throw new Error("Cannot replace: path not found ".concat(An(s)));var p="string"==typeof f?f:String(f),m=An(s),w=lf(f,n.enforceStringMap,m,r),C=UO(p,e,a,l),k=[{op:"replace",path:An(s),value:w?C:Iv(C,r)}];return{newSelection:o0(t,k),operations:k}}throw new Error("Cannot replace: unknown type of search result field ".concat(o))}function YWe(t,n,e,i,r){for(var o=sse(e,t,1/0),s=[],a=0;an.floating[o]&&(s=G2(s)),{main:s,cross:G2(s)}}var NGe={start:"end",end:"start"};function QO(t){return t.replace(/start|end/g,function(n){return NGe[n]})}var RGe=function(t){return void 0===t&&(t={}),{name:"flip",options:t,fn:function(n){return Dr(Rn().mark(function e(){var i,r,o,s,a,l,c,u,h,d,f,p,m,w,C,k,E,L,B,G,oe,fe,re,ce,ue,pe,De,ie,ge,Fe,z,Q,Z,me,ae,Te;return Rn().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return r=n.placement,o=n.middlewareData,s=n.rects,a=n.initialPlacement,l=n.platform,c=n.elements,h=(u=t).mainAxis,d=void 0===h||h,p=void 0===(f=u.crossAxis)||f,m=u.fallbackPlacements,C=void 0===(w=u.fallbackStrategy)?"bestFit":w,E=void 0===(k=u.fallbackAxisSideDirection)?"none":k,B=void 0===(L=u.flipAlignment)||L,G=qJ(u,p7e),oe=Bg(r),fe=Bg(a)===a,Oe.next=23,null==l.isRTL?void 0:l.isRTL(c.floating);case 23:return re=Oe.sent,ce=m||(fe||!B?[G2(a)]:(void 0,Ve=G2(Ze=a),[QO(Ze),Ve,QO(Ve)])),m||"none"===E||ce.push.apply(ce,Ti(function(Ze,Ve,wt,ct){var Ct=U2(Ze),se=function(Se,ke,Qe){var gt=["left","right"],rt=["right","left"];switch(Se){case"top":case"bottom":return Qe?ke?rt:gt:ke?gt:rt;case"left":case"right":return ke?["top","bottom"]:["bottom","top"];default:return[]}}(Bg(Ze),"start"===wt,ct);return Ct&&(se=se.map(function(Se){return Se+"-"+Ct}),Ve&&(se=se.concat(se.map(QO)))),se}(a,B,E,re))),ue=[a].concat(Ti(ce)),Oe.next=29,Sse(n,G);case 29:if(pe=Oe.sent,De=[],ie=(null==(i=o.flip)?void 0:i.overflows)||[],d&&De.push(pe[oe]),p&&(ge=OGe(r,s,re),De.push(pe[ge.main],pe[ge.cross])),ie=[].concat(Ti(ie),[{placement:r,overflows:De}]),De.every(function(Ze){return Ze<=0})){Oe.next=48;break}if(Q=((null==(Fe=o.flip)?void 0:Fe.index)||0)+1,!(Z=ue[Q])){Oe.next=37;break}return Oe.abrupt("return",{data:{index:Q,overflows:ie},reset:{placement:Z}});case 37:if(me=null==(z=ie.filter(function(Ze){return Ze.overflows[0]<=0}).sort(function(Ze,Ve){return Ze.overflows[1]-Ve.overflows[1]})[0])?void 0:z.placement,me){Oe.next=46;break}Oe.t0=C,Oe.next="bestFit"===Oe.t0?42:"initialPlacement"===Oe.t0?45:46;break;case 42:return Te=null==(ae=ie.map(function(Ze){return[Ze.placement,Ze.overflows.filter(function(Ve){return Ve>0}).reduce(function(Ve,wt){return Ve+wt},0)]}).sort(function(Ze,Ve){return Ze[1]-Ve[1]})[0])?void 0:ae[0],Te&&(me=Te),Oe.abrupt("break",46);case 45:me=a;case 46:if(r===me){Oe.next=48;break}return Oe.abrupt("return",{reset:{placement:me}});case 48:return Oe.abrupt("return",{});case 49:case"end":return Oe.stop()}var Ze,Ve},e)}))()}}},$Ge=function(t){return void 0===t&&(t=0),{name:"offset",options:t,fn:function(n){return Dr(Rn().mark(function e(){var i,r,o;return Rn().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return i=n.x,r=n.y,s.next=4,function(){var a=Dr(Rn().mark(function l(c,u){var h,d,f,p,m,w,C,k,E,L,B,G,oe,fe;return Rn().wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return h=c.placement,d=c.platform,f=c.elements,re.next=5,null==d.isRTL?void 0:d.isRTL(f.floating);case 5:return p=re.sent,m=Bg(h),w=U2(h),C="x"===W2(h),k=["left","top"].includes(m)?-1:1,E=p&&C?-1:1,L="function"==typeof u?u(c):u,B="number"==typeof L?{mainAxis:L,crossAxis:0,alignmentAxis:null}:_t({mainAxis:0,crossAxis:0,alignmentAxis:null},L),G=B.mainAxis,oe=B.crossAxis,fe=B.alignmentAxis,re.abrupt("return",(w&&"number"==typeof fe&&(oe="end"===w?-1*fe:fe),C?{x:oe*E,y:G*k}:{x:G*k,y:oe*E}));case 14:case"end":return re.stop()}},l)}));return function(l,c){return a.apply(this,arguments)}}()(n,t);case 4:return s.abrupt("return",{x:i+(o=s.sent).x,y:r+o.y,data:o});case 6:case"end":return s.stop()}},e)}))()}}};function PGe(t){return"x"===t?"y":"x"}var jGe=function(t){return void 0===t&&(t={}),{name:"shift",options:t,fn:function(n){return Dr(Rn().mark(function e(){var i,r,o,s,a,l,c,u,h,d,f,p,m,w,C,k,E,L,oe;return Rn().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return r=n.x,o=n.y,s=n.placement,l=(a=t).mainAxis,c=void 0===l||l,h=void 0!==(u=a.crossAxis)&&u,f=void 0===(d=a.limiter)?{fn:function(re){return{x:re.x,y:re.y}}}:d,p=qJ(a,g7e),m={x:r,y:o},fe.next=14,Sse(n,p);case 14:return w=fe.sent,C=W2(Bg(s)),k=PGe(C),E=m[C],L=m[k],c&&(E=kse(E+w["y"===C?"top":"left"],E,E-w["y"===C?"bottom":"right"])),h&&(L=kse(L+w["y"===k?"top":"left"],L,L-w["y"===k?"bottom":"right"])),oe=f.fn(_t(_t({},n),{},(rc(i={},C,E),rc(i,k,L),i))),fe.abrupt("return",_t(_t({},oe),{},{data:{x:oe.x-r,y:oe.y-o}}));case 22:case"end":return fe.stop()}},e)}))()}}};function Oc(t){var n;return(null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function ld(t){return Oc(t).getComputedStyle(t)}var ZO,Dse=Math.min,Wb=Math.max,q2=Math.round;function Tse(t){var n=ld(t),e=parseFloat(n.width),i=parseFloat(n.height),r=t.offsetWidth,o=t.offsetHeight,s=q2(e)!==r||q2(i)!==o;return s&&(e=r,i=o),{width:e,height:i,fallback:s}}function ap(t){return Ese(t)?(t.nodeName||"").toLowerCase():""}function Ase(){if(ZO)return ZO;var t=navigator.userAgentData;return t&&Array.isArray(t.brands)?ZO=t.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function cd(t){return t instanceof Oc(t).HTMLElement}function oh(t){return t instanceof Oc(t).Element}function Ese(t){return t instanceof Oc(t).Node}function Mse(t){return typeof ShadowRoot<"u"&&(t instanceof Oc(t).ShadowRoot||t instanceof ShadowRoot)}function X2(t){var n=ld(t),o=n.display;return/auto|scroll|overlay|hidden|clip/.test(n.overflow+n.overflowY+n.overflowX)&&!["inline","contents"].includes(o)}function BGe(t){return["table","td","th"].includes(ap(t))}function eN(t){var n=/firefox/i.test(Ase()),e=ld(t),i=e.backdropFilter||e.WebkitBackdropFilter;return"none"!==e.transform||"none"!==e.perspective||!!i&&"none"!==i||n&&"filter"===e.willChange||n&&!!e.filter&&"none"!==e.filter||["transform","perspective"].some(function(r){return e.willChange.includes(r)})||["paint","layout","strict","content"].some(function(r){var o=e.contain;return null!=o&&o.includes(r)})}function tN(){return/^((?!chrome|android).)*safari/i.test(Ase())}function nN(t){return["html","body","#document"].includes(ap(t))}function Ise(t){return oh(t)?t:t.contextElement}var Fse={x:1,y:1};function f0(t){var n=Ise(t);if(!cd(n))return Fse;var e=n.getBoundingClientRect(),i=Tse(n),r=i.width,o=i.height,s=i.fallback,a=(s?q2(e.width):e.width)/r,l=(s?q2(e.height):e.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}function Hg(t,n,e,i){var r,o;void 0===n&&(n=!1),void 0===e&&(e=!1);var s=t.getBoundingClientRect(),a=Ise(t),l=Fse;n&&(i?oh(i)&&(l=f0(i)):l=f0(t));var c=a?Oc(a):window,u=tN()&&e,h=(s.left+(u&&(null==(r=c.visualViewport)?void 0:r.offsetLeft)||0))/l.x,d=(s.top+(u&&(null==(o=c.visualViewport)?void 0:o.offsetTop)||0))/l.y,f=s.width/l.x,p=s.height/l.y;if(a)for(var m=Oc(a),w=i&&oh(i)?Oc(i):i,C=m.frameElement;C&&i&&w!==m;){var k=f0(C),E=C.getBoundingClientRect(),L=getComputedStyle(C);E.x+=(C.clientLeft+parseFloat(L.paddingLeft))*k.x,E.y+=(C.clientTop+parseFloat(L.paddingTop))*k.y,h*=k.x,d*=k.y,f*=k.x,p*=k.y,h+=E.x,d+=E.y,C=Oc(C).frameElement}return{width:f,height:p,top:d,right:h+f,bottom:d+p,left:h,x:h,y:d}}function lp(t){return((Ese(t)?t.ownerDocument:t.document)||window.document).documentElement}function Y2(t){return oh(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Lse(t){return Hg(lp(t)).left+Y2(t).scrollLeft}function Gb(t){if("html"===ap(t))return t;var n=t.assignedSlot||t.parentNode||Mse(t)&&t.host||lp(t);return Mse(n)?n.host:n}function Ose(t){var n=Gb(t);return nN(n)?n.ownerDocument.body:cd(n)&&X2(n)?n:Ose(n)}function qb(t,n){var e;void 0===n&&(n=[]);var i=Ose(t),r=i===(null==(e=t.ownerDocument)?void 0:e.body),o=Oc(i);return r?n.concat(o,o.visualViewport||[],X2(i)?i:[]):n.concat(i,qb(i))}function Nse(t,n,e){var i,l,c,u,h,d,f,p,m;if("viewport"===n)i=function(l,c){var u=Oc(l),h=lp(l),d=u.visualViewport,f=h.clientWidth,p=h.clientHeight,m=0,w=0;if(d){f=d.width,p=d.height;var C=tN();(!C||C&&"fixed"===c)&&(m=d.offsetLeft,w=d.offsetTop)}return{width:f,height:p,x:m,y:w}}(t,e);else if("document"===n)l=lp(t),c=lp(l),u=Y2(l),d=Wb(c.scrollWidth,c.clientWidth,(h=l.ownerDocument.body).scrollWidth,h.clientWidth),f=Wb(c.scrollHeight,c.clientHeight,h.scrollHeight,h.clientHeight),p=-u.scrollLeft+Lse(l),m=-u.scrollTop,"rtl"===ld(h).direction&&(p+=Wb(c.clientWidth,h.clientWidth)-d),i={width:d,height:f,x:p,y:m};else if(oh(n))i=function(l,c){var u=Hg(l,!0,"fixed"===c),h=u.top+l.clientTop,d=u.left+l.clientLeft,f=cd(l)?f0(l):{x:1,y:1};return{width:l.clientWidth*f.x,height:l.clientHeight*f.y,x:d*f.x,y:h*f.y}}(n,e);else{var r=_t({},n);if(tN()){var o,s,a=Oc(t);r.x-=(null==(o=a.visualViewport)?void 0:o.offsetLeft)||0,r.y-=(null==(s=a.visualViewport)?void 0:s.offsetTop)||0}i=r}return KO(i)}function Rse(t,n){return cd(t)&&"fixed"!==ld(t).position?n?n(t):t.offsetParent:null}function $se(t,n){for(var e=Oc(t),i=Rse(t,n);i&&BGe(i)&&"static"===ld(i).position;)i=Rse(i,n);return i&&("html"===ap(i)||"body"===ap(i)&&"static"===ld(i).position&&!eN(i))?e:i||function(r){for(var o=Gb(r);cd(o)&&!nN(o);){if(eN(o))return o;o=Gb(o)}return null}(t)||e}function HGe(t,n,e){var i=cd(n),r=lp(n),o=Hg(t,!0,"fixed"===e,n),s={scrollLeft:0,scrollTop:0},a={x:0,y:0};if(i||!i&&"fixed"!==e)if(("body"!==ap(n)||X2(r))&&(s=Y2(n)),cd(n)){var l=Hg(n,!0);a.x=l.x+n.clientLeft,a.y=l.y+n.clientTop}else r&&(a.x=Lse(r));return{x:o.left+s.scrollLeft-a.x,y:o.top+s.scrollTop-a.y,width:o.width,height:o.height}}var VGe={getClippingRect:function(t){var n=t.element,e=t.boundary,i=t.rootBoundary,r=t.strategy,o="clippingAncestors"===e?function(c,u){var h=u.get(c);if(h)return h;for(var d=qb(c).filter(function(k){return oh(k)&&"body"!==ap(k)}),f=null,p="fixed"===ld(c).position,m=p?Gb(c):c;oh(m)&&!nN(m);){var w=ld(m),C=eN(m);"fixed"===w.position?f=null:(p?C||f:C||"static"!==w.position||!f||!["absolute","fixed"].includes(f.position))?f=w:d=d.filter(function(k){return k!==m}),m=Gb(m)}return u.set(c,d),d}(n,this._c):[].concat(e),s=[].concat(Ti(o),[i]),l=s.reduce(function(c,u){var h=Nse(n,u,r);return c.top=Wb(h.top,c.top),c.right=Dse(h.right,c.right),c.bottom=Dse(h.bottom,c.bottom),c.left=Wb(h.left,c.left),c},Nse(n,s[0],r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){var n=t.rect,e=t.offsetParent,i=t.strategy,r=cd(e),o=lp(e);if(e===o)return n;var s={scrollLeft:0,scrollTop:0},a={x:1,y:1},l={x:0,y:0};if((r||!r&&"fixed"!==i)&&(("body"!==ap(e)||X2(o))&&(s=Y2(e)),cd(e))){var c=Hg(e);a=f0(e),l.x=c.x+e.clientLeft,l.y=c.y+e.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-s.scrollLeft*a.x+l.x,y:n.y*a.y-s.scrollTop*a.y+l.y}},isElement:oh,getDimensions:function(t){return cd(t)?Tse(t):t.getBoundingClientRect()},getOffsetParent:$se,getDocumentElement:lp,getScale:f0,getElementRects:function(t){var n=this;return Dr(Rn().mark(function e(){var i,r,o,s,a;return Rn().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return i=t.reference,r=t.floating,o=t.strategy,s=n.getOffsetParent||$se,a=n.getDimensions,l.t0=HGe,l.t1=i,l.next=6,s(r);case 6:return l.t2=l.sent,l.t3=o,l.t4=(0,l.t0)(l.t1,l.t2,l.t3),l.t5=_t,l.t6={x:0,y:0},l.next=13,a(r);case 13:return l.t7=l.sent,l.t8=(0,l.t5)(l.t6,l.t7),l.abrupt("return",{reference:l.t4,floating:l.t8});case 16:case"end":return l.stop()}},e)}))()},getClientRects:function(t){return Array.from(t.getClientRects())},isRTL:function(t){return"rtl"===ld(t).direction}};function WGe(t){var e=t.filterText,i=t.items,r=t.multiple,o=t.value,s=t.itemId,a=t.groupBy,l=t.filterSelectedItems,c=t.itemFilter,u=t.convertStringItemsToObjects,h=t.filterGroupedItems,d=t.label;if(i&&t.loadOptions)return i;if(!i)return[];i&&i.length>0&&"object"!==$n(i[0])&&(i=u(i));var f=i.filter(function(p){var m=c(p[d],e,p);return m&&r&&null!=o&&o.length&&(m=!o.some(function(w){return!!l&&w[s]===p[s]})),m});return a&&(f=h(f)),f}function GGe(t){return iN.apply(this,arguments)}function iN(){return iN=Dr(Rn().mark(function t(n){var e,i,r,o,s;return Rn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return e=n.dispatch,i=n.loadOptions,r=n.convertStringItemsToObjects,o=n.filterText,a.next=3,i(o).catch(function(l){console.warn("svelte-select loadOptions error :>> ",l),e("error",{type:"loadOptions",details:l})});case 3:if(!(s=a.sent)||s.cancelled){a.next=7;break}return s?(s&&s.length>0&&"object"!==$n(s[0])&&(s=r(s)),e("loaded",{items:s})):s=[],a.abrupt("return",{filteredItems:s,loading:!1,focused:!0,listOpen:!0});case 7:case"end":return a.stop()}},t)})),iN.apply(this,arguments)}function qGe(t){Ni(t,"svelte-qbd276","svg.svelte-qbd276{width:var(--chevron-icon-width, 20px);height:var(--chevron-icon-width, 20px);color:var(--chevron-icon-colour, currentColor)}")}function XGe(t){var n,e;return{c:function(){n=Gh("svg"),ne(e=Gh("path"),"fill","currentColor"),ne(e,"d","M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747\n 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0\n 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502\n 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0\n 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"),ne(n,"width","100%"),ne(n,"height","100%"),ne(n,"viewBox","0 0 20 20"),ne(n,"focusable","false"),ne(n,"aria-hidden","true"),ne(n,"class","svelte-qbd276")},m:function(i,r){nt(i,n,r),Ie(n,e)},p:an,i:an,o:an,d:function(i){i&&tt(n)}}}var YGe=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,null,XGe,Os,{},qGe),r}return Xe(e)}();function KGe(t){Ni(t,"svelte-whdbu1","svg.svelte-whdbu1{width:var(--clear-icon-width, 20px);height:var(--clear-icon-width, 20px);color:var(--clear-icon-color, currentColor)}")}function JGe(t){var n,e;return{c:function(){n=Gh("svg"),ne(e=Gh("path"),"fill","currentColor"),ne(e,"d","M34.923,37.251L24,26.328L13.077,37.251L9.436,33.61l10.923-10.923L9.436,11.765l3.641-3.641L24,19.047L34.923,8.124\n l3.641,3.641L27.641,22.688L38.564,33.61L34.923,37.251z"),ne(n,"width","100%"),ne(n,"height","100%"),ne(n,"viewBox","-2 -2 50 50"),ne(n,"focusable","false"),ne(n,"aria-hidden","true"),ne(n,"role","presentation"),ne(n,"class","svelte-whdbu1")},m:function(i,r){nt(i,n,r),Ie(n,e)},p:an,i:an,o:an,d:function(i){i&&tt(n)}}}var K2=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,null,JGe,Os,{},KGe),r}return Xe(e)}();function QGe(t){Ni(t,"svelte-1p3nqvd",".loading.svelte-1p3nqvd{width:var(--spinner-width, 20px);height:var(--spinner-height, 20px);color:var(--spinner-color, var(--icons-color));animation:svelte-1p3nqvd-rotate 0.75s linear infinite;transform-origin:center center;transform:none}.circle_path.svelte-1p3nqvd{stroke-dasharray:90;stroke-linecap:round}@keyframes svelte-1p3nqvd-rotate{100%{transform:rotate(360deg)}}")}function ZGe(t){var n,e;return{c:function(){n=Gh("svg"),ne(e=Gh("circle"),"class","circle_path svelte-1p3nqvd"),ne(e,"cx","50"),ne(e,"cy","50"),ne(e,"r","20"),ne(e,"fill","none"),ne(e,"stroke","currentColor"),ne(e,"stroke-width","5"),ne(e,"stroke-miterlimit","10"),ne(n,"class","loading svelte-1p3nqvd"),ne(n,"viewBox","25 25 50 50")},m:function(i,r){nt(i,n,r),Ie(n,e)},p:an,i:an,o:an,d:function(i){i&&tt(n)}}}var eqe=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,null,ZGe,Os,{},QGe),r}return Xe(e)}();function tqe(t){Ni(t,"svelte-tyxmms",".svelte-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{--borderRadius:var(--border-radius);--clearSelectColor:var(--clear-select-color);--clearSelectWidth:var(--clear-select-width);--disabledBackground:var(--disabled-background);--disabledBorderColor:var(--disabled-border-color);--disabledColor:var(--disabled-color);--disabledPlaceholderColor:var(--disabled-placeholder-color);--disabledPlaceholderOpacity:var(--disabled-placeholder-opacity);--errorBackground:var(--error-background);--errorBorder:var(--error-border);--groupItemPaddingLeft:var(--group-item-padding-left);--groupTitleColor:var(--group-title-color);--groupTitleFontSize:var(--group-title-font-size);--groupTitleFontWeight:var(--group-title-font-weight);--groupTitlePadding:var(--group-title-padding);--groupTitleTextTransform:var(--group-title-text-transform);--indicatorColor:var(--chevron-color);--indicatorHeight:var(--chevron-height);--indicatorWidth:var(--chevron-width);--inputColor:var(--input-color);--inputLeft:var(--input-left);--inputLetterSpacing:var(--input-letter-spacing);--inputMargin:var(--input-margin);--inputPadding:var(--input-padding);--itemActiveBackground:var(--item-active-background);--itemColor:var(--item-color);--itemFirstBorderRadius:var(--item-first-border-radius);--itemHoverBG:var(--item-hover-bg);--itemHoverColor:var(--item-hover-color);--itemIsActiveBG:var(--item-is-active-bg);--itemIsActiveColor:var(--item-is-active-color);--itemIsNotSelectableColor:var(--item-is-not-selectable-color);--itemPadding:var(--item-padding);--listBackground:var(--list-background);--listBorder:var(--list-border);--listBorderRadius:var(--list-border-radius);--listEmptyColor:var(--list-empty-color);--listEmptyPadding:var(--list-empty-padding);--listEmptyTextAlign:var(--list-empty-text-align);--listMaxHeight:var(--list-max-height);--listPosition:var(--list-position);--listShadow:var(--list-shadow);--listZIndex:var(--list-z-index);--multiItemBG:var(--multi-item-bg);--multiItemBorderRadius:var(--multi-item-border-radius);--multiItemDisabledHoverBg:var(--multi-item-disabled-hover-bg);--multiItemDisabledHoverColor:var(--multi-item-disabled-hover-color);--multiItemHeight:var(--multi-item-height);--multiItemMargin:var(--multi-item-margin);--multiItemPadding:var(--multi-item-padding);--multiSelectInputMargin:var(--multi-select-input-margin);--multiSelectInputPadding:var(--multi-select-input-padding);--multiSelectPadding:var(--multi-select-padding);--placeholderColor:var(--placeholder-color);--placeholderOpacity:var(--placeholder-opacity);--selectedItemPadding:var(--selected-item-padding);--spinnerColor:var(--spinner-color);--spinnerHeight:var(--spinner-height);--spinnerWidth:var(--spinner-width);--internal-padding:0 0 0 16px;border:var(--border, 1px solid #d8dbdf);border-radius:var(--border-radius, 6px);min-height:var(--height, 42px);position:relative;display:flex;align-items:stretch;padding:var(--padding, var(--internal-padding));background:var(--background, #fff);margin:var(--margin, 0);width:var(--width, 100%);font-size:var(--font-size, 16px)}.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{box-sizing:var(--box-sizing, border-box)}.svelte-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:hover{border:var(--border-hover, 1px solid #b2b8bf)}.value-container.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;flex:1 1 0%;flex-wrap:wrap;align-items:center;gap:5px 10px;padding:5px 0;position:relative;overflow:hidden;align-self:stretch}.prepend.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.indicators.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;flex-shrink:0;align-items:center}input.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{position:absolute;cursor:default;border:none;color:var(--input-color, var(--item-color));padding:var(--input-padding, 0);letter-spacing:var(--input-letter-spacing, inherit);margin:var(--input-margin, 0);min-width:10px;top:0;right:0;bottom:0;left:0;background:transparent;font-size:var(--font-size, 16px)}.svelte-tyxmms:not(.multi)>.value-container.svelte-tyxmms>input.svelte-tyxmms{width:100%;height:100%}input.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms::placeholder{color:var(--placeholder-color, #78848f);opacity:var(--placeholder-opacity, 1)}input.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:focus{outline:none}.svelte-select.focused.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{border:var(--border-focused, 1px solid #006fe8);border-radius:var(--border-radius-focused, var(--border-radius, 6px))}.disabled.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{background:var(--disabled-background, #ebedef);border-color:var(--disabled-border-color, #ebedef);color:var(--disabled-color, #c1c6cc)}.disabled.svelte-tyxmms input.svelte-tyxmms.svelte-tyxmms::placeholder{color:var(--disabled-placeholder-color, #c1c6cc);opacity:var(--disabled-placeholder-opacity, 1)}.selected-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{position:relative;overflow:var(--selected-item-overflow, hidden);padding:var(--selected-item-padding, 0 20px 0 0);text-overflow:ellipsis;white-space:nowrap;color:var(--selected-item-color, inherit);font-size:var(--font-size, 16px)}.multi.svelte-tyxmms .selected-item.svelte-tyxmms.svelte-tyxmms{position:absolute;line-height:var(--height, 42px);height:var(--height, 42px)}.selected-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:focus{outline:none}.hide-selected-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{opacity:0}.icon.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;align-items:center;justify-content:center}.clear-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{all:unset;display:flex;align-items:center;justify-content:center;width:var(--clear-select-width, 40px);height:var(--clear-select-height, 100%);color:var(--clear-select-color, var(--icons-color));margin:var(--clear-select-margin, 0);pointer-events:all;flex-shrink:0}.clear-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:focus{outline:var(--clear-select-focus-outline, 1px solid #006fe8)}.loading.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{width:var(--loading-width, 40px);height:var(--loading-height);color:var(--loading-color, var(--icons-color));margin:var(--loading--margin, 0);flex-shrink:0}.chevron.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{width:var(--chevron-width, 40px);height:var(--chevron-height, 40px);background:var(--chevron-background, transparent);pointer-events:var(--chevron-pointer-events, none);color:var(--chevron-color, var(--icons-color));border:var(--chevron-border, 0 0 0 1px solid #d8dbdf);flex-shrink:0}.multi.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{padding:var(--multi-select-padding, var(--internal-padding))}.multi.svelte-tyxmms input.svelte-tyxmms.svelte-tyxmms{padding:var(--multi-select-input-padding, 0);position:relative;margin:var(--multi-select-input-margin, 5px 0);flex:1 1 40px}.svelte-select.error.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{border:var(--error-border, 1px solid #ff2d55);background:var(--error-background, #fff)}.a11y-text.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{z-index:9999;border:0px;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0px;white-space:nowrap}.multi-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{background:var(--multi-item-bg, #ebedef);margin:var(--multi-item-margin, 0);outline:var(--multi-item-outline, 1px solid #ddd);border-radius:var(--multi-item-border-radius, 4px);height:var(--multi-item-height, 25px);line-height:var(--multi-item-height, 25px);display:flex;cursor:default;padding:var(--multi-item-padding, 0 5px);overflow:hidden;gap:var(--multi-item-gap, 4px);outline-offset:-1px;max-width:var(--multi-max-width, none);color:var(--multi-item-color, var(--item-color))}.multi-item.disabled.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:hover{background:var(--multi-item-disabled-hover-bg, #ebedef);color:var(--multi-item-disabled-hover-color, #c1c6cc)}.multi-item-text.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.multi-item-clear.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;align-items:center;justify-content:center;--clear-icon-color:var(--multi-item-clear-icon-color, #000)}.multi-item.active.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{outline:var(--multi-item-active-outline, 1px solid #006fe8)}.svelte-select-list.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{box-shadow:var(--list-shadow, 0 2px 3px 0 rgba(44, 62, 80, 0.24));border-radius:var(--list-border-radius, 4px);max-height:var(--list-max-height, 252px);overflow-y:auto;background:var(--list-background, #fff);position:var(--list-position, absolute);z-index:var(--list-z-index, 2);border:var(--list-border)}.prefloat.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{opacity:0;pointer-events:none}.list-group-title.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{color:var(--group-title-color, #8f8f8f);cursor:default;font-size:var(--group-title-font-size, 16px);font-weight:var(--group-title-font-weight, 600);height:var(--height, 42px);line-height:var(--height, 42px);padding:var(--group-title-padding, 0 20px);text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap;text-transform:var(--group-title-text-transform, uppercase)}.empty.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{text-align:var(--list-empty-text-align, center);padding:var(--list-empty-padding, 20px 0);color:var(--list-empty-color, #78848f)}.item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{cursor:default;height:var(--item-height, var(--height, 42px));line-height:var(--item-line-height, var(--height, 42px));padding:var(--item-padding, 0 20px);color:var(--item-color, inherit);text-overflow:ellipsis;overflow:hidden;white-space:nowrap;transition:var(--item-transition, all 0.2s);align-items:center;width:100%}.item.group-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{padding-left:var(--group-item-padding-left, 40px)}.item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:active{background:var(--item-active-background, #b9daff)}.item.active.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{background:var(--item-is-active-bg, #007aff);color:var(--item-is-active-color, #fff)}.item.first.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{border-radius:var(--item-first-border-radius, 4px 4px 0 0)}.item.hover.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:not(.active){background:var(--item-hover-bg, #e7f2ff);color:var(--item-hover-color, inherit)}.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.item.hover.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.item.active.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:active{color:var(--item-is-not-selectable-color, #999);background:transparent}.required.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{opacity:0;z-index:-1;position:absolute;top:0;left:0;bottom:0;right:0}")}var nqe=function(t){return{value:8&t[0]}},Pse=function(t){return{value:t[3]}},iqe=function(t){return{listOpen:64&t[0]}},jse=function(t){return{listOpen:t[6]}},rqe=function(t){return{}},Bse=function(t){return{}},oqe=function(t){return{}},Hse=function(t){return{}},sqe=function(t){return{selection:8&t[0]}},Vse=function(t){return{selection:t[3]}};function zse(t,n,e){var i=t.slice();return i[127]=n[e],i[129]=e,i}var aqe=function(t){return{}},Use=function(t){return{}},lqe=function(t){return{selection:8&t[0]}},Wse=function(t){return{selection:t[127],index:t[129]}},cqe=function(t){return{}},Gse=function(t){return{}},uqe=function(t){return{}},qse=function(t){return{}};function Xse(t,n,e){var i=t.slice();return i[127]=n[e],i[129]=e,i}var hqe=function(t){return{item:16777216&t[0]}},Yse=function(t){return{item:t[127],index:t[129]}},dqe=function(t){return{filteredItems:16777216&t[0]}},Kse=function(t){return{filteredItems:t[24]}};function Jse(t){var n,e,i,r,o,s,a=[gqe,pqe,fqe],l=[];function c(u,h){return u[51].list?0:u[24].length>0?1:u[19]?-1:2}return~(e=c(t))&&(i=l[e]=a[e](t)),{c:function(){n=Be("div"),i&&i.c(),ne(n,"class","svelte-select-list svelte-tyxmms"),en(n,"prefloat",t[28])},m:function(u,h){nt(u,n,h),~e&&l[e].m(n,null),t[91](n),r=!0,o||(s=[Ra(t[49].call(null,n)),rn(n,"scroll",t[41]),rn(n,"pointerdown",Kd(t[50])),rn(n,"pointerup",Jd(Kd(t[86])))],o=!0)},p:function(u,h){var d=e;(e=c(u))===d?~e&&l[e].p(u,h):(i&&(cn(),Ee(l[d],1,1,function(){l[d]=null}),un()),~e?((i=l[e])?i.p(u,h):(i=l[e]=a[e](u)).c(),_e(i,1),i.m(n,null)):i=null),(!r||268435456&h[0])&&en(n,"prefloat",u[28])},i:function(u){r||(_e(i),r=!0)},o:function(u){Ee(i),r=!1},d:function(u){u&&tt(n),~e&&l[e].d(),t[91](null),o=!1,Fo(s)}}}function fqe(t){var n,e,i=t[83].empty,r=Gs(i,t,t[82],qse),o=r||{c:function(){(e=Be("div")).textContent="No options",ne(e,"class","empty svelte-tyxmms")},m:function(s,a){nt(s,e,a)},p:an,d:function(s){s&&tt(e)}};return{c:function(){o&&o.c()},m:function(s,a){o&&o.m(s,a),n=!0},p:function(s,a){r&&r.p&&(!n||1048576&a[2])&&Xs(r,i,s,s[82],n?qs(i,s[82],a,uqe):Ys(s[82]),qse)},i:function(s){n||(_e(o,s),n=!0)},o:function(s){Ee(o,s),n=!1},d:function(s){o&&o.d(s)}}}function pqe(t){for(var n,e,i=t[24],r=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:1;clearTimeout(d),d=setTimeout(bt,vi)}:Wn,Li=n.debounceWait,Fi=void 0===Li?300:Li,Yr=n.hideEmptyState,xo=void 0!==Yr&&Yr,ji=n.inputAttributes,zr=void 0===ji?{}:ji,Ke=n.listAutoWidth,qt=void 0===Ke||Ke,hn=n.showChevron,kn=void 0!==hn&&hn,Fn=n.listOffset,ki=void 0===Fn?5:Fn,rr=n.hoverItemIndex,ai=void 0===rr?0:rr,_i=n.floatingConfig,mi=void 0===_i?{}:_i,Ur=n.class,eo=void 0===Ur?"":Ur;function ts(bt){var vi=[],Tr={};bt.forEach(function(Dh){var ho=uo(Dh);vi.includes(ho)||(vi.push(ho),Tr[ho]=[],ho&&Tr[ho].push(Object.assign(da(ho,Dh),{id:ho,groupHeader:!0,selectable:vo}))),Tr[ho].push(Object.assign({groupItem:!!ho},Dh))});var pa=[];return oo(vi).forEach(function(Dh){Tr[Dh]&&pa.push.apply(pa,Ti(Tr[Dh]))}),pa}function Da(){var bt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,vi=arguments.length>1?arguments[1]:void 0;e(7,ai=bt<0?0:bt),!vi&&uo&&c[ai]&&!c[ai].selectable&&Vo(1)}function bh(){var bt=!0;if(se){var vi=[],Tr=[];se.forEach(function(pa){vi.includes(pa[Zn])?bt=!1:(vi.push(pa[Zn]),Tr.push(pa))}),bt||e(3,se=Tr)}return bt}function bu(bt){var vi=bt?bt[Zn]:se[Zn];return Pn.find(function(Tr){return Tr[Zn]===vi})}function Ta(bt){return Yl.apply(this,arguments)}function Yl(){return(Yl=Dr(Rn().mark(function bt(vi){var Tr;return Rn().wrap(function(pa){for(;;)switch(pa.prev=pa.next){case 0:Tr=se[vi],e(3,se=1===se.length?void 0:se.filter(function(Dh){return Dh!==Tr})),oe("clear",Tr);case 3:case"end":return pa.stop()}},bt)}))).apply(this,arguments)}function _h(bt){var vi;ct&&Z===(null===(vi=document)||void 0===vi?void 0:vi.activeElement)||(bt&&oe("focus",bt),Z.focus(),e(2,ct=!0))}function Qs(bt){return wh.apply(this,arguments)}function wh(){return(wh=Dr(Rn().mark(function bt(vi){return Rn().wrap(function(Tr){for(;;)switch(Tr.prev=Tr.next){case 0:if(!Oi&&!H_){Tr.next=2;break}return Tr.abrupt("return");case 2:(ut||ct)&&(oe("blur",vi),xh(),e(2,ct=!1),e(26,f=void 0),Z.blur());case 3:case"end":return Tr.stop()}},bt)}))).apply(this,arguments)}function xh(){e(4,ke=""),e(6,ut=!1)}k=Dr(Rn().mark(function bt(){return Rn().wrap(function(vi){for(;;)switch(vi.prev=vi.next){case 0:e(78,p=se),e(79,m=ke),e(80,w=ae);case 3:case"end":return vi.stop()}},bt)})),Dv().$$.before_update.push(k),Zc(function(){ut&&e(2,ct=!0),ct&&Z&&Z.focus()});var Dn,QD=n.ariaValues,Ge=void 0===QD?function(bt){return"Option ".concat(bt,", selected.")}:QD,Dt=n.ariaListOpen,tn=void 0===Dt?function(bt,vi){return"You are currently focused on option ".concat(bt,". There are ").concat(vi," results available.")}:Dt,vn=n.ariaFocused,Cn=void 0===vn?function(){return"Select is focused, type to refine list, press down to open the menu."}:vn,li=null;function Ei(){clearTimeout(Dn),Dn=setTimeout(function(){Oi=!1},100)}Gu(function(){var bt;null===(bt=li)||void 0===bt||bt.remove()});var Oi=!1;function ns(bt){bt&&!1!==bt.selectable&&function(vi){if(vi){e(4,ke="");var Tr=Object.assign({},vi);if(Tr.groupHeader&&!Tr.selectable)return;e(3,se=ae?se?se.concat([Tr]):[Tr]:e(3,se=Tr)),setTimeout(function(){yo&&xh(),e(26,f=void 0),oe("change",se),oe("select",vi)})}}(bt)}function Zs(bt){Oi||e(7,ai=bt)}function ms(bt){var pa,vi=bt.item,Tr=bt.i;if(!1!==vi?.selectable){if(se&&!ae&&se[Zn]===vi[Zn])return xh();((pa=vi).groupHeader&&pa.selectable||pa.selectable||!pa.hasOwnProperty("selectable"))&&(e(7,ai=Tr),ns(vi)),H_=!1}}function Vo(bt){if(0===c.filter(function(Tr){return!Object.hasOwn(Tr,"selectable")||!0===Tr.selectable}).length)return e(7,ai=0);e(7,bt>0&&ai===c.length-1?ai=0:bt<0&&0===ai?ai=c.length-1:ai+=bt);var vi=c[ai];vi&&!1===vi.selectable&&(1!==bt&&-1!==bt||Vo(bt))}var Kl=Ch,xd=Ch;function Ch(bt){return{update:function(vi){vi.scroll&&(Ei(),bt.scrollIntoView({behavior:"auto",block:"nearest"}))}}}var to={strategy:"absolute",placement:"bottom-start",middleware:[$Ge(ki),RGe(),jGe()],autoUpdate:!1},dc=di(function UGe(t){var n,e,i={autoUpdate:!0},r=t,o=function(l){return _t(_t(_t({},i),t||{}),l||{})},s=function(l){var c,u,h,d,f,p;n&&e&&(r=o(l),(c=n,u=e,h=r,d=new Map,f=_t({platform:VGe},h),p=_t(_t({},f.platform),{},{_c:d}),EGe(c,u,_t(_t({},f),{},{platform:p}))).then(function(c){var u;Object.assign(e.style,{position:c.strategy,left:"".concat(c.x,"px"),top:"".concat(c.y,"px")}),null!==(u=r)&&void 0!==u&&u.onComputed&&r.onComputed(c)}))};return[function(l){if("subscribe"in l)return function(l){Gu(l.subscribe(function(c){void 0===n?(n=c,s()):(Object.assign(n,c),s())}))}(l),{};n=l,s()},function(l,c){var u;e=l,r=o(c),setTimeout(function(){return s(c)},0),s(c);var h=function(){u&&(u(),u=void 0)},d=function(){var p=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:r||{}).autoUpdate;if(h(),!1!==p)return function zGe(t,n,e,i){void 0===i&&(i={});var o=i.ancestorScroll,a=i.ancestorResize,l=void 0===a||a,c=i.elementResize,u=void 0===c||c,h=i.animationFrame,d=void 0!==h&&h,f=(void 0===o||o)&&!d,p=f||l?[].concat(Ti(oh(t)?qb(t):t.contextElement?qb(t.contextElement):[]),Ti(qb(n))):[];p.forEach(function(E){f&&E.addEventListener("scroll",e,{passive:!0}),l&&E.addEventListener("resize",e)});var m,w=null;if(u){var C=!0;w=new ResizeObserver(function(){C||e(),C=!1}),oh(t)&&!d&&w.observe(t),oh(t)||!t.contextElement||d||w.observe(t.contextElement),w.observe(n)}var k=d?Hg(t):null;return d&&function E(){var L=Hg(t);!k||L.x===k.x&&L.y===k.y&&L.width===k.width&&L.height===k.height||e(),k=L,m=requestAnimationFrame(E)}(),e(),function(){var E;p.forEach(function(L){f&&L.removeEventListener("scroll",e),l&&L.removeEventListener("resize",e)}),null==(E=w)||E.disconnect(),w=null,d&&cancelAnimationFrame(m)}}(n,e,function(){return s(r)},!0===p?{}:p)};return u=d(),{update:function(f){s(f),u=d(f)},destroy:function(){h()}}},s]}(to),3),_u=dc[0],Sh=dc[1],Cd=dc[2],kh=!0,H_=!1;return t.$$set=function(bt){"justValue"in bt&&e(53,re=bt.justValue),"filter"in bt&&e(54,ue=bt.filter),"getItems"in bt&&e(55,De=bt.getItems),"id"in bt&&e(56,ge=bt.id),"name"in bt&&e(8,le=bt.name),"container"in bt&&e(0,z=bt.container),"input"in bt&&e(1,Z=bt.input),"multiple"in bt&&e(9,ae=bt.multiple),"multiFullItemClearable"in bt&&e(10,Oe=bt.multiFullItemClearable),"disabled"in bt&&e(11,Ve=bt.disabled),"focused"in bt&&e(2,ct=bt.focused),"value"in bt&&e(3,se=bt.value),"filterText"in bt&&e(4,ke=bt.filterText),"placeholder"in bt&&e(57,gt=bt.placeholder),"placeholderAlwaysShow"in bt&&e(58,zt=bt.placeholderAlwaysShow),"items"in bt&&e(52,Pn=bt.items),"label"in bt&&e(12,Sn=bt.label),"itemFilter"in bt&&e(59,On=bt.itemFilter),"groupBy"in bt&&e(60,uo=bt.groupBy),"groupFilter"in bt&&e(61,oo=bt.groupFilter),"groupHeaderSelectable"in bt&&e(62,vo=bt.groupHeaderSelectable),"itemId"in bt&&e(13,Zn=bt.itemId),"loadOptions"in bt&&e(63,Ii=bt.loadOptions),"containerStyles"in bt&&e(14,Xr=bt.containerStyles),"hasError"in bt&&e(15,gs=bt.hasError),"filterSelectedItems"in bt&&e(64,ei=bt.filterSelectedItems),"required"in bt&&e(16,Vi=bt.required),"closeListOnChange"in bt&&e(65,yo=bt.closeListOnChange),"createGroupHeaderItem"in bt&&e(66,da=bt.createGroupHeaderItem),"searchable"in bt&&e(17,fa=bt.searchable),"inputStyles"in bt&&e(18,cl=bt.inputStyles),"clearable"in bt&&e(68,Ue=bt.clearable),"loading"in bt&&e(5,ft=bt.loading),"listOpen"in bt&&e(6,ut=bt.listOpen),"debounce"in bt&&e(69,Si=bt.debounce),"debounceWait"in bt&&e(70,Fi=bt.debounceWait),"hideEmptyState"in bt&&e(19,xo=bt.hideEmptyState),"inputAttributes"in bt&&e(71,zr=bt.inputAttributes),"listAutoWidth"in bt&&e(72,qt=bt.listAutoWidth),"showChevron"in bt&&e(20,kn=bt.showChevron),"listOffset"in bt&&e(73,ki=bt.listOffset),"hoverItemIndex"in bt&&e(7,ai=bt.hoverItemIndex),"floatingConfig"in bt&&e(74,mi=bt.floatingConfig),"class"in bt&&e(21,eo=bt.class),"ariaValues"in bt&&e(75,Ge=bt.ariaValues),"ariaListOpen"in bt&&e(76,tn=bt.ariaListOpen),"ariaFocused"in bt&&e(77,Cn=bt.ariaFocused),"$$scope"in bt&&e(82,B=bt.$$scope)},t.$$.update=function(){var bt,vi,Tr,pa,Dh,ho;8&t.$$.dirty[0]|2097152&t.$$.dirty[1]&&se&&function(){if("string"==typeof se){var ho,ga=(Pn||[]).find(function(wu){return wu[Zn]===se});e(3,se=ga||(rc(ho={},Zn,se),rc(ho,"label",se),ho))}else ae&&Array.isArray(se)&&se.length>0&&e(3,se=se.map(function(wu){return"string"==typeof wu?{value:wu,label:wu}:wu}))}(),131072&t.$$.dirty[0]|512&t.$$.dirty[2]&&(!zr&&fa||(e(27,C=Object.assign({autocapitalize:"none",autocomplete:"off",autocorrect:"off",spellcheck:!1,tabindex:0,type:"text","aria-autocomplete":"list"},zr)),ge&&e(27,C.id=ge,C),fa||e(27,C.readonly=!0,C))),512&t.$$.dirty[0]&&ae&&se&&(Array.isArray(se)?e(3,se=Ti(se)):e(3,se=[se])),512&t.$$.dirty[0]|262144&t.$$.dirty[2]&&w&&!ae&&se&&e(3,se=null),520&t.$$.dirty[0]&&ae&&se&&se.length>1&&bh(),8&t.$$.dirty[0]&&se&&(ae?JSON.stringify(se)!==JSON.stringify(p)&&bh()&&oe("input",se):p&&JSON.stringify(se[Zn])===JSON.stringify(p[Zn])||oe("input",se)),520&t.$$.dirty[0]|65536&t.$$.dirty[2]&&!se&&ae&&p&&oe("input",se),6&t.$$.dirty[0]&&!ct&&Z&&xh(),16&t.$$.dirty[0]|131072&t.$$.dirty[2]&&ke!==m&&(Ii||0!==ke.length)&&(Ii?Si(Dr(Rn().mark(function ho(){var ga;return Rn().wrap(function(wu){for(;;)switch(wu.prev=wu.next){case 0:return e(5,ft=!0),wu.next=3,De({dispatch:oe,loadOptions:Ii,convertStringItemsToObjects:aae,filterText:ke});case 3:(ga=wu.sent)?(e(5,ft=ga.loading),e(6,ut=ut?ga.listOpen:ke.length>0),e(2,ct=ut&&ga.focused),e(52,Pn=uo?ts(ga.filteredItems):ga.filteredItems)):(e(5,ft=!1),e(2,ct=!0),e(6,ut=!0));case 5:case"end":return wu.stop()}},ho)})),Fi):(e(6,ut=!0),ae&&e(26,f=void 0))),12824&t.$$.dirty[0]|815792128&t.$$.dirty[1]|6&t.$$.dirty[2]&&e(24,c=ue({loadOptions:Ii,filterText:ke,items:Pn,multiple:ae,value:se,itemId:Zn,groupBy:uo,label:Sn,filterSelectedItems:ei,itemFilter:On,convertStringItemsToObjects:aae,filterGroupedItems:ts})),16777800&t.$$.dirty[0]&&!ae&&ut&&se&&c&&(bt=c.findIndex(function(ho){return ho[Zn]===se[Zn]}),Da(bt,!0)),576&t.$$.dirty[0]&&ut&&ae&&e(7,ai=0),16&t.$$.dirty[0]&&ke&&e(7,ai=0),128&t.$$.dirty[0]&&oe("hoverItem",ai),520&t.$$.dirty[0]&&e(25,i=ae?se&&se.length>0:se),33554448&t.$$.dirty[0]&&e(35,r=i&&ke.length>0),33556512&t.$$.dirty[0]|64&t.$$.dirty[2]&&e(34,o=i&&Ue&&!Ve&&!ft),520&t.$$.dirty[0]|201326592&t.$$.dirty[1]&&e(33,s=zt&&ae||ae&&0===(null===(vi=se)||void 0===vi?void 0:vi.length)?gt:se?"":gt),520&t.$$.dirty[0]&&e(32,a=se?(Tr=ae&&se.length>0?se.map(function(ho){return ho[Sn]}).join(", "):se[Sn],Ge(Tr)):""),16777412&t.$$.dirty[0]&&e(31,l=function(){if(!c||0===c.length)return"";var ho=c[ai];return ut&&ho?tn(ho[Sn],c?c.length:0):Cn()}()),2097152&t.$$.dirty[1]&&(ho=Pn)&&0!==ho.length&&!ho.some(function(ga){return"object"!==$n(ga)})&&se&&(ae?!se.some(function(ga){return!ga||!ga[Zn]}):se[Zn])&&(Array.isArray(se)?e(3,se=se.map(function(ga){return bu(ga)||ga})):e(3,se=bu()||se)),8712&t.$$.dirty[0]&&e(53,re=ae?se?se.map(function(ho){return ho[Zn]}):null:se&&se[Zn]),520&t.$$.dirty[0]|65536&t.$$.dirty[2]&&(ae||!p||se||oe("input",se)),16777800&t.$$.dirty[0]&&ut&&c&&!ae&&!se&&Da(),16777216&t.$$.dirty[0]&&function(ho){ut&&oe("filter",ho)}(c),1&t.$$.dirty[0]|4096&t.$$.dirty[2]&&z&&void 0===(null===(pa=mi)||void 0===pa?void 0:pa.autoUpdate)&&e(81,to.autoUpdate=!0,to),1&t.$$.dirty[0]|528384&t.$$.dirty[2]&&z&&mi&&Cd(Object.assign(to,mi)),8388608&t.$$.dirty[0]&&e(30,u=!!li),8388672&t.$$.dirty[0]&&function(ho,ga){if(!ho||!ga)return e(28,kh=!0);setTimeout(function(){e(28,kh=!1)},0)}(li,ut),8388673&t.$$.dirty[0]&&ut&&z&&li&&(Dh=z.getBoundingClientRect().width,e(23,li.style.width=qt?Dh+"px":"auto",li)),128&t.$$.dirty[0]&&e(29,h=ai),70&t.$$.dirty[0]&&Z&&ut&&!ct&&_h()},[z,Z,ct,se,ke,ft,ut,ai,le,ae,Oe,Ve,Sn,Zn,Xr,gs,Vi,fa,cl,xo,kn,eo,function(){oe("clear",se),e(3,se=void 0),xh(),_h()},li,c,i,f,C,kh,h,u,l,a,s,o,r,Ta,function(bt){if(ct)switch(bt.stopPropagation(),bt.key){case"Escape":bt.preventDefault(),xh();break;case"Enter":if(bt.preventDefault(),ut){if(0===c.length)break;if(se&&!ae&&se[Zn]===c[ai][Zn]){xh();break}ns(c[ai])}break;case"ArrowDown":bt.preventDefault(),ut?Vo(1):(e(6,ut=!0),e(26,f=void 0));break;case"ArrowUp":bt.preventDefault(),ut?Vo(-1):(e(6,ut=!0),e(26,f=void 0));break;case"Tab":if(ut&&ct){if(0===c.length||se&&se[Zn]===c[ai][Zn])return xh();bt.preventDefault(),ns(c[ai]),xh()}break;case"Backspace":if(!ae||ke.length>0)return;if(ae&&se&&se.length>0){if(Ta(void 0!==f?f:se.length-1),0===f||void 0===f)break;e(26,f=se.length>f?f-1:void 0)}break;case"ArrowLeft":if(!se||!ae||ke.length>0)return;void 0===f?e(26,f=se.length-1):se.length>f&&0!==f&&e(26,f-=1);break;case"ArrowRight":if(!se||!ae||ke.length>0||void 0===f)return;f===se.length-1?e(26,f=void 0):f",">="].map(function(ge){return{value:ge,label:ge}}),re=[{value:"asc",label:"ascending"},{value:"desc",label:"descending"}],ce=null!==(i=G)&&void 0!==i&&null!==(r=i.filter)&&void 0!==r&&r.path?Nb(G.filter.path):null,ue=null!==(o=G)&&void 0!==o&&null!==(s=o.filter)&&void 0!==s&&s.relation?fe.find(function(ge){var we;return ge.value===(null===(we=G.filter)||void 0===we?void 0:we.relation)}):null,pe=(null===(a=G)||void 0===a||null===(l=a.filter)||void 0===l?void 0:l.value)||"",De=null!==(c=G)&&void 0!==c&&null!==(u=c.sort)&&void 0!==u&&u.path?Nb(G.sort.path):null,ie=null!==(h=G)&&void 0!==h&&null!==(d=h.sort)&&void 0!==d&&d.direction?re.find(function(ge){var we;return ge.value===(null===(we=G.sort)||void 0===we?void 0:we.direction)}):null;return t.$$set=function(ge){"json"in ge&&e(11,L=ge.json),"queryOptions"in ge&&e(10,G=ge.queryOptions),"onChange"in ge&&e(12,oe=ge.onChange)},t.$$.update=function(){var ge,we,le,Fe,z,Q,Z,me,ae,Te,Oe,Ze,Ve,wt,ct,Ct,se,Se,ke,Qe,gt;2048&t.$$.dirty&&e(15,f=Array.isArray(L)),34816&t.$$.dirty&&e(14,p=f?wO(L):[]),34816&t.$$.dirty&&e(13,m=f?wO(L,!0):[]),16384&t.$$.dirty&&e(7,w=p.map(Nb)),8192&t.$$.dirty&&e(6,C=m?m.map(Nb):[]),1088&t.$$.dirty&&e(5,k=null!==(ge=G)&&void 0!==ge&&null!==(we=ge.projection)&&void 0!==we&&we.paths&&C?G.projection.paths.map(function(ke){return C.find(function(Qe){return Mr(Qe.value,ke)})}).filter(function(ke){return!!ke}):null),1&t.$$.dirty&&(Fe=(null===(le=ce)||void 0===le?void 0:le.value)||null,Mr(null===(z=G)||void 0===z||null===(Q=z.filter)||void 0===Q?void 0:Q.path,Fe)||(E("changeFilterPath",Fe),e(10,G=Ju(G,["filter","path"],Fe,!0)),oe(G))),2&t.$$.dirty&&(me=(null===(Z=ue)||void 0===Z?void 0:Z.value)||null,Mr(null===(ae=G)||void 0===ae||null===(Te=ae.filter)||void 0===Te?void 0:Te.relation,me)||(E("changeFilterRelation",me),e(10,G=Ju(G,["filter","relation"],me,!0)),oe(G))),4&t.$$.dirty&&(Mr(null===(Ze=G)||void 0===Ze||null===(Ve=Ze.filter)||void 0===Ve?void 0:Ve.value,Oe=pe||null)||(E("changeFilterValue",Oe),e(10,G=Ju(G,["filter","value"],Oe,!0)),oe(G))),8&t.$$.dirty&&(ke=(null===(wt=De)||void 0===wt?void 0:wt.value)||null,Mr(null===(Qe=G)||void 0===Qe||null===(gt=Qe.sort)||void 0===gt?void 0:gt.path,ke)||(E("changeSortPath",ke),e(10,G=Ju(G,["sort","path"],ke,!0)),oe(G))),16&t.$$.dirty&&(Ct=(null===(ct=ie)||void 0===ct?void 0:ct.value)||null,Mr(null===(se=G)||void 0===se||null===(Se=se.sort)||void 0===Se?void 0:Se.direction,Ct)||(E("changeSortDirection",Ct),e(10,G=Ju(G,["sort","direction"],Ct,!0)),oe(G))),32&t.$$.dirty&&function(ke){var Qe,gt;Mr(null===(Qe=G)||void 0===Qe||null===(gt=Qe.projection)||void 0===gt?void 0:gt.paths,ke)||(E("changeProjectionPaths",ke),e(10,G=Ju(G,["projection","paths"],ke,!0)),oe(G))}(k?k.map(function(ke){return ke.value}):null)},[ce,ue,pe,De,ie,k,C,w,fe,re,G,L,oe,m,p,f,function(ge){e(0,ce=ge)},function(ge){e(1,ue=ge)},function(){e(2,pe=this.value)},function(ge){e(3,De=ge)},function(ge){e(4,ie=ge)},function(ge){e(5,k=ge),e(10,G),e(6,C),e(13,m),e(15,f),e(11,L)}]}var Cqe=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,xqe,wqe,Zi,{json:11,queryOptions:10,onChange:12},_qe),r}return Xe(e)}();function Sqe(t){Ni(t,"svelte-19cxesy",".jse-select-query-language.svelte-19cxesy.svelte-19cxesy{position:relative;width:32px}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container.svelte-19cxesy{position:absolute;top:0;right:0;display:flex;flex-direction:column;box-shadow:var(--jse-controls-box-shadow)}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container .jse-query-language.svelte-19cxesy{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;text-align:left;padding:var(--jse-padding) calc(2 * var(--jse-padding));white-space:nowrap;color:var(--jse-context-menu-color);background:var(--jse-context-menu-background)}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container .jse-query-language.svelte-19cxesy:hover{background:var(--jse-context-menu-background-highlight)}")}function lae(t,n,e){var i=t.slice();return i[5]=n[e],i}function kqe(t){var n,e;return n=new Ir({props:{data:Pb}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:an,i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function Dqe(t){var n,e;return n=new Ir({props:{data:$b}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:an,i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function cae(t){var n,e,i,r,o,s,a,l,c,u,h=t[5].name+"",d=[Dqe,kqe],f=[];function p(w,C){return w[5].id===w[0]?0:1}function m(){return t[4](t[5])}return e=p(t),i=f[e]=d[e](t),{c:function(){n=Be("button"),i.c(),r=xt(),o=xn(h),s=xt(),ne(n,"type","button"),ne(n,"class","jse-query-language svelte-19cxesy"),ne(n,"title",a="Select ".concat(t[5].name," as query language")),en(n,"selected",t[5].id===t[0])},m:function(w,C){nt(w,n,C),f[e].m(n,null),Ie(n,r),Ie(n,o),Ie(n,s),l=!0,c||(u=rn(n,"click",m),c=!0)},p:function(w,C){var k=e;(e=p(t=w))===k?f[e].p(t,C):(cn(),Ee(f[k],1,1,function(){f[k]=null}),un(),(i=f[e])?i.p(t,C):(i=f[e]=d[e](t)).c(),_e(i,1),i.m(n,r)),(!l||2&C)&&h!==(h=t[5].name+"")&&gi(o,h),(!l||2&C&&a!==(a="Select ".concat(t[5].name," as query language")))&&ne(n,"title",a),(!l||3&C)&&en(n,"selected",t[5].id===t[0])},i:function(w){l||(_e(i),l=!0)},o:function(w){Ee(i),l=!1},d:function(w){w&&tt(n),f[e].d(),c=!1,u()}}}function Tqe(t){for(var n,e,i,r=t[1],o=[],s=0;s1&&uae(t);return s=new Ir({props:{data:d0}}),{c:function(){n=Be("div"),(e=Be("div")).textContent="Transform",i=xt(),u&&u.c(),r=xt(),o=Be("button"),$t(s.$$.fragment),ne(e,"class","jse-title svelte-d01h2s"),ne(o,"type","button"),ne(o,"class","jse-close svelte-d01h2s"),ne(n,"class","jse-header svelte-d01h2s")},m:function(h,d){nt(h,n,d),Ie(n,e),Ie(n,i),u&&u.m(n,null),Ie(n,r),Ie(n,o),Nt(s,o,null),a=!0,l||(c=rn(o,"click",t[2]),l=!0)},p:function(h,d){var f=di(d,1)[0];h[0].length>1?u?(u.p(h,f),1&f&&_e(u,1)):((u=uae(h)).c(),_e(u,1),u.m(n,r)):u&&(cn(),Ee(u,1,1,function(){u=null}),un())},i:function(h){a||(_e(u),_e(s.$$.fragment,h),a=!0)},o:function(h){Ee(u),Ee(s.$$.fragment,h),a=!1},d:function(h){h&&tt(n),u&&u.d(),Rt(s),l=!1,c()}}}function Fqe(t,n,e){var i,r,o=n.queryLanguages,s=n.queryLanguageId,a=n.onChangeQueryLanguage,l=$a("simple-modal").close,c=$a("absolute-popup"),u=c.openAbsolutePopup,h=c.closeAbsolutePopup;return t.$$set=function(d){"queryLanguages"in d&&e(0,o=d.queryLanguages),"queryLanguageId"in d&&e(4,s=d.queryLanguageId),"onChangeQueryLanguage"in d&&e(5,a=d.onChangeQueryLanguage)},[o,i,l,function(){r=u(Eqe,{queryLanguages:o,queryLanguageId:s,onChangeQueryLanguage:function(d){h(r),a(d)}},{position:"bottom",offsetTop:-2,offsetLeft:0,anchor:i,closeOnOuterClick:!0})},s,a,function(d){dr[d?"unshift":"push"](function(){e(1,i=d)})}]}var Lqe=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,Fqe,Iqe,Zi,{queryLanguages:0,queryLanguageId:4,onChangeQueryLanguage:5},Mqe),r}return Xe(e)}(),rN=Pa("jsoneditor:AutoScrollHandler"),Oqe=function(t,n,e,i){return(t/=i/2)<1?e/2*t*t+n:-e/2*(--t*(t-2)-1)+n},hae=function(){var t,n,e,i,r,o,s,a,l,c,u,h,d;function p(C){return C.getBoundingClientRect().top-(t.getBoundingClientRect?t.getBoundingClientRect().top:0)+e}function m(C){t.scrollTo?t.scrollTo(t.scrollLeft,C):t.scrollTop=C}function w(C){c||(c=C),m(o(u=C-c,e,a,l)),d=!0,u1&&void 0!==arguments[1]?arguments[1]:{};switch(l=1e3,r=k.offset||0,h=void 0,o=k.easing||Oqe,s=k.a11y||!1,$n(k.container)){case"object":t=k.container;break;case"string":t=document.querySelector(k.container);break;default:t=window.document.documentElement}switch(e=function f(){return t.scrollTop}(),$n(C)){case"number":n=void 0,s=!1,i=e+C;break;case"object":i=p(n=C);break;case"string":n=document.querySelector(C),i=p(n)}switch(a=i-e+r,$n(k.duration)){case"number":l=k.duration;break;case"function":l=k.duration(a)}d?c=0:requestAnimationFrame(w)}},J2=Pa("jsoneditor:History");function dae(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.maxItems||1e3,e=[],i=0;function r(){return i0}function s(){return{canUndo:r(),canRedo:o(),length:e.length}}function a(){t.onChange&&t.onChange(s())}return{add:function l(d){J2("add",d),e=[d].concat(e.slice(i)).slice(0,n),i=0,a()},clear:function c(){J2("clear"),e=[],i=0,a()},getState:s,undo:function u(){if(r()){var d=e[i];return i+=1,J2("undo",d),a(),d}},redo:function h(){if(o())return J2("redo",e[i-=1]),a(),e[i]}}}function p0(t,n){var e=Date.now(),i=t();return n(Date.now()-e),i}var g0=Pa("validation");function fae(t,n,e,i){return g0("validateJSON"),n?n(e!==i?i.parse(e.stringify(t)):t):[]}function Nqe(t,n,e,i){if(g0("validateText"),t.length>104857600)return{validationErrors:[{path:[],message:"Validation turned off: the document is too large",severity:Xh.info}]};if(0===t.length)return null;try{var r=p0(function(){return e.parse(t)},function(l){return g0("validate: parsed json in ".concat(l," ms"))});if(!n)return null;var o=e===i?r:p0(function(){return i.parse(t)},function(l){return g0("validate: parsed json with the validationParser in ".concat(l," ms"))}),s=p0(function(){return n(o)},function(l){return g0("validate: validated json in ".concat(l," ms"))});return fr(s)?null:{validationErrors:s}}catch(l){var a=p0(function(){return function(c,u){if(c.length>1048576)return!1;try{return u.parse(Yh(c)),!0}catch{return!1}}(t,e)},function(c){return g0("validate: checked whether repairable in ".concat(c," ms"))});return{parseError:M2(t,l.message||l.toString()),isRepairable:a}}}var Q2=Pa("jsoneditor:FocusTracker");function oN(t){var n,i=t.onDestroy,r=t.getWindow,o=t.hasFocus,s=t.onFocus,a=t.onBlur,l=!1;function c(){var h=o();h&&(clearTimeout(n),l||(Q2("focus"),s(),l=h))}function u(){l&&(clearTimeout(n),n=setTimeout(function(){Q2("blur"),l=!1,a()}))}(0,t.onMount)(function(){Q2("mount FocusTracker");var h=r();h&&(h.addEventListener("focusin",c,!0),h.addEventListener("focusout",u,!0))}),i(function(){Q2("destroy FocusTracker");var h=r();h&&(h.removeEventListener("focusin",c,!0),h.removeEventListener("focusout",u,!0))})}function Rqe(t){Ni(t,"svelte-fqu1ku",".jse-message.svelte-fqu1ku.svelte-fqu1ku{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);padding:var(--jse-padding);display:flex;gap:var(--jse-padding);flex-wrap:wrap;align-items:stretch}.jse-message.jse-success.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-success-background);color:var(--jse-message-success-color)}.jse-message.svelte-fqu1ku .jse-text.svelte-fqu1ku{display:flex;flex:1;min-width:60%;align-items:center}.jse-message.svelte-fqu1ku .jse-text.jse-clickable.svelte-fqu1ku{cursor:pointer}.jse-message.svelte-fqu1ku .jse-text.jse-clickable.svelte-fqu1ku:hover{background-color:rgba(255, 255, 255, 0.1)}.jse-message.jse-error.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-error-background);color:var(--jse-message-error-color)}.jse-message.jse-warning.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-warning-background);color:var(--jse-message-warning-color)}.jse-message.jse-info.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-info-background);color:var(--jse-message-info-color)}.jse-message.svelte-fqu1ku .jse-actions.svelte-fqu1ku{display:flex;gap:var(--jse-padding)}.jse-message.svelte-fqu1ku .jse-actions button.jse-action.svelte-fqu1ku{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-message-action-background);color:inherit;padding:calc(0.5 * var(--jse-padding)) var(--jse-padding)}.jse-message.svelte-fqu1ku .jse-actions button.jse-action.svelte-fqu1ku:hover{background:var(--jse-message-action-background-highlight)}")}function pae(t,n,e){var i=t.slice();return i[8]=n[e],i}function gae(t){var n,e;return n=new Ir({props:{data:t[1]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};2&r&&(o.data=i[1]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function mae(t){var n,e;return n=new Ir({props:{data:t[8].icon}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};8&r&&(o.data=i[8].icon),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function vae(t){var n,e,i,r,o,s,a,l,c,u=t[8].text+"",h=t[8].icon&&mae(t);function d(){return t[6](t[8])}function f(){return t[7](t[8])}return{c:function(){n=Be("button"),h&&h.c(),e=xt(),i=xn(u),r=xt(),ne(n,"type","button"),ne(n,"class","jse-button jse-action jse-primary svelte-fqu1ku"),ne(n,"title",o=t[8].title),n.disabled=s=t[8].disabled},m:function(p,m){nt(p,n,m),h&&h.m(n,null),Ie(n,e),Ie(n,i),Ie(n,r),a=!0,l||(c=[rn(n,"click",d),rn(n,"mousedown",f)],l=!0)},p:function(p,m){(t=p)[8].icon?h?(h.p(t,m),8&m&&_e(h,1)):((h=mae(t)).c(),_e(h,1),h.m(n,e)):h&&(cn(),Ee(h,1,1,function(){h=null}),un()),(!a||8&m)&&u!==(u=t[8].text+"")&&gi(i,u),(!a||8&m&&o!==(o=t[8].title))&&ne(n,"title",o),(!a||8&m&&s!==(s=t[8].disabled))&&(n.disabled=s)},i:function(p){a||(_e(h),a=!0)},o:function(p){Ee(h),a=!1},d:function(p){p&&tt(n),h&&h.d(),l=!1,Fo(c)}}}function $qe(t){for(var n,e,i,r,o,s,a,l,c,u,h,d=t[1]&&gae(t),f=t[3],p=[],m=0;m100&&xae(t);return{c:function(){n=Be("table"),e=Be("tbody");for(var u=0;u100?c?c.p(u,h):((c=xae(u)).c(),c.m(e,null)):c&&(c.d(1),c=null)},i:function(u){if(!r){for(var h=0;h1&&_ae(t);function k(){return t[6](t[7])}return{c:function(){n=Be("tr"),e=Be("td"),$t(i.$$.fragment),r=xt(),o=Be("td"),s=xn(m),a=xt(),l=Be("td"),c=xn(w),u=xt(),h=Be("td"),C&&C.c(),ne(e,"class","jse-validation-error-icon svelte-1oe8e8r"),ne(o,"class","svelte-1oe8e8r"),ne(l,"class","svelte-1oe8e8r"),ne(h,"class","jse-validation-error-action svelte-1oe8e8r"),ne(n,"class","jse-validation-error svelte-1oe8e8r")},m:function(E,L){nt(E,n,L),Ie(n,e),Nt(i,e,null),Ie(n,r),Ie(n,o),Ie(o,s),Ie(n,a),Ie(n,l),Ie(l,c),Ie(n,u),Ie(n,h),C&&C.m(h,null),d=!0,f||(p=rn(n,"click",k),f=!0)},p:function(E,L){t=E,(!d||1&L)&&m!==(m=lu(lc(t[7].path))+"")&&gi(s,m),(!d||1&L)&&w!==(w=t[7].message+"")&&gi(c,w),0===t[9]&&t[0].length>1?C?(C.p(t,L),1&L&&_e(C,1)):((C=_ae(t)).c(),_e(C,1),C.m(h,null)):C&&(cn(),Ee(C,1,1,function(){C=null}),un())},i:function(E){d||(_e(i.$$.fragment,E),_e(C),d=!0)},o:function(E){Ee(i.$$.fragment,E),Ee(C),d=!1},d:function(E){E&&tt(n),Rt(i),C&&C.d(),f=!1,p()}}}function xae(t){var n,e,i,r,o,s,a,l,c,u,h,d=t[3]-100+"";return{c:function(){n=Be("tr"),e=Be("td"),i=xt(),r=Be("td"),o=xt(),s=Be("td"),a=xn("(and "),l=xn(d),c=xn(" more errors)"),u=xt(),h=Be("td"),ne(e,"class","svelte-1oe8e8r"),ne(r,"class","svelte-1oe8e8r"),ne(s,"class","svelte-1oe8e8r"),ne(h,"class","svelte-1oe8e8r"),ne(n,"class","jse-validation-error svelte-1oe8e8r")},m:function(f,p){nt(f,n,p),Ie(n,e),Ie(n,i),Ie(n,r),Ie(n,o),Ie(n,s),Ie(s,a),Ie(s,l),Ie(s,c),Ie(n,u),Ie(n,h)},p:function(f,p){8&p&&d!==(d=f[3]-100+"")&&gi(l,d)},d:function(f){f&&tt(n)}}}function Vqe(t){var n,e,i=!fr(t[0]),r=i&&bae(t);return{c:function(){r&&r.c(),n=Wr()},m:function(o,s){r&&r.m(o,s),nt(o,n,s),e=!0},p:function(o,s){var a=di(s,1)[0];1&a&&(i=!fr(o[0])),i?r?(r.p(o,a),1&a&&_e(r,1)):((r=bae(o)).c(),_e(r,1),r.m(n.parentNode,n)):r&&(cn(),Ee(r,1,1,function(){r=null}),un())},i:function(o){e||(_e(r),e=!0)},o:function(o){Ee(r),e=!1},d:function(o){r&&r.d(o),o&&tt(n)}}}function zqe(t,n,e){var i,r=n.validationErrors,o=n.selectError,s=!0;return t.$$set=function(a){"validationErrors"in a&&e(0,r=a.validationErrors),"selectError"in a&&e(1,o=a.selectError)},t.$$.update=function(){1&t.$$.dirty&&e(3,i=r.length)},[r,o,s,i,function(){e(2,s=!1)},function(){e(2,s=!0)},function(a){setTimeout(function(){return o(a)})}]}var sN=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,zqe,Vqe,Zi,{validationErrors:0,selectError:1},jqe),r}return Xe(e)}(),Uqe=typeof navigator<"u"&&navigator.platform.toUpperCase().indexOf("MAC")>=0;function Wqe(t){Ni(t,"svelte-d01h2s",".jse-header.svelte-d01h2s.svelte-d01h2s{display:flex;background:var(--jse-theme-color);color:var(--jse-menu-color)}.jse-header.svelte-d01h2s .jse-title.svelte-d01h2s{flex:1;padding:5px;vertical-align:middle}.jse-header.svelte-d01h2s button.svelte-d01h2s{border:none;background:transparent;min-width:32px;color:inherit;cursor:pointer}.jse-header.svelte-d01h2s button.svelte-d01h2s:hover{background:rgba(255, 255, 255, 0.1)}")}function Gqe(t){var n,e,i,r,o,s,a,l,c;return s=new Ir({props:{data:d0}}),{c:function(){n=Be("div"),e=Be("div"),i=xn(t[0]),r=xt(),o=Be("button"),$t(s.$$.fragment),ne(e,"class","jse-title svelte-d01h2s"),ne(o,"type","button"),ne(o,"class","jse-close svelte-d01h2s"),ne(n,"class","jse-header svelte-d01h2s")},m:function(u,h){nt(u,n,h),Ie(n,e),Ie(e,i),Ie(n,r),Ie(n,o),Nt(s,o,null),a=!0,l||(c=rn(o,"click",t[3]),l=!0)},p:function(u,h){var d=di(h,1)[0];(!a||1&d)&&gi(i,u[0])},i:function(u){a||(_e(s.$$.fragment,u),a=!0)},o:function(u){Ee(s.$$.fragment,u),a=!1},d:function(u){u&&tt(n),Rt(s),l=!1,c()}}}function qqe(t,n,e){var i=n.title,r=void 0===i?"Modal":i,o=n.onClose,s=void 0===o?void 0:o,a=$a("simple-modal").close;return t.$$set=function(l){"title"in l&&e(0,r=l.title),"onClose"in l&&e(1,s=l.onClose)},[r,s,a,function(){s?s():a()}]}var aN=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,qqe,Gqe,Zi,{title:0,onClose:1},Wqe),r}return Xe(e)}();function Xqe(t){Ni(t,"svelte-1olothd",".jse-modal.svelte-1olothd.svelte-1olothd{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-1olothd .jse-modal-contents.svelte-1olothd{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions.svelte-1olothd{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-copy-paste.svelte-1olothd .jse-shortcuts.svelte-1olothd{display:flex;flex-wrap:wrap;justify-content:space-around;margin:calc(2 * var(--jse-padding)) 0}.jse-modal.jse-copy-paste.svelte-1olothd .jse-shortcuts .jse-shortcut .jse-key.svelte-1olothd{font-size:200%;color:var(--jse-theme-color)}")}function Yqe(t){var n,e,i,r,o,s,a,l,c,u,h,d,f,p,m,w,C,k,E,L,B,G,oe,fe;return e=new aN({props:{title:"Copying and pasting"}}),{c:function(){n=Be("div"),$t(e.$$.fragment),i=xt(),r=Be("div"),(o=Be("div")).textContent="These actions are unavailable via the menu. Please use:",s=xt(),a=Be("div"),l=Be("div"),(c=Be("div")).textContent="".concat(t[1],"+C"),u=xn("\n for copy"),h=xt(),d=Be("div"),(f=Be("div")).textContent="".concat(t[1],"+X"),p=xn("\n for cut"),m=xt(),w=Be("div"),(C=Be("div")).textContent="".concat(t[1],"+V"),k=xn("\n for paste"),E=xt(),L=Be("div"),(B=Be("button")).textContent="Close",ne(c,"class","jse-key svelte-1olothd"),ne(l,"class","jse-shortcut"),ne(f,"class","jse-key svelte-1olothd"),ne(d,"class","jse-shortcut"),ne(C,"class","jse-key svelte-1olothd"),ne(w,"class","jse-shortcut"),ne(a,"class","jse-shortcuts svelte-1olothd"),ne(B,"type","button"),ne(B,"class","jse-primary svelte-1olothd"),ne(L,"class","jse-actions svelte-1olothd"),ne(r,"class","jse-modal-contents svelte-1olothd"),ne(n,"class","jse-modal jse-copy-paste svelte-1olothd")},m:function(re,ce){nt(re,n,ce),Nt(e,n,null),Ie(n,i),Ie(n,r),Ie(r,o),Ie(r,s),Ie(r,a),Ie(a,l),Ie(l,c),Ie(l,u),Ie(a,h),Ie(a,d),Ie(d,f),Ie(d,p),Ie(a,m),Ie(a,w),Ie(w,C),Ie(w,k),Ie(r,E),Ie(r,L),Ie(L,B),G=!0,oe||(fe=rn(B,"click",t[0]),oe=!0)},p:an,i:function(re){G||(_e(e.$$.fragment,re),G=!0)},o:function(re){Ee(e.$$.fragment,re),G=!1},d:function(re){re&&tt(n),Rt(e),oe=!1,fe()}}}function Kqe(t){return[$a("simple-modal").close,Uqe?"\u2318":"Ctrl"]}var Cae=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,Kqe,Yqe,Zi,{},Xqe),r}return Xe(e)}();function Sae(t){return!!t&&("space"===t.type||!0===t.space)}function Z2(t){return!!t&&("separator"===t.type||!0===t.separator)}function Xb(t){return!!t&&"function"==typeof t.onClick}function lN(t){return!!t&&"dropdown-button"===t.type&&Xb(t.main)&&Array.isArray(t.items)}function kae(t){return Ko(t)&&Ko(t.parseError)}function Qqe(t){Ni(t,"svelte-497ud4",".jse-menu.svelte-497ud4.svelte-497ud4{background:var(--jse-theme-color);border-bottom:1px solid var(--jse-theme-color);color:var(--jse-menu-color);display:flex;flex-wrap:wrap;align-items:center;position:relative}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4{width:var(--jse-menu-button-size);height:var(--jse-menu-button-size);border:none;background:transparent;color:inherit;cursor:pointer;padding:calc(0.5 * var(--jse-padding));margin:0;border-radius:0}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:hover,.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:focus{background:var(--jse-theme-color-highlight)}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:disabled{color:var(--jse-menu-color);opacity:0.5;background:transparent}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4{border:1px solid var(--jse-menu-color);padding:0 calc(0.5 * var(--jse-padding));margin:calc(0.5 * var(--jse-padding)) 0;height:calc(var(--jse-menu-button-size) - var(--jse-padding));width:auto}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:not(.jse-last){border-right:none}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-first.svelte-497ud4{margin-left:calc(0.5 * var(--jse-padding))}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-last.svelte-497ud4{margin-right:calc(0.5 * var(--jse-padding))}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:hover,.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:focus{background:var(--jse-theme-color-highlight)}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-selected.svelte-497ud4{background:var(--jse-menu-color);color:var(--jse-theme-color)}.jse-menu.svelte-497ud4 .jse-space.svelte-497ud4{flex:1}.jse-menu.svelte-497ud4 .jse-separator.svelte-497ud4{background:var(--jse-menu-color);opacity:0.3;box-sizing:border-box;width:1px;height:calc(var(--jse-menu-button-size) - 6px);margin:3px}")}var Zqe=function(t){return{}},Dae=function(t){return{}};function Tae(t,n,e){var i=t.slice();return i[3]=n[e],i}var eXe=function(t){return{}},Aae=function(t){return{}};function tXe(t){var n,e=Fae(t[3])+"";return{c:function(){n=xn(e)},m:function(i,r){nt(i,n,r)},p:function(i,r){1&r&&e!==(e=Fae(i[3])+"")&&gi(n,e)},i:an,o:an,d:function(i){i&&tt(n)}}}function nXe(t){var n,e,i,r,o,s,a,l,c=t[3].icon&&Eae(t),u=t[3].text&&Mae(t);return{c:function(){n=Be("button"),c&&c.c(),e=xt(),u&&u.c(),ne(n,"type","button"),ne(n,"class",i="jse-button "+t[3].className+" svelte-497ud4"),ne(n,"title",r=t[3].title),n.disabled=o=t[3].disabled||!1},m:function(h,d){nt(h,n,d),c&&c.m(n,null),Ie(n,e),u&&u.m(n,null),s=!0,a||(l=rn(n,"click",function(){Na(t[3].onClick)&&t[3].onClick.apply(this,arguments)}),a=!0)},p:function(h,d){(t=h)[3].icon?c?(c.p(t,d),1&d&&_e(c,1)):((c=Eae(t)).c(),_e(c,1),c.m(n,e)):c&&(cn(),Ee(c,1,1,function(){c=null}),un()),t[3].text?u?u.p(t,d):((u=Mae(t)).c(),u.m(n,null)):u&&(u.d(1),u=null),(!s||1&d&&i!==(i="jse-button "+t[3].className+" svelte-497ud4"))&&ne(n,"class",i),(!s||1&d&&r!==(r=t[3].title))&&ne(n,"title",r),(!s||1&d&&o!==(o=t[3].disabled||!1))&&(n.disabled=o)},i:function(h){s||(_e(c),s=!0)},o:function(h){Ee(c),s=!1},d:function(h){h&&tt(n),c&&c.d(),u&&u.d(),a=!1,l()}}}function iXe(t){var n;return{c:function(){ne(n=Be("div"),"class","jse-space svelte-497ud4")},m:function(e,i){nt(e,n,i)},p:an,i:an,o:an,d:function(e){e&&tt(n)}}}function rXe(t){var n;return{c:function(){ne(n=Be("div"),"class","jse-separator svelte-497ud4")},m:function(e,i){nt(e,n,i)},p:an,i:an,o:an,d:function(e){e&&tt(n)}}}function Eae(t){var n,e;return n=new Ir({props:{data:t[3].icon}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};1&r&&(o.data=i[3].icon),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function Mae(t){var n,e=t[3].text+"";return{c:function(){n=xn(e)},m:function(i,r){nt(i,n,r)},p:function(i,r){1&r&&e!==(e=i[3].text+"")&&gi(n,e)},d:function(i){i&&tt(n)}}}function Iae(t){var n,e,i,r,o,s,a,l=[rXe,iXe,nXe,tXe],c=[];function u(h,d){return 1&d&&(n=null),1&d&&(e=null),1&d&&(i=null),null==n&&(n=!!Z2(h[3])),n?0:(null==e&&(e=!!Sae(h[3])),e?1:(null==i&&(i=!!Xb(h[3])),i?2:3))}return r=u(t,-1),o=c[r]=l[r](t),{c:function(){o.c(),s=Wr()},m:function(h,d){c[r].m(h,d),nt(h,s,d),a=!0},p:function(h,d){var f=r;(r=u(h,d))===f?c[r].p(h,d):(cn(),Ee(c[f],1,1,function(){c[f]=null}),un(),(o=c[r])?o.p(h,d):(o=c[r]=l[r](h)).c(),_e(o,1),o.m(s.parentNode,s))},i:function(h){a||(_e(o),a=!0)},o:function(h){Ee(o),a=!1},d:function(h){c[r].d(h),h&&tt(s)}}}function oXe(t){for(var n,e,i,r,o=t[2].left,s=Gs(o,t,t[1],Aae),a=t[0],l=[],c=0;c0&&E.height>0}),u),c=u(e);function u(k){var E=k.getBoundingClientRect();return{x:E.left+E.width/2,y:E.top+E.height/2,rect:E,element:k}}function h(k,E){var B=k.x-E.x,G=(k.y-E.y)*(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1);return Math.sqrt(B*B+G*G)}var d=function(k){return h(k,c)};if("Left"===i||"Right"===i){var f=l.filter("Left"===i?function(k){return k.rect.left+ac.rect.right+a});return(qv(f.filter(function(k){return Math.abs(k.y-c.y)c.y+a});return(qv(w.filter(function(k){return o(k.element)}),d)||qv(w,d))?.element}}({allElements:Array.from(i.querySelectorAll("button:not([disabled])")),currentElement:a.target,direction:c,hasPrio:function(h){return"jse-open-dropdown"!==h.getAttribute("data-type")}});u&&u.focus()}},function(a){dr[a?"unshift":"push"](function(){e(2,i=a)})}]}var Yae=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,GXe,WXe,Zi,{items:0,tip:1},EXe),r}return Xe(e)}();function qXe(t){var n,e;return n=new Yae({props:{items:t[1],tip:t[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};2&r[0]&&(o.items=i[1]),1&r[0]&&(o.tip=i[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function XXe(t,n,e){var i,r,o,s,a,l,c,u,h,d,f,p,m,w,C,k,E,L,B,G,oe=n.json,fe=n.documentState,re=n.parser,ce=n.showTip,ue=n.onCloseContextMenu,pe=n.onEditKey,De=n.onEditValue,ie=n.onToggleEnforceString,ge=n.onCut,we=n.onCopy,le=n.onPaste,Fe=n.onRemove,z=n.onDuplicate,Q=n.onExtract,Z=n.onInsertBefore,me=n.onInsert,ae=n.onConvert,Te=n.onInsertAfter,Oe=n.onSort,Ze=n.onTransform;function Ve(){ue(),pe()}function wt(){ue(),De()}function ct(){ue(),ie()}function Ct(){ue(),ge(!0)}function se(){ue(),ge(!1)}function Se(){ue(),we(!0)}function ke(){ue(),we(!1)}function Qe(){ue(),le()}function gt(){ue(),Fe()}function rt(){ue(),z()}function zt(){ue(),Q()}function Qt(On){ue(),c?ae(On):me(On)}function Pn(){ue(),Oe()}function Mi(){ue(),Ze()}function Sn(){ue(),Z()}function nr(){ue(),Te()}return t.$$set=function(On){"json"in On&&e(2,oe=On.json),"documentState"in On&&e(3,fe=On.documentState),"parser"in On&&e(4,re=On.parser),"showTip"in On&&e(0,ce=On.showTip),"onCloseContextMenu"in On&&e(5,ue=On.onCloseContextMenu),"onEditKey"in On&&e(6,pe=On.onEditKey),"onEditValue"in On&&e(7,De=On.onEditValue),"onToggleEnforceString"in On&&e(8,ie=On.onToggleEnforceString),"onCut"in On&&e(9,ge=On.onCut),"onCopy"in On&&e(10,we=On.onCopy),"onPaste"in On&&e(11,le=On.onPaste),"onRemove"in On&&e(12,Fe=On.onRemove),"onDuplicate"in On&&e(13,z=On.onDuplicate),"onExtract"in On&&e(14,Q=On.onExtract),"onInsertBefore"in On&&e(15,Z=On.onInsertBefore),"onInsert"in On&&e(16,me=On.onInsert),"onConvert"in On&&e(17,ae=On.onConvert),"onInsertAfter"in On&&e(18,Te=On.onInsertAfter),"onSort"in On&&e(19,Oe=On.onSort),"onTransform"in On&&e(20,Ze=On.onTransform)},t.$$.update=function(){8&t.$$.dirty[0]&&e(37,i=fe.selection),4&t.$$.dirty[0]&&e(39,r=void 0!==oe),64&t.$$.dirty[1]&&e(31,o=null!=i),65&t.$$.dirty[1]&&e(21,s=o&&fr(i.focusPath)),4&t.$$.dirty[0]|65&t.$$.dirty[1]&&e(38,a=o?Un(oe,i.focusPath):void 0),128&t.$$.dirty[1]&&e(35,l=Array.isArray(a)?"Edit array":Ko(a)?"Edit object":"Edit value"),320&t.$$.dirty[1]&&e(22,c=r&&(io(i)||$s(i)||xr(i))),6291456&t.$$.dirty[0]|256&t.$$.dirty[1]&&e(30,u=r&&c&&!s),2097152&t.$$.dirty[0]|320&t.$$.dirty[1]&&e(29,h=r&&null!=i&&(io(i)||xr(i))&&!s),2097156&t.$$.dirty[0]|320&t.$$.dirty[1]&&e(36,d=r&&null!=i&&Hb(i)&&!s&&!Array.isArray(Un(oe,wr(i.focusPath)))),320&t.$$.dirty[1]&&e(34,f=r&&null!=i&&Hb(i)),136&t.$$.dirty[1]&&e(32,p=f&&!ss(a)),4194304&t.$$.dirty[0]&&e(25,m=c),33554432&t.$$.dirty[0]&&e(24,w=m?"Convert to:":"Insert:"),33554432&t.$$.dirty[0]|1&t.$$.dirty[1]&&e(28,C=!m&&o),33554432&t.$$.dirty[0]|193&t.$$.dirty[1]&&e(27,k=m?$g(i)&&!Ko(a):o),33554432&t.$$.dirty[0]|193&t.$$.dirty[1]&&e(26,E=m?$g(i)&&!Array.isArray(a):o),33554432&t.$$.dirty[0]|193&t.$$.dirty[1]&&e(23,L=m?$g(i)&&ss(a):o),24&t.$$.dirty[0]|192&t.$$.dirty[1]&&e(33,B=null!=i&&lf(a,fe.enforceStringMap,An(i.focusPath),re)),2145386496&t.$$.dirty[0]|63&t.$$.dirty[1]&&e(1,G=[{type:"row",items:[{type:"button",onClick:Ve,icon:u0,text:"Edit key",title:"Edit the key (Double-click on the key)",disabled:!d},{type:"dropdown-button",main:{type:"button",onClick:wt,icon:u0,text:l,title:"Edit the value (Double-click on the value)",disabled:!f},width:"11em",items:[{type:"button",icon:u0,text:l,title:"Edit the value (Double-click on the value)",onClick:wt,disabled:!f},{type:"button",icon:B?$b:Pb,text:"Enforce string",title:"Enforce keeping the value as string when it contains a numeric value",onClick:ct,disabled:!p}]}]},{type:"separator"},{type:"row",items:[{type:"dropdown-button",main:{type:"button",onClick:Ct,icon:c0,text:"Cut",title:"Cut selected contents, formatted with indentation (Ctrl+X)",disabled:!c},width:"10em",items:[{type:"button",icon:c0,text:"Cut formatted",title:"Cut selected contents, formatted with indentation (Ctrl+X)",onClick:Ct,disabled:!c},{type:"button",icon:c0,text:"Cut compacted",title:"Cut selected contents, without indentation (Ctrl+Shift+X)",onClick:se,disabled:!c}]},{type:"dropdown-button",main:{type:"button",onClick:Se,icon:sp,text:"Copy",title:"Copy selected contents, formatted with indentation (Ctrl+C)",disabled:!c},width:"12em",items:[{type:"button",icon:sp,text:"Copy formatted",title:"Copy selected contents, formatted with indentation (Ctrl+C)",onClick:Se,disabled:!c},{type:"button",icon:sp,text:"Copy compacted",title:"Copy selected contents, without indentation (Ctrl+Shift+C)",onClick:ke,disabled:!c}]},{type:"button",onClick:Qe,icon:pse,text:"Paste",title:"Paste clipboard contents (Ctrl+V)",disabled:!o}]},{type:"separator"},{type:"row",items:[{type:"column",items:[{type:"button",onClick:rt,icon:wse,text:"Duplicate",title:"Duplicate selected contents (Ctrl+D)",disabled:!u},{type:"button",onClick:zt,icon:CGe,text:"Extract",title:"Extract selected contents",disabled:!h},{type:"button",onClick:Pn,icon:z2,text:"Sort",title:"Sort array or object contents",disabled:!c},{type:"button",onClick:Mi,icon:B2,text:"Transform",title:"Transform array or object contents (filter, sort, project)",disabled:!c},{type:"button",onClick:gt,icon:GO,text:"Remove",title:"Remove selected contents (Delete)",disabled:!c}]},{type:"column",items:[{type:"label",text:w},{type:"button",onClick:function(){return Qt("structure")},icon:m?V2:h0,text:"Structure",title:w+" structure",disabled:!C},{type:"button",onClick:function(){return Qt("object")},icon:m?V2:h0,text:"Object",title:w+" structure",disabled:!k},{type:"button",onClick:function(){return Qt("array")},icon:m?V2:h0,text:"Array",title:w+" array",disabled:!E},{type:"button",onClick:function(){return Qt("value")},icon:m?V2:h0,text:"Value",title:w+" value",disabled:!L}]}]},{type:"separator"},{type:"row",items:[{type:"button",onClick:Sn,icon:wGe,text:"Insert before",title:"Select area before current entry to insert or paste contents",disabled:!c||s},{type:"button",onClick:nr,icon:yGe,text:"Insert after",title:"Select area after current entry to insert or paste contents",disabled:!c||s}]}])},[ce,G,oe,fe,re,ue,pe,De,ie,ge,we,le,Fe,z,Q,Z,me,ae,Te,Oe,Ze,s,c,L,w,m,E,k,C,h,u,o,p,B,f,l,d,i,a,r]}var YXe=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,XXe,qXe,Zi,{json:2,documentState:3,parser:4,showTip:0,onCloseContextMenu:5,onEditKey:6,onEditValue:7,onToggleEnforceString:8,onCut:9,onCopy:10,onPaste:11,onRemove:12,onDuplicate:13,onExtract:14,onInsertBefore:15,onInsert:16,onConvert:17,onInsertAfter:18,onSort:19,onTransform:20},null,[-1,-1]),r}return Xe(e)}();function KXe(t){Ni(t,"svelte-1kai5ns","div.jse-collapsed-items.svelte-1kai5ns.svelte-1kai5ns{font-family:var(--jse-font-family);font-size:var(--jse-font-size);color:var(--jse-collapsed-items-link-color);padding:calc(0.5 * var(--jse-padding));border:8px solid transparent;border-width:8px 0;background-color:var(--jse-contents-background-color);background-image:linear-gradient(var(--jse-collapsed-items-background-color), var(--jse-collapsed-items-background-color)), linear-gradient(to bottom right, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to bottom left, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to top right, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to top left, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%);background-repeat:repeat, repeat-x, repeat-x, repeat-x, repeat-x;background-position:0 0, 8px 0, 8px 0, 8px 100%, 8px 100%;background-size:auto auto, 16px 16px, 16px 16px, 16px 16px, 16px 16px;background-clip:padding-box, border-box, border-box, border-box, border-box;background-origin:padding-box, border-box, border-box, border-box, border-box;display:flex}div.jse-collapsed-items.svelte-1kai5ns div.jse-text.svelte-1kai5ns,div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns{margin:0 calc(0.5 * var(--jse-padding))}div.jse-collapsed-items.svelte-1kai5ns div.jse-text.svelte-1kai5ns{display:inline}div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns{font-family:inherit;font-size:inherit;color:var(--jse-collapsed-items-link-color);background:none;border:none;padding:0;text-decoration:underline;cursor:pointer}div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns:hover,div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns:focus{color:var(--jse-collapsed-items-link-color-highlight)}")}function Kae(t,n,e){var i=t.slice();return i[13]=n[e],i}function Jae(t){var n,e,i,r,o,s,a,l,c=t[13].start+"",u=t[13].end+"";function h(){return t[12](t[13])}return{c:function(){n=Be("button"),e=xn("show "),i=xn(c),r=xn("-"),o=xn(u),s=xt(),ne(n,"type","button"),ne(n,"class","jse-expand-items svelte-1kai5ns")},m:function(d,f){nt(d,n,f),Ie(n,e),Ie(n,i),Ie(n,r),Ie(n,o),Ie(n,s),a||(l=rn(n,"click",h),a=!0)},p:function(d,f){t=d,16&f&&c!==(c=t[13].start+"")&&gi(i,c),16&f&&u!==(u=t[13].end+"")&&gi(o,u)},d:function(d){d&&tt(n),a=!1,l()}}}function JXe(t){for(var n,e,i,r,o,s,a,l,c,u,h,d=t[4],f=[],p=0;p=C.end&&E.end<=G.start)&&oe.push(E),G.start>=(fe?E.end:C.end)&&oe.push(G),a=oe))},[h,p,o,r,a,s,l,c,u,d,f,i,function(m){return p(h,m)}]}var eYe=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,ZXe,JXe,Zi,{visibleSections:6,sectionIndex:7,total:8,path:0,pointer:9,selection:10,onExpandSection:1},KXe),r}return Xe(e)}();function tYe(t){Ni(t,"svelte-1yzl4st",".jse-context-menu-pointer.svelte-1yzl4st{position:absolute;top:calc(-0.5 * var(--jse-context-menu-pointer-size));right:calc(-0.5 * var(--jse-context-menu-pointer-size));width:var(--jse-context-menu-pointer-size);height:var(--jse-context-menu-pointer-size);padding:0;margin:0;cursor:pointer;background:transparent;border-radius:2px;background:var(--jse-context-menu-pointer-background);color:var(--jse-context-menu-pointer-color);border:none;box-shadow:var(--jse-controls-box-shadow)}.jse-context-menu-pointer.svelte-1yzl4st:hover{background:var(--jse-context-menu-pointer-background-highlight)}")}function nYe(t){var n,e,i,r,o;return e=new Ir({props:{data:hu}}),{c:function(){n=Be("button"),$t(e.$$.fragment),ne(n,"type","button"),ne(n,"class","jse-context-menu-pointer svelte-1yzl4st"),ne(n,"title",bF),en(n,"jse-selected",t[0])},m:function(s,a){nt(s,n,a),Nt(e,n,null),i=!0,r||(o=rn(n,"click",t[1]),r=!0)},p:function(s,a){var l=di(a,1)[0];(!i||1&l)&&en(n,"jse-selected",s[0])},i:function(s){i||(_e(e.$$.fragment,s),i=!0)},o:function(s){Ee(e.$$.fragment,s),i=!1},d:function(s){s&&tt(n),Rt(e),r=!1,o()}}}function iYe(t,n,e){var i=n.selected,r=n.onContextMenu;return t.$$set=function(o){"selected"in o&&e(0,i=o.selected),"onContextMenu"in o&&e(2,r=o.onContextMenu)},[i,function(o){for(var s=o.target;s&&"BUTTON"!==s.nodeName;)s=s.parentNode;s&&r({anchor:s,left:0,top:0,width:260,height:336,offsetTop:2,offsetLeft:0,showTip:!0})},r]}var cp=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,iYe,nYe,Zi,{selected:0,onContextMenu:2},tYe),r}return Xe(e)}();function rYe(t){Ni(t,"svelte-24a1b2",'.jse-key.svelte-24a1b2{display:inline-block;min-width:2em;padding:0 5px;box-sizing:border-box;outline:none;border-radius:1px;vertical-align:top;color:var(--jse-key-color);cursor:var(--jse-contents-cursor);word-break:normal;overflow-wrap:normal;white-space:pre-wrap}.jse-key.svelte-24a1b2:hover{background:var(--jse-hover-background-color)}.jse-key.svelte-24a1b2:hover{background:var(--jse-hover-background-color)}.jse-key.jse-empty.svelte-24a1b2{min-width:3em;outline:1px dotted var(--jse-tag-background);-moz-outline-radius:2px}.jse-key.jse-empty.svelte-24a1b2::after{pointer-events:none;color:var(--jse-tag-background);content:"key"}')}function oYe(t){var n,e,i,r,o,s,a,l=[lYe,aYe],c=[];function u(h,d){return h[1]?0:1}return e=u(t),i=c[e]=l[e](t),{c:function(){n=Be("div"),i.c(),ne(n,"data-type","selectable-key"),ne(n,"class",r=Xo(t[6](t[0]))+" svelte-24a1b2")},m:function(h,d){nt(h,n,d),c[e].m(n,null),o=!0,s||(a=rn(n,"dblclick",t[5]),s=!0)},p:function(h,d){var f=e;(e=u(h))===f?c[e].p(h,d):(cn(),Ee(c[f],1,1,function(){c[f]=null}),un(),(i=c[e])?i.p(h,d):(i=c[e]=l[e](h)).c(),_e(i,1),i.m(n,null)),(!o||1&d&&r!==(r=Xo(h[6](h[0]))+" svelte-24a1b2"))&&ne(n,"class",r)},i:function(h){o||(_e(i),o=!0)},o:function(h){Ee(i),o=!1},d:function(h){h&&tt(n),c[e].d(),s=!1,a()}}}function sYe(t){var n,e;return n=new ese({props:{value:t[2].normalization.escapeValue(t[0]),shortText:!0,onChange:t[7],onCancel:t[8],onFind:t[2].onFind}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};5&r&&(o.value=i[2].normalization.escapeValue(i[0])),4&r&&(o.onFind=i[2].onFind),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function aYe(t){var n,e=Ng(t[2].normalization.escapeValue(t[0]))+"";return{c:function(){n=xn(e)},m:function(i,r){nt(i,n,r)},p:function(i,r){5&r&&e!==(e=Ng(i[2].normalization.escapeValue(i[0]))+"")&&gi(n,e)},i:an,o:an,d:function(i){i&&tt(n)}}}function lYe(t){var n,e;return n=new fse({props:{text:t[2].normalization.escapeValue(t[0]),searchResultItems:t[1]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};5&r&&(o.text=i[2].normalization.escapeValue(i[0])),2&r&&(o.searchResultItems=i[1]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function Zae(t){var n,e;return n=new cp({props:{selected:!0,onContextMenu:t[2].onContextMenu}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};4&r&&(o.onContextMenu=i[2].onContextMenu),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function cYe(t){var n,e,i,r,o,s=[sYe,oYe],a=[];function l(u,h){return u[4]?0:1}n=l(t),e=a[n]=s[n](t);var c=!t[2].readOnly&&t[3]&&!t[4]&&Zae(t);return{c:function(){e.c(),i=xt(),c&&c.c(),r=Wr()},m:function(u,h){a[n].m(u,h),nt(u,i,h),c&&c.m(u,h),nt(u,r,h),o=!0},p:function(u,h){var d=di(h,1)[0],f=n;(n=l(u))===f?a[n].p(u,d):(cn(),Ee(a[f],1,1,function(){a[f]=null}),un(),(e=a[n])?e.p(u,d):(e=a[n]=s[n](u)).c(),_e(e,1),e.m(i.parentNode,i)),u[2].readOnly||!u[3]||u[4]?c&&(cn(),Ee(c,1,1,function(){c=null}),un()):c?(c.p(u,d),28&d&&_e(c,1)):((c=Zae(u)).c(),_e(c,1),c.m(r.parentNode,r))},i:function(u){o||(_e(e),_e(c),o=!0)},o:function(u){Ee(e),Ee(c),o=!1},d:function(u){a[n].d(u),u&&tt(i),c&&c.d(u),u&&tt(r)}}}function uYe(t,n,e){var i,r,o=n.path,s=n.pointer,a=n.key,l=n.selection,c=n.searchResultItems,u=n.onUpdateKey,h=n.context;return t.$$set=function(d){"path"in d&&e(9,o=d.path),"pointer"in d&&e(10,s=d.pointer),"key"in d&&e(0,a=d.key),"selection"in d&&e(11,l=d.selection),"searchResultItems"in d&&e(1,c=d.searchResultItems),"onUpdateKey"in d&&e(12,u=d.onUpdateKey),"context"in d&&e(2,h=d.context)},t.$$.update=function(){3072&t.$$.dirty&&e(3,i=l?!0===l.pointersMap[s]&&$s(l):void 0),2056&t.$$.dirty&&e(4,r=i&&ip(l))},[a,c,h,i,r,function(d){r||h.readOnly||(d.preventDefault(),h.onSelect(uu(o,!0)))},function(d){return ad("jse-key",{"jse-empty":""===d})},function(d,f){var p=u(a,h.normalization.unescapeValue(d)),m=wr(o).concat(p);h.onSelect(f===wF?Br(m,!1):uu(m,!1)),f!==_F&&h.focus()},function(){h.onSelect(uu(o,!1)),h.focus()},o,s,l,u]}var hYe=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,uYe,cYe,Zi,{path:9,pointer:10,key:0,selection:11,searchResultItems:1,onUpdateKey:12,context:2},rYe),r}return Xe(e)}();function ele(t,n,e){var i=t.slice();return i[8]=n[e],i}function tle(t){var n,e,i,r=[t[8].props],o=t[8].component;function s(a){for(var l={},c=0;ck+w()/2;)k+=w(),C-=1;return C!==m&&void 0!==h[C]?{beforePath:h[C].path,offset:C-m}:void 0}({json:n,selection:o,deltaY:i,items:r}):function(u){for(var h,d=u.json,f=u.items,m=u.deltaY,w=$2(u.selection),C=f.findIndex(function(ce){return Mr(ce.path,w)}),k=0,E=C,L=function(){var ce;return null===(ce=f[E+1])||void 0===ce?void 0:ce.height};void 0!==L()&&Math.abs(m)>k+L()/2;)k+=L(),E+=1;var G=Un(d,wr(w)),oe=Array.isArray(G),fe=null===(h=f[oe?E:E+1])||void 0===h?void 0:h.path,re=E-C;return fe?{beforePath:fe,offset:re}:{append:!0,offset:re}}({json:n,selection:o,deltaY:i,items:r});if(!s||0===s.offset)return{operations:void 0,updatedSelection:void 0,offset:0};var u,h,d,f,p,m,w,C,k,E,L,a=function(u,h,d){if(!h)return[];var f="beforePath"in d?d.beforePath:void 0,p="append"in d?d.append:void 0,m=wr(h.focusPath),w=Un(u,m);if(!(p||f&&s0(f,m)&&f.length>m.length))return[];var C=n0(h),k=$2(h),E=ii(C),L=ii(k),B=f?f[m.length]:void 0;if(!Yo(w)){if(Ao(w)){var G=la(E),oe=la(L),fe=void 0!==B?la(B):w.length;return gO(oe-G+1,fece?[].concat(Ti(re.slice(ce,ue+1)),Ti(re.slice(pe,re.length))).map(function(De){return Pg(m,De)}):[].concat(Ti(re.slice(pe,ce)),Ti(re.slice(ue+1,re.length))).map(function(De){return Pg(m,De)}):[]}(n,o,s),l=Un(n,wr(n0(o)));return Array.isArray(l)?{operations:a,updatedSelection:(f=(u={items:r,json:n,selection:o,offset:s.offset}).items,p=u.json,w=u.offset,C=n0(m=u.selection),k=$2(m),E=f.findIndex(function(oe){return Mr(oe.path,C)}),L=f.findIndex(function(oe){return Mr(oe.path,k)}),Ks(p,null===(h=f[E+w])||void 0===h?void 0:h.path,null===(d=f[L+w])||void 0===d?void 0:d.path)),offset:s.offset}:{operations:a,updatedSelection:void 0,offset:s.offset}}function ud(t,n){return function(e,i){if(e){for(var r={},o=0,s=Object.keys(e);o0?r:void 0}}(t,function(e){return Mv(e,n)})}function mYe(t){Ni(t,"svelte-pz3g1j","button.jse-validation-error.svelte-pz3g1j{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;padding:0;margin:0;vertical-align:top;display:inline-flex;color:var(--jse-warning-color)}")}function vYe(t){var n,e,i,r,o,s;return e=new Ir({props:{data:jg}}),{c:function(){n=Be("button"),$t(e.$$.fragment),ne(n,"type","button"),ne(n,"class","jse-validation-error svelte-pz3g1j")},m:function(a,l){nt(a,n,l),Nt(e,n,null),r=!0,o||(s=[rn(n,"click",function(){Na(t[0])&&t[0].apply(this,arguments)}),Ra(i=WO.call(null,n,_t({text:t[1]},t[2])))],o=!0)},p:function(a,l){var c=di(l,1)[0];t=a,i&&Na(i.update)&&2&c&&i.update.call(null,_t({text:t[1]},t[2]))},i:function(a){r||(_e(e.$$.fragment,a),r=!0)},o:function(a){Ee(e.$$.fragment,a),r=!1},d:function(a){a&&tt(n),Rt(e),o=!1,Fo(s)}}}function yYe(t,n,e){var i,r=$a("absolute-popup"),o=n.validationError,s=n.onExpand;return t.$$set=function(a){"validationError"in a&&e(3,o=a.validationError),"onExpand"in a&&e(0,s=a.onExpand)},t.$$.update=function(){8&t.$$.dirty&&e(1,i=o.isChildError?"Contains invalid data":o.message)},[s,i,r,o]}var y0=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,yYe,vYe,Os,{validationError:3,onExpand:0},mYe),r}return Xe(e)}();function bYe(t){Ni(t,"svelte-1wlxti1",".jse-json-node.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative;color:var(--jse-text-color)}.jse-json-node.jse-root.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{min-height:100%;padding-bottom:2px;box-sizing:border-box}.jse-json-node.jse-root.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1 .jse-context-menu-pointer,.jse-json-node.jse-root.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1 .jse-context-menu-pointer{top:0;right:calc(-2px - var(--jse-context-menu-pointer-size))}.jse-json-node.jse-root.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1.svelte-1wlxti1{padding-left:0}.jse-json-node.svelte-1wlxti1 .jse-props.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-items.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-header-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-footer-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-header .jse-meta.svelte-1wlxti1>.jse-meta-inner.svelte-1wlxti1.svelte-1wlxti1{display:flex;justify-content:center}.jse-json-node.svelte-1wlxti1 .jse-contents-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;flex-direction:row;align-items:start}.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding-left:var(--jse-indent-size)}.jse-json-node.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:inline-flex;padding-left:calc(var(--jse-indent-size) + 5px)}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-contents-background-color)}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{visibility:hidden;padding:0 calc(0.5 * var(--jse-padding));flex:1}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.jse-inside.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:inline-flex;align-items:center}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.jse-after.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;align-items:flex-end}.jse-json-node.svelte-1wlxti1 .jse-context-menu-pointer-anchor.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-insert-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;position:relative;z-index:1;max-width:250px;min-width:100px;height:0;margin-right:calc(0.5 * var(--jse-padding));outline:1px solid}.jse-json-node.svelte-1wlxti1 .jse-insert-area.svelte-1wlxti1 .jse-context-menu-pointer{right:-1px;background:var(--jse-context-menu-pointer-hover-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-hovered.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{outline-color:var(--jse-context-menu-pointer-hover-background)}.jse-json-node.svelte-1wlxti1:hover>.jse-contents-outer .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected),.jse-json-node.svelte-1wlxti1 .jse-header-outer.svelte-1wlxti1:hover>.jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected),.jse-json-node.svelte-1wlxti1 .jse-footer-outer:hover .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected){visibility:visible}.jse-json-node.jse-hovered.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-hover-background-color)}.jse-json-node.jse-selected.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-selected.svelte-1wlxti1 .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-selection-background-color)}.jse-json-node.jse-selected-key.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1>.jse-identifier>.jse-key,.jse-json-node.jse-selected-key.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-identifier>.jse-key{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1>.jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.svelte-1wlxti1 .jse-collapsed-items.jse-selected,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-collapsed-items,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-collapsed-items{background-color:var(--jse-selection-background-color);--jse-collapsed-items-background-color:var(--jse-collapsed-items-selected-background-color)}.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-selection-background-color)}.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1 .jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-readonly.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{--jse-contents-selected-cursor:pointer}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{outline-color:var(--jse-context-menu-pointer-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1 .jse-context-menu-pointer{background:var(--jse-context-menu-pointer-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1 .jse-context-menu-pointer:hover{background:var(--jse-context-menu-pointer-background-highlight)}.jse-main:not(.jse-focus) .jse-json-node.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{--jse-selection-background-color:var(--jse-selection-background-inactive-color);--jse-context-menu-pointer-background:var(--jse-context-menu-pointer-hover-background)}.jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{width:var(--jse-indent-size);padding:0;margin:0;border:none;cursor:pointer;background:transparent;color:var(--jse-delimiter-color);font-size:var(--jse-font-size-mono);height:var(--jse-line-height)}.jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:hover{opacity:0.8}.jse-meta.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-separator.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-index.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-bracket.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{vertical-align:top;color:var(--jse-delimiter-color)}.jse-index.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding:0 calc(0.5 * var(--jse-padding))}.jse-bracket.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding:0 2px}.jse-bracket.jse-expanded.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding-right:var(--jse-padding)}.jse-tag.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{border:none;font-size:80%;font-family:var(--jse-font-family);color:var(--jse-tag-color);background:var(--jse-tag-background);border-radius:2px;cursor:pointer;display:inline-block;padding:0 4px;line-height:normal;margin:1px 0}.jse-tag.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:hover{opacity:0.8}.jse-tag.jse-expanded.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{opacity:0.7;cursor:inherit}.jse-identifier.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{vertical-align:top;position:relative}")}var _Ye=function(t){return{}},nle=function(t){return{}};function ile(t,n,e){var i=t.slice();return i[53]=n[e],i}var wYe=function(t){return{}},rle=function(t){return{}};function ole(t,n,e){var i=t.slice();return i[47]=n[e],i[49]=e,i}function sle(t,n,e){var i=t.slice();return i[50]=n[e],i}var xYe=function(t){return{}},ale=function(t){return{}};function CYe(t){var n,e,i,r,o,s,a,l,c,u=!t[8].readOnly&&t[16]&&t[7]&&(xr(t[7])||io(t[7]))&&!t[7].edit&&Mr(t[7].focusPath,t[1]),h=t[34].identifier,d=Gs(h,t,t[35],nle),f=!t[17]&&lle();o=new gYe({props:{path:t[1],value:t[0],enforceString:t[13],selection:t[16]?t[7]:void 0,searchResultItems:use(t[6],t[9]),context:t[8]}});var p=u&&cle(t),m=t[15]&&ule(t),w=!t[17]&&hle(t);return{c:function(){n=Be("div"),e=Be("div"),d&&d.c(),i=xt(),f&&f.c(),r=xt(),$t(o.$$.fragment),s=xt(),p&&p.c(),a=xt(),m&&m.c(),l=xt(),w&&w.c(),ne(e,"class","jse-contents svelte-1wlxti1"),ne(n,"class","jse-contents-outer svelte-1wlxti1"),ne(n,"style",t[18])},m:function(C,k){nt(C,n,k),Ie(n,e),d&&d.m(e,null),Ie(e,i),f&&f.m(e,null),Ie(e,r),Nt(o,e,null),Ie(e,s),p&&p.m(e,null),Ie(n,a),m&&m.m(n,null),Ie(n,l),w&&w.m(n,null),c=!0},p:function(C,k){d&&d.p&&(!c||16&k[1])&&Xs(d,h,C,C[35],c?qs(h,C[35],k,_Ye):Ys(C[35]),nle),C[17]?f&&(f.d(1),f=null):f||((f=lle()).c(),f.m(e,r));var E={};2&k[0]&&(E.path=C[1]),1&k[0]&&(E.value=C[0]),8192&k[0]&&(E.enforceString=C[13]),65664&k[0]&&(E.selection=C[16]?C[7]:void 0),576&k[0]&&(E.searchResultItems=use(C[6],C[9])),256&k[0]&&(E.context=C[8]),o.$set(E),65922&k[0]&&(u=!C[8].readOnly&&C[16]&&C[7]&&(xr(C[7])||io(C[7]))&&!C[7].edit&&Mr(C[7].focusPath,C[1])),u?p?(p.p(C,k),65922&k[0]&&_e(p,1)):((p=cle(C)).c(),_e(p,1),p.m(e,null)):p&&(cn(),Ee(p,1,1,function(){p=null}),un()),C[15]?m?(m.p(C,k),32768&k[0]&&_e(m,1)):((m=ule(C)).c(),_e(m,1),m.m(n,l)):m&&(cn(),Ee(m,1,1,function(){m=null}),un()),C[17]?w&&(w.d(1),w=null):w?w.p(C,k):((w=hle(C)).c(),w.m(n,null)),(!c||262144&k[0])&&ne(n,"style",C[18])},i:function(C){c||(_e(d,C),_e(o.$$.fragment,C),_e(p),_e(m),c=!0)},o:function(C){Ee(d,C),Ee(o.$$.fragment,C),Ee(p),Ee(m),c=!1},d:function(C){C&&tt(n),d&&d.d(C),f&&f.d(),Rt(o),p&&p.d(),m&&m.d(),w&&w.d()}}}function SYe(t){var n,e,i,r,o,s,a,l,c,u,h,d,f,p,m,w,C,k,E=!t[8].readOnly&&t[16]&&t[7]&&(xr(t[7])||io(t[7]))&&!t[7].edit&&Mr(t[7].focusPath,t[1]),L=[TYe,DYe],B=[];function G(z,Q){return z[12]?0:1}r=G(t),o=B[r]=L[r](t);var oe=t[34].identifier,fe=Gs(oe,t,t[35],rle),re=!t[17]&&dle();function ce(z,Q){return z[12]?EYe:AYe}var ue=ce(t),pe=ue(t),De=E&&fle(t),ie=t[15]&&(!t[12]||!t[15].isChildError)&&ple(t);function ge(z,Q){return z[12]?IYe:z[17]?void 0:MYe}var we=ge(t),le=we&&we(t),Fe=t[12]&&gle(t);return{c:function(){n=Be("div"),e=Be("div"),i=Be("button"),o.c(),s=xt(),fe&&fe.c(),a=xt(),re&&re.c(),l=xt(),c=Be("div"),u=Be("div"),pe.c(),h=xt(),De&&De.c(),d=xt(),ie&&ie.c(),f=xt(),le&&le.c(),p=xt(),Fe&&Fe.c(),m=Wr(),ne(i,"type","button"),ne(i,"class","jse-expand svelte-1wlxti1"),ne(i,"title","Expand or collapse this object (Ctrl+Click to expand/collapse recursively)"),ne(u,"class","jse-meta-inner svelte-1wlxti1"),ne(c,"class","jse-meta svelte-1wlxti1"),ne(c,"data-type","selectable-value"),ne(e,"class","jse-header svelte-1wlxti1"),ne(n,"class","jse-header-outer svelte-1wlxti1"),ne(n,"style",t[18])},m:function(z,Q){nt(z,n,Q),Ie(n,e),Ie(e,i),B[r].m(i,null),Ie(e,s),fe&&fe.m(e,null),Ie(e,a),re&&re.m(e,null),Ie(e,l),Ie(e,c),Ie(c,u),pe.m(u,null),Ie(e,h),De&&De.m(e,null),Ie(n,d),ie&&ie.m(n,null),Ie(n,f),le&&le.m(n,null),nt(z,p,Q),Fe&&Fe.m(z,Q),nt(z,m,Q),w=!0,C||(k=rn(i,"click",t[21]),C=!0)},p:function(z,Q){var Z=r;(r=G(z))===Z?B[r].p(z,Q):(cn(),Ee(B[Z],1,1,function(){B[Z]=null}),un(),(o=B[r])?o.p(z,Q):(o=B[r]=L[r](z)).c(),_e(o,1),o.m(i,null)),fe&&fe.p&&(!w||16&Q[1])&&Xs(fe,oe,z,z[35],w?qs(oe,z[35],Q,wYe):Ys(z[35]),rle),z[17]?re&&(re.d(1),re=null):re||((re=dle()).c(),re.m(e,l)),ue===(ue=ce(z))&&pe?pe.p(z,Q):(pe.d(1),(pe=ue(z))&&(pe.c(),pe.m(u,null))),65922&Q[0]&&(E=!z[8].readOnly&&z[16]&&z[7]&&(xr(z[7])||io(z[7]))&&!z[7].edit&&Mr(z[7].focusPath,z[1])),E?De?(De.p(z,Q),65922&Q[0]&&_e(De,1)):((De=fle(z)).c(),_e(De,1),De.m(e,null)):De&&(cn(),Ee(De,1,1,function(){De=null}),un()),!z[15]||z[12]&&z[15].isChildError?ie&&(cn(),Ee(ie,1,1,function(){ie=null}),un()):ie?(ie.p(z,Q),36864&Q[0]&&_e(ie,1)):((ie=ple(z)).c(),_e(ie,1),ie.m(n,f)),we===(we=ge(z))&&le?le.p(z,Q):(le&&le.d(1),(le=we&&we(z))&&(le.c(),le.m(n,null))),(!w||262144&Q[0])&&ne(n,"style",z[18]),z[12]?Fe?(Fe.p(z,Q),4096&Q[0]&&_e(Fe,1)):((Fe=gle(z)).c(),_e(Fe,1),Fe.m(m.parentNode,m)):Fe&&(cn(),Ee(Fe,1,1,function(){Fe=null}),un())},i:function(z){w||(_e(o),_e(fe,z),_e(De),_e(ie),_e(Fe),w=!0)},o:function(z){Ee(o),Ee(fe,z),Ee(De),Ee(ie),Ee(Fe),w=!1},d:function(z){z&&tt(n),B[r].d(),fe&&fe.d(z),re&&re.d(),pe.d(),De&&De.d(),ie&&ie.d(),le&&le.d(),z&&tt(p),Fe&&Fe.d(z),z&&tt(m),C=!1,k()}}}function kYe(t){var n,e,i,r,o,s,a,l,c,u,h,d,f,p,m,w,C,k,E=!t[8].readOnly&&t[16]&&t[7]&&(xr(t[7])||io(t[7]))&&!t[7].edit&&Mr(t[7].focusPath,t[1]),L=[OYe,LYe],B=[];function G(z,Q){return z[12]?0:1}r=G(t),o=B[r]=L[r](t);var oe=t[34].identifier,fe=Gs(oe,t,t[35],ale),re=!t[17]&&ble();function ce(z,Q){return z[12]?RYe:NYe}var ue=ce(t),pe=ue(t),De=E&&_le(t),ie=t[15]&&(!t[12]||!t[15].isChildError)&&wle(t);function ge(z,Q){return z[12]?PYe:$Ye}var we=ge(t),le=we(t),Fe=t[12]&&xle(t);return{c:function(){n=Be("div"),e=Be("div"),i=Be("button"),o.c(),s=xt(),fe&&fe.c(),a=xt(),re&&re.c(),l=xt(),c=Be("div"),u=Be("div"),pe.c(),h=xt(),De&&De.c(),d=xt(),ie&&ie.c(),f=xt(),le.c(),p=xt(),Fe&&Fe.c(),m=Wr(),ne(i,"type","button"),ne(i,"class","jse-expand svelte-1wlxti1"),ne(i,"title","Expand or collapse this array (Ctrl+Click to expand/collapse recursively)"),ne(u,"class","jse-meta-inner svelte-1wlxti1"),ne(u,"data-type","selectable-value"),ne(c,"class","jse-meta svelte-1wlxti1"),ne(e,"class","jse-header svelte-1wlxti1"),ne(n,"class","jse-header-outer svelte-1wlxti1"),ne(n,"style",t[18])},m:function(z,Q){nt(z,n,Q),Ie(n,e),Ie(e,i),B[r].m(i,null),Ie(e,s),fe&&fe.m(e,null),Ie(e,a),re&&re.m(e,null),Ie(e,l),Ie(e,c),Ie(c,u),pe.m(u,null),Ie(e,h),De&&De.m(e,null),Ie(n,d),ie&&ie.m(n,null),Ie(n,f),le.m(n,null),nt(z,p,Q),Fe&&Fe.m(z,Q),nt(z,m,Q),w=!0,C||(k=rn(i,"click",t[21]),C=!0)},p:function(z,Q){var Z=r;(r=G(z))===Z?B[r].p(z,Q):(cn(),Ee(B[Z],1,1,function(){B[Z]=null}),un(),(o=B[r])?o.p(z,Q):(o=B[r]=L[r](z)).c(),_e(o,1),o.m(i,null)),fe&&fe.p&&(!w||16&Q[1])&&Xs(fe,oe,z,z[35],w?qs(oe,z[35],Q,xYe):Ys(z[35]),ale),z[17]?re&&(re.d(1),re=null):re||((re=ble()).c(),re.m(e,l)),ue===(ue=ce(z))&&pe?pe.p(z,Q):(pe.d(1),(pe=ue(z))&&(pe.c(),pe.m(u,null))),65922&Q[0]&&(E=!z[8].readOnly&&z[16]&&z[7]&&(xr(z[7])||io(z[7]))&&!z[7].edit&&Mr(z[7].focusPath,z[1])),E?De?(De.p(z,Q),65922&Q[0]&&_e(De,1)):((De=_le(z)).c(),_e(De,1),De.m(e,null)):De&&(cn(),Ee(De,1,1,function(){De=null}),un()),!z[15]||z[12]&&z[15].isChildError?ie&&(cn(),Ee(ie,1,1,function(){ie=null}),un()):ie?(ie.p(z,Q),36864&Q[0]&&_e(ie,1)):((ie=wle(z)).c(),_e(ie,1),ie.m(n,f)),we===(we=ge(z))&&le?le.p(z,Q):(le.d(1),(le=we(z))&&(le.c(),le.m(n,null))),(!w||262144&Q[0])&&ne(n,"style",z[18]),z[12]?Fe?(Fe.p(z,Q),4096&Q[0]&&_e(Fe,1)):((Fe=xle(z)).c(),_e(Fe,1),Fe.m(m.parentNode,m)):Fe&&(cn(),Ee(Fe,1,1,function(){Fe=null}),un())},i:function(z){w||(_e(o),_e(fe,z),_e(De),_e(ie),_e(Fe),w=!0)},o:function(z){Ee(o),Ee(fe,z),Ee(De),Ee(ie),Ee(Fe),w=!1},d:function(z){z&&tt(n),B[r].d(),fe&&fe.d(z),re&&re.d(),pe.d(),De&&De.d(),ie&&ie.d(),le.d(),z&&tt(p),Fe&&Fe.d(z),z&&tt(m),C=!1,k()}}}function lle(t){var n;return{c:function(){(n=Be("div")).textContent=":",ne(n,"class","jse-separator svelte-1wlxti1")},m:function(e,i){nt(e,n,i)},d:function(e){e&&tt(n)}}}function cle(t){var n,e,i;return e=new cp({props:{selected:!0,onContextMenu:t[8].onContextMenu}}),{c:function(){n=Be("div"),$t(e.$$.fragment),ne(n,"class","jse-context-menu-pointer-anchor svelte-1wlxti1")},m:function(r,o){nt(r,n,o),Nt(e,n,null),i=!0},p:function(r,o){var s={};256&o[0]&&(s.onContextMenu=r[8].onContextMenu),e.$set(s)},i:function(r){i||(_e(e.$$.fragment,r),i=!0)},o:function(r){Ee(e.$$.fragment,r),i=!1},d:function(r){r&&tt(n),Rt(e)}}}function ule(t){var n,e;return n=new y0({props:{validationError:t[15],onExpand:t[22]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};32768&r[0]&&(o.validationError=i[15]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function hle(t){var n,e,i;return{c:function(){ne(n=Be("div"),"class","jse-insert-selection-area jse-after svelte-1wlxti1"),ne(n,"data-type","insert-selection-area-after")},m:function(r,o){nt(r,n,o),e||(i=rn(n,"click",t[30]),e=!0)},p:an,d:function(r){r&&tt(n),e=!1,i()}}}function DYe(t){var n,e;return n=new Ir({props:{data:rp}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:an,i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function TYe(t){var n,e;return n=new Ir({props:{data:hu}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:an,i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function dle(t){var n;return{c:function(){(n=Be("div")).textContent=":",ne(n,"class","jse-separator svelte-1wlxti1")},m:function(e,i){nt(e,n,i)},d:function(e){e&&tt(n)}}}function AYe(t){var n,e,i,r,o,s,a,l,c,u,h=Object.keys(t[0]).length+"",d=1===Object.keys(t[0]).length?"prop":"props";return{c:function(){(n=Be("div")).textContent="{",e=xt(),i=Be("button"),r=xn(h),o=xt(),s=xn(d),a=xt(),(l=Be("div")).textContent="}",ne(n,"class","jse-bracket svelte-1wlxti1"),ne(i,"type","button"),ne(i,"class","jse-tag svelte-1wlxti1"),ne(l,"class","jse-bracket svelte-1wlxti1")},m:function(f,p){nt(f,n,p),nt(f,e,p),nt(f,i,p),Ie(i,r),Ie(i,o),Ie(i,s),nt(f,a,p),nt(f,l,p),c||(u=rn(i,"click",t[22]),c=!0)},p:function(f,p){1&p[0]&&h!==(h=Object.keys(f[0]).length+"")&&gi(r,h),1&p[0]&&d!==(d=1===Object.keys(f[0]).length?"prop":"props")&&gi(s,d)},d:function(f){f&&tt(n),f&&tt(e),f&&tt(i),f&&tt(a),f&&tt(l),c=!1,u()}}}function EYe(t){var n;return{c:function(){(n=Be("div")).textContent="{",ne(n,"class","jse-bracket jse-expanded svelte-1wlxti1")},m:function(e,i){nt(e,n,i)},p:an,d:function(e){e&&tt(n)}}}function fle(t){var n,e,i;return e=new cp({props:{selected:!0,onContextMenu:t[8].onContextMenu}}),{c:function(){n=Be("div"),$t(e.$$.fragment),ne(n,"class","jse-context-menu-pointer-anchor svelte-1wlxti1")},m:function(r,o){nt(r,n,o),Nt(e,n,null),i=!0},p:function(r,o){var s={};256&o[0]&&(s.onContextMenu=r[8].onContextMenu),e.$set(s)},i:function(r){i||(_e(e.$$.fragment,r),i=!0)},o:function(r){Ee(e.$$.fragment,r),i=!1},d:function(r){r&&tt(n),Rt(e)}}}function ple(t){var n,e;return n=new y0({props:{validationError:t[15],onExpand:t[22]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};32768&r[0]&&(o.validationError=i[15]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function MYe(t){var n,e,i;return{c:function(){ne(n=Be("div"),"class","jse-insert-selection-area jse-after svelte-1wlxti1"),ne(n,"data-type","insert-selection-area-after")},m:function(r,o){nt(r,n,o),e||(i=rn(n,"click",t[30]),e=!0)},p:an,d:function(r){r&&tt(n),e=!1,i()}}}function IYe(t){var n,e,i;return{c:function(){ne(n=Be("div"),"class","jse-insert-selection-area jse-inside svelte-1wlxti1"),ne(n,"data-type","insert-selection-area-inside")},m:function(r,o){nt(r,n,o),e||(i=rn(n,"click",t[29]),e=!0)},p:an,d:function(r){r&&tt(n),e=!1,i()}}}function gle(t){for(var n,e,i,r,o,s,a,l=!t[8].readOnly&&("hover-insert-inside"===t[10]||t[16]&&ua(t[7])),c=l&&mle(t),u=t[19](t[1],t[0],t[2],t[3],t[4],t[5],t[6],t[7],t[11]),h=[],d=0;d}',s=xt(),p&&p.c(),ne(n,"class","jse-props svelte-1wlxti1"),ne(o,"data-type","selectable-value"),ne(o,"class","jse-footer svelte-1wlxti1"),ne(r,"class","jse-footer-outer svelte-1wlxti1"),ne(r,"style",t[18])},m:function(m,w){nt(m,n,w),c&&c.m(n,null),Ie(n,e);for(var C=0;C]',s=xt(),C&&C.c(),ne(n,"class","jse-items svelte-1wlxti1"),ne(o,"data-type","selectable-value"),ne(o,"class","jse-footer svelte-1wlxti1"),ne(r,"class","jse-footer-outer svelte-1wlxti1"),ne(r,"style",t[18])},m:function(k,E){nt(k,n,E),h&&h.m(n,null),Ie(n,e);for(var L=0;L=rt.start&&Se<=rt.end});if(!ke)return null;eoe(ke.start,Math.min(p.length,ke.end),function(rt){return wt(String(rt))})}else Object.keys(p).forEach(wt);return Ve}(B,l||xg);if(fe("dragSelectionStart",{selection:B,items:Z}),Z){var me=n0(B),ae=Z.findIndex(function(Oe){return Mr(Oe.path,me)}),Te=hN({json:G.getJson(),documentState:G.getDocumentState(),deltaY:0,items:Z}).offset;e(11,ue={initialTarget:z.target,initialClientY:z.clientY,initialContentTop:ge(),selectionStartIndex:ae,selectionItemsCount:Joe(B).length,items:Z,offset:Te,didMoveItems:!1}),Ca.dragging=!0,document.addEventListener("mousemove",le,!0),document.addEventListener("mouseup",Fe)}else fe("Cannot drag the current selection (probably spread over multiple sections)")}else oe(z)}},function(z){Ca.selecting||Ca.dragging||(z.stopPropagation(),Rg(z.target,"data-type","selectable-value")?e(10,re="hover-collection"):Rg(z.target,"data-type","insert-selection-area-inside")?e(10,re="hover-insert-inside"):Rg(z.target,"data-type","insert-selection-area-after")&&e(10,re="hover-insert-after"),clearTimeout(ce))},function(z){z.stopPropagation(),ce=setTimeout(function(){return e(10,re=void 0)})},function(z){z.shiftKey||(z.stopPropagation(),z.preventDefault(),G.onSelect(cf(m)))},function(z){z.shiftKey||(z.stopPropagation(),z.preventDefault(),G.onSelect(uf(m)))},function(z){G.onSelect(cf(m)),G.onContextMenu(z)},function(z){G.onSelect(uf(m)),G.onContextMenu(z)},oe,d,f]}var dN=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,HYe,BYe,Zi,{value:0,path:1,expandedMap:2,enforceStringMap:3,visibleSectionsMap:4,validationErrorsMap:5,searchResultItemsMap:6,selection:7,context:8,onDragSelectionStart:33},bYe,[-1,-1]),r}return Xe(e)}(),VYe=dN,zYe={prefix:"fas",iconName:"jsoneditor-expand",icon:[512,512,[],"","M 0,448 V 512 h 512 v -64 z M 0,0 V 64 H 512 V 0 Z M 256,96 128,224 h 256 z M 256,416 384,288 H 128 Z"]},UYe={prefix:"fas",iconName:"jsoneditor-collapse",icon:[512,512,[],"","m 0,224 v 64 h 512 v -64 z M 256,192 384,64 H 128 Z M 256,320 128,448 h 256 z"]},fN={prefix:"fas",iconName:"jsoneditor-format",icon:[512,512,[],"","M 0,32 v 64 h 416 v -64 z M 160,160 v 64 h 352 v -64 z M 160,288 v 64 h 288 v -64 z M 0,416 v 64 h 320 v -64 z"]},WYe={prefix:"fas",iconName:"jsoneditor-compact",icon:[512,512,[],"","M 0,32 v 64 h 512 v -64 z M 0,160 v 64 h 512 v -64 z M 0,288 v 64 h 352 v -64 z"]};function GYe(t){var n,e;return n=new ek({props:{items:t[0]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};1&di(r,1)[0]&&(o.items=i[0]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function qYe(t,n,e){var i,r,o,s,a,l,c,u=n.json,h=n.selection,d=n.readOnly,f=n.showSearch,p=void 0!==f&&f,m=n.historyState,w=n.onExpandAll,C=n.onCollapseAll,k=n.onUndo,E=n.onRedo,L=n.onSort,B=n.onTransform,G=n.onContextMenu,oe=n.onCopy,fe=n.onRenderMenu;function re(){e(1,p=!p)}return t.$$set=function(ce){"json"in ce&&e(2,u=ce.json),"selection"in ce&&e(3,h=ce.selection),"readOnly"in ce&&e(4,d=ce.readOnly),"showSearch"in ce&&e(1,p=ce.showSearch),"historyState"in ce&&e(5,m=ce.historyState),"onExpandAll"in ce&&e(6,w=ce.onExpandAll),"onCollapseAll"in ce&&e(7,C=ce.onCollapseAll),"onUndo"in ce&&e(8,k=ce.onUndo),"onRedo"in ce&&e(9,E=ce.onRedo),"onSort"in ce&&e(10,L=ce.onSort),"onTransform"in ce&&e(11,B=ce.onTransform),"onContextMenu"in ce&&e(12,G=ce.onContextMenu),"onCopy"in ce&&e(13,oe=ce.onCopy),"onRenderMenu"in ce&&e(14,fe=ce.onRenderMenu)},t.$$.update=function(){4&t.$$.dirty&&e(20,i=void 0!==u),1048584&t.$$.dirty&&e(19,r=i&&(io(h)||$s(h)||xr(h))),68&t.$$.dirty&&e(15,s={type:"button",icon:zYe,title:"Expand all",className:"jse-expand-all",onClick:w,disabled:!ss(u)}),132&t.$$.dirty&&e(16,a={type:"button",icon:UYe,title:"Collapse all",className:"jse-collapse-all",onClick:C,disabled:!ss(u)}),4&t.$$.dirty&&e(17,l={type:"button",icon:YO,title:"Search (Ctrl+F)",className:"jse-search",onClick:re,disabled:void 0===u}),769844&t.$$.dirty&&e(18,c=d?[s,a,{type:"separator"},{type:"button",icon:sp,title:"Copy (Ctrl+C)",className:"jse-copy",onClick:oe,disabled:!r},{type:"separator"},l,{type:"space"}]:[s,a,{type:"separator"},{type:"button",icon:z2,title:"Sort",className:"jse-sort",onClick:L,disabled:d||void 0===u},{type:"button",icon:B2,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:B,disabled:d||void 0===u},l,{type:"button",icon:yse,title:bF,className:"jse-contextmenu",onClick:G},{type:"separator"},{type:"button",icon:XO,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:k,disabled:!m.canUndo},{type:"button",icon:qO,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:E,disabled:!m.canRedo},{type:"space"}]),278528&t.$$.dirty&&e(0,o=fe(c)||c)},[o,p,u,h,d,m,w,C,k,E,L,B,G,oe,fe,s,a,l,c,r,i]}var XYe=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,qYe,GYe,Zi,{json:2,selection:3,readOnly:4,showSearch:1,historyState:5,onExpandAll:6,onCollapseAll:7,onUndo:8,onRedo:9,onSort:10,onTransform:11,onContextMenu:12,onCopy:13,onRenderMenu:14}),r}return Xe(e)}();function YYe(t){Ni(t,"svelte-1q2qkk2",'@charset "UTF-8";.jse-welcome.svelte-1q2qkk2.svelte-1q2qkk2{flex:1;overflow:auto;font-family:var(--jse-font-family);font-size:var(--jse-font-size);display:flex;flex-direction:column;align-items:center;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-welcome.svelte-1q2qkk2.svelte-1q2qkk2:last-child{border-bottom:var(--jse-main-border)}.jse-welcome.svelte-1q2qkk2 .jse-space.jse-before.svelte-1q2qkk2{flex:1}.jse-welcome.svelte-1q2qkk2 .jse-space.jse-after.svelte-1q2qkk2{flex:2}.jse-welcome.svelte-1q2qkk2 .jse-contents.svelte-1q2qkk2{margin:2em var(--jse-padding) 0;color:var(--jse-panel-color-readonly)}.jse-welcome.svelte-1q2qkk2 .jse-contents ul.svelte-1q2qkk2{list-style:"\u25cf";list-style-position:outside;padding-left:20px}.jse-welcome.svelte-1q2qkk2 .jse-contents ul li.svelte-1q2qkk2{padding-left:10px}.jse-welcome.svelte-1q2qkk2 .jse-contents ul li span.jse-bold.svelte-1q2qkk2{font-family:var(--jse-font-family-mono);font-weight:bold}')}function Ele(t){var n;return{c:function(){(n=Be("ul")).innerHTML='
  • Click inside the editor
  • \n
  • Paste clipboard data using Ctrl+V
  • \n
  • Create a new object by typing {
  • \n
  • Create a new array by typing [
  • ',ne(n,"class","svelte-1q2qkk2")},m:function(e,i){nt(e,n,i)},d:function(e){e&&tt(n)}}}function KYe(t){var n,e,i,r,o,s,a,l=!t[0]&&Ele();return{c:function(){n=Be("div"),e=Be("div"),i=xt(),r=Be("div"),o=xn("Empty document\n "),l&&l.c(),s=xt(),a=Be("div"),ne(e,"class","jse-space jse-before svelte-1q2qkk2"),ne(r,"class","jse-contents svelte-1q2qkk2"),ne(a,"class","jse-space jse-after svelte-1q2qkk2"),ne(n,"class","jse-welcome svelte-1q2qkk2")},m:function(c,u){nt(c,n,u),Ie(n,e),Ie(n,i),Ie(n,r),Ie(r,o),l&&l.m(r,null),Ie(n,s),Ie(n,a)},p:function(c,u){di(u,1),c[0]?l&&(l.d(1),l=null):l||((l=Ele()).c(),l.m(r,null))},i:an,o:an,d:function(c){c&&tt(n),l&&l.d()}}}function JYe(t,n,e){var i=n.readOnly;return t.$$set=function(r){"readOnly"in r&&e(0,i=r.readOnly)},[i]}var QYe=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,JYe,KYe,Zi,{readOnly:0},YYe),r}return Xe(e)}(),pN={},ZYe={get exports(){return pN},set exports(t){pN=t}},Mle=function(t,n){var e,i,r=1,o=0,s=0,a=String.alphabet;function l(c,u,h){if(h){for(e=u;(h=l(c,e))<76&&h>65;)++e;return+c.slice(u-1,e)}return(h=a&&a.indexOf(c.charAt(u)))>-1?h+76:(h=c.charCodeAt(u)||0)<45||h>127?h:h<46?65:h<48?h-1:h<58?h+18:h<65?h-11:h<91?h+11:h<97?h-37:h<123?h+5:h-63}if((t+="")!=(n+=""))for(;r;)if(i=l(t,o++),r=l(n,s++),i<76&&r<76&&i>66&&r>66&&(i=l(t,o,o),r=l(n,s,o=e),s=e),i!=r)return i1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(Ao(Un(t,n))){if(void 0===e)throw new Error("Cannot sort: no property selected by which to sort the array");return function tKe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=function nKe(t,n){return function(e,i){var r=Un(e,t),o=Un(i,t);return void 0===r?n:void 0===o?-n:"string"!=typeof r&&"string"!=typeof o?r>o?n:r2&&void 0!==arguments[2]?arguments[2]:[],arguments.length>3&&void 0!==arguments[3]?arguments[3]:1),o=Un(t,n);return[{op:"replace",path:An(n),value:o.slice(0).sort(r)}]}(t,n,e,i)}if(Ko(t))return function eKe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=Un(t,n),o=Object.keys(i).slice();o.sort(function(u,h){return e*gN(u,h)});for(var s=[],a=0;aKb&&Ole();return{c:function(){n=Be("div");for(var h=0;hKb?u?u.p(h,f):((u=Ole()).c(),u.m(n,null)):u&&(u.d(1),u=null)},i:an,o:an,d:function(h){h&&tt(n);for(var d=0;d0&&(a("scrollTo ",w),o.scrollTo({left:w,behavior:"smooth"}))}})},[l,h,d,i,o,s,f,r,function(w){a("get items for path",w);var C=Un(l,w);if(Array.isArray(C))return hO(0,C.length).map(String);if(Ko(C)){var k=Object.keys(C).slice(0);return k.sort(gN),k}return[]},function(w){return tu(l,w)},p,function(){e(6,f=!f)},m,function(w){m(),p(w)},c,u,function(w){dr[w?"unshift":"push"](function(){e(5,s=w)})},function(w){dr[w?"unshift":"push"](function(){e(4,o=w)})}]}var bKe=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,yKe,vKe,Zi,{json:0,documentState:14,onSelect:15,onError:1,pathParser:2},pKe),r}return Xe(e)}();function _Ke(t){Ni(t,"svelte-3lbrbf",".jse-search-box.svelte-3lbrbf.svelte-3lbrbf{border:var(--jse-panel-border);border-radius:3px;font-family:var(--jse-font-family);font-size:var(--jse-font-size);background:var(--jse-panel-background);color:var(--jse-panel-color-readonly);box-shadow:var(--jse-controls-box-shadow);display:inline-block;width:400px;max-width:100%;overflow:auto}.jse-search-box.svelte-3lbrbf .jse-search-form.svelte-3lbrbf{display:flex;align-items:stretch}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf,.jse-search-box.svelte-3lbrbf .jse-search-form input.svelte-3lbrbf{font-family:inherit;font-size:inherit}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf{display:block;text-align:center;border:none;padding:0 5px;margin:0;cursor:pointer;color:var(--jse-panel-button-color);background:var(--jse-panel-button-background)}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf:hover{color:var(--jse-panel-button-color-highlight);background:var(--jse-panel-button-background-highlight)}.jse-search-box.svelte-3lbrbf .jse-search-form input.svelte-3lbrbf{color:var(--jse-panel-color);border:var(--jse-input-border);border-radius:3px;background:var(--jse-input-background);height:28px;padding:0 5px;margin:0;flex:1;width:0;min-width:50px;outline:none}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-replace-toggle.svelte-3lbrbf{padding:var(--jse-padding) calc(0.5 * var(--jse-padding));min-width:20px;background:var(--jse-panel-button-background-highlight)}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents.svelte-3lbrbf{flex:1;display:flex;flex-direction:column;padding:calc(0.5 * var(--jse-padding));gap:calc(0.5 * var(--jse-padding))}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section.svelte-3lbrbf{flex:1;display:flex;align-items:center;position:relative;padding-left:32px}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-icon.svelte-3lbrbf{color:inherit;cursor:inherit;background:inherit;position:absolute;top:calc(0.5 * var(--jse-padding));left:calc(0.5 * var(--jse-padding))}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section label.jse-search-input-label.svelte-3lbrbf{flex:1;display:flex}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-count.svelte-3lbrbf{color:inherit;font-size:80%;visibility:hidden;padding:0 5px;min-width:36px;text-align:center}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-count.jse-visible.svelte-3lbrbf{visibility:visible}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-replace-section.svelte-3lbrbf{padding-left:32px;flex:1;display:flex}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-replace-section button.svelte-3lbrbf{width:auto}")}function zle(t){var n,e,i,r,o,s,a,l,c,u,h,d,f,p,m,w,C,k,E,L,B,G,oe,fe,re,ce,ue,pe,De=(-1!==t[3]?"".concat(t[3]+1,"/"):"")+"",ie=!t[4]&&Ule(t),ge=[xKe,wKe],we=[];function le(z,Q){return z[2]?0:1}a=le(t),l=we[a]=ge[a](t),k=new Ir({props:{data:TGe}}),B=new Ir({props:{data:_Ge}}),fe=new Ir({props:{data:d0}});var Fe=t[0]&&!t[4]&&Wle(t);return{c:function(){n=Be("div"),e=Be("form"),ie&&ie.c(),i=xt(),r=Be("div"),o=Be("div"),s=Be("div"),l.c(),c=xt(),u=Be("label"),h=Be("input"),d=xt(),f=Be("div"),p=xn(De),m=xn(t[10]),w=xt(),C=Be("button"),$t(k.$$.fragment),E=xt(),L=Be("button"),$t(B.$$.fragment),G=xt(),oe=Be("button"),$t(fe.$$.fragment),re=xt(),Fe&&Fe.c(),ne(s,"class","jse-search-icon svelte-3lbrbf"),ne(h,"class","jse-search-input svelte-3lbrbf"),ne(h,"title","Enter text to search"),ne(h,"type","text"),ne(h,"placeholder","Find"),ne(u,"class","jse-search-input-label svelte-3lbrbf"),ne(u,"about","jse-search input"),ne(f,"class","jse-search-count svelte-3lbrbf"),en(f,"jse-visible",""!==t[8]),ne(C,"type","button"),ne(C,"class","jse-search-next svelte-3lbrbf"),ne(C,"title","Go to next search result (Enter)"),ne(L,"type","button"),ne(L,"class","jse-search-previous svelte-3lbrbf"),ne(L,"title","Go to previous search result (Shift+Enter)"),ne(oe,"type","button"),ne(oe,"class","jse-search-clear svelte-3lbrbf"),ne(oe,"title","Close search box (Esc)"),ne(o,"class","jse-search-section svelte-3lbrbf"),ne(r,"class","jse-search-contents svelte-3lbrbf"),ne(e,"class","jse-search-form svelte-3lbrbf"),ne(n,"class","jse-search-box svelte-3lbrbf")},m:function(z,Q){nt(z,n,Q),Ie(n,e),ie&&ie.m(e,null),Ie(e,i),Ie(e,r),Ie(r,o),Ie(o,s),we[a].m(s,null),Ie(o,c),Ie(o,u),Ie(u,h),Vf(h,t[8]),Ie(o,d),Ie(o,f),Ie(f,p),Ie(f,m),Ie(o,w),Ie(o,C),Nt(k,C,null),Ie(o,E),Ie(o,L),Nt(B,L,null),Ie(o,G),Ie(o,oe),Nt(fe,oe,null),Ie(r,re),Fe&&Fe.m(r,null),ce=!0,ue||(pe=[rn(h,"input",t[21]),Ra(SKe.call(null,h)),rn(C,"click",t[22]),rn(L,"click",t[23]),rn(oe,"click",t[24]),rn(e,"submit",t[12]),rn(e,"keydown",t[13])],ue=!0)},p:function(z,Q){z[4]?ie&&(cn(),Ee(ie,1,1,function(){ie=null}),un()):ie?(ie.p(z,Q),16&Q&&_e(ie,1)):((ie=Ule(z)).c(),_e(ie,1),ie.m(e,i));var Z=a;(a=le(z))===Z?we[a].p(z,Q):(cn(),Ee(we[Z],1,1,function(){we[Z]=null}),un(),(l=we[a])?l.p(z,Q):(l=we[a]=ge[a](z)).c(),_e(l,1),l.m(s,null)),256&Q&&h.value!==z[8]&&Vf(h,z[8]),(!ce||8&Q)&&De!==(De=(-1!==z[3]?"".concat(z[3]+1,"/"):"")+"")&&gi(p,De),(!ce||1024&Q)&&gi(m,z[10]),(!ce||256&Q)&&en(f,"jse-visible",""!==z[8]),z[0]&&!z[4]?Fe?Fe.p(z,Q):((Fe=Wle(z)).c(),Fe.m(r,null)):Fe&&(Fe.d(1),Fe=null)},i:function(z){ce||(_e(ie),_e(l),_e(k.$$.fragment,z),_e(B.$$.fragment,z),_e(fe.$$.fragment,z),ce=!0)},o:function(z){Ee(ie),Ee(l),Ee(k.$$.fragment,z),Ee(B.$$.fragment,z),Ee(fe.$$.fragment,z),ce=!1},d:function(z){z&&tt(n),ie&&ie.d(),we[a].d(),Rt(k),Rt(B),Rt(fe),Fe&&Fe.d(),ue=!1,Fo(pe)}}}function Ule(t){var n,e,i,r,o;return e=new Ir({props:{data:t[0]?hu:rp}}),{c:function(){n=Be("button"),$t(e.$$.fragment),ne(n,"type","button"),ne(n,"class","jse-replace-toggle svelte-3lbrbf"),ne(n,"title","Toggle visibility of replace options (Ctrl+H)")},m:function(s,a){nt(s,n,a),Nt(e,n,null),i=!0,r||(o=rn(n,"click",t[11]),r=!0)},p:function(s,a){var l={};1&a&&(l.data=s[0]?hu:rp),e.$set(l)},i:function(s){i||(_e(e.$$.fragment,s),i=!0)},o:function(s){Ee(e.$$.fragment,s),i=!1},d:function(s){s&&tt(n),Rt(e),r=!1,o()}}}function wKe(t){var n,e;return n=new Ir({props:{data:YO}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:an,i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function xKe(t){var n,e;return n=new Ir({props:{data:vGe,spin:!0}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:an,i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function Wle(t){var n,e,i,r,o,s,a,l;return{c:function(){n=Be("div"),e=Be("input"),i=xt(),(r=Be("button")).textContent="Replace",o=xt(),(s=Be("button")).textContent="All",ne(e,"class","jse-replace-input svelte-3lbrbf"),ne(e,"title","Enter replacement text"),ne(e,"type","text"),ne(e,"placeholder","Replace"),ne(r,"type","button"),ne(r,"title","Replace current occurrence (Ctrl+Enter)"),ne(r,"class","svelte-3lbrbf"),ne(s,"type","button"),ne(s,"title","Replace all occurrences"),ne(s,"class","svelte-3lbrbf"),ne(n,"class","jse-replace-section svelte-3lbrbf")},m:function(c,u){nt(c,n,u),Ie(n,e),Vf(e,t[9]),Ie(n,i),Ie(n,r),Ie(n,o),Ie(n,s),a||(l=[rn(e,"input",t[25]),rn(r,"click",t[14]),rn(s,"click",t[15])],a=!0)},p:function(c,u){512&u&&e.value!==c[9]&&Vf(e,c[9])},d:function(c){c&&tt(n),a=!1,Fo(l)}}}function CKe(t){var n,e,i=t[1]&&zle(t);return{c:function(){i&&i.c(),n=Wr()},m:function(r,o){i&&i.m(r,o),nt(r,n,o),e=!0},p:function(r,o){var s=di(o,1)[0];r[1]?i?(i.p(r,s),2&s&&_e(i,1)):((i=zle(r)).c(),_e(i,1),i.m(n.parentNode,n)):i&&(cn(),Ee(i,1,1,function(){i=null}),un())},i:function(r){e||(_e(i),e=!0)},o:function(r){Ee(i),e=!1},d:function(r){i&&i.d(r),r&&tt(n)}}}function SKe(t){t.select()}function kKe(t,n,e){var i,r,o=n.show,s=void 0!==o&&o,a=n.searching,l=n.resultCount,c=void 0===l?0:l,u=n.activeIndex,h=void 0===u?0:u,d=n.showReplace,f=void 0!==d&&d,p=n.readOnly,m=void 0!==p&&p,w=n.onChange,C=void 0===w?Ro:w,k=n.onPrevious,E=void 0===k?Ro:k,L=n.onNext,B=void 0===L?Ro:L,G=n.onReplace,oe=void 0===G?Ro:G,fe=n.onReplaceAll,re=void 0===fe?Ro:fe,ce=n.onClose,ue=void 0===ce?Ro:ce,pe="",De="",ie="";function ge(){e(0,f=!f&&!m)}function we(){m||oe(pe,ie)}return t.$$set=function(le){"show"in le&&e(1,s=le.show),"searching"in le&&e(2,a=le.searching),"resultCount"in le&&e(16,c=le.resultCount),"activeIndex"in le&&e(3,h=le.activeIndex),"showReplace"in le&&e(0,f=le.showReplace),"readOnly"in le&&e(4,m=le.readOnly),"onChange"in le&&e(17,C=le.onChange),"onPrevious"in le&&e(5,E=le.onPrevious),"onNext"in le&&e(6,B=le.onNext),"onReplace"in le&&e(18,oe=le.onReplace),"onReplaceAll"in le&&e(19,re=le.onReplaceAll),"onClose"in le&&e(7,ue=le.onClose)},t.$$.update=function(){65536&t.$$.dirty&&e(10,i=c>=1e3?"".concat(999,"+"):String(c)),131072&t.$$.dirty&&e(20,r=Uv(C,300)),1048832&t.$$.dirty&&r(pe),2&t.$$.dirty&&s&&""!==pe&&C(pe)},[f,s,a,h,m,E,B,ue,pe,ie,i,ge,function(le){le.preventDefault(),pe!==De?(De=pe,r.cancel(),C(pe)):B()},function(le){le.stopPropagation();var Fe=tp(le);"Enter"===Fe&&(le.preventDefault(),B()),"Shift+Enter"===Fe&&(le.preventDefault(),E()),"Ctrl+Enter"===Fe&&(le.preventDefault(),f?we():B()),"Ctrl+H"===Fe&&(le.preventDefault(),ge()),"Escape"===Fe&&(le.preventDefault(),ue())},we,function(){m||re(pe,ie)},c,C,oe,re,r,function(){e(8,pe=this.value)},function(){return B()},function(){return E()},function(){return ue()},function(){e(9,ie=this.value)}]}var DKe=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,kKe,CKe,Zi,{show:1,searching:2,resultCount:16,activeIndex:3,showReplace:0,readOnly:4,onChange:17,onPrevious:5,onNext:6,onReplace:18,onReplaceAll:19,onClose:7},_Ke),r}return Xe(e)}(),Gle=Number.isNaN||function(t){return"number"==typeof t&&t!=t};function TKe(t,n){if(t.length!==n.length)return!1;for(var e=0;e \n
    loading...
    ',ne(n,"class","jse-contents svelte-qojdc1")},m:function(e,i){nt(e,n,i)},p:an,i:an,o:an,d:function(e){e&&tt(n)}}}function zKe(t){var n,e,i,r,o,s,a,l,c,u=[WKe,UKe],h=[];function d(f,p){return void 0===f[10]?0:1}return r=d(t),o=h[r]=u[r](t),{c:function(){n=Be("label"),e=Be("input"),i=xt(),o.c(),s=Wr(),ne(e,"type","text"),e.readOnly="readonly",ne(e,"tabindex","-1"),ne(e,"class","jse-hidden-input svelte-qojdc1"),ne(n,"class","jse-hidden-input-label svelte-qojdc1")},m:function(f,p){nt(f,n,p),Ie(n,e),t[76](e),nt(f,i,p),h[r].m(f,p),nt(f,s,p),a=!0,l||(c=rn(e,"paste",t[34]),l=!0)},p:function(f,p){var m=r;(r=d(f))===m?h[r].p(f,p):(cn(),Ee(h[m],1,1,function(){h[m]=null}),un(),(o=h[r])?o.p(f,p):(o=h[r]=u[r](f)).c(),_e(o,1),o.m(s.parentNode,s))},i:function(f){a||(_e(o),a=!0)},o:function(f){Ee(o),a=!1},d:function(f){f&&tt(n),t[76](null),f&&tt(i),h[r].d(f),f&&tt(s),l=!1,c()}}}function UKe(t){var n,e,i,r,o,s,a,l,c,u,h,d,f,p;s=new DKe({props:{show:t[19],resultCount:(null===(n=t[17])||void 0===n||null===(e=n.items)||void 0===e?void 0:e.length)||0,activeIndex:(null===(i=t[17])||void 0===i?void 0:i.activeIndex)||0,showReplace:t[20],searching:t[21],readOnly:t[0],onChange:t[26],onNext:t[27],onPrevious:t[28],onReplace:t[29],onReplaceAll:t[30],onClose:t[31]}}),c=new VYe({props:{value:t[10],path:[],expandedMap:t[16].expandedMap,enforceStringMap:t[16].enforceStringMap,visibleSectionsMap:t[16].visibleSectionsMap,validationErrorsMap:t[24],searchResultItemsMap:null===(r=t[17])||void 0===r?void 0:r.itemsMap,selection:t[16].selection,context:t[13],onDragSelectionStart:Ro}});var m=t[18]&&ice(t),w=t[23]&&rce(t);return f=new sN({props:{validationErrors:t[12],selectError:t[32]}}),{c:function(){o=Be("div"),$t(s.$$.fragment),a=xt(),l=Be("div"),$t(c.$$.fragment),u=xt(),m&&m.c(),h=xt(),w&&w.c(),d=xt(),$t(f.$$.fragment),ne(o,"class","jse-search-box-container svelte-qojdc1"),ne(l,"class","jse-contents svelte-qojdc1"),ne(l,"data-jsoneditor-scrollable-contents",!0)},m:function(C,k){nt(C,o,k),Nt(s,o,null),nt(C,a,k),nt(C,l,k),Nt(c,l,null),t[77](l),nt(C,u,k),m&&m.m(C,k),nt(C,h,k),w&&w.m(C,k),nt(C,d,k),Nt(f,C,k),p=!0},p:function(C,k){var E,L,B,G,oe={};524288&k[0]&&(oe.show=C[19]),131072&k[0]&&(oe.resultCount=(null===(E=C[17])||void 0===E||null===(L=E.items)||void 0===L?void 0:L.length)||0),131072&k[0]&&(oe.activeIndex=(null===(B=C[17])||void 0===B?void 0:B.activeIndex)||0),1048576&k[0]&&(oe.showReplace=C[20]),2097152&k[0]&&(oe.searching=C[21]),1&k[0]&&(oe.readOnly=C[0]),s.$set(oe);var fe={};1024&k[0]&&(fe.value=C[10]),65536&k[0]&&(fe.expandedMap=C[16].expandedMap),65536&k[0]&&(fe.enforceStringMap=C[16].enforceStringMap),65536&k[0]&&(fe.visibleSectionsMap=C[16].visibleSectionsMap),16777216&k[0]&&(fe.validationErrorsMap=C[24]),131072&k[0]&&(fe.searchResultItemsMap=null===(G=C[17])||void 0===G?void 0:G.itemsMap),65536&k[0]&&(fe.selection=C[16].selection),8192&k[0]&&(fe.context=C[13]),c.$set(fe),C[18]?m?(m.p(C,k),262144&k[0]&&_e(m,1)):((m=ice(C)).c(),_e(m,1),m.m(h.parentNode,h)):m&&(cn(),Ee(m,1,1,function(){m=null}),un()),C[23]?w?(w.p(C,k),8388608&k[0]&&_e(w,1)):((w=rce(C)).c(),_e(w,1),w.m(d.parentNode,d)):w&&(cn(),Ee(w,1,1,function(){w=null}),un());var re={};4096&k[0]&&(re.validationErrors=C[12]),f.$set(re)},i:function(C){p||(_e(s.$$.fragment,C),_e(c.$$.fragment,C),_e(m),_e(w),_e(f.$$.fragment,C),p=!0)},o:function(C){Ee(s.$$.fragment,C),Ee(c.$$.fragment,C),Ee(m),Ee(w),Ee(f.$$.fragment,C),p=!1},d:function(C){C&&tt(o),Rt(s),C&&tt(a),C&&tt(l),Rt(c),t[77](null),C&&tt(u),m&&m.d(C),C&&tt(h),w&&w.d(C),C&&tt(d),Rt(f,C)}}}function WKe(t){var n,e,i,r,o=[qKe,GKe],s=[];function a(l,c){return""===l[11]||void 0===l[11]?0:1}return n=a(t),e=s[n]=o[n](t),{c:function(){e.c(),i=Wr()},m:function(l,c){s[n].m(l,c),nt(l,i,c),r=!0},p:function(l,c){var u=n;(n=a(l))===u?s[n].p(l,c):(cn(),Ee(s[u],1,1,function(){s[u]=null}),un(),(e=s[n])?e.p(l,c):(e=s[n]=o[n](l)).c(),_e(e,1),e.m(i.parentNode,i))},i:function(l){r||(_e(e),r=!0)},o:function(l){Ee(e),r=!1},d:function(l){s[n].d(l),l&&tt(i)}}}function ice(t){var n,e;return n=new sh({props:{type:"info",message:"You pasted a JSON ".concat(Array.isArray(t[18].contents)?"array":"object"," as text"),actions:[{icon:H2,text:"Paste as JSON instead",onMouseDown:t[45]},{text:"Leave as is",onClick:t[46]}]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};262144&r[0]&&(o.message="You pasted a JSON ".concat(Array.isArray(i[18].contents)?"array":"object"," as text")),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function rce(t){var n,e;return n=new sh({props:{type:"success",message:"The loaded JSON document was invalid but is successfully repaired.",actions:t[0]?[]:[{icon:Ub,text:"Ok",onClick:t[8]},{icon:op,text:"Repair manually instead",onClick:t[47]}]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};1&r[0]&&(o.actions=i[0]?[]:[{icon:Ub,text:"Ok",onClick:i[8]},{icon:op,text:"Repair manually instead",onClick:i[47]}]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function GKe(t){var n,e,i,r;return n=new sh({props:{type:"error",message:"The loaded JSON document is invalid and could not be repaired automatically.",actions:t[0]?[]:[{icon:op,text:"Repair manually",onClick:t[47]}]}}),i=new ece({props:{text:t[11],json:t[10],indentation:t[5],parser:t[3]}}),{c:function(){$t(n.$$.fragment),e=xt(),$t(i.$$.fragment)},m:function(o,s){Nt(n,o,s),nt(o,e,s),Nt(i,o,s),r=!0},p:function(o,s){var a={};1&s[0]&&(a.actions=o[0]?[]:[{icon:op,text:"Repair manually",onClick:o[47]}]),n.$set(a);var l={};2048&s[0]&&(l.text=o[11]),1024&s[0]&&(l.json=o[10]),32&s[0]&&(l.indentation=o[5]),8&s[0]&&(l.parser=o[3]),i.$set(l)},i:function(o){r||(_e(n.$$.fragment,o),_e(i.$$.fragment,o),r=!0)},o:function(o){Ee(n.$$.fragment,o),Ee(i.$$.fragment,o),r=!1},d:function(o){Rt(n,o),o&&tt(e),Rt(i,o)}}}function qKe(t){var n,e;return n=new QYe({props:{readOnly:t[0]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};1&r[0]&&(o.readOnly=i[0]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function XKe(t){var n,e,i,r,o,s,a,l,c=t[1]&&tce(t),u=t[2]&&nce(t),d=[];return o=d[r=t[25]?1:0]=[zKe,VKe][r](t),{c:function(){n=Be("div"),c&&c.c(),e=xt(),u&&u.c(),i=xt(),o.c(),ne(n,"class","jse-tree-mode svelte-qojdc1"),en(n,"no-main-menu",!t[1])},m:function(f,p){nt(f,n,p),c&&c.m(n,null),Ie(n,e),u&&u.m(n,null),Ie(n,i),d[r].m(n,null),t[78](n),s=!0,a||(l=[rn(BKe,"mousedown",t[49]),rn(n,"keydown",t[41]),rn(n,"mousedown",t[42]),rn(n,"contextmenu",t[43])],a=!0)},p:function(f,p){f[1]?c?(c.p(f,p),2&p[0]&&_e(c,1)):((c=tce(f)).c(),_e(c,1),c.m(n,e)):c&&(cn(),Ee(c,1,1,function(){c=null}),un()),f[2]?u?(u.p(f,p),4&p[0]&&_e(u,1)):((u=nce(f)).c(),_e(u,1),u.m(n,i)):u&&(cn(),Ee(u,1,1,function(){u=null}),un()),o.p(f,p),(!s||2&p[0])&&en(n,"no-main-menu",!f[1])},i:function(f){s||(_e(c),_e(u),_e(o),s=!0)},o:function(f){Ee(c),Ee(u),Ee(o),s=!1},d:function(f){f&&tt(n),c&&c.d(),u&&u.d(),d[r].d(),t[78](null),a=!1,Fo(l)}}}function YKe(t,n,e){var i,r=Pa("jsoneditor:TreeMode"),o=typeof window>"u";r("isSSR:",o);var s,a,l,c,u,h=$a("simple-modal").open,d=ep(),f=ep(),p=$a("absolute-popup"),m=p.openAbsolutePopup,w=p.closeAbsolutePopup,C=!1,k=hae(),E=n.readOnly,L=n.externalContent,B=n.mainMenuBar,G=n.navigationBar,oe=n.escapeControlCharacters,fe=n.escapeUnicodeCharacters,re=n.parser,ce=n.parseMemoizeOne,ue=n.validator,pe=n.validationParser,De=n.pathParser,ie=n.indentation,ge=n.onError,we=n.onChange,le=n.onChangeMode,Fe=n.onRenderValue,z=n.onRenderMenu,Q=n.onClassName,Z=n.onFocus,me=n.onBlur,ae=n.onSortModal,Te=n.onTransformModal,Oe=n.onJSONEditorModal,Ze=!1;oN({onMount:Zc,onDestroy:Gu,getWindow:function(){return Qv(l)},hasFocus:function(){return Ze&&document.hasFocus()||L2(l)},onFocus:function(){C=!0,Z&&Z()},onBlur:function(){C=!1,me&&me()}});var Ve=void 0;function wt(Ge){r("updateSelection",Ge);var Dt="function"==typeof Ge?Ge(ke.selection):Ge;Mr(Dt,ke.selection)||e(16,ke=_t(_t({},ke),{},{selection:Dt}))}var ct,Ct,se,Se=!1,ke=N2(),Qe=!1,gt=!1,rt=!1,zt="";function Qt(Ge){return Pn.apply(this,arguments)}function Pn(){return(Pn=Dr(Rn().mark(function Ge(Dt){return Rn().wrap(function(tn){for(;;)switch(tn.prev=tn.next){case 0:return r("search text updated",Dt),e(74,zt=Dt),tn.next=4,oc();case 4:return tn.next=6,ro();case 6:case"end":return tn.stop()}},Ge)}))).apply(this,arguments)}function Mi(){return(Mi=Dr(Rn().mark(function Ge(){return Rn().wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:return e(17,ct=ct?GWe(ct):void 0),Dt.next=3,ro();case 3:case"end":return Dt.stop()}},Ge)}))).apply(this,arguments)}function Sn(){return(Sn=Dr(Rn().mark(function Ge(){return Rn().wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:return e(17,ct=ct?qWe(ct):void 0),Dt.next=3,ro();case 3:case"end":return Dt.stop()}},Ge)}))).apply(this,arguments)}function nr(){return(nr=Dr(Rn().mark(function Ge(Dt,tn){var vn,Cn,Dn,Ei;return Rn().wrap(function(Oi){for(;;)switch(Oi.prev=Oi.next){case 0:if(Cn=null===(vn=ct)||void 0===vn?void 0:vn.activeItem,r("handleReplace",{replacementText:tn,activeItem:Cn}),Cn){Oi.next=4;break}return Oi.abrupt("return");case 4:return Dn=XWe(c,ke,tn,Cn,re),Ei=Dn.newSelection,mi(Dn.operations,function(ns,Zs){return{state:_t(_t({},Zs),{},{selection:Ei})}}),Oi.next=8,oc();case 8:return Oi.next=10,ro();case 10:case"end":return Oi.stop()}},Ge)}))).apply(this,arguments)}function On(){return(On=Dr(Rn().mark(function Ge(Dt,tn){var vn,Dn;return Rn().wrap(function(li){for(;;)switch(li.prev=li.next){case 0:return r("handleReplaceAll",{text:Dt,replacementText:tn}),vn=YWe(c,ke,Dt,tn,re),Dn=vn.newSelection,mi(vn.operations,function(Ei,Oi){return{state:_t(_t({},Oi),{},{selection:Dn})}}),li.next=5,oc();case 5:return li.next=7,ro();case 7:case"end":return li.stop()}},Ge)}))).apply(this,arguments)}function ro(){return uo.apply(this,arguments)}function uo(){return(uo=Dr(Rn().mark(function Ge(){var Dt,tn,vn;return Rn().wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:if(tn=null===(Dt=ct)||void 0===Dt?void 0:Dt.activeItem,r("focusActiveSearchResult",ct),!tn){Cn.next=9;break}return e(16,ke=_t(_t({},OO(c,ke,vn=tn.path)),{},{selection:void 0})),Cn.next=7,oc();case 7:return Cn.next=9,Fn(vn);case 9:case"end":return Cn.stop()}},Ge)}))).apply(this,arguments)}var er,vo,qr=dae({onChange:function(Ge){e(22,oo=Ge)}}),oo=qr.getState(),es=pO(function(Ge,Dt){if(""===Ge)return r("clearing search result"),void(void 0!==ct&&e(17,ct=void 0));e(21,rt=!0),setTimeout(function(){r("searching...",Ge);var Cn,Dn,li,Ei,Oi,ns,Zs,tn=sse(Ge,Dt,1e3);e(17,(Cn=tn,li=null!=(Dn=ct)&&Dn.activeItem?cse(Dn.activeItem):void 0,Ei=Cn.findIndex(function(ms){return Mr(li,cse(ms))}),Oi=-1!==Ei?Ei:void 0!==Dn?.activeIndex&&Dn?.activeIndex0?0:-1,Zs=(ns=Cn.map(function(ms,Vo){return _t(_t({},ms),{},{active:Vo===Oi})}))[Oi],ct={items:ns,itemsMap:Gv(ns,function(ms){return An(ms.path)}),activeItem:Zs,activeIndex:Oi})),e(21,rt=!1)})},300),Zn=!1,Ut=[],Ii=Jb(fae);function ir(Ge,Dt,tn,vn){p0(function(){var Cn;try{Cn=Ii(Ge,Dt,tn,vn)}catch(Dn){Cn=[{path:[],message:"Failed to validate: "+Dn.message,severity:Xh.warning}]}Mr(Cn,Ut)||(r("validationErrors changed:",Cn),e(12,Ut=Cn))},function(Cn){return r("validationErrors updated in ".concat(Cn," ms"))})}function Xr(){return r("validate"),Ve?{parseError:Ve,isRepairable:!1}:(ir(c,ue,re,pe),fr(Ut)?null:{validationErrors:Ut})}function Ho(){return c}function gs(){return ke}function ei(Ge){Se||(Se=!0,e(16,ke=cu(Ge,ke,[],loe({json:Ge},10240)?sd:Bb)))}function Ai(Ge){void 0!==ke.selection&&(ke.selection&&tu(Ge,ke.selection.anchorPath)&&tu(Ge,ke.selection.focusPath)||(r("clearing selection: path does not exist anymore",ke.selection),e(16,ke=_t(_t({},ke),{},{selection:r0(Ge,ke)}))))}function Vi(Ge){var Dt=Ge.previousJson,tn=Ge.previousState,vn=Ge.previousText,Cn=Ge.previousTextIsRepaired;void 0===Dt&&void 0===vn||(void 0!==c?qr.add(void 0!==Dt?{undo:{patch:[{op:"replace",path:"",value:Dt}],state:Cl(tn),json:void 0,text:vn,textIsRepaired:Cn},redo:{patch:[{op:"replace",path:"",value:c}],state:Cl(ke),json:void 0,text:u,textIsRepaired:Zn}}:{undo:{patch:void 0,json:void 0,text:vn,state:Cl(tn),textIsRepaired:Cn},redo:{patch:void 0,json:c,state:Cl(ke),text:u,textIsRepaired:Zn}}):void 0!==Dt&&qr.add({undo:{patch:void 0,json:Dt,state:Cl(tn),text:vn,textIsRepaired:Cn},redo:{patch:void 0,json:void 0,text:u,textIsRepaired:Zn,state:Cl(ke)}}))}function Zr(Ge,Dt){if(r("patch",Ge,Dt),void 0===c)throw new Error("Cannot apply patch: no JSON");var tn={json:c,text:u},vn=c,Cn=ke,Dn=u,li=Zn,Ei=rse(c,Ge),Oi=Poe(c,ke,Ge),ns=o0(c,Ge),Zs=function(xd,Ch){return void 0!==Ch||!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?_t(_t({},xd),{},{selection:Ch}):xd}(Oi.documentState,ns,!1);r("patch updatedSelection",ns);var ms="function"==typeof Dt?Dt(Oi.json,Zs):void 0;e(10,c=ms&&void 0!==ms.json?ms.json:Oi.json);var Vo=ms&&void 0!==ms.state?ms.state:Zs;e(16,ke=Vo),e(11,u=void 0),e(23,Zn=!1),e(18,se=void 0),Ai(c),qr.add({undo:{patch:Ei,json:void 0,text:Dn,state:Cl(Cn),textIsRepaired:li},redo:{patch:Ge,json:void 0,state:Cl(Vo),text:u,textIsRepaired:Zn}});var Kl={json:c,previousJson:vn,undo:Ei,redo:Ge};return _i(tn,Kl),Kl}function yo(){!E&&ke.selection&&wt(uu(ke.selection.focusPath,!0))}function Mo(){if(!E&&ke.selection){var Ge=ke.selection.focusPath,Dt=Un(c,Ge);ss(Dt)?(r("openJSONEditorModal",{path:tn=Ge,value:vn=Dt}),Ze=!0,Oe({content:{json:vn},path:tn,onPatch:vo.onPatch,onClose:function(){Ze=!1,Qs()}})):wt(Br(Ge,!0))}var tn,vn}function da(){if(!E&&xr(ke.selection)){var Ge=ke.selection.focusPath,Dt=An(Ge),tn=Un(c,Ge),vn=!lf(tn,ke.enforceStringMap,Dt,re),Cn=vn?String(tn):Iv(String(tn),re);r("handleToggleEnforceString",{enforceString:vn,value:tn,updatedValue:Cn}),mi([{op:"replace",path:Dt,value:Cn}],function(Dn,li){return{state:$oe(li,Dt,vn)}})}}function Vr(){return fa.apply(this,arguments)}function fa(){return fa=Dr(Rn().mark(function Ge(){var Dt,tn=arguments;return Rn().wrap(function(vn){for(;;)switch(vn.prev=vn.next){case 0:return Dt=!(tn.length>0&&void 0!==tn[0])||tn[0],vn.next=3,Yle({json:c,documentState:ke,indentation:Dt?ie:void 0,readOnly:E,parser:re,onPatch:mi});case 3:case"end":return vn.stop()}},Ge)})),fa.apply(this,arguments)}function ll(){return cl.apply(this,arguments)}function cl(){return cl=Dr(Rn().mark(function Ge(){var Dt,tn=arguments;return Rn().wrap(function(vn){for(;;)switch(vn.prev=vn.next){case 0:if(Dt=!(tn.length>0&&void 0!==tn[0])||tn[0],void 0!==c){vn.next=3;break}return vn.abrupt("return");case 3:return vn.next=5,Kle({json:c,documentState:ke,indentation:Dt?ie:void 0,parser:re});case 5:case"end":return vn.stop()}},Ge)})),cl.apply(this,arguments)}function Hc(){h(Cae,{},_t(_t({},Cg),{},{styleWindow:{width:"450px"}}),{onClose:function(){return Qs()}})}function Ue(Ge,Dt){h(Oae,{text:Ge,onParse:E2,onRepair:ooe,onApply:Dt},_t(_t({},Cg),{},{styleWindow:{width:"600px",height:"500px"},styleContent:{padding:0,height:"100%"}}),{onClose:function(){return Qs()}})}function lt(){Qle({json:c,text:u,documentState:ke,keepSelection:!1,readOnly:E,onChange:we,onPatch:mi})}function ft(){!E&&void 0!==c&&ke.selection&&a0(ke.selection)&&!fr(ke.selection.focusPath)&&(r("duplicate",{selection:ke.selection}),mi(tse(c,Joe(ke.selection))))}function Mt(){E||!ke.selection||!io(ke.selection)&&!xr(ke.selection)||fr(ke.selection.focusPath)||(r("extract",{selection:ke.selection}),mi(function(Dt,tn){if(xr(tn))return[{op:"move",from:An(tn.focusPath),path:""}];if(!io(tn))throw new Error("Cannot create extract operations: parent must be an Object or Array");var vn=Un(Dt,wr(tn.focusPath));if(Ao(vn))return[{op:"replace",path:"",value:tn.paths.map(function(Dn){var li=la(ii(Dn));return vn[li]})}];if(Yo(vn)){var Cn={};return tn.paths.forEach(function(Dn){var li=String(ii(Dn));Cn[li]=vn[li]}),[{op:"replace",path:"",value:Cn}]}throw new Error("Cannot extract: unsupported type of selection "+JSON.stringify(tn))}(c,ke.selection),function(Dt,tn){if(ss(Dt))return{state:np(Dt,tn,[])}}))}function ut(Ge){void 0!==c&&nk({insertType:Ge,selectInside:!0,refJsonEditor:l,json:c,documentState:ke,readOnly:E,parser:re,onPatch:mi,onReplaceJson:Ur})}function Wn(Ge){$s(ke.selection)&&wt(Br(ke.selection.focusPath,!1)),ut(Ge)}function Si(Ge){if(!E&&ke.selection)if($g(ke.selection))try{var Dt=ke.selection.anchorPath,tn=Un(c,Dt),vn=function(Dn,li,Ei){if("array"===li){if(Array.isArray(Dn))return Dn;if(Ko(Dn))return noe(Dn);if("string"==typeof Dn)try{var Oi=Ei.parse(Dn);if(Array.isArray(Oi))return Oi;if(Ko(Oi))return noe(Oi)}catch{return[Dn]}return[Dn]}if("object"===li){if(Array.isArray(Dn))return toe(Dn);if(Ko(Dn))return Dn;if("string"==typeof Dn)try{var ns=Ei.parse(Dn);if(Ko(ns))return ns;if(Array.isArray(ns))return toe(ns)}catch{return{value:Dn}}return{value:Dn}}if("value"===li)return ss(Dn)?Ei.stringify(Dn):Dn;throw new Error("Cannot convert ".concat(jF(Dn,Ei)," to ").concat(li))}(tn,Ge,re);if(vn===tn)return;var Cn=[{op:"replace",path:An(Dt),value:vn}];r("handleConvert",{selection:ke.selection,path:Dt,type:Ge,operations:Cn}),mi(Cn,function(Dn,li){return{state:np(Dn,li,ke.selection.focusPath)}})}catch(Dn){ge(Dn)}else ge(new Error("Cannot convert current selection to ".concat(Ge)))}function Li(){var Ge=Goe(c,ke,!1),Dt=wr(ke.selection.focusPath);!fr(Ge.focusPath)&&Mr(Dt,wr(Ge.focusPath))?wt(uf(Ge.focusPath)):wt(cf(Dt)),r("insert before",{selection:ke.selection,selectionBefore:Ge,parentPath:Dt}),oc().then(Yl)}function Fi(){var Ge=io(ke.selection)?ii(ke.selection.paths):ke.selection.focusPath;r("insert after",Ge),wt(uf(Ge)),oc().then(Yl)}function Yr(Ge){return xo.apply(this,arguments)}function xo(){return(xo=Dr(Rn().mark(function Ge(Dt){return Rn().wrap(function(tn){for(;;)switch(tn.prev=tn.next){case 0:return tn.next=2,Zle({char:Dt,selectInside:!0,refJsonEditor:l,json:c,documentState:ke,readOnly:E,parser:re,onPatch:mi,onReplaceJson:Ur,onSelect:wt});case 2:case"end":return tn.stop()}},Ge)}))).apply(this,arguments)}function ji(){if(!E&&qr.getState().canUndo){var Ge=qr.undo();if(Ge){var Dt={json:c,text:u};e(10,c=Ge.undo.patch?Zu(c,Ge.undo.patch):Ge.undo.json),e(16,ke=Ge.undo.state),e(11,u=Ge.undo.text),e(23,Zn=Ge.undo.textIsRepaired),r("undo",{item:Ge,json:c,documentState:ke}),_i(Dt,{json:c,previousJson:Dt.json,redo:Ge.undo.patch,undo:Ge.redo.patch}),Qs(),ke.selection&&Fn(ke.selection.focusPath,!1)}}}function zr(){if(!E&&qr.getState().canRedo){var Ge=qr.redo();if(Ge){var Dt={json:c,text:u};e(10,c=Ge.redo.patch?Zu(c,Ge.redo.patch):Ge.redo.json),e(16,ke=Ge.redo.state),e(11,u=Ge.redo.text),e(23,Zn=Ge.redo.textIsRepaired),r("redo",{item:Ge,json:c,documentState:ke}),_i(Dt,{json:c,previousJson:Dt.json,redo:Ge.redo.patch,undo:Ge.undo.patch}),Qs(),ke.selection&&Fn(ke.selection.focusPath,!1)}}}function Ke(Ge){var Dt;E||void 0===c||(Ze=!0,ae({id:d,json:c,rootPath:Ge,onSort:(Dt=Dr(Rn().mark(function tn(vn){var Cn;return Rn().wrap(function(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:r("onSort",Ge,Cn=vn.operations),mi(Cn,function(li,Ei){return{state:_t(_t({},np(li,Ei,Ge)),{},{selection:Br(Ge,!1)})}});case 3:case"end":return Dn.stop()}},tn)})),function(tn){return Dt.apply(this,arguments)}),onClose:function(){Ze=!1,Qs()}}))}function qt(){ke.selection&&Ke(Yoe(c,ke.selection))}function hn(Ge){var tn=Ge.rootPath,vn=Ge.onTransform,Cn=Ge.onClose;void 0!==c&&tn&&(Ze=!0,Te({id:Ge.id||f,json:c,rootPath:tn,onTransform:vn?function(Dn){vn({operations:Dn,json:c,transformedJson:Zu(c,Dn)})}:function(Dn){r("onTransform",tn,Dn),mi(Dn,function(li,Ei){return{state:_t(_t({},np(li,Ei,tn)),{},{selection:Br(tn,!1)})}})},onClose:function(){Ze=!1,Qs(),Cn&&Cn()}}))}function kn(){ke.selection&&hn({rootPath:Yoe(c,ke.selection)})}function Fn(Ge){return ki.apply(this,arguments)}function ki(){return ki=Dr(Rn().mark(function Ge(Dt){var tn,vn,Cn,Dn,Ei=arguments;return Rn().wrap(function(Oi){for(;;)switch(Oi.prev=Oi.next){case 0:return tn=!(Ei.length>1&&void 0!==Ei[1])||Ei[1],e(16,ke=OO(c,ke,wr(Dt))),Oi.next=4,oc();case 4:if(!(vn=rr(Dt))){Oi.next=14;break}if(r("scrollTo",{path:Dt,elem:vn,refContents:s}),Cn=s.getBoundingClientRect(),Dn=vn.getBoundingClientRect(),tn){Oi.next=12;break}if(!(Dn.bottom>Cn.top&&Dn.toptn.bottom-20&&k(Dt,{container:s,offset:-(tn.height-Cn-20),duration:0})}}function _i(Ge,Dt){(void 0!==Ge.json||void 0!==Ge?.text)&&(void 0!==u?we({text:u,json:void 0},Ge,{contentErrors:Xr(),patchResult:Dt}):void 0!==c&&we({text:void 0,json:c},Ge,{contentErrors:Xr(),patchResult:Dt}))}function mi(Ge,Dt){if(!E)return r("handlePatch",Ge,Dt),Zr(Ge,Dt)}function Ur(Ge,Dt){var tn=ke,vn=c,Cn=u,Dn={json:c,text:u},li=Zn,Ei=cu(c,ke,[],sd),Oi="function"==typeof Dt?Dt(Ge,Ei):void 0;e(10,c=Oi&&void 0!==Oi.json?Oi.json:Ge),e(16,ke=Oi&&void 0!==Oi.state?Oi.state:Ei),e(11,u=void 0),e(23,Zn=!1),Ai(c),Vi({previousJson:vn,previousState:tn,previousText:Cn,previousTextIsRepaired:li}),_i(Dn,null)}function eo(Ge,Dt){r("handleChangeText");var tn=ke,vn=c,Cn=u,Dn={json:c,text:u},li=Zn;try{e(10,c=ce(Ge)),e(16,ke=cu(c,ke,[],sd)),e(11,u=void 0),e(23,Zn=!1)}catch{try{e(10,c=ce(Yh(Ge))),e(16,ke=cu(c,ke,[],sd)),e(11,u=Ge),e(23,Zn=!0)}catch{e(10,c=void 0),e(16,ke=N2({json:c,expand:sd})),e(11,u=Ge),e(23,Zn=!1)}}if("function"==typeof Dt){var Ei=Dt(c,ke);e(10,c=Ei&&Ei.json?Ei.json:c),e(16,ke=Ei&&Ei.state?Ei.state:ke)}Ai(c),Vi({previousJson:vn,previousState:tn,previousText:Cn,previousTextIsRepaired:li}),_i(Dn,null)}function ts(Ge,Dt){var tn=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r("expand",{path:Ge,expanded:Dt,recursive:tn}),e(16,ke=Dt?tn?cu(c,ke,Ge,Bb):function $We(t,n){return _t(_t({},t),{},{expandedMap:_t(_t({},t.expandedMap),{},rc({},An(n),!0))})}(ke,Ge):Roe(ke,Ge)),ke.selection&&!Dt&&function jWe(t,n){return s0(t.focusPath,n)&&(t.focusPath.length>n.length||ua(t))}(ke.selection,Ge)&&wt(void 0),setTimeout(function(){L2(l)||Qs()})}function Da(Ge){r("openFind",{findAndReplace:Ge}),e(19,Qe=!1),e(20,gt=!1),oc().then(function(){e(19,Qe=!0),e(20,gt=Ge)})}function bh(Ge,Dt){r("handleExpandSection",Ge,Dt);var Cn,Dn,li,tn=An(Ge);e(16,(Dn=tn,li=Dt,ke=_t(_t({},Cn=ke),{},{visibleSectionsMap:_t(_t({},Cn.visibleSectionsMap),{},rc({},Dn,Noe(R2(Cn,Dn).concat(li))))})))}function bu(Ge){r("pasted json as text",Ge),e(18,se=Ge)}function Ta(Ge){Ze=!0;var ns=m(YXe,{json:c,documentState:ke,parser:re,showTip:Ge.showTip,onEditKey:yo,onEditValue:Mo,onToggleEnforceString:da,onCut:Vr,onCopy:ll,onPaste:Hc,onRemove:lt,onDuplicate:ft,onExtract:Mt,onInsertBefore:Li,onInsert:Wn,onConvert:Si,onInsertAfter:Fi,onSort:qt,onTransform:kn,onCloseContextMenu:function(){w(ns),Qs()}},{left:Ge.left,top:Ge.top,offsetTop:Ge.offsetTop,offsetLeft:Ge.offsetLeft,width:Ge.width,height:Ge.height,anchor:Ge.anchor,closeOnOuterClick:!0,onClose:function(){Ze=!1,Qs()}})}function Yl(Ge){if(!E&&!ip(ke.selection)){if(Ge&&(Ge.stopPropagation(),Ge.preventDefault()),Ge&&"contextmenu"===Ge.type&&Ge.target!==a)Ta({left:Ge.clientX,top:Ge.clientY,width:260,height:336,showTip:!1});else{var Dt,tn=null===(Dt=s)||void 0===Dt?void 0:Dt.querySelector(".jse-context-menu-pointer.jse-selected");if(tn)Ta({anchor:tn,offsetTop:2,width:260,height:336,showTip:!1});else{var vn,Cn=null===(vn=s)||void 0===vn?void 0:vn.getBoundingClientRect();Cn&&Ta({top:Cn.top+2,left:Cn.left+2,width:260,height:336,showTip:!1})}}return!1}}function _h(){return(_h=Dr(Rn().mark(function Ge(){var Dt,tn,vn;return Rn().wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return r("apply pasted json",se),tn=(Dt=se).path,vn=Dt.contents,wt(Br(tn,!1)),Cn.next=5,oc();case 5:mi([{op:"replace",path:An(tn),value:vn}],function(Dn,li){return{state:np(Dn,li,tn)}});case 7:case"end":return Cn.stop()}},Ge)}))).apply(this,arguments)}function Qs(){r("focus"),a&&(a.focus(),a.select())}function wh(Ge){return Dt=c,tn=ke,Cn=wr(vn=Ge),Dn=[ii(vn)],(Ei=(li=Un(Dt,Cn))?BO(li,tn,Dn):void 0)?Br(Cn.concat(Ei),!1):uf(vn);var Dt,tn,vn,Cn,Dn,li,Ei}function xh(Ge){i&&i.onDrag(Ge)}function QD(){i&&i.onDragEnd()}return t.$$set=function(Ge){"readOnly"in Ge&&e(0,E=Ge.readOnly),"externalContent"in Ge&&e(50,L=Ge.externalContent),"mainMenuBar"in Ge&&e(1,B=Ge.mainMenuBar),"navigationBar"in Ge&&e(2,G=Ge.navigationBar),"escapeControlCharacters"in Ge&&e(51,oe=Ge.escapeControlCharacters),"escapeUnicodeCharacters"in Ge&&e(52,fe=Ge.escapeUnicodeCharacters),"parser"in Ge&&e(3,re=Ge.parser),"parseMemoizeOne"in Ge&&e(53,ce=Ge.parseMemoizeOne),"validator"in Ge&&e(54,ue=Ge.validator),"validationParser"in Ge&&e(55,pe=Ge.validationParser),"pathParser"in Ge&&e(4,De=Ge.pathParser),"indentation"in Ge&&e(5,ie=Ge.indentation),"onError"in Ge&&e(6,ge=Ge.onError),"onChange"in Ge&&e(56,we=Ge.onChange),"onChangeMode"in Ge&&e(57,le=Ge.onChangeMode),"onRenderValue"in Ge&&e(58,Fe=Ge.onRenderValue),"onRenderMenu"in Ge&&e(7,z=Ge.onRenderMenu),"onClassName"in Ge&&e(59,Q=Ge.onClassName),"onFocus"in Ge&&e(60,Z=Ge.onFocus),"onBlur"in Ge&&e(61,me=Ge.onBlur),"onSortModal"in Ge&&e(62,ae=Ge.onSortModal),"onTransformModal"in Ge&&e(63,Te=Ge.onTransformModal),"onJSONEditorModal"in Ge&&e(64,Oe=Ge.onJSONEditorModal)},t.$$.update=function(){var Ge,Dt;3145728&t.$$.dirty[1]&&e(73,Ct=kO({escapeControlCharacters:oe,escapeUnicodeCharacters:fe})),524288&t.$$.dirty[1]&&function Pt(Ge){void 0!==Ge.json&&function(Dt){if(void 0!==Dt){var tn=!Mr(c,Dt);if(r("update external json",{isChanged:tn,currentlyText:void 0===c}),tn){var vn={json:c,text:u},Cn=ke,Dn=c,li=u,Ei=Zn;e(10,c=Dt),ei(c),e(11,u=void 0),e(23,Zn=!1),Ai(c),Vi({previousJson:Dn,previousState:Cn,previousText:li,previousTextIsRepaired:Ei}),_i(vn,null)}}}(Ge.json),void 0!==Ge.text&&function(Dt){if(void 0!==Dt&&void 0===L.json){var tn=Dt!==u;if(r("update external text",{isChanged:tn}),tn){var vn={json:c,text:u},Cn=c,Dn=ke,li=u,Ei=Zn;try{e(10,c=ce(Dt)),ei(c),e(11,u=Dt),e(23,Zn=!1),Ve=void 0}catch(Oi){try{e(10,c=ce(Yh(Dt))),ei(c),e(11,u=Dt),e(23,Zn=!0),Ve=void 0,Ai(c)}catch{e(10,c=void 0),e(11,u=L.text),e(23,Zn=!1),Ve=M2(u,Oi.message||Oi.toString())}}Ai(c),Vi({previousJson:Cn,previousState:Dn,previousText:li,previousTextIsRepaired:Ei}),_i(vn,null)}}}(Ge.text)}(L),1024&t.$$.dirty[0]|4096&t.$$.dirty[2]&&es(zt,c),1032&t.$$.dirty[0]|25165824&t.$$.dirty[1]&&ir(c,ue,re,pe),4096&t.$$.dirty[0]&&e(24,(Dt={},(Ge=Ut).forEach(function(tn){Dt[An(tn.path)]=tn}),Ge.forEach(function(tn){for(var vn=tn.path;vn.length>0;){var Cn=An(vn=wr(vn));Cn in Dt||(Dt[Cn]={isChildError:!0,path:vn,message:"Contains invalid data",severity:Xh.warning})}}),er=Dt)),512&t.$$.dirty[0]&&(i=s?function(Ge){var Dt,tn;function vn(Ei){return Ei<20?200:Ei<50?400:1200}function Cn(){Ge&&(Ge.scrollTop+=.05*(Dt||0))}function Dn(Ei){tn&&Ei===Dt||(li(),rN("startAutoScroll",Ei),Dt=Ei,tn=setInterval(Cn,50))}function li(){tn&&(rN("stopAutoScroll"),clearInterval(tn),tn=void 0,Dt=void 0)}return rN("createAutoScrollHandler",Ge),{onDrag:function(Ei){if(Ge){var Oi=Ei.clientY,ns=Ge.getBoundingClientRect(),Zs=ns.top,ms=ns.bottom;Oims?Dn(vn(Oi-ms)):li()}},onDragEnd:function(){li()}}}(s):void 0),9&t.$$.dirty[0]|402653184&t.$$.dirty[1]|2048&t.$$.dirty[2]&&e(13,vo={readOnly:E,parser:re,normalization:Ct,getJson:Ho,getDocumentState:gs,findElement:rr,findNextInside:wh,focus:Qs,onPatch:mi,onInsert:ut,onExpand:ts,onSelect:wt,onFind:Da,onExpandSection:bh,onPasteJson:bu,onRenderValue:Fe,onContextMenu:Ta,onClassName:Q||function(){},onDrag:xh,onDragEnd:QD}),8192&t.$$.dirty[0]&&r("context changed",vo)},[E,B,G,re,De,ie,ge,z,function(){return Zn&&void 0!==c&&Ur(c),{json:c,text:u}},s,c,u,Ut,vo,a,l,ke,ct,se,Qe,gt,rt,oo,Zn,er,o,Qt,function(){return Mi.apply(this,arguments)},function(){return Sn.apply(this,arguments)},function(Ge,Dt){return nr.apply(this,arguments)},function(Ge,Dt){return On.apply(this,arguments)},function(){e(19,Qe=!1),e(20,gt=!1),Qt(""),Qs()},function(Ge){r("select validation error",Ge),wt(Br(Ge.path,!1)),Fn(Ge.path)},ll,function(Ge){Ge.preventDefault(),Jle({clipboardText:Ge.clipboardData.getData("text/plain"),json:c,documentState:ke,readOnly:E,parser:re,onPatch:mi,onChangeText:eo,openRepairModal:Ue})},ji,zr,function(){Ke([])},function(){hn({rootPath:[]})},function(){ts([],!0,!0)},function(){ts([],!1,!0)},function(Ge){var Dt=tp(Ge),tn=Ge.shiftKey;if(r("keydown",{combo:Dt,key:Ge.key}),"Ctrl+X"===Dt&&(Ge.preventDefault(),Vr(!0)),"Ctrl+Shift+X"===Dt&&(Ge.preventDefault(),Vr(!1)),"Ctrl+C"===Dt&&(Ge.preventDefault(),ll(!0)),"Ctrl+Shift+C"===Dt&&(Ge.preventDefault(),ll(!1)),"Ctrl+D"===Dt&&(Ge.preventDefault(),ft()),"Delete"!==Dt&&"Backspace"!==Dt||(Ge.preventDefault(),lt()),"Insert"===Dt&&(Ge.preventDefault(),ut("structure")),"Ctrl+A"===Dt&&(Ge.preventDefault(),wt(Br([],!1))),"Ctrl+Q"===Dt&&Yl(Ge),"ArrowUp"===Dt||"Shift+ArrowUp"===Dt){Ge.preventDefault();var vn=ke.selection?Goe(c,ke,tn,!0)||ke.selection:r0(c,ke);wt(vn),ai(vn.focusPath)}if("ArrowDown"===Dt||"Shift+ArrowDown"===Dt){Ge.preventDefault();var Cn=ke.selection?function(Vo,Kl){var xd=arguments.length>2&&void 0!==arguments[2]&&arguments[2],to=Kl.selection;if(!to)return null;var dc=arguments.length>3&&void 0!==arguments[3]&&arguments[3]||!io(to)?to.focusPath:ii(to.paths),_u=BO(Vo,Kl,dc),Sh=_u,Cd=_u;if(null===_u||null==Sh||null==Cd)return null;if(xd){var kh=BO(Vo,ss(Un(Vo,dc))?Roe(Kl,dc):Kl,dc);return null===kh?null:ih(to)?Ks(Vo,kh,kh):ua(to)?Ks(Vo,Sh,Cd):Ks(Vo,to.anchorPath,kh)}if($s(to)){var H_=Un(Vo,wr(_u));return Array.isArray(H_)?Br(Cd,!1):uu(Cd,!1)}return xr(to)?Br(Cd,!1):ua(to)?Ks(Vo,Sh,Cd):Ks(Vo,_u,_u)}(c,ke,tn,!0)||ke.selection:r0(c,ke);wt(Cn),ai(Cn.focusPath)}if("ArrowLeft"===Dt||"Shift+ArrowLeft"===Dt){Ge.preventDefault();var Dn=ke.selection?function(Vo,Kl){var xd=arguments.length>2&&void 0!==arguments[2]&&arguments[2],to=Kl.selection;if(!to)return null;var dc=qoe(Vo,Kl,!(arguments.length>3&&void 0!==arguments[3])||arguments[3]),_u=dc.caret,Sh=dc.previous;if(xd)return io(to)?null:Ks(Vo,to.anchorPath,to.focusPath);if(_u&&Sh)return HO(Sh);var kh=Un(Vo,wr(to.focusPath));return xr(to)&&Array.isArray(kh)?Ks(Vo,to.focusPath,to.focusPath):io(to)&&!Array.isArray(kh)?uu(to.focusPath,!1):null}(c,ke,tn,!E)||ke.selection:r0(c,ke);wt(Dn),ai(Dn.focusPath)}if("ArrowRight"===Dt||"Shift+ArrowRight"===Dt){Ge.preventDefault();var li=ke.selection&&void 0!==c?function(Vo,Kl){var xd=arguments.length>2&&void 0!==arguments[2]&&arguments[2],to=Kl.selection;if(!to)return null;var dc=qoe(Vo,Kl,!(arguments.length>3&&void 0!==arguments[3])||arguments[3]),_u=dc.caret,Sh=dc.next;return xd?io(to)?null:Ks(Vo,to.anchorPath,to.focusPath):_u&&Sh?HO(Sh):io(to)?Br(to.focusPath,!1):null}(c,ke,tn,!E)||ke.selection:r0(c,ke);wt(li),ai(li.focusPath)}if("Enter"===Dt&&ke.selection){if(!E&&io(ke.selection)&&1===ke.selection.paths.length){var Ei=ke.selection.focusPath,Oi=Un(c,wr(Ei));Array.isArray(Oi)&&wt(Br(Ei,!1))}!E&&$s(ke.selection)&&(Ge.preventDefault(),wt(_t(_t({},ke.selection),{},{edit:!0}))),xr(ke.selection)&&(Ge.preventDefault(),ss(Un(c,ke.selection.focusPath))?ts(ke.selection.focusPath,!0):E||wt(_t(_t({},ke.selection),{},{edit:!0})))}if(1===Dt.replace(/^Shift\+/,"").length&&ke.selection)return Ge.preventDefault(),void Yr(Ge.key);if("Enter"===Dt&&(ih(ke.selection)||ua(ke.selection)))return Ge.preventDefault(),void Yr("");if("Ctrl+Enter"===Dt&&xr(ke.selection)){var ns=Un(c,ke.selection.focusPath);jS(ns)&&window.open(String(ns),"_blank")}if("Escape"===Dt&&ke.selection&&(Ge.preventDefault(),wt(void 0)),"Ctrl+F"===Dt&&(Ge.preventDefault(),Da(!1)),"Ctrl+H"===Dt&&(Ge.preventDefault(),Da(!0)),"Ctrl+Z"===Dt){Ge.preventDefault();var Zs=document.activeElement;Zs&&Zs.blur&&Zs.focus?(Zs.blur(),setTimeout(function(){ji(),setTimeout(function(){return Zs.select()})})):ji()}if("Ctrl+Shift+Z"===Dt){Ge.preventDefault();var ms=document.activeElement;ms&&ms.blur&&ms.focus?(ms.blur(),setTimeout(function(){zr(),setTimeout(function(){return ms.select()})})):zr()}},function(Ge){r("handleMouseDown",Ge),setTimeout(function(){setTimeout(function(){C||voe(Ge.target,"BUTTON")||(Qs(),ke.selection||void 0!==c||""!==u&&void 0!==u||(r("createDefaultSelection"),e(16,ke=_t(_t({},ke),{},{selection:Ks(c||{},[],[])}))))})})},Yl,function(Ge){E||Ta({anchor:boe(Ge.target,"BUTTON"),offsetTop:0,width:260,height:336,showTip:!0})},function(){return _h.apply(this,arguments)},function(){r("clear pasted json"),e(18,se=void 0)},function(){le(Za.text)},function(Ge){wt(Ge),Qs(),Fn(Ge.focusPath)},function(Ge){!Ob(Ge.target,function(tn){return tn===l})&&ip(ke.selection)&&(r("click outside the editor, stop edit mode"),wt(function(tn){return $s(tn)||xr(tn)?_t(_t({},tn),{},{edit:!1}):tn}),C&&a&&(a.focus(),a.blur()),oc().then(function(){setTimeout(function(){a&&a.blur()})}))},L,oe,fe,ce,ue,pe,we,le,Fe,Q,Z,me,ae,Te,Oe,function(){var Ge=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Bb;r("expand");var Dt=_t(_t({},ke),{},{expandedMap:{},visibleSectionsMap:{}});e(16,ke=cu(c,Dt,[],Ge))},Xr,Ho,Zr,hn,Fn,rr,Qs,Ct,zt,function(Ge){e(19,Qe=Ge)},function(Ge){dr[Ge?"unshift":"push"](function(){e(14,a=Ge)})},function(Ge){dr[Ge?"unshift":"push"](function(){e(9,s=Ge)})},function(Ge){dr[Ge?"unshift":"push"](function(){e(15,l=Ge)})}]}var xN=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,YKe,XKe,Zi,{readOnly:0,externalContent:50,mainMenuBar:1,navigationBar:2,escapeControlCharacters:51,escapeUnicodeCharacters:52,parser:3,parseMemoizeOne:53,validator:54,validationParser:55,pathParser:4,indentation:5,onError:6,onChange:56,onChangeMode:57,onRenderValue:58,onRenderMenu:7,onClassName:59,onFocus:60,onBlur:61,onSortModal:62,onTransformModal:63,onJSONEditorModal:64,expand:65,validate:66,getJson:67,patch:68,acceptAutoRepair:8,openTransformModal:69,scrollTo:70,findElement:71,focus:72},HKe,[-1,-1,-1,-1,-1]),r}return Xe(e,[{key:"expand",get:function(){return this.$$.ctx[65]}},{key:"validate",get:function(){return this.$$.ctx[66]}},{key:"getJson",get:function(){return this.$$.ctx[67]}},{key:"patch",get:function(){return this.$$.ctx[68]}},{key:"acceptAutoRepair",get:function(){return this.$$.ctx[8]}},{key:"openTransformModal",get:function(){return this.$$.ctx[69]}},{key:"scrollTo",get:function(){return this.$$.ctx[70]}},{key:"findElement",get:function(){return this.$$.ctx[71]}},{key:"focus",get:function(){return this.$$.ctx[72]}}]),e}();function KKe(t){Ni(t,"svelte-107mggt",".jse-modal.svelte-107mggt.svelte-107mggt{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-107mggt .jse-modal-contents.svelte-107mggt{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions.svelte-107mggt{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column;color:inherit;min-height:0;padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents.svelte-107mggt{flex:1;display:flex;gap:calc(2 * var(--jse-padding));min-height:0;box-sizing:border-box;padding:0 calc(2 * var(--jse-padding)) var(--jse-padding)}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p{margin:var(--jse-padding) 0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p:first-child{margin-top:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p:last-child{margin-bottom:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt code{background:var(--jse-modal-code-background);font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono)}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents textarea.jse-query.svelte-107mggt{flex:1;outline:none;resize:vertical}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column;gap:calc(2 * var(--jse-padding))}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-original-data.svelte-107mggt{flex:1;display:flex;flex-direction:column;min-height:0;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-original-data.jse-hide.svelte-107mggt{flex:none}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-preview-data.svelte-107mggt{flex:1;display:flex;flex-direction:column;min-height:0;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.jse-hide-original-data.svelte-107mggt{flex-direction:column;gap:0;margin-bottom:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-actions.svelte-107mggt{padding:var(--jse-padding) calc(2 * var(--jse-padding)) calc(2 * var(--jse-padding))}@media screen and (max-width: 1200px){.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents.svelte-107mggt{flex-direction:column;overflow:auto}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents textarea.jse-query.svelte-107mggt{min-height:150px;flex:none}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.svelte-107mggt .jse-tree-mode{height:300px;flex:none}}.jse-modal.jse-transform.svelte-107mggt .jse-label.svelte-107mggt{font-weight:bold;display:block;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-label .jse-label-inner.svelte-107mggt{margin-top:calc(2 * var(--jse-padding));margin-bottom:calc(0.5 * var(--jse-padding));box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-label .jse-label-inner button.svelte-107mggt{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;font-weight:bold;padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-tree-mode{flex:1;background:var(--jse-input-background-readonly);box-shadow:none;box-sizing:border-box;--jse-main-border:var(--jse-input-border)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt{border:var(--jse-input-border);outline:none;box-sizing:border-box;padding:calc(0.5 * var(--jse-padding));font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:inherit;background:var(--jse-input-background)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt:focus,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt:focus{border:var(--jse-input-border-focus)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt:read-only,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt:read-only{background:var(--jse-input-background-readonly)}.jse-modal.jse-transform.svelte-107mggt .jse-preview.jse-error.svelte-107mggt{flex:1;background:var(--jse-input-background-readonly);border:var(--jse-input-border);color:var(--jse-error-color);padding:calc(0.5 * var(--jse-padding))}.jse-modal.jse-transform.svelte-107mggt a{color:var(--jse-a-color)}.jse-modal.jse-transform.svelte-107mggt a:hover{color:var(--jse-a-color-highlight)}")}function oce(t){var n,e,i,r,o,s=[QKe,JKe],a=[];function l(c,u){return 16384&u[0]&&(n=null),null==n&&(n=!!Array.isArray(c[14])),n?0:1}return e=l(t,[-1,-1]),i=a[e]=s[e](t),{c:function(){i.c(),r=Wr()},m:function(c,u){a[e].m(c,u),nt(c,r,u),o=!0},p:function(c,u){var h=e;(e=l(c,u))===h?a[e].p(c,u):(cn(),Ee(a[h],1,1,function(){a[h]=null}),un(),(i=a[e])?i.p(c,u):(i=a[e]=s[e](c)).c(),_e(i,1),i.m(r.parentNode,r))},i:function(c){o||(_e(i),o=!0)},o:function(c){Ee(i),o=!1},d:function(c){a[e].d(c),c&&tt(r)}}}function JKe(t){var n;return{c:function(){n=xn("(Only available for arrays, not for objects)")},m:function(e,i){nt(e,n,i)},p:an,i:an,o:an,d:function(e){e&&tt(n)}}}function QKe(t){var n,e;return n=new Cqe({props:{queryOptions:t[12],json:t[14],onChange:t[22]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};4096&r[0]&&(o.queryOptions=i[12]),16384&r[0]&&(o.json=i[14]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function sce(t){var n,e;return n=new xN({props:{externalContent:t[19],readOnly:!0,mainMenuBar:!1,navigationBar:!1,indentation:t[2],escapeControlCharacters:t[3],escapeUnicodeCharacters:t[4],parser:t[5],parseMemoizeOne:t[6],onRenderValue:t[10],onRenderMenu:Ro,onError:console.error,onChange:Ro,onChangeMode:Ro,onFocus:Ro,onBlur:Ro,onSortModal:Ro,onTransformModal:Ro,onJSONEditorModal:Ro,onClassName:t[11],validator:null,validationParser:t[7],pathParser:t[8]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};524288&r[0]&&(o.externalContent=i[19]),4&r[0]&&(o.indentation=i[2]),8&r[0]&&(o.escapeControlCharacters=i[3]),16&r[0]&&(o.escapeUnicodeCharacters=i[4]),32&r[0]&&(o.parser=i[5]),64&r[0]&&(o.parseMemoizeOne=i[6]),1024&r[0]&&(o.onRenderValue=i[10]),2048&r[0]&&(o.onClassName=i[11]),128&r[0]&&(o.validationParser=i[7]),256&r[0]&&(o.pathParser=i[8]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function ZKe(t){var n,e;return{c:function(){n=Be("div"),e=xn(t[17]),ne(n,"class","jse-preview jse-error svelte-107mggt")},m:function(i,r){nt(i,n,r),Ie(n,e)},p:function(i,r){131072&r[0]&&gi(e,i[17])},i:an,o:an,d:function(i){i&&tt(n)}}}function eJe(t){var n,e;return n=new xN({props:{externalContent:t[18],readOnly:!0,mainMenuBar:!1,navigationBar:!1,indentation:t[2],escapeControlCharacters:t[3],escapeUnicodeCharacters:t[4],parser:t[5],parseMemoizeOne:t[6],onRenderValue:t[10],onRenderMenu:Ro,onError:console.error,onChange:Ro,onChangeMode:Ro,onFocus:Ro,onBlur:Ro,onSortModal:Ro,onTransformModal:Ro,onJSONEditorModal:Ro,onClassName:t[11],validator:null,validationParser:t[7],pathParser:t[8]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};262144&r[0]&&(o.externalContent=i[18]),4&r[0]&&(o.indentation=i[2]),8&r[0]&&(o.escapeControlCharacters=i[3]),16&r[0]&&(o.escapeUnicodeCharacters=i[4]),32&r[0]&&(o.parser=i[5]),64&r[0]&&(o.parseMemoizeOne=i[6]),1024&r[0]&&(o.onRenderValue=i[10]),2048&r[0]&&(o.onClassName=i[11]),128&r[0]&&(o.validationParser=i[7]),256&r[0]&&(o.pathParser=i[8]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function tJe(t){var n,e,i,r,o,s,a,l,c,u,h,d,f,p,m,w,C,k,E,L,B,G,oe,fe,re,ce,ue,pe,De,ie,ge,we,le,Fe,z,Q,Z,me,ae,Te,Oe,Ze,Ve,wt,ct,Ct,se,Se=t[21](t[0]).description+"";n=new Lqe({props:{queryLanguages:t[9],queryLanguageId:t[0],onChangeQueryLanguage:t[27]}}),k=new Ir({props:{data:t[15]?hu:rp}});var ke=t[15]&&oce(t);ge=new Ir({props:{data:t[16]?hu:rp}});var Qe=t[16]&&sce(t),gt=[eJe,ZKe],rt=[];function zt(Qt,Pn){return Qt[17]?1:0}return me=zt(t),ae=rt[me]=gt[me](t),{c:function(){$t(n.$$.fragment),e=xt(),i=Be("div"),r=Be("div"),o=Be("div"),(s=Be("div")).innerHTML='
    Language
    ',a=xt(),l=Be("div"),c=xt(),(u=Be("div")).innerHTML='
    Path
    ',h=xt(),d=Be("input"),p=xt(),m=Be("div"),w=Be("div"),C=Be("button"),$t(k.$$.fragment),E=xn("\n Wizard"),L=xt(),ke&&ke.c(),B=xt(),(G=Be("div")).innerHTML='
    Query
    ',oe=xt(),fe=Be("textarea"),re=xt(),ce=Be("div"),ue=Be("div"),pe=Be("div"),De=Be("div"),ie=Be("button"),$t(ge.$$.fragment),we=xn("\n Original"),le=xt(),Qe&&Qe.c(),Fe=xt(),z=Be("div"),(Q=Be("div")).innerHTML='
    Preview
    ',Z=xt(),ae.c(),Te=xt(),Oe=Be("div"),Ze=Be("button"),Ve=xn("Transform"),ne(s,"class","jse-label svelte-107mggt"),ne(l,"class","jse-description svelte-107mggt"),ne(u,"class","jse-label svelte-107mggt"),ne(d,"class","jse-path svelte-107mggt"),ne(d,"type","text"),d.readOnly=!0,ne(d,"title","Selected path"),d.value=f=fr(t[1])?"(whole document)":lu(lc(t[1])),ne(C,"type","button"),ne(C,"class","svelte-107mggt"),ne(w,"class","jse-label-inner svelte-107mggt"),ne(m,"class","jse-label svelte-107mggt"),ne(G,"class","jse-label svelte-107mggt"),ne(fe,"class","jse-query svelte-107mggt"),ne(fe,"spellcheck","false"),fe.value=t[13],ne(o,"class","jse-query-contents svelte-107mggt"),ne(ie,"type","button"),ne(ie,"class","svelte-107mggt"),ne(De,"class","jse-label-inner svelte-107mggt"),ne(pe,"class","jse-label svelte-107mggt"),ne(ue,"class","jse-original-data svelte-107mggt"),en(ue,"jse-hide",!t[16]),ne(Q,"class","jse-label svelte-107mggt"),ne(z,"class","jse-preview-data svelte-107mggt"),ne(ce,"class","jse-data-contents svelte-107mggt"),en(ce,"jse-hide-original-data",!t[16]),ne(r,"class","jse-main-contents svelte-107mggt"),ne(Ze,"type","button"),ne(Ze,"class","jse-primary svelte-107mggt"),Ze.disabled=wt=!!t[17],ne(Oe,"class","jse-actions svelte-107mggt"),ne(i,"class","jse-modal-contents svelte-107mggt")},m:function(Qt,Pn){Nt(n,Qt,Pn),nt(Qt,e,Pn),nt(Qt,i,Pn),Ie(i,r),Ie(r,o),Ie(o,s),Ie(o,a),Ie(o,l),l.innerHTML=Se,Ie(o,c),Ie(o,u),Ie(o,h),Ie(o,d),Ie(o,p),Ie(o,m),Ie(m,w),Ie(w,C),Nt(k,C,null),Ie(C,E),Ie(o,L),ke&&ke.m(o,null),Ie(o,B),Ie(o,G),Ie(o,oe),Ie(o,fe),Ie(r,re),Ie(r,ce),Ie(ce,ue),Ie(ue,pe),Ie(pe,De),Ie(De,ie),Nt(ge,ie,null),Ie(ie,we),Ie(ue,le),Qe&&Qe.m(ue,null),Ie(ce,Fe),Ie(ce,z),Ie(z,Q),Ie(z,Z),rt[me].m(z,null),Ie(i,Te),Ie(i,Oe),Ie(Oe,Ze),Ie(Ze,Ve),ct=!0,Ct||(se=[rn(C,"click",t[25]),rn(fe,"input",t[23]),rn(ie,"click",t[26]),rn(Ze,"click",t[24]),Ra(iJe.call(null,Ze))],Ct=!0)},p:function(Qt,Pn){var Mi={};512&Pn[0]&&(Mi.queryLanguages=Qt[9]),1&Pn[0]&&(Mi.queryLanguageId=Qt[0]),n.$set(Mi),(!ct||1&Pn[0])&&Se!==(Se=Qt[21](Qt[0]).description+"")&&(l.innerHTML=Se),(!ct||2&Pn[0]&&f!==(f=fr(Qt[1])?"(whole document)":lu(lc(Qt[1])))&&d.value!==f)&&(d.value=f);var Sn={};32768&Pn[0]&&(Sn.data=Qt[15]?hu:rp),k.$set(Sn),Qt[15]?ke?(ke.p(Qt,Pn),32768&Pn[0]&&_e(ke,1)):((ke=oce(Qt)).c(),_e(ke,1),ke.m(o,B)):ke&&(cn(),Ee(ke,1,1,function(){ke=null}),un()),(!ct||8192&Pn[0])&&(fe.value=Qt[13]);var nr={};65536&Pn[0]&&(nr.data=Qt[16]?hu:rp),ge.$set(nr),Qt[16]?Qe?(Qe.p(Qt,Pn),65536&Pn[0]&&_e(Qe,1)):((Qe=sce(Qt)).c(),_e(Qe,1),Qe.m(ue,null)):Qe&&(cn(),Ee(Qe,1,1,function(){Qe=null}),un()),(!ct||65536&Pn[0])&&en(ue,"jse-hide",!Qt[16]);var On=me;(me=zt(Qt))===On?rt[me].p(Qt,Pn):(cn(),Ee(rt[On],1,1,function(){rt[On]=null}),un(),(ae=rt[me])?ae.p(Qt,Pn):(ae=rt[me]=gt[me](Qt)).c(),_e(ae,1),ae.m(z,null)),(!ct||65536&Pn[0])&&en(ce,"jse-hide-original-data",!Qt[16]),(!ct||131072&Pn[0]&&wt!==(wt=!!Qt[17]))&&(Ze.disabled=wt)},i:function(Qt){ct||(_e(n.$$.fragment,Qt),_e(k.$$.fragment,Qt),_e(ke),_e(ge.$$.fragment,Qt),_e(Qe),_e(ae),ct=!0)},o:function(Qt){Ee(n.$$.fragment,Qt),Ee(k.$$.fragment,Qt),Ee(ke),Ee(ge.$$.fragment,Qt),Ee(Qe),Ee(ae),ct=!1},d:function(Qt){Rt(n,Qt),Qt&&tt(e),Qt&&tt(i),Rt(k),ke&&ke.d(),Rt(ge),Qe&&Qe.d(),rt[me].d(),Ct=!1,Fo(se)}}}function nJe(t){var n,e,i,r,o;return e=new koe({props:{$$slots:{default:[tJe]},$$scope:{ctx:t}}}),{c:function(){n=Be("div"),$t(e.$$.fragment),ne(n,"class","jse-modal jse-transform svelte-107mggt")},m:function(s,a){nt(s,n,a),Nt(e,n,null),i=!0,r||(o=Ra(tk.call(null,n,t[20])),r=!0)},p:function(s,a){var l={};1048575&a[0]|256&a[1]&&(l.$$scope={dirty:a,ctx:s}),e.$set(l)},i:function(s){i||(_e(e.$$.fragment,s),i=!0)},o:function(s){Ee(e.$$.fragment,s),i=!1},d:function(s){s&&tt(n),Rt(e),r=!1,o()}}}function iJe(t){t.focus()}function rJe(t,n,e){var i,r,o=Pa("jsoneditor:TransformModal"),s=n.id,a=void 0===s?"transform-modal-"+hb():s,l=n.json,c=n.rootPath,u=void 0===c?[]:c,h=n.indentation,d=n.escapeControlCharacters,f=n.escapeUnicodeCharacters,p=n.parser,m=n.parseMemoizeOne,w=n.validationParser,C=n.pathParser,k=n.queryLanguages,E=n.queryLanguageId,L=n.onChangeQueryLanguage,B=n.onRenderValue,G=n.onClassName,oe=n.onTransform,fe=$a("simple-modal").close,re="".concat(a,":").concat(An(u)),ce=rh[re]||{},ue=!1!==rh.showWizard,pe=!1!==rh.showOriginal,De=ce.queryOptions||{},ie=E===ce.queryLanguageId&&ce.query?ce.query:Fe(E).createQuery(l,ce.queryOptions||{}),ge=ce.isManual||!1,we=void 0,le={text:""};function Fe(Q){return k.find(function(Z){return Z.id===Q})||k[0]}var z=Uv(function(Q,Z){try{o("previewTransform",{query:Z});var me=Fe(E).executeQuery(Q,Z,p);e(18,le={json:me}),e(17,we=void 0)}catch(ae){e(18,le={text:""}),e(17,we=ae.toString())}},300);return t.$$set=function(Q){"id"in Q&&e(28,a=Q.id),"json"in Q&&e(29,l=Q.json),"rootPath"in Q&&e(1,u=Q.rootPath),"indentation"in Q&&e(2,h=Q.indentation),"escapeControlCharacters"in Q&&e(3,d=Q.escapeControlCharacters),"escapeUnicodeCharacters"in Q&&e(4,f=Q.escapeUnicodeCharacters),"parser"in Q&&e(5,p=Q.parser),"parseMemoizeOne"in Q&&e(6,m=Q.parseMemoizeOne),"validationParser"in Q&&e(7,w=Q.validationParser),"pathParser"in Q&&e(8,C=Q.pathParser),"queryLanguages"in Q&&e(9,k=Q.queryLanguages),"queryLanguageId"in Q&&e(0,E=Q.queryLanguageId),"onChangeQueryLanguage"in Q&&e(30,L=Q.onChangeQueryLanguage),"onRenderValue"in Q&&e(10,B=Q.onRenderValue),"onClassName"in Q&&e(11,G=Q.onClassName),"onTransform"in Q&&e(31,oe=Q.onTransform)},t.$$.update=function(){536870914&t.$$.dirty[0]&&e(14,i=Un(l,u)),16384&t.$$.dirty[0]&&e(19,r={json:i}),24576&t.$$.dirty[0]&&z(i,ie),12289&t.$$.dirty[0]|6&t.$$.dirty[1]&&(e(32,rh[re]={queryOptions:De,query:ie,queryLanguageId:E,isManual:ge},rh),o("store state in memory",re,rh[re]))},[E,u,h,d,f,p,m,w,C,k,B,G,De,ie,i,ue,pe,we,le,r,fe,Fe,function(Q){e(12,De=Q),e(13,ie=Fe(E).createQuery(l,Q)),e(33,ge=!1),o("updateQueryByWizard",{queryOptions:De,query:ie,isManual:ge})},function(Q){e(13,ie=Q.target.value),e(33,ge=!0),o("handleChangeQuery",{query:ie,isManual:ge})},function(){try{o("handleTransform",{query:ie});var Q=Fe(E).executeQuery(i,ie,p);oe([{op:"replace",path:An(u),value:Q}]),fe()}catch(Z){console.error(Z),e(18,le={text:""}),e(17,we=Z.toString())}},function(){e(15,ue=!ue),e(32,rh.showWizard=ue,rh)},function(){e(16,pe=!pe),e(32,rh.showOriginal=pe,rh)},function(Q){o("handleChangeQueryLanguage",Q),e(0,E=Q),L(Q);var Z=Fe(E);e(13,ie=Z.createQuery(l,De)),e(33,ge=!1)},a,l,L,oe,rh,ge]}var oJe=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,rJe,nJe,Zi,{id:28,json:29,rootPath:1,indentation:2,escapeControlCharacters:3,escapeUnicodeCharacters:4,parser:5,parseMemoizeOne:6,validationParser:7,pathParser:8,queryLanguages:9,queryLanguageId:0,onChangeQueryLanguage:30,onRenderValue:10,onClassName:11,onTransform:31},KKe,[-1,-1]),r}return Xe(e)}(),up={};function sJe(t){Ni(t,"svelte-1y818v2",".jse-modal.svelte-1y818v2.svelte-1y818v2{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-1y818v2 .jse-modal-contents.svelte-1y818v2{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions.svelte-1y818v2{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-sort.svelte-1y818v2 table.svelte-1y818v2{width:100%;border-collapse:collapse;border-spacing:0}.jse-modal.jse-sort.svelte-1y818v2 table th.svelte-1y818v2,.jse-modal.jse-sort.svelte-1y818v2 table td.svelte-1y818v2{text-align:left;vertical-align:middle;font-weight:normal;padding-bottom:var(--jse-padding)}.jse-modal.jse-sort.svelte-1y818v2 table th input.jse-path.svelte-1y818v2,.jse-modal.jse-sort.svelte-1y818v2 table td input.jse-path.svelte-1y818v2{width:100%;box-sizing:border-box;padding:6px 16px;border:var(--jse-input-border);border-radius:var(--jse-input-radius);font-family:inherit;font-size:inherit;background:inherit;color:inherit;outline:none}.jse-modal.jse-sort.svelte-1y818v2 table th input.jse-path.svelte-1y818v2:read-only,.jse-modal.jse-sort.svelte-1y818v2 table td input.jse-path.svelte-1y818v2:read-only{background:var(--jse-input-background-readonly)}.jse-modal.jse-sort.svelte-1y818v2 table th.svelte-1y818v2 .svelte-select input,.jse-modal.jse-sort.svelte-1y818v2 table td.svelte-1y818v2 .svelte-select input{box-sizing:border-box}.jse-modal.jse-sort.svelte-1y818v2 .jse-space.svelte-1y818v2{height:200px}.jse-modal.jse-sort.svelte-1y818v2 .jse-space .jse-error.svelte-1y818v2{color:var(--jse-error-color)}")}function lce(t){var n,e,i,r,o,s,a;function l(u){t[14](u)}var c={showChevron:!0,items:t[3]};return void 0!==t[1]&&(c.value=t[1]),o=new Vg({props:c}),dr.push(function(){return Xu(o,"value",l)}),{c:function(){n=Be("tr"),(e=Be("th")).textContent="Property",i=xt(),r=Be("td"),$t(o.$$.fragment),ne(e,"class","svelte-1y818v2"),ne(r,"class","svelte-1y818v2")},m:function(u,h){nt(u,n,h),Ie(n,e),Ie(n,i),Ie(n,r),Nt(o,r,null),a=!0},p:function(u,h){var d={};8&h&&(d.items=u[3]),!s&&2&h&&(s=!0,d.value=u[1],qu(function(){return s=!1})),o.$set(d)},i:function(u){a||(_e(o.$$.fragment,u),a=!0)},o:function(u){Ee(o.$$.fragment,u),a=!1},d:function(u){u&&tt(n),Rt(o)}}}function cce(t){var n,e;return{c:function(){n=Be("div"),e=xn(t[5]),ne(n,"class","jse-error svelte-1y818v2")},m:function(i,r){nt(i,n,r),Ie(n,e)},p:function(i,r){32&r&&gi(e,i[5])},d:function(i){i&&tt(n)}}}function aJe(t){var n,e,i,r,o,s,a,l,c,u,h,d,f,p,m,w,C,k,E,L,B,G,oe,fe,re,ce,ue,pe,De,ie,ge,we;e=new aN({props:{title:t[4]?"Sort array items":"Sort object keys"}});var le=t[4]&&(t[3].length>1||void 0===t[1])&&lce(t);function Fe(Z){t[15](Z)}var z={showChevron:!0,clearable:!1,items:t[7]};void 0!==t[2]&&(z.value=t[2]),B=new Vg({props:z}),dr.push(function(){return Xu(B,"value",Fe)});var Q=t[5]&&cce(t);return{c:function(){n=Be("div"),$t(e.$$.fragment),i=xt(),r=Be("div"),o=Be("table"),(s=Be("colgroup")).innerHTML=' \n ',a=xt(),l=Be("tbody"),c=Be("tr"),(u=Be("th")).textContent="Path",h=xt(),d=Be("td"),f=Be("input"),m=xt(),le&&le.c(),w=xt(),C=Be("tr"),(k=Be("th")).textContent="Direction",E=xt(),L=Be("td"),$t(B.$$.fragment),oe=xt(),fe=Be("div"),Q&&Q.c(),re=xt(),ce=Be("div"),ue=Be("button"),pe=xn("Sort"),ne(u,"class","svelte-1y818v2"),ne(f,"class","jse-path svelte-1y818v2"),ne(f,"type","text"),f.readOnly=!0,ne(f,"title","Selected path"),f.value=p=fr(t[0])?"(whole document)":lu(lc(t[0])),ne(d,"class","svelte-1y818v2"),ne(k,"class","svelte-1y818v2"),ne(L,"class","svelte-1y818v2"),ne(o,"class","svelte-1y818v2"),ne(fe,"class","jse-space svelte-1y818v2"),ne(ue,"type","button"),ne(ue,"class","jse-primary svelte-1y818v2"),ue.disabled=De=!!t[4]&&!t[1],ne(ce,"class","jse-actions svelte-1y818v2"),ne(r,"class","jse-modal-contents svelte-1y818v2"),ne(n,"class","jse-modal jse-sort svelte-1y818v2")},m:function(Z,me){nt(Z,n,me),Nt(e,n,null),Ie(n,i),Ie(n,r),Ie(r,o),Ie(o,s),Ie(o,a),Ie(o,l),Ie(l,c),Ie(c,u),Ie(c,h),Ie(c,d),Ie(d,f),Ie(l,m),le&&le.m(l,null),Ie(l,w),Ie(l,C),Ie(C,k),Ie(C,E),Ie(C,L),Nt(B,L,null),Ie(r,oe),Ie(r,fe),Q&&Q.m(fe,null),Ie(r,re),Ie(r,ce),Ie(ce,ue),Ie(ue,pe),ie=!0,ge||(we=[rn(ue,"click",t[8]),Ra(lJe.call(null,ue)),Ra(tk.call(null,n,t[6]))],ge=!0)},p:function(Z,me){var ae=di(me,1)[0],Te={};16&ae&&(Te.title=Z[4]?"Sort array items":"Sort object keys"),e.$set(Te),(!ie||1&ae&&p!==(p=fr(Z[0])?"(whole document)":lu(lc(Z[0])))&&f.value!==p)&&(f.value=p),Z[4]&&(Z[3].length>1||void 0===Z[1])?le?(le.p(Z,ae),26&ae&&_e(le,1)):((le=lce(Z)).c(),_e(le,1),le.m(l,w)):le&&(cn(),Ee(le,1,1,function(){le=null}),un());var Oe={};!G&&4&ae&&(G=!0,Oe.value=Z[2],qu(function(){return G=!1})),B.$set(Oe),Z[5]?Q?Q.p(Z,ae):((Q=cce(Z)).c(),Q.m(fe,null)):Q&&(Q.d(1),Q=null),(!ie||18&ae&&De!==(De=!!Z[4]&&!Z[1]))&&(ue.disabled=De)},i:function(Z){ie||(_e(e.$$.fragment,Z),_e(le),_e(B.$$.fragment,Z),ie=!0)},o:function(Z){Ee(e.$$.fragment,Z),Ee(le),Ee(B.$$.fragment,Z),ie=!1},d:function(Z){Z&&tt(n),Rt(e),le&&le.d(),Rt(B),Q&&Q.d(),ge=!1,Fo(we)}}}function lJe(t){t.focus()}function cJe(t,n,e){var i,r,o,s=Pa("jsoneditor:SortModal"),a=n.id,l=n.json,c=n.rootPath,u=n.onSort,h=$a("simple-modal").close,d="".concat(a,":").concat(An(c)),f=Un(l,c),p={value:1,label:"ascending"},m=[p,{value:-1,label:"descending"}],w=up[d]&&up[d].selectedProperty||void 0,C=up[d]&&up[d].selectedDirection||p,k=void 0;return t.$$set=function(E){"id"in E&&e(9,a=E.id),"json"in E&&e(10,l=E.json),"rootPath"in E&&e(0,c=E.rootPath),"onSort"in E&&e(11,u=E.onSort)},t.$$.update=function(){16&t.$$.dirty&&e(13,r=i&&void 0!==f?wO(f):void 0),8192&t.$$.dirty&&e(3,o=r?r.map(Nb):void 0),10&t.$$.dirty&&void 0===w&&o&&1===o.length&&e(1,w=o[0]),4102&t.$$.dirty&&(e(12,up[d]={selectedProperty:w,selectedDirection:C},up),s("store state in memory",d,up[d]))},e(4,i=Array.isArray(f)),[c,w,C,o,i,k,h,m,function(){try{var E,L;e(5,k=void 0);var B=null===(E=w)||void 0===E?void 0:E.value,G=null===(L=C)||void 0===L?void 0:L.value,oe=Ile(l,c,B,G);u({operations:oe,rootPath:c,itemPath:B,direction:G}),h()}catch(fe){e(5,k=fe.toString())}},a,l,u,up,r,function(E){e(1,w=E),e(3,o),e(13,r),e(4,i)},function(E){e(2,C=E)}]}var uJe=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,cJe,aJe,Zi,{id:9,json:10,rootPath:0,onSort:11},sJe),r}return Xe(e)}();function hd(){}function rk(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(t<.9*n)return t.toFixed()+" B";var e=t/n;if(e<.9*n)return e.toFixed(1)+" KB";var i=e/n;if(i<.9*n)return i.toFixed(1)+" MB";var r=i/n;return r<.9*n?r.toFixed(1)+" GB":(r/n).toFixed(1)+" TB"}function hJe(t){var n,e;return n=new ek({props:{items:t[0]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};1&di(r,1)[0]&&(o.items=i[0]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function dJe(t,n,e){var i,r,o=n.readOnly,s=void 0!==o&&o,a=n.onFormat,l=n.onCompact,c=n.onSort,u=n.onTransform,h=n.onToggleSearch,d=n.onUndo,f=n.onRedo,p=n.canUndo,m=n.canRedo,w=n.canFormat,C=n.canCompact,k=n.canSort,E=n.canTransform,L=n.onRenderMenu;return t.$$set=function(B){"readOnly"in B&&e(1,s=B.readOnly),"onFormat"in B&&e(2,a=B.onFormat),"onCompact"in B&&e(3,l=B.onCompact),"onSort"in B&&e(4,c=B.onSort),"onTransform"in B&&e(5,u=B.onTransform),"onToggleSearch"in B&&e(6,h=B.onToggleSearch),"onUndo"in B&&e(7,d=B.onUndo),"onRedo"in B&&e(8,f=B.onRedo),"canUndo"in B&&e(9,p=B.canUndo),"canRedo"in B&&e(10,m=B.canRedo),"canFormat"in B&&e(11,w=B.canFormat),"canCompact"in B&&e(12,C=B.canCompact),"canSort"in B&&e(13,k=B.canSort),"canTransform"in B&&e(14,E=B.canTransform),"onRenderMenu"in B&&e(15,L=B.onRenderMenu)},t.$$.update=function(){32766&t.$$.dirty&&e(16,r=s?[{type:"space"}]:[{type:"button",icon:fN,title:"Format JSON: add proper indentation and new lines (Ctrl+I)",className:"jse-format",onClick:a,disabled:s||!w},{type:"button",icon:WYe,title:"Compact JSON: remove all white spacing and new lines (Ctrl+Shift+I)",className:"jse-compact",onClick:l,disabled:s||!C},{type:"separator"},{type:"button",icon:z2,title:"Sort",className:"jse-sort",onClick:c,disabled:s||!k},{type:"button",icon:B2,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:u,disabled:s||!E},{type:"button",icon:YO,title:"Search (Ctrl+F)",className:"jse-search",onClick:h},{type:"separator"},{type:"button",icon:XO,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:d,disabled:!p},{type:"button",icon:qO,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:f,disabled:!m},{type:"space"}]),98304&t.$$.dirty&&e(0,i=L(r)||r)},[i,s,a,l,c,u,h,d,f,p,m,w,C,k,E,L,r]}var fJe=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,dJe,hJe,Zi,{readOnly:1,onFormat:2,onCompact:3,onSort:4,onTransform:5,onToggleSearch:6,onUndo:7,onRedo:8,canUndo:9,canRedo:10,canFormat:11,canCompact:12,canSort:13,canTransform:14,onRenderMenu:15}),r}return Xe(e)}(),Lo=function(){function t(){qe(this,t)}return Xe(t,[{key:"lineAt",value:function(n){if(n<0||n>this.length)throw new RangeError("Invalid position ".concat(n," in document of length ").concat(this.length));return this.lineInner(n,!1,1,0)}},{key:"line",value:function(n){if(n<1||n>this.lines)throw new RangeError("Invalid line number ".concat(n," in ").concat(this.lines,"-line document"));return this.lineInner(n,!0,1,0)}},{key:"replace",value:function(n,e,i){var r=[];return this.decompose(0,n,r,2),i.length&&i.decompose(0,i.length,r,3),this.decompose(e,this.length,r,1),ok.from(r,this.length-(e-n)+i.length)}},{key:"append",value:function(n){return this.replace(this.length,this.length,n)}},{key:"slice",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,i=[];return this.decompose(n,e,i,0),ok.from(i,e-n)}},{key:"eq",value:function(n){if(n==this)return!0;if(n.length!=this.length||n.lines!=this.lines)return!1;for(var e=this.scanIdentical(n,1),i=this.length-this.scanIdentical(n,-1),r=new Zb(this),o=new Zb(n),s=e,a=e;;){if(r.next(s),o.next(s),s=0,r.lineBreak!=o.lineBreak||r.done!=o.done||r.value!=o.value)return!1;if(a+=r.value.length,r.done||a>=i)return!0}}},{key:"iter",value:function(){return new Zb(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)}},{key:"iterRange",value:function(n){return new hce(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length)}},{key:"iterLines",value:function(n,e){var i;if(null==n)i=this.iter();else{null==e&&(e=this.lines+1);var r=this.line(n).from;i=this.iterRange(r,Math.max(r,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new dce(i)}},{key:"toString",value:function(){return this.sliceString(0)}},{key:"toJSON",value:function(){var n=[];return this.flatten(n),n}}],[{key:"of",value:function(n){if(0==n.length)throw new RangeError("A document must have at least one line");return 1!=n.length||n[0]?n.length<=32?new ah(n):ok.from(ah.split(n,[])):t.empty}}]),t}(),ah=function(t){Wt(e,Lo);var n=Gt(e);function e(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function pJe(t){var n,e=-1,i=ot(t);try{for(i.s();!(n=i.n()).done;)e+=n.value.length+1}catch(r){i.e(r)}finally{i.f()}return e}(i);return qe(this,e),(r=n.call(this)).text=i,r.length=o,r}return Xe(e,[{key:"lines",get:function(){return this.text.length}},{key:"children",get:function(){return null}},{key:"lineInner",value:function(i,r,o,s){for(var a=0;;a++){var l=this.text[a],c=s+l.length;if((r?o:c)>=i)return new gJe(s,c,o,l);s=c+1,o++}}},{key:"decompose",value:function(i,r,o,s){var a=i<=0&&r>=this.length?this:new e(uce(this.text,i,r),Math.min(r,this.length)-Math.max(0,i));if(1&s){var l=o.pop(),c=sk(a.text,l.text.slice(),0,a.length);if(c.length<=32)o.push(new e(c,l.length+a.length));else{var u=c.length>>1;o.push(new e(c.slice(0,u)),new e(c.slice(u)))}}else o.push(a)}},{key:"replace",value:function(i,r,o){if(!(o instanceof e))return jr(_r(e.prototype),"replace",this).call(this,i,r,o);var s=sk(this.text,sk(o.text,uce(this.text,0,i)),r),a=this.length+o.length-(r-i);return s.length<=32?new e(s,a):ok.from(e.split(s,[]),a)}},{key:"sliceString",value:function(i){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",s="",a=0,l=0;a<=r&&li&&l&&(s+=o),ia&&(s+=c.slice(Math.max(0,i-a),r-a)),a=u+1}return s}},{key:"flatten",value:function(i){var r,o=ot(this.text);try{for(o.s();!(r=o.n()).done;)i.push(r.value)}catch(a){o.e(a)}finally{o.f()}}},{key:"scanIdentical",value:function(){return 0}}],[{key:"split",value:function(i,r){var o,s=[],a=-1,l=ot(i);try{for(l.s();!(o=l.n()).done;){var c=o.value;s.push(c),a+=c.length+1,32==s.length&&(r.push(new e(s,a)),s=[],a=-1)}}catch(u){l.e(u)}finally{l.f()}return a>-1&&r.push(new e(s,a)),r}}]),e}(),ok=function(t){Wt(e,Lo);var n=Gt(e);function e(i,r){var o;qe(this,e),(o=n.call(this)).children=i,o.length=r,o.lines=0;var s,a=ot(i);try{for(a.s();!(s=a.n()).done;)o.lines+=s.value.lines}catch(c){a.e(c)}finally{a.f()}return o}return Xe(e,[{key:"lineInner",value:function(i,r,o,s){for(var a=0;;a++){var l=this.children[a],c=s+l.length,u=o+l.lines-1;if((r?u:c)>=i)return l.lineInner(i,r,o,s);s=c+1,o=u+1}}},{key:"decompose",value:function(i,r,o,s){for(var a=0,l=0;l<=r&&a=l){var h=s&((l<=i?1:0)|(u>=r?2:0));l>=i&&u<=r&&!h?o.push(c):c.decompose(i-l,r-l,o,h)}l=u+1}}},{key:"replace",value:function(i,r,o){if(o.lines=a&&r<=c){var u=l.replace(i-a,r-a,o),h=this.lines-l.lines+u.lines;if(u.lines>4&&u.lines>h>>6){var d=this.children.slice();return d[s]=u,new e(d,this.length-(r-i)+o.length)}return jr(_r(e.prototype),"replace",this).call(this,a,c,u)}a=c+1}return jr(_r(e.prototype),"replace",this).call(this,i,r,o)}},{key:"sliceString",value:function(i){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",s="",a=0,l=0;ai&&a&&(s+=o),il&&(s+=c.sliceString(i-l,r-l,o)),l=u+1}return s}},{key:"flatten",value:function(i){var r,o=ot(this.children);try{for(o.s();!(r=o.n()).done;)r.value.flatten(i)}catch(s){o.e(s)}finally{o.f()}}},{key:"scanIdentical",value:function(i,r){if(!(i instanceof e))return 0;for(var o=0,s=di(r>0?[0,0,this.children.length,i.children.length]:[this.children.length-1,i.children.length-1,-1,-1],4),a=s[0],l=s[1],c=s[2],u=s[3];;a+=r,l+=r){if(a==c||l==u)return o;var h=this.children[a],d=i.children[l];if(h!=d)return o+h.scanIdentical(d,r);o+=h.length+1}}}],[{key:"from",value:function(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.reduce(function(re,ce){return re+ce.length+1},-1),s=0,a=ot(i);try{for(a.s();!(r=a.n()).done;)s+=r.value.lines}catch(re){a.e(re)}finally{a.f()}if(s<32){var c,u=[],h=ot(i);try{for(h.s();!(c=h.n()).done;)c.value.flatten(u)}catch(re){h.e(re)}finally{h.f()}return new ah(u,o)}var f=Math.max(32,s>>5),p=f<<1,m=f>>1,w=[],C=0,k=-1,E=[];function L(re){var ce;if(re.lines>p&&re instanceof e){var ue,pe=ot(re.children);try{for(pe.s();!(ue=pe.n()).done;)L(ue.value)}catch(De){pe.e(De)}finally{pe.f()}}else re.lines>m&&(C>m||!C)?(B(),w.push(re)):re instanceof ah&&C&&(ce=E[E.length-1])instanceof ah&&re.lines+ce.lines<=32?(C+=re.lines,k+=re.length+1,E[E.length-1]=new ah(ce.text.concat(re.text),ce.length+1+re.length)):(C+re.lines>f&&B(),C+=re.lines,k+=re.length+1,E.push(re))}function B(){0!=C&&(w.push(1==E.length?E[0]:e.from(E,k)),k=-1,C=E.length=0)}var G,oe=ot(i);try{for(oe.s();!(G=oe.n()).done;)L(G.value)}catch(re){oe.e(re)}finally{oe.f()}return B(),1==w.length?w[0]:new e(w,o)}}]),e}();function sk(t,n){for(var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e9,r=0,o=0,s=!0;o=e&&(l>i&&(a=a.slice(0,i-r)),r1&&void 0!==arguments[1]?arguments[1]:1;qe(this,t),this.dir=e,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[n],this.offsets=[e>0?1:(n instanceof ah?n.text.length:n.children.length)<<1]}return Xe(t,[{key:"nextInner",value:function(n,e){for(this.done=this.lineBreak=!1;;){var i=this.nodes.length-1,r=this.nodes[i],o=this.offsets[i],s=o>>1;if(s==(e>0?r instanceof ah?r.text.length:r.children.length:0)){if(0==i)return this.done=!0,this.value="",this;e>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&o)==(e>0?0:1)){if(this.offsets[i]+=e,0==n)return this.lineBreak=!0,this.value="\n",this;n--}else if(r instanceof ah){var l=r.text[s+(e<0?-1:0)];if(this.offsets[i]+=e,l.length>Math.max(0,n))return this.value=0==n?l:e>0?l.slice(n):l.slice(0,l.length-n),this;n-=l.length}else{var c=r.children[s+(e<0?-1:0)];n>c.length?(n-=c.length,this.offsets[i]+=e):(e<0&&this.offsets[i]--,this.nodes.push(c),this.offsets.push(e>0?1:(c instanceof ah?c.text.length:c.children.length)<<1))}}}},{key:"next",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return n<0&&(this.nextInner(-n,-this.dir),n=this.value.length),this.nextInner(n,this.dir)}}]),t}(),hce=function(){function t(n,e,i){qe(this,t),this.value="",this.done=!1,this.cursor=new Zb(n,e>i?-1:1),this.pos=e>i?n.length:0,this.from=Math.min(e,i),this.to=Math.max(e,i)}return Xe(t,[{key:"nextInner",value:function(n,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;n+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);var i=e<0?this.pos-this.from:this.to-this.pos;n>i&&(n=i),i-=n;var r=this.cursor.next(n).value;return this.pos+=(r.length+n)*e,this.value=r.length<=i?r:e<0?r.slice(r.length-i):r.slice(0,i),this.done=!this.value,this}},{key:"next",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return n<0?n=Math.max(n,this.from-this.pos):n>0&&(n=Math.min(n,this.to-this.pos)),this.nextInner(n,this.cursor.dir)}},{key:"lineBreak",get:function(){return this.cursor.lineBreak&&""!=this.value}}]),t}(),dce=function(){function t(n){qe(this,t),this.inner=n,this.afterBreak=!0,this.value="",this.done=!1}return Xe(t,[{key:"next",value:function(){var e=this.inner.next(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0),r=e.lineBreak,o=e.value;return e.done?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=o,this.afterBreak=!1),this}},{key:"lineBreak",get:function(){return!1}}]),t}();typeof Symbol<"u"&&(Lo.prototype[Symbol.iterator]=function(){return this.iter()},Zb.prototype[Symbol.iterator]=hce.prototype[Symbol.iterator]=dce.prototype[Symbol.iterator]=function(){return this});for(var gJe=function(){function t(n,e,i,r){qe(this,t),this.from=n,this.to=e,this.number=i,this.text=r}return Xe(t,[{key:"length",get:function(){return this.to-this.from}}]),t}(),_0="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(function(t){return t?parseInt(t,36):1}),ak=1;ak<_0.length;ak++)_0[ak]+=_0[ak-1];function mJe(t){for(var n=1;n<_0.length;n+=2)if(_0[n]>t)return _0[n-1]<=t;return!1}function fce(t){return t>=127462&&t<=127487}function ql(t,n){return(arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?vJe:pce)(t,n,!(arguments.length>3&&void 0!==arguments[3])||arguments[3])}function pce(t,n,e){if(n==t.length)return n;n&&gce(t.charCodeAt(n))&&mce(t.charCodeAt(n-1))&&n--;var i=tl(t,n);for(n+=Nc(i);n=0&&fce(tl(t,s));)o++,s-=2;if(o%2==0)break;n+=2}}return n}function vJe(t,n,e){for(;n>0;){var i=pce(t,n-2,e);if(i=56320&&t<57344}function mce(t){return t>=55296&&t<56320}function tl(t,n){var e=t.charCodeAt(n);if(!mce(e)||n+1==t.length)return e;var i=t.charCodeAt(n+1);return gce(i)?i-56320+(e-55296<<10)+65536:e}function CN(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}function Nc(t){return t<65536?1:2}var SN=/\r\n?|\n/,Xl=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(Xl||(Xl={})),w0=function(){function t(n){qe(this,t),this.sections=n}return Xe(t,[{key:"length",get:function(){for(var n=0,e=0;e1&&void 0!==arguments[1]&&arguments[1])}},{key:"invertedDesc",get:function(){for(var n=[],e=0;e1&&void 0!==arguments[1]&&arguments[1])}},{key:"mapPos",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Xl.Simple,r=0,o=0,s=0;sn)return o+(n-r);o+=a}else{if(i!=Xl.Simple&&c>=n&&(i==Xl.TrackDel&&rn||i==Xl.TrackBefore&&rn))return null;if(c>n||c==n&&e<0&&!a)return n==r||e<0?o:o+l;o+=l}r=c}if(n>r)throw new RangeError("Position ".concat(n," is out of range for changeset of length ").concat(r));return o}},{key:"touchesRange",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,i=0,r=0;i=0&&r<=e&&a>=n)return!(re)||"cover";r=a}return!1}},{key:"toString",value:function(){for(var n="",e=0;e=0?":"+r:"")}return n}},{key:"toJSON",value:function(){return this.sections}}],[{key:"fromJSON",value:function(n){if(!Array.isArray(n)||n.length%2||n.some(function(e){return"number"!=typeof e}))throw new RangeError("Invalid JSON representation of ChangeDesc");return new t(n)}},{key:"create",value:function(n){return new t(n)}}]),t}(),lh=function(t){Wt(e,w0);var n=Gt(e);function e(i,r){var o;return qe(this,e),(o=n.call(this,i)).inserted=r,o}return Xe(e,[{key:"apply",value:function(i){if(this.length!=i.length)throw new RangeError("Applying change set to a document with the wrong length");return kN(this,function(r,o,s,a,l){return i=i.replace(s,s+(o-r),l)},!1),i}},{key:"mapDesc",value:function(i){return DN(this,i,arguments.length>1&&void 0!==arguments[1]&&arguments[1],!0)}},{key:"invert",value:function(i){for(var r=this.sections.slice(),o=[],s=0,a=0;s=0){r[s]=c,r[s+1]=l;for(var u=s>>1;o.length1&&void 0!==arguments[1]&&arguments[1],!0)}},{key:"iterChanges",value:function(i){kN(this,i,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}},{key:"desc",get:function(){return w0.create(this.sections)}},{key:"filter",value:function(i){var r=[],o=[],s=[],a=new e_(this);e:for(var l=0,c=0;;){for(var u=l==i.length?1e9:i[l++];c0&&hp(o,r,a.text),a.forward(h),c+=h}for(var f=i[l++];c>1].toJSON()))}return i}}],[{key:"of",value:function(i,r,o){var s=[],a=[],l=0,c=null;function u(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||s.length){lC||m<0||C>r)throw new RangeError("Invalid change range ".concat(m," to ").concat(C," (in doc of length ").concat(r,")"));var E=k?"string"==typeof k?Lo.of(k.split(o||SN)):k:Lo.empty,L=E.length;if(m==C&&0==L)return;ml&&Sl(s,m-l,-1),Sl(s,C-m,L),hp(a,s,E),l=C}}(i),u(!c),c}},{key:"empty",value:function(i){return new e(i?[i,-1]:[],[])}},{key:"fromJSON",value:function(i){if(!Array.isArray(i))throw new RangeError("Invalid JSON representation of ChangeSet");for(var r=[],o=[],s=0;s3&&void 0!==arguments[3]&&arguments[3];if(!(0==n&&e<=0)){var r=t.length-2;r>=0&&e<=0&&e==t[r+1]?t[r]+=n:0==n&&0==t[r]?t[r+1]+=e:i?(t[r]+=n,t[r+1]+=e):t.push(n,e)}}function hp(t,n,e){if(0!=e.length){var i=n.length-2>>1;if(i>1])),!(e||s==t.sections.length||t.sections[s+1]<0);)a=t.sections[s++],l=t.sections[s++];n(r,c,o,u,h),r=c,o=u}}}function DN(t,n,e){for(var r=[],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3]?[]:null,s=new e_(t),a=new e_(n),l=-1;;)if(-1==s.ins&&-1==a.ins){var c=Math.min(s.len,a.len);Sl(r,c,-1),s.forward(c),a.forward(c)}else if(a.ins>=0&&(s.ins<0||l==s.i||0==s.off&&(a.len=0&&l=0)){if(s.done&&a.done)return o?lh.createSet(r,o):w0.create(r);throw new Error("Mismatched change set lengths")}for(var d=0,f=s.len;f;)if(-1==a.ins){var p=Math.min(f,a.len);d+=p,f-=p,a.forward(p)}else{if(!(0==a.ins&&a.len2&&void 0!==arguments[2]&&arguments[2]?[]:null,o=new e_(t),s=new e_(n),a=!1;;){if(o.done&&s.done)return r?lh.createSet(i,r):w0.create(i);if(0==o.ins)Sl(i,o.len,0,a),o.next();else if(0!=s.len||s.done){if(o.done||s.done)throw new Error("Mismatched change set lengths");var l=Math.min(o.len2,s.len),c=i.length;if(-1==o.ins){var u=-1==s.ins?-1:s.off?0:s.ins;Sl(i,l,u,a),r&&u&&hp(r,i,s.text)}else-1==s.ins?(Sl(i,o.off?0:o.len,l,a),r&&hp(r,i,o.textBit(l))):(Sl(i,o.off?0:o.len,s.off?0:s.ins,a),r&&!s.off&&hp(r,i,s.text));a=(o.ins>l||s.ins>=0&&s.len>l)&&(a||i.length>c),o.forward2(l),s.forward(l)}else Sl(i,0,s.ins,a),r&&hp(r,i,s.text),s.next()}}var e_=function(){function t(n){qe(this,t),this.set=n,this.i=0,this.next()}return Xe(t,[{key:"next",value:function(){var n=this.set.sections;this.i>1;return e>=n.length?Lo.empty:n[e]}},{key:"textBit",value:function(n){var e=this.set.inserted,i=this.i-2>>1;return i>=e.length&&!n?Lo.empty:e[i].slice(this.off,null==n?void 0:this.off+n)}},{key:"forward",value:function(n){n==this.len?this.next():(this.len-=n,this.off+=n)}},{key:"forward2",value:function(n){-1==this.ins?this.forward(n):n==this.ins?this.next():(this.ins-=n,this.off+=n)}}]),t}(),lk=function(){function t(n,e,i){qe(this,t),this.from=n,this.to=e,this.flags=i}return Xe(t,[{key:"anchor",get:function(){return 16&this.flags?this.to:this.from}},{key:"head",get:function(){return 16&this.flags?this.from:this.to}},{key:"empty",get:function(){return this.from==this.to}},{key:"assoc",get:function(){return 4&this.flags?-1:8&this.flags?1:0}},{key:"bidiLevel",get:function(){var n=3&this.flags;return 3==n?null:n}},{key:"goalColumn",get:function(){var n=this.flags>>5;return 33554431==n?void 0:n}},{key:"map",value:function(n){var e,i;return this.empty?e=i=n.mapPos(this.from,arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1):(e=n.mapPos(this.from,1),i=n.mapPos(this.to,-1)),e==this.from&&i==this.to?this:new t(e,i,this.flags)}},{key:"extend",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;if(n<=this.anchor&&e>=this.anchor)return _n.range(n,e);var i=Math.abs(n-this.anchor)>Math.abs(e-this.anchor)?n:e;return _n.range(this.anchor,i)}},{key:"eq",value:function(n){return this.anchor==n.anchor&&this.head==n.head}},{key:"toJSON",value:function(){return{anchor:this.anchor,head:this.head}}}],[{key:"fromJSON",value:function(n){if(!n||"number"!=typeof n.anchor||"number"!=typeof n.head)throw new RangeError("Invalid JSON representation for SelectionRange");return _n.range(n.anchor,n.head)}},{key:"create",value:function(n,e,i){return new t(n,e,i)}}]),t}(),_n=function(){function t(n,e){qe(this,t),this.ranges=n,this.mainIndex=e}return Xe(t,[{key:"map",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return n.empty?this:t.create(this.ranges.map(function(i){return i.map(n,e)}),this.mainIndex)}},{key:"eq",value:function(n){if(this.ranges.length!=n.ranges.length||this.mainIndex!=n.mainIndex)return!1;for(var e=0;e1&&void 0!==arguments[1])||arguments[1];return t.create([n].concat(this.ranges),e?0:this.mainIndex+1)}},{key:"replaceRange",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.mainIndex,i=this.ranges.slice();return i[e]=n,t.create(i,this.mainIndex)}},{key:"toJSON",value:function(){return{ranges:this.ranges.map(function(n){return n.toJSON()}),main:this.mainIndex}}}],[{key:"fromJSON",value:function(n){if(!n||!Array.isArray(n.ranges)||"number"!=typeof n.main||n.main>=n.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new t(n.ranges.map(function(e){return lk.fromJSON(e)}),n.main)}},{key:"single",value:function(n){return new t([t.range(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n)],0)}},{key:"create",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0==n.length)throw new RangeError("A selection needs at least one range");for(var i=0,r=0;r1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return lk.create(n,n,(0==e?0:e<0?4:8)|(null==i?3:Math.min(2,i))|(r??33554431)<<5)}},{key:"range",value:function(n,e,i,r){var o=(i??33554431)<<5|(null==r?3:Math.min(2,r));return en?4:0)|o)}},{key:"normalized",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=n[e];n.sort(function(c,u){return c.from-u.from}),e=n.indexOf(i);for(var r=1;ro.head?t.range(l,a):t.range(a,l))}}return new t(n,e)}}]),t}();function yce(t,n){var e,i=ot(t.ranges);try{for(i.s();!(e=i.n()).done;)if(e.value.to>n)throw new RangeError("Selection points outside of document")}catch(r){i.e(r)}finally{i.f()}}var TN=0,yi=function(){function t(n,e,i,r,o){qe(this,t),this.combine=n,this.compareInput=e,this.compare=i,this.isStatic=r,this.id=TN++,this.default=n([]),this.extensions="function"==typeof o?o(this):o}return Xe(t,[{key:"of",value:function(n){return new ck([],this,0,n)}},{key:"compute",value:function(n,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new ck(n,this,1,e)}},{key:"computeN",value:function(n,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new ck(n,this,2,e)}},{key:"from",value:function(n,e){return e||(e=function(i){return i}),this.compute([n],function(i){return e(i.field(n))})}}],[{key:"define",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t(n.combine||function(e){return e},n.compareInput||function(e,i){return e===i},n.compare||(n.combine?function(e,i){return e===i}:AN),!!n.static,n.enables)}}]),t}();function AN(t,n){return t==n||t.length==n.length&&t.every(function(e,i){return e===n[i]})}var ck=function(){function t(n,e,i,r){qe(this,t),this.dependencies=n,this.facet=e,this.type=i,this.value=r,this.id=TN++}return Xe(t,[{key:"dynamicSlot",value:function(n){var e,i,r=this,o=this.value,s=this.facet.compareInput,a=this.id,l=n[a]>>1,c=2==this.type,u=!1,h=!1,d=[],f=ot(this.dependencies);try{for(f.s();!(i=f.n()).done;){var p=i.value;"doc"==p?u=!0:"selection"==p?h=!0:!(1&(null!==(e=n[p.id])&&void 0!==e?e:1))&&d.push(n[p.id])}}catch(m){f.e(m)}finally{f.f()}return{create:function(m){return m.values[l]=o(m),1},update:function(m,w){if(u&&w.docChanged||h&&(w.docChanged||w.selection)||EN(m,d)){var C=o(m);if(c?!bce(C,m.values[l],s):!s(C,m.values[l]))return m.values[l]=C,1}return 0},reconfigure:function(m,w){var C,k=w.config.address[a];if(null!=k){var E=uk(w,k);if(r.dependencies.every(function(L){return L instanceof yi?w.facet(L)===m.facet(L):!(L instanceof nl)||w.field(L,!1)==m.field(L,!1)})||(c?bce(C=o(m),E,s):s(C=o(m),E)))return m.values[l]=E,0}else C=o(m);return m.values[l]=C,1}}}}]),t}();function bce(t,n,e){if(t.length!=n.length)return!1;for(var i=0;i>1;return{create:function(r){return r.values[i]=e.create(r),1},update:function(r,o){var s=r.values[i],a=e.updateF(s,o);return e.compareF(s,a)?0:(r.values[i]=a,1)},reconfigure:function(r,o){return null!=o.config.address[e.id]?(r.values[i]=o.field(e),0):(r.values[i]=e.create(r),1)}}}},{key:"init",value:function(n){return[this,_ce.of({field:this,create:n})]}},{key:"extension",get:function(){return this}}],[{key:"define",value:function(n){var e=new t(TN++,n.create,n.update,n.compare||function(i,r){return i===r},n);return n.provide&&(e.provides=n.provide(e)),e}}]),t}();function t_(t){return function(n){return new wce(n,t)}}var x0={highest:t_(0),high:t_(1),default:t_(2),low:t_(3),lowest:t_(4)},wce=Xe(function t(n,e){qe(this,t),this.inner=n,this.prec=e}),dp=function(){function t(){qe(this,t)}return Xe(t,[{key:"of",value:function(n){return new IN(this,n)}},{key:"reconfigure",value:function(n){return t.reconfigure.of({compartment:this,extension:n})}},{key:"get",value:function(n){return n.config.compartments.get(this)}}]),t}(),IN=Xe(function t(n,e){qe(this,t),this.compartment=n,this.inner=e}),xce=function(){function t(n,e,i,r,o,s){for(qe(this,t),this.base=n,this.compartments=e,this.dynamicSlots=i,this.address=r,this.staticValues=o,this.facets=s,this.statusTemplate=[];this.statusTemplate.length>1]}}],[{key:"resolve",value:function(n,e,i){var r,L,B,G,oe,fe,o=[],s=Object.create(null),a=new Map,l=ot((L=n,B=e,G=a,oe=[[],[],[],[],[]],fe=new Map,function re(ce,ue){var pe=fe.get(ce);if(null!=pe){if(pe<=ue)return;var De=oe[pe].indexOf(ce);De>-1&&oe[pe].splice(De,1),ce instanceof IN&&G.delete(ce.compartment)}if(fe.set(ce,ue),Array.isArray(ce)){var ie,ge=ot(ce);try{for(ge.s();!(ie=ge.n()).done;)re(ie.value,ue)}catch(Fe){ge.e(Fe)}finally{ge.f()}}else if(ce instanceof IN){if(G.has(ce.compartment))throw new RangeError("Duplicate use of compartment in extensions");var we=B.get(ce.compartment)||ce.inner;G.set(ce.compartment,we),re(we,ue)}else if(ce instanceof wce)re(ce.inner,ce.prec);else if(ce instanceof nl)oe[ue].push(ce),ce.provides&&re(ce.provides,ue);else if(ce instanceof ck)oe[ue].push(ce),ce.facet.extensions&&re(ce.facet.extensions,2);else{var le=ce.extension;if(!le)throw new Error("Unrecognized extension value in extension set (".concat(ce,"). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks."));re(le,ue)}}(L,2),oe.reduce(function(ce,ue){return ce.concat(ue)})));try{for(l.s();!(r=l.n()).done;){var c=r.value;c instanceof nl?o.push(c):(s[c.facet.id]||(s[c.facet.id]=[])).push(c)}}catch(L){l.e(L)}finally{l.f()}for(var u=Object.create(null),h=[],d=[],f=function(){var L=m[p];u[L.id]=d.length<<1,d.push(function(B){return L.slot(B)})},p=0,m=o;p>1;function Q(Z){for(var me=[],ae=0;ae>1,i=t.status[e];if(4==i)throw new Error("Cyclic dependency between fields and/or facets");if(2&i)return i;t.status[e]=4;var r=t.computeSlot(t,t.config.dynamicSlots[e]);return t.status[e]=2|r}function uk(t,n){return 1&n?t.config.staticValues[n>>1]:t.values[n>>1]}var Cce=yi.define(),Sce=yi.define({combine:function(t){return t.some(function(n){return n})},static:!0}),kce=yi.define({combine:function(t){return t.length?t[0]:void 0},static:!0}),Dce=yi.define(),Tce=yi.define(),Ace=yi.define(),Ece=yi.define({combine:function(t){return!!t.length&&t[0]}}),fp=function(){function t(n,e){qe(this,t),this.type=n,this.value=e}return Xe(t,null,[{key:"define",value:function(){return new wJe}}]),t}(),wJe=function(){function t(){qe(this,t)}return Xe(t,[{key:"of",value:function(n){return new fp(this,n)}}]),t}(),xJe=function(){function t(n){qe(this,t),this.map=n}return Xe(t,[{key:"of",value:function(n){return new $r(this,n)}}]),t}(),$r=function(){function t(n,e){qe(this,t),this.type=n,this.value=e}return Xe(t,[{key:"map",value:function(n){var e=this.type.map(this.value,n);return void 0===e?void 0:e==this.value?this:new t(this.type,e)}},{key:"is",value:function(n){return this.type==n}}],[{key:"define",value:function(){return new xJe((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).map||function(e){return e})}},{key:"mapEffects",value:function(n,e){if(!n.length)return n;var i,r=[],o=ot(n);try{for(o.s();!(i=o.n()).done;){var s=i.value.map(e);s&&r.push(s)}}catch(a){o.e(a)}finally{o.f()}return r}}]),t}();$r.reconfigure=$r.define(),$r.appendConfig=$r.define();var cc=function(){function t(n,e,i,r,o,s){qe(this,t),this.startState=n,this.changes=e,this.selection=i,this.effects=r,this.annotations=o,this.scrollIntoView=s,this._doc=null,this._state=null,i&&yce(i,e.newLength),o.some(function(a){return a.type==t.time})||(this.annotations=o.concat(t.time.of(Date.now())))}return Xe(t,[{key:"newDoc",get:function(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}},{key:"newSelection",get:function(){return this.selection||this.startState.selection.map(this.changes)}},{key:"state",get:function(){return this._state||this.startState.applyTransaction(this),this._state}},{key:"annotation",value:function(n){var e,i=ot(this.annotations);try{for(i.s();!(e=i.n()).done;){var r=e.value;if(r.type==n)return r.value}}catch(o){i.e(o)}finally{i.f()}}},{key:"docChanged",get:function(){return!this.changes.empty}},{key:"reconfigured",get:function(){return this.startState.config!=this.state.config}},{key:"isUserEvent",value:function(n){var e=this.annotation(t.userEvent);return!(!e||!(e==n||e.length>n.length&&e.slice(0,n.length)==n&&"."==e[n.length]))}}],[{key:"create",value:function(n,e,i,r,o,s){return new t(n,e,i,r,o,s)}}]),t}();function CJe(t,n){for(var e=[],i=0,r=0;;){var o=void 0,s=void 0;if(i=t[i]))o=t[i++],s=t[i++];else{if(!(r=0;h--){var d=c[h](a);d&&Object.keys(d).length&&(u=Mce(u,FN(l,d,a.changes.newLength),!0))}return u==a?a:cc.create(l,a.changes,a.selection,u.effects,u.annotations,u.scrollIntoView)}(e?function(a){var l,c=a.startState,u=!0,h=ot(c.facet(Dce));try{for(h.s();!(l=h.n()).done;){var d=(0,l.value)(a);if(!1===d){u=!1;break}Array.isArray(d)&&(u=!0===u?d:CJe(u,d))}}catch(E){h.e(E)}finally{h.f()}if(!0!==u){var f,p;if(!1===u)p=a.changes.invertedDesc,f=lh.empty(c.doc.length);else{var m=a.changes.filter(u);f=m.changes,p=m.filtered.mapDesc(m.changes).invertedDesc}a=cc.create(c,f,a.selection&&a.selection.map(p),$r.mapEffects(a.effects,p),a.annotations,a.scrollIntoView)}for(var w=c.facet(Tce),C=w.length-1;C>=0;C--){var k=w[C](a);a=k instanceof cc?k:Array.isArray(k)&&1==k.length&&k[0]instanceof cc?k[0]:Ice(c,C0(k),!1)}return a}(s):s)}cc.time=fp.define(),cc.userEvent=fp.define(),cc.addToHistory=fp.define(),cc.remote=fp.define();var SJe=[];function C0(t){return null==t?SJe:Array.isArray(t)?t:[t]}var LN,Ds=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(Ds||(Ds={})),kJe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{LN=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}var Qo=function(){function t(n,e,i,r,o,s){qe(this,t),this.config=n,this.doc=e,this.selection=i,this.values=r,this.status=n.statusTemplate.slice(),this.computeSlot=o,s&&(s._state=this);for(var a=0;a1&&void 0!==arguments[1])||arguments[1],i=this.config.address[n.id];if(null!=i)return n_(this,i),uk(this,i);if(e)throw new RangeError("Field is not present in this state")}},{key:"update",value:function(){for(var n=arguments.length,e=new Array(n),i=0;i0&&void 0!==arguments[0]?arguments[0]:[];return n instanceof lh?n:lh.of(n,this.doc.length,this.facet(t.lineSeparator))}},{key:"toText",value:function(n){return Lo.of(n.split(this.facet(t.lineSeparator)||SN))}},{key:"sliceDoc",value:function(){return this.doc.sliceString(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.doc.length,this.lineBreak)}},{key:"facet",value:function(n){var e=this.config.address[n.id];return null==e?n.default:(n_(this,e),uk(this,e))}},{key:"toJSON",value:function(n){var e={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(n)for(var i in n){var r=n[i];r instanceof nl&&null!=this.config.address[r.id]&&(e[i]=r.spec.toJSON(this.field(n[i]),this))}return e}},{key:"tabSize",get:function(){return this.facet(t.tabSize)}},{key:"lineBreak",get:function(){return this.facet(t.lineSeparator)||"\n"}},{key:"readOnly",get:function(){return this.facet(Ece)}},{key:"phrase",value:function(n){for(var e=arguments.length,i=new Array(e>1?e-1:0),r=1;ri.length?l:i[u-1]})),n}},{key:"languageDataAt",value:function(n,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,o=[],s=ot(this.facet(Cce));try{for(s.s();!(i=s.n()).done;){var a,c=ot((0,i.value)(this,e,r));try{for(c.s();!(a=c.n()).done;){var u=a.value;Object.prototype.hasOwnProperty.call(u,n)&&o.push(u[n])}}catch(h){c.e(h)}finally{c.f()}}}catch(h){s.e(h)}finally{s.f()}return o}},{key:"charCategorizer",value:function(n){return function DJe(t){return function(n){if(!/\S/.test(n))return Ds.Space;if(function(i){if(LN)return LN.test(i);for(var r=0;r"\x80"&&(o.toUpperCase()!=o.toLowerCase()||kJe.test(o)))return!0}return!1}(n))return Ds.Word;for(var e=0;e-1)return Ds.Word;return Ds.Other}}(this.languageDataAt("wordChars",n).join(""))}},{key:"wordAt",value:function(n){for(var e=this.doc.lineAt(n),i=e.text,r=e.from,o=e.length,s=this.charCategorizer(n),a=n-r,l=n-r;a>0;){var c=ql(i,a,!1);if(s(i.slice(c,a))!=Ds.Word)break;a=c}for(;l1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;if(!n||"string"!=typeof n.doc)throw new RangeError("Invalid JSON representation for EditorState");var r=[];if(i)for(var o in i)Object.prototype.hasOwnProperty.call(n,o)&&function(){var s=i[o],a=n[o];r.push(s.init(function(l){return s.spec.fromJSON(a,l)}))}();return t.create({doc:n.doc,selection:_n.fromJSON(n.selection),extensions:e.extensions?r.concat([e.extensions]):r})}},{key:"create",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=xce.resolve(n.extensions||[],new Map),i=n.doc instanceof Lo?n.doc:Lo.of((n.doc||"").split(e.staticFacet(t.lineSeparator)||SN)),r=n.selection?n.selection instanceof _n?n.selection:_n.single(n.selection.anchor,n.selection.head):_n.single(0);return yce(r,i.length),e.staticFacet(Sce)||(r=r.asSingle()),new t(e,i,r,e.dynamicSlots.map(function(){return null}),function(o,s){return s.create(o)},null)}}]),t}();function fu(t,n){var e,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={},o=ot(t);try{for(o.s();!(e=o.n()).done;)for(var s=e.value,a=0,l=Object.keys(s);a1&&void 0!==arguments[1]?arguments[1]:n,this)}}]),t}();Ug.prototype.startSide=Ug.prototype.endSide=0,Ug.prototype.point=!1,Ug.prototype.mapMode=Xl.TrackDel;var ON=function(){function t(n,e,i){qe(this,t),this.from=n,this.to=e,this.value=i}return Xe(t,null,[{key:"create",value:function(n,e,i){return new t(n,e,i)}}]),t}();function NN(t,n){return t.from-n.from||t.value.startSide-n.value.startSide}var TJe=function(){function t(n,e,i,r){qe(this,t),this.from=n,this.to=e,this.value=i,this.maxPoint=r}return Xe(t,[{key:"length",get:function(){return this.to[this.to.length-1]}},{key:"findIndex",value:function(n,e,i){for(var o=i?this.to:this.from,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=o.length;;){if(s==a)return s;var l=s+a>>1,c=o[l]-n||(i?this.value[l].endSide:this.value[l].startSide)-e;if(l==s)return c>=0?s:a;c>=0?a=l:s=l+1}}},{key:"between",value:function(n,e,i,r){for(var o=this.findIndex(e,-1e9,!0),s=this.findIndex(i,1e9,!1,o);o(f=e.mapPos(h,c.endSide))||d==f&&c.startSide>0&&c.endSide<=0)continue;(f-d||c.endSide-c.startSide)<0||(s<0&&(s=d),c.point&&(a=Math.max(a,f-d)),i.push(c),r.push(d-s),o.push(f-s))}return{mapped:i.length?new t(r,o,i,a):null,pos:s}}}]),t}(),cs=function(){function t(n,e,i,r){qe(this,t),this.chunkPos=n,this.chunk=e,this.nextLayer=i,this.maxPoint=r}return Xe(t,[{key:"length",get:function(){var n=this.chunk.length-1;return n<0?0:Math.max(this.chunkEnd(n),this.nextLayer.length)}},{key:"size",get:function(){if(this.isEmpty)return 0;var n,e=this.nextLayer.size,i=ot(this.chunk);try{for(i.s();!(n=i.n()).done;)e+=n.value.value.length}catch(r){i.e(r)}finally{i.f()}return e}},{key:"chunkEnd",value:function(n){return this.chunkPos[n]+this.chunk[n].length}},{key:"update",value:function(n){var e=n.add,i=void 0===e?[]:e,r=n.sort,s=n.filterFrom,a=void 0===s?0:s,l=n.filterTo,c=void 0===l?this.length:l,u=n.filter;if(0==i.length&&!u)return this;if(void 0!==r&&r&&(i=i.slice().sort(NN)),this.isEmpty)return i.length?t.of(i):this;for(var h=new Lce(this,null,-1).goto(0),d=0,f=[],p=new Wg;h.value||d=0){var m=i[d++];p.addInner(m.from,m.to,m.value)||f.push(m)}else 1==h.rangeIndex&&h.chunkIndexthis.chunkEnd(h.chunkIndex)||ch.to||c=o&&n<=o+s.length&&!1===s.between(o,n-o,e-o,i))return}this.nextLayer.between(n,e,i)}}},{key:"iter",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return RN.from([this]).goto(n)}},{key:"isEmpty",get:function(){return this.nextLayer==this}}],[{key:"create",value:function(n,e,i,r){return new t(n,e,i,r)}},{key:"iter",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return RN.from(n).goto(e)}},{key:"compare",value:function(n,e,i,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,s=n.filter(function(h){return h.maxPoint>0||!h.isEmpty&&h.maxPoint>=o}),a=e.filter(function(h){return h.maxPoint>0||!h.isEmpty&&h.maxPoint>=o}),l=Fce(s,a,i),c=new i_(s,l,o),u=new i_(a,l,o);i.iterGaps(function(h,d,f){return Oce(c,h,u,d,f,r)}),i.empty&&0==i.length&&Oce(c,0,u,0,0,r)}},{key:"eq",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0;null==r&&(r=999999999);var o=n.filter(function(u){return!u.isEmpty&&e.indexOf(u)<0}),s=e.filter(function(u){return!u.isEmpty&&n.indexOf(u)<0});if(o.length!=s.length)return!1;if(!o.length)return!0;for(var a=Fce(o,s),l=new i_(o,a,0).goto(i),c=new i_(s,a,0).goto(i);;){if(l.to!=c.to||!PN(l.active,c.active)||l.point&&(!c.point||!l.point.eq(c.point)))return!1;if(l.to>r)return!0;l.next(),c.next()}}},{key:"spans",value:function(n,e,i,r){for(var s=new i_(n,null,arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1).goto(e),a=e,l=s.openStart;;){var c=Math.min(s.to,i);if(s.point){var u=s.activeForPoint(s.to),h=s.pointFroma&&(r.span(a,c,s.active,l),l=s.openEnd(c));if(s.to>i)return l+(s.point&&s.to>i?1:0);a=s.to,s.next()}}},{key:"of",value:function(n){var e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=new Wg,o=ot(n instanceof ON?[n]:i?function AJe(t){if(t.length>1)for(var n=t[0],e=1;e0)return t.slice().sort(NN);n=i}return t}(n):n);try{for(o.s();!(e=o.n()).done;){var s=e.value;r.add(s.from,s.to,s.value)}}catch(a){o.e(a)}finally{o.f()}return r.finish()}}]),t}();cs.empty=new cs([],[],null,-1),cs.empty.nextLayer=cs.empty;var Wg=function(){function t(){qe(this,t),this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}return Xe(t,[{key:"finishChunk",value:function(n){this.chunks.push(new TJe(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,n&&(this.from=[],this.to=[],this.value=[])}},{key:"add",value:function(n,e,i){this.addInner(n,e,i)||(this.nextLayer||(this.nextLayer=new t)).add(n,e,i)}},{key:"addInner",value:function(n,e,i){var r=n-this.lastTo||i.startSide-this.last.endSide;if(r<=0&&(n-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0||(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=n),this.from.push(n-this.chunkStart),this.to.push(e-this.chunkStart),this.last=i,this.lastFrom=n,this.lastTo=e,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,e-n)),0))}},{key:"addChunk",value:function(n,e){if((n-this.lastTo||e.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,e.maxPoint),this.chunks.push(e),this.chunkPos.push(n);var i=e.value.length-1;return this.last=e.value[i],this.lastFrom=e.from[i]+n,this.lastTo=e.to[i]+n,!0}},{key:"finish",value:function(){return this.finishInner(cs.empty)}},{key:"finishInner",value:function(n){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return n;var e=cs.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(n):n,this.setMaxPoint);return this.from=null,e}}]),t}();function Fce(t,n,e){var i,r=new Map,o=ot(t);try{for(o.s();!(i=o.n()).done;)for(var s=i.value,a=0;a3&&void 0!==arguments[3]?arguments[3]:0;qe(this,t),this.layer=n,this.skip=e,this.minPoint=i,this.rank=r}return Xe(t,[{key:"startSide",get:function(){return this.value?this.value.startSide:0}},{key:"endSide",get:function(){return this.value?this.value.endSide:0}},{key:"goto",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.chunkIndex=this.rangeIndex=0,this.gotoInner(n,e,!1),this}},{key:"gotoInner",value:function(n,e,i){for(;this.chunkIndex=this.minPoint)break}}},{key:"setRangeIndex",value:function(n){if(n==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex1&&void 0!==arguments[1]?arguments[1]:-1e9,r=ot(this.heap);try{for(r.s();!(e=r.n()).done;)e.value.goto(n,i)}catch(a){r.e(a)}finally{r.f()}for(var s=this.heap.length>>1;s>=0;s--)$N(this.heap,s);return this.next(),this}},{key:"forward",value:function(n,e){var i,r=ot(this.heap);try{for(r.s();!(i=r.n()).done;)i.value.forward(n,e)}catch(s){r.e(s)}finally{r.f()}for(var o=this.heap.length>>1;o>=0;o--)$N(this.heap,o);(this.to-n||this.value.endSide-e)<0&&this.next()}},{key:"next",value:function(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{var n=this.heap[0];this.from=n.from,this.to=n.to,this.value=n.value,this.rank=n.rank,n.value&&n.next(),$N(this.heap,0)}}}],[{key:"from",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=[],o=0;o=i&&r.push(new Lce(s,e,i,o));return 1==r.length?r[0]:new t(r)}}]),t}();function $N(t,n){for(var e=t[n];;){var i=1+(n<<1);if(i>=t.length)break;var r=t[i];if(i+1=0&&(r=t[i+1],i++),e.compare(r)<0)break;t[i]=e,t[n]=r,n=i}}var i_=function(){function t(n,e,i){qe(this,t),this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=RN.from(n,e,i)}return Xe(t,[{key:"goto",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.cursor.goto(n,e),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=n,this.endSide=e,this.openStart=-1,this.next(),this}},{key:"forward",value:function(n,e){for(;this.minActive>-1&&(this.activeTo[this.minActive]-n||this.active[this.minActive].endSide-e)<0;)this.removeActive(this.minActive);this.cursor.forward(n,e)}},{key:"removeActive",value:function(n){hk(this.active,n),hk(this.activeTo,n),hk(this.activeRank,n),this.minActive=Nce(this.active,this.activeTo)}},{key:"addActive",value:function(n){for(var e=0,i=this.cursor,r=i.value,o=i.to,s=i.rank;e-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>n){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),i&&hk(i,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>n){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}var o=this.cursor.value;if(o.point){if(!(e&&this.cursor.to==this.to&&this.cursor.from=0&&i[s]=0&&!(this.activeRank[i]n||this.activeTo[i]==n&&this.active[i].endSide>=this.point.endSide)&&e.push(this.active[i]);return e.reverse()}},{key:"openEnd",value:function(n){for(var e=0,i=this.activeTo.length-1;i>=0&&this.activeTo[i]>n;i--)e++;return e}}]),t}();function Oce(t,n,e,i,r,o){t.goto(n),e.goto(i);for(var s=i+r,a=i,l=i-n;;){var c=t.to+l-e.to||t.endSide-e.endSide,u=c<0?t.to+l:e.to,h=Math.min(u,s);if(t.point||e.point?t.point&&e.point&&(t.point==e.point||t.point.eq(e.point))&&PN(t.activeForPoint(t.to+l),e.activeForPoint(e.to))||o.comparePoint(a,h,t.point,e.point):h>a&&!PN(t.active,e.active)&&o.compareRange(a,h,t.active,e.active),u>s)break;a=u,c<=0&&t.next(),c>=0&&e.next()}}function PN(t,n){if(t.length!=n.length)return!1;for(var e=0;e=n;i--)t[i+1]=t[i];t[n]=e}function Nce(t,n){for(var e=-1,i=1e9,r=0;r2&&void 0!==arguments[2]?arguments[2]:t.length,i=0,r=0;r=n)return r;if(r==t.length)break;o+=9==t.charCodeAt(r)?e-o%e:1,r=ql(t,r)}return!0===i?-1:t.length}for(var Rce=typeof Symbol>"u"?"__\u037c":Symbol.for("\u037c"),BN=typeof Symbol>"u"?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),$ce=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{},pp=function(){function t(n,e){qe(this,t),this.rules=[];var i=(e||{}).finish;function r(a){return/^@/.test(a)?[a]:a.split(/,\s*/)}function o(a,l,c,u){var h=[],d=/^@(\w+)\b/.exec(a[0]),f=d&&"keyframes"==d[1];if(d&&null==l)return c.push(a[0]+";");for(var p in l){var m=l[p];if(/&/.test(p))o(p.split(/,\s*/).map(function(w){return a.map(function(C){return w.replace(/&/,C)})}).reduce(function(w,C){return w.concat(C)}),m,c);else if(m&&"object"==$n(m)){if(!d)throw new RangeError("The value of a property ("+p+") should be a primitive value.");o(r(p),m,h,f)}else null!=m&&h.push(p.replace(/_.*/,"").replace(/[A-Z]/g,function(w){return"-"+w.toLowerCase()})+": "+m+";")}(h.length||f)&&c.push((!i||d||u?a:a.map(i)).join(", ")+" {"+h.join(" ")+"}")}for(var s in n)o(r(s),n[s],this.rules)}return Xe(t,[{key:"getRules",value:function(){return this.rules.join("\n")}}],[{key:"newName",value:function(){var n=$ce[Rce]||1;return $ce[Rce]=n+1,"\u037c"+n.toString(36)}},{key:"mount",value:function(n,e){(n[BN]||new EJe(n)).mount(Array.isArray(e)?e:[e])}}]),t}(),fk=null,EJe=function(){function t(n){if(qe(this,t),!n.head&&n.adoptedStyleSheets&&typeof CSSStyleSheet<"u"){if(fk)return n.adoptedStyleSheets=[fk.sheet].concat(n.adoptedStyleSheets),n[BN]=fk;this.sheet=new CSSStyleSheet,n.adoptedStyleSheets=[this.sheet].concat(n.adoptedStyleSheets),fk=this}else{this.styleTag=(n.ownerDocument||n).createElement("style");var e=n.head||n;e.insertBefore(this.styleTag,e.firstChild)}this.modules=[],n[BN]=this}return Xe(t,[{key:"mount",value:function(n){for(var e=this.sheet,i=0,r=0,o=0;o-1&&(this.modules.splice(a,1),r--,a=-1),-1==a){if(this.modules.splice(r++,0,s),e)for(var l=0;l",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Pce=typeof navigator<"u"&&/Chrome\/(\d+)/.exec(navigator.userAgent),MJe=typeof navigator<"u"&&/Mac/.test(navigator.platform),IJe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),FJe=MJe||Pce&&+Pce[1]<57,il=0;il<10;il++)gp[48+il]=gp[96+il]=String(il);for(il=1;il<=24;il++)gp[il+111]="F"+il;for(il=65;il<=90;il++)gp[il]=String.fromCharCode(il+32),o_[il]=String.fromCharCode(il);for(var HN in gp)o_.hasOwnProperty(HN)||(o_[HN]=gp[HN]);function pk(t){return(11==t.nodeType?t.getSelection?t:t.ownerDocument:t).getSelection()}function S0(t,n){return!!n&&(t==n||t.contains(1!=n.nodeType?n.parentNode:n))}function gk(t,n){if(!n.anchorNode)return!1;try{return S0(t,n.anchorNode)}catch{return!1}}function s_(t){return 3==t.nodeType?D0(t,0,t.nodeValue.length).getClientRects():1==t.nodeType?t.getClientRects():[]}function mk(t,n,e,i){return!!e&&(jce(t,n,e,i,-1)||jce(t,n,e,i,1))}function vk(t){for(var n=0;;n++)if(!(t=t.previousSibling))return n}function jce(t,n,e,i,r){for(;;){if(t==e&&n==i)return!0;if(n==(r<0?0:a_(t))){if("DIV"==t.nodeName)return!1;var o=t.parentNode;if(!o||1!=o.nodeType)return!1;n=vk(t)+(r<0?0:1),t=o}else{if(1!=t.nodeType||1==(t=t.childNodes[n+(r<0?-1:0)]).nodeType&&"false"==t.contentEditable)return!1;n=r<0?a_(t):0}}}function a_(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}var Bce={left:0,right:0,top:0,bottom:0};function VN(t,n){var e=n?t.left:t.right;return{left:e,right:e,top:t.top,bottom:t.bottom}}function LJe(t){return{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}var Hce,OJe=function(){function t(){qe(this,t),this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}return Xe(t,[{key:"eq",value:function(n){return this.anchorNode==n.anchorNode&&this.anchorOffset==n.anchorOffset&&this.focusNode==n.focusNode&&this.focusOffset==n.focusOffset}},{key:"setRange",value:function(n){this.set(n.anchorNode,n.anchorOffset,n.focusNode,n.focusOffset)}},{key:"set",value:function(n,e,i,r){this.anchorNode=n,this.anchorOffset=e,this.focusNode=i,this.focusOffset=r}}]),t}(),k0=null;function Vce(t){if(t.setActive)return t.setActive();if(k0)return t.focus(k0);for(var n=[],e=t;e&&(n.push(e,e.scrollTop,e.scrollLeft),e!=e.ownerDocument);e=e.parentNode);if(t.focus(null==k0?{get preventScroll(){return k0={preventScroll:!0},!0}}:void 0),!k0){k0=!1;for(var i=0;i2&&void 0!==arguments[2]?arguments[2]:n,i=Hce||(Hce=document.createRange());return i.setEnd(t,e),i.setStart(t,n),i}function T0(t,n,e){var i={key:n,code:n,keyCode:e,which:e,cancelable:!0},r=new KeyboardEvent("keydown",i);r.synthetic=!0,t.dispatchEvent(r);var o=new KeyboardEvent("keyup",i);return o.synthetic=!0,t.dispatchEvent(o),r.defaultPrevented||o.defaultPrevented}function zce(t){for(;t.attributes.length;)t.removeAttributeNode(t.attributes[0])}var Rc=function(){function t(n,e){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];qe(this,t),this.node=n,this.offset=e,this.precise=i}return Xe(t,null,[{key:"before",value:function(n,e){return new t(n.parentNode,vk(n),e)}},{key:"after",value:function(n,e){return new t(n.parentNode,vk(n)+1,e)}}]),t}(),zN=[],Ps=function(){function t(){qe(this,t),this.parent=null,this.dom=null,this.dirty=2}return Xe(t,[{key:"overrideDOMText",get:function(){return null}},{key:"posAtStart",get:function(){return this.parent?this.parent.posBefore(this):0}},{key:"posAtEnd",get:function(){return this.posAtStart+this.length}},{key:"posBefore",value:function(n){var e,i=this.posAtStart,r=ot(this.children);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(o==n)return i;i+=o.length+o.breakAfter}}catch(s){r.e(s)}finally{r.f()}throw new RangeError("Invalid child in posBefore")}},{key:"posAfter",value:function(n){return this.posBefore(n)+n.length}},{key:"coordsAt",value:function(n,e){return null}},{key:"sync",value:function(n,e){if(2&this.dirty){var i,r,o=this.dom,s=null,a=ot(this.children);try{for(a.s();!(r=a.n()).done;){var l=r.value;if(l.dirty){if(!l.dom&&(i=s?s.nextSibling:o.firstChild)){var c=t.get(i);(!c||!c.parent&&c.canReuseDOM(l))&&l.reuseDOM(i)}l.sync(n,e),l.dirty=0}if(i=s?s.nextSibling:o.firstChild,e&&!e.written&&e.node==o&&i!=l.dom&&(e.written=!0),l.dom.parentNode==o)for(;i&&i!=l.dom;)i=Uce(i);else o.insertBefore(l.dom,i);s=l.dom}}catch(f){a.e(f)}finally{a.f()}for((i=s?s.nextSibling:o.firstChild)&&e&&e.node==o&&(e.written=!0);i;)i=Uce(i)}else if(1&this.dirty){var u,h=ot(this.children);try{for(h.s();!(u=h.n()).done;){var d=u.value;d.dirty&&(d.sync(n,e),d.dirty=0)}}catch(f){h.e(f)}finally{h.f()}}}},{key:"reuseDOM",value:function(n){}},{key:"localPosFromDOM",value:function(n,e){var i;if(n==this.dom)i=this.dom.childNodes[e];else{for(var r=0==a_(n)?0:0==e?-1:1;;){var o=n.parentNode;if(o==this.dom)break;0==r&&o.firstChild!=o.lastChild&&(r=n==o.firstChild?-1:1),n=o}i=r<0?n:n.nextSibling}if(i==this.dom.firstChild)return 0;for(;i&&!t.get(i);)i=i.nextSibling;if(!i)return this.length;for(var s=0,a=0;;s++){var l=this.children[s];if(l.dom==i)return a;a+=l.length+l.breakAfter}}},{key:"domBoundsAround",value:function(n,e){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=-1,o=-1,s=-1,a=-1,l=0,c=i,u=i;le)return h.domBoundsAround(n,e,c);if(d>=n&&-1==r&&(r=l,o=c),c>e&&h.dom.parentNode==this.dom){s=l,a=u;break}u=d,c=d+h.breakAfter}return{from:o,to:a<0?i+this.length:a,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:s=0?this.children[s].dom:null}}},{key:"markDirty",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.dirty|=2,this.markParentsDirty(n)}},{key:"markParentsDirty",value:function(n){for(var e=this.parent;e;e=e.parent){if(n&&(e.dirty|=2),1&e.dirty)return;e.dirty|=1,n=!1}}},{key:"setParent",value:function(n){this.parent!=n&&(this.parent=n,this.dirty&&this.markParentsDirty(!0))}},{key:"setDOM",value:function(n){this.dom&&(this.dom.cmView=null),this.dom=n,n.cmView=this}},{key:"rootView",get:function(){for(var n=this;;){var e=n.parent;if(!e)return n;n=e}}},{key:"replaceChildren",value:function(n,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:zN;this.markDirty();for(var o=n;o0&&void 0!==arguments[0]?arguments[0]:this.length,this.children.length)}},{key:"childPos",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.childCursor().findPos(n,e)}},{key:"toString",value:function(){var n=this.constructor.name.replace("View","");return n+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==n?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}},{key:"isEditable",get:function(){return!0}},{key:"isWidget",get:function(){return!1}},{key:"merge",value:function(n,e,i,r,o,s){return!1}},{key:"become",value:function(n){return!1}},{key:"canReuseDOM",value:function(n){return n.constructor==this.constructor}},{key:"getSide",value:function(){return 0}},{key:"destroy",value:function(){this.parent=null}}],[{key:"get",value:function(n){return n.cmView}}]),t}();function Uce(t){var n=t.nextSibling;return t.parentNode.removeChild(t),n}Ps.prototype.breakAfter=0;var Wce=function(){function t(n,e,i){qe(this,t),this.children=n,this.pos=e,this.i=i,this.off=0}return Xe(t,[{key:"findPos",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;;){if(n>this.pos||n==this.pos&&(e>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=n-this.pos,this;var i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}]),t}();function Gce(t,n,e,i,r,o,s,a,l){var c=t.children,u=c.length?c[n]:null,h=o.length?o[o.length-1]:null,d=h?h.breakAfter:s;if(!(n==i&&u&&!s&&!d&&o.length<2&&u.merge(e,r,o.length?h:null,0==e,a,l))){if(i0&&(!s&&o.length&&u.merge(e,u.length,o[0],!1,a,0)?u.breakAfter=o.shift().breakAfter:(e2),bi={mac:Qce||/Mac/.test($c.platform),windows:/Win/.test($c.platform),linux:/Linux|X11/.test($c.platform),ie:yk,ie_version:Xce?UN.documentMode||6:GN?+GN[1]:WN?+WN[1]:0,gecko:Yce,gecko_version:Yce?+(/Firefox\/(\d+)/.exec($c.userAgent)||[0,0])[1]:0,chrome:!!qN,chrome_version:qN?+qN[1]:0,ios:Qce,android:/Android\b/.test($c.userAgent),webkit:Kce,safari:Jce,webkit_version:Kce?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=UN.documentElement.style.tabSize?"tab-size":"-moz-tab-size"},l_=function(t){Wt(e,Ps);var n=Gt(e);function e(i){var r;return qe(this,e),(r=n.call(this)).text=i,r}return Xe(e,[{key:"length",get:function(){return this.text.length}},{key:"createDOM",value:function(i){this.setDOM(i||document.createTextNode(this.text))}},{key:"sync",value:function(i,r){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(r&&r.node==this.dom&&(r.written=!0),this.dom.nodeValue=this.text)}},{key:"reuseDOM",value:function(i){3==i.nodeType&&this.createDOM(i)}},{key:"merge",value:function(i,r,o){return(!o||o instanceof e&&!(this.length-(r-i)+o.length>256))&&(this.text=this.text.slice(0,i)+(o?o.text:"")+this.text.slice(r),this.markDirty(),!0)}},{key:"split",value:function(i){var r=new e(this.text.slice(i));return this.text=this.text.slice(0,i),this.markDirty(),r}},{key:"localPosFromDOM",value:function(i,r){return i==this.dom?r:r?this.text.length:0}},{key:"domAtPos",value:function(i){return new Rc(this.dom,i)}},{key:"domBoundsAround",value:function(i,r,o){return{from:o,to:o+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}},{key:"coordsAt",value:function(i,r){return XN(this.dom,i,r)}}]),e}(),Gg=function(t){Wt(e,Ps);var n=Gt(e);function e(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;qe(this,e),(r=n.call(this)).mark=i,r.children=o,r.length=s;var a,l=ot(o);try{for(l.s();!(a=l.n()).done;)a.value.setParent(Yn(r))}catch(u){l.e(u)}finally{l.f()}return r}return Xe(e,[{key:"setAttrs",value:function(i){if(zce(i),this.mark.class&&(i.className=this.mark.class),this.mark.attrs)for(var r in this.mark.attrs)i.setAttribute(r,this.mark.attrs[r]);return i}},{key:"reuseDOM",value:function(i){i.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(i),this.dirty|=6)}},{key:"sync",value:function(i,r){this.dom?4&this.dirty&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),jr(_r(e.prototype),"sync",this).call(this,i,r)}},{key:"merge",value:function(i,r,o,s,a,l){return!(o&&(!(o instanceof e&&o.mark.eq(this.mark))||i&&a<=0||ri&&o.push(s=i&&(a=l),s=h,l++}}catch(f){c.e(f)}finally{c.f()}var d=this.length-i;return this.length=i,a>-1&&(this.children.length=a,this.markDirty()),new e(this.mark,o,d)}},{key:"domAtPos",value:function(i){return tue(this,i)}},{key:"coordsAt",value:function(i,r){return iue(this,i,r)}}]),e}();function XN(t,n,e){var i=t.nodeValue.length;n>i&&(n=i);var r=n,o=n,s=0;0==n&&e<0||n==i&&e>=0?bi.chrome||bi.gecko||(n?(r--,s=1):o=0)?0:a.length-1];return bi.safari&&!s&&0==l.width&&(l=Array.prototype.find.call(a,function(c){return c.width})||l),s?VN(l,s<0):l||null}var YN=function(t){Wt(e,Ps);var n=Gt(e);function e(i,r,o){var s;return qe(this,e),(s=n.call(this)).widget=i,s.length=r,s.side=o,s.prevWidget=null,s}return Xe(e,[{key:"split",value:function(i){var r=e.create(this.widget,this.length-i,this.side);return this.length-=i,r}},{key:"sync",value:function(i){this.dom&&this.widget.updateDOM(this.dom,i)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(i)),this.dom.contentEditable="false")}},{key:"getSide",value:function(){return this.side}},{key:"merge",value:function(i,r,o,s,a,l){return!(o&&(!(o instanceof e&&this.widget.compare(o.widget))||i>0&&a<=0||r0?o.length-1:0;s=o[a],!(i>0?0==a:a==o.length-1||s.top0?-1:1);return this.length?s:VN(s,this.side>0)}},{key:"isEditable",get:function(){return!1}},{key:"isWidget",get:function(){return!0}},{key:"destroy",value:function(){jr(_r(e.prototype),"destroy",this).call(this),this.dom&&this.widget.destroy(this.dom)}}],[{key:"create",value:function(i,r,o){return new(i.customView||e)(i,r,o)}}]),e}(),Zce=function(t){Wt(e,YN);var n=Gt(e);function e(){return qe(this,e),n.apply(this,arguments)}return Xe(e,[{key:"domAtPos",value:function(i){var r=this.widget,o=r.topView,s=r.text;return o?KN(i,0,o,s,function(a,l){return a.domAtPos(l)},function(a){return new Rc(s,Math.min(a,s.nodeValue.length))}):new Rc(s,Math.min(i,s.nodeValue.length))}},{key:"sync",value:function(){this.setDOM(this.widget.toDOM())}},{key:"localPosFromDOM",value:function(i,r){var o=this.widget,s=o.topView;return s?eue(i,r,s,o.text):Math.min(r,this.length)}},{key:"ignoreMutation",value:function(){return!1}},{key:"overrideDOMText",get:function(){return null}},{key:"coordsAt",value:function(i,r){var o=this.widget,s=o.topView,a=o.text;return s?KN(i,r,s,a,function(l,c,u){return l.coordsAt(c,u)},function(l,c){return XN(a,l,c)}):XN(a,i,r)}},{key:"destroy",value:function(){var i;jr(_r(e.prototype),"destroy",this).call(this),null===(i=this.widget.topView)||void 0===i||i.destroy()}},{key:"isEditable",get:function(){return!0}},{key:"canReuseDOM",value:function(){return!0}}]),e}();function KN(t,n,e,i,r,o){if(e instanceof Gg){for(var s=e.dom.firstChild;s;s=s.nextSibling){var a=Ps.get(s);if(!a)return o(t,n);var l=S0(s,i),c=a.length+(l?i.nodeValue.length:0);if(t=0;)if(a<0?c>0:c0?-1:1);return o&&o.topr.top?{left:r.left,right:r.right,top:o.top,bottom:o.bottom}:r}},{key:"overrideDOMText",get:function(){return Lo.empty}}]),e}();function tue(t,n){for(var e=t.dom,i=t.children,r=0,o=0;ro&&n0;l--){var c=i[l-1];if(c.dom.parentNode==e)return c.domAtPos(c.length)}for(var u=r;u0&&n instanceof Gg&&r.length&&(i=r[r.length-1])instanceof Gg&&i.mark.eq(n.mark)?nue(i,n.children[0],e-1):(r.push(n),n.setParent(t)),t.length+=n.length}function iue(t,n,e){var i=null,r=-1,o=null,s=-1;!function l(c,u){for(var h=0,d=0;h=u&&(f.children.length?l(f,u-d):!o&&(p>u||d==p&&f.getSide()>0)?(o=f,s=u-d):(d-1}}],[{key:"mark",value:function(i){return new rue(i)}},{key:"widget",value:function(i){var r=i.side||0,o=!!i.block;return new c_(i,r+=o?r>0?3e8:-4e8:r>0?1e8:-1e8,r,o,i.widget||null,!1)}},{key:"replace",value:function(i){var r,o,s=!!i.block;if(i.isBlockGap)r=-5e8,o=4e8;else{var a=oue(i,s);r=(a.start?s?-3e8:-1:5e8)-1,o=1+(a.end?s?2e8:1:-6e8)}return new c_(i,r,o,s,i.widget||null,!0)}},{key:"line",value:function(i){return new tR(i)}},{key:"set",value:function(i){return cs.of(i,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}}]),e}();Hi.none=cs.empty;var rue=function(t){Wt(e,Hi);var n=Gt(e);function e(i){var r;qe(this,e);var o=oue(i);return(r=n.call(this,o.start?-1:5e8,o.end?1:-6e8,null,i)).tagName=i.tagName||"span",r.class=i.class||"",r.attrs=i.attributes||null,r}return Xe(e,[{key:"eq",value:function(i){return this==i||i instanceof e&&this.tagName==i.tagName&&this.class==i.class&&ZN(this.attrs,i.attrs)}},{key:"range",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(i>=r)throw new RangeError("Mark decorations may not be empty");return jr(_r(e.prototype),"range",this).call(this,i,r)}}]),e}();rue.prototype.point=!1;var tR=function(t){Wt(e,Hi);var n=Gt(e);function e(i){return qe(this,e),n.call(this,-2e8,-2e8,null,i)}return Xe(e,[{key:"eq",value:function(i){return i instanceof e&&this.spec.class==i.spec.class&&ZN(this.spec.attributes,i.spec.attributes)}},{key:"range",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(r!=i)throw new RangeError("Line decoration ranges must be zero-length");return jr(_r(e.prototype),"range",this).call(this,i,r)}}]),e}();tR.prototype.mapMode=Xl.TrackBefore,tR.prototype.point=!0;var c_=function(t){Wt(e,Hi);var n=Gt(e);function e(i,r,o,s,a,l){var c;return qe(this,e),(c=n.call(this,r,o,a,i)).block=s,c.isReplace=l,c.mapMode=s?r<=0?Xl.TrackBefore:Xl.TrackAfter:Xl.TrackDel,c}return Xe(e,[{key:"type",get:function(){return this.startSide=5}},{key:"eq",value:function(i){return i instanceof e&&((r=this.widget)==(o=i.widget)||!!(r&&o&&r.compare(o)))&&this.block==i.block&&this.startSide==i.startSide&&this.endSide==i.endSide;var r,o}},{key:"range",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(this.isReplace&&(i>r||i==r&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&r!=i)throw new RangeError("Widget decorations can only have zero-length ranges");return jr(_r(e.prototype),"range",this).call(this,i,r)}}]),e}();function oue(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=t.inclusiveStart,i=t.inclusiveEnd;return null==e&&(e=t.inclusive),null==i&&(i=t.inclusive),{start:e??n,end:i??n}}function nR(t,n,e){var r=e.length-1;r>=0&&e[r]+(arguments.length>3&&void 0!==arguments[3]?arguments[3]:0)>=t?e[r]=Math.max(e[r],n):e.push(t,n)}c_.prototype.point=!0;var ch=function(t){Wt(e,Ps);var n=Gt(e);function e(){var i;return qe(this,e),(i=n.apply(this,arguments)).children=[],i.length=0,i.prevAttrs=void 0,i.attrs=null,i.breakAfter=0,i}return Xe(e,[{key:"merge",value:function(i,r,o,s,a,l){if(o){if(!(o instanceof e))return!1;this.dom||o.transferDOM(this)}return s&&this.setDeco(o?o.attrs:null),qce(this,i,r,o?o.children:[],a,l),!0}},{key:"split",value:function(i){var r=new e;if(r.breakAfter=this.breakAfter,0==this.length)return r;var o=this.childPos(i),s=o.i,a=o.off;a&&(r.append(this.children[s].split(a),0),this.children[s].merge(a,this.children[s].length,null,!1,0,0),s++);for(var l=s;l0&&0==this.children[s-1].length;)this.children[--s].destroy();return this.children.length=s,this.markDirty(),this.length=i,r}},{key:"transferDOM",value:function(i){this.dom&&(this.markDirty(),i.setDOM(this.dom),i.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}},{key:"setDeco",value:function(i){ZN(this.attrs,i)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=i)}},{key:"append",value:function(i,r){nue(this,i,r)}},{key:"addLineDeco",value:function(i){var r=i.spec.attributes,o=i.spec.class;r&&(this.attrs=QN(r,this.attrs||{})),o&&(this.attrs=QN({class:o},this.attrs||{}))}},{key:"domAtPos",value:function(i){return tue(this,i)}},{key:"reuseDOM",value:function(i){"DIV"==i.nodeName&&(this.setDOM(i),this.dirty|=6)}},{key:"sync",value:function(i,r){var o;this.dom?4&this.dirty&&(zce(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(eR(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),jr(_r(e.prototype),"sync",this).call(this,i,r);for(var s=this.dom.lastChild;s&&Ps.get(s)instanceof Gg;)s=s.lastChild;if(!(s&&this.length&&("BR"==s.nodeName||0!=(null===(o=Ps.get(s))||void 0===o?void 0:o.isEditable)||bi.ios&&this.children.some(function(l){return l instanceof l_})))){var a=document.createElement("BR");a.cmIgnore=!0,this.dom.appendChild(a)}}},{key:"measureTextSize",value:function(){if(0==this.children.length||this.length>20)return null;var i,r=0,o=ot(this.children);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(!(s instanceof l_)||/[^ -~]/.test(s.text))return null;var a=s_(s.dom);if(1!=a.length)return null;r+=a[0].width}}catch(l){o.e(l)}finally{o.f()}return r?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:r/this.length}:null}},{key:"coordsAt",value:function(i,r){return iue(this,i,r)}},{key:"become",value:function(i){return!1}},{key:"type",get:function(){return Bo.Text}}],[{key:"find",value:function(i,r){for(var o=0,s=0;o=r){if(a instanceof e)return a;if(l>r)break}s=l+a.breakAfter}return null}}]),e}(),iR=function(t){Wt(e,Ps);var n=Gt(e);function e(i,r,o){var s;return qe(this,e),(s=n.call(this)).widget=i,s.length=r,s.type=o,s.breakAfter=0,s.prevWidget=null,s}return Xe(e,[{key:"merge",value:function(i,r,o,s,a,l){return!(o&&(!(o instanceof e&&this.widget.compare(o.widget))||i>0&&a<=0||r0&&void 0!==arguments[0]?arguments[0]:this.bufferMarks;this.pendingBuffer&&(this.curLine.append(bk(new JN(-1),n),n.length),this.pendingBuffer=0)}},{key:"addBlockWidget",value:function(n){this.flushBuffer(),this.curLine=null,this.content.push(n)}},{key:"finish",value:function(n){this.pendingBuffer&&n<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||this.getLine()}},{key:"buildText",value:function(n,e,i){for(;n>0;){if(this.textOff==this.text.length){var r=this.cursor.next(this.skip),o=r.value,s=r.lineBreak,a=r.done;if(this.skip=0,a)throw new Error("Ran out of text content when drawing inline views");if(s){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,n--;continue}this.text=o,this.textOff=0}var l=Math.min(this.text.length-this.textOff,n,512);this.flushBuffer(e.slice(e.length-i)),this.getLine().append(bk(new l_(this.text.slice(this.textOff,this.textOff+l)),e),i),this.atCursorPos=!0,this.textOff+=l,n-=l,i=0}}},{key:"span",value:function(n,e,i,r){this.buildText(e-n,i,r),this.pos=e,this.openStart<0&&(this.openStart=r)}},{key:"point",value:function(n,e,i,r,o,s){if(this.disallowBlockEffectsFor[s]&&i instanceof c_){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(e>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}var a=e-n;if(i instanceof c_)if(i.block){var l=i.type;l!=Bo.WidgetAfter||this.posCovered()||this.getLine(),this.addBlockWidget(new iR(i.widget||new sue("div"),a,l))}else{var c=YN.create(i.widget||new sue("span"),a,a?0:i.startSide),u=this.atCursorPos&&!c.isEditable&&o<=r.length&&(n0),h=!c.isEditable&&(nr.length||i.startSide<=0),d=this.getLine();2!=this.pendingBuffer||u||(this.pendingBuffer=0),this.flushBuffer(r),u&&(d.append(bk(new JN(1),r),o),o=r.length+Math.max(0,o-r.length)),d.append(bk(c,r),o),this.atCursorPos=h,this.pendingBuffer=h?nr.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=e),this.openStart<0&&(this.openStart=o)}}],[{key:"build",value:function(n,e,i,r,o){var s=new t(n,e,i,o);return s.openEnd=cs.spans(r,e,i,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}}]),t}();function bk(t,n){var e,i=ot(n);try{for(i.s();!(e=i.n()).done;)t=new Gg(e.value,[t],t.length)}catch(o){i.e(o)}finally{i.f()}return t}var sue=function(t){Wt(e,mp);var n=Gt(e);function e(i){var r;return qe(this,e),(r=n.call(this)).tag=i,r}return Xe(e,[{key:"eq",value:function(i){return i.tag==this.tag}},{key:"toDOM",value:function(){return document.createElement(this.tag)}},{key:"updateDOM",value:function(i){return i.nodeName.toLowerCase()==this.tag}}]),e}(),aue=yi.define(),lue=yi.define(),cue=yi.define(),uue=yi.define(),rR=yi.define(),hue=yi.define(),due=yi.define(),fue=yi.define({combine:function(t){return t.some(function(n){return n})}}),pue=yi.define({combine:function(t){return t.some(function(n){return n})}}),gue=function(){function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"nearest",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"nearest",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:5;qe(this,t),this.range=n,this.y=e,this.x=i,this.yMargin=r,this.xMargin=o}return Xe(t,[{key:"map",value:function(n){return n.empty?this:new t(this.range.map(n),this.y,this.x,this.yMargin,this.xMargin)}}]),t}(),mue=$r.define({map:function(t,n){return t.map(n)}});function Pc(t,n,e){var i=t.facet(uue);i.length?i[0](n):window.onerror?window.onerror(String(n),e,void 0,void 0,n):e?console.error(e+":",n):console.error(n)}var _k=yi.define({combine:function(t){return!t.length||t[0]}}),$Je=0,u_=yi.define(),Ba=function(){function t(n,e,i,r){qe(this,t),this.id=n,this.create=e,this.domEventHandlers=i,this.extension=r(this)}return Xe(t,null,[{key:"define",value:function(n,e){var i=e||{},o=i.provide,s=i.decorations;return new t($Je++,n,i.eventHandlers,function(a){var l=[u_.of(a)];return s&&l.push(h_.of(function(c){var u=c.plugin(a);return u?s(u):Hi.none})),o&&l.push(o(a)),l})}},{key:"fromClass",value:function(n,e){return t.define(function(i){return new n(i)},e)}}]),t}(),oR=function(){function t(n){qe(this,t),this.spec=n,this.mustUpdate=null,this.value=null}return Xe(t,[{key:"update",value:function(n){if(this.value){if(this.mustUpdate){var e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(i){if(Pc(e.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(n)}catch(i){Pc(n.state,i,"CodeMirror plugin crashed"),this.deactivate()}return this}},{key:"destroy",value:function(n){var e;if(null!==(e=this.value)&&void 0!==e&&e.destroy)try{this.value.destroy()}catch(i){Pc(n.state,i,"CodeMirror plugin crashed")}}},{key:"deactivate",value:function(){this.spec=this.value=null}}]),t}(),vue=yi.define(),sR=yi.define(),h_=yi.define(),yue=yi.define(),bue=yi.define(),d_=yi.define(),A0=function(){function t(n,e,i,r){qe(this,t),this.fromA=n,this.toA=e,this.fromB=i,this.toB=r}return Xe(t,[{key:"join",value:function(n){return new t(Math.min(this.fromA,n.fromA),Math.max(this.toA,n.toA),Math.min(this.fromB,n.fromB),Math.max(this.toB,n.toB))}},{key:"addToSet",value:function(n){for(var e=n.length,i=this;e>0;e--){var r=n[e-1];if(!(r.fromA>i.toA)){if(r.toAu)break;o+=2}if(!l)return i;new t(l.fromA,l.toA,l.fromB,l.toB).addToSet(i),s=l.toA,a=l.toB}}}]),t}(),_ue=function(){function t(n,e,i){qe(this,t),this.view=n,this.state=e,this.transactions=i,this.flags=0,this.startState=n.state,this.changes=lh.empty(this.startState.doc.length);var r,o=ot(i);try{for(o.s();!(r=o.n()).done;)this.changes=this.changes.compose(r.value.changes)}catch(l){o.e(l)}finally{o.f()}var a=[];this.changes.iterChangedRanges(function(l,c,u,h){return a.push(new A0(l,c,u,h))}),this.changedRanges=a}return Xe(t,[{key:"viewportChanged",get:function(){return(4&this.flags)>0}},{key:"heightChanged",get:function(){return(2&this.flags)>0}},{key:"geometryChanged",get:function(){return this.docChanged||(10&this.flags)>0}},{key:"focusChanged",get:function(){return(1&this.flags)>0}},{key:"docChanged",get:function(){return!this.changes.empty}},{key:"selectionSet",get:function(){return this.transactions.some(function(n){return n.selection})}},{key:"empty",get:function(){return 0==this.flags&&0==this.transactions.length}}],[{key:"create",value:function(n,e,i){return new t(n,e,i)}}]),t}(),Ts=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(Ts||(Ts={})),aR=Ts.LTR,PJe=Ts.RTL;function wue(t){for(var n=[],e=0;e=e){if(a.level==i)return s;(o<0||(0!=r?r<0?a.frome:n[o].level>a.level))&&(o=s)}}if(o<0)throw new RangeError("Index out of range");return o}}]),t}(),As=[];function Due(t){return[new E0(0,t,0)]}var Tue="";function zJe(t,n,e,i,r){var o,s=i.head-t.from,a=-1;if(0==s){if(!r||!t.length)return null;n[0].level!=e&&(s=n[0].side(!1,e),a=0)}else if(s==t.length){if(r)return null;var l=n[n.length-1];l.level!=e&&(s=l.side(!0,e),a=n.length-1)}a<0&&(a=E0.find(n,s,null!==(o=i.bidiLevel)&&void 0!==o?o:-1,i.assoc));var c=n[a];s==c.side(r,e)&&(s=(c=n[a+=r?1:-1]).side(!r,e));var u=r==(c.dir==e),h=ql(t.text,s,u);if(Tue=t.text.slice(Math.min(s,h),Math.max(s,h)),h!=c.side(r,e))return _n.cursor(h+t.from,u?-1:1,c.level);var d=a==(r?n.length-1:0)?null:n[a+(r?1:-1)];return d||c.level==e?d&&d.level1){var h,d=ot(this.points);try{for(d.s();!(h=d.n()).done;){var f=h.value;f.node==n&&f.pos>this.text.length&&(f.pos-=c-1)}}catch(p){d.e(p)}finally{d.f()}}s=l+c}}},{key:"readNode",value:function(n){if(!n.cmIgnore){var e=Ps.get(n),i=e&&e.overrideDOMText;if(null!=i){this.findPointInside(n,i.length);for(var r=i.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else 3==n.nodeType?this.readTextNode(n):"BR"==n.nodeName?n.nextSibling&&this.lineBreak():1==n.nodeType&&this.readRange(n.firstChild,null)}}},{key:"findPointBefore",value:function(n,e){var i,r=ot(this.points);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.node==n&&n.childNodes[o.offset]==e&&(o.pos=this.text.length)}}catch(s){r.e(s)}finally{r.f()}}},{key:"findPointInside",value:function(n,e){var i,r=ot(this.points);try{for(r.s();!(i=r.n()).done;){var o=i.value;(3==n.nodeType?o.node==n:n.contains(o.node))&&(o.pos=this.text.length+Math.min(e,o.offset))}}catch(s){r.e(s)}finally{r.f()}}}]),t}();function Eue(t){return 1==t.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}var Mue=Xe(function t(n,e){qe(this,t),this.node=n,this.offset=e,this.pos=-1}),Iue=function(t){Wt(e,Ps);var n=Gt(e);function e(i){var r;return qe(this,e),(r=n.call(this)).view=i,r.compositionDeco=Hi.none,r.decorations=[],r.dynamicDecorationMap=[],r.minWidth=0,r.minWidthFrom=0,r.minWidthTo=0,r.impreciseAnchor=null,r.impreciseHead=null,r.forceSelection=!1,r.lastUpdate=Date.now(),r.setDOM(i.contentDOM),r.children=[new ch],r.children[0].setParent(Yn(r)),r.updateDeco(),r.updateInner([new A0(0,0,0,i.state.doc.length)],0),r}return Xe(e,[{key:"length",get:function(){return this.view.state.doc.length}},{key:"update",value:function(i){var r=this,o=i.changedRanges;this.minWidth>0&&o.length&&(o.every(function(a){return a.toAr.minWidthTo})?(this.minWidthFrom=i.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=i.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.view.inputState.composing<0?this.compositionDeco=Hi.none:(i.transactions.length||this.dirty)&&(this.compositionDeco=function(a,l){var c=Lue(a);if(!c)return Hi.none;var h=c.to,d=c.node,f=c.text,p=l.mapPos(c.from,1),m=Math.max(p,l.mapPos(h,-1)),w=a.state,C=3==d.nodeType?d.nodeValue:new Aue([],w).readRange(d.firstChild,null).text;if(m-p=0?i[s]:null;if(!a)break;var l=a.fromA,c=a.toA,d=RJe.build(this.view.state.doc,a.fromB,a.toB,this.decorations,this.dynamicDecorationMap),f=d.content,p=d.breakAtStart,m=d.openStart,w=d.openEnd,C=o.findPos(c,1),k=C.i,E=C.off,L=o.findPos(l,-1);Gce(this,L.i,L.off,k,E,f,p,m,w)}}},{key:"updateSelection",value:function(){var i=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange(),o||this.mayControlSelection()){var s=this.forceSelection;this.forceSelection=!1;var a=this.view.state.selection.main,l=this.domAtPos(a.anchor),c=a.empty?l:this.domAtPos(a.head);if(bi.gecko&&a.empty&&function UJe(t){return 1==t.node.nodeType&&t.node.firstChild&&(0==t.offset||"false"==t.node.childNodes[t.offset-1].contentEditable)&&(t.offset==t.node.childNodes.length||"false"==t.node.childNodes[t.offset].contentEditable)}(l)){var u=document.createTextNode("");this.view.observer.ignore(function(){return l.node.insertBefore(u,l.node.childNodes[l.offset]||null)}),l=c=new Rc(u,0),s=!0}var h=this.view.observer.selectionRange;!s&&h.focusNode&&mk(l.node,l.offset,h.anchorNode,h.anchorOffset)&&mk(c.node,c.offset,h.focusNode,h.focusOffset)||(this.view.observer.ignore(function(){bi.android&&bi.chrome&&i.dom.contains(h.focusNode)&&function XJe(t,n){for(var e=t;e&&e!=n;e=e.assignedSlot||e.parentNode)if(1==e.nodeType&&"false"==e.contentEditable)return!0;return!1}(h.focusNode,i.dom)&&(i.dom.blur(),i.dom.focus({preventScroll:!0}));var d=pk(i.view.root);if(d)if(a.empty){if(bi.gecko){var f=function GJe(t,n){return 1!=t.nodeType?0:(n&&"false"==t.childNodes[n-1].contentEditable?1:0)|(na.head){var w=[c,l];l=w[0],c=w[1]}m.setEnd(c.node,c.offset),m.setStart(l.node,l.offset),d.removeAllRanges(),d.addRange(m)}}),this.view.observer.setSelectionRange(l,c)),this.impreciseAnchor=l.precise?null:new Rc(h.anchorNode,h.anchorOffset),this.impreciseHead=c.precise?null:new Rc(h.focusNode,h.focusOffset)}}},{key:"enforceCursorAssoc",value:function(){if(!this.compositionDeco.size){var i=this.view,r=i.state.selection.main,o=pk(i.root),s=i.observer.selectionRange,a=s.anchorNode,l=s.anchorOffset;if(o&&r.empty&&r.assoc&&o.modify){var c=ch.find(this,r.head);if(c){var u=c.posAtStart;if(r.head!=u&&r.head!=u+c.length){var h=this.coordsAt(r.head,-1),d=this.coordsAt(r.head,1);if(h&&d&&!(h.bottom>d.top)){var f=this.domAtPos(r.head+r.assoc);o.collapse(f.node,f.offset),o.modify("move",r.assoc<0?"forward":"backward","lineboundary"),i.observer.readSelectionRange();var p=i.observer.selectionRange;i.docView.posFromDOM(p.anchorNode,p.anchorOffset)!=r.from&&o.collapse(a,l)}}}}}}},{key:"mayControlSelection",value:function(){var i=this.view.root.activeElement;return i==this.dom||gk(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i))}},{key:"nearest",value:function(i){for(var r=i;r;){var o=Ps.get(r);if(o&&o.rootView==this)return o;r=r.parentNode}return null}},{key:"posFromDOM",value:function(i,r){var o=this.nearest(i);if(!o)throw new RangeError("Trying to find position for a DOM position outside of the document");return o.localPosFromDOM(i,r)+o.posAtStart}},{key:"domAtPos",value:function(i){for(var r=this.childCursor().findPos(i,-1),o=r.i,s=r.off;ol||i==l&&a.type!=Bo.WidgetBefore&&a.type!=Bo.WidgetAfter&&(!s||2==r||this.children[s-1].breakAfter||this.children[s-1].type==Bo.WidgetBefore&&r>-2))return a.coordsAt(i-l,r);o=l}}},{key:"measureVisibleLineHeights",value:function(i){for(var r=[],o=i.from,s=i.to,a=this.view.contentDOM.clientWidth,l=a>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,c=-1,u=this.view.textDirection==Ts.LTR,h=0,d=0;ds)break;if(h>=o){var m=f.dom.getBoundingClientRect();if(r.push(m.height),l){var w=f.dom.lastChild,C=w?s_(w):[];if(C.length){var k=C[C.length-1],E=u?k.right-m.left:m.right-k.left;E>c&&(c=E,this.minWidth=a,this.minWidthFrom=h,this.minWidthTo=p)}}}h=p+f.breakAfter}return r}},{key:"textDirectionAt",value:function(i){var r=this.childPos(i,1).i;return"rtl"==getComputedStyle(this.children[r].dom).direction?Ts.RTL:Ts.LTR}},{key:"measureTextSize",value:function(){var i,r=this,o=ot(this.children);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(s instanceof ch){var a=s.measureTextSize();if(a)return a}}}catch(h){o.e(h)}finally{o.f()}var l,c,u=document.createElement("div");return u.className="cm-line",u.style.width="99999px",u.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(function(){r.dom.appendChild(u);var h=s_(u.firstChild)[0];l=u.getBoundingClientRect().height,c=h?h.width/27:7,u.remove()}),{lineHeight:l,charWidth:c}}},{key:"childCursor",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.length,r=this.children.length;return r&&(i-=this.children[--r].length),new Wce(this.children,i,r)}},{key:"computeBlockGapDeco",value:function(){for(var i=[],r=this.view.viewState,o=0,s=0;;s++){var a=s==r.viewports.length?null:r.viewports[s],l=a?a.from-1:this.length;if(l>o){var c=r.lineBlockAt(l).bottom-r.lineBlockAt(o).top;i.push(Hi.replace({widget:new Fue(c),block:!0,inclusive:!0,isBlockGap:!0}).range(o,l))}if(!a)break;o=a.to+1}return Hi.set(i)}},{key:"updateDeco",value:function(){for(var i=this,r=this.view.state.facet(h_).map(function(s,a){return(i.dynamicDecorationMap[a]="function"==typeof s)?s(i.view):s}),o=r.length;os.anchor?-1:1);if(a){!s.empty&&(r=this.coordsAt(s.anchor,s.anchor>s.head?-1:1))&&(a={left:Math.min(a.left,r.left),top:Math.min(a.top,r.top),right:Math.max(a.right,r.right),bottom:Math.max(a.bottom,r.bottom)});var l,c=0,u=0,h=0,d=0,f=ot(this.view.state.facet(bue).map(function(L){return L(o.view)}));try{for(f.s();!(l=f.n()).done;){var p=l.value;if(p){var m=p.left,w=p.right,C=p.top,k=p.bottom;null!=m&&(c=Math.max(c,m)),null!=w&&(u=Math.max(u,w)),null!=C&&(h=Math.max(h,C)),null!=k&&(d=Math.max(d,k))}}}catch(L){f.e(L)}finally{f.f()}!function(L,B,G,oe,fe,re,ce,ue){for(var pe=L.ownerDocument,De=pe.defaultView||window,ie=L;ie;)if(1==ie.nodeType){var ge=void 0,we=ie==pe.body;if(we)ge=LJe(De);else{if(ie.scrollHeight<=ie.clientHeight&&ie.scrollWidth<=ie.clientWidth){ie=ie.assignedSlot||ie.parentNode;continue}var le=ie.getBoundingClientRect();ge={left:le.left,right:le.left+ie.clientWidth,top:le.top,bottom:le.top+ie.clientHeight}}var Fe=0,z=0;if("nearest"==fe)B.top0&&B.bottom>ge.bottom+z&&(z=B.bottom-ge.bottom+z+ce)):B.bottom>ge.bottom&&(z=B.bottom-ge.bottom+ce,G<0&&B.top-z0&&B.right>ge.right+Fe&&(Fe=B.right-ge.right+Fe+re)):B.right>ge.right&&(Fe=B.right-ge.right+re,G<0&&B.left0&&e<=0)n=a_(t=t.childNodes[n-1]);else{if(!(1==t.nodeType&&n=0))return null;t=t.childNodes[n],n=0}}}var qJe=function(){function t(){qe(this,t),this.changes=[]}return Xe(t,[{key:"compareRange",value:function(n,e){nR(n,e,this.changes)}},{key:"comparePoint",value:function(n,e){nR(n,e,this.changes)}}]),t}();function YJe(t,n){return n.left>t?n.left-t:Math.max(0,t-n.right)}function KJe(t,n){return n.top>t?n.top-t:Math.max(0,t-n.bottom)}function uR(t,n){return t.topn.top+1}function Nue(t,n){return nt.bottom?{top:t.top,left:t.left,right:t.right,bottom:n}:t}function hR(t,n,e){for(var i,r,o,s,a,l,c,u,h=!1,d=t.firstChild;d;d=d.nextSibling)for(var f=s_(d),p=0;pC||s==C&&o>w){i=d,r=m,o=w,s=C;var k=C?e0?p0)}0==w?e>m.bottom&&(!c||c.bottomm.top)&&(l=d,u=m):c&&uR(c,m)?c=Rue(c,m.bottom):u&&uR(u,m)&&(u=Nue(u,m.top))}if(c&&c.bottom>=e?(i=a,r=c):u&&u.top<=e&&(i=l,r=u),!i)return{node:t,offset:0};var E=Math.max(r.left,Math.min(r.right,n));return 3==i.nodeType?$ue(i,E,e):h&&"false"!=i.contentEditable?hR(i,E,e):{node:t,offset:Array.prototype.indexOf.call(t.childNodes,i)+(n>=(r.left+r.right)/2?1:0)}}function $ue(t,n,e){for(var i=t.nodeValue.length,r=-1,o=1e9,s=0,a=0;ae?u.top-e:e-u.bottom)-1;if(u.left-1<=n&&u.right+1>=n&&h=(u.left+u.right)/2,f=d;if((bi.chrome||bi.gecko)&&D0(t,a).getBoundingClientRect().left==u.right&&(f=!d),h<=0)return{node:t,offset:a+(f?1:0)};r=a+(f?1:0),o=h}}}return{node:t,offset:r>-1?r:s>0?t.nodeValue.length:0}}function Pue(t,n,e){var i,r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,s=t.contentDOM.getBoundingClientRect(),a=s.top+t.viewState.paddingTop,l=t.viewState.docHeight,c=n.x,u=n.y,h=u-a;if(h<0)return 0;if(h>l)return t.state.doc.length;for(var d=t.defaultLineHeight/2,f=!1;(r=t.elementAtHeight(h)).type!=Bo.Text;)for(;!((h=o>0?r.bottom+d:r.top-d)>=0&&h<=l);){if(f)return e?null:0;f=!0,o=-o}u=a+h;var p=r.from;if(pt.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:e?null:jue(t,s,r,c,u);var m=t.dom.ownerDocument,w=t.root.elementFromPoint?t.root:m,C=w.elementFromPoint(c,u);C&&!t.contentDOM.contains(C)&&(C=null),C||(c=Math.max(s.left+1,Math.min(s.right-1,c)),(C=w.elementFromPoint(c,u))&&!t.contentDOM.contains(C)&&(C=null));var k,E=-1;if(C&&0!=(null===(i=t.docView.nearest(C))||void 0===i?void 0:i.isEditable))if(m.caretPositionFromPoint){var L=m.caretPositionFromPoint(c,u);L&&(k=L.offsetNode,E=L.offset)}else if(m.caretRangeFromPoint){var B=m.caretRangeFromPoint(c,u);B&&(E=B.startOffset,(!t.contentDOM.contains(k=B.startContainer)||bi.safari&&function JJe(t,n,e){var i;if(3!=t.nodeType||n!=(i=t.nodeValue.length))return!1;for(var r=t.nextSibling;r;r=r.nextSibling)if(1!=r.nodeType||"BR"!=r.nodeName)return!1;return D0(t,i-1,i).getBoundingClientRect().left>e}(k,E,c)||bi.chrome&&function QJe(t,n,e){if(0!=n)return!1;for(var i=t;;){var r=i.parentNode;if(!r||1!=r.nodeType||r.firstChild!=i)return!1;if(r.classList.contains("cm-line"))break;i=r}return e-(1==t.nodeType?t.getBoundingClientRect():D0(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect()).left>5}(k,E,c))&&(k=void 0))}if(!k||!t.docView.dom.contains(k)){var G=ch.find(t.docView,p);if(!G)return h>r.top+r.height/2?r.to:r.from;var oe=hR(G.dom,c,u);k=oe.node,E=oe.offset}var fe=t.docView.nearest(k);if(!fe)return null;if(fe.isWidget){var re=fe.dom.getBoundingClientRect();return n.y1.5*t.defaultLineHeight&&(o+=Math.floor((r-e.top)/t.defaultLineHeight)*t.viewState.heightOracle.lineLength);var s=t.state.sliceDoc(e.from,e.to);return e.from+jN(s,o,t.state.tabSize)}function Bue(t,n,e,i){for(var r=t.state.doc.lineAt(n.head),o=t.bidiSpans(r),s=t.textDirectionAt(r.from),a=n,l=null;;){var c=zJe(r,o,s,a,e),u=Tue;if(!c){if(r.number==(e?t.state.doc.lines:1))return a;u="\n",r=t.state.doc.line(r.number+(e?1:-1)),o=t.bidiSpans(r),c=_n.cursor(e?r.from:r.to)}if(l){if(!l(u))return a}else{if(!i)return c;l=i(u)}a=c}}function dR(t,n,e){for(var i=t.state.facet(yue).map(function(a){return a(t)});;){var r,o=!1,s=ot(i);try{for(s.s();!(r=s.n()).done;)r.value.between(e.from-1,e.from+1,function(a,l,c){e.from>a&&e.frome.from?_n.cursor(a,1):_n.cursor(l,-1),o=!0)})}catch(a){s.e(a)}finally{s.f()}if(!o)return e}}var eQe=function(){function t(n){var e=this;qe(this,t),this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.chromeScrollHack=-1,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.mouseSelection=null;var i=function(s,a){e.ignoreDuringComposition(a)||"keydown"==a.type&&e.keydown(n,a)||(e.mustFlushObserver(a)&&n.observer.forceFlush(),e.runCustomHandlers(a.type,n,a)?a.preventDefault():s(n,a))},r=function(s){var a=Sa[s];n.contentDOM.addEventListener(s,function(l){zue(n,l)&&i(a,l)},fR[s]),e.registeredEvents.push(s)};for(var o in Sa)r(o);n.scrollDOM.addEventListener("mousedown",function(s){s.target==n.scrollDOM&&s.clientY>n.contentDOM.getBoundingClientRect().bottom&&i(Sa.mousedown,s)}),bi.chrome&&102==bi.chrome_version&&n.scrollDOM.addEventListener("wheel",function(){e.chromeScrollHack<0?n.contentDOM.style.pointerEvents="none":window.clearTimeout(e.chromeScrollHack),e.chromeScrollHack=setTimeout(function(){e.chromeScrollHack=-1,n.contentDOM.style.pointerEvents=""},100)},{passive:!0}),this.notifiedFocused=n.hasFocus,bi.safari&&n.contentDOM.addEventListener("input",function(){return null})}return Xe(t,[{key:"setSelectionOrigin",value:function(n){this.lastSelectionOrigin=n,this.lastSelectionTime=Date.now()}},{key:"ensureHandlers",value:function(n,e){var i,r,o=this;this.customHandlers=[];var s,a=ot(e);try{for(a.s();!(s=a.n()).done;){var l=s.value;if(r=null===(i=l.update(n).spec)||void 0===i?void 0:i.domEventHandlers){this.customHandlers.push({plugin:l.value,handlers:r});var c=function(h){o.registeredEvents.indexOf(h)<0&&"scroll"!=h&&(o.registeredEvents.push(h),n.contentDOM.addEventListener(h,function(d){zue(n,d)&&o.runCustomHandlers(h,n,d)&&d.preventDefault()}))};for(var u in r)c(u)}}}catch(h){a.e(h)}finally{a.f()}}},{key:"runCustomHandlers",value:function(n,e,i){var r,o=ot(this.customHandlers);try{for(o.s();!(r=o.n()).done;){var s=r.value,a=s.handlers[n];if(a)try{if(a.call(s.plugin,i,e)||i.defaultPrevented)return!0}catch(l){Pc(e.state,l)}}}catch(l){o.e(l)}finally{o.f()}return!1}},{key:"runScrollHandlers",value:function(n,e){this.lastScrollTop=n.scrollDOM.scrollTop,this.lastScrollLeft=n.scrollDOM.scrollLeft;var i,r=ot(this.customHandlers);try{for(r.s();!(i=r.n()).done;){var o=i.value,s=o.handlers.scroll;if(s)try{s.call(o.plugin,e,n)}catch(a){Pc(n.state,a)}}}catch(a){r.e(a)}finally{r.f()}}},{key:"keydown",value:function(n,e){var i,r=this;return this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&Date.now()-1&&e.ctrlKey&&!e.shiftKey)||(this.pendingIOSKey=i||e,setTimeout(function(){return r.flushIOSKey(n)},250),0)):(n.observer.delayAndroidKey(e.key,e.keyCode),!0))}},{key:"flushIOSKey",value:function(n){var e=this.pendingIOSKey;return!!e&&(this.pendingIOSKey=void 0,T0(n.contentDOM,e.key,e.keyCode))}},{key:"ignoreDuringComposition",value:function(n){return!!/^key/.test(n.type)&&(this.composing>0||!!(bi.safari&&!bi.ios&&Date.now()-this.compositionEndedAt<100)&&(this.compositionEndedAt=0,!0))}},{key:"mustFlushObserver",value:function(n){return"keydown"==n.type&&229!=n.keyCode}},{key:"startMouseSelection",value:function(n){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=n}},{key:"update",value:function(n){this.mouseSelection&&this.mouseSelection.update(n),n.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}},{key:"destroy",value:function(){this.mouseSelection&&this.mouseSelection.destroy()}}]),t}(),Hue=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],tQe="dthko",Vue=[16,17,18,20,91,92,224,225];function wk(t){return.7*t+8}var nQe=function(){function t(n,e,i,r){qe(this,t),this.view=n,this.style=i,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=e,this.scrollParent=function(s){for(var a=s.ownerDocument,l=s.parentNode;l&&l!=a.body;)if(1==l.nodeType){if(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth)return l;l=l.assignedSlot||l.parentNode}else{if(11!=l.nodeType)break;l=l.host}return null}(n.contentDOM);var a,l,o=n.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=e.shiftKey,this.multiple=n.state.facet(Qo.allowMultipleSelections)&&(a=e,(l=n.state.facet(aue)).length?l[0](a):bi.mac?a.metaKey:a.ctrlKey),this.dragMove=function(s,a){var l=s.state.facet(lue);return l.length?l[0](a):bi.mac?!a.altKey:!a.ctrlKey}(n,e),this.dragging=!(!function(s,a){if(s.state.selection.main.empty)return!1;var l=pk(s.root);if(!l||0==l.rangeCount)return!0;for(var c=l.getRangeAt(0).getClientRects(),u=0;u=a.clientX&&h.top<=a.clientY&&h.bottom>=a.clientY)return!0}return!1}(n,e)||1!=Zue(e))&&null}return Xe(t,[{key:"start",value:function(n){!1===this.dragging&&(n.preventDefault(),this.select(n))}},{key:"move",value:function(n){var e;if(0==n.buttons)return this.destroy();if(!1===this.dragging){this.select(this.lastEvent=n);var i=0,r=0,o=(null===(e=this.scrollParent)||void 0===e?void 0:e.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight};n.clientX<=o.left?i=-wk(o.left-n.clientX):n.clientX>=o.right&&(i=wk(n.clientX-o.right)),n.clientY<=o.top?r=-wk(o.top-n.clientY):n.clientY>=o.bottom&&(r=wk(n.clientY-o.bottom)),this.setScrollSpeed(i,r)}}},{key:"up",value:function(n){null==this.dragging&&this.select(this.lastEvent),this.dragging||n.preventDefault(),this.destroy()}},{key:"destroy",value:function(){this.setScrollSpeed(0,0);var n=this.view.contentDOM.ownerDocument;n.removeEventListener("mousemove",this.move),n.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}},{key:"setScrollSpeed",value:function(n,e){var i=this;this.scrollSpeed={x:n,y:e},n||e?this.scrolling<0&&(this.scrolling=setInterval(function(){return i.scroll()},50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}},{key:"scroll",value:function(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}},{key:"select",value:function(n){var e=this.style.get(n,this.extend,this.multiple);!this.mustSelect&&e.eq(this.view.state.selection)&&e.main.assoc==this.view.state.selection.main.assoc||this.view.dispatch({selection:e,userEvent:"select.pointer"}),this.mustSelect=!1}},{key:"update",value:function(n){var e=this;n.docChanged&&this.dragging&&(this.dragging=this.dragging.map(n.changes)),this.style.update(n)&&setTimeout(function(){return e.select(e.lastEvent)},20)}}]),t}();function zue(t,n){if(!n.bubbles)return!0;if(n.defaultPrevented)return!1;for(var e,i=n.target;i!=t.contentDOM;i=i.parentNode)if(!i||11==i.nodeType||(e=Ps.get(i))&&e.ignoreEvent(n))return!1;return!0}var Sa=Object.create(null),fR=Object.create(null),Uue=bi.ie&&bi.ie_version<15||bi.ios&&bi.webkit_version<604;function Wue(t,n){var e,i=t.state,r=1,o=i.toText(n),s=o.lines==i.selection.ranges.length;if(null!=pR&&i.selection.ranges.every(function(c){return c.empty})&&pR==o.toString()){var l=-1;e=i.changeByRange(function(c){var u=i.doc.lineAt(c.from);if(u.from==l)return{range:c};l=u.from;var h=i.toText((s?o.line(r++).text:n)+i.lineBreak);return{changes:{from:u.from,insert:h},range:_n.cursor(c.from+h.length)}})}else e=s?i.changeByRange(function(c){var u=o.line(r++);return{changes:{from:c.from,to:c.to,insert:u.text},range:_n.cursor(c.from+u.length)}}):i.replaceSelection(o);t.dispatch(e,{userEvent:"input.paste",scrollIntoView:!0})}function Gue(t,n,e,i){if(1==i)return _n.cursor(n,e);if(2==i)return function(l,c){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,h=l.charCategorizer(c),d=l.doc.lineAt(c),f=c-d.from;if(0==d.length)return _n.cursor(c);0==f?u=1:f==d.length&&(u=-1);var p=f,m=f;u<0?p=ql(d.text,f,!1):m=ql(d.text,f);for(var w=h(d.text.slice(p,m));p>0;){var C=ql(d.text,p,!1);if(h(d.text.slice(C,p))!=w)break;p=C}for(;mDate.now()-2e3)){var e,i=null,r=ot(t.state.facet(cue));try{for(r.s();!(e=r.n()).done&&!(i=(0,e.value)(t,n)););}catch(s){r.e(s)}finally{r.f()}if(i||0!=n.button||(l=Yue(s=t,a=n),c=Zue(a),u=s.state.selection,i={update:function(h){h.docChanged&&(l.pos=h.changes.mapPos(l.pos),u=u.map(h.changes))},get:function(h,d,f){var p=Yue(s,h),m=Gue(s,p.pos,p.bias,c);if(l.pos!=p.pos&&!d){var w=Gue(s,l.pos,l.bias,c),C=Math.min(w.from,m.from),k=Math.max(w.to,m.to);m=C1&&u.ranges.some(function(E){return E.eq(m)})?function(E,L){for(var B=0;;B++)if(E.ranges[B].eq(L))return _n.create(E.ranges.slice(0,B).concat(E.ranges.slice(B+1)),E.mainIndex==B?0:E.mainIndex-(E.mainIndex>B?1:0))}(u,m):f?u.addRange(m):_n.create([m])}}),i){var o=t.root.activeElement!=t.contentDOM;t.inputState.startMouseSelection(new nQe(t,n,i,o)),o&&t.observer.ignore(function(){return Vce(t.contentDOM)}),t.inputState.mouseSelection&&t.inputState.mouseSelection.start(n)}}var s,a,l,c,u};var que=function(t,n){return t>=n.top&&t<=n.bottom},Xue=function(t,n,e){return que(n,e)&&t>=e.left&&t<=e.right};function iQe(t,n,e,i){var r=ch.find(t.docView,n);if(!r)return 1;var o=n-r.posAtStart;if(0==o)return 1;if(o==r.length)return-1;var s=r.coordsAt(o,-1);if(s&&Xue(e,i,s))return-1;var a=r.coordsAt(o,1);return a&&Xue(e,i,a)?1:s&&que(i,s)?-1:1}function Yue(t,n){var e=t.posAtCoords({x:n.clientX,y:n.clientY},!1);return{pos:e,bias:iQe(t,e,n.clientX,n.clientY)}}var rQe=bi.ie&&bi.ie_version<=11,Kue=null,Jue=0,Que=0;function Zue(t){if(!rQe)return t.detail;var n=Kue,e=Que;return Kue=t,Que=Date.now(),Jue=!n||e>Date.now()-400&&Math.abs(n.clientX-t.clientX)<2&&Math.abs(n.clientY-t.clientY)<2?(Jue+1)%3:1}function ehe(t,n,e,i){if(e){var r=t.posAtCoords({x:n.clientX,y:n.clientY},!1);n.preventDefault();var o=t.inputState.mouseSelection,s=i&&o&&o.dragging&&o.dragMove?{from:o.dragging.from,to:o.dragging.to}:null,a={from:r,insert:e},l=t.state.changes(s?[s,a]:a);t.focus(),t.dispatch({changes:l,selection:{anchor:l.mapPos(r,-1),head:l.mapPos(r,1)},userEvent:s?"move.drop":"input.drop"})}}Sa.dragstart=function(t,n){var e=t.state.selection.main,i=t.inputState.mouseSelection;i&&(i.dragging=e),n.dataTransfer&&(n.dataTransfer.setData("Text",t.state.sliceDoc(e.from,e.to)),n.dataTransfer.effectAllowed="copyMove")},Sa.drop=function(t,n){if(n.dataTransfer){if(t.state.readOnly)return n.preventDefault();var e=n.dataTransfer.files;e&&e.length?function(){n.preventDefault();for(var i=Array(e.length),r=0,o=function(){++r==e.length&&ehe(t,n,i.filter(function(l){return null!=l}).join(t.state.lineBreak),!1)},s=function(l){var c=new FileReader;c.onerror=o,c.onload=function(){/[\x00-\x08\x0e-\x1f]{2}/.test(c.result)||(i[l]=c.result),o()},c.readAsText(e[l])},a=0;am&&(c.push(k.text),u.push({from:k.from,to:Math.min(a.doc.length,k.to+1)})),m=k.number}}catch(E){w.e(E)}finally{w.f()}h=!0}return{text:c.join(a.lineBreak),ranges:u,linewise:h}}(t.state),i=e.text,r=e.ranges,o=e.linewise;if(i||o){pR=o?i:null;var s=Uue?null:n.clipboardData;s?(n.preventDefault(),s.clearData(),s.setData("text/plain",i)):function(a,l){var c=a.dom.parentNode;if(c){var u=c.appendChild(document.createElement("textarea"));u.style.cssText="position: fixed; left: -10000px; top: 10px",u.value=l,u.focus(),u.selectionEnd=l.length,u.selectionStart=0,setTimeout(function(){u.remove(),a.focus()},50)}}(t,i),"cut"!=n.type||t.state.readOnly||t.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"})}};var the=fp.define();function nhe(t,n){var e,i=[],r=ot(t.facet(due));try{for(r.s();!(e=r.n()).done;){var o=(0,e.value)(t,n);o&&i.push(o)}}catch(s){r.e(s)}finally{r.f()}return i?t.update({effects:i,annotations:the.of(!0)}):null}function ihe(t){setTimeout(function(){var n=t.hasFocus;if(n!=t.inputState.notifiedFocused){var e=nhe(t.state,n);e?t.dispatch(e):t.update([])}},10)}Sa.focus=function(t){t.inputState.lastFocusTime=Date.now(),t.scrollDOM.scrollTop||!t.inputState.lastScrollTop&&!t.inputState.lastScrollLeft||(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),ihe(t)},Sa.blur=function(t){t.observer.clearSelectionRange(),ihe(t)},Sa.compositionstart=Sa.compositionupdate=function(t){null==t.inputState.compositionFirstChange&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0)},Sa.compositionend=function(t){t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionFirstChange=null,bi.chrome&&bi.android&&t.observer.flushSoon(),setTimeout(function(){t.inputState.composing<0&&t.docView.compositionDeco.size&&t.update([])},50)},Sa.contextmenu=function(t){t.inputState.lastContextMenu=Date.now()},Sa.beforeinput=function(t,n){var e,i;if(bi.chrome&&bi.android&&(i=Hue.find(function(o){return o.inputType==n.inputType}))&&(t.observer.delayAndroidKey(i.key,i.keyCode),"Backspace"==i.key||"Delete"==i.key)){var r=(null===(e=window.visualViewport)||void 0===e?void 0:e.height)||0;setTimeout(function(){var o;((null===(o=window.visualViewport)||void 0===o?void 0:o.height)||0)>r+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}};var rhe=["pre-wrap","normal","pre-line","break-spaces"],oQe=function(){function t(n){qe(this,t),this.lineWrapping=n,this.doc=Lo.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.lineLength=30,this.heightChanged=!1}return Xe(t,[{key:"heightForGap",value:function(n,e){var i=this.doc.lineAt(e).number-this.doc.lineAt(n).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((e-n-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}},{key:"heightForLine",value:function(n){return this.lineWrapping?(1+Math.max(0,Math.ceil((n-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}},{key:"setDoc",value:function(n){return this.doc=n,this}},{key:"mustRefreshForWrapping",value:function(n){return rhe.indexOf(n)>-1!=this.lineWrapping}},{key:"mustRefreshForHeights",value:function(n){for(var e=!1,i=0;i-1,a=Math.round(e)!=Math.round(this.lineHeight)||this.lineWrapping!=s;if(this.lineWrapping=s,this.lineHeight=e,this.charWidth=i,this.lineLength=r,a){this.heightSamples={};for(var l=0;l2&&void 0!==arguments[2]?arguments[2]:2;qe(this,t),this.length=n,this.height=e,this.flags=i}return Xe(t,[{key:"outdated",get:function(){return(2&this.flags)>0},set:function(n){this.flags=(n?2:0)|-3&this.flags}},{key:"setHeight",value:function(n,e){this.height!=e&&(Math.abs(this.height-e)>.001&&(n.heightChanged=!0),this.height=e)}},{key:"replace",value:function(n,e,i){return t.of(i)}},{key:"decomposeLeft",value:function(n,e){e.push(this)}},{key:"decomposeRight",value:function(n,e){e.push(this)}},{key:"applyChanges",value:function(n,e,i,r){for(var o=this,s=i.doc,a=r.length-1;a>=0;a--){var l=r[a],c=l.fromA,u=l.toA,h=l.fromB,d=l.toB,f=o.lineAt(c,us.ByPosNoHeight,i.setDoc(e),0,0),p=f.to>=u?f:o.lineAt(u,us.ByPosNoHeight,i,0,0);for(d+=p.to-u,u=p.to;a>0&&f.from<=r[a-1].toA;)c=r[a-1].fromA,h=r[a-1].fromB,a--,c2*o){var s=n[e-1];s.break?n.splice(--e,1,s.left,null,s.right):n.splice(--e,1,s.left,s.right),i+=1+s.break,r-=s.size}else{if(!(o>2*r))break;var a=n[i];a.break?n.splice(i,1,a.left,null,a.right):n.splice(i,1,a.left,a.right),i+=2+a.break,o-=a.size}else if(r=a&&l(this.blockAt(0,o,s,a))}},{key:"updateHeight",value:function(i){var o=arguments.length>3?arguments[3]:void 0;return o&&o.from<=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)&&o.more&&this.setHeight(i,o.heights[o.index++]),this.outdated=!1,this}},{key:"toString",value:function(){return"block(".concat(this.length,")")}}]),e}(),fd=function(t){Wt(e,ohe);var n=Gt(e);function e(i,r){var o;return qe(this,e),(o=n.call(this,i,r,Bo.Text)).collapsed=0,o.widgetHeight=0,o}return Xe(e,[{key:"replace",value:function(i,r,o){var s=o[0];return 1==o.length&&(s instanceof e||s instanceof M0&&4&s.flags)&&Math.abs(this.length-s.length)<10?(s instanceof M0?s=new e(s.length,this.height):s.height=this.height,this.outdated||(s.outdated=!1),s):uh.of(o)}},{key:"updateHeight",value:function(i){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0;return s&&s.from<=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)&&s.more?this.setHeight(i,s.heights[s.index++]):(o||this.outdated)&&this.setHeight(i,Math.max(this.widgetHeight,i.heightForLine(this.length-this.collapsed))),this.outdated=!1,this}},{key:"toString",value:function(){return"line(".concat(this.length).concat(this.collapsed?-this.collapsed:"").concat(this.widgetHeight?":"+this.widgetHeight:"",")")}}]),e}(),M0=function(t){Wt(e,uh);var n=Gt(e);function e(i){return qe(this,e),n.call(this,i,0)}return Xe(e,[{key:"heightMetrics",value:function(i,r){var o,s=i.doc.lineAt(r).number,a=i.doc.lineAt(r+this.length).number,l=a-s+1,c=0;if(i.lineWrapping){var u=Math.min(this.height,i.lineHeight*l);o=u/l,c=(this.height-u)/(this.length-l-1)}else o=this.height/l;return{firstLine:s,lastLine:a,perLine:o,perChar:c}}},{key:"blockAt",value:function(i,r,o,s){var a=this.heightMetrics(r,s),l=a.firstLine,c=a.lastLine,u=a.perLine,h=a.perChar;if(r.lineWrapping){var d=s+Math.round(Math.max(0,Math.min(1,(i-o)/this.height))*this.length),f=r.doc.lineAt(d),p=u+f.length*h,m=Math.max(o,i-p/2);return new qg(f.from,f.length,m,p,Bo.Text)}var w=Math.max(0,Math.min(c-l,Math.floor((i-o)/u))),C=r.doc.line(l+w);return new qg(C.from,C.length,o+u*w,u,Bo.Text)}},{key:"lineAt",value:function(i,r,o,s,a){if(r==us.ByHeight)return this.blockAt(i,o,s,a);if(r==us.ByPosNoHeight){var l=o.doc.lineAt(i),c=l.from;return new qg(c,l.to-c,0,0,Bo.Text)}var h=this.heightMetrics(o,a),d=h.firstLine,f=h.perLine,p=h.perChar,m=o.doc.lineAt(i),w=f+m.length*p,C=m.number-d;return new qg(m.from,m.length,Math.max(s,Math.min(s+f*C+p*(m.from-a-C),s+this.height-w)),w,Bo.Text)}},{key:"forEachLine",value:function(i,r,o,s,a,l){i=Math.max(i,a),r=Math.min(r,a+this.length);for(var c=this.heightMetrics(o,a),u=c.firstLine,h=c.perLine,d=c.perChar,f=i,p=s;f<=r;){var m=o.doc.lineAt(f);if(f==i){var w=m.number-u;p+=h*w+d*(i-a-w)}var C=h+d*m.length;l(new qg(m.from,m.length,p,C,Bo.Text)),p+=C,f=m.to+1}}},{key:"replace",value:function(i,r,o){var s=this.length-r;if(s>0){var a=o[o.length-1];a instanceof e?o[o.length-1]=new e(a.length+s):o.push(null,new e(s-1))}if(i>0){var l=o[0];l instanceof e?o[0]=new e(i+l.length):o.unshift(new e(i-1),null)}return uh.of(o)}},{key:"decomposeLeft",value:function(i,r){r.push(new e(i-1),null)}},{key:"decomposeRight",value:function(i,r){r.push(null,new e(this.length-i-1))}},{key:"updateHeight",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0,a=r+this.length;if(s&&s.from<=r+this.length&&s.more){var l=[],c=Math.max(r,s.from),u=-1;for(s.from>r&&l.push(new e(s.from-r-1).updateHeight(i,r));c<=a&&s.more;){var h=i.doc.lineAt(c).length;l.length&&l.push(null);var d=s.heights[s.index++];-1==u?u=d:Math.abs(d-u)>=.001&&(u=-2);var f=new fd(h,d);f.outdated=!1,l.push(f),c+=h+1}c<=a&&l.push(null,new e(a-c).updateHeight(i,c));var p=uh.of(l);return(u<0||Math.abs(p.height-this.height)>=.001||Math.abs(u-this.heightMetrics(i,r).perLine)>=.001)&&(i.heightChanged=!0),p}return(o||this.outdated)&&(this.setHeight(i,i.heightForGap(r,r+this.length)),this.outdated=!1),this}},{key:"toString",value:function(){return"gap(".concat(this.length,")")}}]),e}(),aQe=function(t){Wt(e,uh);var n=Gt(e);function e(i,r,o){var s;return qe(this,e),(s=n.call(this,i.length+r+o.length,i.height+o.height,r|(i.outdated||o.outdated?2:0))).left=i,s.right=o,s.size=i.size+o.size,s}return Xe(e,[{key:"break",get:function(){return 1&this.flags}},{key:"blockAt",value:function(i,r,o,s){var a=o+this.left.height;return ic))return h;var d=r==us.ByPosNoHeight?us.ByPosNoHeight:us.ByPos;return u?h.join(this.right.lineAt(c,d,o,l,c)):this.left.lineAt(c,d,o,s,a).join(h)}},{key:"forEachLine",value:function(i,r,o,s,a,l){var c=s+this.left.height,u=a+this.left.length+this.break;if(this.break)i=u&&this.right.forEachLine(i,r,o,c,u,l);else{var h=this.lineAt(u,us.ByPos,o,s,a);i=i&&h.from<=r&&l(h),r>h.to&&this.right.forEachLine(h.to+1,r,o,c,u,l)}}},{key:"replace",value:function(i,r,o){var s=this.left.length+this.break;if(rthis.left.length)return this.balanced(this.left,this.right.replace(i-s,r-s,o));var a=[];i>0&&this.decomposeLeft(i,a);var l,c=a.length,u=ot(o);try{for(u.s();!(l=u.n()).done;)a.push(l.value)}catch(f){u.e(f)}finally{u.f()}if(i>0&&she(a,c-1),r=++o&&r.push(null),i>o&&this.right.decomposeLeft(i-o,r)}},{key:"decomposeRight",value:function(i,r){var o=this.left.length,s=o+this.break;if(i>=s)return this.right.decomposeRight(i-s,r);i2*r.size||r.size>2*i.size?uh.of(this.break?[i,null,r]:[i,r]):(this.left=i,this.right=r,this.height=i.height+r.height,this.outdated=i.outdated||r.outdated,this.size=i.size+r.size,this.length=i.length+this.break+r.length,this)}},{key:"updateHeight",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0,a=this.left,l=this.right,c=r+a.length+this.break,u=null;return s&&s.from<=r+a.length&&s.more?u=a=a.updateHeight(i,r,o,s):a.updateHeight(i,r,o),s&&s.from<=c+l.length&&s.more?u=l=l.updateHeight(i,c,o,s):l.updateHeight(i,c,o),u?this.balanced(a,l):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}},{key:"toString",value:function(){return this.left+(this.break?" ":"-")+this.right}}]),e}();function she(t,n){var e,i;null==t[n]&&(e=t[n-1])instanceof M0&&(i=t[n+1])instanceof M0&&t.splice(n-1,3,new M0(e.length+1+i.length))}var lQe=function(){function t(n,e){qe(this,t),this.pos=n,this.oracle=e,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=n}return Xe(t,[{key:"isCovered",get:function(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}},{key:"span",value:function(n,e){if(this.lineStart>-1){var i=Math.min(e,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof fd?r.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new fd(i-this.pos,-1)),this.writtenTo=i,e>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=e}},{key:"point",value:function(n,e,i){if(n=5)&&this.addLineDeco(r,o)}else e>n&&this.span(n,e);this.lineEnd>-1&&this.lineEnd-1)){var n=this.oracle.doc.lineAt(this.pos),e=n.from,i=n.to;this.lineStart=e,this.lineEnd=i,this.writtenToe&&this.nodes.push(new fd(this.pos-e,-1)),this.writtenTo=this.pos}}},{key:"blankContent",value:function(n,e){var i=new M0(e-n);return this.oracle.doc.lineAt(n).to==e&&(i.flags|=4),i}},{key:"ensureLine",value:function(){this.enterLine();var n=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(n instanceof fd)return n;var e=new fd(0,-1);return this.nodes.push(e),e}},{key:"addBlock",value:function(n){this.enterLine(),n.type!=Bo.WidgetAfter||this.isCovered||this.ensureLine(),this.nodes.push(n),this.writtenTo=this.pos=this.pos+n.length,n.type!=Bo.WidgetBefore&&(this.covering=n)}},{key:"addLineDeco",value:function(n,e){var i=this.ensureLine();i.length+=e,i.collapsed+=e,i.widgetHeight=Math.max(i.widgetHeight,n),this.writtenTo=this.pos=this.pos+e}},{key:"finish",value:function(n){var e=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||e instanceof fd||this.isCovered?(this.writtenTou.clientHeight||u.scrollWidth>u.clientWidth)&&"visible"!=h.overflow){var d=u.getBoundingClientRect();o=Math.max(o,d.left),s=Math.min(s,d.right),a=Math.max(a,d.top),l=c==t.parentNode?d.bottom:Math.min(l,d.bottom)}c="absolute"==h.position||"fixed"==h.position?u.offsetParent:u.parentNode}else{if(11!=c.nodeType)break;c=c.host}return{left:o-e.left,right:Math.max(o,s)-e.left,top:a-(e.top+n),bottom:Math.max(a,l)-(e.top+n)}}function dQe(t,n){var e=t.getBoundingClientRect();return{left:0,right:e.right-e.left,top:n,bottom:e.bottom-(e.top+n)}}var gR=function(){function t(n,e,i){qe(this,t),this.from=n,this.to=e,this.size=i}return Xe(t,[{key:"draw",value:function(n){return Hi.replace({widget:new fQe(this.size,n)}).range(this.from,this.to)}}],[{key:"same",value:function(n,e){if(n.length!=e.length)return!1;for(var i=0;i=h.from&&a<=h.to})){var l=n.lineBlockAt(a);e.push(new xk(l.from,l.to))}},o=0;o<=1;o++)r(o);this.viewports=e.sort(function(s,a){return s.from-a.from}),this.scaler=this.heightMap.height<=7e6?lhe:new gQe(this.heightOracle,this.heightMap,this.viewports)}},{key:"updateViewportLines",value:function(){var n=this;this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,function(e){n.viewportLines.push(1==n.scaler.scale?e:f_(e,n.scaler))})}},{key:"update",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.state=n.state;var i=this.stateDeco;this.stateDeco=this.state.facet(h_).filter(function(c){return"function"!=typeof c});var o=A0.extendWithRanges(n.changedRanges,function cQe(t,n,e){var i=new uQe;return cs.compare(t,n,e,i,0),i.changes}(i,this.stateDeco,n?n.changes:lh.empty(this.state.doc.length))),s=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(this.stateDeco,n.startState.doc,this.heightOracle.setDoc(this.state.doc),o),this.heightMap.height!=s&&(n.flags|=2);var a=o.length?this.mapViewport(this.viewport,n.changes):this.viewport;(e&&(e.range.heada.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,e));var l=!n.changes.empty||2&n.flags||a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,this.updateForViewport(),l&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,n.changes))),n.flags|=this.computeVisibleRanges(),e&&(this.scrollTarget=e),!this.mustEnforceCursorAssoc&&n.selectionSet&&n.view.lineWrapping&&n.state.selection.main.empty&&n.state.selection.main.assoc&&!n.state.facet(pue)&&(this.mustEnforceCursorAssoc=!0)}},{key:"measure",value:function(n){var e=n.contentDOM,i=window.getComputedStyle(e),r=this.heightOracle,o=i.whiteSpace;this.defaultTextDirection="rtl"==i.direction?Ts.RTL:Ts.LTR;var s=this.heightOracle.mustRefreshForWrapping(o),a=e.getBoundingClientRect(),l=s||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;var c=0,u=0,h=parseInt(i.paddingTop)||0,d=parseInt(i.paddingBottom)||0;this.paddingTop==h&&this.paddingBottom==d||(this.paddingTop=h,this.paddingBottom=d,c|=10),this.editorWidth!=n.scrollDOM.clientWidth&&(r.lineWrapping&&(l=!0),this.editorWidth=n.scrollDOM.clientWidth,c|=8);var f=(this.printing?dQe:hQe)(e,this.paddingTop),p=f.top-this.pixelViewport.top,m=f.bottom-this.pixelViewport.bottom;this.pixelViewport=f;var w=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(w!=this.inView&&(this.inView=w,w&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;var C=a.width;if(this.contentDOMWidth==C&&this.editorHeight==n.scrollDOM.clientHeight||(this.contentDOMWidth=a.width,this.editorHeight=n.scrollDOM.clientHeight,c|=8),l){var k=n.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(k)&&(s=!0),s||r.lineWrapping&&Math.abs(C-this.contentDOMWidth)>r.charWidth){var E=n.docView.measureTextSize(),L=E.lineHeight,B=E.charWidth;(s=L>0&&r.refresh(o,L,B,C/B,k))&&(n.docView.minWidth=0,c|=8)}p>0&&m>0?u=Math.max(p,m):p<0&&m<0&&(u=Math.min(p,m)),r.heightChanged=!1;var G,oe=ot(this.viewports);try{for(oe.s();!(G=oe.n()).done;){var fe=G.value,re=fe.from==this.viewport.from?k:n.docView.measureVisibleLineHeights(fe);this.heightMap=(s?uh.empty().applyChanges(this.stateDeco,Lo.empty,this.heightOracle,[new A0(0,0,0,n.state.doc.length)]):this.heightMap).updateHeight(r,0,s,new sQe(fe.from,re))}}catch(ue){oe.e(ue)}finally{oe.f()}r.heightChanged&&(c|=2)}var ce=!this.viewportIsAppropriate(this.viewport,u)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return ce&&(this.viewport=this.getViewport(u,this.scrollTarget)),this.updateForViewport(),(2&c||ce)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,n)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,n.docView.enforceCursorAssoc()),c}},{key:"visibleTop",get:function(){return this.scaler.fromDOM(this.pixelViewport.top)}},{key:"visibleBottom",get:function(){return this.scaler.fromDOM(this.pixelViewport.bottom)}},{key:"getViewport",value:function(n,e){var i=.5-Math.max(-.5,Math.min(.5,n/1e3/2)),r=this.heightMap,o=this.heightOracle,a=this.visibleBottom,l=new xk(r.lineAt(this.visibleTop-1e3*i,us.ByHeight,o,0,0).from,r.lineAt(a+1e3*(1-i),us.ByHeight,o,0,0).to);if(e){var c=e.range.head;if(cl.to){var u,h=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),d=r.lineAt(c,us.ByPos,o,0,0);l=new xk(r.lineAt((u="center"==e.y?(d.top+d.bottom)/2-h/2:"start"==e.y||"nearest"==e.y&&c1&&void 0!==arguments[1]?arguments[1]:0;if(!this.inView)return!0;var s=this.heightMap.lineAt(e,us.ByPos,this.heightOracle,0,0).top,l=this.heightMap.lineAt(i,us.ByPos,this.heightOracle,0,0).bottom,c=this.visibleTop,u=this.visibleBottom;return(0==e||s<=c-Math.max(10,Math.min(-r,250)))&&(i==this.state.doc.length||l>=u+Math.max(10,Math.min(r,250)))&&s>c-2e3&&l>1,a=o<<1;if(this.defaultTextDirection!=Ts.LTR&&!r)return[];var l,c=[],u=function pe(De,ie,ge,we){if(!(ie-DeDe&&Z=ge.from&&Te.to<=ge.to&&Math.abs(Te.from-De)Oe})});if(!me){if(ie=ie})){var ae=e.moveToLineBoundary(_n.cursor(ie),!1,!0).head;ae>De&&(ie=ae)}me=new gR(De,ie,i.gapSize(ge,De,ie,we))}c.push(me)}},h=ot(this.viewportLines);try{for(h.s();!(l=h.n()).done;){var d=l.value;if(!(d.lengthd.from&&u(d.from,m,d,f),w=this.viewport.from&&n<=this.viewport.to&&this.viewportLines.find(function(e){return e.from<=n&&e.to>=n})||f_(this.heightMap.lineAt(n,us.ByPos,this.heightOracle,0,0),this.scaler)}},{key:"lineBlockAtHeight",value:function(n){return f_(this.heightMap.lineAt(this.scaler.fromDOM(n),us.ByHeight,this.heightOracle,0,0),this.scaler)}},{key:"elementAtHeight",value:function(n){return f_(this.heightMap.blockAt(this.scaler.fromDOM(n),this.heightOracle,0,0),this.scaler)}},{key:"docHeight",get:function(){return this.scaler.toDOM(this.heightMap.height)}},{key:"contentHeight",get:function(){return this.docHeight+this.paddingTop+this.paddingBottom}}]),t}(),xk=Xe(function t(n,e){qe(this,t),this.from=n,this.to=e});function pQe(t,n,e){var i=[],r=t,o=0;return cs.spans(e,t,n,{span:function(){},point:function(s,a){s>r&&(i.push({from:r,to:s}),o+=s-r),r=a}},20),r=1)return i[i.length-1].to;for(var r=Math.floor(t.total*n),o=0;;o++){var s=i[o],a=s.from,l=s.to-a;if(r<=l)return a+r;r-=l}}function Sk(t,n){var e,i=0,r=ot(t.ranges);try{for(r.s();!(e=r.n()).done;){var o=e.value,s=o.from,a=o.to;if(n<=a){i+=n-s;break}i+=a-s}}catch(l){r.e(l)}finally{r.f()}return i/t.total}var lhe={toDOM:function(t){return t},fromDOM:function(t){return t},scale:1},gQe=function(){function t(n,e,i){qe(this,t);var r=0,o=0,s=0;this.viewports=i.map(function(u){var h=u.from,d=u.to,f=e.lineAt(h,us.ByPos,n,0,0).top,p=e.lineAt(d,us.ByPos,n,0,0).bottom;return r+=p-f,{from:h,to:d,top:f,bottom:p,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(e.height-r);var a,l=ot(this.viewports);try{for(l.s();!(a=l.n()).done;){var c=a.value;c.domTop=s+(c.top-o)*this.scale,s=c.domBottom=c.domTop+(c.bottom-c.top),o=c.bottom}}catch(u){l.e(u)}finally{l.f()}}return Xe(t,[{key:"toDOM",value:function(n){for(var e=0,i=0,r=0;;e++){var o=e-1}}),vR=pp.newName(),che=pp.newName(),uhe=pp.newName(),hhe={"&light":"."+che,"&dark":"."+uhe};function yR(t,n,e){return new pp(n,{finish:function(i){return/&/.test(i)?i.replace(/&\w*/,function(r){if("&"==r)return t;if(!e||!e[r])throw new RangeError("Unsupported selector: ".concat(r));return e[r]}):t+" "+i}})}var mQe=yR("."+vR,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",left:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},hhe),vQe=Xe(function t(n,e,i,r){qe(this,t),this.typeOver=r,this.bounds=null,this.text="";var o=n.docView,s=o.impreciseHead,a=o.impreciseAnchor;if(n.state.readOnly&&e>-1)this.newSel=null;else if(e>-1&&(this.bounds=n.docView.domBoundsAround(e,i,0))){var l=s||a?[]:function(f){var p=[];if(f.root.activeElement!=f.contentDOM)return p;var m=f.observer.selectionRange,w=m.anchorNode,C=m.anchorOffset,k=m.focusNode,E=m.focusOffset;return w&&(p.push(new Mue(w,C)),k==w&&E==C||p.push(new Mue(k,E))),p}(n),c=new Aue(l,n.state);c.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=c.text,this.newSel=function(f,p){if(0==f.length)return null;var m=f[0].pos,w=2==f.length?f[1].pos:m;return m>-1&&w>-1?_n.single(m+p,w+p):null}(l,this.bounds.from)}else{var u=n.observer.selectionRange,h=s&&s.node==u.focusNode&&s.offset==u.focusOffset||!S0(n.contentDOM,u.focusNode)?n.state.selection.main.head:n.docView.posFromDOM(u.focusNode,u.focusOffset),d=a&&a.node==u.anchorNode&&a.offset==u.anchorOffset||!S0(n.contentDOM,u.anchorNode)?n.state.selection.main.anchor:n.docView.posFromDOM(u.anchorNode,u.anchorOffset);this.newSel=_n.single(d,h)}});function dhe(t,n){var e,i=n.newSel,r=t.state.selection.main;if(n.bounds){var o=n.bounds,s=o.from,a=o.to,l=r.from,c=null;(8===t.inputState.lastKeyCode&&t.inputState.lastKeyTime>Date.now()-100||bi.android&&n.text.length0&&we>0&&re.charCodeAt(ge-1)==ce.charCodeAt(we-1);)ge--,we--;return"end"==pe&&(ue-=ge+Math.max(0,ie-Math.min(ge,we))-ie),ge=ge?ie-ue:0)+(we-ge),ge=ie):we=we?ie-ue:0)+(ge-we),we=ie),{from:ie,toA:ge,toB:we}}(t.state.doc.sliceString(s,a,"\uffff"),n.text,l-s,c);u&&(bi.chrome&&13==t.inputState.lastKeyCode&&u.toB==u.from+2&&"\uffff\uffff"==n.text.slice(u.from,u.toB)&&u.toB--,e={from:s+u.from,to:s+u.toA,insert:Lo.of(n.text.slice(u.from,u.toB).split("\uffff"))})}else i&&(!t.hasFocus&&t.state.facet(_k)||i.main.eq(r))&&(i=null);if(!e&&!i)return!1;if(!e&&n.typeOver&&!r.empty&&i&&i.main.empty?e={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,r.to)}:e&&e.from>=r.from&&e.to<=r.to&&(e.from!=r.from||e.to!=r.to)&&r.to-r.from-(e.to-e.from)<=4?e={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,e.from).append(e.insert).append(t.state.doc.slice(e.to,r.to))}:(bi.mac||bi.android)&&e&&e.from==e.to&&e.from==r.head-1&&/^\. ?$/.test(e.insert.toString())&&"off"==t.contentDOM.getAttribute("autocorrect")?(i&&2==e.insert.length&&(i=_n.single(i.main.anchor-1,i.main.head-1)),e={from:r.from,to:r.to,insert:Lo.of([" "])}):bi.chrome&&e&&e.from==e.to&&e.from==r.head&&"\n "==e.insert.toString()&&t.lineWrapping&&(i&&(i=_n.single(i.main.anchor-1,i.main.head-1)),e={from:r.from,to:r.to,insert:Lo.of([" "])}),e){var h=t.state;if(bi.ios&&t.inputState.flushIOSKey(t)||bi.android&&(e.from==r.from&&e.to==r.to&&1==e.insert.length&&2==e.insert.lines&&T0(t.contentDOM,"Enter",13)||e.from==r.from-1&&e.to==r.to&&0==e.insert.length&&T0(t.contentDOM,"Backspace",8)||e.from==r.from&&e.to==r.to+1&&0==e.insert.length&&T0(t.contentDOM,"Delete",46)))return!0;var d,f=e.insert.toString();if(t.state.facet(hue).some(function(re){return re(t,e.from,e.to,f)}))return!0;if(t.inputState.composing>=0&&t.inputState.composing++,e.from>=r.from&&e.to<=r.to&&e.to-e.from>=(r.to-r.from)/3&&(!i||i.main.empty&&i.main.from==e.from+e.insert.length)&&t.inputState.composing<0){var p=r.frome.to?h.sliceDoc(e.to,r.to):"";d=h.replaceSelection(t.state.toText(p+e.insert.sliceString(0,void 0,t.state.lineBreak)+m))}else{var w=h.changes(e),C=i&&!h.selection.main.eq(i.main)&&i.main.to<=w.newLength?i.main:void 0;if(h.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=r.to&&e.to>=r.to-10){var k=t.state.sliceDoc(e.from,e.to),E=Lue(t)||t.state.doc.lineAt(r.head),L=r.to-e.to,B=r.to-r.from;d=h.changeByRange(function(re){if(re.from==r.from&&re.to==r.to)return{changes:w,range:C||re.map(w)};var ce=re.to-L,ue=ce-k.length;if(re.to-re.from!=B||t.state.sliceDoc(ue,ce)!=k||E&&re.to>=E.from&&re.from<=E.to)return{range:re};var pe=h.changes({from:ue,to:ce,insert:e.insert}),De=re.to-r.to;return{changes:pe,range:C?_n.range(Math.max(0,C.anchor+De),Math.max(0,C.head+De)):re.map(pe)}})}else d={changes:w,selection:C&&h.selection.replaceRange(C)}}var G="input.type";return t.composing&&(G+=".compose",t.inputState.compositionFirstChange&&(G+=".start",t.inputState.compositionFirstChange=!1)),t.dispatch(d,{scrollIntoView:!0,userEvent:G}),!0}if(i&&!i.main.eq(r)){var oe=!1,fe="select";return t.inputState.lastSelectionTime>Date.now()-50&&("select"==t.inputState.lastSelectionOrigin&&(oe=!0),fe=t.inputState.lastSelectionOrigin),t.dispatch({selection:i,scrollIntoView:oe,userEvent:fe}),!0}return!1}var yQe={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},bR=bi.ie&&bi.ie_version<=11,bQe=function(){function t(n){var e=this;qe(this,t),this.view=n,this.active=!1,this.selectionRange=new OJe,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.resizeContent=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=n.contentDOM,this.observer=new MutationObserver(function(i){var r,o=ot(i);try{for(o.s();!(r=o.n()).done;)e.queue.push(r.value)}catch(a){o.e(a)}finally{o.f()}(bi.ie&&bi.ie_version<=11||bi.ios&&n.composing)&&i.some(function(a){return"childList"==a.type&&a.removedNodes.length||"characterData"==a.type&&a.oldValue.length>a.target.nodeValue.length})?e.flushSoon():e.flush()}),bR&&(this.onCharData=function(i){e.queue.push({target:i.target,type:"characterData",oldValue:i.prevValue}),e.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver(function(){var i;(null===(i=e.view.docView)||void 0===i?void 0:i.lastUpdate)0&&i[i.length-1].intersectionRatio>0!=e.intersecting&&(e.intersecting=!e.intersecting,e.intersecting!=e.view.inView&&e.onScrollChanged(document.createEvent("Event")))},{}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(function(i){i.length>0&&i[i.length-1].intersectionRatio>0&&e.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}return Xe(t,[{key:"onScrollChanged",value:function(n){this.view.inputState.runScrollHandlers(this.view,n),this.intersecting&&this.view.measure()}},{key:"onScroll",value:function(n){this.intersecting&&this.flush(!1),this.onScrollChanged(n)}},{key:"onResize",value:function(){var n=this;this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(function(){n.resizeTimeout=-1,n.view.requestMeasure()},50))}},{key:"onPrint",value:function(){var n=this;this.view.viewState.printing=!0,this.view.measure(),setTimeout(function(){n.view.viewState.printing=!1,n.view.requestMeasure()},500)}},{key:"updateGaps",value:function(n){if(this.gapIntersection&&(n.length!=this.gaps.length||this.gaps.some(function(o,s){return o!=n[s]}))){this.gapIntersection.disconnect();var e,i=ot(n);try{for(i.s();!(e=i.n()).done;)this.gapIntersection.observe(e.value)}catch(o){i.e(o)}finally{i.f()}this.gaps=n}}},{key:"onSelectionChange",value:function(n){var e=this.selectionChanged;if(this.readSelectionRange()&&!this.delayedAndroidKey){var i=this.view,r=this.selectionRange;if(i.state.facet(_k)?i.root.activeElement==this.dom:gk(i.dom,r)){var o=r.anchorNode&&i.docView.nearest(r.anchorNode);o&&o.ignoreEvent(n)?e||(this.selectionChanged=!1):(bi.ie&&bi.ie_version<=11||bi.android&&bi.chrome)&&!i.state.selection.main.empty&&r.focusNode&&mk(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}}}},{key:"readSelectionRange",value:function(){var n=this.view,e=bi.safari&&11==n.root.nodeType&&function(r){for(var o=r.activeElement;o&&o.shadowRoot;)o=o.shadowRoot.activeElement;return o}(this.dom.ownerDocument)==this.dom&&function(r){var o=null;function s(f){f.preventDefault(),f.stopImmediatePropagation(),o=f.getTargetRanges()[0]}if(r.contentDOM.addEventListener("beforeinput",s,!0),r.dom.ownerDocument.execCommand("indent"),r.contentDOM.removeEventListener("beforeinput",s,!0),!o)return null;var a=o.startContainer,l=o.startOffset,c=o.endContainer,u=o.endOffset,h=r.docView.domAtPos(r.state.selection.main.anchor);if(mk(h.node,h.offset,c,u)){var d=[c,u,a,l];a=d[0],l=d[1],c=d[2],u=d[3]}return{anchorNode:a,anchorOffset:l,focusNode:c,focusOffset:u}}(this.view)||pk(n.root);if(!e||this.selectionRange.eq(e))return!1;var i=gk(this.dom,e);return i&&!this.selectionChanged&&n.inputState.lastFocusTime>Date.now()-200&&n.inputState.lastTouchTime=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}},{key:"processRecords",value:function(){var n,e=this.queue,i=ot(this.observer.takeRecords());try{for(i.s();!(n=i.n()).done;)e.push(n.value)}catch(d){i.e(d)}finally{i.f()}e.length&&(this.queue=[]);var o,s=-1,a=-1,l=!1,c=ot(e);try{for(c.s();!(o=c.n()).done;){var h=this.readMutation(o.value);h&&(h.typeOver&&(l=!0),-1==s?(s=h.from,a=h.to):(s=Math.min(h.from,s),a=Math.max(h.to,a)))}}catch(d){c.e(d)}finally{c.f()}return{from:s,to:a,typeOver:l}}},{key:"readChange",value:function(){var n=this.processRecords(),e=n.from,i=n.to,r=n.typeOver,o=this.selectionChanged&&gk(this.dom,this.selectionRange);return e<0&&!o?null:(e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1,new vQe(this.view,e,i,r))}},{key:"flush",value:function(){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&this.readSelectionRange();var e=this.readChange();if(!e)return!1;var i=this.view.state,r=dhe(this.view,e);return this.view.state==i&&this.view.update([]),r}},{key:"readMutation",value:function(n){var e=this.view.docView.nearest(n.target);if(!e||e.ignoreMutation(n))return null;if(e.markDirty("attributes"==n.type),"attributes"==n.type&&(e.dirty|=4),"childList"==n.type){var i=fhe(e,n.previousSibling||n.target.previousSibling,-1),r=fhe(e,n.nextSibling||n.target.nextSibling,1);return{from:i?e.posAfter(i):e.posAtStart,to:r?e.posBefore(r):e.posAtEnd,typeOver:!1}}return"characterData"==n.type?{from:e.posAtStart,to:e.posAtEnd,typeOver:n.target.nodeValue==n.oldValue}:null}},{key:"setWindow",value:function(n){n!=this.win&&(this.removeWindowListeners(this.win),this.win=n,this.addWindowListeners(this.win))}},{key:"addWindowListeners",value:function(n){n.addEventListener("resize",this.onResize),n.addEventListener("beforeprint",this.onPrint),n.addEventListener("scroll",this.onScroll),n.document.addEventListener("selectionchange",this.onSelectionChange)}},{key:"removeWindowListeners",value:function(n){n.removeEventListener("scroll",this.onScroll),n.removeEventListener("resize",this.onResize),n.removeEventListener("beforeprint",this.onPrint),n.document.removeEventListener("selectionchange",this.onSelectionChange)}},{key:"destroy",value:function(){var n,e,i,r;this.stop(),null===(n=this.intersection)||void 0===n||n.disconnect(),null===(e=this.gapIntersection)||void 0===e||e.disconnect(),null===(i=this.resizeScroll)||void 0===i||i.disconnect(),null===(r=this.resizeContent)||void 0===r||r.disconnect();var o,s=ot(this.scrollTargets);try{for(s.s();!(o=s.n()).done;)o.value.removeEventListener("scroll",this.onScroll)}catch(a){s.e(a)}finally{s.f()}this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}]),t}();function fhe(t,n,e){for(;n;){var i=Ps.get(n);if(i&&i.parent==t)return i;var r=n.parentNode;n=r!=t.dom?r:e>0?n.nextSibling:n.previousSibling}return null}var pi=function(){function t(){var n=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};qe(this,t),this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: fixed; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),this._dispatch=e.dispatch||function(s){return n.update([s])},this.dispatch=this.dispatch.bind(this),this._root=e.root||function NJe(t){for(;t;){if(t&&(9==t.nodeType||11==t.nodeType&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}(e.parent)||document,this.viewState=new ahe(e.state||Qo.create(e)),this.plugins=this.state.facet(u_).map(function(s){return new oR(s)});var i,r=ot(this.plugins);try{for(r.s();!(i=r.n()).done;)i.value.update(this)}catch(s){r.e(s)}finally{r.f()}this.observer=new bQe(this),this.inputState=new eQe(this),this.inputState.ensureHandlers(this,this.plugins),this.docView=new Iue(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}return Xe(t,[{key:"state",get:function(){return this.viewState.state}},{key:"viewport",get:function(){return this.viewState.viewport}},{key:"visibleRanges",get:function(){return this.viewState.visibleRanges}},{key:"inView",get:function(){return this.viewState.inView}},{key:"composing",get:function(){return this.inputState.composing>0}},{key:"compositionStarted",get:function(){return this.inputState.composing>=0}},{key:"root",get:function(){return this._root}},{key:"win",get:function(){return this.dom.ownerDocument.defaultView||window}},{key:"dispatch",value:function(){var n;this._dispatch(1==arguments.length&&(arguments.length<=0?void 0:arguments[0])instanceof cc?arguments.length<=0?void 0:arguments[0]:(n=this.state).update.apply(n,arguments))}},{key:"update",value:function(n){var e=this;if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");var i,r,o=!1,s=!1,a=this.state,l=ot(n);try{for(l.s();!(r=l.n()).done;){var c=r.value;if(c.startState!=a)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");a=c.state}}catch(re){l.e(re)}finally{l.f()}if(this.destroyed)this.viewState.state=a;else{var u=this.hasFocus,h=0,d=null;n.some(function(re){return re.annotation(the)})?(this.inputState.notifiedFocused=u,h=1):u!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=u,(d=nhe(a,u))||(h=1));var f=this.observer.delayedAndroidKey,p=null;if(f?(this.observer.clearDelayedAndroidKey(),((p=this.observer.readChange())&&!this.state.doc.eq(a.doc)||!this.state.selection.eq(a.selection))&&(p=null)):this.observer.clear(),a.facet(Qo.phrases)!=this.state.facet(Qo.phrases))return this.setState(a);(i=_ue.create(this,a,n)).flags|=h;var m=this.viewState.scrollTarget;try{this.updateState=2;var w,C=ot(n);try{for(C.s();!(w=C.n()).done;){var k=w.value;if(m&&(m=m.map(k.changes)),k.scrollIntoView){var E=k.state.selection.main;m=new gue(E.empty?E:_n.cursor(E.head,E.head>E.anchor?-1:1))}var L,B=ot(k.effects);try{for(B.s();!(L=B.n()).done;){var G=L.value;G.is(mue)&&(m=G.value)}}catch(re){B.e(re)}finally{B.f()}}}catch(re){C.e(re)}finally{C.f()}this.viewState.update(i,m),this.bidiCache=ghe.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),o=this.docView.update(i),this.state.facet(d_)!=this.styleModules&&this.mountStyles(),s=this.updateAttrs(),this.showAnnouncements(n),this.docView.updateSelection(o,n.some(function(re){return re.isUserEvent("select.pointer")}))}finally{this.updateState=0}if(i.startState.facet(kk)!=i.state.facet(kk)&&(this.viewState.mustMeasureContent=!0),(o||s||m||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!i.empty){var oe,fe=ot(this.state.facet(rR));try{for(fe.s();!(oe=fe.n()).done;)(0,oe.value)(i)}catch(re){fe.e(re)}finally{fe.f()}}(d||p)&&Promise.resolve().then(function(){d&&e.state==d.startState&&e.dispatch(d),p&&!dhe(e,p)&&f.force&&T0(e.contentDOM,f.key,f.keyCode)})}}},{key:"setState",value:function(n){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)this.viewState.state=n;else{this.updateState=2;var e=this.hasFocus;try{var i,r=ot(this.plugins);try{for(r.s();!(i=r.n()).done;)i.value.destroy(this)}catch(a){r.e(a)}finally{r.f()}this.viewState=new ahe(n),this.plugins=n.facet(u_).map(function(a){return new oR(a)}),this.pluginMap.clear();var o,s=ot(this.plugins);try{for(s.s();!(o=s.n()).done;)o.value.update(this)}catch(a){s.e(a)}finally{s.f()}this.docView=new Iue(this),this.inputState.ensureHandlers(this,this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}e&&this.focus(),this.requestMeasure()}}},{key:"updatePlugins",value:function(n){var e=n.startState.facet(u_),i=n.state.facet(u_);if(e!=i){var r,o=[],s=ot(i);try{for(s.s();!(r=s.n()).done;){var a=r.value,l=e.indexOf(a);if(l<0)o.push(new oR(a));else{var c=this.plugins[l];c.mustUpdate=n,o.push(c)}}}catch(w){s.e(w)}finally{s.f()}var u,h=ot(this.plugins);try{for(h.s();!(u=h.n()).done;){var d=u.value;d.mustUpdate!=n&&d.destroy(this)}}catch(w){h.e(w)}finally{h.f()}this.plugins=o,this.pluginMap.clear(),this.inputState.ensureHandlers(this,this.plugins)}else{var f,p=ot(this.plugins);try{for(p.s();!(f=p.n()).done;)f.value.mustUpdate=n}catch(w){p.e(w)}finally{p.f()}}for(var m=0;m0&&void 0!==arguments[0])||arguments[0];if(!this.destroyed){this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.measureScheduled=0,e&&this.observer.forceFlush();var i=null,r=this.scrollDOM,o=r.scrollHeight,s=r.scrollTop,l=s>o-r.clientHeight-4?o:s;try{for(var c=0;;c++){this.updateState=1;var u=this.viewport,h=this.viewState.lineBlockAtHeight(l),d=this.viewState.measure(this);if(!d&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(c>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}var f=[];if(!(4&d)){var p=[f,this.measureRequests];this.measureRequests=p[0],f=p[1]}var m=f.map(function(re){try{return re.read(n)}catch(ce){return Pc(n.state,ce),phe}}),w=_ue.create(this,this.state,[]),C=!1,k=!1;w.flags|=d,i?i.flags|=d:i=w,this.updateState=2,w.empty||(this.updatePlugins(w),this.inputState.update(w),this.updateAttrs(),C=this.docView.update(w));for(var E=0;E1||B<-1)&&(this.scrollDOM.scrollTop+=B,k=!0)}if(C&&this.docView.updateSelection(!0),this.viewport.from==u.from&&this.viewport.to==u.to&&!k&&0==this.measureRequests.length)break}}finally{this.updateState=0,this.measureScheduled=-1}if(i&&!i.empty){var G,oe=ot(this.state.facet(rR));try{for(oe.s();!(G=oe.n()).done;)(0,G.value)(i)}catch(re){oe.e(re)}finally{oe.f()}}}}},{key:"themeClasses",get:function(){return vR+" "+(this.state.facet(mR)?uhe:che)+" "+this.state.facet(kk)}},{key:"updateAttrs",value:function(){var n=this,e=mhe(this,vue,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),i={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(_k)?"true":"false",class:"cm-content",style:"".concat(bi.tabSize,": ").concat(this.state.tabSize),role:"textbox","aria-multiline":"true"};this.state.readOnly&&(i["aria-readonly"]="true"),mhe(this,sR,i);var r=this.observer.ignore(function(){var o=eR(n.contentDOM,n.contentAttrs,i),s=eR(n.dom,n.editorAttrs,e);return o||s});return this.editorAttrs=e,this.contentAttrs=i,r}},{key:"showAnnouncements",value:function(n){var e,i=!0,r=ot(n);try{for(r.s();!(e=r.n()).done;){var o,s=ot(e.value.effects);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.is(t.announce)&&(i&&(this.announceDOM.textContent=""),i=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=a.value)}}catch(l){s.e(l)}finally{s.f()}}}catch(l){r.e(l)}finally{r.f()}}},{key:"mountStyles",value:function(){this.styleModules=this.state.facet(d_),pp.mount(this.root,this.styleModules.concat(mQe).reverse())}},{key:"readMeasured",value:function(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}},{key:"requestMeasure",value:function(n){var e=this;if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(function(){return e.measure()})),n){if(this.measureRequests.indexOf(n)>-1)return;if(null!=n.key)for(var i=0;ir.from?n.head-1:n.head):null;if(o){var s=t.dom.getBoundingClientRect(),a=t.textDirectionAt(r.from),l=t.posAtCoords({x:e==(a==Ts.LTR)?s.right-1:s.left+1,y:(o.top+o.bottom)/2});if(null!=l)return _n.cursor(l,e?-1:1)}var c=ch.find(t.docView,n.head);return _n.cursor(c?e?c.posAtEnd:c.posAtStart:e?r.to:r.from,e?-1:1)}(this,n,e,!(arguments.length>2&&void 0!==arguments[2])||arguments[2])}},{key:"moveVertically",value:function(n,e,i){return dR(this,n,function(r,o,s,a){var l=o.head,c=s?1:-1;if(l==(s?r.state.doc.length:0))return _n.cursor(l,o.assoc);var u,h=o.goalColumn,d=r.contentDOM.getBoundingClientRect(),f=r.coordsAtPos(l),p=r.documentTop;if(f)null==h&&(h=f.left-d.left),u=c<0?f.top:f.bottom;else{var m=r.viewState.lineBlockAt(l);null==h&&(h=Math.min(d.right-d.left,r.defaultCharacterWidth*(l-m.from))),u=(c<0?m.top:m.bottom)+p}for(var w=d.left+h,C=a??r.defaultLineHeight>>1,k=0;;k+=10){var E=u+(C+k)*c,L=Pue(r,{x:w,y:E},!1,c);if(Ed.bottom||(c<0?Ll))return _n.cursor(L,o.assoc,void 0,h)}}(this,n,e,i))}},{key:"domAtPos",value:function(n){return this.docView.domAtPos(n)}},{key:"posAtDOM",value:function(n){return this.docView.posFromDOM(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)}},{key:"posAtCoords",value:function(n){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.readMeasured(),Pue(this,n,e)}},{key:"coordsAtPos",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.readMeasured();var i=this.docView.coordsAt(n,e);if(!i||i.left==i.right)return i;var r=this.state.doc.lineAt(n),o=this.bidiSpans(r);return VN(i,o[E0.find(o,n-r.from,-1,e)].dir==Ts.LTR==e>0)}},{key:"defaultCharacterWidth",get:function(){return this.viewState.heightOracle.charWidth}},{key:"defaultLineHeight",get:function(){return this.viewState.heightOracle.lineHeight}},{key:"textDirection",get:function(){return this.viewState.defaultTextDirection}},{key:"textDirectionAt",value:function(n){return!this.state.facet(fue)||nthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(n))}},{key:"lineWrapping",get:function(){return this.viewState.heightOracle.lineWrapping}},{key:"bidiSpans",value:function(n){if(n.length>_Qe)return Due(n.length);var e,i=this.textDirectionAt(n.from),r=ot(this.bidiCache);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(o.from==n.from&&o.dir==i)return o.order}}catch(a){r.e(a)}finally{r.f()}var s=function(a,l){var c=a.length,u=l==aR?1:2,h=l==aR?2:1;if(!a||1==u&&!VJe.test(a))return Due(c);for(var d=0,f=u,p=u;d=0;De-=3)if(dd[De+1]==-fe){var ie=dd[De+2],ge=2&ie?u:4&ie?1&ie?h:u:0;ge&&(As[ce]=As[dd[De]]=ge),ue=De;break}}else{if(189==dd.length)break;dd[ue++]=ce,dd[ue++]=oe,dd[ue++]=pe}else if(2==(re=As[ce])||1==re){var we=re==u;pe=we?0:1;for(var le=ue-3;le>=0;le-=3){var Fe=dd[le+2];if(2&Fe)break;if(we)dd[le+2]|=2;else{if(4&Fe)break;dd[le+2]|=4}}}for(var z=0;zZe;){for(var ct=wt,Ct=2!=As[--wt];wt>Ze&&Ct==(2!=As[wt-1]);)wt--;Te.push(new E0(wt,ct,Ct?2:1))}else Te.push(new E0(Ze,Oe,0))}else for(var se=0;seDate.now()-3e4)&&this.root.activeElement==this.contentDOM}},{key:"focus",value:function(){var n=this;this.observer.ignore(function(){Vce(n.contentDOM),n.docView.updateSelection()})}},{key:"setRoot",value:function(n){this._root!=n&&(this._root=n,this.observer.setWindow((9==n.nodeType?n:n.ownerDocument).defaultView||window),this.mountStyles())}},{key:"destroy",value:function(){var n,e=ot(this.plugins);try{for(e.s();!(n=e.n()).done;)n.value.destroy(this)}catch(i){e.e(i)}finally{e.f()}this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}}],[{key:"scrollIntoView",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return mue.of(new gue("number"==typeof n?_n.cursor(n):n,e.y,e.x,e.yMargin,e.xMargin))}},{key:"domEventHandlers",value:function(n){return Ba.define(function(){return{}},{eventHandlers:n})}},{key:"theme",value:function(n,e){var i=pp.newName(),r=[kk.of(i),d_.of(yR(".".concat(i),n))];return e&&e.dark&&r.push(mR.of(!0)),r}},{key:"baseTheme",value:function(n){return x0.lowest(d_.of(yR("."+vR,n,hhe)))}},{key:"findFromDOM",value:function(n){var e,i=n.querySelector(".cm-content");return(null===(e=(i&&Ps.get(i)||Ps.get(n))?.rootView)||void 0===e?void 0:e.view)||null}}]),t}();pi.styleModule=d_,pi.inputHandler=hue,pi.focusChangeEffect=due,pi.perLineTextDirection=fue,pi.exceptionSink=uue,pi.updateListener=rR,pi.editable=_k,pi.mouseSelectionStyle=cue,pi.dragMovesSelection=lue,pi.clickAddsSelectionRange=aue,pi.decorations=h_,pi.atomicRanges=yue,pi.scrollMargins=bue,pi.darkTheme=mR,pi.contentAttributes=sR,pi.editorAttributes=vue,pi.lineWrapping=pi.contentAttributes.of({class:"cm-lineWrapping"}),pi.announce=$r.define();var _Qe=4096,phe={},ghe=function(){function t(n,e,i,r){qe(this,t),this.from=n,this.to=e,this.dir=i,this.order=r}return Xe(t,null,[{key:"update",value:function(n,e){if(e.empty)return n;for(var i=[],r=n.length?n[n.length-1].dir:Ts.LTR,o=Math.max(0,n.length-10);o=0;r--){var o=i[r],s="function"==typeof o?o(t):o;s&&QN(s,e)}return e}var wQe=bi.mac?"mac":bi.windows?"win":bi.linux?"linux":"key";function Dk(t,n,e){return n.altKey&&(t="Alt-"+t),n.ctrlKey&&(t="Ctrl-"+t),n.metaKey&&(t="Meta-"+t),!1!==e&&n.shiftKey&&(t="Shift-"+t),t}var CQe=x0.default(pi.domEventHandlers({keydown:function(t,n){return bhe(yhe(n.state),t,n,"editor")}})),Tk=yi.define({enables:CQe}),vhe=new WeakMap;function yhe(t){var n=t.facet(Tk),e=vhe.get(n);return e||vhe.set(n,e=function(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wQe,s=Object.create(null),a=Object.create(null),l=function(G,oe){var fe=a[G];if(null==fe)a[G]=oe;else if(fe!=oe)throw new Error("Key binding "+G+" is used both as a regular binding and as a multi-stroke prefix")},c=function(G,oe,fe,re){for(var ce,ue,pe=s[G]||(s[G]=Object.create(null)),De=oe.split(/ (?!$)/).map(function(Fe){return function xQe(t,n){var e,i,r,o,s=t.split(/-(?!$)/),a=s[s.length-1];"Space"==a&&(a=" ");for(var l=0;l=t.viewport.to)return[];var i=Math.max(e.from,t.viewport.from),r=Math.min(e.to,t.viewport.to),o=t.textDirection==Ts.LTR,s=t.contentDOM,a=s.getBoundingClientRect(),l=_he(t),c=window.getComputedStyle(s.firstChild),u=a.left+parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)),h=a.right-parseInt(c.paddingRight),d=xhe(t,i),f=xhe(t,r),p=d.type==Bo.Text?d:null,m=f.type==Bo.Text?f:null;if(t.lineWrapping&&(p&&(p=whe(t,i,p)),m&&(m=whe(t,r,m))),p&&m&&p.from==m.from)return L(B(e.from,e.to,p));var w=p?B(e.from,null,p):G(d,!1),C=m?B(null,e.to,m):G(f,!0),k=[];return(p||d).to<(m||f).from-1?k.push(E(u,w.bottom,h,C.top)):w.bottomge&&Fe.from=Q)break;Ze>z&&De(Math.max(Oe,z),null==oe&&Oe<=ge,Math.min(Ze,Q),null==fe&&Ze>=we,Te.dir)}}catch(Ve){ae.e(Ve)}finally{ae.f()}if((z=me.to+1)>=Q)break}}}catch(Ve){le.e(Ve)}finally{le.f()}return 0==pe.length&&De(ge,null==oe,we,null==fe,t.textDirection),{top:ce,bottom:ue,horizontal:pe}}function G(oe,fe){var re=a.top+(fe?oe.top:oe.bottom);return{top:re,bottom:re,horizontal:[]}}}(n,e,i)}}]),t}();function _he(t){var n=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==Ts.LTR?n.left:n.right-t.scrollDOM.clientWidth)-t.scrollDOM.scrollLeft,top:n.top-t.scrollDOM.scrollTop}}function whe(t,n,e){var i=_n.cursor(n);return{from:Math.max(e.from,t.moveToLineBoundary(i,!1,!0).from),to:Math.min(e.to,t.moveToLineBoundary(i,!0,!0).from),type:Bo.Text}}function xhe(t,n){var e=t.lineBlockAt(n);if(Array.isArray(e.type)){var i,r=ot(e.type);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.to>n||o.to==n&&(o.to==e.to||o.type==Bo.Text))return o}}catch(s){r.e(s)}finally{r.f()}}return e}var kQe=function(){function t(n,e){qe(this,t),this.view=n,this.layer=e,this.drawn=[],this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=n.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),e.above&&this.dom.classList.add("cm-layer-above"),e.class&&this.dom.classList.add(e.class),this.dom.setAttribute("aria-hidden","true"),this.setOrder(n.state),n.requestMeasure(this.measureReq),e.mount&&e.mount(this.dom,n)}return Xe(t,[{key:"update",value:function(n){n.startState.facet(Ak)!=n.state.facet(Ak)&&this.setOrder(n.state),(this.layer.update(n,this.dom)||n.geometryChanged)&&n.view.requestMeasure(this.measureReq)}},{key:"setOrder",value:function(n){for(var e=0,i=n.facet(Ak);e0&&void 0!==arguments[0]?arguments[0]:{}),TQe,AQe,EQe,pue.of(!0)]}function khe(t){return t.startState.facet(p_)!=t.state.facet(p_)}var TQe=Che({above:!0,markers:function(t){var n,e=t.state,i=e.facet(p_),r=[],o=ot(e.selection.ranges);try{for(o.s();!(n=o.n()).done;){var s=n.value,a=s==e.selection.main;if(s.empty?!a||She:i.drawRangeCursor){var l,c=a?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",u=s.empty?s:_n.cursor(s.head,s.head>s.anchor?-1:1),h=ot(_R.forRange(t,c,u));try{for(h.s();!(l=h.n()).done;)r.push(l.value)}catch(f){h.e(f)}finally{h.f()}}}}catch(f){o.e(f)}finally{o.f()}return r},update:function(t,n){t.transactions.some(function(i){return i.selection})&&(n.style.animationName="cm-blink"==n.style.animationName?"cm-blink2":"cm-blink");var e=khe(t);return e&&Dhe(t.state,n),t.docChanged||t.selectionSet||e},mount:function(t,n){Dhe(n.state,t)},class:"cm-cursorLayer"});function Dhe(t,n){n.style.animationDuration=t.facet(p_).cursorBlinkRate+"ms"}var AQe=Che({above:!1,markers:function(t){return t.state.selection.ranges.map(function(n){return n.empty?[]:_R.forRange(t,"cm-selectionBackground",n)}).reduce(function(n,e){return n.concat(e)})},update:function(t,n){return t.docChanged||t.selectionSet||t.viewportChanged||khe(t)},class:"cm-selectionLayer"}),The={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};She&&(The[".cm-line"].caretColor="transparent !important");var EQe=x0.highest(pi.theme(The)),Ahe=$r.define({map:function(t,n){return null==t?null:n.mapPos(t)}}),g_=nl.define({create:function(){return null},update:function(t,n){return null!=t&&(t=n.changes.mapPos(t)),n.effects.reduce(function(e,i){return i.is(Ahe)?i.value:e},t)}}),MQe=Ba.fromClass(function(){function t(n){qe(this,t),this.view=n,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}return Xe(t,[{key:"update",value:function(n){var e,i=n.state.field(g_);null==i?null!=this.cursor&&(null===(e=this.cursor)||void 0===e||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(n.startState.field(g_)!=i||n.docChanged||n.geometryChanged)&&this.view.requestMeasure(this.measureReq))}},{key:"readPos",value:function(){var n=this.view.state.field(g_),e=null!=n&&this.view.coordsAtPos(n);if(!e)return null;var i=this.view.scrollDOM.getBoundingClientRect();return{left:e.left-i.left+this.view.scrollDOM.scrollLeft,top:e.top-i.top+this.view.scrollDOM.scrollTop,height:e.bottom-e.top}}},{key:"drawCursor",value:function(n){this.cursor&&(n?(this.cursor.style.left=n.left+"px",this.cursor.style.top=n.top+"px",this.cursor.style.height=n.height+"px"):this.cursor.style.left="-100000px")}},{key:"destroy",value:function(){this.cursor&&this.cursor.remove()}},{key:"setDropPos",value:function(n){this.view.state.field(g_)!=n&&this.view.dispatch({effects:Ahe.of(n)})}}]),t}(),{eventHandlers:{dragover:function(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave:function(t){t.target!=this.view.contentDOM&&this.view.contentDOM.contains(t.relatedTarget)||this.setDropPos(null)},dragend:function(){this.setDropPos(null)},drop:function(){this.setDropPos(null)}}});function Ehe(t,n,e,i,r){n.lastIndex=0;for(var o,s=t.iterRange(e,i),a=e;!s.next().done;a+=s.value.length)if(!s.lineBreak)for(;o=n.exec(s.value);)r(a+o.index,o)}var IQe=function(){function t(n){qe(this,t);var e=n.regexp,i=n.decoration,r=n.decorate,o=n.boundary,s=n.maxLength,a=void 0===s?1e3:s;if(!e.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=e,r)this.addMatch=function(l,c,u,h){return r(h,u,u+l[0].length,l,c)};else if("function"==typeof i)this.addMatch=function(l,c,u,h){var d=i(l,c,u);d&&h(u,u+l[0].length,d)};else{if(!i)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=function(l,c,u,h){return h(u,u+l[0].length,i)}}this.boundary=o,this.maxLength=a}return Xe(t,[{key:"createDeco",value:function(n){var e,i=this,r=new Wg,o=r.add.bind(r),s=ot(function(u,h){var d=u.visibleRanges;if(1==d.length&&d[0].from==u.viewport.from&&d[0].to==u.viewport.to)return d;var f,p=[],m=ot(d);try{for(m.s();!(f=m.n()).done;){var w=f.value,C=w.from,k=w.to;C=Math.max(u.state.doc.lineAt(C).from,C-h),k=Math.min(u.state.doc.lineAt(k).to,k+h),p.length&&p[p.length-1].to>=C?p[p.length-1].to=k:p.push({from:C,to:k})}}catch(E){m.e(E)}finally{m.f()}return p}(n,this.maxLength));try{for(s.s();!(e=s.n()).done;){var a=e.value;Ehe(n.state.doc,this.regexp,a.from,a.to,function(u,h){return i.addMatch(h,n,u,o)})}}catch(u){s.e(u)}finally{s.f()}return r.finish()}},{key:"updateDeco",value:function(n,e){var i=1e9,r=-1;return n.docChanged&&n.changes.iterChanges(function(o,s,a,l){l>n.view.viewport.from&&a1e3?this.createDeco(n.view):r>-1?this.updateRange(n.view,e.map(n.changes),i,r):e}},{key:"updateRange",value:function(n,e,i,r){var o,s=this,a=ot(n.visibleRanges);try{for(a.s();!(o=a.n()).done;){var l=o.value,c=Math.max(l.from,i),u=Math.min(l.to,r);u>c&&function(){var h=n.state.doc.lineAt(c),d=h.toh.from;c--)if(s.boundary.test(h.text[c-1-h.from])){f=c;break}for(;up},add:m})}()}}catch(h){a.e(h)}finally{a.f()}return e}}]),t}(),wR=null!=/x/.unicode?"gu":"g",FQe=new RegExp("[\0-\b\n-\x1f\x7f-\x9f\xad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]",wR),LQe={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},xR=null,Ek=yi.define({combine:function(t){var n=fu(t,{render:null,specialChars:FQe,addSpecialChars:null});return(n.replaceTabs=!function(){var e;if(null==xR&&typeof document<"u"&&document.body){var i=document.body.style;xR=null!=(null!==(e=i.tabSize)&&void 0!==e?e:i.MozTabSize)}return xR||!1}())&&(n.specialChars=new RegExp("\t|"+n.specialChars.source,wR)),n.addSpecialChars&&(n.specialChars=new RegExp(n.specialChars.source+"|"+n.addSpecialChars.source,wR)),n}});function OQe(){return[Ek.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Mhe||(Mhe=Ba.fromClass(function(){function t(n){qe(this,t),this.view=n,this.decorations=Hi.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(n.state.facet(Ek)),this.decorations=this.decorator.createDeco(n)}return Xe(t,[{key:"makeDecorator",value:function(n){var e=this;return new IQe({regexp:n.specialChars,decoration:function(i,r,o){var s=r.state.doc,a=tl(i[0],0);if(9==a){var l=s.lineAt(o),c=r.state.tabSize,u=r_(l.text,c,o-l.from);return Hi.replace({widget:new $Qe((c-u%c)*e.view.defaultCharacterWidth)})}return e.decorationCache[a]||(e.decorationCache[a]=Hi.replace({widget:new RQe(n,a)}))},boundary:n.replaceTabs?void 0:/[^]/})}},{key:"update",value:function(n){var e=n.state.facet(Ek);n.startState.facet(Ek)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(n.view)):this.decorations=this.decorator.updateDeco(n,this.decorations)}}]),t}(),{decorations:function(t){return t.decorations}}))]}var Mhe=null,RQe=function(t){Wt(e,mp);var n=Gt(e);function e(i,r){var o;return qe(this,e),(o=n.call(this)).options=i,o.code=r,o}return Xe(e,[{key:"eq",value:function(i){return i.code==this.code}},{key:"toDOM",value:function(i){var l,r=(l=this.code)>=32?"\u2022":10==l?"\u2424":String.fromCharCode(9216+l),o=i.state.phrase("Control character")+" "+(LQe[this.code]||"0x"+this.code.toString(16)),s=this.options.render&&this.options.render(this.code,o,r);if(s)return s;var a=document.createElement("span");return a.textContent=r,a.title=o,a.setAttribute("aria-label",o),a.className="cm-specialChar",a}},{key:"ignoreEvent",value:function(){return!1}}]),e}(),$Qe=function(t){Wt(e,mp);var n=Gt(e);function e(i){var r;return qe(this,e),(r=n.call(this)).width=i,r}return Xe(e,[{key:"eq",value:function(i){return i.width==this.width}},{key:"toDOM",value:function(){var i=document.createElement("span");return i.textContent="\t",i.className="cm-tab",i.style.width=this.width+"px",i}},{key:"ignoreEvent",value:function(){return!1}}]),e}(),PQe=Hi.line({class:"cm-activeLine"}),jQe=Ba.fromClass(function(){function t(n){qe(this,t),this.decorations=this.getDeco(n)}return Xe(t,[{key:"update",value:function(n){(n.docChanged||n.selectionSet)&&(this.decorations=this.getDeco(n.view))}},{key:"getDeco",value:function(n){var e,i=-1,r=[],o=ot(n.state.selection.ranges);try{for(o.s();!(e=o.n()).done;){var a=n.lineBlockAt(e.value.head);a.from>i&&(r.push(PQe.range(a.from)),i=a.from)}}catch(l){o.e(l)}finally{o.f()}return Hi.set(r)}}]),t}(),{decorations:function(t){return t.decorations}});function Ihe(t,n){var s,a,l,e=t.posAtCoords({x:n.clientX,y:n.clientY},!1),i=t.state.doc.lineAt(e),r=e-i.from,o=r>2e3?-1:r==i.length?(a=n.clientX,(l=(s=t).coordsAtPos(s.viewport.from))?Math.round(Math.abs((l.left-a)/s.defaultCharacterWidth)):-1):r_(i.text,t.state.tabSize,e-i.from);return{line:i.number,col:o,off:r}}function HQe(t){var n=t?.eventFilter||function(e){return e.altKey&&0==e.button};return pi.mouseSelectionStyle.of(function(e,i){return n(i)?function BQe(t,n){var e=Ihe(t,n),i=t.state.selection;return e?{update:function(r){if(r.docChanged){var o=r.changes.mapPos(r.startState.doc.line(e.line).from),s=r.state.doc.lineAt(o);e={line:s.number,col:e.col,off:Math.min(e.off,s.length)},i=i.map(r.changes)}},get:function(r,o,s){var a=Ihe(t,r);if(!a)return i;var l=function(c,u,h){var d=Math.min(u.line,h.line),f=Math.max(u.line,h.line),p=[];if(u.off>2e3||h.off>2e3||u.col<0||h.col<0)for(var m=Math.min(u.off,h.off),w=Math.max(u.off,h.off),C=d;C<=f;C++){var k=c.doc.line(C);k.length<=w&&p.push(_n.range(k.from+m,k.to+w))}else for(var E=Math.min(u.col,h.col),L=Math.max(u.col,h.col),B=d;B<=f;B++){var G=c.doc.line(B),oe=jN(G.text,E,c.tabSize,!0);if(oe<0)p.push(_n.cursor(G.to));else{var fe=jN(G.text,L,c.tabSize);p.push(_n.range(G.from+oe,G.from+fe))}}return p}(t.state,e,a);return l.length?_n.create(s?l.concat(i.ranges):l):i}}:null}(e,i):null})}var VQe={Alt:[18,function(t){return t.altKey}],Control:[17,function(t){return t.ctrlKey}],Shift:[16,function(t){return t.shiftKey}],Meta:[91,function(t){return t.metaKey}]},zQe={style:"cursor: crosshair"};function UQe(){var n=di(VQe[(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).key||"Alt"],2),e=n[0],i=n[1],r=Ba.fromClass(function(){function o(s){qe(this,o),this.view=s,this.isDown=!1}return Xe(o,[{key:"set",value:function(s){this.isDown!=s&&(this.isDown=s,this.view.update([]))}}]),o}(),{eventHandlers:{keydown:function(o){this.set(o.keyCode==e||i(o))},keyup:function(o){o.keyCode!=e&&i(o)||this.set(!1)},mousemove:function(o){this.set(i(o))}}});return[r,pi.contentAttributes.of(function(o){var s;return null!==(s=o.plugin(r))&&void 0!==s&&s.isDown?zQe:null})]}var Fhe=function(){function t(n,e,i){qe(this,t),this.facet=e,this.createTooltipView=i,this.input=n.state.facet(e),this.tooltips=this.input.filter(function(r){return r}),this.tooltipViews=this.tooltips.map(i)}return Xe(t,[{key:"update",value:function(n){var e,i=n.state.facet(this.facet),r=i.filter(function(k){return k});if(i===this.input){var o,s=ot(this.tooltipViews);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.update&&a.update(n)}}catch(k){s.e(k)}finally{s.f()}return!1}for(var l=[],c=0;ce.lastTransaction-50&&r.length>0&&r[r.length-1].intersectionRatio<1&&e.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),n.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}return Xe(t,[{key:"createContainer",value:function(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}},{key:"observeIntersection",value:function(){if(this.intersectionObserver){this.intersectionObserver.disconnect();var n,e=ot(this.manager.tooltipViews);try{for(e.s();!(n=e.n()).done;)this.intersectionObserver.observe(n.value.dom)}catch(r){e.e(r)}finally{e.f()}}}},{key:"measureSoon",value:function(){var n=this;this.measureTimeout<0&&(this.measureTimeout=setTimeout(function(){n.measureTimeout=-1,n.maybeMeasure()},50))}},{key:"update",value:function(n){n.transactions.length&&(this.lastTransaction=Date.now());var e=this.manager.update(n);e&&this.observeIntersection();var i=e||n.geometryChanged,r=n.state.facet(CR);if(r.position!=this.position){this.position=r.position;var o,s=ot(this.manager.tooltipViews);try{for(s.s();!(o=s.n()).done;)o.value.dom.style.position=this.position}catch(u){s.e(u)}finally{s.f()}i=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();var a,l=ot(this.manager.tooltipViews);try{for(l.s();!(a=l.n()).done;)this.container.appendChild(a.value.dom)}catch(u){l.e(u)}finally{l.f()}i=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);i&&this.maybeMeasure()}},{key:"createTooltip",value:function(n){var e=n.create(this.view);if(e.dom.classList.add("cm-tooltip"),n.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){var i=document.createElement("div");i.className="cm-tooltip-arrow",e.dom.appendChild(i)}return e.dom.style.position=this.position,e.dom.style.top="-10000px",this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}},{key:"destroy",value:function(){var n,e;this.view.win.removeEventListener("resize",this.measureSoon);var i,r=ot(this.manager.tooltipViews);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.dom.remove(),null===(n=o.destroy)||void 0===n||n.call(o)}}catch(s){r.e(s)}finally{r.f()}null===(e=this.intersectionObserver)||void 0===e||e.disconnect(),clearTimeout(this.measureTimeout)}},{key:"readMeasure",value:function(){var n=this,e=this.view.dom.getBoundingClientRect();return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map(function(i,r){var o=n.manager.tooltipViews[r];return o.getCoords?o.getCoords(i.pos):n.view.coordsAtPos(i.pos)}),size:this.manager.tooltipViews.map(function(i){return i.dom.getBoundingClientRect()}),space:this.view.state.facet(CR).tooltipSpace(this.view)}}},{key:"writeMeasure",value:function(n){for(var e,i=n.editor,r=n.space,o=[],s=0;s=Math.min(i.bottom,r.bottom)||u.rightMath.min(i.right,r.right)+.1)c.style.top="-10000px";else{var d=a.arrow?l.dom.querySelector(".cm-tooltip-arrow"):null,f=d?7:0,p=h.right-h.left,m=null!==(e=Lhe.get(l))&&void 0!==e?e:h.bottom-h.top,w=l.offset||qQe,C=this.view.textDirection==Ts.LTR,k=h.width>r.right-r.left?C?r.left:r.right-h.width:C?Math.min(u.left-(d?14:0)+w.x,r.right-p):Math.max(r.left,u.left-p+(d?14:0)-w.x),E=!!a.above;!a.strictSide&&(E?u.top-(h.bottom-h.top)-w.yr.bottom)&&E==r.bottom-u.bottom>u.top-r.top&&(E=!E);var L=(E?u.top-r.top:r.bottom-u.bottom)-f;if(Lk&&re.topB&&(B=E?re.top-m-2-f:re.bottom+f+2)}}catch(ce){fe.e(ce)}finally{fe.f()}}"absolute"==this.position?(c.style.top=B-n.parent.top+"px",c.style.left=k-n.parent.left+"px"):(c.style.top=B+"px",c.style.left=k+"px"),d&&(d.style.left="".concat(u.left+(C?w.x:-w.x)-(k+14-7),"px")),!0!==l.overlap&&o.push({left:k,top:B,right:G,bottom:B+m}),c.classList.toggle("cm-tooltip-above",E),c.classList.toggle("cm-tooltip-below",!E),l.positioned&&l.positioned(n.space)}}}},{key:"maybeMeasure",value:function(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView))){var n,e=ot(this.manager.tooltipViews);try{for(e.s();!(n=e.n()).done;)n.value.dom.style.top="-10000px"}catch(i){e.e(i)}finally{e.f()}}}}]),t}(),{eventHandlers:{scroll:function(){this.maybeMeasure()}}}),GQe=pi.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"".concat(7,"px"),width:"".concat(14,"px"),position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"".concat(7,"px solid transparent"),borderRight:"".concat(7,"px solid transparent")},".cm-tooltip-above &":{bottom:"-".concat(7,"px"),"&:before":{borderTop:"".concat(7,"px solid #bbb")},"&:after":{borderTop:"".concat(7,"px solid #f5f5f5"),bottom:"1px"}},".cm-tooltip-below &":{top:"-".concat(7,"px"),"&:before":{borderBottom:"".concat(7,"px solid #bbb")},"&:after":{borderBottom:"".concat(7,"px solid #f5f5f5"),top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),qQe={x:0,y:0},Mk=yi.define({enables:[Ohe,GQe]}),Ik=yi.define(),XQe=function(){function t(n){var e=this;qe(this,t),this.view=n,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Fhe(n,Ik,function(i){return e.createHostedView(i)})}return Xe(t,[{key:"createHostedView",value:function(n){var e=n.create(this.view);return e.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(e.dom),this.mounted&&e.mount&&e.mount(this.view),e}},{key:"mount",value:function(n){var e,i=ot(this.manager.tooltipViews);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.mount&&r.mount(n)}}catch(o){i.e(o)}finally{i.f()}this.mounted=!0}},{key:"positioned",value:function(n){var e,i=ot(this.manager.tooltipViews);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.positioned&&r.positioned(n)}}catch(o){i.e(o)}finally{i.f()}}},{key:"update",value:function(n){this.manager.update(n)}}],[{key:"create",value:function(n){return new t(n)}}]),t}(),YQe=Mk.compute([Ik],function(t){var n=t.facet(Ik).filter(function(e){return e});return 0===n.length?null:{pos:Math.min.apply(Math,Ti(n.map(function(e){return e.pos}))),end:Math.max.apply(Math,Ti(n.filter(function(e){return null!=e.end}).map(function(e){return e.end}))),create:XQe.create,above:n[0].above,arrow:n.some(function(e){return e.arrow})}}),KQe=function(){function t(n,e,i,r,o){qe(this,t),this.view=n,this.source=e,this.field=i,this.setHover=r,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:n.dom,time:0},this.checkHover=this.checkHover.bind(this),n.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),n.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}return Xe(t,[{key:"update",value:function(){var n=this;this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(function(){return n.startHover()},20))}},{key:"active",get:function(){return this.view.state.field(this.field)}},{key:"checkHover",value:function(){if(this.hoverTimeout=-1,!this.active){var n=Date.now()-this.lastMove.time;nr.bottom||e.xr.right+this.view.defaultCharacterWidth)){var o=this.view.bidiSpans(this.view.state.doc.lineAt(i)).find(function(c){return c.from<=i&&c.to>=i}),s=o&&o.dir==Ts.RTL?-1:1,a=this.source(this.view,i,e.x1&&void 0!==arguments[1]?arguments[1]:{},e=$r.define(),i=nl.define({create:function(){return null},update:function(r,o){if(r&&(n.hideOnChange&&(o.docChanged||o.selection)||n.hideOn&&n.hideOn(o,r)))return null;if(r&&o.docChanged){var s=o.changes.mapPos(r.pos,-1,Xl.TrackDel);if(null==s)return null;var a=Object.assign(Object.create(null),r);a.pos=s,null!=r.end&&(a.end=o.changes.mapPos(r.end)),r=a}var l,c=ot(o.effects);try{for(c.s();!(l=c.n()).done;){var u=l.value;u.is(e)&&(r=u.value),u.is(ZQe)&&(r=null)}}catch(h){c.e(h)}finally{c.f()}return r},provide:function(r){return Ik.from(r)}});return[i,Ba.define(function(r){return new KQe(r,t,i,e,n.hoverTime||300)}),YQe]}var ZQe=$r.define(),Rhe=yi.define({combine:function(t){var n,e,i,r=ot(t);try{for(r.s();!(i=r.n()).done;){var o=i.value;n=n||o.topContainer,e=e||o.bottomContainer}}catch(s){r.e(s)}finally{r.f()}return{topContainer:n,bottomContainer:e}}});function m_(t,n){var e=t.plugin($he),i=e?e.specs.indexOf(n):-1;return i>-1?e.panels[i]:null}var $he=Ba.fromClass(function(){function t(n){qe(this,t),this.input=n.state.facet(v_),this.specs=this.input.filter(function(s){return s}),this.panels=this.specs.map(function(s){return s(n)});var e=n.state.facet(Rhe);this.top=new Fk(n,!0,e.topContainer),this.bottom=new Fk(n,!1,e.bottomContainer),this.top.sync(this.panels.filter(function(s){return s.top})),this.bottom.sync(this.panels.filter(function(s){return!s.top}));var i,r=ot(this.panels);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.dom.classList.add("cm-panel"),o.mount&&o.mount()}}catch(s){r.e(s)}finally{r.f()}}return Xe(t,[{key:"update",value:function(n){var e=n.state.facet(Rhe);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new Fk(n.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new Fk(n.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();var i=n.state.facet(v_);if(i!=this.input){var r,o=i.filter(function(L){return L}),s=[],a=[],l=[],c=[],u=ot(o);try{for(u.s();!(r=u.n()).done;){var h=r.value,d=this.specs.indexOf(h),f=void 0;d<0?(f=h(n.view),c.push(f)):(f=this.panels[d]).update&&f.update(n),s.push(f),(f.top?a:l).push(f)}}catch(L){u.e(L)}finally{u.f()}this.specs=o,this.panels=s,this.top.sync(a),this.bottom.sync(l);for(var p=0,m=c;pthis.i;){var e=n.elements.pop();n.dom.removeChild(e.dom),e.destroy()}}}]),t}(),zhe=function(){function t(n,e){var i=this;qe(this,t),this.view=n,this.config=e,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");var r=function(s){i.dom.addEventListener(s,function(a){var l,c=a.target;if(c!=i.dom&&i.dom.contains(c)){for(;c.parentNode!=i.dom;)c=c.parentNode;var u=c.getBoundingClientRect();l=(u.top+u.bottom)/2}else l=a.clientY;var h=n.lineBlockAtHeight(l-n.documentTop);e.domEventHandlers[s](n,h,a)&&a.preventDefault()})};for(var o in e.domEventHandlers)r(o);this.markers=Hhe(e.markers(n)),e.initialSpacer&&(this.spacer=new Uhe(n,0,0,[e.initialSpacer(n)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}return Xe(t,[{key:"update",value:function(n){var e=this.markers;if(this.markers=Hhe(this.config.markers(n.view)),this.spacer&&this.config.updateSpacer){var i=this.config.updateSpacer(this.spacer.markers[0],n);i!=this.spacer.markers[0]&&this.spacer.update(n.view,0,0,[i])}var r=n.view.viewport;return!cs.eq(this.markers,e,r.from,r.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(n)}},{key:"destroy",value:function(){var n,e=ot(this.elements);try{for(e.s();!(n=e.n()).done;)n.value.destroy()}catch(i){e.e(i)}finally{e.f()}}}]),t}(),Uhe=function(){function t(n,e,i,r){qe(this,t),this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(n,e,i,r)}return Xe(t,[{key:"update",value:function(n,e,i,r){this.height!=e&&(this.dom.style.height=(this.height=e)+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),function(o,s){if(o.length!=s.length)return!1;for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:{}),Bhe(),rZe]}function Whe(t){for(var n=9;ni&&(i=s,e.push(sZe.range(s)))}}catch(a){r.e(a)}finally{r.f()}return cs.of(e)}),lZe=0,TR=Xe(function t(n,e){qe(this,t),this.from=n,this.to=e}),Hr=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};qe(this,t),this.id=lZe++,this.perNode=!!n.perNode,this.deserialize=n.deserialize||function(){throw new Error("This node type doesn't define a deserialize function")}}return Xe(t,[{key:"add",value:function(n){var e=this;if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof n&&(n=pu.match(n)),function(i){var r=n(i);return void 0===r?null:[e,r]}}}]),t}();Hr.closedBy=new Hr({deserialize:function(t){return t.split(" ")}}),Hr.openedBy=new Hr({deserialize:function(t){return t.split(" ")}}),Hr.group=new Hr({deserialize:function(t){return t.split(" ")}}),Hr.contextHash=new Hr({perNode:!0}),Hr.lookAhead=new Hr({perNode:!0}),Hr.mounted=new Hr({perNode:!0});var cZe=Object.create(null),pu=function(){function t(n,e,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;qe(this,t),this.name=n,this.props=e,this.id=i,this.flags=r}return Xe(t,[{key:"prop",value:function(n){return this.props[n.id]}},{key:"isTop",get:function(){return(1&this.flags)>0}},{key:"isSkipped",get:function(){return(2&this.flags)>0}},{key:"isError",get:function(){return(4&this.flags)>0}},{key:"isAnonymous",get:function(){return(8&this.flags)>0}},{key:"is",value:function(n){if("string"==typeof n){if(this.name==n)return!0;var e=this.prop(Hr.group);return!!e&&e.indexOf(n)>-1}return this.id==n}}],[{key:"define",value:function(n){var e=n.props&&n.props.length?Object.create(null):cZe,r=new t(n.name||"",e,n.id,(n.top?1:0)|(n.skipped?2:0)|(n.error?4:0)|(null==n.name?8:0));if(n.props){var o,s=ot(n.props);try{for(s.s();!(o=s.n()).done;){var a=o.value;if(Array.isArray(a)||(a=a(r)),a){if(a[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");e[a[0].id]=a[1]}}}catch(l){s.e(l)}finally{s.f()}}return r}},{key:"match",value:function(n){var e=Object.create(null);for(var i in n){var r,o=ot(i.split(" "));try{for(o.s();!(r=o.n()).done;)e[r.value]=n[i]}catch(a){o.e(a)}finally{o.f()}}return function(a){for(var l=a.prop(Hr.group),c=-1;c<(l?l.length:0);c++){var u=e[c<0?a.name:l[c]];if(u)return u}}}}]),t}();pu.none=new pu("",Object.create(null),0,8);var rl,uZe=function(){function t(n){qe(this,t),this.types=n;for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"cursorAt",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=Ok.get(this)||this.topNode,r=new $k(i);return r.moveTo(n,e),Ok.set(this,r._tree),r}},{key:"topNode",get:function(){return new __(this,0,0,null)}},{key:"resolve",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=F0(Ok.get(this)||this.topNode,n,e,!1);return Ok.set(this,i),i}},{key:"resolveInner",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=F0(Ghe.get(this)||this.topNode,n,e,!0);return Ghe.set(this,i),i}},{key:"iterate",value:function(n){for(var e=n.enter,i=n.leave,r=n.from,o=void 0===r?0:r,s=n.to,a=void 0===s?this.length:s,l=this.cursor((n.mode||0)|rl.IncludeAnonymous);;){var c=!1;if(l.from<=a&&l.to>=o&&(l.type.isAnonymous||!1!==e(l))){if(l.firstChild())continue;c=!0}for(;c&&i&&!l.type.isAnonymous&&i(l),!l.nextSibling();){if(!l.parent())return;c=!0}}}},{key:"prop",value:function(n){return n.perNode?this.props?this.props[n.id]:void 0:this.type.prop(n)}},{key:"propValues",get:function(){var n=[];if(this.props)for(var e in this.props)n.push([+e,this.props[e]]);return n}},{key:"balance",value:function(){var n=this;return this.children.length<=8?this:MR(pu.none,this.children,this.positions,0,this.children.length,0,this.length,function(i,r,o){return new t(n.type,i,r,o,n.propValues)},(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).makeTree||function(i,r,o){return new t(pu.none,i,r,o)})}}],[{key:"build",value:function(n){return function fZe(t){var n,e=t.buffer,i=t.nodeSet,r=t.maxBufferLength,o=void 0===r?1024:r,s=t.reused,a=void 0===s?[]:s,l=t.minRepeatType,c=void 0===l?i.types.length:l,u=Array.isArray(e)?new hZe(e,e.length):e,h=i.types,d=0,f=0;function p(B,G,oe,fe,re){for(var ce=u.id,ue=u.start,pe=u.end,De=u.size,ie=f;De<0;){if(u.next(),-1==De)return oe.push(a[ce]),void fe.push(ue-B);if(-3==De)return void(d=ce);if(-4==De)return void(f=ce);throw new RangeError("Unrecognized record size: ".concat(De))}var we,le,Ct,Fe=h[ce],z=ue-B;if(pe-ue<=o&&(le=function(Ct,se){var Se=u.fork(),ke=0,Qe=0,gt=0,rt=Se.end-o,zt={size:0,start:0,skip:0};e:for(var Qt=Se.pos-Ct;Se.pos>Qt;){var Pn=Se.size;if(Se.id==se&&Pn>=0)zt.size=ke,zt.start=Qe,zt.skip=gt,gt+=4,ke+=4,Se.next();else{var Mi=Se.pos-Pn;if(Pn<0||Mi=c?4:0,nr=Se.start;for(Se.next();Se.pos>Mi;){if(Se.size<0){if(-3!=Se.size)break e;Sn+=4}else Se.id>=c&&(Sn+=4);Se.next()}Qe=nr,ke+=Pn,gt+=Sn}}return(se<0||ke==Ct)&&(zt.size=ke,zt.start=Qe,zt.skip=gt),zt.size>4?zt:void 0}(u.pos-G,re))){for(var Q=new Uint16Array(le.size-le.skip),Z=u.pos-le.size,me=Q.length;u.pos>Z;)me=C(le.start,Q,me);we=new b_(Q,pe-le.start,i),z=le.start-B}else{var ae=u.pos-De;u.next();for(var Te=[],Oe=[],Ze=ce>=c?ce:-1,Ve=0,wt=pe;u.pos>ae;)Ze>=0&&u.id==Ze&&u.size>=0?(u.end<=wt-o&&(m(Te,Oe,ue,Ve,u.end,wt,Ze,ie),Ve=Te.length,wt=u.end),u.next()):p(ue,ae,Te,Oe,Ze);if(Ze>=0&&Ve>0&&Ve-1&&Ve>0){var ct=(Ct=Fe,function(se,Se,ke){var Qe,gt,rt=0,zt=se.length-1;if(zt>=0&&(Qe=se[zt])instanceof ol){if(!zt&&Qe.type==Ct&&Qe.length==ke)return Qe;(gt=Qe.prop(Hr.lookAhead))&&(rt=Se[zt]+Qe.length+gt)}return w(Ct,se,Se,ke,rt)});we=MR(Fe,Te,Oe,0,Te.length,0,pe-ue,ct,ct)}else we=w(Fe,Te,Oe,pe-ue,ie-pe)}oe.push(we),fe.push(z)}function m(B,G,oe,fe,re,ce,ue,pe){for(var De=[],ie=[];B.length>fe;)De.push(B.pop()),ie.push(G.pop()+oe-re);B.push(w(i.types[ue],De,ie,ce-re,pe-ce)),G.push(re-oe)}function w(B,G,oe,fe){var re=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,ce=arguments.length>5?arguments[5]:void 0;if(d){var ue=[Hr.contextHash,d];ce=ce?[ue].concat(ce):[ue]}if(re>25){var pe=[Hr.lookAhead,re];ce=ce?[pe].concat(ce):[pe]}return new ol(B,G,oe,fe,ce)}function C(B,G,oe){var fe=u.id,re=u.start,ce=u.end,ue=u.size;if(u.next(),ue>=0&&fe4)for(var De=u.pos-(ue-4);u.pos>De;)oe=C(B,G,oe);G[--oe]=pe,G[--oe]=ce-B,G[--oe]=re-B,G[--oe]=fe}else-3==ue?d=fe:-4==ue&&(f=fe);return oe}for(var k=[],E=[];u.pos>0;)p(t.start||0,t.bufferStart||0,k,E,-1);var L=null!==(n=t.length)&&void 0!==n?n:k.length?E[0]+k[0].length:0;return new ol(h[t.topID],k.reverse(),E.reverse(),L)}(n)}}]),t}();ol.empty=new ol(pu.none,[],[],0);var hZe=function(){function t(n,e){qe(this,t),this.buffer=n,this.index=e}return Xe(t,[{key:"id",get:function(){return this.buffer[this.index-4]}},{key:"start",get:function(){return this.buffer[this.index-3]}},{key:"end",get:function(){return this.buffer[this.index-2]}},{key:"size",get:function(){return this.buffer[this.index-1]}},{key:"pos",get:function(){return this.index}},{key:"next",value:function(){this.index-=4}},{key:"fork",value:function(){return new t(this.buffer,this.index)}}]),t}(),b_=function(){function t(n,e,i){qe(this,t),this.buffer=n,this.length=e,this.set=i}return Xe(t,[{key:"type",get:function(){return pu.none}},{key:"toString",value:function(){for(var n=[],e=0;e0));l=s[l+3]);return a}},{key:"slice",value:function(n,e,i,r){for(var o=this.buffer,s=new Uint16Array(e-n),a=n,l=0;a=n&&en;case 1:return e<=n&&i>n;case 2:return i>n;case 4:return!0}}function Xhe(t,n){for(var e=t.childBefore(n);e;){var i=e.lastChild;if(!i||i.to!=e.to)break;i.type.isError&&i.from==i.to?(t=e,e=i.prevSibling):e=i}return t}function F0(t,n,e,i){for(var r;t.from==t.to||(e<1?t.from>=n:t.from>n)||(e>-1?t.to<=n:t.to4&&void 0!==arguments[4]?arguments[4]:0,s=this;;){for(var a=s._tree,l=a.children,c=a.positions,u=e>0?l.length:-1;n!=u;n+=e){var h=l[n],d=c[n]+s.from;if(qhe(r,i,d,d+h.length))if(h instanceof b_){if(o&rl.ExcludeBuffers)continue;var f=h.findChild(0,h.buffer.length,e,i-d,r);if(f>-1)return new AR(new dZe(s,h,n,d),null,f)}else if(o&rl.IncludeAnonymous||!h.type.isAnonymous||ER(h)){var p=void 0;if(!(o&rl.IgnoreMounts)&&h.props&&(p=h.prop(Hr.mounted))&&!p.overlay)return new t(p.tree,d,n,s);var m=new t(h,d,n,s);return o&rl.IncludeAnonymous||!m.type.isAnonymous?m:m.nextChild(e<0?h.children.length-1:0,e,i,r)}}if(o&rl.IncludeAnonymous||!s.type.isAnonymous||(n=s.index>=0?s.index+e:e<0?-1:s._parent._tree.children.length,!(s=s._parent)))return null}}},{key:"firstChild",get:function(){return this.nextChild(0,1,0,4)}},{key:"lastChild",get:function(){return this.nextChild(this._tree.children.length-1,-1,0,4)}},{key:"childAfter",value:function(n){return this.nextChild(0,1,n,2)}},{key:"childBefore",value:function(n){return this.nextChild(this._tree.children.length-1,-1,n,-2)}},{key:"enter",value:function(n,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!(r&rl.IgnoreOverlays)&&(i=this._tree.prop(Hr.mounted))&&i.overlay){var o,s=n-this.from,a=ot(i.overlay);try{for(a.s();!(o=a.n()).done;){var l=o.value,c=l.from,u=l.to;if((e>0?c<=s:c=s:u>s))return new t(i.tree,i.overlay[0].from+this.from,-1,this)}}catch(h){a.e(h)}finally{a.f()}}return this.nextChild(0,1,n,e,r)}},{key:"nextSignificantParent",value:function(){for(var n=this;n.type.isAnonymous&&n._parent;)n=n._parent;return n}},{key:"parent",get:function(){return this._parent?this._parent.nextSignificantParent():null}},{key:"nextSibling",get:function(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}},{key:"prevSibling",get:function(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}},{key:"cursor",value:function(){return new $k(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"tree",get:function(){return this._tree}},{key:"toTree",value:function(){return this._tree}},{key:"resolve",value:function(n){return F0(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!1)}},{key:"resolveInner",value:function(n){return F0(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!0)}},{key:"enterUnfinishedNodesBefore",value:function(n){return Xhe(this,n)}},{key:"getChild",value:function(n){var r=Nk(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null);return r.length?r[0]:null}},{key:"getChildren",value:function(n){return Nk(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}},{key:"toString",value:function(){return this._tree.toString()}},{key:"node",get:function(){return this}},{key:"matchContext",value:function(n){return Rk(this,n)}}]),t}();function Nk(t,n,e,i){var r=t.cursor(),o=[];if(!r.firstChild())return o;if(null!=e)for(;!r.type.is(e);)if(!r.nextSibling())return o;for(;;){if(null!=i&&r.type.is(i))return o;if(r.type.is(n)&&o.push(r.node),!r.nextSibling())return null==i?o:[]}}function Rk(t,n){for(var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.length-1,i=t.parent;e>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(n[e]&&n[e]!=i.name)return!1;e--}}return!0}var dZe=Xe(function t(n,e,i,r){qe(this,t),this.parent=n,this.buffer=e,this.index=i,this.start=r}),AR=function(){function t(n,e,i){qe(this,t),this.context=n,this._parent=e,this.index=i,this.type=n.buffer.set.types[n.buffer.buffer[i]]}return Xe(t,[{key:"name",get:function(){return this.type.name}},{key:"from",get:function(){return this.context.start+this.context.buffer.buffer[this.index+1]}},{key:"to",get:function(){return this.context.start+this.context.buffer.buffer[this.index+2]}},{key:"child",value:function(n,e,i){var r=this.context.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],n,e-this.context.start,i);return o<0?null:new t(this.context,this,o)}},{key:"firstChild",get:function(){return this.child(1,0,4)}},{key:"lastChild",get:function(){return this.child(-1,0,4)}},{key:"childAfter",value:function(n){return this.child(1,n,2)}},{key:"childBefore",value:function(n){return this.child(-1,n,-2)}},{key:"enter",value:function(n,e){if((arguments.length>2&&void 0!==arguments[2]?arguments[2]:0)&rl.ExcludeBuffers)return null;var r=this.context.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],e>0?1:-1,n-this.context.start,e);return o<0?null:new t(this.context,this,o)}},{key:"parent",get:function(){return this._parent||this.context.parent.nextSignificantParent()}},{key:"externalSibling",value:function(n){return this._parent?null:this.context.parent.nextChild(this.context.index+n,n,0,4)}},{key:"nextSibling",get:function(){var n=this.context.buffer,e=n.buffer[this.index+3];return e<(this._parent?n.buffer[this._parent.index+3]:n.buffer.length)?new t(this.context,this._parent,e):this.externalSibling(1)}},{key:"prevSibling",get:function(){var n=this.context.buffer,e=this._parent?this._parent.index+4:0;return this.index==e?this.externalSibling(-1):new t(this.context,this._parent,n.findChild(e,this.index,-1,0,4))}},{key:"cursor",value:function(){return new $k(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"tree",get:function(){return null}},{key:"toTree",value:function(){var n=[],e=[],i=this.context.buffer,r=this.index+4,o=i.buffer[this.index+3];return o>r&&(n.push(i.slice(r,o,i.buffer[this.index+1],i.buffer[this.index+2])),e.push(0)),new ol(this.type,n,e,this.to-this.from)}},{key:"resolve",value:function(n){return F0(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!1)}},{key:"resolveInner",value:function(n){return F0(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!0)}},{key:"enterUnfinishedNodesBefore",value:function(n){return Xhe(this,n)}},{key:"toString",value:function(){return this.context.buffer.childString(this.index)}},{key:"getChild",value:function(n){var r=Nk(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null);return r.length?r[0]:null}},{key:"getChildren",value:function(n){return Nk(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}},{key:"node",get:function(){return this}},{key:"matchContext",value:function(n){return Rk(this,n)}}]),t}(),$k=function(){function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(qe(this,t),this.mode=e,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,n instanceof __)this.yieldNode(n);else{this._tree=n.context.parent,this.buffer=n.context;for(var i=n._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=n,this.yieldBuf(n.index)}}return Xe(t,[{key:"name",get:function(){return this.type.name}},{key:"yieldNode",value:function(n){return!!n&&(this._tree=n,this.type=n.type,this.from=n.from,this.to=n.to,!0)}},{key:"yieldBuf",value:function(n,e){this.index=n;var i=this.buffer,r=i.start,o=i.buffer;return this.type=e||o.set.types[o.buffer[n]],this.from=r+o.buffer[n+1],this.to=r+o.buffer[n+2],!0}},{key:"yield",value:function(n){return!!n&&(n instanceof __?(this.buffer=null,this.yieldNode(n)):(this.buffer=n.context,this.yieldBuf(n.index,n.type)))}},{key:"toString",value:function(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}},{key:"enterChild",value:function(n,e,i){if(!this.buffer)return this.yield(this._tree.nextChild(n<0?this._tree._tree.children.length-1:0,n,e,i,this.mode));var r=this.buffer.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],n,e-this.buffer.start,i);return!(o<0)&&(this.stack.push(this.index),this.yieldBuf(o))}},{key:"firstChild",value:function(){return this.enterChild(1,0,4)}},{key:"lastChild",value:function(){return this.enterChild(-1,0,4)}},{key:"childAfter",value:function(n){return this.enterChild(1,n,2)}},{key:"childBefore",value:function(n){return this.enterChild(-1,n,-2)}},{key:"enter",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.mode;return this.buffer?!(i&rl.ExcludeBuffers)&&this.enterChild(1,n,e):this.yield(this._tree.enter(n,e,i))}},{key:"parent",value:function(){if(!this.buffer)return this.yieldNode(this.mode&rl.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());var n=this.mode&rl.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(n)}},{key:"sibling",value:function(n){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+n,n,0,4,this.mode));var e=this.buffer.buffer,i=this.stack.length-1;if(n<0){var r=i<0?0:this.stack[i]+4;if(this.index!=r)return this.yieldBuf(e.findChild(r,this.index,-1,0,4))}else{var o=e.buffer[this.index+3];if(o<(i<0?e.buffer.length:e.buffer[this.stack[i]+3]))return this.yieldBuf(o)}return i<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+n,n,0,4,this.mode))}},{key:"nextSibling",value:function(){return this.sibling(1)}},{key:"prevSibling",value:function(){return this.sibling(-1)}},{key:"atLastNode",value:function(n){var e,i,r=this.buffer;if(r){if(n>0){if(this.index-1)for(var l=e+n,c=n<0?-1:i._tree.children.length;l!=c;l+=n){var u=i._tree.children[l];if(this.mode&rl.IncludeAnonymous||u instanceof b_||!u.type.isAnonymous||ER(u))return!1}}return!0}},{key:"move",value:function(n,e){if(e&&this.enterChild(n,0,4))return!0;for(;;){if(this.sibling(n))return!0;if(this.atLastNode(n)||!this.parent())return!1}}},{key:"next",value:function(){return this.move(1,!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"prev",value:function(){return this.move(-1,!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"moveTo",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(this.from==this.to||(e<1?this.from>=n:this.from>n)||(e>-1?this.to<=n:this.to=0;){for(var s=n;s;s=s._parent)if(s.index==r){if(r==this.index)return s;e=s,i=o+1;break e}r=this.stack[--o]}for(var a=i;a=0;o--){if(o<0)return Rk(this.node,n,r);var s=i[e.buffer[this.stack[o]]];if(!s.isAnonymous){if(n[r]&&n[r]!=s.name)return!1;r--}}return!0}}]),t}();function ER(t){return t.children.some(function(n){return n instanceof b_||!n.type.isAnonymous||ER(n)})}var Yhe=new WeakMap;function Pk(t,n){if(!t.isAnonymous||n instanceof b_||n.type!=t)return 1;var e=Yhe.get(n);if(null==e){e=1;var i,r=ot(n.children);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.type!=t||!(o instanceof ol)){e=1;break}e+=Pk(t,o)}}catch(s){r.e(s)}finally{r.f()}Yhe.set(n,e)}return e}function MR(t,n,e,i,r,o,s,a,l){for(var c=0,u=i;u=h)break;oe+=fe}if(L==B+1){if(oe>h){var re=m[B];p(re.children,re.positions,0,re.children.length,w[B]+E);continue}d.push(m[B])}else d.push(MR(t,m,w,B,L,G,w[L-1]+m[L-1].length-G,null,l));f.push(G+E-o)}}(n,e,i,r,0),(a||l)(d,f,s)}var jk=function(){function t(n,e,i,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];qe(this,t),this.from=n,this.to=e,this.tree=i,this.offset=r,this.open=(o?1:0)|(s?2:0)}return Xe(t,[{key:"openStart",get:function(){return(1&this.open)>0}},{key:"openEnd",get:function(){return(2&this.open)>0}}],[{key:"addTree",value:function(n){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=[new t(0,n.length,n,0,!1,arguments.length>2&&void 0!==arguments[2]&&arguments[2])],s=ot(i);try{for(s.s();!(e=s.n()).done;){var a=e.value;a.to>n.length&&o.push(a)}}catch(l){s.e(l)}finally{s.f()}return o}},{key:"applyChanges",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:128;if(!e.length)return n;for(var r=[],o=1,s=n.length?n[0]:null,a=0,l=0,c=0;;a++){var u=a=i)for(;s&&s.from=d.from||h<=d.to||c){var f=Math.max(d.from,l)-c,p=Math.min(d.to,h)-c;d=f>=p?null:new t(f,p,d.tree,d.offset+c,a>0,!!u)}if(d&&r.push(d),s.to>h)break;s=o-1?e:Jhe.get(e.base||e,e.modified.concat(n).sort(function(i,r){return i.id-r.id}))}}}]),t}(),mZe=0,Jhe=function(){function t(){qe(this,t),this.instances=[],this.id=mZe++}return Xe(t,null,[{key:"get",value:function(n,e){if(!e.length)return n;var i=e[0].instances.find(function(m){return m.base==n&&(w=e).length==(C=m.modified).length&&w.every(function(k,E){return k==C[E]});var w,C});if(i)return i;var r,o=[],s=new yp(o,n,e),a=ot(e);try{for(a.s();!(r=a.n()).done;)r.value.instances.push(s)}catch(m){a.e(m)}finally{a.f()}var l,c=Qhe(e),u=ot(n.set);try{for(u.s();!(l=u.n()).done;){var h,d=l.value,f=ot(c);try{for(f.s();!(h=f.n()).done;)o.push(t.get(d,h.value))}catch(m){f.e(m)}finally{f.f()}}}catch(m){u.e(m)}finally{u.f()}return s}}]),t}();function Qhe(t){for(var n=[t],e=0;e0&&u+3==s.length){l=1;break}var h=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(c);if(!h)throw new RangeError("Invalid path: "+s);if(a.push("*"==h[0]?"":'"'==h[0][0]?JSON.parse(h[0]):h[0]),(u+=h[0].length)==s.length)break;var d=s[u++];if(u==s.length&&"!"==d){l=0;break}if("/"!=d)throw new RangeError("Invalid path: "+s);c=s.slice(u)}var f=a.length-1,p=a[f];if(!p)throw new RangeError("Invalid path: "+s);var m=new vZe(i,l,f>0?a.slice(0,f):null);n[p]=m.sort(n[p])}}}catch(w){o.e(w)}finally{o.f()}}return ede.add(n)}var ede=new Hr,vZe=function(){function t(n,e,i,r){qe(this,t),this.tags=n,this.mode=e,this.context=i,this.next=r}return Xe(t,[{key:"sort",value:function(n){return!n||n.depth3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t.length,o=new _Ze(i,Array.isArray(n)?n:[n],e);o.highlightRange(t.cursor(),i,r,"",o.highlighters),o.flush(r)}var IR,_Ze=function(){function t(n,e,i){qe(this,t),this.at=n,this.highlighters=e,this.span=i,this.class=""}return Xe(t,[{key:"startSpan",value:function(n,e){e!=this.class&&(this.flush(n),n>this.at&&(this.at=n),this.class=e)}},{key:"flush",value:function(n){n>this.at&&this.class&&this.span(this.at,n,this.class)}},{key:"highlightRange",value:function(n,e,i,r,o){var s=n.type,a=n.from,l=n.to;if(!(a>=i||l<=e)){s.isTop&&(o=this.highlighters.filter(function(oe){return!oe.scope||oe.scope(s)}));for(var c=r,u=s.prop(ede),h=!1;u;){if(!u.context||n.matchContext(u.context)){var d=yZe(o,u.tags);d&&(c&&(c+=" "),c+=d,1==u.mode?r+=(r?" ":"")+d:0==u.mode&&(h=!0));break}u=u.next}if(this.startSpan(n.from,c),!h){var f=n.tree&&n.tree.prop(Hr.mounted);if(f&&f.overlay){for(var p=n.node.enter(f.overlay[0].from+a,1),m=this.highlighters.filter(function(oe){return!oe.scope||oe.scope(f.tree.type)}),w=n.firstChild(),C=0,k=a;;C++){var E=C=L)&&n.nextSibling()););if(!E||L>i)break;(k=E.to+a)>e&&(this.highlightRange(p.cursor(),Math.max(e,E.from+a),Math.min(i,k),r,m),this.startSpan(k,c))}w&&n.parent()}else if(n.firstChild()){do{if(!(n.to<=e)){if(n.from>=i)break;this.highlightRange(n,e,i,r,o),this.startSpan(Math.min(i,n.to),c)}}while(n.nextSibling());n.parent()}}}}}]),t}(),Hn=yp.define,Bk=Hn(),bp=Hn(),nde=Hn(bp),ide=Hn(bp),_p=Hn(),Hk=Hn(_p),FR=Hn(_p),gd=Hn(),Xg=Hn(gd),md=Hn(),vd=Hn(),LR=Hn(),w_=Hn(LR),Vk=Hn(),Ln={comment:Bk,lineComment:Hn(Bk),blockComment:Hn(Bk),docComment:Hn(Bk),name:bp,variableName:Hn(bp),typeName:nde,tagName:Hn(nde),propertyName:ide,attributeName:Hn(ide),className:Hn(bp),labelName:Hn(bp),namespace:Hn(bp),macroName:Hn(bp),literal:_p,string:Hk,docString:Hn(Hk),character:Hn(Hk),attributeValue:Hn(Hk),number:FR,integer:Hn(FR),float:Hn(FR),bool:Hn(_p),regexp:Hn(_p),escape:Hn(_p),color:Hn(_p),url:Hn(_p),keyword:md,self:Hn(md),null:Hn(md),atom:Hn(md),unit:Hn(md),modifier:Hn(md),operatorKeyword:Hn(md),controlKeyword:Hn(md),definitionKeyword:Hn(md),moduleKeyword:Hn(md),operator:vd,derefOperator:Hn(vd),arithmeticOperator:Hn(vd),logicOperator:Hn(vd),bitwiseOperator:Hn(vd),compareOperator:Hn(vd),updateOperator:Hn(vd),definitionOperator:Hn(vd),typeOperator:Hn(vd),controlOperator:Hn(vd),punctuation:LR,separator:Hn(LR),bracket:w_,angleBracket:Hn(w_),squareBracket:Hn(w_),paren:Hn(w_),brace:Hn(w_),content:gd,heading:Xg,heading1:Hn(Xg),heading2:Hn(Xg),heading3:Hn(Xg),heading4:Hn(Xg),heading5:Hn(Xg),heading6:Hn(Xg),contentSeparator:Hn(gd),list:Hn(gd),quote:Hn(gd),emphasis:Hn(gd),strong:Hn(gd),link:Hn(gd),monospace:Hn(gd),strikethrough:Hn(gd),inserted:Hn(),deleted:Hn(),changed:Hn(),invalid:Hn(),meta:Vk,documentMeta:Hn(Vk),annotation:Hn(Vk),processingInstruction:Hn(Vk),definition:yp.defineModifier(),constant:yp.defineModifier(),function:yp.defineModifier(),standard:yp.defineModifier(),local:yp.defineModifier(),special:yp.defineModifier()};tde([{tag:Ln.link,class:"tok-link"},{tag:Ln.heading,class:"tok-heading"},{tag:Ln.emphasis,class:"tok-emphasis"},{tag:Ln.strong,class:"tok-strong"},{tag:Ln.keyword,class:"tok-keyword"},{tag:Ln.atom,class:"tok-atom"},{tag:Ln.bool,class:"tok-bool"},{tag:Ln.url,class:"tok-url"},{tag:Ln.labelName,class:"tok-labelName"},{tag:Ln.inserted,class:"tok-inserted"},{tag:Ln.deleted,class:"tok-deleted"},{tag:Ln.literal,class:"tok-literal"},{tag:Ln.string,class:"tok-string"},{tag:Ln.number,class:"tok-number"},{tag:[Ln.regexp,Ln.escape,Ln.special(Ln.string)],class:"tok-string2"},{tag:Ln.variableName,class:"tok-variableName"},{tag:Ln.local(Ln.variableName),class:"tok-variableName tok-local"},{tag:Ln.definition(Ln.variableName),class:"tok-variableName tok-definition"},{tag:Ln.special(Ln.variableName),class:"tok-variableName2"},{tag:Ln.definition(Ln.propertyName),class:"tok-propertyName tok-definition"},{tag:Ln.typeName,class:"tok-typeName"},{tag:Ln.namespace,class:"tok-namespace"},{tag:Ln.className,class:"tok-className"},{tag:Ln.macroName,class:"tok-macroName"},{tag:Ln.propertyName,class:"tok-propertyName"},{tag:Ln.operator,class:"tok-operator"},{tag:Ln.comment,class:"tok-comment"},{tag:Ln.meta,class:"tok-meta"},{tag:Ln.invalid,class:"tok-invalid"},{tag:Ln.punctuation,class:"tok-punctuation"}]);var L0=new Hr,wZe=new Hr,hh=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";qe(this,t),this.data=n,this.name=r,Qo.prototype.hasOwnProperty("tree")||Object.defineProperty(Qo.prototype,"tree",{get:function(){return kl(this)}}),this.parser=e,this.extension=[wp.of(this),Qo.languageData.of(function(o,s,a){var l=rde(o,s,a),c=l.type.prop(L0);if(!c)return[];var u=o.facet(c),h=l.type.prop(wZe);if(h){var d,f=l.resolve(s-l.from,a),p=ot(h);try{for(p.s();!(d=p.n()).done;){var m=d.value;if(m.test(f,o)){var w=o.facet(m.facet);return"replace"==m.type?w:w.concat(u)}}}catch(C){p.e(C)}finally{p.f()}}return u})].concat(i)}return Xe(t,[{key:"isActiveAt",value:function(n,e){return rde(n,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1).type.prop(L0)==this.data}},{key:"findRegions",value:function(n){var e=this,i=n.facet(wp);if(i?.data==this.data)return[{from:0,to:n.doc.length}];if(!i||!i.allowsNesting)return[];var r=[];return function o(s,a){if(s.prop(L0)!=e.data){var l=s.prop(Hr.mounted);if(l){if(l.tree.prop(L0)==e.data){if(l.overlay){var c,u=ot(l.overlay);try{for(u.s();!(c=u.n()).done;){var h=c.value;r.push({from:h.from+a,to:h.to+a})}}catch(m){u.e(m)}finally{u.f()}}else r.push({from:a,to:a+s.length});return}if(l.overlay){var d=r.length;if(o(l.tree,l.overlay[0].from+a),r.length>d)return}}for(var f=0;f=this.cursorPos?this.doc.sliceString(n,e):this.string.slice(n-i,e-i)}}]),t}(),x_=null,SZe=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0;qe(this,t),this.parser=n,this.state=e,this.fragments=i,this.tree=r,this.treeLen=o,this.viewport=s,this.skipped=a,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}return Xe(t,[{key:"startParse",value:function(){return this.parser.startParse(new CZe(this.state.doc),this.fragments)}},{key:"work",value:function(n,e){var i=this;return null!=e&&e>=this.state.doc.length&&(e=void 0),this.tree!=ol.empty&&this.isDone(e??this.state.doc.length)?(this.takeTree(),!0):this.withContext(function(){var r;if("number"==typeof n){var o=Date.now()+n;n=function(){return Date.now()>o}}for(i.parse||(i.parse=i.startParse()),null!=e&&(null==i.parse.stoppedAt||i.parse.stoppedAt>e)&&e=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>n)&&this.parse.stopAt(n),this.withContext(function(){for(;!(e=i.parse.advance()););}),this.treeLen=n,this.tree=e,this.fragments=this.withoutTempSkipped(jk.addTree(this.tree,this.fragments,!0)),this.parse=null)}},{key:"withContext",value:function(n){var e=x_;x_=this;try{return n()}finally{x_=e}}},{key:"withoutTempSkipped",value:function(n){for(var e;e=this.tempSkipped.pop();)n=ode(n,e.from,e.to);return n}},{key:"changes",value:function(n,e){var i=this.fragments,r=this.tree,o=this.treeLen,s=this.viewport,a=this.skipped;if(this.takeTree(),!n.empty){var l=[];if(n.iterChangedRanges(function(p,m,w,C){return l.push({fromA:p,toA:m,fromB:w,toB:C})}),i=jk.applyChanges(i,l),r=ol.empty,o=0,s={from:n.mapPos(s.from,-1),to:n.mapPos(s.to,1)},this.skipped.length){a=[];var c,u=ot(this.skipped);try{for(u.s();!(c=u.n()).done;){var h=c.value,d=n.mapPos(h.from,1),f=n.mapPos(h.to,-1);dn.from&&(this.fragments=ode(this.fragments,o,s),this.skipped.splice(i--,1))}return!(this.skipped.length>=e||(this.reset(),0))}},{key:"reset",value:function(){this.parse&&(this.takeTree(),this.parse=null)}},{key:"skipUntilInView",value:function(n,e){this.skipped.push({from:n,to:e})}},{key:"isDone",value:function(n){n=Math.min(n,this.state.doc.length);var e=this.fragments;return this.treeLen>=n&&e.length&&0==e[0].from&&e[0].to>=n}}],[{key:"create",value:function(n,e,i){return new t(n,e,[],ol.empty,0,i,[],null)}},{key:"getSkippingParser",value:function(n){return new(function(e){Wt(r,Khe);var i=Gt(r);function r(){return qe(this,r),i.apply(this,arguments)}return Xe(r,[{key:"createParse",value:function(o,s,a){var l=a[0].from,c=a[a.length-1].to;return{parsedPos:l,advance:function(){var u=x_;if(u){var h,d=ot(a);try{for(d.s();!(h=d.n()).done;)u.tempSkipped.push(h.value)}catch(p){d.e(p)}finally{d.f()}n&&(u.scheduleOn=u.scheduleOn?Promise.all([u.scheduleOn,n]):n)}return this.parsedPos=c,new ol(pu.none,[],[],c-l)},stoppedAt:null,stopAt:function(){}}}}]),r}())}},{key:"get",value:function(){return x_}}]),t}();function ode(t,n,e){return jk.applyChanges(t,[{fromA:n,toA:e,fromB:n,toB:e}])}var OR=function(){function t(n){qe(this,t),this.context=n,this.tree=n.tree}return Xe(t,[{key:"apply",value:function(n){if(!n.docChanged&&this.tree==this.context.tree)return this;var e=this.context.changes(n.changes,n.state),i=this.context.treeLen==n.startState.doc.length?void 0:Math.max(n.changes.mapPos(this.context.treeLen),e.viewport.to);return e.work(20,i)||e.takeTree(),new t(e)}}],[{key:"init",value:function(n){var e=Math.min(3e3,n.doc.length),i=SZe.create(n.facet(wp).parser,n,{from:0,to:e});return i.work(20,e)||i.takeTree(),new t(i)}}]),t}();hh.state=nl.define({create:OR.init,update:function(t,n){var e,i=ot(n.effects);try{for(i.s();!(e=i.n()).done;){var r=e.value;if(r.is(hh.setState))return r.value}}catch(o){i.e(o)}finally{i.f()}return n.startState.facet(wp)!=n.state.facet(wp)?OR.init(n.state):t.apply(n)}});var sde=function(t){var n=setTimeout(function(){return t()},500);return function(){return clearTimeout(n)}};typeof requestIdleCallback<"u"&&(sde=function(t){var n=-1,e=setTimeout(function(){n=requestIdleCallback(t,{timeout:400})},100);return function(){return n<0?clearTimeout(e):cancelIdleCallback(n)}});var NR=typeof navigator<"u"&&null!==(IR=navigator.scheduling)&&void 0!==IR&&IR.isInputPending?function(){return navigator.scheduling.isInputPending()}:null,kZe=Ba.fromClass(function(){function t(n){qe(this,t),this.view=n,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}return Xe(t,[{key:"update",value:function(n){var e=this.view.state.field(hh.state).context;(e.updateViewport(n.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),n.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}},{key:"scheduleWork",value:function(){if(!this.working){var n=this.view.state,e=n.field(hh.state);e.tree==e.context.tree&&e.context.isDone(n.doc.length)||(this.working=sde(this.work))}}},{key:"work",value:function(n){this.working=null;var e=Date.now();if(this.chunkEndo+1e3,c=s.context.work(function(){return NR&&NR()||Date.now()>a},o+(l?0:1e5));this.chunkBudget-=Date.now()-e,(c||this.chunkBudget<=0)&&(s.context.takeTree(),this.view.dispatch({effects:hh.setState.of(new OR(s.context))})),this.chunkBudget>0&&(!c||l)&&this.scheduleWork(),this.checkAsyncSchedule(s.context)}}}},{key:"checkAsyncSchedule",value:function(n){var e=this;n.scheduleOn&&(this.workScheduled++,n.scheduleOn.then(function(){return e.scheduleWork()}).catch(function(i){return Pc(e.view.state,i)}).then(function(){return e.workScheduled--}),n.scheduleOn=null)}},{key:"destroy",value:function(){this.working&&this.working()}},{key:"isWorking",value:function(){return!!(this.working||this.workScheduled>0)}}]),t}(),{eventHandlers:{focus:function(){this.scheduleWork()}}}),wp=yi.define({combine:function(t){return t.length?t[0]:null},enables:function(t){return[hh.state,kZe,pi.contentAttributes.compute([t],function(n){var e=n.facet(t);return e&&e.name?{"data-language":e.name}:{}})]}}),DZe=Xe(function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];qe(this,t),this.language=n,this.support=e,this.extension=[n,e]}),TZe=yi.define(),zk=yi.define({combine:function(t){if(!t.length)return" ";var n=t[0];if(!n||/\S/.test(n)||Array.from(n).some(function(e){return e!=n[0]}))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return n}});function O0(t){var n=t.facet(zk);return 9==n.charCodeAt(0)?t.tabSize*n.length:n.length}function C_(t,n){var e="",i=t.tabSize,r=t.facet(zk)[0];if("\t"==r){for(;n>=i;)e+="\t",n-=i;r=" "}for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:{};qe(this,t),this.state=n,this.options=e,this.unit=O0(n)}return Xe(t,[{key:"lineAt",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=this.state.doc.lineAt(n),r=this.options,o=r.simulateBreak;return null!=o&&o>=i.from&&o<=i.to?r.simulateDoubleBreak&&o==n?{text:"",from:n}:(e<0?o1&&void 0!==arguments[1]?arguments[1]:1),r=i.text,o=i.from;return r.slice(n-o,Math.min(r.length,n+100-o))}},{key:"column",value:function(n){var i=this.lineAt(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),r=i.text,o=i.from,s=this.countColumn(r,n-o),a=this.options.overrideIndentation?this.options.overrideIndentation(o):-1;return a>-1&&(s+=a-this.countColumn(r,r.search(/\S|$/))),s}},{key:"countColumn",value:function(n){return r_(n,this.state.tabSize,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.length)}},{key:"lineIndent",value:function(n){var i=this.lineAt(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),r=i.text,s=this.options.overrideIndentation;if(s){var a=s(i.from);if(a>-1)return a}return this.countColumn(r,r.search(/\S|$/))}},{key:"simulatedBreak",get:function(){return this.options.simulateBreak||null}}]),t}(),ade=new Hr;function AZe(t){var n=t.type.prop(ade);if(n)return n;var e,i=t.firstChild;if(i&&(e=i.type.prop(Hr.closedBy))){var r=t.lastChild,o=r&&e.indexOf(r.name)>-1;return function(s){return function(a,l,c,u,h){var f=a.textAfter.match(/^\s*/)[0].length,p=h==a.pos+f,m=function(w){var C=w.node,k=C.childAfter(C.from),E=C.lastChild;if(!k)return null;for(var L=w.options.simulateBreak,B=w.state.doc.lineAt(k.from),G=null==L||L<=B.from?B.to:Math.min(B.to,L),oe=k.to;;){var fe=C.childAfter(oe);if(!fe||fe==E)return null;if(!fe.type.isSkipped)return fe.from0&&void 0!==arguments[0]?arguments[0]:{},n=t.except,e=t.units,i=void 0===e?1:e;return function(r){var o=n&&n.test(r.textAfter);return r.baseIndent+(o?0:i*r.unit)}}var FZe=yi.define(),ude=new Hr;function Wk(t,n,e){var i,r=ot(t.facet(FZe));try{for(r.s();!(i=r.n()).done;){var o=(0,i.value)(t,n,e);if(o)return o}}catch(s){r.e(s)}finally{r.f()}return function(s,a,l){var c=kl(s);if(c.lengthl)){if(d&&f.from=a&&m.to>l&&(d=m)}}return d}(t,n,e)}function hde(t,n){var e=n.mapPos(t.from,1),i=n.mapPos(t.to,-1);return e>=i?void 0:{from:e,to:i}}var Gk=$r.define({map:hde}),S_=$r.define({map:hde});function dde(t){var n,e=[],i=ot(t.state.selection.ranges);try{var r=function(){var o=n.value.head;if(e.some(function(s){return s.from<=o&&s.to>=o}))return"continue";e.push(t.lineBlockAt(o))};for(i.s();!(n=i.n()).done;)r()}catch(o){i.e(o)}finally{i.f()}return e}var Yg=nl.define({create:function(){return Hi.none},update:function(t,n){t=t.map(n.changes);var e,i=ot(n.effects);try{var r=function(){var c,u,h,a=e.value;a.is(Gk)&&(u=a.value.to,h=!1,t.between(c=a.value.from,c,function(d,f){d==c&&f==u&&(h=!0)}),!h)?t=t.update({add:[vde.range(a.value.from,a.value.to)]}):a.is(S_)&&(t=t.update({filter:function(l,c){return a.value.from!=l||a.value.to!=c},filterFrom:a.value.from,filterTo:a.value.to}))};for(i.s();!(e=i.n()).done;)r()}catch(a){i.e(a)}finally{i.f()}if(n.selection){var o=!1,s=n.selection.main.head;t.between(s,s,function(a,l){as&&(o=!0)}),o&&(t=t.update({filterFrom:s,filterTo:s,filter:function(a,l){return l<=s||a>=s}}))}return t},provide:function(t){return pi.decorations.from(t)},toJSON:function(t,n){var e=[];return t.between(0,n.doc.length,function(i,r){e.push(i,r)}),e},fromJSON:function(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");for(var n=[],e=0;eo)&&(r={from:o,to:s})}),r}function fde(t,n){return t.field(Yg,!1)?n:n.concat($r.appendConfig.of(mde()))}function pde(t,n){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=t.state.doc.lineAt(n.from).number,r=t.state.doc.lineAt(n.to).number;return pi.announce.of("".concat(t.state.phrase(e?"Folded lines":"Unfolded lines")," ").concat(i," ").concat(t.state.phrase("to")," ").concat(r,"."))}var LZe=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:function(t){var n,e=ot(dde(t));try{for(e.s();!(n=e.n()).done;){var i=n.value,r=Wk(t.state,i.from,i.to);if(r)return t.dispatch({effects:fde(t.state,[Gk.of(r),pde(t,r)])}),!0}}catch(o){e.e(o)}finally{e.f()}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:function(t){if(!t.state.field(Yg,!1))return!1;var n,e=[],i=ot(dde(t));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=qk(t.state,r.from,r.to);o&&e.push(S_.of(o),pde(t,o,!1))}}catch(s){i.e(s)}finally{i.f()}return e.length&&t.dispatch({effects:e}),e.length>0}},{key:"Ctrl-Alt-[",run:function(t){for(var n=t.state,e=[],i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=Object.assign(Object.assign({},NZe),t),e=new $R(n,!0),i=new $R(n,!1),r=Ba.fromClass(function(){function s(a){qe(this,s),this.from=a.viewport.from,this.markers=this.buildMarkers(a)}return Xe(s,[{key:"update",value:function(a){(a.docChanged||a.viewportChanged||a.startState.facet(wp)!=a.state.facet(wp)||a.startState.field(Yg,!1)!=a.state.field(Yg,!1)||kl(a.startState)!=kl(a.state)||n.foldingChanged(a))&&(this.markers=this.buildMarkers(a.view))}},{key:"buildMarkers",value:function(a){var l,c=new Wg,u=ot(a.viewportLineBlocks);try{for(u.s();!(l=u.n()).done;){var h=l.value,d=qk(a.state,h.from,h.to)?i:Wk(a.state,h.from,h.to)?e:null;d&&c.add(h.from,h.from,d)}}catch(f){u.e(f)}finally{u.f()}return c.finish()}}]),s}()),o=n.domEventHandlers;return[r,jhe({class:"cm-foldGutter",markers:function(s){var a;return(null===(a=s.plugin(r))||void 0===a?void 0:a.markers)||cs.empty},initialSpacer:function(){return new $R(n,!1)},domEventHandlers:Object.assign(Object.assign({},o),{click:function(s,a,l){if(o.click&&o.click(s,a,l))return!0;var c=qk(s.state,a.from,a.to);if(c)return s.dispatch({effects:S_.of(c)}),!0;var u=Wk(s.state,a.from,a.to);return!!u&&(s.dispatch({effects:Gk.of(u)}),!0)}})}),mde()]}var $Ze=pi.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}}),PR=function(){function t(n,e){var i;function r(a){var l=pp.newName();return(i||(i=Object.create(null)))["."+l]=a,l}qe(this,t),this.specs=n;var o="string"==typeof e.all?e.all:e.all?r(e.all):void 0,s=e.scope;this.scope=s instanceof hh?function(a){return a.prop(L0)==s.data}:s?function(a){return a==s}:void 0,this.style=tde(n.map(function(a){return{tag:a.tag,class:a.class||r(Object.assign({},a,{tag:null}))}}),{all:o}).style,this.module=i?new pp(i):null,this.themeType=e.themeType}return Xe(t,null,[{key:"define",value:function(n,e){return new t(n,e||{})}}]),t}(),jR=yi.define(),yde=yi.define({combine:function(t){return t.length?[t[0]]:null}});function BR(t){var n=t.facet(jR);return n.length?n:t.facet(yde)}function bde(t,n){var e,i=[jZe];return t instanceof PR&&(t.module&&i.push(pi.styleModule.of(t.module)),e=t.themeType),i.push(n?.fallback?yde.of(t):e?jR.computeN([pi.darkTheme],function(r){return r.facet(pi.darkTheme)==("dark"==e)?[t]:[]}):jR.of(t)),i}var PZe=function(){function t(n){qe(this,t),this.markCache=Object.create(null),this.tree=kl(n.state),this.decorations=this.buildDeco(n,BR(n.state))}return Xe(t,[{key:"update",value:function(n){var e=kl(n.state),i=BR(n.state),r=i!=BR(n.startState);e.length0&&yd(n.state,s.head-1,1,r)||r.afterCursor&&(yd(n.state,s.head,1,r)||s.head0&&void 0!==arguments[0]?arguments[0]:{}),GZe]}var XZe=new Hr;function HR(t,n,e){var i=t.prop(n<0?Hr.openedBy:Hr.closedBy);if(i)return i;if(1==t.name.length){var r=e.indexOf(t.name);if(r>-1&&r%2==(n<0?1:0))return[e[r+n]]}return null}function VR(t){var n=t.type.prop(XZe);return n?n(t.node):t}function yd(t,n,e){for(var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=i.maxScanDistance||1e4,o=i.brackets||"()[]{}",s=kl(t),a=s.resolveInner(n,e),l=a;l;l=l.parent){var c=HR(l.type,e,o);if(c&&l.from0?n>=u.from&&nu.from&&n<=u.to))return YZe(0,0,e,l,u,c,o)}}return function KZe(t,n,e,i,r,o,s){var a=e<0?t.sliceDoc(n-1,n):t.sliceDoc(n,n+1),l=s.indexOf(a);if(l<0||l%2==0!=e>0)return null;for(var c={from:e<0?n-1:n,to:e>0?n+1:n},u=t.doc.iterRange(n,e>0?t.doc.length:0),h=0,d=0;!u.next().done&&d<=o;){var f=u.value;e<0&&(d+=f.length);for(var p=n+d*e,m=e>0?0:f.length-1,w=e>0?f.length:-1;m!=w;m+=e){var C=s.indexOf(f[m]);if(!(C<0||i.resolveInner(p+m,1).type!=r))if(C%2==0==e>0)h++;else{if(1==h)return{start:c,end:{from:p+m,to:p+m+1},matched:C>>1==l>>1};h--}}e>0&&(d+=f.length)}return u.done?{start:c,matched:!1}:null}(t,n,e,s,a.type,r,o)}function YZe(t,n,e,i,r,o,s){var l={from:r.from,to:r.to},c=0,u=i.parent?.cursor();if(u&&(e<0?u.childBefore(i.from):u.childAfter(i.to)))do{if(e<0?u.to<=i.from:u.from>=i.to){if(0==c&&o.indexOf(u.type.name)>-1&&u.from-1||(xde.push(t),console.warn(n))}function tet(t,n){var e,i=null,r=ot(n.split("."));try{for(r.s();!(e=r.n()).done;){var o=e.value,s=t[o]||Ln[o];s?"function"==typeof s?i?i=s(i):UR(o,"Modifier ".concat(o," used at start of tag")):i?UR(o,"Tag ".concat(o," used as modifier")):i=s:UR(o,"Unknown highlighting tag ".concat(o))}}catch(c){r.e(c)}finally{r.f()}if(!i)return 0;var a=n.replace(/ /g,"_"),l=pu.define({id:wde.length,name:a,props:[Zhe(rc({},a,i))]});return wde.push(l),l.id}function WR(t,n){return function(e){var i=e.state,r=e.dispatch;if(i.readOnly)return!1;var o=t(n,i);return!!o&&(r(i.update(o)),!0)}}var net=WR(function set(t,n){var e,r=[],o=-1,s=ot(arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.selection.ranges);try{for(s.s();!(e=s.n()).done;){for(var a=e.value,l=a.from,c=a.to,u=r.length,h=1e9,d=l;d<=c;){var f=n.doc.lineAt(d);if(f.from>o&&(l==c||c>f.from)){o=f.from;var p=GR(n,f.from).line;if(!p)continue;var m=/^\s*/.exec(f.text)[0].length,w=m==f.length,C=f.text.slice(m,m+p.length)==p?m:-1;m=0})){var De,ie=[],ge=ot(r);try{for(ge.s();!(De=ge.n()).done;){var we=De.value,le=we.line,Fe=we.comment;if(Fe>=0){var Q=le.from+Fe,Z=Q+we.token.length;" "==le.text[Z-le.from]&&Z++,ie.push({from:Q,to:Z})}}}catch(me){ge.e(me)}finally{ge.f()}return{changes:ie}}return null},0),iet=WR(kde,0),ret=WR(function(t,n){return kde(t,n,function(e){var i,r=[],o=ot(e.selection.ranges);try{for(o.s();!(i=o.n()).done;){var s=i.value,a=e.doc.lineAt(s.from),l=s.to<=a.to?a:e.doc.lineAt(s.to),c=r.length-1;c>=0&&r[c].to>a.from?r[c].to=l.to:r.push({from:a.from,to:l.to})}}catch(u){o.e(u)}finally{o.f()}return r}(n))},0);function GR(t,n){var e=t.languageDataAt("commentTokens",n);return e.length?e[0]:{}}function kde(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.selection.ranges,i=e.map(function(d){return GR(n,d.from).block});if(!i.every(function(d){return d}))return null;var r=e.map(function(d,f){return function oet(t,n,e,i){var r,o,s=n.open,a=n.close,l=t.sliceDoc(e-50,e),c=t.sliceDoc(i,i+50),u=/\s*$/.exec(l)[0].length,h=/^\s*/.exec(c)[0].length,d=l.length-u;if(l.slice(d-s.length,d)==s&&c.slice(h,h+a.length)==a)return{open:{pos:e-u,margin:u&&1},close:{pos:i+h,margin:h&&1}};i-e<=100?r=o=t.sliceDoc(e,i):(r=t.sliceDoc(e,e+50),o=t.sliceDoc(i-50,i));var f=/^\s*/.exec(r)[0].length,p=/\s*$/.exec(o)[0].length,m=o.length-p-a.length;return r.slice(f,f+s.length)==s&&o.slice(m,m+a.length)==a?{open:{pos:e+f+s.length,margin:/\s/.test(r.charAt(f+s.length))?1:0},close:{pos:i-p-a.length,margin:/\s/.test(o.charAt(m-1))?1:0}}:null}(n,i[f],d.from,d.to)});if(2!=t&&!r.every(function(d){return d}))return{changes:n.changes(e.map(function(d,f){return r[f]?[]:[{from:d.from,insert:i[f].open+" "},{from:d.to,insert:" "+i[f].close}]}))};if(1!=t&&r.some(function(d){return d})){for(var o,s=[],a=0;a0&&void 0!==arguments[0]?arguments[0]:{}),pi.domEventHandlers({beforeinput:function(n,e){var i="historyUndo"==n.inputType?YR:"historyRedo"==n.inputType?Yk:null;return!!i&&(n.preventDefault(),i(e))}})]}function Xk(t,n){return function(e){var i=e.state,r=e.dispatch;if(!n&&i.readOnly)return!1;var o=i.field(XR,!1);if(!o)return!1;var s=o.pop(t,i,n);return!!s&&(r(s),!0)}}var YR=Xk(0,!1),Yk=Xk(1,!1),het=Xk(0,!0),det=Xk(1,!0);function Tde(t){return function(n){var e=n.field(XR,!1);if(!e)return 0;var i=0==t?e.done:e.undone;return i.length-(i.length&&!i[0].changes?1:0)}}var fet=Tde(0),pet=Tde(1),hf=function(){function t(n,e,i,r,o){qe(this,t),this.changes=n,this.effects=e,this.mapped=i,this.startSelection=r,this.selectionsAfter=o}return Xe(t,[{key:"setSelAfter",value:function(n){return new t(this.changes,this.effects,this.mapped,this.startSelection,n)}},{key:"toJSON",value:function(){var n,e,i;return{changes:null===(n=this.changes)||void 0===n?void 0:n.toJSON(),mapped:null===(e=this.mapped)||void 0===e?void 0:e.toJSON(),startSelection:null===(i=this.startSelection)||void 0===i?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(function(r){return r.toJSON()})}}}],[{key:"fromJSON",value:function(n){return new t(n.changes&&lh.fromJSON(n.changes),[],n.mapped&&w0.fromJSON(n.mapped),n.startSelection&&_n.fromJSON(n.startSelection),n.selectionsAfter.map(_n.fromJSON))}},{key:"fromTransaction",value:function(n,e){var i,r=gu,o=ot(n.startState.facet(cet));try{for(o.s();!(i=o.n()).done;){var s=(0,i.value)(n);s.length&&(r=r.concat(s))}}catch(a){o.e(a)}finally{o.f()}return!r.length&&n.changes.empty?null:new t(n.changes.invert(n.startState.doc),r,void 0,e||n.startState.selection,gu)}},{key:"selection",value:function(n){return new t(void 0,gu,void 0,void 0,n)}}]),t}();function Kk(t,n,e,i){var o=t.slice(n+1>e+20?n-e-1:0,n);return o.push(i),o}function Ade(t,n){return t.length?n.length?t.concat(n):t:n}var gu=[];function Ede(t,n){if(t.length){var e=t[t.length-1],i=e.selectionsAfter.slice(Math.max(0,e.selectionsAfter.length-200));return i.length&&i[i.length-1].eq(n)?t:(i.push(n),Kk(t,t.length-1,1e9,e.setSelAfter(i)))}return[hf.selection([n])]}function get(t){var n=t[t.length-1],e=t.slice();return e[t.length-1]=n.setSelAfter(n.selectionsAfter.slice(0,n.selectionsAfter.length-1)),e}function KR(t,n){if(!t.length)return t;for(var e=t.length,i=gu;e;){var r=met(t[e-1],n,i);if(r.changes&&!r.changes.empty||r.effects.length){var o=t.slice(0,e);return o[e-1]=r,o}n=r.mapped,e--,i=r.selectionsAfter}return i.length?[hf.selection(i)]:gu}function met(t,n,e){var i=Ade(t.selectionsAfter.length?t.selectionsAfter.map(function(a){return a.map(n)}):gu,e);if(!t.changes)return hf.selection(i);var r=t.changes.map(n),o=n.mapDesc(t.changes,!0),s=t.mapped?t.mapped.composeDesc(o):o;return new hf(r,$r.mapEffects(t.effects,n),s,t.startSelection.map(o),i)}var vet=/^(input\.type|delete)($|\.)/,k_=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;qe(this,t),this.done=n,this.undone=e,this.prevTime=i,this.prevUserEvent=r}return Xe(t,[{key:"isolate",value:function(){return this.prevTime?new t(this.done,this.undone):this}},{key:"addChanges",value:function(n,e,i,r,o){var c,u,h,s=this.done,a=s[s.length-1];return new t(s=a&&a.changes&&!a.changes.empty&&n.changes&&(!i||vet.test(i))&&(!a.selectionsAfter.length&&e-this.prevTime=C&&p<=k&&(h=!0)}}),h))||"input.type.compose"==i)?Kk(s,s.length-1,r.minDepth,new hf(n.changes.compose(a.changes),Ade(n.effects,a.effects),a.mapped,a.startSelection,gu)):Kk(s,s.length,r.minDepth,n),gu,e,i)}},{key:"addSelection",value:function(n,e,i,r){var s,a,o=this.done.length?this.done[this.done.length-1].selectionsAfter:gu;return o.length>0&&e-this.prevTime2||/[^\s,.;:]/.test(t.sliceDoc(n.from,n.to)))||n.firstChild}function Qk(t,n,e){for(var i=kl(t).resolveInner(n.head),r=e?Hr.closedBy:Hr.openedBy,o=n.head;;){var s=e?i.childAfter(o):i.childBefore(o);if(!s)break;bet(t,s,r)?i=s:o=e?s.to:s.from}var a,l;return l=i.type.prop(r)&&(a=e?yd(t,i.from,1):yd(t,i.to,-1))&&a.matched?e?a.end.to:a.end.from:e?i.to:i.from,_n.cursor(l,e?-1:1)}function Ode(t,n){return dh(t,function(e){if(!e.empty)return Jk(e,n);var i=t.moveVertically(e,n);return i.head!=e.head?i:t.moveToLineBoundary(e,n)})}var Nde=function(t){return Ode(t,!1)},Rde=function(t){return Ode(t,!0)};function $de(t){var n,e=t.scrollDOM.clientHeightl&&s.bottoms&&(e="delete.forward",l=eD(t,l,!0)),s=Math.min(s,l),a=Math.max(a,l)}else s=eD(t,s,!1),a=eD(t,a,!0);return s==a?{range:o}:{changes:{from:s,to:a},range:_n.cursor(s)}});return!r.changes.empty&&(t.dispatch(i.update(r,{scrollIntoView:!0,userEvent:e,effects:"delete.selection"==e?pi.announce.of(i.phrase("Selection deleted")):void 0})),!0)}function eD(t,n,e){if(t instanceof pi){var i,r=ot(t.state.facet(pi.atomicRanges).map(function(o){return o(t)}));try{for(r.s();!(i=r.n()).done;)i.value.between(n,n,function(o,s){on&&(n=e?s:o)})}catch(o){r.e(o)}finally{r.f()}}return n}var efe=function(t,n){return Zk(t,function(e){var i,r,o=t.state,s=o.doc.lineAt(e);if(!n&&e>s.from&&e=s.number){var l=e[e.length-1];l.to=a.to,l.ranges.push(o)}else e.push({from:s.from,to:a.to,ranges:[o]});i=a.number+1}}catch(c){r.e(c)}finally{r.f()}return e}function ofe(t,n,e){if(t.readOnly)return!1;var i,r=[],o=[],s=ot(tD(t));try{for(s.s();!(i=s.n()).done;){var a=i.value;if(e?a.to!=t.doc.length:0!=a.from){var l=t.doc.lineAt(e?a.to+1:a.from-1),c=l.length+1;if(e){r.push({from:a.to,to:l.to},{from:a.from,insert:l.text+t.lineBreak});var u,h=ot(a.ranges);try{for(h.s();!(u=h.n()).done;){var d=u.value;o.push(_n.range(Math.min(t.doc.length,d.anchor+c),Math.min(t.doc.length,d.head+c)))}}catch(w){h.e(w)}finally{h.f()}}else{r.push({from:l.from,to:a.from},{from:a.to,insert:t.lineBreak+l.text});var f,p=ot(a.ranges);try{for(p.s();!(f=p.n()).done;){var m=f.value;o.push(_n.range(m.anchor-c,m.head-c))}}catch(w){p.e(w)}finally{p.f()}}}}}catch(w){s.e(w)}finally{s.f()}return!!r.length&&(n(t.update({changes:r,scrollIntoView:!0,selection:_n.create(o,t.selection.mainIndex),userEvent:"move.line"})),!0)}function sfe(t,n,e){if(t.readOnly)return!1;var i,r=[],o=ot(tD(t));try{for(o.s();!(i=o.n()).done;){var s=i.value;r.push(e?{from:s.from,insert:t.doc.slice(s.from,s.to)+t.lineBreak}:{from:s.to,insert:t.lineBreak+t.doc.slice(s.from,s.to)})}}catch(a){o.e(a)}finally{o.f()}return n(t.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}var _et=afe(!1),wet=afe(!0);function afe(t){return function(n){var e=n.state,i=n.dispatch;if(e.readOnly)return!1;var r=e.changeByRange(function(o){var s=o.from,a=o.to,l=e.doc.lineAt(s),c=!t&&s==a&&function(f,p){if(/\(\)|\[\]|\{\}/.test(f.sliceDoc(p-1,p+1)))return{from:p,to:p};var m,w=kl(f).resolveInner(p),C=w.childBefore(p),k=w.childAfter(p);return C&&k&&C.to<=p&&k.from>=p&&(m=C.type.prop(Hr.closedBy))&&m.indexOf(k.name)>-1&&f.doc.lineAt(C.to).from==f.doc.lineAt(k.from).from?{from:C.to,to:k.from}:null}(e,s);t&&(s=a=(a<=l.to?l:e.doc.lineAt(a)).to);var u=new Uk(e,{simulateBreak:s,simulateDoubleBreak:!!c}),h=RR(u,s);for(null==h&&(h=/^\s*/.exec(e.doc.lineAt(s).text)[0].length);al.from&&se&&(i.empty||i.to>s.from)&&(n(s,r,i),e=s.number),o=s.to+1}var a=t.changes(r);return{changes:r,range:_n.range(a.mapPos(i.anchor,1),a.mapPos(i.head,1))}})}var lfe=function(t){var n=t.state;return!n.readOnly&&((0,t.dispatch)(n.update(ZR(n,function(i,r){r.push({from:i.from,insert:n.facet(zk)})}),{userEvent:"input.indent"})),!0)},cfe=function(t){var n=t.state;return!n.readOnly&&((0,t.dispatch)(n.update(ZR(n,function(i,r){var o=/^\s*/.exec(i.text)[0];if(o){for(var s=r_(o,n.tabSize),a=0,l=C_(n,Math.max(0,s-O0(n)));ae?e:Math.max(0,n-1)})}},{mac:"Mod-Delete",run:rfe}].concat(xet.map(function(t){return{mac:t.key,run:t.run,shift:t.shift}})),ket=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:function(t){return dh(t,function(n){return Qk(t.state,n,!Dl(t))})},shift:function(t){return mu(t,function(n){return Qk(t.state,n,!Dl(t))})}},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:function(t){return dh(t,function(n){return Qk(t.state,n,Dl(t))})},shift:function(t){return mu(t,function(n){return Qk(t.state,n,Dl(t))})}},{key:"Alt-ArrowUp",run:function(t){return ofe(t.state,t.dispatch,!1)}},{key:"Shift-Alt-ArrowUp",run:function(t){return sfe(t.state,t.dispatch,!1)}},{key:"Alt-ArrowDown",run:function(t){return ofe(t.state,t.dispatch,!0)}},{key:"Shift-Alt-ArrowDown",run:function(t){return sfe(t.state,t.dispatch,!0)}},{key:"Escape",run:function(t){var n=t.state,e=t.dispatch,i=n.selection,r=null;return i.ranges.length>1?r=_n.create([i.main]):i.main.empty||(r=_n.create([_n.cursor(i.main.head)])),!!r&&(e(bd(n,r)),!0)}},{key:"Mod-Enter",run:wet},{key:"Alt-l",mac:"Ctrl-l",run:function(t){var n=t.state,e=t.dispatch,i=tD(n).map(function(r){return _n.range(r.from,Math.min(r.to+1,n.doc.length))});return e(n.update({selection:_n.create(i),userEvent:"select"})),!0}},{key:"Mod-i",run:function(t){var n=t.state,e=t.dispatch,i=N0(n.selection,function(r){for(var o,s=kl(n).resolveInner(r.head,1);!(s.from=r.to||s.to>r.to&&s.from<=r.from)&&null!==(o=s.parent)&&void 0!==o&&o.parent;)s=s.parent;return _n.range(s.to,s.from)});return e(bd(n,i)),!0},preventDefault:!0},{key:"Mod-[",run:cfe},{key:"Mod-]",run:lfe},{key:"Mod-Alt-\\",run:function(t){var n=t.state,e=t.dispatch;if(n.readOnly)return!1;var i=Object.create(null),r=new Uk(n,{overrideIndentation:function(s){return i[s]??-1}}),o=ZR(n,function(s,a,l){var c=RR(r,s.from);if(null!=c){/\S/.test(s.text)||(c=0);var u=/^\s*/.exec(s.text)[0],h=C_(n,c);(u!=h||l.from0?o--:s0&&yd(n,s.head-1,1)||s.head2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.length,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0;qe(this,t),this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=n.iterRange(i,r),this.bufferStart=i,this.normalize=o?function(a){return o(hfe(a))}:hfe,this.query=this.normalize(e)}return Xe(t,[{key:"peek",value:function(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return tl(this.buffer,this.bufferPos)}},{key:"next",value:function(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}},{key:"nextOverlapping",value:function(){for(;;){var n=this.peek();if(n<0)return this.done=!0,this;var e=CN(n),i=this.bufferStart+this.bufferPos;this.bufferPos+=Nc(n);for(var r=this.normalize(e),o=0,s=i;;o++){var a=r.charCodeAt(o),l=this.match(a,s);if(l)return this.value=l,this;if(o==r.length-1)break;s==i&&o3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:n.length;if(qe(this,t),this.text=n,this.to=o,this.curLine="",this.done=!1,this.value=dfe,/\\[sWDnr]|\n|\r|\[\^/.test(e))return new gfe(n,e,i,r,o);this.re=new RegExp(e,e$+(i?.ignoreCase?"i":"")),this.test=i?.test,this.iter=n.iter();var s=n.lineAt(r);this.curLineStart=s.from,this.matchPos=nD(n,r),this.getLine(this.curLineStart)}return Xe(t,[{key:"getLine",value:function(n){this.iter.next(n),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}},{key:"nextLine",value:function(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}},{key:"next",value:function(){for(var n=this.matchPos-this.curLineStart;;){this.re.lastIndex=n;var e=this.matchPos<=this.to&&this.re.exec(this.curLine);if(e){var i=this.curLineStart+e.index,r=i+e[0].length;if(this.matchPos=nD(this.text,r+(i==r?1:0)),i==this.curLineStart+this.curLine.length&&this.nextLine(),(ithis.value.to)&&(!this.test||this.test(i,r,e)))return this.value={from:i,to:r,match:e},this;n=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=i||r.to<=e){var o=new t(e,n.sliceString(e,i));return t$.set(n,o),o}if(r.from==e&&r.to==i)return r;var s=r.text,a=r.from;return a>e&&(s=n.sliceString(e,a)+s,a=e),r.to=this.to?this.to:this.text.lineAt(n).to}},{key:"next",value:function(){for(;;){var n=this.re.lastIndex=this.matchPos-this.flat.from,e=this.re.exec(this.flat.text);if(e&&!e[0]&&e.index==n&&(this.re.lastIndex=n+1,e=this.re.exec(this.flat.text)),e){var i=this.flat.from+e.index,r=i+e[0].length;if((this.flat.to>=this.to||e.index+e[0].length<=this.flat.text.length-10)&&(!this.test||this.test(i,r,e)))return this.value={from:i,to:r,match:e},this.matchPos=nD(this.text,r+(i==r?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=pfe.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}]),t}();function nD(t,n){if(n>=t.length)return n;for(var e,i=t.lineAt(n);n=56320&&e<57344;)n++;return n}function n$(t){var n=Zo("input",{class:"cm-textfield",name:"line"});function e(){var i=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(i){var r=t.state,o=r.doc.lineAt(r.selection.main.head),s=di(i,5),a=s[1],l=s[2],c=s[3],u=s[4],h=c?+c.slice(1):0,d=l?+l:o.number;if(l&&u){var f=d/100;a&&(f=f*("-"==a?-1:1)+o.number/r.doc.lines),d=Math.round(r.doc.lines*f)}else l&&a&&(d=d*("-"==a?-1:1)+o.number);var p=r.doc.line(Math.max(1,Math.min(r.doc.lines,d)));t.dispatch({effects:iD.of(!1),selection:_n.cursor(p.from+Math.max(0,Math.min(h,p.length))),scrollIntoView:!0}),t.focus()}}return{dom:Zo("form",{class:"cm-gotoLine",onkeydown:function(i){27==i.keyCode?(i.preventDefault(),t.dispatch({effects:iD.of(!1)}),t.focus()):13==i.keyCode&&(i.preventDefault(),e())},onsubmit:function(i){i.preventDefault(),e()}},Zo("label",t.state.phrase("Go to line"),": ",n)," ",Zo("button",{class:"cm-button",type:"submit"},t.state.phrase("go")))}}typeof Symbol<"u"&&(ffe.prototype[Symbol.iterator]=gfe.prototype[Symbol.iterator]=function(){return this});var iD=$r.define(),mfe=nl.define({create:function(){return!0},update:function(t,n){var e,i=ot(n.effects);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.is(iD)&&(t=r.value)}}catch(o){i.e(o)}finally{i.f()}return t},provide:function(t){return v_.from(t,function(n){return n?n$:null})}}),Tet=pi.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),Aet={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},vfe=yi.define({combine:function(t){return fu(t,Aet,{highlightWordAroundCursor:function(n,e){return n||e},minSelectionLength:Math.min,maxMatches:Math.min})}}),Eet=Hi.mark({class:"cm-selectionMatch"}),Met=Hi.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function yfe(t,n,e,i){return!(0!=e&&t(n.sliceDoc(e-1,e))==Ds.Word||i!=n.doc.length&&t(n.sliceDoc(i,i+1))==Ds.Word)}var Iet=Ba.fromClass(function(){function t(n){qe(this,t),this.decorations=this.getDeco(n)}return Xe(t,[{key:"update",value:function(n){(n.selectionSet||n.docChanged||n.viewportChanged)&&(this.decorations=this.getDeco(n.view))}},{key:"getDeco",value:function(n){var e=n.state.facet(vfe),i=n.state,r=i.selection;if(r.ranges.length>1)return Hi.none;var o,k,E,L,B,s=r.main,a=null;if(s.empty){if(!e.highlightWordAroundCursor)return Hi.none;var l=i.wordAt(s.head);if(!l)return Hi.none;a=i.charCategorizer(s.head),o=i.sliceDoc(l.from,l.to)}else{var c=s.to-s.from;if(c200)return Hi.none;if(e.wholeWords){if(o=i.sliceDoc(s.from,s.to),!yfe(a=i.charCategorizer(s.head),i,s.from,s.to)||(B=s.to,(k=a)((E=i).sliceDoc(L=s.from,L+1))!=Ds.Word||k(E.sliceDoc(B-1,B))!=Ds.Word))return Hi.none}else if(!(o=i.sliceDoc(s.from,s.to).trim()))return Hi.none}var u,h=[],d=ot(n.visibleRanges);try{for(d.s();!(u=d.n()).done;)for(var f=u.value,p=new R0(i.doc,o,f.from,f.to);!p.next().done;){var m=p.value,w=m.from,C=m.to;if((!a||yfe(a,i,w,C))&&(s.empty&&w<=s.from&&C>=s.to?h.push(Met.range(w,C)):(w>=s.to||C<=s.from)&&h.push(Eet.range(w,C)),h.length>e.maxMatches))return Hi.none}}catch(k){d.e(k)}finally{d.f()}return Hi.set(h)}}]),t}(),{decorations:function(t){return t.decorations}}),Fet=pi.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),rD=yi.define({combine:function(t){return fu(t,{top:!1,caseSensitive:!1,literal:!1,wholeWord:!1,createPanel:function(n){return new Vet(n)}})}});function Let(t){return t?[rD.of(t),u$]:u$}var bfe=function(){function t(n){qe(this,t),this.search=n.search,this.caseSensitive=!!n.caseSensitive,this.literal=!!n.literal,this.regexp=!!n.regexp,this.replace=n.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,e$),!0}catch{return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!n.wholeWord}return Xe(t,[{key:"unquote",value:function(n){return this.literal?n:n.replace(/\\([nrt\\])/g,function(e,i){return"n"==i?"\n":"r"==i?"\r":"t"==i?"\t":"\\"})}},{key:"eq",value:function(n){return this.search==n.search&&this.replace==n.replace&&this.caseSensitive==n.caseSensitive&&this.regexp==n.regexp&&this.wholeWord==n.wholeWord}},{key:"create",value:function(){return this.regexp?new Net(this):new Oet(this)}},{key:"getCursor",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0,r=n.doc?n:Qo.create({doc:n});return null==i&&(i=r.doc.length),this.regexp?P0(this,r,e,i):$0(this,r,e,i)}}]),t}(),_fe=Xe(function t(n){qe(this,t),this.spec=n});function $0(t,n,e,i){return new R0(n.doc,t.unquoted,e,i,t.caseSensitive?void 0:function(r){return r.toLowerCase()},t.wholeWord?(r=n.doc,o=n.charCategorizer(n.selection.main.head),function(s,a,l,c){return(c>s||c+l.length=r)return null;s.push(o.value)}return s}},{key:"highlight",value:function(i,r,o,s){for(var a=$0(this.spec,i,Math.max(0,r-this.spec.unquoted.length),Math.min(o+this.spec.unquoted.length,i.doc.length));!a.next().done;)s(a.value.from,a.value.to)}}]),e}();function P0(t,n,e,i){return new ffe(n.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?(r=n.charCategorizer(n.selection.main.head),function(o,s,a){return!a[0].length||(r(oD(a.input,a.index))!=Ds.Word||r(sD(a.input,a.index))!=Ds.Word)&&(r(sD(a.input,a.index+a[0].length))!=Ds.Word||r(oD(a.input,a.index+a[0].length))!=Ds.Word)}):void 0},e,i);var r}function oD(t,n){return t.slice(ql(t,n,!1),n)}function sD(t,n){return t.slice(n,ql(t,n))}var Net=function(t){Wt(e,_fe);var n=Gt(e);function e(){return qe(this,e),n.apply(this,arguments)}return Xe(e,[{key:"nextMatch",value:function(i,r,o){var s=P0(this.spec,i,o,i.doc.length).next();return s.done&&(s=P0(this.spec,i,0,r).next()),s.done?null:s.value}},{key:"prevMatchInRange",value:function(i,r,o){for(var s=1;;s++){for(var a=Math.max(r,o-1e4*s),l=P0(this.spec,i,a,o),c=null;!l.next().done;)c=l.value;if(c&&(a==r||c.from>a+10))return c;if(a==r)return null}}},{key:"prevMatch",value:function(i,r,o){return this.prevMatchInRange(i,0,r)||this.prevMatchInRange(i,o,i.doc.length)}},{key:"getReplacement",value:function(i){return this.spec.unquote(this.spec.replace.replace(/\$([$&\d+])/g,function(r,o){return"$"==o?"$":"&"==o?i.match[0]:"0"!=o&&+o=r)return null;s.push(o.value)}return s}},{key:"highlight",value:function(i,r,o,s){for(var a=P0(this.spec,i,Math.max(0,r-250),Math.min(o+250,i.doc.length));!a.next().done;)s(a.value.from,a.value.to)}}]),e}(),D_=$r.define(),i$=$r.define(),Cp=nl.define({create:function(t){return new r$(s$(t).create(),null)},update:function(t,n){var e,i=ot(n.effects);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.is(D_)?t=new r$(r.value.create(),t.panel):r.is(i$)&&(t=new r$(t.query,r.value?o$:null))}}catch(o){i.e(o)}finally{i.f()}return t},provide:function(t){return v_.from(t,function(n){return n.panel})}}),r$=Xe(function t(n,e){qe(this,t),this.query=n,this.panel=e}),Ret=Hi.mark({class:"cm-searchMatch"}),$et=Hi.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Pet=Ba.fromClass(function(){function t(n){qe(this,t),this.view=n,this.decorations=this.highlight(n.state.field(Cp))}return Xe(t,[{key:"update",value:function(n){var e=n.state.field(Cp);(e!=n.startState.field(Cp)||n.docChanged||n.selectionSet||n.viewportChanged)&&(this.decorations=this.highlight(e))}},{key:"highlight",value:function(n){var e=n.query;if(!n.panel||!e.spec.valid)return Hi.none;for(var i=this.view,r=new Wg,o=0,s=i.visibleRanges,a=s.length;os[o+1].from-500;)u=s[++o].to;e.highlight(i.state,c,u,function(h,d){var f=i.state.selection.ranges.some(function(p){return p.from==h&&p.to==d});r.add(h,d,f?$et:Ret)})}return r.finish()}}]),t}(),{decorations:function(t){return t.decorations}});function T_(t){return function(n){var e=n.state.field(Cp,!1);return e&&e.query.spec.valid?t(n,e):a$(n)}}var aD=T_(function(t,n){var i=t.state.selection.main.to,r=n.query.nextMatch(t.state,i,i);return!!r&&(t.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:c$(t,r),userEvent:"select.search"}),!0)}),lD=T_(function(t,n){var i=t.state,r=i.selection.main.from,o=n.query.prevMatch(i,r,r);return!!o&&(t.dispatch({selection:{anchor:o.from,head:o.to},scrollIntoView:!0,effects:c$(t,o),userEvent:"select.search"}),!0)}),jet=T_(function(t,n){var e=n.query.matchAll(t.state,1e3);return!(!e||!e.length||(t.dispatch({selection:_n.create(e.map(function(i){return _n.range(i.from,i.to)})),userEvent:"select.search.matches"}),0))}),wfe=T_(function(t,n){var e=n.query,i=t.state,r=i.selection.main,o=r.from,s=r.to;if(i.readOnly)return!1;var a=e.nextMatch(i,o,o);if(!a)return!1;var l,c,u=[],h=[];if(a.from==o&&a.to==s&&(c=i.toText(e.getReplacement(a)),u.push({from:a.from,to:a.to,insert:c}),a=e.nextMatch(i,a.from,a.to),h.push(pi.announce.of(i.phrase("replaced match on line $",i.doc.lineAt(o).number)+"."))),a){var d=0==u.length||u[0].from>=a.to?0:a.to-a.from-c.length;l={anchor:a.from-d,head:a.to-d},h.push(c$(t,a))}return t.dispatch({changes:u,selection:l,scrollIntoView:!!l,effects:h,userEvent:"input.replace"}),!0}),Bet=T_(function(t,n){var e=n.query;if(t.state.readOnly)return!1;var i=e.matchAll(t.state,1e9).map(function(o){return{from:o.from,to:o.to,insert:e.getReplacement(o)}});if(!i.length)return!1;var r=t.state.phrase("replaced $ matches",i.length)+".";return t.dispatch({changes:i,effects:pi.announce.of(r),userEvent:"input.replace.all"}),!0});function o$(t){return t.state.facet(rD).createPanel(t)}function s$(t,n){var e,i,r,o,s=t.selection.main,a=s.empty||s.to>s.from+100?"":t.sliceDoc(s.from,s.to);if(n&&!a)return n;var l=t.facet(rD);return new bfe({search:(null!==(e=n?.literal)&&void 0!==e?e:l.literal)?a:a.replace(/\n/g,"\\n"),caseSensitive:null!==(i=n?.caseSensitive)&&void 0!==i?i:l.caseSensitive,literal:null!==(r=n?.literal)&&void 0!==r?r:l.literal,wholeWord:null!==(o=n?.wholeWord)&&void 0!==o?o:l.wholeWord})}var a$=function(t){var n=t.state.field(Cp,!1);if(n&&n.panel){var e=m_(t,o$);if(!e)return!1;var i=e.dom.querySelector("[main-field]");if(i&&i!=t.root.activeElement){var r=s$(t.state,n.query.spec);r.valid&&t.dispatch({effects:D_.of(r)}),i.focus(),i.select()}}else t.dispatch({effects:[i$.of(!0),n?D_.of(s$(t.state,n.query.spec)):$r.appendConfig.of(u$)]});return!0},l$=function(t){var n=t.state.field(Cp,!1);if(!n||!n.panel)return!1;var e=m_(t,o$);return e&&e.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:i$.of(!1)}),!0},Het=[{key:"Mod-f",run:a$,scope:"editor search-panel"},{key:"F3",run:aD,shift:lD,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:aD,shift:lD,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:l$,scope:"editor search-panel"},{key:"Mod-Shift-l",run:function(t){var n=t.state,e=t.dispatch,i=n.selection;if(i.ranges.length>1||i.main.empty)return!1;for(var r=i.main,o=r.from,a=[],l=0,c=new R0(n.doc,n.sliceDoc(o,r.to));!c.next().done;){if(a.length>1e3)return!1;c.value.from==o&&(l=a.length),a.push(_n.range(c.value.from,c.value.to))}return e(n.update({selection:_n.create(a,l),userEvent:"select.search.matches"})),!0}},{key:"Alt-g",run:function(t){var n=m_(t,n$);if(!n){var e=[iD.of(!0)];null==t.state.field(mfe,!1)&&e.push($r.appendConfig.of([mfe,Tet])),t.dispatch({effects:e}),n=m_(t,n$)}return n&&n.dom.querySelector("input").focus(),!0}},{key:"Mod-d",run:function(t){var s,a,l,c,u,n=t.state,e=t.dispatch,i=n.selection.ranges;if(i.some(function(s){return s.from===s.to}))return l=(s={state:n,dispatch:e}).dispatch,!(u=_n.create((c=(a=s.state).selection).ranges.map(function(h){return a.wordAt(h.head)||_n.cursor(h.head)}),c.mainIndex)).eq(c)&&(l(a.update({selection:u})),!0);var r=n.sliceDoc(i[0].from,i[0].to);if(n.selection.ranges.some(function(s){return n.sliceDoc(s.from,s.to)!=r}))return!1;var o=function(s,a){for(var l=s.selection,c=l.main,u=l.ranges,h=s.wordAt(c.head),d=h&&h.from==c.from&&h.to==c.to,f=function(C,k){if(k.next(),!k.done){if(C&&u.some(function(L){return L.from==k.value.from}))return m=k,p=C,"continue";if(d){var E=s.wordAt(k.value.from);if(!E||E.from!=k.value.from||E.to!=k.value.to)return m=k,p=C,"continue"}return p=C,m=k,{v:k.value}}if(C)return m=k,p=C,{v:null};k=new R0(s.doc,a,0,Math.max(0,u[u.length-1].from-1)),p=C=!0,m=k},p=!1,m=new R0(s.doc,a,u[u.length-1].to);;){var w=f(p,m);if("continue"!==w&&"object"===$n(w))return w.v}}(n,r);return!!o&&(e(n.update({selection:n.selection.addRange(_n.range(o.from,o.to),!1),effects:pi.scrollIntoView(o.to)})),!0)},preventDefault:!0}],Vet=function(){function t(n){var e=this;qe(this,t),this.view=n;var i=this.query=n.state.field(Cp).query.spec;function r(o,s,a){return Zo("button",{class:"cm-button",name:o,onclick:s,type:"button"},a)}this.commit=this.commit.bind(this),this.searchField=Zo("input",{value:i.search,placeholder:jc(n,"Find"),"aria-label":jc(n,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Zo("input",{value:i.replace,placeholder:jc(n,"Replace"),"aria-label":jc(n,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Zo("input",{type:"checkbox",name:"case",form:"",checked:i.caseSensitive,onchange:this.commit}),this.reField=Zo("input",{type:"checkbox",name:"re",form:"",checked:i.regexp,onchange:this.commit}),this.wordField=Zo("input",{type:"checkbox",name:"word",form:"",checked:i.wholeWord,onchange:this.commit}),this.dom=Zo("div",{onkeydown:function(o){return e.keydown(o)},class:"cm-search"},[this.searchField,r("next",function(){return aD(n)},[jc(n,"next")]),r("prev",function(){return lD(n)},[jc(n,"previous")]),r("select",function(){return jet(n)},[jc(n,"all")]),Zo("label",null,[this.caseField,jc(n,"match case")]),Zo("label",null,[this.reField,jc(n,"regexp")]),Zo("label",null,[this.wordField,jc(n,"by word")])].concat(Ti(n.state.readOnly?[]:[Zo("br"),this.replaceField,r("replace",function(){return wfe(n)},[jc(n,"replace")]),r("replaceAll",function(){return Bet(n)},[jc(n,"replace all")])]),[Zo("button",{name:"close",onclick:function(){return l$(n)},"aria-label":jc(n,"close"),type:"button"},["\xd7"])]))}return Xe(t,[{key:"commit",value:function(){var n=new bfe({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});n.eq(this.query)||(this.query=n,this.view.dispatch({effects:D_.of(n)}))}},{key:"keydown",value:function(n){!function(e,i,r){return bhe(yhe(e.state),i,e,"search-panel")}(this.view,n)?13==n.keyCode&&n.target==this.searchField?(n.preventDefault(),(n.shiftKey?lD:aD)(this.view)):13==n.keyCode&&n.target==this.replaceField&&(n.preventDefault(),wfe(this.view)):n.preventDefault()}},{key:"update",value:function(n){var e,i=ot(n.transactions);try{for(i.s();!(e=i.n()).done;){var r,o=ot(e.value.effects);try{for(o.s();!(r=o.n()).done;){var s=r.value;s.is(D_)&&!s.value.eq(this.query)&&this.setQuery(s.value)}}catch(a){o.e(a)}finally{o.f()}}}catch(a){i.e(a)}finally{i.f()}}},{key:"setQuery",value:function(n){this.query=n,this.searchField.value=n.search,this.replaceField.value=n.replace,this.caseField.checked=n.caseSensitive,this.reField.checked=n.regexp,this.wordField.checked=n.wholeWord}},{key:"mount",value:function(){this.searchField.select()}},{key:"pos",get:function(){return 80}},{key:"top",get:function(){return this.view.state.facet(rD).top}}]),t}();function jc(t,n){return t.state.phrase(n)}var cD=/[\s\.,:;?!]/;function c$(t,n){var e=n.from,i=n.to,r=t.state.doc.lineAt(e),o=t.state.doc.lineAt(i).to,s=Math.max(r.from,e-30),a=Math.min(o,i+30),l=t.state.sliceDoc(s,a);if(s!=r.from)for(var c=0;c<30;c++)if(!cD.test(l[c+1])&&cD.test(l[c])){l=l.slice(c);break}if(a!=o)for(var u=l.length-1;u>l.length-30;u--)if(!cD.test(l[u-1])&&cD.test(l[u])){l=l.slice(0,u);break}return pi.announce.of("".concat(t.state.phrase("current match"),". ").concat(l," ").concat(t.state.phrase("on line")," ").concat(r.number,"."))}var zet=pi.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),u$=[Cp,x0.lowest(Pet),zet],xfe=function(){function t(n,e,i){qe(this,t),this.state=n,this.pos=e,this.explicit=i,this.abortListeners=[]}return Xe(t,[{key:"tokenBefore",value:function(n){for(var e=kl(this.state).resolveInner(this.pos,-1);e&&n.indexOf(e.name)<0;)e=e.parent;return e?{from:e.from,to:this.pos,text:this.state.sliceDoc(e.from,this.pos),type:e.type}:null}},{key:"matchBefore",value:function(n){var e=this.state.doc.lineAt(this.pos),i=Math.max(e.from,this.pos-250),r=e.text.slice(i-e.from,this.pos-e.from),o=r.search(kfe(n,!1));return o<0?null:{from:i+o,to:this.pos,text:r.slice(o)}}},{key:"aborted",get:function(){return null==this.abortListeners}},{key:"addEventListener",value:function(n,e){"abort"==n&&this.abortListeners&&this.abortListeners.push(e)}}]),t}();function Cfe(t){var n=Object.keys(t).join(""),e=/\w/.test(n);return e&&(n=n.replace(/\w/g,"")),"[".concat(e?"\\w":"").concat(n.replace(/[^\w\s]/g,"\\$&"),"]")}var Sfe=Xe(function t(n,e,i){qe(this,t),this.completion=n,this.source=e,this.match=i});function Sp(t){return t.selection.main.head}function kfe(t,n){var e,i=t.source,r=n&&"^"!=i[0],o="$"!=i[i.length-1];return r||o?new RegExp("".concat(r?"^":"","(?:").concat(i,")").concat(o?"$":""),null!==(e=t.flags)&&void 0!==e?e:t.ignoreCase?"i":""):t}function Dfe(t,n){var r,o,s,a,e=n.completion.apply||n.completion.label,i=n.source;"string"==typeof e?t.dispatch((r=t.state,o=e,s=i.from,a=i.to,Object.assign(Object.assign({},r.changeByRange(function(l){if(l==r.selection.main)return{changes:{from:s,to:a,insert:o},range:_n.cursor(s+o.length)};var c=a-s;return!l.empty||c&&r.sliceDoc(l.from-c,l.from)!=r.sliceDoc(s,a)?{range:l}:{changes:{from:l.from-c,to:l.from,insert:o},range:_n.cursor(l.from-c+o.length)}})),{userEvent:"input.complete"}))):e(t,n.completion,i.from,i.to)}var Tfe=new WeakMap;function Wet(t){if(!Array.isArray(t))return t;var n=Tfe.get(t);return n||Tfe.set(t,n=function Uet(t){var n=t.map(function(s){return"string"==typeof s?{label:s}:s}),i=di(n.every(function(s){return/^\w+$/.test(s.label)})?[/\w*$/,/\w+$/]:function(s){var a,l=Object.create(null),c=Object.create(null),u=ot(s);try{for(u.s();!(a=u.n()).done;){var h=a.value.label;l[h[0]]=!0;for(var d=1;d=48&&re<=57||re>=97&&re<=122?2:re>=65&&re<=90?1:0:(ce=CN(re))!=ce.toLowerCase()?1:ce!=ce.toUpperCase()?2:0;(!G||1==ue&&L||0==fe&&0!=ue)&&(e[m]==re||i[m]==re&&(w=!0)?s[m++]=G:s.length&&(B=!1)),fe=ue,G+=Nc(re)}return m==c&&0==s[0]&&B?this.result((w?-200:0)-100,s,n):C==c&&0==k?[-200-n.length,0,E]:l>-1?[-700-n.length,l,l+this.pattern.length]:C==c?[-900-n.length,k,E]:m==c?this.result((w?-200:0)-100-700+(B?0:-1100),s,n):2==e.length?null:this.result((r[0]?-700:0)-200-1100,r,n)}},{key:"result",value:function(n,e,i){var r,o=[n-i.length],s=1,a=ot(e);try{for(a.s();!(r=a.n()).done;){var l=r.value,c=l+(this.astral?Nc(tl(i,l)):1);s>1&&o[s-1]==l?o[s-1]=c:(o[s++]=l,o[s++]=c)}}catch(u){a.e(u)}finally{a.f()}return o}}]),t}(),_d=yi.define({combine:function(t){return fu(t,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,optionClass:function(){return""},aboveCursor:!1,icons:!0,addToOptions:[],compareCompletions:function(n,e){return n.label.localeCompare(e.label)}},{defaultKeymap:function(n,e){return n&&e},closeOnBlur:function(n,e){return n&&e},icons:function(n,e){return n&&e},optionClass:function(n,e){return function(i){return r=n(i),o=e(i),r?o?r+" "+o:r:o;var r,o}},addToOptions:function(n,e){return n.concat(e)}})}});function Afe(t,n,e){if(t<=e)return{from:0,to:t};if(n<0&&(n=0),n<=t>>1){var i=Math.floor(n/e);return{from:i*e,to:(i+1)*e}}var r=Math.floor((t-n)/e);return{from:t-(r+1)*e,to:t-r*e}}var qet=function(){function t(n,e){var i=this;qe(this,t),this.view=n,this.stateField=e,this.info=null,this.placeInfo={read:function(){return i.measureInfo()},write:function(c){return i.positionInfo(c)},key:this};var c,u,r=n.state.field(e),o=r.open,s=o.options,a=o.selected,l=n.state.facet(_d);this.optionContent=(u=(c=l).addToOptions.slice(),c.icons&&u.push({render:function(h){var d,f=document.createElement("div");return f.classList.add("cm-completionIcon"),h.type&&(d=f.classList).add.apply(d,Ti(h.type.split(/\s+/g).map(function(p){return"cm-completionIcon-"+p}))),f.setAttribute("aria-hidden","true"),f},position:20}),u.push({render:function(h,d,f){var p=document.createElement("span");p.className="cm-completionLabel";for(var m=h.label,w=0,C=1;Cw&&p.appendChild(document.createTextNode(m.slice(w,k)));var L=p.appendChild(document.createElement("span"));L.appendChild(document.createTextNode(m.slice(k,E))),L.className="cm-completionMatchedText",w=E}return w=this.range.to)&&(this.range=Afe(i.options.length,i.selected,this.view.state.facet(_d).maxRenderedOptions),this.list.remove(),this.list=this.dom.appendChild(this.createListBox(i.options,e.id,this.range)),this.list.addEventListener("scroll",function(){n.info&&n.view.requestMeasure(n.placeInfo)})),this.updateSelectedOption(i.selected)){this.info&&(this.info.remove(),this.info=null);var r=i.options[i.selected].completion,o=r.info;if(!o)return;var s="string"==typeof o?document.createTextNode(o):o(r);if(!s)return;"then"in s?s.then(function(a){a&&n.view.state.field(n.stateField,!1)==e&&n.addInfoPane(a)}).catch(function(a){return Pc(n.view.state,a,"completion info")}):this.addInfoPane(s)}}},{key:"addInfoPane",value:function(n){var e=this.info=document.createElement("div");e.className="cm-tooltip cm-completionInfo",e.appendChild(n),this.dom.appendChild(e),this.view.requestMeasure(this.placeInfo)}},{key:"updateSelectedOption",value:function(n){for(var e=null,i=this.list.firstChild,r=this.range.from;i;i=i.nextSibling,r++)r==n?i.hasAttribute("aria-selected")||(i.setAttribute("aria-selected","true"),e=i):i.hasAttribute("aria-selected")&&i.removeAttribute("aria-selected");return e&&(s=e,a=(o=this.list).getBoundingClientRect(),(l=s.getBoundingClientRect()).topa.bottom&&(o.scrollTop+=l.bottom-a.bottom)),e;var o,s,a,l}},{key:"measureInfo",value:function(){var n=this.dom.querySelector("[aria-selected]");if(!n||!this.info)return null;var e=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),r=n.getBoundingClientRect();if(r.top>Math.min(innerHeight,e.bottom)-10||r.bottom=this.options.length?this:new t(this.options,Mfe(e,n),this.tooltip,this.timestamp,n)}},{key:"map",value:function(n){return new t(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:n.mapPos(this.tooltip.pos)}),this.timestamp,this.selected)}}],[{key:"build",value:function(n,e,i,r,o){var s=function(h,d){var f,p=[],m=0,w=ot(h);try{for(w.s();!(f=w.n()).done;){var C=f.value;if(C.hasResult())if(!1===C.result.filter){var k,E=C.result.getMatch,L=ot(C.result.options);try{for(L.s();!(k=L.n()).done;){var B=k.value,G=[1e9-m++];if(E){var oe,fe=ot(E(B));try{for(fe.s();!(oe=fe.n()).done;)G.push(oe.value)}catch(Z){fe.e(Z)}finally{fe.f()}}p.push(new Sfe(B,C,G))}}catch(Z){L.e(Z)}finally{L.f()}}else{var ce,ue=new Get(d.sliceDoc(C.from,C.to)),pe=void 0,De=ot(C.result.options);try{for(De.s();!(ce=De.n()).done;){var ie=ce.value;(pe=ue.match(ie.label))&&(null!=ie.boost&&(pe[0]+=ie.boost),p.push(new Sfe(ie,C,pe)))}}catch(Z){De.e(Z)}finally{De.f()}}}}catch(Z){w.e(Z)}finally{w.f()}var ge,we=[],le=null,Fe=d.facet(_d).compareCompletions,z=ot(p.sort(function(Z,me){return me.match[0]-Z.match[0]||Fe(Z.completion,me.completion)}));try{for(z.s();!(ge=z.n()).done;){var Q=ge.value;!le||le.label!=Q.completion.label||le.detail!=Q.completion.detail||null!=le.type&&null!=Q.completion.type&&le.type!=Q.completion.type||le.apply!=Q.completion.apply?we.push(Q):Efe(Q.completion)>Efe(le)&&(we[we.length-1]=Q),le=Q.completion}}catch(Z){z.e(Z)}finally{z.f()}return we}(n,e);if(!s.length)return null;var a,l=e.facet(_d).selectOnOpen?0:-1;if(r&&r.selected!=l&&-1!=r.selected)for(var c=r.options[r.selected].completion,u=0;u-1&&(e["aria-activedescendant"]=t+"-"+n),e}var Jet=[];function h$(t){return t.isUserEvent("input.type")?"input":t.isUserEvent("delete.backward")?"delete":null}var Kg=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;qe(this,t),this.source=n,this.state=e,this.explicitPos=i}return Xe(t,[{key:"hasResult",value:function(){return!1}},{key:"update",value:function(n,e){var i=h$(n),r=this;i?r=r.handleUserEvent(n,i,e):n.docChanged?r=r.handleChange(n):n.selection&&0!=r.state&&(r=new t(r.source,0));var o,s=ot(n.effects);try{for(s.s();!(o=s.n()).done;){var a=o.value;if(a.is(d$))r=new t(r.source,1,a.value?Sp(n.state):-1);else if(a.is(uD))r=new t(r.source,0);else if(a.is(Ife)){var l,c=ot(a.value);try{for(c.s();!(l=c.n()).done;){var u=l.value;u.source==r.source&&(r=u)}}catch(h){c.e(h)}finally{c.f()}}}}catch(h){s.e(h)}finally{s.f()}return r}},{key:"handleUserEvent",value:function(n,e,i){return"delete"!=e&&i.activateOnTyping?new t(this.source,1):this.map(n.changes)}},{key:"handleChange",value:function(n){return n.changes.touchesRange(Sp(n.startState))?new t(this.source,0):this.map(n.changes)}},{key:"map",value:function(n){return n.empty||this.explicitPos<0?this:new t(this.source,this.state,n.mapPos(this.explicitPos))}}]),t}(),Qet=function(t){Wt(e,Kg);var n=Gt(e);function e(i,r,o,s,a){var l;return qe(this,e),(l=n.call(this,i,2,r)).result=o,l.from=s,l.to=a,l}return Xe(e,[{key:"hasResult",value:function(){return!0}},{key:"handleUserEvent",value:function(i,r,o){var s,a=i.changes.mapPos(this.from),l=i.changes.mapPos(this.to,1),c=Sp(i.state);if((this.explicitPos<0?c<=a:cl||"delete"==r&&Sp(i.startState)==this.from)return new Kg(this.source,"input"==r&&o.activateOnTyping?1:0);var u,h=this.explicitPos<0?-1:i.changes.mapPos(this.explicitPos);return function(d,f,p,m){if(!d)return!1;var w=f.sliceDoc(p,m);return"function"==typeof d?d(w,p,m,f):kfe(d,!0).test(w)}(this.result.validFor,i.state,a,l)?new e(this.source,h,this.result,a,l):this.result.update&&(u=this.result.update(this.result,a,l,new xfe(i.state,c,h>=0)))?new e(this.source,h,u,u.from,null!==(s=u.to)&&void 0!==s?s:Sp(i.state)):new Kg(this.source,1,h)}},{key:"handleChange",value:function(i){return i.changes.touchesRange(this.from,this.to)?new Kg(this.source,0):this.map(i.changes)}},{key:"map",value:function(i){return i.empty?this:new e(this.source,this.explicitPos<0?-1:i.mapPos(this.explicitPos),this.result,i.mapPos(this.from),i.mapPos(this.to,1))}}]),e}(),d$=$r.define(),uD=$r.define(),Ife=$r.define({map:function(t,n){return t.map(function(e){return e.map(n)})}}),Ffe=$r.define(),vu=nl.define({create:function(){return Yet.start()},update:function(t,n){return t.update(n)},provide:function(t){return[Mk.from(t,function(n){return n.tooltip}),pi.contentAttributes.from(t,function(n){return n.attrs})]}});function hD(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"option";return function(e){var i=e.state.field(vu,!1);if(!i||!i.open||Date.now()-i.open.timestamp<75)return!1;var r,o=1;"page"==n&&(r=function QQe(t,n){var e=t.plugin(Ohe);if(!e)return null;var i=e.manager.tooltips.indexOf(n);return i<0?null:e.manager.tooltipViews[i]}(e,i.open.tooltip))&&(o=Math.max(2,Math.floor(r.dom.offsetHeight/r.dom.querySelector("li").offsetHeight)-1));var s=i.open.options.length,a=i.open.selected>-1?i.open.selected+o*(t?1:-1):t?0:s-1;return a<0?a="page"==n?0:s-1:a>=s&&(a="page"==n?s-1:0),e.dispatch({effects:Ffe.of(a)}),!0}}var Zet=Xe(function t(n,e){qe(this,t),this.active=n,this.context=e,this.time=Date.now(),this.updates=[],this.done=void 0}),ett=Ba.fromClass(function(){function t(n){qe(this,t),this.view=n,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;var e,i=ot(n.state.field(vu).active);try{for(i.s();!(e=i.n()).done;){var r=e.value;1==r.state&&this.startQuery(r)}}catch(o){i.e(o)}finally{i.f()}}return Xe(t,[{key:"update",value:function(n){var e=this,i=n.state.field(vu);if(n.selectionSet||n.docChanged||n.startState.field(vu)!=i){for(var r=n.transactions.some(function(p){return(p.selection||p.docChanged)&&!h$(p)}),o=0;o50&&Date.now()-s.time>1e3){var a,l=ot(s.context.abortListeners);try{for(l.s();!(a=l.n()).done;){var c=a.value;try{c()}catch(p){Pc(this.view.state,p)}}}catch(p){l.e(p)}finally{l.f()}s.context.abortListeners=null,this.running.splice(o--,1)}else{var u;(u=s.updates).push.apply(u,Ti(n.transactions))}}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=i.active.some(function(p){return 1==p.state&&!e.running.some(function(m){return m.active.source==p.source})})?setTimeout(function(){return e.startUpdate()},50):-1,0!=this.composing){var h,d=ot(n.transactions);try{for(d.s();!(h=d.n()).done;){var f=h.value;"input"==h$(f)?this.composing=2:2==this.composing&&f.selection&&(this.composing=3)}}catch(p){d.e(p)}finally{d.f()}}}}},{key:"startUpdate",value:function(){var n=this;this.debounceUpdate=-1;var e,i=ot(this.view.state.field(vu).active);try{var r=function(){var o=e.value;1!=o.state||n.running.some(function(s){return s.active.source==o.source})||n.startQuery(o)};for(i.s();!(e=i.n()).done;)r()}catch(o){i.e(o)}finally{i.f()}}},{key:"startQuery",value:function(n){var e=this,i=this.view.state,r=Sp(i),o=new xfe(i,r,n.explicitPos==r),s=new Zet(n,o);this.running.push(s),Promise.resolve(n.source(o)).then(function(a){s.context.aborted||(s.done=a||null,e.scheduleAccept())},function(a){e.view.dispatch({effects:uD.of(null)}),Pc(e.view.state,a)})}},{key:"scheduleAccept",value:function(){var n=this;this.running.every(function(e){return void 0!==e.done})?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(function(){return n.accept()},50))}},{key:"accept",value:function(){var n,e=this;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;for(var i=[],r=this.view.state.facet(_d),o=function(a){var l=e.running[a];if(void 0===l.done)return s=a,"continue";if(e.running.splice(a--,1),l.done){var c,u=new Qet(l.active.source,l.active.explicitPos,l.done,l.done.from,null!==(n=l.done.to)&&void 0!==n?n:Sp(l.updates.length?l.updates[0].startState:e.view.state)),h=ot(l.updates);try{for(h.s();!(c=h.n()).done;)u=u.update(c.value,r)}catch(k){h.e(k)}finally{h.f()}if(u.hasResult())return i.push(u),s=a,"continue"}var f=e.view.state.field(vu).active.find(function(k){return k.source==l.active.source});if(f&&1==f.state)if(null==l.done){var p,m=new Kg(l.active.source,0),w=ot(l.updates);try{for(w.s();!(p=w.n()).done;)m=m.update(p.value,r)}catch(k){w.e(k)}finally{w.f()}1!=m.state&&i.push(m)}else e.startQuery(f);s=a},s=0;s ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",listStyle:"none",margin:0,padding:0,"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer",padding:"1px 3px",lineHeight:1.2}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"300px"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25cb'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25cc'"}},".cm-completionIcon-variable":{"&:after":{content:"'\u{1d465}'"}},".cm-completionIcon-constant":{"&:after":{content:"'\u{1d436}'"}},".cm-completionIcon-type":{"&:after":{content:"'\u{1d461}'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222a'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25a1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\u{1f511}\ufe0e'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25a2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),dD={brackets:["(","[","{","'",'"'],before:")]}:;>"},Jg=$r.define({map:function(t,n){return n.mapPos(t,-1,Xl.TrackAfter)??void 0}}),f$=$r.define({map:function(t,n){return n.mapPos(t)}}),p$=new(function(t){Wt(e,Ug);var n=Gt(e);function e(){return qe(this,e),n.apply(this,arguments)}return Xe(e)}());p$.startSide=1,p$.endSide=-1;var Lfe=nl.define({create:function(){return cs.empty},update:function(t,n){if(n.selection){var e=n.state.doc.lineAt(n.selection.main.head).from,i=n.startState.doc.lineAt(n.startState.selection.main.head).from;e!=n.changes.mapPos(i,-1)&&(t=cs.empty)}t=t.map(n.changes);var r,o=ot(n.effects);try{var s=function(){var a=r.value;a.is(Jg)?t=t.update({add:[p$.range(a.value,a.value+1)]}):a.is(f$)&&(t=t.update({filter:function(l){return l!=a.value}}))};for(o.s();!(r=o.n()).done;)s()}catch(a){o.e(a)}finally{o.f()}return t}});function Ofe(t){for(var n=0;n<8;n+=2)if("()[]{}<>".charCodeAt(n)==t)return"()[]{}<>".charAt(n+1);return CN(t<128?t:t+1)}function Nfe(t,n){return t.languageDataAt("closeBrackets",n)[0]||dD}var ntt="object"==(typeof navigator>"u"?"undefined":$n(navigator))&&/Android\b/.test(navigator.userAgent),itt=pi.inputHandler.of(function(t,n,e,i){if((ntt?t.composing:t.compositionStarted)||t.state.readOnly)return!1;var r=t.state.selection.main;if(i.length>2||2==i.length&&1==Nc(tl(i,0))||n!=r.from||e!=r.to)return!1;var o=function(s,a){var l,c=Nfe(s,s.selection.main.head),u=c.brackets||dD.brackets,h=ot(u);try{for(h.s();!(l=h.n()).done;){var d=l.value,f=Ofe(tl(d,0));if(a==d)return f==d?att(s,d,u.indexOf(d+d+d)>-1):ott(s,d,f,c.before||dD.before);if(a==f&&Rfe(s,s.selection.main.from))return stt(s,0,f)}}catch(p){h.e(p)}finally{h.f()}return null}(t.state,i);return!!o&&(t.dispatch(o),!0)}),rtt=[{key:"Backspace",run:function(t){var n=t.state,e=t.dispatch;if(n.readOnly)return!1;var i=Nfe(n,n.selection.main.head).brackets||dD.brackets,r=null,o=n.changeByRange(function(s){if(s.empty){var a,l=Nc(tl(f=(h=n.doc).sliceString((d=s.head)-2,d),0))==f.length?f:f.slice(1),c=ot(i);try{for(c.s();!(a=c.n()).done;){var u=a.value;if(u==l&&fD(n.doc,s.head)==Ofe(tl(u,0)))return{changes:{from:s.head-u.length,to:s.head+u.length},range:_n.cursor(s.head-u.length),userEvent:"delete.backward"}}}catch(h){c.e(h)}finally{c.f()}}var h,d,f;return{range:r=s}});return r||e(n.update(o,{scrollIntoView:!0})),!r}}];function Rfe(t,n){var e=!1;return t.field(Lfe).between(0,t.doc.length,function(i){i==n&&(e=!0)}),e}function fD(t,n){var e=t.sliceString(n,n+2);return e.slice(0,Nc(tl(e,0)))}function ott(t,n,e,i){var r=null,o=t.changeByRange(function(s){if(!s.empty)return{changes:[{insert:n,from:s.from},{insert:e,from:s.to}],effects:Jg.of(s.to+n.length),range:_n.range(s.anchor+n.length,s.head+n.length)};var a=fD(t.doc,s.head);return!a||/\s/.test(a)||i.indexOf(a)>-1?{changes:{insert:n+e,from:s.head},effects:Jg.of(s.head+n.length),range:_n.cursor(s.head+n.length)}:{range:r=s}});return r?null:t.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function stt(t,n,e){var i=null,r=t.selection.ranges.map(function(o){return o.empty&&fD(t.doc,o.head)==e?_n.cursor(o.head+e.length):i=o});return i?null:t.update({selection:_n.create(r,t.selection.mainIndex),scrollIntoView:!0,effects:t.selection.ranges.map(function(o){return f$.of(o.from)})})}function att(t,n,e){var i=null,r=t.changeByRange(function(o){if(!o.empty)return{changes:[{insert:n,from:o.from},{insert:n,from:o.to}],effects:Jg.of(o.to+n.length),range:_n.range(o.anchor+n.length,o.head+n.length)};var s=o.head,a=fD(t.doc,s);if(a==n){if($fe(t,s))return{changes:{insert:n+n,from:s},effects:Jg.of(s+n.length),range:_n.cursor(s+n.length)};if(Rfe(t,s)){var l=e&&t.sliceDoc(s,s+3*n.length)==n+n+n;return{range:_n.cursor(s+n.length*(l?3:1)),effects:f$.of(s)}}}else{if(e&&t.sliceDoc(s-2*n.length,s)==n+n&&$fe(t,s-2*n.length))return{changes:{insert:n+n+n+n,from:s},effects:Jg.of(s+n.length),range:_n.cursor(s+n.length)};if(t.charCategorizer(s)(a)!=Ds.Word){var c=t.sliceDoc(s-1,s);if(c!=n&&t.charCategorizer(s)(c)!=Ds.Word&&!function(u,h,d){for(var f=kl(u).resolveInner(h,-1),p=0;p<5;p++){if(u.sliceDoc(f.from,f.from+d.length)==d){for(var m=f.firstChild;m&&m.from==f.from&&m.to-m.from>d.length;){if(u.sliceDoc(m.to-d.length,m.to)==d)return!1;m=m.firstChild}return!0}var w=f.to==h&&f.parent;if(!w)break;f=w}return!1}(t,s,n))return{changes:{insert:n+n,from:s},effects:Jg.of(s+n.length),range:_n.cursor(s+n.length)}}}return{range:i=o}});return i?null:t.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function $fe(t,n){var e=kl(t).resolveInner(n+1);return e.parent&&e.from==n}function ltt(){return[vu,_d.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),ett,ctt,ttt]}var Pfe=[{key:"Ctrl-Space",run:function(t){return!!t.state.field(vu,!1)&&(t.dispatch({effects:d$.of(!0)}),!0)}},{key:"Escape",run:function(t){var n=t.state.field(vu,!1);return!(!n||!n.active.some(function(e){return 0!=e.state})||(t.dispatch({effects:uD.of(null)}),0))}},{key:"ArrowDown",run:hD(!0)},{key:"ArrowUp",run:hD(!1)},{key:"PageDown",run:hD(!0,"page")},{key:"PageUp",run:hD(!1,"page")},{key:"Enter",run:function(t){var n=t.state.field(vu,!1);return!(t.state.readOnly||!n||!n.open||Date.now()-n.open.timestamp<75||n.open.selected<0||(Dfe(t,n.open.options[n.open.selected]),0))}}],ctt=x0.highest(Tk.computeN([_d],function(t){return t.facet(_d).defaultKeymap?[Pfe]:[]})),utt=Xe(function t(n,e,i){qe(this,t),this.from=n,this.to=e,this.diagnostic=i}),A_=function(){function t(n,e,i){qe(this,t),this.diagnostics=n,this.panel=e,this.selected=i}return Xe(t,null,[{key:"init",value:function(n,e,i){var r=n,o=i.facet(Qg).markerFilter;o&&(r=o(r));var s=Hi.set(r.map(function(a){return a.from==a.to||a.from==a.to-1&&i.doc.lineAt(a.from).to==a.from?Hi.widget({widget:new gtt(a),diagnostic:a}).range(a.from):Hi.mark({attributes:{class:"cm-lintRange cm-lintRange-"+a.severity},diagnostic:a}).range(a.from,a.to)}),!0);return new t(s,e,j0(s))}}]),t}();function j0(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=null;return t.between(arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,1e9,function(r,o,s){var a=s.spec;if(!n||a.diagnostic==n)return i=new utt(r,o,a.diagnostic),!1}),i}function jfe(t,n){return!(!t.effects.some(function(e){return e.is(pD)})&&!t.changes.touchesRange(n.pos))}function Bfe(t,n){return t.field(Bc,!1)?n:n.concat($r.appendConfig.of([Bc,pi.decorations.compute([Bc],function(e){var i=e.field(Bc),r=i.selected;return r&&i.panel&&r.from!=r.to?Hi.set([htt.range(r.from,r.to)]):Hi.none}),JQe(dtt,{hideOn:jfe}),mtt]))}var pD=$r.define(),g$=$r.define(),Hfe=$r.define(),Bc=nl.define({create:function(){return new A_(Hi.none,null,null)},update:function(t,n){if(n.docChanged){var e=t.diagnostics.map(n.changes),i=null;if(t.selected){var r=n.changes.mapPos(t.selected.from,1);i=j0(e,t.selected.diagnostic,r)||j0(e,null,r)}t=new A_(e,t.panel,i)}var o,s=ot(n.effects);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.is(pD)?t=A_.init(a.value,t.panel,n.state):a.is(g$)?t=new A_(t.diagnostics,a.value?qfe.open:null,t.selected):a.is(Hfe)&&(t=new A_(t.diagnostics,t.panel,a.value))}}catch(l){s.e(l)}finally{s.f()}return t},provide:function(t){return[v_.from(t,function(n){return n.panel}),pi.decorations.from(t,function(n){return n.diagnostics})]}}),htt=Hi.mark({class:"cm-lintRange cm-lintRange-active"});function dtt(t,n,e){var i=t.state.field(Bc).diagnostics,r=[],o=2e8,s=0;i.between(n-(e<0?1:0),n+(e>0?1:0),function(l,c,u){n>=l&&n<=c&&(l==c||(n>l||e>0)&&(n=65&&i.keyCode<=90&&e.selectedIndex>=0))return;for(var r=e.items[e.selectedIndex].diagnostic,o=Ufe(r.actions),s=0;so&&(n.items.splice(o,f-o),s=!0)),r&&h.diagnostic==r.diagnostic?h.dom.hasAttribute("aria-selected")||(h.dom.setAttribute("aria-selected","true"),a=h):h.dom.hasAttribute("aria-selected")&&h.dom.removeAttribute("aria-selected"),o++});ou.bottom&&(n.list.scrollTop+=c.bottom-u.bottom)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),s&&this.sync()}},{key:"sync",value:function(){var n=this.list.firstChild;function e(){var s=n;n=s.nextSibling,s.remove()}var i,r=ot(this.items);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.dom.parentNode==this.list){for(;n!=o.dom;)e();n=o.dom.nextSibling}else this.list.insertBefore(o.dom,n)}}catch(s){r.e(s)}finally{r.f()}for(;n;)e()}},{key:"moveSelection",value:function(n){if(!(this.selectedIndex<0)){var e=j0(this.view.state.field(Bc).diagnostics,this.items[n].diagnostic);e&&this.view.dispatch({selection:{anchor:e.from,head:e.to},scrollIntoView:!0,effects:Hfe.of(e)})}}}],[{key:"open",value:function(n){return new t(n)}}]),t}();function gD(t){return'url(\'data:image/svg+xml,1&&void 0!==arguments[1]?arguments[1]:'viewBox="0 0 40 40"',">").concat(encodeURIComponent(t),"')")}function m$(t){return gD(''),'width="6" height="3"')}var mtt=pi.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:m$("#d11")},".cm-lintRange-warning":{backgroundImage:m$("orange")},".cm-lintRange-info":{backgroundImage:m$("#999")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),vtt=function(t){Wt(e,pd);var n=Gt(e);function e(i){var r;return qe(this,e),(r=n.call(this)).diagnostics=i,r.severity=i.reduce(function(o,s){var a=s.severity;return"error"==a||"warning"==a&&"info"==o?a:o},"info"),r}return Xe(e,[{key:"toDOM",value:function(i){var r=document.createElement("div");r.className="cm-lint-marker cm-lint-marker-"+this.severity;var o=this.diagnostics,s=i.state.facet(mD).tooltipFilter;return s&&(o=s(o)),o.length&&(r.onmouseover=function(){return function(a,l,c){function u(){var p,m,f=a.elementAtHeight(l.getBoundingClientRect().top+5-a.documentTop);a.coordsAtPos(f.from)&&a.dispatch({effects:v$.of({pos:f.from,above:!1,create:function(){return{dom:Vfe(a,c),getCoords:function(){return l.getBoundingClientRect()}}}})}),l.onmouseout=l.onmousemove=null,p=a,m=l,window.addEventListener("mousemove",function C(k){var E=m.getBoundingClientRect();if(!(k.clientX>E.left-10&&k.clientXE.top-10&&k.clientY')},".cm-lint-marker-warning":{content:gD('')},".cm-lint-marker-error":{content:gD('')}}),mD=yi.define({combine:function(t){return fu(t,{hoverTime:300,markerFilter:null,tooltipFilter:null})}});function wtt(){return[mD.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Xfe,btt,_tt,Yfe]}var Kfe,xtt=function(){return[oZe(),aZe,OQe(),uet(),RZe(),DQe(),[g_,MQe],Qo.allowMultipleSelections.of(!0),Qo.transactionFilter.of(function(e){if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;var i=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!i.length)return e;var r=e.newDoc,o=e.newSelection.main.head,s=r.lineAt(o);if(o>s.from+200)return e;var a=r.sliceString(s.from,o);if(!i.some(function(k){return k.test(a)}))return e;var l,c=e.state,u=-1,h=[],d=ot(c.selection.ranges);try{for(d.s();!(l=d.n()).done;){var p=c.doc.lineAt(l.value.head);if(p.from!=u){u=p.from;var m=RR(c,p.from);if(null!=m){var w=/^\s*/.exec(p.text)[0],C=C_(c,m);w!=C&&h.push({from:p.from,to:p.from+w.length,insert:C})}}}}catch(k){d.e(k)}finally{d.f()}return h.length?[e,{changes:h,sequential:!0}]:e}),bde(BZe,{fallback:!0}),qZe(),[itt,Lfe],ltt(),HQe(),UQe(),jQe,(n=[Fet,Iet],n),Tk.of([].concat(rtt,Ti(ket),Het,yet,LZe,Pfe,ftt))];var n}(),Ctt=function(){function t(n,e,i,r,o,s,a,l,c){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,h=arguments.length>10?arguments[10]:void 0;qe(this,t),this.p=n,this.stack=e,this.state=i,this.reducePos=r,this.pos=o,this.score=s,this.buffer=a,this.bufferBase=l,this.curContext=c,this.lookAhead=u,this.parent=h}return Xe(t,[{key:"toString",value:function(){return"[".concat(this.stack.filter(function(n,e){return e%3==0}).concat(this.state),"]@").concat(this.pos).concat(this.score?"!"+this.score:"")}},{key:"context",get:function(){return this.curContext?this.curContext.context:null}},{key:"pushState",value:function(n,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=n}},{key:"reduce",value:function(n){var e=n>>19,i=65535&n,r=this.p.parser,o=r.dynamicPrecedence(i);if(o&&(this.score+=o),0==e)return this.pushState(r.getGoto(this.state,i,!0),this.reducePos),is;)this.stack.pop();this.reduceContext(i,a)}},{key:"storeNode",value:function(n,e,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:4,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(0==n&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==s.buffer[a-4]&&s.buffer[a-1]>-1){if(e==i)return;if(s.buffer[a-2]>=e)return void(s.buffer[a-2]=i)}}if(o&&this.pos!=i){var l=this.buffer.length;if(l>0&&0!=this.buffer[l-4])for(;l>0&&this.buffer[l-2]>i;)this.buffer[l]=this.buffer[l-4],this.buffer[l+1]=this.buffer[l-3],this.buffer[l+2]=this.buffer[l-2],this.buffer[l+3]=this.buffer[l-1],l-=4,r>4&&(r-=4);this.buffer[l]=n,this.buffer[l+1]=e,this.buffer[l+2]=i,this.buffer[l+3]=r}else this.buffer.push(n,e,i,r)}},{key:"shift",value:function(n,e,i){var r=this.pos;if(131072&n)this.pushState(65535&n,this.pos);else if(262144&n)this.pos=i,this.shiftContext(e,r),e<=this.p.parser.maxNode&&this.buffer.push(e,r,i,4);else{var o=n,s=this.p.parser;(i>this.pos||e<=s.maxNode)&&(this.pos=i,s.stateFlag(o,1)||(this.reducePos=i)),this.pushState(o,r),this.shiftContext(e,r),e<=s.maxNode&&this.buffer.push(e,r,i,4)}}},{key:"apply",value:function(n,e,i){65536&n?this.reduce(n):this.shift(n,e,i)}},{key:"useNode",value:function(n,e){var i=this.p.reused.length-1;(i<0||this.p.reused[i]!=n)&&(this.p.reused.push(n),i++);var r=this.pos;this.reducePos=this.pos=r+n.length,this.pushState(e,r),this.buffer.push(i,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,n,this,this.p.stream.reset(this.pos-n.length)))}},{key:"split",value:function(){for(var n=this,e=n.buffer.length;e>0&&n.buffer[e-2]>n.reducePos;)e-=4;for(var i=n.buffer.slice(e),r=n.bufferBase+e;n&&r==n.bufferBase;)n=n.parent;return new t(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,r,this.curContext,this.lookAhead,n)}},{key:"recoverByDelete",value:function(n,e){var i=n<=this.p.parser.maxNode;i&&this.storeNode(n,this.pos,e,4),this.storeNode(0,this.pos,e,i?8:4),this.pos=this.reducePos=e,this.score-=190}},{key:"canShift",value:function(n){for(var e=new Stt(this);;){var i=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,n);if(!(65536&i))return!0;if(0==i)return!1;e.reduce(i)}}},{key:"recoverByInsert",value:function(n){if(this.stack.length>=300)return[];var e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){for(var i,r=[],o=0;o>19);if(o<0||e.getGoto(this.stack[o],65535&n,!1)<0)return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}},{key:"forceAll",value:function(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}},{key:"deadEnd",get:function(){if(3!=this.stack.length)return!1;var n=this.p.parser;return 65535==n.data[n.stateSlot(this.state,1)]&&!n.stateSlot(this.state,4)}},{key:"restart",value:function(){this.state=this.stack[0],this.stack.length=0}},{key:"sameState",value:function(n){if(this.state!=n.state||this.stack.length!=n.stack.length)return!1;for(var e=0;ethis.lookAhead&&(this.emitLookAhead(),this.lookAhead=n)}},{key:"close",value:function(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}],[{key:"start",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=n.parser.context;return new t(n,[],e,i,i,0,[],0,r?new Jfe(r,r.start):null,0,null)}}]),t}(),Jfe=Xe(function t(n,e){qe(this,t),this.tracker=n,this.context=e,this.hash=n.strict?n.hash(e):0});!function(t){t[t.Insert=200]="Insert",t[t.Delete=190]="Delete",t[t.Reduce=100]="Reduce",t[t.MaxNext=4]="MaxNext",t[t.MaxInsertStackDepth=300]="MaxInsertStackDepth",t[t.DampenInsertStackDepth=120]="DampenInsertStackDepth"}(Kfe||(Kfe={}));var Stt=function(){function t(n){qe(this,t),this.start=n,this.state=n.state,this.stack=n.stack,this.base=this.stack.length}return Xe(t,[{key:"reduce",value:function(n){var e=65535&n,i=n>>19;0==i?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(i-1);var r=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=r}}]),t}(),ktt=function(){function t(n,e,i){qe(this,t),this.stack=n,this.pos=e,this.index=i,this.buffer=n.buffer,0==this.index&&this.maybeNext()}return Xe(t,[{key:"maybeNext",value:function(){var n=this.stack.parent;null!=n&&(this.index=this.stack.bufferBase-n.bufferBase,this.stack=n,this.buffer=n.buffer)}},{key:"id",get:function(){return this.buffer[this.index-4]}},{key:"start",get:function(){return this.buffer[this.index-3]}},{key:"end",get:function(){return this.buffer[this.index-2]}},{key:"size",get:function(){return this.buffer[this.index-1]}},{key:"next",value:function(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}},{key:"fork",value:function(){return new t(this.stack,this.pos,this.index)}}],[{key:"create",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.bufferBase+n.buffer.length;return new t(n,e,e-n.bufferBase)}}]),t}(),vD=Xe(function t(){qe(this,t),this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}),Qfe=new vD,Dtt=function(){function t(n,e){qe(this,t),this.input=n,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Qfe,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}return Xe(t,[{key:"resolveOffset",value:function(n,e){for(var i=this.range,r=this.rangeIndex,o=this.pos+n;oi.to:o>=i.to;){if(r==this.ranges.length-1)return null;var a=this.ranges[++r];o+=a.from-i.to,i=a}return o}},{key:"clipPos",value:function(n){if(n>=this.range.from&&nn)return Math.max(n,r.from)}}catch(o){i.e(o)}finally{i.f()}return this.end}},{key:"peek",value:function(n){var e,i,r=this.chunkOff+n;if(r>=0&&r=this.chunk2Pos&&ea.to&&(this.chunk2=this.chunk2.slice(0,a.to-e)),i=this.chunk2.charCodeAt(0)}}return e>=this.token.lookAhead&&(this.token.lookAhead=e+1),i}},{key:"acceptToken",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=e?this.resolveOffset(e,-1):this.pos;if(null==i||i=this.chunk2Pos&&this.posthis.range.to?i.slice(0,this.range.to-this.pos):i,this.chunkPos=this.pos,this.chunkOff=0}}},{key:"readNext",value:function(){return this.next=this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?-1:this.chunk.charCodeAt(this.chunkOff)}},{key:"advance",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;for(this.chunkOff+=n;this.pos+n>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();n-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=n,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}},{key:"setDone",value:function(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}},{key:"reset",value:function(n,e){if(e?(this.token=e,e.start=n,e.lookAhead=n+1,e.value=e.extended=-1):this.token=Qfe,this.pos!=n){if(this.pos=n,n==this.end)return this.setDone(),this;for(;n=this.range.to;)this.range=this.ranges[++this.rangeIndex];n>=this.chunkPos&&n=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(n-this.chunkPos,e-this.chunkPos);if(n>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(n-this.chunk2Pos,e-this.chunk2Pos);if(n>=this.range.from&&e<=this.range.to)return this.input.read(n,e);var i,r="",o=ot(this.ranges);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(s.from>=e)break;s.to>n&&(r+=this.input.read(Math.max(s.from,n),Math.min(s.to,e)))}}catch(a){o.e(a)}finally{o.f()}return r}}]),t}(),yD=function(){function t(n,e){qe(this,t),this.data=n,this.id=e}return Xe(t,[{key:"token",value:function(n,e){!function(i,r,o,s){var a=0,l=1<0){var f=i[d];if(u.allows(f)&&(-1==r.token.value||r.token.value==f||c.overrides(f,r.token.value))){r.acceptToken(f);break}}var p=r.next,m=0,w=i[a+2];if(!(r.next<0&&w>m&&65535==i[h+3*w-3])){for(;m>1,k=h+C+(C<<1);if(p=i[k+1])){a=i[k+2],r.advance();continue e}m=C+1}}break}a=i[h+3*w-1]}}(this.data,n,e,this.id)}}]),t}();function bD(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Uint16Array;if("string"!=typeof t)return t;for(var e=null,i=0,r=0;i=92&&s--,s>=34&&s--;var l=s-32;if(l>=46&&(l-=46,a=!0),o+=l,a)break;o*=46}e?e[r++]=o:e=new n(o)}return e}yD.prototype.contextual=yD.prototype.fallback=yD.prototype.extend=!1;var Zfe,fh=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG),y$=null;function epe(t,n,e){var i=t.cursor(rl.IncludeAnonymous);for(i.moveTo(n);;)if(!(e<0?i.childBefore(n):i.childAfter(n)))for(;;){if((e<0?i.ton)&&!i.type.isError)return e<0?Math.max(0,Math.min(i.to-1,n-25)):Math.min(t.length,Math.max(i.from+1,n+25));if(e<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return e<0?0:t.length}}!function(t){t[t.Margin=25]="Margin"}(Zfe||(Zfe={}));var tpe,Ttt=function(){function t(n,e){qe(this,t),this.fragments=n,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}return Xe(t,[{key:"nextFragment",value:function(){var n=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(n){for(this.safeFrom=n.openStart?epe(n.tree,n.from+n.offset,1)-n.offset:n.from,this.safeTo=n.openEnd?epe(n.tree,n.to+n.offset,-1)-n.offset:n.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(n.tree),this.start.push(-n.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}},{key:"nodeAt",value:function(n){if(nn)return this.nextStart=s,null;if(o instanceof ol){if(s==n){if(s=Math.max(this.safeFrom,n)&&(this.trees.push(o),this.start.push(s),this.index.push(0))}else this.index[e]++,this.nextStart=s+o.length}else this.trees.pop(),this.start.pop(),this.index.pop()}}}]),t}(),Att=function(){function t(n,e){qe(this,t),this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=n.tokenizers.map(function(i){return new vD})}return Xe(t,[{key:"getActions",value:function(n){for(var e=0,i=null,r=n.p.parser,o=r.tokenizers,s=r.stateSlot(n.state,3),a=n.curContext?n.curContext.hash:0,l=0,c=0;ch.end+25&&(l=Math.max(h.lookAhead,l)),0!=h.value)){var d=e;if(h.extended>-1&&(e=this.addActions(n,h.extended,h.end,e)),e=this.addActions(n,h.value,h.end,e),!u.extend&&(i=h,e>d))break}}for(;this.actions.length>e;)this.actions.pop();return l&&n.setLookAhead(l),i||n.pos!=this.stream.end||((i=new vD).value=n.p.parser.eofTerm,i.start=i.end=n.pos,e=this.addActions(n,i.value,i.end,e)),this.mainToken=i,this.actions}},{key:"getMainToken",value:function(n){if(this.mainToken)return this.mainToken;var e=new vD,i=n.pos,r=n.p;return e.start=i,e.end=Math.min(i+1,r.stream.end),e.value=i==r.stream.end?r.parser.eofTerm:0,e}},{key:"updateCachedToken",value:function(n,e,i){var r=this.stream.clipPos(i.pos);if(e.token(this.stream.reset(r,n),i),n.value>-1){for(var o=i.p.parser,s=0;s=0&&i.p.parser.dialect.allows(a>>1)){1&a?n.extended=a>>1:n.value=a>>1;break}}}else n.value=0,n.end=this.stream.clipPos(r+1)}},{key:"putAction",value:function(n,e,i,r){for(var o=0;o4*n.bufferLength?new Ttt(i,n.nodeSet):null}return Xe(t,[{key:"parsedPos",get:function(){return this.minStackPos}},{key:"advance",value:function(){for(var n,e,i=this.stacks,r=this.minStackPos,o=this.stacks=[],s=0;sr)o.push(a);else{if(this.advanceStack(a,o,i))continue;n||(n=[],e=[]),n.push(a);var l=this.tokens.getMainToken(a);e.push(l.value,l.end)}break}if(!o.length){var c=n&&function(C){var k,E=null,L=ot(C);try{for(L.s();!(k=L.n()).done;){var B=k.value,G=B.p.stoppedAt;(B.pos==B.p.stream.end||null!=G&&B.pos>G)&&B.p.parser.stateFlag(B.state,2)&&(!E||E.scorethis.stoppedAt?n[0]:this.runRecovery(n,e,o);if(u)return this.stackToTree(u.forceAll())}if(this.recovering){var h=1==this.recovering?1:3*this.recovering;if(o.length>h)for(o.sort(function(C,k){return k.score-C.score});o.length>h;)o.pop();o.some(function(C){return C.reducePos>r})&&this.recovering--}else if(o.length>1)e:for(var d=0;d500&&m.buffer.length>500){if(!((f.score-m.score||f.buffer.length-m.buffer.length)>0)){o.splice(d--,1);continue e}o.splice(p--,1)}}this.minStackPos=o[0].pos;for(var w=1;w ":"";if(null!=this.stoppedAt&&r>this.stoppedAt)return n.forceReduce()?n:null;if(this.fragments)for(var a=n.curContext&&n.curContext.tracker.strict,l=a?n.curContext.hash:0,c=this.fragments.nodeAt(r);c;){var u=this.parser.nodeSet.types[c.type.id]==c.type?o.getGoto(n.state,c.type.id):-1;if(u>-1&&c.length&&(!a||(c.prop(Hr.contextHash)||0)==l))return n.useNode(c,u),fh&&console.log(s+this.stackID(n)+" (via reuse of ".concat(o.getName(c.type.id),")")),!0;if(!(c instanceof ol)||0==c.children.length||c.positions[0]>0)break;var h=c.children[0];if(!(h instanceof ol&&0==c.positions[0]))break;c=h}var d=o.stateSlot(n.state,4);if(d>0)return n.reduce(d),fh&&console.log(s+this.stackID(n)+" (via always-reduce ".concat(o.getName(65535&d),")")),!0;if(n.stack.length>=15e3)for(;n.stack.length>9e3&&n.forceReduce(););for(var f=this.tokens.getActions(n),p=0;pr?e.push(E):i.push(E)}return!1}},{key:"advanceFully",value:function(n,e){for(var i=n.pos;;){if(!this.advanceStack(n,null,null))return!1;if(n.pos>i)return npe(n,e),!0}}},{key:"runRecovery",value:function(n,e,i){for(var r=null,o=!1,s=0;s ":"";if(!a.deadEnd||!o&&(o=!0,a.restart(),fh&&console.log(u+this.stackID(a)+" (restarted)"),!this.advanceFully(a,i))){for(var h=a.split(),d=u,f=0;h.forceReduce()&&f<10&&(fh&&console.log(d+this.stackID(h)+" (via force-reduce)"),!this.advanceFully(h,i));f++)fh&&(d=this.stackID(h)+" -> ");var p,m=ot(a.recoverByInsert(l));try{for(m.s();!(p=m.n()).done;){var w=p.value;fh&&console.log(u+this.stackID(w)+" (via recover-insert)"),this.advanceFully(w,i)}}catch(C){m.e(C)}finally{m.f()}this.stream.end>a.pos?(c==a.pos&&(c++,l=0),a.recoverByDelete(l,c),fh&&console.log(u+this.stackID(a)+" (via recover-delete ".concat(this.parser.getName(l),")")),npe(a,i)):(!r||r.score=0)h(C,m,p[w++]);else{for(var k=p[w+-C],E=-C;E>0;E--)h(p[w++],m,k);w++}}}}catch(G){f.e(G)}finally{f.f()}}o.nodeSet=new uZe(s.map(function(G,oe){return pu.define({name:oe>=o.minRepeatTerm?void 0:G,id:oe,props:c[oe],top:l.indexOf(oe)>-1,error:0==oe,skipped:i.skippedNodes&&i.skippedNodes.indexOf(oe)>-1})})),i.propSources&&(o.nodeSet=(r=o.nodeSet).extend.apply(r,Ti(i.propSources))),o.strict=!1,o.bufferLength=1024;var L=bD(i.tokenData);o.context=i.context,o.specializerSpecs=i.specialized||[],o.specialized=new Uint16Array(o.specializerSpecs.length);for(var B=0;B2&&void 0!==arguments[2]&&arguments[2],s=this.goto;if(r>=s[0])return-1;for(var a=s[r+1];;){var l=s[a++],c=1&l,u=s[a++];if(c&&o)return u;for(var h=a+(l>>1);a0}},{key:"validAction",value:function(i,r){if(r==this.stateSlot(i,4))return!0;for(var o=this.stateSlot(i,1);;o+=3){if(65535==this.data[o]){if(1!=this.data[o+1])return!1;o=df(this.data,o+2)}if(r==df(this.data,o+1))return!0}}},{key:"nextStates",value:function(i){for(var r=this,o=[],s=this.stateSlot(i,1);;s+=3){if(65535==this.data[s]){if(1!=this.data[s+1])break;s=df(this.data,s+2)}!(1&this.data[s+2])&&function(){var a=r.data[s+1];o.some(function(l,c){return 1&c&&l==a})||o.push(r.data[s],a)}()}return o}},{key:"overrides",value:function(i,r){var o=ipe(this.data,this.tokenPrecTable,r);return o<0||ipe(this.data,this.tokenPrecTable,i)0}},{key:"getName",value:function(i){return this.termNames?this.termNames[i]:String(i<=this.maxNode&&this.nodeSet.types[i].name||i)}},{key:"eofTerm",get:function(){return this.maxNode+1}},{key:"topNode",get:function(){return this.nodeSet.types[this.top[1]]}},{key:"dynamicPrecedence",value:function(i){var r=this.dynamicPrecedences;return null==r?0:r[i]||0}},{key:"parseDialect",value:function(i){var r=Object.keys(this.dialects),o=r.map(function(){return!1});if(i){var s,a=ot(i.split(" "));try{for(a.s();!(s=a.n()).done;){var c=r.indexOf(s.value);c>=0&&(o[c]=!0)}}catch(p){a.e(p)}finally{a.f()}}for(var u=null,h=0;h0&&ape(t);return{c:function(){n=Be("div"),r&&r.c(),e=xt(),o&&o.c(),i=xt(),s&&s.c(),ne(n,"class","jse-status-bar svelte-1oo7hnc")},m:function(a,l){nt(a,n,l),r&&r.m(n,null),Ie(n,e),o&&o.m(n,null),Ie(n,i),s&&s.m(n,null)},p:function(a,l){var c=di(l,1)[0];void 0!==a[0]?r?r.p(a,c):((r=ope(a)).c(),r.m(n,e)):r&&(r.d(1),r=null),void 0!==a[1]?o?o.p(a,c):((o=spe(a)).c(),o.m(n,i)):o&&(o.d(1),o=null),void 0!==a[2]&&a[2]>0?s?s.p(a,c):((s=ape(a)).c(),s.m(n,null)):s&&(s.d(1),s=null)},i:an,o:an,d:function(a){a&&tt(n),r&&r.d(),o&&o.d(),s&&s.d()}}}function $tt(t,n,e){var i,r,o,s,a,l=n.editorState;return t.$$set=function(c){"editorState"in c&&e(3,l=c.editorState)},t.$$.update=function(){var c,u,h,d,f,p,m,w;8&t.$$.dirty&&e(4,i=null===(c=l)||void 0===c||null===(u=c.selection)||void 0===u||null===(h=u.main)||void 0===h?void 0:h.head),24&t.$$.dirty&&e(5,r=null===(d=l)||void 0===d||null===(f=d.doc)||void 0===f?void 0:f.lineAt(i)),32&t.$$.dirty&&e(0,o=r?r.number:void 0),48&t.$$.dirty&&e(1,s=r?i-r.from+1:void 0),8&t.$$.dirty&&e(2,a=null===(p=l)||void 0===p||null===(m=p.selection)||void 0===m||null===(w=m.ranges)||void 0===w?void 0:w.reduce(function(C,k){return C+k.to-k.from},0))},[o,s,a,l,i,r]}var Ptt=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,$tt,Rtt,Os,{editorState:3},Ntt),r}return Xe(e)}(),b$=PR.define([{tag:Ln.propertyName,color:"var(--jse-key-color)"},{tag:Ln.number,color:"var(--jse-value-color-number)"},{tag:Ln.bool,color:"var(--jse-value-color-boolean)"},{tag:Ln.string,color:"var(--jse-value-color-string)"},{tag:Ln.keyword,color:"var(--jse-value-color-null)"}]),jtt=bde(b$),Btt=b$.style;function _$(t){return t.doc.lineAt(t.selection.main.head)}function lpe(t,n){var e=0;e:for(var i=0;i=r.level?i.level:i.empty&&0===i.level&&0!==r.level?0:r.level>i.level?i.level+1:r.level)}var o=lpe(n.text,this.state.tabSize),s=Math.floor(o/this.unitWidth);return this.set(n,o,s)}},{key:"closestNonEmpty",value:function(n,e){for(var i=n.number+e;-1===e?i>=1:i<=this.state.doc.lines;){if(this.has(i)){var r=this.get(i);if(!r.empty)return r}var o=this.state.doc.line(i);if(o.text.trim().length){var s=lpe(o.text,this.state.tabSize),a=Math.floor(s/this.unitWidth);return this.set(o,s,a)}i+=e}var l=this.state.doc.line(-1===e?1:this.state.doc.lines);return this.set(l,0,0)}},{key:"findAndSetActiveLines",value:function(){var n=_$(this.state);if(this.has(n)){var e=this.get(n);if(this.has(e.line.number+1)){var i=this.get(e.line.number+1);i.level>e.level&&(e=i)}if(this.has(e.line.number-1)){var r=this.get(e.line.number-1);r.level>e.level&&(e=r)}if(0!==e.level){var o,s;for(e.active=e.level,o=e.line.number;o>1;o--)if(this.has(o-1)){var a=this.get(o-1);if(a.level1&&void 0!==arguments[1]?arguments[1]:h.state,p=new Set,m=ot(h.visibleRanges);try{for(m.s();!(d=m.n()).done;)for(var w=d.value,k=w.to,E=w.from;E<=k;){var L=f.doc.lineAt(E);p.has(L)||p.add(L),E=L.to+1}}catch(B){m.e(B)}finally{m.f()}return p}(this.view,n),o=new Htt(r,n,this.unitWidth),s=n.facet(_D).hideFirstIndent,a=ot(r);try{for(a.s();!(e=a.n()).done;){var l=e.value,c=o.get(l.number);if(c?.level){var u=ztt(c,this.unitWidth,s);i.add(l.from,l.from,Hi.line({class:"cm-indent-markers",attributes:{style:"--indent-markers: ".concat(u)}}))}}}catch(h){a.e(h)}finally{a.f()}this.decorations=i.finish()}}]),t}();function Wtt(){return[_D.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Vtt,Ba.fromClass(Utt,{decorations:function(n){return n.decorations}})]}function Gtt(t){Ni(t,"svelte-1yqirn0",'.jse-text-mode.svelte-1yqirn0.svelte-1yqirn0{flex:1;box-sizing:border-box;display:flex;flex-direction:column;background:var(--jse-background-color)}.jse-text-mode.no-main-menu.svelte-1yqirn0.svelte-1yqirn0{border-top:var(--jse-main-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0{flex:1;display:flex;position:relative;flex-direction:column;overflow:hidden;min-width:0;min-height:0;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0:last-child{border-bottom:var(--jse-main-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.jse-hidden.svelte-1yqirn0{visibility:hidden;position:absolute;top:0;left:0}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor{flex:1;overflow:hidden}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-scroller{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);line-height:var(--jse-line-height);color:var(--jse-delimiter-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-gutters{background:var(--jse-panel-background);color:var(--jse-panel-color-readonly);border-right:var(--jse-panel-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-activeLine,.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-activeLineGutter{background:var(--jse-active-line-background-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-selectionBackground{background:var(--jse-selection-background-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-searchMatch{background-color:var(--jse-search-match-color);outline:var(--jse-search-match-outline)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-searchMatch.cm-searchMatch-selected{background-color:var(--jse-search-match-active-color);outline:var(--jse-search-match-active-outline)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-selectionMatch{background-color:var(--jse-search-match-background-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-foldPlaceholder{background:var(--jse-tag-background);color:var(--jse-tag-color);border:none;padding:0 var(--jse-padding)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-tooltip{font-size:var(--jse-font-size);font-family:var(--jse-font-family);color:var(--jse-tooltip-color);background:var(--jse-tooltip-background);border:var(--jse-tooltip-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-diagnosticAction{background:var(--jse-tooltip-action-button-color);background:var(--jse-tooltip-action-button-background)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-panels{border-bottom:var(--jse-panel-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search{background:var(--jse-panel-background);color:var(--jse-panel-color);font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search input{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);color:var(--jse-input-color);border:var(--jse-input-border);background:var(--jse-input-background);margin-right:2px}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search button{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);color:var(--jse-panel-button-color);background:var(--jse-panel-button-background);border:none;cursor:pointer;text-transform:capitalize;padding:calc(0.5 * var(--jse-padding)) var(--jse-padding);margin:0}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search button:hover{color:var(--jse-panel-button-color-highlight);background:var(--jse-panel-button-background-highlight)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search label{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);padding-left:var(--jse-padding)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search label input{margin-right:2px}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search button[name="close"]{width:32px;height:32px;font-size:24px;line-height:24px;padding:0;right:0;top:-4px}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-cursor-primary{border-color:var(--jse-text-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents .jse-loading-space.svelte-1yqirn0{flex:1}.jse-text-mode.svelte-1yqirn0 .jse-contents .jse-loading.svelte-1yqirn0{flex:2;text-align:center;color:var(--jse-panel-color-readonly);box-sizing:border-box;font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-text-mode.svelte-1yqirn0 .jse-contents.jse-preview.svelte-1yqirn0{flex:1;color:var(--jse-panel-color-readonly);overflow:auto;white-space:pre-wrap;word-break:break-word;padding:2px}')}function w$(t){var n=t.slice();return n[93]=0===n[10].length,n}function cpe(t){var n,e;return n=new fJe({props:{readOnly:t[0],onFormat:t[16],onCompact:t[17],onSort:t[18],onTransform:t[19],onToggleSearch:t[20],onUndo:t[21],onRedo:t[22],canFormat:!t[93],canCompact:!t[93],canSort:!t[93],canTransform:!t[93],canUndo:t[11],canRedo:t[12],onRenderMenu:t[3]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};1&r[0]&&(o.readOnly=i[0]),1024&r[0]&&(o.canFormat=!i[93]),1024&r[0]&&(o.canCompact=!i[93]),1024&r[0]&&(o.canSort=!i[93]),1024&r[0]&&(o.canTransform=!i[93]),2048&r[0]&&(o.canUndo=i[11]),4096&r[0]&&(o.canRedo=i[12]),8&r[0]&&(o.onRenderMenu=i[3]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function qtt(t){var n;return{c:function(){(n=Be("div")).innerHTML='
    \n
    loading...
    ',ne(n,"class","jse-contents svelte-1yqirn0")},m:function(e,i){nt(e,n,i)},p:an,i:an,o:an,d:function(e){e&&tt(n)}}}function Xtt(t){var n,e,i,r,o,s=t[92]&&upe(t),a=!t[92]&&hpe(t);return{c:function(){n=Be("div"),e=xt(),s&&s.c(),i=xt(),a&&a.c(),r=Wr(),ne(n,"class","jse-contents svelte-1yqirn0"),en(n,"jse-hidden",t[92])},m:function(l,c){nt(l,n,c),t[50](n),nt(l,e,c),s&&s.m(l,c),nt(l,i,c),a&&a.m(l,c),nt(l,r,c),o=!0},p:function(l,c){(!o||134218880&c[0])&&en(n,"jse-hidden",l[92]),l[92]?s?(s.p(l,c),1152&c[0]&&_e(s,1)):((s=upe(l)).c(),_e(s,1),s.m(i.parentNode,i)):s&&(cn(),Ee(s,1,1,function(){s=null}),un()),l[92]?a&&(cn(),Ee(a,1,1,function(){a=null}),un()):a?(a.p(l,c),1152&c[0]&&_e(a,1)):((a=hpe(l)).c(),_e(a,1),a.m(r.parentNode,r))},i:function(l){o||(_e(s),_e(a),o=!0)},o:function(l){Ee(s),Ee(a),o=!1},d:function(l){l&&tt(n),t[50](null),l&&tt(e),s&&s.d(l),l&&tt(i),a&&a.d(l),l&&tt(r)}}}function upe(t){var n,e,i,r,o,s=od(t[10]||"",2e4)+"";return n=new sh({props:{icon:jg,type:"error",message:"The JSON document is larger than ".concat(rk(10485760,1024),", ")+"and may crash your browser when loading it in text mode. Actual size: ".concat(rk(t[10].length,1024),"."),actions:[{text:"Open anyway",title:"Open the document in text mode. This may freeze or crash your browser.",onClick:t[23]},{text:"Open in tree mode",title:"Open the document in tree mode. Tree mode can handle large documents.",onClick:t[24]},{text:"Cancel",title:"Cancel opening this large document.",onClick:t[25]}]}}),{c:function(){$t(n.$$.fragment),e=xt(),i=Be("div"),r=xn(s),ne(i,"class","jse-contents jse-preview svelte-1yqirn0")},m:function(a,l){Nt(n,a,l),nt(a,e,l),nt(a,i,l),Ie(i,r),o=!0},p:function(a,l){var c={};1024&l[0]&&(c.message="The JSON document is larger than ".concat(rk(10485760,1024),", ")+"and may crash your browser when loading it in text mode. Actual size: ".concat(rk(a[10].length,1024),".")),n.$set(c),(!o||1024&l[0])&&s!==(s=od(a[10]||"",2e4)+"")&&gi(r,s)},i:function(a){o||(_e(n.$$.fragment,a),o=!0)},o:function(a){Ee(n.$$.fragment,a),o=!1},d:function(a){Rt(n,a),a&&tt(e),a&&tt(i)}}}function hpe(t){var n,e,i,r,o,s=!t[13]&&t[8]&&hoe(t[10]),a=t[2]&&dpe(t),l=t[13]&&fpe(t),c=s&&ppe(t);return r=new sN({props:{validationErrors:t[9],selectError:t[26]}}),{c:function(){a&&a.c(),n=xt(),l&&l.c(),e=xt(),c&&c.c(),i=xt(),$t(r.$$.fragment)},m:function(u,h){a&&a.m(u,h),nt(u,n,h),l&&l.m(u,h),nt(u,e,h),c&&c.m(u,h),nt(u,i,h),Nt(r,u,h),o=!0},p:function(u,h){u[2]?a?(a.p(u,h),4&h[0]&&_e(a,1)):((a=dpe(u)).c(),_e(a,1),a.m(n.parentNode,n)):a&&(cn(),Ee(a,1,1,function(){a=null}),un()),u[13]?l?(l.p(u,h),8192&h[0]&&_e(l,1)):((l=fpe(u)).c(),_e(l,1),l.m(e.parentNode,e)):l&&(cn(),Ee(l,1,1,function(){l=null}),un()),9472&h[0]&&(s=!u[13]&&u[8]&&hoe(u[10])),s?c?(c.p(u,h),9472&h[0]&&_e(c,1)):((c=ppe(u)).c(),_e(c,1),c.m(i.parentNode,i)):c&&(cn(),Ee(c,1,1,function(){c=null}),un());var d={};512&h[0]&&(d.validationErrors=u[9]),r.$set(d)},i:function(u){o||(_e(a),_e(l),_e(c),_e(r.$$.fragment,u),o=!0)},o:function(u){Ee(a),Ee(l),Ee(c),Ee(r.$$.fragment,u),o=!1},d:function(u){a&&a.d(u),u&&tt(n),l&&l.d(u),u&&tt(e),c&&c.d(u),u&&tt(i),Rt(r,u)}}}function dpe(t){var n,e;return n=new Ptt({props:{editorState:t[6]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};64&r[0]&&(o.editorState=i[6]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function fpe(t){var n,e;return n=new sh({props:{type:"error",icon:jg,message:t[13].message,actions:t[14],onClick:t[28]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};8192&r[0]&&(o.message=i[13].message),16384&r[0]&&(o.actions=i[14]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function ppe(t){var n,e;return n=new sh({props:{type:"success",message:"Do you want to format the JSON?",actions:[{icon:fN,text:"Format",title:"Format JSON: add proper indentation and new lines (Ctrl+I)",onClick:t[16]},{icon:d0,text:"No thanks",title:"Close this message",onClick:t[51]}]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};256&r[0]&&(o.actions=[{icon:fN,text:"Format",title:"Format JSON: add proper indentation and new lines (Ctrl+I)",onClick:i[16]},{icon:d0,text:"No thanks",title:"Close this message",onClick:i[51]}]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function Ytt(t){var n,e,i,r,o,s=t[1]&&cpe(w$(t)),l=[];function c(u,h){return 0===h?(p=(f=u.slice())[27](f[10],f[7]),f[92]=p,f):u;var f,p}return r=l[i=t[15]?1:0]=[Xtt,qtt][i](c(t,i)),{c:function(){n=Be("div"),s&&s.c(),e=xt(),r.c(),ne(n,"class","jse-text-mode svelte-1yqirn0"),en(n,"no-main-menu",!t[1])},m:function(u,h){nt(u,n,h),s&&s.m(n,null),Ie(n,e),l[i].m(n,null),t[52](n),o=!0},p:function(u,h){u[1]?s?(s.p(w$(u),h),2&h[0]&&_e(s,1)):((s=cpe(w$(u))).c(),_e(s,1),s.m(n,e)):s&&(cn(),Ee(s,1,1,function(){s=null}),un()),r.p(c(u,i),h),(!o||2&h[0])&&en(n,"no-main-menu",!u[1])},i:function(u){o||(_e(s),_e(r),o=!0)},o:function(u){Ee(s),Ee(r),o=!1},d:function(u){u&&tt(n),s&&s.d(),l[i].d(),t[52](null)}}}function gpe(t){return{from:t.from||0,to:t.to||0,message:t.message||"",actions:t.actions,severity:t.severity}}function Ktt(t,n,e){var i,r,o,s,a,l,c=n.readOnly,u=n.mainMenuBar,h=n.statusBar,d=n.externalContent,f=n.indentation,p=n.tabSize,m=n.escapeUnicodeCharacters,w=n.parser,C=n.validator,k=n.validationParser,E=n.onChange,L=n.onChangeMode,B=n.onError,G=n.onFocus,oe=n.onBlur,fe=n.onRenderMenu,re=n.onSortModal,ce=n.onTransformModal,ue=Pa("jsoneditor:TextMode"),pe={key:"Mod-i",run:ke,shift:Qe,preventDefault:!0},De=typeof window>"u";ue("isSSR:",De);var ie=!1,ge=!0,we=[],le=new dp,Fe=new dp,z=new dp,Q=new dp,Z=new dp,me=new dp,ae=d,Te=I2(ae,f,w),Oe=m;Zc(Dr(Rn().mark(function Pt(){return Rn().wrap(function(ei){for(;;)switch(ei.prev=ei.next){case 0:if(!De){ei.next=2;break}return ei.abrupt("return");case 2:try{s=Mi({target:o,initialText:es(Te,ie)?"":i.escapeValue(Te),readOnly:c,indentation:f})}catch(Ai){console.error(Ai)}case 3:case"end":return ei.stop()}},Pt)}))),Gu(function(){s&&(ue("Destroy CodeMirror editor"),s.destroy())});var Ze=!1,Ve=!1,wt=ep(),ct=ep();function Ct(){s&&(ue("focus"),s.focus())}var se=!1;function Se(Pt){ue("patch",Pt);var ei=w.parse(Te),Ai=Zu(ei,Pt),Vi=IQ(ei,Pt);return ro({text:w.stringify(Ai,null,f)}),{json:Ai,previousJson:ei,undo:Vi,redo:Pt}}function ke(){if(ue("format"),c)return!1;try{var Pt=w.parse(Te);return ro({text:w.stringify(Pt,null,f)}),e(8,ge=!0),!0}catch(ei){B(ei)}return!1}function Qe(){if(ue("compact"),c)return!1;try{var Pt=w.parse(Te);return ro({text:w.stringify(Pt)}),e(8,ge=!1),!0}catch(ei){B(ei)}return!1}function gt(){if(ue("repair"),!c)try{ro({text:Yh(Te)}),e(49,Zn="valid"),e(13,Ut=null)}catch(Pt){B(Pt)}}function rt(Pt){var ei=Pt.id,Ai=Pt.rootPath,Vi=Pt.onTransform,Zr=Pt.onClose;try{var yo=w.parse(Te);se=!0,ce({id:ei||ct,json:yo,rootPath:Ai||[],onTransform:function(Mo){Vi?Vi({operations:Mo,json:yo,transformedJson:Zu(yo,Mo)}):(ue("onTransform",Mo),Se(Mo))},onClose:function(){se=!1,Ct(),Zr&&Zr()}})}catch(Mo){B(Mo)}}function zt(Pt,ei){ue("setSelection",{anchor:Pt,head:ei}),s&&s.dispatch(s.state.update({selection:{anchor:Pt,head:ei},scrollIntoView:!0}))}function Qt(Pt,ei){if(1===ei.state.selection.ranges.length){var Ai=ei.state.selection.ranges[0],Vi=Te.slice(Ai.from,Ai.to);if("{"===Vi||"["===Vi){var Zr=FS.parse(Te),yo=Object.keys(Zr.pointers).find(function(da){var Vr;return(null===(Vr=Zr.pointers[da].value)||void 0===Vr?void 0:Vr.pos)===Ai.from}),Mo=Zr.pointers[yo];yo&&Mo&&Mo.value&&Mo.valueEnd&&(ue("pointer found, selecting inner contents of path:",yo,Mo),zt(Mo.value.pos+1,Mo.valueEnd.pos-1))}}}function Pn(){return function(Pt){return Qg.of({source:Pt,config:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}})}(Ii,{delay:300})}function Mi(Pt){var ei=Pt.target,Ai=Pt.initialText,Vi=Pt.readOnly,Zr=Pt.indentation;ue("Create CodeMirror editor",{readOnly:Vi,indentation:Zr});var yo=Qo.create({doc:Ai,extensions:[Tk.of([Det,pe]),le.of(Pn()),wtt(),xtt,jtt,Wtt({hideFirstIndent:!0}),pi.domEventHandlers({dblclick:Qt}),pi.updateListener.of(function(Mo){e(6,l=Mo.state),Mo.docChanged&&er()}),new DZe(Ott),Let({top:!0}),z.of(Qo.readOnly.of(Vi)),Fe.of(pi.editable.of(!Vi)),Z.of(Qo.tabSize.of(p)),Q.of(qr(Zr)),me.of(pi.theme({},{dark:Sn()})),pi.lineWrapping]});return s=new pi({state:yo,parent:ei})}function Sn(){return!!o&&getComputedStyle(o).getPropertyValue("--jse-theme").includes("dark")}function nr(Pt){var ei=Pt.path,Ai=Pt.message,Vi=function(Zr,yo){try{var Mo=FS.parse(Zr),da=An(yo),Vr=Mo.pointers[da];if(Vr)return{path:yo,line:Vr.key?Vr.key.line:Vr.value?Vr.value.line:0,column:Vr.key?Vr.key.column:Vr.value?Vr.value.column:0,from:Vr.key?Vr.key.pos:Vr.value?Vr.value.pos:0,to:Vr.keyEnd?Vr.keyEnd.pos:Vr.valueEnd?Vr.valueEnd.pos:0}}catch(fa){console.error(fa)}return null}(i.escapeValue(Te),ei);return{path:ei,line:Vi.line,column:Vi.column,from:Vi.from,to:Vi.to,message:Ai,severity:Xh.warning,actions:[]}}function On(Pt,ei){var Zr=Pt.position;return{path:[],line:Pt.line,column:Pt.column,from:Zr,to:Zr,severity:Xh.error,message:Pt.message,actions:ei&&!c?[{name:"Auto repair",apply:function(){return gt()}}]:null}}function ro(Pt){var ei=arguments.length>1&&void 0!==arguments[1]&&arguments[1],Ai=I2(Pt,f,w),Vi=!Mr(Pt,ae),Zr=ae;ae=Pt,e(10,Te=Ai),ue("setCodeMirrorContent",{isChanged:Vi,forceUpdate:ei}),s&&(Vi||ei)&&(es(Te,ie)||s.dispatch({changes:{from:0,to:s.state.doc.length,insert:i.escapeValue(Te)}}),oo(),Vi&&vo(ae,Zr))}function uo(){if(s){var Pt=s?i.unescapeValue(s.state.doc.toString()):"",ei=Pt!==Te;if(ue("onChangeCodeMirrorValue",{isChanged:ei}),ei){var Ai=ae;e(10,Te=Pt),ae={text:Te},oo(),vo(ae,Ai)}}}function qr(Pt){return zk.of("number"==typeof Pt?" ".repeat(Pt):Pt)}function oo(){e(11,Ze=fet(s.state)>0),e(12,Ve=pet(s.state)>0),ue({canUndo:Ze,canRedo:Ve})}oN({onMount:Zc,onDestroy:Gu,getWindow:function(){return Qv(a)},hasFocus:function(){return se&&document.hasFocus()||L2(a)},onFocus:G,onBlur:oe});var er=Uv(uo,300);function vo(Pt,ei){E&&E(Pt,ei,{contentErrors:ir(),patchResult:null})}function es(Pt,ei){return!!Pt&&Pt.length>10485760&&!ei}var Zn="valid",Ut=null;function Ii(){if(es(Te,ie))return[];var Pt=ir();return kae(Pt)?[gpe(On(Pt.parseError,Pt.isRepairable))]:function Jqe(t){return Ko(t)&&Array.isArray(t.validationErrors)}(Pt)?Pt.validationErrors.map(nr).map(gpe):[]}function ir(){ue("validate:start"),er.flush();var Pt=Xr(i.escapeValue(Te),C,w,k);return kae(Pt)?(e(49,Zn=Pt.isRepairable?"repairable":"invalid"),e(13,Ut=Pt.parseError),e(9,we=[])):(e(49,Zn="valid"),e(13,Ut=null),e(9,we=Pt?.validationErrors||[])),ue("validate:end"),Pt}var Xr=Jb(Nqe);function Ho(){Ut&&function(Pt){ue("select parse error",Pt);var ei=On(Pt,!1);zt(ei.from,ei.to),Ct()}(Ut)}var gs={icon:xGe,text:"Show me",title:"Move to the parse error location",onClick:Ho};return t.$$set=function(Pt){"readOnly"in Pt&&e(0,c=Pt.readOnly),"mainMenuBar"in Pt&&e(1,u=Pt.mainMenuBar),"statusBar"in Pt&&e(2,h=Pt.statusBar),"externalContent"in Pt&&e(29,d=Pt.externalContent),"indentation"in Pt&&e(30,f=Pt.indentation),"tabSize"in Pt&&e(31,p=Pt.tabSize),"escapeUnicodeCharacters"in Pt&&e(32,m=Pt.escapeUnicodeCharacters),"parser"in Pt&&e(33,w=Pt.parser),"validator"in Pt&&e(34,C=Pt.validator),"validationParser"in Pt&&e(35,k=Pt.validationParser),"onChange"in Pt&&e(36,E=Pt.onChange),"onChangeMode"in Pt&&e(37,L=Pt.onChangeMode),"onError"in Pt&&e(38,B=Pt.onError),"onFocus"in Pt&&e(39,G=Pt.onFocus),"onBlur"in Pt&&e(40,oe=Pt.onBlur),"onRenderMenu"in Pt&&e(3,fe=Pt.onRenderMenu),"onSortModal"in Pt&&e(41,re=Pt.onSortModal),"onTransformModal"in Pt&&e(42,ce=Pt.onTransformModal)},t.$$.update=function(){var Pt;2&t.$$.dirty[1]&&(i=kO({escapeControlCharacters:!1,escapeUnicodeCharacters:m})),536870912&t.$$.dirty[0]&&ro(d),8&t.$$.dirty[1]&&(ue("updateLinter",C),s&&s.dispatch({effects:le.reconfigure(Pn())})),1073741824&t.$$.dirty[0]&&(Pt=f,s&&(ue("updateIndentation",Pt),s.dispatch({effects:Q.reconfigure(qr(Pt))}))),1&t.$$.dirty[1]&&function(Pt){s&&(ue("updateTabSize",Pt),s.dispatch({effects:Z.reconfigure(Qo.tabSize.of(Pt))}))}(p),1&t.$$.dirty[0]&&function(Pt){s&&(ue("updateReadOnly",Pt),s.dispatch({effects:[z.reconfigure(Qo.readOnly.of(Pt)),Fe.reconfigure(pi.editable.of(!Pt))]}))}(c),131074&t.$$.dirty[1]&&Oe!==m&&(e(48,Oe=m),ue("forceUpdateText",{escapeUnicodeCharacters:m}),s&&s.dispatch({changes:{from:0,to:s.state.doc.length,insert:i.escapeValue(Te)}})),1&t.$$.dirty[0]|262144&t.$$.dirty[1]&&e(14,r="repairable"!==Zn||c?[gs]:[{icon:H2,text:"Auto repair",title:"Automatically repair JSON",onClick:gt},gs])},[c,u,h,fe,o,a,l,ie,ge,we,Te,Ze,Ve,Ut,r,De,ke,Qe,function(){var Pt;if(!c)try{var ei=w.parse(Te);se=!0,re({id:wt,json:ei,rootPath:[],onSort:(Pt=Dr(Rn().mark(function Ai(Vi){var Zr;return Rn().wrap(function(yo){for(;;)switch(yo.prev=yo.next){case 0:ue("onSort",Zr=Vi.operations),Se(Zr);case 3:case"end":return yo.stop()}},Ai)})),function(Ai){return Pt.apply(this,arguments)}),onClose:function(){se=!1,Ct()}})}catch(Ai){B(Ai)}},function(){c||rt({rootPath:[]})},function(){s&&(o&&o.querySelector(".cm-search")?l$(s):a$(s))},function(){c||s&&(YR(s),Ct())},function(){c||s&&(Yk(s),Ct())},function(){e(7,ie=!0),ro(d,!0)},function(){L(Za.tree)},function(){uo()},function(Pt){ue("select validation error",Pt);var ei=nr(Pt);zt(ei.from,ei.to),Ct()},es,Ho,d,f,p,m,w,C,k,E,L,B,G,oe,re,ce,Ct,Se,rt,function(){ue("refresh"),oc().then(function(){if(s){var Pt=Sn();ue("updateTheme",{dark:Pt}),s.dispatch({effects:[me.reconfigure(pi.theme({},{dark:Pt}))]})}})},ir,Oe,Zn,function(Pt){dr[Pt?"unshift":"push"](function(){e(4,o=Pt)})},function(){return e(8,ge=!1)},function(Pt){dr[Pt?"unshift":"push"](function(){e(5,a=Pt)})}]}var Jtt=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,Ktt,Ytt,Zi,{readOnly:0,mainMenuBar:1,statusBar:2,externalContent:29,indentation:30,tabSize:31,escapeUnicodeCharacters:32,parser:33,validator:34,validationParser:35,onChange:36,onChangeMode:37,onError:38,onFocus:39,onBlur:40,onRenderMenu:3,onSortModal:41,onTransformModal:42,focus:43,patch:44,openTransformModal:45,refresh:46,validate:47},Gtt,[-1,-1,-1,-1]),r}return Xe(e,[{key:"focus",get:function(){return this.$$.ctx[43]}},{key:"patch",get:function(){return this.$$.ctx[44]}},{key:"openTransformModal",get:function(){return this.$$.ctx[45]}},{key:"refresh",get:function(){return this.$$.ctx[46]}},{key:"validate",get:function(){return this.$$.ctx[47]}}]),e}();function Qtt(t){var n,e;return n=new ek({props:{items:t[0]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};1&di(r,1)[0]&&(o.items=i[0]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function Ztt(t,n,e){var i,r,o=n.json,s=n.readOnly,a=n.historyState,l=n.onSort,c=n.onTransform,u=n.onContextMenu,h=n.onUndo,d=n.onRedo,f=n.onRenderMenu;return t.$$set=function(p){"json"in p&&e(1,o=p.json),"readOnly"in p&&e(2,s=p.readOnly),"historyState"in p&&e(3,a=p.historyState),"onSort"in p&&e(4,l=p.onSort),"onTransform"in p&&e(5,c=p.onTransform),"onContextMenu"in p&&e(6,u=p.onContextMenu),"onUndo"in p&&e(7,h=p.onUndo),"onRedo"in p&&e(8,d=p.onRedo),"onRenderMenu"in p&&e(9,f=p.onRenderMenu)},t.$$.update=function(){510&t.$$.dirty&&e(10,i=s?[{type:"space"}]:[{type:"button",icon:z2,title:"Sort",className:"jse-sort",onClick:l,disabled:s||void 0===o},{type:"button",icon:B2,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:c,disabled:s||void 0===o},{type:"button",icon:yse,title:bF,className:"jse-contextmenu",onClick:u},{type:"separator"},{type:"button",icon:XO,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:h,disabled:!a.canUndo},{type:"button",icon:qO,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:d,disabled:!a.canRedo},{type:"space"}]),1536&t.$$.dirty&&e(0,r=f(i)||i)},[r,o,s,a,l,c,u,h,d,f,i]}var ent=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,Ztt,Qtt,Zi,{json:1,readOnly:2,historyState:3,onSort:4,onTransform:5,onContextMenu:6,onUndo:7,onRedo:8,onRenderMenu:9}),r}return Xe(e)}();function mpe(t,n,e){var i=t.slice();return i[9]=n[e],i}function vpe(t){var n,e,i,r=[t[9].props],o=t[9].component;function s(a){for(var l={},c=0;c0){for(var k=[w],E=wr(C);E.length>0&&!tu(m,E);)k.unshift({op:"add",path:An(E),value:{}}),E=wr(E);return k}}return w})),f);var p,m}return t.$$set=function(d){"path"in d&&e(1,o=d.path),"value"in d&&e(2,s=d.value),"context"in d&&e(3,a=d.context),"enforceString"in d&&e(4,l=d.enforceString),"selection"in d&&e(5,c=d.selection),"searchResultItems"in d&&e(6,u=d.searchResultItems)},t.$$.update=function(){40&t.$$.dirty&&e(7,i=!a.readOnly&&xr(c)&&ip(c)),254&t.$$.dirty&&e(0,r=a.onRenderValue({path:o,value:s,readOnly:a.readOnly,enforceString:l,isEditing:i,parser:a.parser,normalization:a.normalization,selection:c,searchResultItems:u,onPatch:h,onPasteJson:a.onPasteJson,onSelect:a.onSelect,onFind:a.onFind,findNextInside:a.findNextInside,focus:a.focus}))},[r,o,s,a,l,c,u,i]}var int=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,nnt,tnt,Zi,{path:1,value:2,context:3,enforceString:4,selection:5,searchResultItems:6}),r}return Xe(e)}();function rnt(t){Ni(t,"svelte-l28mqd",".jse-inline-value.svelte-l28mqd{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);line-height:var(--jse-line-height);border:none;padding:0 calc(0.5 * var(--jse-padding));background:transparent;color:inherit;cursor:pointer}.jse-inline-value.svelte-l28mqd:hover{background:var(--jse-hover-background-color)}.jse-inline-value.jse-selected.svelte-l28mqd{background:var(--jse-selection-background-color)}")}function ont(t){var n,e,i,r,o=od(t[2].stringify(t[1]),50)+"";return{c:function(){n=Be("button"),e=xn(o),ne(n,"type","button"),ne(n,"class","jse-inline-value svelte-l28mqd"),en(n,"jse-selected",t[3])},m:function(s,a){nt(s,n,a),Ie(n,e),i||(r=rn(n,"dblclick",t[6]),i=!0)},p:function(s,a){var l=di(a,1)[0];6&l&&o!==(o=od(s[2].stringify(s[1]),50)+"")&&gi(e,o),8&l&&en(n,"jse-selected",s[3])},i:an,o:an,d:function(s){s&&tt(n),i=!1,r()}}}function snt(t,n,e){var i,r=n.path,o=n.value,s=n.parser,a=n.isSelected,l=n.onEdit;return t.$$set=function(c){"path"in c&&e(0,r=c.path),"value"in c&&e(1,o=c.value),"parser"in c&&e(2,s=c.parser),"isSelected"in c&&e(3,a=c.isSelected),"onEdit"in c&&e(4,l=c.onEdit)},t.$$.update=function(){2&t.$$.dirty&&e(5,i=Ao(o)?o.length:Object.keys(o).length)},[r,o,s,a,l,i,function(){return l(r)}]}var ant=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,snt,ont,Zi,{path:0,value:1,parser:2,isSelected:3,onEdit:4},rnt),r}return Xe(e)}();function lnt(t){Ni(t,"svelte-h4fort",".jse-column-header.svelte-h4fort.svelte-h4fort{background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;display:flex;gap:var(--jse-padding);padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding));width:100%}.jse-column-header.svelte-h4fort.svelte-h4fort:hover{background:var(--jse-table-header-background-highlight)}.jse-column-header.svelte-h4fort.svelte-h4fort:not(.jse-column-header.jse-readonly){cursor:pointer}.jse-column-header.svelte-h4fort span.jse-column-sort-icon.svelte-h4fort{height:1em}")}function ype(t){var n,e,i,r;return e=new Ir({props:{data:t[1]===eu.asc?hu:vse}}),{c:function(){n=Be("span"),$t(e.$$.fragment),ne(n,"class","jse-column-sort-icon svelte-h4fort"),ne(n,"title",i="Currently sorted in ".concat(t[2]," order"))},m:function(o,s){nt(o,n,s),Nt(e,n,null),r=!0},p:function(o,s){var a={};2&s&&(a.data=o[1]===eu.asc?hu:vse),e.$set(a),(!r||4&s&&i!==(i="Currently sorted in ".concat(o[2]," order")))&&ne(n,"title",i)},i:function(o){r||(_e(e.$$.fragment,o),r=!0)},o:function(o){Ee(e.$$.fragment,o),r=!1},d:function(o){o&&tt(n),Rt(e)}}}function cnt(t){var n,e,i,r,o,s,a,l,c=od(t[3],50)+"",u=void 0!==t[1]&&ype(t);return{c:function(){n=Be("button"),e=Be("span"),i=xn(c),r=xt(),u&&u.c(),ne(e,"class","jse-column-name"),ne(n,"type","button"),ne(n,"class","jse-column-header svelte-h4fort"),ne(n,"title",o=t[0]?t[3]:t[3]+" (Click to sort the data by this column)"),en(n,"jse-readonly",t[0])},m:function(h,d){nt(h,n,d),Ie(n,e),Ie(e,i),Ie(n,r),u&&u.m(n,null),s=!0,a||(l=rn(n,"click",t[4]),a=!0)},p:function(h,d){var f=di(d,1)[0];(!s||8&f)&&c!==(c=od(h[3],50)+"")&&gi(i,c),void 0!==h[1]?u?(u.p(h,f),2&f&&_e(u,1)):((u=ype(h)).c(),_e(u,1),u.m(n,null)):u&&(cn(),Ee(u,1,1,function(){u=null}),un()),(!s||9&f&&o!==(o=h[0]?h[3]:h[3]+" (Click to sort the data by this column)"))&&ne(n,"title",o),(!s||1&f)&&en(n,"jse-readonly",h[0])},i:function(h){s||(_e(u),s=!0)},o:function(h){Ee(u),s=!1},d:function(h){h&&tt(n),u&&u.d(),a=!1,l()}}}function unt(t,n,e){var i,r,o,s=n.path,a=n.sortedColumn,l=n.readOnly,c=n.onSort;return t.$$set=function(u){"path"in u&&e(5,s=u.path),"sortedColumn"in u&&e(6,a=u.sortedColumn),"readOnly"in u&&e(0,l=u.readOnly),"onSort"in u&&e(7,c=u.onSort)},t.$$.update=function(){var u;32&t.$$.dirty&&e(3,i=fr(s)?"values":lu(lc(s))),96&t.$$.dirty&&e(1,r=Mr(s,null===(u=a)||void 0===u?void 0:u.path)?a.sortDirection:void 0),2&t.$$.dirty&&e(2,o=V7e[r])},[l,r,o,i,function(){l||c({path:s,sortDirection:r===eu.asc?eu.desc:eu.asc})},s,a,c]}var wD,xD,hnt=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,unt,cnt,Zi,{path:5,sortedColumn:6,readOnly:0,onSort:7},lnt),r}return Xe(e)}();function bpe(t,n){return wD||(xD=new WeakMap,wD=new ResizeObserver(function(e){var i,r=ot(e);try{for(r.s();!(i=r.n()).done;){var o=i.value,s=xD.get(o.target);s&&s(o.target)}}catch(a){r.e(a)}finally{r.f()}})),xD.set(t,n),wD.observe(t),{destroy:function(){xD.delete(t),wD.unobserve(t)}}}function dnt(t){var n,e;return n=new Yae({props:{items:t[1],tip:t[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};2&r[0]&&(o.items=i[1]),1&r[0]&&(o.tip=i[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function fnt(t,n,e){var i,r,o,s,a,l,c,u,h,d,f,p=n.json,m=n.documentState,w=n.parser,C=n.showTip,k=n.onCloseContextMenu,E=n.onEditValue,L=n.onEditRow,B=n.onToggleEnforceString,G=n.onCut,oe=n.onCopy,fe=n.onPaste,re=n.onRemove,ce=n.onDuplicateRow,ue=n.onInsertBeforeRow,pe=n.onInsertAfterRow,De=n.onRemoveRow;function ie(){k(),E()}function ge(){k(),L()}function we(){k(),B()}function le(){k(),G(!0)}function Fe(){k(),G(!1)}function z(){k(),oe(!0)}function Q(){k(),oe(!1)}function Z(){k(),fe()}function me(){k(),re()}function ae(){k(),ce()}function Te(){k(),ue()}function Oe(){k(),pe()}function Ze(){k(),De()}return t.$$set=function(Ve){"json"in Ve&&e(2,p=Ve.json),"documentState"in Ve&&e(3,m=Ve.documentState),"parser"in Ve&&e(4,w=Ve.parser),"showTip"in Ve&&e(0,C=Ve.showTip),"onCloseContextMenu"in Ve&&e(5,k=Ve.onCloseContextMenu),"onEditValue"in Ve&&e(6,E=Ve.onEditValue),"onEditRow"in Ve&&e(7,L=Ve.onEditRow),"onToggleEnforceString"in Ve&&e(8,B=Ve.onToggleEnforceString),"onCut"in Ve&&e(9,G=Ve.onCut),"onCopy"in Ve&&e(10,oe=Ve.onCopy),"onPaste"in Ve&&e(11,fe=Ve.onPaste),"onRemove"in Ve&&e(12,re=Ve.onRemove),"onDuplicateRow"in Ve&&e(13,ce=Ve.onDuplicateRow),"onInsertBeforeRow"in Ve&&e(14,ue=Ve.onInsertBeforeRow),"onInsertAfterRow"in Ve&&e(15,pe=Ve.onInsertAfterRow),"onRemoveRow"in Ve&&e(16,De=Ve.onRemoveRow)},t.$$.update=function(){8&t.$$.dirty[0]&&e(22,i=m.selection),4&t.$$.dirty[0]&&e(25,r=void 0!==p),4194304&t.$$.dirty[0]&&e(17,o=null!=i),4194304&t.$$.dirty[0]&&e(26,s=null!=i&&fr(i.focusPath)),4194308&t.$$.dirty[0]&&e(23,a=void 0!==p&&null!=i?Un(p,i.focusPath):void 0),37748736&t.$$.dirty[0]&&e(18,l=r&&(io(i)||$s(i)||xr(i))),104857600&t.$$.dirty[0]&&r&&null!=i&&(io(i)||xr(i)),71303172&t.$$.dirty[0]&&void 0!==p&&null!=i&&Hb(i)&&!s&&Array.isArray(Un(p,wr(i.focusPath))),37748736&t.$$.dirty[0]&&e(21,c=r&&null!=i&&Hb(i)),10485760&t.$$.dirty[0]&&e(19,u=c&&!ss(a)),262144&t.$$.dirty[0]&&e(24,h=l),29491200&t.$$.dirty[0]&&h&&$g(i)&&Ko(a),29491200&t.$$.dirty[0]&&h&&$g(i)&&Array.isArray(a),29491200&t.$$.dirty[0]&&h&&$g(i)&&ss(a),12582936&t.$$.dirty[0]&&e(20,d=null!=i&&lf(a,m.enforceStringMap,An(i.focusPath),w)),4063232&t.$$.dirty[0]&&e(1,f=[{type:"separator"},{type:"row",items:[{type:"column",items:[{type:"label",text:"Table cell:"},{type:"dropdown-button",main:{type:"button",onClick:ie,icon:u0,text:"Edit",title:"Edit the value (Double-click on the value)",disabled:!c},width:"11em",items:[{type:"button",icon:u0,text:"Edit",title:"Edit the value (Double-click on the value)",onClick:ie,disabled:!c},{type:"button",icon:d?$b:Pb,text:"Enforce string",title:"Enforce keeping the value as string when it contains a numeric value",onClick:we,disabled:!u}]},{type:"dropdown-button",main:{type:"button",onClick:le,icon:c0,text:"Cut",title:"Cut selected contents, formatted with indentation (Ctrl+X)",disabled:!l},width:"10em",items:[{type:"button",icon:c0,text:"Cut formatted",title:"Cut selected contents, formatted with indentation (Ctrl+X)",onClick:le,disabled:!l},{type:"button",icon:c0,text:"Cut compacted",title:"Cut selected contents, without indentation (Ctrl+Shift+X)",onClick:Fe,disabled:!l}]},{type:"dropdown-button",main:{type:"button",onClick:z,icon:sp,text:"Copy",title:"Copy selected contents, formatted with indentation (Ctrl+C)",disabled:!l},width:"12em",items:[{type:"button",icon:sp,text:"Copy formatted",title:"Copy selected contents, formatted with indentation (Ctrl+C)",onClick:z,disabled:!l},{type:"button",icon:sp,text:"Copy compacted",title:"Copy selected contents, without indentation (Ctrl+Shift+C)",onClick:Q,disabled:!l}]},{type:"button",onClick:Z,icon:pse,text:"Paste",title:"Paste clipboard contents (Ctrl+V)",disabled:!o},{type:"button",onClick:me,icon:GO,text:"Remove",title:"Remove selected contents (Delete)",disabled:!l}]},{type:"column",items:[{type:"label",text:"Table row:"},{type:"button",onClick:ge,icon:u0,text:"Edit row",title:"Edit the current row",disabled:!l},{type:"button",onClick:ae,icon:wse,text:"Duplicate row",title:"Duplicate the current row",disabled:!o},{type:"button",onClick:Te,icon:h0,text:"Insert before",title:"Insert a row before the current row",disabled:!o},{type:"button",onClick:Oe,icon:h0,text:"Insert after",title:"Insert a row after the current row",disabled:!o},{type:"button",onClick:Ze,icon:GO,text:"Remove row",title:"Remove current row",disabled:!o}]}]}])},[C,f,p,m,w,k,E,L,B,G,oe,fe,re,ce,ue,pe,De,o,l,u,d,c,i,a,h,r,s]}var pnt=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,fnt,dnt,Zi,{json:2,documentState:3,parser:4,showTip:0,onCloseContextMenu:5,onEditValue:6,onEditRow:7,onToggleEnforceString:8,onCut:9,onCopy:10,onPaste:11,onRemove:12,onDuplicateRow:13,onInsertBeforeRow:14,onInsertAfterRow:15,onRemoveRow:16},null,[-1,-1]),r}return Xe(e)}();function gnt(t){Ni(t,"svelte-1te5h1h",".jse-table-mode-welcome.svelte-1te5h1h.svelte-1te5h1h{flex:1;display:flex;flex-direction:column;overflow:auto;align-items:center;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-table-mode-welcome.svelte-1te5h1h.svelte-1te5h1h:last-child{border-bottom:var(--jse-main-border)}.jse-table-mode-welcome.svelte-1te5h1h .jse-space.jse-before.svelte-1te5h1h{flex:1}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays.svelte-1te5h1h{display:flex;flex-direction:column;gap:var(--jse-padding);max-width:300px;margin:var(--jse-padding);font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays .jse-nested-arrays-info.svelte-1te5h1h{color:var(--jse-panel-color-readonly)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px;text-align:left}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h:hover{background:var(--jse-button-primary-background-highlight)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h:disabled{background:var(--jse-button-primary-background-disabled)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action .jse-nested-array-count.svelte-1te5h1h{opacity:0.5;white-space:nowrap}.jse-table-mode-welcome.svelte-1te5h1h .jse-space.jse-after.svelte-1te5h1h{flex:2}")}function _pe(t,n,e){var i=t.slice();i[12]=n[e];var r=Un(i[0],i[12]).length;return i[13]=r,i}function mnt(t){var n,e;return{c:function(){n=xn(t[5]),e=xn(" cannot be opened in table mode. You can open the document in tree mode instead.")},m:function(i,r){nt(i,n,r),nt(i,e,r)},p:function(i,r){32&r&&gi(n,i[5])},d:function(i){i&&tt(n),i&&tt(e)}}}function vnt(t){var n;return{c:function(){n=xn("An object cannot be opened in table mode. You can open a nested array instead, or open the\n document in tree mode.")},m:function(e,i){nt(e,n,i)},p:an,d:function(e){e&&tt(n)}}}function wpe(t){var n,e,i,r,o,s,a,l,c,u,h,d,f,p=lu(lc(t[12]))+"",m=t[13]+"",w=1!==t[13]?"items":"item";function C(){return t[10](t[12])}return{c:function(){n=Be("button"),e=xn(t[6]),i=xn(' "'),r=xn(p),o=xn('"\n '),s=Be("span"),a=xn("("),l=xn(m),c=xt(),u=xn(w),h=xn(")"),ne(s,"class","jse-nested-array-count svelte-1te5h1h"),ne(n,"type","button"),ne(n,"class","jse-nested-array-action svelte-1te5h1h")},m:function(k,E){nt(k,n,E),Ie(n,e),Ie(n,i),Ie(n,r),Ie(n,o),Ie(n,s),Ie(s,a),Ie(s,l),Ie(s,c),Ie(s,u),Ie(s,h),d||(f=rn(n,"click",C),d=!0)},p:function(k,E){t=k,64&E&&gi(e,t[6]),8&E&&p!==(p=lu(lc(t[12]))+"")&&gi(r,p),9&E&&m!==(m=t[13]+"")&&gi(l,m),9&E&&w!==(w=1!==t[13]?"items":"item")&&gi(u,w)},d:function(k){k&&tt(n),d=!1,f()}}}function ynt(t){var n,e,i,r,o,s,a,l,c,u,h,d,f,p,m,w,C;function k(fe,re){return fe[4]?vnt:mnt}for(var E=k(t),L=E(t),B=t[3],G=[],oe=0;oe1&&void 0!==arguments[1]?arguments[1]:2,m=[];return function w(C,k){Yo(C)&&k.length0}):[]),8&t.$$.dirty&&e(4,r=!fr(s)),657&t.$$.dirty&&e(5,o=r?"Object with nested arrays":void 0!==l||""!==a&&void 0!==a?Yo(l)?"An object":Ao(l)?"An empty array":"A ".concat(jF(l,u)):"An empty document")},[l,h,d,s,r,o,i,a,c,u,function(f){return h(f)},function(){return d(Za.tree)}]}var _nt=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,bnt,ynt,Zi,{text:7,json:0,readOnly:8,parser:9,openJSONEditorModal:1,onChangeMode:2},gnt),r}return Xe(e)}();function wnt(t){Ni(t,"svelte-h4fort",".jse-column-header.svelte-h4fort{background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;display:flex;gap:var(--jse-padding);padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding));width:100%}.jse-column-header.svelte-h4fort:hover{background:var(--jse-table-header-background-highlight)}.jse-column-header.svelte-h4fort:not(.jse-column-header.jse-readonly){cursor:pointer}")}function xnt(t){var n,e,i,r,o,s;return e=new Ir({props:{data:AGe}}),{c:function(){n=Be("button"),$t(e.$$.fragment),ne(n,"type","button"),ne(n,"class","jse-column-header svelte-h4fort"),ne(n,"title",i="The Columns are created by sampling ".concat(t[1]," items out of ").concat(t[0],". ")+"If you're missing a column, click here to sample all of the items instead of a subset. This is slower.")},m:function(a,l){nt(a,n,l),Nt(e,n,null),r=!0,o||(s=rn(n,"click",t[3]),o=!0)},p:function(a,l){var c=di(l,1)[0];(!r||3&c&&i!==(i="The Columns are created by sampling ".concat(a[1]," items out of ").concat(a[0],". ")+"If you're missing a column, click here to sample all of the items instead of a subset. This is slower."))&&ne(n,"title",i)},i:function(a){r||(_e(e.$$.fragment,a),r=!0)},o:function(a){Ee(e.$$.fragment,a),r=!1},d:function(a){a&&tt(n),Rt(e),o=!1,s()}}}function Cnt(t,n,e){var i=n.count,r=n.maxSampleCount,o=n.onRefresh;return t.$$set=function(s){"count"in s&&e(0,i=s.count),"maxSampleCount"in s&&e(1,r=s.maxSampleCount),"onRefresh"in s&&e(2,o=s.onRefresh)},[i,r,o,function(){return o()}]}var Snt=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,Cnt,xnt,Zi,{count:0,maxSampleCount:1,onRefresh:2},wnt),r}return Xe(e)}();function knt(t){Ni(t,"svelte-hs49xj",".jse-table-mode.svelte-hs49xj.svelte-hs49xj{flex:1;display:flex;flex-direction:column;position:relative;background:var(--jse-background-color);min-width:0;min-height:0;font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:var(--jse-text-color)}.jse-table-mode.no-main-menu.svelte-hs49xj.svelte-hs49xj{border-top:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-hidden-input-label.svelte-hs49xj{position:fixed;right:0;top:0;width:0;height:0}.jse-table-mode.svelte-hs49xj .jse-hidden-input-label .jse-hidden-input.svelte-hs49xj{width:0;height:0;padding:0;border:0;outline:none}.jse-table-mode.svelte-hs49xj .jse-contents.svelte-hs49xj{flex:1;align-items:start;flex-direction:column;display:flex;overflow:auto;overflow-anchor:none;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-contents.svelte-hs49xj:last-child{border-bottom:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main.svelte-hs49xj{border-collapse:collapse;border-spacing:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-start-section td.svelte-hs49xj,.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-hs49xj{margin:0;padding:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-hs49xj{padding-bottom:var(--jse-padding)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row.svelte-hs49xj:hover{background-color:var(--jse-table-row-odd-background)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj{padding:0 var(--jse-padding) 0 0;vertical-align:top;white-space:nowrap;height:var(--jse-line-height)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-hs49xj,.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-hs49xj{font-weight:normal;text-align:left;color:var(--jse-text-readonly);background:var(--jse-table-header-background)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-hs49xj{padding:0;position:sticky;top:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header .jse-table-root-error.svelte-hs49xj{padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding))}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-hs49xj{padding:0 var(--jse-padding) 0 calc(0.5 * var(--jse-padding))}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-selected-value.svelte-hs49xj>.jse-value{background:var(--jse-selection-background-color)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj div{display:inline-flex}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj div.jse-value{overflow-wrap:normal;white-space:nowrap;vertical-align:top;display:inline-block}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell .jse-context-menu-anchor.svelte-hs49xj{position:relative;vertical-align:top}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading.svelte-hs49xj{align-items:unset}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading .jse-loading-space.svelte-hs49xj{flex:1}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading .jse-loading.svelte-hs49xj{flex:2;text-align:center;color:var(--jse-panel-color-readonly);box-sizing:border-box;font-family:var(--jse-font-family);font-size:var(--jse-font-size)}")}function xpe(t,n,e){var i=t.slice();return i[120]=n[e],i[124]=e,i[121]=i[22].startIndex+i[124],i[122]=i[21].rows[i[121]],i}function Cpe(t,n,e){var i,r=t.slice();r[125]=n[e],r[131]=e;var o=[String(r[121])].concat(r[125]);r[126]=o;var s=Un(r[120],r[125]);r[127]=s;var a=r[46](r[126],r[10].selection);r[128]=a;var l=null===(i=r[122])||void 0===i?void 0:i.columns[r[131]];return r[129]=l,r}function Spe(t,n,e){var i=t.slice();return i[125]=n[e],i}function kpe(t){var n,e;return n=new ent({props:{json:t[7],readOnly:t[0],historyState:t[19],onSort:t[40],onTransform:t[41],onUndo:t[42],onRedo:t[43],onContextMenu:t[32],onRenderMenu:t[5]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};128&r[0]&&(o.json=i[7]),1&r[0]&&(o.readOnly=i[0]),524288&r[0]&&(o.historyState=i[19]),32&r[0]&&(o.onRenderMenu=i[5]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function Dnt(t){var n;return{c:function(){(n=Be("div")).innerHTML='
    \n
    loading...
    ',ne(n,"class","jse-contents jse-contents-loading svelte-hs49xj")},m:function(e,i){nt(e,n,i)},p:an,i:an,o:an,d:function(e){e&&tt(n)}}}function Tnt(t){var n,e,i,r,o,s,a,l,c,u=[Mnt,Ent,Ant],h=[];function d(f,p){return f[24]?0:f[16]&&void 0!==f[15]&&""!==f[15]?1:2}return r=d(t),o=h[r]=u[r](t),{c:function(){n=Be("label"),e=Be("input"),i=xt(),o.c(),s=Wr(),ne(e,"type","text"),e.readOnly="readonly",ne(e,"tabindex","-1"),ne(e,"class","jse-hidden-input svelte-hs49xj"),ne(n,"class","jse-hidden-input-label svelte-hs49xj")},m:function(f,p){nt(f,n,p),Ie(n,e),t[71](e),nt(f,i,p),h[r].m(f,p),nt(f,s,p),a=!0,l||(c=rn(e,"paste",t[37]),l=!0)},p:function(f,p){var m=r;(r=d(f))===m?h[r].p(f,p):(cn(),Ee(h[m],1,1,function(){h[m]=null}),un(),(o=h[r])?o.p(f,p):(o=h[r]=u[r](f)).c(),_e(o,1),o.m(s.parentNode,s))},i:function(f){a||(_e(o),a=!0)},o:function(f){Ee(o),a=!1},d:function(f){f&&tt(n),t[71](null),f&&tt(i),h[r].d(f),f&&tt(s),l=!1,c()}}}function Ant(t){var n,e;return n=new _nt({props:{text:t[15],json:t[7],readOnly:t[0],parser:t[2],openJSONEditorModal:t[39],onChangeMode:t[4]}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};32768&r[0]&&(o.text=i[15]),128&r[0]&&(o.json=i[7]),1&r[0]&&(o.readOnly=i[0]),4&r[0]&&(o.parser=i[2]),16&r[0]&&(o.onChangeMode=i[4]),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function Ent(t){var n,e,i,r;return n=new sh({props:{type:"error",message:"The loaded JSON document is invalid and could not be repaired automatically.",actions:t[0]?[]:[{icon:op,text:"Repair manually",onClick:t[35]}]}}),i=new ece({props:{text:t[15]||"",json:t[7],indentation:t[3],parser:t[2]}}),{c:function(){$t(n.$$.fragment),e=xt(),$t(i.$$.fragment)},m:function(o,s){Nt(n,o,s),nt(o,e,s),Nt(i,o,s),r=!0},p:function(o,s){var a={};1&s[0]&&(a.actions=o[0]?[]:[{icon:op,text:"Repair manually",onClick:o[35]}]),n.$set(a);var l={};32768&s[0]&&(l.text=o[15]||""),128&s[0]&&(l.json=o[7]),8&s[0]&&(l.indentation=o[3]),4&s[0]&&(l.parser=o[2]),i.$set(l)},i:function(o){r||(_e(n.$$.fragment,o),_e(i.$$.fragment,o),r=!0)},o:function(o){Ee(n.$$.fragment,o),Ee(i.$$.fragment,o),r=!1},d:function(o){Rt(n,o),o&&tt(e),Rt(i,o)}}}function Mnt(t){for(var n,e,i,r,o,s,a,l,c,u,h,d,f,p,m,w,C,k,E,L,B,G,oe,fe,re=!fr(null===(n=t[21])||void 0===n?void 0:n.root),ce=re&&Dpe(t),ue=t[9],pe=[],De=0;De"u";a("isSSR:",m);var w,C,k,E,L,B,G=n.readOnly,oe=n.externalContent,fe=n.mainMenuBar,re=n.escapeControlCharacters,ce=n.escapeUnicodeCharacters,ue=n.flattenColumns,pe=n.parser,De=n.parseMemoizeOne,ie=n.validator,ge=n.validationParser,we=n.indentation,le=n.onChange,Fe=n.onChangeMode,z=n.onRenderValue,Q=n.onRenderMenu,Z=n.onFocus,me=n.onBlur,ae=n.onSortModal,Te=n.onTransformModal,Oe=n.onJSONEditorModal;oN({onMount:Zc,onDestroy:Gu,getWindow:function(){return Qv(C)},hasFocus:function(){return Ct&&document.hasFocus()||L2(C)},onFocus:function(){Z&&Z()},onBlur:function(){me&&me()}});var Ze,Ve=void 0,wt=1e4,ct=[],Ct=!1,se={},Se=600,ke=0;function Qe(Ke){a("updateSelection",Ke);var qt="function"==typeof Ke?Ke(rt.selection):Ke;Mr(qt,rt.selection)||e(10,rt=_t(_t({},rt),{},{selection:qt}))}function gt(Ke){void 0!==rt.selection&&void 0!==Ke&&(rt.selection&&tu(Ke,rt.selection.anchorPath)&&tu(Ke,rt.selection.focusPath)||(a("clearing selection: path does not exist anymore",rt.selection),e(10,rt=_t(_t({},rt),{},{selection:r0(Ke,rt)}))))}var Qt,rt=N2(),zt=!1,Pn=dae({onChange:function(Ke){e(19,Mi=Ke)}}),Mi=Pn.getState();function nr(Ke){var qt=Ke.previousJson,hn=Ke.previousState,kn=Ke.previousText,Fn=Ke.previousTextIsRepaired;void 0===qt&&void 0===kn||(void 0!==L?Pn.add(void 0!==qt?{undo:{patch:[{op:"replace",path:"",value:qt}],state:Cl(hn),json:void 0,text:kn,textIsRepaired:Fn},redo:{patch:[{op:"replace",path:"",value:L}],state:Cl(rt),json:void 0,text:B,textIsRepaired:zt}}:{undo:{patch:void 0,json:void 0,text:kn,state:Cl(hn),textIsRepaired:Fn},redo:{patch:void 0,json:L,state:Cl(rt),text:B,textIsRepaired:zt}}):void 0!==qt&&Pn.add({undo:{patch:void 0,json:qt,state:Cl(hn),text:kn,textIsRepaired:Fn},redo:{patch:void 0,json:void 0,text:B,textIsRepaired:zt,state:Cl(rt)}}))}var On=[],ro=Jb(fae);function uo(Ke,qt,hn,kn){p0(function(){var Fn;try{Fn=ro(Ke,qt,hn,kn)}catch(ki){Fn=[{path:[],message:"Failed to validate: "+ki.message,severity:Xh.warning}]}Mr(Fn,On)||(a("validationErrors changed:",Fn),e(11,On=Fn))},function(Fn){return a("validationErrors updated in ".concat(Fn," ms"))})}function qr(){return a("validate"),Ve?{parseError:Ve,isRepairable:!1}:(uo(L,ie,pe,ge),fr(On)?null:{validationErrors:On})}function oo(Ke,qt){if(a("patch",Ke,qt),void 0===L)throw new Error("Cannot apply patch: no JSON");var hn={json:L},kn=L,Fn=rt,ki=zt,rr=rse(L,Ke),ai=Poe(L,rt,Ke).json,_i=function IKe(t,n,e){return n.some(function(i){return function(r,o,s){if(!r)return!1;if("replace"===o.op){var a=du(Qu(o.path),s),l=a.rowIndex,c=a.columnIndex,u=s.findIndex(function(h){return Mr(h,r.path)});if(-1!==l&&-1!==c&&c!==u)return!1}return!0}(t.sortedColumn,i,e)})?_t(_t({},t),{},{sortedColumn:void 0}):t}(rt,Ke,ct),mi="function"==typeof qt?qt(ai,_i):void 0;e(7,L=mi&&void 0!==mi.json?mi.json:ai);var Ur=mi&&void 0!==mi.state?mi.state:_i;e(10,rt=Ur),e(15,B=void 0),e(18,zt=!1),e(17,Ze=void 0),Pn.add({undo:{patch:rr,json:void 0,text:void 0,state:Cl(Fn),textIsRepaired:ki},redo:{patch:Ke,json:void 0,state:Cl(Ur),text:void 0,textIsRepaired:zt}});var eo={json:L,previousJson:kn,undo:rr,redo:Ke};return vo(hn,eo),eo}function er(Ke,qt){if(!G)return oo(Ke,qt)}function vo(Ke,qt){(void 0!==Ke.json||void 0!==Ke?.text)&&(void 0!==B?le({text:B,json:void 0},Ke,{contentErrors:qr(),patchResult:qt}):void 0!==L&&le({text:void 0,json:L},Ke,{contentErrors:qr(),patchResult:qt}))}function es(Ke){a("handleFind",Ke)}function Zn(Ke){a("pasted json as text",Ke),e(17,Ze=Ke)}function Ut(Ke){var qt=parseInt(Ke[0]),hn=[String(qt+1)].concat(Ti(Ke.slice(1)));return tu(L,hn)?Br(hn,!1):Br(Ke,!1)}function Ii(){E&&(E.focus(),E.select())}function ir(){rt.selection||Qe(function(){if(Ao(L)&&!fr(L)&&!fr(ct))return Br(["0"].concat(Ti(ct[0])),!1)}())}function Xr(Ke){var qt=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],hn=vN(Ke,ct,se,18),kn=hn-ke,Fn=Pt(Ke);a("scrollTo",{path:Ke,top:hn,scrollTop:ke,elem:Fn});var ki=k.getBoundingClientRect();if(Fn&&!qt){var rr=Fn.getBoundingClientRect();if(rr.bottom>ki.top&&rr.tophn.right&&e(13,k.scrollLeft+=kn.right-hn.right,k),kn.left(ai=ke+ki.height-18)&&e(13,k.scrollTop+=Fn-ai,k),kn0&&void 0!==hn[0])||hn[0],void 0!==L){kn.next=3;break}return kn.abrupt("return");case 3:return kn.next=5,Kle({json:L,documentState:rt,indentation:qt?we:void 0,parser:pe});case 5:case"end":return kn.stop()}},Ke)})),cl.apply(this,arguments)}function Hc(){Qle({json:L,text:B,documentState:rt,keepSelection:!0,readOnly:G,onChange:le,onPatch:er})}function Ue(){!function FKe(t){var n=t.json,e=t.documentState,i=t.columns,o=t.onPatch;if(!t.readOnly&&void 0!==n&&e.selection&&a0(e.selection)){var s=du(e.selection.focusPath,i),a=s.rowIndex,l=s.columnIndex;Gl("duplicate row",{rowIndex:a});var c=[String(a)];o(tse(n,[c]),function(u,h){var d=Br(zg({rowIndex:a0?a-1:void 0,d=void 0!==h?Br(zg({rowIndex:h,columnIndex:l},i),!1):void 0;return Gl("remove row new selection",{rowIndex:a,newRowIndex:h,newSelection:d}),{state:_t(_t({},u),{},{selection:d})}})}}({json:L,documentState:rt,columns:ct,readOnly:G,onPatch:er})}function ut(){return(ut=Dr(Rn().mark(function Ke(qt){return Rn().wrap(function(hn){for(;;)switch(hn.prev=hn.next){case 0:return hn.next=2,Zle({char:qt,selectInside:!1,refJsonEditor:C,json:L,documentState:rt,readOnly:G,parser:pe,onPatch:er,onReplaceJson:Wn,onSelect:Qe});case 2:case"end":return hn.stop()}},Ke)}))).apply(this,arguments)}function Wn(Ke,qt){var hn=rt,kn=L,Fn=B,ki={json:L,text:B},rr=zt,ai=cu(L,rt,[],sd),_i="function"==typeof qt?qt(Ke,ai):void 0;e(7,L=_i&&void 0!==_i.json?_i.json:Ke),e(10,rt=_i&&void 0!==_i.state?_i.state:ai),e(15,B=void 0),e(18,zt=!1),gt(L),nr({previousJson:kn,previousState:hn,previousText:Fn,previousTextIsRepaired:rr}),vo(ki,null)}function Si(Ke,qt){a("handleChangeText");var hn=rt,kn=L,Fn=B,ki={json:L,text:B},rr=zt;try{e(7,L=De(Ke)),e(10,rt=cu(L,rt,[],sd)),e(15,B=void 0),e(18,zt=!1)}catch{try{e(7,L=De(Yh(Ke))),e(10,rt=cu(L,rt,[],sd)),e(15,B=Ke),e(18,zt=!0)}catch{e(7,L=void 0),e(10,rt=N2({json:L,expand:sd})),e(15,B=Ke),e(18,zt=!1)}}if("function"==typeof qt){var ai=qt(L,rt);e(7,L=ai&&ai.json?ai.json:L),e(10,rt=ai&&ai.state?ai.state:rt)}gt(L),nr({previousJson:kn,previousState:hn,previousText:Fn,previousTextIsRepaired:rr}),vo(ki,null)}function Li(Ke){var hn=Ke.rootPath,kn=Ke.onTransform,Fn=Ke.onClose;G||void 0===L||(Ct=!0,Te({id:Ke.id||p,json:L,rootPath:hn||[],onTransform:kn?function(ki){kn({operations:ki,json:L,transformedJson:Zu(L,ki)})}:function(ki){a("onTransform",hn,ki),er(ki)},onClose:function(){Ct=!1,Ii(),Fn&&Fn()}}))}function Fi(Ke){a("openJSONEditorModal",{path:Ke}),Ct=!0,Oe({content:{json:Un(L,Ke)},path:Ke,onPatch:Qt.onPatch,onClose:function(){Ct=!1,Ii()}})}function Yr(Ke,qt){l(Oae,{text:Ke,onParse:E2,onRepair:ooe,onApply:qt},_t(_t({},Cg),{},{styleWindow:{width:"600px",height:"500px"},styleContent:{padding:0,height:"100%"}}),{onClose:function(){return Ii()}})}function xo(){if(!G&&Pn.getState().canUndo){var Ke=Pn.undo();if(Ke){var qt={json:L,text:B};e(7,L=Ke.undo.patch?Zu(L,Ke.undo.patch):Ke.undo.json),e(10,rt=Ke.undo.state),e(15,B=Ke.undo.text),e(18,zt=Ke.undo.textIsRepaired),a("undo",{item:Ke,json:L}),vo(qt,{json:L,previousJson:qt.json,redo:Ke.undo.patch,undo:Ke.redo.patch}),Ii(),rt.selection&&Xr(rt.selection.focusPath,!1)}}}function ji(){if(!G&&Pn.getState().canRedo){var Ke=Pn.redo();if(Ke){var qt={json:L,text:B};e(7,L=Ke.redo.patch?Zu(L,Ke.redo.patch):Ke.redo.json),e(10,rt=Ke.redo.state),e(15,B=Ke.redo.text),e(18,zt=Ke.redo.textIsRepaired),a("redo",{item:Ke,json:L}),vo(qt,{json:L,previousJson:qt.json,redo:Ke.redo.patch,undo:Ke.undo.patch}),Ii(),rt.selection&&Xr(rt.selection.focusPath,!1)}}}function zr(Ke,qt){e(68,se[qt]=Ke.getBoundingClientRect().height,se)}return t.$$set=function(Ke){"readOnly"in Ke&&e(0,G=Ke.readOnly),"externalContent"in Ke&&e(47,oe=Ke.externalContent),"mainMenuBar"in Ke&&e(1,fe=Ke.mainMenuBar),"escapeControlCharacters"in Ke&&e(48,re=Ke.escapeControlCharacters),"escapeUnicodeCharacters"in Ke&&e(49,ce=Ke.escapeUnicodeCharacters),"flattenColumns"in Ke&&e(50,ue=Ke.flattenColumns),"parser"in Ke&&e(2,pe=Ke.parser),"parseMemoizeOne"in Ke&&e(51,De=Ke.parseMemoizeOne),"validator"in Ke&&e(52,ie=Ke.validator),"validationParser"in Ke&&e(53,ge=Ke.validationParser),"indentation"in Ke&&e(3,we=Ke.indentation),"onChange"in Ke&&e(54,le=Ke.onChange),"onChangeMode"in Ke&&e(4,Fe=Ke.onChangeMode),"onRenderValue"in Ke&&e(55,z=Ke.onRenderValue),"onRenderMenu"in Ke&&e(5,Q=Ke.onRenderMenu),"onFocus"in Ke&&e(56,Z=Ke.onFocus),"onBlur"in Ke&&e(57,me=Ke.onBlur),"onSortModal"in Ke&&e(58,ae=Ke.onSortModal),"onTransformModal"in Ke&&e(59,Te=Ke.onTransformModal),"onJSONEditorModal"in Ke&&e(60,Oe=Ke.onJSONEditorModal)},t.$$.update=function(){393216&t.$$.dirty[1]&&e(67,w=kO({escapeControlCharacters:re,escapeUnicodeCharacters:ce})),65536&t.$$.dirty[1]&&function Sn(Ke){var qt=L,hn=Jv(Ke)?Ke.text!==B:!Mr(qt,Ke.json);if(a("update external content",{isChanged:hn}),hn){var kn={json:L,text:B},Fn=L,ki=rt,rr=B,ai=zt;if(Jv(Ke))try{e(7,L=De(Ke.text)),e(15,B=Ke.text),e(18,zt=!1),e(16,Ve=void 0)}catch(_i){try{e(7,L=De(Yh(Ke.text))),e(15,B=Ke.text),e(18,zt=!0),e(16,Ve=void 0)}catch{e(7,L=void 0),e(15,B=oe.text),e(18,zt=!1),e(16,Ve=M2(B,_i.message||_i.toString()))}}else e(7,L=Ke.json),e(15,B=void 0),e(18,zt=!1),e(16,Ve=void 0);gt(L),rt.sortedColumn&&e(10,rt=_t(_t({},rt),{},{sortedColumn:void 0})),nr({previousJson:Fn,previousState:ki,previousText:rr,previousTextIsRepaired:ai}),vo(kn,null)}}(oe),896&t.$$.dirty[0]|524288&t.$$.dirty[1]&&e(9,ct=Ao(L)?function(Ke,qt){var hn,kn=new Set(qt.map(An)),Fn=new Set(Ke.map(An)),ki=ot(kn);try{for(ki.s();!(hn=ki.n()).done;){var rr=hn.value;Fn.has(rr)||kn.delete(rr)}}catch(Ur){ki.e(Ur)}finally{ki.f()}var ai,_i=ot(Fn);try{for(_i.s();!(ai=_i.n()).done;){var mi=ai.value;kn.has(mi)||kn.add(mi)}}catch(Ur){_i.e(Ur)}finally{_i.f()}return Ti(kn).map(Qu)}(function(Ke,qt){var hn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,kn={};Array.isArray(Ke)&&function $Ue(t,n,e){if(t.length1?(t.length-1)/(n-1):t.length,r=0;rwt),128&t.$$.dirty[0]|448&t.$$.dirty[2]&&e(22,o=function(Ke,qt,hn,kn,Fn){for(var ki=arguments.length>5&&void 0!==arguments[5]?arguments[5]:80,rr=Ao(hn)?hn.length:0,ai=function AKe(t,n){var e=Object.values(t);return fr(e)?n:e.reduce(function(r,o){return r+o})/e.length}(kn,Fn),_i=Ke-ki,mi=qt+2*ki,Ur=function(_h){return kn[_h]||Fn},eo=0,ts=0;ts<_i&&eo0&&(ts-=Ur(--eo));for(var Da=eo,bh=0;bh0?Br(zg({rowIndex:Ur.rowIndex,columnIndex:ts-1},_i),!1):mi;Qe(hn),gs(hn.focusPath)}if("ArrowRight"===qt&&(Ke.preventDefault(),ir(),rt.selection)){var kn=function(_i,mi){var Ur=du(mi.focusPath,_i),ts=Ur.columnIndex;return ts<_i.length-1?Br(zg({rowIndex:Ur.rowIndex,columnIndex:ts+1},_i),!1):mi}(ct,rt.selection);Qe(kn),gs(kn.focusPath)}if("ArrowUp"===qt&&(Ke.preventDefault(),ir(),rt.selection)){var Fn=function(_i,mi){var Ur=du(mi.focusPath,_i),eo=Ur.rowIndex;return eo>0?Br(zg({rowIndex:eo-1,columnIndex:Ur.columnIndex},_i),!1):mi}(ct,rt.selection);Qe(Fn),gs(Fn.focusPath)}if("ArrowDown"===qt&&(Ke.preventDefault(),ir(),rt.selection)){var ki=function(_i,mi,Ur){var eo=du(Ur.focusPath,mi),ts=eo.rowIndex;return ts<_i.length-1?Br(zg({rowIndex:ts+1,columnIndex:eo.columnIndex},mi),!1):Ur}(L,ct,rt.selection);Qe(ki),gs(ki.focusPath)}if("Enter"===qt&&rt.selection&&xr(rt.selection)){Ke.preventDefault();var rr=rt.selection.focusPath;ss(Un(L,rr))?Fi(rr):G||Qe(_t(_t({},rt.selection),{},{edit:!0}))}if(1===qt.replace(/^Shift\+/,"").length&&rt.selection)return Ke.preventDefault(),void function(_i){ut.apply(this,arguments)}(Ke.key);if("Ctrl+Enter"===qt&&xr(rt.selection)){var ai=Un(L,rt.selection.focusPath);jS(ai)&&window.open(String(ai),"_blank")}"Escape"===qt&&rt.selection&&(Ke.preventDefault(),Qe(void 0)),"Ctrl+F"===qt&&Ke.preventDefault(),"Ctrl+H"===qt&&Ke.preventDefault(),"Ctrl+Z"===qt&&(Ke.preventDefault(),xo()),"Ctrl+Shift+Z"===qt&&(Ke.preventDefault(),ji())},function(Ke){Ke.preventDefault(),Jle({clipboardText:Ke.clipboardData.getData("text/plain"),json:L,documentState:rt,readOnly:G,parser:pe,onPatch:er,onChangeText:Si,openRepairModal:Yr})},function(Ke){a("select validation error",Ke),Qe(Br(Ke.path,!1)),Xr(Ke.path)},Fi,function(){var Ke;Ke=[],G||void 0===L||(Ct=!0,ae({id:f,json:L,rootPath:Ke,onSort:function(qt){var hn=qt.operations,kn=qt.itemPath,Fn=qt.direction;a("onSort",hn,Ke,kn,Fn),er(hn,function(ki,rr){return{state:_t(_t({},rr),{},{sortedColumn:{path:kn,sortDirection:-1===Fn?eu.desc:eu.asc}})}})},onClose:function(){Ct=!1,Ii()}}))},function(){Li({rootPath:[]})},xo,ji,function(Ke){e(69,Se=Ke.getBoundingClientRect().height)},zr,function(Ke,qt){return!!qt&&!0===qt.pointersMap[An(Ke)]},oe,re,ce,ue,De,ie,ge,le,z,Z,me,ae,Te,Oe,qr,oo,Ii,Xr,Pt,Li,w,se,Se,ke,function(Ke){dr[Ke?"unshift":"push"](function(){e(14,E=Ke)})},function(){return e(8,wt=1/0)},function(Ke,qt){return zr(qt,Ke)},function(Ke){dr[Ke?"unshift":"push"](function(){e(13,k=Ke)})},function(Ke){dr[Ke?"unshift":"push"](function(){e(12,C=Ke)})}]}var Nnt=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,Ont,Lnt,Zi,{readOnly:0,externalContent:47,mainMenuBar:1,escapeControlCharacters:48,escapeUnicodeCharacters:49,flattenColumns:50,parser:2,parseMemoizeOne:51,validator:52,validationParser:53,indentation:3,onChange:54,onChangeMode:4,onRenderValue:55,onRenderMenu:5,onFocus:56,onBlur:57,onSortModal:58,onTransformModal:59,onJSONEditorModal:60,validate:61,patch:62,focus:63,acceptAutoRepair:6,scrollTo:64,findElement:65,openTransformModal:66},knt,[-1,-1,-1,-1,-1]),r}return Xe(e,[{key:"validate",get:function(){return this.$$.ctx[61]}},{key:"patch",get:function(){return this.$$.ctx[62]}},{key:"focus",get:function(){return this.$$.ctx[63]}},{key:"acceptAutoRepair",get:function(){return this.$$.ctx[6]}},{key:"scrollTo",get:function(){return this.$$.ctx[64]}},{key:"findElement",get:function(){return this.$$.ctx[65]}},{key:"openTransformModal",get:function(){return this.$$.ctx[66]}}]),e}();function Rnt(t){var n,e;return n=new xN({props:{externalContent:t[0],readOnly:t[1],indentation:t[2],mainMenuBar:t[5],navigationBar:t[6],escapeControlCharacters:t[8],escapeUnicodeCharacters:t[9],parser:t[11],parseMemoizeOne:t[12],validator:t[13],validationParser:t[14],pathParser:t[15],onError:t[20],onChange:t[16],onChangeMode:t[19],onRenderValue:t[17],onClassName:t[18],onFocus:t[21],onBlur:t[22],onRenderMenu:t[29],onSortModal:t[23],onTransformModal:t[24],onJSONEditorModal:t[25]}}),t[44](n),{c:function(){$t(n.$$.fragment)},m:function(r,o){Nt(n,r,o),e=!0},p:function(r,o){var s={};1&o[0]&&(s.externalContent=r[0]),2&o[0]&&(s.readOnly=r[1]),4&o[0]&&(s.indentation=r[2]),32&o[0]&&(s.mainMenuBar=r[5]),64&o[0]&&(s.navigationBar=r[6]),256&o[0]&&(s.escapeControlCharacters=r[8]),512&o[0]&&(s.escapeUnicodeCharacters=r[9]),2048&o[0]&&(s.parser=r[11]),4096&o[0]&&(s.parseMemoizeOne=r[12]),8192&o[0]&&(s.validator=r[13]),16384&o[0]&&(s.validationParser=r[14]),32768&o[0]&&(s.pathParser=r[15]),1048576&o[0]&&(s.onError=r[20]),65536&o[0]&&(s.onChange=r[16]),524288&o[0]&&(s.onChangeMode=r[19]),131072&o[0]&&(s.onRenderValue=r[17]),262144&o[0]&&(s.onClassName=r[18]),2097152&o[0]&&(s.onFocus=r[21]),4194304&o[0]&&(s.onBlur=r[22]),536870912&o[0]&&(s.onRenderMenu=r[29]),8388608&o[0]&&(s.onSortModal=r[23]),16777216&o[0]&&(s.onTransformModal=r[24]),33554432&o[0]&&(s.onJSONEditorModal=r[25]),n.$set(s)},i:function(r){e||(_e(n.$$.fragment,r),e=!0)},o:function(r){Ee(n.$$.fragment,r),e=!1},d:function(r){t[44](null),Rt(n,r)}}}function $nt(t){var n,e;return n=new Nnt({props:{externalContent:t[0],readOnly:t[1],mainMenuBar:t[5],escapeControlCharacters:t[8],escapeUnicodeCharacters:t[9],flattenColumns:t[10],parser:t[11],parseMemoizeOne:t[12],validator:t[13],validationParser:t[14],indentation:t[2],onChange:t[16],onChangeMode:t[19],onRenderValue:t[17],onFocus:t[21],onBlur:t[22],onRenderMenu:t[29],onSortModal:t[23],onTransformModal:t[24],onJSONEditorModal:t[25]}}),t[43](n),{c:function(){$t(n.$$.fragment)},m:function(r,o){Nt(n,r,o),e=!0},p:function(r,o){var s={};1&o[0]&&(s.externalContent=r[0]),2&o[0]&&(s.readOnly=r[1]),32&o[0]&&(s.mainMenuBar=r[5]),256&o[0]&&(s.escapeControlCharacters=r[8]),512&o[0]&&(s.escapeUnicodeCharacters=r[9]),1024&o[0]&&(s.flattenColumns=r[10]),2048&o[0]&&(s.parser=r[11]),4096&o[0]&&(s.parseMemoizeOne=r[12]),8192&o[0]&&(s.validator=r[13]),16384&o[0]&&(s.validationParser=r[14]),4&o[0]&&(s.indentation=r[2]),65536&o[0]&&(s.onChange=r[16]),524288&o[0]&&(s.onChangeMode=r[19]),131072&o[0]&&(s.onRenderValue=r[17]),2097152&o[0]&&(s.onFocus=r[21]),4194304&o[0]&&(s.onBlur=r[22]),536870912&o[0]&&(s.onRenderMenu=r[29]),8388608&o[0]&&(s.onSortModal=r[23]),16777216&o[0]&&(s.onTransformModal=r[24]),33554432&o[0]&&(s.onJSONEditorModal=r[25]),n.$set(s)},i:function(r){e||(_e(n.$$.fragment,r),e=!0)},o:function(r){Ee(n.$$.fragment,r),e=!1},d:function(r){t[43](null),Rt(n,r)}}}function Pnt(t){var n,e;return n=new Jtt({props:{externalContent:t[0],readOnly:t[1],indentation:t[2],tabSize:t[3],mainMenuBar:t[5],statusBar:t[7],escapeUnicodeCharacters:t[9],parser:t[11],validator:t[13],validationParser:t[14],onChange:t[16],onChangeMode:t[19],onError:t[20],onFocus:t[21],onBlur:t[22],onRenderMenu:t[29],onSortModal:t[23],onTransformModal:t[24]}}),t[42](n),{c:function(){$t(n.$$.fragment)},m:function(r,o){Nt(n,r,o),e=!0},p:function(r,o){var s={};1&o[0]&&(s.externalContent=r[0]),2&o[0]&&(s.readOnly=r[1]),4&o[0]&&(s.indentation=r[2]),8&o[0]&&(s.tabSize=r[3]),32&o[0]&&(s.mainMenuBar=r[5]),128&o[0]&&(s.statusBar=r[7]),512&o[0]&&(s.escapeUnicodeCharacters=r[9]),2048&o[0]&&(s.parser=r[11]),8192&o[0]&&(s.validator=r[13]),16384&o[0]&&(s.validationParser=r[14]),65536&o[0]&&(s.onChange=r[16]),524288&o[0]&&(s.onChangeMode=r[19]),1048576&o[0]&&(s.onError=r[20]),2097152&o[0]&&(s.onFocus=r[21]),4194304&o[0]&&(s.onBlur=r[22]),536870912&o[0]&&(s.onRenderMenu=r[29]),8388608&o[0]&&(s.onSortModal=r[23]),16777216&o[0]&&(s.onTransformModal=r[24]),n.$set(s)},i:function(r){e||(_e(n.$$.fragment,r),e=!0)},o:function(r){Ee(n.$$.fragment,r),e=!1},d:function(r){t[42](null),Rt(n,r)}}}function jnt(t){var n,e,i,r,o=[Pnt,$nt,Rnt],s=[];function a(l,c){return l[4]===Za.text||"code"===l[4]?0:l[4]===Za.table?1:2}return n=a(t),e=s[n]=o[n](t),{c:function(){e.c(),i=Wr()},m:function(l,c){s[n].m(l,c),nt(l,i,c),r=!0},p:function(l,c){var u=n;(n=a(l))===u?s[n].p(l,c):(cn(),Ee(s[u],1,1,function(){s[u]=null}),un(),(e=s[n])?e.p(l,c):(e=s[n]=o[n](l)).c(),_e(e,1),e.m(i.parentNode,i))},i:function(l){r||(_e(e),r=!0)},o:function(l){Ee(e),r=!1},d:function(l){s[n].d(l),l&&tt(i)}}}function Bnt(t,n,e){var i,r,o,s,a,l=n.content,c=n.readOnly,u=n.indentation,h=n.tabSize,d=n.mode,f=n.mainMenuBar,p=n.navigationBar,m=n.statusBar,w=n.escapeControlCharacters,C=n.escapeUnicodeCharacters,k=n.flattenColumns,E=n.parser,L=n.parseMemoizeOne,B=n.validator,G=n.validationParser,oe=n.pathParser,fe=n.insideModal,re=n.onChange,ce=n.onRenderValue,ue=n.onClassName,pe=n.onRenderMenu,De=n.onChangeMode,ie=n.onError,ge=n.onFocus,we=n.onBlur,le=n.onSortModal,Fe=n.onTransformModal,z=n.onJSONEditorModal,Q={separator:!0};return t.$$set=function(Z){"content"in Z&&e(0,l=Z.content),"readOnly"in Z&&e(1,c=Z.readOnly),"indentation"in Z&&e(2,u=Z.indentation),"tabSize"in Z&&e(3,h=Z.tabSize),"mode"in Z&&e(4,d=Z.mode),"mainMenuBar"in Z&&e(5,f=Z.mainMenuBar),"navigationBar"in Z&&e(6,p=Z.navigationBar),"statusBar"in Z&&e(7,m=Z.statusBar),"escapeControlCharacters"in Z&&e(8,w=Z.escapeControlCharacters),"escapeUnicodeCharacters"in Z&&e(9,C=Z.escapeUnicodeCharacters),"flattenColumns"in Z&&e(10,k=Z.flattenColumns),"parser"in Z&&e(11,E=Z.parser),"parseMemoizeOne"in Z&&e(12,L=Z.parseMemoizeOne),"validator"in Z&&e(13,B=Z.validator),"validationParser"in Z&&e(14,G=Z.validationParser),"pathParser"in Z&&e(15,oe=Z.pathParser),"insideModal"in Z&&e(30,fe=Z.insideModal),"onChange"in Z&&e(16,re=Z.onChange),"onRenderValue"in Z&&e(17,ce=Z.onRenderValue),"onClassName"in Z&&e(18,ue=Z.onClassName),"onRenderMenu"in Z&&e(31,pe=Z.onRenderMenu),"onChangeMode"in Z&&e(19,De=Z.onChangeMode),"onError"in Z&&e(20,ie=Z.onError),"onFocus"in Z&&e(21,ge=Z.onFocus),"onBlur"in Z&&e(22,we=Z.onBlur),"onSortModal"in Z&&e(23,le=Z.onSortModal),"onTransformModal"in Z&&e(24,Fe=Z.onTransformModal),"onJSONEditorModal"in Z&&e(25,z=Z.onJSONEditorModal)},t.$$.update=function(){524304&t.$$.dirty[0]&&e(41,s=[{type:"button",text:"text",title:"Switch to text mode (current mode: ".concat(d,")"),className:"jse-group-button jse-first"+(d===Za.text||"code"===d?" jse-selected":""),onClick:function(){return De(Za.text)}},{type:"button",text:"tree",title:"Switch to tree mode (current mode: ".concat(d,")"),className:"jse-group-button "+(d===Za.tree?" jse-selected":""),onClick:function(){return De(Za.tree)}},{type:"button",text:"table",title:"Switch to table mode (current mode: ".concat(d,")"),className:"jse-group-button jse-last"+(d===Za.table?" jse-selected":""),onClick:function(){return De(Za.table)}}]),1073741840&t.$$.dirty[0]|1025&t.$$.dirty[1]&&e(29,a=function(Z){var me=Sae(Z[0])?s.concat(Z):s.concat(Q,Z);return pe(me,{mode:d,modal:fe})||me})},[l,c,u,h,d,f,p,m,w,C,k,E,L,B,G,oe,re,ce,ue,De,ie,ge,we,le,Fe,z,i,r,o,a,fe,pe,function(Z){return i?i.patch(Z):r?r.patch(Z):o?o.patch(Z):void 0},function(Z){if(i)return i.expand(Z);throw new Error('Method expand is not available in mode "'.concat(d,'"'))},function(Z){if(o)o.openTransformModal(Z);else if(i)i.openTransformModal(Z);else{if(!r)throw new Error('Method transform is not available in mode "'.concat(d,'"'));r.openTransformModal(Z)}},function(){if(o)return o.validate();if(i)return i.validate();if(r)return r.validate();throw new Error('Method validate is not available in mode "'.concat(d,'"'))},function(){return i?i.acceptAutoRepair():l},function(Z){if(i)return i.scrollTo(Z);throw new Error('Method scrollTo is not available in mode "'.concat(d,'"'))},function(Z){if(i)return i.findElement(Z);if(r)return r.findElement(Z);throw new Error('Method findElement is not available in mode "'.concat(d,'"'))},function(){o?o.focus():i?i.focus():r&&r.focus()},function(){o&&o.refresh()},s,function(Z){dr[Z?"unshift":"push"](function(){e(28,o=Z)})},function(Z){dr[Z?"unshift":"push"](function(){e(27,r=Z)})},function(Z){dr[Z?"unshift":"push"](function(){e(26,i=Z)})}]}var Ppe=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,Bnt,jnt,Os,{content:0,readOnly:1,indentation:2,tabSize:3,mode:4,mainMenuBar:5,navigationBar:6,statusBar:7,escapeControlCharacters:8,escapeUnicodeCharacters:9,flattenColumns:10,parser:11,parseMemoizeOne:12,validator:13,validationParser:14,pathParser:15,insideModal:30,onChange:16,onRenderValue:17,onClassName:18,onRenderMenu:31,onChangeMode:19,onError:20,onFocus:21,onBlur:22,onSortModal:23,onTransformModal:24,onJSONEditorModal:25,patch:32,expand:33,transform:34,validate:35,acceptAutoRepair:36,scrollTo:37,findElement:38,focus:39,refresh:40},null,[-1,-1]),r}return Xe(e,[{key:"patch",get:function(){return this.$$.ctx[32]}},{key:"expand",get:function(){return this.$$.ctx[33]}},{key:"transform",get:function(){return this.$$.ctx[34]}},{key:"validate",get:function(){return this.$$.ctx[35]}},{key:"acceptAutoRepair",get:function(){return this.$$.ctx[36]}},{key:"scrollTo",get:function(){return this.$$.ctx[37]}},{key:"findElement",get:function(){return this.$$.ctx[38]}},{key:"focus",get:function(){return this.$$.ctx[39]}},{key:"refresh",get:function(){return this.$$.ctx[40]}}]),e}();function Hnt(t){Ni(t,"svelte-1hibiw3",".jse-modal.svelte-1hibiw3.svelte-1hibiw3{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-1hibiw3 .jse-modal-contents.svelte-1hibiw3{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1hibiw3 .jse-modal-contents .jse-actions.svelte-1hibiw3{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-1hibiw3 .jse-modal-contents .jse-actions button.jse-primary.svelte-1hibiw3{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-1hibiw3 .jse-modal-contents .jse-actions button.jse-primary.svelte-1hibiw3:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-1hibiw3 .jse-modal-contents .jse-actions button.jse-primary.svelte-1hibiw3:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 .jse-modal-contents.svelte-1hibiw3{flex:1;display:flex;flex-direction:column;padding-top:0;--jse-theme-color:var(--jse-modal-theme-color);--jse-theme-color-highlight:var(--jse-modal-theme-color-highlight)}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 .jse-modal-contents .jse-label.svelte-1hibiw3{font-weight:bold;display:block;box-sizing:border-box}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 .jse-modal-contents .jse-label .jse-label-inner.svelte-1hibiw3{margin-top:calc(2 * var(--jse-padding));margin-bottom:calc(0.5 * var(--jse-padding));box-sizing:border-box}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 .jse-modal-contents .jse-label .jse-label-inner button.svelte-1hibiw3{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;font-weight:bold;padding:0}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 .jse-modal-contents .jse-modal-inline-editor.svelte-1hibiw3{flex:1;min-height:0;min-width:0;display:flex}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 .jse-actions.svelte-1hibiw3{gap:var(--jse-padding);align-items:center}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 .jse-actions .jse-error.svelte-1hibiw3{flex:1;color:var(--jse-error-color)}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 .jse-actions button.jse-secondary.svelte-1hibiw3{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-secondary-background);color:var(--jse-button-secondary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 .jse-actions button.jse-secondary.svelte-1hibiw3:hover{background:var(--jse-button-secondary-background-highlight)}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 .jse-actions button.jse-secondary.svelte-1hibiw3:disabled{background:var(--jse-button-secondary-background-disabled)}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 input.svelte-1hibiw3{border:var(--jse-input-border);outline:none;box-sizing:border-box;padding:calc(0.5 * var(--jse-padding));font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:inherit;background:var(--jse-input-background)}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 input.svelte-1hibiw3:focus{border:var(--jse-input-border-focus)}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 input.svelte-1hibiw3:read-only{background:var(--jse-input-background-readonly)}")}function jpe(t){var n,e;return{c:function(){n=Be("div"),e=xn(t[19]),ne(n,"class","jse-error svelte-1hibiw3")},m:function(i,r){nt(i,n,r),Ie(n,e)},p:function(i,r){524288&r[0]&&gi(e,i[19])},d:function(i){i&&tt(n)}}}function Bpe(t){var n,e,i,r,o,s;return e=new Ir({props:{data:bGe}}),{c:function(){n=Be("button"),$t(e.$$.fragment),i=xn(" Back"),ne(n,"type","button"),ne(n,"class","jse-secondary svelte-1hibiw3")},m:function(a,l){nt(a,n,l),Nt(e,n,null),Ie(n,i),r=!0,o||(s=rn(n,"click",t[23]),o=!0)},p:an,i:function(a){r||(_e(e.$$.fragment,a),r=!0)},o:function(a){Ee(e.$$.fragment,a),r=!1},d:function(a){a&&tt(n),Rt(e),o=!1,s()}}}function Vnt(t){var n,e,i;return{c:function(){(n=Be("button")).textContent="Close",ne(n,"type","button"),ne(n,"class","jse-primary svelte-1hibiw3")},m:function(r,o){nt(r,n,o),e||(i=[rn(n,"click",t[23]),Ra(Hpe.call(null,n))],e=!0)},p:an,d:function(r){r&&tt(n),e=!1,Fo(i)}}}function znt(t){var n,e,i;return{c:function(){(n=Be("button")).textContent="Apply",ne(n,"type","button"),ne(n,"class","jse-primary svelte-1hibiw3")},m:function(r,o){nt(r,n,o),e||(i=[rn(n,"click",t[22]),Ra(Hpe.call(null,n))],e=!0)},p:an,d:function(r){r&&tt(n),e=!1,Fo(i)}}}function Unt(t){var n,e,i,r,o,s,a,l,c,u,h,d,f,p,m,w,C,k,E;e=new aN({props:{title:"Edit nested content "+(t[18].length>1?" (".concat(t[18].length,")"):""),onClose:t[23]}}),d=new Ppe({props:{mode:ii(t[18]).mode,content:ii(t[18]).content,readOnly:t[0],indentation:t[1],tabSize:t[2],statusBar:t[5],mainMenuBar:t[3],navigationBar:t[4],escapeControlCharacters:t[6],escapeUnicodeCharacters:t[7],flattenColumns:t[8],parser:t[9],parseMemoizeOne:t[20],validator:t[10],validationParser:t[11],pathParser:t[12],insideModal:!0,onError:t[26],onChange:t[24],onChangeMode:t[25],onRenderValue:t[13],onClassName:t[14],onFocus:hd,onBlur:hd,onRenderMenu:t[15],onSortModal:t[16],onTransformModal:t[17],onJSONEditorModal:t[27]}});var L=t[19]&&jpe(t),B=t[18].length>1&&Bpe(t);function G(re,ce){return re[0]?Vnt:znt}var oe=G(t),fe=oe(t);return{c:function(){n=Be("div"),$t(e.$$.fragment),i=xt(),r=Be("div"),(o=Be("div")).innerHTML='
    Path
    ',s=xt(),a=Be("input"),l=xt(),(c=Be("div")).innerHTML='
    Contents
    ',u=xt(),h=Be("div"),$t(d.$$.fragment),f=xt(),p=Be("div"),L&&L.c(),m=xt(),B&&B.c(),w=xt(),fe.c(),ne(o,"class","jse-label svelte-1hibiw3"),ne(a,"class","jse-path svelte-1hibiw3"),ne(a,"type","text"),a.readOnly=!0,ne(a,"title","Selected path"),a.value=t[21],ne(c,"class","jse-label svelte-1hibiw3"),ne(h,"class","jse-modal-inline-editor svelte-1hibiw3"),ne(p,"class","jse-actions svelte-1hibiw3"),ne(r,"class","jse-modal-contents svelte-1hibiw3"),ne(n,"class","jse-modal jse-jsoneditor-modal svelte-1hibiw3")},m:function(re,ce){nt(re,n,ce),Nt(e,n,null),Ie(n,i),Ie(n,r),Ie(r,o),Ie(r,s),Ie(r,a),Ie(r,l),Ie(r,c),Ie(r,u),Ie(r,h),Nt(d,h,null),Ie(r,f),Ie(r,p),L&&L.m(p,null),Ie(p,m),B&&B.m(p,null),Ie(p,w),fe.m(p,null),C=!0,k||(E=Ra(tk.call(null,n,t[23])),k=!0)},p:function(re,ce){var ue={};262144&ce[0]&&(ue.title="Edit nested content "+(re[18].length>1?" (".concat(re[18].length,")"):"")),e.$set(ue),(!C||2097152&ce[0]&&a.value!==re[21])&&(a.value=re[21]);var pe={};262144&ce[0]&&(pe.mode=ii(re[18]).mode),262144&ce[0]&&(pe.content=ii(re[18]).content),1&ce[0]&&(pe.readOnly=re[0]),2&ce[0]&&(pe.indentation=re[1]),4&ce[0]&&(pe.tabSize=re[2]),32&ce[0]&&(pe.statusBar=re[5]),8&ce[0]&&(pe.mainMenuBar=re[3]),16&ce[0]&&(pe.navigationBar=re[4]),64&ce[0]&&(pe.escapeControlCharacters=re[6]),128&ce[0]&&(pe.escapeUnicodeCharacters=re[7]),256&ce[0]&&(pe.flattenColumns=re[8]),512&ce[0]&&(pe.parser=re[9]),1048576&ce[0]&&(pe.parseMemoizeOne=re[20]),1024&ce[0]&&(pe.validator=re[10]),2048&ce[0]&&(pe.validationParser=re[11]),4096&ce[0]&&(pe.pathParser=re[12]),8192&ce[0]&&(pe.onRenderValue=re[13]),16384&ce[0]&&(pe.onClassName=re[14]),32768&ce[0]&&(pe.onRenderMenu=re[15]),65536&ce[0]&&(pe.onSortModal=re[16]),131072&ce[0]&&(pe.onTransformModal=re[17]),d.$set(pe),re[19]?L?L.p(re,ce):((L=jpe(re)).c(),L.m(p,m)):L&&(L.d(1),L=null),re[18].length>1?B?(B.p(re,ce),262144&ce[0]&&_e(B,1)):((B=Bpe(re)).c(),_e(B,1),B.m(p,w)):B&&(cn(),Ee(B,1,1,function(){B=null}),un()),oe===(oe=G(re))&&fe?fe.p(re,ce):(fe.d(1),(fe=oe(re))&&(fe.c(),fe.m(p,null)))},i:function(re){C||(_e(e.$$.fragment,re),_e(d.$$.fragment,re),_e(B),C=!0)},o:function(re){Ee(e.$$.fragment,re),Ee(d.$$.fragment,re),Ee(B),C=!1},d:function(re){re&&tt(n),Rt(e),Rt(d),L&&L.d(),B&&B.d(),fe.d(),k=!1,E()}}}function Hpe(t){t.focus()}function Wnt(t,n,e){var i,r,o,s=Pa("jsoneditor:JSONEditorModal"),a=n.content,l=n.path,c=n.onPatch,u=n.readOnly,h=n.indentation,d=n.tabSize,f=n.mainMenuBar,p=n.navigationBar,m=n.statusBar,w=n.escapeControlCharacters,C=n.escapeUnicodeCharacters,k=n.flattenColumns,E=n.parser,L=n.validator,B=n.validationParser,G=n.pathParser,oe=n.onRenderValue,fe=n.onClassName,re=n.onRenderMenu,ce=n.onSortModal,ue=n.onTransformModal,pe=$a("simple-modal").close,De=[{mode:ge(a),content:a,relativePath:l}],ie=void 0;function ge(le){return SO(le)&&Ao(le.json)?Za.table:Za.tree}function we(le){s("handleChange",le);var Fe=_t(_t({},ii(De)),{},{content:le});e(18,De=[].concat(Ti(wr(De)),[Fe]))}return t.$$set=function(le){"content"in le&&e(28,a=le.content),"path"in le&&e(29,l=le.path),"onPatch"in le&&e(30,c=le.onPatch),"readOnly"in le&&e(0,u=le.readOnly),"indentation"in le&&e(1,h=le.indentation),"tabSize"in le&&e(2,d=le.tabSize),"mainMenuBar"in le&&e(3,f=le.mainMenuBar),"navigationBar"in le&&e(4,p=le.navigationBar),"statusBar"in le&&e(5,m=le.statusBar),"escapeControlCharacters"in le&&e(6,w=le.escapeControlCharacters),"escapeUnicodeCharacters"in le&&e(7,C=le.escapeUnicodeCharacters),"flattenColumns"in le&&e(8,k=le.flattenColumns),"parser"in le&&e(9,E=le.parser),"validator"in le&&e(10,L=le.validator),"validationParser"in le&&e(11,B=le.validationParser),"pathParser"in le&&e(12,G=le.pathParser),"onRenderValue"in le&&e(13,oe=le.onRenderValue),"onClassName"in le&&e(14,fe=le.onClassName),"onRenderMenu"in le&&e(15,re=le.onRenderMenu),"onSortModal"in le&&e(16,ce=le.onSortModal),"onTransformModal"in le&&e(17,ue=le.onTransformModal)},t.$$.update=function(){262144&t.$$.dirty[0]&&e(31,i=De.flatMap(function(le){return le.relativePath})),1&t.$$.dirty[1]&&e(21,r=fr(i)?"(whole document)":lu(lc(i))),512&t.$$.dirty[0]&&e(20,o=Jb(E.parse))},[u,h,d,f,p,m,w,C,k,E,L,B,G,oe,fe,re,ce,ue,De,ie,o,r,function(){if(s("handleApply"),!u)try{e(19,ie=void 0);var le=[{op:"replace",path:An(ii(De).relativePath),value:aoe(ii(De).content,E).json}];if(De.length>1){var Fe={json:Zu(aoe(De[De.length-2].content,E).json,le)};e(18,De=wr(De)),we(Fe)}else c(le),pe()}catch(z){e(19,ie=z.toString())}},function(){s("handleClose"),De.length>1?(e(18,De=wr(De)),e(19,ie=void 0)):pe()},we,function(le){s("handleChangeMode",le);var Fe=_t(_t({},ii(De)),{},{mode:le});e(18,De=[].concat(Ti(wr(De)),[Fe]))},function(le){e(19,ie=le.toString()),console.error(le)},function(le){var Fe=le.content,z=le.path;s("handleJSONEditorModal",{content:Fe,path:z});var Q={mode:ge(Fe),content:Fe,relativePath:z};e(18,De=[].concat(Ti(De),[Q]))},a,l,c,i]}var Gnt=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,Wnt,Unt,Zi,{content:28,path:29,onPatch:30,readOnly:0,indentation:1,tabSize:2,mainMenuBar:3,navigationBar:4,statusBar:5,escapeControlCharacters:6,escapeUnicodeCharacters:7,flattenColumns:8,parser:9,validator:10,validationParser:11,pathParser:12,onRenderValue:13,onClassName:14,onRenderMenu:15,onSortModal:16,onTransformModal:17},Hnt,[-1,-1]),r}return Xe(e)}();function qnt(t,n,e){var i=$a("simple-modal");return[i.open,i.close]}var Xnt=function(t){Wt(e,Qn);var n=Gt(e);function e(i){var r;return qe(this,e),ni(Yn(r=n.call(this)),i,qnt,null,Zi,{open:0,close:1}),r}return Xe(e,[{key:"open",get:function(){return this.$$.ctx[0]}},{key:"close",get:function(){return this.$$.ctx[1]}}]),e}();function Ynt(t){Ni(t,"svelte-sxaskb",':root{--jse-theme:light;--jse-font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,\n Cantarell, "Helvetica Neue", sans-serif;--jse-font-family-mono:consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace;--jse-font-size-mono:14px;--jse-font-size:16px;--jse-font-size-text-mode-search:80%;--jse-line-height:calc(1em + 4px);--jse-indent-size:calc(1em + 4px);--jse-color-picker-button-size:1em;--jse-padding:10px;--jse-theme-color:#3883fa;--jse-theme-color-highlight:#5f9dff;--jse-background-color:#fff;--jse-text-color:#4d4d4d;--jse-text-readonly:#8d8d8d;--jse-text-color-inverse:#fff;--jse-error-color:#ee5341;--jse-warning-color:#fdc539;--jse-main-border:1px solid #d7d7d7;--jse-menu-color:var(--jse-text-color-inverse);--jse-menu-button-size:32px;--jse-modal-background:#f5f5f5;--jse-modal-overlay-background:rgba(0, 0, 0, 0.3);--jse-modal-code-background:rgba(0, 0, 0, 0.05);--jse-modal-theme-color:#707070;--jse-modal-theme-color-highlight:#646464;--jse-tooltip-color:var(--jse-text-color);--jse-tooltip-background:var(--jse-modal-background);--jse-tooltip-border:var(--jse-main-border);--jse-tooltip-action-button-color:var(--jse-text-color-inverse);--jse-tooltip-action-button-background:#4d4d4d;--jse-panel-background:#ebebeb;--jse-panel-color:var(--jse-text-color);--jse-panel-color-readonly:#b2b2b2;--jse-panel-border:var(--jse-main-border);--jse-panel-button-color:inherit;--jse-panel-button-background:transparent;--jse-panel-button-color-highlight:var(--jse-text-color);--jse-panel-button-background-highlight:#e0e0e0;--jse-navigation-bar-background:var(--jse-background-color);--jse-navigation-bar-background-highlight:#e5e5e5;--jse-navigation-bar-dropdown-color:#656565;--jse-context-menu-background:#656565;--jse-context-menu-background-highlight:#7a7a7a;--jse-context-menu-color:var(--jse-text-color-inverse);--jse-context-menu-color-disabled:#9d9d9d;--jse-context-menu-separator-color:#7a7a7a;--jse-context-menu-pointer-hover-background:#b2b2b2;--jse-context-menu-pointer-background:var(--jse-context-menu-background);--jse-context-menu-pointer-background-highlight:var(--jse-context-menu-background-highlight);--jse-context-menu-pointer-color:var(--jse-context-menu-color);--jse-context-menu-pointer-size:calc(1em + 4px);--jse-context-menu-tip-background:rgba(255, 255, 255, 0.2);--jse-context-menu-tip-color:inherit;--jse-key-color:#1a1a1a;--jse-value-color:#1a1a1a;--jse-value-color-number:#ee422e;--jse-value-color-boolean:#ff8c00;--jse-value-color-null:#004ed0;--jse-value-color-string:#008000;--jse-value-color-url:#008000;--jse-delimiter-color:rgba(0, 0, 0, 0.38);--jse-edit-outline:2px solid #656565;--jse-contents-background-color:transparent;--jse-contents-cursor:pointer;--jse-contents-selected-cursor:grab;--jse-selection-background-color:#d3d3d3;--jse-selection-background-inactive-color:#e8e8e8;--jse-hover-background-color:rgba(0, 0, 0, 0.06);--jse-active-line-background-color:rgba(0, 0, 0, 0.06);--jse-search-match-background-color:#99ff7780;--jse-collapsed-items-background-color:#f5f5f5;--jse-collapsed-items-selected-background-color:#c2c2c2;--jse-collapsed-items-link-color:rgba(0, 0, 0, 0.38);--jse-collapsed-items-link-color-highlight:#ee5341;--jse-search-match-color:#ffe665;--jse-search-match-outline:1px solid #ffd700;--jse-search-match-active-color:#ffd700;--jse-search-match-active-outline:1px solid #e1be00;--jse-tag-background:rgba(0, 0, 0, 0.2);--jse-tag-color:var(--jse-text-color-inverse);--jse-table-header-background:#f5f5f5;--jse-table-header-background-highlight:#e8e8e8;--jse-table-row-odd-background:rgba(0, 0, 0, 0.05);--jse-controls-box-shadow:0 2px 6px 0 rgba(0, 0, 0, 0.24);--jse-input-background:var(--jse-background-color);--jse-input-background-readonly:transparent;--jse-input-border:1px solid #d8dbdf;--jse-input-border-focus:1px solid var(--jse-theme-color);--jse-input-radius:3px;--jse-button-background:#e0e0e0;--jse-button-background-highlight:#e7e7e7;--jse-button-color:var(--jse-text-color);--jse-button-primary-background:var(--jse-theme-color);--jse-button-primary-background-highlight:var(--jse-theme-color-highlight);--jse-button-primary-background-disabled:#9d9d9d;--jse-button-primary-color:var(--jse-text-color-inverse);--jse-button-secondary-background:#d3d3d3;--jse-button-secondary-background-highlight:#e1e1e1;--jse-button-secondary-background-disabled:#9d9d9d;--jse-button-secondary-color:var(--jse-text-color);--jse-a-color:#156fc5;--jse-a-color-highlight:#0f508d;--jse-message-error-background:var(--jse-error-color);--jse-message-error-color:var(--jse-text-color-inverse);--jse-message-warning-background:#ffde5c;--jse-message-warning-color:var(--jse-text-color);--jse-message-success-background:#9ac45d;--jse-message-success-color:var(--jse-text-color-inverse);--jse-message-info-background:#4f91ff;--jse-message-info-color:var(--jse-text-color-inverse);--jse-message-action-background:rgba(255, 255, 255, 0.2);--jse-message-action-background-highlight:rgba(255, 255, 255, 0.3);--item-is-active-bg:#3883fa;--border:1px solid #d8dbdf;--border-radius:3px;--background:#fff;--padding:0 10px;--multi-select-padding:0 10px;--jse-color-picker-background:var(--jse-panel-background);--jse-color-picker-border-box-shadow:#cbcbcb 0 0 0 1px}.jse-main.svelte-sxaskb{width:100%;height:100%;min-width:0;min-height:150px;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;position:relative;display:flex;flex-direction:row}')}function Vpe(t){var n,e;return n=new Ppe({props:{mode:t[1],content:t[0],readOnly:t[2],indentation:t[3],tabSize:t[4],statusBar:t[7],mainMenuBar:t[5],navigationBar:t[6],escapeControlCharacters:t[8],escapeUnicodeCharacters:t[9],flattenColumns:t[10],parser:t[11],parseMemoizeOne:t[24],validator:t[12],validationParser:t[13],pathParser:t[14],insideModal:!1,onError:t[18],onChange:t[25],onChangeMode:t[28],onRenderValue:t[15],onClassName:t[16],onFocus:t[26],onBlur:t[27],onRenderMenu:t[17],onSortModal:t[30],onTransformModal:t[29],onJSONEditorModal:t[31]}}),t[56](n),{c:function(){$t(n.$$.fragment)},m:function(r,o){Nt(n,r,o),e=!0},p:function(r,o){var s={};2&o[0]&&(s.mode=r[1]),1&o[0]&&(s.content=r[0]),4&o[0]&&(s.readOnly=r[2]),8&o[0]&&(s.indentation=r[3]),16&o[0]&&(s.tabSize=r[4]),128&o[0]&&(s.statusBar=r[7]),32&o[0]&&(s.mainMenuBar=r[5]),64&o[0]&&(s.navigationBar=r[6]),256&o[0]&&(s.escapeControlCharacters=r[8]),512&o[0]&&(s.escapeUnicodeCharacters=r[9]),1024&o[0]&&(s.flattenColumns=r[10]),2048&o[0]&&(s.parser=r[11]),16777216&o[0]&&(s.parseMemoizeOne=r[24]),4096&o[0]&&(s.validator=r[12]),8192&o[0]&&(s.validationParser=r[13]),16384&o[0]&&(s.pathParser=r[14]),262144&o[0]&&(s.onError=r[18]),32768&o[0]&&(s.onRenderValue=r[15]),65536&o[0]&&(s.onClassName=r[16]),131072&o[0]&&(s.onRenderMenu=r[17]),n.$set(s)},i:function(r){e||(_e(n.$$.fragment,r),e=!0)},o:function(r){Ee(n.$$.fragment,r),e=!1},d:function(r){t[56](null),Rt(n,r)}}}function Knt(t){var n,e,i,r,o,s=t[19];function a(u){t[55](u)}var l={};void 0!==t[22]&&(l.open=t[22]),n=new Xnt({props:l}),dr.push(function(){return Xu(n,"open",a)});var c=Vpe(t);return{c:function(){$t(n.$$.fragment),i=xt(),r=Be("div"),c.c(),ne(r,"class","jse-main svelte-sxaskb"),en(r,"jse-focus",t[20])},m:function(u,h){Nt(n,u,h),nt(u,i,h),nt(u,r,h),c.m(r,null),o=!0},p:function(u,h){var d={};!e&&4194304&h[0]&&(e=!0,d.open=u[22],qu(function(){return e=!1})),n.$set(d),524288&h[0]&&Zi(s,s=u[19])?(cn(),Ee(c,1,1,an),un(),(c=Vpe(u)).c(),_e(c,1),c.m(r,null)):c.p(u,h),(!o||1048576&h[0])&&en(r,"jse-focus",u[20])},i:function(u){o||(_e(n.$$.fragment,u),_e(c),o=!0)},o:function(u){Ee(n.$$.fragment,u),Ee(c),o=!1},d:function(u){Rt(n,u),u&&tt(i),u&&tt(r),c.d(u)}}}function Jnt(t){var n,e;return n=new xQ({props:{closeOnEsc:!1,$$slots:{default:[Knt]},$$scope:{ctx:t}}}),{c:function(){$t(n.$$.fragment)},m:function(i,r){Nt(n,i,r),e=!0},p:function(i,r){var o={};25165823&r[0]|268435456&r[1]&&(o.$$scope={dirty:r,ctx:i}),n.$set(o)},i:function(i){e||(_e(n.$$.fragment,i),e=!0)},o:function(i){Ee(n.$$.fragment,i),e=!1},d:function(i){Rt(n,i)}}}function Qnt(t){for(var n,e,i,r=[{show:null===(n=t[23])||void 0===n?void 0:n.component},CQ,{closeOnEsc:!1}],o={$$slots:{default:[Jnt]},$$scope:{ctx:t}},s=0;s1)return!1;var p=this._items[0];return""===p||'""'===p}},{key:"str",get:function(){var p;return null!==(p=this._str)&&void 0!==p?p:this._str=this._items.reduce(function(m,w){return"".concat(m).concat(w)},"")}},{key:"names",get:function(){var p;return null!==(p=this._names)&&void 0!==p?p:this._names=this._items.reduce(function(m,w){return w instanceof e&&(m[w.str]=(m[w.str]||0)+1),m},{})}}]),f}(n);function r(h){for(var d=[h[0]],f=0,p=arguments.length,m=new Array(p>1?p-1:0),w=1;w1?p-1:0),w=1;w0&&void 0!==arguments[0]?arguments[0]:{},u=c.prefixes,h=c.parent;qe(this,l),this._names={},this._prefixes=u,this._parent=h}return Xe(l,[{key:"toName",value:function(c){return c instanceof e.Name?c:this.name(c)}},{key:"name",value:function(c){return new e.Name(this._newName(c))}},{key:"_newName",value:function(c){var u=this._names[c]||this._nameGroup(c);return"".concat(c).concat(u.index++)}},{key:"_nameGroup",value:function(c){var u,h;if(null!==(h=null===(u=this._parent)||void 0===u?void 0:u._prefixes)&&void 0!==h&&h.has(c)||this._prefixes&&!this._prefixes.has(c))throw new Error('CodeGen: prefix "'.concat(c,'" is not allowed in this scope'));return this._names[c]={prefix:c,index:0}}}]),l}();t.Scope=r;var o=function(l){Wt(u,l);var c=Gt(u);function u(h,d){var f;return qe(this,u),(f=c.call(this,d)).prefix=h,f}return Xe(u,[{key:"setValue",value:function(h,d){var f=d.property,p=d.itemIndex;this.value=h,this.scopePath=(0,e._)($G||($G=Je([".","[","]"])),new e.Name(f),p)}}]),u}(e.Name);t.ValueScopeName=o;var s=(0,e._)(PG||(PG=Je(["\n"],["\\n"]))),a=function(l){Wt(u,l);var c=Gt(u);function u(h){var d;return qe(this,u),(d=c.call(this,h))._values={},d._scope=h.scope,d.opts=_t(_t({},h),{},{_n:h.lines?s:e.nil}),d}return Xe(u,[{key:"get",value:function(){return this._scope}},{key:"name",value:function(h){return new o(h,this._newName(h))}},{key:"value",value:function(h,d){var f;if(void 0===d.ref)throw new Error("CodeGen: ref must be passed in value");var p=this.toName(h),m=p.prefix,w=null!==(f=d.key)&&void 0!==f?f:d.ref,C=this._values[m];if(C){var k=C.get(w);if(k)return k}else C=this._values[m]=new Map;C.set(w,p);var E=this._scope[m]||(this._scope[m]=[]),L=E.length;return E[L]=d.ref,p.setValue(d,{property:m,itemIndex:L}),p}},{key:"getValue",value:function(h,d){var f=this._values[h];if(f)return f.get(d)}},{key:"scopeRefs",value:function(h){return this._reduceValues(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._values,function(f){if(void 0===f.scopePath)throw new Error('CodeGen: name "'.concat(f,'" has no value'));return(0,e._)(jG||(jG=Je(["","",""])),h,f.scopePath)})}},{key:"scopeCode",value:function(){return this._reduceValues(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._values,function(p){if(void 0===p.value)throw new Error('CodeGen: name "'.concat(p,'" has no value'));return p.value.code},arguments.length>1?arguments[1]:void 0,arguments.length>2?arguments[2]:void 0)}},{key:"_reduceValues",value:function(h,d){var f=this,p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},m=arguments.length>3?arguments[3]:void 0,w=e.nil,C=function(E){var L=h[E];if(!L)return"continue";var B=p[E]=p[E]||new Map;L.forEach(function(G){if(!B.has(G)){B.set(G,n.Started);var oe=d(G);if(oe){var fe=f.opts.es5?t.varKinds.var:t.varKinds.const;w=(0,e._)(BG||(BG=Je(["",""," "," = ",";",""])),w,fe,G,oe,f.opts._n)}else{if(!(oe=m?.(G)))throw new i(G);w=(0,e._)(HG||(HG=Je(["","","",""])),w,oe,f.opts._n)}B.set(G,n.Completed)}})};for(var k in h)C(k);return w}}]),u}(r);t.ValueScope=a}(ege)),ege}function Gr(){return Zpe||(Zpe=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;var n=SD(),e=tge(),i=SD();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return i.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return i.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return i.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return i.Name}});var r=tge();Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return r.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return r.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return r.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return r.varKinds}}),t.operators={GT:new n._Code(">"),GTE:new n._Code(">="),LT:new n._Code("<"),LTE:new n._Code("<="),EQ:new n._Code("==="),NEQ:new n._Code("!=="),NOT:new n._Code("!"),OR:new n._Code("||"),AND:new n._Code("&&"),ADD:new n._Code("+")};var o=function(){function Z(){qe(this,Z)}return Xe(Z,[{key:"optimizeNodes",value:function(){return this}},{key:"optimizeNames",value:function(me,ae){return this}}]),Z}(),s=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(Te,Oe,Ze){var Ve;return qe(this,ae),(Ve=me.call(this)).varKind=Te,Ve.name=Oe,Ve.rhs=Ze,Ve}return Xe(ae,[{key:"render",value:function(Te){var Ze=Te._n,Ve=Te.es5?e.varKinds.var:this.varKind,wt=void 0===this.rhs?"":" = ".concat(this.rhs);return"".concat(Ve," ").concat(this.name).concat(wt,";")+Ze}},{key:"optimizeNames",value:function(Te,Oe){if(Te[this.name.str])return this.rhs&&(this.rhs=ie(this.rhs,Te,Oe)),this}},{key:"names",get:function(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}]),ae}(o),a=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(Te,Oe,Ze){var Ve;return qe(this,ae),(Ve=me.call(this)).lhs=Te,Ve.rhs=Oe,Ve.sideEffects=Ze,Ve}return Xe(ae,[{key:"render",value:function(Te){var Oe=Te._n;return"".concat(this.lhs," = ").concat(this.rhs,";")+Oe}},{key:"optimizeNames",value:function(Te,Oe){if(!(this.lhs instanceof n.Name)||Te[this.lhs.str]||this.sideEffects)return this.rhs=ie(this.rhs,Te,Oe),this}},{key:"names",get:function(){return De(this.lhs instanceof n.Name?{}:_t({},this.lhs.names),this.rhs)}}]),ae}(o),l=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(Te,Oe,Ze,Ve){var wt;return qe(this,ae),(wt=me.call(this,Te,Ze,Ve)).op=Oe,wt}return Xe(ae,[{key:"render",value:function(Te){var Oe=Te._n;return"".concat(this.lhs," ").concat(this.op,"= ").concat(this.rhs,";")+Oe}}]),ae}(a),c=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(Te){var Oe;return qe(this,ae),(Oe=me.call(this)).label=Te,Oe.names={},Oe}return Xe(ae,[{key:"render",value:function(Te){var Oe=Te._n;return"".concat(this.label,":")+Oe}}]),ae}(o),u=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(Te){var Oe;return qe(this,ae),(Oe=me.call(this)).label=Te,Oe.names={},Oe}return Xe(ae,[{key:"render",value:function(Te){var Oe=Te._n,Ze=this.label?" ".concat(this.label):"";return"break".concat(Ze,";")+Oe}}]),ae}(o),h=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(Te){var Oe;return qe(this,ae),(Oe=me.call(this)).error=Te,Oe}return Xe(ae,[{key:"render",value:function(Te){var Oe=Te._n;return"throw ".concat(this.error,";")+Oe}},{key:"names",get:function(){return this.error.names}}]),ae}(o),d=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(Te){var Oe;return qe(this,ae),(Oe=me.call(this)).code=Te,Oe}return Xe(ae,[{key:"render",value:function(Te){var Oe=Te._n;return"".concat(this.code,";")+Oe}},{key:"optimizeNodes",value:function(){return"".concat(this.code)?this:void 0}},{key:"optimizeNames",value:function(Te,Oe){return this.code=ie(this.code,Te,Oe),this}},{key:"names",get:function(){return this.code instanceof n._CodeOrName?this.code.names:{}}}]),ae}(o),f=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(){var Te,Oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return qe(this,ae),(Te=me.call(this)).nodes=Oe,Te}return Xe(ae,[{key:"render",value:function(Te){return this.nodes.reduce(function(Oe,Ze){return Oe+Ze.render(Te)},"")}},{key:"optimizeNodes",value:function(){for(var Te=this.nodes,Oe=Te.length;Oe--;){var Ze=Te[Oe].optimizeNodes();Array.isArray(Ze)?Te.splice.apply(Te,[Oe,1].concat(Ti(Ze))):Ze?Te[Oe]=Ze:Te.splice(Oe,1)}return Te.length>0?this:void 0}},{key:"optimizeNames",value:function(Te,Oe){for(var Ze=this.nodes,Ve=Ze.length;Ve--;){var wt=Ze[Ve];wt.optimizeNames(Te,Oe)||(ge(Te,wt.names),Ze.splice(Ve,1))}return Ze.length>0?this:void 0}},{key:"names",get:function(){return this.nodes.reduce(function(Te,Oe){return pe(Te,Oe.names)},{})}}]),ae}(o),p=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(){return qe(this,ae),me.apply(this,arguments)}return Xe(ae,[{key:"render",value:function(Te){return"{"+Te._n+jr(_r(ae.prototype),"render",this).call(this,Te)+"}"+Te._n}}]),ae}(f),m=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(){return qe(this,ae),me.apply(this,arguments)}return Xe(ae)}(f),w=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(){return qe(this,ae),me.apply(this,arguments)}return Xe(ae)}(p);w.kind="else";var C=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(Te,Oe){var Ze;return qe(this,ae),(Ze=me.call(this,Oe)).condition=Te,Ze}return Xe(ae,[{key:"render",value:function(Te){var Oe="if(".concat(this.condition,")")+jr(_r(ae.prototype),"render",this).call(this,Te);return this.else&&(Oe+="else "+this.else.render(Te)),Oe}},{key:"optimizeNodes",value:function(){jr(_r(ae.prototype),"optimizeNodes",this).call(this);var Te=this.condition;if(!0===Te)return this.nodes;var Oe=this.else;if(Oe){var Ze=Oe.optimizeNodes();Oe=this.else=Array.isArray(Ze)?new w(Ze):Ze}return Oe?!1===Te?Oe instanceof ae?Oe:Oe.nodes:this.nodes.length?this:new ae(we(Te),Oe instanceof ae?[Oe]:Oe.nodes):!1!==Te&&this.nodes.length?this:void 0}},{key:"optimizeNames",value:function(Te,Oe){var Ze;if(this.else=null===(Ze=this.else)||void 0===Ze?void 0:Ze.optimizeNames(Te,Oe),jr(_r(ae.prototype),"optimizeNames",this).call(this,Te,Oe)||this.else)return this.condition=ie(this.condition,Te,Oe),this}},{key:"names",get:function(){var Te=jr(_r(ae.prototype),"names",this);return De(Te,this.condition),this.else&&pe(Te,this.else.names),Te}}]),ae}(p);C.kind="if";var k=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(){return qe(this,ae),me.apply(this,arguments)}return Xe(ae)}(p);k.kind="for";var E=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(Te){var Oe;return qe(this,ae),(Oe=me.call(this)).iteration=Te,Oe}return Xe(ae,[{key:"render",value:function(Te){return"for(".concat(this.iteration,")")+jr(_r(ae.prototype),"render",this).call(this,Te)}},{key:"optimizeNames",value:function(Te,Oe){if(jr(_r(ae.prototype),"optimizeNames",this).call(this,Te,Oe))return this.iteration=ie(this.iteration,Te,Oe),this}},{key:"names",get:function(){return pe(jr(_r(ae.prototype),"names",this),this.iteration.names)}}]),ae}(k),L=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(Te,Oe,Ze,Ve){var wt;return qe(this,ae),(wt=me.call(this)).varKind=Te,wt.name=Oe,wt.from=Ze,wt.to=Ve,wt}return Xe(ae,[{key:"render",value:function(Te){var Ze=this.name,Ve=this.from,wt=this.to;return"for(".concat(Te.es5?e.varKinds.var:this.varKind," ").concat(Ze,"=").concat(Ve,"; ").concat(Ze,"<").concat(wt,"; ").concat(Ze,"++)")+jr(_r(ae.prototype),"render",this).call(this,Te)}},{key:"names",get:function(){var Te=De(jr(_r(ae.prototype),"names",this),this.from);return De(Te,this.to)}}]),ae}(k),B=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(Te,Oe,Ze,Ve){var wt;return qe(this,ae),(wt=me.call(this)).loop=Te,wt.varKind=Oe,wt.name=Ze,wt.iterable=Ve,wt}return Xe(ae,[{key:"render",value:function(Te){return"for(".concat(this.varKind," ").concat(this.name," ").concat(this.loop," ").concat(this.iterable,")")+jr(_r(ae.prototype),"render",this).call(this,Te)}},{key:"optimizeNames",value:function(Te,Oe){if(jr(_r(ae.prototype),"optimizeNames",this).call(this,Te,Oe))return this.iterable=ie(this.iterable,Te,Oe),this}},{key:"names",get:function(){return pe(jr(_r(ae.prototype),"names",this),this.iterable.names)}}]),ae}(k),G=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(Te,Oe,Ze){var Ve;return qe(this,ae),(Ve=me.call(this)).name=Te,Ve.args=Oe,Ve.async=Ze,Ve}return Xe(ae,[{key:"render",value:function(Te){return"".concat(this.async?"async ":"","function ").concat(this.name,"(").concat(this.args,")")+jr(_r(ae.prototype),"render",this).call(this,Te)}}]),ae}(p);G.kind="func";var oe=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(){return qe(this,ae),me.apply(this,arguments)}return Xe(ae,[{key:"render",value:function(Te){return"return "+jr(_r(ae.prototype),"render",this).call(this,Te)}}]),ae}(f);oe.kind="return";var fe=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(){return qe(this,ae),me.apply(this,arguments)}return Xe(ae,[{key:"render",value:function(Te){var Oe="try"+jr(_r(ae.prototype),"render",this).call(this,Te);return this.catch&&(Oe+=this.catch.render(Te)),this.finally&&(Oe+=this.finally.render(Te)),Oe}},{key:"optimizeNodes",value:function(){var Te,Oe;return jr(_r(ae.prototype),"optimizeNodes",this).call(this),null===(Te=this.catch)||void 0===Te||Te.optimizeNodes(),null===(Oe=this.finally)||void 0===Oe||Oe.optimizeNodes(),this}},{key:"optimizeNames",value:function(Te,Oe){var Ze,Ve;return jr(_r(ae.prototype),"optimizeNames",this).call(this,Te,Oe),null===(Ze=this.catch)||void 0===Ze||Ze.optimizeNames(Te,Oe),null===(Ve=this.finally)||void 0===Ve||Ve.optimizeNames(Te,Oe),this}},{key:"names",get:function(){var Te=jr(_r(ae.prototype),"names",this);return this.catch&&pe(Te,this.catch.names),this.finally&&pe(Te,this.finally.names),Te}}]),ae}(p),re=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(Te){var Oe;return qe(this,ae),(Oe=me.call(this)).error=Te,Oe}return Xe(ae,[{key:"render",value:function(Te){return"catch(".concat(this.error,")")+jr(_r(ae.prototype),"render",this).call(this,Te)}}]),ae}(p);re.kind="catch";var ce=function(Z){Wt(ae,Z);var me=Gt(ae);function ae(){return qe(this,ae),me.apply(this,arguments)}return Xe(ae,[{key:"render",value:function(Te){return"finally"+jr(_r(ae.prototype),"render",this).call(this,Te)}}]),ae}(p);ce.kind="finally";var ue=function(){function Z(me){var ae=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};qe(this,Z),this._values={},this._blockStarts=[],this._constants={},this.opts=_t(_t({},ae),{},{_n:ae.lines?"\n":""}),this._extScope=me,this._scope=new e.Scope({parent:me}),this._nodes=[new m]}return Xe(Z,[{key:"toString",value:function(){return this._root.render(this.opts)}},{key:"name",value:function(me){return this._scope.name(me)}},{key:"scopeName",value:function(me){return this._extScope.name(me)}},{key:"scopeValue",value:function(me,ae){var Te=this._extScope.value(me,ae);return(this._values[Te.prefix]||(this._values[Te.prefix]=new Set)).add(Te),Te}},{key:"getScopeValue",value:function(me,ae){return this._extScope.getValue(me,ae)}},{key:"scopeRefs",value:function(me){return this._extScope.scopeRefs(me,this._values)}},{key:"scopeCode",value:function(){return this._extScope.scopeCode(this._values)}},{key:"_def",value:function(me,ae,Te,Oe){var Ze=this._scope.toName(ae);return void 0!==Te&&Oe&&(this._constants[Ze.str]=Te),this._leafNode(new s(me,Ze,Te)),Ze}},{key:"const",value:function(me,ae,Te){return this._def(e.varKinds.const,me,ae,Te)}},{key:"let",value:function(me,ae,Te){return this._def(e.varKinds.let,me,ae,Te)}},{key:"var",value:function(me,ae,Te){return this._def(e.varKinds.var,me,ae,Te)}},{key:"assign",value:function(me,ae,Te){return this._leafNode(new a(me,ae,Te))}},{key:"add",value:function(me,ae){return this._leafNode(new l(me,t.operators.ADD,ae))}},{key:"code",value:function(me){return"function"==typeof me?me():me!==n.nil&&this._leafNode(new d(me)),this}},{key:"object",value:function(){for(var me=["{"],ae=arguments.length,Te=new Array(ae),Oe=0;Oe1&&me.push(","),me.push(ct),(ct!==Ct||this.opts.es5)&&(me.push(":"),(0,n.addCodeArg)(me,Ct))}return me.push("}"),new n._Code(me)}},{key:"if",value:function(me,ae,Te){if(this._blockNode(new C(me)),ae&&Te)this.code(ae).else().code(Te).endIf();else if(ae)this.code(ae).endIf();else if(Te)throw new Error('CodeGen: "else" body without "then" body');return this}},{key:"elseIf",value:function(me){return this._elseNode(new C(me))}},{key:"else",value:function(){return this._elseNode(new w)}},{key:"endIf",value:function(){return this._endBlockNode(C,w)}},{key:"_for",value:function(me,ae){return this._blockNode(me),ae&&this.code(ae).endFor(),this}},{key:"for",value:function(me,ae){return this._for(new E(me),ae)}},{key:"forRange",value:function(me,ae,Te,Oe){var Ze=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.opts.es5?e.varKinds.var:e.varKinds.let,Ve=this._scope.toName(me);return this._for(new L(Ze,Ve,ae,Te),function(){return Oe(Ve)})}},{key:"forOf",value:function(me,ae,Te){var Oe=this,Ze=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.varKinds.const,Ve=this._scope.toName(me);if(this.opts.es5){var wt=ae instanceof n.Name?ae:this.var("_arr",ae);return this.forRange("_i",0,(0,n._)(VG||(VG=Je(["",".length"])),wt),function(ct){Oe.var(Ve,(0,n._)(zG||(zG=Je(["","[","]"])),wt,ct)),Te(Ve)})}return this._for(new B("of",Ze,Ve,ae),function(){return Te(Ve)})}},{key:"forIn",value:function(me,ae,Te){var Oe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.es5?e.varKinds.var:e.varKinds.const;if(this.opts.ownProperties)return this.forOf(me,(0,n._)(UG||(UG=Je(["Object.keys(",")"])),ae),Te);var Ze=this._scope.toName(me);return this._for(new B("in",Oe,Ze,ae),function(){return Te(Ze)})}},{key:"endFor",value:function(){return this._endBlockNode(k)}},{key:"label",value:function(me){return this._leafNode(new c(me))}},{key:"break",value:function(me){return this._leafNode(new u(me))}},{key:"return",value:function(me){var ae=new oe;if(this._blockNode(ae),this.code(me),1!==ae.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(oe)}},{key:"try",value:function(me,ae,Te){if(!ae&&!Te)throw new Error('CodeGen: "try" without "catch" and "finally"');var Oe=new fe;if(this._blockNode(Oe),this.code(me),ae){var Ze=this.name("e");this._currNode=Oe.catch=new re(Ze),ae(Ze)}return Te&&(this._currNode=Oe.finally=new ce,this.code(Te)),this._endBlockNode(re,ce)}},{key:"throw",value:function(me){return this._leafNode(new h(me))}},{key:"block",value:function(me,ae){return this._blockStarts.push(this._nodes.length),me&&this.code(me).endBlock(ae),this}},{key:"endBlock",value:function(me){var ae=this._blockStarts.pop();if(void 0===ae)throw new Error("CodeGen: not in self-balancing block");var Te=this._nodes.length-ae;if(Te<0||void 0!==me&&Te!==me)throw new Error("CodeGen: wrong number of nodes: ".concat(Te," vs ").concat(me," expected"));return this._nodes.length=ae,this}},{key:"func",value:function(me){var Oe=arguments.length>3?arguments[3]:void 0;return this._blockNode(new G(me,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.nil,arguments.length>2?arguments[2]:void 0)),Oe&&this.code(Oe).endFunc(),this}},{key:"endFunc",value:function(){return this._endBlockNode(G)}},{key:"optimize",value:function(){for(var me=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;me-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}},{key:"_leafNode",value:function(me){return this._currNode.nodes.push(me),this}},{key:"_blockNode",value:function(me){this._currNode.nodes.push(me),this._nodes.push(me)}},{key:"_endBlockNode",value:function(me,ae){var Te=this._currNode;if(Te instanceof me||ae&&Te instanceof ae)return this._nodes.pop(),this;throw new Error('CodeGen: not in block "'.concat(ae?"".concat(me.kind,"/").concat(ae.kind):me.kind,'"'))}},{key:"_elseNode",value:function(me){var ae=this._currNode;if(!(ae instanceof C))throw new Error('CodeGen: "else" without "if"');return this._currNode=ae.else=me,this}},{key:"_root",get:function(){return this._nodes[0]}},{key:"_currNode",get:function(){var me=this._nodes;return me[me.length-1]},set:function(me){var ae=this._nodes;ae[ae.length-1]=me}}]),Z}();function pe(Z,me){for(var ae in me)Z[ae]=(Z[ae]||0)+(me[ae]||0);return Z}function De(Z,me){return me instanceof n._CodeOrName?pe(Z,me.names):Z}function ie(Z,me,ae){return Z instanceof n.Name?Te(Z):(Oe=Z)instanceof n._Code&&Oe._items.some(function(Ze){return Ze instanceof n.Name&&1===me[Ze.str]&&void 0!==ae[Ze.str]})?new n._Code(Z._items.reduce(function(Oe,Ze){return Ze instanceof n.Name&&(Ze=Te(Ze)),Ze instanceof n._Code?Oe.push.apply(Oe,Ti(Ze._items)):Oe.push(Ze),Oe},[])):Z;var Oe;function Te(Oe){var Ze=ae[Oe.str];return void 0===Ze||1!==me[Oe.str]?Oe:(delete me[Oe.str],Ze)}}function ge(Z,me){for(var ae in me)Z[ae]=(Z[ae]||0)-(me[ae]||0)}function we(Z){return"boolean"==typeof Z||"number"==typeof Z||null===Z?!Z:(0,n._)(WG||(WG=Je(["!",""])),Q(Z))}t.CodeGen=ue,t.not=we;var le=z(t.operators.AND);t.and=function(){for(var Z=arguments.length,me=new Array(Z),ae=0;ae1&&void 0!==arguments[1]?arguments[1]:f.schema;if(f.opts.strictSchema&&"boolean"!=typeof p){var C=f.self.RULES.keywords;for(var k in p)C[k]||d(f,'unknown keyword: "'.concat(k,'"'))}}function r(f,p){if("boolean"==typeof f)return!f;for(var m in f)if(p[m])return!0;return!1}function o(f){return"number"==typeof f?"".concat(f):f.replace(/~/g,"~0").replace(/\//g,"~1")}function s(f){return f.replace(/~1/g,"/").replace(/~0/g,"~")}function a(f){var p=f.mergeNames,m=f.mergeToName,w=f.mergeValues,C=f.resultToName;return function(k,E,L,B){var G=void 0===L?E:L instanceof n.Name?(E instanceof n.Name?p(k,E,L):m(k,E,L),L):E instanceof n.Name?(m(k,L,E),E):w(E,L);return B!==n.Name||G instanceof n.Name?G:C(k,G)}}function l(f,p){if(!0===p)return f.var("props",!0);var m=f.var("props",(0,n._)(sq||(sq=Je(["{}"]))));return void 0!==p&&c(f,m,p),m}function c(f,p,m){Object.keys(m).forEach(function(w){return f.assign((0,n._)(aq||(aq=Je(["","",""])),p,(0,n.getProperty)(w)),!0)})}t.toHash=function(f){var p,m={},w=ot(f);try{for(w.s();!(p=w.n()).done;)m[p.value]=!0}catch(C){w.e(C)}finally{w.f()}return m},t.alwaysValidSchema=function(f,p){return"boolean"==typeof p?p:0===Object.keys(p).length||(i(f,p),!r(p,f.self.RULES.all))},t.checkUnknownRules=i,t.schemaHasRules=r,t.schemaHasRulesButRef=function(f,p){if("boolean"==typeof f)return!f;for(var m in f)if("$ref"!==m&&p.all[m])return!0;return!1},t.schemaRefOrVal=function(f,p,m,w){var C=f.topSchemaRef,k=f.schemaPath;if(!w){if("number"==typeof p||"boolean"==typeof p)return p;if("string"==typeof p)return(0,n._)(XG||(XG=Je(["",""])),p)}return(0,n._)(YG||(YG=Je(["","","",""])),C,k,(0,n.getProperty)(m))},t.unescapeFragment=function(f){return s(decodeURIComponent(f))},t.escapeFragment=function(f){return encodeURIComponent(o(f))},t.escapeJsonPointer=o,t.unescapeJsonPointer=s,t.eachItem=function(f,p){if(Array.isArray(f)){var m,w=ot(f);try{for(w.s();!(m=w.n()).done;)p(m.value)}catch(C){w.e(C)}finally{w.f()}}else p(f)},t.mergeEvaluated={props:a({mergeNames:function(f,p,m){return f.if((0,n._)(KG||(KG=Je([""," !== true && "," !== undefined"])),m,p),function(){f.if((0,n._)(JG||(JG=Je([""," === true"])),p),function(){return f.assign(m,!0)},function(){return f.assign(m,(0,n._)(QG||(QG=Je([""," || {}"])),m)).code((0,n._)(ZG||(ZG=Je(["Object.assign(",", ",")"])),m,p))})})},mergeToName:function(f,p,m){return f.if((0,n._)(eq||(eq=Je([""," !== true"])),m),function(){!0===p?f.assign(m,!0):(f.assign(m,(0,n._)(tq||(tq=Je([""," || {}"])),m)),c(f,m,p))})},mergeValues:function(f,p){return!0===f||_t(_t({},f),p)},resultToName:l}),items:a({mergeNames:function(f,p,m){return f.if((0,n._)(nq||(nq=Je([""," !== true && "," !== undefined"])),m,p),function(){return f.assign(m,(0,n._)(iq||(iq=Je([""," === true ? true : "," > "," ? "," : ",""])),p,m,p,m,p))})},mergeToName:function(f,p,m){return f.if((0,n._)(rq||(rq=Je([""," !== true"])),m),function(){return f.assign(m,!0===p||(0,n._)(oq||(oq=Je([""," > "," ? "," : ",""])),m,p,m,p))})},mergeValues:function(f,p){return!0===f||Math.max(f,p)},resultToName:function(f,p){return f.var("items",p)}})},t.evaluatedPropsToName=l,t.setEvaluated=c;var u,f,h={};function d(f,p){var m=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.opts.strictSchema;if(m){if(p="strict mode: ".concat(p),!0===m)throw new Error(p);f.self.logger.warn(p)}}t.useFunc=function(f,p){return f.scopeValue("func",{ref:p,code:h[p.code]||(h[p.code]=new e._Code(p.code))})},(f=u=t.Type||(t.Type={}))[f.Num=0]="Num",f[f.Str=1]="Str",t.getErrorPath=function(f,p,m){if(f instanceof n.Name){var w=p===u.Num;return(0,n._)(m?w?lq||(lq=Je(['"[" + ',' + "]"'])):cq||(cq=Je(['"[\'" + ',' + "\']"'])):w?uq||(uq=Je(['"/" + ',""])):hq||(hq=Je(['"/" + ','.replace(/~/g, "~0").replace(/\\//g, "~1")'],['"/" + ','.replace(/~/g, "~0").replace(/\\\\//g, "~1")'])),f)}return m?(0,n.getProperty)(f).toString():"/"+o(f)},t.checkStrictMode=d}(po);var nge,ige,rge,kD={};function kp(){if(nge)return kD;nge=1,Object.defineProperty(kD,"__esModule",{value:!0});var t=Gr(),n={data:new t.Name("data"),valCxt:new t.Name("valCxt"),instancePath:new t.Name("instancePath"),parentData:new t.Name("parentData"),parentDataProperty:new t.Name("parentDataProperty"),rootData:new t.Name("rootData"),dynamicAnchors:new t.Name("dynamicAnchors"),vErrors:new t.Name("vErrors"),errors:new t.Name("errors"),this:new t.Name("this"),self:new t.Name("self"),scope:new t.Name("scope"),json:new t.Name("json"),jsonPos:new t.Name("jsonPos"),jsonLen:new t.Name("jsonLen"),jsonPart:new t.Name("jsonPart")};return kD.default=n,kD}function DD(){return ige||(ige=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;var n=Gr(),e=po,i=kp();function r(h,d){var f=h.const("err",d);h.if((0,n._)(kq||(kq=Je([""," === null"])),i.default.vErrors),function(){return h.assign(i.default.vErrors,(0,n._)(Dq||(Dq=Je(["[","]"])),f))},(0,n._)(Tq||(Tq=Je(["",".push(",")"])),i.default.vErrors,f)),h.code((0,n._)(Aq||(Aq=Je(["","++"])),i.default.errors))}function o(h,d){var f=h.gen,p=h.validateName;h.schemaEnv.$async?f.throw((0,n._)(Eq||(Eq=Je(["new ","(",")"])),h.ValidationError,d)):(f.assign((0,n._)(Mq||(Mq=Je(["",".errors"])),p),d),f.return(!1))}t.keywordError={message:function(h){var d=h.keyword;return(0,n.str)(dq||(dq=Je(['must pass "','" keyword validation'])),d)}},t.keyword$DataError={message:function(h){var d=h.keyword,f=h.schemaType;return f?(0,n.str)(fq||(fq=Je(['"','" keyword must be '," ($data)"])),d,f):(0,n.str)(pq||(pq=Je(['"','" keyword is invalid ($data)'])),d)}},t.reportError=function(h){var p=arguments.length>3?arguments[3]:void 0,m=h.it,w=m.gen,C=m.compositeRule,k=m.allErrors,E=a(h,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.keywordError,arguments.length>2?arguments[2]:void 0);p??(C||k)?r(w,E):o(m,(0,n._)(gq||(gq=Je(["[","]"])),E))},t.reportExtraError=function(h){var p=h.it,w=p.compositeRule,C=p.allErrors;r(p.gen,a(h,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.keywordError,arguments.length>2?arguments[2]:void 0)),w||C||o(p,i.default.vErrors)},t.resetErrorsCount=function(h,d){h.assign(i.default.errors,d),h.if((0,n._)(mq||(mq=Je([""," !== null"])),i.default.vErrors),function(){return h.if(d,function(){return h.assign((0,n._)(vq||(vq=Je(["",".length"])),i.default.vErrors),d)},function(){return h.assign(i.default.vErrors,null)})})},t.extendErrors=function(h){var d=h.gen,f=h.keyword,p=h.schemaValue,m=h.data,w=h.errsCount,C=h.it;if(void 0===w)throw new Error("ajv implementation error");var k=d.name("err");d.forRange("i",w,i.default.errors,function(E){d.const(k,(0,n._)(yq||(yq=Je(["","[","]"])),i.default.vErrors,E)),d.if((0,n._)(bq||(bq=Je(["",".instancePath === undefined"])),k),function(){return d.assign((0,n._)(_q||(_q=Je(["",".instancePath"])),k),(0,n.strConcat)(i.default.instancePath,C.errorPath))}),d.assign((0,n._)(wq||(wq=Je(["",".schemaPath"])),k),(0,n.str)(xq||(xq=Je(["","/",""])),C.errSchemaPath,f)),C.opts.verbose&&(d.assign((0,n._)(Cq||(Cq=Je(["",".schema"])),k),p),d.assign((0,n._)(Sq||(Sq=Je(["",".data"])),k),m))})};var s={keyword:new n.Name("keyword"),schemaPath:new n.Name("schemaPath"),params:new n.Name("params"),propertyName:new n.Name("propertyName"),message:new n.Name("message"),schema:new n.Name("schema"),parentSchema:new n.Name("parentSchema")};function a(h,d,f){return!1===h.it.createErrors?(0,n._)(Iq||(Iq=Je(["{}"]))):function(p,m){var w=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},C=p.gen,k=[l(p.it,w),c(p,w)];return function u(h,d,f){var p=d.params,m=d.message,C=h.data,k=h.schemaValue,E=h.it,L=E.opts,B=E.propertyName,G=E.topSchemaRef,oe=E.schemaPath;f.push([s.keyword,h.keyword],[s.params,"function"==typeof p?p(h):p||(0,n._)(Nq||(Nq=Je(["{}"])))]),L.messages&&f.push([s.message,"function"==typeof m?m(h):m]),L.verbose&&f.push([s.schema,k],[s.parentSchema,(0,n._)(Rq||(Rq=Je(["","",""])),G,oe)],[i.default.data,C]),B&&f.push([s.propertyName,B])}(p,m,k),C.object.apply(C,k)}(h,d,f)}function l(h,d){var f=h.errorPath,p=d.instancePath,m=p?(0,n.str)(Fq||(Fq=Je(["","",""])),f,(0,e.getErrorPath)(p,e.Type.Str)):f;return[i.default.instancePath,(0,n.strConcat)(i.default.instancePath,m)]}function c(h,d){var f=h.keyword,p=h.it.errSchemaPath,m=d.schemaPath,w=d.parentSchema?p:(0,n.str)(Lq||(Lq=Je(["","/",""])),p,f);return m&&(w=(0,n.str)(Oq||(Oq=Je(["","",""])),w,(0,e.getErrorPath)(m,e.Type.Str))),[s.schemaPath,w]}}(Ype)),Ype}var E_={},em={};Object.defineProperty(em,"__esModule",{value:!0}),em.getRules=em.isJSONType=void 0;var lit=new Set(["string","number","integer","boolean","null","object","array"]);em.isJSONType=function(t){return"string"==typeof t&&lit.has(t)},em.getRules=function(){var t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:_t(_t({},t),{},{integer:!0,boolean:!0,null:!0}),rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}};var oge,pf={};function sge(){if(oge)return pf;function t(e,i){return i.rules.some(function(r){return n(e,r)})}function n(e,i){var r;return void 0!==e[i.keyword]||(null===(r=i.definition.implements)||void 0===r?void 0:r.some(function(o){return void 0!==e[o]}))}return oge=1,Object.defineProperty(pf,"__esModule",{value:!0}),pf.shouldUseRule=pf.shouldUseGroup=pf.schemaHasRulesForType=void 0,pf.schemaHasRulesForType=function(e,i){var o=e.self.RULES.types[i];return o&&!0!==o&&t(e.schema,o)},pf.shouldUseGroup=t,pf.shouldUseRule=n,pf}!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;var n,f,e=em,i=sge(),r=DD(),o=Gr(),s=po;function a(f){var p=Array.isArray(f)?f:f?[f]:[];if(p.every(e.isJSONType))return p;throw new Error("type must be JSONType or JSONType[]: "+p.join(","))}(f=n=t.DataType||(t.DataType={}))[f.Correct=0]="Correct",f[f.Wrong=1]="Wrong",t.getSchemaTypes=function(f){var p=a(f.type);if(p.includes("null")){if(!1===f.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!p.length&&void 0!==f.nullable)throw new Error('"nullable" cannot be used without "type"');!0===f.nullable&&p.push("null")}return p},t.getJSONTypes=a,t.coerceAndCheckDataType=function(f,p){var G,m=f.gen,w=f.data,C=f.opts,k=(G=C.coerceTypes)?p.filter(function(oe){return l.has(oe)||"array"===G&&"array"===oe}):[],E=p.length>0&&!(0===k.length&&1===p.length&&(0,i.schemaHasRulesForType)(f,p[0]));if(E){var L=u(p,w,C.strictNumbers,n.Wrong);m.if(L,function(){k.length?function(B,G,oe){var fe=B.gen,re=B.data,ce=B.opts,ue=fe.let("dataType",(0,o._)(Pq||(Pq=Je(["typeof ",""])),re)),pe=fe.let("coerced",(0,o._)(jq||(jq=Je(["undefined"]))));"array"===ce.coerceTypes&&fe.if((0,o._)(Bq||(Bq=Je([""," == 'object' && Array.isArray(",") && ",".length == 1"])),ue,re,re),function(){return fe.assign(re,(0,o._)(Hq||(Hq=Je(["","[0]"])),re)).assign(ue,(0,o._)(Vq||(Vq=Je(["typeof ",""])),re)).if(u(G,re,ce.strictNumbers),function(){return fe.assign(pe,re)})}),fe.if((0,o._)(zq||(zq=Je([""," !== undefined"])),pe));var De,ie=ot(oe);try{for(ie.s();!(De=ie.n()).done;){var ge=De.value;(l.has(ge)||"array"===ge&&"array"===ce.coerceTypes)&&we(ge)}}catch(le){ie.e(le)}finally{ie.f()}function we(le){switch(le){case"string":return void fe.elseIf((0,o._)(Wq||(Wq=Je(["",' == "number" || ',' == "boolean"'])),ue,ue)).assign(pe,(0,o._)(Gq||(Gq=Je(['"" + ',""])),re)).elseIf((0,o._)(qq||(qq=Je([""," === null"])),re)).assign(pe,(0,o._)(Xq||(Xq=Je(['""']))));case"number":return void fe.elseIf((0,o._)(Yq||(Yq=Je(["",' == "boolean" || '," === null\n || (",' == "string" && '," && "," == +",")"])),ue,re,ue,re,re,re)).assign(pe,(0,o._)(Kq||(Kq=Je(["+",""])),re));case"integer":return void fe.elseIf((0,o._)(Jq||(Jq=Je(["",' === "boolean" || '," === null\n || (",' === "string" && '," && "," == +"," && !("," % 1))"])),ue,re,ue,re,re,re,re)).assign(pe,(0,o._)(Qq||(Qq=Je(["+",""])),re));case"boolean":return void fe.elseIf((0,o._)(Zq||(Zq=Je(["",' === "false" || '," === 0 || "," === null"])),re,re,re)).assign(pe,!1).elseIf((0,o._)(eX||(eX=Je(["",' === "true" || '," === 1"])),re,re)).assign(pe,!0);case"null":return fe.elseIf((0,o._)(tX||(tX=Je(["",' === "" || '," === 0 || "," === false"])),re,re,re)),void fe.assign(pe,null);case"array":fe.elseIf((0,o._)(nX||(nX=Je(["",' === "string" || ',' === "number"\n || ',' === "boolean" || '," === null"])),ue,ue,ue,re)).assign(pe,(0,o._)(iX||(iX=Je(["[","]"])),re))}}fe.else(),d(B),fe.endIf(),fe.if((0,o._)(Uq||(Uq=Je([""," !== undefined"])),pe),function(){var le,Fe,z,Q,Z;fe.assign(re,pe),Fe=pe,Q=(le=B).parentData,Z=le.parentDataProperty,(z=le.gen).if((0,o._)(rX||(rX=Je([""," !== undefined"])),Q),function(){return z.assign((0,o._)(oX||(oX=Je(["","[","]"])),Q,Z),Fe)})})}(f,p,k):d(f)})}return E};var l=new Set(["string","number","integer","boolean","null"]);function c(f,p,m){var w,C=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.Correct,k=C===n.Correct?o.operators.EQ:o.operators.NEQ;switch(f){case"null":return(0,o._)(sX||(sX=Je([""," "," null"])),p,k);case"array":w=(0,o._)(aX||(aX=Je(["Array.isArray(",")"])),p);break;case"object":w=(0,o._)(lX||(lX=Je([""," && typeof ",' == "object" && !Array.isArray(',")"])),p,p,p);break;case"integer":w=E((0,o._)(cX||(cX=Je(["!("," % 1) && !isNaN(",")"])),p,p));break;case"number":w=E();break;default:return(0,o._)(uX||(uX=Je(["typeof "," "," ",""])),p,k,f)}return C===n.Correct?w:(0,o.not)(w);function E(){var L=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.nil;return(0,o.and)((0,o._)(hX||(hX=Je(["typeof ",' == "number"'])),p),L,m?(0,o._)(dX||(dX=Je(["isFinite(",")"])),p):o.nil)}}function u(f,p,m,w){if(1===f.length)return c(f[0],p,m,w);var C,k=(0,s.toHash)(f);if(k.array&&k.object){var E=(0,o._)(fX||(fX=Je(["typeof ",' != "object"'])),p);C=k.null?E:(0,o._)(pX||(pX=Je(["!"," || ",""])),p,E),delete k.null,delete k.array,delete k.object}else C=o.nil;for(var L in k.number&&delete k.integer,k)C=(0,o.and)(C,c(L,p,m,w));return C}t.checkDataType=c,t.checkDataTypes=u;var h={message:function(f){return"must be ".concat(f.schema)},params:function(f){var p=f.schema,m=f.schemaValue;return"string"==typeof p?(0,o._)(gX||(gX=Je(["{type: ","}"])),p):(0,o._)(mX||(mX=Je(["{type: ","}"])),m)}};function d(f){var m,w,C,k,E,p=(w=(m=f).gen,C=m.data,E=(0,s.schemaRefOrVal)(m,k=m.schema,"type"),{gen:w,keyword:"type",data:C,schema:k.type,schemaCode:E,schemaValue:E,parentSchema:k,params:{},it:m});(0,r.reportError)(p,h)}t.reportTypeError=d}(E_);var age,lge,cge,M_={},ph={},Oo={};function gh(){if(lge)return Oo;lge=1,Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.validateUnion=Oo.validateArray=Oo.usePattern=Oo.callValidateCode=Oo.schemaProperties=Oo.allSchemaProperties=Oo.noPropertyInData=Oo.propertyInData=Oo.isOwnProperty=Oo.hasPropFunc=Oo.reportMissingProp=Oo.checkMissingProp=Oo.checkReportMissingProp=void 0;var t=Gr(),n=po,e=kp(),i=po;function r(c){return c.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,t._)(CX||(CX=Je(["Object.prototype.hasOwnProperty"])))})}function o(c,u,h){return(0,t._)(SX||(SX=Je(["",".call(",", ",")"])),r(c),u,h)}function s(c,u,h,d){var f=(0,t._)(TX||(TX=Je(["",""," === undefined"])),u,(0,t.getProperty)(h));return d?(0,t.or)(f,(0,t.not)(o(c,u,h))):f}function a(c){return c?Object.keys(c).filter(function(u){return"__proto__"!==u}):[]}Oo.checkReportMissingProp=function(c,u){var h=c.gen;h.if(s(h,c.data,u,c.it.opts.ownProperties),function(){c.setParams({missingProperty:(0,t._)(wX||(wX=Je(["",""])),u)},!0),c.error()})},Oo.checkMissingProp=function(c,u,h){var d=c.gen,f=c.data,p=c.it.opts;return t.or.apply(void 0,Ti(u.map(function(m){return(0,t.and)(s(d,f,m,p.ownProperties),(0,t._)(xX||(xX=Je([""," = ",""])),h,m))})))},Oo.reportMissingProp=function(c,u){c.setParams({missingProperty:u},!0),c.error()},Oo.hasPropFunc=r,Oo.isOwnProperty=o,Oo.propertyInData=function(c,u,h,d){var f=(0,t._)(kX||(kX=Je(["",""," !== undefined"])),u,(0,t.getProperty)(h));return d?(0,t._)(DX||(DX=Je([""," && ",""])),f,o(c,u,h)):f},Oo.noPropertyInData=s,Oo.allSchemaProperties=a,Oo.schemaProperties=function(c,u){return a(u).filter(function(h){return!(0,n.alwaysValidSchema)(c,u[h])})},Oo.callValidateCode=function(c,u,h,d){var f=c.schemaCode,p=c.data,m=c.it,w=m.gen,C=m.topSchemaRef,k=m.schemaPath,E=m.errorPath,L=c.it,B=d?(0,t._)(AX||(AX=Je(["",", ",", ","",""])),f,p,C,k):p,G=[[e.default.instancePath,(0,t.strConcat)(e.default.instancePath,E)],[e.default.parentData,L.parentData],[e.default.parentDataProperty,L.parentDataProperty],[e.default.rootData,e.default.rootData]];L.opts.dynamicRef&&G.push([e.default.dynamicAnchors,e.default.dynamicAnchors]);var oe=(0,t._)(EX||(EX=Je(["",", ",""])),B,w.object.apply(w,G));return h!==t.nil?(0,t._)(MX||(MX=Je(["",".call(",", ",")"])),u,h,oe):(0,t._)(IX||(IX=Je(["","(",")"])),u,oe)};var l=(0,t._)(FX||(FX=Je(["new RegExp"])));return Oo.usePattern=function(c,u){var h=c.gen,d=c.it.opts,f=d.unicodeRegExp?"u":"",p=d.code.regExp,m=p(u,f);return h.scopeValue("pattern",{key:m.toString(),ref:m,code:(0,t._)(LX||(LX=Je(["","(",", ",")"])),"new RegExp"===p.code?l:(0,i.useFunc)(h,p),u,f)})},Oo.validateArray=function(c){var u=c.gen,h=c.data,d=c.keyword,f=c.it,p=u.name("valid");if(f.allErrors){var m=u.let("valid",!0);return w(function(){return u.assign(m,!1)}),m}return u.var(p,!0),w(function(){return u.break()}),p;function w(C){var k=u.const("len",(0,t._)(OX||(OX=Je(["",".length"])),h));u.forRange("i",0,k,function(E){c.subschema({keyword:d,dataProp:E,dataPropType:n.Type.Num},p),u.if((0,t.not)(p),C)})}},Oo.validateUnion=function(c){var u=c.gen,h=c.schema,d=c.keyword,f=c.it;if(!Array.isArray(h))throw new Error("ajv implementation error");if(!h.some(function(w){return(0,n.alwaysValidSchema)(f,w)})||f.opts.unevaluated){var p=u.let("valid",!1),m=u.name("_valid");u.block(function(){return h.forEach(function(w,C){var k=c.subschema({keyword:d,schemaProp:C,compositeRule:!0},m);u.assign(p,(0,t._)(NX||(NX=Je([""," || ",""])),p,m)),c.mergeValidEvaluated(k,m)||u.if((0,t.not)(p))})}),c.result(p,function(){return c.reset()},function(){return c.error(!0)})}},Oo}var uge,gf={},sl={},hge=function t(n,e){if(n===e)return!0;if(n&&e&&"object"==$n(n)&&"object"==$n(e)){if(n.constructor!==e.constructor)return!1;var i,r,o;if(Array.isArray(n)){if((i=n.length)!=e.length)return!1;for(r=i;0!=r--;)if(!t(n[r],e[r]))return!1;return!0}if(n.constructor===RegExp)return n.source===e.source&&n.flags===e.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===e.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===e.toString();if((i=(o=Object.keys(n)).length)!==Object.keys(e).length)return!1;for(r=i;0!=r--;)if(!Object.prototype.hasOwnProperty.call(e,o[r]))return!1;for(r=i;0!=r--;){var s=o[r];if(!t(n[s],e[s]))return!1}return!0}return n!=n&&e!=e},C$={},uit={get exports(){return C$},set exports(t){C$=t}},Dp=uit.exports=function(t,n,e){"function"==typeof n&&(e=n,n={}),TD(n,"function"==typeof(e=n.cb||e)?e:e.pre||function(){},e.post||function(){},t,"",t)};function TD(t,n,e,i,r,o,s,a,l,c){if(i&&"object"==$n(i)&&!Array.isArray(i)){for(var u in n(i,r,o,s,a,l,c),i){var h=i[u];if(Array.isArray(h)){if(u in Dp.arrayKeywords)for(var d=0;d1&&void 0!==arguments[1])||arguments[1];return"boolean"==typeof t||(!0===n?!S$(t):!!n&&dge(t)<=n)};var git=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function S$(t){for(var n in t){if(git.has(n))return!0;var e=t[n];if(Array.isArray(e)&&e.some(S$)||"object"==$n(e)&&S$(e))return!0}return!1}function dge(t){var n=0;for(var e in t)if("$ref"===e||(n++,!pit.has(e)&&("object"==$n(t[e])&&(0,hit.eachItem)(t[e],function(i){return n+=dge(i)}),n===1/0)))return 1/0;return n}function fge(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";!1!==(arguments.length>2?arguments[2]:void 0)&&(n=H0(n));var i=t.parse(n);return pge(t,i)}function pge(t,n){return t.serialize(n).split("#")[0]+"#"}sl.getFullPath=fge,sl._getFullPath=pge;var mit=/#\/?$/;function H0(t){return t?t.replace(mit,""):""}sl.normalizeId=H0,sl.resolveUrl=function(t,n,e){return e=H0(e),t.resolve(n,e)};var gge,vit=/^[a-z_][-a-z0-9._]*$/i;function AD(){if(gge)return ff;gge=1,Object.defineProperty(ff,"__esModule",{value:!0}),ff.getData=ff.KeywordCxt=ff.validateFunctionCode=void 0;var t=function(){if(rge)return Zg;rge=1,Object.defineProperty(Zg,"__esModule",{value:!0}),Zg.boolOrEmptySchema=Zg.topBoolOrEmptySchema=void 0;var ie=DD(),ge=Gr(),we=kp(),le={message:"boolean schema is false"};function Fe(z,Q){(0,ie.reportError)({gen:z.gen,keyword:"false schema",data:z.data,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:z},le,void 0,Q)}return Zg.topBoolOrEmptySchema=function(z){var Q=z.gen,Z=z.schema,me=z.validateName;!1===Z?Fe(z,!1):"object"==$n(Z)&&!0===Z.$async?Q.return(we.default.data):(Q.assign((0,ge._)($q||($q=Je(["",".errors"])),me),null),Q.return(!0))},Zg.boolOrEmptySchema=function(z,Q){var Z=z.gen;!1===z.schema?(Z.var(Q,!1),Fe(z)):Z.var(Q,!0)},Zg}(),n=E_,e=sge(),i=E_,r=function(){if(age)return M_;age=1,Object.defineProperty(M_,"__esModule",{value:!0}),M_.assignDefaults=void 0;var ie=Gr(),ge=po;function we(le,Fe,z){var Q=le.gen,Z=le.compositeRule,me=le.data,ae=le.opts;if(void 0!==z){var Te=(0,ie._)(vX||(vX=Je(["","",""])),me,(0,ie.getProperty)(Fe));if(Z)(0,ge.checkStrictMode)(le,"default is ignored for: ".concat(Te));else{var Oe=(0,ie._)(yX||(yX=Je([""," === undefined"])),Te);"empty"===ae.useDefaults&&(Oe=(0,ie._)(bX||(bX=Je([""," || "," === null || ",' === ""'])),Oe,Te,Te)),Q.if(Oe,(0,ie._)(_X||(_X=Je([""," = ",""])),Te,(0,ie.stringify)(z)))}}}return M_.assignDefaults=function(le,Fe){var z=le.schema,Q=z.properties,Z=z.items;if("object"===Fe&&Q)for(var me in Q)we(le,me,Q[me].default);else"array"===Fe&&Array.isArray(Z)&&Z.forEach(function(ae,Te){return we(le,Te,ae.default)})},M_}(),o=function cit(){if(cge)return ph;cge=1,Object.defineProperty(ph,"__esModule",{value:!0}),ph.validateKeywordUsage=ph.validSchemaType=ph.funcKeywordCode=ph.macroKeywordCode=void 0;var t=Gr(),n=kp(),e=gh(),i=DD();function r(s){var a=s.gen,l=s.data,c=s.it;a.if(c.parentData,function(){return a.assign(l,(0,t._)(VX||(VX=Je(["","[","]"])),c.parentData,c.parentDataProperty))})}function o(s,a,l){if(void 0===l)throw new Error('keyword "'.concat(a,'" failed to compile'));return s.scopeValue("keyword","function"==typeof l?{ref:l}:{ref:l,code:(0,t.stringify)(l)})}return ph.macroKeywordCode=function(s,a){var l=s.gen,c=s.keyword,d=s.it,f=a.macro.call(d.self,s.schema,s.parentSchema,d),p=o(l,c,f);!1!==d.opts.validateSchema&&d.self.validateSchema(f,!0);var m=l.name("valid");s.subschema({schema:f,schemaPath:t.nil,errSchemaPath:"".concat(d.errSchemaPath,"/").concat(c),topSchemaRef:p,compositeRule:!0},m),s.pass(m,function(){return s.error(!0)})},ph.funcKeywordCode=function(s,a){var l,c=s.gen,u=s.keyword,h=s.schema,d=s.parentSchema,f=s.$data,p=s.it;!function(L,B){if(B.async&&!L.schemaEnv.$async)throw new Error("async keyword in sync schema")}(p,a);var m=!f&&a.compile?a.compile.call(p.self,h,d,p):a.validate,w=o(c,u,m),C=c.let("valid");function k(){var L=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.async?(0,t._)(BX||(BX=Je(["await "]))):t.nil,B=p.opts.passContext?n.default.this:n.default.self,G=!("compile"in a&&!f||!1===a.schema);c.assign(C,(0,t._)(HX||(HX=Je(["","",""])),L,(0,e.callValidateCode)(s,w,B,G)),a.modifying)}function E(L){var B;c.if((0,t.not)(null!==(B=a.valid)&&void 0!==B?B:C),L)}s.block$data(C,function(){if(!1===a.errors)k(),a.modifying&&r(s),E(function(){return s.error()});else{var L=a.async?(G=c.let("ruleErrs",null),c.try(function(){return k((0,t._)(RX||(RX=Je(["await "]))))},function(oe){return c.assign(C,!1).if((0,t._)($X||($X=Je([""," instanceof ",""])),oe,p.ValidationError),function(){return c.assign(G,(0,t._)(PX||(PX=Je(["",".errors"])),oe))},function(){return c.throw(oe)})}),G):(B=(0,t._)(jX||(jX=Je(["",".errors"])),w),c.assign(B,null),k(t.nil),B);a.modifying&&r(s),E(function(){return function(G,oe){var fe=G.gen;fe.if((0,t._)(zX||(zX=Je(["Array.isArray(",")"])),oe),function(){fe.assign(n.default.vErrors,(0,t._)(UX||(UX=Je([""," === null ? "," : ",".concat(",")"])),n.default.vErrors,oe,n.default.vErrors,oe)).assign(n.default.errors,(0,t._)(WX||(WX=Je(["",".length"])),n.default.vErrors)),(0,i.extendErrors)(G)},function(){return G.error()})}(s,L)})}var G,B}),s.ok(null!==(l=a.valid)&&void 0!==l?l:C)},ph.validSchemaType=function(s,a){var l=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!a.length||a.some(function(c){return"array"===c?Array.isArray(s):"object"===c?s&&"object"==$n(s)&&!Array.isArray(s):$n(s)==c||l&&void 0===s})},ph.validateKeywordUsage=function(s,a,l){var c=s.schema,u=s.opts,h=s.self,d=s.errSchemaPath;if(Array.isArray(a.keyword)?!a.keyword.includes(l):a.keyword!==l)throw new Error("ajv implementation error");var f=a.dependencies;if(f?.some(function(m){return!Object.prototype.hasOwnProperty.call(c,m)}))throw new Error("parent schema must have dependencies of ".concat(l,": ").concat(f.join(",")));if(a.validateSchema&&!a.validateSchema(c[l])){var p='keyword "'.concat(l,'" value is invalid at path "').concat(d,'": ')+h.errorsText(a.validateSchema.errors);if("log"!==u.validateSchema)throw new Error(p);h.logger.error(p)}},ph}(),s=function(){if(uge)return gf;uge=1,Object.defineProperty(gf,"__esModule",{value:!0}),gf.extendSubschemaMode=gf.extendSubschemaData=gf.getSubschema=void 0;var ie=Gr(),ge=po;return gf.getSubschema=function(we,le){var Fe=le.keyword,z=le.schemaProp,Q=le.schema,Z=le.schemaPath,me=le.errSchemaPath,ae=le.topSchemaRef;if(void 0!==Fe&&void 0!==Q)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==Fe){var Te=we.schema[Fe];return void 0===z?{schema:Te,schemaPath:(0,ie._)(GX||(GX=Je(["","",""])),we.schemaPath,(0,ie.getProperty)(Fe)),errSchemaPath:"".concat(we.errSchemaPath,"/").concat(Fe)}:{schema:Te[z],schemaPath:(0,ie._)(qX||(qX=Je(["","","",""])),we.schemaPath,(0,ie.getProperty)(Fe),(0,ie.getProperty)(z)),errSchemaPath:"".concat(we.errSchemaPath,"/").concat(Fe,"/").concat((0,ge.escapeFragment)(z))}}if(void 0!==Q){if(void 0===Z||void 0===me||void 0===ae)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:Q,schemaPath:Z,topSchemaRef:ae,errSchemaPath:me}}throw new Error('either "keyword" or "schema" must be passed')},gf.extendSubschemaData=function(we,le,Fe){var z=Fe.dataProp,Q=Fe.dataPropType,Z=Fe.data,me=Fe.dataTypes,ae=Fe.propertyName;if(void 0!==Z&&void 0!==z)throw new Error('both "data" and "dataProp" passed, only one allowed');var Te=le.gen;if(void 0!==z){var Oe=le.errorPath,Ze=le.dataPathArr,Ve=le.opts;wt(Te.let("data",(0,ie._)(XX||(XX=Je(["","",""])),le.data,(0,ie.getProperty)(z)),!0)),we.errorPath=(0,ie.str)(YX||(YX=Je(["","",""])),Oe,(0,ge.getErrorPath)(z,Q,Ve.jsPropertySyntax)),we.parentDataProperty=(0,ie._)(KX||(KX=Je(["",""])),z),we.dataPathArr=[].concat(Ti(Ze),[we.parentDataProperty])}function wt(ct){we.data=ct,we.dataLevel=le.dataLevel+1,we.dataTypes=[],le.definedProperties=new Set,we.parentData=le.data,we.dataNames=[].concat(Ti(le.dataNames),[ct])}void 0!==Z&&(wt(Z instanceof ie.Name?Z:Te.let("data",Z,!0)),void 0!==ae&&(we.propertyName=ae)),me&&(we.dataTypes=me)},gf.extendSubschemaMode=function(we,le){var Fe=le.jtdDiscriminator,z=le.jtdMetadata,Q=le.compositeRule,Z=le.createErrors,me=le.allErrors;void 0!==Q&&(we.compositeRule=Q),void 0!==Z&&(we.createErrors=Z),void 0!==me&&(we.allErrors=me),we.jtdDiscriminator=Fe,we.jtdMetadata=z},gf}(),a=Gr(),l=kp(),c=sl,u=po,h=DD();function d(ie,ge){var Z,we=ie.gen,le=ie.validateName,Fe=ie.schema,z=ie.schemaEnv,Q=ie.opts;Q.code.es5?we.func(le,(0,a._)(JX||(JX=Je(["",", ",""])),l.default.data,l.default.valCxt),z.$async,function(){var Z,me;we.code((0,a._)(QX||(QX=Je(['"use strict"; ',""])),f(Fe,Q))),me=Q,(Z=we).if(l.default.valCxt,function(){Z.var(l.default.instancePath,(0,a._)(nY||(nY=Je(["",".",""])),l.default.valCxt,l.default.instancePath)),Z.var(l.default.parentData,(0,a._)(iY||(iY=Je(["",".",""])),l.default.valCxt,l.default.parentData)),Z.var(l.default.parentDataProperty,(0,a._)(rY||(rY=Je(["",".",""])),l.default.valCxt,l.default.parentDataProperty)),Z.var(l.default.rootData,(0,a._)(oY||(oY=Je(["",".",""])),l.default.valCxt,l.default.rootData)),me.dynamicRef&&Z.var(l.default.dynamicAnchors,(0,a._)(sY||(sY=Je(["",".",""])),l.default.valCxt,l.default.dynamicAnchors))},function(){Z.var(l.default.instancePath,(0,a._)(aY||(aY=Je(['""'])))),Z.var(l.default.parentData,(0,a._)(lY||(lY=Je(["undefined"])))),Z.var(l.default.parentDataProperty,(0,a._)(cY||(cY=Je(["undefined"])))),Z.var(l.default.rootData,l.default.data),me.dynamicRef&&Z.var(l.default.dynamicAnchors,(0,a._)(uY||(uY=Je(["{}"]))))}),we.code(ge)}):we.func(le,(0,a._)(ZX||(ZX=Je(["",", ",""])),l.default.data,(Z=Q,(0,a._)(eY||(eY=Je(["{",'="", ',", ",", ","=","","}={}"])),l.default.instancePath,l.default.parentData,l.default.parentDataProperty,l.default.rootData,l.default.data,Z.dynamicRef?(0,a._)(tY||(tY=Je([", ","={}"])),l.default.dynamicAnchors):a.nil))),z.$async,function(){return we.code(f(Fe,Q)).code(ge)})}function f(ie,ge){var we="object"==$n(ie)&&ie[ge.schemaId];return we&&(ge.code.source||ge.code.process)?(0,a._)(yY||(yY=Je(["/*# sourceURL="," */"])),we):a.nil}function m(ie){var ge=ie.schema,we=ie.self;if("boolean"==typeof ge)return!ge;for(var le in ge)if(we.RULES.all[le])return!0;return!1}function w(ie){return"boolean"!=typeof ie.schema}function C(ie){var ge,we,le,z;(0,u.checkUnknownRules)(ie),le=(ge=ie).errSchemaPath,z=ge.self,(we=ge.schema).$ref&&ge.opts.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(we,z.RULES)&&z.logger.warn('$ref: keywords ignored in schema at path "'.concat(le,'"'))}function k(ie,ge){if(ie.opts.jtd)return L(ie,[],!1,ge);var we=(0,n.getSchemaTypes)(ie.schema);L(ie,we,!(0,n.coerceAndCheckDataType)(ie,we),ge)}function E(ie){var ge=ie.gen,we=ie.schemaEnv,Fe=ie.errSchemaPath,z=ie.opts,Q=ie.schema.$comment;if(!0===z.$comment)ge.code((0,a._)(_Y||(_Y=Je(["",".logger.log(",")"])),l.default.self,Q));else if("function"==typeof z.$comment){var Z=(0,a.str)(wY||(wY=Je(["","/$comment"])),Fe),me=ge.scopeValue("root",{ref:we.root});ge.code((0,a._)(xY||(xY=Je(["",".opts.$comment(",", ",", ",".schema)"])),l.default.self,Q,Z,me))}}function L(ie,ge,we,le){var Oe,Ze,Ve,wt,Fe=ie.gen,z=ie.schema,Q=ie.data,Z=ie.allErrors,me=ie.opts,ae=ie.self.RULES;function Te(Oe){(0,e.shouldUseGroup)(z,Oe)&&(Oe.type?(Fe.if((0,i.checkDataType)(Oe.type,Q,me.strictNumbers)),B(ie,Oe),1===ge.length&&ge[0]===Oe.type&&we&&(Fe.else(),(0,i.reportTypeError)(ie)),Fe.endIf()):B(ie,Oe),Z||Fe.if((0,a._)(EY||(EY=Je([""," === ",""])),l.default.errors,le||0)))}!z.$ref||!me.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(z,ae)?(me.jtd||(Ze=ge,(Oe=ie).schemaEnv.meta||!Oe.opts.strictTypes||(function(Ve,wt){if(wt.length){if(!Ve.dataTypes.length)return void(Ve.dataTypes=wt);wt.forEach(function(ct){oe(Ve.dataTypes,ct)||fe(Ve,'type "'.concat(ct,'" not allowed by context "').concat(Ve.dataTypes.join(","),'"'))}),function(ct,Ct){var se,Se=[],ke=ot(ct.dataTypes);try{for(ke.s();!(se=ke.n()).done;){var Qe=se.value;oe(Ct,Qe)?Se.push(Qe):Ct.includes("integer")&&"number"===Qe&&Se.push("integer")}}catch(gt){ke.e(gt)}finally{ke.f()}ct.dataTypes=Se}(Ve,wt)}}(Oe,Ze),Oe.opts.allowUnionTypes||(Ve=Oe,(wt=Ze).length>1&&(2!==wt.length||!wt.includes("null"))&&fe(Ve,"use allowUnionTypes to allow union type keyword")),function(Ve,wt){var ct=Ve.self.RULES.all;for(var Ct in ct){var se=ct[Ct];if("object"==$n(se)&&(0,e.shouldUseRule)(Ve.schema,se)){var Se=se.definition.type;Se.length&&!Se.some(function(ke){return G(wt,ke)})&&fe(Ve,'missing type "'.concat(Se.join(","),'" for keyword "').concat(Ct,'"'))}}}(Oe,Oe.dataTypes))),Fe.block(function(){var Oe,Ze=ot(ae.rules);try{for(Ze.s();!(Oe=Ze.n()).done;)Te(Oe.value)}catch(Ve){Ze.e(Ve)}finally{Ze.f()}Te(ae.post)})):Fe.block(function(){return ce(ie,"$ref",ae.all.$ref.definition)})}function B(ie,ge){var we=ie.gen,le=ie.schema;ie.opts.useDefaults&&(0,r.assignDefaults)(ie,ge.type),we.block(function(){var Fe,z=ot(ge.rules);try{for(z.s();!(Fe=z.n()).done;){var Q=Fe.value;(0,e.shouldUseRule)(le,Q)&&ce(ie,Q.keyword,Q.definition,ge.type)}}catch(Z){z.e(Z)}finally{z.f()}})}function G(ie,ge){return ie.includes(ge)||"number"===ge&&ie.includes("integer")}function oe(ie,ge){return ie.includes(ge)||"integer"===ge&&ie.includes("number")}function fe(ie,ge){ge+=' at "'.concat(ie.schemaEnv.baseId+ie.errSchemaPath,'" (strictTypes)'),(0,u.checkStrictMode)(ie,ge,ie.opts.strictTypes)}ff.validateFunctionCode=function(ie){var ge,we,le,Fe;w(ie)&&(C(ie),m(ie))?(we=(ge=ie).schema,le=ge.opts,Fe=ge.gen,d(ge,function(){var z,Z;le.$comment&&we.$comment&&E(ge),Z=(z=ge).opts,void 0!==z.schema.default&&Z.useDefaults&&Z.strictSchema&&(0,u.checkStrictMode)(z,"default is ignored in the schema root"),Fe.let(l.default.vErrors,null),Fe.let(l.default.errors,0),le.unevaluated&&function(z){var Q=z.gen,Z=z.validateName;z.evaluated=Q.const("evaluated",(0,a._)(hY||(hY=Je(["",".evaluated"])),Z)),Q.if((0,a._)(dY||(dY=Je(["",".dynamicProps"])),z.evaluated),function(){return Q.assign((0,a._)(fY||(fY=Je(["",".props"])),z.evaluated),(0,a._)(pY||(pY=Je(["undefined"]))))}),Q.if((0,a._)(gY||(gY=Je(["",".dynamicItems"])),z.evaluated),function(){return Q.assign((0,a._)(mY||(mY=Je(["",".items"])),z.evaluated),(0,a._)(vY||(vY=Je(["undefined"]))))})}(ge),k(ge),function(z){var Oe,Ze,Ve,wt,ct,Q=z.gen,me=z.validateName,ae=z.ValidationError,Te=z.opts;z.schemaEnv.$async?Q.if((0,a._)(CY||(CY=Je([""," === 0"])),l.default.errors),function(){return Q.return(l.default.data)},function(){return Q.throw((0,a._)(SY||(SY=Je(["new ","(",")"])),ae,l.default.vErrors))}):(Q.assign((0,a._)(kY||(kY=Je(["",".errors"])),me),l.default.vErrors),Te.unevaluated&&(Ze=(Oe=z).gen,Ve=Oe.evaluated,ct=Oe.items,(wt=Oe.props)instanceof a.Name&&Ze.assign((0,a._)(TY||(TY=Je(["",".props"])),Ve),wt),ct instanceof a.Name&&Ze.assign((0,a._)(AY||(AY=Je(["",".items"])),Ve),ct)),Q.return((0,a._)(DY||(DY=Je([""," === 0"])),l.default.errors)))}(ge)})):d(ie,function(){return(0,t.topBoolOrEmptySchema)(ie)})};var re=function(){function ie(ge,we,le){if(qe(this,ie),(0,o.validateKeywordUsage)(ge,we,le),this.gen=ge.gen,this.allErrors=ge.allErrors,this.keyword=le,this.data=ge.data,this.schema=ge.schema[le],this.$data=we.$data&&ge.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)(ge,this.schema,le,this.$data),this.schemaType=we.schemaType,this.parentSchema=ge.schema,this.params={},this.it=ge,this.def=we,this.$data)this.schemaCode=ge.gen.const("vSchema",De(this.$data,ge));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,we.schemaType,we.allowUndefined))throw new Error("".concat(le," value must be ").concat(JSON.stringify(we.schemaType)));("code"in we?we.trackErrors:!1!==we.errors)&&(this.errsCount=ge.gen.const("_errs",l.default.errors))}return Xe(ie,[{key:"result",value:function(ge,we,le){this.failResult((0,a.not)(ge),we,le)}},{key:"failResult",value:function(ge,we,le){this.gen.if(ge),le?le():this.error(),we?(this.gen.else(),we(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}},{key:"pass",value:function(ge,we){this.failResult((0,a.not)(ge),void 0,we)}},{key:"fail",value:function(ge){if(void 0===ge)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(ge),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}},{key:"fail$data",value:function(ge){if(!this.$data)return this.fail(ge);var we=this.schemaCode;this.fail((0,a._)(MY||(MY=Je([""," !== undefined && (",")"])),we,(0,a.or)(this.invalid$data(),ge)))}},{key:"error",value:function(ge,we,le){if(we)return this.setParams(we),this._error(ge,le),void this.setParams({});this._error(ge,le)}},{key:"_error",value:function(ge,we){(ge?h.reportExtraError:h.reportError)(this,this.def.error,we)}},{key:"$dataError",value:function(){(0,h.reportError)(this,this.def.$dataError||h.keyword$DataError)}},{key:"reset",value:function(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,h.resetErrorsCount)(this.gen,this.errsCount)}},{key:"ok",value:function(ge){this.allErrors||this.gen.if(ge)}},{key:"setParams",value:function(ge,we){we?Object.assign(this.params,ge):this.params=ge}},{key:"block$data",value:function(ge,we){var le=this,Fe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.nil;this.gen.block(function(){le.check$data(ge,Fe),we()})}},{key:"check$data",value:function(){var ge=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.nil,we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.nil;if(this.$data){var le=this.gen,Fe=this.schemaCode,z=this.schemaType,Q=this.def;le.if((0,a.or)((0,a._)(IY||(IY=Je([""," === undefined"])),Fe),we)),ge!==a.nil&&le.assign(ge,!0),(z.length||Q.validateSchema)&&(le.elseIf(this.invalid$data()),this.$dataError(),ge!==a.nil&&le.assign(ge,!1)),le.else()}}},{key:"invalid$data",value:function(){var ge=this.gen,we=this.schemaCode,le=this.schemaType,Fe=this.def,z=this.it;return(0,a.or)(function(){if(le.length){if(!(we instanceof a.Name))throw new Error("ajv implementation error");var Q=Array.isArray(le)?le:[le];return(0,a._)(FY||(FY=Je(["",""])),(0,i.checkDataTypes)(Q,we,z.opts.strictNumbers,i.DataType.Wrong))}return a.nil}(),function(){if(Fe.validateSchema){var Q=ge.scopeValue("validate$data",{ref:Fe.validateSchema});return(0,a._)(LY||(LY=Je(["!","(",")"])),Q,we)}return a.nil}())}},{key:"subschema",value:function(ge,we){var le=(0,s.getSubschema)(this.it,ge);(0,s.extendSubschemaData)(le,this.it,ge),(0,s.extendSubschemaMode)(le,ge);var Fe=_t(_t(_t({},this.it),le),{},{items:void 0,props:void 0});return function p(ie,ge){w(ie)&&(C(ie),m(ie))?function(we,le){var Z,me,z=we.gen;we.opts.$comment&&we.schema.$comment&&E(we),(me=(Z=we).schema[Z.opts.schemaId])&&(Z.baseId=(0,c.resolveUrl)(Z.opts.uriResolver,Z.baseId,me)),function(Z){if(Z.schema.$async&&!Z.schemaEnv.$async)throw new Error("async schema in sync schema")}(we);var Q=z.const("_errs",l.default.errors);k(we,Q),z.var(le,(0,a._)(bY||(bY=Je([""," === ",""])),Q,l.default.errors))}(ie,ge):(0,t.boolOrEmptySchema)(ie,ge)}(Fe,we),Fe}},{key:"mergeEvaluated",value:function(ge,we){var le=this.it,Fe=this.gen;le.opts.unevaluated&&(!0!==le.props&&void 0!==ge.props&&(le.props=u.mergeEvaluated.props(Fe,ge.props,le.props,we)),!0!==le.items&&void 0!==ge.items&&(le.items=u.mergeEvaluated.items(Fe,ge.items,le.items,we)))}},{key:"mergeValidEvaluated",value:function(ge,we){var le=this,Fe=this.it;if(Fe.opts.unevaluated&&(!0!==Fe.props||!0!==Fe.items))return this.gen.if(we,function(){return le.mergeEvaluated(ge,a.Name)}),!0}}]),ie}();function ce(ie,ge,we,le){var Fe=new re(ie,we,ge);"code"in we?we.code(Fe,le):Fe.$data&&we.validate?(0,o.funcKeywordCode)(Fe,we):"macro"in we?(0,o.macroKeywordCode)(Fe,we):(we.compile||we.validate)&&(0,o.funcKeywordCode)(Fe,we)}ff.KeywordCxt=re;var ue=/^\/(?:[^~]|~0|~1)*$/,pe=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function De(ie,ge){var we,le,Fe=ge.dataLevel,z=ge.dataNames,Q=ge.dataPathArr;if(""===ie)return l.default.rootData;if("/"===ie[0]){if(!ue.test(ie))throw new Error("Invalid JSON-pointer: ".concat(ie));we=ie,le=l.default.rootData}else{var Z=pe.exec(ie);if(!Z)throw new Error("Invalid JSON-pointer: ".concat(ie));var me=+Z[1];if("#"===(we=Z[2])){if(me>=Fe)throw new Error(Ve("property/index",me));return Q[Fe-me]}if(me>Fe)throw new Error(Ve("data",me));if(le=z[Fe-me],!we)return le}var ae,Te=le,Oe=ot(we.split("/"));try{for(Oe.s();!(ae=Oe.n()).done;){var Ze=ae.value;Ze&&(le=(0,a._)(OY||(OY=Je(["","",""])),le,(0,a.getProperty)((0,u.unescapeJsonPointer)(Ze))),Te=(0,a._)(NY||(NY=Je([""," && ",""])),Te,le))}}catch(wt){Oe.e(wt)}finally{Oe.f()}return Te;function Ve(wt,ct){return"Cannot access ".concat(wt," ").concat(ct," levels up, current level is ").concat(Fe)}}return ff.getData=De,ff}sl.getSchemaRefs=function(t,n){var e=this;if("boolean"==typeof t)return{};var i=this.opts,r=i.schemaId,o=i.uriResolver,s=H0(t[r]||n),a={"":s},l=fge(o,s,!1),c={},u=new Set;return fit(t,{allKeys:!0},function(f,p,m,w){if(void 0!==w){var C=l+p,k=a[w];"string"==typeof f[r]&&(k=E.call(e,f[r])),L.call(e,f.$anchor),L.call(e,f.$dynamicAnchor),a[p]=k}function E(B){if(B=H0(k?(0,this.opts.uriResolver.resolve)(k,B):B),u.has(B))throw d(B);u.add(B);var oe=this.refs[B];return"string"==typeof oe&&(oe=this.refs[oe]),"object"==$n(oe)?h(f,oe.schema,B):B!==H0(C)&&("#"===B[0]?(h(f,c[B],B),c[B]=f):this.refs[B]=C),B}function L(B){if("string"==typeof B){if(!vit.test(B))throw new Error('invalid anchor "'.concat(B,'"'));E.call(this,"#".concat(B))}}}),c;function h(f,p,m){if(void 0!==p&&!dit(f,p))throw d(m)}function d(f){return new Error('reference "'.concat(f,'" resolves to more than one schema'))}};var mge,ED={};function k$(){if(mge)return ED;mge=1,Object.defineProperty(ED,"__esModule",{value:!0});var t=function(n){Wt(i,sb(Error));var e=Gt(i);function i(r){var o;return qe(this,i),(o=e.call(this,"validation failed")).errors=r,o.ajv=o.validation=!0,o}return Xe(i)}();return ED.default=t,ED}var vge,MD={};function D$(){if(vge)return MD;vge=1,Object.defineProperty(MD,"__esModule",{value:!0});var t=sl,n=function(e){Wt(r,sb(Error));var i=Gt(r);function r(o,s,a,l){var c;return qe(this,r),(c=i.call(this,l||"can't resolve reference ".concat(a," from id ").concat(s))).missingRef=(0,t.resolveUrl)(o,s,a),c.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(o,c.missingRef)),c}return Xe(r)}();return MD.default=n,MD}var uc={};Object.defineProperty(uc,"__esModule",{value:!0}),uc.resolveSchema=uc.getCompilingSchema=uc.resolveRef=uc.compileSchema=uc.SchemaEnv=void 0;var mh=Gr(),yit=k$(),tm=kp(),vh=sl,yge=po,bit=AD(),ID=Xe(function t(n){var e,i;qe(this,t),this.refs={},this.dynamicAnchors={},"object"==$n(n.schema)&&(i=n.schema),this.schema=n.schema,this.schemaId=n.schemaId,this.root=n.root||this,this.baseId=null!==(e=n.baseId)&&void 0!==e?e:(0,vh.normalizeId)(i?.[n.schemaId||"$id"]),this.schemaPath=n.schemaPath,this.localRefs=n.localRefs,this.meta=n.meta,this.$async=i?.$async,this.refs={}});function T$(t){var n=bge.call(this,t);if(n)return n;var e,i=(0,vh.getFullPath)(this.opts.uriResolver,t.root.baseId),r=this.opts.code,l=new mh.CodeGen(this.scope,{es5:r.es5,lines:r.lines,ownProperties:this.opts.ownProperties});t.$async&&(e=l.scopeValue("Error",{ref:yit.default,code:(0,mh._)(RY||(RY=Je(['require("ajv/dist/runtime/validation_error").default'])))}));var c=l.scopeName("validate");t.validateName=c;var u,h={gen:l,allErrors:this.opts.allErrors,data:tm.default.data,parentData:tm.default.parentData,parentDataProperty:tm.default.parentDataProperty,dataNames:[tm.default.data],dataPathArr:[mh.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:l.scopeValue("schema",!0===this.opts.code.source?{ref:t.schema,code:(0,mh.stringify)(t.schema)}:{ref:t.schema}),validateName:c,ValidationError:e,schema:t.schema,schemaEnv:t,rootId:i,baseId:t.baseId||i,schemaPath:mh.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,mh._)($Y||($Y=Je(['""']))),opts:this.opts,self:this};try{this._compilations.add(t),(0,bit.validateFunctionCode)(h),l.optimize(this.opts.code.optimize);var d=l.toString();u="".concat(l.scopeRefs(tm.default.scope),"return ").concat(d),this.opts.code.process&&(u=this.opts.code.process(u,t));var f=new Function("".concat(tm.default.self),"".concat(tm.default.scope),u)(this,this.scope.get());if(this.scope.value(c,{ref:f}),f.errors=null,f.schema=t.schema,f.schemaEnv=t,t.$async&&(f.$async=!0),!0===this.opts.code.source&&(f.source={validateName:c,validateCode:d,scopeValues:l._values}),this.opts.unevaluated){var p=h.props,m=h.items;f.evaluated={props:p instanceof mh.Name?void 0:p,items:m instanceof mh.Name?void 0:m,dynamicProps:p instanceof mh.Name,dynamicItems:m instanceof mh.Name},f.source&&(f.source.evaluated=(0,mh.stringify)(f.evaluated))}return t.validate=f,t}catch(w){throw delete t.validate,delete t.validateName,u&&this.logger.error("Error compiling schema, function code:",u),w}finally{this._compilations.delete(t)}}function _it(t){return(0,vh.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:T$.call(this,t)}function bge(t){var n,e,i,r=ot(this._compilations);try{for(r.s();!(n=r.n()).done;){var o=n.value;if((e=o).schema===(i=t).schema&&e.root===i.root&&e.baseId===i.baseId)return o}}catch(s){r.e(s)}finally{r.f()}}function wit(t,n){for(var e;"string"==typeof(e=this.refs[n]);)n=e;return e||this.schemas[n]||FD.call(this,t,n)}function FD(t,n){var e=this.opts.uriResolver.parse(n),i=(0,vh._getFullPath)(this.opts.uriResolver,e),r=(0,vh.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&i===r)return A$.call(this,e,t);var o=(0,vh.normalizeId)(i),s=this.refs[o]||this.schemas[o];if("string"==typeof s){var a=FD.call(this,t,s);return"object"!==$n(a?.schema)?void 0:A$.call(this,e,a)}if("object"===$n(s?.schema)){if(s.validate||T$.call(this,s),o===(0,vh.normalizeId)(n)){var l=s.schema,c=this.opts.schemaId,u=l[c];return u&&(r=(0,vh.resolveUrl)(this.opts.uriResolver,r,u)),new ID({schema:l,schemaId:c,root:t,baseId:r})}return A$.call(this,e,s)}}uc.SchemaEnv=ID,uc.compileSchema=T$,uc.resolveRef=function(t,n,e){var i;e=(0,vh.resolveUrl)(this.opts.uriResolver,n,e);var r=t.refs[e];if(r)return r;var o=wit.call(this,t,e);if(void 0===o){var s=null===(i=t.localRefs)||void 0===i?void 0:i[e];s&&(o=new ID({schema:s,schemaId:this.opts.schemaId,root:t,baseId:n}))}return void 0!==o?t.refs[e]=_it.call(this,o):void 0},uc.getCompilingSchema=bge,uc.resolveSchema=FD;var xit=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function A$(t,n){var e,i=n.baseId,r=n.schema,o=n.root;if("/"===(null===(e=t.fragment)||void 0===e?void 0:e[0])){var s,a,l=ot(t.fragment.slice(1).split("/"));try{for(l.s();!(s=l.n()).done;){var c=s.value;if("boolean"==typeof r)return;var u=r[(0,yge.unescapeFragment)(c)];if(void 0===u)return;var h="object"===$n(r=u)&&r[this.opts.schemaId];!xit.has(c)&&h&&(i=(0,vh.resolveUrl)(this.opts.uriResolver,i,h))}}catch(p){l.e(p)}finally{l.f()}if("boolean"!=typeof r&&r.$ref&&!(0,yge.schemaHasRulesButRef)(r,this.RULES)){var d=(0,vh.resolveUrl)(this.opts.uriResolver,i,r.$ref);a=FD.call(this,o,d)}return(a=a||new ID({schema:r,schemaId:this.opts.schemaId,root:o,baseId:i})).schema!==a.root.schema?a:void 0}}var Cit={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1},E$={},_ge={};(function(t){function n(){for(var Ue=arguments.length,lt=Array(Ue),ft=0;ft1){lt[0]=lt[0].slice(0,-1);for(var Mt=lt.length-1,ut=1;ut= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ce=Math.floor,ue=String.fromCharCode;function pe(Ue){throw new RangeError(fe[Ue])}function ie(Ue,lt){var ft=Ue.split("@"),Mt="";return ft.length>1&&(Mt=ft[0]+"@",Ue=ft[1]),Mt+function De(Ue,lt){for(var ft=[],Mt=Ue.length;Mt--;)ft[Mt]=lt(Ue[Mt]);return ft}((Ue=Ue.replace(oe,".")).split("."),lt).join(".")}function ge(Ue){for(var lt=[],ft=0,Mt=Ue.length;ft=55296&&ut<=56319&&ft>1,Ue+=ce(Ue/lt);Ue>455;Mt+=f)Ue=ce(Ue/35);return ce(Mt+36*Ue/(Ue+38))},Q=function(Ue){var lt=[],ft=Ue.length,Mt=0,ut=128,Wn=72,Si=Ue.lastIndexOf("-");Si<0&&(Si=0);for(var Li=0;Li=128&&pe("not-basic"),lt.push(Ue.charCodeAt(Li));for(var Fi=Si>0?Si+1:0;Fi=ft&&pe("invalid-input");var zr=le(Ue.charCodeAt(Fi++));(zr>=f||zr>ce((d-Mt)/xo))&&pe("overflow"),Mt+=zr*xo;var Ke=ji<=Wn?1:ji>=Wn+26?26:ji-Wn;if(zrce(d/qt)&&pe("overflow"),xo*=qt}var hn=lt.length+1;Wn=z(Mt-Yr,hn,0==Yr),ce(Mt/hn)>d-ut&&pe("overflow"),ut+=ce(Mt/hn),Mt%=hn,lt.splice(Mt++,0,ut)}return String.fromCodePoint.apply(String,lt)},Z=function(Ue){var lt=[],ft=(Ue=ge(Ue)).length,Mt=128,ut=0,Wn=72,Si=!0,Li=!1,Fi=void 0;try{for(var Yr,xo=Ue[Symbol.iterator]();!(Si=(Yr=xo.next()).done);Si=!0){var ji=Yr.value;ji<128&<.push(ue(ji))}}catch(wh){Li=!0,Fi=wh}finally{try{!Si&&xo.return&&xo.return()}finally{if(Li)throw Fi}}var zr=lt.length,Ke=zr;for(zr&<.push("-");Ke=Mt&&aice((d-ut)/_i)&&pe("overflow"),ut+=(qt-Mt)*_i,Mt=qt;var mi=!0,Ur=!1,eo=void 0;try{for(var ts,Da=Ue[Symbol.iterator]();!(mi=(ts=Da.next()).done);mi=!0){var bh=ts.value;if(bhd&&pe("overflow"),bh==Mt){for(var bu=ut,Ta=f;;Ta+=f){var Yl=Ta<=Wn?1:Ta>=Wn+26?26:Ta-Wn;if(bu>6|192).toString(16).toUpperCase()+"%"+(63<|128).toString(16).toUpperCase():"%"+(lt>>12|224).toString(16).toUpperCase()+"%"+(lt>>6&63|128).toString(16).toUpperCase()+"%"+(63<|128).toString(16).toUpperCase()}function Ve(Ue){for(var lt="",ft=0,Mt=Ue.length;ft=194&&ut<224){if(Mt-ft>=6){var Wn=parseInt(Ue.substr(ft+4,2),16);lt+=String.fromCharCode((31&ut)<<6|63&Wn)}else lt+=Ue.substr(ft,6);ft+=6}else if(ut>=224){if(Mt-ft>=9){var Si=parseInt(Ue.substr(ft+4,2),16),Li=parseInt(Ue.substr(ft+7,2),16);lt+=String.fromCharCode((15&ut)<<12|(63&Si)<<6|63&Li)}else lt+=Ue.substr(ft,9);ft+=9}else lt+=Ue.substr(ft,3),ft+=3}return lt}function wt(Ue,lt){function ft(Mt){var ut=Ve(Mt);return ut.match(lt.UNRESERVED)?ut:Mt}return Ue.scheme&&(Ue.scheme=String(Ue.scheme).replace(lt.PCT_ENCODED,ft).toLowerCase().replace(lt.NOT_SCHEME,"")),void 0!==Ue.userinfo&&(Ue.userinfo=String(Ue.userinfo).replace(lt.PCT_ENCODED,ft).replace(lt.NOT_USERINFO,Ze).replace(lt.PCT_ENCODED,r)),void 0!==Ue.host&&(Ue.host=String(Ue.host).replace(lt.PCT_ENCODED,ft).toLowerCase().replace(lt.NOT_HOST,Ze).replace(lt.PCT_ENCODED,r)),void 0!==Ue.path&&(Ue.path=String(Ue.path).replace(lt.PCT_ENCODED,ft).replace(Ue.scheme?lt.NOT_PATH:lt.NOT_PATH_NOSCHEME,Ze).replace(lt.PCT_ENCODED,r)),void 0!==Ue.query&&(Ue.query=String(Ue.query).replace(lt.PCT_ENCODED,ft).replace(lt.NOT_QUERY,Ze).replace(lt.PCT_ENCODED,r)),void 0!==Ue.fragment&&(Ue.fragment=String(Ue.fragment).replace(lt.PCT_ENCODED,ft).replace(lt.NOT_FRAGMENT,Ze).replace(lt.PCT_ENCODED,r)),Ue}function ct(Ue){return Ue.replace(/^0*(.*)/,"$1")||"0"}function Ct(Ue,lt){var ft=Ue.match(lt.IPV4ADDRESS)||[],Mt=u(ft,2)[1];return Mt?Mt.split(".").map(ct).join("."):Ue}function se(Ue,lt){var ft=Ue.match(lt.IPV6ADDRESS)||[],Mt=u(ft,3),ut=Mt[1],Wn=Mt[2];if(ut){for(var Si=ut.toLowerCase().split("::").reverse(),Li=u(Si,2),Fi=Li[0],Yr=Li[1],xo=Yr?Yr.split(":").map(ct):[],ji=Fi.split(":").map(ct),zr=lt.IPV4ADDRESS.test(ji[ji.length-1]),Ke=zr?7:8,qt=ji.length-Ke,hn=Array(Ke),kn=0;kn1){var rr=hn.slice(0,Fn.index),ai=hn.slice(Fn.index+Fn.length);ki=rr.join(":")+"::"+ai.join(":")}else ki=hn.join(":");return Wn&&(ki+="%"+Wn),ki}return Ue}var Se=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,ke=void 0==="".match(/(){0}/)[1];function Qe(Ue){var lt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ft={},Mt=!1!==lt.iri?c:l;"suffix"===lt.reference&&(Ue=(lt.scheme?lt.scheme+":":"")+"//"+Ue);var ut=Ue.match(Se);if(ut){ke?(ft.scheme=ut[1],ft.userinfo=ut[3],ft.host=ut[4],ft.port=parseInt(ut[5],10),ft.path=ut[6]||"",ft.query=ut[7],ft.fragment=ut[8],isNaN(ft.port)&&(ft.port=ut[5])):(ft.scheme=ut[1]||void 0,ft.userinfo=-1!==Ue.indexOf("@")?ut[3]:void 0,ft.host=-1!==Ue.indexOf("//")?ut[4]:void 0,ft.port=parseInt(ut[5],10),ft.path=ut[6]||"",ft.query=-1!==Ue.indexOf("?")?ut[7]:void 0,ft.fragment=-1!==Ue.indexOf("#")?ut[8]:void 0,isNaN(ft.port)&&(ft.port=Ue.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?ut[4]:void 0)),ft.host&&(ft.host=se(Ct(ft.host,Mt),Mt)),ft.reference=void 0!==ft.scheme||void 0!==ft.userinfo||void 0!==ft.host||void 0!==ft.port||ft.path||void 0!==ft.query?void 0===ft.scheme?"relative":void 0===ft.fragment?"absolute":"uri":"same-document",lt.reference&&"suffix"!==lt.reference&<.reference!==ft.reference&&(ft.error=ft.error||"URI is not a "+lt.reference+" reference.");var Wn=Oe[(lt.scheme||ft.scheme||"").toLowerCase()];if(lt.unicodeSupport||Wn&&Wn.unicodeSupport)wt(ft,Mt);else{if(ft.host&&(lt.domainHost||Wn&&Wn.domainHost))try{ft.host=Te.toASCII(ft.host.replace(Mt.PCT_ENCODED,Ve).toLowerCase())}catch(Si){ft.error=ft.error||"Host's domain name can not be converted to ASCII via punycode: "+Si}wt(ft,l)}Wn&&Wn.parse&&Wn.parse(ft,lt)}else ft.error=ft.error||"URI can not be parsed.";return ft}var rt=/^\.\.?\//,zt=/^\/\.(\/|$)/,Qt=/^\/\.\.(\/|$)/,Pn=/^\/?(?:.|\n)*?(?=\/|$)/;function Mi(Ue){for(var lt=[];Ue.length;)if(Ue.match(rt))Ue=Ue.replace(rt,"");else if(Ue.match(zt))Ue=Ue.replace(zt,"/");else if(Ue.match(Qt))Ue=Ue.replace(Qt,"/"),lt.pop();else if("."===Ue||".."===Ue)Ue="";else{var ft=Ue.match(Pn);if(!ft)throw new Error("Unexpected dot segment condition");var Mt=ft[0];Ue=Ue.slice(Mt.length),lt.push(Mt)}return lt.join("")}function Sn(Ue){var lt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ft=lt.iri?c:l,Mt=[],ut=Oe[(lt.scheme||Ue.scheme||"").toLowerCase()];if(ut&&ut.serialize&&ut.serialize(Ue,lt),Ue.host&&!ft.IPV6ADDRESS.test(Ue.host)&&(lt.domainHost||ut&&ut.domainHost))try{Ue.host=lt.iri?Te.toUnicode(Ue.host):Te.toASCII(Ue.host.replace(ft.PCT_ENCODED,Ve).toLowerCase())}catch(Li){Ue.error=Ue.error||"Host's domain name can not be converted to "+(lt.iri?"Unicode":"ASCII")+" via punycode: "+Li}wt(Ue,ft),"suffix"!==lt.reference&&Ue.scheme&&(Mt.push(Ue.scheme),Mt.push(":"));var Wn=function gt(Ue,lt){var ft=!1!==lt.iri?c:l,Mt=[];return void 0!==Ue.userinfo&&(Mt.push(Ue.userinfo),Mt.push("@")),void 0!==Ue.host&&Mt.push(se(Ct(String(Ue.host),ft),ft).replace(ft.IPV6ADDRESS,function(ut,Wn,Si){return"["+Wn+(Si?"%25"+Si:"")+"]"})),"number"!=typeof Ue.port&&"string"!=typeof Ue.port||(Mt.push(":"),Mt.push(String(Ue.port))),Mt.length?Mt.join(""):void 0}(Ue,lt);if(void 0!==Wn&&("suffix"!==lt.reference&&Mt.push("//"),Mt.push(Wn),Ue.path&&"/"!==Ue.path.charAt(0)&&Mt.push("/")),void 0!==Ue.path){var Si=Ue.path;lt.absolutePath||ut&&ut.absolutePath||(Si=Mi(Si)),void 0===Wn&&(Si=Si.replace(/^\/\//,"/%2F")),Mt.push(Si)}return void 0!==Ue.query&&(Mt.push("?"),Mt.push(Ue.query)),void 0!==Ue.fragment&&(Mt.push("#"),Mt.push(Ue.fragment)),Mt.join("")}function nr(Ue,lt){var ft=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Mt={};return arguments[3]||(Ue=Qe(Sn(Ue,ft),ft),lt=Qe(Sn(lt,ft),ft)),!(ft=ft||{}).tolerant&<.scheme?(Mt.scheme=lt.scheme,Mt.userinfo=lt.userinfo,Mt.host=lt.host,Mt.port=lt.port,Mt.path=Mi(lt.path||""),Mt.query=lt.query):(void 0!==lt.userinfo||void 0!==lt.host||void 0!==lt.port?(Mt.userinfo=lt.userinfo,Mt.host=lt.host,Mt.port=lt.port,Mt.path=Mi(lt.path||""),Mt.query=lt.query):(lt.path?("/"===lt.path.charAt(0)?Mt.path=Mi(lt.path):(Mt.path=void 0===Ue.userinfo&&void 0===Ue.host&&void 0===Ue.port||Ue.path?Ue.path?Ue.path.slice(0,Ue.path.lastIndexOf("/")+1)+lt.path:lt.path:"/"+lt.path,Mt.path=Mi(Mt.path)),Mt.query=lt.query):(Mt.path=Ue.path,Mt.query=void 0!==lt.query?lt.query:Ue.query),Mt.userinfo=Ue.userinfo,Mt.host=Ue.host,Mt.port=Ue.port),Mt.scheme=Ue.scheme),Mt.fragment=lt.fragment,Mt}function oo(Ue,lt){return Ue&&Ue.toString().replace(lt&<.iri?c.PCT_ENCODED:l.PCT_ENCODED,Ve)}var er={scheme:"http",domainHost:!0,parse:function(Ue,lt){return Ue.host||(Ue.error=Ue.error||"HTTP URIs must have a host."),Ue},serialize:function(Ue,lt){var ft="https"===String(Ue.scheme).toLowerCase();return Ue.port!==(ft?443:80)&&""!==Ue.port||(Ue.port=void 0),Ue.path||(Ue.path="/"),Ue}},vo={scheme:"https",domainHost:er.domainHost,parse:er.parse,serialize:er.serialize};function es(Ue){return"boolean"==typeof Ue.secure?Ue.secure:"wss"===String(Ue.scheme).toLowerCase()}var Zn={scheme:"ws",domainHost:!0,parse:function(Ue,lt){var ft=Ue;return ft.secure=es(ft),ft.resourceName=(ft.path||"/")+(ft.query?"?"+ft.query:""),ft.path=void 0,ft.query=void 0,ft},serialize:function(Ue,lt){if(Ue.port!==(es(Ue)?443:80)&&""!==Ue.port||(Ue.port=void 0),"boolean"==typeof Ue.secure&&(Ue.scheme=Ue.secure?"wss":"ws",Ue.secure=void 0),Ue.resourceName){var ft=Ue.resourceName.split("?"),Mt=u(ft,2),ut=Mt[0],Wn=Mt[1];Ue.path=ut&&"/"!==ut?ut:void 0,Ue.query=Wn,Ue.resourceName=void 0}return Ue.fragment=void 0,Ue}},Ut={scheme:"wss",domainHost:Zn.domainHost,parse:Zn.parse,serialize:Zn.serialize},Ii={},ir="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Xr="[0-9A-Fa-f]",Ho=e(e("%[EFef]"+Xr+"%"+Xr+Xr+"%"+Xr+Xr)+"|"+e("%[89A-Fa-f]"+Xr+"%"+Xr+Xr)+"|"+e("%"+Xr+Xr)),Pt=n("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),Ai=new RegExp(ir,"g"),Vi=new RegExp(Ho,"g"),Zr=new RegExp(n("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',Pt),"g"),yo=new RegExp(n("[^]",ir,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),Mo=yo;function da(Ue){var lt=Ve(Ue);return lt.match(Ai)?lt:Ue}var Vr={scheme:"mailto",parse:function(Ue,lt){var ft=Ue,Mt=ft.to=ft.path?ft.path.split(","):[];if(ft.path=void 0,ft.query){for(var ut=!1,Wn={},Si=ft.query.split("&"),Li=0,Fi=Si.length;Li string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},C={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},E=function(){function z(){var Q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};qe(this,z),this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,Q=this.opts=_t(_t({},Q),function k(z){var Q,Z,me,ae,Te,Oe,Ze,Ve,wt,ct,Ct,se,Se,ke,Qe,gt,rt,zt,Qt,Pn,Mi,Sn,nr,On,ro,uo=z.strict,qr=null===(Q=z.code)||void 0===Q?void 0:Q.optimize,oo=!0===qr||void 0===qr?1:qr||0,er=null!==(me=null===(Z=z.code)||void 0===Z?void 0:Z.regExp)&&void 0!==me?me:f,vo=null!==(ae=z.uriResolver)&&void 0!==ae?ae:d.default;return{strictSchema:null===(Oe=null!==(Te=z.strictSchema)&&void 0!==Te?Te:uo)||void 0===Oe||Oe,strictNumbers:null===(Ve=null!==(Ze=z.strictNumbers)&&void 0!==Ze?Ze:uo)||void 0===Ve||Ve,strictTypes:null!==(ct=null!==(wt=z.strictTypes)&&void 0!==wt?wt:uo)&&void 0!==ct?ct:"log",strictTuples:null!==(se=null!==(Ct=z.strictTuples)&&void 0!==Ct?Ct:uo)&&void 0!==se?se:"log",strictRequired:null!==(ke=null!==(Se=z.strictRequired)&&void 0!==Se?Se:uo)&&void 0!==ke&&ke,code:z.code?_t(_t({},z.code),{},{optimize:oo,regExp:er}):{optimize:oo,regExp:er},loopRequired:null!==(Qe=z.loopRequired)&&void 0!==Qe?Qe:200,loopEnum:null!==(gt=z.loopEnum)&&void 0!==gt?gt:200,meta:null===(rt=z.meta)||void 0===rt||rt,messages:null===(zt=z.messages)||void 0===zt||zt,inlineRefs:null===(Qt=z.inlineRefs)||void 0===Qt||Qt,schemaId:null!==(Pn=z.schemaId)&&void 0!==Pn?Pn:"$id",addUsedSchema:null===(Mi=z.addUsedSchema)||void 0===Mi||Mi,validateSchema:null===(Sn=z.validateSchema)||void 0===Sn||Sn,validateFormats:null===(nr=z.validateFormats)||void 0===nr||nr,unicodeRegExp:null===(On=z.unicodeRegExp)||void 0===On||On,int32range:null===(ro=z.int32range)||void 0===ro||ro,uriResolver:vo}}(Q));var Z=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:m,es5:Z.es5,lines:Z.lines}),this.logger=function ue(z){if(!1===z)return ce;if(void 0===z)return console;if(z.log&&z.warn&&z.error)return z;throw new Error("logger must implement log, warn and error methods")}(Q.logger);var Te=Q.validateFormats;Q.validateFormats=!1,this.RULES=(0,o.getRules)(),L.call(this,w,Q,"NOT SUPPORTED"),L.call(this,C,Q,"DEPRECATED","warn"),this._metaOpts=re.call(this),Q.formats&&oe.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),Q.keywords&&fe.call(this,Q.keywords),"object"==$n(Q.meta)&&this.addMetaSchema(Q.meta),G.call(this),Q.validateFormats=Te}return Xe(z,[{key:"_addVocabularies",value:function(){this.addKeyword("$async")}},{key:"_addDefaultMetaSchema",value:function(){var Q=this.opts,Z=Q.$data,me=Q.meta,ae=Q.schemaId,Te=h;"id"===ae&&((Te=_t({},h)).id=Te.$id,delete Te.$id),me&&Z&&this.addMetaSchema(Te,Te[ae],!1)}},{key:"defaultMeta",value:function(){var Q=this.opts,Z=Q.meta,me=Q.schemaId;return this.opts.defaultMeta="object"==$n(Z)?Z[me]||Z:void 0}},{key:"validate",value:function(Q,Z){var me;if("string"==typeof Q){if(!(me=this.getSchema(Q)))throw new Error('no schema with key or ref "'.concat(Q,'"'))}else me=this.compile(Q);var ae=me(Z);return"$async"in me||(this.errors=me.errors),ae}},{key:"compile",value:function(Q,Z){var me=this._addSchema(Q,Z);return me.validate||this._compileSchemaEnv(me)}},{key:"compileAsync",value:function(Q,Z){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");var me=this.opts.loadSchema;return ae.call(this,Q,Z);function ae(Qe,gt){return Te.apply(this,arguments)}function Te(){return(Te=Dr(Rn().mark(function Qe(gt,rt){var zt;return Rn().wrap(function(Qt){for(;;)switch(Qt.prev=Qt.next){case 0:return Qt.next=2,Oe.call(this,gt.$schema);case 2:return zt=this._addSchema(gt,rt),Qt.abrupt("return",zt.validate||Ve.call(this,zt));case 4:case"end":return Qt.stop()}},Qe,this)}))).apply(this,arguments)}function Oe(Qe){return Ze.apply(this,arguments)}function Ze(){return(Ze=Dr(Rn().mark(function Qe(gt){return Rn().wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:if(!gt||this.getSchema(gt)){rt.next=3;break}return rt.next=3,ae.call(this,{$ref:gt},!0);case 3:case"end":return rt.stop()}},Qe,this)}))).apply(this,arguments)}function Ve(Qe){return wt.apply(this,arguments)}function wt(){return(wt=Dr(Rn().mark(function Qe(gt){return Rn().wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:return rt.prev=0,rt.abrupt("return",this._compileSchemaEnv(gt));case 4:if(rt.prev=4,rt.t0=rt.catch(0),rt.t0 instanceof r.default){rt.next=8;break}throw rt.t0;case 8:return ct.call(this,rt.t0),rt.next=11,Ct.call(this,rt.t0.missingSchema);case 11:return rt.abrupt("return",Ve.call(this,gt));case 12:case"end":return rt.stop()}},Qe,this,[[0,4]])}))).apply(this,arguments)}function ct(Qe){var gt=Qe.missingSchema,rt=Qe.missingRef;if(this.refs[gt])throw new Error("AnySchema ".concat(gt," is loaded but ").concat(rt," cannot be resolved"))}function Ct(Qe){return se.apply(this,arguments)}function se(){return(se=Dr(Rn().mark(function Qe(gt){var rt;return Rn().wrap(function(zt){for(;;)switch(zt.prev=zt.next){case 0:return zt.next=2,Se.call(this,gt);case 2:if(rt=zt.sent,this.refs[gt]){zt.next=6;break}return zt.next=6,Oe.call(this,rt.$schema);case 6:this.refs[gt]||this.addSchema(rt,gt,Z);case 7:case"end":return zt.stop()}},Qe,this)}))).apply(this,arguments)}function Se(Qe){return ke.apply(this,arguments)}function ke(){return(ke=Dr(Rn().mark(function Qe(gt){var rt;return Rn().wrap(function(zt){for(;;)switch(zt.prev=zt.next){case 0:if(!(rt=this._loading[gt])){zt.next=3;break}return zt.abrupt("return",rt);case 3:return zt.prev=3,zt.next=6,this._loading[gt]=me(gt);case 6:return zt.abrupt("return",zt.sent);case 7:return zt.prev=7,delete this._loading[gt],zt.finish(7);case 10:case"end":return zt.stop()}},Qe,this,[[3,,7,10]])}))).apply(this,arguments)}}},{key:"addSchema",value:function(Q,Z,me){var ae,Te=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.validateSchema;if(Array.isArray(Q)){var Oe,Ze=ot(Q);try{for(Ze.s();!(Oe=Ze.n()).done;)this.addSchema(Oe.value,void 0,me,Te)}catch(ct){Ze.e(ct)}finally{Ze.f()}return this}if("object"===$n(Q)){var wt=this.opts.schemaId;if(void 0!==(ae=Q[wt])&&"string"!=typeof ae)throw new Error("schema ".concat(wt," must be string"))}return Z=(0,l.normalizeId)(Z||ae),this._checkUnique(Z),this.schemas[Z]=this._addSchema(Q,me,Z,Te,!0),this}},{key:"addMetaSchema",value:function(Q,Z){return this.addSchema(Q,Z,!0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.opts.validateSchema),this}},{key:"validateSchema",value:function(Q,Z){if("boolean"==typeof Q)return!0;var me;if(void 0!==(me=Q.$schema)&&"string"!=typeof me)throw new Error("$schema must be a string");if(!(me=me||this.opts.defaultMeta||this.defaultMeta()))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var ae=this.validate(me,Q);if(!ae&&Z){var Te="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(Te);this.logger.error(Te)}return ae}},{key:"getSchema",value:function(Q){for(var Z;"string"==typeof(Z=B.call(this,Q));)Q=Z;if(void 0===Z){var ae=new s.SchemaEnv({schema:{},schemaId:this.opts.schemaId});if(!(Z=s.resolveSchema.call(this,ae,Q)))return;this.refs[Q]=Z}return Z.validate||this._compileSchemaEnv(Z)}},{key:"removeSchema",value:function(Q){if(Q instanceof RegExp)return this._removeAllSchemas(this.schemas,Q),this._removeAllSchemas(this.refs,Q),this;switch($n(Q)){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":var Z=B.call(this,Q);return"object"==$n(Z)&&this._cache.delete(Z.schema),delete this.schemas[Q],delete this.refs[Q],this;case"object":this._cache.delete(Q);var ae=Q[this.opts.schemaId];return ae&&(ae=(0,l.normalizeId)(ae),delete this.schemas[ae],delete this.refs[ae]),this;default:throw new Error("ajv.removeSchema: invalid parameter")}}},{key:"addVocabulary",value:function(Q){var Z,me=ot(Q);try{for(me.s();!(Z=me.n()).done;)this.addKeyword(Z.value)}catch(Te){me.e(Te)}finally{me.f()}return this}},{key:"addKeyword",value:function(Q,Z){var me,ae=this;if("string"==typeof Q)me=Q,"object"==$n(Z)&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),Z.keyword=me);else{if("object"!=$n(Q)||void 0!==Z)throw new Error("invalid addKeywords parameters");if(me=(Z=Q).keyword,Array.isArray(me)&&!me.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(De.call(this,me,Z),!Z)return(0,u.eachItem)(me,function(Oe){return ie.call(ae,Oe)}),this;we.call(this,Z);var Te=_t(_t({},Z),{},{type:(0,c.getJSONTypes)(Z.type),schemaType:(0,c.getJSONTypes)(Z.schemaType)});return(0,u.eachItem)(me,0===Te.type.length?function(Oe){return ie.call(ae,Oe,Te)}:function(Oe){return Te.type.forEach(function(Ze){return ie.call(ae,Oe,Te,Ze)})}),this}},{key:"getKeyword",value:function(Q){var Z=this.RULES.all[Q];return"object"==$n(Z)?Z.definition:!!Z}},{key:"removeKeyword",value:function(Q){var Z=this.RULES;delete Z.keywords[Q],delete Z.all[Q];var me,ae=ot(Z.rules);try{for(ae.s();!(me=ae.n()).done;){var Te=me.value,Oe=Te.rules.findIndex(function(Ze){return Ze.keyword===Q});Oe>=0&&Te.rules.splice(Oe,1)}}catch(Ze){ae.e(Ze)}finally{ae.f()}return this}},{key:"addFormat",value:function(Q,Z){return"string"==typeof Z&&(Z=new RegExp(Z)),this.formats[Q]=Z,this}},{key:"errorsText",value:function(){var Q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.errors,Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},me=Z.separator,ae=void 0===me?", ":me,Te=Z.dataVar,Oe=void 0===Te?"data":Te;return Q&&0!==Q.length?Q.map(function(Ze){return"".concat(Oe).concat(Ze.instancePath," ").concat(Ze.message)}).reduce(function(Ze,Ve){return Ze+ae+Ve}):"No errors"}},{key:"$dataMetaSchema",value:function(Q,Z){var me=this.RULES.all;Q=JSON.parse(JSON.stringify(Q));var ae,Te=ot(Z);try{for(Te.s();!(ae=Te.n()).done;){var Oe,Ze=ae.value.split("/").slice(1),Ve=Q,wt=ot(Ze);try{for(wt.s();!(Oe=wt.n()).done;)Ve=Ve[Oe.value]}catch(ke){wt.e(ke)}finally{wt.f()}for(var ct in me){var Ct=me[ct];if("object"==$n(Ct)){var Se=Ve[ct];Ct.definition.$data&&Se&&(Ve[ct]=Fe(Se))}}}}catch(ke){Te.e(ke)}finally{Te.f()}return Q}},{key:"_removeAllSchemas",value:function(Q,Z){for(var me in Q){var ae=Q[me];Z&&!Z.test(me)||("string"==typeof ae?delete Q[me]:ae&&!ae.meta&&(this._cache.delete(ae.schema),delete Q[me]))}}},{key:"_addSchema",value:function(Q,Z,me){var ae,Te=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.validateSchema,Oe=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.opts.addUsedSchema,Ze=this.opts.schemaId;if("object"==$n(Q))ae=Q[Ze];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof Q)throw new Error("schema must be object or boolean")}var Ve=this._cache.get(Q);if(void 0!==Ve)return Ve;me=(0,l.normalizeId)(ae||me);var wt=l.getSchemaRefs.call(this,Q,me);return Ve=new s.SchemaEnv({schema:Q,schemaId:Ze,meta:Z,baseId:me,localRefs:wt}),this._cache.set(Ve.schema,Ve),Oe&&!me.startsWith("#")&&(me&&this._checkUnique(me),this.refs[me]=Ve),Te&&this.validateSchema(Q,!0),Ve}},{key:"_checkUnique",value:function(Q){if(this.schemas[Q]||this.refs[Q])throw new Error('schema with key or id "'.concat(Q,'" already exists'))}},{key:"_compileSchemaEnv",value:function(Q){if(Q.meta?this._compileMetaSchema(Q):s.compileSchema.call(this,Q),!Q.validate)throw new Error("ajv implementation error");return Q.validate}},{key:"_compileMetaSchema",value:function(Q){var Z=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,Q)}finally{this.opts=Z}}}]),z}();function L(z,Q,Z){var me=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"error";for(var ae in z){var Te=ae;Te in Q&&this.logger[me]("".concat(Z,": option ").concat(ae,". ").concat(z[Te]))}}function B(z){return z=(0,l.normalizeId)(z),this.schemas[z]||this.refs[z]}function G(){var z=this.opts.schemas;if(z)if(Array.isArray(z))this.addSchema(z);else for(var Q in z)this.addSchema(z[Q],Q)}function oe(){for(var z in this.opts.formats){var Q=this.opts.formats[z];Q&&this.addFormat(z,Q)}}function fe(z){if(Array.isArray(z))this.addVocabulary(z);else for(var Q in this.logger.warn("keywords option as map is deprecated, pass array"),z){var Z=z[Q];Z.keyword||(Z.keyword=Q),this.addKeyword(Z)}}function re(){var z,Q=_t({},this.opts),Z=ot(p);try{for(Z.s();!(z=Z.n()).done;)delete Q[z.value]}catch(me){Z.e(me)}finally{Z.f()}return Q}t.default=E,E.ValidationError=i.default,E.MissingRefError=r.default;var ce={log:function(){},warn:function(){},error:function(){}},pe=/^[a-z_$][a-z0-9_$:-]*$/i;function De(z,Q){var Z=this.RULES;if((0,u.eachItem)(z,function(me){if(Z.keywords[me])throw new Error("Keyword ".concat(me," is already defined"));if(!pe.test(me))throw new Error("Keyword ".concat(me," has invalid name"))}),Q&&Q.$data&&!("code"in Q)&&!("validate"in Q))throw new Error('$data keyword must have "code" or "validate" function')}function ie(z,Q,Z){var me,ae=this,Te=Q?.post;if(Z&&Te)throw new Error('keyword with "post" flag cannot have "type"');var Oe=this.RULES,Ze=Te?Oe.post:Oe.rules.find(function(wt){return wt.type===Z});if(Ze||Oe.rules.push(Ze={type:Z,rules:[]}),Oe.keywords[z]=!0,Q){var Ve={keyword:z,definition:_t(_t({},Q),{},{type:(0,c.getJSONTypes)(Q.type),schemaType:(0,c.getJSONTypes)(Q.schemaType)})};Q.before?ge.call(this,Ze,Ve,Q.before):Ze.rules.push(Ve),Oe.all[z]=Ve,null===(me=Q.implements)||void 0===me||me.forEach(function(wt){return ae.addKeyword(wt)})}}function ge(z,Q,Z){var me=z.rules.findIndex(function(ae){return ae.keyword===Z});me>=0?z.rules.splice(me,0,Q):(z.rules.push(Q),this.logger.warn("rule ".concat(Z," is not defined")))}function we(z){var Q=z.metaSchema;void 0!==Q&&(z.$data&&this.opts.$data&&(Q=Fe(Q)),z.validateSchema=this.compile(Q,!0))}var le={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Fe(z){return{anyOf:[z,le]}}}(Xpe);var M$={},I$={},F$={};Object.defineProperty(F$,"__esModule",{value:!0}),F$.default={keyword:"id",code:function(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};var nm={};Object.defineProperty(nm,"__esModule",{value:!0}),nm.callRef=nm.getValidate=void 0;var kit=D$(),xge=gh(),hc=Gr(),V0=kp(),Cge=uc,LD=po,Dit={keyword:"$ref",schemaType:"string",code:function(t){var n=t.gen,e=t.schema,i=t.it,r=i.baseId,o=i.schemaEnv,s=i.validateName,a=i.opts,l=i.self,c=o.root;if(("#"===e||"#/"===e)&&r===c.baseId)return function(){if(o===c)return OD(t,s,o,o.$async);var m=n.scopeValue("root",{ref:c});return OD(t,(0,hc._)(PY||(PY=Je(["",".validate"])),m),c,c.$async)}();var u,h,d,f,m,w,p=Cge.resolveRef.call(l,c,r,e);if(void 0===p)throw new kit.default(i.opts.uriResolver,r,e);return p instanceof Cge.SchemaEnv?(w=Sge(t,m=p),void OD(t,w,m,m.$async)):(u=p,h=n.scopeValue("schema",!0===a.code.source?{ref:u,code:(0,hc.stringify)(u)}:{ref:u}),d=n.name("valid"),f=t.subschema({schema:u,dataTypes:[],schemaPath:hc.nil,topSchemaRef:h,errSchemaPath:e},d),t.mergeEvaluated(f),void t.ok(d))}};function Sge(t,n){var e=t.gen;return n.validate?e.scopeValue("validate",{ref:n.validate}):(0,hc._)(jY||(jY=Je(["",".validate"])),e.scopeValue("wrapper",{ref:n}))}function OD(t,n,e,i){var r=t.gen,o=t.it,s=o.allErrors,a=o.schemaEnv,l=o.opts.passContext?V0.default.this:hc.nil;function c(h){var d=(0,hc._)(VY||(VY=Je(["",".errors"])),h);r.assign(V0.default.vErrors,(0,hc._)(zY||(zY=Je([""," === null ? "," : ",".concat(",")"])),V0.default.vErrors,d,V0.default.vErrors,d)),r.assign(V0.default.errors,(0,hc._)(UY||(UY=Je(["",".length"])),V0.default.vErrors))}function u(h){var d;if(o.opts.unevaluated){var f=null===(d=e?.validate)||void 0===d?void 0:d.evaluated;if(!0!==o.props)if(f&&!f.dynamicProps)void 0!==f.props&&(o.props=LD.mergeEvaluated.props(r,f.props,o.props));else{var p=r.var("props",(0,hc._)(WY||(WY=Je(["",".evaluated.props"])),h));o.props=LD.mergeEvaluated.props(r,p,o.props,hc.Name)}if(!0!==o.items)if(f&&!f.dynamicItems)void 0!==f.items&&(o.items=LD.mergeEvaluated.items(r,f.items,o.items));else{var m=r.var("items",(0,hc._)(GY||(GY=Je(["",".evaluated.items"])),h));o.items=LD.mergeEvaluated.items(r,m,o.items,hc.Name)}}}i?function(){if(!a.$async)throw new Error("async schema referenced by sync schema");var h=r.let("valid");r.try(function(){r.code((0,hc._)(BY||(BY=Je(["await ",""])),(0,xge.callValidateCode)(t,n,l))),u(n),s||r.assign(h,!0)},function(d){r.if((0,hc._)(HY||(HY=Je(["!("," instanceof ",")"])),d,o.ValidationError),function(){return r.throw(d)}),c(d),s||r.assign(h,!1)}),t.ok(h)}():t.result((0,xge.callValidateCode)(t,n,l),function(){return u(n)},function(){return c(n)})}nm.getValidate=Sge,nm.callRef=OD,nm.default=Dit,Object.defineProperty(I$,"__esModule",{value:!0}),I$.default=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",F$.default,nm.default];var L$={},O$={};Object.defineProperty(O$,"__esModule",{value:!0});var ND=Gr(),Tp=ND.operators,RD={maximum:{okStr:"<=",ok:Tp.LTE,fail:Tp.GT},minimum:{okStr:">=",ok:Tp.GTE,fail:Tp.LT},exclusiveMaximum:{okStr:"<",ok:Tp.LT,fail:Tp.GTE},exclusiveMinimum:{okStr:">",ok:Tp.GT,fail:Tp.LTE}},Eit={message:function(t){var n=t.keyword,e=t.schemaCode;return(0,ND.str)(qY||(qY=Je(["must be "," ",""])),RD[n].okStr,e)},params:function(t){var n=t.keyword,e=t.schemaCode;return(0,ND._)(XY||(XY=Je(["{comparison: ",", limit: ","}"])),RD[n].okStr,e)}},Mit={keyword:Object.keys(RD),type:"number",schemaType:"number",$data:!0,error:Eit,code:function(t){var n=t.keyword,e=t.data,i=t.schemaCode;t.fail$data((0,ND._)(YY||(YY=Je([""," "," "," || isNaN(",")"])),e,RD[n].fail,i,e))}};O$.default=Mit;var N$={};Object.defineProperty(N$,"__esModule",{value:!0});var I_=Gr(),Iit={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:function(t){var n=t.schemaCode;return(0,I_.str)(KY||(KY=Je(["must be multiple of ",""])),n)},params:function(t){var n=t.schemaCode;return(0,I_._)(JY||(JY=Je(["{multipleOf: ","}"])),n)}},code:function(t){var e=t.data,i=t.schemaCode,r=t.it.opts.multipleOfPrecision,o=t.gen.let("res"),s=r?(0,I_._)(QY||(QY=Je(["Math.abs(Math.round(",") - ",") > 1e-",""])),o,o,r):(0,I_._)(ZY||(ZY=Je([""," !== parseInt(",")"])),o,o);t.fail$data((0,I_._)(eK||(eK=Je(["("," === 0 || ("," = ","/",", ","))"])),i,o,e,i,s))}};N$.default=Iit;var R$={},$$={};function kge(t){for(var n,e=t.length,i=0,r=0;r=55296&&n<=56319&&r=a.loopRequired;if(s.allErrors?function(){if(l||o)t.block$data(O_.nil,w);else{var C,k=ot(e);try{for(k.s();!(C=k.n()).done;)(0,L_.checkReportMissingProp)(t,C.value)}catch(L){k.e(L)}finally{k.f()}}}():function(){var C=n.let("missing");if(l||o){var k=n.let("valid",!0);t.block$data(k,function(){return L=k,t.setParams({missingProperty:E=C}),void n.forOf(E,i,function(){n.assign(L,(0,L_.propertyInData)(n,r,E,a.ownProperties)),n.if((0,O_.not)(L),function(){t.error(),n.break()})},O_.nil);var E,L}),t.ok(k)}else n.if((0,L_.checkMissingProp)(t,e,C)),(0,L_.reportMissingProp)(t,C),n.else()}(),a.strictRequired){var c,u=t.parentSchema.properties,h=t.it.definedProperties,d=ot(e);try{for(d.s();!(c=d.n()).done;){var f=c.value;if(void 0===u?.[f]&&!h.has(f)){var p=s.schemaEnv.baseId+s.errSchemaPath,m='required property "'.concat(f,'" is not defined at "').concat(p,'" (strictRequired)');(0,Bit.checkStrictMode)(s,m,s.opts.strictRequired)}}}catch(C){d.e(C)}finally{d.f()}}}function w(){n.forOf("prop",i,function(C){t.setParams({missingProperty:C}),n.if((0,L_.noPropertyInData)(n,r,C,a.ownProperties),function(){return t.error()})})}}};B$.default=Hit;var H$={};Object.defineProperty(H$,"__esModule",{value:!0});var N_=Gr(),Vit={message:function(t){var e=t.schemaCode,i="maxItems"===t.keyword?"more":"fewer";return(0,N_.str)(gK||(gK=Je(["must NOT have "," than "," items"])),i,e)},params:function(t){var n=t.schemaCode;return(0,N_._)(mK||(mK=Je(["{limit: ","}"])),n)}},zit={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Vit,code:function(t){var e=t.data,i=t.schemaCode,r="maxItems"===t.keyword?N_.operators.GT:N_.operators.LT;t.fail$data((0,N_._)(vK||(vK=Je(["",".length "," ",""])),e,r,i))}};H$.default=zit;var V$={},R_={};Object.defineProperty(R_,"__esModule",{value:!0});var Dge=hge;Dge.code='require("ajv/dist/runtime/equal").default',R_.default=Dge,Object.defineProperty(V$,"__esModule",{value:!0});var z$=E_,al=Gr(),Uit=po,Wit=R_,Git={message:function(t){var n=t.params,e=n.i,i=n.j;return(0,al.str)(yK||(yK=Je(["must NOT have duplicate items (items ## "," and "," are identical)"])),i,e)},params:function(t){var n=t.params,e=n.i,i=n.j;return(0,al._)(bK||(bK=Je(["{i: ",", j: ","}"])),e,i)}},qit={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Git,code:function(t){var n=t.gen,e=t.data,o=t.parentSchema,s=t.schemaCode,a=t.it;if(t.$data||t.schema){var l=n.let("valid"),c=o.items?(0,z$.getSchemaTypes)(o.items):[];t.block$data(l,function(){var d=n.let("i",(0,al._)(wK||(wK=Je(["",".length"])),e)),f=n.let("j");t.setParams({i:d,j:f}),n.assign(l,!0),n.if((0,al._)(xK||(xK=Je([""," > 1"])),d),function(){return(c.length>0&&!c.some(function(p){return"object"===p||"array"===p})?u:h)(d,f)})},(0,al._)(_K||(_K=Je([""," === false"])),s)),t.ok(l)}function u(d,f){var p=n.name("item"),m=(0,z$.checkDataTypes)(c,p,a.opts.strictNumbers,z$.DataType.Wrong),w=n.const("indices",(0,al._)(CK||(CK=Je(["{}"]))));n.for((0,al._)(SK||(SK=Je([";","--;"])),d),function(){n.let(p,(0,al._)(kK||(kK=Je(["","[","]"])),e,d)),n.if(m,(0,al._)(DK||(DK=Je(["continue"])))),c.length>1&&n.if((0,al._)(TK||(TK=Je(["typeof ",' == "string"'])),p),(0,al._)(AK||(AK=Je(["",' += "_"'])),p)),n.if((0,al._)(EK||(EK=Je(["typeof ","[",'] == "number"'])),w,p),function(){n.assign(f,(0,al._)(MK||(MK=Je(["","[","]"])),w,p)),t.error(),n.assign(l,!1).break()}).code((0,al._)(IK||(IK=Je(["","[","] = ",""])),w,p,d))})}function h(d,f){var p=(0,Uit.useFunc)(n,Wit.default),m=n.name("outer");n.label(m).for((0,al._)(FK||(FK=Je([";","--;"])),d),function(){return n.for((0,al._)(LK||(LK=Je([""," = ","; ","--;"])),f,d,f),function(){return n.if((0,al._)(OK||(OK=Je(["","(","[","], ","[","])"])),p,e,d,e,f),function(){t.error(),n.assign(l,!1).break(m)})})})}}};V$.default=qit;var U$={};Object.defineProperty(U$,"__esModule",{value:!0});var W$=Gr(),Xit=po,Yit=R_,Kit={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:function(t){var n=t.schemaCode;return(0,W$._)(NK||(NK=Je(["{allowedValue: ","}"])),n)}},code:function(t){var n=t.gen,e=t.data,r=t.schemaCode,o=t.schema;t.$data||o&&"object"==$n(o)?t.fail$data((0,W$._)(RK||(RK=Je(["!","(",", ",")"])),(0,Xit.useFunc)(n,Yit.default),e,r)):t.fail((0,W$._)($K||($K=Je([""," !== ",""])),o,e))}};U$.default=Kit;var G$={};Object.defineProperty(G$,"__esModule",{value:!0});var $_=Gr(),Jit=po,Qit=R_,Zit={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:function(t){var n=t.schemaCode;return(0,$_._)(PK||(PK=Je(["{allowedValues: ","}"])),n)}},code:function(t){var n=t.gen,e=t.data,i=t.$data,r=t.schema,o=t.schemaCode,s=t.it;if(!i&&0===r.length)throw new Error("enum must have non-empty array");var a,l,u=function(){return a??(a=(0,Jit.useFunc)(n,Qit.default))};if(r.length>=s.opts.loopEnum||i)l=n.let("valid"),t.block$data(l,function(){n.assign(l,!1),n.forOf("v",o,function(d){return n.if((0,$_._)(jK||(jK=Je(["","(",", ",")"])),u(),e,d),function(){return n.assign(l,!0).break()})})});else{if(!Array.isArray(r))throw new Error("ajv implementation error");var h=n.const("vSchema",o);l=$_.or.apply(void 0,Ti(r.map(function(d,f){return p=h,"object"===$n(w=r[m=f])&&null!==w?(0,$_._)(BK||(BK=Je(["","(",", ","[","])"])),u(),e,p,m):(0,$_._)(HK||(HK=Je([""," === ",""])),e,w);var p,m,w})))}t.pass(l)}};G$.default=Zit,Object.defineProperty(L$,"__esModule",{value:!0}),L$.default=[O$.default,N$.default,R$.default,P$.default,j$.default,B$.default,H$.default,V$.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},U$.default,G$.default];var q$={},z0={};Object.defineProperty(z0,"__esModule",{value:!0}),z0.validateAdditionalItems=void 0;var rm=Gr(),X$=po,urt={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:function(t){var n=t.params.len;return(0,rm.str)(VK||(VK=Je(["must NOT have more than "," items"])),n)},params:function(t){var n=t.params.len;return(0,rm._)(zK||(zK=Je(["{limit: ","}"])),n)}},code:function(t){var e=t.it,i=t.parentSchema.items;Array.isArray(i)?Tge(t,i):(0,X$.checkStrictMode)(e,'"additionalItems" is ignored when "items" is not an array of schemas')}};function Tge(t,n){var e=t.gen,i=t.schema,r=t.data,o=t.keyword,s=t.it;s.items=!0;var a=e.const("len",(0,rm._)(UK||(UK=Je(["",".length"])),r));if(!1===i)t.setParams({len:n.length}),t.pass((0,rm._)(WK||(WK=Je([""," <= ",""])),a,n.length));else if("object"==$n(i)&&!(0,X$.alwaysValidSchema)(s,i)){var l=e.var("valid",(0,rm._)(GK||(GK=Je([""," <= ",""])),a,n.length));e.if((0,rm.not)(l),function(){return c=l,void e.forRange("i",n.length,a,function(u){t.subschema({keyword:o,dataProp:u,dataPropType:X$.Type.Num},c),s.allErrors||e.if((0,rm.not)(c),function(){return e.break()})});var c}),t.ok(l)}}z0.validateAdditionalItems=Tge,z0.default=urt;var Y$={},U0={};Object.defineProperty(U0,"__esModule",{value:!0}),U0.validateTuple=void 0;var Age=Gr(),PD=po,hrt=gh(),drt={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code:function(t){var n=t.schema,e=t.it;if(Array.isArray(n))return Ege(t,"additionalItems",n);e.items=!0,(0,PD.alwaysValidSchema)(e,n)||t.ok((0,hrt.validateArray)(t))}};function Ege(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.schema,i=t.gen,o=t.data,s=t.keyword,a=t.it;(function u(h){var d=a.opts,f=a.errSchemaPath,p=e.length;if(d.strictTuples&&!(p===h.minItems&&(p===h.maxItems||!1===h[n]))){var w='"'.concat(s,'" is ').concat(p,"-tuple, but minItems or maxItems/").concat(n,' are not specified or different at path "').concat(f,'"');(0,PD.checkStrictMode)(a,w,d.strictTuples)}})(t.parentSchema),a.opts.unevaluated&&e.length&&!0!==a.items&&(a.items=PD.mergeEvaluated.items(i,e.length,a.items));var l=i.name("valid"),c=i.const("len",(0,Age._)(qK||(qK=Je(["",".length"])),o));e.forEach(function(h,d){(0,PD.alwaysValidSchema)(a,h)||(i.if((0,Age._)(XK||(XK=Je([""," > ",""])),c,d),function(){return t.subschema({keyword:s,schemaProp:d,dataProp:d},l)}),t.ok(l))})}U0.validateTuple=Ege,U0.default=drt,Object.defineProperty(Y$,"__esModule",{value:!0});var frt=U0,prt={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:function(t){return(0,frt.validateTuple)(t,"items")}};Y$.default=prt;var K$={};Object.defineProperty(K$,"__esModule",{value:!0});var Mge=Gr(),grt=po,mrt=gh(),vrt=z0,yrt={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:function(t){var n=t.params.len;return(0,Mge.str)(YK||(YK=Je(["must NOT have more than "," items"])),n)},params:function(t){var n=t.params.len;return(0,Mge._)(KK||(KK=Je(["{limit: ","}"])),n)}},code:function(t){var n=t.schema,i=t.it,r=t.parentSchema.prefixItems;i.items=!0,(0,grt.alwaysValidSchema)(i,n)||(r?(0,vrt.validateAdditionalItems)(t,r):t.ok((0,mrt.validateArray)(t)))}};K$.default=yrt;var J$={};Object.defineProperty(J$,"__esModule",{value:!0});var yu=Gr(),jD=po,brt={message:function(t){var n=t.params,e=n.min,i=n.max;return void 0===i?(0,yu.str)(JK||(JK=Je(["must contain at least "," valid item(s)"])),e):(0,yu.str)(QK||(QK=Je(["must contain at least "," and no more than "," valid item(s)"])),e,i)},params:function(t){var n=t.params,e=n.min,i=n.max;return void 0===i?(0,yu._)(ZK||(ZK=Je(["{minContains: ","}"])),e):(0,yu._)(eJ||(eJ=Je(["{minContains: ",", maxContains: ","}"])),e,i)}},_rt={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:brt,code:function(t){var n,e,i=t.gen,r=t.schema,o=t.parentSchema,s=t.data,a=t.it,l=o.minContains;a.opts.next?(n=void 0===l?1:l,e=o.maxContains):n=1;var u=i.const("len",(0,yu._)(tJ||(tJ=Je(["",".length"])),s));if(t.setParams({min:n,max:e}),void 0!==e||0!==n){if(void 0!==e&&n>e)return(0,jD.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void t.fail();if((0,jD.alwaysValidSchema)(a,r)){var h=(0,yu._)(nJ||(nJ=Je([""," >= ",""])),u,n);return void 0!==e&&(h=(0,yu._)(iJ||(iJ=Je([""," && "," <= ",""])),h,u,e)),void t.pass(h)}a.items=!0;var d=i.name("valid");void 0===e&&1===n?p(d,function(){return i.if(d,function(){return i.break()})}):0===n?(i.let(d,!0),void 0!==e&&i.if((0,yu._)(rJ||(rJ=Je(["",".length > 0"])),s),f)):(i.let(d,!1),f()),t.result(d,function(){return t.reset()})}else(0,jD.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');function f(){var m=i.name("_valid"),w=i.let("count",0);p(m,function(){return i.if(m,function(){return C=w,i.code((0,yu._)(oJ||(oJ=Je(["","++"])),C)),void(void 0===e?i.if((0,yu._)(sJ||(sJ=Je([""," >= ",""])),C,n),function(){return i.assign(d,!0).break()}):(i.if((0,yu._)(aJ||(aJ=Je([""," > ",""])),C,e),function(){return i.assign(d,!1).break()}),1===n?i.assign(d,!0):i.if((0,yu._)(lJ||(lJ=Je([""," >= ",""])),C,n),function(){return i.assign(d,!0)})));var C})})}function p(m,w){i.forRange("i",0,u,function(C){t.subschema({keyword:"contains",dataProp:C,dataPropType:jD.Type.Num,compositeRule:!0},m),w()})}}};J$.default=_rt;var Ige={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;var n=Gr(),e=po,i=gh();t.error={message:function(a){var l=a.params,c=l.property,h=l.deps,d=1===l.depsCount?"property":"properties";return(0,n.str)(cJ||(cJ=Je(["must have "," "," when property "," is present"])),d,h,c)},params:function(a){var l=a.params,c=l.property,u=l.depsCount,h=l.deps,d=l.missingProperty;return(0,n._)(uJ||(uJ=Je(["{property: ",",\n missingProperty: ",",\n depsCount: ",",\n deps: ","}"])),c,d,u,h)}};var r={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code:function(a){var l=di(function(h){var d=h.schema,f={},p={};for(var m in d)"__proto__"!==m&&((Array.isArray(d[m])?f:p)[m]=d[m]);return[f,p]}(a),2),u=l[1];o(a,l[0]),s(a,u)}};function o(a){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.schema,c=a.gen,u=a.data,h=a.it;if(0!==Object.keys(l).length){var d=c.let("missing"),f=function(m){var w=l[m];if(0===w.length)return"continue";var C=(0,i.propertyInData)(c,u,m,h.opts.ownProperties);a.setParams({property:m,depsCount:w.length,deps:w.join(", ")}),h.allErrors?c.if(C,function(){var k,E=ot(w);try{for(E.s();!(k=E.n()).done;)(0,i.checkReportMissingProp)(a,k.value)}catch(B){E.e(B)}finally{E.f()}}):(c.if((0,n._)(hJ||(hJ=Je([""," && (",")"])),C,(0,i.checkMissingProp)(a,w,d))),(0,i.reportMissingProp)(a,d),c.else())};for(var p in l)f(p)}}function s(a){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.schema,c=a.gen,u=a.data,h=a.keyword,d=a.it,f=c.name("valid"),p=function(w){if((0,e.alwaysValidSchema)(d,l[w]))return"continue";c.if((0,i.propertyInData)(c,u,w,d.opts.ownProperties),function(){var C=a.subschema({keyword:h,schemaProp:w},f);a.mergeValidEvaluated(C,f)},function(){return c.var(f,!0)}),a.ok(f)};for(var m in l)p(m)}t.validatePropertyDeps=o,t.validateSchemaDeps=s,t.default=r}(Ige);var Q$={};Object.defineProperty(Q$,"__esModule",{value:!0});var Fge=Gr(),wrt=po,xrt={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:function(t){var n=t.params;return(0,Fge._)(dJ||(dJ=Je(["{propertyName: ","}"])),n.propertyName)}},code:function(t){var n=t.gen,i=t.data,r=t.it;if(!(0,wrt.alwaysValidSchema)(r,t.schema)){var o=n.name("valid");n.forIn("key",i,function(s){t.setParams({propertyName:s}),t.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},o),n.if((0,Fge.not)(o),function(){t.error(!0),r.allErrors||n.break()})}),t.ok(o)}}};Q$.default=xrt;var BD={};Object.defineProperty(BD,"__esModule",{value:!0});var HD=gh(),yh=Gr(),Crt=kp(),VD=po,Srt={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:function(t){var n=t.params;return(0,yh._)(fJ||(fJ=Je(["{additionalProperty: ","}"])),n.additionalProperty)}},code:function(t){var n=t.gen,e=t.schema,i=t.parentSchema,r=t.data,o=t.errsCount,s=t.it;if(!o)throw new Error("ajv implementation error");var a=s.allErrors,l=s.opts;if(s.props=!0,"all"===l.removeAdditional||!(0,VD.alwaysValidSchema)(s,e)){var c=(0,HD.allSchemaProperties)(i.properties),u=(0,HD.allSchemaProperties)(i.patternProperties);n.forIn("key",r,function(p){c.length||u.length?n.if(function(m){var w;if(c.length>8){var C=(0,VD.schemaRefOrVal)(s,i.properties,"properties");w=(0,HD.isOwnProperty)(n,C,m)}else w=c.length?yh.or.apply(void 0,Ti(c.map(function(k){return(0,yh._)(gJ||(gJ=Je([""," === ",""])),m,k)}))):yh.nil;return u.length&&(w=yh.or.apply(void 0,[w].concat(Ti(u.map(function(k){return(0,yh._)(mJ||(mJ=Je(["",".test(",")"])),(0,HD.usePattern)(t,k),m)}))))),(0,yh.not)(w)}(p),function(){return d(p)}):d(p)}),t.ok((0,yh._)(pJ||(pJ=Je([""," === ",""])),o,Crt.default.errors))}function h(p){n.code((0,yh._)(vJ||(vJ=Je(["delete ","[","]"])),r,p))}function d(p){if("all"===l.removeAdditional||l.removeAdditional&&!1===e)h(p);else{if(!1===e)return t.setParams({additionalProperty:p}),t.error(),void(a||n.break());if("object"==$n(e)&&!(0,VD.alwaysValidSchema)(s,e)){var m=n.name("valid");"failing"===l.removeAdditional?(f(p,m,!1),n.if((0,yh.not)(m),function(){t.reset(),h(p)})):(f(p,m),a||n.if((0,yh.not)(m),function(){return n.break()}))}}}function f(p,m,w){var C={keyword:"additionalProperties",dataProp:p,dataPropType:VD.Type.Str};!1===w&&Object.assign(C,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(C,m)}}};BD.default=Srt;var Z$={};Object.defineProperty(Z$,"__esModule",{value:!0});var krt=AD(),Lge=gh(),e4=po,Oge=BD,Drt={keyword:"properties",type:"object",schemaType:"object",code:function(t){var n=t.gen,e=t.schema,r=t.data,o=t.it;"all"===o.opts.removeAdditional&&void 0===t.parentSchema.additionalProperties&&Oge.default.code(new krt.KeywordCxt(o,Oge.default,"additionalProperties"));var s,a=(0,Lge.allSchemaProperties)(e),l=ot(a);try{for(l.s();!(s=l.n()).done;)o.definedProperties.add(s.value)}catch(C){l.e(C)}finally{l.f()}o.opts.unevaluated&&a.length&&!0!==o.props&&(o.props=e4.mergeEvaluated.props(n,(0,e4.toHash)(a),o.props));var C,u=a.filter(function(C){return!(0,e4.alwaysValidSchema)(o,e[C])});if(0!==u.length){var h,d=n.name("valid"),f=ot(u);try{for(f.s();!(h=f.n()).done;){var p=h.value;o.opts.useDefaults&&!o.compositeRule&&void 0!==e[C=p].default?w(p):(n.if((0,Lge.propertyInData)(n,r,p,o.opts.ownProperties)),w(p),o.allErrors||n.else().var(d,!0),n.endIf()),t.it.definedProperties.add(p),t.ok(d)}}catch(C){f.e(C)}finally{f.f()}}function w(C){t.subschema({keyword:"properties",schemaProp:C,dataProp:C},d)}}};Z$.default=Drt;var t4={};Object.defineProperty(t4,"__esModule",{value:!0});var Nge=gh(),zD=Gr(),Rge=po,$ge=po,Trt={keyword:"patternProperties",type:"object",schemaType:"object",code:function(t){var n=t.gen,e=t.schema,i=t.data,r=t.parentSchema,o=t.it,s=o.opts,a=(0,Nge.allSchemaProperties)(e),l=a.filter(function(p){return(0,Rge.alwaysValidSchema)(o,e[p])});if(0!==a.length&&(l.length!==a.length||o.opts.unevaluated&&!0!==o.props)){var c=s.strictSchema&&!s.allowMatchingProperties&&r.properties,u=n.name("valid");!0===o.props||o.props instanceof zD.Name||(o.props=(0,$ge.evaluatedPropsToName)(n,o.props));var h=o.props;!function(){var p,m=ot(a);try{for(m.s();!(p=m.n()).done;){var w=p.value;c&&d(w),o.allErrors?f(w):(n.var(u,!0),f(w),n.if(u))}}catch(C){m.e(C)}finally{m.f()}}()}function d(p){for(var m in c)new RegExp(p).test(m)&&(0,Rge.checkStrictMode)(o,"property ".concat(m," matches pattern ").concat(p," (use allowMatchingProperties)"))}function f(p){n.forIn("key",i,function(m){n.if((0,zD._)(yJ||(yJ=Je(["",".test(",")"])),(0,Nge.usePattern)(t,p),m),function(){var w=l.includes(p);w||t.subschema({keyword:"patternProperties",schemaProp:p,dataProp:m,dataPropType:$ge.Type.Str},u),o.opts.unevaluated&&!0!==h?n.assign((0,zD._)(bJ||(bJ=Je(["","[","]"])),h,m),!0):w||o.allErrors||n.if((0,zD.not)(u),function(){return n.break()})})})}}};t4.default=Trt;var n4={};Object.defineProperty(n4,"__esModule",{value:!0});var Art=po,Ert={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code:function(t){var n=t.gen;if((0,Art.alwaysValidSchema)(t.it,t.schema))t.fail();else{var r=n.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},r),t.failResult(r,function(){return t.reset()},function(){return t.error()})}},error:{message:"must NOT be valid"}};n4.default=Ert;var i4={};Object.defineProperty(i4,"__esModule",{value:!0});var Mrt={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:gh().validateUnion,error:{message:"must match a schema in anyOf"}};i4.default=Mrt;var r4={};Object.defineProperty(r4,"__esModule",{value:!0});var UD=Gr(),Irt=po,Frt={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:function(t){var n=t.params;return(0,UD._)(_J||(_J=Je(["{passingSchemas: ","}"])),n.passing)}},code:function(t){var n=t.gen,e=t.schema,i=t.parentSchema,r=t.it;if(!Array.isArray(e))throw new Error("ajv implementation error");if(!r.opts.discriminator||!i.discriminator){var o=e,s=n.let("valid",!1),a=n.let("passing",null),l=n.name("_valid");t.setParams({passing:a}),n.block(function(){o.forEach(function(c,u){var h;(0,Irt.alwaysValidSchema)(r,c)?n.var(l,!0):h=t.subschema({keyword:"oneOf",schemaProp:u,compositeRule:!0},l),u>0&&n.if((0,UD._)(wJ||(wJ=Je([""," && ",""])),l,s)).assign(s,!1).assign(a,(0,UD._)(xJ||(xJ=Je(["[",", ","]"])),a,u)).else(),n.if(l,function(){n.assign(s,!0),n.assign(a,u),h&&t.mergeEvaluated(h,UD.Name)})})}),t.result(s,function(){return t.reset()},function(){return t.error(!0)})}}};r4.default=Frt;var o4={};Object.defineProperty(o4,"__esModule",{value:!0});var Lrt=po,Ort={keyword:"allOf",schemaType:"array",code:function(t){var n=t.gen,e=t.schema,i=t.it;if(!Array.isArray(e))throw new Error("ajv implementation error");var r=n.name("valid");e.forEach(function(o,s){if(!(0,Lrt.alwaysValidSchema)(i,o)){var a=t.subschema({keyword:"allOf",schemaProp:s},r);t.ok(r),t.mergeEvaluated(a)}})}};o4.default=Ort;var s4={};Object.defineProperty(s4,"__esModule",{value:!0});var WD=Gr(),Pge=po,Nrt={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:function(t){var n=t.params;return(0,WD.str)(CJ||(CJ=Je(['must match "','" schema'])),n.ifClause)},params:function(t){var n=t.params;return(0,WD._)(SJ||(SJ=Je(["{failingKeyword: ","}"])),n.ifClause)}},code:function(t){var n=t.gen,e=t.parentSchema,i=t.it;void 0===e.then&&void 0===e.else&&(0,Pge.checkStrictMode)(i,'"if" without "then" and "else" is ignored');var r=jge(i,"then"),o=jge(i,"else");if(r||o){var s,a=n.let("valid",!0),l=n.name("_valid");if(s=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},l),t.mergeEvaluated(s),t.reset(),r&&o){var c=n.let("ifClause");t.setParams({ifClause:c}),n.if(l,u("then",c),u("else",c))}else r?n.if(l,u("then")):n.if((0,WD.not)(l),u("else"));t.pass(a,function(){return t.error(!0)})}function u(h,d){return function(){var f=t.subschema({keyword:h},l);n.assign(a,l),t.mergeValidEvaluated(f,a),d?n.assign(d,(0,WD._)(kJ||(kJ=Je(["",""])),h)):t.setParams({ifClause:h})}}}};function jge(t,n){var e=t.schema[n];return void 0!==e&&!(0,Pge.alwaysValidSchema)(t,e)}s4.default=Nrt;var a4={};Object.defineProperty(a4,"__esModule",{value:!0});var Rrt=po,$rt={keyword:["then","else"],schemaType:["object","boolean"],code:function(t){void 0===t.parentSchema.if&&(0,Rrt.checkStrictMode)(t.it,'"'.concat(t.keyword,'" without "if" is ignored'))}};a4.default=$rt,Object.defineProperty(q$,"__esModule",{value:!0});var Prt=z0,jrt=Y$,Brt=U0,Hrt=K$,Vrt=J$,zrt=Ige,Urt=Q$,Wrt=BD,Grt=Z$,qrt=t4,Xrt=n4,Yrt=i4,Krt=r4,Jrt=o4,Qrt=s4,Zrt=a4;q$.default=function(){var n=[Xrt.default,Yrt.default,Krt.default,Jrt.default,Qrt.default,Zrt.default,Urt.default,Wrt.default,zrt.default,Grt.default,qrt.default];return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.push(jrt.default,Hrt.default):n.push(Prt.default,Brt.default),n.push(Vrt.default),n};var l4={},c4={};Object.defineProperty(c4,"__esModule",{value:!0});var Js=Gr(),eot={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:function(t){var n=t.schemaCode;return(0,Js.str)(DJ||(DJ=Je(['must match format "','"'])),n)},params:function(t){var n=t.schemaCode;return(0,Js._)(TJ||(TJ=Je(["{format: ","}"])),n)}},code:function(t,n){var w,C,d,f,p,m,e=t.gen,i=t.data,o=t.schema,s=t.schemaCode,a=t.it,l=a.opts,c=a.errSchemaPath,u=a.schemaEnv,h=a.self;l.validateFormats&&(t.$data?(d=e.scopeValue("formats",{ref:h.formats,code:l.code.formats}),f=e.const("fDef",(0,Js._)(AJ||(AJ=Je(["","[","]"])),d,s)),p=e.let("fType"),m=e.let("format"),e.if((0,Js._)(EJ||(EJ=Je(["typeof ",' == "object" && !('," instanceof RegExp)"])),f,f),function(){return e.assign(p,(0,Js._)(MJ||(MJ=Je(["",'.type || "string"'])),f)).assign(m,(0,Js._)(IJ||(IJ=Je(["",".validate"])),f))},function(){return e.assign(p,(0,Js._)(FJ||(FJ=Je(['"string"'])))).assign(m,f)}),t.fail$data((0,Js.or)(!1===l.strictSchema?Js.nil:(0,Js._)(LJ||(LJ=Je([""," && !",""])),s,m),(w=u.$async?(0,Js._)(OJ||(OJ=Je(["(",".async ? await ","(",") : ","(","))"])),f,m,i,m,i):(0,Js._)(NJ||(NJ=Je(["","(",")"])),m,i),C=(0,Js._)(RJ||(RJ=Je(["(typeof ",' == "function" ? '," : ",".test(","))"])),m,w,m,i),(0,Js._)($J||($J=Je([""," && "," !== true && "," === "," && !",""])),m,m,p,n,C))))):function(){var d=h.formats[o];if(d){if(!0!==d){var f=di(function(C){var k=C instanceof RegExp?(0,Js.regexpCode)(C):l.code.formats?(0,Js._)(PJ||(PJ=Je(["","",""])),l.code.formats,(0,Js.getProperty)(o)):void 0,E=e.scopeValue("formats",{key:o,ref:C,code:k});return"object"!=$n(C)||C instanceof RegExp?["string",C,E]:[C.type||"string",C.validate,(0,Js._)(jJ||(jJ=Je(["",".validate"])),E)]}(d),3),m=f[1],w=f[2];f[0]===n&&t.pass(function(){if("object"==$n(d)&&!(d instanceof RegExp)&&d.async){if(!u.$async)throw new Error("async format in sync schema");return(0,Js._)(BJ||(BJ=Je(["await ","(",")"])),w,i)}return(0,Js._)("function"==typeof m?HJ||(HJ=Je(["","(",")"])):VJ||(VJ=Je(["",".test(",")"])),w,i)}())}}else!function(){if(!1!==l.strictSchema)throw new Error(C());function C(){return'unknown format "'.concat(o,'" ignored in schema at path "').concat(c,'"')}h.logger.warn(C())}()}())}};c4.default=eot,Object.defineProperty(l4,"__esModule",{value:!0}),l4.default=[c4.default];var W0={};Object.defineProperty(W0,"__esModule",{value:!0}),W0.contentVocabulary=W0.metadataVocabulary=void 0,W0.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],W0.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(M$,"__esModule",{value:!0});var rot=l4,Bge=W0,oot=[I$.default,L$.default,(0,q$.default)(),rot.default,Bge.metadataVocabulary,Bge.contentVocabulary];M$.default=oot;var u4={},Hge={};(function(t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,(n=t.DiscrError||(t.DiscrError={})).Tag="tag",n.Mapping="mapping"})(Hge),Object.defineProperty(u4,"__esModule",{value:!0});var G0=Gr(),h4=Hge,Vge=uc,sot=po,aot={keyword:"discriminator",type:"object",schemaType:"object",error:{message:function(t){var n=t.params,i=n.tagName;return n.discrError===h4.DiscrError.Tag?'tag "'.concat(i,'" must be string'):'value of tag "'.concat(i,'" must be in oneOf')},params:function(t){var n=t.params,e=n.discrError,i=n.tag,r=n.tagName;return(0,G0._)(zJ||(zJ=Je(["{error: ",", tag: ",", tagValue: ","}"])),e,r,i)}},code:function(t){var n=t.gen,e=t.data,i=t.schema,r=t.parentSchema,o=t.it,s=r.oneOf;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");var a=i.propertyName;if("string"!=typeof a)throw new Error("discriminator: requires propertyName");if(i.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");var l=n.let("valid",!1),c=n.const("tag",(0,G0._)(UJ||(UJ=Je(["","",""])),e,(0,G0.getProperty)(a)));function u(h){var d=n.name("valid"),f=t.subschema({keyword:"oneOf",schemaProp:h},d);return t.mergeEvaluated(f,G0.Name),d}n.if((0,G0._)(WJ||(WJ=Je(["typeof ",' == "string"'])),c),function(){return function(){var h=function(){for(var f,p={},m=L(r),w=!0,C=0;C",9:"Array"},u="UnquotedIdentifier",h="QuotedIdentifier",d="Rbracket",f="Rparen",p="Comma",m="Colon",w="Rbrace",C="Number",k="Current",E="Expref",L="Pipe",De="Flatten",ie="Star",ge="Filter",we="Dot",Fe="Lbrace",z="Lbracket",Q="Lparen",Z="Literal",me={".":we,"*":ie,",":p,":":m,"{":Fe,"}":w,"]":d,"(":Q,")":f,"@":k},ae={"<":!0,">":!0,"=":!0,"!":!0},Te={" ":!0,"\t":!0,"\n":!0};function Oe(se){return se>="0"&&se<="9"||"-"===se}function Ze(){}Ze.prototype={tokenize:function(se){var Se,ke,Qe,gt,rt=[];for(this._current=0;this._current="a"&><="z"||gt>="A"&><="Z"||"_"===gt)Se=this._current,ke=this._consumeUnquotedIdentifier(se),rt.push({type:u,value:ke,start:Se});else if(void 0!==me[se[this._current]])rt.push({type:me[se[this._current]],value:se[this._current],start:this._current}),this._current++;else if(Oe(se[this._current]))Qe=this._consumeNumber(se),rt.push(Qe);else if("["===se[this._current])Qe=this._consumeLBracket(se),rt.push(Qe);else if('"'===se[this._current])Se=this._current,ke=this._consumeQuotedIdentifier(se),rt.push({type:h,value:ke,start:Se});else if("'"===se[this._current])Se=this._current,ke=this._consumeRawStringLiteral(se),rt.push({type:Z,value:ke,start:Se});else if("`"===se[this._current]){Se=this._current;var zt=this._consumeLiteral(se);rt.push({type:Z,value:zt,start:Se})}else if(void 0!==ae[se[this._current]])rt.push(this._consumeOperator(se));else if(void 0!==Te[se[this._current]])this._current++;else if("&"===se[this._current])Se=this._current,this._current++,"&"===se[this._current]?(this._current++,rt.push({type:"And",value:"&&",start:Se})):rt.push({type:E,value:"&",start:Se});else{if("|"!==se[this._current]){var Qt=new Error("Unknown character:"+se[this._current]);throw Qt.name="LexerError",Qt}Se=this._current,this._current++,"|"===se[this._current]?(this._current++,rt.push({type:"Or",value:"||",start:Se})):rt.push({type:L,value:"|",start:Se})}return rt},_consumeUnquotedIdentifier:function(se){var Se,ke=this._current;for(this._current++;this._current="a"&&Se<="z"||Se>="A"&&Se<="Z"||Se>="0"&&Se<="9"||"_"===Se);)this._current++;return se.slice(ke,this._current)},_consumeQuotedIdentifier:function(se){var Se=this._current;this._current++;for(var ke=se.length;'"'!==se[this._current]&&this._current"===ke?"="===se[this._current]?(this._current++,{type:"GTE",value:">=",start:Se}):{type:"GT",value:">",start:Se}:"="===ke&&"="===se[this._current]?(this._current++,{type:"EQ",value:"==",start:Se}):void 0},_consumeLiteral:function(se){this._current++;for(var Se,ke=this._current,Qe=se.length;"`"!==se[this._current]&&this._current=0||["true","false","null"].indexOf(se)>=0)return!0;if(!("-0123456789".indexOf(se[0])>=0))return!1;try{return JSON.parse(se),!0}catch{return!1}}};var Ve={};function wt(){}function ct(se){this.runtime=se}function Ct(se){this._interpreter=se,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[s]}]},avg:{_func:this._functionAvg,_signature:[{types:[8]}]},ceil:{_func:this._functionCeil,_signature:[{types:[s]}]},contains:{_func:this._functionContains,_signature:[{types:[a,3]},{types:[1]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[a]},{types:[a]}]},floor:{_func:this._functionFloor,_signature:[{types:[s]}]},length:{_func:this._functionLength,_signature:[{types:[a,3,4]}]},map:{_func:this._functionMap,_signature:[{types:[6]},{types:[3]}]},max:{_func:this._functionMax,_signature:[{types:[8,9]}]},merge:{_func:this._functionMerge,_signature:[{types:[4],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[3]},{types:[6]}]},sum:{_func:this._functionSum,_signature:[{types:[8]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[a]},{types:[a]}]},min:{_func:this._functionMin,_signature:[{types:[8,9]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[3]},{types:[6]}]},type:{_func:this._functionType,_signature:[{types:[1]}]},keys:{_func:this._functionKeys,_signature:[{types:[4]}]},values:{_func:this._functionValues,_signature:[{types:[4]}]},sort:{_func:this._functionSort,_signature:[{types:[9,8]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[3]},{types:[6]}]},join:{_func:this._functionJoin,_signature:[{types:[a]},{types:[9]}]},reverse:{_func:this._functionReverse,_signature:[{types:[a,3]}]},to_array:{_func:this._functionToArray,_signature:[{types:[1]}]},to_string:{_func:this._functionToString,_signature:[{types:[1]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[1]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[1],variadic:!0}]}}}Ve.EOF=0,Ve.UnquotedIdentifier=0,Ve.QuotedIdentifier=0,Ve.Rbracket=0,Ve.Rparen=0,Ve.Comma=0,Ve.Rbrace=0,Ve.Number=0,Ve.Current=0,Ve.Expref=0,Ve.Pipe=1,Ve.Or=2,Ve.And=3,Ve.EQ=5,Ve.GT=5,Ve.LT=5,Ve.GTE=5,Ve.LTE=5,Ve.NE=5,Ve.Flatten=9,Ve.Star=20,Ve.Filter=21,Ve.Dot=40,Ve.Not=45,Ve.Lbrace=50,Ve.Lbracket=55,Ve.Lparen=60,wt.prototype={parse:function(se){this._loadTokens(se),this.index=0;var Se=this.expression(0);if("EOF"!==this._lookahead(0)){var ke=this._lookaheadToken(0),Qe=new Error("Unexpected token type: "+ke.type+", value: "+ke.value);throw Qe.name="ParserError",Qe}return Se},_loadTokens:function(se){var Se=(new Ze).tokenize(se);Se.push({type:"EOF",value:"",start:se.length}),this.tokens=Se},expression:function(se){var Se=this._lookaheadToken(0);this._advance();for(var ke=this.nud(Se),Qe=this._lookahead(0);se=0?this.expression(se):Se===z?(this._match(z),this._parseMultiselectList()):Se===Fe?(this._match(Fe),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(se){var Se;if(Ve[this._lookahead(0)]<10)Se={type:"Identity"};else if(this._lookahead(0)===z)Se=this.expression(se);else if(this._lookahead(0)===ge)Se=this.expression(se);else{if(this._lookahead(0)!==we){var ke=this._lookaheadToken(0),Qe=new Error("Sytanx error, unexpected token: "+ke.value+"("+ke.type+")");throw Qe.name="ParserError",Qe}this._match(we),Se=this._parseDotRHS(se)}return Se},_parseMultiselectList:function(){for(var se=[];this._lookahead(0)!==d;){var Se=this.expression(0);if(se.push(Se),this._lookahead(0)===p&&(this._match(p),this._lookahead(0)===d))throw new Error("Unexpected token Rbracket")}return this._match(d),{type:"MultiSelectList",children:se}},_parseMultiselectHash:function(){for(var se,Se,ke,Qe=[],gt=[u,h];;){if(se=this._lookaheadToken(0),gt.indexOf(se.type)<0)throw new Error("Expecting an identifier token, got: "+se.type);if(Se=se.value,this._advance(),this._match(m),ke={type:"KeyValuePair",name:Se,value:this.expression(0)},Qe.push(ke),this._lookahead(0)===p)this._match(p);else if(this._lookahead(0)===w){this._match(w);break}}return{type:"MultiSelectHash",children:Qe}}},ct.prototype={search:function(se,Se){return this.visit(se,Se)},visit:function(se,Se){var ke,Qe,gt,rt,zt,Qt,Pn,Mi,Sn;switch(se.type){case"Field":return null!==Se&&e(Se)?void 0===(Qt=Se[se.name])?null:Qt:null;case"Subexpression":for(gt=this.visit(se.children[0],Se),Sn=1;Sn0)for(Sn=uo;Snqr;Sn+=oo)gt.push(Se[Sn]);return gt;case"Projection":var er=this.visit(se.children[0],Se);if(!n(er))return null;for(Mi=[],Sn=0;Snzt;break;case"GTE":gt=rt>=zt;break;case"LT":gt=rt=se&&(Se=ke<0?se-1:se),Se}},Ct.prototype={callFunction:function(se,Se){var ke=this.functionTable[se];if(void 0===ke)throw new Error("Unknown function: "+se+"()");return this._validateArgs(se,Se,ke._signature),ke._func.call(this,Se)},_validateArgs:function(se,Se,ke){var Qe,gt,rt,zt;if(ke[ke.length-1].variadic){if(Se.length=0;Qe--)ke+=Se[Qe];return ke}var gt=se[0].slice(0);return gt.reverse(),gt},_functionAbs:function(se){return Math.abs(se[0])},_functionCeil:function(se){return Math.ceil(se[0])},_functionAvg:function(se){for(var Se=0,ke=se[0],Qe=0;Qe=0},_functionFloor:function(se){return Math.floor(se[0])},_functionLength:function(se){return e(se[0])?Object.keys(se[0]).length:se[0].length},_functionMap:function(se){for(var Se=[],ke=this._interpreter,Qe=se[0],gt=se[1],rt=0;rt0){if(this._getTypeName(se[0][0])===s)return Math.max.apply(Math,se[0]);for(var Se=se[0],ke=Se[0],Qe=1;Qe0){if(this._getTypeName(se[0][0])===s)return Math.min.apply(Math,se[0]);for(var Se=se[0],ke=Se[0],Qe=1;QeOn?1:nrzt&&(zt=ke,Se=gt[Qt]);return Se},_functionMinBy:function(se){for(var Se,ke,gt=se[0],rt=this.createKeyFunction(se[1],[s,a]),zt=1/0,Qt=0;Qt1&&void 0!==arguments[1]?arguments[1]:1;return(n>0?t.toFixed(n).replace(/0+$/,"").replace(/\.$/,""):t.toString())||"0"}var dot=function(){function t(n,e,i,r){d4(this,t);var o=this;if(void 0!==n)if(Array.isArray(n))this.rgba=n;else if(void 0===i){var s=n&&""+n;s&&function(a){if(a.startsWith("hsl")){var l=a.match(/([\-\d\.e]+)/g).map(Number),c=GD(l,4),u=c[0],h=c[1],d=c[2],f=c[3];void 0===f&&(f=1),o.hsla=[u/=360,h/=100,d/=100,f]}else if(a.startsWith("rgb")){var p=a.match(/([\-\d\.e]+)/g).map(Number),m=GD(p,4),E=m[3];void 0===E&&(E=1),o.rgba=[m[0],m[1],m[2],E]}else o.rgba=a.startsWith("#")?t.hexToRgb(a):t.nameToRgb(a)||t.hexToRgb(a)}(s.toLowerCase())}else this.rgba=[n,e,i,void 0===r?1:r]}return f4(t,[{key:"printRGB",value:function(n){var e=(n?this.rgba:this.rgba.slice(0,3)).map(function(i,r){return Wge(i,3===r?3:0)});return n?"rgba("+e+")":"rgb("+e+")"}},{key:"printHSL",value:function(n){var e=[360,100,100,1],i=["","%","%",""],r=(n?this.hsla:this.hsla.slice(0,3)).map(function(o,s){return Wge(o*e[s],3===s?3:1)+i[s]});return n?"hsla("+r+")":"hsl("+r+")"}},{key:"printHex",value:function(n){var e=this.hex;return n?e:e.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(!this._hsla)throw new Error("No color is set");return this._rgba=t.hslToRgb(this._hsla)},set:function(n){3===n.length&&(n[3]=1),this._rgba=n,this._hsla=null}},{key:"rgbString",get:function(){return this.printRGB()}},{key:"rgbaString",get:function(){return this.printRGB(!0)}},{key:"hsla",get:function(){if(this._hsla)return this._hsla;if(!this._rgba)throw new Error("No color is set");return this._hsla=t.rgbToHsl(this._rgba)},set:function(n){3===n.length&&(n[3]=1),this._hsla=n,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){var n=this.rgba.map(function(e,i){return i<3?e.toString(16):Math.round(255*e).toString(16)});return"#"+n.map(function(e){return e.padStart(2,"0")}).join("")},set:function(n){this.rgba=t.hexToRgb(n)}}],[{key:"hexToRgb",value:function(n){var e=(n.startsWith("#")?n.slice(1):n).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(!e.match(/^([0-9a-fA-F]{8})$/))throw new Error("Unknown hex color; "+n);var i=e.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map(function(r){return parseInt(r,16)});return i[3]=i[3]/255,i}},{key:"nameToRgb",value:function(n){var e=n.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),i=hot[e];return void 0===i?i:t.hexToRgb(i.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(n){var e=GD(n,4),i=e[0],r=e[1],o=e[2],s=e[3];i/=255,r/=255,o/=255;var a=Math.max(i,r,o),l=Math.min(i,r,o),c=void 0,u=void 0,h=(a+l)/2;if(a===l)c=u=0;else{var d=a-l;switch(u=h>.5?d/(2-a-l):d/(a+l),a){case i:c=(r-o)/d+(r1&&(w-=1),w<.16666666666666666?p+6*(m-p)*w:w<.5?m:w<.6666666666666666?p+(m-p)*(.6666666666666666-w)*6:p},h=o<.5?o*(1+r):o+r-o*r,d=2*o-h;a=u(d,h,i+1/3),l=u(d,h,i),c=u(d,h,i-1/3)}var f=[255*a,255*l,255*c].map(Math.round);return f[3]=s,f}}]),t}(),fot=function(){function t(){d4(this,t),this._events=[]}return f4(t,[{key:"add",value:function(n,e,i){n.addEventListener(e,i,!1),this._events.push({target:n,type:e,handler:i})}},{key:"remove",value:function(n,e,i){this._events=this._events.filter(function(r){var o=!0;return n&&n!==r.target&&(o=!1),e&&e!==r.type&&(o=!1),i&&i!==r.handler&&(o=!1),o&&t._doRemove(r.target,r.type,r.handler),!o})}},{key:"destroy",value:function(){this._events.forEach(function(n){return t._doRemove(n.target,n.type,n.handler)}),this._events=[]}}],[{key:"_doRemove",value:function(n,e,i){n.removeEventListener(e,i,!1)}}]),t}();function p4(t,n,e){var i=!1;function r(l,c,u){return Math.max(c,Math.min(l,u))}function o(l,c,u){if(u&&(i=!0),i){l.preventDefault();var h=n.getBoundingClientRect(),d=h.width,f=h.height,m=c.clientY,w=r(c.clientX-h.left,0,d),C=r(m-h.top,0,f);e(w/d,C/f)}}function s(l,c){1===(void 0===l.buttons?l.which:l.buttons)?o(l,l,c):i=!1}function a(l,c){1===l.touches.length?o(l,l.touches[0],c):i=!1}t.add(n,"mousedown",function(l){s(l,!0)}),t.add(n,"touchstart",function(l){a(l,!0)}),t.add(window,"mousemove",s),t.add(n,"touchmove",a),t.add(window,"mouseup",function(l){i=!1}),t.add(n,"touchend",function(l){i=!1}),t.add(n,"touchcancel",function(l){i=!1})}function wd(t,n){return(n||document).querySelector(t)}function Gge(t){t.preventDefault(),t.stopPropagation()}function g4(t,n,e,i,r){t.add(n,"keydown",function(o){e.indexOf(o.key)>=0&&(r&&Gge(o),i(o))})}var qge=function(){function t(n){d4(this,t),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new fot,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(n)}return f4(t,[{key:"setOptions",value:function(n){var e=this;if(n){var i=this.settings;if(n instanceof HTMLElement)i.parent=n;else{i.parent&&n.parent&&i.parent!==n.parent&&(this._events.remove(i.parent),this._popupInited=!1),function(a,l,c){for(var u in a)l[u]=a[u]}(n,i),n.onChange&&(this.onChange=n.onChange),n.onDone&&(this.onDone=n.onDone),n.onOpen&&(this.onOpen=n.onOpen),n.onClose&&(this.onClose=n.onClose);var r=n.color||n.colour;r&&this._setColor(r)}var o=i.parent;if(o&&i.popup&&!this._popupInited){var s=function(a){return e.openHandler(a)};this._events.add(o,"click",s),g4(this._events,o,[" ","Spacebar","Enter"],s),this._popupInited=!0}else n.parent&&!i.popup&&this.show()}}},{key:"openHandler",value:function(n){if(this.show()){n&&n.preventDefault(),this.settings.parent.style.pointerEvents="none";var e=n&&"keydown"===n.type?this._domEdit:this.domElement;setTimeout(function(){return e.focus()},100),this.onOpen&&this.onOpen(this.colour)}}},{key:"closeHandler",value:function(n){var e=n&&n.type,i=!1;n?"mousedown"===e||"focusin"===e?n.timeStamp>(this.__containedEvent||0)+100&&(i=!0):(Gge(n),i=!0):i=!0,i&&this.hide()&&(this.settings.parent.style.pointerEvents="","mousedown"!==e&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:"movePopup",value:function(n,e){this.closeHandler(),this.setOptions(n),e&&this.openHandler()}},{key:"setColor",value:function(n,e){this._setColor(n,{silent:e})}},{key:"_setColor",value:function(n,e){if("string"==typeof n&&(n=n.trim()),n){e=e||{};var i=void 0;try{i=new dot(n)}catch(o){if(e.failSilently)return;throw o}if(!this.settings.alpha){var r=i.hsla;r[3]=1,i.hsla=r}this.colour=this.color=i,this._setHSLA(null,null,null,null,e)}}},{key:"setColour",value:function(n,e){this.setColor(n,e)}},{key:"show",value:function(){if(!this.settings.parent)return!1;if(this.domElement){var n=this._toggleDOM(!0);return this._setPosition(),n}var e,i,o=(e=this.settings.template||'
    ',(i=document.createElement("div")).innerHTML=e,i.firstElementChild);return this.domElement=o,this._domH=wd(".picker_hue",o),this._domSL=wd(".picker_sl",o),this._domA=wd(".picker_alpha",o),this._domEdit=wd(".picker_editor input",o),this._domSample=wd(".picker_sample",o),this._domOkay=wd(".picker_done button",o),this._domCancel=wd(".picker_cancel button",o),o.classList.add("layout_"+this.settings.layout),this.settings.alpha||o.classList.add("no_alpha"),this.settings.editor||o.classList.add("no_editor"),this.settings.cancelButton||o.classList.add("no_cancel"),this._ifPopup(function(){return o.classList.add("popup")}),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){var n=this,e=this,i=this.domElement,r=this._events;function o(l,c,u){r.add(l,c,u)}o(i,"click",function(l){return l.preventDefault()}),p4(r,this._domH,function(l,c){return e._setHSLA(l)}),p4(r,this._domSL,function(l,c){return e._setHSLA(null,l,1-c)}),this.settings.alpha&&p4(r,this._domA,function(l,c){return e._setHSLA(null,null,null,1-c)});var s=this._domEdit;o(s,"input",function(l){e._setColor(this.value,{fromEditor:!0,failSilently:!0})}),o(s,"focus",function(l){var c=this;c.selectionStart===c.selectionEnd&&c.select()}),this._ifPopup(function(){var l=function(u){return n.closeHandler(u)};o(window,"mousedown",l),o(window,"focusin",l),g4(r,i,["Esc","Escape"],l);var c=function(u){n.__containedEvent=u.timeStamp};o(i,"mousedown",c),o(i,"focusin",c),o(n._domCancel,"click",l)});var a=function(l){n._ifPopup(function(){return n.closeHandler(l)}),n.onDone&&n.onDone(n.colour)};o(this._domOkay,"click",a),g4(r,i,["Enter"],a)}},{key:"_setPosition",value:function(){var n=this.settings.parent,e=this.domElement;n!==e.parentNode&&n.appendChild(e),this._ifPopup(function(i){"static"===getComputedStyle(n).position&&(n.style.position="relative");var r=!0===i?"popup_right":"popup_"+i;["popup_top","popup_bottom","popup_left","popup_right"].forEach(function(o){o===r?e.classList.add(o):e.classList.remove(o)}),e.classList.add(r)})}},{key:"_setHSLA",value:function(n,e,i,r,o){o=o||{};var s=this.colour,a=s.hsla;[n,e,i,r].forEach(function(l,c){(l||0===l)&&(a[c]=l)}),s.hsla=a,this._updateUI(o),this.onChange&&!o.silent&&this.onChange(s)}},{key:"_updateUI",value:function(n){if(this.domElement){n=n||{};var e=this.colour,i=e.hsla,r="hsl("+360*i[0]+", 100%, 50%)",o=e.hslString,s=e.hslaString,l=this._domSL,c=this._domA,u=wd(".picker_selector",this._domH),h=wd(".picker_selector",l),d=wd(".picker_selector",c);E(0,u,i[0]),this._domSL.style.backgroundColor=this._domH.style.color=r,E(0,h,i[1]),L(0,h,1-i[2]),l.style.color=o,L(0,d,1-i[3]);var f=o,p=f.replace("hsl","hsla").replace(")",", 0)");if(this._domA.style.background="linear-gradient("+[f,p]+"), linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em,\n linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em",!n.fromEditor){var C=this.settings.alpha,k=void 0;switch(this.settings.editorFormat){case"rgb":k=e.printRGB(C);break;case"hsl":k=e.printHSL(C);break;default:k=e.printHex(C)}this._domEdit.value=k}this._domSample.style.color=s}function E(B,G,oe){G.style.left=100*oe+"%"}function L(B,G,oe){G.style.top=100*oe+"%"}}},{key:"_ifPopup",value:function(n,e){this.settings.parent&&this.settings.popup?n&&n(this.settings.popup):e&&e()}},{key:"_toggleDOM",value:function(n){var e=this.domElement;if(!e)return!1;var i=n?"":"none",r=e.style.display!==i;return r&&(e.style.display=i),r}}]),t}(),m4=document.createElement("style");m4.textContent='.picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:"";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:"";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:"";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:"";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}',document.documentElement.firstElementChild.appendChild(m4),qge.StyleElement=m4;var pot=Object.freeze({__proto__:null,default:qge});const got=["editor"];function mot(t,n){if(1&t&&(A(0,"ngb-alert",37),je(1,"img",38),A(2,"h6",39),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("Error while modifying storage object: ",e.error,"")}}function vot(t,n){1&t&&(A(0,"ngb-alert",40),je(1,"img",41),A(2,"h6",39),J(3,"Storage object was modified successfully."),M()()),2&t&&N("dismissible",!1)}function yot(t,n){1&t&&(A(0,"span"),J(1,"Save as a copy"),M())}function bot(t,n){1&t&&J(0,"Save")}function _ot(t,n){if(1&t&&(A(0,"button",42),ye(1,yot,2,0,"span",43),ye(2,bot,1,0,"ng-template",null,44,go),M()),2&t){const e=Io(3),i=te();N("disabled",i.updating),I(1),N("ngIf",i.object.collection!==i.f.collection.value||i.object.key!==i.f.keyname.value||i.object.user_id!==i.f.user_id.value)("ngIfElse",e)}}const v4=function(){return["/storage"]},wot=function(t){return{collection:t}},xot=function(t,n){return{collection:t,key:n}},Cot=function(t,n,e){return{collection:t,key:n,user_id:e}},y4=function(t){return{"is-invalid":t}};let Sot=(()=>{class t{ngOnInit(){this.objectForm=this.formBuilder.group({collection:["",Wo.required],keyname:["",Wo.required],user_id:["",Wo.required],permission_read:[0,Wo.required],permission_write:[0,Wo.required]}),this.route.data.subscribe(e=>{this.object=e[0],this.f.collection.setValue(this.object.collection),this.f.keyname.setValue(this.object.key),this.f.user_id.setValue(this.object.user_id),this.f.permission_read.setValue(this.object.permission_read),this.f.permission_write.setValue(this.object.permission_write),this.updateAllowed()||this.objectForm.disable()},e=>{this.error=e})}constructor(e,i,r,o,s){be(this,"route",void 0),be(this,"router",void 0),be(this,"consoleService",void 0),be(this,"authService",void 0),be(this,"formBuilder",void 0),be(this,"editor",void 0),be(this,"jsonEditor",void 0),be(this,"error",""),be(this,"object",void 0),be(this,"objectForm",void 0),be(this,"updating",!1),be(this,"updated",!1),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngAfterViewInit(){this.jsonEditor=new x$({target:this.editor.nativeElement,props:{readOnly:!this.updateAllowed(),content:{text:this.object.value}}})}updateObject(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=this.jsonEditor.get().text}catch(o){return this.error=o,void(this.updating=!1)}let i=this.object.version;(this.object.collection!==this.f.collection.value||this.object.key!==this.f.keyname.value||this.object.user_id!==this.f.user_id.value)&&(i=""),this.consoleService.writeStorageObject("",this.f.collection.value,this.f.keyname.value,this.f.user_id.value,{version:i,value:e,permission_read:this.f.permission_read.value,permission_write:this.f.permission_write.value}).subscribe(o=>{this.updated=!0,this.updating=!1,this.object.version=o.version,""===i&&(this.object.collection=this.f.collection.value,this.object.key=this.f.keyname.value,this.object.user_id=this.f.user_id.value,this.object.permission_read=this.f.permission_read.value,this.object.permission_write=this.f.permission_write.value)},o=>{this.error=o,this.updating=!1})}deleteObject(){this.error="",this.updated=!1,this.updating=!1;const e=this.object;this.consoleService.deleteStorageObject("",e.collection,e.key,e.user_id,e.version).subscribe(()=>{this.router.navigate(["/storage"],{relativeTo:this.route,queryParams:{collection:this.f.collection.value,key:this.f.key.value,user_id:this.f.user_id.value}})},i=>{this.error=i})}updateAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}get f(){return this.objectForm.controls}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Ui),Ae(ds),Ae(Pl))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&Do(got,5),2&e){let r;En(r=Mn())&&(i.editor=r.first)}},decls:88,vars:50,consts:[[1,"pb-1"],[1,"storage-top-nav","d-flex","justify-content-between","align-items-baseline","mb-3"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink","queryParams"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","collection",1,"d-inline"],["type","text","id","collection","placeholder","Collection","required","","formControlName","collection",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","key",1,"d-inline"],["type","text","id","key","placeholder","Key","required","","formControlName","keyname",1,"form-control","form-control-sm","my-2",3,"ngClass"],["for","user_id",1,"d-inline"],["type","text","id","user_id","placeholder","User ID","required","","formControlName","user_id",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","permission_read",1,"d-inline"],["ngbRadioGroup","","id","permission_read","name","permission_read","formControlName","permission_read",1,"btn-group","btn-group-toggle"],["ngbButtonLabel","",1,"btn-outline-secondary"],["ngbButton","","type","radio",3,"disabled","value"],["for","version",1,"d-inline"],["type","text","id","version","placeholder","Version","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","permission_write",1,"d-inline"],["ngbRadioGroup","","id","permission_write","name","permission_write","formControlName","permission_write",1,"btn-group","btn-group-toggle"],[1,"row","add-border-single-row-bottom","mb-3"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","update_time",1,"d-inline"],["type","text","id","update_time","placeholder","Update Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"card","p-2","mt-3","mb-3","jsoneditor",2,"height","518px"],[2,"height","500px"],["editor",""],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","submit",1,"btn","btn-primary",3,"disabled"],[4,"ngIf","ngIfElse"],["elseBlock",""]],template:function(e,i){1&e&&(A(0,"h2",0),J(1,"Storage Object"),M(),A(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4),J(6,"Storage"),M(),A(7,"li",4)(8,"a",5),J(9),M()(),A(10,"li",4)(11,"a",5),J(12),M()(),A(13,"li",4)(14,"a",5),J(15),M()()()()(),ye(16,mot,4,2,"ngb-alert",6),ye(17,vot,4,1,"ngb-alert",7),A(18,"form",8),He("ngSubmit",function(){return i.updateObject()}),A(19,"div",9)(20,"div",10)(21,"div",11)(22,"label",12),J(23,"Collection"),M()(),je(24,"input",13),A(25,"div",14),J(26,"Collection is required"),M()(),A(27,"div",10)(28,"div",11)(29,"label",15),J(30,"Key"),M()(),je(31,"input",16),A(32,"div",14),J(33,"Key is required"),M()()(),A(34,"div",9)(35,"div",10)(36,"div",11)(37,"label",17),J(38,"User ID"),M()(),je(39,"input",18),A(40,"div",14),J(41,"User ID is required"),M()(),A(42,"div",19)(43,"div",11)(44,"label",20),J(45,"Read Permission"),M()(),A(46,"div",21)(47,"label",22),je(48,"input",23),J(49," No Read "),M(),A(50,"label",22),je(51,"input",23),J(52," Owner Read "),M(),A(53,"label",22),je(54,"input",23),J(55," Public Read "),M()()()(),A(56,"div",9)(57,"div",10)(58,"div",11)(59,"label",24),J(60,"Version"),M()(),je(61,"input",25),M(),A(62,"div",19)(63,"div",11)(64,"label",26),J(65,"Write Permission"),M()(),A(66,"div",27)(67,"label",22),je(68,"input",23),J(69," No Write "),M(),A(70,"label",22),je(71,"input",23),J(72," Owner Write "),M()()()(),A(73,"div",28)(74,"div",10)(75,"div",11)(76,"label",29),J(77,"Create Time"),M()(),je(78,"input",30),M(),A(79,"div",10)(80,"div",11)(81,"label",31),J(82,"Update Time"),M()(),je(83,"input",32),M()(),A(84,"div",33),je(85,"div",34,35),M(),ye(87,_ot,4,3,"button",36),M()),2&e&&(I(8),N("routerLink",Ll(32,v4))("queryParams",Lr(33,wot,i.object.collection)),I(1),Xt(i.object.collection),I(2),N("routerLink",Ll(35,v4))("queryParams",Kr(36,xot,i.object.collection,i.object.key)),I(1),Xt(i.object.key),I(2),N("routerLink",Ll(39,v4))("queryParams",zm(40,Cot,i.object.collection,i.object.key,i.object.user_id)),I(1),Xt(i.object.user_id),I(1),N("ngIf",i.error),I(1),N("ngIf",i.updated),I(1),N("formGroup",i.objectForm),I(6),N("ngClass",Lr(44,y4,i.f.collection.dirty&&i.f.collection.errors)),I(1),N("hidden",i.f.collection.disabled||i.f.collection.valid||i.f.collection.pristine),I(6),N("ngClass",Lr(46,y4,i.f.keyname.dirty&&i.f.keyname.errors)),I(1),N("hidden",i.f.keyname.disabled||i.f.keyname.valid||i.f.keyname.pristine),I(7),N("ngClass",Lr(48,y4,i.f.user_id.dirty&&i.f.user_id.errors)),I(1),N("hidden",i.f.user_id.disabled||i.f.user_id.valid||i.f.user_id.pristine),I(8),N("disabled",!i.updateAllowed())("value",0),I(3),N("disabled",!i.updateAllowed())("value",1),I(3),N("disabled",!i.updateAllowed())("value",2),I(7),N("value",i.object.version),I(7),N("disabled",!i.updateAllowed())("value",0),I(3),N("disabled",!i.updateAllowed())("value",1),I(7),N("value",i.object.create_time),I(5),N("value",i.object.update_time),I(4),N("ngIf",i.updateAllowed()))},dependencies:[Ru,Pd,Nn,Go,TC,M3,MV,bl,qa,vl,yl,Ff,Ea,Ya],styles:[".storage-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})),t})(),kot=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.paramMap.get("collection"),o=e.paramMap.get("key"),s=e.paramMap.get("user_id");return this.consoleService.getStorage("",r,o,s)}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Dot(t,n){if(1&t&&(A(0,"ngb-alert",10),je(1,"img",11),A(2,"h6",12),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("Error while processing request: ",e.error,"")}}function Tot(t,n){1&t&&(A(0,"th",13),J(1,"Remove"),M())}function Aot(t,n){if(1&t){const e=Bt();A(0,"td",17),He("click",function(){st(e);const r=te().$implicit;return at(te().viewLeaderboardEntries(r))}),J(1,"Yes"),M()}}function Eot(t,n){if(1&t){const e=Bt();A(0,"td",17),He("click",function(){st(e);const r=te().$implicit;return at(te().viewLeaderboardEntries(r))}),J(1,"No"),M()}}function Mot(t,n){if(1&t){const e=Bt();A(0,"td",17),He("click",function(){st(e);const r=te().$implicit;return at(te().viewLeaderboardEntries(r))}),J(1,"Yes"),M()}}function Iot(t,n){if(1&t){const e=Bt();A(0,"td",17),He("click",function(){st(e);const r=te().$implicit;return at(te().viewLeaderboardEntries(r))}),J(1,"No"),M()}}function Fot(t,n){if(1&t){const e=Bt();A(0,"td",18)(1,"button",19),He("click",function(r){st(e);const o=te(),s=o.index,a=o.$implicit;return at(te().deleteLeaderboard(r,s,a))}),J(2,"Delete"),M()()}}function Lot(t,n){if(1&t){const e=Bt();A(0,"tr")(1,"td",14),He("click",function(){const o=st(e).$implicit;return at(te().viewLeaderboardEntries(o))}),J(2),M(),A(3,"td",14),He("click",function(){const o=st(e).$implicit;return at(te().viewLeaderboardEntries(o))}),J(4),M(),A(5,"td",14),He("click",function(){const o=st(e).$implicit;return at(te().viewLeaderboardEntries(o))}),J(6),M(),A(7,"td",14),He("click",function(){const o=st(e).$implicit;return at(te().viewLeaderboardEntries(o))}),J(8),M(),ye(9,Aot,2,0,"td",15),ye(10,Eot,2,0,"td",15),ye(11,Mot,2,0,"td",15),ye(12,Iot,2,0,"td",15),ye(13,Fot,3,0,"td",16),M()}if(2&t){const e=n.$implicit,i=te();I(2),Xt(e.id),I(2),Xt(i.orderString[e.sort_order]),I(2),Xt(i.operatorString[e.operator]),I(2),Xt(""===e.reset_schedule?"-":e.reset_schedule),I(1),N("ngIf",e.authoritative),I(1),N("ngIf",!e.authoritative),I(1),N("ngIf",e.tournament),I(1),N("ngIf",!e.tournament),I(1),N("ngIf",i.deleteAllowed())}}function Oot(t,n){1&t&&(A(0,"tr")(1,"td",20),J(2,"No leaderboards were found."),M()())}let Not=(()=>{class t{constructor(e,i,r,o){be(this,"route",void 0),be(this,"router",void 0),be(this,"authService",void 0),be(this,"consoleService",void 0),be(this,"error",""),be(this,"leaderboards",[]),be(this,"orderString",{0:"Ascending",1:"Descending"}),be(this,"operatorString",{0:"Best",1:"Set",2:"Increment",3:"Decrement"}),this.route=e,this.router=i,this.authService=r,this.consoleService=o}ngOnInit(){this.route.data.subscribe(e=>{this.leaderboards.length=0,this.leaderboards.push(...e[0].leaderboards)},e=>{this.error=e})}deleteAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_DEVELOPER}deleteLeaderboard(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteLeaderboard("",r.id).subscribe(()=>{this.error="",this.leaderboards.splice(i,1)},o=>{this.error=o})}viewLeaderboardEntries(e){this.router.navigate(["/leaderboards",e.id],{relativeTo:this.route})}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(ds),Ae(Ui))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],decls:24,vars:5,consts:[[1,"pb-1"],[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],[1,"table","table-sm","table-bordered","table-hover"],[1,"thead-light"],[2,"width","130px"],[2,"width","100px"],["style","width: 90px",4,"ngIf"],[4,"ngFor","ngForOf"],[4,"ngIf"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],[3,"click"],["class","text-center",3,"click",4,"ngIf"],["class","text-center",4,"ngIf"],[1,"text-center",3,"click"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],["colspan","7",1,"text-muted"]],template:function(e,i){1&e&&(A(0,"h2",0),J(1,"Leaderboards"),M(),A(2,"h6",1),J(3),M(),ye(4,Dot,4,2,"ngb-alert",2),A(5,"table",3)(6,"thead",4)(7,"tr")(8,"th"),J(9,"Leaderboard ID"),M(),A(10,"th",5),J(11,"Sort Order"),M(),A(12,"th",5),J(13,"Operator"),M(),A(14,"th",5),J(15,"Reset Schedule"),M(),A(16,"th",6),J(17,"Authoritative"),M(),A(18,"th",6),J(19,"Tournament"),M(),ye(20,Tot,2,0,"th",7),M()(),A(21,"tbody"),ye(22,Lot,14,9,"tr",8),ye(23,Oot,3,0,"tr",9),M()()),2&e&&(I(3),jn("",i.leaderboards.length," leaderboards found."),I(1),N("ngIf",i.error),I(16),N("ngIf",i.deleteAllowed()),I(2),N("ngForOf",i.leaderboards),I(1),N("ngIf",0===i.leaderboards.length))},dependencies:[ti,Nn,Go],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})),t})(),Rot=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.listLeaderboards("")}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function $ot(t,n){if(1&t&&(A(0,"ngb-alert",31),je(1,"img",32),A(2,"h6",33),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("Error when querying accounts: ",e.error,"")}}function Pot(t,n){1&t&&(A(0,"th",34),J(1,"Remove"),M())}function jot(t,n){1&t&&(A(0,"tr")(1,"td",35),J(2,"No users found - change the filter criteria or add new user accounts."),M()())}function Bot(t,n){1&t&&je(0,"td")}function Hot(t,n){if(1&t){const e=Bt();A(0,"td",38)(1,"button",39),He("click",function(r){st(e);const o=te(),s=o.index,a=o.$implicit;return at(te().deleteAccount(r,s,a))}),J(2,"Delete"),M()()}}function Vot(t,n){if(1&t){const e=Bt();A(0,"tr")(1,"td",36),He("click",function(){const o=st(e).$implicit;return at(te().viewAccount(o))}),J(2),M(),A(3,"td",36),He("click",function(){const o=st(e).$implicit;return at(te().viewAccount(o))}),J(4),M(),A(5,"td",36),He("click",function(){const o=st(e).$implicit;return at(te().viewAccount(o))}),J(6),M(),A(7,"td",36),He("click",function(){const o=st(e).$implicit;return at(te().viewAccount(o))}),J(8),M(),ye(9,Bot,1,0,"td",29),ye(10,Hot,3,0,"td",37),M()}if(2&t){const e=n.$implicit,i=te();I(2),Xt(e.id),I(2),Xt(e.username),I(2),Xt(e.display_name),I(2),Xt(e.update_time),I(1),N("ngIf",i.deleteAllowed()&&e.id===i.systemUserId),I(1),N("ngIf",i.deleteAllowed()&&e.id!==i.systemUserId)}}let zot=(()=>{class t{constructor(e,i,r,o,s){be(this,"route",void 0),be(this,"router",void 0),be(this,"consoleService",void 0),be(this,"authService",void 0),be(this,"formBuilder",void 0),be(this,"systemUserId","00000000-0000-0000-0000-000000000000"),be(this,"error",""),be(this,"accountsCount",0),be(this,"accounts",[]),be(this,"nextCursor",""),be(this,"prevCursor",""),be(this,"searchForm",void 0),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.searchForm=this.formBuilder.group({filter:[""],filter_type:[0]});const e=this.route.snapshot.queryParamMap;this.f.filter.setValue(e.get("filter")),this.f.filter_type.setValue(+e.get("filter_type")),this.nextCursor=e.get("cursor"),this.nextCursor&&""!==this.nextCursor?this.search(1):(this.f.filter.value||this.f.filter_type.value)&&this.search(0),this.route.data.subscribe(i=>{this.accounts.length=0,i&&(this.accounts.push(...i[0].users),this.accountsCount=i[0].total_count,this.nextCursor=i[0].next_cursor,this.prevCursor=i[0].prev_cursor)},i=>{this.error=i})}search(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listAccounts("",this.f.filter.value,this.f.filter_type.value&&1===this.f.filter_type.value,i).subscribe(o=>{this.error="",this.accounts.length=0,this.accounts.push(...o.users),this.accountsCount=o.total_count,this.nextCursor=o.next_cursor,this.router.navigate([],{relativeTo:this.route,queryParams:{filter:this.f.filter.value,filter_type:this.f.filter_type.value,cursor:i},queryParamsHandling:"merge"})},o=>{this.error=o})}deleteAccount(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteAccount("",r.id,!1).subscribe(()=>{this.error="",this.accounts.splice(i,1),this.accountsCount--},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_DEVELOPER}viewAccount(e){this.router.navigate(["/accounts",e.id],{relativeTo:this.route})}get f(){return this.searchForm.controls}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Ui),Ae(ds),Ae(Pl))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],decls:45,vars:9,consts:[[1,"pb-1"],[1,"pb-3"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","filter","placeholder","Filter by user ID, social provider ID, device ID, or username (use '%' for prefix or suffix wildcard search)",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"input-group-text",3,"click"],["src","/static/svg/purple-cog-1.svg","alt","","width","20","height","",1,"mr-1"],[1,"btn-group"],["type","button",1,"btn","btn-primary","dropdown-radius",3,"click"],["ngbDropdown","","role","group","aria-label","Button group with nested dropdown",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-primary","dropdown-toggle-split",3,"disabled"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(e,i){1&e&&(A(0,"h2",0),J(1,"User Accounts"),M(),A(2,"h6",1),J(3),M(),A(4,"div",2)(5,"div",3)(6,"div",4)(7,"form",5),He("ngSubmit",function(){return i.search(0)}),A(8,"div",6),je(9,"input",7),A(10,"div",8)(11,"span",9),He("click",function(){return i.f.filter.setValue(i.systemUserId)}),je(12,"img",10),M()(),A(13,"div",8)(14,"div",11)(15,"button",12),He("click",function(){return i.f.filter_type.setValue(0),i.search(0)}),J(16,"Search"),M(),A(17,"div",13),je(18,"button",14),A(19,"div",15)(20,"button",16),He("click",function(){return i.f.filter_type.setValue(1),i.search(0)}),J(21,"Tombstones"),M()()()()()()()(),A(22,"div",17)(23,"div",18)(24,"button",19),He("click",function(){return i.search(0)}),je(25,"img",20),M(),A(26,"button",19),He("click",function(){return i.search(1)}),je(27,"img",21),M()()()()(),ye(28,$ot,4,2,"ngb-alert",22),A(29,"div",23)(30,"table",24)(31,"thead",25)(32,"tr")(33,"th",26),J(34,"User ID"),M(),A(35,"th"),J(36,"Username"),M(),A(37,"th"),J(38,"Display Name"),M(),A(39,"th",27),J(40,"Last Update"),M(),ye(41,Pot,2,0,"th",28),M()(),A(42,"tbody"),ye(43,jot,3,0,"tr",29),ye(44,Vot,11,6,"tr",30),M()()()),2&e&&(I(3),jn("",i.accountsCount," accounts found."),I(4),N("formGroup",i.searchForm),I(11),N("disabled",!i.f.filter.value||""===i.f.filter.value),I(6),N("disabled",0===i.accounts.length),I(2),N("disabled",""===i.nextCursor),I(2),N("ngIf",i.error),I(13),N("ngIf",i.deleteAllowed()),I(2),N("ngIf",0===i.accounts.length),I(1),N("ngForOf",i.accounts))},dependencies:[ti,Nn,Go,Bu,rg,Rf,Nf,bl,qa,vl,yl,Ea,Ya],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})),t})(),Uot=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.queryParamMap.get("filter"),o=e.queryParamMap.get("tombstones");return this.consoleService.listAccounts("",r,"true"===o,null)}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Wot(t,n){if(1&t){const e=Bt();A(0,"button",15),He("click",function(r){return st(e),at(te().exportAccount(r))}),je(1,"img",16),J(2,"Export"),M()}}function Got(t,n){1&t&&(A(0,"span"),J(1,"Unban"),M())}function qot(t,n){1&t&&(A(0,"span"),J(1,"Ban"),M())}function Xot(t,n){if(1&t){const e=Bt();A(0,"button",15),He("click",function(r){return st(e),at(te().banUnbanAccount(r))}),je(1,"img",17),ye(2,Got,2,0,"span",18),ye(3,qot,2,0,"span",18),M()}if(2&t){const e=te();I(2),N("ngIf",e.account.disable_time),I(1),N("ngIf",!e.account.disable_time)}}function Yot(t,n){if(1&t){const e=Bt();A(0,"button",19),He("click",function(r){return st(e),at(te().deleteAccount(r,!1))}),je(1,"img",20),J(2,"Delete"),M()}}function Kot(t,n){if(1&t){const e=Bt();A(0,"button",19),He("click",function(r){return st(e),at(te().deleteAccount(r,!0))}),je(1,"img",21),J(2,"Recorded delete"),M()}}function Jot(t,n){if(1&t&&(A(0,"ngb-alert",22),je(1,"img",23),A(2,"h6",24),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("An error occurred: ",e.error,"")}}const Qot=function(t,n){return["/accounts",t,n]};function Zot(t,n){if(1&t&&(A(0,"div"),va(1,25),A(2,"a",26),J(3),M(),ya(),M()),2&t){const e=n.$implicit,i=te();I(1),N("ngbNavItem",e.path),I(1),N("routerLink",Kr(3,Qot,i.account.user.id,e.path)),I(1),Xt(e.label)}}const est=function(){return["/accounts"]},tst=function(){return["/storage"]},nst=function(t){return{user_id:t}};let ist=(()=>{class t{constructor(e,i,r,o){be(this,"route",void 0),be(this,"router",void 0),be(this,"consoleService",void 0),be(this,"authService",void 0),be(this,"account",void 0),be(this,"error",""),be(this,"views",[{label:"Profile",path:"profile"},{label:"Authentication",path:"authentication"},{label:"Friends",path:"friends"},{label:"Groups",path:"groups"},{label:"Wallet",path:"wallet"},{label:"Purchases",path:"purchases"},{label:"Subscriptions",path:"subscriptions"}]),this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}deleteAccount(e,i){e.target.disabled=!0,this.error="",this.consoleService.deleteAccount("",this.account.user.id,i).subscribe(()=>{this.error="",this.router.navigate(["/accounts"])},r=>{this.error=r})}banUnbanAccount(e){e.target.disabled=!0,this.error="",this.account.disable_time?this.consoleService.unbanAccount("",this.account.user.id).subscribe(()=>{this.error="",this.account.disable_time=null,e.target.disabled=!1},i=>{this.error=i,e.target.disabled=!1}):this.consoleService.banAccount("",this.account.user.id).subscribe(()=>{this.error="",this.account.disable_time=Date.now().toString(),e.target.disabled=!1},i=>{this.error=i,e.target.disabled=!1})}exportAccount(e){e.target.disabled=!0,this.error="",this.consoleService.exportAccount("",this.account.user.id).subscribe(i=>{this.error="";const r=this.account.user.id+"-export.json",o=JSON.stringify(i,null,2),s=(new TextEncoder).encode(o),a=new Blob([s],{type:"application/json;charset=utf-8"});(0,nF.saveAs)(a,r),e.target.disabled=!1},i=>{e.target.disabled=!1,this.error=i})}updateAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}exportAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}banAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Ui),Ae(ds))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],decls:24,vars:14,consts:[[1,"pb-1"],[1,"account-top-nav","d-flex","justify-content-between","align-items-baseline","mb-4"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active"],["type","button","class","btn btn-outline-secondary mr-2",3,"click",4,"ngIf"],["type","button","class","btn btn-danger btn-danger-icon mr-2",3,"click",4,"ngIf"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["ngbNav","",1,"navbar-expand-sm","p-0","mb-3"],["accountNav","ngbNav"],[4,"ngFor","ngForOf"],["ngbNavItem","storage"],["ngbNavLink","",3,"routerLink","queryParams"],["type","button",1,"btn","btn-outline-secondary","mr-2",3,"click"],["src","/static/svg/export.svg","alt","","width","13","height","13",1,"mr-2"],["src","/static/svg/ban.svg","alt","","width","13","height","13",1,"mr-2"],[4,"ngIf"],["type","button",1,"btn","btn-danger","btn-danger-icon","mr-2",3,"click"],["src","/static/svg/bin-red.svg","alt","","width","14","height","",1,"mr-2"],["src","/static/svg/bin-recorded.svg","alt","","width","15","height","",1,"mr-2"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"ngbNavItem"],["ngbNavLink","","routerLinkActive","account-link-active",3,"routerLink"]],template:function(e,i){1&e&&(A(0,"h2",0),J(1,"User Account"),M(),A(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4)(6,"a",5),J(7,"Account"),M()(),A(8,"li",6),J(9),M()()(),A(10,"div"),ye(11,Wot,3,0,"button",7),ye(12,Xot,4,2,"button",7),ye(13,Yot,3,0,"button",8),ye(14,Kot,3,0,"button",8),M()(),ye(15,Jot,4,2,"ngb-alert",9),A(16,"nav",10,11),ye(18,Zot,4,6,"div",12),A(19,"div"),va(20,13),A(21,"a",14),J(22," Storage "),M(),ya(),M()(),je(23,"router-outlet")),2&e&&(I(6),N("routerLink",Ll(10,est)),I(3),Xt(i.account.user.id),I(2),N("ngIf",i.exportAllowed()),I(1),N("ngIf",i.banAllowed()),I(1),N("ngIf",i.deleteAllowed()),I(1),N("ngIf",i.deleteAllowed()),I(1),N("ngIf",i.error),I(3),N("ngForOf",i.views),I(3),N("routerLink",Ll(11,tst))("queryParams",Lr(12,nst,i.account.user.id)))},dependencies:[Kp,Ru,uy,ti,Nn,Go,ag,sg,dv],styles:[".nav-link[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#000;opacity:.5;padding:0 0 1.6em;margin-right:3em;margin-bottom:-2px;font-weight:600}.nav-link[_ngcontent-%COMP%]:hover{opacity:1}.nav-link.account-link-active[_ngcontent-%COMP%]{opacity:1;border-bottom:solid 2px #7668ED}.navbar-expand-sm[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9}.account-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})),t})(),rst=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.paramMap.get("id");return this.consoleService.getAccount("",r)}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();const ost=["editor"];function sst(t,n){if(1&t&&(A(0,"ngb-alert",29),je(1,"img",30),A(2,"h6",31),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("An error occurred: ",e.error,"")}}function ast(t,n){1&t&&(A(0,"ngb-alert",32),je(1,"img",33),A(2,"h6",31),J(3,"Account was modified successfully."),M()()),2&t&&N("dismissible",!1)}function lst(t,n){1&t&&(A(0,"button",34),J(1,"Save"),M()),2&t&&N("disabled",te().updating)}const cst=function(t){return{"is-invalid":t}};let ust=(()=>{class t{constructor(e,i,r,o,s){be(this,"route",void 0),be(this,"router",void 0),be(this,"consoleService",void 0),be(this,"authService",void 0),be(this,"formBuilder",void 0),be(this,"editor",void 0),be(this,"jsonEditor",void 0),be(this,"error",""),be(this,"account",void 0),be(this,"accountForm",void 0),be(this,"updating",!1),be(this,"updated",!1),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.accountForm=this.formBuilder.group({username:["",Wo.required],display_name:[""],avatar_url:[""],location:[""],timezone:[""]}),this.route.parent.data.subscribe(e=>{this.account=e[0].account,this.f.username.setValue(this.account.user.username),this.f.display_name.setValue(this.account.user.display_name),this.f.avatar_url.setValue(this.account.user.avatar_url),this.f.location.setValue(this.account.user.location),this.f.timezone.setValue(this.account.user.timezone),this.updateAllowed()||this.accountForm.disable()},e=>{this.error=e})}ngAfterViewInit(){this.jsonEditor=new x$({target:this.editor.nativeElement,props:{readOnly:!this.updateAllowed(),content:{text:this.account.user.metadata}}})}updateAccount(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=this.jsonEditor.get().text}catch(r){return this.error=r,void(this.updating=!1)}this.consoleService.updateAccount("",this.account.user.id,{username:this.f.username.value,display_name:this.f.display_name.value,avatar_url:this.f.avatar_url.value,location:this.f.location.value,timezone:this.f.timezone.value,metadata:e}).subscribe(r=>{this.updated=!0,this.updating=!1},r=>{this.error=r,this.updating=!1})}updateAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}get f(){return this.accountForm.controls}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Ui),Ae(ds),Ae(Pl))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&Do(ost,5),2&e){let r;En(r=Mn())&&(i.editor=r.first)}},decls:53,vars:11,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","user_id",1,"d-inline"],["type","text","id","user_id","placeholder","User ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","username",1,"d-inline"],["type","text","id","username","placeholder","Username","required","","formControlName","username",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","display_name",1,"d-inline"],["type","text","id","display_name","placeholder","Display Name","formControlName","display_name",1,"form-control","form-control-sm","my-2"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","avatar_url",1,"d-inline"],["type","text","id","avatar_url","placeholder","Avatar URL","formControlName","avatar_url",1,"form-control","form-control-sm","my-2"],["for","location",1,"d-inline"],["type","text","id","location","placeholder","Location","formControlName","location",1,"form-control","form-control-sm","my-2"],["for","timezone",1,"d-inline"],["type","text","id","timezone","placeholder","Timezone","formControlName","timezone",1,"form-control","form-control-sm","my-2"],[1,"row","mb-3","add-border-single-row-bottom"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","update_time",1,"d-inline"],["type","text","id","update_time","placeholder","Update Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(e,i){1&e&&(ye(0,sst,4,2,"ngb-alert",0),ye(1,ast,4,1,"ngb-alert",1),A(2,"form",2),He("ngSubmit",function(){return i.updateAccount()}),A(3,"div",3)(4,"div",4)(5,"div",5)(6,"label",6),J(7,"User ID"),M()(),je(8,"input",7),M(),A(9,"div",4)(10,"div",5)(11,"label",8),J(12,"Username"),M()(),je(13,"input",9),A(14,"div",10),J(15,"Username is required"),M()()(),A(16,"div",3)(17,"div",4)(18,"div",5)(19,"label",11),J(20,"Display Name"),M()(),je(21,"input",12),M(),A(22,"div",13)(23,"div",5)(24,"label",14),J(25,"Avatar URL"),M()(),je(26,"input",15),M()(),A(27,"div",3)(28,"div",4)(29,"div",5)(30,"label",16),J(31,"Location"),M()(),je(32,"input",17),M(),A(33,"div",13)(34,"div",5)(35,"label",18),J(36,"Timezone"),M()(),je(37,"input",19),M()(),A(38,"div",20)(39,"div",4)(40,"div",5)(41,"label",21),J(42,"Create Time"),M()(),je(43,"input",22),M(),A(44,"div",4)(45,"div",5)(46,"label",23),J(47,"Update Time"),M()(),je(48,"input",24),M()(),A(49,"div",25),je(50,"div",26,27),M(),ye(52,lst,2,1,"button",28),M()),2&e&&(N("ngIf",i.error),I(1),N("ngIf",i.updated),I(1),N("formGroup",i.accountForm),I(6),N("value",i.account.user.id),I(5),N("ngClass",Lr(9,cst,i.f.username.dirty&&i.f.username.errors)),I(1),N("hidden",i.f.username.disabled||i.f.username.valid||i.f.username.pristine),I(29),N("value",i.account.user.create_time),I(5),N("value",i.account.user.update_time),I(4),N("ngIf",i.updateAllowed()))},dependencies:[Pd,Nn,Go,bl,qa,vl,yl,Ff,Ea,Ya]})),t})();function hst(t,n){if(1&t&&(A(0,"ngb-alert",36),je(1,"img",37),A(2,"h6",38),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("An error occurred: ",e.error,"")}}function dst(t,n){1&t&&(A(0,"ngb-alert",39),je(1,"img",40),A(2,"h6",38),J(3,"Account was modified successfully."),M()()),2&t&&N("dismissible",!1)}function fst(t,n){if(1&t&&(A(0,"option",41),J(1),M()),2&t){const e=n.$implicit,i=n.index;Ld("value",i),N("selected",0===i),I(1),Xt(e.id)}}function pst(t,n){1&t&&(A(0,"button",42),J(1,"Save"),M()),2&t&&N("disabled",te().updating)}let gst=(()=>{class t{constructor(e,i,r,o,s){be(this,"route",void 0),be(this,"router",void 0),be(this,"consoleService",void 0),be(this,"authService",void 0),be(this,"formBuilder",void 0),be(this,"error",""),be(this,"account",void 0),be(this,"accountForm",void 0),be(this,"updating",!1),be(this,"updated",!1),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.accountForm=this.formBuilder.group({email:[""],password:[""],selected_device_id_index:[""]}),this.route.parent.data.subscribe(e=>{this.account=e[0].account,this.f.email.setValue(this.account.email),this.f.password.setValue(""),this.f.selected_device_id_index.setValue(0),0===this.account.devices.length&&this.f.selected_device_id_index.disable(),this.updateAllowed()||this.accountForm.disable()},e=>{this.error=e})}updateAccount(){this.error="",this.updated=!1,this.updating=!0;let e={email:this.f.email.value};this.f.password.dirty&&(e.password=this.f.password.value),this.consoleService.updateAccount("",this.account.user.id,e).subscribe(i=>{this.updated=!0,this.updating=!1,this.f.password.reset()},i=>{this.error=i,this.updating=!1})}unlinkDeviceId(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkDevice("",this.account.user.id,{device_id:this.account.devices[this.f.selected_device_id_index.value].id}).subscribe(()=>{this.error="",this.account.devices.splice(this.f.selected_device_id_index.value,1),this.f.selected_device_id_index.setValue(0)},r=>{this.error=r})}unlinkCustomID(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkCustom("",this.account.user.id).subscribe(()=>{this.error="",this.account.custom_id=null},i=>{this.error=i})}unlinkFacebook(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkFacebook("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.facebook_id=null},i=>{this.error=i})}unlinkFacebookInstantGames(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkFacebookInstantGame("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.facebook_instant_game_id=null},i=>{this.error=i})}unlinkApple(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkApple("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.apple_id=null},i=>{this.error=i})}unlinkGameCenter(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkGameCenter("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.gamecenter_id=null},i=>{this.error=i})}unlinkGoogle(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkGoogle("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.google_id=null},i=>{this.error=i})}unlinkSteam(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkSteam("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.steam_id=null},i=>{this.error=i})}updateAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}copyDeviceIdToClipboard(e){const i=document.createElement("textarea");i.style.position="fixed",i.style.left="0",i.style.top="0",i.style.opacity="0",i.value=this.account.devices[e].id,document.body.appendChild(i),i.focus(),i.select(),document.execCommand("copy"),document.body.removeChild(i)}get f(){return this.accountForm.controls}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Ui),Ae(ds),Ae(Pl))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],decls:102,vars:21,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","selected_device_id_index",1,"d-inline"],[1,"input-group"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["src","/static/svg/copy.svg","alt","","width","16","height","",1,""],["id","selected_device_id_index","formControlName","selected_device_id_index",1,"form-control","custom-select","custom-select-sm"],[3,"value","selected",4,"ngFor","ngForOf"],[1,"input-group-append"],["type","button",1,"btn","btn-sm","btn-outline-danger",3,"disabled","click"],["for","custom_id",1,"d-inline"],["type","text","id","custom_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","facebook_id",1,"d-inline"],["type","text","id","facebook_id","disabled","",1,"form-control","form-control-sm",3,"value"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","facebook_instant_game_id",1,"d-inline"],["type","text","id","facebook_instant_game_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","apple_id",1,"d-inline"],["type","text","id","apple_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","gamecenter_id",1,"d-inline"],["type","text","id","gamecenter_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","google_id",1,"d-inline"],["type","text","id","google_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","steam_id",1,"d-inline"],["type","text","id","steam_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","email",1,"d-inline"],["type","text","id","email","placeholder","Email","formControlName","email",1,"form-control","form-control-sm"],["for","password",1,"d-inline"],["type","text","id","password","placeholder","Password","formControlName","password",1,"form-control","form-control-sm"],[1,"row","remove-sides"],[1,"small"],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],[3,"value","selected"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(e,i){1&e&&(ye(0,hst,4,2,"ngb-alert",0),ye(1,dst,4,1,"ngb-alert",1),A(2,"form",2),He("ngSubmit",function(){return i.updateAccount()}),A(3,"div",3)(4,"div",4)(5,"div",5)(6,"label",6),J(7,"Device IDs"),M()(),A(8,"div",7)(9,"button",8),He("click",function(){return i.copyDeviceIdToClipboard(i.f.selected_device_id_index.value)}),je(10,"img",9),J(11," Copy "),M(),A(12,"select",10),ye(13,fst,2,3,"option",11),M(),A(14,"div",12)(15,"button",13),He("click",function(o){return i.unlinkDeviceId(o)}),J(16,"Unlink"),M()()()(),A(17,"div",4)(18,"div",5)(19,"label",14),J(20,"Custom ID"),M()(),A(21,"div",7),je(22,"input",15),A(23,"div",12)(24,"button",13),He("click",function(o){return i.unlinkCustomID(o)}),J(25,"Unlink"),M()()()()(),A(26,"div",3)(27,"div",4)(28,"div",5)(29,"label",16),J(30,"Facebook ID"),M()(),A(31,"div",7),je(32,"input",17),A(33,"div",12)(34,"button",13),He("click",function(o){return i.unlinkFacebook(o)}),J(35,"Unlink"),M()()()(),A(36,"div",18)(37,"div",5)(38,"label",19),J(39,"FB Instant Game ID"),M()(),A(40,"div",7),je(41,"input",20),A(42,"div",12)(43,"button",13),He("click",function(o){return i.unlinkFacebookInstantGames(o)}),J(44,"Unlink"),M()()()()(),A(45,"div",3)(46,"div",4)(47,"div",5)(48,"label",21),J(49,"Apple ID"),M()(),A(50,"div",7),je(51,"input",22),A(52,"div",12)(53,"button",13),He("click",function(o){return i.unlinkApple(o)}),J(54,"Unlink"),M()()()(),A(55,"div",18)(56,"div",5)(57,"label",23),J(58,"GameCenter ID"),M()(),A(59,"div",7),je(60,"input",24),A(61,"div",12)(62,"button",13),He("click",function(o){return i.unlinkGameCenter(o)}),J(63,"Unlink"),M()()()()(),A(64,"div",3)(65,"div",4)(66,"div",5)(67,"label",25),J(68,"Google ID"),M()(),A(69,"div",7),je(70,"input",26),A(71,"div",12)(72,"button",13),He("click",function(o){return i.unlinkGoogle(o)}),J(73,"Unlink"),M()()()(),A(74,"div",4)(75,"div",5)(76,"label",27),J(77,"Steam ID"),M()(),A(78,"div",7),je(79,"input",28),A(80,"div",12)(81,"button",13),He("click",function(o){return i.unlinkSteam(o)}),J(82,"Unlink"),M()()()()(),A(83,"div",3)(84,"div",4)(85,"div",5)(86,"label",29),J(87,"Email"),M(),je(88,"br"),M(),je(89,"input",30),M(),A(90,"div",4)(91,"div",5)(92,"label",31),J(93,"Password"),M()(),je(94,"input",32),M()(),A(95,"div",33)(96,"div",4),je(97,"div",5),A(98,"span",34),J(99),M()(),je(100,"div",4),M(),ye(101,pst,2,1,"button",35),M()),2&e&&(N("ngIf",i.error),I(1),N("ngIf",i.updated),I(1),N("formGroup",i.accountForm),I(11),N("ngForOf",i.account.devices),I(2),N("disabled",!i.updateAllowed()||0===i.account.devices.length),I(7),N("value",i.account.custom_id),I(2),N("disabled",!i.updateAllowed()||!i.account.custom_id||""===i.account.custom_id),I(8),N("value",i.account.user.facebook_id),I(2),N("disabled",!i.updateAllowed()||!i.account.user.facebook_id||""===i.account.user.facebook_id),I(7),N("value",i.account.user.facebook_instant_game_id),I(2),N("disabled",!i.updateAllowed()||!i.account.user.facebook_instant_game_id||""===i.account.user.facebook_instant_game_id),I(8),N("value",i.account.user.apple_id),I(2),N("disabled",!i.updateAllowed()||!i.account.user.apple_id||""===i.account.user.apple_id),I(7),N("value",i.account.user.gamecenter_id),I(2),N("disabled",!i.updateAllowed()||!i.account.user.gamecenter_id||""===i.account.user.gamecenter_id),I(8),N("value",i.account.user.google_id),I(2),N("disabled",!i.updateAllowed()||!i.account.user.google_id||""===i.account.user.google_id),I(7),N("value",i.account.user.steam_id),I(2),N("disabled",!i.updateAllowed()||!i.account.user.steam_id||""===i.account.user.steam_id),I(18),jn("Verification Status: ",null===i.account.verify_time?"Not Verified":"Verified",""),I(2),N("ngIf",i.updateAllowed()))},dependencies:[ti,Nn,Go,bl,by,_y,qa,rv,vl,yl,Ea,Ya],styles:[".custom-select[_ngcontent-%COMP%]{height:auto}"]})),t})();const mst=["editor"];function vst(t,n){if(1&t&&(A(0,"ngb-alert",24),je(1,"img",25),A(2,"h6",26),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("An error occurred: ",e.error,"")}}function yst(t,n){1&t&&(A(0,"ngb-alert",27),je(1,"img",28),A(2,"h6",26),J(3,"Account was modified successfully."),M()()),2&t&&N("dismissible",!1)}function bst(t,n){if(1&t){const e=Bt();A(0,"button",29),He("click",function(){return st(e),at(te().updateWallet())}),J(1,"Save"),M()}2&t&&N("disabled",te().updating)}function _st(t,n){1&t&&(A(0,"th",30),J(1,"Remove"),M())}function wst(t,n){1&t&&(A(0,"tr")(1,"td",31),J(2,"No wallet ledger items found."),M()())}function xst(t,n){1&t&&je(0,"div",37)}function Cst(t,n){1&t&&je(0,"div",38)}function Sst(t,n){if(1&t){const e=Bt();A(0,"td")(1,"button",39),He("click",function(r){st(e);const o=te(),s=o.index,a=o.$implicit;return at(te().deleteLedgerItem(r,s,a))}),J(2,"Delete"),M()()}}function kst(t,n){if(1&t&&(A(0,"tr")(1,"td",40)(2,"pre",41)(3,"small"),J(4),M()()()()),2&t){const e=te().$implicit;I(4),Xt(e.metadata)}}function Dst(t,n){if(1&t){const e=Bt();A(0,"tr")(1,"td")(2,"div",32),He("click",function(){const o=st(e).index,s=te();return at(s.walletLedgerMetadataOpen[o]=!s.walletLedgerMetadataOpen[o])}),ye(3,xst,1,0,"div",33),ye(4,Cst,1,0,"div",34),M(),J(5),M(),A(6,"td",35)(7,"pre",36),J(8),M()(),A(9,"td"),J(10),M(),ye(11,Sst,3,0,"td",22),M(),ye(12,kst,5,1,"tr",22)}if(2&t){const e=n.index,i=n.$implicit,r=te();I(3),N("ngIf",!r.walletLedgerMetadataOpen[e]),I(1),N("ngIf",r.walletLedgerMetadataOpen[e]),I(1),jn(" ",i.id," "),I(3),Xt(i.changeset),I(2),Xt(i.update_time),I(1),N("ngIf",r.deleteAllowed()),I(1),N("ngIf",r.walletLedgerMetadataOpen[e])}}let Tst=(()=>{class t{constructor(e,i,r,o){be(this,"route",void 0),be(this,"router",void 0),be(this,"consoleService",void 0),be(this,"authService",void 0),be(this,"editor",void 0),be(this,"jsonEditor",void 0),be(this,"error",""),be(this,"account",void 0),be(this,"walletLedger",[]),be(this,"walletLedgerMetadataOpen",[]),be(this,"updating",!1),be(this,"updated",!1),be(this,"nextCursor",""),be(this,"prevCursor",""),be(this,"limit",100),be(this,"userID",void 0),this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.userID=this.route.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(e=>{this.walletLedger.length=0,this.walletLedger.push(...e[0].items),this.walletLedgerMetadataOpen.length=this.walletLedger.length,this.nextCursor=e[0].next_cursor,this.prevCursor=e[0].prev_cursor},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}loadData(e){this.consoleService.getWalletLedger("",this.userID,this.limit,e).subscribe(i=>{this.walletLedger=i.items,this.walletLedgerMetadataOpen=[],this.nextCursor=i.next_cursor,this.prevCursor=i.prev_cursor},i=>{this.error=i})}ngAfterViewInit(){this.jsonEditor=new x$({target:this.editor.nativeElement,props:{readOnly:!this.updateAllowed(),content:{text:this.account.wallet}}})}updateWallet(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=this.jsonEditor.get().text}catch(r){return this.error=r,void(this.updating=!1)}this.consoleService.updateAccount("",this.account.user.id,{wallet:e}).subscribe(r=>{this.updated=!0,this.updating=!1},r=>{this.error=r,this.updating=!1})}updateAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}deleteLedgerItem(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteWalletLedger("",this.account.user.id,r.id).subscribe(()=>{this.error="",this.walletLedger.splice(i,1),this.walletLedgerMetadataOpen.splice(i,1)},o=>{this.error=o})}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Ui),Ae(ds))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&Do(mst,5),2&e){let r;En(r=Mn())&&(i.editor=r.first)}},decls:32,vars:9,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","button","class","btn btn-primary",3,"disabled","click",4,"ngIf"],[1,"my-4"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered"],[1,"thead-light"],[2,"width","315px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],["ngFor","",3,"ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","button",1,"btn","btn-primary",3,"disabled","click"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],[1,"align-middle"],[1,"m-0","p-0"],[1,"arrow-right"],[1,"arrow-down"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],["colspan","5",1,"align-middle"],[1,"pre-wrap","m-0","p-0"]],template:function(e,i){1&e&&(ye(0,vst,4,2,"ngb-alert",0),ye(1,yst,4,1,"ngb-alert",1),A(2,"div",2),je(3,"div",3,4),M(),ye(5,bst,2,1,"button",5),je(6,"hr",6),A(7,"div",7)(8,"div",8),je(9,"div",9),A(10,"div",10)(11,"div",11)(12,"button",12),He("click",function(){return i.loadData("")}),je(13,"img",13),M(),A(14,"button",12),He("click",function(){return i.loadData(i.prevCursor)}),je(15,"img",14),M(),A(16,"button",12),He("click",function(){return i.loadData(i.nextCursor)}),je(17,"img",15),M()()()()(),A(18,"div",16)(19,"table",17)(20,"thead",18)(21,"tr")(22,"th",19),J(23,"ID"),M(),A(24,"th"),J(25,"Changeset"),M(),A(26,"th",20),J(27,"Update Time"),M(),ye(28,_st,2,0,"th",21),M()(),A(29,"tbody"),ye(30,wst,3,0,"tr",22),ye(31,Dst,13,7,"ng-template",23),M()()()),2&e&&(N("ngIf",i.error),I(1),N("ngIf",i.updated),I(4),N("ngIf",i.updateAllowed()),I(7),N("disabled",0===i.walletLedger.length),I(2),N("disabled",""===i.prevCursor),I(2),N("disabled",""===i.nextCursor),I(12),N("ngIf",i.deleteAllowed()),I(2),N("ngIf",0===i.walletLedger.length),I(1),N("ngForOf",i.walletLedger))},dependencies:[ti,Nn,Go],styles:[".pre-wrap[_ngcontent-%COMP%]{word-wrap:anywhere;word-break:break-all;white-space:pre-wrap}"]})),t})(),Ast=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getWalletLedger("",r,100,"")}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Est(t,n){if(1&t&&(A(0,"ngb-alert",10),je(1,"img",11),A(2,"h6",12),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("An error occurred: ",e.error,"")}}function Mst(t,n){1&t&&(A(0,"th",13),J(1,"Remove"),M())}function Ist(t,n){1&t&&(A(0,"tr")(1,"td",14),J(2,"No friends found."),M()())}function Fst(t,n){1&t&&(A(0,"span"),J(1,"Friend (0)"),M())}function Lst(t,n){1&t&&(A(0,"span"),J(1,"Invite Sent (1)"),M())}function Ost(t,n){1&t&&(A(0,"span"),J(1,"Invite Received (2)"),M())}function Nst(t,n){1&t&&(A(0,"span"),J(1,"Blocked (3)"),M())}function Rst(t,n){if(1&t){const e=Bt();A(0,"td",16)(1,"button",17),He("click",function(r){st(e);const o=te(),s=o.index,a=o.$implicit;return at(te().deleteFriend(r,s,a))}),J(2,"Delete"),M()()}}function $st(t,n){if(1&t&&(A(0,"tr")(1,"td"),J(2),M(),A(3,"td"),J(4),M(),A(5,"td"),ye(6,Fst,2,0,"span",8),ye(7,Lst,2,0,"span",8),ye(8,Ost,2,0,"span",8),ye(9,Nst,2,0,"span",8),M(),A(10,"td"),J(11),M(),ye(12,Rst,3,0,"td",15),M()),2&t){const e=n.$implicit,i=te();I(2),Xt(e.user.id),I(2),Xt(e.user.username),I(2),N("ngIf",0===e.state),I(1),N("ngIf",1===e.state),I(1),N("ngIf",2===e.state),I(1),N("ngIf",3===e.state),I(2),Xt(e.update_time),I(1),N("ngIf",i.deleteAllowed())}}let Pst=(()=>{class t{constructor(e,i,r,o){be(this,"route",void 0),be(this,"router",void 0),be(this,"consoleService",void 0),be(this,"authService",void 0),be(this,"error",""),be(this,"account",void 0),be(this,"friends",[]),this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.friends.length=0,this.friends.push(...e[0].friends)},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}deleteAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}deleteFriend(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteFriend("",this.account.user.id,r.user.id).subscribe(()=>{this.error="",this.friends.splice(i,1)},o=>{this.error=o})}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Ui),Ae(ds))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],decls:17,vars:4,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","300px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(e,i){1&e&&(ye(0,Est,4,2,"ngb-alert",0),A(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr")(5,"th",4),J(6,"User ID"),M(),A(7,"th"),J(8,"Username"),M(),A(9,"th",5),J(10,"State"),M(),A(11,"th",6),J(12,"Update Time"),M(),ye(13,Mst,2,0,"th",7),M()(),A(14,"tbody"),ye(15,Ist,3,0,"tr",8),ye(16,$st,13,8,"tr",9),M()()()),2&e&&(N("ngIf",i.error),I(13),N("ngIf",i.deleteAllowed()),I(2),N("ngIf",0===i.friends.length),I(1),N("ngForOf",i.friends))},dependencies:[ti,Nn,Go],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})),t})(),jst=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getFriends("",r)}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Bst(t,n){if(1&t&&(A(0,"ngb-alert",10),je(1,"img",11),A(2,"h6",12),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("An error occurred: ",e.error,"")}}function Hst(t,n){1&t&&(A(0,"th",13),J(1,"Remove"),M())}function Vst(t,n){1&t&&(A(0,"tr")(1,"td",14),J(2,"No group membership found."),M()())}function zst(t,n){1&t&&(A(0,"span"),J(1,"Superadmin (0)"),M())}function Ust(t,n){1&t&&(A(0,"span"),J(1,"Admin (1)"),M())}function Wst(t,n){1&t&&(A(0,"span"),J(1,"Member (2)"),M())}function Gst(t,n){1&t&&(A(0,"span"),J(1,"Join Request (3)"),M())}function qst(t,n){1&t&&(A(0,"span"),J(1,"Banned (4)"),M())}function Xst(t,n){if(1&t){const e=Bt();A(0,"td")(1,"button",16),He("click",function(r){st(e);const o=te(),s=o.index,a=o.$implicit;return at(te().deleteGroupUser(r,s,a))}),J(2,"Delete"),M()()}}function Yst(t,n){if(1&t){const e=Bt();A(0,"tr")(1,"td",15),He("click",function(){const o=st(e).$implicit;return at(te().viewAccount(o))}),J(2),M(),A(3,"td",15),He("click",function(){const o=st(e).$implicit;return at(te().viewAccount(o))}),J(4),M(),A(5,"td",15),He("click",function(){const o=st(e).$implicit;return at(te().viewAccount(o))}),ye(6,zst,2,0,"span",8),ye(7,Ust,2,0,"span",8),ye(8,Wst,2,0,"span",8),ye(9,Gst,2,0,"span",8),ye(10,qst,2,0,"span",8),M(),A(11,"td",15),He("click",function(){const o=st(e).$implicit;return at(te().viewAccount(o))}),J(12),M(),ye(13,Xst,3,0,"td",8),M()}if(2&t){const e=n.$implicit,i=te();I(2),Xt(e.group.id),I(2),Xt(e.group.name),I(2),N("ngIf",0===e.state),I(1),N("ngIf",1===e.state),I(1),N("ngIf",2===e.state),I(1),N("ngIf",3===e.state),I(1),N("ngIf",4===e.state),I(2),Xt(e.group.update_time),I(1),N("ngIf",i.deleteAllowed())}}let Kst=(()=>{class t{constructor(e,i,r,o){be(this,"route",void 0),be(this,"router",void 0),be(this,"consoleService",void 0),be(this,"authService",void 0),be(this,"error",""),be(this,"account",void 0),be(this,"groups",[]),this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.groups.length=0,this.groups.push(...e[0].user_groups)},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}deleteAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}deleteGroupUser(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteGroupUser("",this.account.user.id,r.group.id).subscribe(()=>{this.error="",this.groups.splice(i,1)},o=>{this.error=o})}viewAccount(e){this.router.navigate(["/groups",e.group.id],{relativeTo:this.route})}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Ui),Ae(ds))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],decls:17,vars:4,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","300px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(e,i){1&e&&(ye(0,Bst,4,2,"ngb-alert",0),A(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr")(5,"th",4),J(6,"Group ID"),M(),A(7,"th"),J(8,"Name"),M(),A(9,"th",5),J(10,"State"),M(),A(11,"th",6),J(12,"Update Time"),M(),ye(13,Hst,2,0,"th",7),M()(),A(14,"tbody"),ye(15,Vst,3,0,"tr",8),ye(16,Yst,14,9,"tr",9),M()()()),2&e&&(N("ngIf",i.error),I(13),N("ngIf",i.deleteAllowed()),I(2),N("ngIf",0===i.groups.length),I(1),N("ngForOf",i.groups))},dependencies:[ti,Nn,Go],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})),t})(),Jst=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getGroups("",r)}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();var ka=Ye(682);const Qst=["editor"];function Zst(t,n){if(1&t&&(A(0,"ngb-alert",34),je(1,"img",35),A(2,"h6",36),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("An error occurred: ",e.error,"")}}function eat(t,n){1&t&&(A(0,"ngb-alert",37),je(1,"img",38),A(2,"h6",36),J(3,"Group was modified successfully."),M()()),2&t&&N("dismissible",!1)}function tat(t,n){1&t&&(A(0,"button",39),J(1,"Save"),M()),2&t&&N("disabled",te().updating)}const nat=function(t){return["/accounts",t]},iat=function(t){return{"is-invalid":t}};let rat=(()=>{class t{constructor(e,i,r,o,s){be(this,"route",void 0),be(this,"router",void 0),be(this,"consoleService",void 0),be(this,"authService",void 0),be(this,"formBuilder",void 0),be(this,"editor",void 0),be(this,"aceEditor",void 0),be(this,"error",""),be(this,"group",void 0),be(this,"groupForm",void 0),be(this,"updating",!1),be(this,"updated",!1),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.groupForm=this.formBuilder.group({name:["",Wo.required],description:[""],avatar_url:[""],lang_tag:[""],open:[""],max_count:[""]}),this.route.parent.data.subscribe(e=>{this.group=e[0],this.f.name.setValue(this.group.name),this.f.description.setValue(this.group.description),this.f.avatar_url.setValue(this.group.avatar_url),this.f.lang_tag.setValue(this.group.lang_tag),this.f.open.setValue(this.group.open),this.f.max_count.setValue(this.group.max_count),this.updateAllowed()||this.groupForm.disable()},e=>{this.error=e})}ngAfterViewInit(){ka.config.set("fontSize","14px"),ka.config.set("printMarginColumn",0),ka.config.set("useWorker",!0),ka.config.set("highlightSelectedWord",!0),ka.config.set("fontFamily",'"Courier New", Courier, monospace'),this.aceEditor=ka.edit(this.editor.nativeElement),this.aceEditor.setReadOnly(!this.updateAllowed());const e=JSON.stringify(JSON.parse(this.group.metadata),null,2);this.aceEditor.session.setValue(e)}updateGroup(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=JSON.stringify(JSON.parse(this.aceEditor.session.getValue()))}catch(r){return this.error=r,void(this.updating=!1)}if(this.f.max_count.value{this.updated=!0,this.updating=!1},r=>{this.error=r,this.updating=!1})}updateAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}get f(){return this.groupForm.controls}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Ui),Ae(ds),Ae(Pl))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&Do(Qst,5),2&e){let r;En(r=Mn())&&(i.editor=r.first)}},decls:71,vars:16,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","group_id",1,"d-inline"],["type","text","id","group_id","placeholder","Group ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","creator_id",1,"d-inline"],[2,"width","100%",3,"routerLink"],["type","text","id","creator_id","placeholder","Creator ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","name",1,"d-inline"],["type","text","id","name","placeholder","Name","required","","formControlName","name",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","description",1,"d-inline"],["type","text","id","description","placeholder","Description","formControlName","description",1,"form-control","form-control-sm","my-2"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","avatar_url",1,"d-inline"],["type","text","id","avatar_url","placeholder","Avatar URL","formControlName","avatar_url",1,"form-control","form-control-sm","my-2"],["for","lang_tag",1,"d-inline"],["type","text","id","lang_tag","placeholder","Language","formControlName","lang_tag",1,"form-control","form-control-sm","my-2"],["type","text","id","edge_count","placeholder","Members","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","max_count",1,"d-inline"],["type","text","id","max_count","placeholder","Max Count","formControlName","max_count",1,"form-control","form-control-sm","my-2"],["type","checkbox","id","open","formControlName","open",1,"my-2"],[1,"row","mb-3","add-border-single-row-bottom"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","update_time",1,"d-inline"],["type","text","id","update_time","placeholder","Update Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"card","p-2","mb-3",2,"height","400px"],[2,"height","400px"],["editor",""],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(e,i){1&e&&(ye(0,Zst,4,2,"ngb-alert",0),ye(1,eat,4,1,"ngb-alert",1),A(2,"form",2),He("ngSubmit",function(){return i.updateGroup()}),A(3,"div",3)(4,"div",4)(5,"div",5)(6,"label",6),J(7,"Group ID"),M()(),je(8,"input",7),M(),A(9,"div",4)(10,"div",5)(11,"label",8),J(12,"Creator ID"),M()(),A(13,"a",9),je(14,"input",10),M()()(),A(15,"div",3)(16,"div",4)(17,"div",5)(18,"label",11),J(19,"Name"),M()(),je(20,"input",12),A(21,"div",13),J(22,"Name is required"),M()(),A(23,"div",4)(24,"div",5)(25,"label",14),J(26,"Description"),M()(),je(27,"input",15),M()(),A(28,"div",3)(29,"div",16)(30,"div",5)(31,"label",17),J(32,"Avatar URL"),M()(),je(33,"input",18),M(),A(34,"div",4)(35,"div",5)(36,"label",19),J(37,"Language"),M()(),je(38,"input",20),M()(),A(39,"div",3)(40,"div",4)(41,"div",5)(42,"label",8),J(43,"Members"),M()(),je(44,"input",21),M(),A(45,"div",16)(46,"div",5)(47,"label",22),J(48,"Max Count"),M()(),je(49,"input",23),M()(),A(50,"div",3)(51,"div",16)(52,"div",5)(53,"label",22),J(54,"Open"),M()(),je(55,"input",24),M()(),A(56,"div",25)(57,"div",4)(58,"div",5)(59,"label",26),J(60,"Create Time"),M()(),je(61,"input",27),M(),A(62,"div",4)(63,"div",5)(64,"label",28),J(65,"Update Time"),M()(),je(66,"input",29),M()(),A(67,"div",30),je(68,"div",31,32),M(),ye(70,tat,2,1,"button",33),M()),2&e&&(N("ngIf",i.error),I(1),N("ngIf",i.updated),I(1),N("formGroup",i.groupForm),I(6),N("value",i.group.id),I(5),N("routerLink",Lr(12,nat,i.group.creator_id)),I(1),N("value",i.group.creator_id),I(6),N("ngClass",Lr(14,iat,i.f.name.dirty&&i.f.name.errors)),I(1),N("hidden",i.f.name.disabled||i.f.name.valid||i.f.name.pristine),I(23),N("value",i.group.edge_count),I(17),N("value",i.group.create_time),I(5),N("value",i.group.update_time),I(4),N("ngIf",i.updateAllowed()))},dependencies:[Ru,Pd,Nn,Go,bl,qa,oC,vl,yl,Ff,Ea,Ya]})),t})();function oat(t,n){if(1&t&&(A(0,"ngb-alert",13),je(1,"img",14),A(2,"h6",15),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("An error occurred: ",e.error,"")}}function sat(t,n){1&t&&(A(0,"span"),J(1,"Add by membership state"),M())}function aat(t,n){if(1&t&&(A(0,"span"),J(1),M()),2&t){const e=te(2);I(1),Xt(e.activeState)}}function lat(t,n){if(1&t){const e=Bt();A(0,"button",20),He("click",function(){const o=st(e).$implicit;return at(te(2).activeState=o)}),J(1),M()}if(2&t){const e=n.$implicit;I(1),Xt(e)}}function cat(t,n){if(1&t&&(A(0,"div",16)(1,"button",17),ye(2,sat,2,0,"span",11),ye(3,aat,2,1,"span",11),M(),A(4,"div",18),ye(5,lat,2,1,"button",19),M()()),2&t){const e=te();I(2),N("ngIf",!e.activeState||""===e.activeState),I(1),N("ngIf",e.activeState&&""!==e.activeState),I(2),N("ngForOf",e.states)}}function uat(t,n){if(1&t){const e=Bt();A(0,"div",21)(1,"div",22)(2,"div",23)(3,"form",24)(4,"div",25),je(5,"input",26),A(6,"div",27)(7,"div",28)(8,"button",29),He("click",function(){return st(e),at(te().add())}),J(9,"Add"),M()()()()()()()()}if(2&t){const e=te();I(3),N("formGroup",e.addForm)}}function hat(t,n){1&t&&(A(0,"th",30),J(1,"Demote"),M())}function dat(t,n){1&t&&(A(0,"th",30),J(1,"Promote"),M())}function fat(t,n){1&t&&(A(0,"th",31),J(1,"Remove"),M())}function pat(t,n){1&t&&(A(0,"tr")(1,"td",32),J(2,"No group membership found."),M()())}function gat(t,n){1&t&&(A(0,"span"),J(1,"Superadmin (0)"),M())}function mat(t,n){1&t&&(A(0,"span"),J(1,"Admin (1)"),M())}function vat(t,n){1&t&&(A(0,"span"),J(1,"Member (2)"),M())}function yat(t,n){1&t&&(A(0,"span"),J(1,"Join Request (3)"),M())}function bat(t,n){1&t&&(A(0,"span"),J(1,"Banned (4)"),M())}function _at(t,n){if(1&t){const e=Bt();A(0,"td",36)(1,"button",37),He("click",function(r){st(e);const o=te(),s=o.index,a=o.$implicit;return at(te().demoteGroupUser(r,s,a))}),kt(),A(2,"svg",38),je(3,"path",39),M()()()}}function wat(t,n){if(1&t){const e=Bt();A(0,"td",36)(1,"button",37),He("click",function(r){st(e);const o=te(),s=o.index,a=o.$implicit;return at(te().promoteGroupUser(r,s,a))}),kt(),A(2,"svg",40),je(3,"path",41),M()()()}}function xat(t,n){if(1&t){const e=Bt();A(0,"td",42)(1,"button",43),He("click",function(r){st(e);const o=te(),s=o.index,a=o.$implicit;return at(te().deleteGroupUser(r,s,a))}),J(2,"Delete"),M()()}}function Cat(t,n){if(1&t){const e=Bt();A(0,"tr")(1,"td",33),He("click",function(){const o=st(e).$implicit;return at(te().viewAccount(o))}),J(2),M(),A(3,"td",33),He("click",function(){const o=st(e).$implicit;return at(te().viewAccount(o))}),J(4),M(),A(5,"td",33),He("click",function(){const o=st(e).$implicit;return at(te().viewAccount(o))}),ye(6,gat,2,0,"span",11),ye(7,mat,2,0,"span",11),ye(8,vat,2,0,"span",11),ye(9,yat,2,0,"span",11),ye(10,bat,2,0,"span",11),M(),A(11,"td",33),He("click",function(){const o=st(e).$implicit;return at(te().viewAccount(o))}),J(12),M(),ye(13,_at,4,0,"td",34),ye(14,wat,4,0,"td",34),ye(15,xat,3,0,"td",35),M()}if(2&t){const e=n.$implicit,i=te();I(2),Xt(e.user.id),I(2),Xt(e.user.username),I(2),N("ngIf",0===e.state),I(1),N("ngIf",1===e.state),I(1),N("ngIf",2===e.state),I(1),N("ngIf",3===e.state),I(1),N("ngIf",4===e.state),I(2),Xt(e.user.update_time),I(1),N("ngIf",i.editionAllowed()),I(1),N("ngIf",i.editionAllowed()),I(1),N("ngIf",i.editionAllowed())}}let Sat=(()=>{class t{constructor(e,i,r,o,s){be(this,"route",void 0),be(this,"router",void 0),be(this,"consoleService",void 0),be(this,"formBuilder",void 0),be(this,"authService",void 0),be(this,"error",""),be(this,"group",void 0),be(this,"members",[]),be(this,"activeState","Add Member"),be(this,"states",["Add Member","Join"]),be(this,"addForm",void 0),this.route=e,this.router=i,this.consoleService=r,this.formBuilder=o,this.authService=s,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.addForm=this.formBuilder.group({ids:[""]})}ngOnInit(){this.route.data.subscribe(e=>{this.members.length=0,this.members.push(...e[0].group_users)},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.group=e[0]},e=>{this.error=e})}editionAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}deleteGroupUser(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteGroupUser("",r.user.id,this.group.id).subscribe(()=>{this.members.splice(i,1)},o=>{this.error=o})}demoteGroupUser(e,i,r){this.error="",this.consoleService.demoteGroupMember("",this.group.id,r.user.id).subscribe(()=>{this.members[i].state++},o=>{this.error=o})}promoteGroupUser(e,i,r){this.error="",this.consoleService.promoteGroupMember("",this.group.id,r.user.id).subscribe(()=>{this.members[i].state--},o=>{this.error=o})}viewAccount(e){this.router.navigate(["/accounts",e.user.id],{relativeTo:this.route})}add(){this.consoleService.addGroupUsers("",this.group.id,{ids:this.f.ids.value,join_request:"Join"===this.activeState}).subscribe(()=>{this.error="",this.router.navigate([this.router.url])},i=>{this.error=i})}get f(){return this.addForm.controls}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Ui),Ae(Pl),Ae(ds))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],decls:21,vars:8,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["class","btn-group mb-1","ngbDropdown","",4,"ngIf"],["class","row no-gutters mb-4",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","300px"],[2,"width","180px"],["style","width: 70px",4,"ngIf"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["ngbDropdown","",1,"btn-group","mb-1"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],["type","button","ngbDropdownItem","",3,"click"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup"],[1,"input-group"],["id","ids","type","text","formControlName","ids","placeholder","Add user IDs as members, comma-separated",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","submit",1,"btn","btn-primary","dropdown-radius-left",3,"click"],[2,"width","70px"],[2,"width","90px"],["colSpan","7",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],["class","text-center align-middle",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-outline-secondary",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-arrow-down"],["fill-rule","evenodd","d","M8 1a.5.5 0 0 1 .5.5v11.793l3.146-3.147a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L7.5 13.293V1.5A.5.5 0 0 1 8 1z"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-arrow-up"],["fill-rule","evenodd","d","M8 15a.5.5 0 0 0 .5-.5V2.707l3.146 3.147a.5.5 0 0 0 .708-.708l-4-4a.5.5 0 0 0-.708 0l-4 4a.5.5 0 1 0 .708.708L7.5 2.707V14.5a.5.5 0 0 0 .5.5z"],[1,"text-center","align-middle"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(e,i){1&e&&(ye(0,oat,4,2,"ngb-alert",0),ye(1,cat,6,3,"div",1),ye(2,uat,10,1,"div",2),A(3,"div",3)(4,"table",4)(5,"thead",5)(6,"tr")(7,"th",6),J(8,"User ID"),M(),A(9,"th"),J(10,"Name"),M(),A(11,"th",7),J(12,"State"),M(),A(13,"th",8),J(14,"Update Time"),M(),ye(15,hat,2,0,"th",9),ye(16,dat,2,0,"th",9),ye(17,fat,2,0,"th",10),M()(),A(18,"tbody"),ye(19,pat,3,0,"tr",11),ye(20,Cat,16,11,"tr",12),M()()()),2&e&&(N("ngIf",i.error),I(1),N("ngIf",!i.group.open&&i.editionAllowed()),I(1),N("ngIf",i.editionAllowed()),I(13),N("ngIf",i.editionAllowed()),I(1),N("ngIf",i.editionAllowed()),I(1),N("ngIf",i.editionAllowed()),I(2),N("ngIf",0===i.members.length),I(1),N("ngForOf",i.members))},dependencies:[ti,Nn,Go,Bu,rg,Rf,Nf,bl,qa,vl,yl,Ea,Ya],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}.dropdown-radius-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}"]})),t})(),kat=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getMembers("",r)}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Dat(t,n){if(1&t&&(A(0,"ngb-alert",28),je(1,"img",29),A(2,"h6",30),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("An error occurred: ",e.error,"")}}function Tat(t,n){if(1&t&&(A(0,"span"),J(1),M()),2&t){const e=te();I(1),Xt(e.activeType)}}function Aat(t,n){if(1&t){const e=Bt();A(0,"button",31),He("click",function(){const o=st(e).$implicit;return at(te().activeType=o)}),J(1),M()}if(2&t){const e=n.$implicit;I(1),Xt(e)}}function Eat(t,n){if(1&t&&(A(0,"span"),J(1),M()),2&t){const e=te();I(1),Xt(e.activeNode)}}function Mat(t,n){if(1&t){const e=Bt();A(0,"button",31),He("click",function(){const o=st(e).$implicit;return at(te().activeNode=o)}),J(1),M()}if(2&t){const e=n.$implicit;I(1),Xt(e)}}function Iat(t,n){1&t&&(A(0,"tr")(1,"td",32),J(2,"No realtime matches were found."),M()())}function Fat(t,n){1&t&&je(0,"div",40)}function Lat(t,n){1&t&&je(0,"div",41)}function Oat(t,n){if(1&t){const e=Bt();A(0,"div",37),He("click",function(){st(e);const r=te(),o=r.index,s=r.$implicit,a=te();return a.getMatchState(o,s),at(a.matchStatesOpen[o]=!a.matchStatesOpen[o])}),ye(1,Fat,1,0,"div",38),ye(2,Lat,1,0,"div",39),M()}if(2&t){const e=te().index,i=te();I(1),N("ngIf",!i.matchStatesOpen[e]),I(1),N("ngIf",i.matchStatesOpen[e])}}function Nat(t,n){1&t&&je(0,"div",42)}function Rat(t,n){1&t&&(A(0,"span"),J(1,"Yes"),M())}function $at(t,n){1&t&&(A(0,"span"),J(1,"No"),M())}function Pat(t,n){1&t&&je(0,"img",51)}function jat(t,n){if(1&t&&(A(0,"div")(1,"small")(2,"b"),J(3,"Current Tick"),M()(),A(4,"pre",47)(5,"small"),J(6),M()(),A(7,"small")(8,"b"),J(9,"Match State"),M()(),A(10,"pre",47)(11,"small"),J(12),M()()()),2&t){const e=te(2).index,i=te();I(6),Xt(i.matchStates[e].tick),I(6),Xt(i.matchStates[e].state)}}function Bat(t,n){1&t&&je(0,"img",51)}function Hat(t,n){if(1&t&&(A(0,"pre",47)(1,"small"),J(2),M()()),2&t){const e=te(2).index,i=te();I(2),Xt(i.getMatchPresencesString(i.matchStates[e].presences))}}function Vat(t,n){if(1&t&&(A(0,"tr",43)(1,"td",44)(2,"div",45)(3,"div",46)(4,"small")(5,"b"),J(6,"Match Label"),M()(),A(7,"pre",47)(8,"small"),J(9),M()()(),A(10,"div",48),ye(11,Pat,1,0,"img",49),ye(12,jat,13,2,"div",7),M(),A(13,"div",48)(14,"small")(15,"b"),J(16,"Match Presences"),M()(),ye(17,Bat,1,0,"img",49),ye(18,Hat,3,1,"pre",50),M()()()()),2&t){const e=te(),i=e.$implicit,r=e.index,o=te();I(9),Xt(i.api_match.label),I(2),N("ngIf",!o.matchStates[r]||null===o.matchStates[r]),I(1),N("ngIf",null!==o.matchStates[r]),I(5),N("ngIf",!o.matchStates[r]||null===o.matchStates[r]),I(1),N("ngIf",null!==o.matchStates[r])}}function zat(t,n){if(1&t&&(A(0,"tr")(1,"td"),ye(2,Oat,3,2,"div",33),ye(3,Nat,1,0,"div",34),J(4),M(),A(5,"td"),J(6),M(),A(7,"td",35),ye(8,Rat,2,0,"span",7),ye(9,$at,2,0,"span",7),M(),A(10,"td"),J(11),M(),A(12,"td"),J(13),M(),A(14,"td"),J(15),M()(),ye(16,Vat,19,5,"tr",36)),2&t){const e=n.index,i=n.$implicit,r=te();I(2),N("ngIf",i.api_match.authoritative),I(1),N("ngIf",!i.api_match.authoritative),I(1),jn(" ",i.api_match.match_id," "),I(2),Xt(i.api_match.size),I(2),N("ngIf",i.api_match.authoritative),I(1),N("ngIf",!i.api_match.authoritative),I(2),Xt(i.node),I(2),Xt(i.api_match.handler_name),I(2),Xt(i.api_match.authoritative?i.api_match.tick_rate:"-"),I(1),N("ngIf",r.matchStatesOpen[e])}}let Uat=(()=>{class t{constructor(e,i,r,o){be(this,"route",void 0),be(this,"router",void 0),be(this,"formBuilder",void 0),be(this,"consoleService",void 0),be(this,"error",""),be(this,"matches",[]),be(this,"matchStates",[]),be(this,"matchStatesOpen",[]),be(this,"updated",!1),be(this,"searchForm1",void 0),be(this,"searchForm2",void 0),be(this,"searchForm3",void 0),be(this,"type",void 0),be(this,"activeType","All"),be(this,"types",["All","Authoritative","Relayed"]),be(this,"activeNode","All Nodes"),be(this,"nodes",["All Nodes"]),this.route=e,this.router=i,this.formBuilder=r,this.consoleService=o,this.searchForm1=this.formBuilder.group({match_id:""}),this.searchForm2=this.formBuilder.group({match_id:""}),this.searchForm3=this.formBuilder.group({query:""})}ngOnInit(){const e=this.route.snapshot.queryParamMap;this.f1.match_id.setValue(e.get("match_id")),this.f2.match_id.setValue(e.get("match_id")),this.f3.query.setValue(e.get("query"));let i=e.get("type");this.type=Number(i);let r=e.get("node");if(this.route.data.subscribe(o=>{console.log(o),o&&(o[0]&&(this.error="",this.matches.length=0,this.matches.push(...o[0].matches),this.matchStates.length=this.matches.length,this.matchStatesOpen.length=this.matches.length),o[1]&&this.nodes.push(...o[1]),o.error&&(this.error=o.error))},o=>{this.error=o}),null===i?(this.type=0,this.activeType=this.types[0]):0==this.type||1==this.type||2==this.type?this.activeType=this.types[this.type]:this.error="Invalid type",null!==r){let o=!1;this.nodes.forEach(s=>{r===s&&(this.activeNode=r,o=!0)}),o||(this.error="Invalid node.")}}search(){const e=this.getType();this.type=e,Xge(this.consoleService,e,0==e?this.f1.match_id.value:this.f2.match_id.value,this.f3.query.value,this.activeNode===this.nodes[0]?"":this.activeNode).subscribe(i=>this.postData(i),i=>{this.error=i})}postData(e){let i;switch(this.error="",this.matches.length=0,this.matches.push(...e.matches),this.matchStates.length=this.matches.length,this.matchStatesOpen.length=this.matches.length,this.type){case 0:i={type:this.type,match_id:this.f1.match_id.value};break;case 1:i={type:this.type,query:this.f3.query.value},this.activeNode!==this.nodes[0]&&(i.node=this.activeNode);break;case 2:i={type:this.type,match_id:this.f2.match_id.value}}this.router.navigate([],{relativeTo:this.route,queryParams:i})}getType(){let e=0;return this.types.forEach((i,r)=>{this.activeType===i&&(e=r)}),e}getMatchState(e,i){this.matchStatesOpen[e]||(this.matchStates[e]=null,this.error="",this.consoleService.getMatchState("",i.api_match.match_id).subscribe(r=>{this.matchStatesOpen[e]=!0,this.matchStates[e]=r},r=>{this.matchStatesOpen[e]=!1,this.matchStates[e]=null,this.error=r}))}getMatchPresencesString(e){return JSON.stringify(e)}get f1(){return this.searchForm1.controls}get f2(){return this.searchForm2.controls}get f3(){return this.searchForm3.controls}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Pl),Ae(Ui))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],decls:53,vars:16,consts:[[1,"pb-1"],[1,"pb-4"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"input-group","mb-1"],[1,"input-group-prepend"],["ngbDropdown","",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary","dropdown-radius-right"],[4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],[1,"input-group-append"],["type","submit",1,"btn","btn-primary",3,"click"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"hidden","formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","match_id","placeholder","Filter by match ID",1,"form-control"],["type","text","formControlName","query","placeholder","Filter by query or match ID",1,"form-control","border-right-0"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary","dropdown-radius-left"],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered"],[1,"thead-light"],[2,"width","140px"],[2,"width","100px"],[2,"width","130px"],[2,"width","90px"],["ngFor","",3,"ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","button","ngbDropdownItem","",3,"click"],["colSpan","8",1,"text-muted"],["class","arrow",3,"click",4,"ngIf"],["class","d-inline-block mr-3",4,"ngIf"],[1,"text-center"],["class","open-row",4,"ngIf"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"d-inline-block","mr-3"],[1,"open-row"],["colspan","6",1,"align-middle"],[1,"d-flex","p-0"],[1,"p-3","w-33","border"],[1,"pre-wrap","m-0","p-0"],[1,"p-3","w-33","border","border-left-0"],["src","/static/spinner.svg","class","d-block","width","16",4,"ngIf"],["class","pre-wrap m-0 p-0",4,"ngIf"],["src","/static/spinner.svg","width","16",1,"d-block"]],template:function(e,i){1&e&&(A(0,"h2",0),J(1,"Active Matches"),M(),A(2,"h6",1),J(3),M(),ye(4,Dat,4,2,"ngb-alert",2),A(5,"div",3)(6,"div",4)(7,"div",5)(8,"button",6),ye(9,Tat,2,1,"span",7),M(),A(10,"div",8),ye(11,Aat,2,1,"button",9),M()()(),A(12,"div",10)(13,"button",11),He("click",function(){return i.search()}),J(14,"Search"),M()()(),A(15,"div",12)(16,"div",13)(17,"div",14)(18,"form",15),He("ngSubmit",function(){return i.search()}),A(19,"div",16),je(20,"input",17),M()(),A(21,"form",15),He("ngSubmit",function(){return i.search()}),A(22,"div",16),je(23,"input",17),M()(),A(24,"form",15),He("ngSubmit",function(){return i.search()}),A(25,"div",16),je(26,"input",18),A(27,"div",10)(28,"div",5)(29,"button",19),ye(30,Eat,2,1,"span",7),M(),A(31,"div",8),ye(32,Mat,2,1,"button",9),M()()()()()()()(),A(33,"div",20)(34,"table",21)(35,"thead",22)(36,"tr")(37,"th")(38,"span"),J(39,"Match ID"),M()(),A(40,"th",23),J(41,"Presence Count"),M(),A(42,"th",24),J(43,"Authoritative"),M(),A(44,"th",24),J(45,"Node"),M(),A(46,"th",25),J(47,"Handler Name"),M(),A(48,"th",26),J(49,"Tick Rate"),M()()(),A(50,"tbody"),ye(51,Iat,3,0,"tr",7),ye(52,zat,17,10,"ng-template",27),M()()()),2&e&&(I(3),jn("",i.matches.length," running matches found."),I(1),N("ngIf",i.error),I(5),N("ngIf",i.activeType&&""!==i.activeType),I(2),N("ngForOf",i.types),I(7),N("hidden","All"!==i.activeType)("formGroup",i.searchForm1),I(3),N("hidden","Relayed"!==i.activeType)("formGroup",i.searchForm2),I(3),N("hidden","Authoritative"!==i.activeType)("formGroup",i.searchForm3),I(6),N("ngIf",i.activeNode&&""!==i.activeNode),I(2),N("ngForOf",i.nodes),I(6),Kn("pl-3",i.matches.length>0),I(13),N("ngIf",0===i.matches.length),I(1),N("ngForOf",i.matches))},dependencies:[ti,Nn,Go,Bu,rg,Rf,Nf,bl,qa,vl,yl,Ea,Ya],styles:[".pre-wrap[_ngcontent-%COMP%]{word-wrap:anywhere;word-break:break-all;white-space:pre-wrap}.open-row[_ngcontent-%COMP%]{background:#FAFAFC}.w-33[_ngcontent-%COMP%]{width:33.3333%!important}.dropdown-radius-right[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.dropdown-radius-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}"]})),t})(),Wat=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){let r=Number(e.queryParamMap.get("type"));return Xge(this.consoleService,r,e.queryParamMap.get("match_id"),e.queryParamMap.get("query"),e.queryParamMap.get("node")).pipe(tc(o=>(e.data={...e.data,error:o},oi(null))))}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Xge(t,n,e,i,r){switch(n){case 0:return t.listMatches("",null,null,null,null,null,e);case 1:return t.listMatches("",null,!0,null,null,null,null,i,r);case 2:return t.listMatches("",null,!1,null,null,null,e)}return oi(null)}let Gat=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.getStatus("").pipe(et(r=>oi(r.nodes.map(o=>o.name)))).pipe(tc(r=>(e.data={...e.data,error:r},oi([]))))}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function qat(t,n){if(1&t&&(A(0,"ngb-alert",25),je(1,"img",26),A(2,"h6",27),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("Error when querying groups: ",e.error,"")}}function Xat(t,n){1&t&&(A(0,"th",28),J(1,"Remove"),M())}function Yat(t,n){1&t&&(A(0,"tr")(1,"td",29),J(2,"No groups found - change the filter criteria or add new user groups."),M()())}function Kat(t,n){1&t&&je(0,"td")}function Jat(t,n){if(1&t){const e=Bt();A(0,"td",32)(1,"button",33),He("click",function(r){st(e);const o=te(),s=o.index,a=o.$implicit;return at(te().deleteGroup(r,s,a))}),J(2,"Delete"),M()()}}function Qat(t,n){if(1&t){const e=Bt();A(0,"tr")(1,"td",30),He("click",function(){const o=st(e).$implicit;return at(te().viewGroup(o))}),J(2),M(),A(3,"td",30),He("click",function(){const o=st(e).$implicit;return at(te().viewGroup(o))}),J(4),M(),A(5,"td",30),He("click",function(){const o=st(e).$implicit;return at(te().viewGroup(o))}),J(6),M(),ye(7,Kat,1,0,"td",23),ye(8,Jat,3,0,"td",31),M()}if(2&t){const e=n.$implicit,i=te();I(2),Xt(e.id),I(2),Xt(e.name),I(2),Xt(e.update_time),I(1),N("ngIf",i.deleteAllowed()&&e.id===i.systemUserId),I(1),N("ngIf",i.deleteAllowed()&&e.id!==i.systemUserId)}}let Zat=(()=>{class t{constructor(e,i,r,o,s){be(this,"route",void 0),be(this,"router",void 0),be(this,"consoleService",void 0),be(this,"authService",void 0),be(this,"formBuilder",void 0),be(this,"systemUserId","00000000-0000-0000-0000-000000000000"),be(this,"error",""),be(this,"groupsCount",0),be(this,"groups",[]),be(this,"nextCursor",""),be(this,"prevCursor",""),be(this,"searchForm",void 0),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.searchForm=this.formBuilder.group({filter:[""]});const e=this.route.snapshot.queryParamMap;this.f.filter.setValue(e.get("filter")),this.nextCursor=e.get("cursor"),this.nextCursor&&""!==this.nextCursor?this.search(1):this.f.filter.value&&this.search(0),this.route.data.subscribe(i=>{this.groups.length=0,i&&(this.groups.push(...i[0].groups),this.groupsCount=i[0].total_count,this.nextCursor=i[0].next_cursor,this.prevCursor=i[0].prev_cursor)},i=>{this.error=i})}search(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listGroups("",this.f.filter.value,i).subscribe(r=>{this.error="",this.groups.length=0,this.groups.push(...r.groups),this.groupsCount=r.total_count,this.nextCursor=r.next_cursor,this.router.navigate([],{relativeTo:this.route,queryParams:{filter:this.f.filter.value,cursor:i},queryParamsHandling:"merge"})},r=>{this.error=r})}deleteGroup(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteGroup("",r.id).subscribe(()=>{this.error="",this.groups.splice(i,1),this.groupsCount--},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_DEVELOPER}viewGroup(e){this.router.navigate(["/groups",e.id],{relativeTo:this.route})}get f(){return this.searchForm.controls}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Ui),Ae(ds),Ae(Pl))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],decls:35,vars:8,consts:[[1,"pb-1"],[1,"pb-3"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","filter","placeholder","Filter by group ID or name (use '%' for wildcard search)",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","button",1,"btn","btn-primary","dropdown-radius",3,"click"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(e,i){1&e&&(A(0,"h2",0),J(1,"User Groups"),M(),A(2,"h6",1),J(3),M(),A(4,"div",2)(5,"div",3)(6,"div",4)(7,"form",5),He("ngSubmit",function(){return i.search(0)}),A(8,"div",6),je(9,"input",7),A(10,"div",8)(11,"div",9)(12,"button",10),He("click",function(){return i.search(0)}),J(13,"Search"),M()()()()()(),A(14,"div",11)(15,"div",12)(16,"button",13),He("click",function(){return i.search(0)}),je(17,"img",14),M(),A(18,"button",13),He("click",function(){return i.search(1)}),je(19,"img",15),M()()()()(),ye(20,qat,4,2,"ngb-alert",16),A(21,"div",17)(22,"table",18)(23,"thead",19)(24,"tr")(25,"th",20),J(26,"Group ID"),M(),A(27,"th"),J(28,"Name"),M(),A(29,"th",21),J(30,"Last Update"),M(),ye(31,Xat,2,0,"th",22),M()(),A(32,"tbody"),ye(33,Yat,3,0,"tr",23),ye(34,Qat,9,5,"tr",24),M()()()),2&e&&(I(3),jn("",i.groupsCount," groups found."),I(4),N("formGroup",i.searchForm),I(9),N("disabled",0===i.groups.length),I(2),N("disabled",""===i.nextCursor),I(2),N("ngIf",i.error),I(11),N("ngIf",i.deleteAllowed()),I(2),N("ngIf",0===i.groups.length),I(1),N("ngForOf",i.groups))},dependencies:[ti,Nn,Go,bl,qa,vl,yl,Ea,Ya],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})),t})(),elt=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.queryParamMap.get("filter");return this.consoleService.listGroups("",r,null)}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function tlt(t,n){if(1&t){const e=Bt();A(0,"button",13),He("click",function(r){return st(e),at(te().exportGroup(r))}),je(1,"img",14),J(2,"Export"),M()}}function nlt(t,n){if(1&t){const e=Bt();A(0,"button",15),He("click",function(r){return st(e),at(te().deleteGroup(r,!1))}),je(1,"img",16),J(2,"Delete"),M()}}function ilt(t,n){if(1&t&&(A(0,"ngb-alert",17),je(1,"img",18),A(2,"h6",19),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("An error occurred: ",e.error,"")}}const rlt=function(t,n){return["/groups",t,n]};function olt(t,n){if(1&t&&(A(0,"div"),va(1,20),A(2,"a",21),J(3),M(),ya(),M()),2&t){const e=n.$implicit,i=te();I(1),N("ngbNavItem",e.path),I(1),N("routerLink",Kr(3,rlt,i.group.id,e.path)),I(1),Xt(e.label)}}const slt=function(){return["/groups"]};let alt=(()=>{class t{constructor(e,i,r,o){be(this,"route",void 0),be(this,"router",void 0),be(this,"consoleService",void 0),be(this,"authService",void 0),be(this,"group",void 0),be(this,"error",""),be(this,"views",[{label:"Details",path:"details"},{label:"Members",path:"members"}]),this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.group=e[0]},e=>{this.error=e})}deleteGroup(e,i){e.target.disabled=!0,this.error="",this.consoleService.deleteGroup("",this.group.id).subscribe(()=>{this.error="",this.router.navigate(["/groups"])},r=>{this.error=r})}exportGroup(e){e.target.disabled=!0,this.error="",this.consoleService.exportGroup("",this.group.id).subscribe(i=>{this.error="";const r=this.group.id+"-export.json",o=JSON.stringify(i,null,2),s=(new TextEncoder).encode(o),a=new Blob([s],{type:"application/json;charset=utf-8"});(0,nF.saveAs)(a,r),e.target.disabled=!1},i=>{e.target.disabled=!1,this.error=i})}updateAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}exportAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}banAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Ui),Ae(ds))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],decls:18,vars:7,consts:[[1,"pb-1"],[1,"account-top-nav","d-flex","justify-content-between","align-items-baseline","mb-4"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active"],["type","button","class","btn btn-outline-secondary mr-2",3,"click",4,"ngIf"],["type","button","class","btn btn-danger btn-danger-icon mr-2",3,"click",4,"ngIf"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["ngbNav","",1,"navbar-expand-sm","p-0","mb-3"],["accountNav","ngbNav"],[4,"ngFor","ngForOf"],["type","button",1,"btn","btn-outline-secondary","mr-2",3,"click"],["src","/static/svg/export.svg","alt","","width","13","height","13",1,"mr-2"],["type","button",1,"btn","btn-danger","btn-danger-icon","mr-2",3,"click"],["src","/static/svg/bin-red.svg","alt","","width","14","height","",1,"mr-2"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"ngbNavItem"],["ngbNavLink","","routerLinkActive","account-link-active",3,"routerLink"]],template:function(e,i){1&e&&(A(0,"h2",0),J(1,"User Group"),M(),A(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4)(6,"a",5),J(7,"Group"),M()(),A(8,"li",6),J(9),M()()(),A(10,"div"),ye(11,tlt,3,0,"button",7),ye(12,nlt,3,0,"button",8),M()(),ye(13,ilt,4,2,"ngb-alert",9),A(14,"nav",10,11),ye(16,olt,4,6,"div",12),M(),je(17,"router-outlet")),2&e&&(I(6),N("routerLink",Ll(6,slt)),I(3),Xt(i.group.id),I(2),N("ngIf",i.exportAllowed()),I(1),N("ngIf",i.deleteAllowed()),I(1),N("ngIf",i.error),I(3),N("ngForOf",i.views))},dependencies:[Kp,Ru,uy,ti,Nn,Go,ag,sg,dv],styles:[".nav-link[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#000;opacity:.5;padding:0 0 1.6em;margin-right:3em;margin-bottom:-2px;font-weight:600}.nav-link[_ngcontent-%COMP%]:hover{opacity:1}.nav-link.account-link-active[_ngcontent-%COMP%]{opacity:1;border-bottom:solid 2px #7668ED}.navbar-expand-sm[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9}.account-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})),t})(),llt=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.paramMap.get("id");return this.consoleService.getGroup("",r)}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function clt(t,n){if(1&t){const e=Bt();A(0,"button",12),He("click",function(r){return st(e),at(te().deleteLeaderboard(r))}),je(1,"img",13),J(2,"Delete Leaderboard"),M()}}function ult(t,n){if(1&t&&(A(0,"ngb-alert",14),je(1,"img",15),A(2,"h6",16),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("An error occurred: ",e.error,"")}}const hlt=function(t,n){return["/leaderboards",t,n]};function dlt(t,n){if(1&t&&(A(0,"div"),va(1,17),A(2,"a",18),J(3),M(),ya(),M()),2&t){const e=n.$implicit,i=te();I(1),N("ngbNavItem",e.path),I(1),N("routerLink",Kr(3,hlt,i.leaderboard.id,e.path)),I(1),Xt(e.label)}}const flt=function(){return["/leaderboards"]};let plt=(()=>{class t{constructor(e,i,r,o){be(this,"route",void 0),be(this,"router",void 0),be(this,"consoleService",void 0),be(this,"authService",void 0),be(this,"leaderboard",void 0),be(this,"error",""),be(this,"views",[{label:"Details",path:"details"},{label:"Records",path:"records"}]),this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.leaderboard=e[0]},e=>{this.error=e})}deleteLeaderboard(e){e.target.disabled=!0,this.error="",this.consoleService.deleteLeaderboard("",this.leaderboard.id).subscribe(()=>{this.error="",this.router.navigate(["/leaderboards"])},i=>{this.error=i})}deleteAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_DEVELOPER}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Ui),Ae(ds))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],decls:17,vars:6,consts:[[1,"pb-1"],[1,"leaderboard-top-nav","d-flex","justify-content-between","align-items-baseline","mb-3"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active"],["type","button","class","btn btn-danger btn-danger-icon",3,"click",4,"ngIf"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["ngbNav","",1,"navbar-expand-sm","p-0","mb-3"],["leaderboardNav","ngbNav"],[4,"ngFor","ngForOf"],["type","button",1,"btn","btn-danger","btn-danger-icon",3,"click"],["src","/static/svg/bin-red.svg","alt","","width","13","height","13",1,"mr-2"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"ngbNavItem"],["ngbNavLink","","routerLinkActive","account-link-active",3,"routerLink"]],template:function(e,i){1&e&&(A(0,"h2",0),J(1,"Leaderboard"),M(),A(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4)(6,"a",5),J(7,"Leaderboards"),M()(),A(8,"li",6),J(9),M()()(),A(10,"div"),ye(11,clt,3,0,"button",7),M()(),ye(12,ult,4,2,"ngb-alert",8),A(13,"nav",9,10),ye(15,dlt,4,6,"div",11),M(),je(16,"router-outlet")),2&e&&(I(6),N("routerLink",Ll(5,flt)),I(3),Xt(i.leaderboard.id),I(2),N("ngIf",i.deleteAllowed()),I(1),N("ngIf",i.error),I(3),N("ngForOf",i.views))},dependencies:[Kp,Ru,uy,ti,Nn,Go,ag,sg,dv],styles:[".nav-link[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#000;opacity:.5;padding:0 0 1.6em;margin-right:3em;margin-bottom:-2px;font-weight:600}.nav-link[_ngcontent-%COMP%]:hover{opacity:1}.nav-link.account-link-active[_ngcontent-%COMP%]{opacity:1;border-bottom:solid 2px #7668ED}.navbar-expand-sm[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9}.leaderboard-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})),t})(),glt=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.paramMap.get("id");return this.consoleService.getLeaderboard("",r)}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();const mlt=["editor"];function vlt(t,n){if(1&t&&(A(0,"ngb-alert",24),je(1,"img",25),A(2,"h6",26),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("An error occurred: ",e.error,"")}}function ylt(t,n){if(1&t&&(A(0,"div",27)(1,"h6"),J(2,"Tournament"),M(),je(3,"hr",28),A(4,"div",2)(5,"div",3)(6,"div",4)(7,"label",29),J(8,"Title"),M()(),je(9,"input",30),M(),A(10,"div",3)(11,"div",4)(12,"label",31),J(13,"Description"),M()(),je(14,"input",32),M()(),A(15,"div",2)(16,"div",3)(17,"div",4)(18,"label",33),J(19,"Category"),M()(),je(20,"input",34),M(),A(21,"div",3)(22,"div",4)(23,"label",35),J(24,"Max Num Score"),M()(),je(25,"input",36),M()(),A(26,"div",2)(27,"div",3)(28,"div",4)(29,"label",37),J(30,"Size"),M()(),je(31,"input",38),M(),A(32,"div",3)(33,"div",4)(34,"label",39),J(35,"Max Size"),M()(),je(36,"input",40),M()(),A(37,"div",2)(38,"div",3)(39,"div",4)(40,"label",41),J(41,"Duration"),M()(),je(42,"input",42),M(),A(43,"div",3)(44,"div",4)(45,"label",43),J(46,"Join Required"),M()(),je(47,"input",44),M()(),A(48,"div",2)(49,"div",3)(50,"div",4)(51,"label",45),J(52,"Start Time"),M()(),je(53,"input",46),M(),A(54,"div",3)(55,"div",4)(56,"label",47),J(57,"End Time"),M()(),je(58,"input",48),M()(),A(59,"div",2)(60,"div",3)(61,"div",4)(62,"label",49),J(63,"Start Active"),M()(),je(64,"input",50),M(),A(65,"div",3)(66,"div",4)(67,"label",51),J(68,"End Active"),M()(),je(69,"input",52),M()()()),2&t){const e=te();I(9),N("value",e.leaderboard.title),I(5),N("value",e.leaderboard.description),I(6),N("value",e.leaderboard.category),I(5),N("value",e.leaderboard.max_num_score),I(6),N("value",e.leaderboard.size),I(5),N("value",e.leaderboard.max_size),I(6),N("value",e.leaderboard.duration),I(5),N("value",e.leaderboard.join_required),I(6),N("value",e.leaderboard.start_time),I(5),N("value",e.leaderboard.end_time),I(6),N("value",e.leaderboard.start_active),I(5),N("value",e.leaderboard.end_active)}}let blt=(()=>{class t{constructor(e){be(this,"route",void 0),be(this,"editor",void 0),be(this,"orderString",{0:"Ascending",1:"Descending"}),be(this,"operatorString",{0:"Best",1:"Set",2:"Increment",3:"Decrement"}),be(this,"aceEditor",void 0),be(this,"leaderboard",void 0),be(this,"error",""),this.route=e}ngOnInit(){this.route.parent.data.subscribe(e=>{this.leaderboard=e[0]},e=>{this.error=e})}ngAfterViewInit(){if(ka.config.set("fontSize","14px"),ka.config.set("printMarginColumn",0),ka.config.set("useWorker",!0),ka.config.set("highlightSelectedWord",!0),ka.config.set("fontFamily",'"Courier New", Courier, monospace'),this.aceEditor=ka.edit(this.editor.nativeElement),this.aceEditor.setReadOnly(!0),this.leaderboard.metadata){const e=JSON.stringify(JSON.parse(this.leaderboard.metadata),null,2);this.aceEditor.session.setValue(e)}}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&Do(mlt,5),2&e){let r;En(r=Mn())&&(i.editor=r.first)}},decls:50,vars:10,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border","mb-3"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","id",1,"d-inline"],["type","text","id","id","placeholder","ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","authoritative",1,"d-inline"],["type","text","id","authoritative","placeholder","Authoritative","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","sortorder",1,"d-inline"],["type","text","id","sortorder","placeholder","Sort Order","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","operator",1,"d-inline"],["type","text","id","operator","placeholder","Operator","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","reset",1,"d-inline"],["type","text","id","reset","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"row","add-border-single-row-bottom"],["type","text","id","prev_reset","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["type","text","id","next_reset","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["class","mt-4",4,"ngIf"],[1,"card","p-2","mb-3",2,"height","400px"],[2,"height","400px"],["editor",""],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[1,"mt-4"],[1,"mb-4"],["for","title",1,"d-inline"],["type","text","id","title","placeholder","Title","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","description",1,"d-inline"],["type","text","id","description","placeholder","Description","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","category",1,"d-inline"],["type","text","id","category","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","max_num_score",1,"d-inline"],["type","text","id","max_num_score","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","size",1,"d-inline"],["type","text","id","size","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","max_size",1,"d-inline"],["type","text","id","max_size","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","duration",1,"d-inline"],["type","text","id","duration","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","join_required",1,"d-inline"],["type","text","id","join_required","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","start_time",1,"d-inline"],["type","text","id","start_time","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","end_time",1,"d-inline"],["type","text","id","end_time","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","start_active",1,"d-inline"],["type","text","id","start_active","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","end_active",1,"d-inline"],["type","text","id","end_active","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"]],template:function(e,i){1&e&&(ye(0,vlt,4,2,"ngb-alert",0),A(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"label",5),J(6,"ID"),M()(),je(7,"input",6),M(),A(8,"div",3)(9,"div",4)(10,"label",7),J(11,"Authoritative"),M()(),je(12,"input",8),M()(),A(13,"div",2)(14,"div",3)(15,"div",4)(16,"label",9),J(17,"Sort Order"),M()(),je(18,"input",10),M(),A(19,"div",3)(20,"div",4)(21,"label",11),J(22,"Operator"),M()(),je(23,"input",12),M()(),A(24,"div",2)(25,"div",3)(26,"div",4)(27,"label",13),J(28,"Reset Schedule"),M()(),je(29,"input",14),M(),A(30,"div",3)(31,"div",4)(32,"label",15),J(33,"Create Time"),M()(),je(34,"input",16),M()(),A(35,"div",17)(36,"div",3)(37,"div",4)(38,"label",13),J(39,"Prev Reset"),M()(),je(40,"input",18),M(),A(41,"div",3)(42,"div",4)(43,"label",15),J(44,"Next Reset"),M()(),je(45,"input",19),M()()(),ye(46,ylt,70,12,"div",20),A(47,"div",21),je(48,"div",22,23),M()),2&e&&(N("ngIf",i.error),I(7),N("value",i.leaderboard.id),I(5),N("value",i.leaderboard.authoritative),I(6),N("value",i.orderString[i.leaderboard.sort_order]),I(5),N("value",i.operatorString[i.leaderboard.operator]),I(6),N("value",i.leaderboard.reset_schedule),I(5),N("value",i.leaderboard.create_time),I(6),N("value",i.leaderboard.prev_reset),I(5),N("value",i.leaderboard.next_reset),I(1),N("ngIf",i.leaderboard.tournament))},dependencies:[Nn,Go],styles:[".leaderboard-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})),t})();function _lt(t,n){if(1&t&&(A(0,"ngb-alert",19),je(1,"img",20),A(2,"h6",21),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("An error occurred: ",e.error,"")}}function wlt(t,n){1&t&&(A(0,"th",22),J(1,"Remove"),M())}function xlt(t,n){1&t&&(A(0,"tr")(1,"td",23),J(2,"No records found."),M()())}function Clt(t,n){1&t&&je(0,"div",28)}function Slt(t,n){1&t&&je(0,"div",29)}function klt(t,n){if(1&t){const e=Bt();A(0,"td",30)(1,"button",31),He("click",function(r){st(e);const o=te(),s=o.index,a=o.$implicit;return at(te().deleteRecord(r,s,a))}),J(2,"Delete"),M()()}}function Dlt(t,n){if(1&t&&(A(0,"tr")(1,"td",32)(2,"pre",33)(3,"small"),J(4),M()()()()),2&t){const e=te().$implicit;I(4),Xt(e.metadata)}}function Tlt(t,n){if(1&t){const e=Bt();A(0,"tr")(1,"td")(2,"div",24),He("click",function(){const o=st(e).index,s=te();return at(s.recordsMetadataOpen[o]=!s.recordsMetadataOpen[o])}),ye(3,Clt,1,0,"div",25),ye(4,Slt,1,0,"div",26),M(),J(5),M(),A(6,"td"),J(7),M(),A(8,"td"),J(9),M(),A(10,"td"),J(11),M(),A(12,"td"),J(13),M(),A(14,"td"),J(15),M(),A(16,"td"),J(17),M(),ye(18,klt,3,0,"td",27),M(),ye(19,Dlt,5,1,"tr",17)}if(2&t){const e=n.index,i=n.$implicit,r=te();I(3),N("ngIf",!r.recordsMetadataOpen[e]),I(1),N("ngIf",r.recordsMetadataOpen[e]),I(1),jn(" ",i.owner_id," "),I(2),Xt(i.username),I(2),Xt(i.score),I(2),Xt(i.subscore),I(2),Xt(i.rank),I(2),Xt(i.num_score),I(2),Xt(i.expiry_time?i.expiry_time:"-"),I(1),N("ngIf",r.deleteAllowed()),I(1),N("ngIf",r.recordsMetadataOpen[e])}}let Alt=(()=>{class t{constructor(e,i,r){be(this,"route",void 0),be(this,"consoleService",void 0),be(this,"authService",void 0),be(this,"error",""),be(this,"leaderboard",void 0),be(this,"records",[]),be(this,"recordsMetadataOpen",[]),be(this,"nextCursor",""),be(this,"prevCursor",""),this.route=e,this.consoleService=i,this.authService=r}ngOnInit(){this.route.data.subscribe(e=>{this.records.length=0,this.records.push(...e[0].records),this.nextCursor=e[0].next_cursor,this.prevCursor=e[0].prev_cursor,this.recordsMetadataOpen.length=this.records.length},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.leaderboard=e[0]},e=>{this.error=e})}loadRecords(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listLeaderboardRecords("",this.leaderboard.id,null,100,i,null).subscribe(r=>{this.error="",this.nextCursor=r.next_cursor,this.prevCursor=r.prev_cursor,this.records.length=0,this.records.push(...r.records),this.recordsMetadataOpen.length=0,this.recordsMetadataOpen.length=this.records.length},r=>{this.error=r})}deleteRecord(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteLeaderboardRecord("",r.leaderboard_id,r.owner_id).subscribe(()=>{this.error="",this.records.splice(i,1),this.recordsMetadataOpen.splice(i,1)},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Ui),Ae(ds))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],decls:34,vars:7,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered"],[1,"thead-light"],[2,"width","380px"],[2,"width","150px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],["ngFor","",3,"ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","8",1,"text-muted"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","text-center",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],["colspan","7",1,"align-middle"],[1,"pre-wrap","m-0","p-0"]],template:function(e,i){1&e&&(ye(0,_lt,4,2,"ngb-alert",0),A(1,"div",1)(2,"div",2),je(3,"div",3),A(4,"div",4)(5,"div",5)(6,"button",6),He("click",function(){return i.loadRecords(0)}),je(7,"img",7),M(),A(8,"button",6),He("click",function(){return i.loadRecords(-1)}),je(9,"img",8),M(),A(10,"button",6),He("click",function(){return i.loadRecords(1)}),je(11,"img",9),M()()()()(),A(12,"div",10)(13,"table",11)(14,"thead",12)(15,"tr")(16,"th",13),J(17,"Owner ID"),M(),A(18,"th"),J(19,"Username"),M(),A(20,"th",14),J(21,"Score"),M(),A(22,"th",14),J(23,"Subscore"),M(),A(24,"th",14),J(25,"Rank"),M(),A(26,"th",14),J(27,"No. of scores"),M(),A(28,"th",15),J(29,"Expiry Time"),M(),ye(30,wlt,2,0,"th",16),M()(),A(31,"tbody"),ye(32,xlt,3,0,"tr",17),ye(33,Tlt,20,11,"ng-template",18),M()()()),2&e&&(N("ngIf",i.error),I(6),N("disabled",0===i.records.length),I(2),N("disabled",""===i.prevCursor),I(2),N("disabled",""===i.nextCursor),I(20),N("ngIf",i.deleteAllowed()),I(2),N("ngIf",0===i.records.length),I(1),N("ngForOf",i.records))},dependencies:[ti,Nn,Go]})),t})(),Elt=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.listLeaderboardRecords("",r,null,100,null,null)}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();const Mlt=["editor"],Ilt=["editorResponse"];function Flt(t,n){if(1&t&&(A(0,"ngb-alert",23),je(1,"img",24),A(2,"h6",25),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("Error whilst making RPC call: ",e.error,"")}}function Llt(t,n){if(1&t&&(A(0,"option",26),J(1),M()),2&t){const e=n.$implicit;Ld("value",e.method),I(1),Xt(e.method)}}function Olt(t,n){if(1&t&&(A(0,"option",26),J(1),M()),2&t){const e=n.$implicit;Ld("value",e.method),I(1),Xt(e.method)}}let Nlt=(()=>{class t{constructor(e,i,r,o){be(this,"route",void 0),be(this,"router",void 0),be(this,"consoleService",void 0),be(this,"formBuilder",void 0),be(this,"editor",void 0),be(this,"editorResponse",void 0),be(this,"aceEditor",void 0),be(this,"aceEditorResponse",void 0),be(this,"error",""),be(this,"rpcEndpoints",[]),be(this,"endpoints",[]),be(this,"endpointCallForm",void 0),this.route=e,this.router=i,this.consoleService=r,this.formBuilder=o}ngOnInit(){this.endpointCallForm=this.formBuilder.group({method:["",Wo.required],user_id:[""]}),this.f.method.valueChanges.subscribe(i=>{const r=this.endpoints.concat(this.rpcEndpoints).find(o=>o.method===i?o:null);this.updateQueryParam(r.method),this.setupRequestBody(r.body_template)}),this.route.data.subscribe(i=>{const r=i[0];this.endpoints.length=0,this.endpoints.push(...r.endpoints),this.rpcEndpoints.length=0,this.rpcEndpoints.push(...r.rpc_endpoints)},i=>{this.error=i});const e=this.endpoints.concat(this.rpcEndpoints).find(i=>i.method===this.route.snapshot.queryParamMap.get("endpoint")?i:null);null!=e&&this.f.method.setValue(e.method)}ngAfterViewInit(){ka.config.set("fontSize","14px"),ka.config.set("printMarginColumn",0),ka.config.set("useWorker",!0),ka.config.set("highlightSelectedWord",!0),ka.config.set("fontFamily",'"Courier New", Courier, monospace'),this.aceEditor=ka.edit(this.editor.nativeElement),this.aceEditor.setReadOnly(!0),this.aceEditorResponse=ka.edit(this.editorResponse.nativeElement),this.aceEditorResponse.setReadOnly(!0)}sendRequest(){this.error="";let e=this.aceEditor.session.getValue();if(""!==e)try{e=JSON.stringify(JSON.parse(e))}catch(o){return void(this.error=o)}const i={user_id:this.f.user_id.value,body:e};let r=null;r=this.isRpcEndpoint(this.f.method.value)?this.consoleService.callRpcEndpoint("",this.f.method.value,i):this.consoleService.callApiEndpoint("",this.f.method.value,i),r.subscribe(o=>{if(o.error_message&&""!==o.error_message)this.aceEditorResponse.session.setValue(o.error_message);else{e="";try{e=JSON.stringify(JSON.parse(o.body),null,2)}catch(s){return void(this.error=s)}this.aceEditorResponse.session.setValue(e)}},o=>{this.aceEditorResponse.session.setValue(""),this.error=o})}isRpcEndpoint(e){return null!=this.rpcEndpoints.find(i=>i.method===e?i:null)}setupRequestBody(e){if(null!=this.aceEditor){if(!e||""===e)return this.aceEditor.session.setValue(""),void this.aceEditor.setReadOnly(!this.isRpcEndpoint(this.f.method.value));try{const i=JSON.stringify(JSON.parse(e),null,2);this.aceEditor.session.setValue(i),this.aceEditor.setReadOnly(!1)}catch(i){return void(this.error=i)}}else console.log("problem?")}updateQueryParam(e){this.router.navigate([],{relativeTo:this.route,queryParams:{endpoint:e},queryParamsHandling:"merge"})}get f(){return this.endpointCallForm.controls}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Ui),Ae(Pl))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&(Do(Mlt,5),Do(Ilt,5)),2&e){let r;En(r=Mn())&&(i.editor=r.first),En(r=Mn())&&(i.editorResponse=r.first)}},decls:35,vars:6,consts:[[1,"pb-4"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],[1,"input-group-prepend"],["id","method","formControlName","method",1,"form-control","custom-select","dropdown-radius"],["disabled","",3,"value"],[3,"value",4,"ngFor","ngForOf"],["disabled","",1,"text-muted"],["type","text","formControlName","user_id","placeholder","set user ID as request context",1,"form-control","border-right-0"],[1,"input-group-append"],["type","submit",1,"btn","btn-primary",3,"disabled"],[1,"d-flex"],[1,"w-50","py-3"],[1,"mb-4"],[1,"card","p-2","mb-3"],[2,"height","500px"],["editor",""],[1,"w-50","pl-3","py-3"],["editorResponse",""],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"value"]],template:function(e,i){1&e&&(A(0,"h2",0),J(1,"API Explorer"),M(),ye(2,Flt,4,2,"ngb-alert",1),A(3,"div",2)(4,"div",3)(5,"div",4)(6,"form",5),He("ngSubmit",function(){return i.sendRequest()}),A(7,"div",6)(8,"div",7)(9,"select",8)(10,"option",9),J(11,"Select Endpoint"),M(),ye(12,Llt,2,2,"option",10),A(13,"option",11),J(14,"----"),M(),ye(15,Olt,2,2,"option",10),M()(),je(16,"input",12),A(17,"div",13)(18,"button",14),J(19,"Send Request"),M()()()()()()(),A(20,"div",15)(21,"div",16)(22,"h5"),J(23,"Request Body"),M(),je(24,"hr",17),A(25,"div",18),je(26,"div",19,20),M()(),A(28,"div",21)(29,"h5"),J(30,"Response"),M(),je(31,"hr",17),A(32,"div",18),je(33,"div",19,22),M()()()),2&e&&(I(2),N("ngIf",i.error),I(4),N("formGroup",i.endpointCallForm),I(4),N("value",""),I(2),N("ngForOf",i.rpcEndpoints),I(3),N("ngForOf",i.endpoints),I(3),N("disabled",i.f.method.invalid))},dependencies:[ti,Nn,Go,bl,by,_y,qa,rv,vl,yl,Ea,Ya],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}"]})),t})(),Rlt=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.listApiEndpoints("")}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function $lt(t,n){if(1&t&&(A(0,"ngb-alert",16),je(1,"img",17),A(2,"h6",18),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("Error while processing request: ",e.error,"")}}function Plt(t,n){1&t&&je(0,"div",23)}function jlt(t,n){1&t&&je(0,"div",24)}function Blt(t,n){if(1&t&&(A(0,"tr",25)(1,"td",26)(2,"div",27)(3,"div")(4,"small")(5,"b"),J(6,"Provider Response"),M()()(),A(7,"div")(8,"pre",28)(9,"small"),J(10),M()()()()()()),2&t){const e=te().$implicit;I(10),Xt(e.provider_response)}}function Hlt(t,n){if(1&t){const e=Bt();A(0,"tr")(1,"td")(2,"div",19),He("click",function(){const o=st(e).index,s=te();return at(s.purchasesRowsOpen[o]=!s.purchasesRowsOpen[o])}),ye(3,Plt,1,0,"div",20),ye(4,jlt,1,0,"div",21),M(),J(5),M(),A(6,"td"),J(7),M(),A(8,"td"),J(9),M(),A(10,"td"),J(11),M(),A(12,"td"),J(13),M()(),ye(14,Blt,11,1,"tr",22)}if(2&t){const e=n.index,i=n.$implicit,r=te();I(3),N("ngIf",!r.purchasesRowsOpen[e]),I(1),N("ngIf",r.purchasesRowsOpen[e]),I(1),jn(" ",i.product_id," "),I(2),Xt(i.transaction_id),I(2),Xt(r.getStoreText(i.store)),I(2),Xt(i.purchase_time),I(2),Xt(i.create_time),I(1),N("ngIf",r.purchasesRowsOpen[e])}}function Vlt(t,n){1&t&&(A(0,"tr")(1,"td",29),J(2,"No purchases were found."),M()())}let zlt=(()=>{class t{constructor(e,i,r){be(this,"route",void 0),be(this,"router",void 0),be(this,"consoleService",void 0),be(this,"purchases",[]),be(this,"purchasesRowsOpen",[]),be(this,"error",""),be(this,"nextCursor",""),be(this,"prevCursor",""),be(this,"userID",void 0),be(this,"limit",100),this.route=e,this.router=i,this.consoleService=r}ngOnInit(){this.userID=this.route.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(e=>{this.purchases=e[0].validated_purchases,this.nextCursor=e[0].cursor,this.prevCursor=e[0].prev_cursor})}loadData(e){this.consoleService.listPurchases("",this.userID,this.limit,e).subscribe(i=>{this.purchases=i.validated_purchases,this.purchasesRowsOpen=[],this.nextCursor=i.cursor,this.prevCursor=i.prev_cursor},i=>{this.error=i})}getStoreText(e){return this.formatStoreText(Cy[e])}formatStoreText(e){return e.split("_").map(i=>i[0]+i.slice(1).toLowerCase()).join(" ")}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Ui))}),be(t,"\u0275cmp",ln({type:t,selectors:[["app-purchases"]],decls:29,vars:6,consts:[["type","danger",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered","table-hover"],[1,"thead-light"],[2,"width","180px"],["ngFor","",3,"ngForOf"],[4,"ngIf"],["type","danger",3,"dismissible"],["src","/src/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","open-row",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"open-row"],["colspan","7"],[1,"p-2"],[1,"pre-wrap","m-0","p-0"],["colspan","5",1,"text-muted"]],template:function(e,i){1&e&&(ye(0,$lt,4,2,"ngb-alert",0),A(1,"div",1)(2,"div",2),je(3,"div",3),A(4,"div",4)(5,"div",5)(6,"button",6),He("click",function(){return i.loadData("")}),je(7,"img",7),M(),A(8,"button",6),He("click",function(){return i.loadData(i.prevCursor)}),je(9,"img",8),M(),A(10,"button",6),He("click",function(){return i.loadData(i.nextCursor)}),je(11,"img",9),M()()()()(),A(12,"div",10)(13,"table",11)(14,"thead",12)(15,"tr")(16,"th"),J(17,"Product ID"),M(),A(18,"th"),J(19,"Transaction ID"),M(),A(20,"th"),J(21,"Store"),M(),A(22,"th",13),J(23,"Purchase Time"),M(),A(24,"th",13),J(25,"Create Time"),M()()(),A(26,"tbody"),ye(27,Hlt,15,8,"ng-template",14),ye(28,Vlt,3,0,"tr",15),M()()()),2&e&&(N("ngIf",i.error),I(6),N("disabled",0===i.purchases.length),I(2),N("disabled",""===i.prevCursor),I(2),N("disabled",""===i.nextCursor),I(17),N("ngForOf",i.purchases),I(1),N("ngIf",0===i.purchases.length))},dependencies:[ti,Nn,Go]})),t})(),Ult=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.listPurchases("",r,100,"")}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Wlt(t,n){1&t&&(A(0,"span"),J(1,"Filter by type"),M())}function Glt(t,n){if(1&t&&(A(0,"span"),J(1),M()),2&t){const e=te();I(1),Xt(e.activeFilter)}}function qlt(t,n){if(1&t){const e=Bt();A(0,"button",40),He("click",function(){const o=st(e).$implicit;return at(te().activeFilter=o)}),J(1),M()}if(2&t){const e=n.$implicit;I(1),Xt(e)}}function Xlt(t,n){if(1&t&&(A(0,"h6"),J(1),M()),2&t){const e=te();I(1),jn("Showing results for chat room label: ",e.f1.label.value,"")}}const Ylt=function(t){return["/groups",t]};function Klt(t,n){if(1&t&&(A(0,"h6"),J(1,"Showing results for group ID: "),A(2,"a",41),J(3),M()()),2&t){const e=te();I(2),N("routerLink",Lr(2,Ylt,e.route.snapshot.queryParamMap.get("group_id"))),I(1),Xt(e.f2.group_id.value)}}const Yge=function(t){return["/accounts",t]};function Jlt(t,n){if(1&t&&(A(0,"h6"),J(1,"Showing results for user IDs: "),A(2,"a",41),J(3),M(),J(4,", "),A(5,"a",41),J(6),M()()),2&t){const e=te();I(2),N("routerLink",Lr(4,Yge,e.route.snapshot.queryParamMap.get("user_id_one"))),I(1),Xt(e.f3.user_id_one.value),I(2),N("routerLink",Lr(6,Yge,e.route.snapshot.queryParamMap.get("user_id_two"))),I(1),Xt(e.f3.user_id_two.value)}}function Qlt(t,n){if(1&t&&(A(0,"ngb-alert",42),je(1,"img",43),A(2,"h6",44),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("Error when querying messages: ",e.error,"")}}function Zlt(t,n){1&t&&(A(0,"th",45),J(1,"Remove"),M())}function ect(t,n){if(1&t&&(A(0,"tr")(1,"td",46),J(2,"No messages found."),M()()),2&t){const e=te();I(1),Ft("colspan",e.deleteAllowed()?6:5)}}function tct(t,n){1&t&&je(0,"div",55)}function nct(t,n){1&t&&je(0,"div",56)}function ict(t,n){1&t&&je(0,"td")}function rct(t,n){if(1&t){const e=Bt();A(0,"td",57)(1,"button",58),He("click",function(r){st(e);const o=te(),s=o.index,a=o.$implicit;return at(te().deleteMessage(r,s,a))}),J(2,"Delete"),M()()}}function oct(t,n){if(1&t&&(A(0,"tr",59)(1,"td"),J(2),M()()),2&t){const e=te().$implicit,i=te();I(1),Ft("colspan",i.deleteAllowed()?6:5),I(1),jn(" ",e.content," ")}}function sct(t,n){if(1&t){const e=Bt();A(0,"tr")(1,"td"),J(2),M(),A(3,"td",47),He("click",function(){const o=st(e).$implicit;return at(te().viewAccount(o))}),J(4),M(),A(5,"td",48),He("click",function(){const o=st(e).$implicit;return at(te().viewAccount(o))}),J(6),M(),A(7,"td",49)(8,"div",50),He("click",function(){const o=st(e).index,s=te();return at(s.messageStatesOpen[o]=!s.messageStatesOpen[o])}),ye(9,tct,1,0,"div",51),ye(10,nct,1,0,"div",52),M(),J(11),M(),A(12,"td"),J(13),M(),ye(14,ict,1,0,"td",3),ye(15,rct,3,0,"td",53),M(),ye(16,oct,3,2,"tr",54)}if(2&t){const e=n.$implicit,i=n.index,r=te();I(2),Xt(e.code),I(2),Xt(e.sender_id),I(2),Xt(e.username),I(3),N("ngIf",!r.messageStatesOpen[i]),I(1),N("ngIf",r.messageStatesOpen[i]),I(1),jn(" ",e.content," "),I(2),Xt(e.create_time),I(1),N("ngIf",r.deleteAllowed()&&e.sender_id===r.systemUserId),I(1),N("ngIf",r.deleteAllowed()&&e.sender_id!==r.systemUserId),I(1),N("ngIf",r.messageStatesOpen[i])}}function act(t,n){if(1&t&&(A(0,"ngb-alert",60),je(1,"img",43),A(2,"h6",44),J(3,"Failed to delete data."),M(),A(4,"p",61),J(5),M()()),2&t){const e=te();N("dismissible",!1),I(5),Xt(e.deleteError)}}function lct(t,n){if(1&t){const e=Bt();A(0,"ngb-alert",62),He("close",function(){return st(e),at(te().deleteSuccess=!1)}),je(1,"img",63),A(2,"h6",44),J(3),M()()}if(2&t){const e=te();N("dismissible",!0),I(3),$h("",e.total_deleted," messages ",e.total_deleted>0?"successfully":""," deleted.")}}const cct=function(t){return{"is-invalid":t}};function uct(t,n){if(1&t){const e=Bt();A(0,"div",64)(1,"h5",65),J(2,"Delete messages"),M(),A(3,"button",66),He("click",function(){return at(st(e).$implicit.dismiss())}),A(4,"span",67),J(5,"\xd7"),M()()(),A(6,"div",68)(7,"div",69)(8,"form",70)(9,"div",71)(10,"p")(11,"b"),J(12,"Choose how many days to retain: "),M(),je(13,"input",72),M()(),je(14,"input",73),M()()(),A(15,"div",74)(16,"button",75),He("click",function(){return at(st(e).$implicit.dismiss())}),J(17,"Cancel"),M(),A(18,"button",76),He("click",function(){return at(st(e).$implicit.close())}),J(19,"DELETE"),M()()}if(2&t){const e=te();I(8),N("formGroup",e.confirmDeleteForm),I(6),N("ngClass",Lr(3,cct,e.f.delete.touched&&e.f.delete.invalid)),I(4),N("disabled",e.f.delete.invalid)}}function hct(t,n){if(1&t){const e=Bt();A(0,"button",76),He("click",function(){st(e);const r=te(),o=Io(68);return at(r.openDeleteDataModal(o))}),J(1,"Delete messages"),M()}2&t&&N("disabled",te().deleting)}let dct=(()=>{class t{constructor(e,i,r,o,s,a){be(this,"route",void 0),be(this,"router",void 0),be(this,"consoleService",void 0),be(this,"authService",void 0),be(this,"formBuilder",void 0),be(this,"modalService",void 0),be(this,"systemUserId","00000000-0000-0000-0000-000000000000"),be(this,"error",""),be(this,"messages",[]),be(this,"nextCursor",""),be(this,"searchForm1",void 0),be(this,"searchForm2",void 0),be(this,"searchForm3",void 0),be(this,"type",void 0),be(this,"confirmDeleteForm",void 0),be(this,"deleteError",""),be(this,"deleteSuccess",!1),be(this,"deleting",!1),be(this,"total_deleted",0),be(this,"activeFilter",""),be(this,"filters",["Chat Room","Group Chat","Direct Chat"]),be(this,"messageStatesOpen",[]),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s,this.modalService=a,this.searchForm1=this.formBuilder.group({label:""}),this.searchForm2=this.formBuilder.group({group_id:""}),this.searchForm3=this.formBuilder.group({user_id_one:"",user_id_two:""}),this.confirmDeleteForm=this.formBuilder.group({delete:["",Wo.compose([Wo.required,Wo.pattern("DELETE")])],days:30})}ngOnInit(){const e=this.route.snapshot.queryParamMap;this.f1.label.setValue(e.get("label")),this.f2.group_id.setValue(e.get("group_id")),this.f3.user_id_one.setValue(e.get("user_id_one")),this.f3.user_id_two.setValue(e.get("user_id_two")),this.nextCursor=e.get("cursor");let i=e.get("type");this.type=Number(i),this.route.data.subscribe(r=>{r&&(r[0]&&(this.error="",this.messageStatesOpen=[],this.messages.length=0,this.messages.push(...r[0].messages),this.nextCursor=r[0].next_cursor),r.error&&(this.error=r.error))},r=>{this.error=r}),null===i?(this.type=2,this.activeFilter=this.filters[0]):2==this.type||3==this.type||4==this.type?this.activeFilter=this.filters[this.type-2]:this.error="Invalid type."}search(e){let i="";switch(e){case 0:i="";break;case 1:i=this.nextCursor}this.updateMessages(this.type,this.f1.label.value,this.f2.group_id.value,this.f3.user_id_one.value,this.f3.user_id_two.value,i)}updateMessages(e,i,r,o,s,a){switch(e){case 2:this.consoleService.listChannelMessages("",e.toString(),i,null,null,null,encodeURIComponent(a)).subscribe(l=>this.postData(l,a),l=>{this.error=l});break;case 3:this.consoleService.listChannelMessages("",e.toString(),null,r,null,null,encodeURIComponent(a)).subscribe(l=>this.postData(l,a),l=>{this.error=l});break;case 4:this.consoleService.listChannelMessages("",e.toString(),null,null,o,s,encodeURIComponent(a)).subscribe(l=>this.postData(l,a),l=>{this.error=l})}}postData(e,i){let r;switch(this.error="",this.messageStatesOpen=[],this.messages.length=0,this.messages.push(...e.messages),this.nextCursor=e.next_cursor,this.type){case 2:r={type:this.type,label:this.f1.label.value,cursor:i};break;case 3:r={type:this.type,group_id:this.f2.group_id.value,cursor:i};break;case 4:r={type:this.type,user_id_one:this.f3.user_id_one.value,user_id_two:this.f3.user_id_two.value,cursor:i}}this.router.navigate([],{relativeTo:this.route,queryParams:r})}deleteMessage(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteChannelMessages("",null,[r.message_id]).subscribe(()=>{this.error="",this.messageStatesOpen.splice(i,1),this.messages.splice(i,1)},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}deleteMessagesAllowed(){return this.authService.sessionRole<=Di.USER_ROLE_MAINTAINER}get f1(){return this.searchForm1.controls}get f2(){return this.searchForm2.controls}get f3(){return this.searchForm3.controls}get f(){return this.confirmDeleteForm.controls}openDeleteDataModal(e){this.modalService.open(e,{centered:!0}).result.then(()=>{this.deleteData(),this.confirmDeleteForm.controls.delete.setValue("")},()=>{this.confirmDeleteForm.controls.delete.setValue("")})}deleteData(){this.deleteError="",this.deleting=!0;let e=new Date;e.setDate(e.getDate()-this.f.days.value),this.consoleService.deleteChannelMessages("",e.toISOString(),null).subscribe(i=>{this.total_deleted=Number(i.total),this.deleting=!1,this.deleteError="",this.deleteSuccess=!0;const r=this.route.snapshot.queryParamMap;let o=r.get("type"),s=r.get("label");s||(s="0");let a=r.get("group_id"),l=r.get("user_id_one"),c=r.get("user_id_two"),u=r.get("cursor");u||(u=""),o&&this.updateMessages(Number(o),s,a,l,c,u)},i=>{this.deleting=!1,this.deleteError=i})}viewAccount(e){this.router.navigate(["/accounts",e.sender_id],{relativeTo:this.route})}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Ui),Ae(ds),Ae(Pl),Ae(B3))}),be(t,"\u0275cmp",ln({type:t,selectors:[["ng-component"]],decls:70,vars:21,consts:[[1,"pb-1"],["ngbDropdown","",1,"btn-group","mb-1"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary"],[4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"hidden","formGroup"],[1,"input-group"],["type","text","formControlName","label","placeholder","Search by chat room label",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","submit",1,"btn","btn-primary","dropdown-radius-left",3,"click"],["type","text","formControlName","group_id","placeholder","Search by group ID",1,"form-control","border-right-0"],["type","text","formControlName","user_id_one","placeholder","Search by user ID 1",1,"form-control","border-right-0"],[1,"input-group-text",3,"click"],["src","/static/svg/purple-cog-1.svg","alt","","width","20","height","",1,"mr-1"],["type","text","formControlName","user_id_two","placeholder","Search by user ID 2",1,"form-control","border-right-0"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered",2,"table-layout","fixed"],[1,"thead-light"],[2,"width","60px"],[2,"width","320px"],[2,"width","150px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],["ngFor","",3,"ngForOf"],["type","danger",3,"dismissible",4,"ngIf"],["type","success",3,"dismissible","close",4,"ngIf"],["role","alert",1,"d-flex","justify-content-between","align-items-center"],["confirmDelete",""],["type","button","class","btn btn-danger",3,"disabled","click",4,"ngIf"],["type","button","ngbDropdownItem","",3,"click"],[2,"width","100%",3,"routerLink"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],[1,"text-muted"],[3,"click"],[2,"text-overflow","ellipsis","overflow","hidden",3,"click"],[2,"white-space","nowrap","text-overflow","ellipsis","overflow","hidden"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","text-center",4,"ngIf"],["class","open-row",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],[1,"open-row"],["type","danger",3,"dismissible"],[1,"mb-0","pl-4"],["type","success",3,"dismissible","close"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-describedby","modal-title",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"d-flex","flex-column","justify-content-center"],["autocomplete","off",3,"formGroup"],[1,"mt-2"],["type","number","value","30","min","0","formControlName","days",2,"width","80px"],["type","text","id","delete-confirm","placeholder","Type 'DELETE' to confirm","formControlName","delete",1,"form-control",3,"ngClass"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-danger",3,"disabled","click"]],template:function(e,i){1&e&&(A(0,"h2",0),J(1,"Chat Messages"),M(),A(2,"div",1)(3,"button",2),ye(4,Wlt,2,0,"span",3),ye(5,Glt,2,1,"span",3),M(),A(6,"div",4),ye(7,qlt,2,1,"button",5),M()(),A(8,"div",6)(9,"div",7)(10,"div",8)(11,"form",9)(12,"div",10),je(13,"input",11),A(14,"div",12)(15,"div",13)(16,"button",14),He("click",function(){return i.type=2,i.search(0)}),J(17,"Search"),M()()()()(),A(18,"form",9)(19,"div",10),je(20,"input",15),A(21,"div",12)(22,"div",13)(23,"button",14),He("click",function(){return i.type=3,i.search(0)}),J(24,"Search "),M()()()()(),A(25,"form",9)(26,"div",10),je(27,"input",16),A(28,"div",12)(29,"span",17),He("click",function(){return i.f3.user_id_one.setValue(i.systemUserId)}),je(30,"img",18),M()(),je(31,"input",19),A(32,"div",12)(33,"div",13)(34,"button",14),He("click",function(){return i.type=4,i.search(0)}),J(35,"Search "),M()()()()()(),A(36,"div",20)(37,"div",21)(38,"button",22),He("click",function(){return i.search(0)}),je(39,"img",23),M(),A(40,"button",22),He("click",function(){return i.search(1)}),je(41,"img",24),M()()()()(),ye(42,Xlt,2,1,"h6",3),ye(43,Klt,4,4,"h6",3),ye(44,Jlt,7,8,"h6",3),ye(45,Qlt,4,2,"ngb-alert",25),A(46,"div",26)(47,"table",27)(48,"thead",28)(49,"tr")(50,"th",29),J(51,"Code"),M(),A(52,"th",30),J(53,"Sender ID"),M(),A(54,"th",31),J(55,"Username"),M(),A(56,"th"),J(57,"Content"),M(),A(58,"th",32),J(59,"Create Time"),M(),ye(60,Zlt,2,0,"th",33),M()(),A(61,"tbody"),ye(62,ect,3,1,"tr",3),ye(63,sct,17,10,"ng-template",34),M()()(),ye(64,act,6,2,"ngb-alert",35),ye(65,lct,4,3,"ngb-alert",36),A(66,"div",37),ye(67,uct,20,5,"ng-template",null,38,go),ye(69,hct,2,1,"button",39),M()),2&e&&(I(4),N("ngIf",!i.activeFilter||""===i.activeFilter),I(1),N("ngIf",i.activeFilter&&""!==i.activeFilter),I(2),N("ngForOf",i.filters),I(4),N("hidden","Chat Room"!==i.activeFilter)("formGroup",i.searchForm1),I(7),N("hidden","Group Chat"!==i.activeFilter)("formGroup",i.searchForm2),I(7),N("hidden","Direct Chat"!==i.activeFilter)("formGroup",i.searchForm3),I(13),N("disabled",0===i.messages.length),I(2),N("disabled",""===i.nextCursor||null===i.nextCursor),I(2),N("ngIf",0!=i.messages.length&&""===i.error&&2==i.type),I(1),N("ngIf",0!=i.messages.length&&""===i.error&&3==i.type),I(1),N("ngIf",0!=i.messages.length&&""===i.error&&4==i.type),I(1),N("ngIf",i.error),I(15),N("ngIf",i.deleteAllowed()),I(2),N("ngIf",0===i.messages.length),I(1),N("ngForOf",i.messages),I(1),N("ngIf",i.deleteError),I(1),N("ngIf",i.deleteSuccess),I(4),N("ngIf",i.deleteMessagesAllowed()))},dependencies:[Ru,Pd,ti,Nn,Go,Bu,rg,Rf,Nf,bl,qa,a3,vl,yl,d3,Ea,Ya],styles:[".input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}.dropdown-radius-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.open-row[_ngcontent-%COMP%]{background:#FAFAFC}"]})),t})(),fct=(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){let r=Number(e.queryParamMap.get("type"));switch(r){case 2:return this.consoleService.listChannelMessages("",r.toString(),e.queryParamMap.get("label"),null,null,null,encodeURIComponent(e.queryParamMap.get("cursor"))).pipe(tc(o=>(e.data={...e.data,error:o},oi(null))));case 3:return this.consoleService.listChannelMessages("",r.toString(),null,e.queryParamMap.get("group_id"),null,null,encodeURIComponent(e.queryParamMap.get("cursor"))).pipe(tc(o=>(e.data={...e.data,error:o},oi(null))));case 4:return this.consoleService.listChannelMessages("",r.toString(),null,null,e.queryParamMap.get("user_id_one"),e.queryParamMap.get("user_id_two"),encodeURIComponent(e.queryParamMap.get("cursor"))).pipe(tc(o=>(e.data={...e.data,error:o},oi(null))));default:return oi(null)}}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function pct(t,n){if(1&t&&(A(0,"ngb-alert",16),je(1,"img",17),A(2,"h6",18),J(3),M()()),2&t){const e=te();N("dismissible",!1),I(3),jn("Error while processing request: ",e.error,"")}}function gct(t,n){if(1&t&&(A(0,"tr")(1,"td"),J(2),M(),A(3,"td"),J(4),M(),A(5,"td"),J(6),M(),A(7,"td"),J(8),M(),A(9,"td"),J(10),M(),A(11,"td"),J(12),M()()),2&t){const e=n.$implicit,i=te();I(2),Xt(e.product_id),I(2),Xt(e.original_transaction_id),I(2),Xt(i.getStoreText(e.store)),I(2),Xt(e.purchase_time),I(2),Xt(e.expiry_time),I(2),Xt(e.create_time)}}function mct(t,n){1&t&&(A(0,"tr")(1,"td",19),J(2,"No purchases were found."),M()())}const vct=[{path:"",component:yLe,canActivate:[tMe],canActivateChild:[bLe],children:[{path:"",redirectTo:"status",pathMatch:"full"},{path:"status",component:rBe,resolve:[oBe]},{path:"config",component:OBe,resolve:[NBe]},{path:"users",component:BBe,resolve:[HBe]},{path:"modules",component:t7e,resolve:[n7e]},{path:"storage",component:h7e,resolve:[d7e,f7e],pathMatch:"full"},{path:"storage/:collection/:key/:user_id",component:Sot,resolve:[kot],pathMatch:"full"},{path:"leaderboards",component:Not,resolve:[Rot]},{path:"leaderboards/:id",component:plt,resolve:[glt],children:[{path:"",redirectTo:"details",pathMatch:"full"},{path:"details",component:blt,resolve:[]},{path:"records",component:Alt,resolve:[Elt]}]},{path:"matches",component:Uat,resolve:[Wat,Gat]},{path:"groups",component:Zat,resolve:[elt]},{path:"groups/:id",component:alt,resolve:[llt],children:[{path:"",redirectTo:"details",pathMatch:"full"},{path:"details",component:rat,resolve:[]},{path:"members",component:Sat,resolve:[kat],runGuardsAndResolvers:"always"}]},{path:"accounts",component:zot,resolve:[Uot]},{path:"accounts/:id",component:ist,resolve:[rst],children:[{path:"",redirectTo:"profile",pathMatch:"full"},{path:"profile",component:ust,resolve:[]},{path:"authentication",component:gst,resolve:[]},{path:"wallet",component:Tst,resolve:[Ast]},{path:"friends",component:Pst,resolve:[jst]},{path:"groups",component:Kst,resolve:[Jst]},{path:"purchases",component:zlt,resolve:[Ult]},{path:"subscriptions",component:(()=>{class t{constructor(e,i,r){be(this,"route",void 0),be(this,"router",void 0),be(this,"consoleService",void 0),be(this,"subscriptions",[]),be(this,"error",""),be(this,"nextCursor",""),be(this,"prevCursor",""),be(this,"userID",void 0),be(this,"limit",100),this.route=e,this.router=i,this.consoleService=r}ngOnInit(){this.userID=this.route.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(e=>{this.subscriptions=e[0].validated_subscriptions,this.nextCursor=e[0].cursor,this.prevCursor=e[0].prev_cursor})}loadData(e){this.consoleService.listSubscriptions("",this.userID,this.limit,e).subscribe(i=>{this.subscriptions=i.validated_subscriptions,this.nextCursor=i.cursor,this.prevCursor=i.prev_cursor},i=>{this.error=i})}getStoreText(e){return this.formatStoreText(Cy[e])}formatStoreText(e){return e.split("_").map(i=>i[0]+i.slice(1).toLowerCase()).join(" ")}}return be(t,"\u0275fac",function(e){return new(e||t)(Ae(co),Ae(Or),Ae(Ui))}),be(t,"\u0275cmp",ln({type:t,selectors:[["app-subscriptions"]],decls:31,vars:6,consts:[["type","danger",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered","table-hover"],[1,"thead-light"],[2,"width","180px"],["ngFor","",3,"ngForOf"],[4,"ngIf"],["type","danger",3,"dismissible"],["src","/src/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["colspan","6",1,"text-muted"]],template:function(e,i){1&e&&(ye(0,pct,4,2,"ngb-alert",0),A(1,"div",1)(2,"div",2),je(3,"div",3),A(4,"div",4)(5,"div",5)(6,"button",6),He("click",function(){return i.loadData("")}),je(7,"img",7),M(),A(8,"button",6),He("click",function(){return i.loadData(i.prevCursor)}),je(9,"img",8),M(),A(10,"button",6),He("click",function(){return i.loadData(i.nextCursor)}),je(11,"img",9),M()()()()(),A(12,"div",10)(13,"table",11)(14,"thead",12)(15,"tr")(16,"th"),J(17,"Product ID"),M(),A(18,"th"),J(19,"Original Transaction ID"),M(),A(20,"th"),J(21,"Store"),M(),A(22,"th",13),J(23,"Purchase Time"),M(),A(24,"th",13),J(25,"Expiry Time"),M(),A(26,"th",13),J(27,"Create Time"),M()()(),A(28,"tbody"),ye(29,gct,13,6,"ng-template",14),ye(30,mct,3,0,"tr",15),M()()()),2&e&&(N("ngIf",i.error),I(6),N("disabled",0===i.subscriptions.length),I(2),N("disabled",""===i.prevCursor),I(2),N("disabled",""===i.nextCursor),I(19),N("ngForOf",i.subscriptions),I(1),N("ngIf",0===i.subscriptions.length))},dependencies:[ti,Nn,Go]})),t})(),resolve:[(()=>{class t{constructor(e){be(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.listSubscriptions("",r,100,"")}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(Ui))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac,providedIn:"root"})),t})()]}]},{path:"apiexplorer",component:Nlt,resolve:[Rlt]},{path:"chat",component:dct,resolve:[fct]}]},{path:"login",component:ZEe,canActivate:[eMe]},{path:"**",redirectTo:""}];let yct=(()=>{class t{}return be(t,"\u0275fac",function(e){return new(e||t)}),be(t,"\u0275mod",Ji({type:t})),be(t,"\u0275inj",Xi({imports:[Y9.forRoot(vct,{useHash:!0}),Y9]})),t})(),bct=(()=>{class t{}return be(t,"\u0275fac",function(e){return new(e||t)}),be(t,"\u0275cmp",ln({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(e,i){1&e&&je(0,"router-outlet")},dependencies:[Kp]})),t})();new class kct extends Vh{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++r0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=requestAnimationFrame(()=>n.flush(null))))}recycleAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length&&(cancelAnimationFrame(e),n.scheduled=void 0)}});let Tct=1;const Act=Promise.resolve(),qD={};function Kge(t){return t in qD&&(delete qD[t],!0)}const Jge={setImmediate(t){const n=Tct++;return qD[n]=!0,Act.then(()=>Kge(n)&&t()),n},clearImmediate(t){Kge(t)}};new class Mct extends Vh{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++r0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=Jge.setImmediate(n.flush.bind(n,null))))}recycleAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length&&(Jge.clearImmediate(e),n.scheduled=void 0)}});RegExp(/[&<>"']/g.source);const js={Tab:9,Enter:13,Esc:27,Space:32,ArrowUp:38,ArrowDown:40,Backspace:8};js[js.Tab]="Tab",js[js.Enter]="Enter",js[js.Esc]="Esc",js[js.Space]="Space",js[js.ArrowUp]="ArrowUp",js[js.ArrowDown]="ArrowDown",js[js.Backspace]="Backspace";const ime=new hi("ng-select-selection-model");class Rut{constructor(){this._selected=[]}get value(){return this._selected}select(n,e,i){if(n.selected=!0,(!n.children||!e&&i)&&this._selected.push(n),e)if(n.parent){const r=n.parent.children.length,o=n.parent.children.filter(s=>s.selected).length;n.parent.selected=r===o}else n.children&&(this._setChildrenSelectedState(n.children,!0),this._removeChildren(n),this._selected=i&&this._activeChildren(n)?[...this._selected.filter(r=>r.parent!==n),n]:[...this._selected,...n.children.filter(r=>!r.disabled)])}unselect(n,e){if(this._selected=this._selected.filter(i=>i!==n),n.selected=!1,e)if(n.parent&&n.parent.selected){const i=n.parent.children;this._removeParent(n.parent),this._removeChildren(n.parent),this._selected.push(...i.filter(r=>r!==n&&!r.disabled)),n.parent.selected=!1}else n.children&&(this._setChildrenSelectedState(n.children,!1),this._removeChildren(n))}clear(n){this._selected=n?this._selected.filter(e=>e.disabled):[]}_setChildrenSelectedState(n,e){for(const i of n)i.disabled||(i.selected=e)}_removeChildren(n){this._selected=[...this._selected.filter(e=>e.parent!==n),...n.children.filter(e=>e.parent===n&&e.disabled&&e.selected)]}_removeParent(n){this._selected=this._selected.filter(e=>e!==n)}_activeChildren(n){return n.children.every(e=>!e.disabled||e.selected)}}const $ut=function Nut(){return new Rut};let Put=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ji({type:t}),t.\u0275inj=Xi({providers:[{provide:ime,useValue:$ut}],imports:[ia]}),t})(),jut=(()=>{class t{constructor(e){be(this,"authenticationService",void 0),this.authenticationService=e}intercept(e,i){const r=this.authenticationService.currentSessionValue;return r&&r.token&&(e=e.clone({setHeaders:{Authorization:`Bearer ${r.token}`}})),i.handle(e)}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(ds))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac})),t})(),But=(()=>{class t{constructor(e,i){be(this,"authenticationService",void 0),be(this,"router",void 0),this.authenticationService=e,this.router=i}intercept(e,i){return i.handle(e).pipe(tc(r=>(401===r.status?this.authenticationService.logout().subscribe({next:()=>{e.url.includes("/v3/auth")||this.router.navigate(["/login"],{queryParams:{next:this.router.routerState.snapshot.url}})}}):r.status>=500&&console.log(`${r.status}: + ${r.error.message||r.statusText}`),qp(r.error.message||r.statusText))))}}return be(t,"\u0275fac",function(e){return new(e||t)(Et(ds),Et(Or))}),be(t,"\u0275prov",Yt({token:t,factory:t.\u0275fac})),t})(),Hut=(()=>{class t{}return be(t,"\u0275fac",function(e){return new(e||t)}),be(t,"\u0275mod",Ji({type:t,bootstrap:[bct]})),be(t,"\u0275inj",Xi({providers:[KEe,Mz,{provide:w3,useValue:{host:document.location.origin,timeout:15e3}},{provide:b3,useClass:jut,multi:!0},{provide:b3,useClass:But,multi:!0}],imports:[pBe,yct,WE,kke,qEe,cLe,$6e,kEe.forRoot({apiKey:"dHl7FTjJ9icepBjEdOCcyMFQYL1BBiQO",debug:!1,loadOnInitialization:!0}),Dke,xEe,QH,Put]})),t})();mSe().bootstrapModule(Hut).then(t=>{window.ngRef&&window.ngRef.destroy(),window.ngRef=t}).catch(t=>console.error(t))},682:(fn,Gn,Ye)=>{fn=Ye.nmd(fn),function(){var ee=function(){return this}();!ee&&typeof window<"u"&&(ee=window);var it=function(v,g,_){"string"==typeof v?(2==arguments.length&&(_=g),it.modules[v]||(it.payloads[v]=_,it.modules[v]=null)):it.original?it.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace())};it.modules={},it.payloads={};var he=function(v,g,_){if("string"==typeof g){var y=D(v,g);if(null!=y)return _&&_(),y}else if("[object Array]"===Object.prototype.toString.call(g)){for(var b=[],x=0,T=g.length;x=0?parseFloat((R.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((R.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),ee.isOldIE=ee.isIE&&ee.isIE<9,ee.isGecko=ee.isMozilla=R.match(/ Gecko\/\d+/),ee.isOpera="object"==typeof opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),ee.isWebKit=parseFloat(R.split("WebKit/")[1])||void 0,ee.isChrome=parseFloat(R.split(" Chrome/")[1])||void 0,ee.isEdge=parseFloat(R.split(" Edge/")[1])||void 0,ee.isAIR=R.indexOf("AdobeAIR")>=0,ee.isAndroid=R.indexOf("Android")>=0,ee.isChromeOS=R.indexOf(" CrOS ")>=0,ee.isIOS=/iPad|iPhone|iPod/.test(R)&&!window.MSStream,ee.isIOS&&(ee.isMac=!0),ee.isMobile=ee.isIOS||ee.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(ve,ee,it){"use strict";var he=ve("./useragent");if(ee.buildDom=function D(S,v,g){if("string"==typeof S&&S){var _=document.createTextNode(S);return v&&v.appendChild(_),_}if(!Array.isArray(S))return S&&S.appendChild&&v&&v.appendChild(S),S;if("string"!=typeof S[0]||!S[0]){for(var y=[],b=0;b"u"&&(ee.importCssString=function(){}),ee.computedStyle=function(D,S){return window.getComputedStyle(D,"")||{}},ee.setStyle=function(D,S,v){D[S]!==v&&(D[S]=v)},ee.HAS_CSS_ANIMATION=!1,ee.HAS_CSS_TRANSFORMS=!1,ee.HI_DPI=!he.isWin||typeof window<"u"&&window.devicePixelRatio>=1.5,typeof document<"u"){var R=document.createElement("div");ee.HI_DPI&&void 0!==R.style.transform&&(ee.HAS_CSS_TRANSFORMS=!0),!he.isEdge&&typeof R.style.animationName<"u"&&(ee.HAS_CSS_ANIMATION=!0),R=null}ee.translate=ee.HAS_CSS_TRANSFORMS?function(D,S,v){D.style.transform="translate("+Math.round(S)+"px, "+Math.round(v)+"px)"}:function(D,S,v){D.style.top=Math.round(v)+"px",D.style.left=Math.round(S)+"px"}}),ace.define("ace/lib/oop",["require","exports","module"],function(ve,ee,it){"use strict";ee.inherits=function(he,W){he.super_=W,he.prototype=Object.create(W.prototype,{constructor:{value:he,enumerable:!1,writable:!0,configurable:!0}})},ee.mixin=function(he,W){for(var R in W)he[R]=W[R];return he},ee.implement=function(he,W){ee.mixin(he,W)}}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(ve,ee,it){"use strict";var he=ve("./oop"),W=function(){var D,S,R={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};for(S in R.FUNCTION_KEYS)D=R.FUNCTION_KEYS[S].toLowerCase(),R[D]=parseInt(S,10);for(S in R.PRINTABLE_KEYS)D=R.PRINTABLE_KEYS[S].toLowerCase(),R[D]=parseInt(S,10);return he.mixin(R,R.MODIFIER_KEYS),he.mixin(R,R.PRINTABLE_KEYS),he.mixin(R,R.FUNCTION_KEYS),R.enter=R.return,R.escape=R.esc,R.del=R.delete,R[173]="-",function(){for(var v=["cmd","ctrl","alt","shift"],g=Math.pow(2,v.length);g--;)R.KEY_MODS[g]=v.filter(function(_){return g&R.KEY_MODS[_]}).join("-")+"-"}(),R.KEY_MODS[0]="",R.KEY_MODS[-1]="input-",R}();he.mixin(ee,W),ee.keyCodeToString=function(R){var D=W[R];return"string"!=typeof D&&(D=String.fromCharCode(R)),D.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(ve,ee,it){"use strict";var S,he=ve("./keys"),W=ve("./useragent"),R=null,D=0;function g(){return null==S&&function v(){S=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){S={passive:!1}}})}catch{}}(),S}function _(K,q,O){this.elem=K,this.type=q,this.callback=O}_.prototype.destroy=function(){b(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var y=ee.addListener=function(K,q,O,U){K.addEventListener(q,O,g()),U&&U.$toDestroy.push(new _(K,q,O))},b=ee.removeListener=function(K,q,O){K.removeEventListener(q,O,g())};ee.stopEvent=function(K){return ee.stopPropagation(K),ee.preventDefault(K),!1},ee.stopPropagation=function(K){K.stopPropagation&&K.stopPropagation()},ee.preventDefault=function(K){K.preventDefault&&K.preventDefault()},ee.getButton=function(K){return"dblclick"==K.type?0:"contextmenu"==K.type||W.isMac&&K.ctrlKey&&!K.altKey&&!K.shiftKey?2:K.button},ee.capture=function(K,q,O){var U=K&&K.ownerDocument||document;function P($){q&&q($),O&&O($),b(U,"mousemove",q),b(U,"mouseup",P),b(U,"dragstart",P)}return y(U,"mousemove",q),y(U,"mouseup",P),y(U,"dragstart",P),P},ee.addMouseWheelListener=function(K,q,O){"onmousewheel"in K?y(K,"mousewheel",function(U){void 0!==U.wheelDeltaX?(U.wheelX=-U.wheelDeltaX/8,U.wheelY=-U.wheelDeltaY/8):(U.wheelX=0,U.wheelY=-U.wheelDelta/8),q(U)},O):"onwheel"in K?y(K,"wheel",function(U){switch(U.deltaMode){case U.DOM_DELTA_PIXEL:U.wheelX=.35*U.deltaX||0,U.wheelY=.35*U.deltaY||0;break;case U.DOM_DELTA_LINE:case U.DOM_DELTA_PAGE:U.wheelX=5*(U.deltaX||0),U.wheelY=5*(U.deltaY||0)}q(U)},O):y(K,"DOMMouseScroll",function(U){U.axis&&U.axis==U.HORIZONTAL_AXIS?(U.wheelX=5*(U.detail||0),U.wheelY=0):(U.wheelX=0,U.wheelY=5*(U.detail||0)),q(U)},O)},ee.addMultiMouseDownListener=function(K,q,O,U,P){var V,F,X,$=0,Ce={2:"dblclick",3:"tripleclick",4:"quadclick"};function Me(Re){if(0!==ee.getButton(Re)?$=0:Re.detail>1?++$>4&&($=1):$=1,W.isIE){var ze=Math.abs(Re.clientX-V)>5||Math.abs(Re.clientY-F)>5;(!X||ze)&&($=1),X&&clearTimeout(X),X=setTimeout(function(){X=null},q[$-1]||600),1==$&&(V=Re.clientX,F=Re.clientY)}if(Re._clicks=$,O[U]("mousedown",Re),$>4)$=0;else if($>1)return O[U](Ce[$],Re)}Array.isArray(K)||(K=[K]),K.forEach(function(Re){y(Re,"mousedown",Me,P)})};var x=function(K){return 0|(K.ctrlKey?1:0)|(K.altKey?2:0)|(K.shiftKey?4:0)|(K.metaKey?8:0)};function T(K,q,O){var U=x(q);if(!W.isMac&&R){if(q.getModifierState&&(q.getModifierState("OS")||q.getModifierState("Win"))&&(U|=8),R.altGr){if(3==(3&U))return;R.altGr=0}if(18===O||17===O){var P="location"in q?q.location:q.keyLocation;17===O&&1===P?1==R[O]&&(D=q.timeStamp):18===O&&3===U&&2===P&&q.timeStamp-D<50&&(R.altGr=!0)}}if(O in he.MODIFIER_KEYS&&(O=-1),U||13!==O||3!==(P="location"in q?q.location:q.keyLocation)||(K(q,U,-O),!q.defaultPrevented)){if(W.isChromeOS&&8&U){if(K(q,U,O),q.defaultPrevented)return;U&=-9}return!!(U||O in he.FUNCTION_KEYS||O in he.PRINTABLE_KEYS)&&K(q,U,O)}}function j(){R=Object.create(null)}if(ee.getModifierString=function(K){return he.KEY_MODS[x(K)]},ee.addCommandKeyListener=function(K,q,O){if(W.isOldGecko||W.isOpera&&!("KeyboardEvent"in window)){var U=null;y(K,"keydown",function($){U=$.keyCode},O),y(K,"keypress",function($){return T(q,$,U)},O)}else{var P=null;y(K,"keydown",function($){R[$.keyCode]=(R[$.keyCode]||0)+1;var V=T(q,$,$.keyCode);return P=$.defaultPrevented,V},O),y(K,"keypress",function($){P&&($.ctrlKey||$.altKey||$.shiftKey||$.metaKey)&&(ee.stopEvent($),P=null)},O),y(K,"keyup",function($){R[$.keyCode]=null},O),R||(j(),y(window,"focus",j))}},"object"==typeof window&&window.postMessage&&!W.isOldIE){var Y=1;ee.nextTick=function(K,q){q=q||window;var O="zero-timeout-message-"+Y++,U=function(P){P.data==O&&(ee.stopPropagation(P),b(q,"message",U),K())};y(q,"message",U),q.postMessage(O,"*")}}ee.$idleBlocked=!1,ee.onIdle=function(K,q){return setTimeout(function O(){ee.$idleBlocked?setTimeout(O,100):K()},q)},ee.$idleBlockId=null,ee.blockIdle=function(K){ee.$idleBlockId&&clearTimeout(ee.$idleBlockId),ee.$idleBlocked=!0,ee.$idleBlockId=setTimeout(function(){ee.$idleBlocked=!1},K||100)},ee.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),ee.nextFrame=ee.nextFrame?ee.nextFrame.bind(window):function(K){setTimeout(K,17)}}),ace.define("ace/range",["require","exports","module"],function(ve,ee,it){"use strict";var W=function(R,D,S,v){this.start={row:R,column:D},this.end={row:S,column:v}};(function(){this.isEqual=function(R){return this.start.row===R.start.row&&this.end.row===R.end.row&&this.start.column===R.start.column&&this.end.column===R.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(R,D){return 0==this.compare(R,D)},this.compareRange=function(R){var D,S=R.end,v=R.start;return 1==(D=this.compare(S.row,S.column))?1==(D=this.compare(v.row,v.column))?2:0==D?1:0:-1==D?-2:-1==(D=this.compare(v.row,v.column))?-1:1==D?42:0},this.comparePoint=function(R){return this.compare(R.row,R.column)},this.containsRange=function(R){return 0==this.comparePoint(R.start)&&0==this.comparePoint(R.end)},this.intersects=function(R){var D=this.compareRange(R);return-1==D||0==D||1==D},this.isEnd=function(R,D){return this.end.row==R&&this.end.column==D},this.isStart=function(R,D){return this.start.row==R&&this.start.column==D},this.setStart=function(R,D){"object"==typeof R?(this.start.column=R.column,this.start.row=R.row):(this.start.row=R,this.start.column=D)},this.setEnd=function(R,D){"object"==typeof R?(this.end.column=R.column,this.end.row=R.row):(this.end.row=R,this.end.column=D)},this.inside=function(R,D){return 0==this.compare(R,D)&&!(this.isEnd(R,D)||this.isStart(R,D))},this.insideStart=function(R,D){return 0==this.compare(R,D)&&!this.isEnd(R,D)},this.insideEnd=function(R,D){return 0==this.compare(R,D)&&!this.isStart(R,D)},this.compare=function(R,D){return this.isMultiLine()||R!==this.start.row?Rthis.end.row?1:this.start.row===R?D>=this.start.column?0:-1:this.end.row===R?D<=this.end.column?0:1:0:Dthis.end.column?1:0},this.compareStart=function(R,D){return this.start.row==R&&this.start.column==D?-1:this.compare(R,D)},this.compareEnd=function(R,D){return this.end.row==R&&this.end.column==D?1:this.compare(R,D)},this.compareInside=function(R,D){return this.end.row==R&&this.end.column==D?1:this.start.row==R&&this.start.column==D?-1:this.compare(R,D)},this.clipRows=function(R,D){if(this.end.row>D)var S={row:D+1,column:0};else this.end.rowD)var v={row:D+1,column:0};else this.start.row0;)1&D&&(S+=R),(D>>=1)&&(R+=R);return S};var he=/^\s\s*/,W=/\s\s*$/;ee.stringTrimLeft=function(R){return R.replace(he,"")},ee.stringTrimRight=function(R){return R.replace(W,"")},ee.copyObject=function(R){var D={};for(var S in R)D[S]=R[S];return D},ee.copyArray=function(R){for(var D=[],S=0,v=R.length;SDate.now()-50)||(he=!1)},cancel:function(){he=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(ve,ee,it){"use strict";var he=ve("../lib/event"),W=ve("../lib/useragent"),R=ve("../lib/dom"),D=ve("../lib/lang"),S=ve("../clipboard"),v=W.isChrome<18,g=W.isIE,_=W.isChrome>63,y=400,b=ve("../lib/keys"),x=b.KEY_MODS,T=W.isIOS,j=T?/\s/:/\n/,Y=W.isMobile;ee.TextInput=function(q,O){var U=R.createElement("textarea");U.className="ace_text-input",U.setAttribute("wrap","off"),U.setAttribute("autocorrect","off"),U.setAttribute("autocapitalize","off"),U.setAttribute("spellcheck",!1),U.style.opacity="0",q.insertBefore(U,q.firstChild);var P=!1,$=!1,V=!1,F=!1,X="";Y||(U.style.fontSize="1px");var Ce=!1,Me=!1,Re="",ze=0,Pe=0,Tt=0;try{var St=document.activeElement===U}catch{}he.addListener(U,"blur",function(Le){Me||(O.onBlur(Le),St=!1)},O),he.addListener(U,"focus",function(Le){if(!Me){if(St=!0,W.isEdge)try{if(!document.hasFocus())return}catch{}O.onFocus(Le),W.isEdge?setTimeout(ht):ht()}},O),this.$focusScroll=!1,this.focus=function(){if(X||_||"browser"==this.$focusScroll)return U.focus({preventScroll:!0});var Le=U.style.top;U.style.position="fixed",U.style.top="0px";try{var et=0!=U.getBoundingClientRect().top}catch{return}var Ot=[];if(et)for(var Jt=U.parentElement;Jt&&1==Jt.nodeType;)Ot.push(Jt),Jt.setAttribute("ace_nocontext",!0),Jt=!Jt.parentElement&&Jt.getRootNode?Jt.getRootNode().host:Jt.parentElement;U.focus({preventScroll:!0}),et&&Ot.forEach(function(si){si.removeAttribute("ace_nocontext")}),setTimeout(function(){U.style.position="","0px"==U.style.top&&(U.style.top=Le)},0)},this.blur=function(){U.blur()},this.isFocused=function(){return St},O.on("beforeEndOperation",function(){var Le=O.curOp,et=Le&&Le.command&&Le.command.name;"insertstring"!=et&&(V&&et&&(Le.docChanged||Le.selectionChanged)&&(Re=U.value="",lr()),ht())});var ht=T?function(Le){if(St&&(!P||Le)&&!F){Le||(Le="");var et="\n ab"+Le+"cde fg\n";et!=U.value&&(U.value=Re=et);var Jt=4+(Le.length||(O.selection.isEmpty()?0:1));(4!=ze||Pe!=Jt)&&U.setSelectionRange(4,Jt),ze=4,Pe=Jt}}:function(){if(!V&&!F&&(St||At)){V=!0;var Le=0,et=0,Ot="";if(O.session){var Jt=O.selection,si=Jt.getRange(),H=Jt.cursor.row;if(Le=si.start.column,et=si.end.column,Ot=O.session.getLine(H),si.start.row!=H){var yt=O.session.getLine(H-1);Le=si.start.rowH+1?Lt.length:et,et+=Ot.length+1,Ot=Ot+"\n"+Lt}else Y&&H>0&&(Ot="\n"+Ot,et+=1,Le+=1);Ot.length>y&&(Le0&&Re[Vt]==Le[Vt];)Vt++,si--;for(yt=yt.slice(Vt),Vt=1;H>0&&Re.length-Vt>ze-1&&Re[Re.length-Vt]==Le[Le.length-Vt];)Vt++,H--;Lt-=Vt-1,Kt-=Vt-1;var wn=yt.length-Vt+1;if(wn<0&&(si=-wn,wn=0),yt=yt.slice(0,wn),!(et||yt||Lt||si||H||Kt))return"";F=!0;var Ne=!1;return W.isAndroid&&". "==yt&&(yt=" ",Ne=!0),yt&&!si&&!H&&!Lt&&!Kt||Ce?O.onTextInput(yt):O.onTextInput(yt,{extendLeft:si,extendRight:H,restoreStart:Lt,restoreEnd:Kt}),F=!1,Re=Le,ze=Ot,Pe=Jt,Tt=Kt,Ne?"\n":yt},Tn=function(Le){if(V)return qn();if(Le&&Le.inputType){if("historyUndo"==Le.inputType)return O.execCommand("undo");if("historyRedo"==Le.inputType)return O.execCommand("redo")}var et=U.value,Ot=pn(et,!0);(et.length>500||j.test(Ot)||Y&&ze<1&&ze==Pe)&&ht()},Vn=function(Le,et,Ot){var Jt=Le.clipboardData||window.clipboardData;if(Jt&&!v){var si=g||Ot?"Text":"text/plain";try{return et?!1!==Jt.setData(si,et):Jt.getData(si)}catch(H){if(!Ot)return Vn(H,et,!0)}}},wi=function(Le,et){var Ot=O.getCopyText();if(!Ot)return he.preventDefault(Le);Vn(Le,Ot)?(T&&(ht(Ot),P=Ot,setTimeout(function(){P=!1},10)),et?O.onCut():O.onCopy(),he.preventDefault(Le)):(P=!0,U.value=Ot,U.select(),setTimeout(function(){P=!1,ht(),et?O.onCut():O.onCopy()}))},pr=function(Le){wi(Le,!0)},Ri=function(Le){wi(Le,!1)},ci=function(Le){var et=Vn(Le);S.pasteCancelled()||("string"==typeof et?(et&&O.onPaste(et,Le),W.isIE&&setTimeout(ht),he.preventDefault(Le)):(U.value="",$=!0))};he.addCommandKeyListener(U,O.onCommandKey.bind(O),O),he.addListener(U,"select",function(Le){V||(P?P=!1:function(Le){return 0===Le.selectionStart&&Le.selectionEnd>=Re.length&&Le.value===Re&&Re&&Le.selectionEnd!==Pe}(U)?(O.selectAll(),ht()):Y&&U.selectionStart!=ze&&ht())},O),he.addListener(U,"input",Tn,O),he.addListener(U,"cut",pr,O),he.addListener(U,"copy",Ri,O),he.addListener(U,"paste",ci,O),(!("oncut"in U)||!("oncopy"in U)||!("onpaste"in U))&&he.addListener(q,"keydown",function(Le){if((!W.isMac||Le.metaKey)&&Le.ctrlKey)switch(Le.keyCode){case 67:Ri(Le);break;case 86:ci(Le);break;case 88:pr(Le)}},O);var qn=function(){if(V&&O.onCompositionUpdate&&!O.$readOnly){if(Ce)return Wi();V.useTextareaForIME?O.onCompositionUpdate(U.value):(pn(U.value),V.markerRange&&(V.context&&(V.markerRange.start.column=V.selectionStart=V.context.compositionStartOffset),V.markerRange.end.column=V.markerRange.start.column+Pe-V.selectionStart+Tt))}},lr=function(Le){!O.onCompositionEnd||O.$readOnly||(V=!1,O.onCompositionEnd(),O.off("mousedown",Wi),Le&&Tn())};function Wi(){Me=!0,U.blur(),U.focus(),Me=!1}var vr,Gi=D.delayedCall(qn,50).schedule.bind(null,null);function We(){clearTimeout(vr),vr=setTimeout(function(){X&&(U.style.cssText=X,X=""),O.renderer.$isMousePressed=!1,O.renderer.$keepTextAreaAtCursor&&O.renderer.$moveTextAreaToCursor()},0)}he.addListener(U,"compositionstart",function(Le){if(!V&&O.onCompositionStart&&!O.$readOnly&&(V={},!Ce)){Le.data&&(V.useTextareaForIME=!1),setTimeout(qn,0),O._signal("compositionStart"),O.on("mousedown",Wi);var et=O.getSelectionRange();et.end.row=et.start.row,et.end.column=et.start.column,V.markerRange=et,V.selectionStart=ze,O.onCompositionStart(V),V.useTextareaForIME?(Re=U.value="",ze=0,Pe=0):(U.msGetInputContext&&(V.context=U.msGetInputContext()),U.getInputContext&&(V.context=U.getInputContext()))}},O),he.addListener(U,"compositionupdate",qn,O),he.addListener(U,"keyup",function zn(Le){27==Le.keyCode&&U.value.lengthPe&&"\n"==Re[Kt]?Vt=b.end:LtPe&&Re.slice(0,Kt).split("\n").length>2?Vt=b.down:Kt>Pe&&" "==Re[Kt-1]?(Vt=b.right,wn=x.option):(Kt>Pe||Kt==Pe&&Pe!=ze&&Lt==Kt)&&(Vt=b.right),Lt!==Kt&&(wn|=x.shift),Vt){if(!et.onCommandKey({},wn,Vt)&&et.commands){Vt=b.keyCodeToString(Vt);var jt=et.commands.findKeyCommand(wn,Vt);jt&&et.execCommand(jt)}ze=Lt,Pe=Kt,ht("")}}};document.addEventListener("selectionchange",H),et.on("destroy",function(){document.removeEventListener("selectionchange",H)})}(0,O,U)},ee.$setUserAgentForTests=function(q,O){Y=q,T=O}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(ve,ee,it){"use strict";var he=ve("../lib/useragent");function D(g){g.$clickSelection=null;var _=g.editor;_.setDefaultHandler("mousedown",this.onMouseDown.bind(g)),_.setDefaultHandler("dblclick",this.onDoubleClick.bind(g)),_.setDefaultHandler("tripleclick",this.onTripleClick.bind(g)),_.setDefaultHandler("quadclick",this.onQuadClick.bind(g)),_.setDefaultHandler("mousewheel",this.onMouseWheel.bind(g)),["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach(function(b){g[b]=this[b]},this),g.selectByLines=this.extendSelectionBy.bind(g,"getLineRange"),g.selectByWords=this.extendSelectionBy.bind(g,"getWordRange")}function v(g,_){if(g.start.row==g.end.row)var y=2*_.column-g.start.column-g.end.column;else if(g.start.row!=g.end.row-1||g.start.column||g.end.column)y=2*_.row-g.start.row-g.end.row;else y=_.column-4;return y<0?{cursor:g.start,anchor:g.end}:{cursor:g.end,anchor:g.start}}(function(){this.onMouseDown=function(g){var _=g.inSelection(),y=g.getDocumentPosition();this.mousedownEvent=g;var b=this.editor,x=g.getButton();return 0!==x?((b.getSelectionRange().isEmpty()||1==x)&&b.selection.moveToPosition(y),void(2==x&&(b.textInput.onContextMenu(g.domEvent),he.isMozilla||g.preventDefault()))):(this.mousedownEvent.time=Date.now(),!_||b.isFocused()||(b.focus(),!this.$focusTimeout||this.$clickSelection||b.inMultiSelectMode)?(this.captureMouse(g),this.startSelect(y,g.domEvent._clicks>1),g.preventDefault()):(this.setState("focusWait"),void this.captureMouse(g)))},this.startSelect=function(g,_){g=g||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var y=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?y.selection.selectToPosition(g):_||y.selection.moveToPosition(g),_||this.select(),y.renderer.scroller.setCapture&&y.renderer.scroller.setCapture(),y.setStyle("ace_selecting"),this.setState("select"))},this.select=function(){var g,_=this.editor,y=_.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var b=this.$clickSelection.comparePoint(y);if(-1==b)g=this.$clickSelection.end;else if(1==b)g=this.$clickSelection.start;else{var x=v(this.$clickSelection,y);y=x.cursor,g=x.anchor}_.selection.setSelectionAnchor(g.row,g.column)}_.selection.selectToPosition(y),_.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(g){var _,y=this.editor,b=y.renderer.screenToTextCoordinates(this.x,this.y),x=y.selection[g](b.row,b.column);if(this.$clickSelection){var T=this.$clickSelection.comparePoint(x.start),j=this.$clickSelection.comparePoint(x.end);if(-1==T&&j<=0)_=this.$clickSelection.end,(x.end.row!=b.row||x.end.column!=b.column)&&(b=x.start);else if(1==j&&T>=0)_=this.$clickSelection.start,(x.start.row!=b.row||x.start.column!=b.column)&&(b=x.end);else if(-1==T&&1==j)b=x.end,_=x.start;else{var Y=v(this.$clickSelection,b);b=Y.cursor,_=Y.anchor}y.selection.setSelectionAnchor(_.row,_.column)}y.selection.selectToPosition(b),y.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var g=function S(g,_,y,b){return Math.sqrt(Math.pow(y-g,2)+Math.pow(b-_,2))}(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),_=Date.now();(g>0||_-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(g){var _=g.getDocumentPosition(),y=this.editor,x=y.session.getBracketRange(_);x?(x.isEmpty()&&(x.start.column--,x.end.column++),this.setState("select")):(x=y.selection.getWordRange(_.row,_.column),this.setState("selectByWords")),this.$clickSelection=x,this.select()},this.onTripleClick=function(g){var _=g.getDocumentPosition(),y=this.editor;this.setState("selectByLines");var b=y.getSelectionRange();b.isMultiLine()&&b.contains(_.row,_.column)?(this.$clickSelection=y.selection.getLineRange(b.start.row),this.$clickSelection.end=y.selection.getLineRange(b.end.row).end):this.$clickSelection=y.selection.getLineRange(_.row),this.select()},this.onQuadClick=function(g){var _=this.editor;_.selectAll(),this.$clickSelection=_.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(g){if(!g.getAccelKey()){g.getShiftKey()&&g.wheelY&&!g.wheelX&&(g.wheelX=g.wheelY,g.wheelY=0);var _=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var y=this.$lastScroll,b=g.domEvent.timeStamp,x=b-y.t,T=x?g.wheelX/x:y.vx,j=x?g.wheelY/x:y.vy;x<550&&(T=(T+y.vx)/2,j=(j+y.vy)/2);var Y=Math.abs(T/j),K=!1;if(Y>=1&&_.renderer.isScrollableBy(g.wheelX*g.speed,0)&&(K=!0),Y<=1&&_.renderer.isScrollableBy(0,g.wheelY*g.speed)&&(K=!0),K?y.allowed=b:b-y.allowed<550&&(Math.abs(T)<=1.5*Math.abs(y.vx)&&Math.abs(j)<=1.5*Math.abs(y.vy)?(K=!0,y.allowed=b):y.allowed=0),y.t=b,y.vx=T,y.vy=j,K)return _.renderer.scrollBy(g.wheelX*g.speed,g.wheelY*g.speed),g.stop()}}}).call(D.prototype),ee.DefaultHandlers=D}),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],function(ve,ee,it){"use strict";ve("./lib/oop");var W=ve("./lib/dom");function R(D){this.isOpen=!1,this.$element=null,this.$parentNode=D}(function(){this.$init=function(){return this.$element=W.createElement("div"),this.$element.className="ace_tooltip",this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(D){this.getElement().textContent=D},this.setHtml=function(D){this.getElement().innerHTML=D},this.setPosition=function(D,S){this.getElement().style.left=D+"px",this.getElement().style.top=S+"px"},this.setClassName=function(D){W.addCssClass(this.getElement(),D)},this.show=function(D,S,v){null!=D&&this.setText(D),null!=S&&null!=v&&this.setPosition(S,v),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(R.prototype),ee.Tooltip=R}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],function(ve,ee,it){"use strict";var he=ve("../lib/dom"),W=ve("../lib/oop"),R=ve("../lib/event"),D=ve("../tooltip").Tooltip;function v(g){D.call(this,g)}W.inherits(v,D),function(){this.setPosition=function(g,_){var y=window.innerWidth||document.documentElement.clientWidth,b=window.innerHeight||document.documentElement.clientHeight,x=this.getWidth(),T=this.getHeight();(g+=15)+x>y&&(g-=g+x-y),(_+=15)+T>b&&(_-=20+T),D.prototype.setPosition.call(this,g,_)}}.call(v.prototype),ee.GutterHandler=function S(g){var x,T,j,_=g.editor,y=_.renderer.$gutterLayer,b=new v(_.container);function K(){x&&(x=clearTimeout(x)),j&&(b.hide(),j=null,_._signal("hideGutterTooltip",b),_.off("mousewheel",K))}function q(O){b.setPosition(O.x,O.y)}g.editor.setDefaultHandler("guttermousedown",function(O){if(_.isFocused()&&0==O.getButton()&&"foldWidgets"!=y.getRegion(O)){var P=O.getDocumentPosition().row,$=_.session.selection;if(O.getShiftKey())$.selectTo(P,0);else{if(2==O.domEvent.detail)return _.selectAll(),O.preventDefault();g.$clickSelection=_.selection.getLineRange(P)}return g.setState("selectByLines"),g.captureMouse(O),O.preventDefault()}}),g.editor.setDefaultHandler("guttermousemove",function(O){if(he.hasCssClass(O.domEvent.target||O.domEvent.srcElement,"ace_fold-widget"))return K();j&&g.$tooltipFollowsMouse&&q(O),T=O,!x&&(x=setTimeout(function(){x=null,T&&!g.isMousePressed?function Y(){var O=T.getDocumentPosition().row,U=y.$annotations[O];if(!U)return K();if(O==_.session.getLength()){var $=_.renderer.pixelToScreenCoordinates(0,T.y).row,V=T.$pos;if($>_.session.documentToScreenRow(V.row,V.column))return K()}if(j!=U)if(j=U.text.join("
    "),b.setHtml(j),b.show(),_._signal("showGutterTooltip",b),_.on("mousewheel",K),g.$tooltipFollowsMouse)q(T);else{var X=T.domEvent.target.getBoundingClientRect(),Ce=b.getElement().style;Ce.left=X.right+"px",Ce.top=X.bottom+"px"}}():K()},50))}),R.addListener(_.renderer.$gutter,"mouseout",function(O){T=null,j&&!x&&(x=setTimeout(function(){x=null,K()},50))},_),_.on("changeSession",K)}}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(ve,ee,it){"use strict";var he=ve("../lib/event"),W=ve("../lib/useragent"),R=ee.MouseEvent=function(D,S){this.domEvent=D,this.editor=S,this.x=this.clientX=D.clientX,this.y=this.clientY=D.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){he.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){he.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var S=this.editor.getSelectionRange();if(S.isEmpty())this.$inSelection=!1;else{var v=this.getDocumentPosition();this.$inSelection=S.contains(v.row,v.column)}return this.$inSelection},this.getButton=function(){return he.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=W.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(R.prototype)}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(ve,ee,it){"use strict";var he=ve("../lib/dom"),W=ve("../lib/event"),R=ve("../lib/useragent"),D=200,S=200,v=5;function g(y){var b=y.editor,x=he.createElement("img");x.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",R.isOpera&&(x.style.cssText="width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;"),["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach(function(At){y[At]=this[At]},this),b.on("mousedown",this.onMouseDown.bind(y));var Y,K,q,O,U,P,V,F,X,Ce,Me,j=b.container,$=0;function Pe(){var At=P;(function Re(At,pn){var Tn=Date.now();Ce&&pn&&At.row==pn.row&&pn&&At.column==pn.column?_(Me.x,Me.y,K,q)>v?Ce=null:Tn-Ce>=S&&(b.renderer.scrollCursorIntoView(),Ce=null):(b.moveCursorToPosition(At),Ce=Tn,Me={x:K,y:q})})(P=b.renderer.screenToTextCoordinates(K,q),At),function ze(At,pn){var Tn=Date.now(),Vn=b.renderer.layerConfig.lineHeight,wi=b.renderer.layerConfig.characterWidth,pr=b.renderer.scroller.getBoundingClientRect(),Ri={x:{left:K-pr.left,right:pr.right-K},y:{top:q-pr.top,bottom:pr.bottom-q}},ci=Math.min(Ri.x.left,Ri.x.right),$i=Math.min(Ri.y.top,Ri.y.bottom),qn={row:At.row,column:At.column};ci/wi<=2&&(qn.column+=Ri.x.left=D&&b.renderer.scrollCursorIntoView(qn):X=Tn:X=null}(P,At)}function Tt(){U=b.selection.toOrientedRange(),Y=b.session.addMarker(U,"ace_selection",b.getSelectionStyle()),b.clearSelection(),b.isFocused()&&b.renderer.$cursorLayer.setBlinking(!1),clearInterval(O),Pe(),O=setInterval(Pe,20),$=0,W.addListener(document,"mousemove",It)}function St(){clearInterval(O),b.session.removeMarker(Y),Y=null,b.selection.fromOrientedRange(U),b.isFocused()&&!F&&b.$resetCursorStyle(),U=null,P=null,$=0,X=null,Ce=null,W.removeListener(document,"mousemove",It)}this.onDragStart=function(At){if(this.cancelDrag||!j.draggable){var pn=this;return setTimeout(function(){pn.startSelect(),pn.captureMouse(At)},0),At.preventDefault()}U=b.getSelectionRange();var Tn=At.dataTransfer;Tn.effectAllowed=b.getReadOnly()?"copy":"copyMove",R.isOpera&&(b.container.appendChild(x),x.scrollTop=0),Tn.setDragImage&&Tn.setDragImage(x,0,0),R.isOpera&&b.container.removeChild(x),Tn.clearData(),Tn.setData("Text",b.session.getTextRange()),F=!0,this.setState("drag")},this.onDragEnd=function(At){j.draggable=!1,F=!1,this.setState(null),b.getReadOnly()||(!V&&"move"==At.dataTransfer.dropEffect&&b.session.remove(b.getSelectionRange()),b.$resetCursorStyle()),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(At){if(!b.getReadOnly()&&mt(At.dataTransfer))return K=At.clientX,q=At.clientY,Y||Tt(),$++,At.dataTransfer.dropEffect=V=Zt(At),W.preventDefault(At)},this.onDragOver=function(At){if(!b.getReadOnly()&&mt(At.dataTransfer))return K=At.clientX,q=At.clientY,Y||(Tt(),$++),null!==ht&&(ht=null),At.dataTransfer.dropEffect=V=Zt(At),W.preventDefault(At)},this.onDragLeave=function(At){if(--$<=0&&Y)return St(),V=null,W.preventDefault(At)},this.onDrop=function(At){if(P){var pn=At.dataTransfer;if(F)switch(V){case"move":U=U.contains(P.row,P.column)?{start:P,end:P}:b.moveText(U,P);break;case"copy":U=b.moveText(U,P,!0)}else{var Tn=pn.getData("Text");U={start:P,end:b.session.insert(P,Tn)},b.focus(),V=null}return St(),W.preventDefault(At)}},W.addListener(j,"dragstart",this.onDragStart.bind(y),b),W.addListener(j,"dragend",this.onDragEnd.bind(y),b),W.addListener(j,"dragenter",this.onDragEnter.bind(y),b),W.addListener(j,"dragover",this.onDragOver.bind(y),b),W.addListener(j,"dragleave",this.onDragLeave.bind(y),b),W.addListener(j,"drop",this.onDrop.bind(y),b);var ht=null;function It(){null==ht&&(ht=setTimeout(function(){null!=ht&&Y&&St()},20))}function mt(At){var pn=At.types;return!pn||Array.prototype.some.call(pn,function(Tn){return"text/plain"==Tn||"Text"==Tn})}function Zt(At){var pn=["copy","copymove","all","uninitialized"],Vn=R.isMac?At.altKey:At.ctrlKey,wi="uninitialized";try{wi=At.dataTransfer.effectAllowed.toLowerCase()}catch{}var pr="none";return Vn&&pn.indexOf(wi)>=0?pr="copy":["move","copymove","linkmove","all","uninitialized"].indexOf(wi)>=0?pr="move":pn.indexOf(wi)>=0&&(pr="copy"),pr}}function _(y,b,x,T){return Math.sqrt(Math.pow(x-y,2)+Math.pow(T-b,2))}(function(){this.dragWait=function(){Date.now()-this.mousedownEvent.time>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(y){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var y=this.editor;y.container.draggable=!0,y.renderer.$cursorLayer.setBlinking(!1),y.setStyle("ace_dragging"),y.renderer.setCursorStyle(R.isWin?"default":"move"),this.setState("dragReady")},this.onMouseDrag=function(y){var b=this.editor.container;R.isIE&&"dragReady"==this.state&&_(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>3&&b.dragDrop(),"dragWait"===this.state&&_(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>0&&(b.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))},this.onMouseDown=function(y){if(this.$dragEnabled){this.mousedownEvent=y;var b=this.editor,x=y.inSelection(),T=y.getButton();if(1===(y.domEvent.detail||1)&&0===T&&x){if(y.editor.inMultiSelectMode&&(y.getAccelKey()||y.getShiftKey()))return;this.mousedownEvent.time=Date.now();var Y=y.domEvent.target||y.domEvent.srcElement;"unselectable"in Y&&(Y.unselectable="on"),b.getDragDelay()?(R.isWebKit&&(this.cancelDrag=!0,b.container.draggable=!0),this.setState("dragWait")):this.startDrag(),this.captureMouse(y,this.onMouseDrag.bind(this)),y.defaultPrevented=!0}}}}).call(g.prototype),ee.DragdropHandler=g}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(ve,ee,it){"use strict";var he=ve("./mouse_event").MouseEvent,W=ve("../lib/event"),R=ve("../lib/dom");ee.addTouchListeners=function(D,S){var g,_,y,b,x,T,Y,U,P,v="scroll",j=0,K=0,q=0,O=0;function V(){P||function $(){var Re=window.navigator&&window.navigator.clipboard,ze=!1,Tt=function(St){var ht=St.target.getAttribute("action");if("more"==ht||!ze)return ze=!ze,function(){var St=S.getCopyText(),ht=S.session.getUndoManager().hasUndo();P.replaceChild(R.buildDom(ze?["span",!St&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],St&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],St&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],Re&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],ht&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPallete"},"Pallete"]]:["span"]),P.firstChild)}();"paste"==ht?Re.readText().then(function(It){S.execCommand(ht,It)}):ht&&(("cut"==ht||"copy"==ht)&&(Re?Re.writeText(S.getCopyText()):document.execCommand("copy")),S.execCommand(ht)),P.firstChild.style.display="none",ze=!1,"openCommandPallete"!=ht&&S.focus()};P=R.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(St){v="menu",St.stopPropagation(),St.preventDefault(),S.textInput.focus()},ontouchend:function(St){St.stopPropagation(),St.preventDefault(),Tt(St)},onclick:Tt},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],S.container)}();var Re=S.selection.cursor,ze=S.renderer.textToScreenCoordinates(Re.row,Re.column),Pe=S.renderer.textToScreenCoordinates(0,0).pageX,Tt=S.renderer.scrollLeft,St=S.container.getBoundingClientRect();P.style.top=ze.pageY-St.top-3+"px",ze.pageX-St.left1)return clearTimeout(x),x=null,y=-1,void(v="zoom");U=S.$mouseHandler.isMousePressed=!0;var Pe=S.renderer.layerConfig.lineHeight,Tt=S.renderer.layerConfig.lineHeight,St=Re.timeStamp;b=St;var ht=ze[0],It=ht.clientX,mt=ht.clientY;Math.abs(g-It)+Math.abs(_-mt)>Pe&&(y=-1),g=Re.clientX=It,_=Re.clientY=mt,q=O=0;var Zt=new he(Re,S);if(Y=Zt.getDocumentPosition(),St-y<500&&1==ze.length&&!j)K++,Re.preventDefault(),Re.button=0,function Ce(){x=null,clearTimeout(x),S.selection.moveToPosition(Y);var Re=K>=2?S.selection.getLineRange(Y.row):S.session.getBracketRange(Y);Re&&!Re.isEmpty()?S.selection.setRange(Re):S.selection.selectWord(),v="wait"}();else{K=0;var At=S.selection.cursor,pn=S.selection.isEmpty()?At:S.selection.anchor,Tn=S.renderer.$cursorLayer.getPixelPosition(At,!0),Vn=S.renderer.$cursorLayer.getPixelPosition(pn,!0),wi=S.renderer.scroller.getBoundingClientRect(),pr=S.renderer.layerConfig.offset,Ri=S.renderer.scrollLeft,ci=function(lr,Wi){return(lr/=Tt)*lr+(Wi=Wi/Pe-.75)*Wi};if(Re.clientXqn?"cursor":"anchor"),v=qn<3.5?"anchor":$i<3.5?"cursor":"scroll",x=setTimeout(X,450)}y=St},S),W.addListener(D,"touchend",function(Re){U=S.$mouseHandler.isMousePressed=!1,T&&clearInterval(T),"zoom"==v?(v="",j=0):x?(S.selection.moveToPosition(Y),j=0,V()):"scroll"==v?(function Me(){j+=60,T=setInterval(function(){j--<=0&&(clearInterval(T),T=null),Math.abs(q)<.01&&(q=0),Math.abs(O)<.01&&(O=0),j<20&&(q*=.9),j<20&&(O*=.9);var Re=S.session.getScrollTop();S.renderer.scrollBy(10*q,10*O),Re==S.session.getScrollTop()&&(j=0)},10)}(),F()):V(),clearTimeout(x),x=null},S),W.addListener(D,"touchmove",function(Re){x&&(clearTimeout(x),x=null);var ze=Re.touches;if(!(ze.length>1||"zoom"==v)){var Pe=ze[0],Tt=g-Pe.clientX,St=_-Pe.clientY;if("wait"==v){if(!(Tt*Tt+St*St>4))return Re.preventDefault();v="cursor"}g=Pe.clientX,_=Pe.clientY,Re.clientX=Pe.clientX,Re.clientY=Pe.clientY;var ht=Re.timeStamp,It=ht-b;if(b=ht,"scroll"==v){var mt=new he(Re,S);mt.speed=1,mt.wheelX=Tt,mt.wheelY=St,10*Math.abs(Tt)1&&(Y=T[T.length-2]);var q=v[x+"Path"];return null==q?q=v.basePath:"/"==j&&(x=j=""),q&&"/"!=q.slice(-1)&&(q+="/"),q+x+j+Y+this.get("suffix")},ee.setModuleUrl=function(b,x){return v.$moduleUrls[b]=x},ee.$loading={},ee.loadModule=function(b,x){var T,j;Array.isArray(b)&&(j=b[0],b=b[1]);try{T=ve(b)}catch{}if(T&&!ee.$loading[b])return x&&x(T);if(ee.$loading[b]||(ee.$loading[b]=[]),ee.$loading[b].push(x),!(ee.$loading[b].length>1)){var Y=function(){ve([b],function(K){ee._emit("load.module",{name:b,module:K});var q=ee.$loading[b];ee.$loading[b]=null,q.forEach(function(O){O&&O(K)})})};if(!ee.get("packaged"))return Y();R.loadScript(ee.moduleUrl(b,j),Y),g()}};var g=function(){!v.basePath&&!v.workerPath&&!v.modePath&&!v.themePath&&!Object.keys(v.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),g=function(){})};function _(b){if(S&&S.document){v.packaged=b||ve.packaged||it.packaged||S.define&&Ye.amdD.packaged;for(var x={},T="",j=document.currentScript||document._currentScript,K=(j&&j.ownerDocument||document).getElementsByTagName("script"),q=0;q=Ri){for(Wi=lr+1;Wi=Ri;)Wi++;for(Gi=lr,zn=Wi-1;Gi=ci.length||(Wi=$i[qn-1])!=O&&Wi!=U||(Gi=ci[qn+1])!=O&&Gi!=U?P:(S&&(Gi=U),Gi==Wi?Gi:P);case Me:return(Wi=qn>0?$i[qn-1]:$)==O&&qn+10&&$i[qn-1]==O)return O;if(S)return P;for(vr=qn+1,zn=ci.length;vr=1425&&We<=2303||64286==We)&&(Wi==q||Wi==F))return q}return qn<1||(Wi=ci[qn-1])==$?P:$i[qn-1];case $:return S=!1,g=!0,R;case V:return _=!0,P;case Pe:case Tt:case ht:case It:case St:S=!1;case mt:return P}}function wi(Ri){var ci=Ri.charCodeAt(0),$i=ci>>8;return 0==$i?ci>191?K:Zt[ci]:5==$i?/[\u0591-\u05f4]/.test(Ri)?q:K:6==$i?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(Ri)?ze:/[\u0660-\u0669\u066b-\u066c]/.test(Ri)?U:1642==ci?Re:/[\u06f0-\u06f9]/.test(Ri)?O:F:32==$i&&ci<=8287?At[255&ci]:254==$i&&ci>=65136?F:P}ee.L=K,ee.R=q,ee.EN=O,ee.ON_R=3,ee.AN=4,ee.R_H=5,ee.B=6,ee.RLE=7,ee.DOT="\xb7",ee.doBidiReorder=function(Ri,ci,$i){if(Ri.length<2)return{};var qn=Ri.split(""),lr=new Array(qn.length),Wi=new Array(qn.length),Gi=[];R=$i?Y:0,function pn(Ri,ci,$i,qn){var lr=R?T:x,Wi=null,Gi=null,zn=null,vr=0,We=null,xe=-1,Le=null,et=null,Ot=[];if(!qn)for(Le=0,qn=[];Le<$i;Le++)qn[Le]=wi(Ri[Le]);for(D=R,S=!1,g=!1,_=!1,et=0;et<$i;et++){if(Wi=vr,Ot[et]=Gi=Vn(Ri,qn,Ot,et),We=240&(vr=lr[Wi][Gi]),ci[et]=zn=lr[vr&=15][5],We>0)if(16==We){for(Le=xe;Le-1){for(Le=xe;Le=0&&qn[Jt]==X;Jt--)ci[Jt]=R}}(qn,Gi,qn.length,ci);for(var zn=0;znF&&ci[zn]0&&"\u0644"===qn[zn-1]&&/\u0622|\u0623|\u0625|\u0627/.test(qn[zn])&&(Gi[zn-1]=Gi[zn]=ee.R_H,zn++);for(qn[qn.length-1]===ee.DOT&&(Gi[qn.length-1]=ee.B),"\u202b"===qn[0]&&(Gi[0]=ee.RLE),zn=0;zn=0&&(S=this.session.$docRowCache[g])}return S},this.getSplitIndex=function(){var S=0,v=this.session.$screenRowCache;if(v.length)for(var g,_=this.session.$getRowCacheIndex(v,this.currentRow);this.currentRow-S>0&&(g=this.session.$getRowCacheIndex(v,this.currentRow-S-1))===_;)_=g,S++;else S=this.currentRow;return S},this.updateRowLine=function(S,v){void 0===S&&(S=this.getDocumentRow());var _=S===this.session.getLength()-1?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(S),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var y=this.session.$wrapData[S];y&&(void 0===v&&(v=this.getSplitIndex()),v>0&&y.length?(this.wrapIndent=y.indent,this.wrapOffset=this.wrapIndent*this.charWidths[he.L],this.line=vv?this.session.getOverwrite()?S:S-1:v,_=he.getVisualFromLogicalIdx(g,this.bidiMap),y=this.bidiMap.bidiLevels,b=0;!this.session.getOverwrite()&&S<=v&&y[_]%2!=0&&_++;for(var x=0;x<_;x++)b+=this.charWidths[y[x]];return!this.session.getOverwrite()&&S>v&&y[_]%2==0&&(b+=this.charWidths[y[_]]),this.wrapIndent&&(b+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(b+=this.rtlLineOffset),b},this.getSelections=function(S,v){var y,g=this.bidiMap,_=g.bidiLevels,b=[],x=0,T=Math.min(S,v)-this.wrapIndent,j=Math.max(S,v)-this.wrapIndent,Y=!1,K=!1,q=0;this.wrapIndent&&(x+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var O,U=0;U<_.length;U++)y=_[U],(Y=(O=g.logicalFromVisual[U])>=T&&O_+x/2;){if(_+=x,y===b.length-1){x=0;break}x=this.charWidths[b[++y]]}return y>0&&b[y-1]%2!=0&&b[y]%2==0?(g<_&&y--,v=this.bidiMap.logicalFromVisual[y]):y>0&&b[y-1]%2==0&&b[y]%2!=0?v=1+(g>_?this.bidiMap.logicalFromVisual[y]:this.bidiMap.logicalFromVisual[y-1]):this.isRtlDir&&y===b.length-1&&0===x&&b[y-1]%2==0||!this.isRtlDir&&0===y&&b[y]%2!=0?v=1+this.bidiMap.logicalFromVisual[y]:(y>0&&b[y-1]%2!=0&&0!==x&&y--,v=this.bidiMap.logicalFromVisual[y]),0===v&&this.isRtlDir&&v++,v+this.wrapIndent}}).call(D.prototype),ee.BidiHandler=D}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(ve,ee,it){"use strict";var he=ve("./lib/oop"),W=ve("./lib/lang"),R=ve("./lib/event_emitter").EventEmitter,D=ve("./range").Range,S=function(v){this.session=v,this.doc=v.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var g=this;this.cursor.on("change",function(_){g.$cursorChanged=!0,g.$silent||g._emit("changeCursor"),!g.$isEmpty&&!g.$silent&&g._emit("changeSelection"),!g.$keepDesiredColumnOnChange&&_.old.column!=_.value.column&&(g.$desiredColumn=null)}),this.anchor.on("change",function(){g.$anchorChanged=!0,!g.$isEmpty&&!g.$silent&&g._emit("changeSelection")})};(function(){he.implement(this,R),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(v,g){this.$isEmpty=!1,this.anchor.setPosition(v,g)},this.getAnchor=this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.isBackwards=function(){var v=this.anchor,g=this.lead;return v.row>g.row||v.row==g.row&&v.column>g.column},this.getRange=function(){var v=this.anchor,g=this.lead;return this.$isEmpty?D.fromPoints(g,g):this.isBackwards()?D.fromPoints(g,v):D.fromPoints(v,g)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(v,g){var _=g?v.end:v.start,y=g?v.start:v.end;this.$setSelection(_.row,_.column,y.row,y.column)},this.$setSelection=function(v,g,_,y){if(!this.$silent){var b=this.$isEmpty,x=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(v,g),this.cursor.setPosition(_,y),this.$isEmpty=!D.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||b!=this.$isEmpty||x)&&this._emit("changeSelection")}},this.$moveSelection=function(v){var g=this.lead;this.$isEmpty&&this.setSelectionAnchor(g.row,g.column),v.call(this)},this.selectTo=function(v,g){this.$moveSelection(function(){this.moveCursorTo(v,g)})},this.selectToPosition=function(v){this.$moveSelection(function(){this.moveCursorToPosition(v)})},this.moveTo=function(v,g){this.clearSelection(),this.moveCursorTo(v,g)},this.moveToPosition=function(v){this.clearSelection(),this.moveCursorToPosition(v)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(v,g){if(typeof g>"u"){var _=v||this.lead;v=_.row,g=_.column}return this.session.getWordRange(v,g)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var v=this.getCursor(),g=this.session.getAWordRange(v.row,v.column);this.setSelectionRange(g)},this.getLineRange=function(v,g){var y,_="number"==typeof v?v:this.lead.row,b=this.session.getFoldLine(_);return b?(_=b.start.row,y=b.end.row):y=_,!0===g?new D(_,0,y,this.session.getLine(y).length):new D(_,0,y+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(v,g,_){var y=v.column,b=v.column+g;return _<0&&(y=v.column-g,b=v.column),this.session.isTabStop(v)&&this.doc.getLine(v.row).slice(y,b).split(" ").length-1==g},this.moveCursorLeft=function(){var g,v=this.lead.getPosition();if(g=this.session.getFoldAt(v.row,v.column,-1))this.moveCursorTo(g.start.row,g.start.column);else if(0===v.column)v.row>0&&this.moveCursorTo(v.row-1,this.doc.getLine(v.row-1).length);else{var _=this.session.getTabSize();this.wouldMoveIntoSoftTab(v,_,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-_):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var g,v=this.lead.getPosition();if(g=this.session.getFoldAt(v.row,v.column,1))this.moveCursorTo(g.end.row,g.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(g.column=y)}}this.moveCursorTo(g.row,g.column)},this.moveCursorFileEnd=function(){var v=this.doc.getLength()-1,g=this.doc.getLine(v).length;this.moveCursorTo(v,g)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var v=this.lead.row,g=this.lead.column,_=this.doc.getLine(v),y=_.substring(g);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var b=this.session.getFoldAt(v,g,1);if(!b)return this.session.nonTokenRe.exec(y)&&(g+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,y=_.substring(g)),g>=_.length?(this.moveCursorTo(v,_.length),this.moveCursorRight(),void(v0&&this.moveCursorWordLeft());this.session.tokenRe.exec(b)&&(g-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(v,g)}},this.$shortWordEndIndex=function(v){var _,g=0,y=/\s/,b=this.session.tokenRe;if(b.lastIndex=0,this.session.tokenRe.exec(v))g=this.session.tokenRe.lastIndex;else{for(;(_=v[g])&&y.test(_);)g++;if(g<1)for(b.lastIndex=0;(_=v[g])&&!b.test(_);)if(b.lastIndex=0,g++,y.test(_)){if(g>2){g--;break}for(;(_=v[g])&&y.test(_);)g++;if(g>2)break}}return b.lastIndex=0,g},this.moveCursorShortWordRight=function(){var v=this.lead.row,g=this.lead.column,_=this.doc.getLine(v),y=_.substring(g),b=this.session.getFoldAt(v,g,1);if(b)return this.moveCursorTo(b.end.row,b.end.column);if(g==_.length){var x=this.doc.getLength();do{v++,y=this.doc.getLine(v)}while(v0&&/^\s*$/.test(y));g=y.length,/\s+$/.test(y)||(y="")}var b=W.stringReverse(y),x=this.$shortWordEndIndex(b);return this.moveCursorTo(v,g-x)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(v,g){var y,_=this.session.documentToScreenPosition(this.lead.row,this.lead.column);if(0===g&&(0!==v&&(this.session.$bidiHandler.isBidiRow(_.row,this.lead.row)?(y=this.session.$bidiHandler.getPosLeft(_.column),_.column=Math.round(y/this.session.$bidiHandler.charWidths[0])):y=_.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?_.column=this.$desiredColumn:this.$desiredColumn=_.column),0!=v&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var b=this.session.lineWidgets[this.lead.row];v<0?v-=b.rowsAbove||0:v>0&&(v+=b.rowCount-(b.rowsAbove||0))}var x=this.session.screenToDocumentPosition(_.row+v,_.column,y);this.moveCursorTo(x.row,x.column+g,0===g)},this.moveCursorToPosition=function(v){this.moveCursorTo(v.row,v.column)},this.moveCursorTo=function(v,g,_){var y=this.session.getFoldAt(v,g,1);y&&(v=y.start.row,g=y.start.column),this.$keepDesiredColumnOnChange=!0;var b=this.session.getLine(v);/[\uDC00-\uDFFF]/.test(b.charAt(g))&&b.charAt(g-1)&&(this.lead.row==v&&this.lead.column==g+1?g-=1:g+=1),this.lead.setPosition(v,g),this.$keepDesiredColumnOnChange=!1,_||(this.$desiredColumn=null)},this.moveCursorToScreen=function(v,g,_){var y=this.session.screenToDocumentPosition(v,g);this.moveCursorTo(y.row,y.column,_)},this.detach=function(){this.lead.detach(),this.anchor.detach(),this.session=this.doc=null},this.fromOrientedRange=function(v){this.setSelectionRange(v,v.cursor==v.start),this.$desiredColumn=v.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(v){var g=this.getRange();return v?(v.start.column=g.start.column,v.start.row=g.start.row,v.end.column=g.end.column,v.end.row=g.end.row):v=g,v.cursor=this.isBackwards()?v.start:v.end,v.desiredColumn=this.$desiredColumn,v},this.getRangeOfMovements=function(v){var g=this.getCursor();try{v(this);var _=this.getCursor();return D.fromPoints(g,_)}catch{return D.fromPoints(g,g)}finally{this.moveCursorToPosition(g)}},this.toJSON=function(){if(this.rangeCount)var v=this.ranges.map(function(g){var _=g.clone();return _.isBackwards=g.cursor==g.start,_});else(v=this.getRange()).isBackwards=this.isBackwards();return v},this.fromJSON=function(v){if(null==v.start){if(this.rangeList&&v.length>1){this.toSingleRange(v[0]);for(var g=v.length;g--;){var _=D.fromPoints(v[g].start,v[g].end);v[g].isBackwards&&(_.cursor=_.start),this.addRange(_,!0)}return}v=v[0]}this.rangeList&&this.toSingleRange(v),this.setSelectionRange(v,v.isBackwards)},this.isEqual=function(v){if((v.length||this.rangeCount)&&v.length!=this.rangeCount)return!1;if(!v.length||!this.ranges)return this.getRange().isEqual(v);for(var g=this.ranges.length;g--;)if(!this.ranges[g].isEqual(v[g]))return!1;return!0}}).call(S.prototype),ee.Selection=S}),ace.define("ace/tokenizer",["require","exports","module","ace/config"],function(ve,ee,it){"use strict";var he=ve("./config"),W=2e3,R=function(D){for(var S in this.states=D,this.regExps={},this.matchMappings={},this.states){for(var v=this.states[S],g=[],_=0,y=this.matchMappings[S]={defaultToken:"text"},b="g",x=[],T=0;T1?this.$applyToken:j.token),K>1&&(/\\\d/.test(j.regex)?Y=j.regex.replace(/\\([0-9]+)/g,function(q,O){return"\\"+(parseInt(O,10)+_+1)}):(K=1,Y=this.removeCapturingGroups(j.regex)),!j.splitRegex&&"string"!=typeof j.token&&x.push(j)),y[_]=T,_+=K,g.push(Y),j.onMatch||(j.onMatch=null)}}g.length||(y[0]=0,g.push("$")),x.forEach(function(q){q.splitRegex=this.createSplitterRegexp(q.regex,b)},this),this.regExps[S]=new RegExp("("+g.join(")|(")+")|($)",b)}};(function(){this.$setMaxTokenCount=function(D){W=0|D},this.$applyToken=function(D){var S=this.splitRegex.exec(D).slice(1),v=this.token.apply(this,S);if("string"==typeof v)return[{type:v,value:D}];for(var g=[],_=0,y=v.length;_j){var $=D.substring(j,P-U.length);K.type==q?K.value+=$:(K.type&&T.push(K),K={type:q,value:$})}for(var V=0;VW){for(Y>2*D.length&&this.reportError("infinite loop with in ace tokenizer",{startState:S,line:D});j1&&v[0]!==g&&v.unshift("#tmp",g),{tokens:T,state:v.length?v:g}},this.reportError=he.reportError}).call(R.prototype),ee.Tokenizer=R}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],function(ve,ee,it){"use strict";var he=ve("../lib/lang"),W=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(S,v){if(v)for(var g in S){for(var _=S[g],y=0;y<_.length;y++){var b=_[y];(b.next||b.onMatch)&&("string"==typeof b.next&&0!==b.next.indexOf(v)&&(b.next=v+b.next),b.nextState&&0!==b.nextState.indexOf(v)&&(b.nextState=v+b.nextState))}this.$rules[v+g]=_}else for(var g in S)this.$rules[g]=S[g]},this.getRules=function(){return this.$rules},this.embedRules=function(S,v,g,_,y){var b="function"==typeof S?(new S).getRules():S;if(_)for(var x=0;x<_.length;x++)_[x]=v+_[x];else for(var T in _=[],b)_.push(v+T);if(this.addRules(b,v),g){var j=Array.prototype[y?"push":"unshift"];for(x=0;x<_.length;x++)j.apply(this.$rules[_[x]],he.deepCopy(g))}this.$embeds||(this.$embeds=[]),this.$embeds.push(v)},this.getEmbeds=function(){return this.$embeds};var R=function(S,v){return("start"!=S||v.length)&&v.unshift(this.nextState,S),this.nextState},D=function(S,v){return v.shift(),v.shift()||"start"};this.normalizeRules=function(){var S=0,v=this.$rules;Object.keys(v).forEach(function g(_){var y=v[_];y.processed=!0;for(var b=0;b=this.$rowTokens.length;){if(this.$row+=1,R||(R=this.$session.getLength()),this.$row>=R)return this.$row=R-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var R=this.$rowTokens,D=this.$tokenIndex,S=R[D].start;if(void 0!==S)return S;for(S=0;D>0;)S+=R[D-=1].value.length;return S},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var R=this.$rowTokens[this.$tokenIndex],D=this.getCurrentTokenColumn();return new he(this.$row,D,this.$row,D+R.value.length)}}).call(W.prototype),ee.TokenIterator=W}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(ve,ee,it){"use strict";var g,he=ve("../../lib/oop"),W=ve("../behaviour").Behaviour,R=ve("../../token_iterator").TokenIterator,D=ve("../../lib/lang"),S=["text","paren.rparen","rparen","paren","punctuation.operator"],v=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],_={},y={'"':'"',"'":"'"},b=function(j){var Y=-1;if(j.multiSelect&&(Y=j.selection.index,_.rangeCount!=j.multiSelect.rangeCount&&(_={rangeCount:j.multiSelect.rangeCount})),_[Y])return g=_[Y];g=_[Y]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},x=function(j,Y,K,q){var O=j.end.row-j.start.row;return{text:K+Y+q,selection:[0,j.start.column+1,O,j.end.column+(O?0:1)]}},T=function(j){this.add("braces","insertion",function(Y,K,q,O,U){var P=q.getCursorPosition(),$=O.doc.getLine(P.row);if("{"==U){b(q);var V=q.getSelectionRange(),F=O.doc.getTextRange(V);if(""!==F&&"{"!==F&&q.getWrapBehavioursEnabled())return x(V,F,"{","}");if(T.isSaneInsertion(q,O))return/[\]\}\)]/.test($[P.column])||q.inMultiSelectMode||j&&j.braces?(T.recordAutoInsert(q,O,"}"),{text:"{}",selection:[1,1]}):(T.recordMaybeInsert(q,O,"{"),{text:"{",selection:[1,1]})}else if("}"==U){if(b(q),"}"==$.substring(P.column,P.column+1)&&null!==O.$findOpeningBracket("}",{column:P.column+1,row:P.row})&&T.isAutoInsertedClosing(P,$,U))return T.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if("\n"==U||"\r\n"==U){b(q);var Me="";if(T.isMaybeInsertedClosing(P,$)&&(Me=D.stringRepeat("}",g.maybeInsertedBrackets),T.clearMaybeInsertedClosing()),"}"===$.substring(P.column,P.column+1)){var Re=O.findMatchingBracket({row:P.row,column:P.column+1},"}");if(!Re)return null;var ze=this.$getIndent(O.getLine(Re.row))}else{if(!Me)return void T.clearMaybeInsertedClosing();ze=this.$getIndent($)}var Pe=ze+O.getTabString();return{text:"\n"+Pe+"\n"+ze+Me,selection:[1,Pe.length,1,Pe.length]}}T.clearMaybeInsertedClosing()}}),this.add("braces","deletion",function(Y,K,q,O,U){var P=O.doc.getTextRange(U);if(!U.isMultiLine()&&"{"==P){if(b(q),"}"==O.doc.getLine(U.start.row).substring(U.end.column,U.end.column+1))return U.end.column++,U;g.maybeInsertedBrackets--}}),this.add("parens","insertion",function(Y,K,q,O,U){if("("==U){b(q);var P=q.getSelectionRange(),$=O.doc.getTextRange(P);if(""!==$&&q.getWrapBehavioursEnabled())return x(P,$,"(",")");if(T.isSaneInsertion(q,O))return T.recordAutoInsert(q,O,")"),{text:"()",selection:[1,1]}}else if(")"==U){b(q);var V=q.getCursorPosition(),F=O.doc.getLine(V.row);if(")"==F.substring(V.column,V.column+1)&&null!==O.$findOpeningBracket(")",{column:V.column+1,row:V.row})&&T.isAutoInsertedClosing(V,F,U))return T.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("parens","deletion",function(Y,K,q,O,U){var P=O.doc.getTextRange(U);if(!U.isMultiLine()&&"("==P&&(b(q),")"==O.doc.getLine(U.start.row).substring(U.start.column+1,U.start.column+2)))return U.end.column++,U}),this.add("brackets","insertion",function(Y,K,q,O,U){if("["==U){b(q);var P=q.getSelectionRange(),$=O.doc.getTextRange(P);if(""!==$&&q.getWrapBehavioursEnabled())return x(P,$,"[","]");if(T.isSaneInsertion(q,O))return T.recordAutoInsert(q,O,"]"),{text:"[]",selection:[1,1]}}else if("]"==U){b(q);var V=q.getCursorPosition(),F=O.doc.getLine(V.row);if("]"==F.substring(V.column,V.column+1)&&null!==O.$findOpeningBracket("]",{column:V.column+1,row:V.row})&&T.isAutoInsertedClosing(V,F,U))return T.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("brackets","deletion",function(Y,K,q,O,U){var P=O.doc.getTextRange(U);if(!U.isMultiLine()&&"["==P&&(b(q),"]"==O.doc.getLine(U.start.row).substring(U.start.column+1,U.start.column+2)))return U.end.column++,U}),this.add("string_dquotes","insertion",function(Y,K,q,O,U){var P=O.$mode.$quotes||y;if(1==U.length&&P[U]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(U))return;b(q);var $=U,V=q.getSelectionRange(),F=O.doc.getTextRange(V);if(""!==F&&(1!=F.length||!P[F])&&q.getWrapBehavioursEnabled())return x(V,F,$,$);if(!F){var X=q.getCursorPosition(),Ce=O.doc.getLine(X.row),Me=Ce.substring(X.column-1,X.column),Re=Ce.substring(X.column,X.column+1),ze=O.getTokenAt(X.row,X.column),Pe=O.getTokenAt(X.row,X.column+1);if("\\"==Me&&ze&&/escape/.test(ze.type))return null;var ht,Tt=ze&&/string|escape/.test(ze.type),St=!Pe||/string|escape/.test(Pe.type);if(Re==$)(ht=Tt!==St)&&/string\.end/.test(Pe.type)&&(ht=!1);else{if(Tt&&!St||Tt&&St)return null;var It=O.$mode.tokenRe;It.lastIndex=0;var mt=It.test(Me);It.lastIndex=0;var Zt=It.test(Me);if(mt||Zt||Re&&!/[\s;,.})\]\\]/.test(Re))return null;var At=Ce[X.column-2];if(Me==$&&(At==$||It.test(At)))return null;ht=!0}return{text:ht?$+$:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(Y,K,q,O,U){var P=O.$mode.$quotes||y,$=O.doc.getTextRange(U);if(!U.isMultiLine()&&P.hasOwnProperty($)&&(b(q),O.doc.getLine(U.start.row).substring(U.start.column+1,U.start.column+2)==$))return U.end.column++,U})};T.isSaneInsertion=function(j,Y){var K=j.getCursorPosition(),q=new R(Y,K.row,K.column);if(!this.$matchTokenType(q.getCurrentToken()||"text",S)){if(/[)}\]]/.test(j.session.getLine(K.row)[K.column]))return!0;var O=new R(Y,K.row,K.column+1);if(!this.$matchTokenType(O.getCurrentToken()||"text",S))return!1}return q.stepForward(),q.getCurrentTokenRow()!==K.row||this.$matchTokenType(q.getCurrentToken()||"text",v)},T.$matchTokenType=function(j,Y){return Y.indexOf(j.type||j)>-1},T.recordAutoInsert=function(j,Y,K){var q=j.getCursorPosition(),O=Y.doc.getLine(q.row);this.isAutoInsertedClosing(q,O,g.autoInsertedLineEnd[0])||(g.autoInsertedBrackets=0),g.autoInsertedRow=q.row,g.autoInsertedLineEnd=K+O.substr(q.column),g.autoInsertedBrackets++},T.recordMaybeInsert=function(j,Y,K){var q=j.getCursorPosition(),O=Y.doc.getLine(q.row);this.isMaybeInsertedClosing(q,O)||(g.maybeInsertedBrackets=0),g.maybeInsertedRow=q.row,g.maybeInsertedLineStart=O.substr(0,q.column)+K,g.maybeInsertedLineEnd=O.substr(q.column),g.maybeInsertedBrackets++},T.isAutoInsertedClosing=function(j,Y,K){return g.autoInsertedBrackets>0&&j.row===g.autoInsertedRow&&K===g.autoInsertedLineEnd[0]&&Y.substr(j.column)===g.autoInsertedLineEnd},T.isMaybeInsertedClosing=function(j,Y){return g.maybeInsertedBrackets>0&&j.row===g.maybeInsertedRow&&Y.substr(j.column)===g.maybeInsertedLineEnd&&Y.substr(0,j.column)==g.maybeInsertedLineStart},T.popAutoInsertedClosing=function(){g.autoInsertedLineEnd=g.autoInsertedLineEnd.substr(1),g.autoInsertedBrackets--},T.clearMaybeInsertedClosing=function(){g&&(g.maybeInsertedBrackets=0,g.maybeInsertedRow=-1)},he.inherits(T,W),ee.CstyleBehaviour=T}),ace.define("ace/unicode",["require","exports","module"],function(ve,ee,it){"use strict";for(var he=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],W=0,R=[],D=0;D2?Tn%U!=U-1:Tn%U==0}}else{if(!this.blockComment)return!1;$=this.blockComment.start;var V=this.blockComment.end,X=(F=new RegExp("^(\\s*)(?:"+v.escapeRegExp($)+")"),new RegExp("(?:"+v.escapeRegExp(V)+")\\s*$"));Ce=function(ht,It){Re(ht,It)||(!K||/\S/.test(ht))&&(Y.insertInLine({row:It,column:ht.length},V),Y.insertInLine({row:It,column:O},$))},Me=function(ht,It){var mt;(mt=ht.match(X))&&Y.removeInLine(It,ht.length-mt[0].length,ht.length),(mt=ht.match(F))&&Y.removeInLine(It,mt[1].length,mt[0].length)},Re=function(ht,It){if(F.test(ht))return!0;for(var mt=x.getTokens(It),Zt=0;Ztht.length&&(St=ht.length)}),O==1/0&&(O=St,K=!1,q=!1),P&&O%U!=0&&(O=Math.floor(O/U)*U),Tt(q?Me:Ce)},this.toggleBlockComment=function(b,x,T,j){var Y=this.blockComment;if(Y){!Y.start&&Y[0]&&(Y=Y[0]);var P,$,q=(K=new g(x,j.row,j.column)).getCurrentToken(),U=x.selection.toOrientedRange();if(q&&/comment/.test(q.type)){for(var V,F;q&&/comment/.test(q.type);){if(-1!=(X=q.value.indexOf(Y.start))){var Ce=K.getCurrentTokenRow(),Me=K.getCurrentTokenColumn()+X;V=new _(Ce,Me,Ce,Me+Y.start.length);break}q=K.stepBackward()}var K;for(q=(K=new g(x,j.row,j.column)).getCurrentToken();q&&/comment/.test(q.type);){var X;if(-1!=(X=q.value.indexOf(Y.end))){Ce=K.getCurrentTokenRow(),Me=K.getCurrentTokenColumn()+X,F=new _(Ce,Me,Ce,Me+Y.end.length);break}q=K.stepForward()}F&&x.remove(F),V&&(x.remove(V),P=V.start.row,$=-Y.start.length)}else $=Y.start.length,P=T.start.row,x.insert(T.end,Y.end),x.insert(T.start,Y.start);U.start.row==P&&(U.start.column+=$),U.end.row==P&&(U.end.column+=$),x.selection.fromOrientedRange(U)}},this.getNextLineIndent=function(b,x,T){return this.$getIndent(x)},this.checkOutdent=function(b,x,T){return!1},this.autoOutdent=function(b,x,T){},this.$getIndent=function(b){return b.match(/^\s*/)[0]},this.createWorker=function(b){return null},this.createModeDelegates=function(b){for(var x in this.$embeds=[],this.$modes={},b)if(b[x]){var T=b[x],j=T.prototype.$id,Y=he.$modes[j];Y||(he.$modes[j]=Y=new T),he.$modes[x]||(he.$modes[x]=Y),this.$embeds.push(x),this.$modes[x]=Y}var K=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(x=0;x"u"?this.setPosition(S.row,S.column):this.setPosition(S,v)};(function(){function D(v,g,_){return v.rowthis.row)){var g=function S(v,g,_){var y="insert"==v.action,b=(y?1:-1)*(v.end.row-v.start.row),x=(y?1:-1)*(v.end.column-v.start.column),T=v.start,j=y?T:v.end;return D(g,T,_)?{row:g.row,column:g.column}:D(j,g,!_)?{row:g.row+b,column:g.column+(g.row==j.row?x:0)}:{row:T.row,column:T.column}}(v,{row:this.row,column:this.column},this.$insertRight);this.setPosition(g.row,g.column,!0)}},this.setPosition=function(v,g,_){var y;if(y=_?{row:v,column:g}:this.$clipPositionToDocument(v,g),this.row!=y.row||this.column!=y.column){var b={row:this.row,column:this.column};this.row=y.row,this.column=y.column,this._signal("change",{old:b,value:y})}},this.detach=function(){this.document.off("change",this.$onChange)},this.attach=function(v){this.document=v||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(v,g){var _={};return v>=this.document.getLength()?(_.row=Math.max(0,this.document.getLength()-1),_.column=this.document.getLine(_.row).length):v<0?(_.row=0,_.column=0):(_.row=v,_.column=Math.min(this.document.getLine(_.row).length,Math.max(0,g))),g<0&&(_.column=0),_}}).call(R.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(ve,ee,it){"use strict";var he=ve("./lib/oop"),W=ve("./apply_delta").applyDelta,R=ve("./lib/event_emitter").EventEmitter,D=ve("./range").Range,S=ve("./anchor").Anchor,v=function(g){this.$lines=[""],0===g.length?this.$lines=[""]:Array.isArray(g)?this.insertMergedLines({row:0,column:0},g):this.insert({row:0,column:0},g)};(function(){he.implement(this,R),this.setValue=function(g){var _=this.getLength()-1;this.remove(new D(0,0,_,this.getLine(_).length)),this.insert({row:0,column:0},g)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(g,_){return new S(this,g,_)},this.$split=0==="aaa".split(/a/).length?function(g){return g.replace(/\r\n|\r/g,"\n").split("\n")}:function(g){return g.split(/\r\n|\r|\n/)},this.$detectNewLine=function(g){var _=g.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=_?_[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(g){this.$newLineMode!==g&&(this.$newLineMode=g,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(g){return"\r\n"==g||"\r"==g||"\n"==g},this.getLine=function(g){return this.$lines[g]||""},this.getLines=function(g,_){return this.$lines.slice(g,_+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(g){return this.getLinesForRange(g).join(this.getNewLineCharacter())},this.getLinesForRange=function(g){var _;if(g.start.row===g.end.row)_=[this.getLine(g.start.row).substring(g.start.column,g.end.column)];else{(_=this.getLines(g.start.row,g.end.row))[0]=(_[0]||"").substring(g.start.column);var y=_.length-1;g.end.row-g.start.row==y&&(_[y]=_[y].substring(0,g.end.column))}return _},this.insertLines=function(g,_){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(g,_)},this.removeLines=function(g,_){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(g,_)},this.insertNewLine=function(g){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(g,["",""])},this.insert=function(g,_){return this.getLength()<=1&&this.$detectNewLine(_),this.insertMergedLines(g,this.$split(_))},this.insertInLine=function(g,_){var y=this.clippedPos(g.row,g.column),b=this.pos(g.row,g.column+_.length);return this.applyDelta({start:y,end:b,action:"insert",lines:[_]},!0),this.clonePos(b)},this.clippedPos=function(g,_){var y=this.getLength();void 0===g?g=y:g<0?g=0:g>=y&&(g=y-1,_=void 0);var b=this.getLine(g);return null==_&&(_=b.length),{row:g,column:_=Math.min(Math.max(_,0),b.length)}},this.clonePos=function(g){return{row:g.row,column:g.column}},this.pos=function(g,_){return{row:g,column:_}},this.$clipPosition=function(g){var _=this.getLength();return g.row>=_?(g.row=Math.max(0,_-1),g.column=this.getLine(_-1).length):(g.row=Math.max(0,g.row),g.column=Math.min(Math.max(g.column,0),this.getLine(g.row).length)),g},this.insertFullLines=function(g,_){var y=0;(g=Math.min(Math.max(g,0),this.getLength()))0,b=_=0&&this.applyDelta({start:this.pos(g,this.getLine(g).length),end:this.pos(g+1,0),action:"remove",lines:["",""]})},this.replace=function(g,_){return g instanceof D||(g=D.fromPoints(g.start,g.end)),0===_.length&&g.isEmpty()?g.start:_==this.getTextRange(g)?g.end:(this.remove(g),_?this.insert(g.start,_):g.start)},this.applyDeltas=function(g){for(var _=0;_=0;_--)this.revertDelta(g[_])},this.applyDelta=function(g,_){var y="insert"==g.action;(y?g.lines.length<=1&&!g.lines[0]:!D.comparePoints(g.start,g.end))||(y&&g.lines.length>2e4?this.$splitAndapplyLargeDelta(g,2e4):(W(this.$lines,g,_),this._signal("change",g)))},this.$safeApplyDelta=function(g){var _=this.$lines.length;("remove"==g.action&&g.start.row<_&&g.end.row<_||"insert"==g.action&&g.start.row<=_)&&this.applyDelta(g)},this.$splitAndapplyLargeDelta=function(g,_){for(var y=g.lines,b=y.length-_+1,x=g.start.row,T=g.start.column,j=0,Y=0;j20){v.running=setTimeout(v.$worker,20);break}}v.currentLine=_,-1==y&&(y=_),x<=y&&v.fireUpdateEvent(x,y)}}};(function(){he.implement(this,W),this.setTokenizer=function(D){this.tokenizer=D,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(D){this.doc=D,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(D,S){this._signal("update",{data:{first:D,last:S}})},this.start=function(D){this.currentLine=Math.min(D||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(D){var S=D.start.row,v=D.end.row-S;if(0===v)this.lines[S]=null;else if("remove"==D.action)this.lines.splice(S,v+1,null),this.states.splice(S,v+1,null);else{var g=Array(v+1);g.unshift(S,1),this.lines.splice.apply(this.lines,g),this.states.splice.apply(this.states,g)}this.currentLine=Math.min(S,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(D){return this.lines[D]||this.$tokenizeRow(D)},this.getState=function(D){return this.currentLine==D&&this.$tokenizeRow(D),this.states[D]||"start"},this.$tokenizeRow=function(D){var S=this.doc.getLine(D),g=this.tokenizer.getLineTokens(S,this.states[D-1],D);return this.states[D]+""!=g.state+""?(this.states[D]=g.state,this.lines[D+1]=null,this.currentLine>D+1&&(this.currentLine=D+1)):this.currentLine==D&&(this.currentLine=D+1),this.lines[D]=g.tokens}}).call(R.prototype),ee.BackgroundTokenizer=R}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(ve,ee,it){"use strict";var he=ve("./lib/lang"),R=(ve("./lib/oop"),ve("./range").Range),D=function(S,v,g){this.setRegexp(S),this.clazz=v,this.type=g||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(S){this.regExp+""!=S+""&&(this.regExp=S,this.cache=[])},this.update=function(S,v,g,_){if(this.regExp)for(var b=_.lastRow,x=_.firstRow;x<=b;x++){var T=this.cache[x];null==T&&((T=he.getMatchOffsets(g.getLine(x),this.regExp)).length>this.MAX_RANGES&&(T=T.slice(0,this.MAX_RANGES)),T=T.map(function(Y){return new R(x,Y.offset,x,Y.offset+Y.length)}),this.cache[x]=T.length?T:"");for(var j=T.length;j--;)v.drawSingleLineMarker(S,T[j].toScreenRange(g),this.clazz,_)}}}).call(D.prototype),ee.SearchHighlight=D}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(ve,ee,it){"use strict";var he=ve("../range").Range;function W(R,D){this.foldData=R,Array.isArray(D)?this.folds=D:D=this.folds=[D];var S=D[D.length-1];this.range=new he(D[0].start.row,D[0].start.column,S.end.row,S.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(v){v.setFoldLine(this)},this)}(function(){this.shiftRow=function(R){this.start.row+=R,this.end.row+=R,this.folds.forEach(function(D){D.start.row+=R,D.end.row+=R})},this.addFold=function(R){if(R.sameRow){if(R.start.rowthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(R),this.folds.sort(function(D,S){return-D.range.compareEnd(S.start.row,S.start.column)}),this.range.compareEnd(R.start.row,R.start.column)>0?(this.end.row=R.end.row,this.end.column=R.end.column):this.range.compareStart(R.end.row,R.end.column)<0&&(this.start.row=R.start.row,this.start.column=R.start.column)}else if(R.start.row==this.end.row)this.folds.push(R),this.end.row=R.end.row,this.end.column=R.end.column;else{if(R.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(R),this.start.row=R.start.row,this.start.column=R.start.column}R.foldLine=this},this.containsRow=function(R){return R>=this.start.row&&R<=this.end.row},this.walk=function(R,D,S){var _,y,v=0,g=this.folds,x=!0;null==D&&(D=this.end.row,S=this.end.column);for(var T=0;T0)){var x=W(D,y.start);return 0===b?S&&0!==x?-_-2:_:x>0||0===x&&!S?_:-_-1}}return-_-1},this.add=function(D){var S=!D.isEmpty(),v=this.pointIndex(D.start,S);v<0&&(v=-v-1);var g=this.pointIndex(D.end,S,v);return g<0?g=-g-1:g++,this.ranges.splice(v,g-v,D)},this.addList=function(D){for(var S=[],v=D.length;v--;)S.push.apply(S,this.add(D[v]));return S},this.substractPoint=function(D){var S=this.pointIndex(D);if(S>=0)return this.ranges.splice(S,1)},this.merge=function(){for(var g,D=[],S=this.ranges,v=(S=S.sort(function(b,x){return W(b.start,x.start)}))[0],_=1;_=0},this.containsPoint=function(D){return this.pointIndex(D)>=0},this.rangeAtPoint=function(D){var S=this.pointIndex(D);if(S>=0)return this.ranges[S]},this.clipRows=function(D,S){var v=this.ranges;if(v[0].start.row>S||v[v.length-1].start.row=g);b++);if("insert"==D.action){for(var j=_-g,Y=-S.column+v.column;bg);b++)if(T.start.row==g&&T.start.column>=S.column&&(T.start.column==S.column&&this.$bias<=0||(T.start.column+=Y,T.start.row+=j)),T.end.row==g&&T.end.column>=S.column){if(T.end.column==S.column&&this.$bias<0)continue;T.end.column==S.column&&Y>0&&bT.start.column&&T.end.column==y[b+1].start.column&&(T.end.column-=Y),T.end.column+=Y,T.end.row+=j}}else for(j=g-_,Y=S.column-v.column;b_);b++)T.end.row<_&&(gS.column)&&(T.end.column=S.column,T.end.row=S.row):(T.end.column+=Y,T.end.row+=j):T.end.row>_&&(T.end.row+=j),T.start.row<_&&(gS.column)&&(T.start.column=S.column,T.start.row=S.row):(T.start.column+=Y,T.start.row+=j):T.start.row>_&&(T.start.row+=j);if(0!=j&&b=v)return b;if(b.end.row>v)return null}return null},this.getNextFoldLine=function(v,g){var _=this.$foldData,y=0;for(g&&(y=_.indexOf(g)),-1==y&&(y=0);y<_.length;y++){var b=_[y];if(b.end.row>=v)return b}return null},this.getFoldedRowCount=function(v,g){for(var _=this.$foldData,y=g-v+1,b=0;b<_.length;b++){var x=_[b],T=x.end.row,j=x.start.row;if(T>=g){j=v?y-=g-j:y=0);break}T>=v&&(y-=j>=v?T-j:T-v+1)}return y},this.$addFoldLine=function(v){return this.$foldData.push(v),this.$foldData.sort(function(g,_){return g.start.row-_.start.row}),v},this.addFold=function(v,g){var b,_=this.$foldData,y=!1;v instanceof R?b=v:(b=new R(g,v)).collapseChildren=g.collapseChildren,this.$clipRangeToDocument(b.range);var x=b.start.row,T=b.start.column,j=b.end.row,Y=b.end.column,K=this.getFoldAt(x,T,1),q=this.getFoldAt(j,Y,-1);if(K&&q==K)return K.addSubFold(b);K&&!K.range.isStart(x,T)&&this.removeFold(K),q&&!q.range.isEnd(j,Y)&&this.removeFold(q);var O=this.getFoldsInRange(b.range);O.length>0&&(this.removeFolds(O),b.collapseChildren||O.forEach(function(V){b.addSubFold(V)}));for(var U=0;U<_.length;U++){var P=_[U];if(j==P.start.row){P.addFold(b),y=!0;break}if(x==P.end.row){if(P.addFold(b),y=!0,!b.sameRow){var $=_[U+1];if($&&$.start.row==j){P.merge($);break}}break}if(j<=P.start.row)break}return y||(P=this.$addFoldLine(new W(this.$foldData,b))),this.$useWrapMode?this.$updateWrapData(P.start.row,P.start.row):this.$updateRowLengthCache(P.start.row,P.start.row),this.$modified=!0,this._signal("changeFold",{data:b,action:"add"}),b},this.addFolds=function(v){v.forEach(function(g){this.addFold(g)},this)},this.removeFold=function(v){var g=v.foldLine,_=g.start.row,y=g.end.row,b=this.$foldData,x=g.folds;if(1==x.length)b.splice(b.indexOf(g),1);else if(g.range.isEnd(v.end.row,v.end.column))x.pop(),g.end.row=x[x.length-1].end.row,g.end.column=x[x.length-1].end.column;else if(g.range.isStart(v.start.row,v.start.column))x.shift(),g.start.row=x[0].start.row,g.start.column=x[0].start.column;else if(v.sameRow)x.splice(x.indexOf(v),1);else{var T=g.split(v.start.row,v.start.column);(x=T.folds).shift(),T.start.row=x[0].start.row,T.start.column=x[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(_,y):this.$updateRowLengthCache(_,y)),this.$modified=!0,this._signal("changeFold",{data:v,action:"remove"})},this.removeFolds=function(v){for(var g=[],_=0;_0&&this.foldAll(v.start.row+1,v.end.row,v.collapseChildren-1),v.subFolds=[]},this.expandFolds=function(v){v.forEach(function(g){this.expandFold(g)},this)},this.unfold=function(v,g){var _,y;if(null==v?(_=new he(0,0,this.getLength(),0),null==g&&(g=!0)):_="number"==typeof v?new he(v,0,v,this.getLine(v).length):"row"in v?he.fromPoints(v,v):v,y=this.getFoldsInRangeList(_),0!=g?this.removeFolds(y):this.expandFolds(y),y.length)return y},this.isRowFolded=function(v,g){return!!this.getFoldLine(v,g)},this.getRowFoldEnd=function(v,g){var _=this.getFoldLine(v,g);return _?_.end.row:v},this.getRowFoldStart=function(v,g){var _=this.getFoldLine(v,g);return _?_.start.row:v},this.getFoldDisplayLine=function(v,g,_,y,b){null==y&&(y=v.start.row),null==b&&(b=0),null==g&&(g=v.end.row),null==_&&(_=this.getLine(g).length);var x=this.doc,T="";return v.walk(function(j,Y,K,q){if(!(YY)break}while(b&&T.test(b.type));b=y.stepBackward()}else b=y.getCurrentToken();return j.end.row=y.getCurrentTokenRow(),j.end.column=y.getCurrentTokenColumn()+b.value.length-2,j}},this.foldAll=function(v,g,_,y){null==_&&(_=1e5);var b=this.foldWidgets;if(b){g=g||this.getLength();for(var x=v=v||0;x=v&&(x=T.end.row,T.collapseChildren=_,this.addFold("...",T))}}},this.foldToLevel=function(v){for(this.foldAll();v-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var v=this;this.foldAll(null,null,null,function(g){for(var _=v.getTokens(g),y=0;y<_.length;y++){var b=_[y];if("text"!=b.type||!/^\s+$/.test(b.value))return!!/comment/.test(b.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(v){if(!this.$foldStyles[v])throw new Error("invalid fold style: "+v+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=v){this.$foldStyle=v,"manual"==v&&this.unfold();var g=this.$foldMode;this.$setFolding(null),this.$setFolding(g)}},this.$setFolding=function(v){if(this.$foldMode!=v){if(this.$foldMode=v,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!v||"manual"==this.$foldStyle)return void(this.foldWidgets=null);this.foldWidgets=[],this.getFoldWidget=v.getFoldWidget.bind(v,this,this.$foldStyle),this.getFoldWidgetRange=v.getFoldWidgetRange.bind(v,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)}},this.getParentFoldRangeData=function(v,g){var _=this.foldWidgets;if(!_||g&&_[v])return{};for(var b,y=v-1;y>=0;){var x=_[y];if(null==x&&(x=_[y]=this.getFoldWidget(y)),"start"==x){var T=this.getFoldWidgetRange(y);if(b||(b=T),T&&T.end.row>=v)break}y--}return{range:-1!==y&&T,firstRange:b}},this.onFoldWidgetClick=function(v,g){if(!this.$toggleFoldWidget(v,{children:(g=g.domEvent).shiftKey,all:g.ctrlKey||g.metaKey,siblings:g.altKey})){var b=g.target||g.srcElement;b&&/ace_fold-widget/.test(b.className)&&(b.className+=" ace_invalid")}},this.$toggleFoldWidget=function(v,g){if(this.getFoldWidget){var _=this.getFoldWidget(v),y=this.getLine(v),b="end"===_?-1:1,x=this.getFoldAt(v,-1===b?0:y.length,b);if(x)return g.children||g.all?this.removeFold(x):this.expandFold(x),x;var T=this.getFoldWidgetRange(v,!0);if(T&&!T.isMultiLine()&&(x=this.getFoldAt(T.start.row,T.start.column,1))&&T.isEqual(x.range))return this.removeFold(x),x;if(g.siblings){var j=this.getParentFoldRangeData(v);if(j.range)var Y=j.range.start.row+1,K=j.range.end.row;this.foldAll(Y,K,g.all?1e4:0)}else g.children?(K=T?T.end.row:this.getLength(),this.foldAll(v+1,K,g.all?1e4:0)):T&&(g.all&&(T.collapseChildren=1e4),this.addFold("...",T));return T}},this.toggleFoldWidget=function(v){var g=this.selection.getCursor().row;g=this.getRowFoldStart(g);var _=this.$toggleFoldWidget(g,{});if(!_){var y=this.getParentFoldRangeData(g,!0);if(_=y.range||y.firstRange){var b=this.getFoldAt(g=_.start.row,this.getLine(g).length,1);b?this.removeFold(b):this.addFold("...",_)}}},this.updateFoldWidgets=function(v){var g=v.start.row,_=v.end.row-g;if(0===_)this.foldWidgets[g]=null;else if("remove"==v.action)this.foldWidgets.splice(g,_+1,null);else{var y=Array(_+1);y.unshift(g,1),this.foldWidgets.splice.apply(this.foldWidgets,y)}},this.tokenizerUpdateFoldWidgets=function(v){var g=v.data;g.first!=g.last&&this.foldWidgets.length>g.first&&this.foldWidgets.splice(g.first,this.foldWidgets.length)}}}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(ve,ee,it){"use strict";var he=ve("../token_iterator").TokenIterator,W=ve("../range").Range;ee.BracketMatch=function R(){this.findMatchingBracket=function(D,S){if(0==D.column)return null;var v=S||this.getLine(D.row).charAt(D.column-1);if(""==v)return null;var g=v.match(/([\(\[\{])|([\)\]\}])/);return g?g[1]?this.$findClosingBracket(g[1],D):this.$findOpeningBracket(g[2],D):null},this.getBracketRange=function(D){var g,S=this.getLine(D.row),v=!0,_=S.charAt(D.column-1),y=_&&_.match(/([\(\[\{])|([\)\]\}])/);if(y||(_=S.charAt(D.column),D={row:D.row,column:D.column+1},y=_&&_.match(/([\(\[\{])|([\)\]\}])/),v=!1),!y)return null;if(y[1]){if(!(b=this.$findClosingBracket(y[1],D)))return null;g=W.fromPoints(D,b),v||(g.end.column++,g.start.column--),g.cursor=g.end}else{var b;if(!(b=this.$findOpeningBracket(y[2],D)))return null;g=W.fromPoints(b,D),v||(g.start.column++,g.end.column--),g.cursor=g.start}return g},this.getMatchingBracketRanges=function(D){var S=this.getLine(D.row),v=S.charAt(D.column-1),g=v&&v.match(/([\(\[\{])|([\)\]\}])/);if(g||(v=S.charAt(D.column),D={row:D.row,column:D.column+1},g=v&&v.match(/([\(\[\{])|([\)\]\}])/)),!g)return null;var _=new W(D.row,D.column-1,D.row,D.column),y=g[1]?this.$findClosingBracket(g[1],D):this.$findOpeningBracket(g[2],D);return y?[_,new W(y.row,y.column,y.row,y.column+1)]:[_]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(D,S,v){var g=this.$brackets[D],_=1,y=new he(this,S.row,S.column),b=y.getCurrentToken();if(b||(b=y.stepForward()),b){v||(v=new RegExp("(\\.?"+b.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));for(var x=S.column-y.getCurrentTokenColumn()-2,T=b.value;;){for(;x>=0;){var j=T.charAt(x);if(j==g){if(0==(_-=1))return{row:y.getCurrentTokenRow(),column:x+y.getCurrentTokenColumn()}}else j==D&&(_+=1);x-=1}do{b=y.stepBackward()}while(b&&!v.test(b.type));if(null==b)break;x=(T=b.value).length-1}return null}},this.$findClosingBracket=function(D,S,v){var g=this.$brackets[D],_=1,y=new he(this,S.row,S.column),b=y.getCurrentToken();if(b||(b=y.stepForward()),b){v||(v=new RegExp("(\\.?"+b.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));for(var x=S.column-y.getCurrentTokenColumn();;){for(var T=b.value,j=T.length;xCe&&(this.$docRowCache.splice(Ce,X),this.$screenRowCache.splice(Ce,X))},this.$getRowCacheIndex=function(F,X){for(var Ce=0,Me=F.length-1;Ce<=Me;){var Re=Ce+Me>>1,ze=F[Re];if(X>ze)Ce=Re+1;else{if(!(X=X);ze++);return(Me=Ce[ze])?(Me.index=ze,Me.start=Re-Me.value.length,Me):null},this.setUndoManager=function(F){if(this.$undoManager=F,this.$informUndoManager&&this.$informUndoManager.cancel(),F){var X=this;F.addSession(this),this.$syncInformUndoManager=function(){X.$informUndoManager.cancel(),X.mergeUndoDeltas=!1},this.$informUndoManager=W.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?W.stringRepeat(" ",this.getTabSize()):"\t"},this.setUseSoftTabs=function(F){this.setOption("useSoftTabs",F)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(F){this.setOption("tabSize",F)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(F){return this.$useSoftTabs&&F.column%this.$tabSize==0},this.setNavigateWithinSoftTabs=function(F){this.setOption("navigateWithinSoftTabs",F)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(F){this.setOption("overwrite",F)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(F,X){this.$decorations[F]||(this.$decorations[F]=""),this.$decorations[F]+=" "+X,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(F,X){this.$decorations[F]=(this.$decorations[F]||"").replace(" "+X,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(F){this.$breakpoints=[];for(var X=0;X0&&(Me=!!Ce.charAt(X-1).match(this.tokenRe)),Me||(Me=!!Ce.charAt(X).match(this.tokenRe)),Me)var Re=this.tokenRe;else Re=/^\s+$/.test(Ce.slice(X-1,X+1))?/\s/:this.nonTokenRe;var ze=X;if(ze>0){do{ze--}while(ze>=0&&Ce.charAt(ze).match(Re));ze++}for(var Pe=X;PeF&&(F=X.screenWidth)}),this.lineWidgetWidth=F},this.$computeWidth=function(F){if(this.$modified||F){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var X=this.doc.getAllLines(),Ce=this.$rowLengthCache,Me=0,Re=0,ze=this.$foldData[Re],Pe=ze?ze.start.row:1/0,Tt=X.length,St=0;StPe){if((St=ze.end.row+1)>=Tt)break;Pe=(ze=this.$foldData[Re++])?ze.start.row:1/0}null==Ce[St]&&(Ce[St]=this.$getStringScreenWidth(X[St])[0]),Ce[St]>Me&&(Me=Ce[St])}this.screenWidth=Me}},this.getLine=function(F){return this.doc.getLine(F)},this.getLines=function(F,X){return this.doc.getLines(F,X)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(F){return this.doc.getTextRange(F||this.selection.getRange())},this.insert=function(F,X){return this.doc.insert(F,X)},this.remove=function(F){return this.doc.remove(F)},this.removeFullLines=function(F,X){return this.doc.removeFullLines(F,X)},this.undoChanges=function(F,X){if(F.length){this.$fromUndo=!0;for(var Ce=F.length-1;-1!=Ce;Ce--){var Me=F[Ce];"insert"==Me.action||"remove"==Me.action?this.doc.revertDelta(Me):Me.folds&&this.addFolds(Me.folds)}!X&&this.$undoSelect&&(F.selectionBefore?this.selection.fromJSON(F.selectionBefore):this.selection.setRange(this.$getUndoSelection(F,!0))),this.$fromUndo=!1}},this.redoChanges=function(F,X){if(F.length){this.$fromUndo=!0;for(var Ce=0;CeF.end.column&&(ze.start.column+=Tt),ze.end.row==F.end.row&&ze.end.column>F.end.column&&(ze.end.column+=Tt)),Pe&&ze.start.row>=F.end.row&&(ze.start.row+=Pe,ze.end.row+=Pe)),ze.end=this.insert(ze.start,Me),Re.length){var St=F.start,ht=ze.start,Pe=ht.row-St.row,Tt=ht.column-St.column;this.addFolds(Re.map(function(Zt){return(Zt=Zt.clone()).start.row==St.row&&(Zt.start.column+=Tt),Zt.end.row==St.row&&(Zt.end.column+=Tt),Zt.start.row+=Pe,Zt.end.row+=Pe,Zt}))}return ze},this.indentRows=function(F,X,Ce){Ce=Ce.replace(/\t/g,this.getTabString());for(var Me=F;Me<=X;Me++)this.doc.insertInLine({row:Me,column:0},Ce)},this.outdentRows=function(F){for(var X=F.collapseRows(),Ce=new _(0,0,0,0),Me=this.getTabSize(),Re=X.start.row;Re<=X.end.row;++Re){var ze=this.getLine(Re);Ce.start.row=Re,Ce.end.row=Re;for(var Pe=0;Pe0){var Me;if((Me=this.getRowFoldEnd(X+Ce))>this.doc.getLength()-1)return 0;Re=Me-X}else F=this.$clipRowToDocument(F),Re=(X=this.$clipRowToDocument(X))-F+1;var ze=new _(F,0,X,Number.MAX_VALUE),Pe=this.getFoldsInRange(ze).map(function(St){return(St=St.clone()).start.row+=Re,St.end.row+=Re,St}),Tt=0==Ce?this.doc.getLines(F,X):this.doc.removeFullLines(F,X);return this.doc.insertFullLines(F+Re,Tt),Pe.length&&this.addFolds(Pe),Re},this.moveLinesUp=function(F,X){return this.$moveLines(F,X,-1)},this.moveLinesDown=function(F,X){return this.$moveLines(F,X,1)},this.duplicateLines=function(F,X){return this.$moveLines(F,X,0)},this.$clipRowToDocument=function(F){return Math.max(0,Math.min(F,this.doc.getLength()-1))},this.$clipColumnToRow=function(F,X){return X<0?0:Math.min(this.doc.getLine(F).length,X)},this.$clipPositionToDocument=function(F,X){if(X=Math.max(0,X),F<0)F=0,X=0;else{var Ce=this.doc.getLength();F>=Ce?(F=Ce-1,X=this.doc.getLine(Ce-1).length):X=Math.min(this.doc.getLine(F).length,X)}return{row:F,column:X}},this.$clipRangeToDocument=function(F){F.start.row<0?(F.start.row=0,F.start.column=0):F.start.column=this.$clipColumnToRow(F.start.row,F.start.column);var X=this.doc.getLength()-1;return F.end.row>X?(F.end.row=X,F.end.column=this.doc.getLine(X).length):F.end.column=this.$clipColumnToRow(F.end.row,F.end.column),F},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(F){if(F!=this.$useWrapMode){if(this.$useWrapMode=F,this.$modified=!0,this.$resetRowCache(0),F){var X=this.getLength();this.$wrapData=Array(X),this.$updateWrapData(0,X-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(F,X){(this.$wrapLimitRange.min!==F||this.$wrapLimitRange.max!==X)&&(this.$wrapLimitRange={min:F,max:X},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(F,X){var Ce=this.$wrapLimitRange;Ce.max<0&&(Ce={min:X,max:X});var Me=this.$constrainWrapLimit(F,Ce.min,Ce.max);return Me!=this.$wrapLimit&&Me>1&&(this.$wrapLimit=Me,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},this.$constrainWrapLimit=function(F,X,Ce){return X&&(F=Math.max(X,F)),Ce&&(F=Math.min(Ce,F)),F},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(F){this.setWrapLimitRange(F,F)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(F){var X=this.$useWrapMode,Ce=F.action,Me=F.start,Re=F.end,ze=Me.row,Pe=Re.row,Tt=Pe-ze,St=null;if(this.$updating=!0,0!=Tt)if("remove"===Ce){this[X?"$wrapData":"$rowLengthCache"].splice(ze,Tt);var ht=this.$foldData;St=this.getFoldsInRange(F),this.removeFolds(St);var mt=0;if(It=this.getFoldLine(Re.row)){It.addRemoveChars(Re.row,Re.column,Me.column-Re.column),It.shiftRow(-Tt);var Zt=this.getFoldLine(ze);Zt&&Zt!==It&&(Zt.merge(It),It=Zt),mt=ht.indexOf(It)+1}for(;mt=Re.row&&It.shiftRow(-Tt);Pe=ze}else{var At=Array(Tt);At.unshift(ze,0);var pn=X?this.$wrapData:this.$rowLengthCache;if(pn.splice.apply(pn,At),ht=this.$foldData,mt=0,It=this.getFoldLine(ze)){var Tn=It.range.compareInside(Me.row,Me.column);0==Tn?(It=It.split(Me.row,Me.column))&&(It.shiftRow(Tt),It.addRemoveChars(Pe,0,Re.column-Me.column)):-1==Tn&&(It.addRemoveChars(ze,0,Re.column-Me.column),It.shiftRow(Tt)),mt=ht.indexOf(It)+1}for(;mt=ze&&It.shiftRow(Tt)}}else Tt=Math.abs(F.start.column-F.end.column),"remove"===Ce&&(St=this.getFoldsInRange(F),this.removeFolds(St),Tt=-Tt),(It=this.getFoldLine(ze))&&It.addRemoveChars(ze,Me.column,Tt);return X&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,X?this.$updateWrapData(ze,Pe):this.$updateRowLengthCache(ze,Pe),St},this.$updateRowLengthCache=function(F,X,Ce){this.$rowLengthCache[F]=null,this.$rowLengthCache[X]=null},this.$updateWrapData=function(F,X){var Pe,Tt,Ce=this.doc.getAllLines(),Me=this.getTabSize(),Re=this.$wrapData,ze=this.$wrapLimit,St=F;for(X=Math.min(X,Ce.length-1);St<=X;)(Tt=this.getFoldLine(St,Tt))?(Pe=[],Tt.walk(function(ht,It,mt,Zt){var At;if(null!=ht){(At=this.$getDisplayTokens(ht,Pe.length))[0]=K;for(var pn=1;pn=4352&&F<=4447||F>=4515&&F<=4519||F>=4602&&F<=4607||F>=9001&&F<=9002||F>=11904&&F<=11929||F>=11931&&F<=12019||F>=12032&&F<=12245||F>=12272&&F<=12283||F>=12288&&F<=12350||F>=12353&&F<=12438||F>=12441&&F<=12543||F>=12549&&F<=12589||F>=12593&&F<=12686||F>=12688&&F<=12730||F>=12736&&F<=12771||F>=12784&&F<=12830||F>=12832&&F<=12871||F>=12880&&F<=13054||F>=13056&&F<=19903||F>=19968&&F<=42124||F>=42128&&F<=42182||F>=43360&&F<=43388||F>=44032&&F<=55203||F>=55216&&F<=55238||F>=55243&&F<=55291||F>=63744&&F<=64255||F>=65040&&F<=65049||F>=65072&&F<=65106||F>=65108&&F<=65126||F>=65128&&F<=65131||F>=65281&&F<=65376||F>=65504&&F<=65510)}this.$computeWrapSplits=function(F,X,Ce){if(0==F.length)return[];var Me=[],Re=F.length,ze=0,Pe=0,Tt=this.$wrapAsCode,St=this.$indentedSoftWrap,ht=X<=Math.max(2*Ce,8)||!1===St?0:Math.floor(X/2);function mt(Tn){for(var Vn=Tn-ze,wi=ze;wiX-Zt;){var At=ze+X-Zt;if(F[At-1]>=U&&F[At]>=U)mt(At);else if(F[At]!=K&&F[At]!=q){for(var pn=Math.max(At-(X-(X>>2)),ze-1);At>pn&&F[At]pn&&F[At]pn&&9==F[At];)At--}else for(;At>pn&&F[At]pn?mt(++At):(2==F[At=ze+X]&&At--,mt(At-Zt))}else{for(;At!=ze-1&&F[At]!=K;At--);if(At>ze){mt(At);continue}for(At=ze+X;At39&&ze<48||ze>57&&ze<64?Ce.push(9):ze>=4352&&V(ze)?Ce.push(1,2):Ce.push(1)}return Ce},this.$getStringScreenWidth=function(F,X,Ce){if(0==X)return[0,0];var Me,Re;for(null==X&&(X=1/0),Ce=Ce||0,Re=0;Re=4352&&V(Me)?Ce+=2:Ce+=1,!(Ce>X));Re++);return[Ce,Re]},this.lineWidgets=null,this.getRowLength=function(F){var X=1;return this.lineWidgets&&(X+=this.lineWidgets[F]&&this.lineWidgets[F].rowCount||0),this.$useWrapMode&&this.$wrapData[F]?this.$wrapData[F].length+X:X},this.getRowLineCount=function(F){return this.$useWrapMode&&this.$wrapData[F]?this.$wrapData[F].length+1:1},this.getRowWrapIndent=function(F){if(this.$useWrapMode){var X=this.screenToDocumentPosition(F,Number.MAX_VALUE),Ce=this.$wrapData[X.row];return Ce.length&&Ce[0]=0){Tt=ht[It],Re=this.$docRowCache[It];var Zt=F>ht[mt-1]}else Zt=!mt;for(var At=this.getLength()-1,pn=this.getNextFoldLine(Re),Tn=pn?pn.start.row:1/0;Tt<=F&&!(Tt+(St=this.getRowLength(Re))>F||Re>=At);)Tt+=St,++Re>Tn&&(Tn=(pn=this.getNextFoldLine(Re=pn.end.row+1,pn))?pn.start.row:1/0),Zt&&(this.$docRowCache.push(Re),this.$screenRowCache.push(Tt));if(pn&&pn.start.row<=Re)Me=this.getFoldDisplayLine(pn),Re=pn.start.row;else{if(Tt+St<=F||Re>At)return{row:At,column:this.getLine(At).length};Me=this.getLine(Re),pn=null}var Vn=0,wi=Math.floor(F-Tt);if(this.$useWrapMode){var pr=this.$wrapData[Re];pr&&(Pe=pr[wi],wi>0&&pr.length&&(Vn=pr.indent,Me=Me.substring(ze=pr[wi-1]||pr[pr.length-1])))}return void 0!==Ce&&this.$bidiHandler.isBidiRow(Tt+wi,Re,wi)&&(X=this.$bidiHandler.offsetToCol(Ce)),ze+=this.$getStringScreenWidth(Me,X-Vn)[1],this.$useWrapMode&&ze>=Pe&&(ze=Pe-1),pn?pn.idxToPosition(ze):{row:Re,column:ze}},this.documentToScreenPosition=function(F,X){if(typeof X>"u")var Ce=this.$clipPositionToDocument(F.row,F.column);else Ce=this.$clipPositionToDocument(F,X);var ze,Me=0,Re=null;(ze=this.getFoldAt(F=Ce.row,X=Ce.column,1))&&(F=ze.start.row,X=ze.start.column);var Pe,Tt=0,St=this.$docRowCache,ht=this.$getRowCacheIndex(St,F),It=St.length;if(It&&ht>=0){Tt=St[ht],Me=this.$screenRowCache[ht];var mt=F>St[It-1]}else mt=!It;for(var Zt=this.getNextFoldLine(Tt),At=Zt?Zt.start.row:1/0;Tt=At){if((Pe=Zt.end.row+1)>F)break;At=(Zt=this.getNextFoldLine(Pe,Zt))?Zt.start.row:1/0}else Pe=Tt+1;Me+=this.getRowLength(Tt),Tt=Pe,mt&&(this.$docRowCache.push(Tt),this.$screenRowCache.push(Me))}var pn="";Zt&&Tt>=At?(pn=this.getFoldDisplayLine(Zt,F,X),Re=Zt.start.row):(pn=this.getLine(F).substring(0,X),Re=F);var Tn=0;if(this.$useWrapMode){var Vn=this.$wrapData[Re];if(Vn){for(var wi=0;pn.length>=Vn[wi];)Me++,wi++;pn=pn.substring(Vn[wi-1]||0,pn.length),Tn=wi>0?Vn.indent:0}}return this.lineWidgets&&this.lineWidgets[Tt]&&this.lineWidgets[Tt].rowsAbove&&(Me+=this.lineWidgets[Tt].rowsAbove),{row:Me,column:Tn+this.$getStringScreenWidth(pn)[0]}},this.documentToScreenColumn=function(F,X){return this.documentToScreenPosition(F,X).column},this.documentToScreenRow=function(F,X){return this.documentToScreenPosition(F,X).row},this.getScreenLength=function(){var F=0,X=null;if(this.$useWrapMode)for(var Re=this.$wrapData.length,ze=0,Me=0,Pe=(X=this.$foldData[Me++])?X.start.row:1/0;zePe&&(ze=X.end.row+1,Pe=(X=this.$foldData[Me++])?X.start.row:1/0)}else{F=this.getLength();var Ce=this.$foldData;for(Me=0;MeCe);ze++);return[Me,ze]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker(),this.removeAllListeners(),this.selection.detach()},this.isFullWidth=V}.call(T.prototype),ve("./edit_session/folding").Folding.call(T.prototype),ve("./edit_session/bracket_match").BracketMatch.call(T.prototype),D.defineOptions(T.prototype,"session",{wrap:{set:function(j){if(j&&"off"!=j?"free"==j?j=!0:"printMargin"==j?j=-1:"string"==typeof j&&(j=parseInt(j,10)||!1):j=!1,this.$wrap!=j)if(this.$wrap=j,j){var Y="number"==typeof j?j:null;this.setWrapLimitRange(Y,Y),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(j){(j="auto"==j?"text"!=this.$mode.type:"text"!=j)!=this.$wrapAsCode&&(this.$wrapAsCode=j,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(j){this.$useWorker=j,this.$stopWorker(),j&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(j){(j=parseInt(j))>0&&this.$tabSize!==j&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=j,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(j){this.setFoldStyle(j)},handlesSet:!0},overwrite:{set:function(j){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(j){this.doc.setNewLineMode(j)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(j){this.setMode(j)},get:function(){return this.$modeId},handlesSet:!0}}),ee.EditSession=T}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(ve,ee,it){"use strict";var he=ve("./lib/lang"),W=ve("./lib/oop"),R=ve("./range").Range,D=function(){this.$options={}};(function(){this.set=function(v){return W.mixin(this.$options,v),this},this.getOptions=function(){return he.copyObject(this.$options)},this.setOptions=function(v){this.$options=v},this.find=function(v){var g=this.$options,_=this.$matchIterator(v,g);if(!_)return!1;var y=null;return _.forEach(function(b,x,T,j){return y=new R(b,x,T,j),!(x==j&&g.start&&g.start.start&&0!=g.skipCurrent&&y.isEqual(g.start)&&(y=null,1))}),y},this.findAll=function(v){var g=this.$options;if(!g.needle)return[];this.$assembleRegExp(g);var _=g.range,y=_?v.getLines(_.start.row,_.end.row):v.doc.getAllLines(),b=[],x=g.re;if(g.$isMultiLine){var Y,T=x.length,j=y.length-T;e:for(var K=x.offset||0;K<=j;K++){for(var q=0;qP||(b.push(Y=new R(K,P,K+T-1,$)),T>2&&(K=K+T-2))}}else for(var V=0;VMe&&b[q].end.row==_.end.row;)q--;for(b=b.slice(V,q+1),V=0,q=b.length;V=j;P--)if(O(P,Number.MAX_VALUE,U))return;if(0!=g.wrap)for(P=Y,j=T.row;P>=j;P--)if(O(P,Number.MAX_VALUE,U))return}};else K=function(P){var $=T.row;if(!O($,T.column,P)){for($+=1;$<=Y;$++)if(O($,0,P))return;if(0!=g.wrap)for($=j,Y=T.row;$<=Y;$++)if(O($,0,P))return}};if(g.$isMultiLine)var q=_.length,O=function(U,P,$){var V=y?U-q+1:U;if(!(V<0)){var F=v.getLine(V),X=F.search(_[0]);if(!(!y&&XP)&&$(V,X,V+q-1,Me))return!0}}};else O=y?function(P,$,V){var Ce,F=v.getLine(P),X=[],Me=0;for(_.lastIndex=0;Ce=_.exec(F);){if(Me=Ce.index,!(Re=Ce[0].length)){if(Me>=F.length)break;_.lastIndex=Me+=1}if(Ce.index+Re>$)break;X.push(Ce.index,Re)}for(var ze=X.length-1;ze>=0;ze-=2){var Re,Pe=X[ze-1];if(V(P,Pe,P,Pe+(Re=X[ze])))return!0}}:function(P,$,V){var X,Ce,F=v.getLine(P);for(_.lastIndex=$;Ce=_.exec(F);){var Me=Ce[0].length;if(V(P,X=Ce.index,P,X+Me))return!0;if(!Me&&(_.lastIndex=X+=1,X>=F.length))return!1}};return{forEach:K}}}).call(D.prototype),ee.Search=D}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(ve,ee,it){"use strict";var he=ve("../lib/keys"),W=ve("../lib/useragent"),R=he.KEY_MODS;function D(v,g){this.platform=g||(W.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(v),this.$singleCommand=!0}function S(v,g){D.call(this,v,g),this.$singleCommand=!1}S.prototype=D.prototype,function(){function v(g){return"object"==typeof g&&g.bindKey&&g.bindKey.position||(g.isDefault?-100:0)}this.addCommand=function(g){this.commands[g.name]&&this.removeCommand(g),this.commands[g.name]=g,g.bindKey&&this._buildKeyHash(g)},this.removeCommand=function(g,_){var y=g&&("string"==typeof g?g:g.name);g=this.commands[y],_||delete this.commands[y];var b=this.commandKeyBinding;for(var x in b){var T=b[x];if(T==g)delete b[x];else if(Array.isArray(T)){var j=T.indexOf(g);-1!=j&&(T.splice(j,1),1==T.length&&(b[x]=T[0]))}}},this.bindKey=function(g,_,y){if("object"==typeof g&&g&&(null==y&&(y=g.position),g=g[this.platform]),g){if("function"==typeof _)return this.addCommand({exec:_,bindKey:g,name:_.name||g});g.split("|").forEach(function(b){var x="";if(-1!=b.indexOf(" ")){var T=b.split(/\s+/);b=T.pop(),T.forEach(function(K){var q=this.parseKeys(K);this._addCommandToBinding(x+=(x?" ":"")+(R[q.hashId]+q.key),"chainKeys")},this),x+=" "}var j=this.parseKeys(b);this._addCommandToBinding(x+(R[j.hashId]+j.key),_,y)},this)}},this._addCommandToBinding=function(g,_,y){var x,b=this.commandKeyBinding;if(_)if(!b[g]||this.$singleCommand)b[g]=_;else{Array.isArray(b[g])?-1!=(x=b[g].indexOf(_))&&b[g].splice(x,1):b[g]=[b[g]],"number"!=typeof y&&(y=v(_));var T=b[g];for(x=0;xy);x++);T.splice(x,0,_)}else delete b[g]},this.addCommands=function(g){g&&Object.keys(g).forEach(function(_){var y=g[_];if(y){if("string"==typeof y)return this.bindKey(y,_);"function"==typeof y&&(y={exec:y}),"object"==typeof y&&(y.name||(y.name=_),this.addCommand(y))}},this)},this.removeCommands=function(g){Object.keys(g).forEach(function(_){this.removeCommand(g[_])},this)},this.bindKeys=function(g){Object.keys(g).forEach(function(_){this.bindKey(_,g[_])},this)},this._buildKeyHash=function(g){this.bindKey(g.bindKey,g)},this.parseKeys=function(g){var _=g.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(Y){return Y}),y=_.pop(),b=he[y];if(he.FUNCTION_KEYS[b])y=he.FUNCTION_KEYS[b].toLowerCase();else{if(!_.length)return{key:y,hashId:-1};if(1==_.length&&"shift"==_[0])return{key:y.toUpperCase(),hashId:-1}}for(var x=0,T=_.length;T--;){var j=he.KEY_MODS[_[T]];if(null==j)return typeof console<"u"&&console.error("invalid modifier "+_[T]+" in "+g),!1;x|=j}return{key:y,hashId:x}},this.findKeyCommand=function(_,y){return this.commandKeyBinding[R[_]+y]},this.handleKeyboard=function(g,_,y,b){if(!(b<0)){var x=R[_]+y,T=this.commandKeyBinding[x];return g.$keyChain&&(g.$keyChain+=" "+x,T=this.commandKeyBinding[g.$keyChain]||T),!T||"chainKeys"!=T&&"chainKeys"!=T[T.length-1]?(g.$keyChain&&(_&&4!=_||1!=y.length?(-1==_||b>0)&&(g.$keyChain=""):g.$keyChain=g.$keyChain.slice(0,-x.length-1)),{command:T}):(g.$keyChain=g.$keyChain||x,{command:"null"})}},this.getStatusText=function(g,_){return _.$keyChain||""}}.call(D.prototype),ee.HashHandler=D,ee.MultiHashHandler=S}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(ve,ee,it){"use strict";var he=ve("../lib/oop"),W=ve("../keyboard/hash_handler").MultiHashHandler,R=ve("../lib/event_emitter").EventEmitter,D=function(S,v){W.call(this,v,S),this.byName=this.commands,this.setDefaultHandler("exec",function(g){return g.command.exec(g.editor,g.args||{})})};he.inherits(D,W),function(){he.implement(this,R),this.exec=function(S,v,g){if(Array.isArray(S)){for(var _=S.length;_--;)if(this.exec(S[_],v,g))return!0;return!1}if("string"==typeof S&&(S=this.commands[S]),!S||v&&v.$readOnly&&!S.readOnly||0!=this.$checkCommandState&&S.isAvailable&&!S.isAvailable(v))return!1;var y={editor:v,command:S,args:g};return y.returnValue=this._emit("exec",y),this._signal("afterExec",y),!1!==y.returnValue},this.toggleRecording=function(S){if(!this.$inReplay)return S&&S._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(v){this.macro.push([v.command,v.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(S){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(S);try{this.$inReplay=!0,this.macro.forEach(function(v){"string"==typeof v?this.exec(v,S):this.exec(v[0],S,v[1])},this)}finally{this.$inReplay=!1}}},this.trimMacro=function(S){return S.map(function(v){return"string"!=typeof v[0]&&(v[0]=v[0].name),v[1]||(v=v[0]),v})}}.call(D.prototype),ee.CommandManager=D}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(ve,ee,it){"use strict";var he=ve("../lib/lang"),W=ve("../config"),R=ve("../range").Range;function D(v,g){return{win:v,mac:g}}ee.commands=[{name:"showSettingsMenu",bindKey:D("Ctrl-,","Command-,"),exec:function(v){W.loadModule("ace/ext/settings_menu",function(g){g.init(v),v.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",bindKey:D("Alt-E","F4"),exec:function(v){W.loadModule("./ext/error_marker",function(g){g.showErrorMarker(v,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",bindKey:D("Alt-Shift-E","Shift-F4"),exec:function(v){W.loadModule("./ext/error_marker",function(g){g.showErrorMarker(v,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:D("Ctrl-A","Command-A"),exec:function(v){v.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:D(null,"Ctrl-L"),exec:function(v){v.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:D("Ctrl-L","Command-L"),exec:function(v,g){"number"==typeof g&&!isNaN(g)&&v.gotoLine(g),v.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:D("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(v){v.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:D("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(v){v.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",bindKey:D("F2","F2"),exec:function(v){v.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",bindKey:D("Alt-F2","Alt-F2"),exec:function(v){v.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:D(null,"Ctrl-Command-Option-0"),exec:function(v){v.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:D(null,"Ctrl-Command-Option-0"),exec:function(v){v.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:D("Alt-0","Command-Option-0"),exec:function(v){v.session.foldAll(),v.session.unfold(v.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:D("Alt-Shift-0","Command-Option-Shift-0"),exec:function(v){v.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:D("Ctrl-K","Command-G"),exec:function(v){v.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:D("Ctrl-Shift-K","Command-Shift-G"),exec:function(v){v.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:D("Alt-K","Ctrl-G"),exec:function(v){v.selection.isEmpty()?v.selection.selectWord():v.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:D("Alt-Shift-K","Ctrl-Shift-G"),exec:function(v){v.selection.isEmpty()?v.selection.selectWord():v.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:D("Ctrl-F","Command-F"),exec:function(v){W.loadModule("ace/ext/searchbox",function(g){g.Search(v)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(v){v.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:D("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(v){v.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:D("Ctrl-Home","Command-Home|Command-Up"),exec:function(v){v.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:D("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(v){v.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:D("Up","Up|Ctrl-P"),exec:function(v,g){v.navigateUp(g.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:D("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(v){v.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:D("Ctrl-End","Command-End|Command-Down"),exec:function(v){v.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:D("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(v){v.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:D("Down","Down|Ctrl-N"),exec:function(v,g){v.navigateDown(g.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:D("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(v){v.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:D("Ctrl-Left","Option-Left"),exec:function(v){v.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:D("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(v){v.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:D("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(v){v.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:D("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(v){v.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:D("Left","Left|Ctrl-B"),exec:function(v,g){v.navigateLeft(g.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:D("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(v){v.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:D("Ctrl-Right","Option-Right"),exec:function(v){v.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:D("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(v){v.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:D("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(v){v.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:D("Shift-Right","Shift-Right"),exec:function(v){v.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:D("Right","Right|Ctrl-F"),exec:function(v,g){v.navigateRight(g.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(v){v.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:D(null,"Option-PageDown"),exec:function(v){v.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:D("PageDown","PageDown|Ctrl-V"),exec:function(v){v.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(v){v.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:D(null,"Option-PageUp"),exec:function(v){v.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(v){v.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:D("Ctrl-Up",null),exec:function(v){v.renderer.scrollBy(0,-2*v.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:D("Ctrl-Down",null),exec:function(v){v.renderer.scrollBy(0,2*v.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(v){v.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(v){v.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:D("Ctrl-Alt-E","Command-Option-E"),exec:function(v){v.commands.toggleRecording(v)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:D("Ctrl-Shift-E","Command-Shift-E"),exec:function(v){v.commands.replay(v)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:D("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(v){v.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:D("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(v){v.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:D("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(v){v.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:D(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(v){},readOnly:!0},{name:"cut",description:"Cut",exec:function(v){var _=v.$copyWithEmptySelection&&v.selection.isEmpty()?v.selection.getLineRange():v.selection.getRange();v._emit("cut",_),_.isEmpty()||v.session.remove(_),v.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(v,g){v.$handlePaste(g)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:D("Ctrl-D","Command-D"),exec:function(v){v.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:D("Ctrl-Shift-D","Command-Shift-D"),exec:function(v){v.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:D("Ctrl-Alt-S","Command-Alt-S"),exec:function(v){v.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:D("Ctrl-/","Command-/"),exec:function(v){v.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:D("Ctrl-Shift-/","Command-Shift-/"),exec:function(v){v.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:D("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(v){v.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:D("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(v){v.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:D("Ctrl-H","Command-Option-F"),exec:function(v){W.loadModule("ace/ext/searchbox",function(g){g.Search(v,!0)})}},{name:"undo",description:"Undo",bindKey:D("Ctrl-Z","Command-Z"),exec:function(v){v.undo()}},{name:"redo",description:"Redo",bindKey:D("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(v){v.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:D("Alt-Shift-Up","Command-Option-Up"),exec:function(v){v.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:D("Alt-Up","Option-Up"),exec:function(v){v.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:D("Alt-Shift-Down","Command-Option-Down"),exec:function(v){v.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:D("Alt-Down","Option-Down"),exec:function(v){v.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:D("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(v){v.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:D("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(v){v.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:D("Shift-Delete",null),exec:function(v){if(!v.selection.isEmpty())return!1;v.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:D("Alt-Backspace","Command-Backspace"),exec:function(v){v.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:D("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(v){v.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:D("Ctrl-Shift-Backspace",null),exec:function(v){var g=v.selection.getRange();g.start.column=0,v.session.remove(g)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:D("Ctrl-Shift-Delete",null),exec:function(v){var g=v.selection.getRange();g.end.column=Number.MAX_VALUE,v.session.remove(g)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:D("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(v){v.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:D("Ctrl-Delete","Alt-Delete"),exec:function(v){v.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:D("Shift-Tab","Shift-Tab"),exec:function(v){v.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:D("Tab","Tab"),exec:function(v){v.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:D("Ctrl-[","Ctrl-["),exec:function(v){v.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:D("Ctrl-]","Ctrl-]"),exec:function(v){v.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(v,g){v.insert(g)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(v,g){v.insert(he.stringRepeat(g.text||"",g.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:D(null,"Ctrl-O"),exec:function(v){v.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:D("Alt-Shift-X","Ctrl-T"),exec:function(v){v.transposeLetters()},multiSelectAction:function(v){v.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:D("Ctrl-U","Ctrl-U"),exec:function(v){v.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:D("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(v){v.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:D(null,null),exec:function(v){v.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:D("Ctrl-Shift-L","Command-Shift-L"),exec:function(v){var g=v.selection.getRange();g.start.column=g.end.column=0,g.end.row++,v.selection.setRange(g,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",description:"Join lines",bindKey:D(null,null),exec:function(v){for(var g=v.selection.isBackwards(),_=g?v.selection.getSelectionLead():v.selection.getSelectionAnchor(),y=g?v.selection.getSelectionAnchor():v.selection.getSelectionLead(),b=v.session.doc.getLine(_.row).length,T=v.session.doc.getTextRange(v.selection.getRange()).replace(/\n\s*/," ").length,j=v.session.doc.getLine(_.row),Y=_.row+1;Y<=y.row+1;Y++){var K=he.stringTrimLeft(he.stringTrimRight(v.session.doc.getLine(Y)));0!==K.length&&(K=" "+K),j+=K}y.row+10?(v.selection.moveCursorTo(_.row,_.column),v.selection.selectTo(_.row,_.column+T)):(b=v.session.doc.getLine(_.row).length>b?b+1:b,v.selection.moveCursorTo(_.row,b))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:D(null,null),exec:function(v){var g=v.session.doc.getLength()-1,_=v.session.doc.getLine(g).length,y=v.selection.rangeList.ranges,b=[];y.length<1&&(y=[v.selection.getRange()]);for(var x=0;x=Ce.lastRow||X.end.row<=Ce.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==F&&this.renderer.animateScrolling(this.curOp.scrollTop)}var Me=this.selection.toJSON();this.curOp.selectionAfter=Me,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(Me),this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function($){if(this.$mergeUndoDeltas){var V=this.prevOp,F=this.$mergeableCommands,X=V.command&&$.command.name==V.command.name;if("insertstring"==$.command.name){var Ce=$.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),X=X&&this.mergeNextCommand&&(!/\s/.test(Ce)||/\s/.test(V.args)),this.mergeNextCommand=!0}else X=X&&-1!==F.indexOf($.command.name);"always"!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(X=!1),X?this.session.mergeUndoDeltas=!0:-1!==F.indexOf($.command.name)&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function($,V){if($&&"string"==typeof $&&"ace"!=$){this.$keybindingId=$;var F=this;K.loadModule(["keybinding",$],function(X){F.$keybindingId==$&&F.keyBinding.setKeyboardHandler(X&&X.handler),V&&V()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler($),V&&V()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function($){if(this.session!=$){this.curOp&&this.endOperation(),this.curOp={};var V=this.session;if(V){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var F=this.session.getSelection();F.off("changeCursor",this.$onCursorChange),F.off("changeSelection",this.$onSelectionChange)}this.session=$,$?(this.$onDocumentChange=this.onDocumentChange.bind(this),$.on("change",this.$onDocumentChange),this.renderer.setSession($),this.$onChangeMode=this.onChangeMode.bind(this),$.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),$.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),$.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),$.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),$.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),$.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=$.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession($)),this._signal("changeSession",{session:$,oldSession:V}),this.curOp=null,V&&V._signal("changeEditor",{oldEditor:this}),$&&$._signal("changeEditor",{editor:this}),$&&$.bgTokenizer&&$.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function($,V){return this.session.doc.setValue($),V?1==V?this.navigateFileEnd():-1==V&&this.navigateFileStart():this.selectAll(),$},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function($){this.renderer.onResize($)},this.setTheme=function($,V){this.renderer.setTheme($,V)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function($){this.renderer.setStyle($)},this.unsetStyle=function($){this.renderer.unsetStyle($)},this.getFontSize=function(){return this.getOption("fontSize")||W.computedStyle(this.container).fontSize},this.setFontSize=function($){this.setOption("fontSize",$)},this.$highlightBrackets=function(){if(!this.$highlightPending){var $=this;this.$highlightPending=!0,setTimeout(function(){$.$highlightPending=!1;var V=$.session;if(V&&V.bgTokenizer){V.$bracketHighlight&&(V.$bracketHighlight.markerIds.forEach(function(Ce){V.removeMarker(Ce)}),V.$bracketHighlight=null);var F=V.getMatchingBracketRanges($.getCursorPosition());if(!F&&V.$mode.getMatching&&(F=V.$mode.getMatching($.session)),F){var X="ace_bracket";Array.isArray(F)?1==F.length&&(X="ace_error_bracket"):F=[F],2==F.length&&(0==x.comparePoints(F[0].end,F[1].start)?F=[x.fromPoints(F[0].start,F[1].end)]:0==x.comparePoints(F[0].start,F[1].end)&&(F=[x.fromPoints(F[1].start,F[0].end)])),V.$bracketHighlight={ranges:F,markerIds:F.map(function(Ce){return V.addMarker(Ce,X,"text")})}}}},50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var $=this;this.$highlightTagPending=!0,setTimeout(function(){$.$highlightTagPending=!1;var V=$.session;if(V&&V.bgTokenizer){var F=$.getCursorPosition(),X=new q($.session,F.row,F.column),Ce=X.getCurrentToken();if(!Ce||!/\b(?:tag-open|tag-name)/.test(Ce.type))return V.removeMarker(V.$tagHighlight),void(V.$tagHighlight=null);if(-1===Ce.type.indexOf("tag-open")||(Ce=X.stepForward())){var Me=Ce.value,Re=Ce.value,ze=0,Pe=X.stepBackward();if("<"===Pe.value)do{Pe=Ce,(Ce=X.stepForward())&&(-1!==Ce.type.indexOf("tag-name")?Me===(Re=Ce.value)&&("<"===Pe.value?ze++:""===Ce.value&&ze--)}while(Ce&&ze>=0);else{do{if(Ce=Pe,Pe=X.stepBackward(),Ce)if(-1!==Ce.type.indexOf("tag-name"))Me===Ce.value&&("<"===Pe.value?ze++:""===Ce.value){for(var Tt=0,St=Pe;St;){if(-1!==St.type.indexOf("tag-name")&&St.value===Me){ze--;break}if("<"===St.value)break;St=X.stepBackward(),Tt++}for(var ht=0;ht1)&&(V=!1)),$.$highlightLineMarker&&!V)$.removeMarker($.$highlightLineMarker.id),$.$highlightLineMarker=null;else if(!$.$highlightLineMarker&&V){var F=new x(V.row,V.column,V.row,1/0);F.id=$.addMarker(F,"ace_active-line","screenLine"),$.$highlightLineMarker=F}else V&&($.$highlightLineMarker.start.row=V.row,$.$highlightLineMarker.end.row=V.row,$.$highlightLineMarker.start.column=V.column,$._signal("changeBackMarker"))},this.onSelectionChange=function($){var V=this.session;if(V.$selectionMarker&&V.removeMarker(V.$selectionMarker),V.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var F=this.selection.getRange(),X=this.getSelectionStyle();V.$selectionMarker=V.addMarker(F,"ace_selection",X)}var Ce=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(Ce),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var $=this.session,V=this.getSelectionRange();if(!V.isEmpty()&&!V.isMultiLine()){var F=V.start.column,X=V.end.column,Ce=$.getLine(V.start.row),Me=Ce.substring(F,X);if(!(Me.length>5e3)&&/[\w\d]/.test(Me)){var Re=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:Me}),ze=Ce.substring(F-1,X+1);if(Re.test(ze))return Re}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function($){this.renderer.updateText(),this._emit("changeMode",$)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var $=this.getSelectedText(),V=this.session.doc.getNewLineCharacter(),F=!1;if(!$&&this.$copyWithEmptySelection){F=!0;for(var X=this.selection.getAllRanges(),Ce=0;CeSt.search(/\S|$/)){var ze=St.substr(Ce.column).search(/\S|$/);F.doc.removeInLine(Ce.row,Ce.column,Ce.column+ze)}}this.clearSelection();var Pe=Ce.column,Tt=F.getState(Ce.row),ht=(St=F.getLine(Ce.row),X.checkOutdent(Tt,St,$));if(F.insert(Ce,$),Me&&Me.selection&&this.selection.setSelectionRange(2==Me.selection.length?new x(Ce.row,Pe+Me.selection[0],Ce.row,Pe+Me.selection[1]):new x(Ce.row+Me.selection[0],Me.selection[1],Ce.row+Me.selection[2],Me.selection[3])),this.$enableAutoIndent){if(F.getDocument().isNewLine($)){var It=X.getNextLineIndent(Tt,St.slice(0,Ce.column),F.getTabString());F.insert({row:Ce.row+1,column:0},It)}ht&&X.autoOutdent(Tt,F,Ce.row)}},this.autoIndent=function(){var F,X,$=this.session,V=$.getMode();if(this.selection.isEmpty())F=0,X=$.doc.getLength()-1;else{var Ce=this.getSelectionRange();F=Ce.start.row,X=Ce.end.row}for(var Pe,Tt,St,Me="",Re="",ze="",ht=$.getTabString(),It=F;It<=X;It++)It>0&&(Me=$.getState(It-1),Re=$.getLine(It-1),ze=V.getNextLineIndent(Me,Re,ht)),Pe=$.getLine(It),ze!==(Tt=V.$getIndent(Pe))&&(Tt.length>0&&(St=new x(It,0,It,Tt.length),$.remove(St)),ze.length>0&&$.insert({row:It,column:0},ze)),V.autoOutdent(Me,$,It)},this.onTextInput=function($,V){if(!V)return this.keyBinding.onTextInput($);this.startOperation({command:{name:"insertstring"}});var F=this.applyComposition.bind(this,$,V);this.selection.rangeCount?this.forEachSelection(F):F(),this.endOperation()},this.applyComposition=function($,V){var F;(V.extendLeft||V.extendRight)&&((F=this.selection.getRange()).start.column-=V.extendLeft,F.end.column+=V.extendRight,F.start.column<0&&(F.start.row--,F.start.column+=this.session.getLine(F.start.row).length+1),this.selection.setRange(F),!$&&!F.isEmpty()&&this.remove()),($||!this.selection.isEmpty())&&this.insert($,!0),(V.restoreStart||V.restoreEnd)&&((F=this.selection.getRange()).start.column-=V.restoreStart,F.end.column-=V.restoreEnd,this.selection.setRange(F))},this.onCommandKey=function($,V,F){return this.keyBinding.onCommandKey($,V,F)},this.setOverwrite=function($){this.session.setOverwrite($)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function($){this.setOption("scrollSpeed",$)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function($){this.setOption("dragDelay",$)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function($){this.setOption("selectionStyle",$)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function($){this.setOption("highlightActiveLine",$)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function($){this.setOption("highlightGutterLine",$)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function($){this.setOption("highlightSelectedWord",$)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function($){this.renderer.setAnimatedScroll($)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function($){this.renderer.setShowInvisibles($)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function($){this.renderer.setDisplayIndentGuides($)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function($){this.renderer.setShowPrintMargin($)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function($){this.renderer.setPrintMarginColumn($)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function($){this.setOption("readOnly",$)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function($){this.setOption("behavioursEnabled",$)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function($){this.setOption("wrapBehavioursEnabled",$)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function($){this.setOption("showFoldWidgets",$)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function($){this.setOption("fadeFoldWidgets",$)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function($){this.selection.isEmpty()&&("left"==$?this.selection.selectLeft():this.selection.selectRight());var V=this.getSelectionRange();if(this.getBehavioursEnabled()){var F=this.session,X=F.getState(V.start.row),Ce=F.getMode().transformAction(X,"deletion",this,F,V);if(0===V.end.column){var Me=F.getTextRange(V);if("\n"==Me[Me.length-1]){var Re=F.getLine(V.end.row);/^\s+$/.test(Re)&&(V.end.column=Re.length)}}Ce&&(V=Ce)}this.session.remove(V),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var $=this.getSelectionRange();$.start.column==$.end.column&&$.start.row==$.end.row&&($.end.column=0,$.end.row++),this.session.remove($),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var $=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition($)},this.transposeLetters=function(){if(this.selection.isEmpty()){var $=this.getCursorPosition(),V=$.column;if(0!==V){var X,Ce,F=this.session.getLine($.row);Vze.toLowerCase()?1:0});var Ce=new x(0,0,0,0);for(X=$.first;X<=$.last;X++){var Me=V.getLine(X);Ce.start.row=X,Ce.end.row=X,Ce.end.column=Me.length,V.replace(Ce,F[X-$.first])}},this.toggleCommentLines=function(){var $=this.session.getState(this.getCursorPosition().row),V=this.$getSelectedRows();this.session.getMode().toggleCommentLines($,this.session,V.first,V.last)},this.toggleBlockComment=function(){var $=this.getCursorPosition(),V=this.session.getState($.row),F=this.getSelectionRange();this.session.getMode().toggleBlockComment(V,this.session,F,$)},this.getNumberAt=function($,V){var F=/[\-]?[0-9]+(?:\.[0-9]+)?/g;F.lastIndex=0;for(var X=this.session.getLine($);F.lastIndex=V)return{value:Ce[0],start:Ce.index,end:Ce.index+Ce[0].length}}return null},this.modifyNumber=function($){var V=this.selection.getCursor().row,F=this.selection.getCursor().column,X=new x(V,F-1,V,F),Ce=this.session.getTextRange(X);if(!isNaN(parseFloat(Ce))&&isFinite(Ce)){var Me=this.getNumberAt(V,F);if(Me){var Re=Me.value.indexOf(".")>=0?Me.start+Me.value.indexOf(".")+1:Me.end,ze=Me.start+Me.value.length-Re,Pe=parseFloat(Me.value);Pe*=Math.pow(10,ze),Pe+=$*=Re!==Me.end&&F=Re&&Me<=ze&&(F=Tn,Pe.selection.clearSelection(),Pe.moveCursorTo($,Re+X),Pe.selection.selectTo($,ze+X)),Re=ze});for(var St,Tt=this.$toggleWordPairs,ht=0;htmt+1)break;mt=Zt.last}for(St--,ze=this.session.$moveLines(It,mt,V?0:$),V&&-1==$&&(ht=St+1);ht<=St;)Re[ht].moveBy(ze,0),ht++;V||(ze=0),Pe+=ze}Ce.fromOrientedRange(Ce.ranges[0]),Ce.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function($){return $=($||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart($.start.row),last:this.session.getRowFoldEnd($.end.row)}},this.onCompositionStart=function($){this.renderer.showComposition($)},this.onCompositionUpdate=function($){this.renderer.setCompositionText($)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function($){return $>=this.getFirstVisibleRow()&&$<=this.getLastVisibleRow()},this.isRowFullyVisible=function($){return $>=this.renderer.getFirstFullyVisibleRow()&&$<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function($,V){var F=this.renderer,X=this.renderer.layerConfig,Ce=$*Math.floor(X.height/X.lineHeight);!0===V?this.selection.$moveSelection(function(){this.moveCursorBy(Ce,0)}):!1===V&&(this.selection.moveCursorBy(Ce,0),this.selection.clearSelection());var Me=F.scrollTop;F.scrollBy(0,Ce*X.lineHeight),null!=V&&F.scrollCursorIntoView(null,.5),F.animateScrolling(Me)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function($){this.renderer.scrollToRow($)},this.scrollToLine=function($,V,F,X){this.renderer.scrollToLine($,V,F,X)},this.centerSelection=function(){var $=this.getSelectionRange(),V={row:Math.floor($.start.row+($.end.row-$.start.row)/2),column:Math.floor($.start.column+($.end.column-$.start.column)/2)};this.renderer.alignCursor(V,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function($,V){this.selection.moveCursorTo($,V)},this.moveCursorToPosition=function($){this.selection.moveCursorToPosition($)},this.jumpToMatching=function($,V){var F=this.getCursorPosition(),X=new q(this.session,F.row,F.column),Ce=X.getCurrentToken(),Me=Ce||X.stepForward();if(Me){var Re,St,ze=!1,Pe={},Tt=F.column-Me.start,ht={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(Me.value.match(/[{}()\[\]]/g)){for(;Tt=0;--Me)this.$tryReplace(F[Me],$)&&X++;return this.selection.setSelectionRange(Ce),X},this.$tryReplace=function($,V){var F=this.session.getTextRange($);return null!==(V=this.$search.replace(F,V))?($.end=this.session.replace($,V),$):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function($,V,F){V||(V={}),"string"==typeof $||$ instanceof RegExp?V.needle=$:"object"==typeof $&&he.mixin(V,$);var X=this.selection.getRange();null==V.needle&&(($=this.session.getTextRange(X)||this.$search.$options.needle)||(X=this.session.getWordRange(X.start.row,X.start.column),$=this.session.getTextRange(X)),this.$search.set({needle:$})),this.$search.set(V),V.start||this.$search.set({start:X});var Ce=this.$search.find(this.session);return V.preventScroll?Ce:Ce?(this.revealRange(Ce,F),Ce):(V.backwards?X.start=X.end:X.end=X.start,void this.selection.setRange(X))},this.findNext=function($,V){this.find({skipCurrent:!0,backwards:!1},$,V)},this.findPrevious=function($,V){this.find($,{skipCurrent:!0,backwards:!0},V)},this.revealRange=function($,V){this.session.unfold($),this.selection.setSelectionRange($);var F=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView($.start,$.end,.5),!1!==V&&this.renderer.animateScrolling(F)},this.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function($){$.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},this.setAutoScrollEditorIntoView=function($){if($){var V,F=this,X=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var Ce=this.$scrollAnchor;Ce.style.cssText="position:absolute",this.container.insertBefore(Ce,this.container.firstChild);var Me=this.on("changeSelection",function(){X=!0}),Re=this.renderer.on("beforeRender",function(){X&&(V=F.renderer.container.getBoundingClientRect())}),ze=this.renderer.on("afterRender",function(){if(X&&V&&(F.isFocused()||F.searchBox&&F.searchBox.isFocused())){var Pe=F.renderer,Tt=Pe.$cursorLayer.$pixelPos,St=Pe.layerConfig,ht=Tt.top-St.offset;null!=(X=Tt.top>=0&&ht+V.top<0||!(Tt.topwindow.innerHeight)&&null)&&(Ce.style.top=ht+"px",Ce.style.left=Tt.left+"px",Ce.style.height=St.lineHeight+"px",Ce.scrollIntoView(X)),X=V=null}});this.setAutoScrollEditorIntoView=function(Pe){Pe||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",Me),this.renderer.off("afterRender",ze),this.renderer.off("beforeRender",Re))}}},this.$resetCursorStyle=function(){var $=this.$cursorStyle||"ace",V=this.renderer.$cursorLayer;V&&(V.setSmoothBlinking(/smooth/.test($)),V.isBlinking=!this.$readOnly&&"wide"!=$,W.setCssClass(V.element,"ace_slim-cursors",/slim/.test($)))},this.prompt=function($,V,F){var X=this;K.loadModule("./ext/prompt",function(Ce){Ce.prompt(X,$,V,F)})}}.call(U.prototype),K.defineOptions(U.prototype,"editor",{selectionStyle:{set:function($){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:$})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function($){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function($){this.textInput.setReadOnly($),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function($){this.textInput.setCopyWithEmptySelection($)},initialValue:!1},cursorStyle:{set:function($){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function($){this.setAutoScrollEditorIntoView($)}},keyboardHandler:{set:function($){this.setKeyboardHandler($)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function($){this.session.setValue($)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function($){this.setSession($)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function($){this.renderer.$gutterLayer.setShowLineNumbers($),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),$&&this.$relativeLineNumbers?P.attach(this):P.detach(this)},initialValue:!0},relativeLineNumbers:{set:function($){this.$showLineNumbers&&$?P.attach(this):P.detach(this)}},placeholder:{set:function($){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var V=this.session&&(this.renderer.$composition||this.getValue());if(V&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),W.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(V||this.renderer.placeholderNode)!V&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"");else{this.renderer.on("afterRender",this.$updatePlaceholder),W.addCssClass(this.container,"ace_hasPlaceholder");var F=W.createElement("div");F.className="ace_placeholder",F.textContent=this.$placeholder||"",this.renderer.placeholderNode=F,this.renderer.content.appendChild(this.renderer.placeholderNode)}}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var P={getText:function($,V){return(Math.abs($.selection.lead.row-V)||V+1+(V<9?"\xb7":""))+""},getWidth:function($,V,F){return Math.max(V.toString().length,(F.lastRow+1).toString().length,2)*F.characterWidth},update:function($,V){V.renderer.$loop.schedule(V.renderer.CHANGE_GUTTER)},attach:function($){$.renderer.$gutterLayer.$renderer=this,$.on("changeSelection",this.update),this.update(null,$)},detach:function($){$.renderer.$gutterLayer.$renderer==this&&($.renderer.$gutterLayer.$renderer=null),$.off("changeSelection",this.update),this.update(null,$)}};ee.Editor=U}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(ve,ee,it){"use strict";var he=function(){this.$maxRev=0,this.$fromUndo=!1,this.reset()};(function(){this.addSession=function(P){this.$session=P},this.add=function(P,$,V){this.$fromUndo||P!=this.$lastDelta&&(this.$keepRedoStack||(this.$redoStack.length=0),(!1===$||!this.lastDeltas)&&(this.lastDeltas=[],this.$undoStack.push(this.lastDeltas),P.id=this.$rev=++this.$maxRev),("remove"==P.action||"insert"==P.action)&&(this.$lastDelta=P),this.lastDeltas.push(P))},this.addSelection=function(P,$){this.selections.push({value:P,rev:$||this.$rev})},this.startNewGroup=function(){return this.lastDeltas=null,this.$rev},this.markIgnored=function(P,$){null==$&&($=this.$rev+1);for(var V=this.$undoStack,F=V.length;F--;){var X=V[F][0];if(X.id<=P)break;X.id<$&&(X.ignore=!0)}this.lastDeltas=null},this.getSelection=function(P,$){for(var V=this.selections,F=V.length;F--;){var X=V[F];if(X.rev0},this.canRedo=function(){return this.$redoStack.length>0},this.bookmark=function(P){null==P&&(P=this.$rev),this.mark=P},this.isAtBookmark=function(){return this.$rev===this.mark},this.toJSON=function(){},this.fromJSON=function(){},this.hasUndo=this.canUndo,this.hasRedo=this.canRedo,this.isClean=this.isAtBookmark,this.markClean=this.bookmark,this.$prettyPrint=function(P){return P?y(P):y(this.$undoStack)+"\n---\n"+y(this.$redoStack)}}).call(he.prototype);var R=ve("./range").Range,D=R.comparePoints;function g(P){return{row:P.row,column:P.column}}function y(P){if(P=P||this,Array.isArray(P))return P.map(y).join("\n");var $="";return P.action?($="insert"==P.action?"+":"-",$+="["+P.lines+"]"):P.value&&($=Array.isArray(P.value)?P.value.map(b).join("\n"):b(P.value)),P.start&&($+=b(P)),(P.id||P.rev)&&($+="\t("+(P.id||P.rev)+")"),$}function b(P){return P.start.row+":"+P.start.column+"=>"+P.end.row+":"+P.end.column}function x(P,$){var V="insert"==P.action,F="insert"==$.action;if(V&&F)if(D($.start,P.end)>=0)Y($,P,-1);else{if(!(D($.start,P.start)<=0))return null;Y(P,$,1)}else if(V&&!F)if(D($.start,P.end)>=0)Y($,P,-1);else{if(!(D($.end,P.start)<=0))return null;Y(P,$,-1)}else if(!V&&F)if(D($.start,P.start)>=0)Y($,P,1);else{if(!(D($.start,P.start)<=0))return null;Y(P,$,1)}else if(!V&&!F)if(D($.start,P.start)>=0)Y($,P,1);else{if(!(D($.end,P.start)<=0))return null;Y(P,$,-1)}return[$,P]}function T(P,$){for(var V=P.length;V--;)for(var F=0;F<$.length;F++)if(!x(P[V],$[F])){for(;V=0?Y(P,$,-1):(D(P.start,$.start)<=0||Y(P,R.fromPoints($.start,P.start),-1),Y($,P,1));else if(!V&&F)D($.start,P.end)>=0?Y($,P,-1):(D($.start,P.start)<=0||Y($,R.fromPoints(P.start,$.start),-1),Y(P,$,1));else if(!V&&!F)if(D($.start,P.end)>=0)Y($,P,-1);else{var X,Ce;if(!(D($.end,P.start)<=0))return D(P.start,$.start)<0&&(X=P,P=q(P,$.start)),D(P.end,$.end)>0&&(Ce=q(P,$.end)),K($.end,P.start,P.end,-1),Ce&&!X&&(P.lines=Ce.lines,P.start=Ce.start,P.end=Ce.end,Ce=P),[$,X,Ce].filter(Boolean);Y(P,$,-1)}return[$,P]}function Y(P,$,V){K(P.start,$.start,$.end,V),K(P.end,$.start,$.end,V)}function K(P,$,V,F){P.row==(1==F?$:V).row&&(P.column+=F*(V.column-$.column)),P.row+=F*(V.row-$.row)}function q(P,$){var V=P.lines,F=P.end;P.end=g($);var X=P.end.row-P.start.row,Ce=V.splice(X,V.length),Me=X?$.column:$.column-P.start.column;return V.push(Ce[0].substring(0,Me)),Ce[0]=Ce[0].substr(Me),{start:g($),end:F,lines:Ce,action:P.action}}function O(P,$){$=function _(P){return{start:g(P.start),end:g(P.end),action:P.action,lines:P.lines.slice()}}($);for(var V=P.length;V--;){for(var F=P[V],X=0;Xj&&(j=(T=y.getNextFoldLine(q=T.end.row+1,T))?T.start.row:1/0),q>x){for(;this.$lines.getLength()>K+1;)this.$lines.pop();break}(Y=this.$lines.get(++K))?Y.row=q:(Y=this.$lines.createCell(q,_,this.session,g),this.$lines.push(Y)),this.$renderCell(Y,_,T,q),q++}this._signal("afterRender"),this.$updateGutterWidth(_)},this.$updateGutterWidth=function(_){var y=this.session,b=y.gutterRenderer||this.$renderer,x=y.$firstLineNumber,T=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||y.$useWrapMode)&&(T=y.getLength()+x-1);var j=b?b.getWidth(y,T,_):T.toString().length*_.characterWidth,Y=this.$padding||this.$computePadding();(j+=Y.left+Y.right)!==this.gutterWidth&&!isNaN(j)&&(this.gutterWidth=j,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",j))},this.$updateCursorRow=function(){if(this.$highlightGutterLine){var _=this.session.selection.getCursor();this.$cursorRow!==_.row&&(this.$cursorRow=_.row)}},this.updateLineHighlight=function(){if(this.$highlightGutterLine){var _=this.session.selection.cursor.row;if(this.$cursorRow=_,!this.$cursorCell||this.$cursorCell.row!=_){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var y=this.$lines.cells;this.$cursorCell=null;for(var b=0;b=this.$cursorRow){if(x.row>this.$cursorRow){var T=this.session.getFoldLine(this.$cursorRow);if(!(b>0&&T&&T.start.row==y[b-1].row))break;x=y[b-1]}x.element.className="ace_gutter-active-line "+x.element.className,this.$cursorCell=x;break}}}}},this.scrollLines=function(_){var y=this.config;if(this.config=_,this.$updateCursorRow(),this.$lines.pageChanged(y,_))return this.update(_);this.$lines.moveContainer(_);var b=Math.min(_.lastRow+_.gutterOffset,this.session.getLength()-1),x=this.oldLastRow;if(this.oldLastRow=b,!y||x<_.firstRow)return this.update(_);if(b0;T--)this.$lines.shift();if(x>b)for(T=this.session.getFoldedRowCount(b+1,x);T>0;T--)this.$lines.pop();_.firstRowx&&this.$lines.push(this.$renderLines(_,x+1,b)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(_)},this.$renderLines=function(_,y,b){for(var x=[],T=y,j=this.session.getNextFoldLine(T),Y=j?j.start.row:1/0;T>Y&&(Y=(j=this.session.getNextFoldLine(T=j.end.row+1,j))?j.start.row:1/0),!(T>b);){var K=this.$lines.createCell(T,_,this.session,g);this.$renderCell(K,_,j,T),x.push(K),T++}return x},this.$renderCell=function(_,y,b,x){var T=_.element,j=this.session,Y=T.childNodes[0],K=T.childNodes[1],q=j.$firstLineNumber,O=j.$breakpoints,U=j.$decorations,P=j.gutterRenderer||this.$renderer,$=this.$showFoldWidgets&&j.foldWidgets,V=b?b.start.row:Number.MAX_VALUE,F="ace_gutter-cell ";if(this.$highlightGutterLine&&(x==this.$cursorRow||b&&x=V&&this.$cursorRow<=b.end.row)&&(F+="ace_gutter-active-line ",this.$cursorCell!=_&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=_)),O[x]&&(F+=O[x]),U[x]&&(F+=U[x]),this.$annotations[x]&&(F+=this.$annotations[x].className),T.className!=F&&(T.className=F),$){var X=$[x];null==X&&(X=$[x]=j.getFoldWidget(x))}X?(F="ace_fold-widget ace_"+X,K.className!=(F+="start"==X&&x==V&&xb.right-y.right?"foldWidgets":void 0}}).call(v.prototype),ee.Gutter=v}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(ve,ee,it){"use strict";var he=ve("../range").Range,W=ve("../lib/dom"),R=function(D){this.element=W.createElement("div"),this.element.className="ace_layer ace_marker-layer",D.appendChild(this.element)};(function(){function D(S,v,g,_){return(S?1:0)|(v?2:0)|(g?4:0)|(_?8:0)}this.$padding=0,this.setPadding=function(S){this.$padding=S},this.setSession=function(S){this.session=S},this.setMarkers=function(S){this.markers=S},this.elt=function(S,v){var g=-1!=this.i&&this.element.childNodes[this.i];g?this.i++:(g=document.createElement("div"),this.element.appendChild(g),this.i=-1),g.style.cssText=v,g.className=S},this.update=function(S){if(S){var v;for(var g in this.config=S,this.i=0,this.markers){var _=this.markers[g];if(_.range){var y=_.range.clipRows(S.firstRow,S.lastRow);if(!y.isEmpty())if(y=y.toScreenRange(this.session),_.renderer){var b=this.$getTop(y.start.row,S);_.renderer(v,y,this.$padding+y.start.column*S.characterWidth,b,S)}else"fullLine"==_.type?this.drawFullLineMarker(v,y,_.clazz,S):"screenLine"==_.type?this.drawScreenLineMarker(v,y,_.clazz,S):y.isMultiLine()?"text"==_.type?this.drawTextMarker(v,y,_.clazz,S):this.drawMultiLineMarker(v,y,_.clazz,S):this.drawSingleLineMarker(v,y,_.clazz+" ace_start ace_br15",S)}else _.update(v,this,this.session,S)}if(-1!=this.i)for(;this.iq,j==T),_,j==T?0:1,y)},this.drawMultiLineMarker=function(S,v,g,_,y){var Y,b=this.$padding,x=_.lineHeight,T=this.$getTop(v.start.row,_),j=b+v.start.column*_.characterWidth;if(y=y||"",this.session.$bidiHandler.isBidiRow(v.start.row)?((Y=v.clone()).end.row=Y.start.row,Y.end.column=this.session.getLine(Y.start.row).length,this.drawBidiSingleLineMarker(S,Y,g+" ace_br1 ace_start",_,null,y)):this.elt(g+" ace_br1 ace_start","height:"+x+"px;right:0;top:"+T+"px;left:"+j+"px;"+(y||"")),this.session.$bidiHandler.isBidiRow(v.end.row)?((Y=v.clone()).start.row=Y.end.row,Y.start.column=0,this.drawBidiSingleLineMarker(S,Y,g+" ace_br12",_,null,y)):(T=this.$getTop(v.end.row,_),this.elt(g+" ace_br12","height:"+x+"px;width:"+v.end.column*_.characterWidth+"px;top:"+T+"px;left:"+b+"px;"+(y||""))),!((x=(v.end.row-v.start.row-1)*_.lineHeight)<=0)){T=this.$getTop(v.start.row+1,_);var q=(v.start.column?1:0)|(v.end.column?0:8);this.elt(g+(q?" ace_br"+q:""),"height:"+x+"px;right:0;top:"+T+"px;left:"+b+"px;"+(y||""))}},this.drawSingleLineMarker=function(S,v,g,_,y,b){if(this.session.$bidiHandler.isBidiRow(v.start.row))return this.drawBidiSingleLineMarker(S,v,g,_,y,b);var x=_.lineHeight,T=(v.end.column+(y||0)-v.start.column)*_.characterWidth,j=this.$getTop(v.start.row,_);this.elt(g,"height:"+x+"px;width:"+T+"px;top:"+j+"px;left:"+(this.$padding+v.start.column*_.characterWidth)+"px;"+(b||""))},this.drawBidiSingleLineMarker=function(S,v,g,_,y,b){var x=_.lineHeight,T=this.$getTop(v.start.row,_),j=this.$padding;this.session.$bidiHandler.getSelections(v.start.column,v.end.column).forEach(function(K){this.elt(g,"height:"+x+"px;width:"+K.width+(y||0)+"px;top:"+T+"px;left:"+(j+K.left)+"px;"+(b||""))},this)},this.drawFullLineMarker=function(S,v,g,_,y){var b=this.$getTop(v.start.row,_),x=_.lineHeight;v.start.row!=v.end.row&&(x+=this.$getTop(v.end.row,_)-b),this.elt(g,"height:"+x+"px;top:"+b+"px;left:0;right:0;"+(y||""))},this.drawScreenLineMarker=function(S,v,g,_,y){var b=this.$getTop(v.start.row,_);this.elt(g,"height:"+_.lineHeight+"px;top:"+b+"px;left:0;right:0;"+(y||""))}}).call(R.prototype),ee.Marker=R}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter"],function(ve,ee,it){"use strict";var he=ve("../lib/oop"),W=ve("../lib/dom"),R=ve("../lib/lang"),D=ve("./lines").Lines,S=ve("../lib/event_emitter").EventEmitter,v=function(g){this.dom=W,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",g.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new D(this.element)};(function(){he.implement(this,S),this.EOF_CHAR="\xb6",this.EOL_CHAR_LF="\xac",this.EOL_CHAR_CRLF="\xa4",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="\u2014",this.SPACE_CHAR="\xb7",this.$padding=0,this.MAX_LINE_LENGTH=1e4,this.$updateEolChar=function(){var g=this.session.doc,y="\n"==g.getNewLineCharacter()&&"windows"!=g.getNewLineMode()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=y)return this.EOL_CHAR=y,!0},this.setPadding=function(g){this.$padding=g,this.element.style.margin="0 "+g+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(g){this.$fontMetrics=g,this.$fontMetrics.on("changeCharacterSize",function(_){this._signal("changeCharacterSize",_)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(g){this.session=g,g&&this.$computeTabString()},this.showInvisibles=!1,this.showSpaces=!1,this.showTabs=!1,this.showEOL=!1,this.setShowInvisibles=function(g){return this.showInvisibles!=g&&(this.showInvisibles=g,"string"==typeof g?(this.showSpaces=/tab/i.test(g),this.showTabs=/space/i.test(g),this.showEOL=/eol/i.test(g)):this.showSpaces=this.showTabs=this.showEOL=g,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(g){return this.displayIndentGuides!=g&&(this.displayIndentGuides=g,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var g=this.session.getTabSize();this.tabSize=g;for(var _=this.$tabStrings=[0],y=1;yO&&(O=(q=this.session.getNextFoldLine(K=q.end.row+1,q))?q.start.row:1/0),!(K>x);){var U=T[j++];if(U){this.dom.removeChildren(U),this.$renderLine(U,K,K==O&&q),Y&&(U.style.top=this.$lines.computeLineTop(K,g,this.session)+"px");var P=g.lineHeight*this.session.getRowLength(K)+"px";U.style.height!=P&&(Y=!0,U.style.height=P)}K++}if(Y)for(;j0;x--)this.$lines.shift();if(_.lastRow>g.lastRow)for(x=this.session.getFoldedRowCount(g.lastRow+1,_.lastRow);x>0;x--)this.$lines.pop();g.firstRow<_.firstRow&&this.$lines.unshift(this.$renderLinesFragment(g,g.firstRow,_.firstRow-1)),g.lastRow>_.lastRow&&this.$lines.push(this.$renderLinesFragment(g,_.lastRow+1,g.lastRow))},this.$renderLinesFragment=function(g,_,y){for(var b=[],x=_,T=this.session.getNextFoldLine(x),j=T?T.start.row:1/0;x>j&&(j=(T=this.session.getNextFoldLine(x=T.end.row+1,T))?T.start.row:1/0),!(x>y);){var Y=this.$lines.createCell(x,g,this.session),K=Y.element;this.dom.removeChildren(K),W.setStyle(K.style,"height",this.$lines.computeLineHeight(x,g,this.session)+"px"),W.setStyle(K.style,"top",this.$lines.computeLineTop(x,g,this.session)+"px"),this.$renderLine(K,x,x==j&&T),K.className=this.$useLineGroups()?"ace_line_group":"ace_line",b.push(Y),x++}return b},this.update=function(g){this.$lines.moveContainer(g),this.config=g;for(var _=g.firstRow,y=g.lastRow,b=this.$lines;b.getLength();)b.pop();b.push(this.$renderLinesFragment(g,_,y))},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(g,_,y,b){for(var Y,x=this,T=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,j=this.dom.createFragment(this.element),K=0;Y=T.exec(b);){var q=Y[1],O=Y[2],U=Y[3],P=Y[4],$=Y[5];if(x.showSpaces||!O){var V=K!=Y.index?b.slice(K,Y.index):"";if(K=Y.index+Y[0].length,V&&j.appendChild(this.dom.createTextNode(V,this.element)),q){var F=x.session.getScreenTabSize(_+Y.index);j.appendChild(x.$tabStrings[F].cloneNode(!0)),_+=F-1}else O?x.showSpaces?((X=this.dom.createElement("span")).className="ace_invisible ace_invisible_space",X.textContent=R.stringRepeat(x.SPACE_CHAR,O.length),j.appendChild(X)):j.appendChild(this.com.createTextNode(O,this.element)):U?((X=this.dom.createElement("span")).className="ace_invisible ace_invisible_space ace_invalid",X.textContent=R.stringRepeat(x.SPACE_CHAR,U.length),j.appendChild(X)):P?(_+=1,(X=this.dom.createElement("span")).style.width=2*x.config.characterWidth+"px",X.className=x.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",X.textContent=x.showSpaces?x.SPACE_CHAR:P,j.appendChild(X)):$&&(_+=1,(X=this.dom.createElement("span")).style.width=2*x.config.characterWidth+"px",X.className="ace_cjk",X.textContent=$,j.appendChild(X))}}if(j.appendChild(this.dom.createTextNode(K?b.slice(K):b,this.element)),this.$textToken[y.type])g.appendChild(j);else{var Ce="ace_"+y.type.replace(/\./g," ace_"),X=this.dom.createElement("span");"fold"==y.type&&(X.style.width=y.value.length*this.config.characterWidth+"px"),X.className=Ce,X.appendChild(j),g.appendChild(X)}return _+b.length},this.renderIndentGuide=function(g,_,y){var b=_.search(this.$indentGuideRe);if(b<=0||b>=y)return _;if(" "==_[0]){for(var x=(b-=b%this.tabSize)/this.tabSize,T=0;T=T;)j=this.$renderToken(Y,j,q,O.substring(0,T-b)),O=O.substring(T-b),b=T,Y=this.$createLineElement(),g.appendChild(Y),Y.appendChild(this.dom.createTextNode(R.stringRepeat("\xa0",y.indent),this.element)),j=0,T=y[++x]||Number.MAX_VALUE;0!=O.length&&(b+=O.length,j=this.$renderToken(Y,j,q,O))}}y[y.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(Y,j,null,"",!0)},this.$renderSimpleLine=function(g,_){var y=0,b=_[0],x=b.value;this.displayIndentGuides&&(x=this.renderIndentGuide(g,x)),x&&(y=this.$renderToken(g,y,b,x));for(var T=1;T<_.length;T++){if(y+(x=(b=_[T]).value).length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(g,y,b,x);y=this.$renderToken(g,y,b,x)}},this.$renderOverflowMessage=function(g,_,y,b,x){y&&this.$renderToken(g,_,y,b.slice(0,this.MAX_LINE_LENGTH-_));var T=this.dom.createElement("span");T.className="ace_inline_button ace_keyword ace_toggle_wrap",T.textContent=x?"":"",g.appendChild(T)},this.$renderLine=function(g,_,y){if(!y&&0!=y&&(y=this.session.getFoldLine(_)),y)var b=this.$getFoldLineTokens(_,y);else b=this.session.getTokens(_);var x=g;if(b.length){var T=this.session.getRowSplitData(_);T&&T.length?(this.$renderWrappedLine(g,b,T),x=g.lastChild):(x=g,this.$useLineGroups()&&(x=this.$createLineElement(),g.appendChild(x)),this.$renderSimpleLine(x,b))}else this.$useLineGroups()&&(x=this.$createLineElement(),g.appendChild(x));if(this.showEOL&&x){y&&(_=y.end.row);var j=this.dom.createElement("span");j.className="ace_invisible ace_invisible_eol",j.textContent=_==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,x.appendChild(j)}},this.$getFoldLineTokens=function(g,_){var y=this.session,b=[],T=y.getTokens(g);return _.walk(function(j,Y,K,q,O){null!=j?b.push({type:"fold",value:j}):(O&&(T=y.getTokens(Y)),T.length&&function x(j,Y,K){for(var q=0,O=0;O+j[q].value.lengthK-Y&&(U=U.substring(0,K-Y)),b.push({type:j[q].type,value:U}),O=Y+U.length,q+=1);OK?{type:j[q].type,value:U.substring(0,K-O)}:j[q]),O+=U.length,q+=1}}(T,q,K))},_.end.row,this.session.getLine(_.end.row).length),b},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(v.prototype),ee.Text=v}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(ve,ee,it){"use strict";var he=ve("../lib/dom"),W=function(R){this.element=he.createElement("div"),this.element.className="ace_layer ace_cursor-layer",R.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),he.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)};(function(){this.$updateOpacity=function(R){for(var D=this.cursors,S=D.length;S--;)he.setStyle(D[S].style,"opacity",R?"":"0")},this.$startCssAnimation=function(){for(var R=this.cursors,D=R.length;D--;)R[D].style.animationDuration=this.blinkInterval+"ms";setTimeout(function(){he.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){he.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(R){this.$padding=R},this.setSession=function(R){this.session=R},this.setBlinking=function(R){R!=this.isBlinking&&(this.isBlinking=R,this.restartTimer())},this.setBlinkInterval=function(R){R!=this.blinkInterval&&(this.blinkInterval=R,this.restartTimer())},this.setSmoothBlinking=function(R){R!=this.smoothBlinking&&(this.smoothBlinking=R,he.setCssClass(this.element,"ace_smooth-blinking",R),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var R=he.createElement("div");return R.className="ace_cursor",this.element.appendChild(R),this.cursors.push(R),R},this.removeCursor=function(){if(this.cursors.length>1){var R=this.cursors.pop();return R.parentNode.removeChild(R),R}},this.hideCursor=function(){this.isVisible=!1,he.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,he.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var R=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&he.removeCssClass(this.element,"ace_smooth-blinking"),R(!0),this.isBlinking&&this.blinkInterval&&this.isVisible)if(this.smoothBlinking&&setTimeout(function(){he.addCssClass(this.element,"ace_smooth-blinking")}.bind(this)),he.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var D=function(){this.timeoutId=setTimeout(function(){R(!1)},.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval(function(){R(!0),D()},this.blinkInterval),D()}else this.$stopCssAnimation()},this.getPixelPosition=function(R,D){if(!this.config||!this.session)return{left:0,top:0};R||(R=this.session.selection.getCursor());var S=this.session.documentToScreenPosition(R);return{left:this.$padding+(this.session.$bidiHandler.isBidiRow(S.row,R.row)?this.session.$bidiHandler.getPosLeft(S.column):S.column*this.config.characterWidth),top:(S.row-(D?this.config.firstRowScreen:0))*this.config.lineHeight}},this.isCursorInView=function(R,D){return R.top>=0&&R.topR.height+R.offset||_.top<0)&&S>1)){var y=this.cursors[v++]||this.addCursor(),b=y.style;this.drawCursor?this.drawCursor(y,_,R,D[S],this.session):this.isCursorInView(_,R)?(he.setStyle(b,"display","block"),he.translate(y,_.left,_.top),he.setStyle(b,"width",Math.round(R.characterWidth)+"px"),he.setStyle(b,"height",R.lineHeight+"px")):he.setStyle(b,"display","none")}}for(;this.cursors.length>v;)this.removeCursor();var x=this.session.getOverwrite();this.$setOverwrite(x),this.$pixelPos=_,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(R){R!=this.overwrite&&(this.overwrite=R,R?he.addCssClass(this.element,"ace_overwrite-cursors"):he.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(W.prototype),ee.Cursor=W}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(ve,ee,it){"use strict";var he=ve("./lib/oop"),W=ve("./lib/dom"),R=ve("./lib/event"),D=ve("./lib/event_emitter").EventEmitter,S=32768,v=function(y){this.element=W.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=W.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent="\xa0",this.element.appendChild(this.inner),y.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,R.addListener(this.element,"scroll",this.onScroll.bind(this)),R.addListener(this.element,"mousedown",R.preventDefault)};(function(){he.implement(this,D),this.setVisible=function(y){this.element.style.display=y?"":"none",this.isVisible=y,this.coeff=1}}).call(v.prototype);var g=function(y,b){v.call(this,y),this.scrollTop=0,this.scrollHeight=0,b.$scrollbarWidth=this.width=W.scrollbarWidth(y.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};he.inherits(g,v),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var y=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-y)/(this.coeff-y)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(y){this.element.style.height=y+"px"},this.setInnerHeight=this.setScrollHeight=function(y){this.scrollHeight=y,y>S?(this.coeff=S/y,y=S):1!=this.coeff&&(this.coeff=1),this.inner.style.height=y+"px"},this.setScrollTop=function(y){this.scrollTop!=y&&(this.skipEvent=!0,this.scrollTop=y,this.element.scrollTop=y*this.coeff)}}.call(g.prototype);var _=function(y,b){v.call(this,y),this.scrollLeft=0,this.height=b.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};he.inherits(_,v),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(y){this.element.style.width=y+"px"},this.setInnerWidth=function(y){this.inner.style.width=y+"px"},this.setScrollWidth=function(y){this.inner.style.width=y+"px"},this.setScrollLeft=function(y){this.scrollLeft!=y&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=y)}}.call(_.prototype),ee.ScrollBar=g,ee.ScrollBarV=g,ee.ScrollBarH=_,ee.VScrollBar=g,ee.HScrollBar=_}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(ve,ee,it){"use strict";var he=ve("./lib/event"),W=function(R,D){this.onRender=R,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=D||window;var S=this;this._flush=function(v){S.pending=!1;var g=S.changes;if(g&&(he.blockIdle(100),S.changes=0,S.onRender(g)),S.changes){if(S.$recursionLimit--<0)return;S.schedule()}else S.$recursionLimit=2}};(function(){this.schedule=function(R){this.changes=this.changes|R,this.changes&&!this.pending&&(he.nextFrame(this._flush),this.pending=!0)},this.clear=function(R){var D=this.changes;return this.changes=0,D}}).call(W.prototype),ee.RenderLoop=W}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(ve,ee,it){var he=ve("../lib/oop"),W=ve("../lib/dom"),R=ve("../lib/lang"),D=ve("../lib/event"),S=ve("../lib/useragent"),v=ve("../lib/event_emitter").EventEmitter,g=256,_="function"==typeof ResizeObserver,y=200,b=ee.FontMetrics=function(x){this.el=W.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=W.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=W.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),x.appendChild(this.el),this.$measureNode.textContent=R.stringRepeat("X",g),this.$characterSize={width:0,height:0},_?this.$addObserver():this.checkForSizeChanges()};(function(){he.implement(this,v),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(x,T){x.width=x.height="auto",x.left=x.top="0px",x.visibility="hidden",x.position="absolute",x.whiteSpace="pre",S.isIE<8?x["font-family"]="inherit":x.font="inherit",x.overflow=T?"hidden":"visible"},this.checkForSizeChanges=function(x){if(void 0===x&&(x=this.$measureSizes()),x&&(this.$characterSize.width!==x.width||this.$characterSize.height!==x.height)){this.$measureNode.style.fontWeight="bold";var T=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=x,this.charSizes=Object.create(null),this.allowBoldFonts=T&&T.width===x.width&&T.height===x.height,this._emit("changeCharacterSize",{data:x})}},this.$addObserver=function(){var x=this;this.$observer=new window.ResizeObserver(function(T){x.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var x=this;return this.$pollSizeChangesTimer=D.onIdle(function T(){x.checkForSizeChanges(),D.onIdle(T,500)},500)},this.setPolling=function(x){x?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(x){var T={height:(x||this.$measureNode).clientHeight,width:(x||this.$measureNode).clientWidth/g};return 0===T.width||0===T.height?null:T},this.$measureCharWidth=function(x){return this.$main.textContent=R.stringRepeat(x,g),this.$main.getBoundingClientRect().width/g},this.getCharacterWidth=function(x){var T=this.charSizes[x];return void 0===T&&(T=this.charSizes[x]=this.$measureCharWidth(x)/this.$characterSize.width),T},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function x(T){return T&&T.parentElement?(window.getComputedStyle(T).zoom||1)*x(T.parentElement):1},this.$initTransformMeasureNodes=function(){var x=function(T,j){return["div",{style:"position: absolute;top:"+T+"px;left:"+j+"px;"}]};this.els=W.buildDom([x(0,0),x(y,0),x(0,y),x(y,y)],this.el)},this.transformCoordinates=function(x,T){function Y(ht,It,mt){var Zt=ht[1]*It[0]-ht[0]*It[1];return[(-It[1]*mt[0]+It[0]*mt[1])/Zt,(+ht[1]*mt[0]-ht[0]*mt[1])/Zt]}function K(ht,It){return[ht[0]-It[0],ht[1]-It[1]]}function q(ht,It){return[ht[0]+It[0],ht[1]+It[1]]}function O(ht,It){return[ht*It[0],ht*It[1]]}function U(ht){var It=ht.getBoundingClientRect();return[It.left,It.top]}x&&(x=O(1/this.$getZoom(this.el),x)),this.els||this.$initTransformMeasureNodes();var P=U(this.els[0]),$=U(this.els[1]),V=U(this.els[2]),F=U(this.els[3]),X=Y(K(F,$),K(F,V),K(q($,V),q(F,P))),Ce=O(1+X[0],K($,P)),Me=O(1+X[1],K(V,P));if(T){var Re=T,ze=X[0]*Re[0]/y+X[1]*Re[1]/y+1,Pe=q(O(Re[0],Ce),O(Re[1],Me));return q(O(1/ze/y,Pe),P)}var Tt=K(x,P),St=Y(K(Ce,O(X[0],Tt)),K(Me,O(X[1],Tt)),Tt);return O(y,St)}}).call(b.prototype)}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/lib/useragent"],function(ve,ee,it){"use strict";var he=ve("./lib/oop"),W=ve("./lib/dom"),R=ve("./config"),D=ve("./layer/gutter").Gutter,S=ve("./layer/marker").Marker,v=ve("./layer/text").Text,g=ve("./layer/cursor").Cursor,_=ve("./scrollbar").HScrollBar,y=ve("./scrollbar").VScrollBar,b=ve("./renderloop").RenderLoop,x=ve("./layer/font_metrics").FontMetrics,T=ve("./lib/event_emitter").EventEmitter,j='.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_editor {position: relative;overflow: hidden;padding: 0;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;box-sizing: border-box;min-width: 100%;contain: style size layout;font-variant-ligatures: no-common-ligatures;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;contain: style size layout;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {position: absolute;top: 0;left: 0;right: 0;padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {contain: strict;position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;contain: strict;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: transparent;color: inherit;z-index: 1000;opacity: 1;}.ace_composition_placeholder { color: transparent }.ace_composition_marker { border-bottom: 1px solid;position: absolute;border-radius: 0;margin-top: 1px;}[ace_nocontext=true] {transform: none!important;filter: none!important;clip-path: none!important;mask : none!important;contain: none!important;perspective: none!important;mix-blend-mode: initial!important;z-index: auto;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;height: 1000000px;contain: style size layout;}.ace_text-layer {font: inherit !important;position: absolute;height: 1000000px;width: 1000000px;contain: style size layout;}.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {contain: style size layout;position: absolute;top: 0;left: 0;right: 0;}.ace_hidpi .ace_text-layer,.ace_hidpi .ace_gutter-layer,.ace_hidpi .ace_content,.ace_hidpi .ace_gutter {contain: strict;will-change: transform;}.ace_hidpi .ace_text-layer > .ace_line, .ace_hidpi .ace_text-layer > .ace_line_group {contain: strict;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {opacity: 0;}.ace_smooth-blinking .ace_cursor {transition: opacity 0.18s;}.ace_animate-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: step-end;animation-name: blink-ace-animate;animation-iteration-count: infinite;}.ace_animate-blinking.ace_smooth-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: ease-in-out;animation-name: blink-ace-animate-smooth;}@keyframes blink-ace-animate {from, to { opacity: 1; }60% { opacity: 0; }}@keyframes blink-ace-animate-smooth {from, to { opacity: 1; }45% { opacity: 1; }60% { opacity: 0; }85% { opacity: 0; }}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_error_bracket {position: absolute;border-bottom: 1px solid #DE5555;border-radius: 0;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;box-sizing: border-box;}.ace_line .ace_fold {box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_inline_button {border: 1px solid lightgray;display: inline-block;margin: -1px 8px;padding: 0 5px;pointer-events: auto;cursor: pointer;}.ace_inline_button:hover {border-color: gray;background: rgba(200,200,200,0.2);display: inline-block;pointer-events: auto;}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_mobile-menu {position: absolute;line-height: 1.5;border-radius: 4px;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;background: white;box-shadow: 1px 3px 2px grey;border: 1px solid #dcdcdc;color: black;}.ace_dark > .ace_mobile-menu {background: #333;color: #ccc;box-shadow: 1px 3px 2px grey;border: 1px solid #444;}.ace_mobile-button {padding: 2px;cursor: pointer;overflow: hidden;}.ace_mobile-button:hover {background-color: #eee;opacity:1;}.ace_mobile-button:active {background-color: #ddd;}.ace_placeholder {font-family: arial;transform: scale(0.9);transform-origin: left;white-space: pre;opacity: 0.7;margin: 0 10px;}',Y=ve("./lib/useragent"),K=Y.isIE;W.importCssString(j,"ace_editor.css");var q=function(O,U){var P=this;this.container=O||W.createElement("div"),W.addCssClass(this.container,"ace_editor"),W.HI_DPI&&W.addCssClass(this.container,"ace_hidpi"),this.setTheme(U),this.$gutter=W.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=W.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=W.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new D(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new S(this.content);var $=this.$textLayer=new v(this.content);this.canvas=$.element,this.$markerFront=new S(this.content),this.$cursorLayer=new g(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new y(this.container,this),this.scrollBarH=new _(this.container,this),this.scrollBarV.on("scroll",function(V){P.$scrollAnimation||P.session.setScrollTop(V.data-P.scrollMargin.top)}),this.scrollBarH.on("scroll",function(V){P.$scrollAnimation||P.session.setScrollLeft(V.data-P.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new x(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(V){P.updateCharacterSize(),P.onResize(!0,P.gutterWidth,P.$size.width,P.$size.height),P._signal("changeCharacterSize",V)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!Y.isIOS,this.$loop=new b(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),R.resetOptions(this),R._signal("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,he.implement(this,T),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),W.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},this.setSession=function(O){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=O,O&&this.scrollMargin.top&&O.getScrollTop()<=0&&O.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(O),this.$markerBack.setSession(O),this.$markerFront.setSession(O),this.$gutterLayer.setSession(O),this.$textLayer.setSession(O),O&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(O,U,P){if(void 0===U&&(U=1/0),this.$changedLines?(this.$changedLines.firstRow>O&&(this.$changedLines.firstRow=O),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(O){O?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(O,U,P,$){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=O?1:0;var V=this.container;$||($=V.clientHeight||V.scrollHeight),P||(P=V.clientWidth||V.scrollWidth);var F=this.$updateCachedSize(O,U,P,$);if(!this.$size.scrollerHeight||!P&&!$)return this.resizing=0;O&&(this.$gutterLayer.$padding=null),O?this.$renderChanges(F|this.$changes,!0):this.$loop.schedule(F|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarV.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(O,U,P,$){var V=0,F=this.$size,X={width:F.width,height:F.height,scrollerHeight:F.scrollerHeight,scrollerWidth:F.scrollerWidth};if(($-=this.$extraHeight||0)&&(O||F.height!=$)&&(F.height=$,V|=this.CHANGE_SIZE,F.scrollerHeight=F.height,this.$horizScroll&&(F.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",V|=this.CHANGE_SCROLL),P&&(O||F.width!=P)){V|=this.CHANGE_SIZE,F.width=P,null==U&&(U=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=U,W.setStyle(this.scrollBarH.element.style,"left",U+"px"),W.setStyle(this.scroller.style,"left",U+this.margin.left+"px"),F.scrollerWidth=Math.max(0,P-U-this.scrollBarV.getWidth()-this.margin.h),W.setStyle(this.$gutter.style,"left",this.margin.left+"px");var Ce=this.scrollBarV.getWidth()+"px";W.setStyle(this.scrollBarH.element.style,"right",Ce),W.setStyle(this.scroller.style,"right",Ce),W.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||O)&&(V|=this.CHANGE_FULL)}return F.$dirty=!P||!$,V&&this._signal("resize",X),V},this.onGutterResize=function(O){var U=this.$showGutter?O:0;U!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,U,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},this.adjustWrapLimit=function(){var U=Math.floor((this.$size.scrollerWidth-2*this.$padding)/this.characterWidth);return this.session.adjustWrapLimit(U,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(O){this.setOption("animatedScroll",O)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(O){this.setOption("showInvisibles",O),this.session.$bidiHandler.setShowInvisibles(O)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(O){this.setOption("displayIndentGuides",O)},this.setShowPrintMargin=function(O){this.setOption("showPrintMargin",O)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(O){this.setOption("printMarginColumn",O)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(O){return this.setOption("showGutter",O)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(O){this.setOption("fadeFoldWidgets",O)},this.setHighlightGutterLine=function(O){this.setOption("highlightGutterLine",O)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var O=W.createElement("div");O.className="ace_layer ace_print-margin-layer",this.$printMarginEl=W.createElement("div"),this.$printMarginEl.className="ace_print-margin",O.appendChild(this.$printMarginEl),this.content.insertBefore(O,this.content.firstChild)}var U=this.$printMarginEl.style;U.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",U.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var O=this.textarea.style,U=this.$composition;if(!this.$keepTextAreaAtCursor&&!U)return void W.translate(this.textarea,-100,0);var P=this.$cursorLayer.$pixelPos;if(P){U&&U.markerRange&&(P=this.$cursorLayer.getPixelPosition(U.markerRange.start,!0));var $=this.layerConfig,V=P.top,F=P.left,X=U&&U.useTextareaForIME?this.lineHeight:K?0:1;if((V-=$.offset)<0||V>$.height-X)return void W.translate(this.textarea,0,0);var Ce=1,Me=this.$size.height-X;U?U.useTextareaForIME?Ce=this.characterWidth*this.session.$getStringScreenWidth(this.textarea.value)[0]:V+=this.lineHeight+2:V+=this.lineHeight,(F-=this.scrollLeft)>this.$size.scrollerWidth-Ce&&(F=this.$size.scrollerWidth-Ce),F+=this.gutterWidth+this.margin.left,W.setStyle(O,"height",X+"px"),W.setStyle(O,"width",Ce+"px"),W.translate(this.textarea,Math.min(F,this.$size.scrollerWidth-Ce),Math.min(V,Me))}}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var O=this.layerConfig,U=O.lastRow;return this.session.documentToScreenRow(U,0)*O.lineHeight-this.session.getScrollTop()>O.height-O.lineHeight?U-1:U},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(O){this.$padding=O,this.$textLayer.setPadding(O),this.$cursorLayer.setPadding(O),this.$markerFront.setPadding(O),this.$markerBack.setPadding(O),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(O,U,P,$){var V=this.scrollMargin;V.top=0|O,V.bottom=0|U,V.right=0|$,V.left=0|P,V.v=V.top+V.bottom,V.h=V.left+V.right,V.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-V.top),this.updateFull()},this.setMargin=function(O,U,P,$){var V=this.margin;V.top=0|O,V.bottom=0|U,V.right=0|$,V.left=0|P,V.v=V.top+V.bottom,V.h=V.left+V.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(O){this.setOption("hScrollBarAlwaysVisible",O)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(O){this.setOption("vScrollBarAlwaysVisible",O)},this.$updateScrollBarV=function(){var O=this.layerConfig.maxHeight,U=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&this.scrollTop>(O-=(U-this.lineHeight)*this.$scrollPastEnd)-U&&(O=this.scrollTop+U,this.scrollBarV.scrollTop=null),this.scrollBarV.setScrollHeight(O+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(O,U){if(this.$changes&&(O|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(O||U)){if(this.$size.$dirty)return this.$changes|=O,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",O),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var P=this.layerConfig;if(O&this.CHANGE_FULL||O&this.CHANGE_SIZE||O&this.CHANGE_TEXT||O&this.CHANGE_LINES||O&this.CHANGE_SCROLL||O&this.CHANGE_H_SCROLL){if(O|=this.$computeLayerConfig()|this.$loop.clear(),P.firstRow!=this.layerConfig.firstRow&&P.firstRowScreen==this.layerConfig.firstRowScreen){var $=this.scrollTop+(P.firstRow-this.layerConfig.firstRow)*this.lineHeight;$>0&&(this.scrollTop=$,O|=this.CHANGE_SCROLL,O|=this.$computeLayerConfig()|this.$loop.clear())}P=this.layerConfig,this.$updateScrollBarV(),O&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),W.translate(this.content,-this.scrollLeft,-P.offset);var F=P.minHeight+"px";W.setStyle(this.content.style,"width",P.width+2*this.$padding+"px"),W.setStyle(this.content.style,"height",F)}return O&this.CHANGE_H_SCROLL&&(W.translate(this.content,-this.scrollLeft,-P.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),O&this.CHANGE_FULL?(this.$changedLines=null,this.$textLayer.update(P),this.$showGutter&&this.$gutterLayer.update(P),this.$markerBack.update(P),this.$markerFront.update(P),this.$cursorLayer.update(P),this.$moveTextAreaToCursor(),void this._signal("afterRender",O)):O&this.CHANGE_SCROLL?(this.$changedLines=null,O&this.CHANGE_TEXT||O&this.CHANGE_LINES?this.$textLayer.update(P):this.$textLayer.scrollLines(P),this.$showGutter&&(O&this.CHANGE_GUTTER||O&this.CHANGE_LINES?this.$gutterLayer.update(P):this.$gutterLayer.scrollLines(P)),this.$markerBack.update(P),this.$markerFront.update(P),this.$cursorLayer.update(P),this.$moveTextAreaToCursor(),void this._signal("afterRender",O)):(O&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(P),this.$showGutter&&this.$gutterLayer.update(P)):O&this.CHANGE_LINES?(this.$updateLines()||O&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(P):O&this.CHANGE_TEXT||O&this.CHANGE_GUTTER?this.$showGutter&&this.$gutterLayer.update(P):O&this.CHANGE_CURSOR&&this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(P),O&this.CHANGE_CURSOR&&(this.$cursorLayer.update(P),this.$moveTextAreaToCursor()),O&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(P),O&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(P),void this._signal("afterRender",O))}this.$changes|=O},this.$autosize=function(){var O=this.session.getScreenLength()*this.lineHeight,U=this.$maxLines*this.lineHeight,P=Math.min(U,Math.max((this.$minLines||1)*this.lineHeight,O))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(P+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&P>this.$maxPixelHeight&&(P=this.$maxPixelHeight);var V=!(P<=2*this.lineHeight)&&O>U;if(P!=this.desiredHeight||this.$size.height!=this.desiredHeight||V!=this.$vScroll){V!=this.$vScroll&&(this.$vScroll=V,this.scrollBarV.setVisible(V));var F=this.container.clientWidth;this.container.style.height=P+"px",this.$updateCachedSize(!0,this.$gutterWidth,F,P),this.desiredHeight=P,this._signal("autosize")}},this.$computeLayerConfig=function(){var O=this.session,U=this.$size,P=U.height<=2*this.lineHeight,V=this.session.getScreenLength()*this.lineHeight,F=this.$getLongestLine(),X=!P&&(this.$hScrollBarAlwaysVisible||U.scrollerWidth-F-2*this.$padding<0),Ce=this.$horizScroll!==X;Ce&&(this.$horizScroll=X,this.scrollBarH.setVisible(X));var Me=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var Re=U.scrollerHeight+this.lineHeight,ze=!this.$maxLines&&this.$scrollPastEnd?(U.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;V+=ze;var Pe=this.scrollMargin;this.session.setScrollTop(Math.max(-Pe.top,Math.min(this.scrollTop,V-U.scrollerHeight+Pe.bottom))),this.session.setScrollLeft(Math.max(-Pe.left,Math.min(this.scrollLeft,F+2*this.$padding-U.scrollerWidth+Pe.right)));var Tt=!P&&(this.$vScrollBarAlwaysVisible||U.scrollerHeight-V+ze<0||this.scrollTop>Pe.top),St=Me!==Tt;St&&(this.$vScroll=Tt,this.scrollBarV.setVisible(Tt));var At,pn,ht=this.scrollTop%this.lineHeight,It=Math.ceil(Re/this.lineHeight)-1,mt=Math.max(0,Math.round((this.scrollTop-ht)/this.lineHeight)),Zt=mt+It,Tn=this.lineHeight;mt=O.screenToDocumentRow(mt,0);var Vn=O.getFoldLine(mt);Vn&&(mt=Vn.start.row),At=O.documentToScreenRow(mt,0),pn=O.getRowLength(mt)*Tn,Zt=Math.min(O.screenToDocumentRow(Zt,0),O.getLength()-1),Re=U.scrollerHeight+O.getRowLength(Zt)*Tn+pn,ht=this.scrollTop-At*Tn;var wi=0;return(this.layerConfig.width!=F||Ce)&&(wi=this.CHANGE_H_SCROLL),(Ce||St)&&(wi|=this.$updateCachedSize(!0,this.gutterWidth,U.width,U.height),this._signal("scrollbarVisibilityChanged"),St&&(F=this.$getLongestLine())),this.layerConfig={width:F,padding:this.$padding,firstRow:mt,firstRowScreen:At,lastRow:Zt,lineHeight:Tn,characterWidth:this.characterWidth,minHeight:Re,maxHeight:V,offset:ht,gutterOffset:Tn?Math.max(0,Math.ceil((ht+U.height-U.scrollerHeight)/Tn)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(F-this.$padding),wi},this.$updateLines=function(){if(this.$changedLines){var O=this.$changedLines.firstRow,U=this.$changedLines.lastRow;this.$changedLines=null;var P=this.layerConfig;if(!(O>P.lastRow+1||Uthis.$textLayer.MAX_LINE_LENGTH&&(O=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(O*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(O,U){this.$gutterLayer.addGutterDecoration(O,U)},this.removeGutterDecoration=function(O,U){this.$gutterLayer.removeGutterDecoration(O,U)},this.updateBreakpoints=function(O){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(O){this.$gutterLayer.setAnnotations(O),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(O,U,P){this.scrollCursorIntoView(O,P),this.scrollCursorIntoView(U,P)},this.scrollCursorIntoView=function(O,U,P){if(0!==this.$size.scrollerHeight){var $=this.$cursorLayer.getPixelPosition(O),V=$.left,F=$.top,X=P&&P.top||0,Ce=P&&P.bottom||0,Me=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;Me+X>F?(U&&Me+X>F+this.lineHeight&&(F-=U*this.$size.scrollerHeight),0===F&&(F=-this.scrollMargin.top),this.session.setScrollTop(F)):Me+this.$size.scrollerHeight-CeV?(V=1-this.scrollMargin.top||U>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||O<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||O>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},this.pixelToScreenCoordinates=function(O,U){var P;if(this.$hasCssTransforms){P={top:0,left:0};var $=this.$fontMetrics.transformCoordinates([O,U]);O=$[1]-this.gutterWidth-this.margin.left,U=$[0]}else P=this.scroller.getBoundingClientRect();var V=O+this.scrollLeft-P.left-this.$padding,F=V/this.characterWidth,X=Math.floor((U+this.scrollTop-P.top)/this.lineHeight),Ce=this.$blockCursor?Math.floor(F):Math.round(F);return{row:X,column:Ce,side:F-Ce>0?1:-1,offsetX:V}},this.screenToTextCoordinates=function(O,U){var P;if(this.$hasCssTransforms){P={top:0,left:0};var $=this.$fontMetrics.transformCoordinates([O,U]);O=$[1]-this.gutterWidth-this.margin.left,U=$[0]}else P=this.scroller.getBoundingClientRect();var V=O+this.scrollLeft-P.left-this.$padding,F=V/this.characterWidth,X=this.$blockCursor?Math.floor(F):Math.round(F),Ce=Math.floor((U+this.scrollTop-P.top)/this.lineHeight);return this.session.screenToDocumentPosition(Ce,Math.max(X,0),V)},this.textToScreenCoordinates=function(O,U){var P=this.scroller.getBoundingClientRect(),$=this.session.documentToScreenPosition(O,U),V=this.$padding+(this.session.$bidiHandler.isBidiRow($.row,O)?this.session.$bidiHandler.getPosLeft($.column):Math.round($.column*this.characterWidth));return{pageX:P.left+V-this.scrollLeft,pageY:P.top+$.row*this.lineHeight-this.scrollTop}},this.visualizeFocus=function(){W.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){W.removeCssClass(this.container,"ace_focus")},this.showComposition=function(O){this.$composition=O,O.cssText||(O.cssText=this.textarea.style.cssText),null==O.useTextareaForIME&&(O.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(W.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):O.markerId=this.session.addMarker(O.markerRange,"ace_composition_marker","text")},this.setCompositionText=function(O){var U=this.session.selection.cursor;this.addToken(O,"composition_placeholder",U.row,U.column),this.$moveTextAreaToCursor()},this.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),W.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var O=this.session.selection.cursor;this.removeExtraToken(O.row,O.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},this.addToken=function(O,U,P,$){var V=this.session;V.bgTokenizer.lines[P]=null;var F={type:U,value:O},X=V.getTokens(P);if(null==$)X.push(F);else for(var Ce=0,Me=0;Me"u")return{postMessage:function(){},terminate:function(){}};if(D.get("loadWorkerFromBlob")){var b=function S(y){var b="importScripts('"+W.qualifyURL(y)+"');";try{return new Blob([b],{type:"application/javascript"})}catch{var T=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder);return T.append(b),T.getBlob("application/javascript")}}(y),T=(window.URL||window.webkitURL).createObjectURL(b);return new Worker(T)}return new Worker(y)}var g=function(y){y.postMessage||(y=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=y,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){he.implement(this,R),this.$createWorkerFromOldConfig=function(y,b,x,T,j){if(ve.nameToUrl&&!ve.toUrl&&(ve.toUrl=ve.nameToUrl),D.get("packaged")||!ve.toUrl)T=T||D.moduleUrl(b,"worker");else{var Y=this.$normalizePath;T=T||Y(ve.toUrl("ace/worker/worker.js",null,"_"));var K={};y.forEach(function(q){K[q]=Y(ve.toUrl(q,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=v(T),j&&this.send("importScripts",j),this.$worker.postMessage({init:!0,tlns:K,module:b,classname:x}),this.$worker},this.onMessage=function(y){var b=y.data;switch(b.type){case"event":this._signal(b.name,{data:b.data});break;case"call":var x=this.callbacks[b.id];x&&(x(b.data),delete this.callbacks[b.id]);break;case"error":this.reportError(b.data);break;case"log":window.console&&console.log&&console.log.apply(console,b.data)}},this.reportError=function(y){window.console&&console.error&&console.error(y)},this.$normalizePath=function(y){return W.qualifyURL(y)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(y,b){this.$worker.postMessage({command:y,args:b})},this.call=function(y,b,x){if(x){var T=this.callbackId++;this.callbacks[T]=x,b.push(T)}this.send(y,b)},this.emit=function(y,b){try{b.data&&b.data.err&&(b.data.err={message:b.data.err.message,stack:b.data.err.stack,code:b.data.err.code}),this.$worker.postMessage({event:y,data:{data:b.data}})}catch(x){console.error(x.stack)}},this.attachToDocument=function(y){this.$doc&&this.terminate(),this.$doc=y,this.call("setValue",[y.getValue()]),y.on("change",this.changeListener)},this.changeListener=function(y){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),this.deltaQueue.push(y.start,"insert"==y.action?y.lines:y.end)},this.$sendDeltaQueue=function(){var y=this.deltaQueue;y&&(this.deltaQueue=null,y.length>50&&y.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:y}))}}).call(g.prototype),ee.UIWorkerClient=function(y,b,x){var T=null,j=!1,Y=Object.create(R),K=[],q=new g({messageBuffer:K,terminate:function(){},postMessage:function(U){K.push(U),T&&(j?setTimeout(O):O())}});q.setEmitSync=function(U){j=U};var O=function(){var U=K.shift();U.command?T[U.command].apply(T,U.args):U.event&&Y._signal(U.event,U.data)};return Y.postMessage=function(U){q.onMessage({data:U})},Y.callback=function(U,P){this.postMessage({type:"call",id:P,data:U})},Y.emit=function(U,P){this.postMessage({type:"event",name:U,data:P})},D.loadModule(["worker",b],function(U){for(T=new U[x](Y);K.length;)O()}),q},ee.WorkerClient=g,ee.createWorker=v}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(ve,ee,it){"use strict";var he=ve("./range").Range,W=ve("./lib/event_emitter").EventEmitter,R=ve("./lib/oop"),D=function(S,v,g,_,y,b){var x=this;this.length=v,this.session=S,this.doc=S.getDocument(),this.mainClass=y,this.othersClass=b,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=_,this.$onCursorChange=function(){setTimeout(function(){x.onCursorChange()})},this.$pos=g;var T=S.getUndoManager().$undoStack||S.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=T.length,this.setup(),S.selection.on("changeCursor",this.$onCursorChange)};(function(){R.implement(this,W),this.setup=function(){var S=this,v=this.doc,g=this.session;this.selectionBefore=g.selection.toJSON(),g.selection.inMultiSelectMode&&g.selection.toSingleRange(),this.pos=v.createAnchor(this.$pos.row,this.$pos.column);var _=this.pos;_.$insertRight=!0,_.detach(),_.markerId=g.addMarker(new he(_.row,_.column,_.row,_.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(y){var b=v.createAnchor(y.row,y.column);b.$insertRight=!0,b.detach(),S.others.push(b)}),g.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var S=this.session,v=this;this.othersActive=!0,this.others.forEach(function(g){g.markerId=S.addMarker(new he(g.row,g.column,g.row,g.column+v.length),v.othersClass,null,!1)})}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var S=0;S=this.pos.column&&v.start.column<=this.pos.column+this.length+1,y=v.start.column-this.pos.column;if(this.updateAnchors(S),_&&(this.length+=g),_&&!this.session.$fromUndo)if("insert"===S.action)for(var b=this.others.length-1;b>=0;b--)this.doc.insertMergedLines(T={row:(x=this.others[b]).row,column:x.column+y},S.lines);else if("remove"===S.action)for(b=this.others.length-1;b>=0;b--){var x,T;this.doc.remove(new he((T={row:(x=this.others[b]).row,column:x.column+y}).row,T.column,T.row,T.column-g))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(S){this.pos.onChange(S);for(var v=this.others.length;v--;)this.others[v].onChange(S);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var S=this,v=this.session,g=function(y,b){v.removeMarker(y.markerId),y.markerId=v.addMarker(new he(y.row,y.column,y.row,y.column+S.length),b,null,!1)};g(this.pos,this.mainClass);for(var _=this.others.length;_--;)g(this.others[_],this.othersClass)}},this.onCursorChange=function(S){if(!this.$updating&&this.session){var v=this.session.selection.getCursor();v.row===this.pos.row&&v.column>=this.pos.column&&v.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",S)):(this.hideOtherMarkers(),this._emit("cursorLeave",S))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var S=this.session.getUndoManager(),v=(S.$undoStack||S.$undostack).length-this.$undoStackDepth,g=0;g1?W.multiSelect.joinSelections():W.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(W){W.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(W){W.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(W){W.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],ee.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(W){W.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(W){return W&&W.inMultiSelectMode}}];var he=ve("../keyboard/hash_handler").HashHandler;ee.keyboardHandler=new he(ee.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(ve,ee,it){var he=ve("./range_list").RangeList,W=ve("./range").Range,R=ve("./selection").Selection,D=ve("./mouse/multi_select_handler").onMouseDown,S=ve("./lib/event"),v=ve("./lib/lang"),g=ve("./commands/multi_select_commands");ee.commands=g.defaultCommands.concat(g.multiSelectCommands);var y=new(0,ve("./search").Search),x=ve("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(x.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(q,O){if(q){if(!this.inMultiSelectMode&&0===this.rangeCount){var U=this.toOrientedRange();if(this.rangeList.add(U),this.rangeList.add(q),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),O||this.fromOrientedRange(q);this.rangeList.removeAll(),this.rangeList.add(U),this.$onAddRange(U)}q.cursor||(q.cursor=q.end);var P=this.rangeList.add(q);return this.$onAddRange(q),P.length&&this.$onRemoveRange(P),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),O||this.fromOrientedRange(q)}},this.toSingleRange=function(q){q=q||this.ranges[0];var O=this.rangeList.removeAll();O.length&&this.$onRemoveRange(O),q&&this.fromOrientedRange(q)},this.substractPoint=function(q){var O=this.rangeList.substractPoint(q);if(O)return this.$onRemoveRange(O),O[0]},this.mergeOverlappingRanges=function(){var q=this.rangeList.merge();q.length&&this.$onRemoveRange(q)},this.$onAddRange=function(q){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(q),this._signal("addRange",{range:q})},this.$onRemoveRange=function(q){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var O=this.rangeList.ranges.pop();q.push(O),this.rangeCount=0}for(var U=q.length;U--;){var P=this.ranges.indexOf(q[U]);this.ranges.splice(P,1)}this._signal("removeRange",{ranges:q}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(O=O||this.ranges[0])&&!O.isEqual(this.getRange())&&this.fromOrientedRange(O)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new he,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var q=this.ranges.length?this.ranges:[this.getRange()],O=[],U=0;U1){var q=this.rangeList.ranges,O=q[q.length-1],U=W.fromPoints(q[0].start,O.end);this.toSingleRange(),this.setSelectionRange(U,O.cursor==O.start)}else{var P=this.session.documentToScreenPosition(this.cursor),$=this.session.documentToScreenPosition(this.anchor);this.rectangularRangeBlock(P,$).forEach(this.addRange,this)}},this.rectangularRangeBlock=function(q,O,U){var P=[],$=q.column0;)ht--;if(ht>0)for(var It=0;P[It].isEmpty();)It++;for(var mt=ht;mt>=It;mt--)P[mt].isEmpty()&&P.splice(mt,1)}return P}}.call(R.prototype);var T=ve("./editor").Editor;function j(q,O){return q.row==O.row&&q.column==O.column}function Y(q){q.$multiselectOnSessionChange||(q.$onAddRange=q.$onAddRange.bind(q),q.$onRemoveRange=q.$onRemoveRange.bind(q),q.$onMultiSelect=q.$onMultiSelect.bind(q),q.$onSingleSelect=q.$onSingleSelect.bind(q),q.$multiselectOnSessionChange=ee.onSessionChange.bind(q),q.$checkMultiselectChange=q.$checkMultiselectChange.bind(q),q.$multiselectOnSessionChange(q),q.on("changeSession",q.$multiselectOnSessionChange),q.on("mousedown",D),q.commands.addCommands(g.defaultCommands),function K(q){if(q.textInput){var O=q.textInput.getElement(),U=!1;S.addListener(O,"keydown",function($){q.$blockSelectEnabled&&18==$.keyCode&&!($.ctrlKey||$.shiftKey||$.metaKey)?U||(q.renderer.setMouseCursor("crosshair"),U=!0):U&&P()},q),S.addListener(O,"keyup",P,q),S.addListener(O,"blur",P,q)}function P($){U&&(q.renderer.setMouseCursor(""),U=!1)}}(q))}(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(q){q.cursor||(q.cursor=q.end);var O=this.getSelectionStyle();return q.marker=this.session.addMarker(q,"ace_selection",O),this.session.$selectionMarkers.push(q),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,q},this.removeSelectionMarker=function(q){if(q.marker){this.session.removeMarker(q.marker);var O=this.session.$selectionMarkers.indexOf(q);-1!=O&&this.session.$selectionMarkers.splice(O,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(q){for(var O=this.session.$selectionMarkers,U=q.length;U--;){var P=q[U];if(P.marker){this.session.removeMarker(P.marker);var $=O.indexOf(P);-1!=$&&O.splice($,1)}}this.session.selectionMarkerCount=O.length},this.$onAddRange=function(q){this.addSelectionMarker(q.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(q){this.removeSelectionMarkers(q.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(q){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(g.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(q){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(g.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(q){var O=q.command,U=q.editor;if(U.multiSelect){if(O.multiSelectAction)"forEach"==O.multiSelectAction?P=U.forEachSelection(O,q.args):"forEachLine"==O.multiSelectAction?P=U.forEachSelection(O,q.args,!0):"single"==O.multiSelectAction?(U.exitMultiSelectMode(),P=O.exec(U,q.args||{})):P=O.multiSelectAction(U,q.args||{});else{var P=O.exec(U,q.args||{});U.multiSelect.addRange(U.multiSelect.toOrientedRange()),U.multiSelect.mergeOverlappingRanges()}return P}},this.forEachSelection=function(q,O,U){if(!this.inVirtualSelectionMode){var Me,$=1==U||U&&U.$byLines,V=this.session,F=this.selection,Ce=(U&&U.keepOrder?F:F.rangeList).ranges;if(!Ce.length)return q.exec?q.exec(this,O||{}):q(this,O||{});var Re=F._eventRegistry;F._eventRegistry={};var ze=new R(V);this.inVirtualSelectionMode=!0;for(var Pe=Ce.length;Pe--;){if($)for(;Pe>0&&Ce[Pe].start.row==Ce[Pe-1].end.row;)Pe--;ze.fromOrientedRange(Ce[Pe]),ze.index=Pe,this.selection=V.selection=ze;var Tt=q.exec?q.exec(this,O||{}):q(this,O||{});!Me&&void 0!==Tt&&(Me=Tt),ze.toOrientedRange(Ce[Pe])}ze.detach(),this.selection=V.selection=F,this.inVirtualSelectionMode=!1,F._eventRegistry=Re,F.mergeOverlappingRanges(),F.ranges[0]&&F.fromOrientedRange(F.ranges[0]);var St=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),St&&St.from==St.to&&this.renderer.animateScrolling(St.from),Me}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var q="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var O=this.multiSelect.rangeList.ranges,U=[],P=0;PPe&&(Pe=It.column),ZtAt?q.insert(mt,v.stringRepeat(" ",Zt-At)):q.remove(new W(mt.row,mt.column,mt.row,mt.column-Zt+At)),ht.start.column=ht.end.column=Pe,ht.start.row=ht.end.row=mt.row,ht.cursor=ht.end}),O.fromOrientedRange(U[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var V=this.selection.getRange(),F=V.start.row,X=V.end.row,Ce=F==X;if(Ce){var Re,Me=this.session.getLength();do{Re=this.session.getLine(X)}while(/[=:]/.test(Re)&&++X0);F<0&&(F=0),X>=Me&&(X=Me-1)}var ze=this.session.removeFullLines(F,X);ze=this.$reAlignText(ze,Ce),this.session.insert({row:F,column:0},ze.join("\n")+"\n"),Ce||(V.start.column=0,V.end.column=ze[ze.length-1].length),this.selection.setRange(V)}},this.$reAlignText=function(q,O){var $,V,F,U=!0,P=!0;return q.map(function(ze){var Pe=ze.match(/(\s*)(.*?)(\s*)([=:].*)/);return Pe?null==$?($=Pe[1].length,V=Pe[2].length,F=Pe[3].length,Pe):($+V+F!=Pe[1].length+Pe[2].length+Pe[3].length&&(P=!1),$!=Pe[1].length&&(U=!1),$>Pe[1].length&&($=Pe[1].length),VPe[3].length&&(F=Pe[3].length),Pe):[ze]}).map(O?Ce:U?P?function Me(ze){return ze[2]?X($+V-ze[2].length)+ze[2]+X(F)+ze[4].replace(/^([=:])\s+/,"$1 "):ze[0]}:Ce:function Re(ze){return ze[2]?X($)+ze[2]+X(F)+ze[4].replace(/^([=:])\s+/,"$1 "):ze[0]});function X(ze){return v.stringRepeat(" ",ze)}function Ce(ze){return ze[2]?X($)+ze[2]+X(V-ze[2].length+F)+ze[4].replace(/^([=:])\s+/,"$1 "):ze[0]}}}).call(T.prototype),ee.onSessionChange=function(q){var O=q.session;O&&!O.multiSelect&&(O.$selectionMarkers=[],O.selection.$initRangeList(),O.multiSelect=O.selection),this.multiSelect=O&&O.multiSelect;var U=q.oldSession;U&&(U.multiSelect.off("addRange",this.$onAddRange),U.multiSelect.off("removeRange",this.$onRemoveRange),U.multiSelect.off("multiSelect",this.$onMultiSelect),U.multiSelect.off("singleSelect",this.$onSingleSelect),U.multiSelect.lead.off("change",this.$checkMultiselectChange),U.multiSelect.anchor.off("change",this.$checkMultiselectChange)),O&&(O.multiSelect.on("addRange",this.$onAddRange),O.multiSelect.on("removeRange",this.$onRemoveRange),O.multiSelect.on("multiSelect",this.$onMultiSelect),O.multiSelect.on("singleSelect",this.$onSingleSelect),O.multiSelect.lead.on("change",this.$checkMultiselectChange),O.multiSelect.anchor.on("change",this.$checkMultiselectChange)),O&&this.inMultiSelectMode!=O.selection.inMultiSelectMode&&(O.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},ee.MultiSelect=Y,ve("./config").defineOptions(T.prototype,"editor",{enableMultiselect:{set:function(q){Y(this),q?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",D)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",D))},value:!0},enableBlockSelect:{set:function(q){this.$blockSelectEnabled=q},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(ve,ee,it){"use strict";var he=ve("../../range").Range,W=ee.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(R,D,S){var v=R.getLine(S);return this.foldingStartMarker.test(v)?"start":"markbeginend"==D&&this.foldingStopMarker&&this.foldingStopMarker.test(v)?"end":""},this.getFoldWidgetRange=function(R,D,S){return null},this.indentationBlock=function(R,D,S){var v=/\S/,g=R.getLine(D),_=g.search(v);if(-1!=_){for(var y=S||g.length,b=R.getLength(),x=D,T=D;++Dx){var K=R.getLine(T).length;return new he(x,y,T,K)}}},this.openingBracketBlock=function(R,D,S,v,g){var _={row:S,column:v+1},y=R.$findClosingBracket(D,_,g);if(y){var b=R.foldWidgets[y.row];return null==b&&(b=R.getFoldWidget(y.row)),"start"==b&&y.row>_.row&&(y.row--,y.column=R.getLine(y.row).length),he.fromPoints(_,y)}},this.closingBracketBlock=function(R,D,S,v,g){var _={row:S,column:v},y=R.$findOpeningBracket(D,_);if(y)return y.column++,_.column--,he.fromPoints(y,_)}}).call(W.prototype)}),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],function(ve,ee,it){"use strict";ee.isDark=!1,ee.cssClass="ace-tm",ee.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',ee.$id="ace/theme/textmate",ve("../lib/dom").importCssString(ee.cssText,ee.cssClass)}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(ve,ee,it){"use strict";var he=ve("./lib/dom");function W(R){this.session=R,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}(function(){this.getRowLength=function(R){var D;return D=this.lineWidgets&&this.lineWidgets[R]&&this.lineWidgets[R].rowCount||0,this.$useWrapMode&&this.$wrapData[R]?this.$wrapData[R].length+1+D:1+D},this.$getWidgetScreenLength=function(){var R=0;return this.lineWidgets.forEach(function(D){D&&D.rowCount&&!D.hidden&&(R+=D.rowCount)}),R},this.$onChangeEditor=function(R){this.attach(R.editor)},this.attach=function(R){R&&R.widgetManager&&R.widgetManager!=this&&R.widgetManager.detach(),this.editor!=R&&(this.detach(),this.editor=R,R&&(R.widgetManager=this,R.renderer.on("beforeRender",this.measureWidgets),R.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(R){var D=this.editor;if(D){this.editor=null,D.widgetManager=null,D.renderer.off("beforeRender",this.measureWidgets),D.renderer.off("afterRender",this.renderWidgets);var S=this.session.lineWidgets;S&&S.forEach(function(v){v&&v.el&&v.el.parentNode&&(v._inDocument=!1,v.el.parentNode.removeChild(v.el))})}},this.updateOnFold=function(R,D){var S=D.lineWidgets;if(S&&R.action){for(var v=R.data,g=v.start.row,_=v.end.row,y="add"==R.action,b=g+1;b<_;b++)S[b]&&(S[b].hidden=y);S[_]&&(y?S[g]?S[_].hidden=y:S[g]=S[_]:(S[g]==S[_]&&(S[g]=void 0),S[_].hidden=y))}},this.updateOnChange=function(R){var D=this.session.lineWidgets;if(D){var S=R.start.row,v=R.end.row-S;if(0!==v)if("remove"==R.action){var g=D.splice(S+1,v);!D[S]&&g[g.length-1]&&(D[S]=g.pop()),g.forEach(function(y){y&&this.removeLineWidget(y)},this),this.$updateRows()}else{var _=new Array(v);D[S]&&null!=D[S].column&&R.start.column>D[S].column&&S++,_.unshift(S,0),D.splice.apply(D,_),this.$updateRows()}}},this.$updateRows=function(){var R=this.session.lineWidgets;if(R){var D=!0;R.forEach(function(S,v){if(S)for(D=!1,S.row=v;S.$oldWidget;)S.$oldWidget.row=v,S=S.$oldWidget}),D&&(this.session.lineWidgets=null)}},this.$registerLineWidget=function(R){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var D=this.session.lineWidgets[R.row];return D&&(R.$oldWidget=D,D.el&&D.el.parentNode&&(D.el.parentNode.removeChild(D.el),D._inDocument=!1)),this.session.lineWidgets[R.row]=R,R},this.addLineWidget=function(R){if(this.$registerLineWidget(R),R.session=this.session,!this.editor)return R;var D=this.editor.renderer;R.html&&!R.el&&(R.el=he.createElement("div"),R.el.innerHTML=R.html),R.el&&(he.addCssClass(R.el,"ace_lineWidgetContainer"),R.el.style.position="absolute",R.el.style.zIndex=5,D.container.appendChild(R.el),R._inDocument=!0,R.coverGutter||(R.el.style.zIndex=3),null==R.pixelHeight&&(R.pixelHeight=R.el.offsetHeight)),null==R.rowCount&&(R.rowCount=R.pixelHeight/D.layerConfig.lineHeight);var S=this.session.getFoldAt(R.row,0);if(R.$fold=S,S){var v=this.session.lineWidgets;R.row!=S.end.row||v[S.start.row]?R.hidden=!0:v[S.start.row]=R}return this.session._emit("changeFold",{data:{start:{row:R.row}}}),this.$updateRows(),this.renderWidgets(null,D),this.onWidgetChanged(R),R},this.removeLineWidget=function(R){if(R._inDocument=!1,R.session=null,R.el&&R.el.parentNode&&R.el.parentNode.removeChild(R.el),R.editor&&R.editor.destroy)try{R.editor.destroy()}catch{}if(this.session.lineWidgets){var D=this.session.lineWidgets[R.row];if(D==R)this.session.lineWidgets[R.row]=R.$oldWidget,R.$oldWidget&&this.onWidgetChanged(R.$oldWidget);else for(;D;){if(D.$oldWidget==R){D.$oldWidget=R.$oldWidget;break}D=D.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:R.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(R){for(var D=this.session.lineWidgets,S=D&&D[R],v=[];S;)v.push(S),S=S.$oldWidget;return v},this.onWidgetChanged=function(R){this.session._changedWidgets.push(R),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(R,D){var S=this.session._changedWidgets,v=D.layerConfig;if(S&&S.length){for(var g=1/0,_=0;_0&&!v[g];)g--;this.firstRow=S.firstRow,this.lastRow=S.lastRow,D.$cursorLayer.config=S;for(var y=g;y<=_;y++){var b=v[y];if(b&&b.el){if(b.hidden){b.el.style.top=-100-(b.pixelHeight||0)+"px";continue}b._inDocument||(b._inDocument=!0,D.container.appendChild(b.el));var x=D.$cursorLayer.getPixelPosition({row:y,column:0},!0).top;b.coverLine||(x+=S.lineHeight*this.session.getRowLineCount(b.row)),b.el.style.top=x-S.offset+"px";var T=b.coverGutter?0:D.gutterWidth;b.fixedWidth||(T-=D.scrollLeft),b.el.style.left=T+"px",b.fullWidth&&b.screenWidth&&(b.el.style.minWidth=S.width+2*S.padding+"px"),b.el.style.right=b.fixedWidth?D.scrollBar.getWidth()+"px":""}}}}}).call(W.prototype),ee.LineWidgets=W}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],function(ve,ee,it){"use strict";var he=ve("../line_widgets").LineWidgets,W=ve("../lib/dom"),R=ve("../range").Range;ee.showErrorMarker=function(v,g){var _=v.session;_.widgetManager||(_.widgetManager=new he(_),_.widgetManager.attach(v));var y=v.getCursorPosition(),b=y.row,x=_.widgetManager.getWidgetsAtRow(b).filter(function($){return"errorMarker"==$.type})[0];x?x.destroy():b-=g;var j,T=function S(v,g,_){var y=v.getAnnotations().sort(R.comparePoints);if(y.length){var b=function D(v,g,_){for(var y=0,b=v.length-1;y<=b;){var x=y+b>>1,T=_(g,v[x]);if(T>0)y=x+1;else{if(!(T<0))return x;b=x-1}}return-(y+1)}(y,{row:g,column:-1},R.comparePoints);b<0&&(b=-b-1),b>=y.length?b=_>0?0:y.length-1:0===b&&_<0&&(b=y.length-1);var x=y[b];if(x&&_){if(x.row===g){do{x=y[b+=_]}while(x&&x.row===g);if(!x)return y.slice()}var T=[];g=x.row;do{T[_<0?"unshift":"push"](x),x=y[b+=_]}while(x&&x.row==g);return T.length&&T}}}(_,b,g);if(T){var Y=T[0];y.column=(Y.pos&&"number"!=typeof Y.column?Y.pos.sc:Y.column)||0,y.row=Y.row,j=v.renderer.$gutterLayer.$annotations[y.row]}else{if(x)return;j={text:["Looks good!"],className:"ace_ok"}}v.session.unfold(y.row),v.selection.moveToPosition(y);var K={row:y.row,fixedWidth:!0,coverGutter:!0,el:W.createElement("div"),type:"errorMarker"},q=K.el.appendChild(W.createElement("div")),O=K.el.appendChild(W.createElement("div"));O.className="error_widget_arrow "+j.className;var U=v.renderer.$cursorLayer.getPixelPosition(y).left;O.style.left=U+v.renderer.gutterWidth-5+"px",K.el.className="error_widget_wrapper",q.className="error_widget "+j.className,q.innerHTML=j.text.join("
    "),q.appendChild(W.createElement("div"));var P=function($,V,F){if(0===V&&("esc"===F||"return"===F))return K.destroy(),{command:"null"}};K.destroy=function(){v.$mouseHandler.isMousePressed||(v.keyBinding.removeKeyboardHandler(P),_.widgetManager.removeLineWidget(K),v.off("changeSelection",K.destroy),v.off("changeSession",K.destroy),v.off("mouseup",K.destroy),v.off("change",K.destroy))},v.keyBinding.addKeyboardHandler(P),v.on("changeSelection",K.destroy),v.on("changeSession",K.destroy),v.on("mouseup",K.destroy),v.on("change",K.destroy),v.session.widgetManager.addLineWidget(K),K.el.onmousedown=v.focus.bind(v),v.renderer.scrollCursorIntoView(null,.5,{bottom:K.el.offsetHeight})},W.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","")}),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],function(ve,ee,it){"use strict";ve("./lib/fixoldbrowsers");var he=ve("./lib/dom"),W=ve("./lib/event"),R=ve("./range").Range,D=ve("./editor").Editor,S=ve("./edit_session").EditSession,v=ve("./undomanager").UndoManager,g=ve("./virtual_renderer").VirtualRenderer;ve("./worker/worker_client"),ve("./keyboard/hash_handler"),ve("./placeholder"),ve("./multi_select"),ve("./mode/folding/fold_mode"),ve("./theme/textmate"),ve("./ext/error_marker"),ee.config=ve("./config"),ee.require=ve,ee.define=Ye.amdD,ee.edit=function(_,y){if("string"==typeof _){var b=_;if(!(_=document.getElementById(b)))throw new Error("ace.edit can't find div #"+b)}if(_&&_.env&&_.env.editor instanceof D)return _.env.editor;var x="";if(_&&/input|textarea/i.test(_.tagName)){var T=_;x=T.value,_=he.createElement("pre"),T.parentNode.replaceChild(_,T)}else _&&(x=_.textContent,_.innerHTML="");var j=ee.createEditSession(x),Y=new D(new g(_),j,y),K={document:j,editor:Y,onResize:Y.resize.bind(Y,null)};return T&&(K.textarea=T),W.addListener(window,"resize",K.onResize),Y.on("destroy",function(){W.removeListener(window,"resize",K.onResize),K.editor.container.env=null}),Y.container.env=Y.env=K,Y},ee.createEditSession=function(_,y){var b=new S(_,y);return b.setUndoManager(new v),b},ee.Range=R,ee.Editor=D,ee.EditSession=S,ee.UndoManager=v,ee.VirtualRenderer=g,ee.version=ee.config.version}),ace.require(["ace/ace"],function(ve){for(var ee in ve&&(ve.config.init(!0),ve.define=ace.define),window.ace||(window.ace=ve),ve)ve.hasOwnProperty(ee)&&(window.ace[ee]=ve[ee]);window.ace.default=window.ace,fn&&(fn.exports=window.ace)})},343:(fn,Gn)=>{"use strict";Gn.byteLength=function D(b){var x=R(b),j=x[1];return 3*(x[0]+j)/4-j},Gn.toByteArray=function v(b){var x,U,T=R(b),j=T[0],Y=T[1],K=new ee(function S(b,x,T){return 3*(x+T)/4-T}(0,j,Y)),q=0,O=Y>0?j-4:j;for(U=0;U>16&255,K[q++]=x>>8&255,K[q++]=255&x;return 2===Y&&(x=ve[b.charCodeAt(U)]<<2|ve[b.charCodeAt(U+1)]>>4,K[q++]=255&x),1===Y&&(x=ve[b.charCodeAt(U)]<<10|ve[b.charCodeAt(U+1)]<<4|ve[b.charCodeAt(U+2)]>>2,K[q++]=x>>8&255,K[q++]=255&x),K},Gn.fromByteArray=function y(b){for(var x,T=b.length,j=T%3,Y=[],K=16383,q=0,O=T-j;qO?O:q+K));return 1===j?Y.push(Ye[(x=b[T-1])>>2]+Ye[x<<4&63]+"=="):2===j&&Y.push(Ye[(x=(b[T-2]<<8)+b[T-1])>>10]+Ye[x>>4&63]+Ye[x<<2&63]+"="),Y.join("")};for(var Ye=[],ve=[],ee=typeof Uint8Array<"u"?Uint8Array:Array,it="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",he=0,W=it.length;he0)throw new Error("Invalid string. Length must be a multiple of 4");var T=b.indexOf("=");return-1===T&&(T=x),[T,T===x?0:4-T%4]}function g(b){return Ye[b>>18&63]+Ye[b>>12&63]+Ye[b>>6&63]+Ye[63&b]}function _(b,x,T){for(var Y=[],K=x;K{"use strict";var ee=Ye(343),it=Ye(461),he="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;Gn.lW=S,Gn.h2=50;var W=2147483647;function D(We){if(We>W)throw new RangeError('The value "'+We+'" is invalid for option "size"');var de=new Uint8Array(We);return Object.setPrototypeOf(de,S.prototype),de}function S(We,de,xe){if("number"==typeof We){if("string"==typeof de)throw new TypeError('The "string" argument must be of type string. Received type number');return y(We)}return v(We,de,xe)}function v(We,de,xe){if("string"==typeof We)return function b(We,de){if(("string"!=typeof de||""===de)&&(de="utf8"),!S.isEncoding(de))throw new TypeError("Unknown encoding: "+de);var xe=0|O(We,de),Le=D(xe),et=Le.write(We,de);return et!==xe&&(Le=Le.slice(0,et)),Le}(We,de);if(ArrayBuffer.isView(We))return function T(We){if(Gi(We,Uint8Array)){var de=new Uint8Array(We);return j(de.buffer,de.byteOffset,de.byteLength)}return x(We)}(We);if(null==We)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof We);if(Gi(We,ArrayBuffer)||We&&Gi(We.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Gi(We,SharedArrayBuffer)||We&&Gi(We.buffer,SharedArrayBuffer)))return j(We,de,xe);if("number"==typeof We)throw new TypeError('The "value" argument must not be of type number. Received type number');var Le=We.valueOf&&We.valueOf();if(null!=Le&&Le!==We)return S.from(Le,de,xe);var et=function Y(We){if(S.isBuffer(We)){var de=0|K(We.length),xe=D(de);return 0===xe.length||We.copy(xe,0,0,de),xe}return void 0!==We.length?"number"!=typeof We.length||zn(We.length)?D(0):x(We):"Buffer"===We.type&&Array.isArray(We.data)?x(We.data):void 0}(We);if(et)return et;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof We[Symbol.toPrimitive])return S.from(We[Symbol.toPrimitive]("string"),de,xe);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof We)}function g(We){if("number"!=typeof We)throw new TypeError('"size" argument must be of type number');if(We<0)throw new RangeError('The value "'+We+'" is invalid for option "size"')}function y(We){return g(We),D(We<0?0:0|K(We))}function x(We){for(var de=We.length<0?0:0|K(We.length),xe=D(de),Le=0;Le=W)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+W.toString(16)+" bytes");return 0|We}function O(We,de){if(S.isBuffer(We))return We.length;if(ArrayBuffer.isView(We)||Gi(We,ArrayBuffer))return We.byteLength;if("string"!=typeof We)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof We);var xe=We.length,Le=arguments.length>2&&!0===arguments[2];if(!Le&&0===xe)return 0;for(var et=!1;;)switch(de){case"ascii":case"latin1":case"binary":return xe;case"utf8":case"utf-8":return ci(We).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*xe;case"hex":return xe>>>1;case"base64":return lr(We).length;default:if(et)return Le?-1:ci(We).length;de=(""+de).toLowerCase(),et=!0}}function U(We,de,xe){var Le=!1;if((void 0===de||de<0)&&(de=0),de>this.length||((void 0===xe||xe>this.length)&&(xe=this.length),xe<=0)||(xe>>>=0)<=(de>>>=0))return"";for(We||(We="utf8");;)switch(We){case"hex":return mt(this,de,xe);case"utf8":case"utf-8":return Pe(this,de,xe);case"ascii":return ht(this,de,xe);case"latin1":case"binary":return It(this,de,xe);case"base64":return ze(this,de,xe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Zt(this,de,xe);default:if(Le)throw new TypeError("Unknown encoding: "+We);We=(We+"").toLowerCase(),Le=!0}}function P(We,de,xe){var Le=We[de];We[de]=We[xe],We[xe]=Le}function $(We,de,xe,Le,et){if(0===We.length)return-1;if("string"==typeof xe?(Le=xe,xe=0):xe>2147483647?xe=2147483647:xe<-2147483648&&(xe=-2147483648),zn(xe=+xe)&&(xe=et?0:We.length-1),xe<0&&(xe=We.length+xe),xe>=We.length){if(et)return-1;xe=We.length-1}else if(xe<0){if(!et)return-1;xe=0}if("string"==typeof de&&(de=S.from(de,Le)),S.isBuffer(de))return 0===de.length?-1:V(We,de,xe,Le,et);if("number"==typeof de)return de&=255,"function"==typeof Uint8Array.prototype.indexOf?et?Uint8Array.prototype.indexOf.call(We,de,xe):Uint8Array.prototype.lastIndexOf.call(We,de,xe):V(We,[de],xe,Le,et);throw new TypeError("val must be string, number or Buffer")}function V(We,de,xe,Le,et){var yt,Ot=1,Jt=We.length,si=de.length;if(void 0!==Le&&("ucs2"===(Le=String(Le).toLowerCase())||"ucs-2"===Le||"utf16le"===Le||"utf-16le"===Le)){if(We.length<2||de.length<2)return-1;Ot=2,Jt/=2,si/=2,xe/=2}function H(wn,Ne){return 1===Ot?wn[Ne]:wn.readUInt16BE(Ne*Ot)}if(et){var Lt=-1;for(yt=xe;ytJt&&(xe=Jt-si),yt=xe;yt>=0;yt--){for(var Kt=!0,Vt=0;Vtet&&(Le=et):Le=et;var Ot=de.length;Le>Ot/2&&(Le=Ot/2);for(var Jt=0;Jt>8,Ot.push(xe%256),Ot.push(Le);return Ot}(de,We.length-xe),We,xe,Le)}function ze(We,de,xe){return ee.fromByteArray(0===de&&xe===We.length?We:We.slice(de,xe))}function Pe(We,de,xe){xe=Math.min(We.length,xe);for(var Le=[],et=de;et239?4:Ot>223?3:Ot>191?2:1;if(et+si<=xe)switch(si){case 1:Ot<128&&(Jt=Ot);break;case 2:128==(192&(H=We[et+1]))&&(Kt=(31&Ot)<<6|63&H)>127&&(Jt=Kt);break;case 3:yt=We[et+2],128==(192&(H=We[et+1]))&&128==(192&yt)&&(Kt=(15&Ot)<<12|(63&H)<<6|63&yt)>2047&&(Kt<55296||Kt>57343)&&(Jt=Kt);break;case 4:yt=We[et+2],Lt=We[et+3],128==(192&(H=We[et+1]))&&128==(192&yt)&&128==(192&Lt)&&(Kt=(15&Ot)<<18|(63&H)<<12|(63&yt)<<6|63&Lt)>65535&&Kt<1114112&&(Jt=Kt)}null===Jt?(Jt=65533,si=1):Jt>65535&&(Le.push((Jt-=65536)>>>10&1023|55296),Jt=56320|1023&Jt),Le.push(Jt),et+=si}return function St(We){var de=We.length;if(de<=Tt)return String.fromCharCode.apply(String,We);for(var xe="",Le=0;Leet.length?S.from(Jt).copy(et,Ot):Uint8Array.prototype.set.call(et,Jt,Ot);else{if(!S.isBuffer(Jt))throw new TypeError('"list" argument must be an Array of Buffers');Jt.copy(et,Ot)}Ot+=Jt.length}return et},S.byteLength=O,S.prototype._isBuffer=!0,S.prototype.swap16=function(){var de=this.length;if(de%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var xe=0;xexe&&(de+=" ... "),""},he&&(S.prototype[he]=S.prototype.inspect),S.prototype.compare=function(de,xe,Le,et,Ot){if(Gi(de,Uint8Array)&&(de=S.from(de,de.offset,de.byteLength)),!S.isBuffer(de))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof de);if(void 0===xe&&(xe=0),void 0===Le&&(Le=de?de.length:0),void 0===et&&(et=0),void 0===Ot&&(Ot=this.length),xe<0||Le>de.length||et<0||Ot>this.length)throw new RangeError("out of range index");if(et>=Ot&&xe>=Le)return 0;if(et>=Ot)return-1;if(xe>=Le)return 1;if(this===de)return 0;for(var Jt=(Ot>>>=0)-(et>>>=0),si=(Le>>>=0)-(xe>>>=0),H=Math.min(Jt,si),yt=this.slice(et,Ot),Lt=de.slice(xe,Le),Kt=0;Kt>>=0,isFinite(Le)?(Le>>>=0,void 0===et&&(et="utf8")):(et=Le,Le=void 0)}var Ot=this.length-xe;if((void 0===Le||Le>Ot)&&(Le=Ot),de.length>0&&(Le<0||xe<0)||xe>this.length)throw new RangeError("Attempt to write outside buffer bounds");et||(et="utf8");for(var Jt=!1;;)switch(et){case"hex":return F(this,de,xe,Le);case"utf8":case"utf-8":return X(this,de,xe,Le);case"ascii":case"latin1":case"binary":return Ce(this,de,xe,Le);case"base64":return Me(this,de,xe,Le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Re(this,de,xe,Le);default:if(Jt)throw new TypeError("Unknown encoding: "+et);et=(""+et).toLowerCase(),Jt=!0}},S.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Tt=4096;function ht(We,de,xe){var Le="";xe=Math.min(We.length,xe);for(var et=de;etLe)&&(xe=Le);for(var et="",Ot=de;Otxe)throw new RangeError("Trying to access beyond buffer length")}function pn(We,de,xe,Le,et,Ot){if(!S.isBuffer(We))throw new TypeError('"buffer" argument must be a Buffer instance');if(de>et||deWe.length)throw new RangeError("Index out of range")}function Tn(We,de,xe,Le,et,Ot){if(xe+Le>We.length)throw new RangeError("Index out of range");if(xe<0)throw new RangeError("Index out of range")}function Vn(We,de,xe,Le,et){return de=+de,xe>>>=0,et||Tn(We,0,xe,4),it.write(We,de,xe,Le,23,4),xe+4}function wi(We,de,xe,Le,et){return de=+de,xe>>>=0,et||Tn(We,0,xe,8),it.write(We,de,xe,Le,52,8),xe+8}S.prototype.slice=function(de,xe){var Le=this.length;(de=~~de)<0?(de+=Le)<0&&(de=0):de>Le&&(de=Le),(xe=void 0===xe?Le:~~xe)<0?(xe+=Le)<0&&(xe=0):xe>Le&&(xe=Le),xe>>=0,xe>>>=0,Le||At(de,xe,this.length);for(var et=this[de],Ot=1,Jt=0;++Jt>>=0,xe>>>=0,Le||At(de,xe,this.length);for(var et=this[de+--xe],Ot=1;xe>0&&(Ot*=256);)et+=this[de+--xe]*Ot;return et},S.prototype.readUint8=S.prototype.readUInt8=function(de,xe){return de>>>=0,xe||At(de,1,this.length),this[de]},S.prototype.readUint16LE=S.prototype.readUInt16LE=function(de,xe){return de>>>=0,xe||At(de,2,this.length),this[de]|this[de+1]<<8},S.prototype.readUint16BE=S.prototype.readUInt16BE=function(de,xe){return de>>>=0,xe||At(de,2,this.length),this[de]<<8|this[de+1]},S.prototype.readUint32LE=S.prototype.readUInt32LE=function(de,xe){return de>>>=0,xe||At(de,4,this.length),(this[de]|this[de+1]<<8|this[de+2]<<16)+16777216*this[de+3]},S.prototype.readUint32BE=S.prototype.readUInt32BE=function(de,xe){return de>>>=0,xe||At(de,4,this.length),16777216*this[de]+(this[de+1]<<16|this[de+2]<<8|this[de+3])},S.prototype.readIntLE=function(de,xe,Le){de>>>=0,xe>>>=0,Le||At(de,xe,this.length);for(var et=this[de],Ot=1,Jt=0;++Jt=(Ot*=128)&&(et-=Math.pow(2,8*xe)),et},S.prototype.readIntBE=function(de,xe,Le){de>>>=0,xe>>>=0,Le||At(de,xe,this.length);for(var et=xe,Ot=1,Jt=this[de+--et];et>0&&(Ot*=256);)Jt+=this[de+--et]*Ot;return Jt>=(Ot*=128)&&(Jt-=Math.pow(2,8*xe)),Jt},S.prototype.readInt8=function(de,xe){return de>>>=0,xe||At(de,1,this.length),128&this[de]?-1*(255-this[de]+1):this[de]},S.prototype.readInt16LE=function(de,xe){de>>>=0,xe||At(de,2,this.length);var Le=this[de]|this[de+1]<<8;return 32768&Le?4294901760|Le:Le},S.prototype.readInt16BE=function(de,xe){de>>>=0,xe||At(de,2,this.length);var Le=this[de+1]|this[de]<<8;return 32768&Le?4294901760|Le:Le},S.prototype.readInt32LE=function(de,xe){return de>>>=0,xe||At(de,4,this.length),this[de]|this[de+1]<<8|this[de+2]<<16|this[de+3]<<24},S.prototype.readInt32BE=function(de,xe){return de>>>=0,xe||At(de,4,this.length),this[de]<<24|this[de+1]<<16|this[de+2]<<8|this[de+3]},S.prototype.readFloatLE=function(de,xe){return de>>>=0,xe||At(de,4,this.length),it.read(this,de,!0,23,4)},S.prototype.readFloatBE=function(de,xe){return de>>>=0,xe||At(de,4,this.length),it.read(this,de,!1,23,4)},S.prototype.readDoubleLE=function(de,xe){return de>>>=0,xe||At(de,8,this.length),it.read(this,de,!0,52,8)},S.prototype.readDoubleBE=function(de,xe){return de>>>=0,xe||At(de,8,this.length),it.read(this,de,!1,52,8)},S.prototype.writeUintLE=S.prototype.writeUIntLE=function(de,xe,Le,et){de=+de,xe>>>=0,Le>>>=0,et||pn(this,de,xe,Le,Math.pow(2,8*Le)-1,0);var Jt=1,si=0;for(this[xe]=255&de;++si>>=0,Le>>>=0,et||pn(this,de,xe,Le,Math.pow(2,8*Le)-1,0);var Jt=Le-1,si=1;for(this[xe+Jt]=255&de;--Jt>=0&&(si*=256);)this[xe+Jt]=de/si&255;return xe+Le},S.prototype.writeUint8=S.prototype.writeUInt8=function(de,xe,Le){return de=+de,xe>>>=0,Le||pn(this,de,xe,1,255,0),this[xe]=255&de,xe+1},S.prototype.writeUint16LE=S.prototype.writeUInt16LE=function(de,xe,Le){return de=+de,xe>>>=0,Le||pn(this,de,xe,2,65535,0),this[xe]=255&de,this[xe+1]=de>>>8,xe+2},S.prototype.writeUint16BE=S.prototype.writeUInt16BE=function(de,xe,Le){return de=+de,xe>>>=0,Le||pn(this,de,xe,2,65535,0),this[xe]=de>>>8,this[xe+1]=255&de,xe+2},S.prototype.writeUint32LE=S.prototype.writeUInt32LE=function(de,xe,Le){return de=+de,xe>>>=0,Le||pn(this,de,xe,4,4294967295,0),this[xe+3]=de>>>24,this[xe+2]=de>>>16,this[xe+1]=de>>>8,this[xe]=255&de,xe+4},S.prototype.writeUint32BE=S.prototype.writeUInt32BE=function(de,xe,Le){return de=+de,xe>>>=0,Le||pn(this,de,xe,4,4294967295,0),this[xe]=de>>>24,this[xe+1]=de>>>16,this[xe+2]=de>>>8,this[xe+3]=255&de,xe+4},S.prototype.writeIntLE=function(de,xe,Le,et){if(de=+de,xe>>>=0,!et){var Ot=Math.pow(2,8*Le-1);pn(this,de,xe,Le,Ot-1,-Ot)}var Jt=0,si=1,H=0;for(this[xe]=255&de;++Jt>0)-H&255;return xe+Le},S.prototype.writeIntBE=function(de,xe,Le,et){if(de=+de,xe>>>=0,!et){var Ot=Math.pow(2,8*Le-1);pn(this,de,xe,Le,Ot-1,-Ot)}var Jt=Le-1,si=1,H=0;for(this[xe+Jt]=255&de;--Jt>=0&&(si*=256);)de<0&&0===H&&0!==this[xe+Jt+1]&&(H=1),this[xe+Jt]=(de/si>>0)-H&255;return xe+Le},S.prototype.writeInt8=function(de,xe,Le){return de=+de,xe>>>=0,Le||pn(this,de,xe,1,127,-128),de<0&&(de=255+de+1),this[xe]=255&de,xe+1},S.prototype.writeInt16LE=function(de,xe,Le){return de=+de,xe>>>=0,Le||pn(this,de,xe,2,32767,-32768),this[xe]=255&de,this[xe+1]=de>>>8,xe+2},S.prototype.writeInt16BE=function(de,xe,Le){return de=+de,xe>>>=0,Le||pn(this,de,xe,2,32767,-32768),this[xe]=de>>>8,this[xe+1]=255&de,xe+2},S.prototype.writeInt32LE=function(de,xe,Le){return de=+de,xe>>>=0,Le||pn(this,de,xe,4,2147483647,-2147483648),this[xe]=255&de,this[xe+1]=de>>>8,this[xe+2]=de>>>16,this[xe+3]=de>>>24,xe+4},S.prototype.writeInt32BE=function(de,xe,Le){return de=+de,xe>>>=0,Le||pn(this,de,xe,4,2147483647,-2147483648),de<0&&(de=4294967295+de+1),this[xe]=de>>>24,this[xe+1]=de>>>16,this[xe+2]=de>>>8,this[xe+3]=255&de,xe+4},S.prototype.writeFloatLE=function(de,xe,Le){return Vn(this,de,xe,!0,Le)},S.prototype.writeFloatBE=function(de,xe,Le){return Vn(this,de,xe,!1,Le)},S.prototype.writeDoubleLE=function(de,xe,Le){return wi(this,de,xe,!0,Le)},S.prototype.writeDoubleBE=function(de,xe,Le){return wi(this,de,xe,!1,Le)},S.prototype.copy=function(de,xe,Le,et){if(!S.isBuffer(de))throw new TypeError("argument should be a Buffer");if(Le||(Le=0),!et&&0!==et&&(et=this.length),xe>=de.length&&(xe=de.length),xe||(xe=0),et>0&&et=this.length)throw new RangeError("Index out of range");if(et<0)throw new RangeError("sourceEnd out of bounds");et>this.length&&(et=this.length),de.length-xe>>=0,Le=void 0===Le?this.length:Le>>>0,de||(de=0),"number"==typeof de)for(Jt=xe;Jt55295&&xe<57344){if(!et){if(xe>56319){(de-=3)>-1&&Ot.push(239,191,189);continue}if(Jt+1===Le){(de-=3)>-1&&Ot.push(239,191,189);continue}et=xe;continue}if(xe<56320){(de-=3)>-1&&Ot.push(239,191,189),et=xe;continue}xe=65536+(et-55296<<10|xe-56320)}else et&&(de-=3)>-1&&Ot.push(239,191,189);if(et=null,xe<128){if((de-=1)<0)break;Ot.push(xe)}else if(xe<2048){if((de-=2)<0)break;Ot.push(xe>>6|192,63&xe|128)}else if(xe<65536){if((de-=3)<0)break;Ot.push(xe>>12|224,xe>>6&63|128,63&xe|128)}else{if(!(xe<1114112))throw new Error("Invalid code point");if((de-=4)<0)break;Ot.push(xe>>18|240,xe>>12&63|128,xe>>6&63|128,63&xe|128)}}return Ot}function lr(We){return ee.toByteArray(function Ri(We){if((We=(We=We.split("=")[0]).trim().replace(pr,"")).length<2)return"";for(;We.length%4!=0;)We+="=";return We}(We))}function Wi(We,de,xe,Le){for(var et=0;et=de.length||et>=We.length);++et)de[et+xe]=We[et];return et}function Gi(We,de){return We instanceof de||null!=We&&null!=We.constructor&&null!=We.constructor.name&&We.constructor.name===de.name}function zn(We){return We!=We}var vr=function(){for(var We="0123456789abcdef",de=new Array(256),xe=0;xe<16;++xe)for(var Le=16*xe,et=0;et<16;++et)de[Le+et]=We[xe]+We[et];return de}()},797:function(fn){fn.exports=function(Gn){var Ye={};function ve(ee){if(Ye[ee])return Ye[ee].exports;var it=Ye[ee]={exports:{},id:ee,loaded:!1};return Gn[ee].call(it.exports,it,it.exports,ve),it.loaded=!0,it.exports}return ve.m=Gn,ve.c=Ye,ve.p="",ve(0)}([function(Gn,Ye,ve){"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});var ee=ve(1),it=ve(3),he=ve(8),W=ve(15);function R(_,y,b){var x=null,T=function($,V){b&&b($,V),x&&x.visit($,V)},j="function"==typeof b?T:null,Y=!1;if(y){var K="boolean"==typeof y.attachComment&&y.attachComment;((Y="boolean"==typeof y.comment&&y.comment)||K)&&((x=new ee.CommentHandler).attach=K,y.comment=!0,j=T)}var O,q=!1;y&&"string"==typeof y.sourceType&&(q="module"===y.sourceType),O=y&&"boolean"==typeof y.jsx&&y.jsx?new it.JSXParser(_,y,j):new he.Parser(_,y,j);var P=q?O.parseModule():O.parseScript();return Y&&x&&(P.comments=x.comments),O.config.tokens&&(P.tokens=O.tokens),O.config.tolerant&&(P.errors=O.errorHandler.errors),P}Ye.parse=R,Ye.parseModule=function D(_,y,b){var x=y||{};return x.sourceType="module",R(_,x,b)},Ye.parseScript=function S(_,y,b){var x=y||{};return x.sourceType="script",R(_,x,b)},Ye.tokenize=function v(_,y,b){var T,x=new W.Tokenizer(_,y);T=[];try{for(;;){var j=x.getNextToken();if(!j)break;b&&(j=b(j)),T.push(j)}}catch(Y){x.errorHandler.tolerate(Y)}return x.errorHandler.tolerant&&(T.errors=x.errors()),T};var g=ve(2);Ye.Syntax=g.Syntax,Ye.version="4.0.1"},function(Gn,Ye,ve){"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});var ee=ve(2),it=function(){function he(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return he.prototype.insertInnerComments=function(W,R){if(W.type===ee.Syntax.BlockStatement&&0===W.body.length){for(var D=[],S=this.leading.length-1;S>=0;--S){var v=this.leading[S];R.end.offset>=v.start&&(D.unshift(v.comment),this.leading.splice(S,1),this.trailing.splice(S,1))}D.length&&(W.innerComments=D)}},he.prototype.findTrailingComments=function(W){var R=[];if(this.trailing.length>0){for(var D=this.trailing.length-1;D>=0;--D){var S=this.trailing[D];S.start>=W.end.offset&&R.unshift(S.comment)}return this.trailing.length=0,R}var v=this.stack[this.stack.length-1];if(v&&v.node.trailingComments){var g=v.node.trailingComments[0];g&&g.range[0]>=W.end.offset&&(R=v.node.trailingComments,delete v.node.trailingComments)}return R},he.prototype.findLeadingComments=function(W){for(var D,R=[];this.stack.length>0&&(S=this.stack[this.stack.length-1])&&S.start>=W.start.offset;)D=S.node,this.stack.pop();if(D){for(var g=(D.leadingComments?D.leadingComments.length:0)-1;g>=0;--g){var _=D.leadingComments[g];_.range[1]<=W.start.offset&&(R.unshift(_),D.leadingComments.splice(g,1))}return D.leadingComments&&0===D.leadingComments.length&&delete D.leadingComments,R}for(g=this.leading.length-1;g>=0;--g){var S;(S=this.leading[g]).start<=W.start.offset&&(R.unshift(S.comment),this.leading.splice(g,1))}return R},he.prototype.visitNode=function(W,R){if(!(W.type===ee.Syntax.Program&&W.body.length>0)){this.insertInnerComments(W,R);var D=this.findTrailingComments(R),S=this.findLeadingComments(R);S.length>0&&(W.leadingComments=S),D.length>0&&(W.trailingComments=D),this.stack.push({node:W,start:R.start.offset})}},he.prototype.visitComment=function(W,R){var D="L"===W.type[0]?"Line":"Block",S={type:D,value:W.value};if(W.range&&(S.range=W.range),W.loc&&(S.loc=W.loc),this.comments.push(S),this.attach){var v={comment:{type:D,value:W.value,range:[R.start.offset,R.end.offset]},start:R.start.offset};W.loc&&(v.comment.loc=W.loc),W.type=D,this.leading.push(v),this.trailing.push(v)}},he.prototype.visit=function(W,R){"LineComment"===W.type||"BlockComment"===W.type?this.visitComment(W,R):this.attach&&this.visitNode(W,R)},he}();Ye.CommentHandler=it},function(Gn,Ye){"use strict";Object.defineProperty(Ye,"__esModule",{value:!0}),Ye.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(Gn,Ye,ve){"use strict";var y,ee=this&&this.__extends||(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var T in x)x.hasOwnProperty(T)&&(b[T]=x[T])},function(b,x){function T(){this.constructor=b}y(b,x),b.prototype=null===x?Object.create(x):(T.prototype=x.prototype,new T)});Object.defineProperty(Ye,"__esModule",{value:!0});var it=ve(4),he=ve(5),W=ve(6),R=ve(7),D=ve(8),S=ve(13),v=ve(14);function g(y){var b;switch(y.type){case W.JSXSyntax.JSXIdentifier:b=y.name;break;case W.JSXSyntax.JSXNamespacedName:var T=y;b=g(T.namespace)+":"+g(T.name);break;case W.JSXSyntax.JSXMemberExpression:var j=y;b=g(j.object)+"."+g(j.property)}return b}S.TokenName[100]="JSXIdentifier",S.TokenName[101]="JSXText";var _=function(y){function b(x,T,j){return y.call(this,x,T,j)||this}return ee(b,y),b.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():y.prototype.parsePrimaryExpression.call(this)},b.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},b.prototype.finishJSX=function(){this.nextToken()},b.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},b.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},b.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},b.prototype.scanXHTMLEntity=function(x){for(var T="&",j=!0,Y=!1,K=!1,q=!1;!this.scanner.eof()&&j&&!Y;){var O=this.scanner.source[this.scanner.index];if(O===x)break;if(Y=";"===O,T+=O,++this.scanner.index,!Y)switch(T.length){case 2:K="#"===O;break;case 3:K&&(j=(q="x"===O)||it.Character.isDecimalDigit(O.charCodeAt(0)),K=K&&!q);break;default:j=(j=j&&!(K&&!it.Character.isDecimalDigit(O.charCodeAt(0))))&&!(q&&!it.Character.isHexDigit(O.charCodeAt(0)))}}if(j&&Y&&T.length>2){var U=T.substr(1,T.length-2);K&&U.length>1?T=String.fromCharCode(parseInt(U.substr(1),10)):q&&U.length>2?T=String.fromCharCode(parseInt("0"+U.substr(1),16)):!K&&!q&&v.XHTMLEntities[U]&&(T=v.XHTMLEntities[U])}return T},b.prototype.lexJSX=function(){var x=this.scanner.source.charCodeAt(this.scanner.index);if(60===x||62===x||47===x||58===x||61===x||123===x||125===x)return{type:7,value:T=this.scanner.source[this.scanner.index++],lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index};if(34===x||39===x){for(var j=this.scanner.index,Y=this.scanner.source[this.scanner.index++],K="";!this.scanner.eof()&&(q=this.scanner.source[this.scanner.index++])!==Y;)K+="&"===q?this.scanXHTMLEntity(Y):q;return{type:8,value:K,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:j,end:this.scanner.index}}if(46===x){var T,O=this.scanner.source.charCodeAt(this.scanner.index+1),U=this.scanner.source.charCodeAt(this.scanner.index+2);return j=this.scanner.index,this.scanner.index+=(T=46===O&&46===U?"...":".").length,{type:7,value:T,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:j,end:this.scanner.index}}if(96===x)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(it.Character.isIdentifierStart(x)&&92!==x){for(j=this.scanner.index,++this.scanner.index;!this.scanner.eof();){var q=this.scanner.source.charCodeAt(this.scanner.index);if(it.Character.isIdentifierPart(q)&&92!==q)++this.scanner.index;else{if(45!==q)break;++this.scanner.index}}return{type:100,value:this.scanner.source.slice(j,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:j,end:this.scanner.index}}return this.scanner.lex()},b.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var x=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(x)),x},b.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var x=this.scanner.index,T="";!this.scanner.eof();){var j=this.scanner.source[this.scanner.index];if("{"===j||"<"===j)break;++this.scanner.index,T+=j,it.Character.isLineTerminator(j.charCodeAt(0))&&(++this.scanner.lineNumber,"\r"===j&&"\n"===this.scanner.source[this.scanner.index]&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var Y={type:101,value:T,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:x,end:this.scanner.index};return T.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(Y)),Y},b.prototype.peekJSXToken=function(){var x=this.scanner.saveState();this.scanner.scanComments();var T=this.lexJSX();return this.scanner.restoreState(x),T},b.prototype.expectJSX=function(x){var T=this.nextJSXToken();(7!==T.type||T.value!==x)&&this.throwUnexpectedToken(T)},b.prototype.matchJSX=function(x){var T=this.peekJSXToken();return 7===T.type&&T.value===x},b.prototype.parseJSXIdentifier=function(){var x=this.createJSXNode(),T=this.nextJSXToken();return 100!==T.type&&this.throwUnexpectedToken(T),this.finalize(x,new he.JSXIdentifier(T.value))},b.prototype.parseJSXElementName=function(){var x=this.createJSXNode(),T=this.parseJSXIdentifier();if(this.matchJSX(":")){var j=T;this.expectJSX(":");var Y=this.parseJSXIdentifier();T=this.finalize(x,new he.JSXNamespacedName(j,Y))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var K=T;this.expectJSX(".");var q=this.parseJSXIdentifier();T=this.finalize(x,new he.JSXMemberExpression(K,q))}return T},b.prototype.parseJSXAttributeName=function(){var T,x=this.createJSXNode(),j=this.parseJSXIdentifier();if(this.matchJSX(":")){var Y=j;this.expectJSX(":");var K=this.parseJSXIdentifier();T=this.finalize(x,new he.JSXNamespacedName(Y,K))}else T=j;return T},b.prototype.parseJSXStringLiteralAttribute=function(){var x=this.createJSXNode(),T=this.nextJSXToken();8!==T.type&&this.throwUnexpectedToken(T);var j=this.getTokenRaw(T);return this.finalize(x,new R.Literal(T.value,j))},b.prototype.parseJSXExpressionAttribute=function(){var x=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var T=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(x,new he.JSXExpressionContainer(T))},b.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},b.prototype.parseJSXNameValueAttribute=function(){var x=this.createJSXNode(),T=this.parseJSXAttributeName(),j=null;return this.matchJSX("=")&&(this.expectJSX("="),j=this.parseJSXAttributeValue()),this.finalize(x,new he.JSXAttribute(T,j))},b.prototype.parseJSXSpreadAttribute=function(){var x=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var T=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(x,new he.JSXSpreadAttribute(T))},b.prototype.parseJSXAttributes=function(){for(var x=[];!this.matchJSX("/")&&!this.matchJSX(">");){var T=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();x.push(T)}return x},b.prototype.parseJSXOpeningElement=function(){var x=this.createJSXNode();this.expectJSX("<");var T=this.parseJSXElementName(),j=this.parseJSXAttributes(),Y=this.matchJSX("/");return Y&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(x,new he.JSXOpeningElement(T,Y,j))},b.prototype.parseJSXBoundaryElement=function(){var x=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var T=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(x,new he.JSXClosingElement(T))}var j=this.parseJSXElementName(),Y=this.parseJSXAttributes(),K=this.matchJSX("/");return K&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(x,new he.JSXOpeningElement(j,K,Y))},b.prototype.parseJSXEmptyExpression=function(){var x=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(x,new he.JSXEmptyExpression)},b.prototype.parseJSXExpressionContainer=function(){var T,x=this.createJSXNode();return this.expectJSX("{"),this.matchJSX("}")?(T=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),T=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(x,new he.JSXExpressionContainer(T))},b.prototype.parseJSXChildren=function(){for(var x=[];!this.scanner.eof();){var T=this.createJSXChildNode(),j=this.nextJSXText();if(j.start0))break;q=this.finalize(x.node,new he.JSXElement(x.opening,x.children,x.closing)),(x=T[T.length-1]).children.push(q),T.pop()}}return x},b.prototype.parseJSXElement=function(){var x=this.createJSXNode(),T=this.parseJSXOpeningElement(),j=[],Y=null;if(!T.selfClosing){var K=this.parseComplexJSXElement({node:x,opening:T,closing:Y,children:j});j=K.children,Y=K.closing}return this.finalize(x,new he.JSXElement(T,j,Y))},b.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var x=this.parseJSXElement();return this.finishJSX(),x},b.prototype.isStartOfExpression=function(){return y.prototype.isStartOfExpression.call(this)||this.match("<")},b}(D.Parser);Ye.JSXParser=_},function(Gn,Ye){"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});var ve={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};Ye.Character={fromCodePoint:function(ee){return ee<65536?String.fromCharCode(ee):String.fromCharCode(55296+(ee-65536>>10))+String.fromCharCode(56320+(ee-65536&1023))},isWhiteSpace:function(ee){return 32===ee||9===ee||11===ee||12===ee||160===ee||ee>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(ee)>=0},isLineTerminator:function(ee){return 10===ee||13===ee||8232===ee||8233===ee},isIdentifierStart:function(ee){return 36===ee||95===ee||ee>=65&&ee<=90||ee>=97&&ee<=122||92===ee||ee>=128&&ve.NonAsciiIdentifierStart.test(Ye.Character.fromCodePoint(ee))},isIdentifierPart:function(ee){return 36===ee||95===ee||ee>=65&&ee<=90||ee>=97&&ee<=122||ee>=48&&ee<=57||92===ee||ee>=128&&ve.NonAsciiIdentifierPart.test(Ye.Character.fromCodePoint(ee))},isDecimalDigit:function(ee){return ee>=48&&ee<=57},isHexDigit:function(ee){return ee>=48&&ee<=57||ee>=65&&ee<=70||ee>=97&&ee<=102},isOctalDigit:function(ee){return ee>=48&&ee<=55}}},function(Gn,Ye,ve){"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});var ee=ve(6);Ye.JSXClosingElement=function x(T){this.type=ee.JSXSyntax.JSXClosingElement,this.name=T},Ye.JSXElement=function x(T,j,Y){this.type=ee.JSXSyntax.JSXElement,this.openingElement=T,this.children=j,this.closingElement=Y},Ye.JSXEmptyExpression=function x(){this.type=ee.JSXSyntax.JSXEmptyExpression},Ye.JSXExpressionContainer=function x(T){this.type=ee.JSXSyntax.JSXExpressionContainer,this.expression=T},Ye.JSXIdentifier=function x(T){this.type=ee.JSXSyntax.JSXIdentifier,this.name=T},Ye.JSXMemberExpression=function x(T,j){this.type=ee.JSXSyntax.JSXMemberExpression,this.object=T,this.property=j},Ye.JSXAttribute=function x(T,j){this.type=ee.JSXSyntax.JSXAttribute,this.name=T,this.value=j},Ye.JSXNamespacedName=function x(T,j){this.type=ee.JSXSyntax.JSXNamespacedName,this.namespace=T,this.name=j},Ye.JSXOpeningElement=function x(T,j,Y){this.type=ee.JSXSyntax.JSXOpeningElement,this.name=T,this.selfClosing=j,this.attributes=Y},Ye.JSXSpreadAttribute=function x(T){this.type=ee.JSXSyntax.JSXSpreadAttribute,this.argument=T},Ye.JSXText=function x(T,j){this.type=ee.JSXSyntax.JSXText,this.value=T,this.raw=j}},function(Gn,Ye){"use strict";Object.defineProperty(Ye,"__esModule",{value:!0}),Ye.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(Gn,Ye,ve){"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});var ee=ve(2);Ye.ArrayExpression=function dt(pt){this.type=ee.Syntax.ArrayExpression,this.elements=pt},Ye.ArrayPattern=function dt(pt){this.type=ee.Syntax.ArrayPattern,this.elements=pt},Ye.ArrowFunctionExpression=function dt(pt,Ht,Bn){this.type=ee.Syntax.ArrowFunctionExpression,this.id=null,this.params=pt,this.body=Ht,this.generator=!1,this.expression=Bn,this.async=!1},Ye.AssignmentExpression=function dt(pt,Ht,Bn){this.type=ee.Syntax.AssignmentExpression,this.operator=pt,this.left=Ht,this.right=Bn},Ye.AssignmentPattern=function dt(pt,Ht){this.type=ee.Syntax.AssignmentPattern,this.left=pt,this.right=Ht},Ye.AsyncArrowFunctionExpression=function dt(pt,Ht,Bn){this.type=ee.Syntax.ArrowFunctionExpression,this.id=null,this.params=pt,this.body=Ht,this.generator=!1,this.expression=Bn,this.async=!0},Ye.AsyncFunctionDeclaration=function dt(pt,Ht,Bn){this.type=ee.Syntax.FunctionDeclaration,this.id=pt,this.params=Ht,this.body=Bn,this.generator=!1,this.expression=!1,this.async=!0},Ye.AsyncFunctionExpression=function dt(pt,Ht,Bn){this.type=ee.Syntax.FunctionExpression,this.id=pt,this.params=Ht,this.body=Bn,this.generator=!1,this.expression=!1,this.async=!0},Ye.AwaitExpression=function dt(pt){this.type=ee.Syntax.AwaitExpression,this.argument=pt},Ye.BinaryExpression=function dt(pt,Ht,Bn){this.type="||"===pt||"&&"===pt?ee.Syntax.LogicalExpression:ee.Syntax.BinaryExpression,this.operator=pt,this.left=Ht,this.right=Bn},Ye.BlockStatement=function dt(pt){this.type=ee.Syntax.BlockStatement,this.body=pt},Ye.BreakStatement=function dt(pt){this.type=ee.Syntax.BreakStatement,this.label=pt},Ye.CallExpression=function dt(pt,Ht){this.type=ee.Syntax.CallExpression,this.callee=pt,this.arguments=Ht},Ye.CatchClause=function dt(pt,Ht){this.type=ee.Syntax.CatchClause,this.param=pt,this.body=Ht},Ye.ClassBody=function dt(pt){this.type=ee.Syntax.ClassBody,this.body=pt},Ye.ClassDeclaration=function dt(pt,Ht,Bn){this.type=ee.Syntax.ClassDeclaration,this.id=pt,this.superClass=Ht,this.body=Bn},Ye.ClassExpression=function dt(pt,Ht,Bn){this.type=ee.Syntax.ClassExpression,this.id=pt,this.superClass=Ht,this.body=Bn},Ye.ComputedMemberExpression=function dt(pt,Ht){this.type=ee.Syntax.MemberExpression,this.computed=!0,this.object=pt,this.property=Ht},Ye.ConditionalExpression=function dt(pt,Ht,Bn){this.type=ee.Syntax.ConditionalExpression,this.test=pt,this.consequent=Ht,this.alternate=Bn},Ye.ContinueStatement=function dt(pt){this.type=ee.Syntax.ContinueStatement,this.label=pt},Ye.DebuggerStatement=function dt(){this.type=ee.Syntax.DebuggerStatement},Ye.Directive=function dt(pt,Ht){this.type=ee.Syntax.ExpressionStatement,this.expression=pt,this.directive=Ht},Ye.DoWhileStatement=function dt(pt,Ht){this.type=ee.Syntax.DoWhileStatement,this.body=pt,this.test=Ht},Ye.EmptyStatement=function dt(){this.type=ee.Syntax.EmptyStatement},Ye.ExportAllDeclaration=function dt(pt){this.type=ee.Syntax.ExportAllDeclaration,this.source=pt},Ye.ExportDefaultDeclaration=function dt(pt){this.type=ee.Syntax.ExportDefaultDeclaration,this.declaration=pt},Ye.ExportNamedDeclaration=function dt(pt,Ht,Bn){this.type=ee.Syntax.ExportNamedDeclaration,this.declaration=pt,this.specifiers=Ht,this.source=Bn},Ye.ExportSpecifier=function dt(pt,Ht){this.type=ee.Syntax.ExportSpecifier,this.exported=Ht,this.local=pt},Ye.ExpressionStatement=function dt(pt){this.type=ee.Syntax.ExpressionStatement,this.expression=pt},Ye.ForInStatement=function dt(pt,Ht,Bn){this.type=ee.Syntax.ForInStatement,this.left=pt,this.right=Ht,this.body=Bn,this.each=!1},Ye.ForOfStatement=function dt(pt,Ht,Bn){this.type=ee.Syntax.ForOfStatement,this.left=pt,this.right=Ht,this.body=Bn},Ye.ForStatement=function dt(pt,Ht,Bn,so){this.type=ee.Syntax.ForStatement,this.init=pt,this.test=Ht,this.update=Bn,this.body=so},Ye.FunctionDeclaration=function dt(pt,Ht,Bn,so){this.type=ee.Syntax.FunctionDeclaration,this.id=pt,this.params=Ht,this.body=Bn,this.generator=so,this.expression=!1,this.async=!1},Ye.FunctionExpression=function dt(pt,Ht,Bn,so){this.type=ee.Syntax.FunctionExpression,this.id=pt,this.params=Ht,this.body=Bn,this.generator=so,this.expression=!1,this.async=!1},Ye.Identifier=function dt(pt){this.type=ee.Syntax.Identifier,this.name=pt},Ye.IfStatement=function dt(pt,Ht,Bn){this.type=ee.Syntax.IfStatement,this.test=pt,this.consequent=Ht,this.alternate=Bn},Ye.ImportDeclaration=function dt(pt,Ht){this.type=ee.Syntax.ImportDeclaration,this.specifiers=pt,this.source=Ht},Ye.ImportDefaultSpecifier=function dt(pt){this.type=ee.Syntax.ImportDefaultSpecifier,this.local=pt},Ye.ImportNamespaceSpecifier=function dt(pt){this.type=ee.Syntax.ImportNamespaceSpecifier,this.local=pt},Ye.ImportSpecifier=function dt(pt,Ht){this.type=ee.Syntax.ImportSpecifier,this.local=pt,this.imported=Ht},Ye.LabeledStatement=function dt(pt,Ht){this.type=ee.Syntax.LabeledStatement,this.label=pt,this.body=Ht},Ye.Literal=function dt(pt,Ht){this.type=ee.Syntax.Literal,this.value=pt,this.raw=Ht},Ye.MetaProperty=function dt(pt,Ht){this.type=ee.Syntax.MetaProperty,this.meta=pt,this.property=Ht},Ye.MethodDefinition=function dt(pt,Ht,Bn,so,q0){this.type=ee.Syntax.MethodDefinition,this.key=pt,this.computed=Ht,this.value=Bn,this.kind=so,this.static=q0},Ye.Module=function dt(pt){this.type=ee.Syntax.Program,this.body=pt,this.sourceType="module"},Ye.NewExpression=function dt(pt,Ht){this.type=ee.Syntax.NewExpression,this.callee=pt,this.arguments=Ht},Ye.ObjectExpression=function dt(pt){this.type=ee.Syntax.ObjectExpression,this.properties=pt},Ye.ObjectPattern=function dt(pt){this.type=ee.Syntax.ObjectPattern,this.properties=pt},Ye.Property=function dt(pt,Ht,Bn,so,q0,yr){this.type=ee.Syntax.Property,this.key=Ht,this.computed=Bn,this.value=so,this.kind=pt,this.method=q0,this.shorthand=yr},Ye.RegexLiteral=function dt(pt,Ht,Bn,so){this.type=ee.Syntax.Literal,this.value=pt,this.raw=Ht,this.regex={pattern:Bn,flags:so}},Ye.RestElement=function dt(pt){this.type=ee.Syntax.RestElement,this.argument=pt},Ye.ReturnStatement=function dt(pt){this.type=ee.Syntax.ReturnStatement,this.argument=pt},Ye.Script=function dt(pt){this.type=ee.Syntax.Program,this.body=pt,this.sourceType="script"},Ye.SequenceExpression=function dt(pt){this.type=ee.Syntax.SequenceExpression,this.expressions=pt},Ye.SpreadElement=function dt(pt){this.type=ee.Syntax.SpreadElement,this.argument=pt},Ye.StaticMemberExpression=function dt(pt,Ht){this.type=ee.Syntax.MemberExpression,this.computed=!1,this.object=pt,this.property=Ht},Ye.Super=function dt(){this.type=ee.Syntax.Super},Ye.SwitchCase=function dt(pt,Ht){this.type=ee.Syntax.SwitchCase,this.test=pt,this.consequent=Ht},Ye.SwitchStatement=function dt(pt,Ht){this.type=ee.Syntax.SwitchStatement,this.discriminant=pt,this.cases=Ht},Ye.TaggedTemplateExpression=function dt(pt,Ht){this.type=ee.Syntax.TaggedTemplateExpression,this.tag=pt,this.quasi=Ht},Ye.TemplateElement=function dt(pt,Ht){this.type=ee.Syntax.TemplateElement,this.value=pt,this.tail=Ht},Ye.TemplateLiteral=function dt(pt,Ht){this.type=ee.Syntax.TemplateLiteral,this.quasis=pt,this.expressions=Ht},Ye.ThisExpression=function dt(){this.type=ee.Syntax.ThisExpression},Ye.ThrowStatement=function dt(pt){this.type=ee.Syntax.ThrowStatement,this.argument=pt},Ye.TryStatement=function dt(pt,Ht,Bn){this.type=ee.Syntax.TryStatement,this.block=pt,this.handler=Ht,this.finalizer=Bn},Ye.UnaryExpression=function dt(pt,Ht){this.type=ee.Syntax.UnaryExpression,this.operator=pt,this.argument=Ht,this.prefix=!0},Ye.UpdateExpression=function dt(pt,Ht,Bn){this.type=ee.Syntax.UpdateExpression,this.operator=pt,this.argument=Ht,this.prefix=Bn},Ye.VariableDeclaration=function dt(pt,Ht){this.type=ee.Syntax.VariableDeclaration,this.declarations=pt,this.kind=Ht},Ye.VariableDeclarator=function dt(pt,Ht){this.type=ee.Syntax.VariableDeclarator,this.id=pt,this.init=Ht},Ye.WhileStatement=function dt(pt,Ht){this.type=ee.Syntax.WhileStatement,this.test=pt,this.body=Ht},Ye.WithStatement=function dt(pt,Ht){this.type=ee.Syntax.WithStatement,this.object=pt,this.body=Ht},Ye.YieldExpression=function dt(pt,Ht){this.type=ee.Syntax.YieldExpression,this.argument=pt,this.delegate=Ht}},function(Gn,Ye,ve){"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});var ee=ve(9),it=ve(10),he=ve(11),W=ve(7),R=ve(12),D=ve(2),S=ve(13),v="ArrowParameterPlaceHolder",g=function(){function _(y,b,x){void 0===b&&(b={}),this.config={range:"boolean"==typeof b.range&&b.range,loc:"boolean"==typeof b.loc&&b.loc,source:null,tokens:"boolean"==typeof b.tokens&&b.tokens,comment:"boolean"==typeof b.comment&&b.comment,tolerant:"boolean"==typeof b.tolerant&&b.tolerant},this.config.loc&&b.source&&null!==b.source&&(this.config.source=String(b.source)),this.delegate=x,this.errorHandler=new it.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new R.Scanner(y,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return _.prototype.throwError=function(y){for(var b=[],x=1;x0&&this.delegate)for(var b=0;b>="===y||">>>="===y||"&="===y||"^="===y||"|="===y},_.prototype.isolateCoverGrammar=function(y){var b=this.context.isBindingElement,x=this.context.isAssignmentTarget,T=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var j=y.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=b,this.context.isAssignmentTarget=x,this.context.firstCoverInitializedNameError=T,j},_.prototype.inheritCoverGrammar=function(y){var b=this.context.isBindingElement,x=this.context.isAssignmentTarget,T=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var j=y.call(this);return this.context.isBindingElement=this.context.isBindingElement&&b,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&x,this.context.firstCoverInitializedNameError=T||this.context.firstCoverInitializedNameError,j},_.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(2!==this.lookahead.type&&!this.match("}")&&this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},_.prototype.parsePrimaryExpression=function(){var b,x,T,y=this.createNode();switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&"await"===this.lookahead.value&&this.tolerateUnexpectedToken(this.lookahead),b=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(y,new W.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,he.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,x=this.nextToken(),T=this.getTokenRaw(x),b=this.finalize(y,new W.Literal(x.value,T));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,x=this.nextToken(),T=this.getTokenRaw(x),b=this.finalize(y,new W.Literal("true"===x.value,T));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,x=this.nextToken(),T=this.getTokenRaw(x),b=this.finalize(y,new W.Literal(null,T));break;case 10:b=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,b=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":b=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":b=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,x=this.nextRegexToken(),T=this.getTokenRaw(x),b=this.finalize(y,new W.RegexLiteral(x.regex,T,x.pattern,x.flags));break;default:b=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?b=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?b=this.finalize(y,new W.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?b=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),b=this.finalize(y,new W.ThisExpression)):b=this.matchKeyword("class")?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:b=this.throwUnexpectedToken(this.nextToken())}return b},_.prototype.parseSpreadElement=function(){var y=this.createNode();this.expect("...");var b=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(y,new W.SpreadElement(b))},_.prototype.parseArrayInitializer=function(){var y=this.createNode(),b=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),b.push(null);else if(this.match("...")){var x=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),b.push(x)}else b.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(y,new W.ArrayExpression(b))},_.prototype.parsePropertyMethod=function(y){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var b=this.context.strict,x=this.context.allowStrictDirective;this.context.allowStrictDirective=y.simple;var T=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&y.firstRestricted&&this.tolerateUnexpectedToken(y.firstRestricted,y.message),this.context.strict&&y.stricted&&this.tolerateUnexpectedToken(y.stricted,y.message),this.context.strict=b,this.context.allowStrictDirective=x,T},_.prototype.parsePropertyMethodFunction=function(){var b=this.createNode(),x=this.context.allowYield;this.context.allowYield=!0;var T=this.parseFormalParameters(),j=this.parsePropertyMethod(T);return this.context.allowYield=x,this.finalize(b,new W.FunctionExpression(null,T.params,j,!1))},_.prototype.parsePropertyMethodAsyncFunction=function(){var y=this.createNode(),b=this.context.allowYield,x=this.context.await;this.context.allowYield=!1,this.context.await=!0;var T=this.parseFormalParameters(),j=this.parsePropertyMethod(T);return this.context.allowYield=b,this.context.await=x,this.finalize(y,new W.AsyncFunctionExpression(null,T.params,j))},_.prototype.parseObjectPropertyKey=function(){var x,y=this.createNode(),b=this.nextToken();switch(b.type){case 8:case 6:this.context.strict&&b.octal&&this.tolerateUnexpectedToken(b,he.Messages.StrictOctalLiteral);var T=this.getTokenRaw(b);x=this.finalize(y,new W.Literal(b.value,T));break;case 3:case 1:case 5:case 4:x=this.finalize(y,new W.Identifier(b.value));break;case 7:"["===b.value?(x=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):x=this.throwUnexpectedToken(b);break;default:x=this.throwUnexpectedToken(b)}return x},_.prototype.isPropertyKey=function(y,b){return y.type===D.Syntax.Identifier&&y.name===b||y.type===D.Syntax.Literal&&y.value===b},_.prototype.parseObjectProperty=function(y){var T,b=this.createNode(),x=this.lookahead,j=null,Y=null,K=!1,q=!1,O=!1,U=!1;if(3===x.type){var P=x.value;this.nextToken(),K=this.match("["),j=(U=!(this.hasLineTerminator||"async"!==P||this.match(":")||this.match("(")||this.match("*")||this.match(",")))?this.parseObjectPropertyKey():this.finalize(b,new W.Identifier(P))}else this.match("*")?this.nextToken():(K=this.match("["),j=this.parseObjectPropertyKey());var $=this.qualifiedPropertyName(this.lookahead);if(3===x.type&&!U&&"get"===x.value&&$)T="get",K=this.match("["),j=this.parseObjectPropertyKey(),this.context.allowYield=!1,Y=this.parseGetterMethod();else if(3===x.type&&!U&&"set"===x.value&&$)T="set",K=this.match("["),j=this.parseObjectPropertyKey(),Y=this.parseSetterMethod();else if(7===x.type&&"*"===x.value&&$)T="init",K=this.match("["),j=this.parseObjectPropertyKey(),Y=this.parseGeneratorMethod(),q=!0;else if(j||this.throwUnexpectedToken(this.lookahead),T="init",this.match(":")&&!U)!K&&this.isPropertyKey(j,"__proto__")&&(y.value&&this.tolerateError(he.Messages.DuplicateProtoProperty),y.value=!0),this.nextToken(),Y=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))Y=U?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),q=!0;else if(3===x.type)if(P=this.finalize(b,new W.Identifier(x.value)),this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),O=!0;var V=this.isolateCoverGrammar(this.parseAssignmentExpression);Y=this.finalize(b,new W.AssignmentPattern(P,V))}else O=!0,Y=P;else this.throwUnexpectedToken(this.nextToken());return this.finalize(b,new W.Property(T,j,K,Y,q,O))},_.prototype.parseObjectInitializer=function(){var y=this.createNode();this.expect("{");for(var b=[],x={value:!1};!this.match("}");)b.push(this.parseObjectProperty(x)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(y,new W.ObjectExpression(b))},_.prototype.parseTemplateHead=function(){ee.assert(this.lookahead.head,"Template literal must start with a template head");var y=this.createNode(),b=this.nextToken();return this.finalize(y,new W.TemplateElement({raw:b.value,cooked:b.cooked},b.tail))},_.prototype.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();var y=this.createNode(),b=this.nextToken();return this.finalize(y,new W.TemplateElement({raw:b.value,cooked:b.cooked},b.tail))},_.prototype.parseTemplateLiteral=function(){var y=this.createNode(),b=[],x=[],T=this.parseTemplateHead();for(x.push(T);!T.tail;)b.push(this.parseExpression()),T=this.parseTemplateElement(),x.push(T);return this.finalize(y,new W.TemplateLiteral(x,b))},_.prototype.reinterpretExpressionAsPattern=function(y){switch(y.type){case D.Syntax.Identifier:case D.Syntax.MemberExpression:case D.Syntax.RestElement:case D.Syntax.AssignmentPattern:break;case D.Syntax.SpreadElement:y.type=D.Syntax.RestElement,this.reinterpretExpressionAsPattern(y.argument);break;case D.Syntax.ArrayExpression:y.type=D.Syntax.ArrayPattern;for(var b=0;b")||this.expect("=>"),y={type:v,params:[],async:!1};else{var b=this.lookahead,x=[];if(this.match("..."))y=this.parseRestElement(x),this.expect(")"),this.match("=>")||this.expect("=>"),y={type:v,params:[y],async:!1};else{var T=!1;if(this.context.isBindingElement=!0,y=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var j=[];for(this.context.isAssignmentTarget=!1,j.push(y);2!==this.lookahead.type&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var Y=0;Y")||this.expect("=>"),this.context.isBindingElement=!1,Y=0;Y")&&(y.type===D.Syntax.Identifier&&"yield"===y.name&&(T=!0,y={type:v,params:[y],async:!1}),!T)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),y.type===D.Syntax.SequenceExpression)for(Y=0;Y")){for(var q=0;q0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var j=[y,this.lookahead],Y=b,K=this.isolateCoverGrammar(this.parseExponentiationExpression),q=[Y,x.value,K],O=[T];!((T=this.binaryPrecedence(this.lookahead))<=0);){for(;q.length>2&&T<=O[O.length-1];){K=q.pop();var U=q.pop();O.pop(),Y=q.pop(),j.pop();var P=this.startNode(j[j.length-1]);q.push(this.finalize(P,new W.BinaryExpression(U,Y,K)))}q.push(this.nextToken().value),O.push(T),j.push(this.lookahead),q.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var $=q.length-1;b=q[$];for(var V=j.pop();$>1;){var F=j.pop();P=this.startNode(F,V&&V.lineStart),b=this.finalize(P,new W.BinaryExpression(U=q[$-1],q[$-2],b)),$-=2,V=F}}return b},_.prototype.parseConditionalExpression=function(){var y=this.lookahead,b=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var x=this.context.allowIn;this.context.allowIn=!0;var T=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=x,this.expect(":");var j=this.isolateCoverGrammar(this.parseAssignmentExpression);b=this.finalize(this.startNode(y),new W.ConditionalExpression(b,T,j)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return b},_.prototype.checkPatternParam=function(y,b){switch(b.type){case D.Syntax.Identifier:this.validateParam(y,b,b.name);break;case D.Syntax.RestElement:this.checkPatternParam(y,b.argument);break;case D.Syntax.AssignmentPattern:this.checkPatternParam(y,b.left);break;case D.Syntax.ArrayPattern:for(var x=0;x")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var j=y.async,Y=this.reinterpretAsCoverFormalsList(y);if(Y){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var K=this.context.strict,q=this.context.allowStrictDirective;this.context.allowStrictDirective=Y.simple;var O=this.context.allowYield,U=this.context.await;this.context.allowYield=!0,this.context.await=j;var P=this.startNode(b);this.expect("=>");var $=void 0;if(this.match("{")){var V=this.context.allowIn;this.context.allowIn=!0,$=this.parseFunctionSourceElements(),this.context.allowIn=V}else $=this.isolateCoverGrammar(this.parseAssignmentExpression);var F=$.type!==D.Syntax.BlockStatement;this.context.strict&&Y.firstRestricted&&this.throwUnexpectedToken(Y.firstRestricted,Y.message),this.context.strict&&Y.stricted&&this.tolerateUnexpectedToken(Y.stricted,Y.message),y=this.finalize(P,j?new W.AsyncArrowFunctionExpression(Y.params,$,F):new W.ArrowFunctionExpression(Y.params,$,F)),this.context.strict=K,this.context.allowStrictDirective=q,this.context.allowYield=O,this.context.await=U}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(he.Messages.InvalidLHSInAssignment),this.context.strict&&y.type===D.Syntax.Identifier){var X=y;this.scanner.isRestrictedWord(X.name)&&this.tolerateUnexpectedToken(x,he.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(X.name)&&this.tolerateUnexpectedToken(x,he.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(y):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1);var Ce=(x=this.nextToken()).value,Me=this.isolateCoverGrammar(this.parseAssignmentExpression);y=this.finalize(this.startNode(b),new W.AssignmentExpression(Ce,y,Me)),this.context.firstCoverInitializedNameError=null}}return y},_.prototype.parseExpression=function(){var y=this.lookahead,b=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var x=[];for(x.push(b);2!==this.lookahead.type&&this.match(",");)this.nextToken(),x.push(this.isolateCoverGrammar(this.parseAssignmentExpression));b=this.finalize(this.startNode(y),new W.SequenceExpression(x))}return b},_.prototype.parseStatementListItem=function(){var y;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,4===this.lookahead.type)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,he.Messages.IllegalExportDeclaration),y=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,he.Messages.IllegalImportDeclaration),y=this.parseImportDeclaration();break;case"const":y=this.parseLexicalDeclaration({inFor:!1});break;case"function":y=this.parseFunctionDeclaration();break;case"class":y=this.parseClassDeclaration();break;case"let":y=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:y=this.parseStatement()}else y=this.parseStatement();return y},_.prototype.parseBlock=function(){var y=this.createNode();this.expect("{");for(var b=[];!this.match("}");)b.push(this.parseStatementListItem());return this.expect("}"),this.finalize(y,new W.BlockStatement(b))},_.prototype.parseLexicalBinding=function(y,b){var x=this.createNode(),j=this.parsePattern([],y);this.context.strict&&j.type===D.Syntax.Identifier&&this.scanner.isRestrictedWord(j.name)&&this.tolerateError(he.Messages.StrictVarName);var Y=null;return"const"===y?!this.matchKeyword("in")&&!this.matchContextualKeyword("of")&&(this.match("=")?(this.nextToken(),Y=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(he.Messages.DeclarationMissingInitializer,"const")):(!b.inFor&&j.type!==D.Syntax.Identifier||this.match("="))&&(this.expect("="),Y=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(x,new W.VariableDeclarator(j,Y))},_.prototype.parseBindingList=function(y,b){for(var x=[this.parseLexicalBinding(y,b)];this.match(",");)this.nextToken(),x.push(this.parseLexicalBinding(y,b));return x},_.prototype.isLexicalDeclaration=function(){var y=this.scanner.saveState();this.scanner.scanComments();var b=this.scanner.lex();return this.scanner.restoreState(y),3===b.type||7===b.type&&"["===b.value||7===b.type&&"{"===b.value||4===b.type&&"let"===b.value||4===b.type&&"yield"===b.value},_.prototype.parseLexicalDeclaration=function(y){var b=this.createNode(),x=this.nextToken().value;ee.assert("let"===x||"const"===x,"Lexical declaration must be either let or const");var T=this.parseBindingList(x,y);return this.consumeSemicolon(),this.finalize(b,new W.VariableDeclaration(T,x))},_.prototype.parseBindingRestElement=function(y,b){var x=this.createNode();this.expect("...");var T=this.parsePattern(y,b);return this.finalize(x,new W.RestElement(T))},_.prototype.parseArrayPattern=function(y,b){var x=this.createNode();this.expect("[");for(var T=[];!this.match("]");)if(this.match(","))this.nextToken(),T.push(null);else{if(this.match("...")){T.push(this.parseBindingRestElement(y,b));break}T.push(this.parsePatternWithDefault(y,b)),this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(x,new W.ArrayPattern(T))},_.prototype.parsePropertyPattern=function(y,b){var K,q,x=this.createNode(),T=!1,j=!1;if(3===this.lookahead.type){var O=this.lookahead;K=this.parseVariableIdentifier();var U=this.finalize(x,new W.Identifier(O.value));if(this.match("=")){y.push(O),j=!0,this.nextToken();var P=this.parseAssignmentExpression();q=this.finalize(this.startNode(O),new W.AssignmentPattern(U,P))}else this.match(":")?(this.expect(":"),q=this.parsePatternWithDefault(y,b)):(y.push(O),j=!0,q=U)}else T=this.match("["),K=this.parseObjectPropertyKey(),this.expect(":"),q=this.parsePatternWithDefault(y,b);return this.finalize(x,new W.Property("init",K,T,q,!1,j))},_.prototype.parseObjectPattern=function(y,b){var x=this.createNode(),T=[];for(this.expect("{");!this.match("}");)T.push(this.parsePropertyPattern(y,b)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(x,new W.ObjectPattern(T))},_.prototype.parsePattern=function(y,b){var x;return this.match("[")?x=this.parseArrayPattern(y,b):this.match("{")?x=this.parseObjectPattern(y,b):(this.matchKeyword("let")&&("const"===b||"let"===b)&&this.tolerateUnexpectedToken(this.lookahead,he.Messages.LetInLexicalBinding),y.push(this.lookahead),x=this.parseVariableIdentifier(b)),x},_.prototype.parsePatternWithDefault=function(y,b){var x=this.lookahead,T=this.parsePattern(y,b);if(this.match("=")){this.nextToken();var j=this.context.allowYield;this.context.allowYield=!0;var Y=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=j,T=this.finalize(this.startNode(x),new W.AssignmentPattern(T,Y))}return T},_.prototype.parseVariableIdentifier=function(y){var b=this.createNode(),x=this.nextToken();return 4===x.type&&"yield"===x.value?this.context.strict?this.tolerateUnexpectedToken(x,he.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(x):3!==x.type?this.context.strict&&4===x.type&&this.scanner.isStrictModeReservedWord(x.value)?this.tolerateUnexpectedToken(x,he.Messages.StrictReservedWord):(this.context.strict||"let"!==x.value||"var"!==y)&&this.throwUnexpectedToken(x):(this.context.isModule||this.context.await)&&3===x.type&&"await"===x.value&&this.tolerateUnexpectedToken(x),this.finalize(b,new W.Identifier(x.value))},_.prototype.parseVariableDeclaration=function(y){var b=this.createNode(),T=this.parsePattern([],"var");this.context.strict&&T.type===D.Syntax.Identifier&&this.scanner.isRestrictedWord(T.name)&&this.tolerateError(he.Messages.StrictVarName);var j=null;return this.match("=")?(this.nextToken(),j=this.isolateCoverGrammar(this.parseAssignmentExpression)):T.type!==D.Syntax.Identifier&&!y.inFor&&this.expect("="),this.finalize(b,new W.VariableDeclarator(T,j))},_.prototype.parseVariableDeclarationList=function(y){var b={inFor:y.inFor},x=[];for(x.push(this.parseVariableDeclaration(b));this.match(",");)this.nextToken(),x.push(this.parseVariableDeclaration(b));return x},_.prototype.parseVariableStatement=function(){var y=this.createNode();this.expectKeyword("var");var b=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(y,new W.VariableDeclaration(b,"var"))},_.prototype.parseEmptyStatement=function(){var y=this.createNode();return this.expect(";"),this.finalize(y,new W.EmptyStatement)},_.prototype.parseExpressionStatement=function(){var y=this.createNode(),b=this.parseExpression();return this.consumeSemicolon(),this.finalize(y,new W.ExpressionStatement(b))},_.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(he.Messages.StrictFunction),this.parseStatement()},_.prototype.parseIfStatement=function(){var b,y=this.createNode(),x=null;this.expectKeyword("if"),this.expect("(");var T=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),b=this.finalize(this.createNode(),new W.EmptyStatement)):(this.expect(")"),b=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),x=this.parseIfClause())),this.finalize(y,new W.IfStatement(T,b,x))},_.prototype.parseDoWhileStatement=function(){var y=this.createNode();this.expectKeyword("do");var b=this.context.inIteration;this.context.inIteration=!0;var x=this.parseStatement();this.context.inIteration=b,this.expectKeyword("while"),this.expect("(");var T=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(y,new W.DoWhileStatement(x,T))},_.prototype.parseWhileStatement=function(){var b,y=this.createNode();this.expectKeyword("while"),this.expect("(");var x=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),b=this.finalize(this.createNode(),new W.EmptyStatement);else{this.expect(")");var T=this.context.inIteration;this.context.inIteration=!0,b=this.parseStatement(),this.context.inIteration=T}return this.finalize(y,new W.WhileStatement(x,b))},_.prototype.parseForStatement=function(){var j,Y,F,y=null,b=null,x=null,T=!0,K=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){y=this.createNode(),this.nextToken();var q=this.context.allowIn;this.context.allowIn=!1;var O=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=q,1===O.length&&this.matchKeyword("in")){var U=O[0];U.init&&(U.id.type===D.Syntax.ArrayPattern||U.id.type===D.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(he.Messages.ForInOfLoopInitializer,"for-in"),y=this.finalize(y,new W.VariableDeclaration(O,"var")),this.nextToken(),j=y,Y=this.parseExpression(),y=null}else 1===O.length&&null===O[0].init&&this.matchContextualKeyword("of")?(y=this.finalize(y,new W.VariableDeclaration(O,"var")),this.nextToken(),j=y,Y=this.parseAssignmentExpression(),y=null,T=!1):(y=this.finalize(y,new W.VariableDeclaration(O,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){y=this.createNode();var P=this.nextToken().value;this.context.strict||"in"!==this.lookahead.value?(q=this.context.allowIn,this.context.allowIn=!1,O=this.parseBindingList(P,{inFor:!0}),this.context.allowIn=q,1===O.length&&null===O[0].init&&this.matchKeyword("in")?(y=this.finalize(y,new W.VariableDeclaration(O,P)),this.nextToken(),j=y,Y=this.parseExpression(),y=null):1===O.length&&null===O[0].init&&this.matchContextualKeyword("of")?(y=this.finalize(y,new W.VariableDeclaration(O,P)),this.nextToken(),j=y,Y=this.parseAssignmentExpression(),y=null,T=!1):(this.consumeSemicolon(),y=this.finalize(y,new W.VariableDeclaration(O,P)))):(y=this.finalize(y,new W.Identifier(P)),this.nextToken(),j=y,Y=this.parseExpression(),y=null)}else{var $=this.lookahead;if(q=this.context.allowIn,this.context.allowIn=!1,y=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=q,this.matchKeyword("in"))(!this.context.isAssignmentTarget||y.type===D.Syntax.AssignmentExpression)&&this.tolerateError(he.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(y),j=y,Y=this.parseExpression(),y=null;else if(this.matchContextualKeyword("of"))(!this.context.isAssignmentTarget||y.type===D.Syntax.AssignmentExpression)&&this.tolerateError(he.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(y),j=y,Y=this.parseAssignmentExpression(),y=null,T=!1;else{if(this.match(",")){for(var V=[y];this.match(",");)this.nextToken(),V.push(this.isolateCoverGrammar(this.parseAssignmentExpression));y=this.finalize(this.startNode($),new W.SequenceExpression(V))}this.expect(";")}}if(typeof j>"u"&&(this.match(";")||(b=this.parseExpression()),this.expect(";"),this.match(")")||(x=this.parseExpression())),!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),F=this.finalize(this.createNode(),new W.EmptyStatement);else{this.expect(")");var X=this.context.inIteration;this.context.inIteration=!0,F=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=X}return this.finalize(K,typeof j>"u"?new W.ForStatement(y,b,x,F):T?new W.ForInStatement(j,Y,F):new W.ForOfStatement(j,Y,F))},_.prototype.parseContinueStatement=function(){var y=this.createNode();this.expectKeyword("continue");var b=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var x=this.parseVariableIdentifier();b=x,Object.prototype.hasOwnProperty.call(this.context.labelSet,"$"+x.name)||this.throwError(he.Messages.UnknownLabel,x.name)}return this.consumeSemicolon(),null===b&&!this.context.inIteration&&this.throwError(he.Messages.IllegalContinue),this.finalize(y,new W.ContinueStatement(b))},_.prototype.parseBreakStatement=function(){var y=this.createNode();this.expectKeyword("break");var b=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var x=this.parseVariableIdentifier();Object.prototype.hasOwnProperty.call(this.context.labelSet,"$"+x.name)||this.throwError(he.Messages.UnknownLabel,x.name),b=x}return this.consumeSemicolon(),null===b&&!this.context.inIteration&&!this.context.inSwitch&&this.throwError(he.Messages.IllegalBreak),this.finalize(y,new W.BreakStatement(b))},_.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(he.Messages.IllegalReturn);var y=this.createNode();this.expectKeyword("return");var x=(this.match(";")||this.match("}")||this.hasLineTerminator||2===this.lookahead.type)&&8!==this.lookahead.type&&10!==this.lookahead.type?null:this.parseExpression();return this.consumeSemicolon(),this.finalize(y,new W.ReturnStatement(x))},_.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(he.Messages.StrictModeWith);var b,y=this.createNode();this.expectKeyword("with"),this.expect("(");var x=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),b=this.finalize(this.createNode(),new W.EmptyStatement)):(this.expect(")"),b=this.parseStatement()),this.finalize(y,new W.WithStatement(x,b))},_.prototype.parseSwitchCase=function(){var b,y=this.createNode();this.matchKeyword("default")?(this.nextToken(),b=null):(this.expectKeyword("case"),b=this.parseExpression()),this.expect(":");for(var x=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)x.push(this.parseStatementListItem());return this.finalize(y,new W.SwitchCase(b,x))},_.prototype.parseSwitchStatement=function(){var y=this.createNode();this.expectKeyword("switch"),this.expect("(");var b=this.parseExpression();this.expect(")");var x=this.context.inSwitch;this.context.inSwitch=!0;var T=[],j=!1;for(this.expect("{");!this.match("}");){var Y=this.parseSwitchCase();null===Y.test&&(j&&this.throwError(he.Messages.MultipleDefaultsInSwitch),j=!0),T.push(Y)}return this.expect("}"),this.context.inSwitch=x,this.finalize(y,new W.SwitchStatement(b,T))},_.prototype.parseLabelledStatement=function(){var x,y=this.createNode(),b=this.parseExpression();if(b.type===D.Syntax.Identifier&&this.match(":")){this.nextToken();var T=b,j="$"+T.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,j)&&this.throwError(he.Messages.Redeclaration,"Label",T.name),this.context.labelSet[j]=!0;var Y=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),Y=this.parseClassDeclaration();else if(this.matchKeyword("function")){var K=this.lookahead,q=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(K,he.Messages.StrictFunction):q.generator&&this.tolerateUnexpectedToken(K,he.Messages.GeneratorInLegacyContext),Y=q}else Y=this.parseStatement();delete this.context.labelSet[j],x=new W.LabeledStatement(T,Y)}else this.consumeSemicolon(),x=new W.ExpressionStatement(b);return this.finalize(y,x)},_.prototype.parseThrowStatement=function(){var y=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(he.Messages.NewlineAfterThrow);var b=this.parseExpression();return this.consumeSemicolon(),this.finalize(y,new W.ThrowStatement(b))},_.prototype.parseCatchClause=function(){var y=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var b=[],x=this.parsePattern(b),T={},j=0;j0&&this.tolerateError(he.Messages.BadGetterArity);var j=this.parsePropertyMethod(T);return this.context.allowYield=x,this.finalize(y,new W.FunctionExpression(null,T.params,j,false))},_.prototype.parseSetterMethod=function(){var y=this.createNode(),x=this.context.allowYield;this.context.allowYield=!0;var T=this.parseFormalParameters();1!==T.params.length?this.tolerateError(he.Messages.BadSetterArity):T.params[0]instanceof W.RestElement&&this.tolerateError(he.Messages.BadSetterRestParameter);var j=this.parsePropertyMethod(T);return this.context.allowYield=x,this.finalize(y,new W.FunctionExpression(null,T.params,j,false))},_.prototype.parseGeneratorMethod=function(){var y=this.createNode(),x=this.context.allowYield;this.context.allowYield=!0;var T=this.parseFormalParameters();this.context.allowYield=!1;var j=this.parsePropertyMethod(T);return this.context.allowYield=x,this.finalize(y,new W.FunctionExpression(null,T.params,j,!0))},_.prototype.isStartOfExpression=function(){var y=!0,b=this.lookahead.value;switch(this.lookahead.type){case 7:y="["===b||"("===b||"{"===b||"+"===b||"-"===b||"!"===b||"~"===b||"++"===b||"--"===b||"/"===b||"/="===b;break;case 4:y="class"===b||"delete"===b||"function"===b||"let"===b||"new"===b||"super"===b||"this"===b||"typeof"===b||"void"===b||"yield"===b}return y},_.prototype.parseYieldExpression=function(){var y=this.createNode();this.expectKeyword("yield");var b=null,x=!1;if(!this.hasLineTerminator){var T=this.context.allowYield;this.context.allowYield=!1,(x=this.match("*"))?(this.nextToken(),b=this.parseAssignmentExpression()):this.isStartOfExpression()&&(b=this.parseAssignmentExpression()),this.context.allowYield=T}return this.finalize(y,new W.YieldExpression(b,x))},_.prototype.parseClassElement=function(y){var b=this.lookahead,x=this.createNode(),T="",j=null,Y=null,K=!1,q=!1,O=!1,U=!1;if(this.match("*"))this.nextToken();else if(K=this.match("["),"static"===(j=this.parseObjectPropertyKey()).name&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(b=this.lookahead,O=!0,K=this.match("["),this.match("*")?this.nextToken():j=this.parseObjectPropertyKey()),3===b.type&&!this.hasLineTerminator&&"async"===b.value){var $=this.lookahead.value;":"!==$&&"("!==$&&"*"!==$&&(U=!0,b=this.lookahead,j=this.parseObjectPropertyKey(),3===b.type&&"constructor"===b.value&&this.tolerateUnexpectedToken(b,he.Messages.ConstructorIsAsync))}var V=this.qualifiedPropertyName(this.lookahead);return 3===b.type?"get"===b.value&&V?(T="get",K=this.match("["),j=this.parseObjectPropertyKey(),this.context.allowYield=!1,Y=this.parseGetterMethod()):"set"===b.value&&V&&(T="set",K=this.match("["),j=this.parseObjectPropertyKey(),Y=this.parseSetterMethod()):7===b.type&&"*"===b.value&&V&&(T="init",K=this.match("["),j=this.parseObjectPropertyKey(),Y=this.parseGeneratorMethod(),q=!0),!T&&j&&this.match("(")&&(T="init",Y=U?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),q=!0),T||this.throwUnexpectedToken(this.lookahead),"init"===T&&(T="method"),K||(O&&this.isPropertyKey(j,"prototype")&&this.throwUnexpectedToken(b,he.Messages.StaticPrototype),!O&&this.isPropertyKey(j,"constructor")&&(("method"!==T||!q||Y&&Y.generator)&&this.throwUnexpectedToken(b,he.Messages.ConstructorSpecialMethod),y.value?this.throwUnexpectedToken(b,he.Messages.DuplicateConstructor):y.value=!0,T="constructor")),this.finalize(x,new W.MethodDefinition(j,K,Y,T,O))},_.prototype.parseClassElementList=function(){var y=[],b={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():y.push(this.parseClassElement(b));return this.expect("}"),y},_.prototype.parseClassBody=function(){var y=this.createNode(),b=this.parseClassElementList();return this.finalize(y,new W.ClassBody(b))},_.prototype.parseClassDeclaration=function(y){var b=this.createNode(),x=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var T=y&&3!==this.lookahead.type?null:this.parseVariableIdentifier(),j=null;this.matchKeyword("extends")&&(this.nextToken(),j=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var Y=this.parseClassBody();return this.context.strict=x,this.finalize(b,new W.ClassDeclaration(T,j,Y))},_.prototype.parseClassExpression=function(){var y=this.createNode(),b=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var x=3===this.lookahead.type?this.parseVariableIdentifier():null,T=null;this.matchKeyword("extends")&&(this.nextToken(),T=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var j=this.parseClassBody();return this.context.strict=b,this.finalize(y,new W.ClassExpression(x,T,j))},_.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var y=this.createNode(),b=this.parseDirectivePrologues();2!==this.lookahead.type;)b.push(this.parseStatementListItem());return this.finalize(y,new W.Module(b))},_.prototype.parseScript=function(){for(var y=this.createNode(),b=this.parseDirectivePrologues();2!==this.lookahead.type;)b.push(this.parseStatementListItem());return this.finalize(y,new W.Script(b))},_.prototype.parseModuleSpecifier=function(){var y=this.createNode();8!==this.lookahead.type&&this.throwError(he.Messages.InvalidModuleSpecifier);var b=this.nextToken(),x=this.getTokenRaw(b);return this.finalize(y,new W.Literal(b.value,x))},_.prototype.parseImportSpecifier=function(){var b,x,y=this.createNode();return 3===this.lookahead.type?(x=b=this.parseVariableIdentifier(),this.matchContextualKeyword("as")&&(this.nextToken(),x=this.parseVariableIdentifier())):(x=b=this.parseIdentifierName(),this.matchContextualKeyword("as")?(this.nextToken(),x=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(y,new W.ImportSpecifier(x,b))},_.prototype.parseNamedImports=function(){this.expect("{");for(var y=[];!this.match("}");)y.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),y},_.prototype.parseImportDefaultSpecifier=function(){var y=this.createNode(),b=this.parseIdentifierName();return this.finalize(y,new W.ImportDefaultSpecifier(b))},_.prototype.parseImportNamespaceSpecifier=function(){var y=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(he.Messages.NoAsAfterImportNamespace),this.nextToken();var b=this.parseIdentifierName();return this.finalize(y,new W.ImportNamespaceSpecifier(b))},_.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(he.Messages.IllegalImportDeclaration);var y=this.createNode();this.expectKeyword("import");var b,x=[];return 8===this.lookahead.type||(this.match("{")?x=x.concat(this.parseNamedImports()):this.match("*")?x.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(x.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?x.push(this.parseImportNamespaceSpecifier()):this.match("{")?x=x.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),this.matchContextualKeyword("from")||this.throwError(this.lookahead.value?he.Messages.UnexpectedToken:he.Messages.MissingFromClause,this.lookahead.value),this.nextToken()),b=this.parseModuleSpecifier(),this.consumeSemicolon(),this.finalize(y,new W.ImportDeclaration(x,b))},_.prototype.parseExportSpecifier=function(){var y=this.createNode(),b=this.parseIdentifierName(),x=b;return this.matchContextualKeyword("as")&&(this.nextToken(),x=this.parseIdentifierName()),this.finalize(y,new W.ExportSpecifier(b,x))},_.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(he.Messages.IllegalExportDeclaration);var b,y=this.createNode();if(this.expectKeyword("export"),this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var x=this.parseFunctionDeclaration(!0);b=this.finalize(y,new W.ExportDefaultDeclaration(x))}else this.matchKeyword("class")?(x=this.parseClassDeclaration(!0),b=this.finalize(y,new W.ExportDefaultDeclaration(x))):this.matchContextualKeyword("async")?(x=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression(),b=this.finalize(y,new W.ExportDefaultDeclaration(x))):(this.matchContextualKeyword("from")&&this.throwError(he.Messages.UnexpectedToken,this.lookahead.value),x=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression(),this.consumeSemicolon(),b=this.finalize(y,new W.ExportDefaultDeclaration(x)));else if(this.match("*")){this.nextToken(),this.matchContextualKeyword("from")||this.throwError(this.lookahead.value?he.Messages.UnexpectedToken:he.Messages.MissingFromClause,this.lookahead.value),this.nextToken();var j=this.parseModuleSpecifier();this.consumeSemicolon(),b=this.finalize(y,new W.ExportAllDeclaration(j))}else if(4===this.lookahead.type){switch(x=void 0,this.lookahead.value){case"let":case"const":x=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":x=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}b=this.finalize(y,new W.ExportNamedDeclaration(x,[],null))}else if(this.matchAsyncFunction())x=this.parseFunctionDeclaration(),b=this.finalize(y,new W.ExportNamedDeclaration(x,[],null));else{var Y=[],K=null,q=!1;for(this.expect("{");!this.match("}");)q=q||this.matchKeyword("default"),Y.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");this.expect("}"),this.matchContextualKeyword("from")?(this.nextToken(),K=this.parseModuleSpecifier(),this.consumeSemicolon()):q?this.throwError(this.lookahead.value?he.Messages.UnexpectedToken:he.Messages.MissingFromClause,this.lookahead.value):this.consumeSemicolon(),b=this.finalize(y,new W.ExportNamedDeclaration(null,Y,K))}return b},_}();Ye.Parser=g},function(Gn,Ye){"use strict";Object.defineProperty(Ye,"__esModule",{value:!0}),Ye.assert=function ve(ee,it){if(!ee)throw new Error("ASSERT: "+it)}},function(Gn,Ye){"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});var ve=function(){function ee(){this.errors=[],this.tolerant=!1}return ee.prototype.recordError=function(it){this.errors.push(it)},ee.prototype.tolerate=function(it){if(!this.tolerant)throw it;this.recordError(it)},ee.prototype.constructError=function(it,he){var W=new Error(it);try{throw W}catch(R){Object.create&&Object.defineProperty&&(W=Object.create(R),Object.defineProperty(W,"column",{value:he}))}return W},ee.prototype.createError=function(it,he,W,R){var S=this.constructError("Line "+he+": "+R,W);return S.index=it,S.lineNumber=he,S.description=R,S},ee.prototype.throwError=function(it,he,W,R){throw this.createError(it,he,W,R)},ee.prototype.tolerateError=function(it,he,W,R){var D=this.createError(it,he,W,R);if(!this.tolerant)throw D;this.recordError(D)},ee}();Ye.ErrorHandler=ve},function(Gn,Ye){"use strict";Object.defineProperty(Ye,"__esModule",{value:!0}),Ye.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(Gn,Ye,ve){"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});var ee=ve(9),it=ve(4),he=ve(11);function W(S){return"0123456789abcdef".indexOf(S.toLowerCase())}function R(S){return"01234567".indexOf(S)}var D=function(){function S(v,g){this.source=v,this.errorHandler=g,this.trackComment=!1,this.isModule=!1,this.length=v.length,this.index=0,this.lineNumber=v.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return S.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},S.prototype.restoreState=function(v){this.index=v.index,this.lineNumber=v.lineNumber,this.lineStart=v.lineStart},S.prototype.eof=function(){return this.index>=this.length},S.prototype.throwUnexpectedToken=function(v){return void 0===v&&(v=he.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,v)},S.prototype.tolerateUnexpectedToken=function(v){void 0===v&&(v=he.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,v)},S.prototype.skipSingleLineComment=function(v){var _,y,g=[];for(this.trackComment&&(g=[],_=this.index-v,y={start:{line:this.lineNumber,column:this.index-this.lineStart-v},end:{}});!this.eof();){var b=this.source.charCodeAt(this.index);if(++this.index,it.Character.isLineTerminator(b))return this.trackComment&&(y.end={line:this.lineNumber,column:this.index-this.lineStart-1},g.push({multiLine:!1,slice:[_+v,this.index-1],range:[_,this.index-1],loc:y})),13===b&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,g}return this.trackComment&&(y.end={line:this.lineNumber,column:this.index-this.lineStart},g.push({multiLine:!1,slice:[_+v,this.index],range:[_,this.index],loc:y})),g},S.prototype.skipMultiLineComment=function(){var g,_,v=[];for(this.trackComment&&(v=[],g=this.index-2,_={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var y=this.source.charCodeAt(this.index);if(it.Character.isLineTerminator(y))13===y&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===y){if(47===this.source.charCodeAt(this.index+1))return this.index+=2,this.trackComment&&(_.end={line:this.lineNumber,column:this.index-this.lineStart},v.push({multiLine:!0,slice:[g+2,this.index-2],range:[g,this.index],loc:_})),v;++this.index}else++this.index}return this.trackComment&&(_.end={line:this.lineNumber,column:this.index-this.lineStart},v.push({multiLine:!0,slice:[g+2,this.index],range:[g,this.index],loc:_})),this.tolerateUnexpectedToken(),v},S.prototype.scanComments=function(){var v;this.trackComment&&(v=[]);for(var g=0===this.index;!this.eof();){var _=this.source.charCodeAt(this.index);if(it.Character.isWhiteSpace(_))++this.index;else if(it.Character.isLineTerminator(_))++this.index,13===_&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,g=!0;else if(47===_)if(47===(_=this.source.charCodeAt(this.index+1))){this.index+=2;var y=this.skipSingleLineComment(2);this.trackComment&&(v=v.concat(y)),g=!0}else{if(42!==_)break;this.index+=2,y=this.skipMultiLineComment(),this.trackComment&&(v=v.concat(y))}else if(g&&45===_){if(45!==this.source.charCodeAt(this.index+1)||62!==this.source.charCodeAt(this.index+2))break;this.index+=3,y=this.skipSingleLineComment(3),this.trackComment&&(v=v.concat(y))}else{if(60!==_||this.isModule)break;if("!--"!==this.source.slice(this.index+1,this.index+4))break;this.index+=4,y=this.skipSingleLineComment(4),this.trackComment&&(v=v.concat(y))}}return v},S.prototype.isFutureReservedWord=function(v){switch(v){case"enum":case"export":case"import":case"super":return!0;default:return!1}},S.prototype.isStrictModeReservedWord=function(v){switch(v){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},S.prototype.isRestrictedWord=function(v){return"eval"===v||"arguments"===v},S.prototype.isKeyword=function(v){switch(v.length){case 2:return"if"===v||"in"===v||"do"===v;case 3:return"var"===v||"for"===v||"new"===v||"try"===v||"let"===v;case 4:return"this"===v||"else"===v||"case"===v||"void"===v||"with"===v||"enum"===v;case 5:return"while"===v||"break"===v||"catch"===v||"throw"===v||"const"===v||"yield"===v||"class"===v||"super"===v;case 6:return"return"===v||"typeof"===v||"delete"===v||"switch"===v||"export"===v||"import"===v;case 7:return"default"===v||"finally"===v||"extends"===v;case 8:return"function"===v||"continue"===v||"debugger"===v;case 10:return"instanceof"===v;default:return!1}},S.prototype.codePointAt=function(v){var g=this.source.charCodeAt(v);if(g>=55296&&g<=56319){var _=this.source.charCodeAt(v+1);_>=56320&&_<=57343&&(g=1024*(g-55296)+_-56320+65536)}return g},S.prototype.scanHexEscape=function(v){for(var g="u"===v?4:2,_=0,y=0;y1114111||"}"!==v)&&this.throwUnexpectedToken(),it.Character.fromCodePoint(g)},S.prototype.getIdentifier=function(){for(var v=this.index++;!this.eof();){var g=this.source.charCodeAt(this.index);if(92===g)return this.index=v,this.getComplexIdentifier();if(g>=55296&&g<57343)return this.index=v,this.getComplexIdentifier();if(!it.Character.isIdentifierPart(g))break;++this.index}return this.source.slice(v,this.index)},S.prototype.getComplexIdentifier=function(){var _,v=this.codePointAt(this.index),g=it.Character.fromCodePoint(v);for(this.index+=g.length,92===v&&(117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,_=this.scanUnicodeCodePointEscape()):(null===(_=this.scanHexEscape("u"))||"\\"===_||!it.Character.isIdentifierStart(_.charCodeAt(0)))&&this.throwUnexpectedToken(),g=_);!this.eof()&&(v=this.codePointAt(this.index),it.Character.isIdentifierPart(v));)g+=_=it.Character.fromCodePoint(v),this.index+=_.length,92===v&&(g=g.substr(0,g.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,_=this.scanUnicodeCodePointEscape()):(null===(_=this.scanHexEscape("u"))||"\\"===_||!it.Character.isIdentifierPart(_.charCodeAt(0)))&&this.throwUnexpectedToken(),g+=_);return g},S.prototype.octalToDecimal=function(v){var g="0"!==v,_=R(v);return!this.eof()&&it.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(g=!0,_=8*_+R(this.source[this.index++]),"0123".indexOf(v)>=0&&!this.eof()&&it.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(_=8*_+R(this.source[this.index++]))),{code:_,octal:g}},S.prototype.scanIdentifier=function(){var v,g=this.index,_=92===this.source.charCodeAt(g)?this.getComplexIdentifier():this.getIdentifier();if(3!=(v=1===_.length?3:this.isKeyword(_)?4:"null"===_?5:"true"===_||"false"===_?1:3)&&g+_.length!==this.index){var y=this.index;this.index=g,this.tolerateUnexpectedToken(he.Messages.InvalidEscapedReservedWord),this.index=y}return{type:v,value:_,lineNumber:this.lineNumber,lineStart:this.lineStart,start:g,end:this.index}},S.prototype.scanPunctuator=function(){var v=this.index,g=this.source[this.index];switch(g){case"(":case"{":"{"===g&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,"."===this.source[this.index]&&"."===this.source[this.index+1]&&(this.index+=2,g="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:">>>="===(g=this.source.substr(this.index,4))?this.index+=4:"==="===(g=g.substr(0,3))||"!=="===g||">>>"===g||"<<="===g||">>="===g||"**="===g?this.index+=3:"&&"===(g=g.substr(0,2))||"||"===g||"=="===g||"!="===g||"+="===g||"-="===g||"*="===g||"/="===g||"++"===g||"--"===g||"<<"===g||">>"===g||"&="===g||"|="===g||"^="===g||"%="===g||"<="===g||">="===g||"=>"===g||"**"===g?this.index+=2:"<>=!+-*%&|^/".indexOf(g=this.source[this.index])>=0&&++this.index}return this.index===v&&this.throwUnexpectedToken(),{type:7,value:g,lineNumber:this.lineNumber,lineStart:this.lineStart,start:v,end:this.index}},S.prototype.scanHexLiteral=function(v){for(var g="";!this.eof()&&it.Character.isHexDigit(this.source.charCodeAt(this.index));)g+=this.source[this.index++];return 0===g.length&&this.throwUnexpectedToken(),it.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+g,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:v,end:this.index}},S.prototype.scanBinaryLiteral=function(v){for(var _,g="";!this.eof()&&("0"===(_=this.source[this.index])||"1"===_);)g+=this.source[this.index++];return 0===g.length&&this.throwUnexpectedToken(),this.eof()||(_=this.source.charCodeAt(this.index),(it.Character.isIdentifierStart(_)||it.Character.isDecimalDigit(_))&&this.throwUnexpectedToken()),{type:6,value:parseInt(g,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:v,end:this.index}},S.prototype.scanOctalLiteral=function(v,g){var _="",y=!1;for(it.Character.isOctalDigit(v.charCodeAt(0))?(y=!0,_="0"+this.source[this.index++]):++this.index;!this.eof()&&it.Character.isOctalDigit(this.source.charCodeAt(this.index));)_+=this.source[this.index++];return!y&&0===_.length&&this.throwUnexpectedToken(),(it.Character.isIdentifierStart(this.source.charCodeAt(this.index))||it.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(_,8),octal:y,lineNumber:this.lineNumber,lineStart:this.lineStart,start:g,end:this.index}},S.prototype.isImplicitOctalLiteral=function(){for(var v=this.index+1;v=0&&(y=y.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(x,T,j){var Y=parseInt(T||j,16);return Y>1114111&&b.throwUnexpectedToken(he.Messages.InvalidRegExp),Y<=65535?String.fromCharCode(Y):"\uffff"}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"\uffff"));try{RegExp(y)}catch{this.throwUnexpectedToken(he.Messages.InvalidRegExp)}try{return new RegExp(v,g)}catch{return null}},S.prototype.scanRegExpBody=function(){var v=this.source[this.index];ee.assert("/"===v,"Regular expression literal must start with a slash");for(var g=this.source[this.index++],_=!1,y=!1;!this.eof();)if(g+=v=this.source[this.index++],"\\"===v)v=this.source[this.index++],it.Character.isLineTerminator(v.charCodeAt(0))&&this.throwUnexpectedToken(he.Messages.UnterminatedRegExp),g+=v;else if(it.Character.isLineTerminator(v.charCodeAt(0)))this.throwUnexpectedToken(he.Messages.UnterminatedRegExp);else if(_)"]"===v&&(_=!1);else{if("/"===v){y=!0;break}"["===v&&(_=!0)}return y||this.throwUnexpectedToken(he.Messages.UnterminatedRegExp),g.substr(1,g.length-2)},S.prototype.scanRegExpFlags=function(){for(var g="";!this.eof();){var _=this.source[this.index];if(!it.Character.isIdentifierPart(_.charCodeAt(0)))break;if(++this.index,"\\"!==_||this.eof())g+=_;else if("u"===(_=this.source[this.index])){++this.index;var y=this.index,b=this.scanHexEscape("u");if(null!==b)for(g+=b;y=55296&&v<57343&&it.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},S}();Ye.Scanner=D},function(Gn,Ye){"use strict";Object.defineProperty(Ye,"__esModule",{value:!0}),Ye.TokenName={},Ye.TokenName[1]="Boolean",Ye.TokenName[2]="",Ye.TokenName[3]="Identifier",Ye.TokenName[4]="Keyword",Ye.TokenName[5]="Null",Ye.TokenName[6]="Numeric",Ye.TokenName[7]="Punctuator",Ye.TokenName[8]="String",Ye.TokenName[9]="RegularExpression",Ye.TokenName[10]="Template"},function(Gn,Ye){"use strict";Object.defineProperty(Ye,"__esModule",{value:!0}),Ye.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",frasl:"\u2044",euro:"\u20ac",image:"\u2111",weierp:"\u2118",real:"\u211c",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lArr:"\u21d0",uArr:"\u21d1",rArr:"\u21d2",dArr:"\u21d3",hArr:"\u21d4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",lang:"\u27e8",rang:"\u27e9"}},function(Gn,Ye,ve){"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});var ee=ve(10),it=ve(12),he=ve(13),W=function(){function D(){this.values=[],this.curly=this.paren=-1}return D.prototype.beforeFunctionExpression=function(S){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(S)>=0},D.prototype.isRegexStart=function(){var S=this.values[this.values.length-1],v=null!==S;switch(S){case"this":case"]":v=!1;break;case")":var g=this.values[this.paren-1];v="if"===g||"while"===g||"for"===g||"with"===g;break;case"}":if(v=!1,"function"===this.values[this.curly-3])v=!!(_=this.values[this.curly-4])&&!this.beforeFunctionExpression(_);else if("function"===this.values[this.curly-4]){var _;v=!(_=this.values[this.curly-5])||!this.beforeFunctionExpression(_)}}return v},D.prototype.push=function(S){7===S.type||4===S.type?("{"===S.value?this.curly=this.values.length:"("===S.value&&(this.paren=this.values.length),this.values.push(S.value)):this.values.push(null)},D}(),R=function(){function D(S,v){this.errorHandler=new ee.ErrorHandler,this.errorHandler.tolerant=!!v&&"boolean"==typeof v.tolerant&&v.tolerant,this.scanner=new it.Scanner(S,this.errorHandler),this.scanner.trackComment=!!v&&"boolean"==typeof v.comment&&v.comment,this.trackRange=!!v&&"boolean"==typeof v.range&&v.range,this.trackLoc=!!v&&"boolean"==typeof v.loc&&v.loc,this.buffer=[],this.reader=new W}return D.prototype.errors=function(){return this.errorHandler.errors},D.prototype.getNextToken=function(){if(0===this.buffer.length){var S=this.scanner.scanComments();if(this.scanner.trackComment)for(var v=0;v=_.status}function R(g){try{g.dispatchEvent(new MouseEvent("click"))}catch{var _=document.createEvent("MouseEvents");_.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),g.dispatchEvent(_)}}var D="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,S=D.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),v=D.saveAs||("object"!=typeof window||window!==D?function(){}:"download"in HTMLAnchorElement.prototype&&!S?function(g,_,y){var b=D.URL||D.webkitURL,x=document.createElement("a");x.download=_=_||g.name||"download",x.rel="noopener","string"==typeof g?(x.href=g,x.origin===location.origin?R(x):W(x.href)?he(g,_,y):R(x,x.target="_blank")):(x.href=b.createObjectURL(g),setTimeout(function(){b.revokeObjectURL(x.href)},4e4),setTimeout(function(){R(x)},0))}:"msSaveOrOpenBlob"in navigator?function(g,_,y){if(_=_||g.name||"download","string"!=typeof g)navigator.msSaveOrOpenBlob(function it(g,_){return typeof _>"u"?_={autoBom:!1}:"object"!=typeof _&&(console.warn("Deprecated: Expected third argument to be a object"),_={autoBom:!_}),_.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(g.type)?new Blob(["\ufeff",g],{type:g.type}):g}(g,y),_);else if(W(g))he(g,_,y);else{var b=document.createElement("a");b.href=g,b.target="_blank",setTimeout(function(){R(b)})}}:function(g,_,y,b){if((b=b||open("","_blank"))&&(b.document.title=b.document.body.innerText="downloading..."),"string"==typeof g)return he(g,_,y);var x="application/octet-stream"===g.type,T=/constructor/i.test(D.HTMLElement)||D.safari,j=/CriOS\/[\d]+/.test(navigator.userAgent);if((j||x&&T||S)&&typeof FileReader<"u"){var Y=new FileReader;Y.onloadend=function(){var O=Y.result;O=j?O:O.replace(/^data:[^;]*;/,"data:attachment/file;"),b?b.location.href=O:location=O,b=null},Y.readAsDataURL(g)}else{var K=D.URL||D.webkitURL,q=K.createObjectURL(g);b?b.location=q:location.href=q,b=null,setTimeout(function(){K.revokeObjectURL(q)},4e4)}});D.saveAs=v.saveAs=v,fn.exports=v})?Ye.apply(Gn,[]):Ye)&&(fn.exports=ee)},461:(fn,Gn)=>{Gn.read=function(Ye,ve,ee,it,he){var W,R,D=8*he-it-1,S=(1<>1,g=-7,_=ee?he-1:0,y=ee?-1:1,b=Ye[ve+_];for(_+=y,W=b&(1<<-g)-1,b>>=-g,g+=D;g>0;W=256*W+Ye[ve+_],_+=y,g-=8);for(R=W&(1<<-g)-1,W>>=-g,g+=it;g>0;R=256*R+Ye[ve+_],_+=y,g-=8);if(0===W)W=1-v;else{if(W===S)return R?NaN:1/0*(b?-1:1);R+=Math.pow(2,it),W-=v}return(b?-1:1)*R*Math.pow(2,W-it)},Gn.write=function(Ye,ve,ee,it,he,W){var R,D,S,v=8*W-he-1,g=(1<>1,y=23===he?Math.pow(2,-24)-Math.pow(2,-77):0,b=it?0:W-1,x=it?1:-1,T=ve<0||0===ve&&1/ve<0?1:0;for(ve=Math.abs(ve),isNaN(ve)||ve===1/0?(D=isNaN(ve)?1:0,R=g):(R=Math.floor(Math.log(ve)/Math.LN2),ve*(S=Math.pow(2,-R))<1&&(R--,S*=2),(ve+=R+_>=1?y/S:y*Math.pow(2,1-_))*S>=2&&(R++,S/=2),R+_>=g?(D=0,R=g):R+_>=1?(D=(ve*S-1)*Math.pow(2,he),R+=_):(D=ve*Math.pow(2,_-1)*Math.pow(2,he),R=0));he>=8;Ye[ee+b]=255&D,b+=x,D/=256,he-=8);for(R=R<0;Ye[ee+b]=255&R,b+=x,R/=256,v-=8);Ye[ee+b-x]|=128*T}},870:(fn,Gn,Ye)=>{"use strict";var ve=Ye(133);fn.exports=ve},133:(fn,Gn,Ye)=>{"use strict";var ve=Ye(840),ee=Ye(34);function it(he){return function(){throw new Error("Function "+he+" is deprecated and cannot be used.")}}fn.exports.Type=Ye(647),fn.exports.Schema=Ye(372),fn.exports.FAILSAFE_SCHEMA=Ye(746),fn.exports.JSON_SCHEMA=Ye(147),fn.exports.CORE_SCHEMA=Ye(192),fn.exports.DEFAULT_SAFE_SCHEMA=Ye(31),fn.exports.DEFAULT_FULL_SCHEMA=Ye(94),fn.exports.load=ve.load,fn.exports.loadAll=ve.loadAll,fn.exports.safeLoad=ve.safeLoad,fn.exports.safeLoadAll=ve.safeLoadAll,fn.exports.dump=ee.dump,fn.exports.safeDump=ee.safeDump,fn.exports.YAMLException=Ye(314),fn.exports.MINIMAL_SCHEMA=Ye(746),fn.exports.SAFE_SCHEMA=Ye(31),fn.exports.DEFAULT_SCHEMA=Ye(94),fn.exports.scan=it("scan"),fn.exports.parse=it("parse"),fn.exports.compose=it("compose"),fn.exports.addConstructor=it("addConstructor")},997:fn=>{"use strict";function Gn(W){return typeof W>"u"||null===W}fn.exports.isNothing=Gn,fn.exports.isObject=function Ye(W){return"object"==typeof W&&null!==W},fn.exports.toArray=function ve(W){return Array.isArray(W)?W:Gn(W)?[]:[W]},fn.exports.repeat=function it(W,R){var S,D="";for(S=0;S{"use strict";var ve=Ye(997),ee=Ye(314),it=Ye(94),he=Ye(31),W=Object.prototype.toString,R=Object.prototype.hasOwnProperty,D=9,S=10,v=13,g=32,_=33,y=34,b=35,x=37,T=38,j=39,Y=42,K=44,q=45,O=58,U=61,P=62,$=63,V=64,F=91,X=93,Ce=96,Me=123,Re=124,ze=125,Pe={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},Tt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function ht(Ne){var jt,nn,yn;if(jt=Ne.toString(16).toUpperCase(),Ne<=255)nn="x",yn=2;else if(Ne<=65535)nn="u",yn=4;else{if(!(Ne<=4294967295))throw new ee("code point within a string may not be greater than 0xFFFFFFFF");nn="U",yn=8}return"\\"+nn+ve.repeat("0",yn-jt.length)+jt}function It(Ne){this.schema=Ne.schema||it,this.indent=Math.max(1,Ne.indent||2),this.noArrayIndent=Ne.noArrayIndent||!1,this.skipInvalid=Ne.skipInvalid||!1,this.flowLevel=ve.isNothing(Ne.flowLevel)?-1:Ne.flowLevel,this.styleMap=function St(Ne,jt){var nn,yn,mn,sn,In,gn,dt;if(null===jt)return{};for(nn={},mn=0,sn=(yn=Object.keys(jt)).length;mn0?Ne.charCodeAt(sn-1):null,so=so&&wi(In,gn)}else{for(sn=0;snyn&&" "!==Ne[Bn+1],Bn=sn);else if(!Tn(In))return Wi;gn=sn>0?Ne.charCodeAt(sn-1):null,so=so&&wi(In,gn)}pt=pt||Ht&&sn-Bn-1>yn&&" "!==Ne[Bn+1]}return dt||pt?nn>9&&Ri(Ne)?Wi:pt?lr:qn:so&&!mn(Ne)?ci:$i}(jt,yn||Ne.flowLevel>-1&&nn>=Ne.flowLevel,Ne.indent,sn,function gn(dt){return function At(Ne,jt){var nn,yn;for(nn=0,yn=Ne.implicitTypes.length;nn"+vr(jt,Ne.indent)+We(mt(function de(Ne,jt){for(var sn,In,nn=/(\n+)([^\n]*)/g,yn=(pt=void 0,pt=Ne.indexOf("\n"),nn.lastIndex=pt=-1!==pt?pt:Ne.length,xe(Ne.slice(0,pt),jt)),mn="\n"===Ne[0]||" "===Ne[0];In=nn.exec(Ne);){var dt=In[2];sn=" "===dt[0],yn+=In[1]+(mn||sn||""===dt?"":"\n")+xe(dt,jt),mn=sn}var pt;return yn}(jt,sn),mn));case Wi:return'"'+function Le(Ne){for(var nn,yn,mn,jt="",sn=0;sn=55296&&nn<=56319&&(yn=Ne.charCodeAt(sn+1))>=56320&&yn<=57343?(jt+=ht(1024*(nn-55296)+yn-56320+65536),sn++):jt+=!(mn=Pe[nn])&&Tn(nn)?Ne[sn]:mn||ht(nn);return jt}(jt)+'"';default:throw new ee("impossible error: invalid scalar style")}}()}function vr(Ne,jt){var nn=Ri(Ne)?String(jt):"",yn="\n"===Ne[Ne.length-1];return nn+(!yn||"\n"!==Ne[Ne.length-2]&&"\n"!==Ne?yn?"":"-":"+")+"\n"}function We(Ne){return"\n"===Ne[Ne.length-1]?Ne.slice(0,-1):Ne}function xe(Ne,jt){if(""===Ne||" "===Ne[0])return Ne;for(var yn,sn,nn=/ [^ ]/g,mn=0,In=0,gn=0,dt="";yn=nn.exec(Ne);)(gn=yn.index)-mn>jt&&(dt+="\n"+Ne.slice(mn,sn=In>mn?In:gn),mn=sn+1),In=gn;return dt+="\n",(dt+=Ne.length-mn>jt&&In>mn?Ne.slice(mn,In)+"\n"+Ne.slice(In+1):Ne.slice(mn)).slice(1)}function H(Ne,jt,nn){var yn,mn,sn,In,gn,dt;for(sn=0,In=(mn=nn?Ne.explicitTypes:Ne.implicitTypes).length;sn tag resolver accepts not "'+dt+'" style');yn=gn.represent[dt](jt,dt)}Ne.dump=yn}return!0}return!1}function yt(Ne,jt,nn,yn,mn,sn){Ne.tag=null,Ne.dump=nn,H(Ne,nn,!1)||H(Ne,nn,!0);var In=W.call(Ne.dump);yn&&(yn=Ne.flowLevel<0||Ne.flowLevel>jt);var dt,pt,gn="[object Object]"===In||"[object Array]"===In;if(gn&&(pt=-1!==(dt=Ne.duplicates.indexOf(nn))),(null!==Ne.tag&&"?"!==Ne.tag||pt||2!==Ne.indent&&jt>0)&&(mn=!1),pt&&Ne.usedDuplicates[dt])Ne.dump="*ref_"+dt;else{if(gn&&pt&&!Ne.usedDuplicates[dt]&&(Ne.usedDuplicates[dt]=!0),"[object Object]"===In)yn&&0!==Object.keys(Ne.dump).length?(function si(Ne,jt,nn,yn){var gn,dt,pt,Ht,Bn,so,mn="",sn=Ne.tag,In=Object.keys(nn);if(!0===Ne.sortKeys)In.sort();else if("function"==typeof Ne.sortKeys)In.sort(Ne.sortKeys);else if(Ne.sortKeys)throw new ee("sortKeys must be a boolean or a function");for(gn=0,dt=In.length;gn1024)&&(Ne.dump&&S===Ne.dump.charCodeAt(0)?so+="?":so+="? "),so+=Ne.dump,Bn&&(so+=Zt(Ne,jt)),yt(Ne,jt+1,Ht,!0,Bn)&&(Ne.dump&&S===Ne.dump.charCodeAt(0)?so+=":":so+=": ",mn+=so+=Ne.dump));Ne.tag=sn,Ne.dump=mn||"{}"}(Ne,jt,Ne.dump,mn),pt&&(Ne.dump="&ref_"+dt+Ne.dump)):(function Jt(Ne,jt,nn){var In,gn,dt,pt,Ht,yn="",mn=Ne.tag,sn=Object.keys(nn);for(In=0,gn=sn.length;In1024&&(Ht+="? "),Ht+=Ne.dump+(Ne.condenseFlow?'"':"")+":"+(Ne.condenseFlow?"":" "),yt(Ne,jt,pt,!1,!1)&&(yn+=Ht+=Ne.dump));Ne.tag=mn,Ne.dump="{"+yn+"}"}(Ne,jt,Ne.dump),pt&&(Ne.dump="&ref_"+dt+" "+Ne.dump));else if("[object Array]"===In){var Ht=Ne.noArrayIndent&&jt>0?jt-1:jt;yn&&0!==Ne.dump.length?(function Ot(Ne,jt,nn,yn){var In,gn,mn="",sn=Ne.tag;for(In=0,gn=nn.length;In "+Ne.dump)}return!0}function Lt(Ne,jt){var mn,sn,nn=[],yn=[];for(Kt(Ne,nn,yn),mn=0,sn=yn.length;mn{"use strict";function Gn(Ye,ve){Error.call(this),this.name="YAMLException",this.reason=Ye,this.mark=ve,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}(Gn.prototype=Object.create(Error.prototype)).constructor=Gn,Gn.prototype.toString=function(ve){var ee=this.name+": ";return ee+=this.reason||"(unknown reason)",!ve&&this.mark&&(ee+=" "+this.mark.toString()),ee},fn.exports=Gn},840:(fn,Gn,Ye)=>{"use strict";var ve=Ye(997),ee=Ye(314),it=Ye(48),he=Ye(31),W=Ye(94),R=Object.prototype.hasOwnProperty,D=1,S=2,v=3,g=4,_=1,y=2,b=3,x=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,T=/[\x85\u2028\u2029]/,j=/[,\[\]\{\}]/,Y=/^(?:!|!!|![a-z\-]+!)$/i,K=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function q(H){return Object.prototype.toString.call(H)}function O(H){return 10===H||13===H}function U(H){return 9===H||32===H}function P(H){return 9===H||32===H||10===H||13===H}function $(H){return 44===H||91===H||93===H||123===H||125===H}function V(H){var yt;return 48<=H&&H<=57?H-48:97<=(yt=32|H)&&yt<=102?yt-97+10:-1}function F(H){return 120===H?2:117===H?4:85===H?8:0}function X(H){return 48<=H&&H<=57?H-48:-1}function Ce(H){return 48===H?"\0":97===H?"\x07":98===H?"\b":116===H||9===H?"\t":110===H?"\n":118===H?"\v":102===H?"\f":114===H?"\r":101===H?"\x1b":32===H?" ":34===H?'"':47===H?"/":92===H?"\\":78===H?"\x85":95===H?"\xa0":76===H?"\u2028":80===H?"\u2029":""}function Me(H){return H<=65535?String.fromCharCode(H):String.fromCharCode(55296+(H-65536>>10),56320+(H-65536&1023))}for(var Re=new Array(256),ze=new Array(256),Pe=0;Pe<256;Pe++)Re[Pe]=Ce(Pe)?1:0,ze[Pe]=Ce(Pe);function Tt(H,yt){this.input=H,this.filename=yt.filename||null,this.schema=yt.schema||W,this.onWarning=yt.onWarning||null,this.legacy=yt.legacy||!1,this.json=yt.json||!1,this.listener=yt.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=H.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function St(H,yt){return new ee(yt,new it(H.filename,H.input,H.position,H.line,H.position-H.lineStart))}function ht(H,yt){throw St(H,yt)}function It(H,yt){H.onWarning&&H.onWarning.call(null,St(H,yt))}var mt={YAML:function(yt,Lt,Kt){var Vt,wn,Ne;null!==yt.version&&ht(yt,"duplication of %YAML directive"),1!==Kt.length&&ht(yt,"YAML directive accepts exactly one argument"),null===(Vt=/^([0-9]+)\.([0-9]+)$/.exec(Kt[0]))&&ht(yt,"ill-formed argument of the YAML directive"),wn=parseInt(Vt[1],10),Ne=parseInt(Vt[2],10),1!==wn&&ht(yt,"unacceptable YAML version of the document"),yt.version=Kt[0],yt.checkLineBreaks=Ne<2,1!==Ne&&2!==Ne&&It(yt,"unsupported YAML version of the document")},TAG:function(yt,Lt,Kt){var Vt,wn;2!==Kt.length&&ht(yt,"TAG directive accepts exactly two arguments"),wn=Kt[1],Y.test(Vt=Kt[0])||ht(yt,"ill-formed tag handle (first argument) of the TAG directive"),R.call(yt.tagMap,Vt)&&ht(yt,'there is a previously declared suffix for "'+Vt+'" tag handle'),K.test(wn)||ht(yt,"ill-formed tag prefix (second argument) of the TAG directive"),yt.tagMap[Vt]=wn}};function Zt(H,yt,Lt,Kt){var Vt,wn,Ne,jt;if(yt1&&(H.result+=ve.repeat("\n",yt-1))}function Wi(H,yt){var Lt,nn,Kt=H.tag,Vt=H.anchor,wn=[],jt=!1;for(null!==H.anchor&&(H.anchorMap[H.anchor]=wn),nn=H.input.charCodeAt(H.position);0!==nn&&45===nn&&P(H.input.charCodeAt(H.position+1));)if(jt=!0,H.position++,Vn(H,!0,-1)&&H.lineIndent<=yt)wn.push(null),nn=H.input.charCodeAt(H.position);else if(Lt=H.line,de(H,yt,v,!1,!0),wn.push(H.result),Vn(H,!0,-1),nn=H.input.charCodeAt(H.position),(H.line===Lt||H.lineIndent>yt)&&0!==nn)ht(H,"bad indentation of a sequence entry");else if(H.lineIndentyt?nn=1:H.lineIndent===yt?nn=0:H.lineIndentyt?nn=1:H.lineIndent===yt?nn=0:H.lineIndentyt)&&(de(H,yt,g,!0,Vt)&&(dt?In=H.result:gn=H.result),dt||(pn(H,yn,mn,sn,In,gn,wn,Ne),sn=In=gn=null),Vn(H,!0,-1),Ht=H.input.charCodeAt(H.position)),H.lineIndent>yt&&0!==Ht)ht(H,"bad indentation of a mapping entry");else if(H.lineIndent=0))break;0===mn?ht(H,"bad explicit indentation width of a block scalar; it cannot be less than one"):Ne?ht(H,"repeat of an indentation width identifier"):(jt=yt+mn-1,Ne=!0)}if(U(sn)){do{sn=H.input.charCodeAt(++H.position)}while(U(sn));if(35===sn)do{sn=H.input.charCodeAt(++H.position)}while(!O(sn)&&0!==sn)}for(;0!==sn;){for(Tn(H),H.lineIndent=0,sn=H.input.charCodeAt(H.position);(!Ne||H.lineIndentjt&&(jt=H.lineIndent),O(sn))nn++;else{if(H.lineIndent0){for(Vt=Ne,wn=0;Vt>0;Vt--)(Ne=V(jt=H.input.charCodeAt(++H.position)))>=0?wn=(wn<<4)+Ne:ht(H,"expected hexadecimal character");H.result+=Me(wn),H.position++}else ht(H,"unknown escape sequence");Lt=Kt=H.position}else O(jt)?(Zt(H,Lt,Kt,!0),pr(H,Vn(H,!1,yt)),Lt=Kt=H.position):H.position===H.lineStart&&wi(H)?ht(H,"unexpected end of the document within a double quoted scalar"):(H.position++,Kt=H.position)}ht(H,"unexpected end of the stream within a double quoted scalar")}(H,dt)?mn=!0:function We(H){var yt,Lt,Kt;if(42!==(Kt=H.input.charCodeAt(H.position)))return!1;for(Kt=H.input.charCodeAt(++H.position),yt=H.position;0!==Kt&&!P(Kt)&&!$(Kt);)Kt=H.input.charCodeAt(++H.position);return H.position===yt&&ht(H,"name of an alias node must contain at least one character"),Lt=H.input.slice(yt,H.position),H.anchorMap.hasOwnProperty(Lt)||ht(H,'unidentified alias "'+Lt+'"'),H.result=H.anchorMap[Lt],Vn(H,!0,-1),!0}(H)?(mn=!0,(null!==H.tag||null!==H.anchor)&&ht(H,"alias node should not have any properties")):function Ri(H,yt,Lt){var Vt,wn,Ne,jt,nn,yn,mn,gn,sn=H.kind,In=H.result;if(P(gn=H.input.charCodeAt(H.position))||$(gn)||35===gn||38===gn||42===gn||33===gn||124===gn||62===gn||39===gn||34===gn||37===gn||64===gn||96===gn||(63===gn||45===gn)&&(P(Vt=H.input.charCodeAt(H.position+1))||Lt&&$(Vt)))return!1;for(H.kind="scalar",H.result="",wn=Ne=H.position,jt=!1;0!==gn;){if(58===gn){if(P(Vt=H.input.charCodeAt(H.position+1))||Lt&&$(Vt))break}else if(35===gn){if(P(H.input.charCodeAt(H.position-1)))break}else{if(H.position===H.lineStart&&wi(H)||Lt&&$(gn))break;if(O(gn)){if(nn=H.line,yn=H.lineStart,mn=H.lineIndent,Vn(H,!1,-1),H.lineIndent>=yt){jt=!0,gn=H.input.charCodeAt(H.position);continue}H.position=Ne,H.line=nn,H.lineStart=yn,H.lineIndent=mn;break}}jt&&(Zt(H,wn,Ne,!1),pr(H,H.line-nn),wn=Ne=H.position,jt=!1),U(gn)||(Ne=H.position+1),gn=H.input.charCodeAt(++H.position)}return Zt(H,wn,Ne,!1),!!H.result||(H.kind=sn,H.result=In,!1)}(H,dt,D===Lt)&&(mn=!0,null===H.tag&&(H.tag="?")),null!==H.anchor&&(H.anchorMap[H.anchor]=H.result)):0===nn&&(mn=jt&&Wi(H,pt))),null!==H.tag&&"!"!==H.tag)if("?"===H.tag){for(null!==H.result&&"scalar"!==H.kind&&ht(H,'unacceptable node kind for ! tag; it should be "scalar", not "'+H.kind+'"'),sn=0,In=H.implicitTypes.length;sn tag; it should be "'+gn.kind+'", not "'+H.kind+'"'),gn.resolve(H.result)?(H.result=gn.construct(H.result),null!==H.anchor&&(H.anchorMap[H.anchor]=H.result)):ht(H,"cannot resolve a node with !<"+H.tag+"> explicit tag")):ht(H,"unknown tag !<"+H.tag+">");return null!==H.listener&&H.listener("close",H),null!==H.tag||null!==H.anchor||mn}function xe(H){var Lt,Kt,Vt,Ne,yt=H.position,wn=!1;for(H.version=null,H.checkLineBreaks=H.legacy,H.tagMap={},H.anchorMap={};0!==(Ne=H.input.charCodeAt(H.position))&&(Vn(H,!0,-1),Ne=H.input.charCodeAt(H.position),!(H.lineIndent>0||37!==Ne));){for(wn=!0,Ne=H.input.charCodeAt(++H.position),Lt=H.position;0!==Ne&&!P(Ne);)Ne=H.input.charCodeAt(++H.position);for(Vt=[],(Kt=H.input.slice(Lt,H.position)).length<1&&ht(H,"directive name must not be less than one character in length");0!==Ne;){for(;U(Ne);)Ne=H.input.charCodeAt(++H.position);if(35===Ne){do{Ne=H.input.charCodeAt(++H.position)}while(0!==Ne&&!O(Ne));break}if(O(Ne))break;for(Lt=H.position;0!==Ne&&!P(Ne);)Ne=H.input.charCodeAt(++H.position);Vt.push(H.input.slice(Lt,H.position))}0!==Ne&&Tn(H),R.call(mt,Kt)?mt[Kt](H,Kt,Vt):It(H,'unknown document directive "'+Kt+'"')}Vn(H,!0,-1),0===H.lineIndent&&45===H.input.charCodeAt(H.position)&&45===H.input.charCodeAt(H.position+1)&&45===H.input.charCodeAt(H.position+2)?(H.position+=3,Vn(H,!0,-1)):wn&&ht(H,"directives end mark is expected"),de(H,H.lineIndent-1,g,!1,!0),Vn(H,!0,-1),H.checkLineBreaks&&T.test(H.input.slice(yt,H.position))&&It(H,"non-ASCII line breaks are interpreted as content"),H.documents.push(H.result),H.position===H.lineStart&&wi(H)?46===H.input.charCodeAt(H.position)&&(H.position+=3,Vn(H,!0,-1)):H.position"u"&&(Lt=yt,yt=null);var Kt=Le(H,Lt);if("function"!=typeof yt)return Kt;for(var Vt=0,wn=Kt.length;Vt"u"&&(Lt=yt,yt=null),et(H,yt,ve.extend({schema:he},Lt))},fn.exports.safeLoad=function si(H,yt){return Ot(H,ve.extend({schema:he},yt))}},48:(fn,Gn,Ye)=>{"use strict";var ve=Ye(997);function ee(it,he,W,R,D){this.name=it,this.buffer=he,this.position=W,this.line=R,this.column=D}ee.prototype.getSnippet=function(he,W){var R,D,S,v,g;if(!this.buffer)return null;for(he=he||4,W=W||75,R="",D=this.position;D>0&&-1==="\0\r\n\x85\u2028\u2029".indexOf(this.buffer.charAt(D-1));)if(this.position-(D-=1)>W/2-1){R=" ... ",D+=5;break}for(S="",v=this.position;vW/2-1){S=" ... ",v-=5;break}return g=this.buffer.slice(D,v),ve.repeat(" ",he)+R+g+S+"\n"+ve.repeat(" ",he+this.position-D+R.length)+"^"},ee.prototype.toString=function(he){var W,R="";return this.name&&(R+='in "'+this.name+'" '),R+="at line "+(this.line+1)+", column "+(this.column+1),he||(W=this.getSnippet())&&(R+=":\n"+W),R},fn.exports=ee},372:(fn,Gn,Ye)=>{"use strict";var ve=Ye(997),ee=Ye(314),it=Ye(647);function he(D,S,v){var g=[];return D.include.forEach(function(_){v=he(_,S,v)}),D[S].forEach(function(_){v.forEach(function(y,b){y.tag===_.tag&&y.kind===_.kind&&g.push(b)}),v.push(_)}),v.filter(function(_,y){return-1===g.indexOf(y)})}function R(D){this.include=D.include||[],this.implicit=D.implicit||[],this.explicit=D.explicit||[],this.implicit.forEach(function(S){if(S.loadKind&&"scalar"!==S.loadKind)throw new ee("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=he(this,"implicit",[]),this.compiledExplicit=he(this,"explicit",[]),this.compiledTypeMap=function W(){var S,v,D={scalar:{},sequence:{},mapping:{},fallback:{}};function g(_){D[_.kind][_.tag]=D.fallback[_.tag]=_}for(S=0,v=arguments.length;S{"use strict";var ve=Ye(372);fn.exports=new ve({include:[Ye(147)]})},94:(fn,Gn,Ye)=>{"use strict";var ve=Ye(372);fn.exports=ve.DEFAULT=new ve({include:[Ye(31)],explicit:[Ye(771),Ye(632),Ye(716)]})},31:(fn,Gn,Ye)=>{"use strict";var ve=Ye(372);fn.exports=new ve({include:[Ye(192)],implicit:[Ye(934),Ye(996)],explicit:[Ye(486),Ye(166),Ye(711),Ye(738)]})},746:(fn,Gn,Ye)=>{"use strict";var ve=Ye(372);fn.exports=new ve({explicit:[Ye(464),Ye(322),Ye(71)]})},147:(fn,Gn,Ye)=>{"use strict";var ve=Ye(372);fn.exports=new ve({include:[Ye(746)],implicit:[Ye(568),Ye(911),Ye(877),Ye(615)]})},647:(fn,Gn,Ye)=>{"use strict";var ve=Ye(314),ee=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],it=["scalar","sequence","mapping"];fn.exports=function W(R,D){if(D=D||{},Object.keys(D).forEach(function(S){if(-1===ee.indexOf(S))throw new ve('Unknown option "'+S+'" is met in definition of "'+R+'" YAML type.')}),this.tag=R,this.kind=D.kind||null,this.resolve=D.resolve||function(){return!0},this.construct=D.construct||function(S){return S},this.instanceOf=D.instanceOf||null,this.predicate=D.predicate||null,this.represent=D.represent||null,this.defaultStyle=D.defaultStyle||null,this.styleAliases=function he(R){var D={};return null!==R&&Object.keys(R).forEach(function(S){R[S].forEach(function(v){D[String(v)]=S})}),D}(D.styleAliases||null),-1===it.indexOf(this.kind))throw new ve('Unknown kind "'+this.kind+'" is specified for "'+R+'" YAML type.')}},486:(fn,Gn,Ye)=>{"use strict";var ve;try{ve=Ye(172).lW}catch{}var it=Ye(647),he="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";fn.exports=new it("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function W(v){if(null===v)return!1;var g,_,y=0,b=v.length,x=he;for(_=0;_64)){if(g<0)return!1;y+=6}return y%8==0},construct:function R(v){var g,_,y=v.replace(/[\r\n=]/g,""),b=y.length,x=he,T=0,j=[];for(g=0;g>16&255),j.push(T>>8&255),j.push(255&T)),T=T<<6|x.indexOf(y.charAt(g));return 0==(_=b%4*6)?(j.push(T>>16&255),j.push(T>>8&255),j.push(255&T)):18===_?(j.push(T>>10&255),j.push(T>>2&255)):12===_&&j.push(T>>4&255),ve?ve.from?ve.from(j):new ve(j):j},predicate:function S(v){return ve&&ve.isBuffer(v)},represent:function D(v){var y,b,g="",_=0,x=v.length,T=he;for(y=0;y>18&63],g+=T[_>>12&63],g+=T[_>>6&63],g+=T[63&_]),_=(_<<8)+v[y];return 0==(b=x%3)?(g+=T[_>>18&63],g+=T[_>>12&63],g+=T[_>>6&63],g+=T[63&_]):2===b?(g+=T[_>>10&63],g+=T[_>>4&63],g+=T[_<<2&63],g+=T[64]):1===b&&(g+=T[_>>2&63],g+=T[_<<4&63],g+=T[64],g+=T[64]),g}})},911:(fn,Gn,Ye)=>{"use strict";var ve=Ye(647);fn.exports=new ve("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function ee(W){if(null===W)return!1;var R=W.length;return 4===R&&("true"===W||"True"===W||"TRUE"===W)||5===R&&("false"===W||"False"===W||"FALSE"===W)},construct:function it(W){return"true"===W||"True"===W||"TRUE"===W},predicate:function he(W){return"[object Boolean]"===Object.prototype.toString.call(W)},represent:{lowercase:function(W){return W?"true":"false"},uppercase:function(W){return W?"TRUE":"FALSE"},camelcase:function(W){return W?"True":"False"}},defaultStyle:"lowercase"})},615:(fn,Gn,Ye)=>{"use strict";var ve=Ye(997),ee=Ye(647),it=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),R=/^[-+]?[0-9]+e/;fn.exports=new ee("tag:yaml.org,2002:float",{kind:"scalar",resolve:function he(v){return!(null===v||!it.test(v)||"_"===v[v.length-1])},construct:function W(v){var g,_,y,b;return _="-"===(g=v.replace(/_/g,"").toLowerCase())[0]?-1:1,b=[],"+-".indexOf(g[0])>=0&&(g=g.slice(1)),".inf"===g?1===_?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===g?NaN:g.indexOf(":")>=0?(g.split(":").forEach(function(x){b.unshift(parseFloat(x,10))}),g=0,y=1,b.forEach(function(x){g+=x*y,y*=60}),_*g):_*parseFloat(g,10)},predicate:function S(v){return"[object Number]"===Object.prototype.toString.call(v)&&(v%1!=0||ve.isNegativeZero(v))},represent:function D(v,g){var _;if(isNaN(v))switch(g){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===v)switch(g){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===v)switch(g){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(ve.isNegativeZero(v))return"-0.0";return _=v.toString(10),R.test(_)?_.replace("e",".e"):_},defaultStyle:"lowercase"})},877:(fn,Gn,Ye)=>{"use strict";var ve=Ye(997),ee=Ye(647);function it(v){return 48<=v&&v<=57||65<=v&&v<=70||97<=v&&v<=102}function he(v){return 48<=v&&v<=55}function W(v){return 48<=v&&v<=57}fn.exports=new ee("tag:yaml.org,2002:int",{kind:"scalar",resolve:function R(v){if(null===v)return!1;var b,g=v.length,_=0,y=!1;if(!g)return!1;if(("-"===(b=v[_])||"+"===b)&&(b=v[++_]),"0"===b){if(_+1===g)return!0;if("b"===(b=v[++_])){for(_++;_=0?"0b"+v.toString(2):"-0b"+v.toString(2).slice(1)},octal:function(v){return v>=0?"0"+v.toString(8):"-0"+v.toString(8).slice(1)},decimal:function(v){return v.toString(10)},hexadecimal:function(v){return v>=0?"0x"+v.toString(16).toUpperCase():"-0x"+v.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},716:(fn,Gn,Ye)=>{"use strict";var ve;try{ve=Ye(797)}catch{typeof window<"u"&&(ve=window.esprima)}var it=Ye(647);fn.exports=new it("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function he(S){if(null===S)return!1;try{var g=ve.parse("("+S+")",{range:!0});return!("Program"!==g.type||1!==g.body.length||"ExpressionStatement"!==g.body[0].type||"ArrowFunctionExpression"!==g.body[0].expression.type&&"FunctionExpression"!==g.body[0].expression.type)}catch{return!1}},construct:function W(S){var y,v="("+S+")",g=ve.parse(v,{range:!0}),_=[];if("Program"!==g.type||1!==g.body.length||"ExpressionStatement"!==g.body[0].type||"ArrowFunctionExpression"!==g.body[0].expression.type&&"FunctionExpression"!==g.body[0].expression.type)throw new Error("Failed to resolve function");return g.body[0].expression.params.forEach(function(b){_.push(b.name)}),y=g.body[0].expression.body.range,new Function(_,"BlockStatement"===g.body[0].expression.body.type?v.slice(y[0]+1,y[1]-1):"return "+v.slice(y[0],y[1]))},predicate:function D(S){return"[object Function]"===Object.prototype.toString.call(S)},represent:function R(S){return S.toString()}})},632:(fn,Gn,Ye)=>{"use strict";var ve=Ye(647);fn.exports=new ve("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:function ee(R){if(null===R||0===R.length)return!1;var D=R,S=/\/([gim]*)$/.exec(R),v="";return!("/"===D[0]&&(S&&(v=S[1]),v.length>3||"/"!==D[D.length-v.length-1]))},construct:function it(R){var D=R,S=/\/([gim]*)$/.exec(R),v="";return"/"===D[0]&&(S&&(v=S[1]),D=D.slice(1,D.length-v.length-1)),new RegExp(D,v)},predicate:function W(R){return"[object RegExp]"===Object.prototype.toString.call(R)},represent:function he(R){var D="/"+R.source+"/";return R.global&&(D+="g"),R.multiline&&(D+="m"),R.ignoreCase&&(D+="i"),D}})},771:(fn,Gn,Ye)=>{"use strict";var ve=Ye(647);fn.exports=new ve("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:function ee(){return!0},construct:function it(){},predicate:function W(R){return typeof R>"u"},represent:function he(){return""}})},71:(fn,Gn,Ye)=>{"use strict";var ve=Ye(647);fn.exports=new ve("tag:yaml.org,2002:map",{kind:"mapping",construct:function(ee){return null!==ee?ee:{}}})},996:(fn,Gn,Ye)=>{"use strict";var ve=Ye(647);fn.exports=new ve("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function ee(it){return"<<"===it||null===it}})},568:(fn,Gn,Ye)=>{"use strict";var ve=Ye(647);fn.exports=new ve("tag:yaml.org,2002:null",{kind:"scalar",resolve:function ee(W){if(null===W)return!0;var R=W.length;return 1===R&&"~"===W||4===R&&("null"===W||"Null"===W||"NULL"===W)},construct:function it(){return null},predicate:function he(W){return null===W},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},166:(fn,Gn,Ye)=>{"use strict";var ve=Ye(647),ee=Object.prototype.hasOwnProperty,it=Object.prototype.toString;fn.exports=new ve("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function he(R){if(null===R)return!0;var S,v,g,_,y,D=[],b=R;for(S=0,v=b.length;S{"use strict";var ve=Ye(647),ee=Object.prototype.toString;fn.exports=new ve("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function it(W){if(null===W)return!0;var R,D,S,v,g,_=W;for(g=new Array(_.length),R=0,D=_.length;R{"use strict";var ve=Ye(647);fn.exports=new ve("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(ee){return null!==ee?ee:[]}})},738:(fn,Gn,Ye)=>{"use strict";var ve=Ye(647),ee=Object.prototype.hasOwnProperty;fn.exports=new ve("tag:yaml.org,2002:set",{kind:"mapping",resolve:function it(W){if(null===W)return!0;var R,D=W;for(R in D)if(ee.call(D,R)&&null!==D[R])return!1;return!0},construct:function he(W){return null!==W?W:{}}})},464:(fn,Gn,Ye)=>{"use strict";var ve=Ye(647);fn.exports=new ve("tag:yaml.org,2002:str",{kind:"scalar",construct:function(ee){return null!==ee?ee:""}})},934:(fn,Gn,Ye)=>{"use strict";var ve=Ye(647),ee=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),it=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");fn.exports=new ve("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function he(D){return null!==D&&(null!==ee.exec(D)||null!==it.exec(D))},construct:function W(D){var S,v,g,_,y,b,x,q,T=0,j=null;if(null===(S=ee.exec(D))&&(S=it.exec(D)),null===S)throw new Error("Date resolve error");if(v=+S[1],g=+S[2]-1,_=+S[3],!S[4])return new Date(Date.UTC(v,g,_));if(y=+S[4],b=+S[5],x=+S[6],S[7]){for(T=S[7].slice(0,3);T.length<3;)T+="0";T=+T}return S[9]&&(j=6e4*(60*+S[10]+ +(S[11]||0)),"-"===S[9]&&(j=-j)),q=new Date(Date.UTC(v,g,_,y,b,x,T)),j&&q.setTime(q.getTime()-j),q},instanceOf:Date,represent:function R(D){return D.toISOString()}})}},fn=>{fn(fn.s=440)}]); \ No newline at end of file diff --git a/console/ui/dist/prod/main.9fe54d698b3be879.js b/console/ui/dist/prod/main.9fe54d698b3be879.js new file mode 100644 index 000000000..c1c38cd30 --- /dev/null +++ b/console/ui/dist/prod/main.9fe54d698b3be879.js @@ -0,0 +1 @@ +(self.webpackChunkui=self.webpackChunkui||[]).push([[179],{440:(Yt,Tn,De)=>{"use strict";function rt(t){return"function"==typeof t}let Oe=!1;const dt={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const n=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+n.stack)}else Oe&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Oe=t},get useDeprecatedSynchronousErrorHandling(){return Oe}};function Ge(t){setTimeout(()=>{throw t},0)}const _e={closed:!0,next(t){},error(t){if(dt.useDeprecatedSynchronousErrorHandling)throw t;Ge(t)},complete(){}},et=Array.isArray||(t=>t&&"number"==typeof t.length);function Ve(t){return null!==t&&"object"==typeof t}const se=(()=>{function t(n){return Error.call(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n,this}return t.prototype=Object.create(Error.prototype),t})();class ue{constructor(n){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,n&&(this._ctorUnsubscribe=!0,this._unsubscribe=n)}unsubscribe(){let n;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof ue)e.remove(this);else if(null!==e)for(let s=0;sn.concat(e instanceof se?e.errors:e),[])}ue.EMPTY=((t=new ue).closed=!0,t);const D="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class O extends ue{constructor(n,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=_e;break;case 1:if(!n){this.destination=_e;break}if("object"==typeof n){n instanceof O?(this.syncErrorThrowable=n.syncErrorThrowable,this.destination=n,n.add(this)):(this.syncErrorThrowable=!0,this.destination=new te(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new te(this,n,e,i)}}[D](){return this}static create(n,e,i){const r=new O(n,e,i);return r.syncErrorThrowable=!1,r}next(n){this.isStopped||this._next(n)}error(n){this.isStopped||(this.isStopped=!0,this._error(n))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(n){this.destination.next(n)}_error(n){this.destination.error(n),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:n}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=n,this}}class te extends O{constructor(n,e,i,r){super(),this._parentSubscriber=n;let o,s=this;rt(e)?o=e:e&&(o=e.next,i=e.error,r=e.complete,e!==_e&&(s=Object.create(e),rt(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=i,this._complete=r}next(n){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;dt.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,n)&&this.unsubscribe():this.__tryOrUnsub(this._next,n)}}error(n){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=dt;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,n),this.unsubscribe()):(this.__tryOrUnsub(this._error,n),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=n,e.syncErrorThrown=!0):Ge(n),this.unsubscribe();else{if(this.unsubscribe(),i)throw n;Ge(n)}}}complete(){if(!this.isStopped){const{_parentSubscriber:n}=this;if(this._complete){const e=()=>this._complete.call(this._context);dt.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?(this.__tryOrSetError(n,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(n,e){try{n.call(this._context,e)}catch(i){if(this.unsubscribe(),dt.useDeprecatedSynchronousErrorHandling)throw i;Ge(i)}}__tryOrSetError(n,e,i){if(!dt.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return dt.useDeprecatedSynchronousErrorHandling?(n.syncErrorValue=r,n.syncErrorThrown=!0,!0):(Ge(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:n}=this;this._context=null,this._parentSubscriber=null,n.unsubscribe()}}const kt="function"==typeof Symbol&&Symbol.observable||"@@observable";function jt(t){return t}function wn(t){return 0===t.length?jt:1===t.length?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}let rn=(()=>{class t{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:o}=this,s=function Je(t,n,e){if(t){if(t instanceof O)return t;if(t[D])return t[D]()}return t||n||e?new O(t,n,e):new O(_e)}(e,i,r);if(s.add(o?o.call(s,this.source):this.source||dt.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),dt.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(i){dt.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function Me(t){for(;t;){const{closed:n,destination:e,isStopped:i}=t;if(n||i)return!1;t=e&&e instanceof O?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=Mi(i))((r,o)=>{let s;s=this.subscribe(a=>{try{e(a)}catch(l){o(l),s&&s.unsubscribe()}},o,r)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[kt](){return this}pipe(...e){return 0===e.length?this:wn(e)(this)}toPromise(e){return new(e=Mi(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return t.create=n=>new t(n),t})();function Mi(t){if(t||(t=dt.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const Xr=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class hs extends ue{constructor(n,e){super(),this.subject=n,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const n=this.subject,e=n.observers;if(this.subject=null,!e||0===e.length||n.isStopped||n.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class Ya extends O{constructor(n){super(n),this.destination=n}}let tr=(()=>{class t extends rn{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[D](){return new Ya(this)}lift(e){const i=new mu(this,this);return i.operator=e,i}next(e){if(this.closed)throw new Xr;if(!this.isStopped){const{observers:i}=this,r=i.length,o=i.slice();for(let s=0;snew mu(n,e),t})();class mu extends tr{constructor(n,e){super(),this.destination=n,this.source=e}next(n){const{destination:e}=this;e&&e.next&&e.next(n)}error(n){const{destination:e}=this;e&&e.error&&this.destination.error(n)}complete(){const{destination:n}=this;n&&n.complete&&this.destination.complete()}_subscribe(n){const{source:e}=this;return e?this.source.subscribe(n):ue.EMPTY}}function Sa(t){return t&&"function"==typeof t.schedule}function yn(t,n){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new Cd(t,n))}}class Cd{constructor(n,e){this.project=n,this.thisArg=e}call(n,e){return e.subscribe(new kd(n,this.project,this.thisArg))}}class kd extends O{constructor(n,e,i){super(n),this.project=e,this.count=0,this.thisArg=i||this}_next(n){let e;try{e=this.project.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const Kn=t=>n=>{for(let e=0,i=t.length;et&&"number"==typeof t.length&&"function"!=typeof t;function pl(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const nc=t=>{if(t&&"function"==typeof t[kt])return(t=>n=>{const e=t[kt]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(n)})(t);if(Zr(t))return Kn(t);if(pl(t))return(t=>n=>(t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,Ge),n))(t);if(t&&"function"==typeof t[Ro])return(t=>n=>{const e=t[Ro]();for(;;){let i;try{i=e.next()}catch(r){return n.error(r),n}if(i.done){n.complete();break}if(n.next(i.value),n.closed)break}return"function"==typeof e.return&&n.add(()=>{e.return&&e.return()}),n})(t);{const e=`You provided ${Ve(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function Oc(t,n){return new rn(e=>{const i=new ue;let r=0;return i.add(n.schedule(function(){r!==t.length?(e.next(t[r++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function co(t,n){return n?function da(t,n){if(null!=t){if(function vu(t){return t&&"function"==typeof t[kt]}(t))return function Sd(t,n){return new rn(e=>{const i=new ue;return i.add(n.schedule(()=>{const r=t[kt]();i.add(r.subscribe({next(o){i.add(n.schedule(()=>e.next(o)))},error(o){i.add(n.schedule(()=>e.error(o)))},complete(){i.add(n.schedule(()=>e.complete()))}}))})),i})}(t,n);if(pl(t))return function Nc(t,n){return new rn(e=>{const i=new ue;return i.add(n.schedule(()=>t.then(r=>{i.add(n.schedule(()=>{e.next(r),i.add(n.schedule(()=>e.complete()))}))},r=>{i.add(n.schedule(()=>e.error(r)))}))),i})}(t,n);if(Zr(t))return Oc(t,n);if(function Ja(t){return t&&"function"==typeof t[Ro]}(t)||"string"==typeof t)return function Dd(t,n){if(!t)throw new Error("Iterable cannot be null");return new rn(e=>{const i=new ue;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(n.schedule(()=>{r=t[Ro](),i.add(n.schedule(function(){if(e.closed)return;let o,s;try{const a=r.next();o=a.value,s=a.done}catch(a){return void e.error(a)}s?e.complete():(e.next(o),this.schedule())}))})),i})}(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,n):t instanceof rn?t:new rn(nc(t))}class ml extends O{constructor(n){super(),this.parent=n}_next(n){this.parent.notifyNext(n)}_error(n){this.parent.notifyError(n),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class W extends O{notifyNext(n){this.destination.next(n)}notifyError(n){this.destination.error(n)}notifyComplete(){this.destination.complete()}}function Ne(t,n){if(!n.closed)return t instanceof rn?t.subscribe(n):nc(t)(n)}function nt(t,n,e=Number.POSITIVE_INFINITY){return"function"==typeof n?i=>i.pipe(nt((r,o)=>co(t(r,o)).pipe(yn((s,a)=>n(r,s,o,a))),e)):("number"==typeof n&&(e=n),i=>i.lift(new zt(t,e)))}class zt{constructor(n,e=Number.POSITIVE_INFINITY){this.project=n,this.concurrent=e}call(n,e){return e.subscribe(new Qt(n,this.project,this.concurrent))}}class Qt extends W{constructor(n,e,i=Number.POSITIVE_INFINITY){super(n),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(n){this.active0?this._next(n.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function A(t=Number.POSITIVE_INFINITY){return nt(jt,t)}function st(t,n){return n?Oc(t,n):new rn(Kn(t))}function Tt(...t){let n=Number.POSITIVE_INFINITY,e=null,i=t[t.length-1];return Sa(i)?(e=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===e&&1===t.length&&t[0]instanceof rn?t[0]:A(n)(st(t,e))}function Ut(){return function(n){return n.lift(new Vt(n))}}class Vt{constructor(n){this.connectable=n}call(n,e){const{connectable:i}=this;i._refCount++;const r=new mn(n,i),o=e.subscribe(r);return r.closed||(r.connection=i.connect()),o}}class mn extends O{constructor(n,e){super(n),this.connectable=e}_unsubscribe(){const{connectable:n}=this;if(!n)return void(this.connection=null);this.connectable=null;const e=n._refCount;if(e<=0)return void(this.connection=null);if(n._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,r=n._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class pe extends rn{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let n=this._connection;return n||(this._isComplete=!1,n=this._connection=new ue,n.add(this.source.subscribe(new Ft(this.getSubject(),this))),n.closed&&(this._connection=null,n=ue.EMPTY)),n}refCount(){return Ut()(this)}}const yt=(()=>{const t=pe.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class Ft extends Ya{constructor(n,e){super(n),this.connectable=e}_error(n){this._unsubscribe(),super._error(n)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const n=this.connectable;if(n){this.connectable=null;const e=n._connection;n._refCount=0,n._subject=null,n._connection=null,e&&e.unsubscribe()}}}class dn{constructor(n,e){this.subjectFactory=n,this.selector=e}call(n,e){const{selector:i}=this,r=this.subjectFactory(),o=i(r).subscribe(n);return o.add(e.subscribe(r)),o}}function qt(){return new tr}function We(){return t=>Ut()(function Pt(t,n){return function(i){let r;if(r="function"==typeof t?t:function(){return t},"function"==typeof n)return i.lift(new dn(r,n));const o=Object.create(i,yt);return o.source=i,o.subjectFactory=r,o}}(qt)(t))}function Xe(t){for(let n in t)if(t[n]===Xe)return n;throw Error("Could not find renamed property on target object.")}function bt(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function Cn(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Cn).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function jr(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const Y0=Xe({__forward_ref__:Xe});function Gi(t){return t.__forward_ref__=Gi,t.toString=function(){return Cn(this())},t}function wi(t){return tT(t)?t():t}function tT(t){return"function"==typeof t&&t.hasOwnProperty(Y0)&&t.__forward_ref__===Gi}function nT(t){return t&&!!t.\u0275providers}const U_="https://g.co/ng/security#xss";class Ot extends Error{constructor(n,e){super(G_(n,e)),this.code=n}}function G_(t,n){return`NG0${Math.abs(t)}${n?": "+n.trim():""}`}function Ri(t){return"string"==typeof t?t:null==t?"":String(t)}function W_(t,n){throw new Ot(-201,!1)}function jc(t,n){null==t&&function to(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(n,t,null,"!=")}function Et(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Ci(t){return{providers:t.providers||[],imports:t.imports||[]}}function q_(t){return _L(t,X_)||_L(t,wL)}function _L(t,n){return t.hasOwnProperty(n)?t[n]:null}function xL(t){return t&&(t.hasOwnProperty(iT)||t.hasOwnProperty(hge))?t[iT]:null}const X_=Xe({\u0275prov:Xe}),iT=Xe({\u0275inj:Xe}),wL=Xe({ngInjectableDef:Xe}),hge=Xe({ngInjectorDef:Xe});var ki=(()=>((ki=ki||{})[ki.Default=0]="Default",ki[ki.Host=1]="Host",ki[ki.Self=2]="Self",ki[ki.SkipSelf=4]="SkipSelf",ki[ki.Optional=8]="Optional",ki))();let rT;function Pc(t){const n=rT;return rT=t,n}function CL(t,n,e){const i=q_(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&ki.Optional?null:void 0!==n?n:void W_(Cn(t))}const $o=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),J0={},oT="__NG_DI_FLAG__",Y_="ngTempTokenPath",pge="ngTokenPath",mge=/\n/gm,gge="\u0275",kL="__source";let K0;function sg(t){const n=K0;return K0=t,n}function vge(t,n=ki.Default){if(void 0===K0)throw new Ot(-203,!1);return null===K0?CL(t,void 0,n):K0.get(t,n&ki.Optional?null:void 0,n)}function ct(t,n=ki.Default){return(function fge(){return rT}()||vge)(wi(t),n)}function ar(t,n=ki.Default){return ct(t,J_(n))}function J_(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function sT(t){const n=[];for(let e=0;e((Td=Td||{})[Td.OnPush=0]="OnPush",Td[Td.Default=1]="Default",Td))(),yu=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(yu||(yu={})),yu))();const kh={},Yr=[],K_=Xe({\u0275cmp:Xe}),aT=Xe({\u0275dir:Xe}),lT=Xe({\u0275pipe:Xe}),DL=Xe({\u0275mod:Xe}),Sh=Xe({\u0275fac:Xe}),Z0=Xe({__NG_ELEMENT_ID__:Xe});let xge=0;function Rt(t){return vf(()=>{const e=!0===t.standalone,i={},r={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Td.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&t.dependencies||null,getStandaloneInjector:null,selectors:t.selectors||Yr,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||yu.Emulated,id:"c"+xge++,styles:t.styles||Yr,_:null,setInput:null,schemas:t.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},o=t.dependencies,s=t.features;return r.inputs=AL(t.inputs,i),r.outputs=AL(t.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(TL).filter(EL):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(vl).filter(EL):null,r})}function TL(t){return no(t)||Ka(t)}function EL(t){return null!==t}function Di(t){return vf(()=>({type:t.type,bootstrap:t.bootstrap||Yr,declarations:t.declarations||Yr,imports:t.imports||Yr,exports:t.exports||Yr,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function AL(t,n){if(null==t)return kh;const e={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,n&&(n[r]=o)}return e}const Zt=Rt;function gl(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function no(t){return t[K_]||null}function Ka(t){return t[aT]||null}function vl(t){return t[lT]||null}function rc(t,n){const e=t[DL]||null;if(!e&&!0===n)throw new Error(`Type ${Cn(t)} does not have '\u0275mod' property.`);return e}const Dh=0,Rn=1,Ji=2,fs=3,bu=4,Ep=5,Qa=6,lg=7,ks=8,Q_=9,Z_=10,ir=11,cT=12,e1=13,ML=14,cg=15,Za=16,t1=17,ug=18,Ed=19,n1=20,IL=21,Bo=22,uT=1,FL=2,ex=7,tx=8,dg=9,yl=10;function oc(t){return Array.isArray(t)&&"object"==typeof t[uT]}function _u(t){return Array.isArray(t)&&!0===t[uT]}function dT(t){return 0!=(4&t.flags)}function i1(t){return t.componentOffset>-1}function nx(t){return 1==(1&t.flags)}function xu(t){return null!==t.template}function kge(t){return 0!=(256&t[Ji])}function Ap(t,n){return t.hasOwnProperty(Sh)?t[Sh]:null}class Tge{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Hn(){return jL}function jL(t){return t.type.prototype.ngOnChanges&&(t.setInput=Age),Ege}function Ege(){const t=LL(this),n=t?.current;if(n){const e=t.previous;if(e===kh)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function Age(t,n,e,i){const r=this.declaredInputs[e],o=LL(t)||function Mge(t,n){return t[PL]=n}(t,{previous:kh,current:null}),s=o.current||(o.current={}),a=o.previous,l=a[r];s[r]=new Tge(l&&l.currentValue,n,a===kh),t[i]=n}Hn.ngInherit=!0;const PL="__ngSimpleChanges__";function LL(t){return t[PL]||null}const Lc=function(t,n,e){},RL="svg";function Ta(t){for(;Array.isArray(t);)t=t[Dh];return t}function ix(t,n){return Ta(n[t])}function sc(t,n){return Ta(n[t.index])}function BL(t,n){return t.data[n]}function hg(t,n){return t[n]}function ac(t,n){const e=n[t];return oc(e)?e:e[Dh]}function rx(t){return 64==(64&t[Ji])}function yf(t,n){return null==n?null:t[n]}function VL(t){t[ug]=0}function fT(t,n){t[Ep]+=n;let e=t,i=t[fs];for(;null!==i&&(1===n&&1===e[Ep]||-1===n&&0===e[Ep]);)i[Ep]+=n,e=i,i=i[fs]}const $i={lFrame:KL(null),bindingsEnabled:!0};function zL(){return $i.bindingsEnabled}function Gt(){return $i.lFrame.lView}function Pr(){return $i.lFrame.tView}function $e(t){return $i.lFrame.contextLView=t,t[ks]}function Be(t){return $i.lFrame.contextLView=null,t}function Ea(){let t=UL();for(;null!==t&&64===t.type;)t=t.parent;return t}function UL(){return $i.lFrame.currentTNode}function Ad(t,n){const e=$i.lFrame;e.currentTNode=t,e.isParent=n}function pT(){return $i.lFrame.isParent}function mT(){$i.lFrame.isParent=!1}function bl(){const t=$i.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function fg(){return $i.lFrame.bindingIndex++}function Eh(t){const n=$i.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function zge(t,n){const e=$i.lFrame;e.bindingIndex=e.bindingRootIndex=t,gT(n)}function gT(t){$i.lFrame.currentDirectiveIndex=t}function XL(){return $i.lFrame.currentQueryIndex}function yT(t){$i.lFrame.currentQueryIndex=t}function Gge(t){const n=t[Rn];return 2===n.type?n.declTNode:1===n.type?t[Qa]:null}function YL(t,n,e){if(e&ki.SkipSelf){let r=n,o=t;for(;!(r=r.parent,null!==r||e&ki.Host||(r=Gge(o),null===r||(o=o[cg],10&r.type))););if(null===r)return!1;n=r,t=o}const i=$i.lFrame=JL();return i.currentTNode=n,i.lView=t,!0}function bT(t){const n=JL(),e=t[Rn];$i.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function JL(){const t=$i.lFrame,n=null===t?null:t.child;return null===n?KL(t):n}function KL(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function QL(){const t=$i.lFrame;return $i.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const ZL=QL;function _T(){const t=QL();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function _l(){return $i.lFrame.selectedIndex}function Mp(t){$i.lFrame.selectedIndex=t}function es(){const t=$i.lFrame;return BL(t.tView,t.selectedIndex)}function at(){$i.lFrame.currentNamespace=RL}function Ip(){!function Yge(){$i.lFrame.currentNamespace=null}()}function ox(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[l]<0&&(t[ug]+=65536),(a>11>16&&(3&t[Ji])===n){t[Ji]+=2048,Lc(4,a,o);try{o.call(a)}finally{Lc(5,a,o)}}}else{Lc(4,a,o);try{o.call(a)}finally{Lc(5,a,o)}}}const pg=-1;class o1{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function CT(t,n,e){let i=0;for(;in){s=o-1;break}}}for(;o>16}(t),i=n;for(;e>0;)i=i[cg],e--;return i}let kT=!0;function ux(t){const n=kT;return kT=t,n}const oR=255,sR=5;let ive=0;const Md={};function dx(t,n){const e=aR(t,n);if(-1!==e)return e;const i=n[Rn];i.firstCreatePass&&(t.injectorIndex=n.length,ST(i.data,t),ST(n,null),ST(i.blueprint,null));const r=DT(t,n),o=t.injectorIndex;if(rR(r)){const s=lx(r),a=cx(r,n),l=a[Rn].data;for(let c=0;c<8;c++)n[o+c]=a[s+c]|l[s+c]}return n[o+8]=r,o}function ST(t,n){t.push(0,0,0,0,0,0,0,0,n)}function aR(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function DT(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;null!==r;){if(i=pR(r),null===i)return pg;if(e++,r=r[cg],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return pg}function TT(t,n,e){!function rve(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Z0)&&(i=e[Z0]),null==i&&(i=e[Z0]=ive++);const r=i&oR;n.data[t+(r>>sR)]|=1<=0?n&oR:lve:n}(e);if("function"==typeof o){if(!YL(n,t,i))return i&ki.Host?lR(r,0,i):cR(n,e,i,r);try{const s=o(i);if(null!=s||i&ki.Optional)return s;W_()}finally{ZL()}}else if("number"==typeof o){let s=null,a=aR(t,n),l=pg,c=i&ki.Host?n[Za][Qa]:null;for((-1===a||i&ki.SkipSelf)&&(l=-1===a?DT(t,n):n[a+8],l!==pg&&fR(i,!1)?(s=n[Rn],a=lx(l),n=cx(l,n)):a=-1);-1!==a;){const u=n[Rn];if(hR(o,a,u.data)){const d=sve(a,n,e,s,i,c);if(d!==Md)return d}l=n[a+8],l!==pg&&fR(i,n[Rn].data[a+8]===c)&&hR(o,a,n)?(s=u,a=lx(l),n=cx(l,n)):a=-1}}return r}function sve(t,n,e,i,r,o){const s=n[Rn],a=s.data[t+8],u=hx(a,s,e,null==i?i1(a)&&kT:i!=s&&0!=(3&a.type),r&ki.Host&&o===a);return null!==u?Fp(n,s,u,a):Md}function hx(t,n,e,i,r){const o=t.providerIndexes,s=n.data,a=1048575&o,l=t.directiveStart,u=o>>20,h=r?a+u:t.directiveEnd;for(let f=i?a:a+u;f=l&&p.type===e)return f}if(r){const f=s[l];if(f&&xu(f)&&f.type===e)return l}return null}function Fp(t,n,e,i){let r=t[e];const o=n.data;if(function Zge(t){return t instanceof o1}(r)){const s=r;s.resolving&&function rge(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new Ot(-200,`Circular dependency in DI detected for ${t}${e}`)}(function eo(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Ri(t)}(o[e]));const a=ux(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Pc(s.injectImpl):null;YL(t,i,ki.Default);try{r=t[e]=s.factory(void 0,o,t,i),n.firstCreatePass&&e>=i.directiveStart&&function Kge(t,n,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const s=jL(n);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,s)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,r),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,o))}(e,o[e],n)}finally{null!==l&&Pc(l),ux(a),s.resolving=!1,ZL()}}return r}function hR(t,n,e){return!!(e[n+(t>>sR)]&1<{const n=t.prototype.constructor,e=n[Sh]||ET(n),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const o=r[Sh]||ET(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function ET(t){return tT(t)?()=>{const n=ET(wi(t));return n&&n()}:Ap(t)}function pR(t){const n=t[Rn],e=n.type;return 2===e?n.declTNode:1===e?t[Qa]:null}function Ah(t){return function ove(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let r=0;for(;r{const i=function AT(t){return function(...e){if(t){const i=t(...e);for(const r in i)this[r]=i[r]}}}(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(vg)?l[vg]:Object.defineProperty(l,vg,{value:[]})[vg];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class zn{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=Et({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Np(t,n){t.forEach(e=>Array.isArray(e)?Np(e,n):n(e))}function gR(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function fx(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function c1(t,n){const e=[];for(let i=0;i=0?t[1|i]=e:(i=~i,function fve(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(1===r)t.push(i,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>n;)t[r]=t[r-2],r--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function IT(t,n){const e=_g(t,n);if(e>=0)return t[1|e]}function _g(t,n){return function vR(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=t[o<n?r=o:i=o+1}return~(r<((Bl=Bl||{})[Bl.Important=1]="Important",Bl[Bl.DashCase=2]="DashCase",Bl))();const LT=new Map;let jve=0;const $T="__ngContext__";function el(t,n){oc(n)?(t[$T]=n[n1],function Lve(t){LT.set(t[n1],t)}(n)):t[$T]=n}let BT;function VT(t,n){return BT(t,n)}function m1(t){const n=t[fs];return _u(n)?n[fs]:n}function HT(t){return LR(t[e1])}function zT(t){return LR(t[bu])}function LR(t){for(;null!==t&&!_u(t);)t=t[bu];return t}function wg(t,n,e,i,r){if(null!=i){let o,s=!1;_u(i)?o=i:oc(i)&&(s=!0,i=i[Dh]);const a=Ta(i);0===t&&null!==e?null==r?zR(n,e,a):Op(n,e,a,r||null,!0):1===t&&null!==e?Op(n,e,a,r||null,!0):2===t?function JT(t,n,e){const i=vx(t,n);i&&function i0e(t,n,e,i){t.removeChild(n,e,i)}(t,i,n,e)}(n,a,s):3===t&&n.destroyNode(a),null!=o&&function s0e(t,n,e,i,r){const o=e[ex];o!==Ta(e)&&wg(n,t,i,o,r);for(let a=yl;a0&&(t[e-1][bu]=i[bu]);const o=fx(t,yl+n);!function Yve(t,n){g1(t,n,n[ir],2,null,null),n[Dh]=null,n[Qa]=null}(i[Rn],i);const s=o[Ed];null!==s&&s.detachView(o[Rn]),i[fs]=null,i[bu]=null,i[Ji]&=-65}return i}function BR(t,n){if(!(128&n[Ji])){const e=n[ir];e.destroyNode&&g1(t,n,e,3,null,null),function Qve(t){let n=t[e1];if(!n)return qT(t[Rn],t);for(;n;){let e=null;if(oc(n))e=n[e1];else{const i=n[yl];i&&(e=i)}if(!e){for(;n&&!n[bu]&&n!==t;)oc(n)&&qT(n[Rn],n),n=n[fs];null===n&&(n=t),oc(n)&&qT(n[Rn],n),e=n&&n[bu]}n=e}}(n)}}function qT(t,n){if(!(128&n[Ji])){n[Ji]&=-65,n[Ji]|=128,function n0e(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i=0?i[r=s]():i[r=-s].unsubscribe(),o+=2}else{const s=i[r=e[o+1]];e[o].call(s)}if(null!==i){for(let o=r+1;o-1){const{encapsulation:o}=t.data[i.directiveStart+r];if(o===yu.None||o===yu.Emulated)return null}return sc(i,e)}}(t,n.parent,e)}function Op(t,n,e,i,r){t.insertBefore(n,e,i,r)}function zR(t,n,e){t.appendChild(n,e)}function UR(t,n,e,i,r){null!==i?Op(t,n,e,i,r):zR(t,n,e)}function vx(t,n){return t.parentNode(n)}function GR(t,n,e){return qR(t,n,e)}let XT,_x,ZT,xx,qR=function WR(t,n,e){return 40&t.type?sc(t,e):null};function yx(t,n,e,i){const r=VR(t,i,n),o=n[ir],a=GR(i.parent||n[Qa],i,n);if(null!=r)if(Array.isArray(e))for(let l=0;lt,createScript:t=>t,createScriptURL:t=>t})}catch{}return _x}()?.createHTML(t)||t}function eE(){if(void 0===xx&&(xx=null,$o.trustedTypes))try{xx=$o.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return xx}function e5(t){return eE()?.createHTML(t)||t}function n5(t){return eE()?.createScriptURL(t)||t}class jp{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${U_})`}}class f0e extends jp{getTypeName(){return"HTML"}}class p0e extends jp{getTypeName(){return"Style"}}class m0e extends jp{getTypeName(){return"Script"}}class g0e extends jp{getTypeName(){return"URL"}}class v0e extends jp{getTypeName(){return"ResourceURL"}}function cc(t){return t instanceof jp?t.changingThisBreaksApplicationSecurity:t}function Id(t,n){const e=function y0e(t){return t instanceof jp&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${U_})`)}return e===n}class k0e{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString(Cg(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class S0e{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const e=this.inertDocument.createElement("template");return e.innerHTML=Cg(n),e}}const T0e=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function wx(t){return(t=String(t)).match(T0e)?t:"unsafe:"+t}function Mh(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function v1(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const r5=Mh("area,br,col,hr,img,wbr"),o5=Mh("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),s5=Mh("rp,rt"),tE=v1(r5,v1(o5,Mh("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),v1(s5,Mh("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),v1(s5,o5)),nE=Mh("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),a5=v1(nE,Mh("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Mh("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),E0e=Mh("script,style,template");class A0e{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!tE.hasOwnProperty(e))return this.sanitizedSomething=!0,!E0e.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let r=0;r"),!0}endElement(n){const e=n.nodeName.toLowerCase();tE.hasOwnProperty(e)&&!r5.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(l5(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const M0e=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,I0e=/([^\#-~ |!])/g;function l5(t){return t.replace(/&/g,"&").replace(M0e,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(I0e,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let Cx;function c5(t,n){let e=null;try{Cx=Cx||function i5(t){const n=new S0e(t);return function D0e(){try{return!!(new window.DOMParser).parseFromString(Cg(""),"text/html")}catch{return!1}}()?new k0e(n):n}(t);let i=n?String(n):"";e=Cx.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=Cx.getInertBodyElement(i)}while(i!==o);return Cg((new A0e).sanitizeChildren(iE(e)||e))}finally{if(e){const i=iE(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function iE(t){return"content"in t&&function F0e(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var ko=(()=>((ko=ko||{})[ko.NONE=0]="NONE",ko[ko.HTML=1]="HTML",ko[ko.STYLE=2]="STYLE",ko[ko.SCRIPT=3]="SCRIPT",ko[ko.URL=4]="URL",ko[ko.RESOURCE_URL=5]="RESOURCE_URL",ko))();function kx(t){const n=b1();return n?e5(n.sanitize(ko.HTML,t)||""):Id(t,"HTML")?e5(cc(t)):c5(function ZR(){return void 0!==ZT?ZT:typeof document<"u"?document:void 0}(),Ri(t))}function y1(t){const n=b1();return n?n.sanitize(ko.URL,t)||"":Id(t,"URL")?cc(t):wx(Ri(t))}function u5(t){const n=b1();if(n)return n5(n.sanitize(ko.RESOURCE_URL,t)||"");if(Id(t,"ResourceURL"))return n5(cc(t));throw new Ot(904,!1)}function b1(){const t=Gt();return t&&t[cT]}const Sx=new zn("ENVIRONMENT_INITIALIZER"),Dx=new zn("INJECTOR",-1),h5=new zn("INJECTOR_DEF_TYPES");class f5{get(n,e=J0){if(e===J0){const i=new Error(`NullInjectorError: No provider for ${Cn(n)}!`);throw i.name="NullInjectorError",i}return e}}function $0e(...t){return{\u0275providers:p5(0,t),\u0275fromNgModule:!0}}function p5(t,...n){const e=[],i=new Set;let r;return Np(n,o=>{const s=o;rE(s,e,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&m5(r,e),e}function m5(t,n){for(let e=0;e{n.push(o)})}}function rE(t,n,e,i){if(!(t=wi(t)))return!1;let r=null,o=xL(t);const s=!o&&no(t);if(o||s){if(s&&!s.standalone)return!1;r=t}else{const l=t.ngModule;if(o=xL(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)rE(c,n,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{Np(o.imports,u=>{rE(u,n,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&m5(c,n)}if(!a){const c=Ap(r)||(()=>new r);n.push({provide:r,useFactory:c,deps:Yr},{provide:h5,useValue:r,multi:!0},{provide:Sx,useValue:()=>ct(r),multi:!0})}const l=o.providers;null==l||a||oE(l,u=>{n.push(u)})}}return r!==t&&void 0!==t.providers}function oE(t,n){for(let e of t)nT(e)&&(e=e.\u0275providers),Array.isArray(e)?oE(e,n):n(e)}const B0e=Xe({provide:String,useValue:Xe});function sE(t){return null!==t&&"object"==typeof t&&B0e in t}function Pp(t){return"function"==typeof t}const aE=new zn("Set Injector scope."),Tx={},H0e={};let lE;function Ex(){return void 0===lE&&(lE=new f5),lE}class Fd{}class y5 extends Fd{get destroyed(){return this._destroyed}constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,uE(n,s=>this.processProvider(s)),this.records.set(Dx,kg(void 0,this)),r.has("environment")&&this.records.set(Fd,kg(void 0,this));const o=this.records.get(aE);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(h5.multi,Yr,ki.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();for(const n of this._onDestroyHooks)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(n){this._onDestroyHooks.push(n)}runInContext(n){this.assertNotDestroyed();const e=sg(this),i=Pc(void 0);try{return n()}finally{sg(e),Pc(i)}}get(n,e=J0,i=ki.Default){this.assertNotDestroyed(),i=J_(i);const r=sg(this),o=Pc(void 0);try{if(!(i&ki.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function q0e(t){return"function"==typeof t||"object"==typeof t&&t instanceof zn}(n)&&q_(n);a=l&&this.injectableDefInScope(l)?kg(cE(n),Tx):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(i&ki.Self?Ex():this.parent).get(n,e=i&ki.Optional&&e===J0?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Y_]=s[Y_]||[]).unshift(Cn(n)),r)throw s;return function bge(t,n,e,i){const r=t[Y_];throw n[kL]&&r.unshift(n[kL]),t.message=function _ge(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&t.charAt(1)==gge?t.slice(2):t;let r=Cn(n);if(Array.isArray(n))r=n.map(Cn).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):Cn(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(mge,"\n ")}`}("\n"+t.message,r,e,i),t[pge]=r,t[Y_]=null,t}(s,n,"R3InjectorError",this.source)}throw s}finally{Pc(o),sg(r)}}resolveInjectorInitializers(){const n=sg(this),e=Pc(void 0);try{const i=this.get(Sx.multi,Yr,ki.Self);for(const r of i)r()}finally{sg(n),Pc(e)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(Cn(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Ot(205,!1)}processProvider(n){let e=Pp(n=wi(n))?n:wi(n&&n.provide);const i=function U0e(t){return sE(t)?kg(void 0,t.useValue):kg(b5(t),Tx)}(n);if(Pp(n)||!0!==n.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=kg(void 0,Tx,!0),r.factory=()=>sT(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e){return e.value===Tx&&(e.value=H0e,e.value=e.factory()),"object"==typeof e.value&&e.value&&function W0e(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=wi(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function cE(t){const n=q_(t),e=null!==n?n.factory:Ap(t);if(null!==e)return e;if(t instanceof zn)throw new Ot(204,!1);if(t instanceof Function)return function z0e(t){const n=t.length;if(n>0)throw c1(n,"?"),new Ot(204,!1);const e=function uge(t){const n=t&&(t[X_]||t[wL]);return n?(function dge(t){if(t.hasOwnProperty("name"))return t.name;(""+t).match(/^function\s*([^\s(]+)/)}(t),n):null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new Ot(204,!1)}function b5(t,n,e){let i;if(Pp(t)){const r=wi(t);return Ap(r)||cE(r)}if(sE(t))i=()=>wi(t.useValue);else if(function v5(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...sT(t.deps||[]));else if(function g5(t){return!(!t||!t.useExisting)}(t))i=()=>ct(wi(t.useExisting));else{const r=wi(t&&(t.useClass||t.provide));if(!function G0e(t){return!!t.deps}(t))return Ap(r)||cE(r);i=()=>new r(...sT(t.deps))}return i}function kg(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function uE(t,n){for(const e of t)Array.isArray(e)?uE(e,n):e&&nT(e)?uE(e.\u0275providers,n):n(e)}class X0e{}class _5{}class J0e{resolveComponentFactory(n){throw function Y0e(t){const n=Error(`No component factory found for ${Cn(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let $c=(()=>{class t{}return t.NULL=new J0e,t})();function K0e(){return Sg(Ea(),Gt())}function Sg(t,n){return new ti(sc(t,n))}let ti=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=K0e,t})();function Q0e(t){return t instanceof ti?t.nativeElement:t}class Lp{}let Ss=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function Z0e(){const t=Gt(),e=ac(Ea().index,t);return(oc(e)?e:t)[ir]}(),t})(),e1e=(()=>{class t{}return t.\u0275prov=Et({token:t,providedIn:"root",factory:()=>null}),t})();class _1{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const t1e=new _1("15.2.2"),dE={},hE="ngOriginalError";function fE(t){return t[hE]}class Dg{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&fE(n);for(;e&&fE(e);)e=fE(e);return e||null}}function w5(t){return t.ownerDocument.defaultView}function Ih(t){return t instanceof Function?t():t}function k5(t,n,e){let i=t.length;for(;;){const r=t.indexOf(n,e);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const o=n.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r}e=r+1}}const S5="ng-template";function d1e(t,n,e){let i=0;for(;io?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==k5(f,c,0)||2&i&&c!==h){if(wu(i))return!1;s=!0}}}}else{if(!s&&!wu(i)&&!wu(l))return!1;if(s&&wu(l))continue;s=!1,i=l|1&i}}return wu(i)||s}function wu(t){return 0==(1&t)}function p1e(t,n,e,i){if(null===n)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!wu(s)&&(n+=E5(o,r),r=""),i=s,o=o||!wu(i);e++}return""!==r&&(n+=E5(o,r)),n}const Bi={};function w(t){A5(Pr(),Gt(),_l()+t,!1)}function A5(t,n,e,i){if(!i)if(3==(3&n[Ji])){const o=t.preOrderCheckHooks;null!==o&&sx(n,o,e)}else{const o=t.preOrderHooks;null!==o&&ax(n,o,0,e)}Mp(e)}function N5(t,n=null,e=null,i){const r=O5(t,n,e,i);return r.resolveInjectorInitializers(),r}function O5(t,n=null,e=null,i,r=new Set){const o=[e||Yr,$0e(t)];return i=i||("object"==typeof t?void 0:Cn(t)),new y5(o,n||Ex(),i||null,r)}let Rs=(()=>{class t{static create(e,i){if(Array.isArray(e))return N5({name:""},i,e,"");{const r=e.name??"";return N5({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=J0,t.NULL=new f5,t.\u0275prov=Et({token:t,providedIn:"any",factory:()=>ct(Dx)}),t.__NG_ELEMENT_ID__=-1,t})();function le(t,n=ki.Default){const e=Gt();return null===e?ct(t,n):uR(Ea(),e,wi(t),n)}function H5(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;iBo&&A5(t,n,Bo,!1),Lc(s?2:0,r),e(i,r)}finally{Mp(o),Lc(s?3:1,r)}}function _E(t,n,e){if(dT(n)){const r=n.directiveEnd;for(let o=n.directiveStart;o0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(s)!=a&&s.push(a),s.push(e,i,o)}}(t,n,i,x1(t,e,r.hostVars,Bi),r)}function Nd(t,n,e,i,r,o){const s=sc(t,n);!function DE(t,n,e,i,r,o,s){if(null==o)t.removeAttribute(n,r,e);else{const a=null==s?Ri(o):s(o,i||"",r);t.setAttribute(n,r,a,e)}}(n[ir],s,o,t.value,e,i,r)}function oye(t,n,e,i,r,o){const s=o[n];if(null!==s){const a=i.setInput;for(let l=0;l0&&TE(e)}}function TE(t){for(let i=HT(t);null!==i;i=zT(i))for(let r=yl;r0&&TE(o)}const e=t[Rn].components;if(null!==e)for(let i=0;i0&&TE(r)}}function uye(t,n){const e=ac(n,t),i=e[Rn];(function dye(t,n){for(let e=n.length;e-1&&(WT(n,i),fx(e,i))}this._attachedToViewContainer=!1}BR(this._lView[Rn],this._lView)}onDestroy(n){G5(this._lView[Rn],this._lView,null,n)}markForCheck(){EE(this._cdRefInjectingView||this._lView)}detach(){this._lView[Ji]&=-65}reattach(){this._lView[Ji]|=64}detectChanges(){Nx(this._lView[Rn],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Ot(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Kve(t,n){g1(t,n,n[ir],2,null,null)}(this._lView[Rn],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new Ot(902,!1);this._appRef=n}}class hye extends w1{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;Nx(n[Rn],n,n[ks],!1)}checkNoChanges(){}get context(){return null}}class n8 extends $c{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=no(n);return new C1(e,this.ngModule)}}function i8(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class pye{constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){i=J_(i);const r=this.injector.get(n,dE,i);return r!==dE||e===dE?r:this.parentInjector.get(n,e,i)}}class C1 extends _5{get inputs(){return i8(this.componentDef.inputs)}get outputs(){return i8(this.componentDef.outputs)}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function _1e(t){return t.map(b1e).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}create(n,e,i,r){let o=(r=r||this.ngModule)instanceof Fd?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new pye(n,o):n,a=s.get(Lp,null);if(null===a)throw new Ot(407,!1);const l=s.get(e1e,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=i?function U1e(t,n,e){return t.selectRootElement(n,e===yu.ShadowDom)}(c,i,this.componentDef.encapsulation):GT(c,u,function fye(t){const n=t.toLowerCase();return"svg"===n?RL:"math"===n?"math":null}(u)),h=this.componentDef.onPush?288:272,f=CE(0,null,null,1,0,null,null,null,null,null),p=Mx(null,f,null,h,null,null,a,c,l,s,null);let m,g;bT(p);try{const v=this.componentDef;let y,_=null;v.findHostDirectiveDefs?(y=[],_=new Map,v.findHostDirectiveDefs(v,y,_),y.push(v)):y=[v];const C=function gye(t,n){const e=t[Rn],i=Bo;return t[i]=n,Ag(e,i,2,"#host",null)}(p,d),S=function vye(t,n,e,i,r,o,s,a){const l=r[Rn];!function yye(t,n,e,i){for(const r of t)n.mergedAttrs=s1(n.mergedAttrs,r.hostAttrs);null!==n.mergedAttrs&&(Ox(n,n.mergedAttrs,!0),null!==e&&QR(i,e,n))}(i,t,n,s);const c=o.createRenderer(n,e),u=Mx(r,U5(e),null,e.onPush?32:16,r[t.index],t,o,c,a||null,null,null);return l.firstCreatePass&&SE(l,t,i.length-1),Fx(r,u),r[t.index]=u}(C,d,v,y,p,a,c);g=BL(f,Bo),d&&function _ye(t,n,e,i){if(i)CT(t,e,["ng-version",t1e.full]);else{const{attrs:r,classes:o}=function x1e(t){const n=[],e=[];let i=1,r=2;for(;i0&&KR(t,e,o.join(" "))}}(c,v,d,i),void 0!==e&&function xye(t,n,e){const i=t.projection=[];for(let r=0;r=0;i--){const r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=s1(r.hostAttrs,e=s1(e,r.hostAttrs))}}(i)}function IE(t){return t===kh?{}:t===Yr?[]:t}function kye(t,n){const e=t.viewQuery;t.viewQuery=e?(i,r)=>{n(i,r),e(i,r)}:n}function Sye(t,n){const e=t.contentQueries;t.contentQueries=e?(i,r,o)=>{n(i,r,o),e(i,r,o)}:n}function Dye(t,n){const e=t.hostBindings;t.hostBindings=e?(i,r)=>{n(i,r),e(i,r)}:n}function Px(t){return!!FE(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function FE(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Od(t,n,e){return t[n]=e}function tl(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function Rp(t,n,e,i){const r=tl(t,n,e);return tl(t,n+1,i)||r}function ht(t,n,e,i){const r=Gt();return tl(r,fg(),n)&&(Pr(),Nd(es(),r,t,n,e,i)),ht}function Ig(t,n,e,i){return tl(t,fg(),e)?n+Ri(e)+i:Bi}function Fg(t,n,e,i,r,o){const a=Rp(t,function Th(){return $i.lFrame.bindingIndex}(),e,r);return Eh(2),a?n+Ri(e)+i+Ri(r)+o:Bi}function J(t,n,e,i,r,o,s,a){const l=Gt(),c=Pr(),u=t+Bo,d=c.firstCreatePass?function Pye(t,n,e,i,r,o,s,a,l){const c=n.consts,u=Ag(n,t,4,s||null,yf(c,a));kE(n,e,u,yf(c,l)),ox(n,u);const d=u.tView=CE(2,u,i,r,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c);return null!==n.queries&&(n.queries.template(n,u),d.queries=n.queries.embeddedTView(u)),u}(u,c,l,n,e,i,r,o,s):c.data[u];Ad(d,!1);const h=l[ir].createComment("");yx(c,l,h,d),el(h,l),Fx(l,l[u]=K5(h,l,h,d)),nx(d)&&xE(c,l,d),null!=s&&wE(l,d,a)}function uo(t){return hg(function Vge(){return $i.lFrame.contextLView}(),Bo+t)}function k(t,n,e){const i=Gt();return tl(i,fg(),n)&&uc(Pr(),es(),i,t,n,i[ir],e,!1),k}function NE(t,n,e,i,r){const s=r?"class":"style";ME(t,e,n.inputs[s],s,i)}function b(t,n,e,i){const r=Gt(),o=Pr(),s=Bo+t,a=r[ir],l=o.firstCreatePass?function Rye(t,n,e,i,r,o){const s=n.consts,l=Ag(n,t,2,i,yf(s,r));return kE(n,e,l,yf(s,o)),null!==l.attrs&&Ox(l,l.attrs,!1),null!==l.mergedAttrs&&Ox(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(s,o,r,n,e,i):o.data[s],c=r[s]=GT(a,n,function Jge(){return $i.lFrame.currentNamespace}()),u=nx(l);return Ad(l,!0),QR(a,c,l),32!=(32&l.flags)&&yx(o,r,c,l),0===function Pge(){return $i.lFrame.elementDepthCount}()&&el(c,r),function Lge(){$i.lFrame.elementDepthCount++}(),u&&(xE(o,r,l),_E(o,l,r)),null!==i&&wE(r,l),b}function x(){let t=Ea();pT()?mT():(t=t.parent,Ad(t,!1));const n=t;!function Rge(){$i.lFrame.elementDepthCount--}();const e=Pr();return e.firstCreatePass&&(ox(e,t),dT(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function eve(t){return 0!=(8&t.flags)}(n)&&NE(e,n,Gt(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function tve(t){return 0!=(16&t.flags)}(n)&&NE(e,n,Gt(),n.stylesWithoutHost,!1),x}function ge(t,n,e,i){return b(t,n,e,i),x(),ge}function ta(t,n,e){const i=Gt(),r=Pr(),o=t+Bo,s=r.firstCreatePass?function $ye(t,n,e,i,r){const o=n.consts,s=yf(o,i),a=Ag(n,t,8,"ng-container",s);return null!==s&&Ox(a,s,!0),kE(n,e,a,yf(o,r)),null!==n.queries&&n.queries.elementStart(n,a),a}(o,r,i,n,e):r.data[o];Ad(s,!0);const a=i[o]=i[ir].createComment("");return yx(r,i,a,s),el(a,i),nx(s)&&(xE(r,i,s),_E(r,s,i)),null!=e&&wE(i,s),ta}function na(){let t=Ea();const n=Pr();return pT()?mT():(t=t.parent,Ad(t,!1)),n.firstCreatePass&&(ox(n,t),dT(t)&&n.queries.elementEnd(t)),na}function vt(){return Gt()}function S1(t){return!!t&&"function"==typeof t.then}const OE=function v8(t){return!!t&&"function"==typeof t.subscribe};function ye(t,n,e,i){const r=Gt(),o=Pr(),s=Ea();return function b8(t,n,e,i,r,o,s){const a=nx(i),c=t.firstCreatePass&&Z5(t),u=n[ks],d=Q5(n);let h=!0;if(3&i.type||s){const m=sc(i,n),g=s?s(m):m,v=d.length,y=s?C=>s(Ta(C[i.index])):i.index;let _=null;if(!s&&a&&(_=function Bye(t,n,e,i){const r=t.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(t,n,r,i.index)),null!==_)(_.__ngLastListenerFn__||_).__ngNextListenerFn__=o,_.__ngLastListenerFn__=o,h=!1;else{o=x8(i,n,u,o,!1);const C=e.listen(g,r,o);d.push(o,C),c&&c.push(r,y,v,v+1)}}else o=x8(i,n,u,o,!1);const f=i.outputs;let p;if(h&&null!==f&&(p=f[r])){const m=p.length;if(m)for(let g=0;g-1?ac(t.index,n):n);let l=_8(n,e,i,s),c=o.__ngNextListenerFn__;for(;c;)l=_8(n,e,c,s)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function j(t=1){return function Wge(t){return($i.lFrame.contextLView=function qge(t,n){for(;t>0;)n=n[cg],t--;return n}(t,$i.lFrame.contextLView))[ks]}(t)}function Vye(t,n){let e=null;const i=function m1e(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let r=0;r>17&32767}function jE(t){return 2|t}function Bp(t){return(131068&t)>>2}function PE(t,n){return-131069&t|n<<2}function LE(t){return 1|t}function M8(t,n,e,i,r){const o=t[e+1],s=null===n;let a=i?bf(o):Bp(o),l=!1;for(;0!==a&&(!1===l||s);){const u=t[a+1];qye(t[a],n)&&(l=!0,t[a+1]=i?LE(u):jE(u)),a=i?bf(u):Bp(u)}l&&(t[e+1]=i?jE(o):LE(o))}function qye(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&_g(t,n)>=0}const ia={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function I8(t){return t.substring(ia.key,ia.keyEnd)}function F8(t,n){const e=ia.textEnd;return e===n?-1:(n=ia.keyEnd=function Kye(t,n,e){for(;n32;)n++;return n}(t,ia.key=n,e),$g(t,n,e))}function $g(t,n,e){for(;n=0;e=F8(n,e))lc(t,I8(n),!0)}function Du(t,n,e,i){const r=Gt(),o=Pr(),s=Eh(2);o.firstUpdatePass&&R8(o,t,s,i),n!==Bi&&tl(r,s,n)&&B8(o,o.data[_l()],r,r[ir],t,r[s+1]=function abe(t,n){return null==t||("string"==typeof n?t+=n:"object"==typeof t&&(t=Cn(cc(t)))),t}(n,e),i,s)}function Tu(t,n,e,i){const r=Pr(),o=Eh(2);r.firstUpdatePass&&R8(r,null,o,i);const s=Gt();if(e!==Bi&&tl(s,o,e)){const a=r.data[_l()];if(H8(a,i)&&!L8(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=jr(l,e||"")),NE(r,a,s,e,i)}else!function sbe(t,n,e,i,r,o,s,a){r===Bi&&(r=Yr);let l=0,c=0,u=0=t.expandoStartIndex}function R8(t,n,e,i){const r=t.data;if(null===r[e+1]){const o=r[_l()],s=L8(t,e);H8(o,i)&&null===n&&!s&&(n=!1),n=function tbe(t,n,e,i){const r=function vT(t){const n=$i.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let o=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(e=D1(e=RE(null,t,n,e,i),n.attrs,i),o=null);else{const s=n.directiveStylingLast;if(-1===s||t[s]!==r)if(e=RE(r,t,n,e,i),null===o){let l=function nbe(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==Bp(i))return t[bf(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=RE(null,t,n,l[1],i),l=D1(l,n.attrs,i),function ibe(t,n,e,i){t[bf(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else o=function rbe(t,n,e){let i;const r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0)&&(c=!0)):u=e,r)if(0!==l){const h=bf(t[a+1]);t[i+1]=$x(h,a),0!==h&&(t[h+1]=PE(t[h+1],i)),t[a+1]=function zye(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=$x(a,0),0!==a&&(t[a+1]=PE(t[a+1],i)),a=i;else t[i+1]=$x(l,0),0===a?a=i:t[l+1]=PE(t[l+1],i),l=i;c&&(t[i+1]=jE(t[i+1])),M8(t,u,i,!0),M8(t,u,i,!1),function Wye(t,n,e,i,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof n&&_g(o,n)>=0&&(e[i+1]=LE(e[i+1]))}(n,u,t,i,o),s=$x(a,l),o?n.classBindings=s:n.styleBindings=s}(r,o,n,e,s,i)}}function RE(t,n,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=t[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[r+1];h===Bi&&(h=d?Yr:void 0);let f=d?IT(h,i):u===i?h:void 0;if(c&&!Bx(f)&&(f=IT(l,i)),Bx(f)&&(a=f,s))return a;const p=t[r+1];r=s?bf(p):Bp(p)}if(null!==n){let l=o?n.residualClasses:n.residualStyles;null!=l&&(a=IT(l,i))}return a}function Bx(t){return void 0!==t}function H8(t,n){return 0!=(t.flags&(n?8:16))}function I(t,n=""){const e=Gt(),i=Pr(),r=t+Bo,o=i.firstCreatePass?Ag(i,r,1,n,null):i.data[r],s=e[r]=function UT(t,n){return t.createText(n)}(e[ir],n);yx(i,e,s,o),Ad(o,!1)}function Dt(t){return xn("",t,""),Dt}function xn(t,n,e){const i=Gt(),r=Ig(i,t,n,e);return r!==Bi&&Fh(i,_l(),r),xn}function Ld(t,n,e,i,r){const o=Gt(),s=Fg(o,t,n,e,i,r);return s!==Bi&&Fh(o,_l(),s),Ld}function dc(t,n,e){const i=Gt();return tl(i,fg(),n)&&uc(Pr(),es(),i,t,n,i[ir],e,!0),dc}const Vg="en-US";let u6=Vg;function VE(t,n,e,i,r){if(t=wi(t),Array.isArray(t))for(let o=0;o>20;if(Pp(t)||!t.multi){const f=new o1(l,r,le),p=zE(a,n,r?u:u+h,d);-1===p?(TT(dx(c,s),o,a),HE(o,t,n.length),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(f),s.push(f)):(e[p]=f,s[p]=f)}else{const f=zE(a,n,u+h,d),p=zE(a,n,u,u+h),g=p>=0&&e[p];if(r&&!g||!r&&!(f>=0&&e[f])){TT(dx(c,s),o,a);const v=function x_e(t,n,e,i,r){const o=new o1(t,e,le);return o.multi=[],o.index=n,o.componentProviders=0,O6(o,r,i&&!e),o}(r?__e:b_e,e.length,r,i,l);!r&&g&&(e[p].providerFactory=v),HE(o,t,n.length,0),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(v),s.push(v)}else HE(o,t,f>-1?f:p,O6(e[r?p:f],l,!r&&i));!r&&i&&g&&e[p].componentProviders++}}}function HE(t,n,e,i){const r=Pp(n),o=function V0e(t){return!!t.useClass}(n);if(r||o){const l=(o?wi(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function O6(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function zE(t,n,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function y_e(t,n,e){const i=Pr();if(i.firstCreatePass){const r=xu(t);VE(e,i.data,i.blueprint,r,!0),VE(n,i.data,i.blueprint,r,!1)}}(i,r?r(t):t,n)}}class zg{}class j6{}class P6 extends zg{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new n8(this);const i=rc(n);this._bootstrapComponents=Ih(i.bootstrap),this._r3Injector=O5(n,e,[{provide:zg,useValue:this},{provide:$c,useValue:this.componentFactoryResolver}],Cn(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class GE extends j6{constructor(n){super(),this.moduleType=n}create(n){return new P6(this.moduleType,n)}}class C_e extends zg{constructor(n,e,i){super(),this.componentFactoryResolver=new n8(this),this.instance=null;const r=new y5([...n,{provide:zg,useValue:this},{provide:$c,useValue:this.componentFactoryResolver}],e||Ex(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Gx(t,n,e=null){return new C_e(t,n,e).injector}let k_e=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=p5(0,e.type),r=i.length>0?Gx([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,r)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return t.\u0275prov=Et({token:t,providedIn:"environment",factory:()=>new t(ct(Fd))}),t})();function L6(t){t.getStandaloneInjector=n=>n.get(k_e).getOrCreateStandaloneInjector(t)}function wl(t,n,e){const i=bl()+t,r=Gt();return r[i]===Bi?Od(r,i,e?n.call(e):n()):function k1(t,n){return t[n]}(r,i)}function lr(t,n,e,i){return G6(Gt(),bl(),t,n,e,i)}function Sr(t,n,e,i,r){return function W6(t,n,e,i,r,o,s){const a=n+e;return Rp(t,a,r,o)?Od(t,a+2,s?i.call(s,r,o):i(r,o)):N1(t,a+2)}(Gt(),bl(),t,n,e,i,r)}function Ug(t,n,e,i,r,o){return function q6(t,n,e,i,r,o,s,a){const l=n+e;return function Lx(t,n,e,i,r){const o=Rp(t,n,e,i);return tl(t,n+2,r)||o}(t,l,r,o,s)?Od(t,l+3,a?i.call(a,r,o,s):i(r,o,s)):N1(t,l+3)}(Gt(),bl(),t,n,e,i,r,o)}function N1(t,n){const e=t[n];return e===Bi?void 0:e}function G6(t,n,e,i,r,o){const s=n+e;return tl(t,s,r)?Od(t,s+1,o?i.call(o,r):i(r)):N1(t,s+1)}function XE(t,n,e){const i=t+Bo,r=Gt(),o=hg(r,i);return function O1(t,n){return t[Rn].data[n].pure}(r,i)?G6(r,bl(),n,o.transform,e,o):o.transform(e)}function YE(t){return n=>{setTimeout(t,void 0,n)}}const Ke=class z_e extends tr{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){let r=n,o=e||(()=>null),s=i;if(n&&"object"==typeof n){const l=n;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=YE(o),r&&(r=YE(r)),s&&(s=YE(s)));const a=super.subscribe({next:r,error:o,complete:s});return n instanceof ue&&n.add(a),a}};function U_e(){return this._results[Symbol.iterator]()}class JE{get changes(){return this._changes||(this._changes=new Ke)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=JE.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=U_e)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const r=function Rc(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function dve(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i{class t{}return t.__NG_ELEMENT_ID__=q_e,t})();const G_e=Si,W_e=class extends G_e{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n,e){const i=this._declarationTContainer.tView,r=Mx(this._declarationLView,i,n,16,null,i.declTNode,null,null,null,null,e||null);r[t1]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[Ed];return null!==s&&(r[Ed]=s.createEmbeddedView(i)),bE(i,r,n),new w1(r)}};function q_e(){return Wx(Ea(),Gt())}function Wx(t,n){return 4&t.type?new W_e(n,t,Sg(t,n)):null}let nl=(()=>{class t{}return t.__NG_ELEMENT_ID__=X_e,t})();function X_e(){return Q6(Ea(),Gt())}const Y_e=nl,J6=class extends Y_e{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Sg(this._hostTNode,this._hostLView)}get injector(){return new mg(this._hostTNode,this._hostLView)}get parentInjector(){const n=DT(this._hostTNode,this._hostLView);if(rR(n)){const e=cx(n,this._hostLView),i=lx(n);return new mg(e[Rn].data[i+8],e)}return new mg(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=K6(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-yl}createEmbeddedView(n,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=n.createEmbeddedView(e||{},o);return this.insert(s,r),s}createComponent(n,e,i,r,o){const s=n&&!function l1(t){return"function"==typeof t}(n);let a;if(s)a=e;else{const d=e||{};a=d.index,i=d.injector,r=d.projectableNodes,o=d.environmentInjector||d.ngModuleRef}const l=s?n:new C1(no(n)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const h=(s?c:this.parentInjector).get(Fd,null);h&&(o=h)}const u=l.create(c,r,void 0,o);return this.insert(u.hostView,a),u}insert(n,e){const i=n._lView,r=i[Rn];if(function jge(t){return _u(t[fs])}(i)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const d=i[fs],h=new J6(d,d[Qa],d[fs]);h.detach(h.indexOf(n))}}const o=this._adjustIndex(e),s=this._lContainer;!function Zve(t,n,e,i){const r=yl+i,o=e.length;i>0&&(e[r-1][bu]=n),i0)i.push(s[a/2]);else{const c=o[a+1],u=n[-l];for(let d=yl;d{class t{constructor(e){this.appInits=e,this.resolve=Xx,this.reject=Xx,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(ct(Yx,8))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const P1=new zn("AppId",{providedIn:"root",factory:function x$(){return`${lA()}${lA()}${lA()}`}});function lA(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const w$=new zn("Platform Initializer"),L1=new zn("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),C$=new zn("AnimationModuleType");let xxe=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const hc=new zn("LocaleId",{providedIn:"root",factory:()=>ar(hc,ki.Optional|ki.SkipSelf)||function wxe(){return typeof $localize<"u"&&$localize.locale||Vg}()});class kxe{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let k$=(()=>{class t{compileModuleSync(e){return new GE(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=Ih(rc(e).declarations).reduce((s,a)=>{const l=no(a);return l&&s.push(new C1(l)),s},[]);return new kxe(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Txe=(()=>Promise.resolve(0))();function cA(t){typeof Zone>"u"?Txe.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Wi{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ke(!1),this.onMicrotaskEmpty=new Ke(!1),this.onStable=new Ke(!1),this.onError=new Ke(!1),typeof Zone>"u")throw new Ot(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function Exe(){let t=$o.requestAnimationFrame,n=$o.cancelAnimationFrame;if(typeof Zone<"u"&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function Ixe(t){const n=()=>{!function Mxe(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call($o,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,dA(t),t.isCheckStableRunning=!0,uA(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),dA(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return T$(t),e.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&n(),E$(t)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return T$(t),e.invoke(r,o,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),E$(t)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,dA(t),uA(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Wi.isInAngularZone())throw new Ot(909,!1)}static assertNotInAngularZone(){if(Wi.isInAngularZone())throw new Ot(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,n,Axe,Xx,Xx);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const Axe={};function uA(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function dA(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function T$(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function E$(t){t._nesting--,uA(t)}class Fxe{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ke,this.onMicrotaskEmpty=new Ke,this.onStable=new Ke,this.onError=new Ke}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}}const A$=new zn(""),Kx=new zn("");let pA,hA=(()=>{class t{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,pA||(function Nxe(t){pA=t}(r),r.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Wi.assertNotInAngularZone(),cA(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())cA(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}}return t.\u0275fac=function(e){return new(e||t)(ct(Wi),ct(fA),ct(Kx))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),fA=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return pA?.findTestabilityInTree(this,e,i)??null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const Oh=!1;let _f=null;const M$=new zn("AllowMultipleToken"),mA=new zn("PlatformDestroyListeners"),I$=new zn("appBootstrapListener");class F${constructor(n,e){this.name=n,this.token=e}}function O$(t,n,e=[]){const i=`Platform: ${n}`,r=new zn(i);return(o=[])=>{let s=gA();if(!s||s.injector.get(M$,!1)){const a=[...e,...o,{provide:r,useValue:!0}];t?t(a):function Pxe(t){if(_f&&!_f.get(M$,!1))throw new Ot(400,!1);_f=t;const n=t.get(P$);(function N$(t){const n=t.get(w$,null);n&&n.forEach(e=>e())})(t)}(function j$(t=[],n){return Rs.create({name:n,providers:[{provide:aE,useValue:"platform"},{provide:mA,useValue:new Set([()=>_f=null])},...t]})}(a,i))}return function Rxe(t){const n=gA();if(!n)throw new Ot(401,!1);return n}()}}function gA(){return _f?.get(P$)??null}let P$=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function R$(t,n){let e;return e="noop"===t?new Fxe:("zone.js"===t?void 0:t)||new Wi(n),e}(i?.ngZone,function L$(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:Wi,useValue:r}];return r.run(()=>{const s=Rs.create({providers:o,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(Dg,null);if(!l)throw new Ot(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{Qx(this._modules,a),c.unsubscribe()})}),function $$(t,n,e){try{const i=e();return S1(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(l,r,()=>{const c=a.injector.get(Jx);return c.runInitializers(),c.donePromise.then(()=>(function d6(t){jc(t,"Expected localeId to be defined"),"string"==typeof t&&(u6=t.toLowerCase().replace(/_/g,"-"))}(a.injector.get(hc,Vg)||Vg),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=B$({},i);return function Oxe(t,n,e){const i=new GE(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(Au);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new Ot(-403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Ot(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(mA,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(ct(Rs))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function B$(t,n){return Array.isArray(n)?n.reduce(B$,t):{...t,...n}}let Au=(()=>{class t{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(e,i,r){this._zone=e,this._injector=i,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new rn(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new rn(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{Wi.assertNotInAngularZone(),cA(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{Wi.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=Tt(o,s.pipe(We()))}bootstrap(e,i){const r=e instanceof _5;if(!this._injector.get(Jx).done){!r&&function ag(t){const n=no(t)||Ka(t)||vl(t);return null!==n&&n.standalone}(e);throw new Ot(405,Oh)}let s;s=r?e:this._injector.get($c).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function jxe(t){return t.isBoundToModule}(s)?void 0:this._injector.get(zg),c=s.create(Rs.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get(A$,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Qx(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new Ot(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Qx(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(I$,[]);i.push(...this._bootstrapListeners),i.forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Qx(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new Ot(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return t.\u0275fac=function(e){return new(e||t)(ct(Wi),ct(Fd),ct(Dg))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Qx(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let qo=(()=>{class t{}return t.__NG_ELEMENT_ID__=Bxe,t})();function Bxe(t){return function Vxe(t,n,e){if(i1(t)&&!e){const i=ac(t.index,n);return new w1(i,i)}return 47&t.type?new w1(n[Za],n):null}(Ea(),Gt(),16==(16&t))}class G${constructor(){}supports(n){return Px(n)}create(n){return new qxe(n)}}const Wxe=(t,n)=>n;class qxe{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||Wxe}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const s=!i||e&&e.currentIndex{s=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,r){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new Xxe(e,i),o,r),n}_verifyReinsertion(n,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,o=n._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const r=null===e?this._itHead:e._next;return n._next=r,n._prev=e,null===r?this._itTail=n:r._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new W$),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new W$),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class Xxe{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Yxe{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class W${constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new Yxe,this.map.set(e,i)),i.add(n)}get(n,e){const r=this.map.get(n);return r?r.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function q$(t,n,e){const i=t.previousIndex;if(null===i)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const r=this._records.get(n);this._maybeAddToChanges(r,e);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new Kxe(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class Kxe{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Y$(){return new tw([new G$])}let tw=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Y$()),deps:[[t,new d1,new u1]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new Ot(901,!1)}}return t.\u0275prov=Et({token:t,providedIn:"root",factory:Y$}),t})();function J$(){return new R1([new X$])}let R1=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||J$()),deps:[[t,new d1,new u1]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new Ot(901,!1)}}return t.\u0275prov=Et({token:t,providedIn:"root",factory:J$}),t})();const ewe=O$(null,"core",[]);let twe=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(ct(Au))},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({}),t})();function qg(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}let xA=null;function jh(){return xA}class rwe{}const Ir=new zn("DocumentToken");let wA=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return function owe(){return ct(K$)}()},providedIn:"platform"}),t})();const swe=new zn("Location Initialized");let K$=(()=>{class t extends wA{constructor(e){super(),this._doc=e,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return jh().getBaseHref(this._doc)}onPopState(e){const i=jh().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=jh().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,r){Q$()?this._history.pushState(e,i,r):this._location.hash=r}replaceState(e,i,r){Q$()?this._history.replaceState(e,i,r):this._location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(ct(Ir))},t.\u0275prov=Et({token:t,factory:function(){return function awe(){return new K$(ct(Ir))}()},providedIn:"platform"}),t})();function Q$(){return!!window.history.pushState}function CA(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function Z$(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Ph(t){return t&&"?"!==t[0]?"?"+t:t}let zp=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return ar(tB)},providedIn:"root"}),t})();const eB=new zn("appBaseHref");let tB=(()=>{class t extends zp{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??ar(Ir).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return CA(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Ph(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+Ph(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+Ph(o));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(ct(wA),ct(eB,8))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),lwe=(()=>{class t extends zp{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=CA(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+Ph(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+Ph(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(ct(wA),ct(eB,8))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),kA=(()=>{class t{constructor(e){this._subject=new Ke,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function dwe(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(Z$(nB(i))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Ph(i))}normalize(e){return t.stripTrailingSlash(function uwe(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,nB(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ph(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ph(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return t.normalizeQueryParams=Ph,t.joinWithSlash=CA,t.stripTrailingSlash=Z$,t.\u0275fac=function(e){return new(e||t)(ct(zp))},t.\u0275prov=Et({token:t,factory:function(){return function cwe(){return new kA(ct(zp))}()},providedIn:"root"}),t})();function nB(t){return t.replace(/\/index.html$/,"")}function pB(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}const jA=/\s+/,mB=[];let Rh=(()=>{class t{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this.initialClasses=mB,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(jA):mB}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(jA):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,Boolean(e[i]));this._applyStateDiff()}_updateState(e,i){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(jA).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return t.\u0275fac=function(e){return new(e||t)(le(tw),le(R1),le(ti),le(Ss))},t.\u0275dir=Zt({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),t})();class Gwe{constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let jn=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new Gwe(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),yB(a,r)}});for(let r=0,o=i.length;r{yB(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(le(nl),le(Si),le(tw))},t.\u0275dir=Zt({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function yB(t,n){t.context.$implicit=n.item}let gn=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new qwe,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){bB("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){bB("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(le(nl),le(Si))},t.\u0275dir=Zt({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class qwe{constructor(){this.$implicit=null,this.ngIf=null}}function bB(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Cn(n)}'.`)}class PA{constructor(n,e){this._viewContainerRef=n,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let dw=(()=>{class t{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const i of this._defaultViews)i.enforceState(e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Zt({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),t})(),_B=(()=>{class t{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new PA(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(le(nl),le(Si),le(dw,9))},t.\u0275dir=Zt({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),t})(),wB=(()=>{class t{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[r,o]=e.split("."),s=-1===r.indexOf("-")?void 0:Bl.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${i}${o}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,r,s)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(le(ti),le(R1),le(Ss))},t.\u0275dir=Zt({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),t})(),kl=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:o,ngTemplateOutletInjector:s}=this;this._viewRef=i.createEmbeddedView(r,o,s?{injector:s}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(le(nl))},t.\u0275dir=Zt({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Hn]}),t})(),Vs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({}),t})();const SB="browser";let _Ce=(()=>{class t{}return t.\u0275prov=Et({token:t,providedIn:"root",factory:()=>new xCe(ct(Ir),window)}),t})();class xCe{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function wCe(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=n)}}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=TB(this.window.history)||TB(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function TB(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class EB{}class YCe extends rwe{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class VA extends YCe{static makeCurrent(){!function iwe(t){xA||(xA=t)}(new VA)}onAndCancel(n,e,i){return n.addEventListener(e,i,!1),()=>{n.removeEventListener(e,i,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function JCe(){return H1=H1||document.querySelector("base"),H1?H1.getAttribute("href"):null}();return null==e?null:function KCe(t){pw=pw||document.createElement("a"),pw.setAttribute("href",t);const n=pw.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){H1=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return pB(document.cookie,n)}}let pw,H1=null;const NB=new zn("TRANSITION_ID"),ZCe=[{provide:Yx,useFactory:function QCe(t,n,e){return()=>{e.get(Jx).donePromise.then(()=>{const i=jh(),r=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let o=0;o{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const mw=new zn("EventManagerPlugins");let gw=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let o=0;o{class t{constructor(){this.usageCount=new Map}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)0===this.changeUsageCount(i,-1)&&this.onStyleRemoved(i)}onStyleRemoved(e){}onStyleAdded(e){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(e,i){const r=this.usageCount;let o=r.get(e)??0;return o+=i,o>0?r.set(e,o):r.delete(e),o}ngOnDestroy(){for(const e of this.getAllStyles())this.onStyleRemoved(e);this.usageCount.clear()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),z1=(()=>{class t extends jB{constructor(e){super(),this.doc=e,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.forEach(o=>o.remove()),i.delete(e)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}addStyleToHost(e,i){const r=this.doc.createElement("style");r.textContent=i,e.appendChild(r);const o=this.styleRef.get(i);o?o.push(r):this.styleRef.set(i,[r])}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}}return t.\u0275fac=function(e){return new(e||t)(ct(Ir))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const HA={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},zA=/%COMP%/g,RB=new zn("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function $B(t,n){return n.flat(100).map(e=>e.replace(zA,t))}function BB(t){return n=>{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let vw=(()=>{class t{constructor(e,i,r,o){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestory=o,this.rendererByCompId=new Map,this.defaultRenderer=new UA(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;const r=this.getOrCreateRenderer(e,i);return r instanceof zB?r.applyToHost(e):r instanceof GA&&r.applyStyles(),r}getOrCreateRenderer(e,i){const r=this.rendererByCompId;let o=r.get(i.id);if(!o){const s=this.eventManager,a=this.sharedStylesHost,l=this.removeStylesOnCompDestory;switch(i.encapsulation){case yu.Emulated:o=new zB(s,a,i,this.appId,l);break;case yu.ShadowDom:return new l2e(s,a,e,i);default:o=new GA(s,a,i,l)}o.onDestroy=()=>r.delete(i.id),r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(ct(gw),ct(z1),ct(P1),ct(RB))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();class UA{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(HA[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){(HB(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(HB(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;const o=HA[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const r=HA[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(Bl.DashCase|Bl.Important)?n.style.setProperty(e,i,r&Bl.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&Bl.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,BB(i)):this.eventManager.addEventListener(n,e,BB(i))}}function HB(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class l2e extends UA{constructor(n,e,i,r){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=$B(r.id,r.styles);for(const s of o){const a=document.createElement("style");a.textContent=s,this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class GA extends UA{constructor(n,e,i,r,o=i.id){super(n),this.sharedStylesHost=e,this.removeStylesOnCompDestory=r,this.rendererUsageCount=0,this.styles=$B(o,i.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class zB extends GA{constructor(n,e,i,r,o){const s=r+"-"+i.id;super(n,e,i,o,s),this.contentAttr=function o2e(t){return"_ngcontent-%COMP%".replace(zA,t)}(s),this.hostAttr=function s2e(t){return"_nghost-%COMP%".replace(zA,t)}(s)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}let c2e=(()=>{class t extends OB{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return t.\u0275fac=function(e){return new(e||t)(ct(Ir))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const UB=["alt","control","meta","shift"],u2e={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},d2e={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let h2e=(()=>{class t extends OB{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,r){const o=t.parseEventName(i),s=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>jh().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=t._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),UB.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),s+=c+".")}),s+=o,0!=i.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(e,i){let r=u2e[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),UB.forEach(s=>{s!==r&&(0,d2e[s])(e)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(ct(Ir))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const WB=[{provide:L1,useValue:SB},{provide:w$,useValue:function f2e(){VA.makeCurrent()},multi:!0},{provide:Ir,useFactory:function m2e(){return function h0e(t){ZT=t}(document),document},deps:[]}],g2e=O$(ewe,"browser",WB),qB=new zn(""),XB=[{provide:Kx,useClass:class e2e{addToWindow(n){$o.getAngularTestability=(i,r=!0)=>{const o=n.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},$o.getAllAngularTestabilities=()=>n.getAllTestabilities(),$o.getAllAngularRootElements=()=>n.getAllRootElements(),$o.frameworkStabilizers||($o.frameworkStabilizers=[]),$o.frameworkStabilizers.push(i=>{const r=$o.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,e,i){return null==e?null:n.getTestability(e)??(i?jh().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:A$,useClass:hA,deps:[Wi,fA,Kx]},{provide:hA,useClass:hA,deps:[Wi,fA,Kx]}],YB=[{provide:aE,useValue:"root"},{provide:Dg,useFactory:function p2e(){return new Dg},deps:[]},{provide:mw,useClass:c2e,multi:!0,deps:[Ir,Wi,L1]},{provide:mw,useClass:h2e,multi:!0,deps:[Ir]},{provide:vw,useClass:vw,deps:[gw,z1,P1,RB]},{provide:Lp,useExisting:vw},{provide:jB,useExisting:z1},{provide:z1,useClass:z1,deps:[Ir]},{provide:gw,useClass:gw,deps:[mw,Wi]},{provide:EB,useClass:t2e,deps:[]},[]];let qA=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:P1,useValue:e.appId},{provide:NB,useExisting:P1},ZCe]}}}return t.\u0275fac=function(e){return new(e||t)(ct(qB,12))},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({providers:[...YB,...XB],imports:[Vs,twe]}),t})(),JB=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return t.\u0275fac=function(e){return new(e||t)(ct(Ir))},t.\u0275prov=Et({token:t,factory:function(e){let i=null;return i=e?new e:function y2e(){return new JB(ct(Ir))}(),i},providedIn:"root"}),t})();typeof window<"u"&&window;let ZB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(e){let i=null;return i=e?new(e||t):ct(e7),i},providedIn:"root"}),t})(),e7=(()=>{class t extends ZB{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case ko.NONE:return i;case ko.HTML:return Id(i,"HTML")?cc(i):c5(this._doc,String(i)).toString();case ko.STYLE:return Id(i,"Style")?cc(i):i;case ko.SCRIPT:if(Id(i,"Script"))return cc(i);throw new Error("unsafe value used in a script context");case ko.URL:return Id(i,"URL")?cc(i):wx(String(i));case ko.RESOURCE_URL:if(Id(i,"ResourceURL"))return cc(i);throw new Error(`unsafe value used in a resource URL context (see ${U_})`);default:throw new Error(`Unexpected SecurityContext ${e} (see ${U_})`)}}bypassSecurityTrustHtml(e){return function b0e(t){return new f0e(t)}(e)}bypassSecurityTrustStyle(e){return function _0e(t){return new p0e(t)}(e)}bypassSecurityTrustScript(e){return function x0e(t){return new m0e(t)}(e)}bypassSecurityTrustUrl(e){return function w0e(t){return new g0e(t)}(e)}bypassSecurityTrustResourceUrl(e){return function C0e(t){return new v0e(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(ct(Ir))},t.\u0275prov=Et({token:t,factory:function(e){let i=null;return i=e?new e:function C2e(t){return new e7(t.get(Ir))}(ct(Rs)),i},providedIn:"root"}),t})();function U1(t){return(U1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function K(t,n,e){return(n=function S2e(t){var n=function k2e(t,n){if("object"!==U1(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,n||"default");if("object"!==U1(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"===U1(n)?n:String(n)}(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}class t7{}class D2e{}const $h="*";function il(t,n){return{type:7,name:t,definitions:n,options:{}}}function Ma(t,n=null){return{type:4,styles:n,timings:t}}function n7(t,n=null){return{type:2,steps:t,options:n}}function Dr(t){return{type:6,styles:t,offset:null}}function Ia(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function i7(t){Promise.resolve().then(t)}class G1{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){i7(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class r7{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,r=0;const o=this.players.length;0==o?i7(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const YA="!";function o7(t){return new Ot(3e3,!1)}function ake(){return typeof window<"u"&&typeof window.document<"u"}function JA(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function wf(t){switch(t.length){case 0:return new G1;case 1:return t[0];default:return new r7(t)}}function s7(t,n,e,i,r=new Map,o=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.get("offset"),h=d==l,f=h&&c||new Map;u.forEach((p,m)=>{let g=m,v=p;if("offset"!==m)switch(g=n.normalizePropertyName(g,s),v){case YA:v=r.get(m);break;case $h:v=o.get(m);break;default:v=n.normalizeStyleValue(m,g,v,s)}f.set(g,v)}),h||a.push(f),c=f,l=d}),s.length)throw function Y2e(t){return new Ot(3502,!1)}();return a}function KA(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&QA(e,"start",t)));break;case"done":t.onDone(()=>i(e&&QA(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&QA(e,"destroy",t)))}}function QA(t,n,e){const o=ZA(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),s=t._data;return null!=s&&(o._data=s),o}function ZA(t,n,e,i,r="",o=0,s){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function fc(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function a7(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}let eM=(t,n)=>!1,l7=(t,n,e)=>[],c7=null;function tM(t){const n=t.parentNode||t.host;return n===c7?null:n}(JA()||typeof Element<"u")&&(ake()?(c7=(()=>document.documentElement)(),eM=(t,n)=>{for(;n;){if(n===t)return!0;n=tM(n)}return!1}):eM=(t,n)=>t.contains(n),l7=(t,n,e)=>{if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]});let Up=null,u7=!1;const d7=eM,h7=l7;let f7=(()=>{class t{validateStyleProperty(e){return function cke(t){Up||(Up=function uke(){return typeof document<"u"?document.body:null}()||{},u7=!!Up.style&&"WebkitAppearance"in Up.style);let n=!0;return Up.style&&!function lke(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Up.style,!n&&u7&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Up.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return d7(e,i)}getParentElement(e){return tM(e)}query(e,i,r){return h7(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new G1(r,o)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),nM=(()=>{class t{}return t.NOOP=new f7,t})();const dke=1e3,iM="ng-enter",yw="ng-leave",bw="ng-trigger",_w=".ng-trigger",m7="ng-animating",rM=".ng-animating";function Bh(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:oM(parseFloat(n[1]),n[2])}function oM(t,n){return"s"===n?t*dke:t}function xw(t,n,e){return t.hasOwnProperty("duration")?t:function fke(t,n,e){let r,o=0,s="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(o7()),{duration:0,delay:0,easing:""};r=oM(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=oM(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=t;if(!e){let a=!1,l=n.length;r<0&&(n.push(function T2e(){return new Ot(3100,!1)}()),a=!0),o<0&&(n.push(function E2e(){return new Ot(3101,!1)}()),a=!0),a&&n.splice(l,0,o7())}return{duration:r,delay:o,easing:s}}(t,n,e)}function W1(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function g7(t){const n=new Map;return Object.keys(t).forEach(e=>{n.set(e,t[e])}),n}function Cf(t,n=new Map,e){if(e)for(let[i,r]of e)n.set(i,r);for(let[i,r]of t)n.set(i,r);return n}function y7(t,n,e){return e?n+":"+e+";":""}function b7(t){let n="";for(let e=0;e{const o=aM(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=i}),JA()&&b7(t))}function Gp(t,n){t.style&&(n.forEach((e,i)=>{const r=aM(i);t.style[r]=""}),JA()&&b7(t))}function q1(t){return Array.isArray(t)?1==t.length?t[0]:n7(t):t}const sM=new RegExp("{{\\s*(.+?)\\s*}}","g");function _7(t){let n=[];if("string"==typeof t){let e;for(;e=sM.exec(t);)n.push(e[1]);sM.lastIndex=0}return n}function X1(t,n,e){const i=t.toString(),r=i.replace(sM,(o,s)=>{let a=n[s];return null==a&&(e.push(function M2e(t){return new Ot(3003,!1)}()),a=""),a.toString()});return r==i?t:r}function ww(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const gke=/-+([a-z0-9])/g;function aM(t){return t.replace(gke,(...n)=>n[1].toUpperCase())}function vke(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function pc(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw function I2e(t){return new Ot(3004,!1)}()}}function x7(t,n){return window.getComputedStyle(t)[n]}const Sw="*";function Cke(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function kke(t,n,e){if(":"==t[0]){const l=function Ske(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function U2e(t){return new Ot(3015,!1)}()),n;const r=i[1],o=i[2],s=i[3];n.push(w7(r,s));"<"==o[0]&&!(r==Sw&&s==Sw)&&n.push(w7(s,r))}(i,e,n)):e.push(t),e}const Dw=new Set(["true","1"]),Tw=new Set(["false","0"]);function w7(t,n){const e=Dw.has(t)||Tw.has(t),i=Dw.has(n)||Tw.has(n);return(r,o)=>{let s=t==Sw||t==r,a=n==Sw||n==o;return!s&&e&&"boolean"==typeof r&&(s=r?Dw.has(t):Tw.has(t)),!a&&i&&"boolean"==typeof o&&(a=o?Dw.has(n):Tw.has(n)),s&&a}}const Dke=new RegExp("s*:selfs*,?","g");function lM(t,n,e,i){return new Tke(t).build(n,e,i)}class Tke{constructor(n){this._driver=n}build(n,e,i){const r=new Mke(e);return this._resetContextStyleTimingState(r),pc(this,q1(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],s=[];return"@"==n.name.charAt(0)&&e.errors.push(function N2e(){return new Ot(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,s.push(l)}else e.errors.push(function O2e(){return new Ot(3007,!1)}())}),{type:7,name:n.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{_7(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(ww(o.values()),e.errors.push(function j2e(t,n){return new Ot(3008,!1)}()))}return{type:0,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=pc(this,q1(n.animation),e);return{type:1,matchers:Cke(n.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Wp(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(i=>pc(this,i,e)),options:Wp(n.options)}}visitGroup(n,e){const i=e.currentTime;let r=0;const o=n.steps.map(s=>{e.currentTime=i;const a=pc(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:Wp(n.options)}}visitAnimate(n,e){const i=function Fke(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return cM(xw(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=cM(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=xw(e,n);return cM(r.duration,r.delay,r.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let r,o=n.styles?n.styles:Dr({});if(5==o.type)r=this.visitKeyframes(o,e);else{let s=n.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=Dr(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of r)"string"==typeof a?a===$h?i.push(a):e.errors.push(new Ot(3002,!1)):i.push(g7(a));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:s,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),n.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let d=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(e.errors.push(function L2e(t,n,e,i,r){return new Ot(3010,!1)}()),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),e.options&&function mke(t,n,e){const i=n.params||{},r=_7(t);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function A2e(t){return new Ot(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function R2e(){return new Ot(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=n.steps.map(v=>{const y=this._makeStyleAst(v,e);let _=null!=y.offset?y.offset:function Ike(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(y.styles),C=0;return null!=_&&(o++,C=y.offset=_),l=l||C<0||C>1,a=a||C0&&o{const _=h>0?y==f?1:h*y:s[y],C=_*g;e.currentTime=p+m.delay+C,m.duration=C,this._validateStyleAst(v,e),v.offset=_,i.styles.push(v)}),i}visitReference(n,e){return{type:8,animation:pc(this,q1(n.animation),e),options:Wp(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:Wp(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:Wp(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,r=n.options||{};e.queryCount++,e.currentQuery=n;const[o,s]=function Eke(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(Dke,"")),t=t.replace(/@\*/g,_w).replace(/@\w+/g,e=>_w+"-"+e.slice(1)).replace(/:animating/g,rM),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+o:o,fc(e.collectedStyles,e.currentQuerySelector,new Map);const a=pc(this,q1(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:Wp(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function H2e(){return new Ot(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:xw(n.timings,e.errors,!0);return{type:12,animation:pc(this,q1(n.animation),e),timings:i,options:null}}}class Mke{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Wp(t){return t?(t=W1(t)).params&&(t.params=function Ake(t){return t?W1(t):null}(t.params)):t={},t}function cM(t,n,e){return{duration:t,delay:n,easing:e}}function uM(t,n,e,i,r,o,s=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class Ew{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const jke=new RegExp(":enter","g"),Lke=new RegExp(":leave","g");function dM(t,n,e,i,r,o=new Map,s=new Map,a,l,c=[]){return(new Rke).buildKeyframes(t,n,e,i,r,o,s,a,l,c)}class Rke{buildKeyframes(n,e,i,r,o,s,a,l,c,u=[]){c=c||new Ew;const d=new hM(n,e,c,r,o,u,[]);d.options=l;const h=l.delay?Bh(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),pc(this,i,d);const f=d.timelines.filter(p=>p.containsAnimation());if(f.length&&a.size){let p;for(let m=f.length-1;m>=0;m--){const g=f[m];if(g.element===e){p=g;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,l)}return f.length?f.map(p=>p.buildKeyframes()):[uM(e,[],[],[],0,h,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(n.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(const r of n){const o=r?.delay;if(o){const s="number"==typeof o?o:Bh(X1(o,r?.params??{},e.errors));i.delayNextStep(s)}}}_visitSubInstructions(n,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?Bh(i.duration):null,a=null!=i.delay?Bh(i.delay):null;return 0!==s&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(n,e){e.updateOptions(n.options,!0),pc(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let r=e;const o=n.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Aw);const s=Bh(o.delay);r.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>pc(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let r=e.currentTimeline.currentTime;const o=n.options&&n.options.delay?Bh(n.options.delay):0;n.steps.forEach(s=>{const a=e.createSubContext(n.options);o&&a.delayNextStep(o),pc(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return xw(e.params?X1(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=n.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(o):i.setStyles(n.styles,o,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,r=n.options||{},o=r.delay?Bh(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Aw);let s=i;const a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(n.options,c);o&&d.delayNextStep(o),c===e.element&&(l=d.currentTimeline),pc(this,n.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,r=e.currentTimeline,o=n.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;pc(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Aw={};class hM{constructor(n,e,i,r,o,s,a,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Aw,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Mw(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let r=this.options;null!=i.duration&&(r.duration=Bh(i.duration)),null!=i.delay&&(r.delay=Bh(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=X1(o[a],s,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return n}createSubContext(n=null,e,i){const r=e||this.element,o=new hM(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=Aw,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const r={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},o=new $ke(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,r,o,s){let a=[];if(r&&a.push(this.element),n.length>0){n=(n=n.replace(jke,"."+this._enterClassName)).replace(Lke,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&0==a.length&&s.push(function z2e(t){return new Ot(3014,!1)}()),a}}class Mw{constructor(n,e,i,r){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new Mw(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||$h),this._currentKeyframe.set(e,$h);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},s=function Bke(t,n){const e=new Map;let i;return t.forEach(r=>{if("*"===r){i=i||n.keys();for(let o of i)e.set(o,$h)}else Cf(r,e)}),e}(n,this._globalTimelineStyles);for(let[a,l]of s){const c=X1(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??$h),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Cf(a,new Map,this._backFill);c.forEach((u,d)=>{u===YA?n.add(d):u===$h&&e.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});const o=n.size?ww(n.values()):[],s=e.size?ww(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return uM(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class $ke extends Mw{constructor(n,e,i,r,o,s,a=!1){super(n,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,l=Cf(n[0]);l.set("offset",0),o.push(l);const c=Cf(n[0]);c.set("offset",S7(a)),o.push(c);const u=n.length-1;for(let d=1;d<=u;d++){let h=Cf(n[d]);const f=h.get("offset");h.set("offset",S7((e+f*i)/s)),o.push(h)}i=s,e=0,r="",n=o}return uM(this.element,n,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function S7(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class fM{}const Vke=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Hke extends fM{normalizePropertyName(n,e){return aM(n)}normalizeStyleValue(n,e,i,r){let o="";const s=i.toString().trim();if(Vke.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function F2e(t,n){return new Ot(3005,!1)}())}return s+o}}function D7(t,n,e,i,r,o,s,a,l,c,u,d,h){return{type:0,element:t,triggerName:n,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const pM={};class T7{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,r){return function zke(t,n,e,i,r){return t.some(o=>o(n,e,i,r))}(this.ast.matchers,n,e,i,r)}buildStyles(n,e,i){let r=this._stateStyles.get("*");return void 0!==n&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(e,i):new Map}build(n,e,i,r,o,s,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||pM,p=this.buildStyles(i,a&&a.params||pM,d),m=l&&l.params||pM,g=this.buildStyles(r,m,d),v=new Set,y=new Map,_=new Map,C="void"===r,S={params:Uke(m,h),delay:this.ast.options?.delay},M=u?[]:dM(n,e,this.ast.animation,o,s,p,g,S,c,d);let $=0;if(M.forEach(R=>{$=Math.max(R.duration+R.delay,$)}),d.length)return D7(e,this._triggerName,i,r,C,p,g,[],[],y,_,$,d);M.forEach(R=>{const z=R.element,U=fc(y,z,new Set);R.preStyleProps.forEach(re=>U.add(re));const q=fc(_,z,new Set);R.postStyleProps.forEach(re=>q.add(re)),z!==e&&v.add(z)});const G=ww(v.values());return D7(e,this._triggerName,i,r,C,p,g,M,G,y,_,$)}}function Uke(t,n){const e=W1(n);for(const i in t)t.hasOwnProperty(i)&&null!=t[i]&&(e[i]=t[i]);return e}class Gke{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,r=W1(this.defaultParams);return Object.keys(n).forEach(o=>{const s=n[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=X1(s,r,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(a,s)})}),i}}class qke{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new Gke(r.style,r.options&&r.options.params||{},i))}),E7(this.states,"true","1"),E7(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new T7(n,r,this.states))}),this.fallbackTransition=function Xke(t,n,e){return new T7(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,r){return this.transitionFactories.find(s=>s.match(n,e,i,r))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function E7(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const Yke=new Ew;class Jke{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const i=[],r=[],o=lM(this._driver,e,i,r);if(i.length)throw function J2e(t){return new Ot(3503,!1)}();this._animations.set(n,o)}_buildPlayer(n,e,i){const r=n.element,o=s7(0,this._normalizer,0,n.keyframes,e,i);return this._driver.animate(r,o,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const r=[],o=this._animations.get(n);let s;const a=new Map;if(o?(s=dM(this._driver,e,o,iM,yw,new Map,new Map,i,Yke,r),s.forEach(u=>{const d=fc(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(function K2e(){return new Ot(3300,!1)}()),s=[]),r.length)throw function Q2e(t){return new Ot(3504,!1)}();a.forEach((u,d)=>{u.forEach((h,f)=>{u.set(f,this._driver.computeStyle(d,f,$h))})});const c=wf(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function Z2e(t){return new Ot(3301,!1)}();return e}listen(n,e,i,r){const o=ZA(e,"","","");return KA(this._getPlayer(n),i,o,r),()=>{}}command(n,e,i,r){if("register"==i)return void this.register(n,r[0]);if("create"==i)return void this.create(n,e,r[0]||{});const o=this._getPlayer(n);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n)}}}const A7="ng-animate-queued",mM="ng-animate-disabled",tSe=[],M7={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},nSe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},zc="__ng_removed";class gM{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function sSe(t){return t??null}(i?n.value:n),i){const o=W1(n);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const Y1="void",vM=new gM(Y1);class iSe{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,Uc(e,this._hostClassName)}listen(n,e,i,r){if(!this._triggers.has(e))throw function eke(t,n){return new Ot(3302,!1)}();if(null==i||0==i.length)throw function tke(t){return new Ot(3303,!1)}();if(!function aSe(t){return"start"==t||"done"==t}(i))throw function nke(t,n){return new Ot(3400,!1)}();const o=fc(this._elementListeners,n,[]),s={name:e,phase:i,callback:r};o.push(s);const a=fc(this._engine.statesByElement,n,new Map);return a.has(e)||(Uc(n,bw),Uc(n,bw+"-"+e),a.set(e,vM)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function ike(t){return new Ot(3401,!1)}();return e}trigger(n,e,i,r=!0){const o=this._getTrigger(e),s=new yM(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(Uc(n,bw),Uc(n,bw+"-"+e),this._engine.statesByElement.set(n,a=new Map));let l=a.get(e);const c=new gM(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=vM),c.value!==Y1&&l.value===c.value){if(!function uSe(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let r=0;r{Gp(n,g),Rd(n,v)})}return}const h=fc(this._engine.playersByElement,n,[]);h.forEach(m=>{m.namespaceId==this.id&&m.triggerName==e&&m.queued&&m.destroy()});let f=o.matchTransition(l.value,c.value,n,c.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:p}),p||(Uc(n,A7),s.onStart(()=>{Xg(n,A7)})),s.onDone(()=>{let m=this.players.indexOf(s);m>=0&&this.players.splice(m,1);const g=this._engine.playersByElement.get(n);if(g){let v=g.indexOf(s);v>=0&&g.splice(v,1)}}),this.players.push(s),h.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,_w,!0);i.forEach(r=>{if(r[zc])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,e,i,r){const o=this._engine.statesByElement.get(n),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(n,c,Y1,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,s),i&&wf(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const r=new Set;e.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||vM,u=new gM(Y1),d=new yM(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(n):[];if(o&&o.length)r=!0;else{let s=n;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,e);else{const o=n[zc];(!o||o===M7)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){Uc(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=ZA(o,i.triggerName,i.fromState.value,i.toState.value);l._data=n,KA(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}elementContainsData(n){let e=!1;return this._elementListeners.has(n)&&(e=!0),e=!!this._queue.find(i=>i.element===n)||e,e}}class rSe{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new iSe(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(n)}else i.push(n);return r.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let r=this._namespaceLookup[n];r&&r.register(e,i)&&this.totalAnimations++}destroy(n,e){if(!n)return;const i=this._fetchNamespace(n);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[n];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(n,e,i,r){if(Iw(e)){const o=this._fetchNamespace(n);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(n,e,i,r){if(!Iw(e))return;const o=e[zc];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){const s=this._fetchNamespace(n);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Uc(n,mM)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Xg(n,mM))}removeNode(n,e,i,r){if(Iw(e)){const o=n?this._fetchNamespace(n):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(n,e,!1,r),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==n&&s.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(n,e,i,r,o){this.collectedLeaveElements.push(e),e[zc]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,e,i,r,o){return Iw(e)?this._fetchNamespace(n).listen(e,i,r,o):()=>{}}_buildInstruction(n,e,i,r,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,e,o)}destroyInnerAnimations(n){let e=this.driver.query(n,_w,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,rM,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return wf(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[zc];if(e&&e.setForRemoval){if(n[zc]=M7,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(mM)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?wf(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw function rke(t){return new Ot(3402,!1)}()}_flushAnimations(n,e){const i=new Ew,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(Z=>{u.add(Z);const H=this.driver.query(Z,".ng-animate-queued",!0);for(let he=0;he{const he=iM+m++;p.set(H,he),Z.forEach(E=>Uc(E,he))});const g=[],v=new Set,y=new Set;for(let Z=0;Zv.add(E)):y.add(H))}const _=new Map,C=N7(h,Array.from(v));C.forEach((Z,H)=>{const he=yw+m++;_.set(H,he),Z.forEach(E=>Uc(E,he))}),n.push(()=>{f.forEach((Z,H)=>{const he=p.get(H);Z.forEach(E=>Xg(E,he))}),C.forEach((Z,H)=>{const he=_.get(H);Z.forEach(E=>Xg(E,he))}),g.forEach(Z=>{this.processLeaveNode(Z)})});const S=[],M=[];for(let Z=this._namespaceList.length-1;Z>=0;Z--)this._namespaceList[Z].drainQueuedTransitions(e).forEach(he=>{const E=he.player,F=he.element;if(S.push(E),this.collectedEnterElements.length){const xe=F[zc];if(xe&&xe.setForMove){if(xe.previousTriggersValues&&xe.previousTriggersValues.has(he.triggerName)){const tt=xe.previousTriggersValues.get(he.triggerName),ze=this.statesByElement.get(he.element);if(ze&&ze.has(he.triggerName)){const ot=ze.get(he.triggerName);ot.value=tt,ze.set(he.triggerName,ot)}}return void E.destroy()}}const N=!d||!this.driver.containsElement(d,F),Y=_.get(F),V=p.get(F),oe=this._buildInstruction(he,i,V,Y,N);if(oe.errors&&oe.errors.length)return void M.push(oe);if(N)return E.onStart(()=>Gp(F,oe.fromStyles)),E.onDestroy(()=>Rd(F,oe.toStyles)),void r.push(E);if(he.isFallbackTransition)return E.onStart(()=>Gp(F,oe.fromStyles)),E.onDestroy(()=>Rd(F,oe.toStyles)),void r.push(E);const fe=[];oe.timelines.forEach(xe=>{xe.stretchStartingKeyframe=!0,this.disabledNodes.has(xe.element)||fe.push(xe)}),oe.timelines=fe,i.append(F,oe.timelines),s.push({instruction:oe,player:E,element:F}),oe.queriedElements.forEach(xe=>fc(a,xe,[]).push(E)),oe.preStyleProps.forEach((xe,tt)=>{if(xe.size){let ze=l.get(tt);ze||l.set(tt,ze=new Set),xe.forEach((ot,B)=>ze.add(B))}}),oe.postStyleProps.forEach((xe,tt)=>{let ze=c.get(tt);ze||c.set(tt,ze=new Set),xe.forEach((ot,B)=>ze.add(B))})});if(M.length){const Z=[];M.forEach(H=>{Z.push(function oke(t,n){return new Ot(3505,!1)}())}),S.forEach(H=>H.destroy()),this.reportError(Z)}const $=new Map,G=new Map;s.forEach(Z=>{const H=Z.element;i.has(H)&&(G.set(H,H),this._beforeAnimationBuild(Z.player.namespaceId,Z.instruction,$))}),r.forEach(Z=>{const H=Z.element;this._getPreviousPlayers(H,!1,Z.namespaceId,Z.triggerName,null).forEach(E=>{fc($,H,[]).push(E),E.destroy()})});const R=g.filter(Z=>j7(Z,l,c)),z=new Map;F7(z,this.driver,y,c,$h).forEach(Z=>{j7(Z,l,c)&&R.push(Z)});const q=new Map;f.forEach((Z,H)=>{F7(q,this.driver,new Set(Z),l,YA)}),R.forEach(Z=>{const H=z.get(Z),he=q.get(Z);z.set(Z,new Map([...Array.from(H?.entries()??[]),...Array.from(he?.entries()??[])]))});const re=[],L=[],X={};s.forEach(Z=>{const{element:H,player:he,instruction:E}=Z;if(i.has(H)){if(u.has(H))return he.onDestroy(()=>Rd(H,E.toStyles)),he.disabled=!0,he.overrideTotalTime(E.totalTime),void r.push(he);let F=X;if(G.size>1){let Y=H;const V=[];for(;Y=Y.parentNode;){const oe=G.get(Y);if(oe){F=oe;break}V.push(Y)}V.forEach(oe=>G.set(oe,F))}const N=this._buildAnimation(he.namespaceId,E,$,o,q,z);if(he.setRealPlayer(N),F===X)re.push(he);else{const Y=this.playersByElement.get(F);Y&&Y.length&&(he.parentPlayer=wf(Y)),r.push(he)}}else Gp(H,E.fromStyles),he.onDestroy(()=>Rd(H,E.toStyles)),L.push(he),u.has(H)&&r.push(he)}),L.forEach(Z=>{const H=o.get(Z.element);if(H&&H.length){const he=wf(H);Z.setRealPlayer(he)}}),r.forEach(Z=>{Z.parentPlayer?Z.syncPlayerEvents(Z.parentPlayer):Z.destroy()});for(let Z=0;Z!N.destroyed);F.length?lSe(this,H,F):this.processLeaveNode(H)}return g.length=0,re.forEach(Z=>{this.players.push(Z),Z.onDone(()=>{Z.destroy();const H=this.players.indexOf(Z);this.players.splice(H,1)}),Z.play()}),re}elementContainsData(n,e){let i=!1;const r=e[zc];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(n).elementContainsData(e)||i}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,r,o){let s=[];if(e){const a=this.playersByQueriedElement.get(n);a&&(s=a)}else{const a=this.playersByElement.get(n);if(a){const l=!o||o==Y1;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(n,e,i){const o=e.element,s=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==o,d=fc(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}Gp(o,e.fromStyles)}_buildAnimation(n,e,i,r,o,s){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(p=>{const m=p.element;u.add(m);const g=m[zc];if(g&&g.removedBeforeQueried)return new G1(p.duration,p.delay);const v=m!==l,y=function cSe(t){const n=[];return O7(t,n),n}((i.get(m)||tSe).map($=>$.getRealPlayer())).filter($=>!!$.element&&$.element===m),_=o.get(m),C=s.get(m),S=s7(0,this._normalizer,0,p.keyframes,_,C),M=this._buildPlayer(p,S,y);if(p.subTimeline&&r&&d.add(m),v){const $=new yM(n,a,m);$.setRealPlayer(M),c.push($)}return M});c.forEach(p=>{fc(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function oSe(t,n,e){let i=t.get(n);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>Uc(p,m7));const f=wf(h);return f.onDestroy(()=>{u.forEach(p=>Xg(p,m7)),Rd(l,e.toStyles)}),d.forEach(p=>{fc(r,p,[]).push(f)}),f}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new G1(n.duration,n.delay)}}class yM{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new G1,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>KA(n,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){fc(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function Iw(t){return t&&1===t.nodeType}function I7(t,n){const e=t.style.display;return t.style.display=n??"none",e}function F7(t,n,e,i,r){const o=[];e.forEach(l=>o.push(I7(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=n.computeStyle(c,d,r);u.set(d,h),(!h||0==h.length)&&(c[zc]=nSe,s.push(c))}),t.set(c,u)});let a=0;return e.forEach(l=>I7(l,o[a++])),s}function N7(t,n){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==n.length)return e;const i=1,r=new Set(n),o=new Map;function s(a){if(!a)return i;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?i:s(c),o.set(a,l),l}return n.forEach(a=>{const l=s(a);l!==i&&e.get(l).push(a)}),e}function Uc(t,n){t.classList?.add(n)}function Xg(t,n){t.classList?.remove(n)}function lSe(t,n,e){wf(e).onDone(()=>t.processLeaveNode(n))}function O7(t,n){for(let e=0;er.add(o)):n.set(t,i),e.delete(t),!0}class Fw{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new rSe(n,e,i),this._timelineEngine=new Jke(n,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(n,e,i,r,o){const s=n+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],c=[],u=lM(this._driver,o,l,c);if(l.length)throw function X2e(t,n){return new Ot(3404,!1)}();a=function Wke(t,n,e){return new qke(t,n,e)}(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,r){this._transitionEngine.insertNode(n,e,i,r)}onRemove(n,e,i,r){this._transitionEngine.removeNode(n,e,r||!1,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,r){if("@"==i.charAt(0)){const[o,s]=a7(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(n,e,i,r)}listen(n,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=a7(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(n,e,i,r,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let hSe=(()=>{class t{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=t.initialStylesByElement.get(e);o||t.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Rd(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Rd(this._element,this._initialStyles),this._endStyles&&(Rd(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Gp(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Gp(this._element,this._endStyles),this._endStyles=null),Rd(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function bM(t){let n=null;return t.forEach((e,i)=>{(function fSe(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class P7{constructor(n,e,i,r){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&n.set(r,this._finished?i:x7(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class pSe{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return d7(n,e)}getParentElement(n){return tM(n)}query(n,e,i){return h7(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}animate(n,e,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,u=s.filter(f=>f instanceof P7);(function yke(t,n){return 0===t||0===n})(i,r)&&u.forEach(f=>{f.currentSnapshot.forEach((p,m)=>c.set(m,p))});let d=function pke(t){return t.length?t[0]instanceof Map?t:t.map(n=>g7(n)):[]}(e).map(f=>Cf(f));d=function bke(t,n,e){if(e.size&&n.length){let i=n[0],r=[];if(e.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,x7(t,a)))}}return n}(n,d,c);const h=function dSe(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=bM(n[0]),n.length>1&&(i=bM(n[n.length-1]))):n instanceof Map&&(e=bM(n)),e||i?new hSe(t,e,i):null}(n,d);return new P7(n,d,l,h)}}let mSe=(()=>{class t extends t7{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:yu.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?n7(e):e;return L7(this._renderer,null,i,"register",[r]),new gSe(i,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(ct(Lp),ct(Ir))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();class gSe extends D2e{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new vSe(this._id,n,e||{},this._renderer)}}class vSe{constructor(n,e,i,r){this.id=n,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return L7(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function L7(t,n,e,i,r){return t.setProperty(n,`@@${e}:${i}`,r)}const R7="@.disabled";let ySe=(()=>{class t{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(o);return u||(u=new $7("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,u)),u}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,e,u.name,u)};return i.data.animation.forEach(l),new bSe(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(ct(Lp),ct(Fw),ct(Wi))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();class $7{constructor(n,e,i,r){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=r,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,r=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,r)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,r){this.delegate.setAttribute(n,e,i,r)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,r){this.delegate.setStyle(n,e,i,r)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==R7?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class bSe extends $7{constructor(n,e,i,r,o){super(e,i,r,o),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==R7?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const r=function _Se(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function xSe(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,e,i)}}let wSe=(()=>{class t extends Fw{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(ct(Ir),ct(nM),ct(fM),ct(Au))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const B7=[{provide:t7,useClass:mSe},{provide:fM,useFactory:function CSe(){return new Hke}},{provide:Fw,useClass:wSe},{provide:Lp,useFactory:function kSe(t,n,e){return new ySe(t,n,e)},deps:[vw,Fw,Wi]}],_M=[{provide:nM,useFactory:()=>new pSe},{provide:C$,useValue:"BrowserAnimations"},...B7],xM=[{provide:nM,useClass:f7},{provide:C$,useValue:"NoopAnimations"},...B7];let SSe=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?xM:_M}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({providers:_M,imports:[qA]}),t})(),DSe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({providers:xM,imports:[qA]}),t})();function $n(...t){let n=t[t.length-1];return Sa(n)?(t.pop(),Oc(t,n)):st(t)}class Hs extends tr{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return e&&!e.closed&&n.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Xr;return this._value}next(n){super.next(this._value=n)}}const Ow=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();class wM extends O{notifyNext(n,e,i,r,o){this.destination.next(e)}notifyError(n,e){this.destination.error(n)}notifyComplete(n){this.destination.complete()}}class TSe extends O{constructor(n,e,i){super(),this.parent=n,this.outerValue=e,this.outerIndex=i,this.index=0}_next(n){this.parent.notifyNext(this.outerValue,n,this.outerIndex,this.index++,this)}_error(n){this.parent.notifyError(n,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function CM(t,n,e,i,r=new TSe(t,e,i)){if(!r.closed)return n instanceof rn?n.subscribe(r):nc(n)(r)}const V7={};function jw(...t){let n,e;return Sa(t[t.length-1])&&(e=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&et(t[0])&&(t=t[0]),st(t,e).lift(new ESe(n))}class ESe{constructor(n){this.resultSelector=n}call(n,e){return e.subscribe(new ASe(n,this.resultSelector))}}class ASe extends wM{constructor(n,e){super(n),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(n){this.values.push(V7),this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;it.complete());function Lw(t){return t?function ISe(t){return new rn(n=>t.schedule(()=>n.complete()))}(t):Vh}function H7(t){return new rn(n=>{let e;try{e=t()}catch(r){return void n.error(r)}return(e?co(e):Lw()).subscribe(n)})}function qp(t,n){return new rn(n?e=>n.schedule(FSe,0,{error:t,subscriber:e}):e=>e.error(t))}function FSe({error:t,subscriber:n}){n.error(t)}function zl(t,n){return"function"==typeof n?e=>e.pipe(zl((i,r)=>co(t(i,r)).pipe(yn((o,s)=>n(i,o,r,s))))):e=>e.lift(new NSe(t))}class NSe{constructor(n){this.project=n}call(n,e){return e.subscribe(new OSe(n,this.project))}}class OSe extends W{constructor(n,e){super(n),this.project=e,this.index=0}_next(n){let e;const i=this.index++;try{e=this.project(n,i)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(n){const e=this.innerSubscription;e&&e.unsubscribe();const i=new ml(this),r=this.destination;r.add(i),this.innerSubscription=Ne(n,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:n}=this;(!n||n.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(n){this.destination.next(n)}}const z7=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function Sl(t){return n=>0===t?Lw():n.lift(new jSe(t))}class jSe{constructor(n){if(this.total=n,this.total<0)throw new z7}call(n,e){return e.subscribe(new PSe(n,this.total))}}class PSe extends O{constructor(n,e){super(n),this.total=e,this.count=0}_next(n){const e=this.total,i=++this.count;i<=e&&(this.destination.next(n),i===e&&(this.destination.complete(),this.unsubscribe()))}}function ns(t,n){return function(i){return i.lift(new LSe(t,n))}}class LSe{constructor(n,e){this.predicate=n,this.thisArg=e}call(n,e){return e.subscribe(new RSe(n,this.predicate,this.thisArg))}}class RSe extends O{constructor(n,e,i){super(n),this.predicate=e,this.thisArg=i,this.count=0}_next(n){let e;try{e=this.predicate.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(n)}}function Rw(t=null){return n=>n.lift(new $Se(t))}class $Se{constructor(n){this.defaultValue=n}call(n,e){return e.subscribe(new BSe(n,this.defaultValue))}}class BSe extends O{constructor(n,e){super(n),this.defaultValue=e,this.isEmpty=!0}_next(n){this.isEmpty=!1,this.destination.next(n)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function U7(t=zSe){return n=>n.lift(new VSe(t))}class VSe{constructor(n){this.errorFactory=n}call(n,e){return e.subscribe(new HSe(n,this.errorFactory))}}class HSe extends O{constructor(n,e){super(n),this.errorFactory=e,this.hasValue=!1}_next(n){this.hasValue=!0,this.destination.next(n)}_complete(){if(this.hasValue)return this.destination.complete();{let n;try{n=this.errorFactory()}catch(e){n=e}this.destination.error(n)}}}function zSe(){return new Ow}function kf(t,n){const e=arguments.length>=2;return i=>i.pipe(t?ns((r,o)=>t(r,o,i)):jt,Sl(1),e?Rw(n):U7(()=>new Ow))}function Sf(t,n){return nt(t,n,1)}function Hh(){}function is(t,n,e){return function(r){return r.lift(new USe(t,n,e))}}class USe{constructor(n,e,i){this.nextOrObserver=n,this.error=e,this.complete=i}call(n,e){return e.subscribe(new GSe(n,this.nextOrObserver,this.error,this.complete))}}class GSe extends O{constructor(n,e,i,r){super(n),this._tapNext=Hh,this._tapError=Hh,this._tapComplete=Hh,this._tapError=i||Hh,this._tapComplete=r||Hh,rt(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Hh,this._tapError=e.error||Hh,this._tapComplete=e.complete||Hh)}_next(n){try{this._tapNext.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.next(n)}_error(n){try{this._tapError.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.error(n)}_complete(){try{this._tapComplete.call(this._context)}catch(n){return void this.destination.error(n)}return this.destination.complete()}}function Ul(t){return function(e){const i=new WSe(t),r=e.lift(i);return i.caught=r}}class WSe{constructor(n){this.selector=n}call(n,e){return e.subscribe(new qSe(n,this.selector,this.caught))}}class qSe extends W{constructor(n,e,i){super(n),this.selector=e,this.caught=i}error(n){if(!this.isStopped){let e;try{e=this.selector(n,this.caught)}catch(o){return void super.error(o)}this._unsubscribeAndRecycle();const i=new ml(this);this.add(i);const r=Ne(e,i);r!==i&&this.add(r)}}}function G7(t,n){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new XSe(t,n,e))}}class XSe{constructor(n,e,i=!1){this.accumulator=n,this.seed=e,this.hasSeed=i}call(n,e){return e.subscribe(new YSe(n,this.accumulator,this.seed,this.hasSeed))}}class YSe extends O{constructor(n,e,i,r){super(n),this.accumulator=e,this._seed=i,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(n){this.hasSeed=!0,this._seed=n}_next(n){if(this.hasSeed)return this._tryNext(n);this.seed=n,this.destination.next(n)}_tryNext(n){const e=this.index++;let i;try{i=this.accumulator(this.seed,n,e)}catch(r){this.destination.error(r)}this.seed=i,this.destination.next(i)}}function kM(t){return function(e){return 0===t?Lw():e.lift(new JSe(t))}}class JSe{constructor(n){if(this.total=n,this.total<0)throw new z7}call(n,e){return e.subscribe(new KSe(n,this.total))}}class KSe extends O{constructor(n,e){super(n),this.total=e,this.ring=new Array,this.count=0}_next(n){const e=this.ring,i=this.total,r=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,r=this.ring;for(let o=0;o=2;return i=>i.pipe(t?ns((r,o)=>t(r,o,i)):jt,kM(1),e?Rw(n):U7(()=>new Ow))}class ZSe{constructor(n,e){this.predicate=n,this.inclusive=e}call(n,e){return e.subscribe(new eDe(n,this.predicate,this.inclusive))}}class eDe extends O{constructor(n,e,i){super(n),this.predicate=e,this.inclusive=i,this.index=0}_next(n){const e=this.destination;let i;try{i=this.predicate(n,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(n,i)}nextOrComplete(n,e){const i=this.destination;Boolean(e)?i.next(n):(this.inclusive&&i.next(n),i.complete())}}class nDe{constructor(n){this.value=n}call(n,e){return e.subscribe(new iDe(n,this.value))}}class iDe extends O{constructor(n,e){super(n),this.value=e}_next(n){this.destination.next(this.value)}}function SM(t){return n=>n.lift(new rDe(t))}class rDe{constructor(n){this.callback=n}call(n,e){return e.subscribe(new oDe(n,this.callback))}}class oDe extends O{constructor(n,e){super(n),this.add(new ue(e))}}const zi="primary",K1=Symbol("RouteTitle");class sDe{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Yg(t){return new sDe(t)}function aDe(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.lengthi[o]===r)}return t===n}function X7(t){return Array.prototype.concat.apply([],t)}function Y7(t){return t.length>0?t[t.length-1]:null}function Fa(t,n){for(const e in t)t.hasOwnProperty(e)&&n(t[e],e)}function Df(t){return OE(t)?t:S1(t)?co(Promise.resolve(t)):$n(t)}const $w=!1,cDe={exact:function Q7(t,n,e){if(!Xp(t.segments,n.segments)||!Bw(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!Q7(t.children[i],n.children[i],e))return!1;return!0},subset:Z7},J7={exact:function uDe(t,n){return $d(t,n)},subset:function dDe(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>q7(t[e],n[e]))},ignored:()=>!0};function K7(t,n,e){return cDe[e.paths](t.root,n.root,e.matrixParams)&&J7[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function Z7(t,n,e){return e9(t,n,n.segments,e)}function e9(t,n,e,i){if(t.segments.length>e.length){const r=t.segments.slice(0,e.length);return!(!Xp(r,e)||n.hasChildren()||!Bw(r,e,i))}if(t.segments.length===e.length){if(!Xp(t.segments,e)||!Bw(t.segments,e,i))return!1;for(const r in n.children)if(!t.children[r]||!Z7(t.children[r],n.children[r],i))return!1;return!0}{const r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!!(Xp(t.segments,r)&&Bw(t.segments,r,i)&&t.children[zi])&&e9(t.children[zi],n,o,i)}}function Bw(t,n,e){return n.every((i,r)=>J7[e](t[r].parameters,i.parameters))}class Tf{constructor(n=new fr([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Yg(this.queryParams)),this._queryParamMap}toString(){return pDe.serialize(this)}}class fr{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Fa(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Vw(this)}}class Q1{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Yg(this.parameters)),this._parameterMap}toString(){return i9(this)}}function Xp(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let Z1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return new DM},providedIn:"root"}),t})();class DM{parse(n){const e=new CDe(n);return new Tf(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${ey(n.root,!0)}`,i=function vDe(t){const n=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(r=>`${Hw(e)}=${Hw(r)}`).join("&"):`${Hw(e)}=${Hw(i)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams),r="string"==typeof n.fragment?`#${function mDe(t){return encodeURI(t)}(n.fragment)}`:"";return`${e}${i}${r}`}}const pDe=new DM;function Vw(t){return t.segments.map(n=>i9(n)).join("/")}function ey(t,n){if(!t.hasChildren())return Vw(t);if(n){const e=t.children[zi]?ey(t.children[zi],!1):"",i=[];return Fa(t.children,(r,o)=>{o!==zi&&i.push(`${o}:${ey(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function fDe(t,n){let e=[];return Fa(t.children,(i,r)=>{r===zi&&(e=e.concat(n(i,r)))}),Fa(t.children,(i,r)=>{r!==zi&&(e=e.concat(n(i,r)))}),e}(t,(i,r)=>r===zi?[ey(t.children[zi],!1)]:[`${r}:${ey(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[zi]?`${Vw(t)}/${e[0]}`:`${Vw(t)}/(${e.join("//")})`}}function t9(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Hw(t){return t9(t).replace(/%3B/gi,";")}function TM(t){return t9(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function zw(t){return decodeURIComponent(t)}function n9(t){return zw(t.replace(/\+/g,"%20"))}function i9(t){return`${TM(t.path)}${function gDe(t){return Object.keys(t).map(n=>`;${TM(n)}=${TM(t[n])}`).join("")}(t.parameters)}`}const yDe=/^[^\/()?;=#]+/;function Uw(t){const n=t.match(yDe);return n?n[0]:""}const bDe=/^[^=?&#]+/,xDe=/^[^&#]+/;class CDe{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new fr([],{}):new fr([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[zi]=new fr(n,e)),i}parseSegment(){const n=Uw(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new Ot(4009,$w);return this.capture(n),new Q1(zw(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=Uw(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=Uw(this.remaining);r&&(i=r,this.capture(i))}n[zw(e)]=zw(i)}parseQueryParam(n){const e=function _De(t){const n=t.match(bDe);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function wDe(t){const n=t.match(xDe);return n?n[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=n9(e),o=n9(i);if(n.hasOwnProperty(r)){let s=n[r];Array.isArray(s)||(s=[s],n[r]=s),s.push(o)}else n[r]=o}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Uw(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new Ot(4010,$w);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=zi);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[zi]:new fr([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new Ot(4011,$w)}}function EM(t){return t.segments.length>0?new fr([],{[zi]:t}):t}function Gw(t){const n={};for(const i of Object.keys(t.children)){const o=Gw(t.children[i]);(o.segments.length>0||o.hasChildren())&&(n[i]=o)}return function kDe(t){if(1===t.numberOfChildren&&t.children[zi]){const n=t.children[zi];return new fr(t.segments.concat(n.segments),n.children)}return t}(new fr(t.segments,n))}function Yp(t){return t instanceof Tf}const AM=!1;function SDe(t,n,e,i,r){if(0===e.length)return Jg(n.root,n.root,n.root,i,r);const o=function l9(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new a9(!0,0,t);let n=0,e=!1;const i=t.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Fa(o.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?n++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new a9(e,n,i)}(e);return o.toRoot()?Jg(n.root,n.root,new fr([],{}),i,r):function s(l){const c=function TDe(t,n,e,i){if(t.isAbsolute)return new Kg(n.root,!0,0);if(-1===i)return new Kg(e,e===n.root,0);return function c9(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new Ot(4005,AM&&"Invalid number of '../'");r=i.segments.length}return new Kg(i,!1,r-o)}(e,i+(ty(t.commands[0])?0:1),t.numberOfDoubleDots)}(o,n,t.snapshot?._urlSegment,l),u=c.processChildren?Qg(c.segmentGroup,c.index,o.commands):MM(c.segmentGroup,c.index,o.commands);return Jg(n.root,c.segmentGroup,u,i,r)}(t.snapshot?._lastPathIndex)}function ty(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function ny(t){return"object"==typeof t&&null!=t&&t.outlets}function Jg(t,n,e,i,r){let s,o={};i&&Fa(i,(l,c)=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=t===n?e:s9(t,n,e);const a=EM(Gw(s));return new Tf(a,o,r)}function s9(t,n,e){const i={};return Fa(t.children,(r,o)=>{i[o]=r===n?e:s9(r,n,e)}),new fr(t.segments,i)}class a9{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&ty(i[0]))throw new Ot(4003,AM&&"Root segment cannot have matrix parameters");const r=i.find(ny);if(r&&r!==Y7(i))throw new Ot(4004,AM&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Kg{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function MM(t,n,e){if(t||(t=new fr([],{})),0===t.segments.length&&t.hasChildren())return Qg(t,n,e);const i=function ADe(t,n,e){let i=0,r=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const s=t.segments[r],a=e[i];if(ny(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!d9(l,c,s))return o;i+=2}else{if(!d9(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=MM(t.children[s],n,o))}),Fa(t.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new fr(t.segments,r))}}function IM(t,n,e){const i=t.segments.slice(0,n);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(n[i]=IM(new fr([],{}),0,e))}),n}function u9(t){const n={};return Fa(t,(e,i)=>n[i]=`${e}`),n}function d9(t,n,e){return t==e.path&&$d(n,e.parameters)}const iy="imperative";class Bd{constructor(n,e){this.id=n,this.url=e}}class Ww extends Bd{constructor(n,e,i="imperative",r=null){super(n,e),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class zh extends Bd{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ry extends Bd{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class qw extends Bd{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=16}}class Xw extends Bd{constructor(n,e,i,r){super(n,e),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class IDe extends Bd{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class FDe extends Bd{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class NDe extends Bd{constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ODe extends Bd{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class jDe extends Bd{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class PDe{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class LDe{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class RDe{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class $De{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class BDe{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class VDe{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class h9{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let UDe=(()=>{class t{createUrlTree(e,i,r,o,s,a){return SDe(e||i.root,r,o,s,a)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),WDe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(n){return UDe.\u0275fac(n)},providedIn:"root"}),t})();class f9{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=FM(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=FM(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=NM(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return NM(n,this._root).map(e=>e.value)}}function FM(t,n){if(t===n.value)return n;for(const e of n.children){const i=FM(t,e);if(i)return i}return null}function NM(t,n){if(t===n.value)return[n];for(const e of n.children){const i=NM(t,e);if(i.length)return i.unshift(n),i}return[]}class Uh{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function Zg(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class p9 extends f9{constructor(n,e){super(n),this.snapshot=e,OM(this,n)}toString(){return this.snapshot.toString()}}function m9(t,n){const e=function qDe(t,n){const s=new Yw([],{},{},"",{},zi,n,null,t.root,-1,{});return new v9("",new Uh(s,[]))}(t,n),i=new Hs([new Q1("",{})]),r=new Hs({}),o=new Hs({}),s=new Hs({}),a=new Hs(""),l=new Rr(i,r,s,a,o,zi,n,e.root);return l.snapshot=e.root,new p9(new Uh(l,[]),e)}class Rr{constructor(n,e,i,r,o,s,a,l){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.pipe(yn(c=>c[K1]))??$n(void 0),this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(yn(n=>Yg(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(yn(n=>Yg(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function g9(t,n="emptyOnly"){const e=t.pathFromRoot;let i=0;if("always"!==n)for(i=e.length-1;i>=1;){const r=e[i],o=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function XDe(t){return t.reduce((n,e)=>({params:{...n.params,...e.params},data:{...n.data,...e.data},resolve:{...e.data,...n.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(i))}class Yw{get title(){return this.data?.[K1]}constructor(n,e,i,r,o,s,a,l,c,u,d){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Yg(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Yg(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class v9 extends f9{constructor(n,e){super(e),this.url=n,OM(this,e)}toString(){return y9(this._root)}}function OM(t,n){n.value._routerState=t,n.children.forEach(e=>OM(t,e))}function y9(t){const n=t.children.length>0?` { ${t.children.map(y9).join(", ")} } `:"";return`${t.value}${n}`}function jM(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,$d(n.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),n.fragment!==e.fragment&&t.fragment.next(e.fragment),$d(n.params,e.params)||t.params.next(e.params),function lDe(t,n){if(t.length!==n.length)return!1;for(let e=0;e$d(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||PM(t.parent,n.parent))}function oy(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const r=function JDe(t,n,e){return n.children.map(i=>{for(const r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return oy(t,i,r);return oy(t,i)})}(t,n,e);return new Uh(i,r)}{if(t.shouldAttach(n.value)){const o=t.retrieve(n.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>oy(t,a)),s}}const i=function KDe(t){return new Rr(new Hs(t.url),new Hs(t.params),new Hs(t.queryParams),new Hs(t.fragment),new Hs(t.data),t.outlet,t.component,t)}(n.value),r=n.children.map(o=>oy(t,o));return new Uh(i,r)}}const LM="ngNavigationCancelingError";function b9(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=Yp(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=_9(!1,0,n);return r.url=e,r.navigationBehaviorOptions=i,r}function _9(t,n,e){const i=new Error("NavigationCancelingError: "+(t||""));return i[LM]=!0,i.cancellationCode=n,e&&(i.url=e),i}function x9(t){return w9(t)&&Yp(t.url)}function w9(t){return t&&t[LM]}class QDe{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new sy,this.attachRef=null}}let sy=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new QDe,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Jw=!1;let Jp=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=zi,this.activateEvents=new Ke,this.deactivateEvents=new Ke,this.attachEvents=new Ke,this.detachEvents=new Ke,this.parentContexts=ar(sy),this.location=ar(nl),this.changeDetector=ar(qo),this.environmentInjector=ar(Fd)}ngOnChanges(e){if(e.name){const{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Ot(4012,Jw);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Ot(4012,Jw);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Ot(4012,Jw);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new Ot(4013,Jw);this._activatedRoute=e;const r=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new ZDe(e,a,r.injector);if(i&&function eTe(t){return!!t.resolveComponentFactory}(i)){const c=i.resolveComponentFactory(s);this.activated=r.createComponent(c,r.length,l)}else this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Zt({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Hn]}),t})();class ZDe{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===Rr?this.route:n===sy?this.childContexts:this.parent.get(n,e)}}let RM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["ng-component"]],standalone:!0,features:[L6],decls:1,vars:0,template:function(e,i){1&e&&ge(0,"router-outlet")},dependencies:[Jp],encapsulation:2}),t})();function C9(t,n){return t.providers&&!t._injector&&(t._injector=Gx(t.providers,n,`Route: ${t.path}`)),t._injector??n}function BM(t){const n=t.children&&t.children.map(BM),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==zi&&(e.component=RM),e}function Gc(t){return t.outlet||zi}function k9(t,n){const e=t.filter(i=>Gc(i)===n);return e.push(...t.filter(i=>Gc(i)!==n)),e}function ay(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class oTe{constructor(n,e,i,r){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),jM(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const r=Zg(e);n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Fa(r,(o,s)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Zg(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Zg(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,e,i){const r=Zg(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new VDe(o.value.snapshot))}),n.children.length&&this.forwardEvent(new $De(n.value.snapshot))}activateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(jM(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),jM(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=ay(r.snapshot),l=a?.get($c)??null;s.attachRef=null,s.route=r,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,i)}}class S9{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class Kw{constructor(n,e){this.component=n,this.route=e}}function sTe(t,n,e){const i=t._root;return ly(i,n?n._root:null,e,[i.value])}function ev(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function cge(t){return null!==q_(t)}(t)?n.get(t):t:i}function ly(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Zg(n);return t.children.forEach(s=>{(function lTe(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function cTe(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!Xp(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Xp(t.url,n.url)||!$d(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!PM(t,n)||!$d(t.queryParams,n.queryParams);default:return!PM(t,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new S9(i)):(o.data=s.data,o._resolvedData=s._resolvedData),ly(t,n,o.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Kw(a.outlet.component,s))}else s&&cy(n,a,r),r.canActivateChecks.push(new S9(i)),ly(t,null,o.component?a?a.children:null:e,i,r)})(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),Fa(o,(s,a)=>cy(s,e.getContext(a),r)),r}function cy(t,n,e){const i=Zg(t),r=t.value;Fa(i,(o,s)=>{cy(o,r.component?n?n.children.getContext(s):null:n,e)}),e.canDeactivateChecks.push(new Kw(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}function uy(t){return"function"==typeof t}function VM(t){return t instanceof Ow||"EmptyError"===t?.name}const Qw=Symbol("INITIAL_VALUE");function tv(){return zl(t=>jw(t.map(n=>n.pipe(Sl(1),function J1(...t){const n=t[t.length-1];return Sa(n)?(t.pop(),e=>Pw(t,e,n)):e=>Pw(t,e)}(Qw)))).pipe(yn(n=>{for(const e of n)if(!0!==e){if(e===Qw)return Qw;if(!1===e||e instanceof Tf)return e}return!0}),ns(n=>n!==Qw),Sl(1)))}function D9(t){return function Wt(...t){return wn(t)}(is(n=>{if(Yp(n))throw b9(0,n)}),yn(n=>!0===n))}const HM={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function T9(t,n,e,i,r){const o=zM(t,n,e);return o.matched?function DTe(t,n,e,i){const r=n.canMatch;return r&&0!==r.length?$n(r.map(s=>{const a=ev(s,t);return Df(function mTe(t){return t&&uy(t.canMatch)}(a)?a.canMatch(n,e):t.runInContext(()=>a(n,e)))})).pipe(tv(),D9()):$n(!0)}(i=C9(n,i),n,e).pipe(yn(s=>!0===s?o:{...HM})):$n(o)}function zM(t,n,e){if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...HM}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(n.matcher||aDe)(e,t,n);if(!r)return{...HM};const o={};Fa(r.posParams,(a,l)=>{o[l]=a.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function Zw(t,n,e,i){if(e.length>0&&function ATe(t,n,e){return e.some(i=>eC(t,n,i)&&Gc(i)!==zi)}(t,e,i)){const o=new fr(n,function ETe(t,n,e,i){const r={};r[zi]=i,i._sourceSegment=t,i._segmentIndexShift=n.length;for(const o of e)if(""===o.path&&Gc(o)!==zi){const s=new fr([],{});s._sourceSegment=t,s._segmentIndexShift=n.length,r[Gc(o)]=s}return r}(t,n,i,new fr(e,t.children)));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function MTe(t,n,e){return e.some(i=>eC(t,n,i))}(t,e,i)){const o=new fr(t.segments,function TTe(t,n,e,i,r){const o={};for(const s of i)if(eC(t,e,s)&&!r[Gc(s)]){const a=new fr([],{});a._sourceSegment=t,a._segmentIndexShift=n.length,o[Gc(s)]=a}return{...r,...o}}(t,n,e,i,t.children));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:e}}const r=new fr(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=n.length,{segmentGroup:r,slicedSegments:e}}function eC(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}function E9(t,n,e,i){return!!(Gc(t)===i||i!==zi&&eC(n,e,t))&&("**"===t.path||zM(n,t,e).matched)}function A9(t,n,e){return 0===n.length&&!t.children[e]}const tC=!1;class nC{constructor(n){this.segmentGroup=n||null}}class M9{constructor(n){this.urlTree=n}}function dy(t){return qp(new nC(t))}function I9(t){return qp(new M9(t))}function ITe(t){return qp(new Ot(4e3,tC&&`Only absolute redirects can have named outlets. redirectTo: '${t}'`))}class OTe{constructor(n,e,i,r,o){this.injector=n,this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const n=Zw(this.urlTree.root,[],[],this.config).segmentGroup,e=new fr(n.segments,n.children);return this.expandSegmentGroup(this.injector,this.config,e,zi).pipe(yn(o=>this.createUrlTree(Gw(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Ul(o=>{if(o instanceof M9)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof nC?this.noMatchError(o):o}))}match(n){return this.expandSegmentGroup(this.injector,this.config,n.root,zi).pipe(yn(r=>this.createUrlTree(Gw(r),n.queryParams,n.fragment))).pipe(Ul(r=>{throw r instanceof nC?this.noMatchError(r):r}))}noMatchError(n){return new Ot(4002,tC&&`Cannot match any routes. URL Segment: '${n.segmentGroup}'`)}createUrlTree(n,e,i){const r=EM(n);return new Tf(r,e,i)}expandSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,e,i).pipe(yn(o=>new fr([],o))):this.expandSegment(n,i,e,i.segments,r,!0)}expandChildren(n,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return co(r).pipe(Sf(o=>{const s=i.children[o],a=k9(e,o);return this.expandSegmentGroup(n,a,s,o).pipe(yn(l=>({segment:l,outlet:o})))}),G7((o,s)=>(o[s.outlet]=s.segment,o),{}),W7())}expandSegment(n,e,i,r,o,s){return co(i).pipe(Sf(a=>this.expandSegmentAgainstRoute(n,e,i,a,r,o,s).pipe(Ul(c=>{if(c instanceof nC)return $n(null);throw c}))),kf(a=>!!a),Ul((a,l)=>{if(VM(a))return A9(e,r,o)?$n(new fr([],{})):dy(e);throw a}))}expandSegmentAgainstRoute(n,e,i,r,o,s,a){return E9(r,e,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,e,r,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s):dy(e):dy(e)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?I9(o):this.lineralizeSegments(i,o).pipe(nt(s=>{const a=new fr(s,{});return this.expandSegment(n,a,e,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=zM(e,r,o);if(!a)return dy(e);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?I9(d):this.lineralizeSegments(r,d).pipe(nt(h=>this.expandSegment(n,e,i,h.concat(c),s,!1)))}matchSegmentAgainstRoute(n,e,i,r,o){return"**"===i.path?(n=C9(i,n),i.loadChildren?(i._loadedRoutes?$n({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(n,i)).pipe(yn(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new fr(r,{})))):$n(new fr(r,{}))):T9(e,i,r,n).pipe(zl(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(n=i._injector??n,i,r).pipe(nt(u=>{const d=u.injector??n,h=u.routes,{segmentGroup:f,slicedSegments:p}=Zw(e,a,l,h),m=new fr(f.segments,f.children);if(0===p.length&&m.hasChildren())return this.expandChildren(d,h,m).pipe(yn(_=>new fr(a,_)));if(0===h.length&&0===p.length)return $n(new fr(a,{}));const g=Gc(i)===o;return this.expandSegment(d,m,h,p,g?zi:o,!0).pipe(yn(y=>new fr(a.concat(y.segments),y.children)))})):dy(e)))}getChildConfig(n,e,i){return e.children?$n({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?$n({routes:e._loadedRoutes,injector:e._loadedInjector}):function STe(t,n,e,i){const r=n.canLoad;return void 0===r||0===r.length?$n(!0):$n(r.map(s=>{const a=ev(s,t);return Df(function dTe(t){return t&&uy(t.canLoad)}(a)?a.canLoad(n,e):t.runInContext(()=>a(n,e)))})).pipe(tv(),D9())}(n,e,i).pipe(nt(r=>r?this.configLoader.loadChildren(n,e).pipe(is(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function FTe(t){return qp(_9(tC&&`Cannot load children because the guard of the route "path: '${t.path}'" returned false`,3))}(e))):$n({routes:[],injector:n})}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return $n(i);if(r.numberOfChildren>1||!r.children[zi])return ITe(n.redirectTo);r=r.children[zi]}}applyRedirectCommands(n,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i)}applyRedirectCreateUrlTree(n,e,i,r){const o=this.createSegmentGroup(n,e.root,i,r);return new Tf(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return Fa(n,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[o]=e[a]}else i[o]=r}),i}createSegmentGroup(n,e,i,r){const o=this.createSegments(n,e.segments,i,r);let s={};return Fa(e.children,(a,l)=>{s[l]=this.createSegmentGroup(n,a,i,r)}),new fr(o,s)}createSegments(n,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){const r=i[e.path.substring(1)];if(!r)throw new Ot(4001,tC&&`Cannot redirect to '${n}'. Cannot find '${e.path}'.`);return r}findOrReturn(n,e){let i=0;for(const r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}}class PTe{}class $Te{constructor(n,e,i,r,o,s,a){this.injector=n,this.rootComponentType=e,this.config=i,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a}recognize(){const n=Zw(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,zi).pipe(yn(e=>{if(null===e)return null;const i=new Yw([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},zi,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Uh(i,e),o=new v9(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(n){const e=n.value,i=g9(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),n.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,r)}processChildren(n,e,i){return co(Object.keys(i.children)).pipe(Sf(r=>{const o=i.children[r],s=k9(e,r);return this.processSegmentGroup(n,s,o,r)}),G7((r,o)=>r&&o?(r.push(...o),r):null),function QSe(t,n=!1){return e=>e.lift(new ZSe(t,n))}(r=>null!==r),Rw(null),W7(),yn(r=>{if(null===r)return null;const o=N9(r);return function BTe(t){t.sort((n,e)=>n.value.outlet===zi?-1:e.value.outlet===zi?1:n.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(n,e,i,r,o){return co(e).pipe(Sf(s=>this.processSegmentAgainstRoute(s._injector??n,s,i,r,o)),kf(s=>!!s),Ul(s=>{if(VM(s))return A9(i,r,o)?$n([]):$n(null);throw s}))}processSegmentAgainstRoute(n,e,i,r,o){if(e.redirectTo||!E9(e,i,r,o))return $n(null);let s;if("**"===e.path){const a=r.length>0?Y7(r).parameters:{},l=j9(i)+r.length;s=$n({snapshot:new Yw(r,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,P9(e),Gc(e),e.component??e._loadedComponent??null,e,O9(i),l,L9(e)),consumedSegments:[],remainingSegments:[]})}else s=T9(i,e,r,n).pipe(yn(({matched:a,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!a)return null;const d=j9(i)+l.length;return{snapshot:new Yw(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,P9(e),Gc(e),e.component??e._loadedComponent??null,e,O9(i),d,L9(e)),consumedSegments:l,remainingSegments:c}}));return s.pipe(zl(a=>{if(null===a)return $n(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=a;n=e._injector??n;const d=e._loadedInjector??n,h=function VTe(t){return t.children?t.children:t.loadChildren?t._loadedRoutes:[]}(e),{segmentGroup:f,slicedSegments:p}=Zw(i,c,u,h.filter(g=>void 0===g.redirectTo));if(0===p.length&&f.hasChildren())return this.processChildren(d,h,f).pipe(yn(g=>null===g?null:[new Uh(l,g)]));if(0===h.length&&0===p.length)return $n([new Uh(l,[])]);const m=Gc(e)===o;return this.processSegment(d,h,f,p,m?zi:o).pipe(yn(g=>null===g?null:[new Uh(l,g)]))}))}}function HTe(t){const n=t.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function N9(t){const n=[],e=new Set;for(const i of t){if(!HTe(i)){n.push(i);continue}const r=n.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):n.push(i)}for(const i of e){const r=N9(i.children);n.push(new Uh(i.value,r))}return n.filter(i=>!e.has(i))}function O9(t){let n=t;for(;n._sourceSegment;)n=n._sourceSegment;return n}function j9(t){let n=t,e=n._segmentIndexShift??0;for(;n._sourceSegment;)n=n._sourceSegment,e+=n._segmentIndexShift??0;return e-1}function P9(t){return t.data||{}}function L9(t){return t.resolve||{}}function R9(t){return"string"==typeof t.title||null===t.title}function UM(t){return zl(n=>{const e=t(n);return e?co(e).pipe(yn(()=>n)):$n(n)})}const nv=new zn("ROUTES");let GM=(()=>{class t{constructor(e,i){this.injector=e,this.compiler=i,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return $n(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=Df(e.loadComponent()).pipe(yn(B9),is(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),SM(()=>{this.componentLoaders.delete(e)})),r=new pe(i,()=>new tr).pipe(Ut());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return $n({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(yn(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(e).injector,c=X7(l.get(nv,[],ki.Self|ki.Optional)));return{routes:c.map(BM),injector:l}}),SM(()=>{this.childrenLoaders.delete(i)})),s=new pe(o,()=>new tr).pipe(Ut());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(e){return Df(e()).pipe(yn(B9),nt(r=>r instanceof j6||Array.isArray(r)?$n(r):co(this.compiler.compileModuleAsync(r))))}}return t.\u0275fac=function(e){return new(e||t)(ct(Rs),ct(k$))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function B9(t){return function KTe(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let rC=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new tr,this.configLoader=ar(GM),this.environmentInjector=ar(Fd),this.urlSerializer=ar(Z1),this.rootContexts=ar(sy),this.navigationId=0,this.afterPreactivation=()=>$n(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new LDe(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new PDe(r))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:i})}setupNavigations(e){return this.transitions=new Hs({id:0,targetPageId:0,currentUrlTree:e.currentUrlTree,currentRawUrl:e.currentUrlTree,extractedUrl:e.urlHandlingStrategy.extract(e.currentUrlTree),urlAfterRedirects:e.urlHandlingStrategy.extract(e.currentUrlTree),rawUrl:e.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:iy,restoredState:null,currentSnapshot:e.routerState.snapshot,targetSnapshot:null,currentRouterState:e.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ns(i=>0!==i.id),yn(i=>({...i,extractedUrl:e.urlHandlingStrategy.extract(i.rawUrl)})),zl(i=>{let r=!1,o=!1;return $n(i).pipe(is(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),zl(s=>{const a=e.browserUrlTree.toString(),l=!e.navigated||s.extractedUrl.toString()!==a||a!==e.currentUrlTree.toString();if(!l&&"reload"!==(s.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const u="";return this.events.next(new qw(s.id,e.serializeUrl(i.rawUrl),u,0)),e.rawUrlTree=s.rawUrl,s.resolve(null),Vh}if(e.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return V9(s.source)&&(e.browserUrlTree=s.extractedUrl),$n(s).pipe(zl(u=>{const d=this.transitions?.getValue();return this.events.next(new Ww(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),d!==this.transitions?.getValue()?Vh:Promise.resolve(u)}),function jTe(t,n,e,i){return zl(r=>function NTe(t,n,e,i,r){return new OTe(t,n,e,i,r).apply()}(t,n,e,r.extractedUrl,i).pipe(yn(o=>({...r,urlAfterRedirects:o}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,e.config),is(u=>{this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},i.urlAfterRedirects=u.urlAfterRedirects}),function UTe(t,n,e,i,r){return nt(o=>function RTe(t,n,e,i,r,o,s="emptyOnly"){return new $Te(t,n,e,i,r,s,o).recognize().pipe(zl(a=>null===a?function LTe(t){return new rn(n=>n.error(t))}(new PTe):$n(a)))}(t,n,e,o.urlAfterRedirects,i.serialize(o.urlAfterRedirects),i,r).pipe(yn(s=>({...o,targetSnapshot:s}))))}(this.environmentInjector,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),is(u=>{if(i.targetSnapshot=u.targetSnapshot,"eager"===e.urlUpdateStrategy){if(!u.extras.skipLocationChange){const h=e.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);e.setBrowserUrl(h,u)}e.browserUrlTree=u.urlAfterRedirects}const d=new IDe(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}));if(l&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){const{id:u,extractedUrl:d,source:h,restoredState:f,extras:p}=s,m=new Ww(u,this.urlSerializer.serialize(d),h,f);this.events.next(m);const g=m9(d,this.rootComponentType).snapshot;return $n(i={...s,targetSnapshot:g,urlAfterRedirects:d,extras:{...p,skipLocationChange:!1,replaceUrl:!1}})}{const u="";return this.events.next(new qw(s.id,e.serializeUrl(i.extractedUrl),u,1)),e.rawUrlTree=s.rawUrl,s.resolve(null),Vh}}),is(s=>{const a=new FDe(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),yn(s=>i={...s,guards:sTe(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function vTe(t,n){return nt(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?$n({...e,guardsResult:!0}):function yTe(t,n,e,i){return co(t).pipe(nt(r=>function kTe(t,n,e,i,r){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?$n(o.map(a=>{const l=ay(n)??r,c=ev(a,l);return Df(function pTe(t){return t&&uy(t.canDeactivate)}(c)?c.canDeactivate(t,n,e,i):l.runInContext(()=>c(t,n,e,i))).pipe(kf())})).pipe(tv()):$n(!0)}(r.component,r.route,e,n,i)),kf(r=>!0!==r,!0))}(s,i,r,t).pipe(nt(a=>a&&function uTe(t){return"boolean"==typeof t}(a)?function bTe(t,n,e,i){return co(n).pipe(Sf(r=>Pw(function xTe(t,n){return null!==t&&n&&n(new RDe(t)),$n(!0)}(r.route.parent,i),function _Te(t,n){return null!==t&&n&&n(new BDe(t)),$n(!0)}(r.route,i),function CTe(t,n,e){const i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function aTe(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(s)).filter(s=>null!==s).map(s=>H7(()=>$n(s.guards.map(l=>{const c=ay(s.node)??e,u=ev(l,c);return Df(function fTe(t){return t&&uy(t.canActivateChild)}(u)?u.canActivateChild(i,t):c.runInContext(()=>u(i,t))).pipe(kf())})).pipe(tv())));return $n(o).pipe(tv())}(t,r.path,e),function wTe(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return $n(!0);const r=i.map(o=>H7(()=>{const s=ay(n)??e,a=ev(o,s);return Df(function hTe(t){return t&&uy(t.canActivate)}(a)?a.canActivate(n,t):s.runInContext(()=>a(n,t))).pipe(kf())}));return $n(r).pipe(tv())}(t,r.route,e))),kf(r=>!0!==r,!0))}(i,o,t,n):$n(a)),yn(a=>({...e,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),is(s=>{if(i.guardsResult=s.guardsResult,Yp(s.guardsResult))throw b9(0,s.guardsResult);const a=new NDe(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),ns(s=>!!s.guardsResult||(e.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),UM(s=>{if(s.guards.canActivateChecks.length)return $n(s).pipe(is(a=>{const l=new ODe(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),zl(a=>{let l=!1;return $n(a).pipe(function GTe(t,n){return nt(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return $n(e);let o=0;return co(r).pipe(Sf(s=>function WTe(t,n,e,i){const r=t.routeConfig,o=t._resolve;return void 0!==r?.title&&!R9(r)&&(o[K1]=r.title),function qTe(t,n,e,i){const r=function XTe(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===r.length)return $n({});const o={};return co(r).pipe(nt(s=>function YTe(t,n,e,i){const r=ay(n)??i,o=ev(t,r);return Df(o.resolve?o.resolve(n,e):r.runInContext(()=>o(n,e)))}(t[s],n,e,i).pipe(kf(),is(a=>{o[s]=a}))),kM(1),function tDe(t){return n=>n.lift(new nDe(t))}(o),Ul(s=>VM(s)?Vh:qp(s)))}(o,t,n,i).pipe(yn(s=>(t._resolvedData=s,t.data=g9(t,e).resolve,r&&R9(r)&&(t.data[K1]=r.title),null)))}(s.route,i,t,n)),is(()=>o++),kM(1),nt(s=>o===r.length?$n(e):Vh))})}(e.paramsInheritanceStrategy,this.environmentInjector),is({next:()=>l=!0,complete:()=>{l||(e.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),is(a=>{const l=new jDe(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}))}),UM(s=>{const a=l=>{const c=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(l.routeConfig).pipe(is(u=>{l.component=u}),yn(()=>{})));for(const u of l.children)c.push(...a(u));return c};return jw(a(s.targetSnapshot.root)).pipe(Rw(),Sl(1))}),UM(()=>this.afterPreactivation()),yn(s=>{const a=function YDe(t,n,e){const i=oy(t,n._root,e?e._root:void 0);return new p9(i,n)}(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return i={...s,targetRouterState:a}}),is(s=>{e.currentUrlTree=s.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),e.routerState=s.targetRouterState,"deferred"===e.urlUpdateStrategy&&(s.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,s),e.browserUrlTree=s.urlAfterRedirects)}),((t,n,e)=>yn(i=>(new oTe(n,i.targetRouterState,i.currentRouterState,e).activate(t),i)))(this.rootContexts,e.routeReuseStrategy,s=>this.events.next(s)),is({next:s=>{r=!0,this.lastSuccessfulNavigation=this.currentNavigation,e.navigated=!0,this.events.next(new zh(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(e.currentUrlTree))),e.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{r=!0}}),SM(()=>{r||o||this.cancelNavigationTransition(i,"",1),this.currentNavigation?.id===i.id&&(this.currentNavigation=null)}),Ul(s=>{if(o=!0,w9(s)){x9(s)||(e.navigated=!0,e.restoreHistory(i,!0));const a=new ry(i.id,this.urlSerializer.serialize(i.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),x9(s)){const l=e.urlHandlingStrategy.merge(s.url,e.rawUrlTree),c={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy||V9(i.source)};e.scheduleNavigation(l,iy,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}else i.resolve(!1)}else{e.restoreHistory(i,!0);const a=new Xw(i.id,this.urlSerializer.serialize(i.extractedUrl),s,i.targetSnapshot??void 0);this.events.next(a);try{i.resolve(e.errorHandler(s))}catch(l){i.reject(l)}}return Vh}))}))}cancelNavigationTransition(e,i,r){const o=new ry(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),e.resolve(!1)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function V9(t){return t!==iy}let H9=(()=>{class t{buildTitle(e){let i,r=e.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===zi);return i}getResolvedTitleForRoute(e){return e.data[K1]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return ar(QTe)},providedIn:"root"}),t})(),QTe=(()=>{class t extends H9{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}}return t.\u0275fac=function(e){return new(e||t)(ct(JB))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ZTe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return ar(tEe)},providedIn:"root"}),t})();class eEe{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let tEe=(()=>{class t extends eEe{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ji(t)))(i||t)}}(),t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const oC=new zn("",{providedIn:"root",factory:()=>({})});let iEe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:function(){return ar(rEe)},providedIn:"root"}),t})(),rEe=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function oEe(t){throw t}function sEe(t,n,e){return n.parse("/")}const aEe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},lEe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let cr=(()=>{class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=ar(xxe),this.isNgZoneEnabled=!1,this.options=ar(oC,{optional:!0})||{},this.errorHandler=this.options.errorHandler||oEe,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||sEe,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=ar(iEe),this.routeReuseStrategy=ar(ZTe),this.urlCreationStrategy=ar(WDe),this.titleStrategy=ar(H9),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=X7(ar(nv,{optional:!0})??[]),this.navigationTransitions=ar(rC),this.urlSerializer=ar(Z1),this.location=ar(kA),this.isNgZoneEnabled=ar(Wi)instanceof Wi&&Wi.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Tf,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=m9(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const e=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),iy,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,i,e.state)},0)}))}navigateToSyncWithBrowser(e,i,r){const o={replaceUrl:!0},s=r?.navigationId?r:null;if(r){const l={...r};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(o.state=l)}const a=this.parseUrl(e);this.scheduleNavigation(a,i,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(e){this.config=e.map(BM),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:s;let u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...o};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=o||null}return null!==u&&(u=this.removeEmptyProps(u)),this.urlCreationStrategy.createUrlTree(r,this.routerState,this.currentUrlTree,e,u,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=Yp(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,iy,null,i)}navigate(e,i={skipLocationChange:!1}){return function cEe(t){for(let n=0;n{const o=e[r];return null!=o&&(i[r]=o),i},{})}scheduleNavigation(e,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c,u;return s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((d,h)=>{a=d,l=h}),u="computed"===this.canceledNavigationResolution?r&&r.\u0275routerPageId?r.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:u,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e),o={...i.extras.state,...this.generateNgRouterState(i.id,i.targetPageId)};this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",o):this.location.go(r,"",o)}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.getCurrentNavigation()?.finalUrl||0===r?this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Fu=(()=>{class t{constructor(e,i,r,o,s,a){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=s,this.locationStrategy=a,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new tr;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof zh&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(e){this._preserveFragment=qg(e)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(e){this._skipLocationChange=qg(e)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(e){this._replaceUrl=qg(e)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,i,r,o,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==e||i||r||o||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const e=null===this.href?null:function d5(t,n,e){return function L0e(t,n){return"src"===n&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===n&&("base"===t||"link"===t)?u5:y1}(n,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",e)}applyAttributeValue(e,i){const r=this.renderer,o=this.el.nativeElement;null!==i?r.setAttribute(o,e,i):r.removeAttribute(o,e)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return t.\u0275fac=function(e){return new(e||t)(le(cr),le(Rr),Ah("tabindex"),le(Ss),le(ti),le(zp))},t.\u0275dir=Zt({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(e,i){1&e&&ye("click",function(o){return i.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),2&e&&ht("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[Hn]}),t})(),hy=(()=>{class t{get isActive(){return this._isActive}constructor(e,i,r,o,s){this.router=e,this.element=i,this.renderer=r,this.cdr=o,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new Ke,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof zh&&this.update()})}ngAfterContentInit(){$n(this.links.changes,$n(null)).pipe(A()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=co(e).pipe(A()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){const i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(r=>!!r)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const e=this.hasActiveLinks();this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.classes.forEach(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),e&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(e))})}isLinkActive(e){const i=function uEe(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>!!r.urlTree&&e.isActive(r.urlTree,i)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}}return t.\u0275fac=function(e){return new(e||t)(le(cr),le(ti),le(Ss),le(qo),le(Fu,8))},t.\u0275dir=Zt({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(e,i,r){if(1&e&&ni(r,Fu,5),2&e){let o;cn(o=un())&&(i.links=o)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Hn]}),t})();class z9{}let dEe=(()=>{class t{constructor(e,i,r,o,s){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(ns(e=>e instanceof zh),Sf(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=Gx(o.providers,e,`Route: ${o.path}`));const s=o._injector??e,a=o._loadedInjector??s;o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent?r.push(this.preloadConfig(s,o)):(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return co(r).pipe(A())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):$n(null);const o=r.pipe(nt(s=>null===s?$n(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));return i.loadComponent&&!i._loadedComponent?co([o,this.loader.loadComponent(i)]).pipe(A()):o})}}return t.\u0275fac=function(e){return new(e||t)(ct(cr),ct(k$),ct(Fd),ct(z9),ct(GM))},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const qM=new zn("");let U9=(()=>{class t{constructor(e,i,r,o,s={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Ww?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof zh&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof h9&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new h9(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return t.\u0275fac=function(e){!function V5(){throw new Error("invalid")}()},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();var mc=(()=>((mc=mc||{})[mc.COMPLETE=0]="COMPLETE",mc[mc.FAILED=1]="FAILED",mc[mc.REDIRECTING=2]="REDIRECTING",mc))();const iv=!1;function Ef(t,n){return{\u0275kind:t,\u0275providers:n}}const XM=new zn("",{providedIn:"root",factory:()=>!1});function W9(){const t=ar(Rs);return n=>{const e=t.get(Au);if(n!==e.components[0])return;const i=t.get(cr),r=t.get(q9);1===t.get(YM)&&i.initialNavigation(),t.get(X9,null,ki.Optional)?.setUpPreloading(),t.get(qM,null,ki.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.unsubscribe())}}const q9=new zn(iv?"bootstrap done indicator":"",{factory:()=>new tr}),YM=new zn(iv?"initial navigation":"",{providedIn:"root",factory:()=>1});function gEe(){let t=[];return t=iv?[{provide:Sx,multi:!0,useFactory:()=>{const n=ar(cr);return()=>n.events.subscribe(e=>{console.group?.(`Router Event: ${e.constructor.name}`),console.log(function HDe(t){if(!("type"in t))return`Unknown Router Event: ${t.constructor.name}`;switch(t.type){case 14:return`ActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state}, shouldActivate: ${t.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 2:return`NavigationCancel(id: ${t.id}, url: '${t.url}')`;case 16:return`NavigationSkipped(id: ${t.id}, url: '${t.url}')`;case 1:return`NavigationEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${t.id}, url: '${t.url}', error: ${t.error})`;case 0:return`NavigationStart(id: ${t.id}, url: '${t.url}')`;case 6:return`ResolveEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 5:return`ResolveStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 10:return`RouteConfigLoadEnd(path: ${t.route.path})`;case 9:return`RouteConfigLoadStart(path: ${t.route.path})`;case 4:return`RoutesRecognized(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 15:return`Scroll(anchor: '${t.anchor}', position: '${t.position?`${t.position[0]}, ${t.position[1]}`:null}')`}}(e)),console.log(e),console.groupEnd?.()})}}]:[],Ef(1,t)}const X9=new zn(iv?"router preloader":"");function vEe(t){return Ef(0,[{provide:X9,useExisting:dEe},{provide:z9,useExisting:t}])}const fy=!1,Y9=new zn(fy?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),yEe=[kA,{provide:Z1,useClass:DM},cr,sy,{provide:Rr,useFactory:function G9(t){return t.routerState.root},deps:[cr]},GM,fy?{provide:XM,useValue:!0}:[]];function bEe(){return new F$("Router",cr)}let J9=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[yEe,fy&&i?.enableTracing?gEe().\u0275providers:[],{provide:nv,multi:!0,useValue:e},{provide:Y9,useFactory:CEe,deps:[[cr,new u1,new d1]]},{provide:oC,useValue:i||{}},i?.useHash?{provide:zp,useClass:lwe}:{provide:zp,useClass:tB},{provide:qM,useFactory:()=>{const t=ar(_Ce),n=ar(Wi),e=ar(oC),i=ar(rC),r=ar(Z1);return e.scrollOffset&&t.setOffset(e.scrollOffset),new U9(r,i,t,n,e)}},i?.preloadingStrategy?vEe(i.preloadingStrategy).\u0275providers:[],{provide:F$,multi:!0,useFactory:bEe},i?.initialNavigation?kEe(i):[],[{provide:K9,useFactory:W9},{provide:I$,multi:!0,useExisting:K9}]]}}static forChild(e){return{ngModule:t,providers:[{provide:nv,multi:!0,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)(ct(Y9,8))},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[RM]}),t})();function CEe(t){if(fy&&t)throw new Ot(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function kEe(t){return["disabled"===t.initialNavigation?Ef(3,[{provide:Yx,multi:!0,useFactory:()=>{const n=ar(cr);return()=>{n.setUpLocationChangeListener()}}},{provide:YM,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Ef(2,[{provide:YM,useValue:0},{provide:Yx,multi:!0,deps:[Rs],useFactory:n=>{const e=n.get(swe,Promise.resolve());return()=>e.then(()=>new Promise(i=>{const r=n.get(cr),o=n.get(q9);(function hEe(t,n){t.events.pipe(ns(e=>e instanceof zh||e instanceof ry||e instanceof Xw||e instanceof qw),yn(e=>e instanceof zh||e instanceof qw?mc.COMPLETE:e instanceof ry&&(0===e.code||1===e.code)?mc.REDIRECTING:mc.FAILED),ns(e=>e!==mc.REDIRECTING),Sl(1)).subscribe(()=>{n()})})(r,()=>{i(!0)}),n.get(rC).afterPreactivation=()=>(i(!0),o.closed?$n(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const K9=new zn(fy?"Router Initializer":"");function sC(t,n){return new rn(e=>{const i=t.length;if(0===i)return void e.complete();const r=new Array(i);let o=0,s=0;for(let a=0;a{c||(c=!0,s++),r[a]=u},error:u=>e.error(u),complete:()=>{o++,(o===i||!c)&&(s===i&&e.next(n?n.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),e.complete())}}))}})}let Q9=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(le(Ss),le(ti))},t.\u0275dir=Zt({type:t}),t})(),Kp=(()=>{class t extends Q9{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ji(t)))(i||t)}}(),t.\u0275dir=Zt({type:t,features:[vi]}),t})();const ha=new zn("NgValueAccessor"),TEe={provide:ha,useExisting:Gi(()=>aC),multi:!0};let aC=(()=>{class t extends Kp{writeValue(e){this.setProperty("checked",e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ji(t)))(i||t)}}(),t.\u0275dir=Zt({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,i){1&e&&ye("change",function(o){return i.onChange(o.target.checked)})("blur",function(){return i.onTouched()})},features:[Lr([TEe]),vi]}),t})();const EEe={provide:ha,useExisting:Gi(()=>Na),multi:!0},MEe=new zn("CompositionEventMode");let Na=(()=>{class t extends Q9{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function AEe(){const t=jh()?jh().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return t.\u0275fac=function(e){return new(e||t)(le(Ss),le(ti),le(MEe,8))},t.\u0275dir=Zt({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&ye("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[Lr([EEe]),vi]}),t})();const IEe=!1;function Af(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function Z9(t){return null!=t&&"number"==typeof t.length}const Oa=new zn("NgValidators"),Mf=new zn("NgAsyncValidators"),FEe=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Do{static min(n){return eV(n)}static max(n){return function tV(t){return n=>{if(Af(n.value)||Af(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return nV(n)}static requiredTrue(n){return function iV(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function rV(t){return Af(t.value)||FEe.test(t.value)?null:{email:!0}}(n)}static minLength(n){return function oV(t){return n=>Af(n.value)||!Z9(n.value)?null:n.value.lengthZ9(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}(n)}static pattern(n){return function aV(t){if(!t)return lC;let n,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(Af(i.value))return null;const r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(n)}static nullValidator(n){return null}static compose(n){return fV(n)}static composeAsync(n){return pV(n)}}function eV(t){return n=>{if(Af(n.value)||Af(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function dV(t,n){return n.map(e=>e(t))}function hV(t){return t.map(n=>function NEe(t){return!t.validate}(n)?n:e=>n.validate(e))}function fV(t){if(!t)return null;const n=t.filter(lV);return 0==n.length?null:function(e){return uV(dV(e,n))}}function JM(t){return null!=t?fV(hV(t)):null}function pV(t){if(!t)return null;const n=t.filter(lV);return 0==n.length?null:function(e){return function DEe(...t){if(1===t.length){const n=t[0];if(et(n))return sC(n,null);if(Ve(n)&&Object.getPrototypeOf(n)===Object.prototype){const e=Object.keys(n);return sC(e.map(i=>n[i]),e)}}if("function"==typeof t[t.length-1]){const n=t.pop();return sC(t=1===t.length&&et(t[0])?t[0]:t,null).pipe(yn(e=>n(...e)))}return sC(t,null)}(dV(e,n).map(cV)).pipe(yn(uV))}}function KM(t){return null!=t?pV(hV(t)):null}function mV(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function gV(t){return t._rawValidators}function vV(t){return t._rawAsyncValidators}function QM(t){return t?Array.isArray(t)?t:[t]:[]}function cC(t,n){return Array.isArray(t)?t.includes(n):t===n}function yV(t,n){const e=QM(n);return QM(t).forEach(r=>{cC(e,r)||e.push(r)}),e}function bV(t,n){return QM(n).filter(e=>!cC(t,e))}class _V{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=JM(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=KM(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class Dl extends _V{get formDirective(){return null}get path(){return null}}class If extends _V{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class xV{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let rl=(()=>{class t extends xV{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(le(If,2))},t.\u0275dir=Zt({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&Mn("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[vi]}),t})(),ol=(()=>{class t extends xV{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(le(Dl,10))},t.\u0275dir=Zt({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&Mn("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[vi]}),t})();function wV(t,n){return t?`with name: '${n}'`:`at index: ${n}`}const t3=!1,py="VALID",dC="INVALID",rv="PENDING",my="DISABLED";function n3(t){return(hC(t)?t.validators:t)||null}function i3(t,n){return(hC(n)?n.asyncValidators:t)||null}function hC(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function CV(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new Ot(1e3,t3?function LEe(t){return`\n There are no form controls registered with this ${t?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(n):"");if(!i[e])throw new Ot(1001,t3?function REe(t,n){return`Cannot find form control ${wV(t,n)}`}(n,e):"")}function kV(t,n,e){t._forEachChild((i,r)=>{if(void 0===e[r])throw new Ot(1002,t3?function $Ee(t,n){return`Must supply a value for form control ${wV(t,n)}`}(n,r):"")})}class fC{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===py}get invalid(){return this.status===dC}get pending(){return this.status==rv}get disabled(){return this.status===my}get enabled(){return this.status!==my}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(yV(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(yV(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(bV(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(bV(n,this._rawAsyncValidators))}hasValidator(n){return cC(this._rawValidators,n)}hasAsyncValidator(n){return cC(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=rv,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=my,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=py,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===py||this.status===rv)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?my:py}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=rv,this._hasOwnPendingAsyncValidator=!0;const e=cV(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new Ke,this.statusChanges=new Ke}_calculateStatus(){return this._allControlsDisabled()?my:this.errors?dC:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(rv)?rv:this._anyControlsHaveStatus(dC)?dC:py}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){hC(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function BEe(t){return Array.isArray(t)?JM(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function VEe(t){return Array.isArray(t)?KM(t):t||null}(this._rawAsyncValidators)}}class gy extends fC{constructor(n,e,i){super(n3(e),i3(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){kV(this,!0,n),Object.keys(n).forEach(i=>{CV(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{const r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class SV extends gy{}const Qp=new zn("CallSetDisabledState",{providedIn:"root",factory:()=>vy}),vy="always";function yy(t,n,e=vy){r3(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function zEe(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&DV(t,n)})}(t,n),function GEe(t,n){const e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function UEe(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&DV(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function HEe(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function mC(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),vC(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function gC(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function r3(t,n){const e=gV(t);null!==n.validator?t.setValidators(mV(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=vV(t);null!==n.asyncValidator?t.setAsyncValidators(mV(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();gC(n._rawValidators,r),gC(n._rawAsyncValidators,r)}function vC(t,n){let e=!1;if(null!==t){if(null!==n.validator){const r=gV(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(null!==n.asyncValidator){const r=vV(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}const i=()=>{};return gC(n._rawValidators,i),gC(n._rawAsyncValidators,i),e}function DV(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function AV(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function MV(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const _y=class extends fC{constructor(n=null,e,i){super(n3(e),i3(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),hC(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=MV(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){AV(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){AV(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){MV(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};let sl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Zt({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const eAe={provide:ha,useExisting:Gi(()=>c3),multi:!0};let c3=(()=>{class t extends Kp{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ji(t)))(i||t)}}(),t.\u0275dir=Zt({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,i){1&e&&ye("input",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},features:[Lr([eAe]),vi]}),t})(),jV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({}),t})();const u3=new zn("NgModelWithFormControlWarning"),oAe={provide:Dl,useExisting:Gi(()=>fa)};let fa=(()=>{class t extends Dl{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ke,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(vC(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return yy(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){mC(e.control||null,e,!1),function YEe(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,function EV(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(mC(i||null,e),(t=>t instanceof _y)(r)&&(yy(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);(function TV(t,n){r3(t,n)})(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function WEe(t,n){return vC(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){r3(this.form,this),this._oldForm&&vC(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(le(Oa,10),le(Mf,10),le(Qp,8))},t.\u0275dir=Zt({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&ye("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Lr([oAe]),vi,Hn]}),t})();const lAe={provide:If,useExisting:Gi(()=>ja)};let ja=(()=>{class t extends If{set isDisabled(e){}constructor(e,i,r,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new Ke,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function a3(t,n){if(!n)return null;let e,i,r;return Array.isArray(n),n.forEach(o=>{o.constructor===Na?e=o:function XEe(t){return Object.getPrototypeOf(t.constructor)===Kp}(o)?i=o:r=o}),r||i||e||null}(0,o)}ngOnChanges(e){this._added||this._setUpControl(),function s3(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return function pC(t,n){return[...n.path,t]}(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return t._ngModelWarningSentOnce=!1,t.\u0275fac=function(e){return new(e||t)(le(Dl,13),le(Oa,10),le(Mf,10),le(ha,10),le(u3,8))},t.\u0275dir=Zt({type:t,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Lr([lAe]),vi,Hn]}),t})();const cAe={provide:ha,useExisting:Gi(()=>ov),multi:!0};function BV(t,n){return null==t?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let ov=(()=>{class t extends Kp{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const r=BV(this._getOptionId(e),e);this.setProperty("value",r)}registerOnChange(e){this.onChange=i=>{this.value=this._getOptionValue(i),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const i of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(i),e))return i;return null}_getOptionValue(e){const i=function uAe(t){return t.split(":")[0]}(e);return this._optionMap.has(i)?this._optionMap.get(i):e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ji(t)))(i||t)}}(),t.\u0275dir=Zt({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,i){1&e&&ye("change",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[Lr([cAe]),vi]}),t})(),xy=(()=>{class t{constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(BV(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(le(ti),le(Ss),le(ov,9))},t.\u0275dir=Zt({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const dAe={provide:ha,useExisting:Gi(()=>f3),multi:!0};function VV(t,n){return null==t?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let f3=(()=>{class t extends Kp{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let i;if(this.value=e,Array.isArray(e)){const r=e.map(o=>this._getOptionId(o));i=(o,s)=>{o._setSelected(r.indexOf(s.toString())>-1)}}else i=(r,o)=>{r._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(e){this.onChange=i=>{const r=[],o=i.selectedOptions;if(void 0!==o){const s=o;for(let a=0;a{class t{constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(VV(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(VV(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(le(ti),le(Ss),le(f3,9))},t.\u0275dir=Zt({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();let Zp=(()=>{class t{constructor(){this._validator=lC}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):lC,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Zt({type:t,features:[Hn]}),t})();const pAe={provide:Oa,useExisting:Gi(()=>p3),multi:!0};let p3=(()=>{class t extends Zp{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>function zV(t){return"number"==typeof t?t:parseFloat(t)}(e),this.createValidator=e=>eV(e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ji(t)))(i||t)}}(),t.\u0275dir=Zt({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(e,i){2&e&&ht("min",i._enabled?i.min:null)},inputs:{min:"min"},features:[Lr([pAe]),vi]}),t})();const mAe={provide:Oa,useExisting:Gi(()=>Ff),multi:!0};let Ff=(()=>{class t extends Zp{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=qg,this.createValidator=e=>nV}enabled(e){return e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ji(t)))(i||t)}}(),t.\u0275dir=Zt({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,i){2&e&&ht("required",i._enabled?"":null)},inputs:{required:"required"},features:[Lr([mAe]),vi]}),t})(),JV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[jV]}),t})();class KV extends fC{constructor(n,e,i){super(n3(e),i3(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){kV(this,!1,n),n.forEach((i,r)=>{CV(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function QV(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let xAe=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,i=null){const r=this._reduceControls(e);let o={};return QV(i)?o=i:null!==i&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new gy(r,o)}record(e,i=null){const r=this._reduceControls(e);return new SV(r,i)}control(e,i,r){let o={};return this.useNonNullable?(QV(i)?o=i:(o.validators=i,o.asyncValidators=r),new _y(e,{...o,nonNullable:!0})):new _y(e,i,r)}array(e,i,r){const o=e.map(s=>this._createControl(s));return new KV(o,i,r)}_reduceControls(e){const i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){return e instanceof _y||e instanceof fC?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Tl=(()=>{class t extends xAe{group(e,i=null){return super.group(e,i)}control(e,i,r){return super.control(e,i,r)}array(e,i,r){return super.array(e,i,r)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ji(t)))(i||t)}}(),t.\u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ZV=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Qp,useValue:e.callSetDisabledState??vy}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[JV]}),t})(),wAe=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:u3,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Qp,useValue:e.callSetDisabledState??vy}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[JV]}),t})();const m3=new zn("ngx-segment-analytics.config"),CAe={debug:!1,loadOnInitialization:!0,segmentHost:"cdn.segment.com",segmentUri:"/analytics.js/v1/$API_KEY$/analytics.min.js"};let g3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),yC=(()=>{class t{constructor(e,i,r){if(this._w=e,this._doc=i,this._config=Object.assign(Object.assign({},CAe),r),this._config.loadOnInitialization&&(typeof this._config.apiKey>"u"||""===this._config.apiKey))console.error("The API Key cannot be an empty string if Segment must be loaded on initialization.");else if(typeof this._w.analytics>"u"||typeof this._w.analytics.initialize>"u"||!1===this._w.analytics.initialize){if(typeof this._w.analytics<"u"&&!0===this._w.analytics.invoked)return void console.error("Segment snippet included twice.");this._config.debug&&console.log("Segment initialization..."),this._w.analytics=[],this._w.analytics.invoked=!0,this._w.analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware"],this._w.analytics.factory=o=>(...s)=>(s.unshift(o),this._w.analytics.push(s),this._w.analytics),this._w.analytics.methods.forEach(o=>{this._w.analytics[o]=this._w.analytics.factory(o)}),this._w.analytics.load=(o,s)=>{const a=this._doc.createElement("script");a.type="text/javascript",a.async=!0,a.src="https://"+this._config.segmentHost+this._config.segmentUri.replace("$API_KEY$",o);const l=this._doc.getElementsByTagName("script")[0];l.parentNode.insertBefore(a,l),this._w.analytics._loadOptions=s},this._w.analytics.SNIPPET_VERSION="4.1.0",this._config.loadOnInitialization&&this.load(this._config.apiKey)}}load(e,i){this._w.analytics.load(e,i),this._config.debug&&console.log("Segment initialized"),this.debug(this._config.debug)}identify(e,i,r){return new Promise(o=>{this._w.analytics.identify(e,i,r,s=>o(this))})}track(e,i,r){return new Promise(o=>{this._w.analytics.track(e,i,r,s=>o(this))})}page(e,i,r,o){return new Promise(s=>{this._w.analytics.page(e,i,r,o,a=>s(this))})}group(e,i){return new Promise(r=>{this._w.analytics.group(e,i,o=>r(this))})}alias(e,i,r){return new Promise(o=>{this._w.analytics.alias(e,i,r,s=>o(this))})}ready(){return new Promise(e=>{this._w.analytics.ready(i=>e(this))})}user(){return this._w.analytics.user()}id(){return this._w.analytics.id()}traits(){return this._w.analytics.traits()}reset(){this._w.analytics.reset()}debug(e){this._w.analytics.debug(e)}on(e,i){this._w.analytics.on(e,i)}trackLink(e,i,r){this._w.analytics.trackLink(e,i,r)}trackForm(e,i,r){this._w.analytics.trackForm(e,i,r)}timeout(e){this._w.analytics.timeout(e)}addSourceMiddleware(e){this._w.analytics.addSourceMiddleware(e)}get plugins(){return this._w.analytics.plugins}}return t.\u0275fac=function(e){return new(e||t)(ct(g3),ct(Ir),ct(m3))},t.\u0275prov=Et({factory:function(){return new t(ct(g3),ct(Ir),ct(m3))},token:t,providedIn:"root"}),t})();function kAe(t){return function DB(t){return t===SB}(t)?window:{}}let SAe=(()=>{class t{constructor(e){if(e)throw new Error("SegmentModule is already loaded. Import it in the AppModule only")}static forRoot(e){return{ngModule:t,providers:[{provide:m3,useValue:e},yC]}}}return t.\u0275fac=function(e){return new(e||t)(ct(t,12))},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({providers:[{provide:g3,useFactory:kAe,deps:[L1]}],imports:[Vs]}),t})();class bC{}class v3{}class Nu{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(n).forEach(e=>{let i=n[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof Nu?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new Nu;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Nu?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const r=("a"===n.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=n.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class DAe{encodeKey(n){return eH(n)}encodeValue(n){return eH(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const EAe=/%(\d[a-f0-9])/gi,AAe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function eH(t){return encodeURIComponent(t).replace(EAe,(n,e)=>AAe[e]??n)}function _C(t){return`${t}`}class In{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new DAe,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function TAe(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],r=Array.isArray(i)?i.map(_C):[_C(i)];this.map.set(e,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new In({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(_C(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const r=i.indexOf(_C(n.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class MAe{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function tH(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function nH(t){return typeof Blob<"u"&&t instanceof Blob}function iH(t){return typeof FormData<"u"&&t instanceof FormData}class Cy{constructor(n,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function IAe(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Nu),this.context||(this.context=new MAe),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ad.set(h,n.setHeaders[h]),l)),n.setParams&&(c=Object.keys(n.setParams).reduce((d,h)=>d.set(h,n.setParams[h]),c)),new Cy(e,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var zs=(()=>((zs=zs||{})[zs.Sent=0]="Sent",zs[zs.UploadProgress=1]="UploadProgress",zs[zs.ResponseHeader=2]="ResponseHeader",zs[zs.DownloadProgress=3]="DownloadProgress",zs[zs.Response=4]="Response",zs[zs.User=5]="User",zs))();class y3{constructor(n,e=200,i="OK"){this.headers=n.headers||new Nu,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class b3 extends y3{constructor(n={}){super(n),this.type=zs.ResponseHeader}clone(n={}){return new b3({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class xC extends y3{constructor(n={}){super(n),this.type=zs.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new xC({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class rH extends y3{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function _3(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let wC=(()=>{class t{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof Cy)o=e;else{let l,c;l=r.headers instanceof Nu?r.headers:new Nu(r.headers),r.params&&(c=r.params instanceof In?r.params:new In({fromObject:r.params})),o=new Cy(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const s=$n(o).pipe(Sf(l=>this.handler.handle(l)));if(e instanceof Cy||"events"===r.observe)return s;const a=s.pipe(ns(l=>l instanceof xC));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(yn(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(yn(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(yn(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(yn(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new In).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,_3(r,i))}post(e,i,r={}){return this.request("POST",e,_3(r,i))}put(e,i,r={}){return this.request("PUT",e,_3(r,i))}}return t.\u0275fac=function(e){return new(e||t)(ct(bC))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();function oH(t,n){return n(t)}function NAe(t,n){return(e,i)=>n.intercept(e,{handle:r=>t(r,i)})}const x3=new zn("HTTP_INTERCEPTORS"),ky=new zn("HTTP_INTERCEPTOR_FNS");function jAe(){let t=null;return(n,e)=>(null===t&&(t=(ar(x3,{optional:!0})??[]).reduceRight(NAe,oH)),t(n,e))}let sH=(()=>{class t extends bC{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=Array.from(new Set(this.injector.get(ky)));this.chain=i.reduceRight((r,o)=>function OAe(t,n,e){return(i,r)=>e.runInContext(()=>n(i,o=>t(o,r)))}(r,o,this.injector),oH)}return this.chain(e,i=>this.backend.handle(i))}}return t.\u0275fac=function(e){return new(e||t)(ct(v3),ct(Fd))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const $Ae=/^\)\]\}',?\n/;let lH=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new rn(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((f,p)=>r.setRequestHeader(f,p.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const f=e.detectContentTypeHeader();null!==f&&r.setRequestHeader("Content-Type",f)}if(e.responseType){const f=e.responseType.toLowerCase();r.responseType="json"!==f?f:"text"}const o=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const f=r.statusText||"OK",p=new Nu(r.getAllResponseHeaders()),m=function BAe(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new b3({headers:p,status:r.status,statusText:f,url:m}),s},l=()=>{let{headers:f,status:p,statusText:m,url:g}=a(),v=null;204!==p&&(v=typeof r.response>"u"?r.responseText:r.response),0===p&&(p=v?200:0);let y=p>=200&&p<300;if("json"===e.responseType&&"string"==typeof v){const _=v;v=v.replace($Ae,"");try{v=""!==v?JSON.parse(v):null}catch(C){v=_,y&&(y=!1,v={error:C,text:v})}}y?(i.next(new xC({body:v,headers:f,status:p,statusText:m,url:g||void 0})),i.complete()):i.error(new rH({error:v,headers:f,status:p,statusText:m,url:g||void 0}))},c=f=>{const{url:p}=a(),m=new rH({error:f,status:r.status||0,statusText:r.statusText||"Unknown Error",url:p||void 0});i.error(m)};let u=!1;const d=f=>{u||(i.next(a()),u=!0);let p={type:zs.DownloadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),"text"===e.responseType&&r.responseText&&(p.partialText=r.responseText),i.next(p)},h=f=>{let p={type:zs.UploadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),i.next(p)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",d),null!==o&&r.upload&&r.upload.addEventListener("progress",h)),r.send(o),i.next({type:zs.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",d),null!==o&&r.upload&&r.upload.removeEventListener("progress",h)),r.readyState!==r.DONE&&r.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(ct(EB))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();const w3=new zn("XSRF_ENABLED"),cH=new zn("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),uH=new zn("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class dH{}let zAe=(()=>{class t{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=pB(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(ct(Ir),ct(L1),ct(cH))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})();function UAe(t,n){const e=t.url.toLowerCase();if(!ar(w3)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const i=ar(dH).getToken(),r=ar(uH);return null!=i&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,i)})),n(t)}var Ts=(()=>((Ts=Ts||{})[Ts.Interceptors=0]="Interceptors",Ts[Ts.LegacyInterceptors=1]="LegacyInterceptors",Ts[Ts.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Ts[Ts.NoXsrfProtection=3]="NoXsrfProtection",Ts[Ts.JsonpSupport=4]="JsonpSupport",Ts[Ts.RequestsMadeViaParent=5]="RequestsMadeViaParent",Ts))();function sv(t,n){return{\u0275kind:t,\u0275providers:n}}function GAe(...t){const n=[wC,lH,sH,{provide:bC,useExisting:sH},{provide:v3,useExisting:lH},{provide:ky,useValue:UAe,multi:!0},{provide:w3,useValue:!0},{provide:dH,useClass:zAe}];for(const e of t)n.push(...e.\u0275providers);return function R0e(t){return{\u0275providers:t}}(n)}const hH=new zn("LEGACY_INTERCEPTOR_FN");let qAe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({providers:[GAe(sv(Ts.LegacyInterceptors,[{provide:hH,useFactory:jAe},{provide:ky,useExisting:hH,multi:!0}]))]}),t})();var oi=(()=>(function(t){t[t.USER_ROLE_UNKNOWN=0]="USER_ROLE_UNKNOWN",t[t.USER_ROLE_ADMIN=1]="USER_ROLE_ADMIN",t[t.USER_ROLE_DEVELOPER=2]="USER_ROLE_DEVELOPER",t[t.USER_ROLE_MAINTAINER=3]="USER_ROLE_MAINTAINER",t[t.USER_ROLE_READONLY=4]="USER_ROLE_READONLY"}(oi||(oi={})),oi))(),Sy=(()=>(function(t){t[t.APPLE_APP_STORE=0]="APPLE_APP_STORE",t[t.GOOGLE_PLAY_STORE=1]="GOOGLE_PLAY_STORE",t[t.HUAWEI_APP_GALLERY=2]="HUAWEI_APP_GALLERY"}(Sy||(Sy={})),Sy))();class C3{constructor(){K(this,"host",void 0),K(this,"timeoutMs",void 0)}}let xi=(()=>{class t{constructor(e,i){K(this,"httpClient",void 0),K(this,"config",void 0),this.httpClient=e,this.config=i||{host:"http://127.0.0.1:7120",timeoutMs:5e3}}deleteAccounts(e){let r=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+"/v2/console/account",{params:r,headers:this.getTokenAuthHeaders(e)})}listAccounts(e,i,r,o){let a=new In({encoder:new Xn});return i&&(a=a.set("filter",i)),(r||!1===r)&&(a=a.set("tombstones",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+"/v2/console/account",{params:a,headers:this.getTokenAuthHeaders(e)})}getWalletLedger(e,i,r,o){const s=`/v2/console/account/${i=encodeURIComponent(String(i))}/wallet`;let a=new In({encoder:new Xn});return r&&(a=a.set("limit",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+s,{params:a,headers:this.getTokenAuthHeaders(e)})}deleteAccount(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}`;let s=new In({encoder:new Xn});return(r||!1===r)&&(s=s.set("record_deletion",String(r))),this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}getAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}`;let o=new In({encoder:new Xn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}updateAccount(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}`;let s=new In({encoder:new Xn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}banAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/ban`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}exportAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/export`;let o=new In({encoder:new Xn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getFriends(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/friend`;let o=new In({encoder:new Xn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteFriend(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/friend/${r=encodeURIComponent(String(r))}`;let s=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}getGroups(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/group`;let o=new In({encoder:new Xn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteGroupUser(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/group/${r=encodeURIComponent(String(r))}`;let s=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}unbanAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unban`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkApple(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/apple`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkCustom(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/custom`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkDevice(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/device`;let s=new In({encoder:new Xn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}unlinkEmail(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/email`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkFacebook(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/facebook`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkFacebookInstantGame(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/facebookinstantgame`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkGameCenter(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/gamecenter`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkGoogle(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/google`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkSteam(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/steam`;let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteWalletLedger(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/wallet/${r=encodeURIComponent(String(r))}`;let s=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}deleteAllData(e){let r=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+"/v2/console/all",{params:r,headers:this.getTokenAuthHeaders(e)})}listApiEndpoints(e){let r=new In({encoder:new Xn});return this.httpClient.get(this.config.host+"/v2/console/api/endpoints",{params:r,headers:this.getTokenAuthHeaders(e)})}callRpcEndpoint(e,i,r){const o=`/v2/console/api/endpoints/rpc/${i=encodeURIComponent(String(i))}`;let s=new In({encoder:new Xn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}callApiEndpoint(e,i,r){const o=`/v2/console/api/endpoints/${i=encodeURIComponent(String(i))}`;let s=new In({encoder:new Xn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}authenticate(e){let r=new In({encoder:new Xn});return this.httpClient.post(this.config.host+"/v2/console/authenticate",e,{params:r})}authenticateLogout(e,i){let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+"/v2/console/authenticate/logout",i,{params:o,headers:this.getTokenAuthHeaders(e)})}listChannelMessages(e,i,r,o,s,a,l){let u=new In({encoder:new Xn});return i&&(u=u.set("type",i)),r&&(u=u.set("label",r)),o&&(u=u.set("group_id",o)),s&&(u=u.set("user_id_one",s)),a&&(u=u.set("user_id_two",a)),l&&(u=u.set("cursor",l)),this.httpClient.get(this.config.host+"/v2/console/channel",{params:u,headers:this.getTokenAuthHeaders(e)})}getConfig(e){let r=new In({encoder:new Xn});return this.httpClient.get(this.config.host+"/v2/console/config",{params:r,headers:this.getTokenAuthHeaders(e)})}listGroups(e,i,r){let s=new In({encoder:new Xn});return i&&(s=s.set("filter",i)),r&&(s=s.set("cursor",r)),this.httpClient.get(this.config.host+"/v2/console/group",{params:s,headers:this.getTokenAuthHeaders(e)})}demoteGroupMember(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}/account/${r=encodeURIComponent(String(r))}/demote`;let s=new In({encoder:new Xn});return this.httpClient.post(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}promoteGroupMember(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}/account/${r=encodeURIComponent(String(r))}/promote`;let s=new In({encoder:new Xn});return this.httpClient.post(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}addGroupUsers(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}/add`;let s=new In({encoder:new Xn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}deleteGroup(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}`;let o=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getGroup(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}`;let o=new In({encoder:new Xn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}updateGroup(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}`;let s=new In({encoder:new Xn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}exportGroup(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}/export`;let o=new In({encoder:new Xn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getMembers(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}/member`;let o=new In({encoder:new Xn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}listLeaderboards(e,i){let o=new In({encoder:new Xn});return i&&(o=o.set("cursor",i)),this.httpClient.get(this.config.host+"/v2/console/leaderboard",{params:o,headers:this.getTokenAuthHeaders(e)})}deleteLeaderboard(e,i){const r=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}`;let o=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getLeaderboard(e,i){const r=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}`;let o=new In({encoder:new Xn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteLeaderboardRecord(e,i,r){const o=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}/owner/${r=encodeURIComponent(String(r))}`;let s=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}listLeaderboardRecords(e,i,r,o,s,a){const l=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}/records`;let c=new In({encoder:new Xn});return r&&r.forEach(u=>c=c.append("owner_ids",String(u))),o&&(c=c.set("limit",String(o))),s&&(c=c.set("cursor",s)),a&&(c=c.set("expiry",a)),this.httpClient.get(this.config.host+l,{params:c,headers:this.getTokenAuthHeaders(e)})}listMatches(e,i,r,o,s,a,l,c,u){let h=new In({encoder:new Xn});return i&&(h=h.set("limit",String(i))),(r||!1===r)&&(h=h.set("authoritative",String(r))),o&&(h=h.set("label",o)),s&&(h=h.set("min_size",String(s))),a&&(h=h.set("max_size",String(a))),l&&(h=h.set("match_id",l)),c&&(h=h.set("query",c)),u&&(h=h.set("node",u)),this.httpClient.get(this.config.host+"/v2/console/match",{params:h,headers:this.getTokenAuthHeaders(e)})}getMatchState(e,i){const r=`/v2/console/match/${i=encodeURIComponent(String(i))}/state`;let o=new In({encoder:new Xn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteChannelMessages(e,i,r){let s=new In({encoder:new Xn});return i&&(s=s.set("before",i)),r&&r.forEach(a=>s=s.append("ids",String(a))),this.httpClient.delete(this.config.host+"/v2/console/message",{params:s,headers:this.getTokenAuthHeaders(e)})}listPurchases(e,i,r,o){let a=new In({encoder:new Xn});return i&&(a=a.set("user_id",i)),r&&(a=a.set("limit",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+"/v2/console/purchase",{params:a,headers:this.getTokenAuthHeaders(e)})}getRuntime(e){let r=new In({encoder:new Xn});return this.httpClient.get(this.config.host+"/v2/console/runtime",{params:r,headers:this.getTokenAuthHeaders(e)})}getStatus(e){let r=new In({encoder:new Xn});return this.httpClient.get(this.config.host+"/v2/console/status",{params:r,headers:this.getTokenAuthHeaders(e)})}deleteStorage(e){let r=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+"/v2/console/storage",{params:r,headers:this.getTokenAuthHeaders(e)})}listStorage(e,i,r,o,s){let l=new In({encoder:new Xn});return i&&(l=l.set("user_id",i)),r&&(l=l.set("key",r)),o&&(l=l.set("collection",o)),s&&(l=l.set("cursor",s)),this.httpClient.get(this.config.host+"/v2/console/storage",{params:l,headers:this.getTokenAuthHeaders(e)})}listStorageCollections(e){let r=new In({encoder:new Xn});return this.httpClient.get(this.config.host+"/v2/console/storage/collections",{params:r,headers:this.getTokenAuthHeaders(e)})}deleteStorageObject(e,i,r,o,s){const a=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}`;let l=new In({encoder:new Xn});return s&&(l=l.set("version",s)),this.httpClient.delete(this.config.host+a,{params:l,headers:this.getTokenAuthHeaders(e)})}getStorage(e,i,r,o){const s=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}`;let a=new In({encoder:new Xn});return this.httpClient.get(this.config.host+s,{params:a,headers:this.getTokenAuthHeaders(e)})}writeStorageObject(e,i,r,o,s){const a=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}`;let l=new In({encoder:new Xn});return this.httpClient.put(this.config.host+a,s,{params:l,headers:this.getTokenAuthHeaders(e)})}deleteStorageObject2(e,i,r,o,s){const a=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}/${s=encodeURIComponent(String(s))}`;let l=new In({encoder:new Xn});return this.httpClient.delete(this.config.host+a,{params:l,headers:this.getTokenAuthHeaders(e)})}listSubscriptions(e,i,r,o){let a=new In({encoder:new Xn});return i&&(a=a.set("user_id",i)),r&&(a=a.set("limit",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+"/v2/console/subscription",{params:a,headers:this.getTokenAuthHeaders(e)})}deleteUser(e,i){let o=new In({encoder:new Xn});return i&&(o=o.set("username",i)),this.httpClient.delete(this.config.host+"/v2/console/user",{params:o,headers:this.getTokenAuthHeaders(e)})}listUsers(e){let r=new In({encoder:new Xn});return this.httpClient.get(this.config.host+"/v2/console/user",{params:r,headers:this.getTokenAuthHeaders(e)})}addUser(e,i){let o=new In({encoder:new Xn});return this.httpClient.post(this.config.host+"/v2/console/user",i,{params:o,headers:this.getTokenAuthHeaders(e)})}getTokenAuthHeaders(e){return(new Nu).set("Authorization","Bearer "+e)}getBasicAuthHeaders(e,i){return(new Nu).set("Authorization","Basic "+btoa(e+":"+i))}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(wC),ct(C3,8))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();class Xn{encodeKey(n){return encodeURIComponent(n)}encodeValue(n){return encodeURIComponent(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const fH=new zn("window"),JAe=[{provide:fH,useFactory:()=>window}],k3="currentSession";let Xo=(()=>{class t{constructor(e,i,r,o){K(this,"window",void 0),K(this,"segment",void 0),K(this,"http",void 0),K(this,"consoleService",void 0),K(this,"currentSessionSubject",void 0),K(this,"currentSession",void 0),this.window=e,this.segment=i,this.http=r,this.consoleService=o;const s=JSON.parse(localStorage.getItem(k3));s&&this.segmentIdentify(s),this.currentSessionSubject=new Hs(s),this.currentSession=this.currentSessionSubject.asObservable()}get currentSessionValue(){return this.currentSessionSubject.getValue()}get username(){const e=this.currentSessionSubject.getValue().token;return JSON.parse(atob(e.split(".")[1])).usn}get sessionRole(){const e=this.currentSessionSubject.getValue().token;switch(JSON.parse(atob(e.split(".")[1])).rol){case 1:return oi.USER_ROLE_ADMIN;case 2:return oi.USER_ROLE_DEVELOPER;case 3:return oi.USER_ROLE_MAINTAINER;case 4:return oi.USER_ROLE_READONLY;default:return oi.USER_ROLE_UNKNOWN}}login(e,i){return this.consoleService.authenticate({username:e,password:i}).pipe(is(r=>{localStorage.setItem(k3,JSON.stringify(r)),this.currentSessionSubject.next(r),this.segmentIdentify(r)}))}logout(){return this.currentSessionSubject.getValue()?this.consoleService.authenticateLogout("",{token:this.currentSessionSubject.getValue()?.token}).pipe(is(()=>{localStorage.removeItem(k3),this.currentSessionSubject.next(null)})):Vh}segmentIdentify(e){const r=JSON.parse(atob(e.token.split(".")[1]));this.segment.identify(null,{username:r.usn,email:r.ema,cookie:r.cki})}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(fH),ct(yC),ct(wC),ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function KAe(t,n){if(1&t&&(b(0,"div",17),I(1),x()),2&t){const e=j();w(1),xn(" ",e.error," ")}}const QAe=function(t){return{"was-validated":t}},pH=function(t){return{"is-invalid":t}};let ZAe=(()=>{class t{constructor(e,i,r,o,s){K(this,"segment",void 0),K(this,"formBuilder",void 0),K(this,"route",void 0),K(this,"router",void 0),K(this,"authenticationService",void 0),K(this,"error",""),K(this,"loginForm",void 0),K(this,"submitted",void 0),K(this,"returnUrl",void 0),this.segment=e,this.formBuilder=i,this.route=r,this.router=o,this.authenticationService=s}ngOnInit(){this.segment.page("/login"),this.loginForm=this.formBuilder.group({username:["",Do.compose([Do.required])],password:["",Do.compose([Do.required,Do.minLength(8)])]}),this.returnUrl=this.route.snapshot.queryParams.next||"/"}onSubmit(){this.submitted=!0,this.error="",!this.loginForm.invalid&&this.authenticationService.login(this.f.username.value,this.f.password.value).subscribe(e=>{this.loginForm.reset(),this.submitted=!1,this.router.navigate([this.returnUrl])},e=>{this.error=e,this.submitted=!1})}get f(){return this.loginForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(yC),le(Tl),le(Rr),le(cr),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:26,vars:14,consts:[[1,"bg-grad","d-flex","h-100"],[1,"align-self-center","mx-auto"],[1,"text-center","mb-4"],["src","/static/svg/logo.svg","alt","Nakama Logo","width","175"],["class","alert alert-warning","role","alert",4,"ngIf"],[1,"card"],[1,"card-body"],[1,"text-center"],[3,"formGroup","ngClass","ngSubmit"],[1,"form-group","form-row"],[1,"col-sm-12"],["for","username"],["type","text","id","username","formControlName","username","required","","autofocus","",1,"form-control",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","password"],["type","password","id","password","formControlName","password","required","",1,"form-control",3,"ngClass"],[1,"btn","btn-primary","btn-lg","btn-block",3,"disabled"],["role","alert",1,"alert","alert-warning"]],template:function(e,i){1&e&&(b(0,"div",0)(1,"div",1)(2,"h1",2),ge(3,"img",3),x(),J(4,KAe,2,1,"div",4),b(5,"div",5)(6,"div",6)(7,"h3",7),I(8,"Login"),x(),b(9,"form",8),ye("ngSubmit",function(){return i.onSubmit()}),b(10,"div",9)(11,"div",10)(12,"label",11),I(13,"Username"),x(),ge(14,"input",12),b(15,"div",13),I(16,"Please enter a username."),x()()(),b(17,"div",9)(18,"div",10)(19,"label",14),I(20,"Password"),x(),ge(21,"input",15),b(22,"div",13),I(23,"Password must be at least 8 characters."),x()()(),b(24,"button",16),I(25,"Login"),x()()()()()()),2&e&&(w(4),k("ngIf",i.error),w(5),k("formGroup",i.loginForm)("ngClass",lr(8,QAe,i.submitted)),w(5),k("ngClass",lr(10,pH,i.f.username.dirty&&i.f.username.errors)),w(1),k("hidden",i.f.username.disabled||i.f.username.valid||i.f.username.pristine),w(6),k("ngClass",lr(12,pH,i.f.password.dirty&&i.f.password.errors)),w(1),k("hidden",i.f.password.disabled||i.f.password.valid||i.f.password.pristine),w(2),k("disabled",!i.loginForm.valid||i.submitted))},dependencies:[Rh,gn,sl,Na,rl,ol,Ff,fa,ja],styles:["div[_ngcontent-%COMP%] .mx-auto[_ngcontent-%COMP%]{width:420px}"]})),t})(),eMe=(()=>{class t{constructor(e,i){K(this,"authService",void 0),K(this,"router",void 0),this.authService=e,this.router=i}canActivate(e,i){return!this.authService.currentSessionValue||(this.router.navigate(["/"]),!1)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(Xo),ct(cr))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})(),tMe=(()=>{class t{constructor(e,i){K(this,"router",void 0),K(this,"authenticationService",void 0),this.router=e,this.authenticationService=i}canActivate(e,i){return!!this.authenticationService.currentSessionValue||(this.router.navigate(["/login"],{queryParams:{next:i.url}}),!1)}canActivateChild(e,i){return this.canActivate(e,i)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(cr),ct(Xo))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();class nMe extends ue{constructor(n,e){super()}schedule(n,e=0){return this}}class S3 extends nMe{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){if(this.closed)return this;this.state=n;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(n,e,i=0){return setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let r,i=!1;try{this.work(n)}catch(o){i=!0,r=!!o&&o||new Error(o)}if(i)return this.unsubscribe(),r}_unsubscribe(){const n=this.id,e=this.scheduler,i=e.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null}}let mH=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return t.now=()=>Date.now(),t})();class Hd extends mH{constructor(n,e=mH.now){super(n,()=>Hd.delegate&&Hd.delegate!==this?Hd.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(n,e=0,i){return Hd.delegate&&Hd.delegate!==this?Hd.delegate.schedule(n,e,i):super.schedule(n,e,i)}flush(n){const{actions:e}=this;if(this.active)return void e.push(n);let i;this.active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this.active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const Dy=new Hd(S3);class rMe{constructor(n,e,i,r){this.bufferTimeSpan=n,this.bufferCreationInterval=e,this.maxBufferSize=i,this.scheduler=r}call(n,e){return e.subscribe(new sMe(n,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}class oMe{constructor(){this.buffer=[]}}class sMe extends O{constructor(n,e,i,r,o){super(n),this.bufferTimeSpan=e,this.bufferCreationInterval=i,this.maxBufferSize=r,this.scheduler=o,this.contexts=[];const s=this.openContext();if(this.timespanOnly=null==i||i<0,this.timespanOnly)this.add(s.closeAction=o.schedule(gH,e,{subscriber:this,context:s,bufferTimeSpan:e}));else{const l={bufferTimeSpan:e,bufferCreationInterval:i,subscriber:this,scheduler:o};this.add(s.closeAction=o.schedule(vH,e,{subscriber:this,context:s})),this.add(o.schedule(aMe,i,l))}}_next(n){const e=this.contexts,i=e.length;let r;for(let o=0;o0;){const i=n.shift();e.next(i.buffer)}super._complete()}_unsubscribe(){this.contexts=null}onBufferFull(n){this.closeContext(n);const e=n.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){n=this.openContext();const i=this.bufferTimeSpan;this.add(n.closeAction=this.scheduler.schedule(gH,i,{subscriber:this,context:n,bufferTimeSpan:i}))}}openContext(){const n=new oMe;return this.contexts.push(n),n}closeContext(n){this.destination.next(n.buffer);const e=this.contexts;(e?e.indexOf(n):-1)>=0&&e.splice(e.indexOf(n),1)}}function gH(t){const n=t.subscriber,e=t.context;e&&n.closeContext(e),n.closed||(t.context=n.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function aMe(t){const{bufferCreationInterval:n,bufferTimeSpan:e,subscriber:i,scheduler:r}=t,o=i.openContext();i.closed||(i.add(o.closeAction=r.schedule(vH,e,{subscriber:i,context:o})),this.schedule(t,n))}function vH(t){const{subscriber:n,context:e}=t;n.closeContext(e)}class lMe{constructor(n,e){this.compare=n,this.keySelector=e}call(n,e){return e.subscribe(new cMe(n,this.compare,this.keySelector))}}class cMe extends O{constructor(n,e,i){super(n),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(n,e){return n===e}_next(n){let e;try{const{keySelector:r}=this;e=r?r(n):n}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(n))}}function Es(t,n,e,i){return rt(e)&&(i=e,e=void 0),i?Es(t,n,e).pipe(yn(r=>et(r)?i(...r):i(r))):new rn(r=>{yH(t,n,function o(s){r.next(arguments.length>1?Array.prototype.slice.call(arguments):s)},r,e)})}function yH(t,n,e,i,r){let o;if(function hMe(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const s=t;t.addEventListener(n,e,r),o=()=>s.removeEventListener(n,e,r)}else if(function dMe(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const s=t;t.on(n,e),o=()=>s.off(n,e)}else if(function uMe(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const s=t;t.addListener(n,e),o=()=>s.removeListener(n,e)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let s=0,a=t.length;s=0}function av(t=0,n,e){let i=-1;return bH(n)?i=Number(n)<1?1:Number(n):Sa(n)&&(e=n),Sa(e)||(e=Dy),new rn(r=>{const o=bH(t)?t:+t-e.now();return e.schedule(fMe,o,{index:0,period:i,subscriber:r})})}function fMe(t){const{index:n,period:e,subscriber:i}=t;if(i.next(n),!i.closed){if(-1===e)return i.complete();t.index=n+1,this.schedule(t,e)}}function _H(...t){if(1===t.length){if(!et(t[0]))return t[0];t=t[0]}return st(t,void 0).lift(new pMe)}class pMe{call(n,e){return e.subscribe(new mMe(n))}}class mMe extends wM{constructor(n){super(n),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(n){this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{for(let i=0;ithis.index}hasCompleted(){return this.array.length===this.index}}class _Me extends W{constructor(n,e,i){super(n),this.parent=e,this.observable=i,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[Ro](){return this}next(){const n=this.buffer;return 0===n.length&&this.isComplete?{value:null,done:!0}:{value:n.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(n){this.buffer.push(n),this.parent.checkIterators()}subscribe(){return Ne(this.observable,new ml(this))}}function yo(t){return n=>n.lift(new wMe(t))}class wMe{constructor(n){this.notifier=n}call(n,e){const i=new CMe(n),r=Ne(this.notifier,new ml(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class CMe extends W{constructor(n){super(n),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function D3(...t){return n=>{let e;return"function"==typeof t[t.length-1]&&(e=t.pop()),n.lift(new kMe(t,e))}}class kMe{constructor(n,e){this.observables=n,this.project=e}call(n,e){return e.subscribe(new SMe(n,this.observables,this.project))}}class SMe extends wM{constructor(n,e,i){super(n),this.observables=e,this.project=i,this.toRespond=[];const r=e.length;this.values=new Array(r);for(let o=0;o0){const o=r.indexOf(i);-1!==o&&r.splice(o,1)}}notifyComplete(){}_next(n){if(0===this.toRespond.length){const e=[n,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(n){let e;try{e=this.project.apply(this,n)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}class Ou{constructor(n,e,i){this.kind=n,this.value=e,this.error=i,this.hasValue="N"===n}observe(n){switch(this.kind){case"N":return n.next&&n.next(this.value);case"E":return n.error&&n.error(this.error);case"C":return n.complete&&n.complete()}}do(n,e,i){switch(this.kind){case"N":return n&&n(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(n,e,i){return n&&"function"==typeof n.next?this.observe(n):this.do(n,e,i)}toObservable(){switch(this.kind){case"N":return $n(this.value);case"E":return qp(this.error);case"C":return Lw()}throw new Error("unexpected notification kind value")}static createNext(n){return typeof n<"u"?new Ou("N",n):Ou.undefinedValueNotification}static createError(n){return new Ou("E",void 0,n)}static createComplete(){return Ou.completeNotification}}function T3(t,n=Dy){const i=function DMe(t){return t instanceof Date&&!isNaN(+t)}(t)?+t-n.now():Math.abs(t);return r=>r.lift(new TMe(i,n))}Ou.completeNotification=new Ou("C"),Ou.undefinedValueNotification=new Ou("N",void 0);class TMe{constructor(n,e){this.delay=n,this.scheduler=e}call(n,e){return e.subscribe(new E3(n,this.delay,this.scheduler))}}class E3 extends O{constructor(n,e,i){super(n),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(n){const e=n.source,i=e.queue,r=n.scheduler,o=n.destination;for(;i.length>0&&i[0].time-r.now()<=0;)i.shift().notification.observe(o);if(i.length>0){const s=Math.max(0,i[0].time-r.now());this.schedule(n,s)}else this.unsubscribe(),e.active=!1}_schedule(n){this.active=!0,this.destination.add(n.schedule(E3.dispatch,this.delay,{source:this,destination:this.destination,scheduler:n}))}scheduleNotification(n){if(!0===this.errored)return;const e=this.scheduler,i=new EMe(e.now()+this.delay,n);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(n){this.scheduleNotification(Ou.createNext(n))}_error(n){this.errored=!0,this.queue=[],this.destination.error(n),this.unsubscribe()}_complete(){this.scheduleNotification(Ou.createComplete()),this.unsubscribe()}}class EMe{constructor(n,e){this.time=n,this.notification=e}}function $Me(t,n){if(1&t){const e=vt();b(0,"button",1),ye("click",function(){return $e(e),Be(j().close())}),b(1,"span",2),I(2,"\xd7"),x()()}}const lv=["*"],b3e=["dialog"];function Nf(t){return null!=t}typeof Element<"u"&&!Element.prototype.closest&&(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(t){let n=this;if(!document.documentElement.contains(n))return null;do{if(n.matches(t))return n;n=n.parentElement||n.parentNode}while(null!==n&&1===n.nodeType);return null});const CH={animation:!0,transitionTimerDelayMs:5};let pa=(()=>{class t{constructor(){this.animation=CH.animation}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({factory:function(){return new t},token:t,providedIn:"root"}),t})();const TIe=()=>{},{transitionTimerDelayMs:EIe}=CH,EC=new Map,ma=(t,n,e)=>{let i=e.context||{};const r=EC.get(t);if(r)switch(e.runningTransition){case"continue":return Vh;case"stop":r.transition$.complete(),i=Object.assign(r.context,i),EC.delete(t)}!function TC(t){return(t||document.body).offsetHeight}(t);const o=n(t,i)||TIe;if(!e.animation||"none"===window.getComputedStyle(t).transitionProperty)return o(),$n(void 0);const s=new tr,a=s.pipe(function xMe(...t){return n=>Pw(n,$n(...t))}(!0));EC.set(t,{transition$:s,context:i});const l=function DIe(t){const{transitionDelay:n,transitionDuration:e}=window.getComputedStyle(t);return 1e3*(parseFloat(n)+parseFloat(e))}(t),c=Es(t,"transitionend").pipe(yo(a),ns(({target:d})=>d===t));return _H(av(l+EIe).pipe(yo(a)),c).pipe(yo(a)).subscribe(()=>{EC.delete(t),o(),s.next(),s.complete()}),s.asObservable()};let AH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})(),IIe=(()=>{class t{constructor(e){this.dismissible=!0,this.type="warning",this.animation=e.animation}}return t.\u0275fac=function(e){return new(e||t)(ct(pa))},t.\u0275prov=Et({factory:function(){return new t(ct(pa))},token:t,providedIn:"root"}),t})();const FIe=({classList:t})=>{t.remove("show")};let To=(()=>{class t{constructor(e,i,r){this._renderer=i,this._element=r,this.closed=new Ke,this.dismissible=e.dismissible,this.type=e.type,this.animation=e.animation}close(){const e=ma(this._element.nativeElement,FIe,{animation:this.animation,runningTransition:"continue"});return e.subscribe(()=>this.closed.emit()),e}ngOnChanges(e){const i=e.type;i&&!i.firstChange&&(this._renderer.removeClass(this._element.nativeElement,`alert-${i.previousValue}`),this._renderer.addClass(this._element.nativeElement,`alert-${i.currentValue}`))}ngOnInit(){this._renderer.addClass(this._element.nativeElement,`alert-${this.type}`)}}return t.\u0275fac=function(e){return new(e||t)(le(IIe),le(Ss),le(ti))},t.\u0275cmp=Rt({type:t,selectors:[["ngb-alert"]],hostAttrs:["role","alert",1,"alert","show"],hostVars:4,hostBindings:function(e,i){2&e&&Mn("fade",i.animation)("alert-dismissible",i.dismissible)},inputs:{dismissible:"dismissible",type:"type",animation:"animation"},outputs:{closed:"closed"},exportAs:["ngbAlert"],features:[Hn],ngContentSelectors:lv,decls:2,vars:1,consts:function(){let n;return n=$localize`:@@ngb.alert.close␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`,[["type","button","class","close","aria-label",n,3,"click",4,"ngIf"],["type","button","aria-label",n,1,"close",3,"click"],["aria-hidden","true"]]},template:function(e,i){1&e&&(Cu(),ku(0),J(1,$Me,3,0,"button",0)),2&e&&(w(1),k("ngIf",i.dismissible))},dependencies:[gn],styles:["ngb-alert{display:block}"],encapsulation:2,changeDetection:0}),t})(),MH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})(),AC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Zt({type:t,selectors:[["","ngbButtonLabel",""]],hostVars:8,hostBindings:function(e,i){2&e&&Mn("btn",!0)("active",i.active)("disabled",i.disabled)("focus",i.focused)}}),t})(),OIe=0,F3=(()=>{class t{constructor(){this._radios=new Set,this._value=null,this.name="ngb-radio-"+OIe++,this.onChange=e=>{},this.onTouched=()=>{}}get disabled(){return this._disabled}set disabled(e){this.setDisabledState(e)}onRadioChange(e){this.writeValue(e.value),this.onChange(e.value)}onRadioValueUpdate(){this._updateRadiosValue()}register(e){this._radios.add(e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._disabled=e,this._updateRadiosDisabled()}unregister(e){this._radios.delete(e)}writeValue(e){this._value=e,this._updateRadiosValue()}_updateRadiosValue(){this._radios.forEach(e=>e.updateValue(this._value))}_updateRadiosDisabled(){this._radios.forEach(e=>e.updateDisabled())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Zt({type:t,selectors:[["","ngbRadioGroup",""]],hostAttrs:["role","radiogroup"],inputs:{name:"name"},features:[Lr([{provide:ha,useExisting:Gi(()=>t),multi:!0}])]}),t})(),IH=(()=>{class t{constructor(e,i,r,o,s){this._group=e,this._label=i,this._renderer=r,this._element=o,this._cd=s,this._value=null,this._group.register(this),this.updateDisabled()}set value(e){this._value=e;const i=e?e.toString():"";this._renderer.setProperty(this._element.nativeElement,"value",i),this._group.onRadioValueUpdate()}set disabled(e){this._disabled=!1!==e,this.updateDisabled()}set focused(e){this._label&&(this._label.focused=e),e||this._group.onTouched()}get checked(){return this._checked}get disabled(){return this._group.disabled||this._disabled}get value(){return this._value}get nameAttr(){return this.name||this._group.name}ngOnDestroy(){this._group.unregister(this)}onChange(){this._group.onRadioChange(this)}updateValue(e){this.value!==e&&this._cd.markForCheck(),this._checked=this.value===e,this._label.active=this._checked}updateDisabled(){this._label.disabled=this.disabled}}return t.\u0275fac=function(e){return new(e||t)(le(F3),le(AC),le(Ss),le(ti),le(qo))},t.\u0275dir=Zt({type:t,selectors:[["","ngbButton","","type","radio"]],hostVars:3,hostBindings:function(e,i){1&e&&ye("change",function(){return i.onChange()})("focus",function(){return i.focused=!0})("blur",function(){return i.focused=!1}),2&e&&dc("checked",i.checked)("disabled",i.disabled)("name",i.nameAttr)},inputs:{value:"value",disabled:"disabled",name:"name"}}),t})(),FH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({}),t})(),PH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})(),LH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({}),t})();var ur=(()=>(function(t){t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown"}(ur||(ur={})),ur))();const NC=(t,n)=>!!n&&n.some(e=>e.contains(t)),VH=(t,n)=>!n||null!=function kIe(t,n){return!n||typeof t.closest>"u"?null:t.closest(n)}(t,n),sFe=typeof navigator<"u"&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent)),aFe=t=>sFe?()=>setTimeout(()=>t(),100):t;function Ey(t,n,e,i,r,o,s,a){e&&t.runOutsideAngular(aFe(()=>{const c=Es(n,"keydown").pipe(yo(r),ns(h=>h.which===ur.Escape),is(h=>h.preventDefault())),u=Es(n,"mousedown").pipe(yn(h=>{const f=h.target;return 2!==h.button&&!NC(f,s)&&("inside"===e?NC(f,o)&&VH(f,a):"outside"===e?!NC(f,o):VH(f,a)||!NC(f,o))}),yo(r)),d=Es(n,"mouseup").pipe(D3(u),ns(([h,f])=>f),T3(0),yo(r));_H([c.pipe(yn(h=>0)),d.pipe(yn(h=>1))]).subscribe(h=>t.run(()=>i(h)))}))}const HH=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function zH(t){const n=Array.from(t.querySelectorAll(HH)).filter(e=>-1!==e.tabIndex);return[n[0],n[n.length-1]]}const cFe=/\s+/,GH=new class lFe{getAllStyles(n){return window.getComputedStyle(n)}getStyle(n,e){return this.getAllStyles(n)[e]}isStaticPositioned(n){return"static"===(this.getStyle(n,"position")||"static")}offsetParent(n){let e=n.offsetParent||document.documentElement;for(;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement}position(n,e=!0){let i,r={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(n,"position"))i=n.getBoundingClientRect(),i={top:i.top,bottom:i.bottom,left:i.left,right:i.right,height:i.height,width:i.width};else{const o=this.offsetParent(n);i=this.offset(n,!1),o!==document.documentElement&&(r=this.offset(o,!1)),r.top+=o.clientTop,r.left+=o.clientLeft}return i.top-=r.top,i.bottom-=r.top,i.left-=r.left,i.right-=r.left,e&&(i.top=Math.round(i.top),i.bottom=Math.round(i.bottom),i.left=Math.round(i.left),i.right=Math.round(i.right)),i}offset(n,e=!0){const i=n.getBoundingClientRect(),r_top=window.pageYOffset-document.documentElement.clientTop,r_left=window.pageXOffset-document.documentElement.clientLeft;let o={height:i.height||n.offsetHeight,width:i.width||n.offsetWidth,top:i.top+r_top,bottom:i.bottom+r_top,left:i.left+r_left,right:i.right+r_left};return e&&(o.height=Math.round(o.height),o.width=Math.round(o.width),o.top=Math.round(o.top),o.bottom=Math.round(o.bottom),o.left=Math.round(o.left),o.right=Math.round(o.right)),o}positionElements(n,e,i,r){const[o="top",s="center"]=i.split("-"),a=r?this.offset(n,!1):this.position(n,!1),l=this.getAllStyles(e),c=parseFloat(l.marginTop),u=parseFloat(l.marginBottom),d=parseFloat(l.marginLeft),h=parseFloat(l.marginRight);let f=0,p=0;switch(o){case"top":f=a.top-(e.offsetHeight+c+u);break;case"bottom":f=a.top+a.height;break;case"left":p=a.left-(e.offsetWidth+d+h);break;case"right":p=a.left+a.width}switch(s){case"top":f=a.top;break;case"bottom":f=a.top+a.height-e.offsetHeight;break;case"left":p=a.left;break;case"right":p=a.left+a.width-e.offsetWidth;break;case"center":"top"===o||"bottom"===o?p=a.left+a.width/2-e.offsetWidth/2:f=a.top+a.height/2-e.offsetHeight/2}e.style.transform=`translate(${Math.round(p)}px, ${Math.round(f)}px)`;const m=e.getBoundingClientRect(),g=document.documentElement,v=window.innerHeight||g.clientHeight,y=window.innerWidth||g.clientWidth;return m.left>=0&&m.top>=0&&m.right<=y&&m.bottom<=v}};function Ay(t,n,e,i,r){let o=Array.isArray(e)?e:e.split(cFe);const s=["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"],a=n.classList,l=f=>{const[p,m]=f.split("-"),g=[];return r&&(g.push(`${r}-${p}`),m&&g.push(`${r}-${p}-${m}`),g.forEach(v=>{a.add(v)})),g};r&&s.forEach(f=>{a.remove(`${r}-${f}`)});let c=o.findIndex(f=>"auto"===f);c>=0&&s.forEach(function(f){null==o.find(p=>-1!==p.search("^"+f))&&o.splice(c++,1,f)});const u=n.style;u.position="absolute",u.top="0",u.left="0",u["will-change"]="transform";let d=null,h=!1;for(d of o){let f=l(d);if(GH.positionElements(t,n,d,i)){h=!0;break}r&&f.forEach(p=>{a.remove(p)})}return h||(d=o[0],l(d),GH.positionElements(t,n,d,i)),d}new Date(1882,10,12),new Date(2174,10,25);let ZH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs,ZV]}),t})(),xFe=(()=>{class t{constructor(){this.autoClose=!0,this.placement=["bottom-left","bottom-right","top-left","top-right"]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Et({factory:function(){return new t},token:t,providedIn:"root"}),t})(),ez=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Zt({type:t,selectors:[["",8,"navbar"]]}),t})(),jf=(()=>{class t{constructor(e){this.elementRef=e,this._disabled=!1}set disabled(e){this._disabled=""===e||!0===e}get disabled(){return this._disabled}}return t.\u0275fac=function(e){return new(e||t)(le(ti))},t.\u0275dir=Zt({type:t,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:2,hostBindings:function(e,i){2&e&&Mn("disabled",i.disabled)},inputs:{disabled:"disabled"}}),t})(),Pf=(()=>{class t{constructor(e,i){this.dropdown=e,this.placement="bottom",this.isOpen=!1,this.nativeElement=i.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(le(Gi(()=>Pu)),le(ti))},t.\u0275dir=Zt({type:t,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(e,i,r){if(1&e&&ni(r,jf,4),2&e){let o;cn(o=un())&&(i.menuItems=o)}},hostVars:5,hostBindings:function(e,i){1&e&&ye("keydown.ArrowUp",function(o){return i.dropdown.onKeyDown(o)})("keydown.ArrowDown",function(o){return i.dropdown.onKeyDown(o)})("keydown.Home",function(o){return i.dropdown.onKeyDown(o)})("keydown.End",function(o){return i.dropdown.onKeyDown(o)})("keydown.Enter",function(o){return i.dropdown.onKeyDown(o)})("keydown.Space",function(o){return i.dropdown.onKeyDown(o)})("keydown.Tab",function(o){return i.dropdown.onKeyDown(o)})("keydown.Shift.Tab",function(o){return i.dropdown.onKeyDown(o)}),2&e&&(ht("x-placement",i.placement),Mn("dropdown-menu",!0)("show",i.dropdown.isOpen()))}}),t})(),LC=(()=>{class t{constructor(e,i){this.dropdown=e,this.nativeElement=i.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(le(Gi(()=>Pu)),le(ti))},t.\u0275dir=Zt({type:t,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,i){2&e&&ht("aria-expanded",i.dropdown.isOpen())}}),t})(),rm=(()=>{class t extends LC{constructor(e,i){super(e,i)}}return t.\u0275fac=function(e){return new(e||t)(le(Gi(()=>Pu)),le(ti))},t.\u0275dir=Zt({type:t,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,i){1&e&&ye("click",function(){return i.dropdown.toggle()})("keydown.ArrowUp",function(o){return i.dropdown.onKeyDown(o)})("keydown.ArrowDown",function(o){return i.dropdown.onKeyDown(o)})("keydown.Home",function(o){return i.dropdown.onKeyDown(o)})("keydown.End",function(o){return i.dropdown.onKeyDown(o)})("keydown.Tab",function(o){return i.dropdown.onKeyDown(o)})("keydown.Shift.Tab",function(o){return i.dropdown.onKeyDown(o)}),2&e&&ht("aria-expanded",i.dropdown.isOpen())},features:[Lr([{provide:LC,useExisting:Gi(()=>t)}]),vi]}),t})(),Pu=(()=>{class t{constructor(e,i,r,o,s,a,l){this._changeDetector=e,this._document=r,this._ngZone=o,this._elementRef=s,this._renderer=a,this._closed$=new tr,this._bodyContainer=null,this._open=!1,this.openChange=new Ke,this.placement=i.placement,this.container=i.container,this.autoClose=i.autoClose,this.display=l?"static":"dynamic",this._zoneSubscription=o.onStable.subscribe(()=>{this._positionMenu()})}ngAfterContentInit(){this._ngZone.onStable.pipe(Sl(1)).subscribe(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()})}ngOnChanges(e){e.container&&this._open&&this._applyContainer(this.container),e.placement&&!e.placement.isFirstChange&&this._applyPlacementClasses()}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&this._anchor.nativeElement.focus())}_setCloseHandlers(){Ey(this._ngZone,this._document,this.autoClose,e=>{this.close(),0===e&&this._anchor.nativeElement.focus()},this._closed$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._closed$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this._resetContainer(),this._closed$.next(),this._zoneSubscription.unsubscribe()}onKeyDown(e){const i=e.which,r=this._getMenuElements();let o=-1,s=null;const a=this._isEventFromToggle(e);if(!a&&r.length&&r.forEach((l,c)=>{l.contains(e.target)&&(s=l),l===this._document.activeElement&&(o=c)}),i!==ur.Space&&i!==ur.Enter){if(i!==ur.Tab){if(a||s){if(this.open(),r.length){switch(i){case ur.ArrowDown:o=Math.min(o+1,r.length-1);break;case ur.ArrowUp:if(this._isDropup()&&-1===o){o=r.length-1;break}o=Math.max(o-1,0);break;case ur.Home:o=0;break;case ur.End:o=r.length-1}r[o].focus()}e.preventDefault()}}else if(e.target&&this.isOpen()&&this.autoClose){if(this._anchor.nativeElement===e.target)return void("body"!==this.container||e.shiftKey?e.shiftKey&&this.close():(this._renderer.setAttribute(this._menu.nativeElement,"tabindex","0"),this._menu.nativeElement.focus(),this._renderer.removeAttribute(this._menu.nativeElement,"tabindex")));if("body"===this.container){const l=this._menu.nativeElement.querySelectorAll(HH);e.shiftKey&&e.target===l[0]?(this._anchor.nativeElement.focus(),e.preventDefault()):!e.shiftKey&&e.target===l[l.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else Es(e.target,"focusout").pipe(Sl(1)).subscribe(({relatedTarget:l})=>{this._elementRef.nativeElement.contains(l)||this.close()})}}else s&&(!0===this.autoClose||"inside"===this.autoClose)&&Es(s,"click").pipe(Sl(1)).subscribe(()=>this.close())}_isDropup(){return this._elementRef.nativeElement.classList.contains("dropup")}_isEventFromToggle(e){return this._anchor.nativeElement.contains(e.target)}_getMenuElements(){const e=this._menu;return null==e?[]:e.menuItems.filter(i=>!i.disabled).map(i=>i.elementRef.nativeElement)}_positionMenu(){const e=this._menu;this.isOpen()&&e&&this._applyPlacementClasses("dynamic"===this.display?Ay(this._anchor.nativeElement,this._bodyContainer||this._menu.nativeElement,this.placement,"body"===this.container):this._getFirstPlacement(this.placement))}_getFirstPlacement(e){return Array.isArray(e)?e[0]:e.split(" ")[0]}_resetContainer(){const e=this._renderer;if(this._menu){const r=this._menu.nativeElement;e.appendChild(this._elementRef.nativeElement,r),e.removeStyle(r,"position"),e.removeStyle(r,"transform")}this._bodyContainer&&(e.removeChild(this._document.body,this._bodyContainer),this._bodyContainer=null)}_applyContainer(e=null){if(this._resetContainer(),"body"===e){const i=this._renderer,r=this._menu.nativeElement,o=this._bodyContainer=this._bodyContainer||i.createElement("div");i.setStyle(o,"position","absolute"),i.setStyle(r,"position","static"),i.setStyle(o,"z-index","1050"),i.appendChild(o,r),i.appendChild(this._document.body,o)}}_applyPlacementClasses(e){const i=this._menu;if(i){e||(e=this._getFirstPlacement(this.placement));const r=this._renderer,o=this._elementRef.nativeElement;r.removeClass(o,"dropup"),r.removeClass(o,"dropdown"),i.placement="static"===this.display?null:e;const s=-1!==e.search("^top")?"dropup":"dropdown";r.addClass(o,s);const a=this._bodyContainer;a&&(r.removeClass(a,"dropup"),r.removeClass(a,"dropdown"),r.addClass(a,s))}}}return t.\u0275fac=function(e){return new(e||t)(le(qo),le(xFe),le(Ir),le(Wi),le(ti),le(Ss),le(ez,8))},t.\u0275dir=Zt({type:t,selectors:[["","ngbDropdown",""]],contentQueries:function(e,i,r){if(1&e&&(ni(r,Pf,5),ni(r,LC,5)),2&e){let o;cn(o=un())&&(i._menu=o.first),cn(o=un())&&(i._anchor=o.first)}},hostVars:2,hostBindings:function(e,i){2&e&&Mn("show",i.isOpen())},inputs:{_open:["open","_open"],placement:"placement",container:"container",autoClose:"autoClose",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],features:[Hn]}),t})(),tz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({}),t})(),nz=(()=>{class t{constructor(e){this.backdrop=!0,this.keyboard=!0,this.animation=e.animation}}return t.\u0275fac=function(e){return new(e||t)(ct(pa))},t.\u0275prov=Et({factory:function(){return new t(ct(pa))},token:t,providedIn:"root"}),t})();class om{constructor(n,e,i){this.nodes=n,this.viewRef=e,this.componentRef=i}}class V3{constructor(n,e,i,r,o,s,a){this._type=n,this._injector=e,this._viewContainerRef=i,this._renderer=r,this._ngZone=o,this._componentFactoryResolver=s,this._applicationRef=a,this._windowRef=null,this._contentRef=null}open(n,e,i=!1){this._windowRef||(this._contentRef=this._getContentRef(n,e),this._windowRef=this._viewContainerRef.createComponent(this._componentFactoryResolver.resolveComponentFactory(this._type),this._viewContainerRef.length,this._injector,this._contentRef.nodes));const{nativeElement:r}=this._windowRef.location,s=this._ngZone.onStable.asObservable().pipe(Sl(1)).pipe(nt(()=>this._ngZone.run(()=>ma(r,({classList:a})=>a.add("show"),{animation:i,runningTransition:"continue"}))));return{windowRef:this._windowRef,transition$:s}}close(n=!1){return this._windowRef?ma(this._windowRef.location.nativeElement,({classList:e})=>e.remove("show"),{animation:n,runningTransition:"stop"}).pipe(is(()=>{var e;this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),null!==(e=this._contentRef)&&void 0!==e&&e.viewRef&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):$n(void 0)}_getContentRef(n,e){if(n){if(n instanceof Si){const i=n.createEmbeddedView(e);return this._applicationRef.attachView(i),new om([i.rootNodes],i)}return new om([[this._renderer.createText(`${n}`)]])}return new om([])}}const wFe=()=>{};let iz=(()=>{class t{constructor(e){this._document=e}compensate(){const e=this._getWidth();return this._isPresent(e)?this._adjustBody(e):wFe}_adjustBody(e){const i=this._document.body,r=i.style.paddingRight,o=parseFloat(window.getComputedStyle(i)["padding-right"]);return i.style["padding-right"]=`${o+e}px`,()=>i.style["padding-right"]=r}_isPresent(e){const i=this._document.body.getBoundingClientRect();return window.innerWidth-(i.left+i.right)>=e-.1*e}_getWidth(){const e=this._document.createElement("div");e.className="modal-scrollbar-measure";const i=this._document.body;i.appendChild(e);const r=e.getBoundingClientRect().width-e.clientWidth;return i.removeChild(e),r}}return t.\u0275fac=function(e){return new(e||t)(ct(Ir))},t.\u0275prov=Et({factory:function(){return new t(ct(Ir))},token:t,providedIn:"root"}),t})(),CFe=(()=>{class t{constructor(e,i){this._el=e,this._zone=i}ngOnInit(){this._zone.onStable.asObservable().pipe(Sl(1)).subscribe(()=>{ma(this._el.nativeElement,({classList:e})=>e.add("show"),{animation:this.animation,runningTransition:"continue"})})}hide(){return ma(this._el.nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return t.\u0275fac=function(e){return new(e||t)(le(ti),le(Wi))},t.\u0275cmp=Rt({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:6,hostBindings:function(e,i){2&e&&(Su("modal-backdrop"+(i.backdropClass?" "+i.backdropClass:"")),Mn("show",!i.animation)("fade",i.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})();class rz{close(n){}dismiss(n){}}class kFe{constructor(n,e,i,r){this._windowCmptRef=n,this._contentRef=e,this._backdropCmptRef=i,this._beforeDismiss=r,this._closed=new tr,this._dismissed=new tr,this._hidden=new tr,n.instance.dismissEvent.subscribe(o=>{this.dismiss(o)}),this.result=new Promise((o,s)=>{this._resolve=o,this._reject=s}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(yo(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(yo(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(n){this._windowCmptRef&&(this._closed.next(n),this._resolve(n),this._removeModalElements())}_dismiss(n){this._dismissed.next(n),this._reject(n),this._removeModalElements()}dismiss(n){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();e&&e.then?e.then(i=>{!1!==i&&this._dismiss(n)},()=>{}):!1!==e&&this._dismiss(n)}else this._dismiss(n)}_removeModalElements(){const n=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():$n(void 0);n.subscribe(()=>{const{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),kC(n,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var Fy=(()=>(function(t){t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC"}(Fy||(Fy={})),Fy))();let SFe=(()=>{class t{constructor(e,i,r){this._document=e,this._elRef=i,this._zone=r,this._closed$=new tr,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new Ke,this.shown=new tr,this.hidden=new tr}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement}ngAfterViewInit(){this._show()}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:e}=this._elRef,i={animation:this.animation,runningTransition:"stop"},s=kC(ma(e,()=>e.classList.remove("show"),i),ma(this._dialogEl.nativeElement,()=>{},i));return s.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),s}_show(){const{nativeElement:e}=this._elRef,i={animation:this.animation,runningTransition:"continue"};kC(ma(e,()=>e.classList.add("show"),i),ma(this._dialogEl.nativeElement,()=>{},i)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:e}=this._elRef;this._zone.runOutsideAngular(()=>{Es(e,"keydown").pipe(yo(this._closed$),ns(r=>r.which===ur.Escape)).subscribe(r=>{this.keyboard?requestAnimationFrame(()=>{r.defaultPrevented||this._zone.run(()=>this.dismiss(Fy.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let i=!1;Es(this._dialogEl.nativeElement,"mousedown").pipe(yo(this._closed$),is(()=>i=!1),zl(()=>Es(e,"mouseup").pipe(yo(this._closed$),Sl(1))),ns(({target:r})=>e===r)).subscribe(()=>{i=!0}),Es(e,"click").pipe(yo(this._closed$)).subscribe(({target:r})=>{e===r&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!i&&this._zone.run(()=>this.dismiss(Fy.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:e}=this._elRef;if(!e.contains(document.activeElement)){const i=e.querySelector("[ngbAutofocus]"),r=zH(e)[0];(i||r||e).focus()}}_restoreFocus(){const e=this._document.body,i=this._elWithFocus;let r;r=i&&i.focus&&e.contains(i)?i:e,this._zone.runOutsideAngular(()=>{setTimeout(()=>r.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&ma(this._elRef.nativeElement,({classList:e})=>(e.add("modal-static"),()=>e.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return t.\u0275fac=function(e){return new(e||t)(le(Ir),le(ti),le(Wi))},t.\u0275cmp=Rt({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(e,i){if(1&e&&io(b3e,7),2&e){let r;cn(r=un())&&(i._dialogEl=r.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(e,i){2&e&&(ht("aria-modal",!0)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy),Su("modal d-block"+(i.windowClass?" "+i.windowClass:"")),Mn("fade",i.animation))},inputs:{backdrop:"backdrop",keyboard:"keyboard",animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",centered:"centered",scrollable:"scrollable",size:"size",windowClass:"windowClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:lv,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(e,i){1&e&&(Cu(),b(0,"div",0,1)(2,"div",2),ku(3),x()()),2&e&&Su("modal-dialog"+(i.size?" modal-"+i.size:"")+(i.centered?" modal-dialog-centered":"")+(i.scrollable?" modal-dialog-scrollable":""))},styles:["ngb-modal-window .component-host-scrollable{-ms-flex-direction:column;display:-ms-flexbox;display:flex;flex-direction:column;overflow:hidden}"],encapsulation:2}),t})(),oz=(()=>{class t{constructor(e,i,r,o,s,a){this._applicationRef=e,this._injector=i,this._document=r,this._scrollBar=o,this._rendererFactory=s,this._ngZone=a,this._activeWindowCmptHasChanged=new tr,this._ariaHiddenValues=new Map,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","keyboard","scrollable","size","windowClass"],this._windowCmpts=[],this._activeInstances=new Ke,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const l=this._windowCmpts[this._windowCmpts.length-1];((t,n,e,i=!1)=>{t.runOutsideAngular(()=>{const r=Es(n,"focusin").pipe(yo(e),yn(o=>o.target));Es(n,"keydown").pipe(yo(e),ns(o=>o.which===ur.Tab),D3(r)).subscribe(([o,s])=>{const[a,l]=zH(n);(s===a||s===n)&&o.shiftKey&&(l.focus(),o.preventDefault()),s===l&&!o.shiftKey&&(a.focus(),o.preventDefault())}),i&&Es(n,"click").pipe(yo(e),D3(r),yn(o=>o[1])).subscribe(o=>o.focus())})})(this._ngZone,l.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(l.location.nativeElement)}})}open(e,i,r,o){const s=o.container instanceof HTMLElement?o.container:Nf(o.container)?this._document.querySelector(o.container):this._document.body,a=this._rendererFactory.createRenderer(null,null),l=this._scrollBar.compensate(),c=()=>{this._modalRefs.length||(a.removeClass(this._document.body,"modal-open"),this._revertAriaHidden())};if(!s)throw new Error(`The specified modal container "${o.container||"body"}" was not found in the DOM.`);const u=new rz,d=this._getContentRef(e,o.injector||i,r,u,o);let h=!1!==o.backdrop?this._attachBackdrop(e,s):void 0,f=this._attachWindowComponent(e,s,d),p=new kFe(f,d,h,o.beforeDismiss);return this._registerModalRef(p),this._registerWindowCmpt(f),p.result.then(l,l),p.result.then(c,c),u.close=m=>{p.close(m)},u.dismiss=m=>{p.dismiss(m)},this._applyWindowOptions(f.instance,o),1===this._modalRefs.length&&a.addClass(this._document.body,"modal-open"),h&&h.instance&&this._applyBackdropOptions(h.instance,o),p}get activeInstances(){return this._activeInstances}dismissAll(e){this._modalRefs.forEach(i=>i.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e,i){let o=e.resolveComponentFactory(CFe).create(this._injector);return this._applicationRef.attachView(o.hostView),i.appendChild(o.location.nativeElement),o}_attachWindowComponent(e,i,r){let s=e.resolveComponentFactory(SFe).create(this._injector,r.nodes);return this._applicationRef.attachView(s.hostView),i.appendChild(s.location.nativeElement),s}_applyWindowOptions(e,i){this._windowAttributes.forEach(r=>{Nf(i[r])&&(e[r]=i[r])})}_applyBackdropOptions(e,i){this._backdropAttributes.forEach(r=>{Nf(i[r])&&(e[r]=i[r])})}_getContentRef(e,i,r,o,s){return r?r instanceof Si?this._createFromTemplateRef(r,o):function DC(t){return"string"==typeof t}(r)?this._createFromString(r):this._createFromComponent(e,i,r,o,s):new om([])}_createFromTemplateRef(e,i){const o=e.createEmbeddedView({$implicit:i,close(s){i.close(s)},dismiss(s){i.dismiss(s)}});return this._applicationRef.attachView(o),new om([o.rootNodes],o)}_createFromString(e){const i=this._document.createTextNode(`${e}`);return new om([[i]])}_createFromComponent(e,i,r,o,s){const a=e.resolveComponentFactory(r),l=Rs.create({providers:[{provide:rz,useValue:o}],parent:i}),c=a.create(l),u=c.location.nativeElement;return s.scrollable&&u.classList.add("component-host-scrollable"),this._applicationRef.attachView(c.hostView),new om([[u]],c.hostView,c)}_setAriaHidden(e){const i=e.parentElement;i&&e!==this._document.body&&(Array.from(i.children).forEach(r=>{r!==e&&"SCRIPT"!==r.nodeName&&(this._ariaHiddenValues.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((e,i)=>{e?i.setAttribute("aria-hidden",e):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(e){const i=()=>{const r=this._modalRefs.indexOf(e);r>-1&&(this._modalRefs.splice(r,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(e),this._activeInstances.emit(this._modalRefs),e.result.then(i,i)}_registerWindowCmpt(e){this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(()=>{const i=this._windowCmpts.indexOf(e);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}}return t.\u0275fac=function(e){return new(e||t)(ct(Au),ct(Rs),ct(Ir),ct(iz),ct(Lp),ct(Wi))},t.\u0275prov=Et({factory:function(){return new t(ct(Au),ct(Dx),ct(Ir),ct(iz),ct(Lp),ct(Wi))},token:t,providedIn:"root"}),t})(),H3=(()=>{class t{constructor(e,i,r,o){this._moduleCFR=e,this._injector=i,this._modalStack=r,this._config=o}open(e,i={}){const r=Object.assign({},this._config,i);return this._modalStack.open(this._moduleCFR,this._injector,e,r)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return t.\u0275fac=function(e){return new(e||t)(ct($c),ct(Rs),ct(oz),ct(nz))},t.\u0275prov=Et({factory:function(){return new t(ct($c),ct(Dx),ct(oz),ct(nz))},token:t,providedIn:"root"}),t})(),sz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({providers:[H3]}),t})(),DFe=(()=>{class t{constructor(e){this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist",this.keyboard=!1,this.animation=e.animation}}return t.\u0275fac=function(e){return new(e||t)(ct(pa))},t.\u0275prov=Et({factory:function(){return new t(ct(pa))},token:t,providedIn:"root"}),t})();const az=t=>Nf(t)&&""!==t;let TFe=0,lz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(le(Si))},t.\u0275dir=Zt({type:t,selectors:[["ng-template","ngbNavContent",""]]}),t})(),sm=(()=>{class t{constructor(e,i){this.elementRef=i,this.disabled=!1,this.shown=new Ke,this.hidden=new Ke,this._nav=e}ngAfterContentChecked(){this.contentTpl=this.contentTpls.first}ngOnInit(){Nf(this.domId)||(this.domId="ngb-nav-"+TFe++)}get active(){return this._nav.activeId===this.id}get id(){return az(this._id)?this._id:this.domId}get panelDomId(){return`${this.domId}-panel`}isPanelInDom(){return(Nf(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}}return t.\u0275fac=function(e){return new(e||t)(le(Gi(()=>am)),le(ti))},t.\u0275dir=Zt({type:t,selectors:[["","ngbNavItem",""]],contentQueries:function(e,i,r){if(1&e&&ni(r,lz,4),2&e){let o;cn(o=un())&&(i.contentTpls=o)}},hostVars:2,hostBindings:function(e,i){2&e&&Mn("nav-item",!0)},inputs:{disabled:"disabled",domId:"domId",destroyOnHide:"destroyOnHide",_id:["ngbNavItem","_id"]},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbNavItem"]}),t})(),am=(()=>{class t{constructor(e,i,r,o){this.role=e,this._cd=r,this._document=o,this.activeIdChange=new Ke,this.shown=new Ke,this.hidden=new Ke,this.destroy$=new tr,this.navItemChange$=new tr,this.navChange=new Ke,this.animation=i.animation,this.destroyOnHide=i.destroyOnHide,this.orientation=i.orientation,this.roles=i.roles,this.keyboard=i.keyboard}click(e){e.disabled||this._updateActiveId(e.id)}onKeyDown(e){if("tablist"!==this.roles||!this.keyboard)return;const i=e.which,r=this.links.filter(a=>!a.navItem.disabled),{length:o}=r;let s=-1;if(r.forEach((a,l)=>{a.elRef.nativeElement===this._document.activeElement&&(s=l)}),o){switch(i){case ur.ArrowLeft:if("vertical"===this.orientation)return;s=(s-1+o)%o;break;case ur.ArrowRight:if("vertical"===this.orientation)return;s=(s+1)%o;break;case ur.ArrowDown:if("horizontal"===this.orientation)return;s=(s+1)%o;break;case ur.ArrowUp:if("horizontal"===this.orientation)return;s=(s-1+o)%o;break;case ur.Home:s=0;break;case ur.End:s=o-1}"changeWithArrows"===this.keyboard&&this.select(r[s].navItem.id),r[s].elRef.nativeElement.focus(),e.preventDefault()}}select(e){this._updateActiveId(e,!1)}ngAfterContentInit(){if(!Nf(this.activeId)){const e=this.items.first?this.items.first.id:null;az(e)&&(this._updateActiveId(e,!1),this._cd.detectChanges())}this.items.changes.pipe(yo(this.destroy$)).subscribe(()=>this._notifyItemChanged(this.activeId))}ngOnChanges({activeId:e}){e&&!e.firstChange&&this._notifyItemChanged(e.currentValue)}ngOnDestroy(){this.destroy$.next()}_updateActiveId(e,i=!0){if(this.activeId!==e){let r=!1;i&&this.navChange.emit({activeId:this.activeId,nextId:e,preventDefault:()=>{r=!0}}),r||(this.activeId=e,this.activeIdChange.emit(e),this._notifyItemChanged(e))}}_notifyItemChanged(e){this.navItemChange$.next(this._getItemById(e))}_getItemById(e){return this.items&&this.items.find(i=>i.id===e)||null}}return t.\u0275fac=function(e){return new(e||t)(Ah("role"),le(DFe),le(qo),le(Ir))},t.\u0275dir=Zt({type:t,selectors:[["","ngbNav",""]],contentQueries:function(e,i,r){if(1&e&&(ni(r,sm,4),ni(r,fv,5)),2&e){let o;cn(o=un())&&(i.items=o),cn(o=un())&&(i.links=o)}},hostVars:6,hostBindings:function(e,i){1&e&&ye("keydown.arrowLeft",function(o){return i.onKeyDown(o)})("keydown.arrowRight",function(o){return i.onKeyDown(o)})("keydown.arrowDown",function(o){return i.onKeyDown(o)})("keydown.arrowUp",function(o){return i.onKeyDown(o)})("keydown.Home",function(o){return i.onKeyDown(o)})("keydown.End",function(o){return i.onKeyDown(o)}),2&e&&(ht("aria-orientation","vertical"===i.orientation&&"tablist"===i.roles?"vertical":void 0)("role",i.role?i.role:i.roles?"tablist":void 0),Mn("nav",!0)("flex-column","vertical"===i.orientation))},inputs:{animation:"animation",destroyOnHide:"destroyOnHide",orientation:"orientation",roles:"roles",keyboard:"keyboard",activeId:"activeId"},outputs:{activeIdChange:"activeIdChange",shown:"shown",hidden:"hidden",navChange:"navChange"},exportAs:["ngbNav"],features:[Hn]}),t})(),fv=(()=>{class t{constructor(e,i,r,o){this.role=e,this.navItem=i,this.nav=r,this.elRef=o}hasNavItemClass(){return this.navItem.elementRef.nativeElement.nodeType===Node.COMMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(Ah("role"),le(sm),le(am),le(ti))},t.\u0275dir=Zt({type:t,selectors:[["a","ngbNavLink",""]],hostAttrs:["href",""],hostVars:14,hostBindings:function(e,i){1&e&&ye("click",function(o){return i.nav.click(i.navItem),o.preventDefault()}),2&e&&(dc("id",i.navItem.domId),ht("role",i.role?i.role:i.nav.roles?"tab":void 0)("tabindex",i.navItem.disabled?-1:void 0)("aria-controls",i.navItem.isPanelInDom()?i.navItem.panelDomId:null)("aria-selected",i.navItem.active)("aria-disabled",i.navItem.disabled),Mn("nav-link",!0)("nav-item",i.hasNavItemClass())("active",i.navItem.active)("disabled",i.navItem.disabled))}}),t})(),cz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})(),gz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})();class FFe{constructor(n,e){this.open=n,this.close=e,e||(this.close=n)}isManual(){return"manual"===this.open||"manual"===this.close}}const NFe={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},vz=t=>t>0?T3(t):n=>n;let bz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})(),_z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})(),xz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})(),Sz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})(),Dz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})(),QFe=(()=>{class t{constructor(e){this.autoClose=!0,this.placement="auto",this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0,this.animation=e.animation}}return t.\u0275fac=function(e){return new(e||t)(ct(pa))},t.\u0275prov=Et({factory:function(){return new t(ct(pa))},token:t,providedIn:"root"}),t})(),ZFe=0,eNe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(e,i){2&e&&(dc("id",i.id),Su("tooltip"+(i.tooltipClass?" "+i.tooltipClass:"")),Mn("fade",i.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},ngContentSelectors:lv,decls:3,vars:0,consts:[[1,"arrow"],[1,"tooltip-inner"]],template:function(e,i){1&e&&(Cu(),ge(0,"div",0),b(1,"div",1),ku(2),x())},styles:["ngb-tooltip-window.bs-tooltip-bottom .arrow,ngb-tooltip-window.bs-tooltip-top .arrow{left:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-bottom-left .arrow,ngb-tooltip-window.bs-tooltip-top-left .arrow{left:1em}ngb-tooltip-window.bs-tooltip-bottom-right .arrow,ngb-tooltip-window.bs-tooltip-top-right .arrow{left:auto;right:.8rem}ngb-tooltip-window.bs-tooltip-left .arrow,ngb-tooltip-window.bs-tooltip-right .arrow{top:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-left-top .arrow,ngb-tooltip-window.bs-tooltip-right-top .arrow{top:.4rem}ngb-tooltip-window.bs-tooltip-left-bottom .arrow,ngb-tooltip-window.bs-tooltip-right-bottom .arrow{bottom:.4rem;top:auto}"],encapsulation:2,changeDetection:0}),t})(),tNe=(()=>{class t{constructor(e,i,r,o,s,a,l,c,u,d){this._elementRef=e,this._renderer=i,this._ngZone=l,this._document=c,this._changeDetector=u,this.shown=new Ke,this.hidden=new Ke,this._ngbTooltipWindowId="ngb-tooltip-"+ZFe++,this._windowRef=null,this.animation=a.animation,this.autoClose=a.autoClose,this.placement=a.placement,this.triggers=a.triggers,this.container=a.container,this.disableTooltip=a.disableTooltip,this.tooltipClass=a.tooltipClass,this.openDelay=a.openDelay,this.closeDelay=a.closeDelay,this._popupService=new V3(eNe,r,s,i,this._ngZone,o,d),this._zoneSubscription=l.onStable.subscribe(()=>{this._windowRef&&Ay(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container,"bs-tooltip")})}set ngbTooltip(e){this._ngbTooltip=e,!e&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(e){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:i,transition$:r}=this._popupService.open(this._ngbTooltip,e,this.animation);this._windowRef=i,this._windowRef.instance.animation=this.animation,this._windowRef.instance.tooltipClass=this.tooltipClass,this._windowRef.instance.id=this._ngbTooltipWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),Ey(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),r.subscribe(()=>this.shown.emit())}}close(){null!=this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(this.animation).subscribe(()=>{this._windowRef=null,this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=function yz(t,n,e,i,r,o,s=0,a=0){const l=function OFe(t,n=NFe){const e=(t||"").trim();if(0===e.length)return[];const i=e.split(/\s+/).map(o=>o.split(":")).map(o=>{let s=n[o[0]]||o;return new FFe(s[0],s[1])}),r=i.filter(o=>o.isManual());if(r.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===r.length&&i.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return i}(e);if(1===l.length&&l[0].isManual())return()=>{};const c=function jFe(t,n,e,i){return new rn(r=>{const o=[],s=()=>r.next(!0),a=()=>r.next(!1),l=()=>r.next(!i());return e.forEach(c=>{c.open===c.close?o.push(t.listen(n,c.open,l)):o.push(t.listen(n,c.open,s),t.listen(n,c.close,a))}),()=>{o.forEach(c=>c())}})}(t,n,l,i).pipe(function PFe(t,n,e){return i=>{let r=null;const o=i.pipe(yn(l=>({open:l})),ns(l=>{const c=e();return c===l.open||r&&r.open!==c?(r&&r.open!==l.open&&(r=null),!1):(r=l,!0)}),We());return Tt(o.pipe(ns(l=>l.open),vz(t)),o.pipe(ns(l=>!l.open),vz(n))).pipe(ns(l=>l===r&&(r=null,l.open!==e())),yn(l=>l.open))}}(s,a,i)).subscribe(u=>u?r():o());return()=>c.unsubscribe()}(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:e}){e&&this.isOpen()&&(this._windowRef.instance.tooltipClass=e.currentValue)}ngOnDestroy(){this.close(),this._unregisterListenersFn&&this._unregisterListenersFn(),this._zoneSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(le(ti),le(Ss),le(Rs),le($c),le(nl),le(QFe),le(Wi),le(Ir),le(qo),le(Au))},t.\u0275dir=Zt({type:t,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",triggers:"triggers",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],features:[Hn]}),t})(),Tz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({}),t})();new zn("live announcer delay",{providedIn:"root",factory:function rNe(){return 100}});let Mz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})();const lNe=[AH,MH,FH,PH,LH,ZH,tz,sz,cz,gz,bz,_z,xz,Sz,Dz,Tz,Mz];let cNe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[lNe,AH,MH,FH,PH,LH,ZH,tz,sz,cz,gz,bz,_z,xz,Sz,Dz,Tz,Mz]}),t})(),Iz=(()=>{class t{constructor(){K(this,"restrictedPages",new Map([["users",oi.USER_ROLE_ADMIN],["config",oi.USER_ROLE_DEVELOPER],["modules",oi.USER_ROLE_DEVELOPER],["apiexplorer",oi.USER_ROLE_DEVELOPER]]))}}return K(t,"\u0275fac",function(e){return new(e||t)}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function uNe(t,n){if(1&t&&(ta(0,5),b(1,"a",27),ge(2,"img",28),b(3,"span",12),I(4),x()(),na()),2&t){const e=j().$implicit;k("ngbNavItem",e.navItem),w(1),k("routerLink",e.routerLink),w(1),$p("src","/static/svg/",e.icon,".svg",y1),w(2),Dt(e.label)}}function dNe(t,n){1&t&&ge(0,"hr")}function hNe(t,n){if(1&t&&(J(0,uNe,5,4,"ng-container",26),J(1,dNe,1,0,"hr",25)),2&t){const e=n.$implicit;k("ngIf",j().getSessionRole()<=e.minRole),w(1),k("ngIf",e.separator)}}function fNe(t,n){if(1&t&&(b(0,"div",29)(1,"h2",30),ge(2,"img",31),I(3,"An error has occurred!"),x(),b(4,"h6",32),I(5),x(),b(6,"p"),I(7,"Please refresh the page to try again."),x()()),2&t){const e=j();w(5),Dt(e.error)}}function pNe(t,n){1&t&&(b(0,"div",33),ge(1,"img",34),x())}function mNe(t,n){1&t&&ge(0,"router-outlet")}const gNe=function(){return["/"]},vNe=function(){return["/login"]};let yNe=(()=>{class t{constructor(e,i,r,o,s){K(this,"route",void 0),K(this,"router",void 0),K(this,"segment",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"routerSub",void 0),K(this,"segmentRouterSub",void 0),K(this,"loading",!0),K(this,"error",""),K(this,"routes",[{navItem:"status",routerLink:["/status"],label:"Status",minRole:oi.USER_ROLE_READONLY,icon:"status"},{navItem:"users",routerLink:["/users"],label:"User Management",minRole:oi.USER_ROLE_ADMIN,icon:"user-management"},{navItem:"config",routerLink:["/config"],label:"Configuration",minRole:oi.USER_ROLE_DEVELOPER,icon:"configuration"},{navItem:"modules",routerLink:["/modules"],label:"Runtime Modules",minRole:oi.USER_ROLE_DEVELOPER,separator:!0,icon:"runtime-modules"},{navItem:"accounts",routerLink:["/accounts"],label:"Accounts",minRole:oi.USER_ROLE_READONLY,icon:"accounts"},{navItem:"groups",routerLink:["/groups"],label:"Groups",minRole:oi.USER_ROLE_READONLY,icon:"groups"},{navItem:"storage",routerLink:["/storage"],label:"Storage",minRole:oi.USER_ROLE_READONLY,icon:"storage"},{navItem:"leaderboards",routerLink:["/leaderboards"],label:"Leaderboards",minRole:oi.USER_ROLE_READONLY,icon:"leaderboard"},{navItem:"chat",routerLink:["/chat"],label:"Chat Messages",minRole:oi.USER_ROLE_READONLY,icon:"chat"},{navItem:"matches",routerLink:["/matches"],label:"Matches",minRole:oi.USER_ROLE_READONLY,icon:"running-matches"},{navItem:"apiexplorer",routerLink:["/apiexplorer"],label:"API Explorer",minRole:oi.USER_ROLE_DEVELOPER,icon:"api-explorer"}]),this.route=e,this.router=i,this.segment=r,this.consoleService=o,this.authService=s,this.loading=!1,this.routerSub=this.router.events.pipe(function iMe(t){let n=arguments.length,e=Dy;Sa(arguments[arguments.length-1])&&(e=arguments[arguments.length-1],n--);let i=null;n>=2&&(i=arguments[1]);let r=Number.POSITIVE_INFINITY;return n>=3&&(r=arguments[2]),function(s){return s.lift(new rMe(t,i,r,e))}}(2e3)).subscribe(a=>{if(0===a.length)return;const l=a[a.length-1];l instanceof Ww&&(this.loading=!0),l instanceof zh&&(this.loading=!1),l instanceof ry&&(this.loading=!1),l instanceof Xw&&(this.loading=!1,this.error=l.error)}),this.segmentRouterSub=i.events.pipe(function CC(t,n){return e=>e.lift(new lMe(t,n))}((a,l)=>!(l instanceof zh)||a.url===l.url)).subscribe(a=>{a&&r.page(a.url)})}ngOnInit(){this.route.data.subscribe(e=>{this.error=e.error?e.error:""})}getSessionRole(){return this.authService.sessionRole}getUsername(){return this.authService.username}logout(){this.authService.logout().subscribe(()=>{this.router.navigate(["/login"])})}ngOnDestroy(){this.segmentRouterSub.unsubscribe(),this.routerSub.unsubscribe()}onSidebarNavChange(e){}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(yC),le(xi),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:40,vars:11,consts:[[1,"container-fluid"],[1,"row"],["ngbNav","",1,"col-md-2","d-none","d-md-block","sidebar","position-fixed","px-0",3,"navChange"],["sidenav","ngbNav"],[1,"flex-column","text-uppercase"],[3,"ngbNavItem"],[3,"routerLink"],["src","/static/svg/logo.svg","alt","","width","175","height","",1,"logo-full","mx-3","mt-3","mb-1"],["src","/static/svg/logo-icon.svg","alt","","width","32","height","",1,"logo-icon","mx-3","mt-3","mb-1"],["ngFor","",3,"ngForOf"],["href","https://cloud.heroiclabs.com","target","_blank",1,"nav-link"],["src","/static/svg/heroiccloud.svg","alt","","width","24","height","",1,"link-icon","mr-1"],[1,"link-text"],["href","https://heroiclabs.com/docs","target","_blank",1,"nav-link"],["src","/static/svg/docs.svg","alt","","width","24","height","",1,"link-icon","mr-1"],["href","https://forum.heroiclabs.com","target","_blank",1,"nav-link"],["src","/static/svg/forum.svg","alt","","width","24","height","",1,"link-icon","mr-1"],["href","https://heroiclabs.com/blog","target","_blank",1,"nav-link"],["src","/static/svg/blog.svg","alt","","width","24","height","",1,"link-icon","mr-1"],[1,"logged-in-as","nav-link","disabled"],["ngbNavLink","","routerLinkActive","active",3,"routerLink","click"],["src","/static/svg/log-out.svg","alt","","width","24","height","",1,"mr-1"],["role","main",1,"ml-sm-auto","col-md-10","col-lg-10","main-extended","px-4","py-4"],["class","mx-auto",4,"ngIf"],["class","loading mx-auto",4,"ngIf"],[4,"ngIf"],[3,"ngbNavItem",4,"ngIf"],["ngbNavLink","","routerLinkActive","active",3,"routerLink"],["alt","","width","24","height","",1,"link-icon","mr-1",3,"src"],[1,"mx-auto"],[1,"pb-2"],["src","/static/svg/red-triangle.svg",1,"mr-2",2,"width","1em","height","1em"],[1,"mr-2","d-inline","font-weight-bold"],[1,"loading","mx-auto"],["src","/static/spinner.svg",1,"p-1","loading"]],template:function(e,i){1&e&&(b(0,"div",0)(1,"div",1)(2,"nav",2,3),ye("navChange",function(o){return i.onSidebarNavChange(o)}),b(4,"div",4),ta(5,5),b(6,"a",6),ge(7,"img",7)(8,"img",8),x(),na(),ge(9,"hr"),J(10,hNe,2,2,"ng-template",9),ge(11,"hr"),b(12,"a",10),ge(13,"img",11),b(14,"span",12),I(15,"Heroic Cloud"),x()(),b(16,"a",13),ge(17,"img",14),b(18,"span",12),I(19,"Documentation"),x()(),b(20,"a",15),ge(21,"img",16),b(22,"span",12),I(23,"Forum"),x()(),b(24,"a",17),ge(25,"img",18),b(26,"span",12),I(27,"Heroic Labs Blog"),x()(),ge(28,"hr"),b(29,"div",19),I(30),x(),ta(31,5),b(32,"a",20),ye("click",function(){return i.logout()}),ge(33,"img",21),b(34,"span",12),I(35,"Logout"),x()(),na(),x()(),b(36,"main",22),J(37,fNe,8,1,"div",23),J(38,pNe,2,0,"div",24),J(39,mNe,1,0,"router-outlet",25),x()()()),2&e&&(w(5),k("ngbNavItem","logo"),w(1),k("routerLink",wl(9,gNe)),w(4),k("ngForOf",i.routes),w(20),xn("Logged in as: ",i.getUsername(),""),w(1),k("ngbNavItem","logout"),w(1),k("routerLink",wl(10,vNe)),w(5),k("ngIf",i.error),w(1),k("ngIf",!i.error&&i.loading),w(1),k("ngIf",!i.error&&!i.loading))},dependencies:[Jp,Fu,hy,jn,gn,am,sm,fv],styles:[".nav-link.no-active[_ngcontent-%COMP%]{background-color:transparent!important}.nav-item[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-top-color:#708090}.sidebar[_ngcontent-%COMP%]{background-color:#333564;position:fixed;top:0;bottom:0;left:0;z-index:100;font-family:Montserrat,sans-serif;overflow-y:auto}.sidebar[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{color:#fff;font-size:12px;letter-spacing:.1em;opacity:.6;font-weight:500!important}.sidebar[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover{opacity:1;background-color:#e1e1e11a}.sidebar[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-color:#fff;opacity:.2}.active[_ngcontent-%COMP%]{opacity:1}.nav-link.active[_ngcontent-%COMP%]{opacity:1;color:#a69bff}.navbar-collapse[_ngcontent-%COMP%]{letter-spacing:0;text-transform:capitalize}.logo-icon[_ngcontent-%COMP%]{display:none}.link-text[_ngcontent-%COMP%]{padding-left:4px}@media screen and (max-width: 1200px){.main-extended[_ngcontent-%COMP%]{width:94.333333%!important;max-width:94.333333%!important;flex:0 0 94.333333%!important}.sidebar[_ngcontent-%COMP%]{min-width:65px!important;width:5.66%!important;max-width:5.66%!important}.sidebar[_ngcontent-%COMP%] .logo-full[_ngcontent-%COMP%]{display:none}.sidebar[_ngcontent-%COMP%] .logo-icon[_ngcontent-%COMP%]{display:block}.sidebar[_ngcontent-%COMP%] .link-icon[_ngcontent-%COMP%]{width:30px}.sidebar[_ngcontent-%COMP%] .link-text[_ngcontent-%COMP%], .sidebar[_ngcontent-%COMP%] .logged-in-as[_ngcontent-%COMP%]{display:none}}"]})),t})(),bNe=(()=>{class t{constructor(e,i,r){K(this,"authService",void 0),K(this,"router",void 0),K(this,"globals",void 0),this.authService=e,this.router=i,this.globals=r}canActivate(e,i){return!0}canActivateChild(e,i){const r=this.globals.restrictedPages.get(e.url[0].path);return!(null!==r&&r{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let r;return n.viewContainerRef?(r=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(n.injector||this._defaultInjector||Rs.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=n,r}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}class kNe extends CNe{}class ENe{constructor(n,e){this.dueTime=n,this.scheduler=e}call(n,e){return e.subscribe(new ANe(n,this.dueTime,this.scheduler))}}class ANe extends O{constructor(n,e,i){super(n),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(n){this.clearDebounce(),this.lastValue=n,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(MNe,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:n}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(n)}}clearDebounce(){const n=this.debouncedSubscription;null!==n&&(this.remove(n),n.unsubscribe(),this.debouncedSubscription=null)}}function MNe(t){t.debouncedNext()}function INe(){}function W3(t){return null==t?INe:function(){return this.querySelector(t)}}function NNe(){return[]}function Lz(t){return null==t?NNe:function(){return this.querySelectorAll(t)}}function Rz(t){return function(){return this.matches(t)}}function $z(t){return new Array(t.length)}function $C(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}$C.prototype={constructor:$C,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Bz="$";function RNe(t,n,e,i,r,o){for(var a,s=0,l=n.length,c=o.length;sn?1:t>=n?0:NaN}var q3="http://www.w3.org/1999/xhtml";const Vz={svg:"http://www.w3.org/2000/svg",xhtml:q3,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function BC(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Vz.hasOwnProperty(n)?{space:Vz[n],local:t}:t}function ZNe(t){return function(){this.removeAttribute(t)}}function eOe(t){return function(){this.removeAttributeNS(t.space,t.local)}}function tOe(t,n){return function(){this.setAttribute(t,n)}}function nOe(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function iOe(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function rOe(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function Hz(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function sOe(t){return function(){this.style.removeProperty(t)}}function aOe(t,n,e){return function(){this.style.setProperty(t,n,e)}}function lOe(t,n,e){return function(){var i=n.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,e)}}function pv(t,n){return t.style.getPropertyValue(n)||Hz(t).getComputedStyle(t,null).getPropertyValue(n)}function uOe(t){return function(){delete this[t]}}function dOe(t,n){return function(){this[t]=n}}function hOe(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function zz(t){return t.trim().split(/^|\s+/)}function X3(t){return t.classList||new Uz(t)}function Uz(t){this._node=t,this._names=zz(t.getAttribute("class")||"")}function Gz(t,n){for(var e=X3(t),i=-1,r=n.length;++i=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Xz={},Vr=null;function HOe(t,n,e){return t=Yz(t,n,e),function(i){var r=i.relatedTarget;(!r||r!==this&&!(8&r.compareDocumentPosition(this)))&&t.call(this,i)}}function Yz(t,n,e){return function(i){var r=Vr;Vr=i;try{t.call(this,this.__data__,n,e)}finally{Vr=r}}}function UOe(t){return function(){var n=this.__on;if(n){for(var o,e=0,i=-1,r=n.length;e=_&&(_=y+1);!(S=g[_])&&++_=0;)(s=i[r])&&(o&&4^s.compareDocumentPosition(o)&&o.parentNode.insertBefore(s,o),o=s);return this},sort:function GNe(t){function n(d,h){return d&&h?t(d.__data__,h.__data__):!d-!h}t||(t=WNe);for(var e=this._groups,i=e.length,r=new Array(i),o=0;o1?this.each((null==n?sOe:"function"==typeof n?lOe:aOe)(t,n,e??"")):pv(this.node(),t)},property:function fOe(t,n){return arguments.length>1?this.each((null==n?uOe:"function"==typeof n?hOe:dOe)(t,n)):this.node()[t]},classed:function vOe(t,n){var e=zz(t+"");if(arguments.length<2){for(var i=X3(this.node()),r=-1,o=e.length;++r=0&&(e=n.slice(i+1),n=n.slice(0,i)),{type:n,name:e}})}(t+""),o=i.length;if(!(arguments.length<2)){for(a=n?GOe:UOe,null==e&&(e=!1),r=0;r=0&&(i=e.slice(r+1),e=e.slice(0,r)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:i}})}(t+"",e),o=-1,s=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o0)for(var r,o,e=new Array(r),i=0;i>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?zC(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?zC(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=i4e.exec(t))?new vc(n[1],n[2],n[3],1):(n=r4e.exec(t))?new vc(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=o4e.exec(t))?zC(n[1],n[2],n[3],n[4]):(n=s4e.exec(t))?zC(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=a4e.exec(t))?cU(n[1],n[2]/100,n[3]/100,1):(n=l4e.exec(t))?cU(n[1],n[2]/100,n[3]/100,n[4]):iU.hasOwnProperty(t)?sU(iU[t]):"transparent"===t?new vc(NaN,NaN,NaN,0):null}function sU(t){return new vc(t>>16&255,t>>8&255,255&t,1)}function zC(t,n,e,i){return i<=0&&(t=n=e=NaN),new vc(t,n,e,i)}function Ly(t,n,e,i){return 1===arguments.length?function u4e(t){return t instanceof Oy||(t=lm(t)),t?new vc((t=t.rgb()).r,t.g,t.b,t.opacity):new vc}(t):new vc(t,n,e,i??1)}function vc(t,n,e,i){this.r=+t,this.g=+n,this.b=+e,this.opacity=+i}function aU(){return"#"+K3(this.r)+K3(this.g)+K3(this.b)}function lU(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function K3(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function cU(t,n,e,i){return i<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Ud(t,n,e,i)}function uU(t){if(t instanceof Ud)return new Ud(t.h,t.s,t.l,t.opacity);if(t instanceof Oy||(t=lm(t)),!t)return new Ud;if(t instanceof Ud)return t;var n=(t=t.rgb()).r/255,e=t.g/255,i=t.b/255,r=Math.min(n,e,i),o=Math.max(n,e,i),s=NaN,a=o-r,l=(o+r)/2;return a?(s=n===o?(e-i)/a+6*(e0&&l<1?0:s,new Ud(s,a,l,t.opacity)}function Ud(t,n,e,i){this.h=+t,this.s=+n,this.l=+e,this.opacity=+i}function Q3(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function dU(t,n,e,i,r){var o=t*t,s=o*t;return((1-3*t+3*o-s)*n+(4-6*o+3*s)*e+(1+3*t+3*o-3*s)*i+s*r)/6}function Z3(t){return function(){return t}}function fU(t,n){var e=n-t;return e?function hU(t,n){return function(e){return t+e*n}}(t,e):Z3(isNaN(t)?n:t)}J3(Oy,lm,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:rU,formatHex:rU,formatHsl:function c4e(){return uU(this).formatHsl()},formatRgb:oU,toString:oU}),J3(vc,Ly,nU(Oy,{brighter:function(t){return t=null==t?HC:Math.pow(HC,t),new vc(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new vc(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:aU,formatHex:aU,formatRgb:lU,toString:lU})),J3(Ud,function d4e(t,n,e,i){return 1===arguments.length?uU(t):new Ud(t,n,e,i??1)},nU(Oy,{brighter:function(t){return t=null==t?HC:Math.pow(HC,t),new Ud(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Ud(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,i=e+(e<.5?e:1-e)*n,r=2*e-i;return new vc(Q3(t>=240?t-240:t+120,r,i),Q3(t,r,i),Q3(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const UC=function t(n){var e=function m4e(t){return 1==(t=+t)?fU:function(n,e){return e-n?function p4e(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(i){return Math.pow(t+i*n,e)}}(n,e,t):Z3(isNaN(n)?e:n)}}(n);function i(r,o){var s=e((r=Ly(r)).r,(o=Ly(o)).r),a=e(r.g,o.g),l=e(r.b,o.b),c=fU(r.opacity,o.opacity);return function(u){return r.r=s(u),r.g=a(u),r.b=l(u),r.opacity=c(u),r+""}}return i.gamma=t,i}(1);function pU(t){return function(n){var s,a,e=n.length,i=new Array(e),r=new Array(e),o=new Array(e);for(s=0;s=1?(e=1,n-1):Math.floor(e*n),r=t[i],o=t[i+1];return dU((e-i/n)*n,i>0?t[i-1]:2*r-o,r,o,ie&&(o=n.slice(e,o),a[s]?a[s]+=o:a[++s]=o),(i=i[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,l.push({i:s,x:Lu(i,r)})),e=tI.lastIndex;return e=0&&t._call.call(null,n),t=t._next;--gv}()}finally{gv=0,function T4e(){for(var t,e,n=GC,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:GC=e);By=t,nI(i)}(),um=0}}function D4e(){var t=Vy.now(),n=t-WC;n>bU&&(qC-=n,WC=t)}function nI(t){gv||(Ry&&(Ry=clearTimeout(Ry)),t-um>24?(t<1/0&&(Ry=setTimeout(wU,t-Vy.now()-qC)),$y&&($y=clearInterval($y))):($y||(WC=Vy.now(),$y=setInterval(D4e,bU)),gv=1,_U(wU)))}function CU(t,n,e){var i=new YC;return i.restart(function(r){i.stop(),t(r+n)},n=null==n?0:+n,e),i}YC.prototype=xU.prototype={constructor:YC,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?XC():+e)+(null==n?0:+n),!this._next&&By!==this&&(By?By._next=this:GC=this,By=this),this._call=t,this._time=e,nI()},stop:function(){this._call&&(this._call=null,this._time=1/0,nI())}};var E4e=tU("start","end","cancel","interrupt"),A4e=[],kU=0,SU=1,iI=2,JC=3,DU=4,rI=5,KC=6;function QC(t,n,e,i,r,o){var s=t.__transition;if(s){if(e in s)return}else t.__transition={};!function M4e(t,n,e){var r,i=t.__transition;function s(c){var u,d,h,f;if(e.state!==SU)return l();for(u in i)if((f=i[u]).name===e.name){if(f.state===JC)return CU(s);f.state===DU?(f.state=KC,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[u]):+ukU)throw new Error("too late; already scheduled");return e}function Gh(t,n){var e=Ru(t,n);if(e.state>JC)throw new Error("too late; already running");return e}function Ru(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function sI(t,n){var i,r,s,e=t.__transition,o=!0;if(e){for(s in n=null==n?null:n+"",e)(i=e[s]).name===n?(r=i.state>iI&&i.state180?u+=360:u-c>180&&(c+=360),h.push({i:d.push(r(d)+"rotate(",null,i)-2,x:Lu(c,u)})):u&&d.push(r(d)+"rotate("+u+i)}(c.rotate,u.rotate,d,h),function a(c,u,d,h){c!==u?h.push({i:d.push(r(d)+"skewX(",null,i)-2,x:Lu(c,u)}):u&&d.push(r(d)+"skewX("+u+i)}(c.skewX,u.skewX,d,h),function l(c,u,d,h,f,p){if(c!==d||u!==h){var m=f.push(r(f)+"scale(",null,",",null,")");p.push({i:m-4,x:Lu(c,d)},{i:m-2,x:Lu(u,h)})}else(1!==d||1!==h)&&f.push(r(f)+"scale("+d+","+h+")")}(c.scaleX,c.scaleY,u.scaleX,u.scaleY,d,h),c=u=null,function(f){for(var g,p=-1,m=h.length;++p=0&&(n=n.slice(0,e)),!n||"start"===n})}(n)?oI:Gh;return function(){var s=o(this,t),a=s.on;a!==i&&(r=(i=a).copy()).on(n,e),s.on=r}}(e,t,n))},attr:function G4e(t,n){var e=BC(t),i="transform"===e?j4e:IU;return this.attrTween(t,"function"==typeof n?(e.local?U4e:z4e)(e,i,cI(this,"attr."+t,n)):null==n?(e.local?B4e:$4e)(e):(e.local?H4e:V4e)(e,i,n))},attrTween:function J4e(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var i=BC(t);return this.tween(e,(i.local?X4e:Y4e)(i,n))},style:function _je(t,n,e){var i="transform"==(t+="")?O4e:IU;return null==n?this.styleTween(t,function gje(t,n){var e,i,r;return function(){var o=pv(this,t),s=(this.style.removeProperty(t),pv(this,t));return o===s?null:o===e&&s===i?r:r=n(e=o,i=s)}}(t,i)).on("end.style."+t,FU(t)):"function"==typeof n?this.styleTween(t,function yje(t,n,e){var i,r,o;return function(){var s=pv(this,t),a=e(this),l=a+"";return null==a&&(this.style.removeProperty(t),l=a=pv(this,t)),s===l?null:s===i&&l===r?o:(r=l,o=n(i=s,a))}}(t,i,cI(this,"style."+t,n))).each(function bje(t,n){var e,i,r,a,o="style."+n,s="end."+o;return function(){var l=Gh(this,t),c=l.on,u=null==l.value[o]?a||(a=FU(n)):void 0;(c!==e||r!==u)&&(i=(e=c).copy()).on(s,r=u),l.on=i}}(this._id,t)):this.styleTween(t,function vje(t,n,e){var i,o,r=e+"";return function(){var s=pv(this,t);return s===r?null:s===i?o:o=n(i=s,e)}}(t,i,n),e).on("end.style."+t,null)},styleTween:function Cje(t,n,e){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==n)return this.tween(i,null);if("function"!=typeof n)throw new Error;return this.tween(i,function wje(t,n,e){var i,r;function o(){var s=n.apply(this,arguments);return s!==r&&(i=(r=s)&&function xje(t,n,e){return function(i){this.style.setProperty(t,n.call(this,i),e)}}(t,s,e)),i}return o._value=n,o}(t,n,e??""))},text:function Dje(t){return this.tween("text","function"==typeof t?function Sje(t){return function(){var n=t(this);this.textContent=n??""}}(cI(this,"text",t)):function kje(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function Aje(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,function Eje(t){var n,e;function i(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&function Tje(t){return function(n){this.textContent=t.call(this,n)}}(r)),n}return i._value=t,i}(t))},remove:function dje(){return this.on("end.remove",function uje(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function R4e(t,n){var e=this._id;if(t+="",arguments.length<2){for(var s,i=Ru(this.node(),e).tween,r=0,o=i.length;r0&&(R=z-F),C<0?he=E-N:C>0&&(q=re-N),y=fI,B.attr("cursor",qh.selection),Ie());break;default:return}hI()},!0).on("keyup.brush",function _t(){switch(Vr.keyCode){case 16:V&&(oe=fe=V=!1,Ie());break;case 18:y===bv&&(_<0?X=Z:_>0&&(R=z),C<0?he=E:C>0&&(q=re),y=yv,Ie());break;case 32:y===fI&&(Vr.altKey?(_&&(X=Z-F*_,R=z+F*_),C&&(he=E-N*C,q=re+N*C),y=bv):(_<0?X=Z:_>0&&(R=z),C<0?he=E:C>0&&(q=re),y=yv),B.attr("cursor",qh[v]),Ie());break;default:return}hI()},!0),function e4e(t){var n=t.document.documentElement,e=va(t).on("dragstart.drag",Y3,!0);"onselectstart"in n?e.on("selectstart.drag",Y3,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}(Vr.view)}OU(),sI(g),c.call(g),ze.start()}function ie(){var At=Fe(g);V&&!oe&&!fe&&(Math.abs(At[0]-tt[0])>Math.abs(At[1]-tt[1])?fe=!0:oe=!0),tt=At,Y=!0,hI(),Ie()}function Ie(){var At;switch(F=tt[0]-xe[0],N=tt[1]-xe[1],y){case fI:case jU:_&&(F=Math.max(G-R,Math.min(L-X,F)),z=R+F,Z=X+F),C&&(N=Math.max(U-q,Math.min(H-he,N)),re=q+N,E=he+N);break;case yv:_<0?(F=Math.max(G-R,Math.min(L-R,F)),z=R+F,Z=X):_>0&&(F=Math.max(G-X,Math.min(L-X,F)),z=R,Z=X+F),C<0?(N=Math.max(U-q,Math.min(H-q,N)),re=q+N,E=he):C>0&&(N=Math.max(U-he,Math.min(H-he,N)),re=q,E=he+N);break;case bv:_&&(z=Math.max(G,Math.min(L,R-F*_)),Z=Math.max(G,Math.min(L,X+F*_))),C&&(re=Math.max(U,Math.min(H,q-N*C)),E=Math.max(U,Math.min(H,he+N*C)))}Zn?1:t>=n?0:NaN}function yI(t){let n=t,e=t;function i(s,a,l,c){for(null==l&&(l=0),null==c&&(c=s.length);l>>1;e(s[u],a)<0?l=u+1:c=u}return l}return 1===t.length&&(n=(s,a)=>t(s)-a,e=function Xje(t){return(n,e)=>vI(t(n),e)}(t)),{left:i,center:function o(s,a,l,c){null==l&&(l=0),null==c&&(c=s.length);const u=i(s,a,l,c-1);return u>l&&n(s[u-1],a)>-n(s[u],a)?u-1:u},right:function r(s,a,l,c){for(null==l&&(l=0),null==c&&(c=s.length);l>>1;e(s[u],a)>0?c=u:l=u+1}return l}}}var bI=Math.sqrt(50),_I=Math.sqrt(10),xI=Math.sqrt(2);function $U(t,n,e){var i=(n-t)/Math.max(0,e),r=Math.floor(Math.log(i)/Math.LN10),o=i/Math.pow(10,r);return r>=0?(o>=bI?10:o>=_I?5:o>=xI?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=bI?10:o>=_I?5:o>=xI?2:1)}function wI(t,n,e){var i=Math.abs(n-t)/Math.max(0,e),r=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/r;return o>=bI?r*=10:o>=_I?r*=5:o>=xI&&(r*=2),n0))return l;do{l.push(c=new Date(+o)),n(o,a),t(o)}while(c=s)for(;t(s),!o(s);)s.setTime(s-1)},function(s,a){if(s>=s)if(a<0)for(;++a<=0;)for(;n(s,-1),!o(s););else for(;--a>=0;)for(;n(s,1),!o(s););})},e&&(r.count=function(o,s){return CI.setTime(+o),kI.setTime(+s),t(CI),t(kI),Math.floor(e(CI,kI))},r.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?r.filter(i?function(s){return i(s)%o==0}:function(s){return r.count(0,s)%o==0}):r:null}),r}var SI=$u(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});SI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?$u(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const Jje=SI;var BU=$u(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,n){t.setMonth(t.getMonth()+n)},function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())},function(t){return t.getMonth()});const Kje=BU;var Uy=6e4,Zje=6048e5;function dm(t){return $u(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*Uy)/Zje})}var HU=dm(0),zU=(dm(1),dm(2),dm(3),dm(4),dm(5),dm(6),$u(t=>t.setHours(0,0,0,0),(t,n)=>t.setDate(t.getDate()+n),(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Uy)/864e5,t=>t.getDate()-1));const sPe=zU;var UU=$u(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-t.getMinutes()*Uy)},function(t,n){t.setTime(+t+36e5*n)},function(t,n){return(n-t)/36e5},function(t){return t.getHours()});const aPe=UU;var GU=$u(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},function(t,n){t.setTime(+t+n*Uy)},function(t,n){return(n-t)/Uy},function(t){return t.getMinutes()});const lPe=GU;var WU=$u(function(t){t.setTime(t-t.getMilliseconds())},function(t,n){t.setTime(+t+1e3*n)},function(t,n){return(n-t)/1e3},function(t){return t.getUTCSeconds()});const cPe=WU;var i2=$u(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});i2.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?$u(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):i2:null};const uPe=i2;var DI=new Date,TI=new Date;function Xh(t,n,e,i){function r(o){return t(o=0===arguments.length?new Date:new Date(+o)),o}return r.floor=function(o){return t(o=new Date(+o)),o},r.ceil=function(o){return t(o=new Date(o-1)),n(o,1),t(o),o},r.round=function(o){var s=r(o),a=r.ceil(o);return o-s0))return l;do{l.push(c=new Date(+o)),n(o,a),t(o)}while(c=s)for(;t(s),!o(s);)s.setTime(s-1)},function(s,a){if(s>=s)if(a<0)for(;++a<=0;)for(;n(s,-1),!o(s););else for(;--a>=0;)for(;n(s,1),!o(s););})},e&&(r.count=function(o,s){return DI.setTime(+o),TI.setTime(+s),t(DI),t(TI),Math.floor(e(DI,TI))},r.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?r.filter(i?function(s){return i(s)%o==0}:function(s){return r.count(0,s)%o==0}):r:null}),r}var qU=6e4,YU=6048e5;function hm(t){return Xh(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCDate(n.getUTCDate()+7*e)},function(n,e){return(e-n)/YU})}var JU=hm(0),r2=hm(1),_v=(hm(2),hm(3),hm(4)),KU=(hm(5),hm(6),Xh(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/864e5},function(t){return t.getUTCDate()-1}));const QU=KU;function fm(t){return Xh(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*qU)/YU})}var ZU=fm(0),o2=fm(1),xv=(fm(2),fm(3),fm(4)),eG=(fm(5),fm(6),Xh(function(t){t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*qU)/864e5},function(t){return t.getDate()-1}));const tG=eG;var EI=Xh(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});EI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Xh(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const Gy=EI;var AI=Xh(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});AI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Xh(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};const Wy=AI;function MI(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function II(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function qy(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var wv,gG,nG={"-":"",_:" ",0:"0"},ya=/^\s*\d+/,_Pe=/^%/,xPe=/[\\^$*+?|[\]().{}]/g;function Gr(t,n,e){var i=t<0?"-":"",r=(i?-t:t)+"",o=r.length;return i+(o68?1900:2e3),e+i[0].length):-1}function EPe(t,n,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function APe(t,n,e){var i=ya.exec(n.slice(e,e+1));return i?(t.q=3*i[0]-3,e+i[0].length):-1}function MPe(t,n,e){var i=ya.exec(n.slice(e,e+2));return i?(t.m=i[0]-1,e+i[0].length):-1}function oG(t,n,e){var i=ya.exec(n.slice(e,e+2));return i?(t.d=+i[0],e+i[0].length):-1}function IPe(t,n,e){var i=ya.exec(n.slice(e,e+3));return i?(t.m=0,t.d=+i[0],e+i[0].length):-1}function sG(t,n,e){var i=ya.exec(n.slice(e,e+2));return i?(t.H=+i[0],e+i[0].length):-1}function FPe(t,n,e){var i=ya.exec(n.slice(e,e+2));return i?(t.M=+i[0],e+i[0].length):-1}function NPe(t,n,e){var i=ya.exec(n.slice(e,e+2));return i?(t.S=+i[0],e+i[0].length):-1}function OPe(t,n,e){var i=ya.exec(n.slice(e,e+3));return i?(t.L=+i[0],e+i[0].length):-1}function jPe(t,n,e){var i=ya.exec(n.slice(e,e+6));return i?(t.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function PPe(t,n,e){var i=_Pe.exec(n.slice(e,e+1));return i?e+i[0].length:-1}function LPe(t,n,e){var i=ya.exec(n.slice(e));return i?(t.Q=+i[0],e+i[0].length):-1}function RPe(t,n,e){var i=ya.exec(n.slice(e));return i?(t.s=+i[0],e+i[0].length):-1}function aG(t,n){return Gr(t.getDate(),n,2)}function $Pe(t,n){return Gr(t.getHours(),n,2)}function BPe(t,n){return Gr(t.getHours()%12||12,n,2)}function VPe(t,n){return Gr(1+tG.count(Gy(t),t),n,3)}function lG(t,n){return Gr(t.getMilliseconds(),n,3)}function HPe(t,n){return lG(t,n)+"000"}function zPe(t,n){return Gr(t.getMonth()+1,n,2)}function UPe(t,n){return Gr(t.getMinutes(),n,2)}function GPe(t,n){return Gr(t.getSeconds(),n,2)}function WPe(t){var n=t.getDay();return 0===n?7:n}function qPe(t,n){return Gr(ZU.count(Gy(t)-1,t),n,2)}function cG(t){var n=t.getDay();return n>=4||0===n?xv(t):xv.ceil(t)}function XPe(t,n){return t=cG(t),Gr(xv.count(Gy(t),t)+(4===Gy(t).getDay()),n,2)}function YPe(t){return t.getDay()}function JPe(t,n){return Gr(o2.count(Gy(t)-1,t),n,2)}function KPe(t,n){return Gr(t.getFullYear()%100,n,2)}function QPe(t,n){return Gr((t=cG(t)).getFullYear()%100,n,2)}function ZPe(t,n){return Gr(t.getFullYear()%1e4,n,4)}function eLe(t,n){var e=t.getDay();return Gr((t=e>=4||0===e?xv(t):xv.ceil(t)).getFullYear()%1e4,n,4)}function tLe(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Gr(n/60|0,"0",2)+Gr(n%60,"0",2)}function uG(t,n){return Gr(t.getUTCDate(),n,2)}function nLe(t,n){return Gr(t.getUTCHours(),n,2)}function iLe(t,n){return Gr(t.getUTCHours()%12||12,n,2)}function rLe(t,n){return Gr(1+QU.count(Wy(t),t),n,3)}function dG(t,n){return Gr(t.getUTCMilliseconds(),n,3)}function oLe(t,n){return dG(t,n)+"000"}function sLe(t,n){return Gr(t.getUTCMonth()+1,n,2)}function aLe(t,n){return Gr(t.getUTCMinutes(),n,2)}function lLe(t,n){return Gr(t.getUTCSeconds(),n,2)}function cLe(t){var n=t.getUTCDay();return 0===n?7:n}function uLe(t,n){return Gr(JU.count(Wy(t)-1,t),n,2)}function hG(t){var n=t.getUTCDay();return n>=4||0===n?_v(t):_v.ceil(t)}function dLe(t,n){return t=hG(t),Gr(_v.count(Wy(t),t)+(4===Wy(t).getUTCDay()),n,2)}function hLe(t){return t.getUTCDay()}function fLe(t,n){return Gr(r2.count(Wy(t)-1,t),n,2)}function pLe(t,n){return Gr(t.getUTCFullYear()%100,n,2)}function mLe(t,n){return Gr((t=hG(t)).getUTCFullYear()%100,n,2)}function gLe(t,n){return Gr(t.getUTCFullYear()%1e4,n,4)}function vLe(t,n){var e=t.getUTCDay();return Gr((t=e>=4||0===e?_v(t):_v.ceil(t)).getUTCFullYear()%1e4,n,4)}function yLe(){return"+0000"}function fG(){return"%"}function pG(t){return+t}function mG(t){return Math.floor(+t/1e3)}function vG(t){return null===t?NaN:+t}!function wLe(t){wv=function bPe(t){var n=t.dateTime,e=t.date,i=t.time,r=t.periods,o=t.days,s=t.shortDays,a=t.months,l=t.shortMonths,c=Xy(r),u=Yy(r),d=Xy(o),h=Yy(o),f=Xy(s),p=Yy(s),m=Xy(a),g=Yy(a),v=Xy(l),y=Yy(l),_={a:function H(ze){return s[ze.getDay()]},A:function he(ze){return o[ze.getDay()]},b:function E(ze){return l[ze.getMonth()]},B:function F(ze){return a[ze.getMonth()]},c:null,d:aG,e:aG,f:HPe,g:QPe,G:eLe,H:$Pe,I:BPe,j:VPe,L:lG,m:zPe,M:UPe,p:function N(ze){return r[+(ze.getHours()>=12)]},q:function Y(ze){return 1+~~(ze.getMonth()/3)},Q:pG,s:mG,S:GPe,u:WPe,U:qPe,V:XPe,w:YPe,W:JPe,x:null,X:null,y:KPe,Y:ZPe,Z:tLe,"%":fG},C={a:function V(ze){return s[ze.getUTCDay()]},A:function oe(ze){return o[ze.getUTCDay()]},b:function fe(ze){return l[ze.getUTCMonth()]},B:function Fe(ze){return a[ze.getUTCMonth()]},c:null,d:uG,e:uG,f:oLe,g:mLe,G:vLe,H:nLe,I:iLe,j:rLe,L:dG,m:sLe,M:aLe,p:function xe(ze){return r[+(ze.getUTCHours()>=12)]},q:function tt(ze){return 1+~~(ze.getUTCMonth()/3)},Q:pG,s:mG,S:lLe,u:cLe,U:uLe,V:dLe,w:hLe,W:fLe,x:null,X:null,y:pLe,Y:gLe,Z:yLe,"%":fG},S={a:function z(ze,ot,B){var ne=f.exec(ot.slice(B));return ne?(ze.w=p[ne[0].toLowerCase()],B+ne[0].length):-1},A:function U(ze,ot,B){var ne=d.exec(ot.slice(B));return ne?(ze.w=h[ne[0].toLowerCase()],B+ne[0].length):-1},b:function q(ze,ot,B){var ne=v.exec(ot.slice(B));return ne?(ze.m=y[ne[0].toLowerCase()],B+ne[0].length):-1},B:function re(ze,ot,B){var ne=m.exec(ot.slice(B));return ne?(ze.m=g[ne[0].toLowerCase()],B+ne[0].length):-1},c:function L(ze,ot,B){return G(ze,n,ot,B)},d:oG,e:oG,f:jPe,g:rG,G:iG,H:sG,I:sG,j:IPe,L:OPe,m:MPe,M:FPe,p:function R(ze,ot,B){var ne=c.exec(ot.slice(B));return ne?(ze.p=u[ne[0].toLowerCase()],B+ne[0].length):-1},q:APe,Q:LPe,s:RPe,S:NPe,u:kPe,U:SPe,V:DPe,w:CPe,W:TPe,x:function X(ze,ot,B){return G(ze,e,ot,B)},X:function Z(ze,ot,B){return G(ze,i,ot,B)},y:rG,Y:iG,Z:EPe,"%":PPe};function M(ze,ot){return function(B){var Le,_t,At,ne=[],ie=-1,Ie=0,Ye=ze.length;for(B instanceof Date||(B=new Date(+B));++ie53)return null;"w"in ne||(ne.w=1),"Z"in ne?(Ye=(Ie=II(qy(ne.y,0,1))).getUTCDay(),Ie=Ye>4||0===Ye?r2.ceil(Ie):r2(Ie),Ie=QU.offset(Ie,7*(ne.V-1)),ne.y=Ie.getUTCFullYear(),ne.m=Ie.getUTCMonth(),ne.d=Ie.getUTCDate()+(ne.w+6)%7):(Ye=(Ie=MI(qy(ne.y,0,1))).getDay(),Ie=Ye>4||0===Ye?o2.ceil(Ie):o2(Ie),Ie=tG.offset(Ie,7*(ne.V-1)),ne.y=Ie.getFullYear(),ne.m=Ie.getMonth(),ne.d=Ie.getDate()+(ne.w+6)%7)}else("W"in ne||"U"in ne)&&("w"in ne||(ne.w="u"in ne?ne.u%7:"W"in ne?1:0),Ye="Z"in ne?II(qy(ne.y,0,1)).getUTCDay():MI(qy(ne.y,0,1)).getDay(),ne.m=0,ne.d="W"in ne?(ne.w+6)%7+7*ne.W-(Ye+5)%7:ne.w+7*ne.U-(Ye+6)%7);return"Z"in ne?(ne.H+=ne.Z/100|0,ne.M+=ne.Z%100,II(ne)):MI(ne)}}function G(ze,ot,B,ne){for(var Le,_t,ie=0,Ie=ot.length,Ye=B.length;ie=Ye)return-1;if(37===(Le=ot.charCodeAt(ie++))){if(Le=ot.charAt(ie++),!(_t=S[Le in nG?ot.charAt(ie++):Le])||(ne=_t(ze,B,ne))<0)return-1}else if(Le!=B.charCodeAt(ne++))return-1}return ne}return _.x=M(e,_),_.X=M(i,_),_.c=M(n,_),C.x=M(e,C),C.X=M(i,C),C.c=M(n,C),{format:function(ze){var ot=M(ze+="",_);return ot.toString=function(){return ze},ot},parse:function(ze){var ot=$(ze+="",!1);return ot.toString=function(){return ze},ot},utcFormat:function(ze){var ot=M(ze+="",C);return ot.toString=function(){return ze},ot},utcParse:function(ze){var ot=$(ze+="",!0);return ot.toString=function(){return ze},ot}}}(t),gG=wv.format}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const CLe=yI(vI).right,bG=(yI(vG),CLe);function kLe(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function DLe(t){return+t}var _G=[0,1];function Cv(t){return t}function FI(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:function SLe(t){return function(){return t}}(isNaN(n)?NaN:.5)}function ELe(t,n,e){var i=t[0],r=t[1],o=n[0],s=n[1];return rn&&(e=t,t=n,n=e),function(i){return Math.max(t,Math.min(n,i))}}(t[0],t[h-1])),a=h>2?ALe:ELe,l=c=null,d}function d(h){return isNaN(h=+h)?o:(l||(l=a(t.map(i),n,e)))(i(s(h)))}return d.invert=function(h){return s(r((c||(c=a(n,t.map(i),Lu)))(h)))},d.domain=function(h){return arguments.length?(t=Array.from(h,DLe),u()):t.slice()},d.range=function(h){return arguments.length?(n=Array.from(h),u()):n.slice()},d.rangeRound=function(h){return n=Array.from(h),e=kLe,u()},d.clamp=function(h){return arguments.length?(s=!!h||Cv,u()):s!==Cv},d.interpolate=function(h){return arguments.length?(e=h,u()):e},d.unknown=function(h){return arguments.length?(o=h,d):o},function(h,f){return i=h,r=f,u()}}()(Cv,Cv)}function Jy(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}var Ky=1e3,Qy=60*Ky,Zy=60*Qy,eb=24*Zy,FLe=7*eb,CG=30*eb,NI=365*eb;function NLe(t){return new Date(t)}function OLe(t){return t instanceof Date?+t:+new Date(+t)}function kG(t,n,e,i,r,o,s,a,l){var c=wG(),u=c.invert,d=c.domain,h=l(".%L"),f=l(":%S"),p=l("%I:%M"),m=l("%I %p"),g=l("%a %d"),v=l("%b %d"),y=l("%B"),_=l("%Y"),C=[[s,1,Ky],[s,5,5*Ky],[s,15,15*Ky],[s,30,30*Ky],[o,1,Qy],[o,5,5*Qy],[o,15,15*Qy],[o,30,30*Qy],[r,1,Zy],[r,3,3*Zy],[r,6,6*Zy],[r,12,12*Zy],[i,1,eb],[i,2,2*eb],[e,1,FLe],[n,1,CG],[n,3,3*CG],[t,1,NI]];function S($){return(s($)<$?h:o($)<$?f:r($)<$?p:i($)<$?m:n($)<$?e($)<$?g:v:t($)<$?y:_)($)}function M($,G,R){if(null==$&&($=10),"number"==typeof $){var q,z=Math.abs(R-G)/$,U=yI(function(re){return re[2]}).right(C,z);return U===C.length?(q=wI(G/NI,R/NI,$),$=t):U?(q=(U=C[z/C[U-1][2]=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function s2(t){if(!(n=jLe.exec(t)))throw new Error("invalid format: "+t);var n;return new OI({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function OI(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function a2(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,i=t.slice(0,e);return[i.length>1?i[0]+i.slice(2):i,+t.slice(e+1)]}function kv(t){return(t=a2(Math.abs(t)))?t[1]:NaN}function DG(t,n){var e=a2(t,n);if(!e)return t+"";var i=e[0],r=e[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}s2.prototype=OI.prototype,OI.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const TG={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function PLe(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return DG(100*t,n)},r:DG,s:function VLe(t,n){var e=a2(t,n);if(!e)return t+"";var i=e[0],r=e[1],o=r-(SG=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,s=i.length;return o===s?i:o>s?i+new Array(o-s+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+a2(t,Math.max(0,n+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function EG(t){return t}var l2,jI,IG,AG=Array.prototype.map,MG=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function qLe(t){var n=t.domain;return t.ticks=function(e){var i=n();return function Yje(t,n,e){var i,o,s,a,r=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((i=n0)for(t=Math.ceil(t/a),n=Math.floor(n/a),s=new Array(o=Math.ceil(n-t+1));++r0;){if((c=$U(s,a,e))===l)return i[r]=s,i[o]=a,n(i);if(c>0)s=Math.floor(s/c)*c,a=Math.ceil(a/c)*c;else{if(!(c<0))break;s=Math.ceil(s*c)/c,a=Math.floor(a*c)/c}l=c}return t},t}function bo(){var t=wG();return t.copy=function(){return xG(t,bo())},Jy.apply(t,arguments),qLe(t)}function FG(t,n,e){t=+t,n=+n,e=(r=arguments.length)<2?(n=t,t=0,1):r<3?1:+e;for(var i=-1,r=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(r);++i0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),o.push(e.substring(r-=a,r+a)),!((l+=a+1)>i));)a=t[s=(s+1)%t.length];return o.reverse().join(n)}}(AG.call(t.grouping,Number),t.thousands+""),e=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",r=void 0===t.decimal?".":t.decimal+"",o=void 0===t.numerals?EG:function $Le(t){return function(n){return n.replace(/[0-9]/g,function(e){return t[+e]})}}(AG.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",a=void 0===t.minus?"-":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function c(d){var h=(d=s2(d)).fill,f=d.align,p=d.sign,m=d.symbol,g=d.zero,v=d.width,y=d.comma,_=d.precision,C=d.trim,S=d.type;"n"===S?(y=!0,S="g"):TG[S]||(void 0===_&&(_=12),C=!0,S="g"),(g||"0"===h&&"="===f)&&(g=!0,h="0",f="=");var M="$"===m?e:"#"===m&&/[boxX]/.test(S)?"0"+S.toLowerCase():"",$="$"===m?i:/[%p]/.test(S)?s:"",G=TG[S],R=/[defgprs%]/.test(S);function z(U){var L,X,Z,q=M,re=$;if("c"===S)re=G(U)+re,U="";else{var H=(U=+U)<0||1/U<0;if(U=isNaN(U)?l:G(Math.abs(U),_),C&&(U=function BLe(t){e:for(var r,n=t.length,e=1,i=-1;e0&&(i=0)}return i>0?t.slice(0,i)+t.slice(r+1):t}(U)),H&&0==+U&&"+"!==p&&(H=!1),q=(H?"("===p?p:a:"-"===p||"("===p?"":p)+q,re=("s"===S?MG[8+SG/3]:"")+re+(H&&"("===p?")":""),R)for(L=-1,X=U.length;++L(Z=U.charCodeAt(L))||Z>57){re=(46===Z?r+U.slice(L+1):U.slice(L))+re,U=U.slice(0,L);break}}y&&!g&&(U=n(U,1/0));var he=q.length+U.length+re.length,E=he>1)+q+U+re+E.slice(he);break;default:U=E+q+U+re}return o(U)}return _=void 0===_?6:/[gprs]/.test(S)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_)),z.toString=function(){return d+""},z}return{format:c,formatPrefix:function u(d,h){var f=c(((d=s2(d)).type="f",d)),p=3*Math.max(-8,Math.min(8,Math.floor(kv(h)/3))),m=Math.pow(10,-p),g=MG[8+p/3];return function(v){return f(m*v)+g}}}}(t),jI=l2.format,IG=l2.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});const NG=Symbol("implicit");function PI(){var t=new Map,n=[],e=[],i=NG;function r(o){var s=o+"",a=t.get(s);if(!a){if(i!==NG)return i;t.set(s,a=n.push(o))}return e[(a-1)%e.length]}return r.domain=function(o){if(!arguments.length)return n.slice();n=[],t=new Map;for(const s of o){const a=s+"";t.has(a)||t.set(a,n.push(s))}return r},r.range=function(o){return arguments.length?(e=Array.from(o),r):e.slice()},r.unknown=function(o){return arguments.length?(i=o,r):i},r.copy=function(){return PI(n,e).unknown(i)},Jy.apply(r,arguments),r}function La(){var o,s,t=PI().unknown(void 0),n=t.domain,e=t.range,i=0,r=1,a=!1,l=0,c=0,u=.5;function d(){var h=n().length,f=r=1)return+e(t[i-1],i-1,t);var i,r=(i-1)*n,o=Math.floor(r),s=+e(t[o],o,t);return s+(+e(t[o+1],o+1,t)-s)*(r-o)}}function jG(){var i,t=[],n=[],e=[];function r(){var s=0,a=Math.max(1,n.length);for(e=new Array(a-1);++s0?e[a-1]:t[0],avm)if(Math.abs(u*a-l*c)>vm&&r){var h=e-o,f=i-s,p=a*a+l*l,m=h*h+f*f,g=Math.sqrt(p),v=Math.sqrt(d),y=r*Math.tan((LI-Math.acos((p+d-m)/(2*g*v)))/2),_=y/v,C=y/g;Math.abs(_-1)>vm&&(this._+="L"+(t+_*c)+","+(n+_*u)),this._+="A"+r+","+r+",0,0,"+ +(u*h>c*f)+","+(this._x1=t+C*a)+","+(this._y1=n+C*l)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,i,r,o){t=+t,n=+n,o=!!o;var s=(e=+e)*Math.cos(i),a=e*Math.sin(i),l=t+s,c=n+a,u=1^o,d=o?i-r:r-i;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>vm||Math.abs(this._y1-c)>vm)&&(this._+="L"+l+","+c),e&&(d<0&&(d=d%RI+RI),d>YLe?this._+="A"+e+","+e+",0,1,"+u+","+(t-s)+","+(n-a)+"A"+e+","+e+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):d>vm&&(this._+="A"+e+","+e+",0,"+ +(d>=LI)+","+u+","+(this._x1=t+e*Math.cos(r))+","+(this._y1=n+e*Math.sin(r))))},rect:function(t,n,e,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}};const BI=LG;function mo(t){return function(){return t}}function RG(t){return t[0]}function $G(t){return t[1]}function c2(){var t=RG,n=$G,e=mo(!0),i=null,r=gm,o=null;function s(a){var l,u,h,c=a.length,d=!1;for(null==i&&(o=r(h=BI())),l=0;l<=c;++l)!(l=h;--f)a.point(y[f],_[f]);a.lineEnd(),a.areaEnd()}g&&(y[d]=+t(m,d,u),_[d]=+e(m,d,u),a.point(n?+n(m,d,u):y[d],i?+i(m,d,u):_[d]))}if(v)return a=null,v+""||null}function c(){return c2().defined(r).curve(s).context(o)}return l.x=function(u){return arguments.length?(t="function"==typeof u?u:mo(+u),n=null,l):t},l.x0=function(u){return arguments.length?(t="function"==typeof u?u:mo(+u),l):t},l.x1=function(u){return arguments.length?(n=null==u?null:"function"==typeof u?u:mo(+u),l):n},l.y=function(u){return arguments.length?(e="function"==typeof u?u:mo(+u),i=null,l):e},l.y0=function(u){return arguments.length?(e="function"==typeof u?u:mo(+u),l):e},l.y1=function(u){return arguments.length?(i=null==u?null:"function"==typeof u?u:mo(+u),l):i},l.lineX0=l.lineY0=function(){return c().x(t).y(e)},l.lineY1=function(){return c().x(t).y(i)},l.lineX1=function(){return c().x(n).y(e)},l.defined=function(u){return arguments.length?(r="function"==typeof u?u:mo(!!u),l):r},l.curve=function(u){return arguments.length?(s=u,null!=o&&(a=s(o)),l):s},l.context=function(u){return arguments.length?(null==u?o=a=null:a=s(o=u),l):o},l}function BG(){}function VI(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function VG(t,n){this._context=t,this._k=(1-n)/6}function HG(t,n){this._context=t,this._k=(1-n)/6}function zG(t){this._curve=t}function fRe(t,n,e,i,r){for(var s,o=t.children,a=-1,l=o.length,c=t.value&&(i-n)/t.value;++a=0;)n+=e[i].value;else n=1;t.value=n}function XG(t,n){var r,s,a,l,c,e=new rb(t),i=+t.value&&(e.value=t.value),o=[e];for(null==n&&(n=NRe);r=o.pop();)if(i&&(r.value=+r.data.value),(a=n(r.data))&&(c=a.length))for(r.children=new Array(c),l=c-1;l>=0;--l)o.push(s=r.children[l]=new rb(a[l])),s.parent=r,s.depth=r.depth+1;return e.eachBefore(YG)}function NRe(t){return t.children}function ORe(t){t.data=t.data.data}function YG(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function rb(t){this.data=t,this.depth=this.height=0,this.parent=null}VG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:VI(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:VI(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(n){function e(i){return new VG(i,n)}return e.tension=function(i){return t(+i)},e}(0),HG.prototype={areaStart:BG,areaEnd:BG,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:VI(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(n){function e(i){return new HG(i,n)}return e.tension=function(i){return t(+i)},e}(0),function UG(t){function n(e){return new zG(t(e))}return n._curve=t,n}(gm),zG.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}},Math,Math,Math,Math,Math,Math,Math,Math,function t(n){function e(i,r,o,s,a){!function gRe(t,n,e,i,r,o){for(var l,c,f,p,g,v,y,_,C,S,M,s=[],a=n.children,u=0,d=0,h=a.length,m=n.value;uy&&(y=c),M=g*g*S,(_=Math.max(y/M,M/v))>C){g-=c;break}C=_}s.push(l={value:g,dice:f1?i:1)},e}((1+Math.sqrt(5))/2),rb.prototype=XG.prototype={constructor:rb,count:function _Re(){return this.eachAfter(bRe)},each:function xRe(t){var e,r,o,s,n=this,i=[n];do{for(e=i.reverse(),i=[];n=e.pop();)if(t(n),r=n.children)for(o=0,s=r.length;o=0;--r)e.push(i[r]);return this},sum:function kRe(t){return this.eachAfter(function(n){for(var e=+t(n.data)||0,i=n.children,r=i&&i.length;--r>=0;)e+=i[r].value;n.value=e})},sort:function SRe(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})},path:function DRe(t){for(var n=this,e=function TRe(t,n){if(t===n)return t;var e=t.ancestors(),i=n.ancestors(),r=null;for(t=e.pop(),n=i.pop();t===n;)r=t,t=e.pop(),n=i.pop();return r}(n,t),i=[n];n!==e;)i.push(n=n.parent);for(var r=i.length;t!==e;)i.splice(r,0,t),t=t.parent;return i},ancestors:function ERe(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function ARe(){var t=[];return this.each(function(n){t.push(n)}),t},leaves:function MRe(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t},links:function IRe(){var t=this,n=[];return t.each(function(e){e!==t&&n.push({source:e.parent,target:e})}),n},copy:function FRe(){return XG(this).eachBefore(ORe)}};const $Re=["caretElm"];function BRe(t,n){}const VRe=function(t){return{model:t}};function HRe(t,n){if(1&t&&(b(0,"span"),J(1,BRe,0,0,"ng-template",5),x()),2&t){const e=j();w(1),k("ngTemplateOutlet",e.template)("ngTemplateOutletContext",lr(2,VRe,e.context))}}function zRe(t,n){1&t&&ge(0,"span",6),2&t&&k("innerHTML",j().title,kx)}function URe(t,n){if(1&t&&(at(),Ip(),ge(0,"ngx-charts-scale-legend",4)),2&t){const e=j();k("horizontal",e.legendOptions&&"below"===e.legendOptions.position)("valueRange",e.legendOptions.domain)("colors",e.legendOptions.colors)("height",e.view[1])("width",e.legendWidth)}}function GRe(t,n){if(1&t){const e=vt();at(),Ip(),b(0,"ngx-charts-legend",5),ye("labelClick",function(r){return $e(e),Be(j().legendLabelClick.emit(r))})("labelActivate",function(r){return $e(e),Be(j().legendLabelActivate.emit(r))})("labelDeactivate",function(r){return $e(e),Be(j().legendLabelDeactivate.emit(r))}),x()}if(2&t){const e=j();k("horizontal",e.legendOptions&&"below"===e.legendOptions.position)("data",e.legendOptions.domain)("title",e.legendOptions.title)("colors",e.legendOptions.colors)("height",e.view[1])("width",e.legendWidth)("activeEntries",e.activeEntries)}}const QG=["*"],WRe=["ngx-charts-axis-label",""],ZG=["ticksel"],qRe=["ngx-charts-x-axis-ticks",""];function XRe(t,n){if(1&t&&(at(),b(0,"g",3)(1,"title"),I(2),x(),b(3,"text",4),I(4),x()()),2&t){const e=n.$implicit,i=j();ht("transform",i.tickTransform(e)),w(2),Dt(i.tickFormat(e)),w(1),rr("font-size","12px"),ht("text-anchor",i.textAnchor)("transform",i.textTransform),w(1),xn(" ",i.tickTrim(i.tickFormat(e))," ")}}function YRe(t,n){if(1&t&&(at(),b(0,"g"),ge(1,"line",6),x()),2&t){const e=j(2);ht("transform",e.gridLineTransform()),w(1),ht("y1",-e.gridLineHeight)}}function JRe(t,n){if(1&t&&(at(),b(0,"g"),J(1,YRe,2,2,"g",5),x()),2&t){const e=n.$implicit,i=j();ht("transform",i.tickTransform(e)),w(1),k("ngIf",i.showGridLines)}}const KRe=["ngx-charts-x-axis",""];function QRe(t,n){if(1&t){const e=vt();at(),b(0,"g",2),ye("dimensionsChanged",function(r){return $e(e),Be(j().emitTicksHeight(r))}),x()}if(2&t){const e=j();k("trimTicks",e.trimTicks)("rotateTicks",e.rotateTicks)("maxTickLength",e.maxTickLength)("tickFormatting",e.tickFormatting)("tickArguments",e.tickArguments)("tickStroke",e.tickStroke)("scale",e.xScale)("orient",e.xOrient)("showGridLines",e.showGridLines)("gridLineHeight",e.dims.height)("width",e.dims.width)("tickValues",e.ticks)}}function ZRe(t,n){if(1&t&&(at(),ge(0,"g",3)),2&t){const e=j();k("label",e.labelText)("offset",e.labelOffset)("orient","bottom")("height",e.dims.height)("width",e.dims.width)}}const e5e=["ngx-charts-y-axis-ticks",""];function t5e(t,n){if(1&t&&(at(),b(0,"g",4)(1,"title"),I(2),x(),b(3,"text",5),I(4),x()()),2&t){const e=n.$implicit,i=j();ht("transform",i.transform(e)),w(2),Dt(i.tickFormat(e)),w(1),rr("font-size","12px"),ht("dy",i.dy)("x",i.x1)("y",i.y1)("text-anchor",i.textAnchor),w(1),xn(" ",i.tickTrim(i.tickFormat(e))," ")}}function n5e(t,n){if(1&t&&(at(),ge(0,"path",6)),2&t){const e=j();ht("d",e.referenceAreaPath)("transform",e.gridLineTransform())}}function i5e(t,n){1&t&&(at(),ge(0,"line",9)),2&t&&ht("x2",j(3).gridLineWidth)}function r5e(t,n){1&t&&(at(),ge(0,"line",9)),2&t&&ht("x2",-j(3).gridLineWidth)}function o5e(t,n){if(1&t&&(at(),b(0,"g"),J(1,i5e,1,1,"line",8),J(2,r5e,1,1,"line",8),x()),2&t){const e=j(2);ht("transform",e.gridLineTransform()),w(1),k("ngIf","left"===e.orient),w(1),k("ngIf","right"===e.orient)}}function s5e(t,n){if(1&t&&(at(),b(0,"g"),J(1,o5e,3,3,"g",7),x()),2&t){const e=n.$implicit,i=j();ht("transform",i.transform(e)),w(1),k("ngIf",i.showGridLines)}}function a5e(t,n){if(1&t&&(at(),b(0,"g")(1,"title"),I(2),x(),b(3,"text",11),I(4),x()()),2&t){const e=j(2).$implicit,i=j();w(2),Dt(i.tickTrim(i.tickFormat(e.value))),w(1),ht("dy",i.dy)("y",-6)("x",i.gridLineWidth)("text-anchor",i.textAnchor),w(1),xn(" ",e.name," ")}}function l5e(t,n){if(1&t&&(at(),b(0,"g"),ge(1,"line",10),J(2,a5e,5,6,"g",7),x()),2&t){const e=j().$implicit,i=j();ht("transform",i.transform(e.value)),w(1),ht("x2",i.gridLineWidth)("transform",i.gridLineTransform()),w(1),k("ngIf",i.showRefLabels)}}function c5e(t,n){if(1&t&&(at(),b(0,"g"),J(1,l5e,3,4,"g",7),x()),2&t){const e=j();w(1),k("ngIf",e.showRefLines)}}const u5e=["ngx-charts-y-axis",""];function d5e(t,n){if(1&t){const e=vt();at(),b(0,"g",2),ye("dimensionsChanged",function(r){return $e(e),Be(j().emitTicksWidth(r))}),x()}if(2&t){const e=j();k("trimTicks",e.trimTicks)("maxTickLength",e.maxTickLength)("tickFormatting",e.tickFormatting)("tickArguments",e.tickArguments)("tickValues",e.ticks)("tickStroke",e.tickStroke)("scale",e.yScale)("orient",e.yOrient)("showGridLines",e.showGridLines)("gridLineWidth",e.dims.width)("referenceLines",e.referenceLines)("showRefLines",e.showRefLines)("showRefLabels",e.showRefLabels)("height",e.dims.height)}}function h5e(t,n){if(1&t&&(at(),ge(0,"g",3)),2&t){const e=j();k("label",e.labelText)("offset",e.labelOffset)("orient",e.yOrient)("height",e.dims.height)("width",e.dims.width)}}const f5e=["ngx-charts-circle-series",""];function p5e(t,n){if(1&t&&(at(),ge(0,"rect",4)),2&t){const e=j(2);k("@animationState","active"),ht("x",e.circle.cx-e.circle.radius)("y",e.circle.cy)("width",2*e.circle.radius)("height",e.circle.height)("fill",e.gradientFill)}}const m5e=function(t){return{name:t}};function g5e(t,n){if(1&t){const e=vt();at(),b(0,"g")(1,"defs"),ge(2,"g",1),x(),J(3,p5e,1,6,"rect",2),b(4,"g",3),ye("select",function(){$e(e);const r=j();return Be(r.onClick(r.circle.data))})("activate",function(){return $e(e),Be(j().activateCircle())})("deactivate",function(){return $e(e),Be(j().deactivateCircle())}),x()()}if(2&t){const e=j();w(2),k("name",e.gradientId)("stops",e.circle.gradientStops),w(1),k("ngIf",e.barVisible&&"standard"===e.type),w(1),Mn("active",e.isActive(lr(18,m5e,e.circle.seriesName))),k("cx",e.circle.cx)("cy",e.circle.cy)("r",e.circle.radius)("fill",e.circle.color)("pointerEvents",0===e.circle.value?"none":"all")("data",e.circle.value)("classNames",e.circle.classNames)("tooltipDisabled",e.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",e.tooltipTemplate?void 0:e.getTooltipText(e.circle))("tooltipTemplate",e.tooltipTemplate)("tooltipContext",e.circle.data)}}const v5e=["ngx-charts-circle",""],x5e=["ngx-charts-svg-linear-gradient",""];function w5e(t,n){if(1&t&&(at(),ge(0,"stop")),2&t){const e=n.$implicit;rr("stop-color",e.color)("stop-opacity",e.opacity),ht("offset",e.offset+"%")}}const S5e=["ngx-charts-area",""];function D5e(t,n){if(1&t&&(at(),b(0,"defs"),ge(1,"g",2),x()),2&t){const e=j();w(1),k("name",e.gradientId)("stops",e.gradientStops)}}const E5e=["tooltipAnchor"],A5e=["ngx-charts-tooltip-area",""];function M5e(t,n){if(1&t&&(b(0,"div",6),ge(1,"span",7),I(2),x()),2&t){const e=n.$implicit,i=j(2);w(1),rr("background-color",e.color),w(1),xn(" ",i.getToolTipText(e)," ")}}function I5e(t,n){if(1&t&&(at(),Ip(),b(0,"div",4),J(1,M5e,3,3,"div",5),x()),2&t){const e=n.model;w(1),k("ngForOf",e)}}const F5e=["ngx-charts-timeline",""];function N5e(t,n){if(1&t&&(b(0,"header",4)(1,"span",5),I(2),x()()),2&t){const e=j();w(2),Dt(e.title)}}function O5e(t,n){if(1&t){const e=vt();b(0,"li",6)(1,"ngx-charts-legend-entry",7),ye("select",function(r){return $e(e),Be(j().labelClick.emit(r))})("activate",function(r){return $e(e),Be(j().activate(r))})("deactivate",function(r){return $e(e),Be(j().deactivate(r))}),x()()}if(2&t){const e=n.$implicit,i=j();w(1),k("label",e.label)("formattedLabel",e.formattedLabel)("color",e.color)("isActive",i.isActive(e))}}const Us=["tooltipTemplate"],p2=["seriesTooltipTemplate"],Eo=function(t,n){return[t,n]},n6e=["ngx-charts-line",""];function i6e(t,n){if(1&t){const e=vt();at(),b(0,"g",7),ye("dimensionsChanged",function(r){return $e(e),Be(j().updateXAxisHeight(r))}),x()}if(2&t){const e=j();k("xScale",e.xScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)}}function r6e(t,n){if(1&t){const e=vt();at(),b(0,"g",8),ye("dimensionsChanged",function(r){return $e(e),Be(j().updateYAxisWidth(r))}),x()}if(2&t){const e=j();k("yScale",e.yScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)("referenceLines",e.referenceLines)("showRefLines",e.showRefLines)("showRefLabels",e.showRefLabels)}}function o6e(t,n){if(1&t&&(at(),b(0,"g"),ge(1,"g",9),x()),2&t){const e=n.$implicit,i=j();k("@animationState","active"),w(1),k("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("activeEntries",i.activeEntries)("scaleType",i.scaleType)("curve",i.curve)("rangeFillOpacity",i.rangeFillOpacity)("hasRange",i.hasRange)("animations",i.animations)}}function s6e(t,n){if(1&t){const e=vt();at(),b(0,"g")(1,"g",13),ye("select",function(r){return $e(e),Be(j(2).onClick(r))})("activate",function(r){return $e(e),Be(j(2).onActivate(r))})("deactivate",function(r){return $e(e),Be(j(2).onDeactivate(r))}),x()()}if(2&t){const e=n.$implicit,i=j(2);w(1),k("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("visibleValue",i.hoveredVertical)("activeEntries",i.activeEntries)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)}}function a6e(t,n){if(1&t){const e=vt();at(),b(0,"g",10),ye("mouseleave",function(){return $e(e),Be(j().hideCircles())}),b(1,"g",11),ye("hover",function(r){return $e(e),Be(j().updateHoveredVertical(r))}),x(),J(2,s6e,2,9,"g",12),x()}if(2&t){const e=j();w(1),k("dims",e.dims)("xSet",e.xSet)("xScale",e.xScale)("yScale",e.yScale)("results",e.results)("colors",e.colors)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.seriesTooltipTemplate),w(1),k("ngForOf",e.results)}}function l6e(t,n){if(1&t&&(at(),b(0,"g"),ge(1,"g",15),x()),2&t){const e=n.$implicit,i=j(2);w(1),k("xScale",i.timelineXScale)("yScale",i.timelineYScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("curve",i.curve)("hasRange",i.hasRange)("animations",i.animations)}}function c6e(t,n){if(1&t){const e=vt();at(),b(0,"g",14),ye("onDomainChange",function(r){return $e(e),Be(j().updateDomain(r))}),J(1,l6e,2,8,"g",4),x()}if(2&t){const e=j();k("results",e.results)("view",Sr(10,Eo,e.timelineWidth,e.height))("height",e.timelineHeight)("scheme",e.scheme)("customColors",e.customColors)("scaleType",e.scaleType)("legend",e.legend),ht("transform",e.timelineTransform),w(1),k("ngForOf",e.results)("ngForTrackBy",e.trackBy)}}const u6e=["ngx-charts-line-series",""];function d6e(t,n){if(1&t&&(at(),ge(0,"g",4)),2&t){const e=j();k("name",e.gradientId)("stops",e.gradientStops)}}function h6e(t,n){if(1&t&&(at(),ge(0,"g",5)),2&t){const e=j();Mn("active",e.isActive(e.data))("inactive",e.isInactive(e.data)),k("data",e.data)("path",e.outerPath)("fill",e.hasGradient?e.gradientUrl:e.colors.getColor(e.data.name))("opacity",e.rangeFillOpacity)("animations",e.animations)}}let iW=(()=>{class t{constructor(e,i,r){this.applicationRef=e,this.componentFactoryResolver=i,this.injector=r}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(e){this._container=e}getComponentRootNode(e){return function a$e(t){return t.element}(e)?e.element.nativeElement:e.hostView&&e.hostView.rootNodes.length>0?e.hostView.rootNodes[0]:e.location.nativeElement}getRootViewContainerNode(e){return this.getComponentRootNode(e)}projectComponentBindings(e,i){if(i){if(void 0!==i.inputs){const r=Object.getOwnPropertyNames(i.inputs);for(const o of r)e.instance[o]=i.inputs[o]}if(void 0!==i.outputs){const r=Object.getOwnPropertyNames(i.outputs);for(const o of r)e.instance[o]=i.outputs[o]}}return e}appendComponent(e,i={},r){r||(r=this.getRootViewContainer());const o=this.getComponentRootNode(r),s=new kNe(o,this.componentFactoryResolver,this.applicationRef,this.injector),a=new Fz(e),l=s.attach(a);return this.projectComponentBindings(l,i),l}}return t.\u0275fac=function(e){return new(e||t)(ct(Au),ct($c),ct(Rs))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t})();function l$e(t,n,e){e=e||{};let i,r,o,s=null,a=0;function l(){a=!1===e.leading?0:+new Date,s=null,o=t.apply(i,r)}return function(){const c=+new Date;!a&&!1===e.leading&&(a=c);const u=n-(c-a);return i=this,r=arguments,u<=0?(clearTimeout(s),s=null,a=c,o=t.apply(i,r)):!s&&!1!==e.trailing&&(s=setTimeout(l,u)),o}}function c$e(t,n){return function(i,r,o){return{configurable:!0,enumerable:o.enumerable,get:function(){return Object.defineProperty(this,r,{configurable:!0,enumerable:o.enumerable,value:l$e(o.value,t,n)}),this[r]}}}}var Gs=(()=>(function(t){t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right"}(Gs||(Gs={})),Gs))();const Lf=7;function rW(t,n,e){return"top"===e?t.top-Lf:"bottom"===e?t.top+t.height-n.height+Lf:"center"===e?t.top+t.height/2-n.height/2:void 0}function oW(t,n,e){return"left"===e?t.left-Lf:"right"===e?t.left+t.width-n.width+Lf:"center"===e?t.left+t.width/2-n.width/2:void 0}class yc{static calculateVerticalAlignment(n,e,i){let r=rW(n,e,i);return r+e.height>window.innerHeight&&(r=window.innerHeight-e.height),r}static calculateVerticalCaret(n,e,i,r){let o;"top"===r&&(o=n.height/2-i.height/2+Lf),"bottom"===r&&(o=e.height-n.height/2-i.height/2-Lf),"center"===r&&(o=e.height/2-i.height/2);const s=rW(n,e,r);return s+e.height>window.innerHeight&&(o+=s+e.height-window.innerHeight),o}static calculateHorizontalAlignment(n,e,i){let r=oW(n,e,i);return r+e.width>window.innerWidth&&(r=window.innerWidth-e.width),r}static calculateHorizontalCaret(n,e,i,r){let o;"left"===r&&(o=n.width/2-i.width/2+Lf),"right"===r&&(o=e.width-n.width/2-i.width/2-Lf),"center"===r&&(o=e.width/2-i.width/2);const s=oW(n,e,r);return s+e.width>window.innerWidth&&(o+=s+e.width-window.innerWidth),o}static shouldFlip(n,e,i,r){let o=!1;return"right"===i&&n.left+n.width+e.width+r>window.innerWidth&&(o=!0),"left"===i&&n.left-e.width-r<0&&(o=!0),"top"===i&&n.top-e.height-r<0&&(o=!0),"bottom"===i&&n.top+n.height+e.height+r>window.innerHeight&&(o=!0),o}static positionCaret(n,e,i,r,o){let s=0,a=0;return n===Gs.right?(a=-7,s=yc.calculateVerticalCaret(i,e,r,o)):n===Gs.left?(a=e.width,s=yc.calculateVerticalCaret(i,e,r,o)):n===Gs.top?(s=e.height,a=yc.calculateHorizontalCaret(i,e,r,o)):n===Gs.bottom&&(s=-7,a=yc.calculateHorizontalCaret(i,e,r,o)),{top:s,left:a}}static positionContent(n,e,i,r,o){let s=0,a=0;return n===Gs.right?(a=i.left+i.width+r,s=yc.calculateVerticalAlignment(i,e,o)):n===Gs.left?(a=i.left-e.width-r,s=yc.calculateVerticalAlignment(i,e,o)):n===Gs.top?(s=i.top-e.height-r,a=yc.calculateHorizontalAlignment(i,e,o)):n===Gs.bottom&&(s=i.top+i.height+r,a=yc.calculateHorizontalAlignment(i,e,o)),{top:s,left:a}}static determinePlacement(n,e,i,r){if(yc.shouldFlip(i,e,n,r)){if(n===Gs.right)return Gs.left;if(n===Gs.left)return Gs.right;if(n===Gs.top)return Gs.bottom;if(n===Gs.bottom)return Gs.top}return n}}let u$e=(()=>{class t{constructor(e,i){this.element=e,this.renderer=i}get cssClasses(){let e="ngx-charts-tooltip-content";return e+=` position-${this.placement}`,e+=` type-${this.type}`,e+=` ${this.cssClass}`,e}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){const e=this.element.nativeElement,i=this.host.nativeElement.getBoundingClientRect();if(!i.height&&!i.width)return;const r=e.getBoundingClientRect();this.checkFlip(i,r),this.positionContent(e,i,r),this.showCaret&&this.positionCaret(i,r),setTimeout(()=>this.renderer.addClass(e,"animate"),1)}positionContent(e,i,r){const{top:o,left:s}=yc.positionContent(this.placement,r,i,this.spacing,this.alignment);this.renderer.setStyle(e,"top",`${o}px`),this.renderer.setStyle(e,"left",`${s}px`)}positionCaret(e,i){const r=this.caretElm.nativeElement,o=r.getBoundingClientRect(),{top:s,left:a}=yc.positionCaret(this.placement,i,e,o,this.alignment);this.renderer.setStyle(r,"top",`${s}px`),this.renderer.setStyle(r,"left",`${a}px`)}checkFlip(e,i){this.placement=yc.determinePlacement(this.placement,i,e,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(le(ti),le(Ss))},t.\u0275cmp=Rt({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(e,i){if(1&e&&io($Re,5),2&e){let r;cn(r=un())&&(i.caretElm=r.first)}},hostVars:2,hostBindings:function(e,i){1&e&&ye("resize",function(){return i.onWindowResize()},0,w5),2&e&&Su(i.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(e,i){1&e&&(b(0,"div"),ge(1,"span",0,1),b(3,"div",2),J(4,HRe,2,4,"span",3),J(5,zRe,1,1,"span",4),x()()),2&e&&(w(1),function J8(t,n,e){Tu(lc,Pd,Ig(Gt(),t,n,e),!0)}("tooltip-caret position-",i.placement,""),k("hidden",!i.showCaret),w(3),k("ngIf",!i.title),w(1),k("ngIf",i.title))},dependencies:[gn,kl],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),function SNe(t,n,e,i){var s,r=arguments.length,o=r<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,n,e,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(r<3?s(o):r>3?s(n,e,o):s(n,e))||o);r>3&&o&&Object.defineProperty(n,e,o)}([c$e(100)],t.prototype,"onWindowResize",null),t})();class d$e{constructor(n){this.injectionService=n,this.defaults={},this.components=new Map}getByType(n=this.type){return this.components.get(n)}create(n){return this.createByType(this.type,n)}createByType(n,e){e=this.assignDefaults(e);const i=this.injectComponent(n,e);return this.register(n,i),i}destroy(n){const e=this.components.get(n.componentType);if(e&&e.length){const i=e.indexOf(n);i>-1&&(e[i].destroy(),e.splice(i,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(n){const e=this.components.get(n);if(e&&e.length){let i=e.length-1;for(;i>=0;)this.destroy(e[i--])}}injectComponent(n,e){return this.injectionService.appendComponent(n,e)}assignDefaults(n){const e=Object.assign({},this.defaults.inputs),i=Object.assign({},this.defaults.outputs);return!n.inputs&&!n.outputs&&(n={inputs:n}),e&&(n.inputs=Object.assign(Object.assign({},e),n.inputs)),i&&(n.outputs=Object.assign(Object.assign({},i),n.outputs)),n}register(n,e){this.components.has(n)||this.components.set(n,[]),this.components.get(n).push(e)}}let UI=(()=>{class t extends d$e{constructor(e){super(e),this.type=u$e}}return t.\u0275fac=function(e){return new(e||t)(ct(iW))},t.\u0275prov=Et({token:t,factory:t.\u0275fac}),t})(),os=(()=>{class t{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new Ke,this.legendLabelActivate=new Ke,this.legendLabelDeactivate=new Ke}ngOnChanges(e){this.update()}update(){let e=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||"right"===this.legendOptions.position)&&(e="scaleLegend"===this.legendType?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-e)/12),this.legendWidth=this.legendOptions&&"right"!==this.legendOptions.position?this.chartWidth:Math.floor(this.view[0]*e/12)}getLegendType(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",data:"data",legendData:"legendData",colors:"colors",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[Lr([UI]),Hn],ngContentSelectors:QG,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(e,i){1&e&&(Cu(),b(0,"div",0),at(),b(1,"svg",1),ku(2),x(),J(3,URe,1,5,"ngx-charts-scale-legend",2),J(4,GRe,1,7,"ngx-charts-legend",3),x()),2&e&&(rr("width",i.view[0],"px"),k("@animationState","active")("@.disabled",!i.animations),w(1),ht("width",i.chartWidth)("height",i.view[1]),w(2),k("ngIf",i.showLegend&&"scaleLegend"===i.legendType),w(1),k("ngIf",i.showLegend&&"legend"===i.legendType))},dependencies:function(){return[gn,vW,bW]},encapsulation:2,data:{animation:[il("animationState",[Ia(":enter",[Dr({opacity:0}),Ma("500ms 100ms",Dr({opacity:1}))])])]},changeDetection:0}),t})(),h$e=(()=>{class t{constructor(e,i){this.element=e,this.zone=i,this.visible=new Ke,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const e=()=>{if(!this.element)return;const{offsetHeight:i,offsetWidth:r}=this.element.nativeElement;i&&r?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e())})}}return t.\u0275fac=function(e){return new(e||t)(le(ti),le(Wi))},t.\u0275dir=Zt({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t})(),ss=(()=>{class t{constructor(e,i,r){this.chartElement=e,this.zone=i,this.cd=r,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new Ke}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new h$e(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(e){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const e=this.getContainerDims();e&&(this.width=e.width,this.height=e.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let e,i;const r=this.chartElement.nativeElement;if(null!==r.parentNode){const o=r.parentNode.getBoundingClientRect();e=o.width,i=o.height}return e&&i?{width:e,height:i}:null}formatDates(){for(let e=0;ee.lift(new ENe(t,n))}(200)).subscribe(r=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=i}cloneData(e){const i=[];for(const r of e){const o={name:r.name};if(void 0!==r.value&&(o.value=r.value),void 0!==r.series){o.series=[];for(const s of r.series){const a=Object.assign({},s);o.series.push(a)}}void 0!==r.extra&&(o.extra=JSON.parse(JSON.stringify(r.extra))),i.push(o)}return i}}return t.\u0275fac=function(e){return new(e||t)(le(ti),le(Wi),le(qo))},t.\u0275cmp=Rt({type:t,selectors:[["base-chart"]],inputs:{scheme:"scheme",schemeType:"schemeType",animations:"animations",results:"results",view:"view",customColors:"customColors"},outputs:{select:"select"},features:[Hn],decls:1,vars:0,template:function(e,i){1&e&&ge(0,"div")},encapsulation:2}),t})(),GI=(()=>{class t{constructor(e){this.textHeight=25,this.margin=5,this.element=e.nativeElement}ngOnChanges(e){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case"top":case"bottom":this.y=this.offset,this.x=this.width/2;break;case"left":this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case"right":this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return t.\u0275fac=function(e){return new(e||t)(le(ti))},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[Hn],attrs:WRe,decls:2,vars:6,template:function(e,i){1&e&&(at(),b(0,"text"),I(1),x()),2&e&&(ht("stroke-width",i.strokeWidth)("x",i.x)("y",i.y)("text-anchor",i.textAnchor)("transform",i.transform),w(1),xn(" ",i.label," "))},encapsulation:2,changeDetection:0}),t})();function Rf(t,n=16){return"string"!=typeof t?"number"==typeof t?t+"":"":(t=t.trim()).length<=n?t:`${t.slice(0,n)}...`}function sW(t,n){if(t.length>n){const e=[],i=Math.floor(t.length/n);for(let r=0;r{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.dimensionsChanged=new Ke,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor="middle",this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0}ngOnChanges(e){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);e!==this.height&&(this.height=e,this.dimensionsChanged.emit({height:e}),setTimeout(()=>this.updateDims()))}update(){const e=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(r){return"Date"===r.constructor.name?r.toLocaleDateString():r.toLocaleString()};const i=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(r){return this.scale(r)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",i&&0!==i?(this.textTransform=`rotate(${i})`,this.textAnchor="end",this.verticalSpacing=10):this.textAnchor="middle",setTimeout(()=>this.updateDims())}getRotationAngle(e){let i=0;this.maxTicksLength=0;for(let c=0;cthis.maxTicksLength&&(this.maxTicksLength=d)}const s=8*Math.min(this.maxTicksLength,this.maxAllowedLength);let a=s;const l=Math.floor(this.width/e.length);for(;a>l&&i>-90;)i-=30,a=Math.cos(i*(Math.PI/180))*s;return i}getTicks(){let e;const i=this.getMaxTicks(20),r=this.getMaxTicks(100);return this.tickValues?e=this.tickValues:this.scale.ticks?e=this.scale.ticks.apply(this.scale,[r]):(e=this.scale.domain(),e=sW(e,i)),e}getMaxTicks(e){return Math.floor(this.width/e)}tickTransform(e){return"translate("+this.adjustedScale(e)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(e){return this.trimTicks?Rf(e,this.maxTickLength):e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(e,i){if(1&e&&io(ZG,5),2&e){let r;cn(r=un())&&(i.ticksElement=r.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",rotateTicks:"rotateTicks",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineHeight:"gridLineHeight",width:"width"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[Hn],attrs:qRe,decls:4,vars:2,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[4,"ngIf"],["y2","0",1,"gridline-path","gridline-path-vertical"]],template:function(e,i){1&e&&(at(),b(0,"g",null,0),J(2,XRe,5,7,"g",1),x(),J(3,JRe,2,2,"g",2)),2&e&&(w(2),k("ngForOf",i.ticks),w(1),k("ngForOf",i.ticks))},dependencies:[jn,gn],encapsulation:2,changeDetection:0}),t})(),Wl=(()=>{class t{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient="bottom",this.xAxisOffset=0,this.dimensionsChanged=new Ke,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5}ngOnChanges(e){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,typeof this.xAxisTickCount<"u"&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:e}){const i=e+25+5;i!==this.labelOffset&&(this.labelOffset=i,setTimeout(()=>{this.dimensionsChanged.emit({height:e})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(e,i){if(1&e&&io(aW,5),2&e){let r;cn(r=un())&&(i.ticksComponent=r.first)}},inputs:{rotateTicks:"rotateTicks",showGridLines:"showGridLines",xOrient:"xOrient",xAxisOffset:"xAxisOffset",xScale:"xScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickInterval:"xAxisTickInterval",xAxisTickCount:"xAxisTickCount"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[Hn],attrs:KRe,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(e,i){1&e&&(at(),b(0,"g"),J(1,QRe,1,12,"g",0),J(2,ZRe,1,5,"g",1),x()),2&e&&(ht("class",i.xAxisClassName)("transform",i.transform),w(1),k("ngIf",i.xScale),w(1),k("ngIf",i.showLabel))},dependencies:[gn,GI,aW],encapsulation:2,changeDetection:0}),t})();let lW=(()=>{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new Ke,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor="middle",this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0}ngOnChanges(e){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);e!==this.width&&(this.width=e,this.dimensionsChanged.emit({width:e}),setTimeout(()=>this.updateDims()))}update(){let e;const i="top"===this.orient||"right"===this.orient?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,e=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(r){return"Date"===r.constructor.name?r.toLocaleDateString():r.toLocaleString()},this.adjustedScale=e.bandwidth?function(r){return e(r)+.5*e.bandwidth()}:e,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case"top":case"bottom":this.transform=function(r){return"translate("+this.adjustedScale(r)+",0)"},this.textAnchor="middle",this.y2=this.innerTickSize*i,this.y1=this.tickSpacing*i,this.dy=i<0?"0em":".71em";break;case"left":this.transform=function(r){return"translate(0,"+this.adjustedScale(r)+")"},this.textAnchor="end",this.x2=this.innerTickSize*-i,this.x1=this.tickSpacing*-i,this.dy=".32em";break;case"right":this.transform=function(r){return"translate(0,"+this.adjustedScale(r)+")"},this.textAnchor="start",this.x2=this.innerTickSize*-i,this.x1=this.tickSpacing*-i,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(e=>e.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(e=>e.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=function Yh(t,n,e,i,r,[o,s,a,l]){let c="";return c=`M${[t+r,n]}`,c+="h"+((e=0===(e=Math.floor(e))?1:e)-2*r),c+=s?`a${[r,r]} 0 0 1 ${[r,r]}`:`h${r}v${r}`,c+="v"+((i=0===(i=Math.floor(i))?1:i)-2*r),c+=l?`a${[r,r]} 0 0 1 ${[-r,r]}`:`v${r}h${-r}`,c+="h"+(2*r-e),c+=a?`a${[r,r]} 0 0 1 ${[-r,-r]}`:`h${-r}v${-r}`,c+="v"+(2*r-i),c+=o?`a${[r,r]} 0 0 1 ${[r,-r]}`:`v${-r}h${r}`,c+="z",c}(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let e;const i=this.getMaxTicks(20),r=this.getMaxTicks(50);return this.tickValues?e=this.tickValues:this.scale.ticks?e=this.scale.ticks.apply(this.scale,[r]):(e=this.scale.domain(),e=sW(e,i)),e}getMaxTicks(e){return Math.floor(this.height/e)}tickTransform(e){return`translate(${this.adjustedScale(e)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(e){return this.trimTicks?Rf(e,this.maxTickLength):e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(e,i){if(1&e&&io(ZG,5),2&e){let r;cn(r=un())&&(i.ticksElement=r.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[Hn],attrs:e5e,decls:6,vars:4,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[1,"reference-area"],[4,"ngIf"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(e,i){1&e&&(at(),b(0,"g",null,0),J(2,t5e,5,9,"g",1),x(),J(3,n5e,1,2,"path",2),J(4,s5e,2,2,"g",3),J(5,c5e,2,1,"g",3)),2&e&&(w(2),k("ngForOf",i.ticks),w(1),k("ngIf",i.referenceLineLength>1&&i.refMax&&i.refMin&&i.showRefLines),w(1),k("ngForOf",i.ticks),w(1),k("ngForOf",i.referenceLines))},dependencies:[jn,gn],encapsulation:2,changeDetection:0}),t})(),El=(()=>{class t{constructor(){this.showGridLines=!1,this.yOrient="left",this.yAxisOffset=0,this.dimensionsChanged=new Ke,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(e){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),"right"===this.yOrient?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):(this.offset=this.offset,this.transform=`translate(${this.offset} , 0)`),void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:e}){e!==this.labelOffset&&"right"===this.yOrient?(this.labelOffset=e+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:e})},0)):e!==this.labelOffset&&(this.labelOffset=e,setTimeout(()=>{this.dimensionsChanged.emit({width:e})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(e,i){if(1&e&&io(lW,5),2&e){let r;cn(r=un())&&(i.ticksComponent=r.first)}},inputs:{showGridLines:"showGridLines",yOrient:"yOrient",yAxisOffset:"yAxisOffset",yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showLabel:"showLabel",labelText:"labelText",yAxisTickInterval:"yAxisTickInterval",yAxisTickCount:"yAxisTickCount",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[Hn],attrs:u5e,decls:3,vars:4,consts:[["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(e,i){1&e&&(at(),b(0,"g"),J(1,d5e,1,14,"g",0),J(2,h5e,1,5,"g",1),x()),2&e&&(ht("class",i.yAxisClassName)("transform",i.transform),w(1),k("ngIf",i.yScale),w(1),k("ngIf",i.showLabel))},dependencies:[gn,GI,lW],encapsulation:2,changeDetection:0}),t})(),cW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs]}),t})();var m2=(()=>(function(t){t[t.popover="popover"]="popover",t[t.tooltip="tooltip"]="tooltip"}(m2||(m2={})),m2))(),g2=(()=>(function(t){t[t.left="left"]="left",t[t.center="center"]="center",t[t.right="right"]="right"}(g2||(g2={})),g2))(),$f=(()=>(function(t){t[t.all="all"]="all",t[t.focus="focus"]="focus",t[t.mouseover="mouseover"]="mouseover"}($f||($f={})),$f))();let Bu=(()=>{class t{constructor(e,i,r){this.tooltipService=e,this.viewContainerRef=i,this.renderer=r,this.tooltipCssClass="",this.tooltipTitle="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=Gs.top,this.tooltipAlignment=g2.center,this.tooltipType=m2.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=$f.all,this.tooltipImmediateExit=!1,this.show=new Ke,this.hide=new Ke}get listensForFocus(){return this.tooltipShowEvent===$f.all||this.tooltipShowEvent===$f.focus}get listensForHover(){return this.tooltipShowEvent===$f.all||this.tooltipShowEvent===$f.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(e){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(e))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(e){if(this.component||this.tooltipDisabled)return;const i=e?0:this.tooltipShowTimeout;clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const r=this.createBoundOptions();this.component=this.tooltipService.create(r),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},i)}addHideListeners(e){this.mouseEnterContentEvent=this.renderer.listen(e,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(e,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen(document,"click",i=>{e.contains(i.target)||this.hideTooltip()}))}hideTooltip(e=!1){if(!this.component)return;const i=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),e?i():this.timeout=setTimeout(i,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return t.\u0275fac=function(e){return new(e||t)(le(UI),le(nl),le(Ss))},t.\u0275dir=Zt({type:t,selectors:[["","ngx-tooltip",""]],hostBindings:function(e,i){1&e&&ye("focusin",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(o){return i.onMouseLeave(o.target)})("click",function(){return i.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),t})(),uW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({providers:[iW,UI],imports:[Vs]}),t})();function Ra(t){return t instanceof Date?t.toLocaleDateString():t.toLocaleString()}function oa(t){return t.toLocaleString().replace(/[&'`"<>]/g,n=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[n]))}const dW={};function Al(){let t=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return t=`a${t}`,dW[t]?Al():(dW[t]=!0,t)}let YI,ob=(()=>{class t{constructor(){this.type="standard",this.tooltipDisabled=!1,this.select=new Ke,this.activate=new Ke,this.deactivate=new Ke,this.barVisible=!1}ngOnInit(){this.gradientId="grad"+Al().toString(),this.gradientFill=`url(#${this.gradientId})`}ngOnChanges(e){this.update()}update(){this.circle=this.getActiveCircle()}getActiveCircle(){const e=this.data.series.findIndex(i=>{const r=i.name;return r&&this.visibleValue&&r.toString()===this.visibleValue.toString()&&void 0!==i.value});if(-1!==e)return this.mapDataPointToCircle(this.data.series[e],e)}mapDataPointToCircle(e,i){const r=this.data.name,o=e.value,s=e.name,a=Ra(s);let l;l=this.xScale("time"===this.scaleType?s:"linear"===this.scaleType?Number(s):s);const c=this.yScale("standard"===this.type?o:e.d1),d=this.yScale.range()[0]-c;let f;return f=this.colors.getColor("linear"===this.colors.scaleType?"standard"===this.type?o:e.d1:r),{classNames:[`circle-data-${i}`],value:o,label:s,data:Object.assign({},e,{series:r,value:o,name:s}),cx:l,cy:c,radius:5,height:d,tooltipLabel:a,color:f,opacity:1,seriesName:r,gradientStops:this.getGradientStops(f),min:e.min,max:e.max}}getTooltipText({tooltipLabel:e,value:i,seriesName:r,min:o,max:s}){return`\n ${oa(r)} \u2022 ${oa(e)}\n ${i.toLocaleString()}${this.getTooltipMinMaxText(o,s)}\n `}getTooltipMinMaxText(e,i){if(void 0!==e||void 0!==i){let r=" (";return void 0!==e?(void 0===i&&(r+="\u2265"),r+=e.toLocaleString(),void 0!==i&&(r+=" - ")):void 0!==i&&(r+="\u2264"),void 0!==i&&(r+=i.toLocaleString()),r+=")",r}return""}getGradientStops(e){return[{offset:0,color:e,opacity:.2},{offset:100,color:e,opacity:1}]}onClick(e){this.select.emit(e)}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(r=>e.name===r.name)}activateCircle(){this.barVisible=!0,this.activate.emit({name:this.data.name})}deactivateCircle(){this.barVisible=!1,this.circle.opacity=0,this.deactivate.emit({name:this.data.name})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-circle-series",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",visibleValue:"visibleValue",activeEntries:"activeEntries",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[Hn],attrs:f5e,decls:1,vars:1,consts:[[4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],["class","tooltip-bar",4,"ngIf"],["ngx-charts-circle","","ngx-tooltip","",1,"circle",3,"cx","cy","r","fill","pointerEvents","data","classNames","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"],[1,"tooltip-bar"]],template:function(e,i){1&e&&J(0,g5e,5,20,"g",0),2&e&&k("ngIf",i.circle)},dependencies:function(){return[gn,Bu,v2,bm]},encapsulation:2,data:{animation:[il("animationState",[Ia(":enter",[Dr({opacity:0}),Ma(250,Dr({opacity:1}))])])]},changeDetection:0}),t})(),v2=(()=>{class t{constructor(){this.select=new Ke,this.activate=new Ke,this.deactivate=new Ke}onClick(){this.select.emit(this.data)}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}ngOnChanges(e){this.classNames=Array.isArray(this.classNames)?this.classNames.join(" "):"",this.classNames+="circle"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-circle",""]],hostBindings:function(e,i){1&e&&ye("click",function(){return i.onClick()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{classNames:"classNames",cx:"cx",cy:"cy",r:"r",fill:"fill",stroke:"stroke",data:"data",circleOpacity:"circleOpacity",pointerEvents:"pointerEvents"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[Hn],attrs:v5e,decls:1,vars:8,template:function(e,i){1&e&&(at(),ge(0,"circle")),2&e&&ht("cx",i.cx)("cy",i.cy)("r",i.r)("fill",i.fill)("stroke",i.stroke)("opacity",i.circleOpacity)("class",i.classNames)("pointer-events",i.pointerEvents)},encapsulation:2,changeDetection:0}),t})(),bm=(()=>{class t{constructor(){this.orientation="vertical"}ngOnChanges(e){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%","horizontal"===this.orientation?this.x2="100%":"vertical"===this.orientation&&(this.y1="100%")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[Hn],attrs:x5e,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(e,i){1&e&&(at(),b(0,"linearGradient",0),J(1,w5e,1,5,"stop",1),x()),2&e&&(k("id",i.name),ht("x1",i.x1)("y1",i.y1)("x2",i.x2)("y2",i.y2),w(1),k("ngForOf",i.stops))},dependencies:[jn],encapsulation:2,changeDetection:0}),t})(),XI=(()=>{class t{constructor(e){this.opacity=1,this.startOpacity=.5,this.endOpacity=1,this.gradient=!1,this.animations=!0,this.select=new Ke,this.initialized=!1,this.hasGradient=!1,this.element=e.nativeElement}ngOnChanges(e){this.initialized?this.update():(this.loadAnimation(),this.initialized=!0)}update(){this.gradientId="grad"+Al().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl()}loadAnimation(){this.areaPath=this.startingPath,setTimeout(this.update.bind(this),100)}updatePathEl(){const e=va(this.element).select(".area");this.animations?e.transition().duration(750).attr("d",this.path):e.attr("d",this.path)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.startOpacity},{offset:100,color:this.fill,opacity:this.endOpacity}]}}return t.\u0275fac=function(e){return new(e||t)(le(ti))},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-area",""]],inputs:{opacity:"opacity",startOpacity:"startOpacity",endOpacity:"endOpacity",gradient:"gradient",animations:"animations",data:"data",path:"path",startingPath:"startingPath",fill:"fill",activeLabel:"activeLabel",stops:"stops"},outputs:{select:"select"},features:[Hn],attrs:S5e,decls:2,vars:5,consts:[[4,"ngIf"],[1,"area"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"]],template:function(e,i){1&e&&(J(0,D5e,2,2,"defs",0),at(),ge(1,"path",1)),2&e&&(k("ngIf",i.gradient),w(1),rr("opacity",i.opacity),ht("d",i.areaPath)("fill",i.gradient?i.gradientFill:i.fill))},dependencies:[gn,bm],encapsulation:2,changeDetection:0}),t})();typeof window<"u"?YI=window:typeof global<"u"&&(YI=global);const gW=YI.MouseEvent;function JI(t,n=!1,e=!0){if("function"==typeof gW)return new gW(t,{bubbles:n,cancelable:e});{const i=document.createEvent("MouseEvent");return i.initEvent(t,n,e),i}}let sb=(()=>{class t{constructor(){this.anchorOpacity=0,this.anchorPos=-1,this.anchorValues=[],this.showPercentage=!1,this.tooltipDisabled=!1,this.hover=new Ke}getValues(e){const i=[];for(const r of this.results){const o=r.series.find(a=>a.name.toString()===e.toString());let s=r.name;if(s instanceof Date&&(s=s.toLocaleDateString()),o){const a=o.name;let c,l=o.value;if(this.showPercentage&&(l=(o.d1-o.d0).toFixed(2)+"%"),"linear"===this.colors.scaleType){let d=l;o.d1&&(d=o.d1),c=this.colors.getColor(d)}else c=this.colors.getColor(r.name);const u=Object.assign({},o,{value:l,name:a,series:s,min:o.min,max:o.max,color:c});i.push(u)}}return i}mouseMove(e){const i=e.pageX-e.target.getBoundingClientRect().left,r=this.findClosestPointIndex(i),o=this.xSet[r];if(this.anchorPos=this.xScale(o),this.anchorPos=Math.max(0,this.anchorPos),this.anchorPos=Math.min(this.dims.width,this.anchorPos),this.anchorValues=this.getValues(o),this.anchorPos!==this.lastAnchorPos){const s=JI("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(s),this.anchorOpacity=.7,this.hover.emit({value:o}),this.showTooltip(),this.lastAnchorPos=this.anchorPos}}findClosestPointIndex(e){let i=0,r=this.xSet.length-1,o=Number.MAX_VALUE,s=0;for(;i<=r;){const a=(i+r)/2|0,l=this.xScale(this.xSet[a]),c=Math.abs(l-e);if(ce)){o=0,s=a;break}r=a-1}}return s}showTooltip(){const e=JI("mouseenter");this.tooltipAnchor.nativeElement.dispatchEvent(e)}hideTooltip(){const e=JI("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(e),this.anchorOpacity=0,this.lastAnchorPos=-1}getToolTipText(e){let i="";return i+=void 0!==e.series?e.series:"???",i+=": ",void 0!==e.value&&(i+=e.value.toLocaleString()),(void 0!==e.min||void 0!==e.max)&&(i+=" (",void 0!==e.min?(void 0===e.max&&(i+="\u2265"),i+=e.min.toLocaleString(),void 0!==e.max&&(i+=" - ")):void 0!==e.max&&(i+="\u2264"),void 0!==e.max&&(i+=e.max.toLocaleString()),i+=")"),i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-tooltip-area",""]],viewQuery:function(e,i){if(1&e&&io(E5e,5),2&e){let r;cn(r=un())&&(i.tooltipAnchor=r.first)}},inputs:{showPercentage:"showPercentage",tooltipDisabled:"tooltipDisabled",dims:"dims",xSet:"xSet",xScale:"xScale",yScale:"yScale",results:"results",colors:"colors",tooltipTemplate:"tooltipTemplate"},outputs:{hover:"hover"},attrs:A5e,decls:6,vars:18,consts:[["y","0",1,"tooltip-area",2,"opacity","0","cursor","auto",3,"mousemove","mouseleave"],["defaultTooltipTemplate",""],["y","0","ngx-tooltip","",1,"tooltip-anchor",3,"tooltipDisabled","tooltipPlacement","tooltipType","tooltipSpacing","tooltipTemplate","tooltipContext","tooltipImmediateExit"],["tooltipAnchor",""],[1,"area-tooltip-container"],["class","tooltip-item",4,"ngFor","ngForOf"],[1,"tooltip-item"],[1,"tooltip-item-color"]],template:function(e,i){if(1&e&&(at(),b(0,"g")(1,"rect",0),ye("mousemove",function(o){return i.mouseMove(o)})("mouseleave",function(){return i.hideTooltip()}),x(),J(2,I5e,2,1,"ng-template",null,1,Ur),ge(4,"rect",2,3),x()),2&e){const r=uo(3);w(1),ht("x",0)("width",i.dims.width)("height",i.dims.height),w(3),rr("opacity",i.anchorOpacity)("pointer-events","none"),k("@animationState",0!==i.anchorOpacity?"active":"inactive")("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement","right")("tooltipType","tooltip")("tooltipSpacing",15)("tooltipTemplate",i.tooltipTemplate?i.tooltipTemplate:r)("tooltipContext",i.anchorValues)("tooltipImmediateExit",!0),ht("x",i.anchorPos)("width",1)("height",i.dims.height)}},dependencies:[jn,Bu],encapsulation:2,data:{animation:[il("animationState",[Ia("inactive => active",[Dr({opacity:0}),Ma(250,Dr({opacity:.7}))]),Ia("active => inactive",[Dr({opacity:.7}),Ma(250,Dr({opacity:0}))])])]},changeDetection:0}),t})(),ab=(()=>{class t{constructor(e,i){this.cd=i,this.height=50,this.select=new Ke,this.onDomainChange=new Ke,this.initialized=!1,this.element=e.nativeElement}ngOnChanges(e){this.update(),this.initialized||(this.addBrush(),this.initialized=!0)}update(){this.dims=this.getDims(),this.height=this.dims.height;const e=this.view[1]-this.height;this.xDomain=this.getXDomain(),this.xScale=this.getXScale(),this.brush&&this.updateBrush(),this.transform=`translate(0 , ${e})`,this.filterId="filter"+Al().toString(),this.filter=`url(#${this.filterId})`,this.cd.markForCheck()}getXDomain(){let e=[];for(const r of this.results)for(const o of r.series)e.includes(o.name)||e.push(o.name);let i=[];return"time"===this.scaleType?i=[Math.min(...e),Math.max(...e)]:"linear"===this.scaleType?(e=e.map(s=>Number(s)),i=[Math.min(...e),Math.max(...e)]):i=e,i}getXScale(){let e;return"time"===this.scaleType?e=pm().range([0,this.dims.width]).domain(this.xDomain):"linear"===this.scaleType?e=bo().range([0,this.dims.width]).domain(this.xDomain):"ordinal"===this.scaleType&&(e=mm().range([0,this.dims.width]).padding(.1).domain(this.xDomain)),e}addBrush(){if(this.brush)return;const e=this.height,i=this.view[0];this.brush=function qje(){return gI(e2)}().extent([[0,0],[i,e]]).on("brush end",()=>{const o=(Vr.selection||this.xScale.range()).map(this.xScale.invert);this.onDomainChange.emit(o),this.cd.markForCheck()}),va(this.element).select(".brush").call(this.brush)}updateBrush(){this.brush&&(this.brush.extent([[0,0],[this.view[0],this.height]]),va(this.element).select(".brush").call(this.brush),va(this.element).select(".selection").attr("fill",void 0).attr("stroke",void 0).attr("fill-opacity",void 0),this.cd.markForCheck())}getDims(){return{width:this.view[0],height:this.height}}}return t.\u0275fac=function(e){return new(e||t)(le(ti),le(qo))},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-timeline",""]],inputs:{height:"height",view:"view",state:"state",results:"results",scheme:"scheme",customColors:"customColors",legend:"legend",miniChart:"miniChart",autoScale:"autoScale",scaleType:"scaleType"},outputs:{select:"select",onDomainChange:"onDomainChange"},features:[Hn],attrs:F5e,ngContentSelectors:QG,decls:7,vars:4,consts:[[1,"timeline"],["in","SourceGraphic","type","matrix","values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"],[1,"embedded-chart"],["x","0","y","0",1,"brush-background"],[1,"brush"]],template:function(e,i){1&e&&(Cu(),at(),b(0,"g",0)(1,"filter"),ge(2,"feColorMatrix",1),x(),b(3,"g",2),ku(4),x(),ge(5,"rect",3)(6,"g",4),x()),2&e&&(ht("transform",i.transform),w(1),ht("id",i.filterId),w(4),ht("width",i.view[0])("height",i.height))},styles:[".timeline .brush-background{fill:rgba(0,0,0,.05)}.timeline .brush .selection{fill:rgba(0,0,0,.1);stroke:#888;stroke-width:1px}.timeline .brush .handle{fill-opacity:0}.timeline .embedded-chart{opacity:.6}"],encapsulation:2,changeDetection:0}),t})(),vW=(()=>{class t{constructor(e){this.cd=e,this.horizontal=!1,this.labelClick=new Ke,this.labelActivate=new Ke,this.labelDeactivate=new Ke,this.legendEntries=[]}ngOnChanges(e){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const e=[];for(const i of this.data){const r=Ra(i);-1===e.findIndex(s=>s.label===r)&&e.push({label:i,formattedLabel:r,color:this.colors.getColor(i)})}return e}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(r=>e.label===r.name)}activate(e){this.labelActivate.emit(e)}deactivate(e){this.labelDeactivate.emit(e)}trackBy(e,i){return i.label}}return t.\u0275fac=function(e){return new(e||t)(le(qo))},t.\u0275cmp=Rt({type:t,selectors:[["ngx-charts-legend"]],inputs:{horizontal:"horizontal",data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[Hn],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(e,i){1&e&&(b(0,"div"),J(1,N5e,3,1,"header",0),b(2,"div",1)(3,"ul",2),J(4,O5e,2,4,"li",3),x()()()),2&e&&(rr("width",i.width,"px"),w(1),k("ngIf",(null==i.title?null:i.title.length)>0),w(2),rr("max-height",i.height-45,"px"),Mn("horizontal-legend",i.horizontal),w(1),k("ngForOf",i.legendEntries)("ngForTrackBy",i.trackBy))},dependencies:function(){return[jn,gn,yW]},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{font-size:14px;font-weight:700;margin-bottom:5px;margin-left:10px;overflow:hidden;white-space:nowrap}.chart-legend li,.chart-legend ul{list-style:none;margin:0;padding:0}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{background:rgba(0,0,0,.05);border-radius:3px;float:left;line-height:85%;list-style:none;overflow-x:hidden;overflow-y:auto;text-align:left;white-space:nowrap;width:100%}.chart-legend .legend-label{color:#afb7c8;cursor:pointer;font-size:90%;margin:8px}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{border-radius:3px;color:#5b646b;display:inline-block;height:15px;margin-right:5px;width:15px}.chart-legend .legend-label-text{font-size:12px;line-height:15px;vertical-align:top;width:calc(100% - 20px)}.chart-legend .legend-label-text,.chart-legend .legend-title-text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-legend .legend-title-text{line-height:16px;vertical-align:bottom}"],encapsulation:2,changeDetection:0}),t})(),yW=(()=>{class t{constructor(){this.isActive=!1,this.select=new Ke,this.activate=new Ke,this.deactivate=new Ke,this.toggle=new Ke}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(e,i){1&e&&ye("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(e,i){1&e&&(b(0,"span",0),ye("click",function(){return i.select.emit(i.formattedLabel)}),b(1,"span",1),ye("click",function(){return i.toggle.emit(i.formattedLabel)}),x(),b(2,"span",2),I(3),x()()),2&e&&(Mn("active",i.isActive),k("title",i.formattedLabel),w(1),rr("background-color",i.color),w(2),xn(" ",i.trimmedLabel," "))},encapsulation:2,changeDetection:0}),t})(),bW=(()=>{class t{constructor(e){this.sanitizer=e,this.horizontal=!1}ngOnChanges(e){const i=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle(`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${i})`)}gradientString(e,i){i.push(1);const r=[];return e.reverse().forEach((o,s)=>{r.push(`${o} ${Math.round(100*i[s])}%`)}),r.join(", ")}}return t.\u0275fac=function(e){return new(e||t)(le(ZB))},t.\u0275cmp=Rt({type:t,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[Hn],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(e,i){1&e&&(b(0,"div",0)(1,"div",1)(2,"span"),I(3),x()(),ge(4,"div",2),b(5,"div",1)(6,"span"),I(7),x()()()),2&e&&(rr("height",i.horizontal?void 0:i.height,"px")("width",i.width,"px"),Mn("horizontal-legend",i.horizontal),w(3),Dt(i.valueRange[1].toLocaleString()),w(1),rr("background",i.gradient),w(3),Dt(i.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{display:flex;flex-direction:column;text-align:center}.chart-legend .scale-legend-wrap{border-radius:5px;display:inline-block;flex:1;margin:0 auto;width:30px}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{height:30px;margin:0 16px;width:auto}"],encapsulation:2,changeDetection:0}),t})(),Vu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vs,cW,uW,Vs,cW,uW]}),t})();let xW=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class vs{constructor(n,e,i,r){"string"==typeof n&&(n=xW.find(o=>o.name===n)),this.colorDomain=n.domain,this.scaleType=e,this.domain=i,this.customColors=r,this.scale=this.generateColorScheme(n,e,this.domain)}generateColorScheme(n,e,i){let r;if("string"==typeof n&&(n=xW.find(o=>o.name===n)),"quantile"===e)r=jG().range(n.domain).domain(i);else if("ordinal"===e)r=PI().range(n.domain).domain(i);else if("linear"===e){const o=[...n.domain];1===o.length&&(o.push(o[0]),this.colorDomain=o);const s=FG(0,1,1/o.length);r=bo().domain(s).range(o)}return r}getColor(n){if(null==n)throw new Error("Value can not be null");if("linear"===this.scaleType){const e=bo().domain(this.domain).range([0,1]);return this.scale(e(n))}{if("function"==typeof this.customColors)return this.customColors(n);const e=n.toString();let i;return this.customColors&&this.customColors.length>0&&(i=this.customColors.find(r=>r.name.toLowerCase()===e.toLowerCase())),i?i.value:this.scale(n)}}getLinearGradientStops(n,e){void 0===e&&(e=this.domain[0]);const i=bo().domain(this.domain).range([0,1]),r=La().domain(this.colorDomain).range([0,1]),o=this.getColor(n),s=i(e),a=this.getColor(e),l=i(n);let c=1,u=s;const d=[];for(d.push({color:a,offset:s,originalOffset:s,opacity:1});u=(l-r.bandwidth()).toFixed(4))break;d.push({color:h,offset:f,opacity:1}),u=f,c++}}if(d[d.length-1].offset<100&&d.push({color:o,offset:l,opacity:1}),l===s)d[0].offset=0,d[1].offset=100;else if(100!==d[d.length-1].offset)for(const h of d)h.offset=(h.offset-s)/(l-s)*100;return d}}let f$e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu]}),t})(),CW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu]}),t})(),m$e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu]}),t})(),y$e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu]}),t})(),DW=(()=>{class t{constructor(e){this.element=e,this.fill="none",this.animations=!0,this.select=new Ke,this.initialized=!1}ngOnChanges(e){this.initialized?this.updatePathEl():(this.initialized=!0,this.initialPath=this.path)}updatePathEl(){const e=va(this.element.nativeElement).select(".line");this.animations?e.transition().duration(750).attr("d",this.path):e.attr("d",this.path)}}return t.\u0275fac=function(e){return new(e||t)(le(ti))},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-line",""]],inputs:{fill:"fill",animations:"animations",path:"path",stroke:"stroke",data:"data"},outputs:{select:"select"},features:[Hn],attrs:n6e,decls:1,vars:4,consts:[["stroke-width","1.5px",1,"line"]],template:function(e,i){1&e&&(at(),ge(0,"path",0)),2&e&&(k("@animationState","active"),ht("d",i.initialPath)("fill",i.fill)("stroke",i.stroke))},encapsulation:2,data:{animation:[il("animationState",[Ia(":enter",[Dr({strokeDasharray:2e3,strokeDashoffset:2e3}),Ma(1e3,Dr({strokeDashoffset:0}))])])]},changeDetection:0}),t})(),b$e=(()=>{class t extends ss{constructor(){super(...arguments),this.legendTitle="Legend",this.legendPosition="right",this.showGridLines=!0,this.curve=gm,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.showRefLines=!1,this.showRefLabels=!0,this.activate=new Ke,this.deactivate=new Ke,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.timelineHeight=50,this.timelinePadding=10}update(){super.update(),this.dims=function gs({width:t,height:n,margins:e,showXAxis:i=!1,showYAxis:r=!1,xAxisHeight:o=0,yAxisWidth:s=0,showXLabel:a=!1,showYLabel:l=!1,showLegend:c=!1,legendType:u="ordinal",legendPosition:d="right",columns:h=12}){let f=e[3],p=t,m=n-e[0]-e[2];return c&&"right"===d&&(h-="ordinal"===u?2:1),p=p*h/12,p=p-e[1]-e[3],i&&(m-=5,m-=o,a&&(m-=30)),r&&(p-=5,p-=s,f+=s,f+=10,l&&(p-=30,f+=30)),p=Math.max(0,p),m=Math.max(0,m),{width:Math.floor(p),height:Math.floor(m),xOffset:Math.floor(f)}}({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height),this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`,this.clipPathId="clip"+Al().toString(),this.clipPath=`url(#${this.clipPathId})`}updateTimeline(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform=`translate(${this.dims.xOffset}, ${-this.margin[2]})`)}getXDomain(){let e=function b2(t){const n=new Set;for(const e of t)for(const i of e.series)n.add(i.name);return Array.from(n)}(this.results);this.scaleType=function Bf(t,n=!0){return n&&t.every(r=>r instanceof Date)?"time":t.every(i=>"number"==typeof i)?"linear":"ordinal"}(e);let r,o,i=[];return"linear"===this.scaleType&&(e=e.map(s=>Number(s))),("time"===this.scaleType||"linear"===this.scaleType)&&(r=this.xScaleMin?this.xScaleMin:Math.min(...e),o=this.xScaleMax?this.xScaleMax:Math.max(...e)),"time"===this.scaleType?(i=[new Date(r),new Date(o)],this.xSet=[...e].sort((s,a)=>{const l=s.getTime(),c=a.getTime();return l>c?1:c>l?-1:0})):"linear"===this.scaleType?(i=[r,o],this.xSet=[...e].sort((s,a)=>s-a)):(i=e,this.xSet=e),i}getYDomain(){const e=[];for(const s of this.results)for(const a of s.series)e.indexOf(a.value)<0&&e.push(a.value),void 0!==a.min&&(this.hasRange=!0,e.indexOf(a.min)<0&&e.push(a.min)),void 0!==a.max&&(this.hasRange=!0,e.indexOf(a.max)<0&&e.push(a.max));const i=[...e];return this.autoScale||i.push(0),[this.yScaleMin?this.yScaleMin:Math.min(...i),this.yScaleMax?this.yScaleMax:Math.max(...i)]}getSeriesDomain(){return this.results.map(e=>e.name)}getXScale(e,i){let r;return"time"===this.scaleType?r=pm().range([0,i]).domain(e):"linear"===this.scaleType?(r=bo().range([0,i]).domain(e),this.roundDomains&&(r=r.nice())):"ordinal"===this.scaleType&&(r=mm().range([0,i]).padding(.1).domain(e)),r}getYScale(e,i){const r=bo().range([i,0]).domain(e);return this.roundDomains?r.nice():r}updateDomain(e){this.filteredDomain=e,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)}updateHoveredVertical(e){this.hoveredVertical=e.value,this.deactivateAll()}hideCircles(){this.hoveredVertical=null,this.deactivateAll()}onClick(e){this.select.emit(e)}trackBy(e,i){return i.name}setColors(){let e;e="ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.colors=new vs(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===e.scaleType?(e.domain=this.seriesDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.yDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onActivate(e){this.deactivateAll(),!(this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value)>-1)&&(this.activeEntries=[e],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const e of this.activeEntries)this.deactivate.emit({value:e,entries:[]});this.activeEntries=[]}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ji(t)))(i||t)}}(),t.\u0275cmp=Rt({type:t,selectors:[["ngx-charts-line-chart"]],contentQueries:function(e,i,r){if(1&e&&(ni(r,Us,5),ni(r,p2,5)),2&e){let o;cn(o=un())&&(i.tooltipTemplate=o.first),cn(o=un())&&(i.seriesTooltipTemplate=o.first)}},hostBindings:function(e,i){1&e&&ye("mouseleave",function(){return i.hideCircles()})},inputs:{legendTitle:"legendTitle",legendPosition:"legendPosition",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",showRefLines:"showRefLines",showRefLabels:"showRefLabels",legend:"legend",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",autoScale:"autoScale",timeline:"timeline",gradient:"gradient",schemeType:"schemeType",rangeFillOpacity:"rangeFillOpacity",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",referenceLines:"referenceLines",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",yScaleMin:"yScaleMin",yScaleMax:"yScaleMax"},outputs:{activate:"activate",deactivate:"deactivate"},features:[vi],decls:11,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"line-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","activeEntries","scaleType","curve","rangeFillOpacity","hasRange","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","tooltipDisabled","tooltipTemplate","hover"],[4,"ngFor","ngForOf"],["ngx-charts-circle-series","",3,"xScale","yScale","colors","data","scaleType","visibleValue","activeEntries","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","scaleType","curve","hasRange","animations"]],template:function(e,i){1&e&&(b(0,"ngx-charts-chart",0),ye("legendLabelClick",function(o){return i.onClick(o)})("legendLabelActivate",function(o){return i.onActivate(o)})("legendLabelDeactivate",function(o){return i.onDeactivate(o)}),at(),b(1,"defs")(2,"clipPath"),ge(3,"rect"),x()(),b(4,"g",1),J(5,i6e,1,10,"g",2),J(6,r6e,1,12,"g",3),b(7,"g"),J(8,o6e,2,11,"g",4),J(9,a6e,3,9,"g",5),x()(),J(10,c6e,2,13,"g",6),x()),2&e&&(k("view",Sr(17,Eo,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),w(2),ht("id",i.clipPathId),w(1),ht("width",i.dims.width+10)("height",i.dims.height+10)("transform","translate(-5, -5)"),w(1),ht("transform",i.transform),w(1),k("ngIf",i.xAxis),w(1),k("ngIf",i.yAxis),w(1),ht("clip-path",i.clipPath),w(1),k("ngForOf",i.results)("ngForTrackBy",i.trackBy),w(1),k("ngIf",!i.tooltipDisabled),w(1),k("ngIf",i.timeline&&"ordinal"!=i.scaleType))},dependencies:function(){return[jn,gn,Wl,El,sb,os,ob,ab,_$e]},styles:[".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:none}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:none}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{opacity:.2;transition:opacity .1s ease-in-out}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{fill:none;stroke:#ddd;stroke-width:1}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-dasharray:5;stroke-dashoffset:5;stroke-width:1}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill:#000;fill-opacity:.05}.ngx-charts .gridline-path-dotted{fill:none;stroke:#ddd;stroke-dasharray:1,20;stroke-dashoffset:3;stroke-width:1}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}"],encapsulation:2,data:{animation:[il("animationState",[Ia(":leave",[Dr({opacity:1}),Ma(500,Dr({opacity:0}))])])]},changeDetection:0}),t})(),_$e=(()=>{class t{constructor(){this.animations=!0}ngOnChanges(e){this.update()}update(){this.updateGradients();const e=this.sortData(this.data.series),i=this.getLineGenerator();this.path=i(e)||"";const r=this.getAreaGenerator();if(this.areaPath=r(e)||"",this.hasRange){const o=this.getRangeGenerator();this.outerPath=o(e)||""}if(this.hasGradient){this.stroke=this.gradientUrl;const o=this.data.series.map(l=>l.value),s=Math.max(...o);s===Math.min(...o)&&(this.stroke=this.colors.getColor(s))}else this.stroke=this.colors.getColor(this.data.name)}getLineGenerator(){return c2().x(e=>{const i=e.name;let r;return r=this.xScale("time"===this.scaleType?i:"linear"===this.scaleType?Number(i):i),r}).y(e=>this.yScale(e.value)).curve(this.curve)}getRangeGenerator(){return Sv().x(e=>{const i=e.name;let r;return r=this.xScale("time"===this.scaleType?i:"linear"===this.scaleType?Number(i):i),r}).y0(e=>this.yScale("number"==typeof e.min?e.min:e.value)).y1(e=>this.yScale("number"==typeof e.max?e.max:e.value)).curve(this.curve)}getAreaGenerator(){return Sv().x(i=>this.xScale(i.name)).y0(()=>this.yScale.range()[0]).y1(i=>this.yScale(i.value)).curve(this.curve)}sortData(e){return"linear"===this.scaleType?function KI(t,n,e="asc"){return t.sort((i,r)=>"asc"===e?i[n]-r[n]:r[n]-i[n])}(e,"name"):"time"===this.scaleType?function ZI(t,n,e="asc"){return t.sort((i,r)=>{const o=i[n].getTime(),s=r[n].getTime();return"asc"===e?o>s?1:s>o?-1:0:o>s?-1:s>o?1:0})}(e,"name"):function QI(t,n,e="asc",i){return t.sort((r,o)=>{const a=o[n],l=i.indexOf(r[n]),c=i.indexOf(a);return"asc"===e?l-c:c-l})}(e,"name","asc",this.xScale.domain())}updateGradients(){if("linear"===this.colors.scaleType){this.hasGradient=!0,this.gradientId="grad"+Al().toString(),this.gradientUrl=`url(#${this.gradientId})`;const e=this.data.series.map(o=>o.value),i=Math.max(...e),r=Math.min(...e);this.gradientStops=this.colors.getLinearGradientStops(i,r),this.areaGradientStops=this.colors.getLinearGradientStops(i)}else this.hasGradient=!1,this.gradientStops=void 0,this.areaGradientStops=void 0}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(r=>e.name===r.name)}isInactive(e){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(r=>e.name===r.name)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Rt({type:t,selectors:[["g","ngx-charts-line-series",""]],inputs:{animations:"animations",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",curve:"curve",activeEntries:"activeEntries",rangeFillOpacity:"rangeFillOpacity",hasRange:"hasRange"},features:[Hn],attrs:u6e,decls:6,vars:22,consts:[["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops",4,"ngIf"],["ngx-charts-area","",1,"line-highlight",3,"data","path","fill","opacity","startOpacity","gradient","stops","animations"],["ngx-charts-line","",1,"line-series",3,"data","path","stroke","animations"],["ngx-charts-area","","class","line-series-range",3,"data","path","fill","active","inactive","opacity","animations",4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],["ngx-charts-area","",1,"line-series-range",3,"data","path","fill","opacity","animations"]],template:function(e,i){1&e&&(at(),b(0,"g")(1,"defs"),J(2,d6e,1,2,"g",0),x(),ge(3,"g",1)(4,"g",2),J(5,h6e,1,9,"g",3),x()),2&e&&(w(2),k("ngIf",i.hasGradient),w(1),Mn("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),k("data",i.data)("path",i.areaPath)("fill",i.hasGradient?i.gradientUrl:i.colors.getColor(i.data.name))("opacity",.25)("startOpacity",0)("gradient",!0)("stops",i.areaGradientStops)("animations",i.animations),w(1),Mn("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),k("data",i.data)("path",i.path)("stroke",i.stroke)("animations",i.animations),w(1),k("ngIf",i.hasRange))},dependencies:[gn,XI,bm,DW],encapsulation:2,changeDetection:0}),t})(),TW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu]}),t})();Math;let iF=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu]}),t})(),S$e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu,iF,TW]}),t})(),A$e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu]}),t})(),F$e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu]}),t})(),j$e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu,iF,CW]}),t})(),L$e=(()=>{class t{constructor(){!function P$e(){typeof SVGElement<"u"&&typeof SVGElement.prototype.contains>"u"&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({imports:[Vu,f$e,CW,m$e,y$e,TW,S$e,A$e,iF,F$e,j$e]}),t})();function R$e(t,n){if(1&t&&(b(0,"ngb-alert",19),ge(1,"img",20),b(2,"h6",21),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function $$e(t,n){1&t&&ge(0,"img",31)}function B$e(t,n){1&t&&ge(0,"img",32)}function V$e(t,n){1&t&&ge(0,"img",33)}function H$e(t,n){1&t&&ge(0,"img",34)}function z$e(t,n){if(1&t&&(b(0,"tr",24)(1,"td"),ta(2,25),J(3,$$e,1,0,"img",26),J(4,B$e,1,0,"img",27),J(5,V$e,1,0,"img",28),J(6,H$e,1,0,"img",29),na(),b(7,"span"),I(8),x()(),b(9,"td"),I(10),b(11,"span",30),I(12),x()(),b(13,"td"),I(14),b(15,"span",30),I(16),x()(),b(17,"td"),I(18),b(19,"span",30),I(20),x()(),b(21,"td"),I(22),b(23,"span",30),I(24),x()()()),2&t){const e=n.$implicit,i=j(2);w(2),k("ngSwitch",e.health),w(1),k("ngSwitchCase",0),w(1),k("ngSwitchCase",1),w(1),k("ngSwitchCase",2),w(1),k("ngSwitchCase",3),w(2),Dt(e.name),w(2),xn("",e.session_count," "),w(1),k("hidden",!i.showDelta),w(1),xn("(",i.getMaxSessionCount()-e.session_count," delta)"),w(2),xn("",e.presence_count," "),w(1),k("hidden",!i.showDelta),w(1),xn("(",i.getMaxPresenceCount()-e.presence_count," delta)"),w(2),xn("",e.match_count," "),w(1),k("hidden",!i.showDelta),w(1),xn("(",i.getMaxMatchCount()-e.match_count," delta)"),w(2),xn("",e.goroutine_count," "),w(1),k("hidden",!i.showDelta),w(1),xn("(",i.getMaxGoroutineCount()-e.goroutine_count," delta)")}}function U$e(t,n){if(1&t&&(b(0,"tbody"),J(1,z$e,25,18,"tr",22),b(2,"tr",3),ge(3,"td",23),b(4,"th",3),I(5),x(),b(6,"th",3),I(7),x(),b(8,"th",3),I(9),x(),b(10,"th",3),I(11),x()()()),2&t){const e=j();w(1),k("ngForOf",e.statusData.nodes),w(4),Dt(e.getTotalSessionCount()),w(2),Dt(e.getMaxPresenceCount()),w(2),Dt(e.getTotalMatchCount()),w(2),Dt(e.getTotalGorountineCount())}}function G$e(t,n){if(1&t&&(b(0,"option",35),I(1),x()),2&t){const e=n.$implicit,i=j();Nh("value",e),w(1),Dt(i.ranges[e])}}const w2=function(t){return{"background-color":t}};function W$e(t,n){if(1&t&&(b(0,"span"),ge(1,"br")(2,"span",41),b(3,"span",42),I(4),x()()),2&t){const e=n.$implicit;w(2),k("ngStyle",lr(3,w2,e.color)),w(2),Ld("",e.series,": ",e.value,"")}}function q$e(t,n){if(1&t&&(b(0,"div",39),I(1),J(2,W$e,5,5,"span",40),x()),2&t){const e=n.model;w(1),xn(" ",e[0].name.toLocaleString()," "),w(1),k("ngForOf",e)}}function X$e(t,n){if(1&t&&(b(0,"div",36)(1,"ngx-charts-line-chart",37),J(2,q$e,3,2,"ng-template",null,38,Ur),x()()),2&t){const e=j();w(1),k("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.latencyGraphData)}}function Y$e(t,n){if(1&t&&(b(0,"span"),ge(1,"br")(2,"span",41),b(3,"span",42),I(4),x()()),2&t){const e=n.$implicit;w(2),k("ngStyle",lr(3,w2,e.color)),w(2),Ld("",e.series,": ",e.value,"")}}function J$e(t,n){if(1&t&&(b(0,"div",39),I(1),J(2,Y$e,5,5,"span",40),x()),2&t){const e=n.model;w(1),xn(" ",e[0].name.toLocaleString()," "),w(1),k("ngForOf",e)}}function K$e(t,n){if(1&t&&(b(0,"div",36)(1,"ngx-charts-line-chart",43),J(2,J$e,3,2,"ng-template",null,38,Ur),x()()),2&t){const e=j();w(1),k("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.rateGraphData)}}function Q$e(t,n){if(1&t&&(b(0,"span"),ge(1,"br")(2,"span",41),b(3,"span",42),I(4),x()()),2&t){const e=n.$implicit;w(2),k("ngStyle",lr(3,w2,e.color)),w(2),Ld("",e.series,": ",e.value,"")}}function Z$e(t,n){if(1&t&&(b(0,"div",39),I(1),J(2,Q$e,5,5,"span",40),x()),2&t){const e=n.model;w(1),xn(" ",e[0].name.toLocaleString()," "),w(1),k("ngForOf",e)}}function eBe(t,n){if(1&t&&(b(0,"div",36)(1,"ngx-charts-line-chart",44),J(2,Z$e,3,2,"ng-template",null,38,Ur),x()()),2&t){const e=j();w(1),k("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.inputGraphData)}}function tBe(t,n){if(1&t&&(b(0,"span"),ge(1,"br")(2,"span",41),b(3,"span",42),I(4),x()()),2&t){const e=n.$implicit;w(2),k("ngStyle",lr(3,w2,e.color)),w(2),Ld("",e.series,": ",e.value,"")}}function nBe(t,n){if(1&t&&(b(0,"div",39),I(1),J(2,tBe,5,5,"span",40),x()),2&t){const e=n.model;w(1),xn(" ",e[0].name.toLocaleString()," "),w(1),k("ngForOf",e)}}function iBe(t,n){if(1&t&&(b(0,"div",36)(1,"ngx-charts-line-chart",45),J(2,nBe,3,2,"ng-template",null,38,Ur),x()()),2&t){const e=j();w(1),k("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.outputGraphData)}}let rBe=(()=>{class t{constructor(e,i,r){K(this,"route",void 0),K(this,"consoleService",void 0),K(this,"formBuilder",void 0),K(this,"error",""),K(this,"showDelta",!1),K(this,"statusData",void 0),K(this,"rateGraphData",[]),K(this,"latencyGraphData",[]),K(this,"inputGraphData",[]),K(this,"outputGraphData",[]),K(this,"rangeForm",void 0),K(this,"ranges",{1:"last 1 minute",10:"last 10 minutes",30:"last 30 minutes",60:"last 1 hour",1440:"last 24 hours"}),K(this,"rangesKeys",Object.keys(this.ranges).map(o=>+o)),K(this,"colorScheme",{domain:["#5AA454","#E44D25","#1e59cf","#7aa3e5","#a8385d","#d0bd00"]}),K(this,"samples",60),K(this,"refreshTimer",void 0),K(this,"$refreshTimer",void 0),this.route=e,this.consoleService=i,this.formBuilder=r}ngOnInit(){this.rangeForm=this.formBuilder.group({rangeMinutes:[10]}),this.route.data.subscribe(e=>{this.initData(e[0]),this.refresh(),this.refreshTimer=av(0,1e3*this.getPeriod()),this.$refreshTimer=this.refreshTimer.subscribe(r=>this.refresh())},e=>{this.error=e})}refresh(){this.consoleService.getStatus("").subscribe(e=>{this.statusData=e,this.rateGraphData=this.updateData(this.rateGraphData,"avg_rate_sec",e),this.latencyGraphData=this.updateData(this.latencyGraphData,"avg_latency_ms",e),this.inputGraphData=this.updateData(this.inputGraphData,"avg_input_kbs",e),this.outputGraphData=this.updateData(this.outputGraphData,"avg_output_kbs",e)})}generateSeries(){let e=new Date;e.setMilliseconds(0);const i=[];for(let r=0;r({name:r,value:0}))}initData(e){const i=this.generateSeries();this.latencyGraphData=e.map(r=>({name:r,series:i})),this.rateGraphData=e.map(r=>({name:r,series:i})),this.inputGraphData=e.map(r=>({name:r,series:i})),this.outputGraphData=e.map(r=>({name:r,series:i}))}updateData(e,i,r){const o=r.nodes,s=[],a=r.timestamp,l=e.map(d=>d.name),c=o.map(d=>d.name),u=this.diff(l,c);for(const d of e)u.includes(d.name)&&s.push({name:d.name,series:this.shiftData(d.series,0,a)});for(const d of o){let h=[],f={};const p=e.find(m=>m.name===d.name)?.series;h=this.shiftData(p||this.generateSeries(),d[i],a),f={name:d.name,series:h},s.push(f)}return s}shiftData(e,i,r){const o=e.slice(1);return o.push({name:new Date(r),value:i}),o}getPeriod(){return Math.floor(60*this.f.rangeMinutes.value/this.samples)}setRange(e){this.rangeForm.reset({rangeMinutes:+e.target.value}),this.reset()}reset(){this.consoleService.getStatus("").subscribe(e=>{this.initData(e.nodes.map(i=>i.name)),this.$refreshTimer?.unsubscribe(),this.refreshTimer=av(0,1e3*this.getPeriod()),this.$refreshTimer=this.refreshTimer.subscribe(i=>this.refresh())},e=>{this.error=e})}diff(e,i){const r=new Set(e);for(const o of i)r.delete(o);return Array.from(r)}get f(){return this.rangeForm.controls}ngOnDestroy(){this.$refreshTimer.unsubscribe()}getTotalSessionCount(){return this.statusData.nodes.reduce((e,i)=>e+i.session_count,0)}getMaxSessionCount(){return Math.max(...this.statusData.nodes.map(e=>e.session_count))}getMaxPresenceCount(){return Math.max(...this.statusData.nodes.map(e=>e.presence_count))}getMaxMatchCount(){return Math.max(...this.statusData.nodes.map(e=>e.match_count))}getTotalMatchCount(){return this.statusData.nodes.reduce((e,i)=>e+i.match_count,0)}getMaxGoroutineCount(){return Math.max(...this.statusData.nodes.map(e=>e.goroutine_count))}getTotalGorountineCount(){return this.statusData.nodes.reduce((e,i)=>e+i.goroutine_count,0)}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(xi),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["app-status"]],decls:62,vars:10,consts:[[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],[1,"status-table","table","table-sm","table-striped","mb-4",3,"mouseover","mouseout"],[1,"thead-light"],["scope","col"],[4,"ngIf"],[3,"formGroup"],[1,"row","no-gutters","justify-content-end"],[1,"col-12","text-right"],["ngbDropdown","","role","group",1,"btn-group"],["formControlName","rangeMinutes",1,"custom-select","custom-select-sm","ml-3",3,"change"],[3,"value",4,"ngFor","ngForOf"],[1,"row"],[1,"col-6","d-inline-flex","justify-content-between","align-items-center"],[1,"graph-title"],[1,"d-inline"],[1,"col-6"],["class","graph",4,"ngIf"],[1,"row","mt-4"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["class","clickable",4,"ngFor","ngForOf"],[1,"border-0"],[1,"clickable"],[3,"ngSwitch"],["class","mr-2","src","/static/svg/green-tick.svg","alt","","width","15","height","","ngbTooltip","OK",4,"ngSwitchCase"],["class","mr-2","src","/static/svg/red-triangle.svg","alt","","width","15","height","","ngbTooltip","Error",4,"ngSwitchCase"],["class","mr-2","src","/static/blue-spinner.svg","alt","","width","15","height","","ngbTooltip","Connecting",4,"ngSwitchCase"],["class","mr-2","src","/static/red-spinner.svg","alt","","width","15","height","","ngbTooltip","Disconnecting",4,"ngSwitchCase"],[1,"text-muted","small",3,"hidden"],["src","/static/svg/green-tick.svg","alt","","width","15","height","","ngbTooltip","OK",1,"mr-2"],["src","/static/svg/red-triangle.svg","alt","","width","15","height","","ngbTooltip","Error",1,"mr-2"],["src","/static/blue-spinner.svg","alt","","width","15","height","","ngbTooltip","Connecting",1,"mr-2"],["src","/static/red-spinner.svg","alt","","width","15","height","","ngbTooltip","Disconnecting",1,"mr-2"],[3,"value"],[1,"graph"],["xAxisLabel","Time","yAxisLabel","Latency (ms)",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"],["seriesTooltipTemplate",""],[1,"chart-legend"],[4,"ngFor","ngForOf"],[1,"legend-label-color",3,"ngStyle"],[1,"legend-label-text"],["xAxisLabel","Time","yAxisLabel","Request Count",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"],["xAxisLabel","Time","yAxisLabel","Input (kb/s)",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"],["xAxisLabel","Time","yAxisLabel","Output (kb/s)",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"Status"),x(),J(2,R$e,4,2,"ngb-alert",1),b(3,"table",2),ye("mouseover",function(){return i.showDelta=!0})("mouseout",function(){return i.showDelta=!1}),b(4,"thead",3)(5,"tr")(6,"th",4),I(7,"Node name"),x(),b(8,"th",4),I(9,"Sessions"),x(),b(10,"th",4),I(11,"Presences"),x(),b(12,"th",4),I(13,"Authoritative Matches"),x(),b(14,"th",4),I(15,"Goroutines"),x()()(),J(16,U$e,12,5,"tbody",5),x(),b(17,"form",6)(18,"div",7)(19,"div",8)(20,"span"),I(21,"View:"),x(),b(22,"div",9)(23,"select",10),ye("change",function(o){return i.setRange(o)}),J(24,G$e,2,2,"option",11),function qE(t,n){const e=Pr();let i;const r=t+Bo;e.firstCreatePass?(i=function R_e(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=Ap(i.type)),s=Pc(le);try{const a=ux(!1),l=o();return ux(a),function Lye(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,Gt(),r,l),l}finally{Pc(s)}}(25,"sortNumbers"),x()()()()(),b(26,"div",12)(27,"div",13)(28,"div",14)(29,"h5",15),I(30,"Processing Latency"),x(),b(31,"small"),I(32," (ms)"),x()()(),b(33,"div",13)(34,"div",14)(35,"h5",15),I(36,"Rate"),x(),b(37,"small"),I(38," (rpc/s)"),x()()()(),b(39,"div",12)(40,"div",16),J(41,X$e,4,12,"div",17),x(),b(42,"div",16),J(43,K$e,4,12,"div",17),x()(),b(44,"div",18)(45,"div",13)(46,"div",14)(47,"h5",15),I(48,"Input"),x(),b(49,"small"),I(50," (kb/s)"),x()()(),b(51,"div",13)(52,"div",14)(53,"h5",15),I(54,"Output"),x(),b(55,"small"),I(56," (kb/s)"),x()()()(),b(57,"div",12)(58,"div",16),J(59,eBe,4,12,"div",17),x(),b(60,"div",16),J(61,iBe,4,12,"div",17),x()()),2&e&&(w(2),k("ngIf",i.error),w(14),k("ngIf",i.statusData),w(1),k("formGroup",i.rangeForm),w(7),k("ngForOf",XE(25,8,i.rangesKeys)),w(17),k("ngIf",i.latencyGraphData.length>0),w(2),k("ngIf",i.rateGraphData.length>0),w(16),k("ngIf",i.inputGraphData.length>0),w(2),k("ngIf",i.outputGraphData.length>0))},dependencies:function(){return[jn,gn,wB,dw,_B,To,Pu,tNe,b$e,sl,xy,wy,ov,rl,ol,fa,ja,sBe]},styles:[".graph[_ngcontent-%COMP%]{height:450px;border-radius:5px;border:solid 1px #dadae9}.graph-title[_ngcontent-%COMP%]{padding:.5rem .5rem .5rem 0}.table[_ngcontent-%COMP%]{table-layout:fixed}h4[_ngcontent-%COMP%]{margin-bottom:0}.status-table[_ngcontent-%COMP%]{empty-cells:hide}.status-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fff}.status-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:solid 1px #dadae9;padding:.6em 1em;font-weight:500}.status-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:solid 1px #dadae9;padding:.6em 1em}.status-table[_ngcontent-%COMP%] .total-row[_ngcontent-%COMP%]{border:solid 2px #dadae9;background-color:#f5f5f5}.status-table[_ngcontent-%COMP%] .total-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:solid 2px #dadae9}"]})),t})(),oBe=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.getStatus("").pipe(nt(r=>$n(r.nodes.map(o=>o.name)))).pipe(Ul(r=>(e.data={...e.data,error:r},$n([]))))}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})(),sBe=(()=>{class t{transform(e){return e.sort((i,r)=>i-r)}}return K(t,"\u0275fac",function(e){return new(e||t)}),K(t,"\u0275pipe",gl({name:"sortNumbers",type:t,pure:!1})),t})();var aBe=De(870),rF=De(327);const lBe=["fileSelector"];function cBe(t,n){if(1&t&&(b(0,"div",8),I(1),x()),2&t){const e=j(2);w(1),Dt(e.dropZoneLabel)}}function uBe(t,n){if(1&t){const e=vt();b(0,"div")(1,"input",9),ye("click",function(r){return $e(e),Be(j(2).openFileSelector(r))}),x()()}if(2&t){const e=j(2);w(1),Nh("value",e.browseBtnLabel),k("className",e.browseBtnClassName)}}function dBe(t,n){if(1&t&&(J(0,cBe,2,1,"div",6),J(1,uBe,2,2,"div",7)),2&t){const e=j();k("ngIf",e.dropZoneLabel),w(1),k("ngIf",e.showBrowseBtn)}}function hBe(t,n){}const fBe=function(t){return{openFileSelector:t}};class C2{constructor(n,e){this.relativePath=n,this.fileEntry=e}}let OW=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(le(Si))},t.\u0275dir=Zt({type:t,selectors:[["","ngx-file-drop-content-tmp",""]]}),t})(),jW=(()=>{class t{constructor(e,i){this.zone=e,this.renderer=i,this.accept="*",this.directory=!1,this.multiple=!0,this.dropZoneLabel="",this.dropZoneClassName="ngx-file-drop__drop-zone",this.useDragEnter=!1,this.contentClassName="ngx-file-drop__content",this.showBrowseBtn=!1,this.browseBtnClassName="btn btn-primary btn-xs ngx-file-drop__browse-btn",this.browseBtnLabel="Browse files",this.onFileDrop=new Ke,this.onFileOver=new Ke,this.onFileLeave=new Ke,this.isDraggingOverDropZone=!1,this.globalDraggingInProgress=!1,this.files=[],this.numOfActiveReadEntries=0,this.helperFormEl=null,this.fileInputPlaceholderEl=null,this.dropEventTimerSubscription=null,this._disabled=!1,this.openFileSelector=r=>{this.fileSelector&&this.fileSelector.nativeElement&&this.fileSelector.nativeElement.click()},this.globalDragStartListener=this.renderer.listen("document","dragstart",r=>{this.globalDraggingInProgress=!0}),this.globalDragEndListener=this.renderer.listen("document","dragend",r=>{this.globalDraggingInProgress=!1})}get disabled(){return this._disabled}set disabled(e){this._disabled=null!=e&&"false"!=`${e}`}ngOnDestroy(){this.dropEventTimerSubscription&&(this.dropEventTimerSubscription.unsubscribe(),this.dropEventTimerSubscription=null),this.globalDragStartListener(),this.globalDragEndListener(),this.files=[],this.helperFormEl=null,this.fileInputPlaceholderEl=null}onDragOver(e){this.useDragEnter?(this.preventAndStop(e),e.dataTransfer&&(e.dataTransfer.dropEffect="copy")):!this.isDropzoneDisabled()&&!this.useDragEnter&&e.dataTransfer&&(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(e)),this.preventAndStop(e),e.dataTransfer.dropEffect="copy")}onDragEnter(e){!this.isDropzoneDisabled()&&this.useDragEnter&&(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(e)),this.preventAndStop(e))}onDragLeave(e){this.isDropzoneDisabled()||(this.isDraggingOverDropZone&&(this.isDraggingOverDropZone=!1,this.onFileLeave.emit(e)),this.preventAndStop(e))}dropFiles(e){if(!this.isDropzoneDisabled()&&(this.isDraggingOverDropZone=!1,e.dataTransfer)){let i;i=e.dataTransfer.items?e.dataTransfer.items:e.dataTransfer.files,this.preventAndStop(e),this.checkFiles(i)}}uploadFiles(e){!this.isDropzoneDisabled()&&e.target&&(this.checkFiles(e.target.files||[]),this.resetFileInput())}checkFiles(e){for(let i=0;il(r)},a=new C2(s.name,s);this.addToQueue(a)}}this.dropEventTimerSubscription&&this.dropEventTimerSubscription.unsubscribe(),this.dropEventTimerSubscription=av(200,200).subscribe(()=>{if(this.files.length>0&&0===this.numOfActiveReadEntries){const i=this.files;this.files=[],this.onFileDrop.emit(i)}})}traverseFileTree(e,i){if(e.isFile){const r=new C2(i,e);this.files.push(r)}else{i+="/";const r=e.createReader();let o=[];const s=()=>{this.numOfActiveReadEntries++,r.readEntries(a=>{if(a.length)o=o.concat(a),s();else if(0===o.length){const l=new C2(i,e);this.zone.run(()=>{this.addToQueue(l)})}else for(let l=0;l{this.traverseFileTree(o[l],i+o[l].name)});this.numOfActiveReadEntries--})};s()}}resetFileInput(){if(this.fileSelector&&this.fileSelector.nativeElement){const e=this.fileSelector.nativeElement,i=e.parentElement,r=this.getHelperFormElement(),o=this.getFileInputPlaceholderElement();i!==r&&(this.renderer.insertBefore(i,o,e),this.renderer.appendChild(r,e),r.reset(),this.renderer.insertBefore(i,e,o),this.renderer.removeChild(i,o))}}getHelperFormElement(){return this.helperFormEl||(this.helperFormEl=this.renderer.createElement("form")),this.helperFormEl}getFileInputPlaceholderElement(){return this.fileInputPlaceholderEl||(this.fileInputPlaceholderEl=this.renderer.createElement("div")),this.fileInputPlaceholderEl}canGetAsEntry(e){return!!e.webkitGetAsEntry}isDropzoneDisabled(){return this.globalDraggingInProgress||this.disabled}addToQueue(e){this.files.push(e)}preventAndStop(e){e.stopPropagation(),e.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(le(Wi),le(Ss))},t.\u0275cmp=Rt({type:t,selectors:[["ngx-file-drop"]],contentQueries:function(e,i,r){if(1&e&&ni(r,OW,5,Si),2&e){let o;cn(o=un())&&(i.contentTemplate=o.first)}},viewQuery:function(e,i){if(1&e&&io(lBe,7),2&e){let r;cn(r=un())&&(i.fileSelector=r.first)}},inputs:{accept:"accept",directory:"directory",multiple:"multiple",dropZoneLabel:"dropZoneLabel",dropZoneClassName:"dropZoneClassName",useDragEnter:"useDragEnter",contentClassName:"contentClassName",showBrowseBtn:"showBrowseBtn",browseBtnClassName:"browseBtnClassName",browseBtnLabel:"browseBtnLabel",disabled:"disabled"},outputs:{onFileDrop:"onFileDrop",onFileOver:"onFileOver",onFileLeave:"onFileLeave"},decls:7,vars:15,consts:[[3,"className","drop","dragover","dragenter","dragleave"],[3,"className"],["type","file",1,"ngx-file-drop__file-input",3,"accept","multiple","change"],["fileSelector",""],["defaultContentTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ngx-file-drop__drop-zone-label",4,"ngIf"],[4,"ngIf"],[1,"ngx-file-drop__drop-zone-label"],["type","button",3,"className","value","click"]],template:function(e,i){if(1&e&&(b(0,"div",0),ye("drop",function(o){return i.dropFiles(o)})("dragover",function(o){return i.onDragOver(o)})("dragenter",function(o){return i.onDragEnter(o)})("dragleave",function(o){return i.onDragLeave(o)}),b(1,"div",1)(2,"input",2,3),ye("change",function(o){return i.uploadFiles(o)}),x(),J(4,dBe,2,2,"ng-template",null,4,Ur),J(6,hBe,0,0,"ng-template",5),x()()),2&e){const r=uo(5);Mn("ngx-file-drop__drop-zone--over",i.isDraggingOverDropZone),k("className",i.dropZoneClassName),w(1),k("className",i.contentClassName),w(1),k("accept",i.accept)("multiple",i.multiple),ht("directory",i.directory||void 0)("webkitdirectory",i.directory||void 0)("mozdirectory",i.directory||void 0)("msdirectory",i.directory||void 0)("odirectory",i.directory||void 0),w(4),k("ngTemplateOutlet",i.contentTemplate||r)("ngTemplateOutletContext",lr(13,fBe,i.openFileSelector))}},dependencies:[gn,kl],styles:[".ngx-file-drop__drop-zone[_ngcontent-%COMP%]{border:2px dotted #0782d0;border-radius:30px;height:100px;margin:auto}.ngx-file-drop__drop-zone--over[_ngcontent-%COMP%]{background-color:hsla(0,0%,57.6%,.5)}.ngx-file-drop__content[_ngcontent-%COMP%]{align-items:center;color:#0782d0;display:flex;height:100px;justify-content:center}.ngx-file-drop__drop-zone-label[_ngcontent-%COMP%]{text-align:center}.ngx-file-drop__file-input[_ngcontent-%COMP%]{display:none}"]}),t})(),pBe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t,bootstrap:function(){return[jW]}}),t.\u0275inj=Ci({imports:[Vs]}),t})();function mBe(t,n){1&t&&(b(0,"ngb-alert",22),ge(1,"img",23),b(2,"h6",24),I(3,"Failed to retrieve configuration."),x()()),2&t&&k("dismissible",!1)}function gBe(t,n){if(1&t&&(b(0,"span",33),I(1),x()),2&t){const e=j(2).$implicit;k("id",e.name),w(1),Dt(e.value)}}function vBe(t,n){1&t&&(b(0,"span",34),I(1,"(empty)"),x()),2&t&&k("id",j(2).$implicit.name)}function yBe(t,n){if(1&t&&(b(0,"div",35)(1,"b"),I(2),x(),b(3,"label",27)(4,"a",28),ge(5,"img",10),x()()()),2&t){const e=j(2).index,i=j();w(2),Dt(i.flatConfig[e+1].name),w(1),k("for",i.flatConfig[e+1].name),w(1),$p("href","https://heroiclabs.com/docs/install-configuration/#",i.flatConfig[e+1].name,"",y1)}}function bBe(t,n){if(1&t&&(b(0,"span",33),I(1),x()),2&t){const e=j(3).index,i=j();k("id",i.flatConfig[e+1].name),w(1),Dt(i.flatConfig[e+1].value)}}function _Be(t,n){if(1&t&&(b(0,"span",34),I(1,"(empty)"),x()),2&t){const e=j(3).index;k("id",j().flatConfig[e+1].name)}}function xBe(t,n){if(1&t&&(b(0,"div",36),J(1,bBe,2,2,"span",29),J(2,_Be,2,1,"span",30),x()),2&t){const e=j(2).index,i=j();w(1),k("ngIf",!i.isEmpty(i.flatConfig[e+1].value)),w(1),k("ngIf",i.isEmpty(i.flatConfig[e+1].value))}}function wBe(t,n){if(1&t&&(b(0,"div",26)(1,"div",7)(2,"b"),I(3),x(),b(4,"label",27)(5,"a",28),ge(6,"img",10),x()()(),b(7,"div",7),J(8,gBe,2,2,"span",29),J(9,vBe,2,1,"span",30),x(),J(10,yBe,6,3,"div",31),J(11,xBe,3,2,"div",32),x()),2&t){const e=j(),i=e.index,r=e.$implicit,o=j();Mn("border-top-0",i>0),w(3),Dt(r.name),w(1),k("for",r.name),w(1),$p("href","https://heroiclabs.com/docs/install-configuration/#",r.value.name,"",y1),w(3),k("ngIf",!o.isEmpty(r.value)),w(1),k("ngIf",o.isEmpty(r.value)),w(1),k("ngIf",i{class t{constructor(e,i,r,o,s,a){K(this,"config",void 0),K(this,"route",void 0),K(this,"httpClient",void 0),K(this,"modalService",void 0),K(this,"consoleService",void 0),K(this,"formBuilder",void 0),K(this,"configError",""),K(this,"uploadError",""),K(this,"deleteError",""),K(this,"jsonConfig",void 0),K(this,"flatConfig",void 0),K(this,"nakamaVersion",void 0),K(this,"file",void 0),K(this,"uploading",!1),K(this,"uploadSuccess",!1),K(this,"deleteSuccess",!1),K(this,"deleting",!1),K(this,"confirmDeleteForm",void 0),K(this,"apiConfig",void 0),this.config=e,this.route=i,this.httpClient=r,this.modalService=o,this.consoleService=s,this.formBuilder=a,this.apiConfig=e}ngOnInit(){this.route.data.subscribe(e=>{this.nakamaVersion=e[0].server_version;const i=JSON.parse(e[0].config);this.jsonConfig=i,this.flatConfig=this.flattenConfig(i)},e=>{this.configError=e}),this.confirmDeleteForm=this.formBuilder.group({delete:["",Do.compose([Do.required,Do.pattern("DELETE")])]})}flattenConfig(e){const i=[];return this.traverseConfig("",e,i),i.sort((o,s)=>o.name.localeCompare(s.name))}traverseConfig(e,i,r){for(const o in i)"env"!==o&&(Array.isArray(i[o])?r.push({name:e+o,value:i[o].join(", ")}):"object"==typeof i[o]?this.traverseConfig(o+".",i[o],r):r.push({name:e+o,value:i[o]}))}isEmpty(e){return""===e||0===e}exportYaml(){const e=new Blob([(0,aBe.safeDump)(this.jsonConfig)],{type:"text/yaml;charset=utf-8"});rF.saveAs(e,"config.yaml")}dropped(e){this.uploadError="",this.uploadSuccess=!1;for(const i of e)if(i.fileEntry.isFile){const r=i.fileEntry.name.split(".");r.length>1&&["json","csv"].includes(r[r.length-1].toLowerCase())?i.fileEntry.file(a=>{this.uploadFile(a)}):this.uploadError="Invalid file: must have extension .json or .csv"}}uploadFile(e){const i=new FormData;i.append(e.name,e),this.uploading=!0,this.httpClient.post(this.apiConfig.host+"/v2/console/storage/import",i,{headers:{Authorization:"Bearer "}}).subscribe(()=>{this.uploading=!1,this.uploadSuccess=!0},o=>{this.uploading=!1,this.uploadError=o})}deleteData(){this.deleteError="",this.deleting=!0,this.consoleService.deleteAllData("").pipe(T3(2e3)).subscribe(()=>{this.deleting=!1,this.deleteError="",this.deleteSuccess=!0},e=>{this.deleting=!1,this.deleteError=e})}openDeleteDataModal(e){this.modalService.open(e,{centered:!0}).result.then(()=>{this.deleteData(),this.confirmDeleteForm.controls.delete.setValue("")},()=>{this.confirmDeleteForm.controls.delete.setValue("")})}get f(){return this.confirmDeleteForm.controls}ngOnDestroy(){}}return K(t,"\u0275fac",function(e){return new(e||t)(le(C3),le(Rr),le(wC),le(H3),le(xi),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:43,vars:11,consts:[["type","danger",3,"dismissible",4,"ngIf"],[1,"pb-4"],[1,"d-flex","justify-content-between","mb-4","align-items-baseline"],[1,"btn","btn-primary","btn-sm",3,"click"],[1,"config-table"],[4,"ngFor","ngForOf"],[1,"row","py-2","border","border-top-0","add-border-larger","mb-5"],[1,"col-lg-3"],[1,"pl-1"],["target","_blank","href","https://heroiclabs.com/docs/install-configuration/#runtime.env",1,"d-inline"],["src","/static/svg/hint.svg","alt","","width","16","height",""],[1,"col-lg-9"],[4,"ngIf"],[1,"section-divider","d-flex","mb-4"],["type","success",3,"dismissible","close",4,"ngIf"],["accept",".json,.csv","dropZoneClassName","drop-zone","contentClassName","drop-zone-content","dropZoneLabel","Drop CSV or JSON file here",3,"disabled","onFileDrop"],["ngx-file-drop-content-tmp",""],["role","alert",1,"alert","alert-danger","d-flex","justify-content-between","align-items-center"],["src","/static/svg/red-triangle.svg","alt","","width","16","height",""],[1,"pl-2"],["confirmDelete",""],["type","button",1,"btn","btn-danger",3,"disabled","click"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["class","row py-2 border",3,"border-top-0",4,"ngIf"],[1,"row","py-2","border"],[1,"pl-1",3,"for"],["target","_blank",1,"d-inline",3,"href"],["class","text-break-all",3,"id",4,"ngIf"],["class","text-muted",3,"id",4,"ngIf"],["class","col-md-3 left-line",4,"ngIf"],["class","col-md-3",4,"ngIf"],[1,"text-break-all",3,"id"],[1,"text-muted",3,"id"],[1,"col-md-3","left-line"],[1,"col-md-3"],["class","mb-0 text-break-all",4,"ngFor","ngForOf"],[1,"mb-0","text-break-all"],[1,"mb-0","text-muted"],[1,"mb-0","pl-4"],["type","success",3,"dismissible","close"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","button",1,"btn","btn-primary",3,"click"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-describedby","modal-title",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"d-flex","flex-column","justify-content-center"],[1,"mt-2"],["autocomplete","off",3,"formGroup"],["type","text","id","delete-confirm","placeholder","Type 'DELETE' to confirm","formControlName","delete",1,"form-control",3,"ngClass"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"]],template:function(e,i){if(1&e){const r=vt();J(0,mBe,4,1,"ngb-alert",0),b(1,"h2",1),I(2,"Server Configuration"),x(),b(3,"div",2)(4,"h5")(5,"b"),I(6,"Server version:"),x(),I(7),x(),b(8,"button",3),ye("click",function(){return i.exportYaml()}),I(9,"Export Configuration"),x()(),b(10,"div",4),J(11,CBe,2,1,"ng-container",5),b(12,"div",6)(13,"div",7)(14,"b"),I(15,"runtime.env"),x(),b(16,"label",8)(17,"a",9),ge(18,"img",10),x()()(),b(19,"div",11),J(20,SBe,2,1,"div",12),J(21,DBe,3,0,"div",12),x()()(),b(22,"h5",13),I(23,"Import storage data"),x(),b(24,"p"),I(25,"Import storage objects from a CSV or JSON file by dragging and dropping it below."),x(),J(26,TBe,6,2,"ngb-alert",0),J(27,EBe,4,1,"ngb-alert",14),b(28,"ngx-file-drop",15),ye("onFileDrop",function(s){return i.dropped(s)}),J(29,ABe,2,0,"ng-template",16),x(),b(30,"h5",13),I(31,"Delete all data"),x(),J(32,MBe,6,2,"ngb-alert",0),J(33,IBe,4,1,"ngb-alert",14),b(34,"div",17)(35,"div"),ge(36,"img",18),b(37,"small",19),I(38,"Warning - this operation is not reversible!"),x()(),J(39,NBe,19,5,"ng-template",null,20,Ur),b(41,"button",21),ye("click",function(){$e(r);const s=uo(40);return Be(i.openDeleteDataModal(s))}),I(42,"Delete all"),x()()}2&e&&(k("ngIf",i.configError),w(7),xn(" ",i.nakamaVersion,""),w(4),k("ngForOf",i.flatConfig),w(9),k("ngIf",i.jsonConfig.runtime&&i.jsonConfig.runtime.env&&i.jsonConfig.runtime.env.length>0),w(1),k("ngIf",i.jsonConfig.runtime&&i.jsonConfig.runtime.env&&0===i.jsonConfig.runtime.env.length),w(5),k("ngIf",i.uploadError),w(1),k("ngIf",i.uploadSuccess),w(1),k("disabled",i.uploading),w(4),k("ngIf",i.deleteError),w(1),k("ngIf",i.deleteSuccess),w(8),k("disabled",i.deleting))},dependencies:[jW,OW,Rh,jn,gn,To,sl,Na,rl,ol,fa,ja],styles:["label[_ngcontent-%COMP%]{margin-bottom:0}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.text-break-all[_ngcontent-%COMP%]{word-break:break-all;word-wrap:anywhere}.config-table[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:nth-child(even){background-color:#fafafc}.config-table[_ngcontent-%COMP%] .left-line[_ngcontent-%COMP%]{border-left:solid 1px #dadae9}"]})),t})(),jBe=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.getConfig("")}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function PBe(t,n){if(1&t&&(b(0,"ngb-alert",48),ge(1,"img",49),b(2,"h6",50),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function LBe(t,n){1&t&&(b(0,"tr")(1,"td",51),I(2,"No additional users are setup. Create a new user below."),x()()),2&t&&(w(1),k("colSpan",4))}function RBe(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td"),I(2),x(),b(3,"td"),I(4),x(),b(5,"td")(6,"span",36),I(7,"Administrator"),x(),b(8,"span",36),I(9,"Developer"),x(),b(10,"span",36),I(11,"Maintainer"),x(),b(12,"span",36),I(13,"View Only"),x()(),b(14,"td")(15,"button",52),ye("click",function(){const o=$e(e).$implicit;return Be(j().deleteUser(o.username))}),I(16,"Delete"),x()()()}if(2&t){const e=n.$implicit,i=j();w(2),Dt(e.username),w(2),Dt(e.email),w(2),k("hidden",e.role!==i.adminRole),w(2),k("hidden",e.role!==i.developerRole),w(2),k("hidden",e.role!==i.maintainerRole),w(2),k("hidden",e.role!==i.readonlyRole)}}function $Be(t,n){if(1&t&&(b(0,"ngb-alert",48),ge(1,"img",49),b(2,"h6",50),I(3,"An error occurred:"),x(),b(4,"p",53),I(5),x()()),2&t){const e=j();k("dismissible",!1),w(5),Dt(e.userCreateError)}}const oF=function(t){return{"is-invalid":t}};let BBe=(()=>{class t{constructor(e,i,r){K(this,"route",void 0),K(this,"consoleService",void 0),K(this,"formBuilder",void 0),K(this,"error",""),K(this,"userCreateError",""),K(this,"users",[]),K(this,"createUserForm",void 0),K(this,"adminRole",oi.USER_ROLE_ADMIN),K(this,"developerRole",oi.USER_ROLE_DEVELOPER),K(this,"maintainerRole",oi.USER_ROLE_MAINTAINER),K(this,"readonlyRole",oi.USER_ROLE_READONLY),this.route=e,this.consoleService=i,this.formBuilder=r}ngOnInit(){this.createUserForm=this.formBuilder.group({username:["",Do.required],email:["",[Do.required,Do.email]],password:["",Do.compose([Do.required,Do.minLength(8)])],role:[+this.readonlyRole,Do.required],newsletter:[!1]}),this.route.data.subscribe(e=>{const i=e[0];this.users.length=0,this.users.push(...i.users)},e=>{this.error=e})}deleteUser(e){this.error="",this.consoleService.deleteUser("",e).pipe(nt(()=>this.consoleService.listUsers(""))).subscribe(i=>{this.error="",this.users.length=0,this.users.push(...i.users)},i=>{this.error=i})}addUser(){this.userCreateError="",this.createUserForm.disable();let e=oi.USER_ROLE_READONLY;switch(this.f.role.value){case 1:e=oi.USER_ROLE_ADMIN;break;case 2:e=oi.USER_ROLE_DEVELOPER;break;case 3:e=oi.USER_ROLE_MAINTAINER;break;case 4:e=oi.USER_ROLE_READONLY}this.consoleService.addUser("",{username:this.f.username.value,email:this.f.email.value,password:this.f.password.value,role:e,newsletter_subscription:this.f.newsletter.value}).pipe(nt(()=>this.consoleService.listUsers(""))).subscribe(r=>{this.userCreateError="",this.createUserForm.reset({role:+e}),this.createUserForm.enable(),this.users.length=0,this.users.push(...r.users)},r=>{this.userCreateError=r,this.createUserForm.enable()})}get f(){return this.createUserForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(xi),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["app-users"]],decls:121,vars:24,consts:[[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],[1,"user-details","mb-5","table","table-bordered","table-sm","table-striped"],[1,"thead-light"],[2,"width","400px"],[2,"width","300px"],[2,"width","90px"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"section-divider","d-flex","mb-4"],[1,"mb-4","alert-permissions",3,"type"],[1,"alert-title","font-weight-bold"],[1,"d-flex","flex-wrap","flex-row"],[1,"col","col-md-3","p-4","flex-fill","flex-grow-1"],[1,"d-flex","align-items-center","mb-3"],["src","/static/svg/role-admin.svg","alt","","width","30","height","",1,"mr-2"],[1,"m-0","font-weight-bold"],["src","/static/svg/role-developer.svg","alt","","width","30","height","",1,"mr-2"],["src","/static/svg/role-maintainer.svg","alt","","width","30","height","",1,"mr-2"],["src","/static/svg/role-viewonly.svg","alt","","width","30","height","",1,"mr-2"],[1,"add-border","rounded"],[3,"formGroup","ngSubmit"],[1,"row","no-gutters"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"col-md-3"],["for","email",1,"d-inline"],[1,"col-md-9","ml-0","p-0"],["type","email","id","email","placeholder","email@example.com","required","","formControlName","email",1,"form-control",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","username",1,"d-inline"],["type","text","id","username","placeholder","Username","required","","formControlName","username",1,"form-control",3,"ngClass"],["for","password",1,"d-inline"],["type","password","id","password","placeholder","Password","required","","formControlName","password",1,"form-control",3,"ngClass"],[1,"d-inline"],[1,"btn-group"],["disabled","",1,"btn","btn-outline-dark","disabled"],[3,"hidden"],["ngbDropdown","","role","group",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-primary","dropdown-toggle-split"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click"],[1,"row","no-gutters","add-border-single-row-bottom","mb-4"],[1,"col","d-flex","align-items-center"],[1,"custom-control","custom-checkbox"],["type","checkbox","id","newsletter","formControlName","newsletter",1,"custom-control-input","mr-2","my-2"],["for","newsletter",1,"form-check-label","custom-control-label"],[1,""],["type","submit",1,"btn","btn-primary",3,"disabled"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[1,"text-muted",3,"colSpan"],["type","button",1,"btn","btn-danger","btn-outline-dark",3,"click"],[1,"mb-0","pl-4"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"User Management"),x(),J(2,PBe,4,2,"ngb-alert",1),b(3,"table",2)(4,"thead",3)(5,"tr")(6,"th",4),I(7,"Username"),x(),b(8,"th"),I(9,"Email"),x(),b(10,"th",5),I(11,"Role"),x(),b(12,"th",6),I(13,"Action"),x()()(),b(14,"tbody"),J(15,LBe,3,1,"tr",7),J(16,RBe,17,6,"tr",8),x()(),b(17,"h5",9),I(18,"Add new user"),x(),b(19,"ngb-alert",10)(20,"h6",11),I(21,"User roles"),x(),b(22,"div",12)(23,"div",13)(24,"div",14),ge(25,"img",15),b(26,"h6",16),I(27,"Administrator"),x()(),b(28,"small"),I(29," Owners have complete control over the server, its users and resources. "),x()(),b(30,"div",13)(31,"div",14),ge(32,"img",17),b(33,"h6",16),I(34,"Developer"),x()(),b(35,"small"),I(36," Like Administrators, Developers have complete control over the server, resources and data. However they cannot add, change or delete console users. "),x()(),b(37,"div",13)(38,"div",14),ge(39,"img",18),b(40,"h6",16),I(41,"Maintainer"),x()(),b(42,"small"),I(43," Maintainers have access to adding, changing and delete client resources such as accounts, storage and leaderboard records. They don't have access to the API Explorer or the console users. "),x()(),b(44,"div",13)(45,"div",14),ge(46,"img",19),b(47,"h6",16),I(48,"View Only"),x()(),b(49,"small"),I(50," View Only users can only view client resources but cannot make any changes to the data whatsoever. "),x()()()(),J(51,$Be,6,2,"ngb-alert",1),b(52,"div",20)(53,"form",21),ye("ngSubmit",function(){return i.addUser()}),b(54,"div",22)(55,"div",23)(56,"div",24)(57,"label",25),I(58,"Email"),x()(),b(59,"div",26),ge(60,"input",27),b(61,"div",28),I(62,"Email is required"),x()()()(),b(63,"div",22)(64,"div",23)(65,"div",24)(66,"label",29),I(67,"Username"),x()(),b(68,"div",26),ge(69,"input",30),b(70,"div",28),I(71,"Username is required"),x()()()(),b(72,"div",22)(73,"div",23)(74,"div",24)(75,"label",31),I(76,"Password"),x()(),b(77,"div",26),ge(78,"input",32),b(79,"div",28),I(80,"Password is required, must be 8 chars or longer and consist of at least a capital letter, a small letter and a number."),x()()()(),b(81,"div",22)(82,"div",23)(83,"div",24)(84,"label",33),I(85,"Role"),x()(),b(86,"div",26)(87,"div",34)(88,"button",35)(89,"span",36),I(90,"Administrator"),x(),b(91,"span",36),I(92,"Developer"),x(),b(93,"span",36),I(94,"Maintainer"),x(),b(95,"span",36),I(96,"View Only"),x()(),b(97,"div",37),ge(98,"button",38),b(99,"div",39)(100,"button",40),ye("click",function(){return i.f.role.setValue(+i.adminRole)}),I(101,"Administrator"),x(),b(102,"button",40),ye("click",function(){return i.f.role.setValue(+i.developerRole)}),I(103,"Developer"),x(),b(104,"button",40),ye("click",function(){return i.f.role.setValue(+i.maintainerRole)}),I(105,"Maintainer"),x(),b(106,"button",40),ye("click",function(){return i.f.role.setValue(+i.readonlyRole)}),I(107,"View Only"),x()()()(),b(108,"div",28),I(109,"Role is required"),x()()()(),b(110,"div",41)(111,"div",42),ge(112,"div",24),b(113,"div",26)(114,"div",43),ge(115,"input",44),b(116,"label",45),I(117,"Subscribe to Heroic Labs' newsletters to receive latest updates to Nakama and other news."),x()()()()(),b(118,"div",46)(119,"button",47),I(120,"Save"),x()()()()),2&e&&(w(2),k("ngIf",i.error),w(13),k("ngIf",0===i.users.length),w(1),k("ngForOf",i.users),w(3),k("type","secondary"),w(32),k("ngIf",i.userCreateError),w(2),k("formGroup",i.createUserForm),w(7),k("ngClass",lr(18,oF,i.f.email.dirty&&i.f.email.errors)),w(1),k("hidden",i.f.email.disabled||i.f.email.valid||i.f.email.pristine),w(8),k("ngClass",lr(20,oF,i.f.username.dirty&&i.f.username.errors)),w(1),k("hidden",i.f.username.disabled||i.f.username.valid||i.f.username.pristine),w(8),k("ngClass",lr(22,oF,i.f.password.dirty&&i.f.password.errors)),w(1),k("hidden",i.f.password.disabled||i.f.password.valid||i.f.password.pristine),w(10),k("hidden",i.f.role.value!==+i.adminRole),w(2),k("hidden",i.f.role.value!==+i.developerRole),w(2),k("hidden",i.f.role.value!==+i.maintainerRole),w(2),k("hidden",i.f.role.value!==+i.readonlyRole),w(13),k("hidden",i.f.role.disabled||i.f.role.valid||i.f.role.pristine),w(11),k("disabled",i.createUserForm.invalid))},dependencies:[Rh,jn,gn,To,Pu,rm,Pf,jf,sl,Na,aC,rl,ol,Ff,fa,ja],styles:[".user-details[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fff}.user-details[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:.6em 1em;font-weight:500}.user-details[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.6em 1em}.alert-permissions[_ngcontent-%COMP%]{padding:0}.alert-permissions[_ngcontent-%COMP%] .alert-title[_ngcontent-%COMP%]{padding:1rem}.alert-permissions[_ngcontent-%COMP%] .flex-row[_ngcontent-%COMP%]{border-top:solid 1px #dadae9;margin:0}.alert-permissions[_ngcontent-%COMP%] .flex-row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]{border-right:solid 1px #dadae9}.alert-permissions[_ngcontent-%COMP%] .flex-row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]:last-child{border-right:none}"]})),t})(),VBe=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.listUsers("")}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function HBe(t,n){if(1&t&&(b(0,"ngb-alert",10),ge(1,"img",11),b(2,"h6",12),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Failed to retrieve runtime information: ",e.error,"")}}function zBe(t,n){if(1&t&&(b(0,"tr")(1,"td"),I(2),x(),b(3,"td",13),I(4),x()()),2&t){const e=n.$implicit;w(2),Dt(e.path),w(2),Dt(e.mod_time)}}function UBe(t,n){1&t&&(b(0,"tr")(1,"td",14),I(2,"No Go modules were found."),x(),ge(3,"td"),x())}function GBe(t,n){if(1&t&&(b(0,"tr")(1,"td"),I(2),x(),b(3,"td",13),I(4),x()()),2&t){const e=n.$implicit;w(2),Dt(e.path),w(2),Dt(e.mod_time)}}function WBe(t,n){1&t&&(b(0,"tr")(1,"td",14),I(2,"No Lua modules were found."),x(),ge(3,"td"),x())}function qBe(t,n){if(1&t&&(b(0,"tr")(1,"td"),I(2),x(),b(3,"td",13),I(4),x()()),2&t){const e=n.$implicit;w(2),Dt(e.path),w(2),Dt(e.mod_time)}}function XBe(t,n){1&t&&(b(0,"tr")(1,"td",14),I(2,"No JavaScript modules were found."),x(),ge(3,"td"),x())}const sF=function(){return["/apiexplorer"]},aF=function(t){return{endpoint:t}};function YBe(t,n){if(1&t&&(b(0,"tr")(1,"td")(2,"code"),I(3),x()(),b(4,"td",15)(5,"a",16),I(6,"API Explorer"),x()()()),2&t){const e=n.$implicit;w(3),Dt(e),w(2),k("routerLink",wl(3,sF))("queryParams",lr(4,aF,e))}}function JBe(t,n){1&t&&(b(0,"tr")(1,"td",17),I(2,"No Go RPC functions were found."),x()())}function KBe(t,n){if(1&t&&(b(0,"tr")(1,"td")(2,"code"),I(3),x()(),b(4,"td",15)(5,"a",16),I(6,"API Explorer"),x()()()),2&t){const e=n.$implicit;w(3),Dt(e),w(2),k("routerLink",wl(3,sF))("queryParams",lr(4,aF,e))}}function QBe(t,n){1&t&&(b(0,"tr")(1,"td",17),I(2,"No Lua RPC functions were found."),x()())}function ZBe(t,n){if(1&t&&(b(0,"tr")(1,"td")(2,"code"),I(3),x()(),b(4,"td",15)(5,"a",16),I(6,"API Explorer"),x()()()),2&t){const e=n.$implicit;w(3),Dt(e),w(2),k("routerLink",wl(3,sF))("queryParams",lr(4,aF,e))}}function e7e(t,n){1&t&&(b(0,"tr")(1,"td",17),I(2,"No JavaScript RPC functions were found."),x()())}let t7e=(()=>{class t{constructor(e,i){K(this,"route",void 0),K(this,"consoleService",void 0),K(this,"error",""),K(this,"runtimeInfo",void 0),this.route=e,this.consoleService=i}ngOnInit(){this.route.data.subscribe(e=>{this.runtimeInfo=e[0]},e=>{this.error=e})}ngOnDestroy(){}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(xi))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:51,vars:13,consts:[[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],[1,"runtime-table","mb-4","table","table-sm","table-bordered","mb-5"],[1,"thead-light"],[2,"width","180px"],[4,"ngFor","ngForOf"],[4,"ngIf"],["colspan","2"],[1,"mb-4","section-divider","d-flex"],[1,"runtime-table","table","table-sm","table-bordered"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","200px"],[1,"text-muted"],[2,"width","180px","text-align","center"],[1,"btn","btn-sm","btn-secondary",3,"routerLink","queryParams"],["colspan","2",1,"text-muted"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"Runtime Modules"),x(),J(2,HBe,4,2,"ngb-alert",1),b(3,"table",2)(4,"thead",3)(5,"tr")(6,"th"),I(7,"Go Modules"),x(),b(8,"th",4),I(9,"Last Modified"),x()()(),b(10,"tbody"),J(11,zBe,5,2,"tr",5),J(12,UBe,4,0,"tr",6),x(),b(13,"thead",3)(14,"tr")(15,"th",7),I(16,"Lua Modules"),x()()(),b(17,"tbody"),J(18,GBe,5,2,"tr",5),J(19,WBe,4,0,"tr",6),x(),b(20,"thead",3)(21,"tr")(22,"th",7),I(23,"JavaScript Modules"),x()()(),b(24,"tbody"),J(25,qBe,5,2,"tr",5),J(26,XBe,4,0,"tr",6),x()(),b(27,"h4",8),I(28,"Registered RPC Functions"),x(),b(29,"table",9)(30,"thead",3)(31,"tr")(32,"th",7),I(33,"Go RPC Functions"),x()()(),b(34,"tbody"),J(35,YBe,7,6,"tr",5),J(36,JBe,3,0,"tr",6),x(),b(37,"thead",3)(38,"tr")(39,"th",7),I(40,"Lua RPC Functions"),x()()(),b(41,"tbody"),J(42,KBe,7,6,"tr",5),J(43,QBe,3,0,"tr",6),x(),b(44,"thead",3)(45,"tr")(46,"th",7),I(47,"JavaScript RPC Functions"),x()()(),b(48,"tbody"),J(49,ZBe,7,6,"tr",5),J(50,e7e,3,0,"tr",6),x()()),2&e&&(w(2),k("ngIf",i.error),w(9),k("ngForOf",i.runtimeInfo.go_modules),w(1),k("ngIf",0===i.runtimeInfo.go_modules.length),w(6),k("ngForOf",i.runtimeInfo.lua_modules),w(1),k("ngIf",0===i.runtimeInfo.lua_modules.length),w(6),k("ngForOf",i.runtimeInfo.js_modules),w(1),k("ngIf",0===i.runtimeInfo.js_modules.length),w(9),k("ngForOf",i.runtimeInfo.go_rpc_functions),w(1),k("ngIf",0===i.runtimeInfo.go_rpc_functions.length),w(6),k("ngForOf",i.runtimeInfo.lua_rpc_functions),w(1),k("ngIf",0===i.runtimeInfo.lua_rpc_functions.length),w(6),k("ngForOf",i.runtimeInfo.js_rpc_functions),w(1),k("ngIf",0===i.runtimeInfo.js_rpc_functions.length))},dependencies:[Fu,jn,gn,To],styles:["label[_ngcontent-%COMP%]{margin-bottom:0}.opaque[_ngcontent-%COMP%]{opacity:40%}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.runtime-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fff}.runtime-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:.6em 1em;font-weight:500}.runtime-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-left:1em;padding-right:1em;vertical-align:middle}"]})),t})(),n7e=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.getRuntime("")}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function i7e(t,n){1&t&&(b(0,"span"),I(1,"Filter by collection"),x())}function r7e(t,n){if(1&t&&(b(0,"span"),I(1),x()),2&t){const e=j();w(1),Dt(e.f.collection.value)}}function o7e(t,n){if(1&t){const e=vt();b(0,"button",34),ye("click",function(){const o=$e(e).$implicit;return Be(j().f.collection.setValue(o))}),I(1),x()}if(2&t){const e=n.$implicit;w(1),Dt(e)}}function s7e(t,n){if(1&t&&(b(0,"ngb-alert",35),ge(1,"img",36),b(2,"h6",37),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Error when querying storage objects: ",e.error,"")}}function a7e(t,n){1&t&&(b(0,"th",38),I(1,"Remove"),x())}function l7e(t,n){1&t&&(b(0,"tr")(1,"td",39),I(2,"No storage objects found - change the filter criteria or add new objects."),x()())}function c7e(t,n){if(1&t){const e=vt();b(0,"td",42)(1,"button",43),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteObject(r,s,a))}),I(2,"Delete"),x()()}}function u7e(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td",40),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewObject(o))}),I(2),x(),b(3,"td",40),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewObject(o))}),I(4),x(),b(5,"td",40),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewObject(o))}),I(6),x(),b(7,"td",40),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewObject(o))}),I(8),x(),J(9,c7e,3,0,"td",41),x()}if(2&t){const e=n.$implicit,i=j();w(2),Dt(e.collection),w(2),Dt(e.key),w(2),Dt(e.user_id),w(2),Dt(e.update_time),w(1),k("ngIf",i.deleteAllowed())}}let d7e=(()=>{class t{constructor(e,i,r,o,s){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"formBuilder",void 0),K(this,"systemUserId","00000000-0000-0000-0000-000000000000"),K(this,"error",""),K(this,"collections",[]),K(this,"objects",[]),K(this,"objectCount",0),K(this,"nextCursor",""),K(this,"prevCursor",""),K(this,"searchForm",void 0),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.searchForm=this.formBuilder.group({collection:[""],key:[""],user_id:[""]});const e=this.route.snapshot.queryParamMap;this.f.collection.setValue(e.get("collection")),this.f.key.setValue(e.get("key")),this.f.user_id.setValue(e.get("user_id")),this.nextCursor=e.get("cursor"),this.nextCursor&&""!==this.nextCursor?this.search(1):(this.f.collection.value||this.f.user_id.value)&&this.search(0),this.route.data.subscribe(i=>{this.collections.length=0,this.collections.push(...i[0].collections),this.objectCount=i[1].total_count,this.nextCursor=i[1].next_cursor,this.prevCursor=i[1].prev_cursor,this.objects.length=0,this.objects.push(...i[1].objects)},i=>{this.error=i})}disableSearch(){return!(!this.f.key.value||""===this.f.key.value||this.f.collection.value&&""!==this.f.collection.value)}search(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listStorage("",this.f.user_id.value,this.f.key.value,this.f.collection.value,i).subscribe(r=>{this.error="",this.objectCount=r.total_count,this.nextCursor=r.next_cursor,this.objects.length=0,this.objects.push(...r.objects),this.router.navigate([],{relativeTo:this.route,queryParams:{collection:this.f.collection.value,key:this.f.key.value,user_id:this.f.user_id.value,cursor:i},queryParamsHandling:"merge"})},r=>{this.error=r})}deleteObject(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteStorageObject("",r.collection,r.key,r.user_id,r.version).subscribe(()=>{this.error="",this.objectCount--,this.objects.splice(i,1)},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}viewObject(e){this.router.navigate(["/storage",e.collection,e.key,e.user_id],{relativeTo:this.route})}get f(){return this.searchForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:50,vars:15,consts:[[1,"pb-1"],[1,"pb-4"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],[1,"input-group-prepend"],["ngbDropdown","",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary","dropdown-radius",3,"disabled"],[4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",1,"btn","btn-secondary","text-secondary",3,"hidden","click"],[1,"dropdown-divider",3,"hidden"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],["type","text","formControlName","key","placeholder","Filter by key",1,"form-control"],["type","text","formControlName","user_id","placeholder","Filter by user ID",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"input-group-text",3,"click"],["src","/static/svg/purple-cog-1.svg","alt","","width","20","height","",1,"mr-1"],["type","submit",1,"btn","btn-primary",3,"disabled","click"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngFor","ngForOf"],["type","button","ngbDropdownItem","",3,"click"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"Storage Objects"),x(),b(2,"h6",1),I(3),x(),b(4,"div",2)(5,"div",3)(6,"div",4)(7,"form",5),ye("ngSubmit",function(){return i.search(0)}),b(8,"div",6)(9,"div",7)(10,"div",8)(11,"button",9),J(12,i7e,2,0,"span",10),J(13,r7e,2,1,"span",10),x(),b(14,"div",11)(15,"button",12),ye("click",function(){return i.f.collection.reset()}),I(16,"\u2718 Deselect collection"),x(),ge(17,"div",13),J(18,o7e,2,1,"button",14),x()()(),ge(19,"input",15)(20,"input",16),b(21,"div",17)(22,"span",18),ye("click",function(){return i.f.user_id.setValue(i.systemUserId)}),ge(23,"img",19),x()(),b(24,"div",17)(25,"button",20),ye("click",function(){return i.search(0)}),I(26,"Search"),x()()()()(),b(27,"div",21)(28,"div",22)(29,"button",23),ye("click",function(){return i.search(0)}),ge(30,"img",24),x(),b(31,"button",23),ye("click",function(){return i.search(1)}),ge(32,"img",25),x()()()()(),J(33,s7e,4,2,"ngb-alert",26),b(34,"div",27)(35,"table",28)(36,"thead",29)(37,"tr")(38,"th"),I(39,"Collection Name"),x(),b(40,"th"),I(41,"Key Name"),x(),b(42,"th",30),I(43,"User ID"),x(),b(44,"th",31),I(45,"Last Update"),x(),J(46,a7e,2,0,"th",32),x()(),b(47,"tbody"),J(48,l7e,3,0,"tr",10),J(49,u7e,10,5,"tr",33),x()()()),2&e&&(w(3),xn("",i.objectCount," objects found."),w(4),k("formGroup",i.searchForm),w(4),k("disabled",0===i.collections.length),w(1),k("ngIf",!i.f.collection.value||""===i.f.collection.value),w(1),k("ngIf",i.f.collection.value&&""!==i.f.collection.value),w(2),k("hidden",!i.f.collection.value||""===i.f.collection.value),w(2),k("hidden",!i.f.collection.value||""===i.f.collection.value),w(1),k("ngForOf",i.collections),w(7),k("disabled",i.disableSearch()),w(4),k("disabled",0===i.objects.length),w(2),k("disabled",""===i.nextCursor),w(2),k("ngIf",i.error),w(13),k("ngIf",i.deleteAllowed()),w(2),k("ngIf",0===i.objects.length),w(1),k("ngForOf",i.objects))},dependencies:[jn,gn,To,Pu,rm,Pf,jf,sl,Na,rl,ol,fa,ja],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})),t})(),h7e=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.listStorageCollections("")}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})(),f7e=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.queryParamMap.get("collection"),o=e.queryParamMap.get("key"),s=e.queryParamMap.get("user_id");return this.consoleService.listStorage("",s,o,r,null)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();var lF,PW,LW,RW,$W,BW,VW,HW,zW,UW,GW,WW,qW,XW,YW,JW,KW,QW,ZW,eq,tq,nq,iq,rq,oq,sq,aq,lq,cq,uq,dq,hq,fq,pq,mq,gq,vq,yq,bq,_q,xq,wq,Cq,kq,Sq,Dq,Tq,Eq,Aq,Mq,Iq,Fq,Nq,Oq,jq,Pq,Lq,Rq,$q,Bq,Vq,Hq,zq,Uq,Gq,Wq,qq,Xq,Yq,Jq,Kq,Qq,Zq,eX,tX,nX,iX,rX,oX,sX,aX,lX,cX,uX,dX,hX,fX,pX,mX,gX,vX,yX,bX,_X,xX,wX,CX,kX,SX,DX,TX,EX,AX,MX,IX,FX,NX,OX,jX,PX,LX,RX,$X,BX,VX,HX,zX,UX,GX,WX,qX,XX,YX,JX,KX,QX,ZX,eY,tY,nY,iY,rY,oY,sY,aY,lY,cY,uY,dY,hY,fY,pY,mY,gY,vY,yY,bY,_Y,xY,wY,CY,kY,SY,DY,TY,EY,AY,MY,IY,FY,NY,OY,jY,PY,LY,RY,$Y,BY,VY,HY,zY,UY,GY,WY,qY,XY,YY,JY,KY,QY,ZY,eJ,tJ,nJ,iJ,rJ,oJ,sJ,aJ,lJ,cJ,uJ,dJ,hJ,fJ,pJ,mJ,gJ,vJ,yJ,bJ,_J,xJ,wJ,CJ,kJ,SJ,DJ,TJ,EJ,AJ,MJ,IJ,FJ,NJ,OJ,jJ,PJ,LJ,RJ,$J,BJ,VJ,HJ,zJ,UJ,GJ,WJ,qJ,XJ,YJ,JJ,KJ,QJ,ZJ,eK,tK,nK,iK,rK,oK,sK,aK,lK,cK,uK,dK,hK,fK,pK,mK,gK,vK,yK,bK,_K,xK,wK,CK,kK,SK,DK,TK,EK,AK,MK,IK,FK,NK,OK,jK,PK,LK,RK,$K,BK,VK,HK,zK,UK,GK,WK,qK,p7e=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],m7e=["mainAxis","crossAxis","limiter"];function lb(t){var n="function"==typeof Map?new Map:void 0;return lb=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return cF(e,arguments,qi(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),cb(r,e)},lb(t)}function cF(t,n,e){return(cF=ZK()?Reflect.construct.bind():function(i,r,o){var s=[null];s.push.apply(s,r);var a=new(Function.bind.apply(i,s));return o&&cb(a,o.prototype),a}).apply(null,arguments)}function Ae(t,n){return n||(n=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))}function XK(t,n){if(null==t)return{};var e,i,r=function(s,a){if(null==s)return{};var l,c,u={},d=Object.keys(s);for(c=0;c=0||(u[l]=s[l]);return u}(t,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(r[e]=t[e])}return r}function Re(t,n){var e=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=k2(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(l){throw l},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){e=e.call(t)},n:function(){var l=e.next();return s=l.done,l},e:function(l){a=!0,o=l},f:function(){try{s||null==e.return||e.return()}finally{if(a)throw o}}}}function vn(){vn=function(){return t};var t={},n=Object.prototype,e=n.hasOwnProperty,i=Object.defineProperty||function(q,re,L){q[re]=L.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function l(q,re,L){return Object.defineProperty(q,re,{value:L,enumerable:!0,configurable:!0,writable:!0}),q[re]}try{l({},"")}catch{l=function(re,L,X){return re[L]=X}}function c(q,re,L,X){var H=Object.create((re&&re.prototype instanceof h?re:h).prototype),he=new R(X||[]);return i(H,"_invoke",{value:S(q,L,he)}),H}function u(q,re,L){try{return{type:"normal",arg:q.call(re,L)}}catch(X){return{type:"throw",arg:X}}}t.wrap=c;var d={};function h(){}function f(){}function p(){}var m={};l(m,o,function(){return this});var g=Object.getPrototypeOf,v=g&&g(g(z([])));v&&v!==n&&e.call(v,o)&&(m=v);var y=p.prototype=h.prototype=Object.create(m);function _(q){["next","throw","return"].forEach(function(re){l(q,re,function(L){return this._invoke(re,L)})})}function C(q,re){function L(Z,H,he,E){var F=u(q[Z],q,H);if("throw"!==F.type){var N=F.arg,Y=N.value;return Y&&"object"==bn(Y)&&e.call(Y,"__await")?re.resolve(Y.__await).then(function(V){L("next",V,he,E)},function(V){L("throw",V,he,E)}):re.resolve(Y).then(function(V){N.value=V,he(N)},function(V){return L("throw",V,he,E)})}E(F.arg)}var X;i(this,"_invoke",{value:function(Z,H){function he(){return new re(function(E,F){L(Z,H,E,F)})}return X=X?X.then(he,he):he()}})}function S(q,re,L){var X="suspendedStart";return function(Z,H){if("executing"===X)throw new Error("Generator is already running");if("completed"===X){if("throw"===Z)throw H;return{value:void 0,done:!0}}for(L.method=Z,L.arg=H;;){var he=L.delegate;if(he){var E=M(he,L);if(E){if(E===d)continue;return E}}if("next"===L.method)L.sent=L._sent=L.arg;else if("throw"===L.method){if("suspendedStart"===X)throw X="completed",L.arg;L.dispatchException(L.arg)}else"return"===L.method&&L.abrupt("return",L.arg);X="executing";var F=u(q,re,L);if("normal"===F.type){if(X=L.done?"completed":"suspendedYield",F.arg===d)continue;return{value:F.arg,done:L.done}}"throw"===F.type&&(X="completed",L.method="throw",L.arg=F.arg)}}}function M(q,re){var L=re.method,X=q.iterator[L];if(void 0===X)return re.delegate=null,"throw"===L&&q.iterator.return&&(re.method="return",re.arg=void 0,M(q,re),"throw"===re.method)||"return"!==L&&(re.method="throw",re.arg=new TypeError("The iterator does not provide a '"+L+"' method")),d;var Z=u(X,q.iterator,re.arg);if("throw"===Z.type)return re.method="throw",re.arg=Z.arg,re.delegate=null,d;var H=Z.arg;return H?H.done?(re[q.resultName]=H.value,re.next=q.nextLoc,"return"!==re.method&&(re.method="next",re.arg=void 0),re.delegate=null,d):H:(re.method="throw",re.arg=new TypeError("iterator result is not an object"),re.delegate=null,d)}function $(q){var re={tryLoc:q[0]};1 in q&&(re.catchLoc=q[1]),2 in q&&(re.finallyLoc=q[2],re.afterLoc=q[3]),this.tryEntries.push(re)}function G(q){var re=q.completion||{};re.type="normal",delete re.arg,q.completion=re}function R(q){this.tryEntries=[{tryLoc:"root"}],q.forEach($,this),this.reset(!0)}function z(q){if(q){var re=q[o];if(re)return re.call(q);if("function"==typeof q.next)return q;if(!isNaN(q.length)){var L=-1,X=function Z(){for(;++L=0;--X){var Z=this.tryEntries[X],H=Z.completion;if("root"===Z.tryLoc)return L("end");if(Z.tryLoc<=this.prev){var he=e.call(Z,"catchLoc"),E=e.call(Z,"finallyLoc");if(he&&E){if(this.prev=0;--L){var X=this.tryEntries[L];if(X.tryLoc<=this.prev&&e.call(X,"finallyLoc")&&this.prev=0;--re){var L=this.tryEntries[re];if(L.finallyLoc===q)return this.complete(L.completion,L.afterLoc),G(L),d}},catch:function(q){for(var re=this.tryEntries.length-1;re>=0;--re){var L=this.tryEntries[re];if(L.tryLoc===q){var X=L.completion;if("throw"===X.type){var Z=X.arg;G(L)}return Z}}throw new Error("illegal catch attempt")},delegateYield:function(q,re,L){return this.delegate={iterator:z(q),resultName:re,nextLoc:L},"next"===this.method&&(this.arg=void 0),d}},t}function YK(t,n,e,i,r,o,s){try{var a=t[o](s),l=a.value}catch(c){return void e(c)}a.done?n(l):Promise.resolve(l).then(i,r)}function Zi(t){return function(){var n=this,e=arguments;return new Promise(function(i,r){var o=t.apply(n,e);function s(l){YK(o,i,r,s,a,"next",l)}function a(l){YK(o,i,r,s,a,"throw",l)}s(void 0)})}}function Un(t,n){return KK(t)||function(e,i){var r=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,s,a,l,c=[],u=!0,d=!1;try{if(a=(r=r.call(e)).next,0===i){if(Object(r)!==r)return;u=!1}else for(;!(u=(o=a.call(r)).done)&&(c.push(o.value),c.length!==i);u=!0);}catch(h){d=!0,s=h}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(d)throw s}}return c}}(t,n)||k2(t,n)||JK()}function JK(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function KK(t){if(Array.isArray(t))return t}function QK(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,i)}return e}function Ze(t){for(var n=1;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qi(t){return(qi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function ke(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function eQ(t,n){for(var e=0;et.length)&&(n=t.length);for(var e=0,i=new Array(n);e32){for(var n=[],e=t.ctx.length/32,i=0;i2&&void 0!==arguments[2]?arguments[2]:{},i=e.bubbles,r=void 0!==i&&i,o=e.cancelable,s=void 0!==o&&o,a=document.createEvent("CustomEvent");return a.initCustomEvent(t,r,s,n),a}function qd(t,n){return new t(n)}var db,D2=new Map,fF=0;function fQ(t,n,e,i,r,o,s){for(var a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,l=16.666/i,c="{\n",u=0;u<=1;u+=l){var d=n+(e-n)*o(u);c+=100*u+"%{".concat(s(d,1-d),"}\n")}var h=c+"100% {".concat(s(e,1-e),"}\n}"),f="__svelte_".concat(function x7e(t){for(var n=5381,e=t.length;e--;)n=(n<<5)-n^t.charCodeAt(e);return n>>>0}(h),"_").concat(a),p=hF(t),m=D2.get(p)||function w7e(t,n){var e={stylesheet:b7e(n),rules:{}};return D2.set(t,e),e}(p,t),g=m.stylesheet,v=m.rules;v[f]||(v[f]=!0,g.insertRule("@keyframes ".concat(f," ").concat(h),g.cssRules.length));var y=t.style.animation||"";return t.style.animation="".concat(y?"".concat(y,", "):"").concat(f," ").concat(i,"ms linear ").concat(r,"ms 1 both"),fF+=1,f}function hb(t){db=t}function Tv(){if(!db)throw new Error("Function called outside component initialization");return db}function Wc(t){Tv().$$.on_mount.push(t)}function Hu(t){Tv().$$.on_destroy.push(t)}function pQ(){var t=Tv();return function(n,e){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).cancelable,s=t.$$.callbacks[n];if(s){var a=hQ(n,e,{cancelable:void 0!==r&&r});return s.slice().forEach(function(l){l.call(t,a)}),!a.defaultPrevented}return!0}}function mQ(t,n){return Tv().$$.context.set(t,n),n}function xa(t){return Tv().$$.context.get(t)}function T2(t,n){var e=this,i=t.$$.callbacks[n.type];i&&i.slice().forEach(function(r){return r.call(e,n)})}var Ev=[],Vi=[],E2=[],pF=[],gQ=Promise.resolve(),mF=!1;function vQ(){mF||(mF=!0,gQ.then(yQ))}function Xl(){return vQ(),gQ}function _m(t){E2.push(t)}function zu(t){pF.push(t)}var A2,gF=new Set,Av=0;function yQ(){if(0===Av){var t=db;do{try{for(;Avl.start&&(a=d(l,_),l=null,vF(t,a.b,"start"),G&&(u(),c=fQ(t,s,a.b,a.duration,0,S,o.css))),a&&(z>=a.end?($(s=a.b,1-s),vF(t,a.b,"end"),l||(a.b?u():--a.group.r||ho(a.group.c)),a=null):z>=a.start&&(s=a.a+a.d*S((z-a.start)/a.duration),$(s,1-s))),!(!a&&!l)},0===ub.size&&dF(lQ),new Promise(function(z){ub.add({c:p,f:z})}))}return{run:function(f){ba(o)?(A2||(A2=Promise.resolve()).then(function(){A2=null}),A2).then(function(){o=o(r),h(f)}):h(f)},end:function(){u(),a=l=null}}}var yF=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function D7e(t,n){t.d(1),n.delete(t.key)}function bF(t,n){ce(t,1,1,function(){n.delete(t.key)})}function F2(t,n,e,i,r,o,s,a,l,c,u,d){for(var h=t.length,f=o.length,p=h,m={};p--;)m[t[p].key]=p;var g=[],v=new Map,y=new Map;for(p=f;p--;){var _=d(r,o,p),C=e(_),S=s.get(C);S?i&&S.p(_,n):(S=c(C,_)).c(),v.set(C,g[p]=S),C in m&&y.set(C,Math.abs(p-m[C]))}var M=new Set,$=new Set;function G(L){Q(L,1),L.m(a,u),s.set(L.key,L),u=L.first,f--}for(;h&&f;){var R=g[f-1],z=t[h-1],U=R.key,q=z.key;R===z?(u=R.first,h--,f--):v.has(q)?!s.has(U)||M.has(U)?G(R):$.has(q)?h--:y.get(U)>y.get(q)?($.add(U),G(R)):(M.add(q),h--):(l(z,s),h--)}for(;h--;){var re=t[h];v.has(re.key)||l(re,s)}for(;f;)G(g[f-1]);return g}function xm(t,n){for(var e={},i={},r={$$scope:1},o=t.length;o--;){var s=t[o],a=n[o];if(a){for(var l in s)l in a||(i[l]=1);for(var c in a)r[c]||(e[c]=a[c],r[c]=1);t[o]=a}else for(var u in s)r[u]=1}for(var d in i)d in e||(e[d]=void 0);return e}function N2(t){return"object"===bn(t)&&null!==t?t:{}}function Uu(t,n,e){var i=t.$$.props[n];void 0!==i&&(t.$$.bound[i]=e,e(t.$$.ctx[i]))}function mt(t){t&&t.c()}function ft(t,n,e,i){var r=t.$$,o=r.fragment,s=r.after_update;o&&o.m(n,e),i||_m(function(){var a,l=t.$$.on_mount.map(rQ).filter(ba);t.$$.on_destroy?(a=t.$$.on_destroy).push.apply(a,si(l)):ho(l),t.$$.on_mount=[]}),s.forEach(_m)}function pt(t,n){var e=t.$$;null!==e.fragment&&(ho(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function Pn(t,n,e,i,r,o,s){var a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1],l=db;hb(t);var c=t.$$={fragment:null,ctx:[],props:o,update:Lt,not_equal:r,bound:oQ(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(l?l.$$.context:[])),callbacks:oQ(),dirty:a,skip_bound:!1,root:n.target||l.$$.root};s&&s(c.root);var u=!1;if(c.ctx=e?e(t,n.props||{},function(h,f){var p=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:f;return c.ctx&&r(c.ctx[h],c.ctx[h]=p)&&(!c.skip_bound&&c.bound[h]&&c.bound[h](p),u&&function T7e(t,n){-1===t.$$.dirty[0]&&(Ev.push(t),vQ(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<1&&void 0!==arguments[1]?arguments[1]:!!function M7e(t){try{if(typeof window<"u"&&void 0!==window.localStorage)return window.localStorage[t]}catch{}}("debug");if(n){var e=function I7e(t){for(var n=0,e=0;e1&&void 0!==arguments[1]?arguments[1]:{},e=n.delay,i=void 0===e?0:e,r=n.duration,o=void 0===r?400:r,s=n.easing,a=void 0===s?iQ:s,l=+getComputedStyle(t).opacity;return{delay:i,duration:o,easing:a,css:function(c){return"opacity: ".concat(c*l)}}}var N7e=yF.window;function O7e(t){pi(t,"svelte-n7cvum",".svelte-n7cvum{box-sizing:border-box}.bg.svelte-n7cvum{position:fixed;z-index:1000;top:0;left:0;display:flex;flex-direction:column;justify-content:center;width:100vw;height:100vh;background:rgba(0, 0, 0, 0.66)}@supports (-webkit-touch-callout: none){}.wrap.svelte-n7cvum{position:relative;margin:2rem;max-height:100%}.window.svelte-n7cvum{position:relative;width:40rem;max-width:100%;max-height:100%;margin:2rem auto;color:black;border-radius:0.5rem;background:white}.content.svelte-n7cvum{position:relative;padding:1rem;max-height:calc(100vh - 4rem);overflow:auto}.close.svelte-n7cvum{display:block;box-sizing:border-box;position:absolute;z-index:1000;top:1rem;right:1rem;margin:0;padding:0;width:1.5rem;height:1.5rem;border:0;color:black;border-radius:1.5rem;background:white;box-shadow:0 0 0 1px black;transition:transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),\n background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);-webkit-appearance:none}.close.svelte-n7cvum:before,.close.svelte-n7cvum:after{content:'';display:block;box-sizing:border-box;position:absolute;top:50%;width:1rem;height:1px;background:black;transform-origin:center;transition:height 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),\n background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1)}.close.svelte-n7cvum:before{-webkit-transform:translate(0, -50%) rotate(45deg);-moz-transform:translate(0, -50%) rotate(45deg);transform:translate(0, -50%) rotate(45deg);left:0.25rem}.close.svelte-n7cvum:after{-webkit-transform:translate(0, -50%) rotate(-45deg);-moz-transform:translate(0, -50%) rotate(-45deg);transform:translate(0, -50%) rotate(-45deg);left:0.25rem}.close.svelte-n7cvum:hover{background:black}.close.svelte-n7cvum:hover:before,.close.svelte-n7cvum:hover:after{height:2px;background:white}.close.svelte-n7cvum:focus{border-color:#3399ff;box-shadow:0 0 0 2px #3399ff}.close.svelte-n7cvum:active{transform:scale(0.9)}.close.svelte-n7cvum:hover,.close.svelte-n7cvum:focus,.close.svelte-n7cvum:active{outline:none}")}function _Q(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_=t[1].closeButton&&xQ(t),C=t[2];return C&&(s=qd(C,{})),{c:function(){n=be("div"),e=be("div"),i=be("div"),_&&_.c(),r=it(),o=be("div"),s&&mt(s.$$.fragment),P(o,"class",a=Ao(t[1].classContent)+" svelte-n7cvum"),P(o,"style",t[9]),Mt(o,"content",!t[0]),P(i,"class",l=Ao(t[1].classWindow)+" svelte-n7cvum"),P(i,"role","dialog"),P(i,"aria-modal","true"),P(i,"aria-label",c=t[1].ariaLabelledBy?null:t[1].ariaLabel||null),P(i,"aria-labelledby",u=t[1].ariaLabelledBy||null),P(i,"style",t[8]),Mt(i,"window",!t[0]),P(e,"class",h=Ao(t[1].classWindowWrap)+" svelte-n7cvum"),P(e,"style",t[7]),Mt(e,"wrap",!t[0]),P(n,"id",f=t[1].id),P(n,"class",p=Ao(t[1].classBg)+" svelte-n7cvum"),P(n,"style",t[6]),Mt(n,"bg",!t[0])},m:function(S,M){Pe(S,n,M),de(n,e),de(e,i),_&&_.m(i,null),de(i,r),de(i,o),s&&ft(s,o,null),t[50](i),t[51](e),t[52](n),g=!0,v||(y=[Nt(i,"introstart",function(){ba(t[13])&&t[13].apply(this,arguments)}),Nt(i,"outrostart",function(){ba(t[14])&&t[14].apply(this,arguments)}),Nt(i,"introend",function(){ba(t[15])&&t[15].apply(this,arguments)}),Nt(i,"outroend",function(){ba(t[16])&&t[16].apply(this,arguments)}),Nt(n,"mousedown",t[20]),Nt(n,"mouseup",t[21])],v=!0)},p:function(S,M){if((t=S)[1].closeButton?_?(_.p(t,M),2&M[0]&&Q(_,1)):((_=xQ(t)).c(),Q(_,1),_.m(i,r)):_&&($t(),ce(_,1,1,function(){_=null}),Bt()),C!==(C=t[2])){if(s){$t();var $=s;ce($.$$.fragment,1,0,function(){pt($,1)}),Bt()}C?(mt((s=qd(C,{})).$$.fragment),Q(s.$$.fragment,1),ft(s,o,null)):s=null}(!g||2&M[0]&&a!==(a=Ao(t[1].classContent)+" svelte-n7cvum"))&&P(o,"class",a),(!g||512&M[0])&&P(o,"style",t[9]),(!g||3&M[0])&&Mt(o,"content",!t[0]),(!g||2&M[0]&&l!==(l=Ao(t[1].classWindow)+" svelte-n7cvum"))&&P(i,"class",l),(!g||2&M[0]&&c!==(c=t[1].ariaLabelledBy?null:t[1].ariaLabel||null))&&P(i,"aria-label",c),(!g||2&M[0]&&u!==(u=t[1].ariaLabelledBy||null))&&P(i,"aria-labelledby",u),(!g||256&M[0])&&P(i,"style",t[8]),(!g||3&M[0])&&Mt(i,"window",!t[0]),(!g||2&M[0]&&h!==(h=Ao(t[1].classWindowWrap)+" svelte-n7cvum"))&&P(e,"class",h),(!g||128&M[0])&&P(e,"style",t[7]),(!g||3&M[0])&&Mt(e,"wrap",!t[0]),(!g||2&M[0]&&f!==(f=t[1].id))&&P(n,"id",f),(!g||2&M[0]&&p!==(p=Ao(t[1].classBg)+" svelte-n7cvum"))&&P(n,"class",p),(!g||64&M[0])&&P(n,"style",t[6]),(!g||3&M[0])&&Mt(n,"bg",!t[0])},i:function(S){g||(Q(_),s&&Q(s.$$.fragment,S),_m(function(){d||(d=I2(i,t[12],t[1].transitionWindowProps,!0)),d.run(1)}),_m(function(){m||(m=I2(n,t[11],t[1].transitionBgProps,!0)),m.run(1)}),g=!0)},o:function(S){ce(_),s&&ce(s.$$.fragment,S),d||(d=I2(i,t[12],t[1].transitionWindowProps,!1)),d.run(0),m||(m=I2(n,t[11],t[1].transitionBgProps,!1)),m.run(0),g=!1},d:function(S){S&&je(n),_&&_.d(),s&&pt(s),t[50](null),S&&d&&d.end(),t[51](null),t[52](null),S&&m&&m.end(),v=!1,ho(y)}}}function xQ(t){var n,e,i,r,o,s=[P7e,j7e],a=[];function l(c,u){return 2&u[0]&&(n=null),null==n&&(n=!!c[17](c[1].closeButton)),n?0:1}return e=l(t,[-1,-1,-1]),i=a[e]=s[e](t),{c:function(){i.c(),r=_r()},m:function(c,u){a[e].m(c,u),Pe(c,r,u),o=!0},p:function(c,u){var d=e;(e=l(c,u))===d?a[e].p(c,u):($t(),ce(a[d],1,1,function(){a[d]=null}),Bt(),(i=a[e])?i.p(c,u):(i=a[e]=s[e](c)).c(),Q(i,1),i.m(r.parentNode,r))},i:function(c){o||(Q(i),o=!0)},o:function(c){ce(i),o=!1},d:function(c){a[e].d(c),c&&je(r)}}}function j7e(t){var n,e,i,r;return{c:function(){P(n=be("button"),"class",e=Ao(t[1].classCloseButton)+" svelte-n7cvum"),P(n,"aria-label","Close modal"),P(n,"style",t[10]),P(n,"type","button"),Mt(n,"close",!t[0])},m:function(o,s){Pe(o,n,s),i||(r=Nt(n,"click",t[18]),i=!0)},p:function(o,s){2&s[0]&&e!==(e=Ao(o[1].classCloseButton)+" svelte-n7cvum")&&P(n,"class",e),1024&s[0]&&P(n,"style",o[10]),3&s[0]&&Mt(n,"close",!o[0])},i:Lt,o:Lt,d:function(o){o&&je(n),i=!1,r()}}}function P7e(t){var n,e,i,r=t[1].closeButton;function o(s){return{props:{onClose:s[18]}}}return r&&(n=qd(r,o(t))),{c:function(){n&&mt(n.$$.fragment),e=_r()},m:function(s,a){n&&ft(n,s,a),Pe(s,e,a),i=!0},p:function(s,a){if(r!==(r=s[1].closeButton)){if(n){$t();var l=n;ce(l.$$.fragment,1,0,function(){pt(l,1)}),Bt()}r?(mt((n=qd(r,o(s))).$$.fragment),Q(n.$$.fragment,1),ft(n,e.parentNode,e)):n=null}},i:function(s){i||(n&&Q(n.$$.fragment,s),i=!0)},o:function(s){n&&ce(n.$$.fragment,s),i=!1},d:function(s){s&&je(e),n&&pt(n,s)}}}function L7e(t){var n,e,i,r,o=t[2]&&_Q(t),s=t[49].default,a=Ms(s,t,t[48],null);return{c:function(){o&&o.c(),n=it(),a&&a.c()},m:function(l,c){o&&o.m(l,c),Pe(l,n,c),a&&a.m(l,c),e=!0,i||(r=Nt(N7e,"keydown",t[19]),i=!0)},p:function(l,c){l[2]?o?(o.p(l,c),4&c[0]&&Q(o,1)):((o=_Q(l)).c(),Q(o,1),o.m(n.parentNode,n)):o&&($t(),ce(o,1,1,function(){o=null}),Bt()),a&&a.p&&(!e||131072&c[1])&&Fs(a,s,l,l[48],e?Is(s,l[48],c,null):Ns(l[48]),null)},i:function(l){e||(Q(o),Q(a,l),e=!0)},o:function(l){ce(o),ce(a,l),e=!1},d:function(l){o&&o.d(l),l&&je(n),a&&a.d(l),i=!1,r()}}}function wQ(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e){return new t(Ze(Ze({},e),{},{props:Ze(Ze({},n),e.props)}))}}function R7e(t,n,e){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y=n.$$slots,_=void 0===y?{}:y,C=n.$$scope,S=pQ(),$=n.isTabbable,G=void 0===$?function(Ue){return Ue.tabIndex>=0&&!Ue.hidden&&!Ue.disabled&&"none"!==Ue.style.display&&"hidden"!==Ue.type&&Boolean(Ue.offsetWidth||Ue.offsetHeight||Ue.getClientRects().length)}:$,R=n.show,z=void 0===R?null:R,U=n.id,q=void 0===U?null:U,re=n.key,L=void 0===re?"simple-modal":re,X=n.ariaLabel,Z=void 0===X?null:X,H=n.ariaLabelledBy,he=void 0===H?null:H,E=n.closeButton,F=void 0===E||E,N=n.closeOnEsc,Y=void 0===N||N,V=n.closeOnOuterClick,oe=void 0===V||V,fe=n.styleBg,Fe=void 0===fe?{}:fe,xe=n.styleWindowWrap,tt=void 0===xe?{}:xe,ze=n.styleWindow,ot=void 0===ze?{}:ze,B=n.styleContent,ne=void 0===B?{}:B,ie=n.styleCloseButton,Ie=void 0===ie?{}:ie,Ye=n.classBg,Le=void 0===Ye?null:Ye,_t=n.classWindowWrap,At=void 0===_t?null:_t,_n=n.classWindow,ci=void 0===_n?null:_n,on=n.classContent,Fi=void 0===on?null:on,pn=n.classCloseButton,Nr=void 0===pn?null:pn,$r=n.unstyled,wr=void 0!==$r&&$r,Or=n.setContext,Ai=void 0===Or?mQ:Or,Wr=n.transitionBg,jo=void 0===Wr?F7e:Wr,Nn=n.transitionBgProps,xt=void 0===Nn?{duration:250}:Nn,ui=n.transitionWindow,Ni=void 0===ui?jo:ui,Cr=n.transitionWindowProps,xo=void 0===Cr?xt:Cr,Qo=n.disableFocusTrap,gt=void 0!==Qo&&Qo,On={id:q,ariaLabel:Z,ariaLabelledBy:he,closeButton:F,closeOnEsc:Y,closeOnOuterClick:oe,styleBg:Fe,styleWindowWrap:tt,styleWindow:ot,styleContent:ne,styleCloseButton:Ie,classBg:Le,classWindowWrap:At,classWindow:ci,classContent:Fi,classCloseButton:Nr,transitionBg:jo,transitionBgProps:xt,transitionWindow:Ni,transitionWindowProps:xo,disableFocusTrap:gt,isTabbable:G,unstyled:wr},ai=Ze({},On),bi=null,Er=function(Ue){return Ue?Object.keys(Ue).reduce(function(Dn,ii){return"".concat(Dn,"; ").concat((hi=ii,hi.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()),": ").concat(Ue[ii]);var hi},""):""},qr=function(Ue){return!!(Ue&&Ue.constructor&&Ue.call&&Ue.apply)},ao=function(){e(6,a=Er(Object.assign({},{width:window.innerWidth,height:window.innerHeight},ai.styleBg))),e(7,l=Er(ai.styleWindowWrap)),e(8,c=Er(ai.styleWindow)),e(9,u=Er(ai.styleContent)),e(10,d=Er(ai.styleCloseButton)),e(11,h=ai.transitionBg),e(12,f=ai.transitionWindow)},Js=function(){},vr=Js,Ks=Js,qa=Js,Xa=Js,Ic=function(Ue){var ii=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},hi=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e(2,bi=wQ(Ue,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})),e(1,ai=Ze(Ze({},On),ii)),ao(),He(),e(13,vr=function(di){hi.onOpen&&hi.onOpen(di),S("open"),S("opening")}),e(14,Ks=function(di){hi.onClose&&hi.onClose(di),S("close"),S("closing")}),e(15,qa=function(di){hi.onOpened&&hi.onOpened(di),S("opened")}),e(16,Xa=function(di){hi.onClosed&&hi.onClosed(di),S("closed")})},we=function(){var Ue=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};bi&&(e(14,Ks=Ue.onClose||Ks),e(16,Xa=Ue.onClosed||Xa),e(2,bi=null),qe())},He=function(){s=window.scrollY,p=document.body.style.position,m=document.body.style.overflow,g=document.body.style.width,document.body.style.position="fixed",document.body.style.top="-".concat(s,"px"),document.body.style.overflow="hidden",document.body.style.width="100%"},qe=function(){document.body.style.position=p||"",document.body.style.top="",document.body.style.overflow=m||"",document.body.style.width=g||"",window.scrollTo({top:s,left:0,behavior:"instant"})};Ai(L,{open:Ic,close:we});var ut=!1;return Hu(function(){ut&&we()}),Wc(function(){e(47,ut=!0)}),t.$$set=function(Ue){"isTabbable"in Ue&&e(22,G=Ue.isTabbable),"show"in Ue&&e(23,z=Ue.show),"id"in Ue&&e(24,q=Ue.id),"key"in Ue&&e(25,L=Ue.key),"ariaLabel"in Ue&&e(26,Z=Ue.ariaLabel),"ariaLabelledBy"in Ue&&e(27,he=Ue.ariaLabelledBy),"closeButton"in Ue&&e(28,F=Ue.closeButton),"closeOnEsc"in Ue&&e(29,Y=Ue.closeOnEsc),"closeOnOuterClick"in Ue&&e(30,oe=Ue.closeOnOuterClick),"styleBg"in Ue&&e(31,Fe=Ue.styleBg),"styleWindowWrap"in Ue&&e(32,tt=Ue.styleWindowWrap),"styleWindow"in Ue&&e(33,ot=Ue.styleWindow),"styleContent"in Ue&&e(34,ne=Ue.styleContent),"styleCloseButton"in Ue&&e(35,Ie=Ue.styleCloseButton),"classBg"in Ue&&e(36,Le=Ue.classBg),"classWindowWrap"in Ue&&e(37,At=Ue.classWindowWrap),"classWindow"in Ue&&e(38,ci=Ue.classWindow),"classContent"in Ue&&e(39,Fi=Ue.classContent),"classCloseButton"in Ue&&e(40,Nr=Ue.classCloseButton),"unstyled"in Ue&&e(0,wr=Ue.unstyled),"setContext"in Ue&&e(41,Ai=Ue.setContext),"transitionBg"in Ue&&e(42,jo=Ue.transitionBg),"transitionBgProps"in Ue&&e(43,xt=Ue.transitionBgProps),"transitionWindow"in Ue&&e(44,Ni=Ue.transitionWindow),"transitionWindowProps"in Ue&&e(45,xo=Ue.transitionWindowProps),"disableFocusTrap"in Ue&&e(46,gt=Ue.disableFocusTrap),"$$scope"in Ue&&e(48,C=Ue.$$scope)},t.$$.update=function(){8388608&t.$$.dirty[0]|65536&t.$$.dirty[1]&&ut&&(qr(z)?Ic(z):we())},[wr,ai,bi,i,r,o,a,l,c,u,d,h,f,vr,Ks,qa,Xa,qr,we,function(Ue){if(ai.closeOnEsc&&bi&&"Escape"===Ue.key&&(Ue.preventDefault(),we()),bi&&"Tab"===Ue.key&&!ai.disableFocusTrap){var Dn=o.querySelectorAll("*"),ii=Array.from(Dn).filter(ai.isTabbable).sort(function(di,kr){return di.tabIndex-kr.tabIndex}),hi=ii.indexOf(document.activeElement);-1===hi&&Ue.shiftKey&&(hi=0),hi+=ii.length+(Ue.shiftKey?-1:1),ii[hi%=ii.length].focus(),Ue.preventDefault()}},function(Ue){!ai.closeOnOuterClick||Ue.target!==i&&Ue.target!==r||(v=Ue.target)},function(Ue){ai.closeOnOuterClick&&Ue.target===v&&(Ue.preventDefault(),we())},G,z,q,L,Z,he,F,Y,oe,Fe,tt,ot,ne,Ie,Le,At,ci,Fi,Nr,Ai,jo,xt,Ni,xo,gt,ut,C,_,function(Ue){Vi[Ue?"unshift":"push"](function(){e(5,o=Ue)})},function(Ue){Vi[Ue?"unshift":"push"](function(){e(4,r=Ue)})},function(Ue){Vi[Ue?"unshift":"push"](function(){e(3,i=Ue)})}]}var Jo,ro,Gu,Xd,Wu,qc,CQ=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,R7e,L7e,ys,{isTabbable:22,show:23,id:24,key:25,ariaLabel:26,ariaLabelledBy:27,closeButton:28,closeOnEsc:29,closeOnOuterClick:30,styleBg:31,styleWindowWrap:32,styleWindow:33,styleContent:34,styleCloseButton:35,classBg:36,classWindowWrap:37,classWindow:38,classContent:39,classCloseButton:40,unstyled:0,setContext:41,transitionBg:42,transitionBgProps:43,transitionWindow:44,transitionWindowProps:45,disableFocusTrap:46},O7e,[-1,-1,-1]),r}return Se(e)}();(function(t){t.text="text",t.tree="tree",t.table="table"})(Jo||(Jo={})),function(t){t.after="after",t.inside="inside",t.key="key",t.value="value",t.multi="multi"}(ro||(ro={})),function(t){t.after="after",t.key="key",t.value="value",t.inside="inside"}(Gu||(Gu={})),function(t){t.info="info",t.warning="warning",t.error="error"}(Xd||(Xd={})),function(t){t.key="key",t.value="value"}(Wu||(Wu={})),function(t){t.asc="asc",t.desc="desc"}(qc||(qc={}));var wm=[{start:0,end:100}],Cm={closeButton:!1,classBg:"jse-modal-bg",classWindow:"jse-modal-window",classWindowWrap:"jse-modal-window-wrap",classContent:"jse-modal-content"},$7e=Ze(Ze({},Cm),{},{classWindow:"jse-modal-window jse-modal-window-sort"}),B7e=Ze(Ze({},Cm),{},{classWindow:"jse-modal-window jse-modal-window-transform"}),kQ=Ze(Ze({},Cm),{},{classWindow:"jse-modal-window jse-modal-window-jsoneditor"}),_F="Insert or paste contents, enter [ insert a new array, enter { to insert a new object, or start typing to insert a new value",xF="Open context menu (Click here, right click on the selection, or use the context menu button or Ctrl+Q)",V7e="NO",wF="SELF",CF="NEXT_INSIDE",H7e=(ql(lF={},qc.asc,"ascending"),ql(lF,qc.desc,"descending"),lF),z7e=0;function fb(){return++z7e}function Uf(t){return(Uf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function oo(t){return Array.isArray(t)}function Mo(t){return null!==t&&"object"===Uf(t)&&t.constructor===Object}function SQ(t){return!(!t||"object"!==Uf(t))&&"add"===t.op}function DQ(t){return!(!t||"object"!==Uf(t))&&"remove"===t.op}function kF(t){return!(!t||"object"!==Uf(t))&&"replace"===t.op}function SF(t){return!(!t||"object"!==Uf(t))&&"copy"===t.op}function Mv(t){return!(!t||"object"!==Uf(t))&&"move"===t.op}function DF(t){return(DF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function U7e(t,n){return t===n}function TQ(t){return t.slice(0,t.length-1)}function EQ(t){return"object"===DF(t)&&null!==t}function pb(t){return(pb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function AQ(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,i)}return e}function G7e(t,n,e){return r=function(o,s){if("object"!==pb(o)||null===o)return o;var a=o[Symbol.toPrimitive];if(void 0!==a){var l=a.call(o,"string");if("object"!==pb(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(o)}(n),(n="symbol"===pb(r)?r:String(r))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t;var r}function TF(t){if(oo(t)){var n=t.slice();return Object.getOwnPropertySymbols(t).forEach(function(i){n[i]=t[i]}),n}if(Mo(t)){var e=function(i){for(var r=1;r3&&void 0!==arguments[3]&&arguments[3];if(0===n.length)return e;var r=n[0],o=qu(t?t[r]:void 0,n.slice(1),e,i);if(Mo(t)||oo(t))return EF(t,r,o);if(i){var s=W7e.test(r)?[]:{};return s[r]=o,s}throw new Error("Path does not exist")}var W7e=/^\d+$/;function MQ(t,n,e){if(0===n.length)return e(t);if(!EQ(t))throw new Error("Path doesn't exist");var i=n[0];return EF(t,i,MQ(t[i],n.slice(1),e))}function AF(t,n){if(0===n.length)return t;if(!EQ(t))throw new Error("Path does not exist");if(1===n.length){var e=n[0];if(e in t){var i=TF(t);return oo(i)&&i.splice(parseInt(e),1),Mo(i)&&delete i[e],i}return t}var r=n[0];return EF(t,r,AF(t[r],n.slice(1)))}function MF(t,n,e){var i=n.slice(0,n.length-1),r=n[n.length-1];return MQ(t,i,function(o){if(!Array.isArray(o))throw new TypeError("Array expected at path "+JSON.stringify(i));var s=TF(o);return s.splice(parseInt(r),0,e),s})}function Xc(t,n){return void 0!==t&&(0===n.length||null!==t&&Xc(t[n[0]],n.slice(1)))}function Xu(t){var n=t.split("/");return n.shift(),n.map(function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")})}function ln(t){return t.map(IQ).join("")}function IQ(t){return"/"+String(t).replace(/~/g,"~0").replace(/\//g,"~1")}function IF(t,n){return t+IQ(n)}function Iv(t,n){return t.startsWith(n)&&(t.length===n.length||"/"===t[n.length])}function Yu(t,n,e){for(var i=t,r=0;rt.length)&&(n=t.length);for(var e=0,i=new Array(n);e2&&void 0!==arguments[2]?arguments[2]:U7e;if(p.length=0?G=function(){var z="",U=!0;"-"==t[s]&&(z+=h()),z+="0"==t[s]?h():m(),"."==t[s]&&(z+=h()+m(),U=!1),"e"!=t[s]&&"E"!=t[s]||(z+=h(),"+"!=t[s]&&"-"!=t[s]||(z+=h()),z+=m(),U=!1);var q=+z;return a&&U&&(q>Number.MAX_SAFE_INTEGER||q="a"&&G<="f"?$+=G.charCodeAt()-n9e+10:G>="0"&&G<="9"?$+=+G:C()}return String.fromCharCode($)}function m(){for(var M="";t[s]>="0"&&t[s]<="9";)M+=h();if(M.length)return M;S(),_()}function g(M,$){v(M,$,y())}function v(M,$,G){i[M]=i[M]||{},i[M][$]=G}function y(){return{line:r,column:o,pos:s}}function _(){throw new SyntaxError("Unexpected token "+t[s]+" in JSON at position "+s)}function C(){f(),_()}function S(){if(s>=t.length)throw new SyntaxError("Unexpected end of JSON input")}},O2.stringify=function(t,n,e){if(j2(t)){var i,r,o=0,s="object"==bn(e)?e.space:e;switch(bn(s)){case"number":var a=s>10?10:s<0?0:Math.floor(s);s=a&&y(a," "),i=a,r=a;break;case"string":s=s.slice(0,10),i=0,r=0;for(var l=0;l=0}var r9e=/"|\\/g,o9e=/[\b]/g,s9e=/\f/g,a9e=/\n/g,l9e=/\r/g,c9e=/\t/g;function P2(t){return'"'+(t=t.replace(r9e,"\\$&").replace(s9e,"\\f").replace(o9e,"\\b").replace(a9e,"\\n").replace(l9e,"\\r").replace(c9e,"\\t"))+'"'}var u9e=/~/g,d9e=/\//g;function OF(t){return t.replace(u9e,"~0").replace(d9e,"~1")}function jF(t){return(jF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function PF(t){var n="function"==typeof Map?new Map:void 0;return PF=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return LF(e,arguments,vb(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),gb(r,e)},PF(t)}function LF(t,n,e){return(LF=RQ()?Reflect.construct.bind():function(i,r,o){var s=[null];s.push.apply(s,r);var a=new(Function.bind.apply(i,s));return o&&gb(a,o.prototype),a}).apply(null,arguments)}function RQ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function gb(t,n){return(gb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,i){return e.__proto__=i,e})(t,n)}function vb(t){return(vb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}var Gf=function(t){!function(l,c){if("function"!=typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(c&&c.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),c&&gb(l,c)}(a,PF(Error));var n,e,i,s=(n=a,e=RQ(),function(){var l,c=vb(n);if(e){var u=vb(this).constructor;l=Reflect.construct(c,arguments,u)}else l=c.apply(this,arguments);return function h9e(t,n){if(n&&("object"===jF(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}(this,l)});function a(l,c){var u;return function(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}(this,a),(u=s.call(this,l+" at position "+c)).position=c,u}return i=a,Object.defineProperty(i,"prototype",{writable:!1}),i}();function L2(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function R2(t){return t>=48&&t<=57}function f9e(t){return t>=32&&t<=1114111}var p9e=/^[,:[\]{}()\n]$/;function $Q(t){return m9e.test(t)||t&&B2(t.charCodeAt(0))}var m9e=/^[[{\w-]$/;function g9e(t){return 10===t||13===t||9===t||8===t||12===t}function $2(t){return 32===t||10===t||9===t||13===t}function v9e(t){return 160===t||t>=8192&&t<=8202||8239===t||8287===t||12288===t}function B2(t){return BQ(t)||RF(t)}function BQ(t){return 34===t||8220===t||8221===t}function RF(t){return 39===t||8216===t||8217===t||96===t||180===t}function yb(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t.lastIndexOf(n);return-1!==i?t.substring(0,i)+(e?"":t.substring(i+1)):t}function km(t,n){var e=t.length;if(!$2(t.charCodeAt(e-1)))return t+n;for(;$2(t.charCodeAt(e-1));)e--;return t.substring(0,e)+n+t.substring(e)}function y9e(t,n,e){return t.substring(0,n)+t.substring(n+e)}var b9e={"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},_9e={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function Yd(t){var n=0,e="";r()||function(){throw new Gf("Unexpected end of json string",t.length)}();var i=l(44);if(i&&o(),$Q(t[n])&&/[,\n][ \t\r]*$/.test(e)?(i||(e=km(e,",")),function(){for(var _=!0,C=!0;C;)_?_=!1:l(44)||(e=km(e,",")),C=r();C||(e=yb(e,",")),e="[\n".concat(e,"\n]")}()):i&&(e=yb(e,",")),n>=t.length)return e;function r(){o();var _=function(){if(123===t.charCodeAt(n)){e+="{",n++,o();for(var C=!0;n=49&&S<=57)for(n++;R2(t.charCodeAt(n));)n++;if(46===t.charCodeAt(n))for(n++,f(C);R2(t.charCodeAt(n));)n++;if(101===t.charCodeAt(n)||69===t.charCodeAt(n))for(n++,45!==t.charCodeAt(n)&&43!==t.charCodeAt(n)||n++,f(C);R2(t.charCodeAt(n));)n++;return n>C&&(e+=t.slice(C,n),!0)}()||d("true","true")||d("false","false")||d("null","null")||d("True","true")||d("False","false")||d("None","null")||h();return o(),_}function o(){var _=n,C=s();do{(C=a())&&(C=s())}while(C);return n>_}function s(){for(var _,C="";(_=$2(t.charCodeAt(n)))||v9e(t.charCodeAt(n));)C+=_?t[n]:" ",n++;return C.length>0&&(e+=C,!0)}function a(){if(47===t.charCodeAt(n)&&42===t.charCodeAt(n+1)){for(;nC){if(40===t.charCodeAt(n))return n++,r(),41===t.charCodeAt(n)&&(n++,59===t.charCodeAt(n)&&n++),!0;for(;$2(t.charCodeAt(n-1))&&n>0;)n--;var S=t.slice(C,n);return e+=JSON.stringify(S),!0}}function f(_){if(!R2(t.charCodeAt(n))){var C=t.slice(_,n);throw new Gf("Invalid number '".concat(C,"', expecting a digit ").concat(t[n]?"but got '".concat(t[n],"'"):"but reached end of input"),2)}}function p(_){throw new Gf("Invalid character "+JSON.stringify(_),n)}function m(){throw new Gf("Object key expected",n)}function g(){throw new Gf("Object value expected",n)}function v(){throw new Gf("Colon expected",n)}function y(_){for(var C=_+2;/\w/.test(t[C]);)C++;var S=t.slice(_,C);throw new Gf('Invalid unicode character "'.concat(S,'"'),n)}!function(){throw new Gf("Unexpected character "+JSON.stringify(t[n]),n)}()}function x9e(t,n){return"*"===t[n]&&"/"===t[n+1]}function Ws(t){return parseInt(t,10)}function $F(t){return w9e.test(t)}var w9e=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function Io(t){return"object"===bn(t)&&null!==t&&t.constructor===Object}function Ho(t){return"object"===bn(t)&&null!==t&&(t.constructor===Object||t.constructor===Array)}function BF(t){if("number"==typeof t)return t>9466848e5&&isFinite(t)&&Math.floor(t)===t&&!isNaN(new Date(t).valueOf());if("bigint"==typeof t)return BF(Number(t));try{var n=t&&t.valueOf();if(n!==t)return BF(n)}catch{return!1}return!1}function VQ(t){var n=window.document.createElement("div");n.style.color=t;var e=n.style.color;return""!==e?e.replace(/\s+/g,"").toLowerCase():null}function VF(t,n){if("number"==typeof t||"string"==typeof t||"boolean"==typeof t||void 0===t)return bn(t);if("bigint"==typeof t)return"number";if(null===t)return"null";if(Array.isArray(t))return"array";if(Io(t))return"object";var e=n.stringify(t);return e&&$F(e)?"number":"true"===e||"false"===e?"boolean":"null"===e?"null":"unknown"}var C9e=/^https?:\/\/\S+$/;function V2(t){return"string"==typeof t&&C9e.test(t)}function Fv(t,n){if(""===t)return"";var e=t.trim();return"null"===e?null:"true"===e||"false"!==e&&($F(e)?n.parse(e):t)}var k9e=/^-?[0-9]+$/,zQ="object"==(typeof global>"u"?"undefined":bn(global))&&global&&global.Object===Object&&global,S9e="object"==(typeof self>"u"?"undefined":bn(self))&&self&&self.Object===Object&&self,Ca=zQ||S9e||Function("return this")(),ll=Ca.Symbol,UQ=Object.prototype,D9e=UQ.hasOwnProperty,T9e=UQ.toString,bb=ll?ll.toStringTag:void 0,E9e=Object.prototype.toString,GQ=ll?ll.toStringTag:void 0;function Ml(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":GQ&&GQ in Object(t)?function(n){var e=D9e.call(n,bb),i=n[bb];try{n[bb]=void 0;var r=!0}catch{}var o=T9e.call(n);return r&&(e?n[bb]=i:delete n[bb]),o}(t):E9e.call(t)}function ls(t){return null!=t&&"object"==bn(t)}function Yl(t){return"symbol"==bn(t)||ls(t)&&"[object Symbol]"==Ml(t)}function WQ(t){return"number"==typeof t?t:Yl(t)?NaN:+t}function Ko(t,n){for(var e=-1,i=null==t?0:t.length,r=Array(i);++e0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var lZ=aZ(nZ),K9e=/\{\n\/\* \[wrapped with (.+)\] \*/,Q9e=/,? & /,Z9e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function q2(t){return function(){return t}}var eVe=function(){try{var t=Dm(Object,"defineProperty");return t({},"",{}),t}catch{}}(),X2=eVe,tVe=X2?function(t,n){return X2(t,"toString",{configurable:!0,enumerable:!1,value:q2(n),writable:!0})}:cl,UF=aZ(tVe);function Jc(t,n){for(var e=-1,i=null==t?0:t.length;++e-1}var nVe=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function uZ(t,n,e){var o,i=n+"";return UF(t,function(r,o){var s=o.length;if(!s)return r;var a=s-1;return o[a]=(s>1?"& ":"")+o[a],o=o.join(s>2?", ":" "),r.replace(Z9e,"{\n/* [wrapped with "+o+"] */\n")}(i,function(r,o){return Jc(nVe,function(s){var a="_."+s[0];o&s[1]&&!J2(r,a)&&r.push(a)}),r.sort()}((o=i.match(K9e))?o[1].split(Q9e):[],e)))}function dZ(t,n,e,i,r,o,s,a,l,c){var u=8&n;n|=u?32:64,4&(n&=~(u?64:32))||(n&=-4);var d=[t,n,r,u?o:void 0,u?s:void 0,u?void 0:o,u?void 0:s,a,l,c],h=e.apply(void 0,d);return zF(t)&&lZ(h,d),h.placeholder=i,uZ(h,t,n)}function Pv(t){return t.placeholder}var iVe=/^(?:0|[1-9]\d*)$/;function Zh(t,n){var e=bn(t);return!!(n=n??9007199254740991)&&("number"==e||"symbol"!=e&&iVe.test(t))&&t>-1&&t%1==0&&t1&&y.reverse(),u&&l-1&&t%1==0&&t<=9007199254740991}function Il(t){return null!=t&&Cb(t.length)&&!Kd(t)}function Fl(t,n,e){if(!zo(e))return!1;var i=bn(n);return!!("number"==i?Il(e)&&Zh(n,e.length):"string"==i&&n in e)&&Kc(e[n],t)}function Lv(t){return dr(function(n,e){var i=-1,r=e.length,o=r>1?e[r-1]:void 0,s=r>2?e[2]:void 0;for(o=t.length>3&&"function"==typeof o?(r--,o):void 0,s&&Fl(e[0],e[1],s)&&(o=r<3?void 0:o,r=1),n=Object(n);++i"u"?"undefined":bn(exports))&&exports&&!exports.nodeType&&exports,yZ=vZ&&"object"==(typeof module>"u"?"undefined":bn(module))&&module&&!module.nodeType&&module,bZ=yZ&&yZ.exports===vZ?Ca.Buffer:void 0,nf=(bZ?bZ.isBuffer:void 0)||Q2,Uo={};function Cc(t){return function(n){return t(n)}}Uo["[object Float32Array]"]=Uo["[object Float64Array]"]=Uo["[object Int8Array]"]=Uo["[object Int16Array]"]=Uo["[object Int32Array]"]=Uo["[object Uint8Array]"]=Uo["[object Uint8ClampedArray]"]=Uo["[object Uint16Array]"]=Uo["[object Uint32Array]"]=!0,Uo["[object Arguments]"]=Uo["[object Array]"]=Uo["[object ArrayBuffer]"]=Uo["[object Boolean]"]=Uo["[object DataView]"]=Uo["[object Date]"]=Uo["[object Error]"]=Uo["[object Function]"]=Uo["[object Map]"]=Uo["[object Number]"]=Uo["[object Object]"]=Uo["[object RegExp]"]=Uo["[object Set]"]=Uo["[object String]"]=Uo["[object WeakMap]"]=!1;var _Z="object"==(typeof exports>"u"?"undefined":bn(exports))&&exports&&!exports.nodeType&&exports,Sb=_Z&&"object"==(typeof module>"u"?"undefined":bn(module))&&module&&!module.nodeType&&module,qF=Sb&&Sb.exports===_Z&&zQ.process,Qc=function(){try{return Sb&&Sb.require&&Sb.require("util").types||qF&&qF.binding&&qF.binding("util")}catch{}}(),xZ=Qc&&Qc.isTypedArray,Tm=xZ?Cc(xZ):function(t){return ls(t)&&Cb(t.length)&&!!Uo[Ml(t)]},hVe=Object.prototype.hasOwnProperty;function wZ(t,n){var e=Pi(t),i=!e&&qf(t),r=!e&&!i&&nf(t),o=!e&&!i&&!r&&Tm(t),s=e||i||r||o,a=s?WF(t.length,String):[],l=a.length;for(var c in t)!n&&!hVe.call(t,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Zh(c,l))||a.push(c);return a}function CZ(t,n){return function(e){return t(n(e))}}var fVe=CZ(Object.keys,Object),pVe=Object.prototype.hasOwnProperty;function XF(t){if(!kb(t))return fVe(t);var n=[];for(var e in Object(t))pVe.call(t,e)&&"constructor"!=e&&n.push(e);return n}function qs(t){return Il(t)?wZ(t):XF(t)}var mVe=Object.prototype.hasOwnProperty,gVe=Lv(function(t,n){if(kb(n)||Il(n))Qd(n,qs(n),t);else for(var e in n)mVe.call(n,e)&&wb(t,e,n[e])}),kZ=gVe,vVe=Object.prototype.hasOwnProperty;function Nl(t){return Il(t)?wZ(t,!0):function yVe(t){if(!zo(t))return function(r){var o=[];if(null!=r)for(var s in Object(r))o.push(s);return o}(t);var n=kb(t),e=[];for(var i in t)("constructor"!=i||!n&&vVe.call(t,i))&&e.push(i);return e}(t)}var bVe=Lv(function(t,n){Qd(n,Nl(n),t)}),Z2=bVe,_Ve=Lv(function(t,n,e,i){Qd(n,Nl(n),t,i)}),Rv=_Ve,xVe=Lv(function(t,n,e,i){Qd(n,qs(n),t,i)}),SZ=xVe,wVe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,CVe=/^\w*$/;function YF(t,n){if(Pi(t))return!1;var e=bn(t);return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!Yl(t))||CVe.test(t)||!wVe.test(t)||null!=n&&t in Object(n)}var Db=Dm(Object,"create"),kVe=Object.prototype.hasOwnProperty,SVe=Object.prototype.hasOwnProperty;function Em(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n-1},rf.prototype.set=function(t,n){var e=this.__data__,i=ek(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this};var Tb=Dm(Ca,"Map");function tk(t,n){var i,r,e=t.__data__;return("string"==(r=bn(i=n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==i:null===i)?e["string"==typeof n?"string":"hash"]:e.map}function sf(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n0&&e(a)?n>1?$a(a,n-1,e,i,r):Yf(r,a):i||(r[r.length]=a)}return r}function KF(t){return null!=t&&t.length?$a(t,1):[]}function af(t){return UF(pZ(t,void 0,KF),t+"")}var EZ=af(JF),ik=CZ(Object.getPrototypeOf,Object),AZ=Function.prototype.toString,NVe=Object.prototype.hasOwnProperty,OVe=AZ.call(Object);function Bv(t){if(!ls(t)||"[object Object]"!=Ml(t))return!1;var n=ik(t);if(null===n)return!0;var e=NVe.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&AZ.call(e)==OVe}function rk(t){if(!ls(t))return!1;var n=Ml(t);return"[object Error]"==n||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!Bv(t)}var jVe=dr(function(t,n){try{return wc(t,void 0,n)}catch(e){return rk(e)?e:new Error(e)}}),QF=jVe;function ZF(t,n){var e;if("function"!=typeof n)throw new TypeError("Expected a function");return t=Ui(t),function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=void 0),e}}var eN=dr(function(t,n,e){var i=1;if(e.length){var r=Wf(e,Pv(eN));i|=32}return ef(t,i,n,e,r)});eN.placeholder={};var tN=eN,PVe=af(function(t,n){return Jc(n,function(e){e=Zd(e),tf(t,e,tN(t[e],t))}),t}),MZ=PVe,nN=dr(function(t,n,e){var i=3;if(e.length){var r=Wf(e,Pv(nN));i|=32}return ef(n,i,t,e,r)});nN.placeholder={};var IZ=nN;function Zc(t,n,e){var i=-1,r=t.length;n<0&&(n=-n>r?0:r+n),(e=e>r?r:e)<0&&(e+=r),r=n>e?0:e-n>>>0,n>>>=0;for(var o=Array(r);++i=i?t:Zc(t,n,e)}var LVe=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Vv(t){return LVe.test(t)}var iN="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",rN="\\ud83c[\\udffb-\\udfff]",FZ="[^\\ud800-\\udfff]",NZ="(?:\\ud83c[\\udde6-\\uddff]){2}",OZ="[\\ud800-\\udbff][\\udc00-\\udfff]",jZ="(?:"+iN+"|"+rN+")?",$Ve="[\\ufe0e\\ufe0f]?"+jZ+"(?:\\u200d(?:"+[FZ,NZ,OZ].join("|")+")[\\ufe0e\\ufe0f]?"+jZ+")*",BVe="(?:"+[FZ+iN+"?",iN,NZ,OZ,"[\\ud800-\\udfff]"].join("|")+")",VVe=RegExp(rN+"(?="+rN+")|"+BVe+$Ve,"g");function Ku(t){return Vv(t)?function(n){return n.match(VVe)||[]}(t):function(n){return n.split("")}(t)}function PZ(t){return function(n){var e=Vv(n=Jr(n))?Ku(n):void 0,i=e?e[0]:n.charAt(0),r=e?Jf(e,1).join(""):n.slice(1);return i[t]()+r}}var ok=PZ("toUpperCase");function oN(t){return ok(Jr(t).toLowerCase())}function sN(t,n,e,i){var r=-1,o=null==t?0:t.length;for(i&&o&&(e=t[++r]);++r=n?t:n)),t}function JZ(t,n,e){return void 0===e&&(e=n,n=void 0),void 0!==e&&(e=(e=xc(e))==e?e:0),void 0!==n&&(n=(n=xc(n))==n?n:0),Mm(xc(t),n,e)}function Qu(t){var n=this.__data__=new rf(t);this.size=n.size}function KZ(t,n){return t&&Qd(n,qs(n),t)}Qu.prototype.clear=function(){this.__data__=new rf,this.size=0},Qu.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},Qu.prototype.get=function(t){return this.__data__.get(t)},Qu.prototype.has=function(t){return this.__data__.has(t)},Qu.prototype.set=function(t,n){var e=this.__data__;if(e instanceof rf){var i=e.__data__;if(!Tb||i.length<199)return i.push([t,n]),this.size=++e.size,this;e=this.__data__=new sf(i)}return e.set(t,n),this.size=e.size,this};var QZ="object"==(typeof exports>"u"?"undefined":bn(exports))&&exports&&!exports.nodeType&&exports,ZZ=QZ&&"object"==(typeof module>"u"?"undefined":bn(module))&&module&&!module.nodeType&&module,eee=ZZ&&ZZ.exports===QZ?Ca.Buffer:void 0,tee=eee?eee.allocUnsafe:void 0;function nee(t,n){if(n)return t.slice();var e=t.length,i=tee?tee(e):new t.constructor(e);return t.copy(i),i}function Kf(t,n){for(var e=-1,i=null==t?0:t.length,r=0,o=[];++ea))return!1;var c=o.get(t),u=o.get(n);if(c&&u)return c==n&&u==t;var d=-1,h=!0,f=2&e?new Fm:void 0;for(o.set(t,n),o.set(n,t);++d=n||C<0||d&&_-c>=o}function g(){var C,S,_=Mb();if(m(_))return v(_);a=setTimeout(g,(S=n-((C=_)-l),d?CHe(S,o-(C-c)):S))}function v(_){return a=void 0,h&&i?f(_):(i=r=void 0,s)}function y(){var _=Mb(),C=m(_);if(i=arguments,r=this,l=_,C){if(void 0===a)return function p(_){return c=_,a=setTimeout(g,n),u?f(_):s}(l);if(d)return clearTimeout(a),a=setTimeout(g,n),f(l)}return void 0===a&&(a=setTimeout(g,n)),s}return n=xc(n)||0,zo(e)&&(u=!!e.leading,o=(d="maxWait"in e)?wHe(xc(e.maxWait)||0,n):o,h="trailing"in e?!!e.trailing:h),y.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=l=r=a=void 0},y.flush=function(){return void 0===a?s:v(Mb())},y}function Nee(t,n){return null==t||t!=t?n:t}var Oee=Object.prototype,kHe=Oee.hasOwnProperty,SHe=dr(function(t,n){t=Object(t);var e=-1,i=n.length,r=i>2?n[2]:void 0;for(r&&Fl(n[0],n[1],r)&&(i=1);++e=200&&(o=Eb,s=!1,n=new Fm(n));e:for(;++r=0&&t.slice(e,r)==n}function Qee(t){return function(n){var i,r,o,e=eh(n);return"[object Map]"==e?CN(n):"[object Set]"==e?(i=n,r=-1,o=Array(i.size),i.forEach(function(s){o[++r]=[s,s]}),o):function(i,r){return Ko(r,function(o){return[o,i[o]]})}(n,t(n))}}var vk=Qee(qs),yk=Qee(Nl),NHe=aN({"&":"&","<":"<",">":">",'"':""","'":"'"}),Zee=/[&<>"']/g,OHe=RegExp(Zee.source);function PN(t){return(t=Jr(t))&&OHe.test(t)?t.replace(Zee,NHe):t}var ete=/[\\^$.*+?()[\]{}|]/g,jHe=RegExp(ete.source);function tte(t){return(t=Jr(t))&&jHe.test(t)?t.replace(ete,"\\$&"):t}function nte(t,n){for(var e=-1,i=null==t?0:t.length;++ec?0:c+a),(l=void 0===l||l>c?c:Ui(l))<0&&(l+=c),l=a>l?0:LN(l);a-1?r[o?n[s]:s]:void 0}}var LHe=Math.max;function RN(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=null==e?0:Ui(e);return r<0&&(r=LHe(i+r,0)),Y2(t,Li(n),r)}var lte=ate(RN);function cte(t,n,e){var i;return e(t,function(r,o,s){if(n(r,o,s))return i=o,!1}),i}function ute(t,n){return cte(t,Li(n),th)}var RHe=Math.max,$He=Math.min;function $N(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=i-1;return void 0!==e&&(r=Ui(e),r=e<0?RHe(i+r,0):$He(r,i-1)),Y2(t,Li(n),r,!0)}var dte=ate($N);function hte(t,n){return cte(t,Li(n),jN)}function sa(t){return t&&t.length?t[0]:void 0}function fte(t,n){var e=-1,i=Il(t)?Array(t.length):[];return Qf(t,function(r,o,s){i[++e]=n(r,o,s)}),i}function Wv(t,n){return(Pi(t)?Ko:fte)(t,Li(n))}function pte(t,n){return $a(Wv(t,n),1)}function mte(t,n){return $a(Wv(t,n),1/0)}function gte(t,n,e){return e=void 0===e?1:Ui(e),$a(Wv(t,n),e)}function vte(t){return null!=t&&t.length?$a(t,1/0):[]}function yte(t,n){return null!=t&&t.length?$a(t,n=void 0===n?1:Ui(n)):[]}function bte(t){return ef(t,512)}var _te=uN("floor");function xte(t){return af(function(n){var e=n.length,i=e,r=Yc.prototype.thru;for(t&&n.reverse();i--;){var o=n[i];if("function"!=typeof o)throw new TypeError("Expected a function");if(r&&!s&&"wrapper"==W2(o))var s=new Yc([],!0)}for(i=s?i:e;++in}function _k(t){return function(n,e){return"string"==typeof n&&"string"==typeof e||(n=xc(n),e=xc(e)),t(n,e)}}var Ite=_k(BN),Fte=_k(function(t,n){return t>=n}),HHe=Object.prototype.hasOwnProperty;function zHe(t,n){return null!=t&&HHe.call(t,n)}function Nte(t,n){return null!=t&&Cee(t,n,zHe)}var UHe=Math.max,GHe=Math.min;function Ote(t,n,e){return n=Jd(n),void 0===e?(e=n,n=0):e=Jd(e),(i=t=xc(t))>=GHe(r=n,o=e)&&i-1:!!r&&jv(t,n,e)>-1}var qHe=Math.max;function Pte(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=null==e?0:Ui(e);return r<0&&(r=qHe(i+r,0)),jv(t,n,r)}function Xi(t){return null!=t&&t.length?Zc(t,0,-1):[]}var XHe=Math.min;function HN(t,n,e){for(var i=e?ON:J2,r=t[0].length,o=t.length,s=o,a=Array(o),l=1/0,c=[];s--;){var u=t[s];s&&n&&(u=Ko(u,Cc(n))),l=XHe(u.length,l),a[s]=!e&&(n||r>=120&&u.length>=120)?new Fm(s&&u):void 0}u=t[0];var d=-1,h=a[0];e:for(;++d=-9007199254740991&&t<=9007199254740991}function cne(t){return void 0===t}function une(t){return ls(t)&&"[object WeakMap]"==eh(t)}function dne(t){return ls(t)&&"[object WeakSet]"==Ml(t)}function hne(t){return Li("function"==typeof t?t:eu(t,1))}var oze=Array.prototype.join;function fne(t,n){return null==t?"":oze.call(t,n)}var sze=zv(function(t,n,e){return t+(e?"-":"")+n.toLowerCase()}),pne=sze,aze=dk(function(t,n,e){tf(t,e,n)}),mne=aze,lze=Math.max,cze=Math.min;function gne(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=i;return void 0!==e&&(r=(r=Ui(e))<0?lze(i+r,0):cze(r,i-1)),n==n?function(o,s,a){for(var l=a+1;l--;)if(o[l]===s)return l;return l}(t,n,r):Y2(t,cZ,r,!0)}var uze=zv(function(t,n,e){return t+(e?" ":"")+n.toLowerCase()}),vne=uze,yne=PZ("toLowerCase");function WN(t,n){return t=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}}function One(t,n){var e=t.length;if(e)return Zh(n+=n<0?e:0,e)?t[n]:void 0}function jne(t,n){return t&&t.length?One(t,Ui(n)):void 0}function Pne(t){return t=Ui(t),dr(function(n){return One(n,t)})}function ZN(t,n){return null==(t=Ute(t,n=Xf(n,t)))||delete t[Zd(Ln(n))]}function pze(t){return Bv(t)?void 0:t}var mze=af(function(t,n){var e={};if(null==t)return e;var i=!1;n=Ko(n,function(o){return o=Xf(o,t),i||(i=o.length>1),o}),Qd(t,pN(t),e),i&&(e=eu(e,7,pze));for(var r=n.length;r--;)ZN(e,n[r]);return e}),Lne=mze;function jb(t,n,e,i){if(!zo(t))return t;for(var r=-1,o=(n=Xf(n,t)).length,s=o-1,a=t;null!=a&&++rn||o&&s&&l&&!a&&!c||i&&s&&l||!e&&l||!r)return 1;if(!i&&!o&&!c&&t=p?m:m*("desc"==c[u]?-1:1)}return a.index-l.index}(o,s,e)});a--;)o[a]=o[a].value;return o}(fte(t,function(o,s,a){return{criteria:Ko(n,function(c){return c(o)}),index:++i,value:o}}))}function zne(t,n,e,i){return null==t?[]:(Pi(n)||(n=null==n?[]:[n]),Pi(e=i?void 0:e)||(e=null==e?[]:[e]),Hne(t,n,e))}function tO(t){return af(function(n){return n=Ko(n,Cc(Li)),dr(function(e){var i=this;return t(n,function(r){return wc(r,i,e)})})})}var Une=tO(Ko),vze=Math.min,yze=dr(function(t,n){var e=(n=1==n.length&&Pi(n[0])?Ko(n[0],Cc(Li)):Ko($a(n,1),Cc(Li))).length;return dr(function(i){for(var r=-1,o=vze(i.length,e);++r9007199254740991)return e;do{n%2&&(e+=t),(n=bze(n/2))&&(t+=t)}while(n);return e}var _ze=TN("length"),iO="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",rO="\\ud83c[\\udffb-\\udfff]",Xne="[^\\ud800-\\udfff]",Yne="(?:\\ud83c[\\udde6-\\uddff]){2}",Jne="[\\ud800-\\udbff][\\udc00-\\udfff]",Kne="(?:"+iO+"|"+rO+")?",wze="[\\ufe0e\\ufe0f]?"+Kne+"(?:\\u200d(?:"+[Xne,Yne,Jne].join("|")+")[\\ufe0e\\ufe0f]?"+Kne+")*",Cze="(?:"+[Xne+iO+"?",iO,Yne,Jne,"[\\ud800-\\udfff]"].join("|")+")",Qne=RegExp(rO+"(?="+rO+")|"+Cze+wze,"g");function Jv(t){return Vv(t)?function(n){for(var e=Qne.lastIndex=0;Qne.test(n);)++e;return e}(t):_ze(t)}var kze=Math.ceil;function Ck(t,n){var e=(n=void 0===n?" ":_c(n)).length;if(e<2)return e?nO(n,t):n;var i=nO(n,kze(t/Jv(n)));return Vv(n)?Jf(Ku(i),0,t).join(""):i.slice(0,t)}var Sze=Math.ceil,Dze=Math.floor;function Zne(t,n,e){t=Jr(t);var i=(n=Ui(n))?Jv(t):0;if(!n||i>=n)return t;var r=(n-i)/2;return Ck(Dze(r),e)+t+Ck(Sze(r),e)}function eie(t,n,e){t=Jr(t);var i=(n=Ui(n))?Jv(t):0;return n&&i-1;)a!==t&&sie.call(a,l,1),sie.call(t,l,1);return t}function dO(t,n){return t&&t.length&&n&&n.length?uO(t,n):t}var aie=dr(dO);function lie(t,n,e){return t&&t.length&&n&&n.length?uO(t,n,Li(e)):t}function cie(t,n,e){return t&&t.length&&n&&n.length?uO(t,n,void 0,e):t}var Fze=Array.prototype.splice;function uie(t,n){for(var e=t?n.length:0,i=e-1;e--;){var r=n[e];if(e==i||r!==o){var o=r;Zh(r)?Fze.call(t,r,1):ZN(t,r)}}return t}var Nze=af(function(t,n){var e=null==t?0:t.length,i=JF(t,n);return uie(t,Ko(n,function(r){return Zh(r,e)?+r:r}).sort(Vne)),i}),die=Nze,Oze=Math.floor,jze=Math.random;function hO(t,n){return t+Oze(jze()*(n-t+1))}var Pze=parseFloat,Lze=Math.min,Rze=Math.random;function hie(t,n,e){if(e&&"boolean"!=typeof e&&Fl(t,n,e)&&(n=e=void 0),void 0===e&&("boolean"==typeof n?(e=n,n=void 0):"boolean"==typeof t&&(e=t,t=void 0)),void 0===t&&void 0===n?(t=0,n=1):(t=Jd(t),void 0===n?(n=t,t=0):n=Jd(n)),t>n){var i=t;t=n,n=i}if(e||t%1||n%1){var r=Rze();return Lze(t+r*(n-t+Pze("1e-"+((r+"").length-1))),n)}return hO(t,n)}var $ze=Math.ceil,Bze=Math.max;function fie(t){return function(n,e,i){return i&&"number"!=typeof i&&Fl(n,e,i)&&(e=i=void 0),n=Jd(n),void 0===e?(e=n,n=0):e=Jd(e),function(r,o,s,a){for(var l=-1,c=Bze($ze((o-r)/(s||1)),0),u=Array(c);c--;)u[a?c:++l]=r,r+=s;return u}(n,e,i=void 0===i?n1&&Fl(t,n[0],n[1])?n=[]:e>2&&Fl(n[0],n[1],n[2])&&(n=[n[0]]),Hne(t,$a(n,1),[])}),pO=Kze,Qze=Math.floor,Zze=Math.min;function mO(t,n,e,i){var r=0,o=null==t?0:t.length;if(0===o)return 0;for(var s=(n=e(n))!=n,a=null===n,l=Yl(n),c=void 0===n;r>>1,s=t[o];null!==s&&!Yl(s)&&(e?s<=n:s>>0)?(t=Jr(t))&&("string"==typeof n||null!=n&&!xk(n))&&!(n=_c(n))&&Vv(t)?Jf(Ku(t),0,e):t.split(n,e):[]}var eUe=Math.max;function Wie(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return n=null==n?0:eUe(Ui(n),0),dr(function(e){var i=e[n],r=Jf(e,0,n);return i&&Yf(r,i),wc(t,this,r)})}var tUe=zv(function(t,n,e){return t+(e?" ":"")+ok(n)}),qie=tUe;function Xie(t,n,e){return t=Jr(t),e=null==e?0:Mm(Ui(e),0,t.length),n=_c(n),t.slice(e,e+n.length)==n}function Yie(){return{}}function Jie(){return""}function Kie(){return!0}var Qie=H2(function(t,n){return t-n},0);function Zie(t){return t&&t.length?XN(t,cl):0}function ere(t,n){return t&&t.length?XN(t,Li(n)):0}function tre(t){var n=null==t?0:t.length;return n?Zc(t,1,n):[]}function nre(t,n,e){return t&&t.length?Zc(t,0,(n=e||void 0===n?1:Ui(n))<0?0:n):[]}function ire(t,n,e){var i=null==t?0:t.length;return i?Zc(t,(n=i-(n=e||void 0===n?1:Ui(n)))<0?0:n,i):[]}function rre(t,n){return t&&t.length?mk(t,Li(n),!1,!0):[]}function ore(t,n){return t&&t.length?mk(t,Li(n)):[]}function sre(t,n){return n(t),t}var are=Object.prototype,nUe=are.hasOwnProperty;function lre(t,n,e,i){return void 0===t||Kc(t,are[e])&&!nUe.call(i,e)?n:t}var iUe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function rUe(t){return"\\"+iUe[t]}var cre=/<%=([\s\S]+?)%>/g,Tk={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:cre,variable:"",imports:{_:{escape:PN}}},oUe=/\b__p \+= '';/g,sUe=/\b(__p \+=) '' \+/g,aUe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,lUe=/[()=,{}\[\]\/\s]/,cUe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ek=/($^)/,uUe=/['\n\r\u2028\u2029\\]/g,ure=Object.prototype.hasOwnProperty;function dre(t,n,e){var i=Tk.imports._.templateSettings||Tk;e&&Fl(t,n,e)&&(n=void 0),t=Jr(t),n=Rv({},n,i,lre);var r,o,s=Rv({},n.imports,i.imports,lre),a=qs(s),l=VN(s,a),c=0,u=n.interpolate||Ek,d="__p += '",h=RegExp((n.escape||Ek).source+"|"+u.source+"|"+(u===cre?cUe:Ek).source+"|"+(n.evaluate||Ek).source+"|$","g"),f=ure.call(n,"sourceURL")?"//# sourceURL="+(n.sourceURL+"").replace(/\s/g," ")+"\n":"";t.replace(h,function(g,v,y,_,C,S){return y||(y=_),d+=t.slice(c,S).replace(uUe,rUe),v&&(r=!0,d+="' +\n__e("+v+") +\n'"),C&&(o=!0,d+="';\n"+C+";\n__p += '"),y&&(d+="' +\n((__t = ("+y+")) == null ? '' : __t) +\n'"),c=S+g.length,g}),d+="';\n";var p=ure.call(n,"variable")&&n.variable;if(p){if(lUe.test(p))throw new Error("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(o?d.replace(oUe,""):d).replace(sUe,"$1").replace(aUe,"$1;"),d="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=QF(function(){return Function(a,f+"return "+d).apply(void 0,l)});if(m.source=d,rk(m))throw m;return m}function gO(t,n,e){var i=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return zo(e)&&(i="leading"in e?!!e.leading:i,r="trailing"in e?!!e.trailing:r),Gv(t,n,{leading:i,maxWait:n,trailing:r})}function Kv(t,n){return n(t)}var dUe=Math.min;function vO(t,n){if((t=Ui(t))<1||t>9007199254740991)return[];var e=4294967295,i=dUe(t,4294967295);t-=4294967295;for(var r=WF(i,n=nh(n));++e-1;);return e}function bre(t,n){for(var e=-1,i=t.length;++e-1;);return e}function _re(t,n,e){if((t=Jr(t))&&(e||void 0===n))return KQ(t);if(!t||!(n=_c(n)))return t;var i=Ku(t),r=Ku(n);return Jf(i,bre(i,r),yre(i,r)+1).join("")}function xre(t,n,e){if((t=Jr(t))&&(e||void 0===n))return t.slice(0,JQ(t)+1);if(!t||!(n=_c(n)))return t;var i=Ku(t);return Jf(i,0,yre(i,Ku(n))+1).join("")}var hUe=/^\s+/;function wre(t,n,e){if((t=Jr(t))&&(e||void 0===n))return t.replace(hUe,"");if(!t||!(n=_c(n)))return t;var i=Ku(t);return Jf(i,bre(i,Ku(n))).join("")}var fUe=/\w*$/;function Cre(t,n){var e=30,i="...";if(zo(n)){var r="separator"in n?n.separator:r;e="length"in n?Ui(n.length):e,i="omission"in n?_c(n.omission):i}var o=(t=Jr(t)).length;if(Vv(t)){var s=Ku(t);o=s.length}if(e>=o)return t;var a=e-Jv(i);if(a<1)return i;var l=s?Jf(s,0,a).join(""):t.slice(0,a);if(void 0===r)return l+i;if(s&&(a+=l.length-a),xk(r)){if(t.slice(a).search(r)){var c,u=l;for(r.global||(r=RegExp(r.source,Jr(fUe.exec(r))+"g")),r.lastIndex=0;c=r.exec(u);)var d=c.index;l=l.slice(0,void 0===d?a:d)}}else if(t.indexOf(_c(r),a)!=a){var h=l.lastIndexOf(r);h>-1&&(l=l.slice(0,h))}return l+i}function kre(t){return GF(t,1)}var pUe=aN({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Sre=/&(?:amp|lt|gt|quot|#39);/g,mUe=RegExp(Sre.source);function Dre(t){return(t=Jr(t))&&mUe.test(t)?t.replace(Sre,pUe):t}var gUe=Uv&&1/lk(new Uv([,-0]))[1]==1/0?function(t){return new Uv(t)}:go,vUe=gUe;function Zf(t,n,e){var i=-1,r=J2,o=t.length,s=!0,a=[],l=a;if(e)s=!1,r=ON;else if(o>=200){var c=n?null:vUe(t);if(c)return lk(c);s=!1,r=Eb,l=new Fm}else l=n?[]:a;e:for(;++i1||this.__actions__.length)&&i instanceof Tr&&Zh(e)?((i=i.slice(e,+e+(n?1:0))).__actions__.push({func:Kv,args:[r],thisArg:void 0}),new Yc(i,this.__chain__).thru(function(o){return n&&!o.length&&o.push(void 0),o})):this.thru(r)}),Vre=CUe;function Hre(){return dN(this)}function zre(){var t=this.__wrapped__;if(t instanceof Tr){var n=t;return this.__actions__.length&&(n=new Tr(this)),(n=n.reverse()).__actions__.push({func:Kv,args:[kk],thisArg:void 0}),new Yc(n,this.__chain__)}return this.thru(kk)}function _O(t,n,e){var i=t.length;if(i<2)return i?Zf(t[0]):[];for(var r=-1,o=Array(i);++r1?t[n-1]:void 0;return e="function"==typeof e?(t.pop(),e):void 0,bO(t,e)}),Kre=SUe,Gn={chunk:YZ,compact:mee,concat:gee,difference:Vee,differenceBy:Hee,differenceWith:zee,drop:Gee,dropRight:Wee,dropRightWhile:qee,dropWhile:Xee,fill:rte,findIndex:RN,findLastIndex:$N,first:sa,flatten:KF,flattenDeep:vte,flattenDepth:yte,fromPairs:Ete,head:sa,indexOf:Pte,initial:Xi,intersection:Lte,intersectionBy:Rte,intersectionWith:$te,join:fne,last:Ln,lastIndexOf:gne,nth:jne,pull:aie,pullAll:dO,pullAllBy:lie,pullAllWith:cie,pullAt:die,remove:_ie,reverse:kk,slice:Nie,sortedIndex:Pie,sortedIndexBy:Lie,sortedIndexOf:Rie,sortedLastIndex:$ie,sortedLastIndexBy:Bie,sortedLastIndexOf:Vie,sortedUniq:zie,sortedUniqBy:Uie,tail:tre,take:nre,takeRight:ire,takeRightWhile:rre,takeWhile:ore,union:Tre,unionBy:Ere,unionWith:Are,uniq:Mre,uniqBy:Ire,uniqWith:Fre,unzip:Ak,unzipWith:bO,without:$re,xor:Ure,xorBy:Gre,xorWith:Wre,zip:qre,zipObject:Yre,zipObjectDeep:Jre,zipWith:Kre},vo={countBy:Iee,each:gk,eachRight:Fb,every:ite,filter:ste,find:lte,findLast:dte,flatMap:pte,flatMapDeep:mte,flatMapDepth:gte,forEach:gk,forEachRight:Fb,groupBy:qv,includes:jte,invokeMap:Wte,keyBy:mne,map:Wv,orderBy:zne,partition:lO,reduce:vie,reduceRight:yie,reject:bie,sample:Tie,sampleSize:Eie,shuffle:Iie,size:Fie,some:jie,sortBy:pO},DUe={now:Mb},_s={after:QQ,ary:GF,before:ZF,bind:tN,bindKey:IZ,curry:hk,curryRight:fk,debounce:Gv,defer:$ee,delay:Bee,flip:bte,memoize:$v,negate:Yv,once:Bne,overArgs:Gne,partial:sO,partialRight:iie,rearg:mie,rest:Cie,spread:Wie,throttle:gO,unary:kre,wrap:Bre},mi={castArray:qZ,clone:hee,cloneDeep:fee,cloneDeepWith:_N,cloneWith:pee,conformsTo:Eee,eq:Kc,gt:Ite,gte:Fte,isArguments:qf,isArray:Pi,isArrayBuffer:Xte,isArrayLike:Il,isArrayLikeObject:bs,isBoolean:Yte,isBuffer:nf,isDate:Kte,isElement:Qte,isEmpty:Hi,isEqual:or,isEqualWith:Zte,isError:rk,isFinite:ene,isFunction:Kd,isInteger:UN,isLength:Cb,isMap:yN,isMatch:tne,isMatchWith:nne,isNaN:ine,isNative:rne,isNil:one,isNull:sne,isNumber:GN,isObject:zo,isObjectLike:ls,isPlainObject:Bv,isRegExp:xk,isSafeInteger:lne,isSet:bN,isString:Nb,isSymbol:Yl,isTypedArray:Tm,isUndefined:cne,isWeakMap:une,isWeakSet:dne,lt:bne,lte:_ne,toArray:KN,toFinite:Jd,toInteger:Ui,toLength:LN,toNumber:xc,toPlainObject:FN,toSafeInteger:mre,toString:Jr},Ol={add:YQ,ceil:XZ,divide:Uee,floor:_te,max:kne,maxBy:Sne,mean:Tne,meanBy:Ene,min:Fne,minBy:Xv,multiply:Nne,round:Sie,subtract:Qie,sum:Zie,sumBy:ere},TUe=JZ,EUe=Ote,AUe=hie,Ii={assign:kZ,assignIn:Z2,assignInWith:Rv,assignWith:SZ,at:EZ,create:Fee,defaults:jee,defaultsDeep:Lee,entries:vk,entriesIn:yk,extend:Z2,extendWith:Rv,findKey:ute,findLastKey:hte,forIn:kte,forInRight:Ste,forOwn:Dte,forOwnRight:Tte,functions:Ate,functionsIn:Mte,get:nk,has:Nte,hasIn:uk,invert:Vte,invertBy:zte,invoke:Gte,keys:qs,keysIn:Nl,mapKeys:xne,mapValues:qN,merge:Ane,mergeWith:NN,omit:Lne,omitBy:$ne,pick:rie,pickBy:eO,result:kie,set:Aie,setWith:Mie,toPairs:vk,toPairsIn:yk,transform:vre,unset:Nre,update:jre,updateWith:Pre,values:Nm,valuesIn:Rre},ih={at:Vre,chain:dN,commit:xN,lodash:me,next:QN,plant:cO,reverse:zre,tap:sre,thru:Kv,toIterator:yO,toJSON:Om,value:Om,valueOf:Om,wrapperChain:Hre},Kr={camelCase:WZ,capitalize:oN,deburr:lN,endsWith:Kee,escape:PN,escapeRegExp:tte,kebabCase:pne,lowerCase:vne,lowerFirst:yne,pad:Zne,padEnd:eie,padStart:tie,parseInt:nie,repeat:xie,replace:wie,snakeCase:Oie,split:Gie,startCase:qie,startsWith:Xie,template:dre,templateSettings:Tk,toLower:fre,toUpper:gre,trim:_re,trimEnd:xre,trimStart:wre,truncate:Cre,unescape:Dre,upperCase:Lre,upperFirst:ok,words:cN},so={attempt:QF,bindAll:MZ,cond:See,conforms:Tee,constant:q2,defaultTo:Nee,flow:wte,flowRight:Cte,identity:cl,iteratee:hne,matches:wne,matchesProperty:Cne,method:Mne,methodOf:Ine,mixin:YN,noop:go,nthArg:Pne,over:Une,overEvery:Wne,overSome:qne,property:EN,propertyOf:oie,range:fO,rangeRight:pie,stubArray:sk,stubFalse:Q2,stubObject:Yie,stubString:Jie,stubTrue:Kie,times:vO,toPath:pre,uniqueId:ep},MUe=Math.max,IUe=Math.min,FUe=Math.min,NUe=Array.prototype,Qre=Object.prototype.hasOwnProperty,Zre=ll?ll.iterator:void 0,OUe=Math.max,eoe=Math.min,wO=function(t){return function(n,e,i){if(null==i){var r=zo(e),o=r&&qs(e),s=o&&o.length&&bk(e,o);(s?s.length:r)||(i=e,e=n,n=this)}return t(n,e,i)}}(YN);me.after=_s.after,me.ary=_s.ary,me.assign=Ii.assign,me.assignIn=Ii.assignIn,me.assignInWith=Ii.assignInWith,me.assignWith=Ii.assignWith,me.at=Ii.at,me.before=_s.before,me.bind=_s.bind,me.bindAll=so.bindAll,me.bindKey=_s.bindKey,me.castArray=mi.castArray,me.chain=ih.chain,me.chunk=Gn.chunk,me.compact=Gn.compact,me.concat=Gn.concat,me.cond=so.cond,me.conforms=so.conforms,me.constant=so.constant,me.countBy=vo.countBy,me.create=Ii.create,me.curry=_s.curry,me.curryRight=_s.curryRight,me.debounce=_s.debounce,me.defaults=Ii.defaults,me.defaultsDeep=Ii.defaultsDeep,me.defer=_s.defer,me.delay=_s.delay,me.difference=Gn.difference,me.differenceBy=Gn.differenceBy,me.differenceWith=Gn.differenceWith,me.drop=Gn.drop,me.dropRight=Gn.dropRight,me.dropRightWhile=Gn.dropRightWhile,me.dropWhile=Gn.dropWhile,me.fill=Gn.fill,me.filter=vo.filter,me.flatMap=vo.flatMap,me.flatMapDeep=vo.flatMapDeep,me.flatMapDepth=vo.flatMapDepth,me.flatten=Gn.flatten,me.flattenDeep=Gn.flattenDeep,me.flattenDepth=Gn.flattenDepth,me.flip=_s.flip,me.flow=so.flow,me.flowRight=so.flowRight,me.fromPairs=Gn.fromPairs,me.functions=Ii.functions,me.functionsIn=Ii.functionsIn,me.groupBy=vo.groupBy,me.initial=Gn.initial,me.intersection=Gn.intersection,me.intersectionBy=Gn.intersectionBy,me.intersectionWith=Gn.intersectionWith,me.invert=Ii.invert,me.invertBy=Ii.invertBy,me.invokeMap=vo.invokeMap,me.iteratee=so.iteratee,me.keyBy=vo.keyBy,me.keys=qs,me.keysIn=Ii.keysIn,me.map=vo.map,me.mapKeys=Ii.mapKeys,me.mapValues=Ii.mapValues,me.matches=so.matches,me.matchesProperty=so.matchesProperty,me.memoize=_s.memoize,me.merge=Ii.merge,me.mergeWith=Ii.mergeWith,me.method=so.method,me.methodOf=so.methodOf,me.mixin=wO,me.negate=Yv,me.nthArg=so.nthArg,me.omit=Ii.omit,me.omitBy=Ii.omitBy,me.once=_s.once,me.orderBy=vo.orderBy,me.over=so.over,me.overArgs=_s.overArgs,me.overEvery=so.overEvery,me.overSome=so.overSome,me.partial=_s.partial,me.partialRight=_s.partialRight,me.partition=vo.partition,me.pick=Ii.pick,me.pickBy=Ii.pickBy,me.property=so.property,me.propertyOf=so.propertyOf,me.pull=Gn.pull,me.pullAll=Gn.pullAll,me.pullAllBy=Gn.pullAllBy,me.pullAllWith=Gn.pullAllWith,me.pullAt=Gn.pullAt,me.range=so.range,me.rangeRight=so.rangeRight,me.rearg=_s.rearg,me.reject=vo.reject,me.remove=Gn.remove,me.rest=_s.rest,me.reverse=Gn.reverse,me.sampleSize=vo.sampleSize,me.set=Ii.set,me.setWith=Ii.setWith,me.shuffle=vo.shuffle,me.slice=Gn.slice,me.sortBy=vo.sortBy,me.sortedUniq=Gn.sortedUniq,me.sortedUniqBy=Gn.sortedUniqBy,me.split=Kr.split,me.spread=_s.spread,me.tail=Gn.tail,me.take=Gn.take,me.takeRight=Gn.takeRight,me.takeRightWhile=Gn.takeRightWhile,me.takeWhile=Gn.takeWhile,me.tap=ih.tap,me.throttle=_s.throttle,me.thru=Kv,me.toArray=mi.toArray,me.toPairs=Ii.toPairs,me.toPairsIn=Ii.toPairsIn,me.toPath=so.toPath,me.toPlainObject=mi.toPlainObject,me.transform=Ii.transform,me.unary=_s.unary,me.union=Gn.union,me.unionBy=Gn.unionBy,me.unionWith=Gn.unionWith,me.uniq=Gn.uniq,me.uniqBy=Gn.uniqBy,me.uniqWith=Gn.uniqWith,me.unset=Ii.unset,me.unzip=Gn.unzip,me.unzipWith=Gn.unzipWith,me.update=Ii.update,me.updateWith=Ii.updateWith,me.values=Ii.values,me.valuesIn=Ii.valuesIn,me.without=Gn.without,me.words=Kr.words,me.wrap=_s.wrap,me.xor=Gn.xor,me.xorBy=Gn.xorBy,me.xorWith=Gn.xorWith,me.zip=Gn.zip,me.zipObject=Gn.zipObject,me.zipObjectDeep=Gn.zipObjectDeep,me.zipWith=Gn.zipWith,me.entries=Ii.toPairs,me.entriesIn=Ii.toPairsIn,me.extend=Ii.assignIn,me.extendWith=Ii.assignInWith,wO(me,me),me.add=Ol.add,me.attempt=so.attempt,me.camelCase=Kr.camelCase,me.capitalize=Kr.capitalize,me.ceil=Ol.ceil,me.clamp=TUe,me.clone=mi.clone,me.cloneDeep=mi.cloneDeep,me.cloneDeepWith=mi.cloneDeepWith,me.cloneWith=mi.cloneWith,me.conformsTo=mi.conformsTo,me.deburr=Kr.deburr,me.defaultTo=so.defaultTo,me.divide=Ol.divide,me.endsWith=Kr.endsWith,me.eq=mi.eq,me.escape=Kr.escape,me.escapeRegExp=Kr.escapeRegExp,me.every=vo.every,me.find=vo.find,me.findIndex=Gn.findIndex,me.findKey=Ii.findKey,me.findLast=vo.findLast,me.findLastIndex=Gn.findLastIndex,me.findLastKey=Ii.findLastKey,me.floor=Ol.floor,me.forEach=vo.forEach,me.forEachRight=vo.forEachRight,me.forIn=Ii.forIn,me.forInRight=Ii.forInRight,me.forOwn=Ii.forOwn,me.forOwnRight=Ii.forOwnRight,me.get=Ii.get,me.gt=mi.gt,me.gte=mi.gte,me.has=Ii.has,me.hasIn=Ii.hasIn,me.head=Gn.head,me.identity=cl,me.includes=vo.includes,me.indexOf=Gn.indexOf,me.inRange=EUe,me.invoke=Ii.invoke,me.isArguments=mi.isArguments,me.isArray=Pi,me.isArrayBuffer=mi.isArrayBuffer,me.isArrayLike=mi.isArrayLike,me.isArrayLikeObject=mi.isArrayLikeObject,me.isBoolean=mi.isBoolean,me.isBuffer=mi.isBuffer,me.isDate=mi.isDate,me.isElement=mi.isElement,me.isEmpty=mi.isEmpty,me.isEqual=mi.isEqual,me.isEqualWith=mi.isEqualWith,me.isError=mi.isError,me.isFinite=mi.isFinite,me.isFunction=mi.isFunction,me.isInteger=mi.isInteger,me.isLength=mi.isLength,me.isMap=mi.isMap,me.isMatch=mi.isMatch,me.isMatchWith=mi.isMatchWith,me.isNaN=mi.isNaN,me.isNative=mi.isNative,me.isNil=mi.isNil,me.isNull=mi.isNull,me.isNumber=mi.isNumber,me.isObject=zo,me.isObjectLike=mi.isObjectLike,me.isPlainObject=mi.isPlainObject,me.isRegExp=mi.isRegExp,me.isSafeInteger=mi.isSafeInteger,me.isSet=mi.isSet,me.isString=mi.isString,me.isSymbol=mi.isSymbol,me.isTypedArray=mi.isTypedArray,me.isUndefined=mi.isUndefined,me.isWeakMap=mi.isWeakMap,me.isWeakSet=mi.isWeakSet,me.join=Gn.join,me.kebabCase=Kr.kebabCase,me.last=Ln,me.lastIndexOf=Gn.lastIndexOf,me.lowerCase=Kr.lowerCase,me.lowerFirst=Kr.lowerFirst,me.lt=mi.lt,me.lte=mi.lte,me.max=Ol.max,me.maxBy=Ol.maxBy,me.mean=Ol.mean,me.meanBy=Ol.meanBy,me.min=Ol.min,me.minBy=Ol.minBy,me.stubArray=so.stubArray,me.stubFalse=so.stubFalse,me.stubObject=so.stubObject,me.stubString=so.stubString,me.stubTrue=so.stubTrue,me.multiply=Ol.multiply,me.nth=Gn.nth,me.noop=so.noop,me.now=DUe.now,me.pad=Kr.pad,me.padEnd=Kr.padEnd,me.padStart=Kr.padStart,me.parseInt=Kr.parseInt,me.random=AUe,me.reduce=vo.reduce,me.reduceRight=vo.reduceRight,me.repeat=Kr.repeat,me.replace=Kr.replace,me.result=Ii.result,me.round=Ol.round,me.sample=vo.sample,me.size=vo.size,me.snakeCase=Kr.snakeCase,me.some=vo.some,me.sortedIndex=Gn.sortedIndex,me.sortedIndexBy=Gn.sortedIndexBy,me.sortedIndexOf=Gn.sortedIndexOf,me.sortedLastIndex=Gn.sortedLastIndex,me.sortedLastIndexBy=Gn.sortedLastIndexBy,me.sortedLastIndexOf=Gn.sortedLastIndexOf,me.startCase=Kr.startCase,me.startsWith=Kr.startsWith,me.subtract=Ol.subtract,me.sum=Ol.sum,me.sumBy=Ol.sumBy,me.template=Kr.template,me.times=so.times,me.toFinite=mi.toFinite,me.toInteger=Ui,me.toLength=mi.toLength,me.toLower=Kr.toLower,me.toNumber=mi.toNumber,me.toSafeInteger=mi.toSafeInteger,me.toString=mi.toString,me.toUpper=Kr.toUpper,me.trim=Kr.trim,me.trimEnd=Kr.trimEnd,me.trimStart=Kr.trimStart,me.truncate=Kr.truncate,me.unescape=Kr.unescape,me.uniqueId=so.uniqueId,me.upperCase=Kr.upperCase,me.upperFirst=Kr.upperFirst,me.each=vo.forEach,me.eachRight=vo.forEachRight,me.first=Gn.head,wO(me,(xO={},th(me,function(t,n){Qre.call(me.prototype,n)||(xO[n]=t)}),xO),{chain:!1}),me.VERSION="4.17.21",(me.templateSettings=Kr.templateSettings).imports._=me,Jc(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){me[t].placeholder=me}),Jc(["drop","take"],function(t,n){Tr.prototype[t]=function(e){e=void 0===e?1:OUe(Ui(e),0);var i=this.__filtered__&&!n?new Tr(this):this.clone();return i.__filtered__?i.__takeCount__=eoe(e,i.__takeCount__):i.__views__.push({size:eoe(e,4294967295),type:t+(i.__dir__<0?"Right":"")}),i},Tr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),Jc(["filter","map","takeWhile"],function(t,n){var e=n+1,i=1==e||3==e;Tr.prototype[t]=function(r){var o=this.clone();return o.__iteratees__.push({iteratee:Li(r),type:e}),o.__filtered__=o.__filtered__||i,o}}),Jc(["head","last"],function(t,n){var e="take"+(n?"Right":"");Tr.prototype[t]=function(){return this[e](1).value()[0]}}),Jc(["initial","tail"],function(t,n){var e="drop"+(n?"":"Right");Tr.prototype[t]=function(){return this.__filtered__?new Tr(this):this[e](1)}}),Tr.prototype.compact=function(){return this.filter(cl)},Tr.prototype.find=function(t){return this.filter(t).head()},Tr.prototype.findLast=function(t){return this.reverse().find(t)},Tr.prototype.invokeMap=dr(function(t,n){return"function"==typeof t?new Tr(this):this.map(function(e){return Ob(e,t,n)})}),Tr.prototype.reject=function(t){return this.filter(Yv(Li(t)))},Tr.prototype.slice=function(t,n){t=Ui(t);var e=this;return e.__filtered__&&(t>0||n<0)?new Tr(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),void 0!==n&&(e=(n=Ui(n))<0?e.dropRight(-n):e.take(n-t)),e)},Tr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Tr.prototype.toArray=function(){return this.take(4294967295)},th(Tr.prototype,function(t,n){var e=/^(?:filter|find|map|reject)|While$/.test(n),i=/^(?:head|last)$/.test(n),r=me[i?"take"+("last"==n?"Right":""):n],o=i||/^find/.test(n);r&&(me.prototype[n]=function(){var s=this.__wrapped__,a=i?[1]:arguments,l=s instanceof Tr,c=a[0],u=l||Pi(s),d=function(v){var y=r.apply(me,Yf([v],a));return i&&h?y[0]:y};u&&e&&"function"==typeof c&&1!=c.length&&(l=u=!1);var h=this.__chain__,p=o&&!h,m=l&&!this.__actions__.length;if(!o&&u){s=m?s:new Tr(this);var g=t.apply(s,a);return g.__actions__.push({func:Kv,args:[d],thisArg:void 0}),new Yc(g,h)}return p&&m?t.apply(this,a):(g=this.thru(d),p?i?g.value()[0]:g.value():g)})}),Jc(["pop","push","shift","sort","splice","unshift"],function(t){var n=NUe[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);me.prototype[t]=function(){var r=arguments;if(i&&!this.__chain__){var o=this.value();return n.apply(Pi(o)?o:[],r)}return this[e](function(s){return n.apply(Pi(s)?s:[],r)})}}),th(Tr.prototype,function(t,n){var e=me[n];if(e){var i=e.name+"";Qre.call(Ov,i)||(Ov[i]=[]),Ov[i].push({name:n,func:e})}}),Ov[K2(void 0,2).name]=[{name:"wrapper",func:void 0}],Tr.prototype.clone=function(){var t=new Tr(this.__wrapped__);return t.__actions__=Jl(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Jl(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Jl(this.__views__),t},Tr.prototype.reverse=function(){if(this.__filtered__){var t=new Tr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Tr.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=Pi(t),i=n<0,r=e?t.length:0,o=function(S,M,$){for(var G=-1,R=$.length;++G1&&void 0!==arguments[1]&&arguments[1],e={};if(!Array.isArray(t))throw new TypeError("Array expected");function i(l,c){(!Array.isArray(l)&&!Io(l)||n&&c.length>0)&&(e[ln(c)]=!0),Io(l)&&Object.keys(l).forEach(function(u){i(l[u],c.concat(u))})}for(var r=Math.min(t.length,1e4),o=0;on?t.slice(0,n):t}function noe(t){return Ze({},t)}function ioe(t){return Object.values(t)}function roe(t,n,e,i){var r=t.slice(0),o=r.splice(n,e);return r.splice.apply(r,[n+i,0].concat(si(o))),r}function kO(t,n){try{return n.parse(t)}catch{return n.parse(Yd(t))}}function ooe(t,n){try{return kO(t,n)}catch{return}}function Ik(t,n){t=t.replace(aoe,"");try{return n(t)}catch{}try{return n("["+t+"]")}catch{}try{return n("{"+t+"}")}catch{}throw new Error("Failed to parse partial JSON")}function soe(t){t=t.replace(aoe,"");try{return Yd(t)}catch{}try{var n=Yd("["+t+"]");return n.substring(1,n.length-1)}catch{}try{var e=Yd("{"+t+"}");return e.substring(1,e.length-1)}catch{}throw new Error("Failed to repair partial JSON")}var aoe=/,\s*$/;function Fk(t,n){var e=uoe.exec(n);if(e){var i=Ws(e[2]),r=function(f,p){for(var g=arguments.length>3&&void 0!==arguments[3]?arguments[3]:f.length,v=0,y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;y1&&void 0!==arguments[1]?arguments[1]:void 0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:JSON;return Qv(t)?t:{text:e.stringify(t.json,null,n)}}function loe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:JSON;return DO(t)?t:{json:n.parse(t.text)}}function Nk(t,n,e){return Zv(t,n,e).text}function coe(t,n){return function RUe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;if(Qv(t))return t.text.length;var i=0;return function r(o){if(Array.isArray(o)){if((i+=o.length-1+2)>n)return i;for(var s=0;sn)return i}else if(Io(o)){var a=Object.keys(o);i+=2+a.length+(a.length-1);for(var l=0;ln}var uoe=/(position|char) (\d+)/,$Ue=/line (\d+)/,BUe=/column (\d+)/;function hoe(t){return VUe.test(t)&&t.length>2}var VUe=/^[[{]\S/;function TO(t){var e=t.escapeUnicodeCharacters;return t.escapeControlCharacters?e?HUe:zUe:e?UUe:GUe}var HUe={escapeValue:function(t){return foe(goe(String(t)))},unescapeValue:function(t){return voe(poe(t))}},zUe={escapeValue:function(t){return goe(String(t))},unescapeValue:function(t){return voe(t)}},UUe={escapeValue:function(t){return foe(String(t))},unescapeValue:function(t){return poe(t)}},GUe={escapeValue:function(t){return String(t)},unescapeValue:function(t){return t}};function foe(t){return t.replace(/[^\x20-\x7F]/g,function(n){var e;return"\b"===n||"\f"===n||"\n"===n||"\r"===n||"\t"===n?n:"\\u"+("000"+(null===(e=n.codePointAt(0))||void 0===e?void 0:e.toString(16))).slice(-4)})}function poe(t){return t.replace(/\\u[a-fA-F0-9]{4}/g,function(n){try{var e=JSON.parse('"'+n+'"');return moe[e]||e}catch{return n}})}var moe={'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},WUe={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"};function goe(t){return t.replace(/["\b\f\n\r\t\\]/g,function(n){return moe[n]||n})}function voe(t){return t.replace(/\\["bfnrt\\]/g,function(n){return WUe[n]||n})}function jm(t){return"string"!=typeof t?String(t):t.endsWith("\n")?t+"\n":t}function yoe(t,n){return Pb(t,function(e){return e.nodeName.toUpperCase()===n.toUpperCase()})}function Pm(t,n,e){return Pb(t,function(i){return s=e,"function"==typeof(r=i).getAttribute&&r.getAttribute(n)===s;var r,s})}function Pb(t,n){return!!EO(t,n)}function EO(t,n){for(var e=t;e&&!n(e);)e=e.parentNode;return e||void 0}function boe(t){if(null!=t.firstChild){var n=document.createRange(),e=window.getSelection();n.setStart(t,1),n.collapse(!0),e?.removeAllRanges(),e?.addRange(n)}else t.focus()}function Ok(t,n,e){var i=e0(t);if(i){var r=i.document.activeElement?i.document.activeElement:null;r&&r.isContentEditable&&(r.textContent=e?n:r.textContent+n,boe(r))}}function e0(t){return t&&t.ownerDocument?t.ownerDocument.defaultView:null}function jk(t){var e=e0(t)?.document.activeElement;return!!e&&Pb(e,function(i){return i===t})}function _oe(t,n){return EO(t,function(e){return e.nodeName===n})}function AO(t){return Pm(t,"data-type","selectable-key")?ro.key:Pm(t,"data-type","selectable-value")?ro.value:Pm(t,"data-type","insert-selection-area-inside")?ro.inside:Pm(t,"data-type","insert-selection-area-after")?ro.after:ro.multi}function t0(t){return encodeURIComponent(ln(t))}function xoe(t){var e=EO(t,function(i){return!(null==i||!i.hasAttribute)&&i.hasAttribute("data-path")})?.getAttribute("data-path");return e?Xu(decodeURIComponent(e)):null}function tp(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"+",e=[];t.ctrlKey&&e.push("Ctrl"),t.metaKey&&e.push("Ctrl"),t.altKey&&e.push("Alt"),t.shiftKey&&e.push("Shift");var i=1===t.key.length?t.key.toUpperCase():t.key;return i in XUe||e.push(i),e.join(n)}var XUe={Ctrl:!0,Command:!0,Control:!0,Alt:!0,Option:!0,Shift:!0},MO=yF.window;function YUe(t){pi(t,"svelte-1r8q3m8",".jse-absolute-popup.svelte-1r8q3m8.svelte-1r8q3m8{position:relative;left:0;top:0;width:0;height:0;z-index:1001}.jse-absolute-popup.svelte-1r8q3m8 .jse-hidden-input.svelte-1r8q3m8{position:fixed;left:0;top:0;width:0;height:0;padding:0;margin:0;border:none;outline:none;overflow:hidden}.jse-absolute-popup.svelte-1r8q3m8 .jse-absolute-popup-content.svelte-1r8q3m8{position:absolute}")}function woe(t){var n,e,i,r,o,s,a=[t[0].props],l=t[0].component;function c(u){for(var d={},h=0;hwindow.innerHeight&&C>h,G="left"===v||_+u>window.innerWidth&&_>u;return{left:G?y.right-g:_+g,top:$?C-p:y.bottom+p,positionAbove:$,positionLeft:G}}if("number"==typeof n.left&&"number"==typeof n.top){var R=n.left,z=n.top,U=n.width,q=void 0===U?0:U,re=n.height,L=void 0===re?0:re;return{left:R,top:z,positionAbove:z+L>window.innerHeight&&z>L,positionLeft:R+q>window.innerWidth&&R>q}}throw new Error('Invalid config: pass either "left" and "top", or pass "anchor"')}(),r=i.left,o=i.top,a=i.positionLeft;return(i.positionAbove?"bottom: ".concat(e.top-o,"px;"):"top: ".concat(o-e.top,"px;"))+(a?"right: ".concat(e.left-r,"px;"):"left: ".concat(r-e.left,"px;"))}function QUe(t,n,e){var i,r,o=n.popup,s=n.closeAbsolutePopup;function a(l){o.options&&o.options.closeOnOuterClick&&!Pb(l.target,function(c){return c===i})&&s(o.id)}return Wc(function(){r&&r.focus()}),t.$$set=function(l){"popup"in l&&e(0,o=l.popup),"closeAbsolutePopup"in l&&e(6,s=l.closeAbsolutePopup)},[o,i,r,function(l){a(l)},function(l){"Escape"===tp(l)&&s(o.id)},function(l){a(l)},s,function(l){Vi[l?"unshift":"push"](function(){e(2,r=l)})},function(l){Vi[l?"unshift":"push"](function(){e(1,i=l)})}]}var ZUe=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,QUe,JUe,ys,{popup:0,closeAbsolutePopup:6},YUe),r}return Se(e)}();function koe(t,n,e){var i=t.slice();return i[6]=n[e],i}function Soe(t){var n,e;return n=new ZUe({props:{popup:t[6],closeAbsolutePopup:t[1]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};1&r&&(o.popup=i[6]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function eGe(t){for(var n,e,i=t[0],r=[],o=0;o0;){var i=n.match(iGe);if(!i)throw new SyntaxError('Cannot parse path: unexpected part "'.concat(n,'" at position ').concat(t.length-n.length));e.push(i[1]||i[2]||i[3]),n=n.substring(i[0].length)}var r;return e}var iGe=new RegExp(["^\\.([A-zA-Z$_][a-zA-Z$_0-9]*)","^\\[([0-9]+)]","^\\['(.*)']"].join("|"));function Lb(t){return{value:t,label:Hi(t)?"(whole item)":tu(Kl(t))}}function rh(t){return t.map(function(n){return FO.test(n)?"?.[".concat(n,"]"):IO.test(n)?"?.".concat(n):"?.[".concat(JSON.stringify(n),"]")}).join("")}var IO=/^[a-zA-Z$_][a-zA-Z$_\d]*$/,FO=/^\d+$/;function Rb(t,n){for(var e=new Set(n),i=t.replace(/ \(copy( \d+)?\)$/,""),r=t,o=1;e.has(r);){var s="copy"+(o>1?" "+o:"");r="".concat(i," (").concat(s,")"),o++}return r}function oh(t,n){return t.length>n?t.substring(0,n-3)+"...":t}var rGe={id:"javascript",name:"JavaScript",description:"\n

    \n Enter a JavaScript function to filter, sort, or transform the data.\n

    \n",createQuery:function(t,n){var e=n.filter,i=n.sort,r=n.projection,o=[" return data\n"];if(e&&e.path&&e.relation&&e.value){var s="item => item".concat(rh(e.path)),a=function NO(t){if(""===t)return"";var n=t.toLowerCase();if("null"===n)return null;if("true"===n)return!0;if("false"===n)return!1;if("undefined"!==n){var e=Number(t),i=parseFloat(t);return isNaN(e)||isNaN(i)?t:e}}(e.value),l="string"==typeof a?"'".concat(e.value,"'"):function HQ(t){return k9e.test(t)}(e.value)&&!Number.isSafeInteger(a)?"".concat(e.value,"n"):e.value;o.push(" .filter(".concat(s," ").concat(e.relation," ").concat(l,")\n"))}if(i&&i.path&&i.direction&&o.push("desc"===i.direction?" .slice()\n .sort((a, b) => {\n // sort descending\n"+" const valueA = a".concat(rh(i.path),"\n")+" const valueB = b".concat(rh(i.path),"\n")+" return valueA > valueB ? -1 : valueA < valueB ? 1 : 0\n })\n":" .slice()\n .sort((a, b) => {\n // sort ascending\n"+" const valueA = a".concat(rh(i.path),"\n")+" const valueB = b".concat(rh(i.path),"\n")+" return valueA > valueB ? 1 : valueA < valueB ? -1 : 0\n })\n"),r&&r.paths)if(r.paths.length>1){var c=r.paths.map(function(d){var h=d[d.length-1]||"item",f="item".concat(rh(d));return" ".concat(JSON.stringify(h),": ").concat(f)});o.push(" .map(item => ({\n".concat(c.join(",\n"),"})\n )\n"))}else{var u="item".concat(rh(r.paths[0]));o.push(" .map(item => ".concat(u,")\n"))}return"function query (data) {\n".concat(o.join(""),"}")},executeQuery:function(t,n){var e=new Function('"use strict";\n\n'+n+'\n\nif (typeof query !== "function") {\n throw new Error("Cannot execute query: expecting a function named \'query\' but is undefined")\n}\n\nreturn query;\n')()(t);return void 0!==e?e:null}},oGe={prefix:"far",iconName:"lightbulb",icon:[384,512,[128161],"f0eb","M281.2 248.9C295.6 228.3 304 203.2 304 176c0-70.7-57.3-128-128-128S48 105.3 48 176c0 27.2 8.4 52.3 22.8 72.9c3.7 5.3 8.1 11.3 12.8 17.7l0 0c12.9 17.7 28.3 38.9 39.8 59.8c10.4 19 15.7 38.8 18.3 57.5H93c-2.2-12-5.9-23.7-11.8-34.5c-9.9-18-22.2-34.9-34.5-51.8l0 0 0 0c-5.2-7.1-10.4-14.2-15.4-21.4C11.6 247.9 0 213.3 0 176C0 78.8 78.8 0 176 0s176 78.8 176 176c0 37.3-11.6 71.9-31.4 100.3c-5 7.2-10.2 14.3-15.4 21.4l0 0 0 0c-12.3 16.8-24.6 33.7-34.5 51.8c-5.9 10.8-9.6 22.5-11.8 34.5H210.4c2.6-18.7 7.9-38.6 18.3-57.5c11.5-20.9 26.9-42.1 39.8-59.8l0 0 0 0 0 0c4.7-6.4 9-12.4 12.7-17.7zM176 128c-26.5 0-48 21.5-48 48c0 8.8-7.2 16-16 16s-16-7.2-16-16c0-44.2 35.8-80 80-80c8.8 0 16 7.2 16 16s-7.2 16-16 16zm0 384c-44.2 0-80-35.8-80-80V416H256v16c0 44.2-35.8 80-80 80z"]},$b={prefix:"far",iconName:"square-check",icon:[448,512,[9745,9989,61510,"check-square"],"f14a","M211.8 339.8C200.9 350.7 183.1 350.7 172.2 339.8L108.2 275.8C97.27 264.9 97.27 247.1 108.2 236.2C119.1 225.3 136.9 225.3 147.8 236.2L192 280.4L300.2 172.2C311.1 161.3 328.9 161.3 339.8 172.2C350.7 183.1 350.7 200.9 339.8 211.8L211.8 339.8zM0 96C0 60.65 28.65 32 64 32H384C419.3 32 448 60.65 448 96V416C448 451.3 419.3 480 384 480H64C28.65 480 0 451.3 0 416V96zM48 96V416C48 424.8 55.16 432 64 432H384C392.8 432 400 424.8 400 416V96C400 87.16 392.8 80 384 80H64C55.16 80 48 87.16 48 96z"]},Bb={prefix:"far",iconName:"square",icon:[448,512,[9632,9723,9724,61590],"f0c8","M384 32C419.3 32 448 60.65 448 96V416C448 451.3 419.3 480 384 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H384zM384 80H64C55.16 80 48 87.16 48 96V416C48 424.8 55.16 432 64 432H384C392.8 432 400 424.8 400 416V96C400 87.16 392.8 80 384 80z"]},sGe={prefix:"far",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]};function aGe(t){for(var n,e=[t[0]],i={},r=0;r300},{anchor:h.target,closeOnOuterClick:!0,onClose:d,offsetTop:18,offsetLeft:-8,height:300})}},o,l,c]}var OGe=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,NGe,FGe,Ei,{path:4,value:0,readOnly:1,onPatch:5,focus:6},IGe),r}return Se(e)}();function Poe(t){for(var n=pO(t,function(a){return a.start}),e=[n[0]],i=0;i=e.start&&n0){var d=Rk(n,u);jO(l,d,function(g){o[c]=String(g),a(l[g])}),o.pop()}}}else if(Io(l)&&i(o)){r[ln(o)]=!0;var h=Object.keys(l);if(h.length>0){var f,p=Re(h);try{for(p.s();!(f=p.n()).done;){var m=f.value;o[c]=m,a(l[m])}}catch(g){p.e(g)}finally{p.f()}o.pop()}}}(s),Ze(Ze({},n),{},{expandedMap:r})}function Loe(t,n){var e=n0(t.expandedMap,n),i=n0(t.enforceStringMap,n),r=n0(t.visibleSectionsMap,n);return Ze(Ze({},t),{},{expandedMap:e,enforceStringMap:i,visibleSectionsMap:r})}function Roe(t,n,e){if(e){var i=Ze({},t.enforceStringMap);return i[n]=e,Ze(Ze({},t),{},{enforceStringMap:i})}if("boolean"==typeof t.enforceStringMap[n]){var r=Ze({},t.enforceStringMap);return delete r[n],Ze(Ze({},t),{},{enforceStringMap:r})}return t}function $oe(t,n,e){var i=Yu(t,e),r=e.reduce(function(o,s){return SQ(s)?Boe(i,o,s):DQ(s)?Voe(i,o,s):kF(s)?(u=(c=s).path,d=BO(a=i,(l=o).expandedMap),h=BO(a,l.enforceStringMap),f=BO(a,l.visibleSectionsMap),Mo(c.value)||oo(c.value)||delete d[u],oo(c.value)||delete f[u],(Mo(c.value)||oo(c.value))&&delete h[u],Ze(Ze({},l),{},{expandedMap:d,enforceStringMap:h,visibleSectionsMap:f})):SF(s)||Mv(s)?function(a,l,c){if(Mv(c)&&c.from===c.path)return l;var u=function(y){return c.path+y.substring(c.from.length)},d=$O(LO(l.expandedMap,c.from),u),h=$O(LO(l.enforceStringMap,c.from),u),f=$O(LO(l.visibleSectionsMap,c.from),u),p=l;Mv(c)&&(p=Voe(a,p,{op:"remove",path:c.from}));var m=RO((p=Boe(a,p,{op:"add",path:c.path,value:null})).expandedMap,d),g=RO(p.enforceStringMap,h),v=RO(p.visibleSectionsMap,f);return Ze(Ze({},l),{},{expandedMap:m,enforceStringMap:g,visibleSectionsMap:v})}(i,o,s):o;var a,l,c,u,d,h,f},n);return{json:i,documentState:r}}function Boe(t,n,e){var i=Ju(t,e.path),r=Xi(i),o=ln(r);if(oo(Sn(t,r))){var s=Ws(Ln(i)),a=r0(n.expandedMap,r,s,1),l=r0(n.enforceStringMap,r,s,1),c=r0(n.visibleSectionsMap,r,s,1);return c=Hoe(c,o,function(u){return zoe(u,s,1)}),Ze(Ze({},n),{},{expandedMap:a,enforceStringMap:l,visibleSectionsMap:c})}return n}function Voe(t,n,e){var i=Ju(t,e.path),r=Xi(i),o=ln(r),s=Sn(t,r),a=n.expandedMap,l=n.enforceStringMap,c=n.visibleSectionsMap;if(a=n0(a,i),l=n0(l,i),c=n0(c,i),oo(s)){var u=Ws(Ln(i));a=r0(a,r,u,-1),l=r0(l,r,u,-1),c=Hoe(c=r0(c,r,u,-1),o,function(d){return zoe(d,u,-1)})}return Ze(Ze({},n),{},{expandedMap:a,enforceStringMap:l,visibleSectionsMap:c})}function n0(t,n){var e={},i=ln(n);return Object.keys(t).forEach(function(r){Iv(r,i)||(e[r]=t[r])}),e}function LO(t,n){var e={};return Object.keys(t).forEach(function(i){Iv(i,n)&&(e[i]=t[i])}),e}function RO(t,n){return Ze(Ze({},t),n)}function $O(t,n){var e={};return Object.keys(t).forEach(function(i){var r=n(i);e[r]=t[i]}),e}function r0(t,n,e,i){for(var r=n.length,o=ln(n),s=[],a=0,l=Object.keys(t);a=e&&(u[r]=String(d+i),s.push({oldPointer:c,newPointer:ln(u),value:t[c]}))}}if(0===s.length)return t;var h=Ze({},t);return s.forEach(function(f){delete h[f.oldPointer]}),s.forEach(function(f){h[f.newPointer]=f.value}),h}function BO(t,n){var e={};return Object.keys(n).filter(function(i){return Xc(t,Ju(t,i))}).forEach(function(i){e[i]=n[i]}),e}function Hoe(t,n,e){var i=t[n];if(n in t){var r=e(i);if(!or(i,r)){var o=Ze({},t);return void 0===r?delete o[n]:o[n]=r,o}}return t}function zoe(t,n,e){return t.map(function(i){return{start:i.start>n?i.start+e:i.start,end:i.end>=n?i.end+e:i.end}})}function lf(t,n,e,i){var o,r=n?n[e]:void 0;return"boolean"==typeof r?r:"string"==typeof(o=t)&&"string"!=typeof Fv(o,i)}function Vb(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t.indexOf(n);return-1!==i?t.slice(e?i:i+1):[]}function VO(t,n){var e=[];return function i(r,o){e.push(o);var s=ln(o);if(r&&!0===n.expandedMap[s]){if(oo(r)){var a=Rk(n,s);jO(r,a,function(l){i(r[l],o.concat(String(l)))})}Mo(r)&&Object.keys(r).forEach(function(l){i(r[l],o.concat(l))})}}(t,[]),e}function Uoe(t,n){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=[];return function r(o,s){i.push({path:s,type:Gu.value});var a=ln(s);if(o&&!0===n.expandedMap[a]){if(e&&i.push({path:s,type:Gu.inside}),oo(o)){var l=Rk(n,a);jO(o,l,function(c){var u=s.concat(String(c));r(o[c],u),e&&i.push({path:u,type:Gu.after})})}Mo(o)&&Object.keys(o).forEach(function(c){var u=s.concat(c);i.push({path:u,type:Gu.key}),r(o[c],u),e&&i.push({path:u,type:Gu.after})})}}(t,[]),i}function HO(t,n,e){var i=VO(t,n),r=i.map(ln).indexOf(ln(e));return-1!==r&&r0;){if(!0===t.pointersMap[ln(i)])return!0;i.pop()}return xs(t)?e===ro.key&&or(t.focusPath,n):!(!Yi(t)||!(e===ro.value&&or(t.focusPath,n)||l0(n,t.focusPath)&&n.length>t.focusPath.length&&(e===ro.key||e===ro.value||e===ro.multi)))}function qoe(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n.selection;if(!r)return null;var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3]||!Fr(r)?r.focusPath:sa(r.paths),s=function LGe(t,n,e){var i=VO(t,n),r=i.map(ln),o=ln(e),s=r.indexOf(o);return-1!==s&&s>0?i[s-1]:null}(t,n,o);if(null===s)return null;var a=s,l=s;if(e)return Zu(r)||Xs(r)?Os(t,r.anchorPath,r.anchorPath):Os(t,r.anchorPath,l);if(xs(r)){var u=Sn(t,Xi(s));return Array.isArray(u)||Hi(s)?mr(s,!1):iu(s,!1)}return Yi(r)?mr(s,!1):Zu(r)||Xs(r)?Os(t,o,o):Os(t,a,l)}function Xoe(t,n,e){var i=n.selection;if(!i)return{caret:null,previous:null,next:null};var r=Uoe(t,n,e),o=r.findIndex(function(s){return or(s.path,i.focusPath)&&String(s.type)===String(i.type)});return{caret:-1!==o?r[o]:null,previous:-1!==o&&o>0?r[o-1]:null,next:-1!==o&&oe[i].length;)i++;var r=e[i];return 0===r.length||Array.isArray(Sn(t,Xi(r)))?mr(r,!1):iu(r,!1)}function a0(t,n){if(1===n.length){var e=sa(n);if("replace"===e.op||"move"===e.op)return mr(Ju(t,e.path),!1)}if(!Hi(n)&&n.every(function(s){return"move"===s.op})){var i=sa(n),r=n.slice(1);if((SF(i)||Mv(i))&&i.from!==i.path&&r.every(function(s){return(SF(s)||Mv(s))&&s.from===s.path}))return iu(Ju(t,i.path),!1)}var o=n.filter(function(s){return"test"!==s.op&&"remove"!==s.op&&("move"!==s.op||s.from!==s.path)&&"string"==typeof s.path}).map(function(s){return Ju(t,s.path)});if(!Hi(o))return{type:ro.multi,paths:o,anchorPath:sa(o),focusPath:Ln(o),pointersMap:Yoe(o)}}function Yoe(t){var n={};return t.forEach(function(e){n[ln(e)]=!0}),n}function Bk(t){return ql({},ln(t),!0)}function zb(t){return void 0!==t&&(xs(t)||Yi(t)||Fr(t)&&1===t.paths.length)}function Joe(t,n){return zb(n)&&Ho(Sn(t,n.focusPath))?n.focusPath:Xi(n.focusPath)}function l0(t,n){if(t.length0?0:-1,e=t.items[n],i=t.items.map(function(r,o){return Ze(Ze({},r),{},{active:o===n})});return Ze(Ze({},t),{},{items:i,itemsMap:qv(i,function(r){return ln(r.path)}),activeItem:e,activeIndex:n})}function WGe(t){var n=t.activeIndex>0?t.activeIndex-1:t.items.length-1,e=t.items[n],i=t.items.map(function(r,o){return Ze(Ze({},r),{},{active:o===n})});return Ze(Ze({},t),{},{items:i,itemsMap:qv(i,function(r){return ln(r.path)}),activeItem:e,activeIndex:n})}function ase(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,i=[],r=[];function o(l){i.length=e)return;r.pop()}else if(Mo(c)){var h=Object.keys(c),f=r.length;r.push("");for(var p=0,m=h;p=e)return}r.pop()}else lse(String(c),l,r,Wu.value,o)}(t.toLowerCase(),n),i}function lse(t,n,e,i,r){var o=t.toLowerCase(),s=0,a=-1,l=-1;do{-1!==(l=o.indexOf(n,a))&&(a=l+n.length,r({path:e.slice(0),field:i,fieldIndex:s,start:l,end:a}),s++)}while(-1!==l)}function WO(t,n,e,i){return t.substring(0,e)+n+t.substring(i)}function cse(t,n,e){var i=t;return Fb(e,function(r){i=WO(i,n,r.start,r.end)}),i}function qGe(t,n,e,i,r){var o=i.field,s=i.path,a=i.start,l=i.end;if(o===Wu.key){var c=Xi(s),u=Sn(t,c),d=Ln(s),h=Gb(c,Object.keys(u),d,WO(d,e,a,l));return{newSelection:a0(t,h),operations:h}}if(o===Wu.value){var f=Sn(t,s);if(void 0===f)throw new Error("Cannot replace: path not found ".concat(ln(s)));var p="string"==typeof f?f:String(f),m=ln(s),g=lf(f,n.enforceStringMap,m,r),v=WO(p,e,a,l),y=[{op:"replace",path:ln(s),value:g?v:Fv(v,r)}];return{newSelection:a0(t,y),operations:y}}throw new Error("Cannot replace: unknown type of search result field ".concat(o))}function XGe(t,n,e,i,r){for(var o=ase(e,t,1/0),s=[],a=0;an.floating[o]&&(s=Xk(s)),{main:s,cross:Xk(s)}}var OWe={start:"end",end:"start"};function e4(t){return t.replace(/start|end/g,function(n){return OWe[n]})}var jWe=function(t){return void 0===t&&(t={}),{name:"flip",options:t,fn:function(n){return Zi(vn().mark(function e(){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,C,S,M,$,G,R,z,U,q,re,L,X,he,E,F,N,Y,V,oe;return vn().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return r=n.placement,o=n.middlewareData,s=n.rects,a=n.initialPlacement,l=n.platform,c=n.elements,d=(u=t).mainAxis,h=void 0===d||d,p=void 0===(f=u.crossAxis)||f,m=u.fallbackPlacements,v=void 0===(g=u.fallbackStrategy)?"bestFit":g,_=void 0===(y=u.fallbackAxisSideDirection)?"none":y,S=void 0===(C=u.flipAlignment)||C,M=XK(u,p7e),$=Bm(r),G=Bm(a)===a,fe.next=23,null==l.isRTL?void 0:l.isRTL(c.floating);case 23:return R=fe.sent,z=m||(G||!S?[Xk(a)]:(void 0,xe=Xk(Fe=a),[e4(Fe),xe,e4(xe)])),m||"none"===_||z.push.apply(z,si(function(Fe,xe,tt,ze){var ot=Wk(Fe),B=function(ne,ie,Ie){var Ye=["left","right"],Le=["right","left"];switch(ne){case"top":case"bottom":return Ie?ie?Le:Ye:ie?Ye:Le;case"left":case"right":return ie?["top","bottom"]:["bottom","top"];default:return[]}}(Bm(Fe),"start"===tt,ze);return ot&&(B=B.map(function(ne){return ne+"-"+ot}),xe&&(B=B.concat(B.map(e4)))),B}(a,S,_,R))),U=[a].concat(si(z)),fe.next=29,Sse(n,M);case 29:if(q=fe.sent,re=[],L=(null==(i=o.flip)?void 0:i.overflows)||[],h&&re.push(q[$]),p&&(X=NWe(r,s,R),re.push(q[X.main],q[X.cross])),L=[].concat(si(L),[{placement:r,overflows:re}]),re.every(function(Fe){return Fe<=0})){fe.next=48;break}if(F=((null==(he=o.flip)?void 0:he.index)||0)+1,!(N=U[F])){fe.next=37;break}return fe.abrupt("return",{data:{index:F,overflows:L},reset:{placement:N}});case 37:if(Y=null==(E=L.filter(function(Fe){return Fe.overflows[0]<=0}).sort(function(Fe,xe){return Fe.overflows[1]-xe.overflows[1]})[0])?void 0:E.placement,Y){fe.next=46;break}fe.t0=v,fe.next="bestFit"===fe.t0?42:"initialPlacement"===fe.t0?45:46;break;case 42:return oe=null==(V=L.map(function(Fe){return[Fe.placement,Fe.overflows.filter(function(xe){return xe>0}).reduce(function(xe,tt){return xe+tt},0)]}).sort(function(Fe,xe){return Fe[1]-xe[1]})[0])?void 0:V[0],oe&&(Y=oe),fe.abrupt("break",46);case 45:Y=a;case 46:if(r===Y){fe.next=48;break}return fe.abrupt("return",{reset:{placement:Y}});case 48:return fe.abrupt("return",{});case 49:case"end":return fe.stop()}var Fe,xe},e)}))()}}},PWe=function(t){return void 0===t&&(t=0),{name:"offset",options:t,fn:function(n){return Zi(vn().mark(function e(){var i,r,o;return vn().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return i=n.x,r=n.y,s.next=4,function(){var a=Zi(vn().mark(function l(c,u){var d,h,f,p,m,g,v,y,_,C,S,M,$,G;return vn().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return d=c.placement,h=c.platform,f=c.elements,R.next=5,null==h.isRTL?void 0:h.isRTL(f.floating);case 5:return p=R.sent,m=Bm(d),g=Wk(d),v="x"===qk(d),y=["left","top"].includes(m)?-1:1,_=p&&v?-1:1,C="function"==typeof u?u(c):u,S="number"==typeof C?{mainAxis:C,crossAxis:0,alignmentAxis:null}:Ze({mainAxis:0,crossAxis:0,alignmentAxis:null},C),M=S.mainAxis,$=S.crossAxis,G=S.alignmentAxis,R.abrupt("return",(g&&"number"==typeof G&&($="end"===g?-1*G:G),v?{x:$*_,y:M*y}:{x:M*y,y:$*_}));case 14:case"end":return R.stop()}},l)}));return function(l,c){return a.apply(this,arguments)}}()(n,t);case 4:return s.abrupt("return",{x:i+(o=s.sent).x,y:r+o.y,data:o});case 6:case"end":return s.stop()}},e)}))()}}};function LWe(t){return"x"===t?"y":"x"}var RWe=function(t){return void 0===t&&(t={}),{name:"shift",options:t,fn:function(n){return Zi(vn().mark(function e(){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,C,$;return vn().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return r=n.x,o=n.y,s=n.placement,l=(a=t).mainAxis,c=void 0===l||l,d=void 0!==(u=a.crossAxis)&&u,f=void 0===(h=a.limiter)?{fn:function(R){return{x:R.x,y:R.y}}}:h,p=XK(a,m7e),m={x:r,y:o},G.next=14,Sse(n,p);case 14:return g=G.sent,v=qk(Bm(s)),y=LWe(v),_=m[v],C=m[y],c&&(_=Dse(_+g["y"===v?"top":"left"],_,_-g["y"===v?"bottom":"right"])),d&&(C=Dse(C+g["y"===y?"top":"left"],C,C-g["y"===y?"bottom":"right"])),$=f.fn(Ze(Ze({},n),{},(ql(i={},v,_),ql(i,y,C),i))),G.abrupt("return",Ze(Ze({},$),{},{data:{x:$.x-r,y:$.y-o}}));case 22:case"end":return G.stop()}},e)}))()}}};function kc(t){var n;return(null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function lh(t){return kc(t).getComputedStyle(t)}var t4,Tse=Math.min,qb=Math.max,Yk=Math.round;function Ese(t){var n=lh(t),e=parseFloat(n.width),i=parseFloat(n.height),r=t.offsetWidth,o=t.offsetHeight,s=Yk(e)!==r||Yk(i)!==o;return s&&(e=r,i=o),{width:e,height:i,fallback:s}}function ap(t){return Mse(t)?(t.nodeName||"").toLowerCase():""}function Ase(){if(t4)return t4;var t=navigator.userAgentData;return t&&Array.isArray(t.brands)?t4=t.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function ch(t){return t instanceof kc(t).HTMLElement}function td(t){return t instanceof kc(t).Element}function Mse(t){return t instanceof kc(t).Node}function Ise(t){return typeof ShadowRoot<"u"&&(t instanceof kc(t).ShadowRoot||t instanceof ShadowRoot)}function Jk(t){var n=lh(t),o=n.display;return/auto|scroll|overlay|hidden|clip/.test(n.overflow+n.overflowY+n.overflowX)&&!["inline","contents"].includes(o)}function $We(t){return["table","td","th"].includes(ap(t))}function n4(t){var n=/firefox/i.test(Ase()),e=lh(t),i=e.backdropFilter||e.WebkitBackdropFilter;return"none"!==e.transform||"none"!==e.perspective||!!i&&"none"!==i||n&&"filter"===e.willChange||n&&!!e.filter&&"none"!==e.filter||["transform","perspective"].some(function(r){return e.willChange.includes(r)})||["paint","layout","strict","content"].some(function(r){var o=e.contain;return null!=o&&o.includes(r)})}function i4(){return/^((?!chrome|android).)*safari/i.test(Ase())}function r4(t){return["html","body","#document"].includes(ap(t))}function Fse(t){return td(t)?t:t.contextElement}var Nse={x:1,y:1};function m0(t){var n=Fse(t);if(!ch(n))return Nse;var e=n.getBoundingClientRect(),i=Ese(n),r=i.width,o=i.height,s=i.fallback,a=(s?Yk(e.width):e.width)/r,l=(s?Yk(e.height):e.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}function Vm(t,n,e,i){var r,o;void 0===n&&(n=!1),void 0===e&&(e=!1);var s=t.getBoundingClientRect(),a=Fse(t),l=Nse;n&&(i?td(i)&&(l=m0(i)):l=m0(t));var c=a?kc(a):window,u=i4()&&e,d=(s.left+(u&&(null==(r=c.visualViewport)?void 0:r.offsetLeft)||0))/l.x,h=(s.top+(u&&(null==(o=c.visualViewport)?void 0:o.offsetTop)||0))/l.y,f=s.width/l.x,p=s.height/l.y;if(a)for(var m=kc(a),g=i&&td(i)?kc(i):i,v=m.frameElement;v&&i&&g!==m;){var y=m0(v),_=v.getBoundingClientRect(),C=getComputedStyle(v);_.x+=(v.clientLeft+parseFloat(C.paddingLeft))*y.x,_.y+=(v.clientTop+parseFloat(C.paddingTop))*y.y,d*=y.x,h*=y.y,f*=y.x,p*=y.y,d+=_.x,h+=_.y,v=kc(v).frameElement}return{width:f,height:p,top:h,right:d+f,bottom:h+p,left:d,x:d,y:h}}function lp(t){return((Mse(t)?t.ownerDocument:t.document)||window.document).documentElement}function Kk(t){return td(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ose(t){return Vm(lp(t)).left+Kk(t).scrollLeft}function Xb(t){if("html"===ap(t))return t;var n=t.assignedSlot||t.parentNode||Ise(t)&&t.host||lp(t);return Ise(n)?n.host:n}function jse(t){var n=Xb(t);return r4(n)?n.ownerDocument.body:ch(n)&&Jk(n)?n:jse(n)}function Yb(t,n){var e;void 0===n&&(n=[]);var i=jse(t),r=i===(null==(e=t.ownerDocument)?void 0:e.body),o=kc(i);return r?n.concat(o,o.visualViewport||[],Jk(i)?i:[]):n.concat(i,Yb(i))}function Pse(t,n,e){var i,l,c,u,d,h,f,p,m;if("viewport"===n)i=function(l,c){var u=kc(l),d=lp(l),h=u.visualViewport,f=d.clientWidth,p=d.clientHeight,m=0,g=0;if(h){f=h.width,p=h.height;var v=i4();(!v||v&&"fixed"===c)&&(m=h.offsetLeft,g=h.offsetTop)}return{width:f,height:p,x:m,y:g}}(t,e);else if("document"===n)l=lp(t),c=lp(l),u=Kk(l),h=qb(c.scrollWidth,c.clientWidth,(d=l.ownerDocument.body).scrollWidth,d.clientWidth),f=qb(c.scrollHeight,c.clientHeight,d.scrollHeight,d.clientHeight),p=-u.scrollLeft+Ose(l),m=-u.scrollTop,"rtl"===lh(d).direction&&(p+=qb(c.clientWidth,d.clientWidth)-h),i={width:h,height:f,x:p,y:m};else if(td(n))i=function(l,c){var u=Vm(l,!0,"fixed"===c),d=u.top+l.clientTop,h=u.left+l.clientLeft,f=ch(l)?m0(l):{x:1,y:1};return{width:l.clientWidth*f.x,height:l.clientHeight*f.y,x:h*f.x,y:d*f.y}}(n,e);else{var r=Ze({},n);if(i4()){var o,s,a=kc(t);r.x-=(null==(o=a.visualViewport)?void 0:o.offsetLeft)||0,r.y-=(null==(s=a.visualViewport)?void 0:s.offsetTop)||0}i=r}return QO(i)}function Lse(t,n){return ch(t)&&"fixed"!==lh(t).position?n?n(t):t.offsetParent:null}function Rse(t,n){for(var e=kc(t),i=Lse(t,n);i&&$We(i)&&"static"===lh(i).position;)i=Lse(i,n);return i&&("html"===ap(i)||"body"===ap(i)&&"static"===lh(i).position&&!n4(i))?e:i||function(r){for(var o=Xb(r);ch(o)&&!r4(o);){if(n4(o))return o;o=Xb(o)}return null}(t)||e}function BWe(t,n,e){var i=ch(n),r=lp(n),o=Vm(t,!0,"fixed"===e,n),s={scrollLeft:0,scrollTop:0},a={x:0,y:0};if(i||!i&&"fixed"!==e)if(("body"!==ap(n)||Jk(r))&&(s=Kk(n)),ch(n)){var l=Vm(n,!0);a.x=l.x+n.clientLeft,a.y=l.y+n.clientTop}else r&&(a.x=Ose(r));return{x:o.left+s.scrollLeft-a.x,y:o.top+s.scrollTop-a.y,width:o.width,height:o.height}}var VWe={getClippingRect:function(t){var n=t.element,e=t.boundary,i=t.rootBoundary,r=t.strategy,o="clippingAncestors"===e?function(c,u){var d=u.get(c);if(d)return d;for(var h=Yb(c).filter(function(y){return td(y)&&"body"!==ap(y)}),f=null,p="fixed"===lh(c).position,m=p?Xb(c):c;td(m)&&!r4(m);){var g=lh(m),v=n4(m);"fixed"===g.position?f=null:(p?v||f:v||"static"!==g.position||!f||!["absolute","fixed"].includes(f.position))?f=g:h=h.filter(function(y){return y!==m}),m=Xb(m)}return u.set(c,h),h}(n,this._c):[].concat(e),s=[].concat(si(o),[i]),l=s.reduce(function(c,u){var d=Pse(n,u,r);return c.top=qb(d.top,c.top),c.right=Tse(d.right,c.right),c.bottom=Tse(d.bottom,c.bottom),c.left=qb(d.left,c.left),c},Pse(n,s[0],r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){var n=t.rect,e=t.offsetParent,i=t.strategy,r=ch(e),o=lp(e);if(e===o)return n;var s={scrollLeft:0,scrollTop:0},a={x:1,y:1},l={x:0,y:0};if((r||!r&&"fixed"!==i)&&(("body"!==ap(e)||Jk(o))&&(s=Kk(e)),ch(e))){var c=Vm(e);a=m0(e),l.x=c.x+e.clientLeft,l.y=c.y+e.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-s.scrollLeft*a.x+l.x,y:n.y*a.y-s.scrollTop*a.y+l.y}},isElement:td,getDimensions:function(t){return ch(t)?Ese(t):t.getBoundingClientRect()},getOffsetParent:Rse,getDocumentElement:lp,getScale:m0,getElementRects:function(t){var n=this;return Zi(vn().mark(function e(){var i,r,o,s,a;return vn().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return i=t.reference,r=t.floating,o=t.strategy,s=n.getOffsetParent||Rse,a=n.getDimensions,l.t0=BWe,l.t1=i,l.next=6,s(r);case 6:return l.t2=l.sent,l.t3=o,l.t4=(0,l.t0)(l.t1,l.t2,l.t3),l.t5=Ze,l.t6={x:0,y:0},l.next=13,a(r);case 13:return l.t7=l.sent,l.t8=(0,l.t5)(l.t6,l.t7),l.abrupt("return",{reference:l.t4,floating:l.t8});case 16:case"end":return l.stop()}},e)}))()},getClientRects:function(t){return Array.from(t.getClientRects())},isRTL:function(t){return"rtl"===lh(t).direction}};function UWe(t){var e=t.filterText,i=t.items,r=t.multiple,o=t.value,s=t.itemId,a=t.groupBy,l=t.filterSelectedItems,c=t.itemFilter,u=t.convertStringItemsToObjects,d=t.filterGroupedItems,h=t.label;if(i&&t.loadOptions)return i;if(!i)return[];i&&i.length>0&&"object"!==bn(i[0])&&(i=u(i));var f=i.filter(function(p){var m=c(p[h],e,p);return m&&r&&null!=o&&o.length&&(m=!o.some(function(g){return!!l&&g[s]===p[s]})),m});return a&&(f=d(f)),f}function GWe(t){return o4.apply(this,arguments)}function o4(){return o4=Zi(vn().mark(function t(n){var e,i,r,o,s;return vn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return e=n.dispatch,i=n.loadOptions,r=n.convertStringItemsToObjects,o=n.filterText,a.next=3,i(o).catch(function(l){console.warn("svelte-select loadOptions error :>> ",l),e("error",{type:"loadOptions",details:l})});case 3:if(!(s=a.sent)||s.cancelled){a.next=7;break}return s?(s&&s.length>0&&"object"!==bn(s[0])&&(s=r(s)),e("loaded",{items:s})):s=[],a.abrupt("return",{filteredItems:s,loading:!1,focused:!0,listOpen:!0});case 7:case"end":return a.stop()}},t)})),o4.apply(this,arguments)}function WWe(t){pi(t,"svelte-qbd276","svg.svelte-qbd276{width:var(--chevron-icon-width, 20px);height:var(--chevron-icon-width, 20px);color:var(--chevron-icon-colour, currentColor)}")}function qWe(t){var n,e;return{c:function(){n=Wd("svg"),P(e=Wd("path"),"fill","currentColor"),P(e,"d","M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747\n 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0\n 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502\n 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0\n 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"),P(n,"width","100%"),P(n,"height","100%"),P(n,"viewBox","0 0 20 20"),P(n,"focusable","false"),P(n,"aria-hidden","true"),P(n,"class","svelte-qbd276")},m:function(i,r){Pe(i,n,r),de(n,e)},p:Lt,i:Lt,o:Lt,d:function(i){i&&je(n)}}}var XWe=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,null,qWe,ys,{},WWe),r}return Se(e)}();function YWe(t){pi(t,"svelte-whdbu1","svg.svelte-whdbu1{width:var(--clear-icon-width, 20px);height:var(--clear-icon-width, 20px);color:var(--clear-icon-color, currentColor)}")}function JWe(t){var n,e;return{c:function(){n=Wd("svg"),P(e=Wd("path"),"fill","currentColor"),P(e,"d","M34.923,37.251L24,26.328L13.077,37.251L9.436,33.61l10.923-10.923L9.436,11.765l3.641-3.641L24,19.047L34.923,8.124\n l3.641,3.641L27.641,22.688L38.564,33.61L34.923,37.251z"),P(n,"width","100%"),P(n,"height","100%"),P(n,"viewBox","-2 -2 50 50"),P(n,"focusable","false"),P(n,"aria-hidden","true"),P(n,"role","presentation"),P(n,"class","svelte-whdbu1")},m:function(i,r){Pe(i,n,r),de(n,e)},p:Lt,i:Lt,o:Lt,d:function(i){i&&je(n)}}}var Qk=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,null,JWe,ys,{},YWe),r}return Se(e)}();function KWe(t){pi(t,"svelte-1p3nqvd",".loading.svelte-1p3nqvd{width:var(--spinner-width, 20px);height:var(--spinner-height, 20px);color:var(--spinner-color, var(--icons-color));animation:svelte-1p3nqvd-rotate 0.75s linear infinite;transform-origin:center center;transform:none}.circle_path.svelte-1p3nqvd{stroke-dasharray:90;stroke-linecap:round}@keyframes svelte-1p3nqvd-rotate{100%{transform:rotate(360deg)}}")}function QWe(t){var n,e;return{c:function(){n=Wd("svg"),P(e=Wd("circle"),"class","circle_path svelte-1p3nqvd"),P(e,"cx","50"),P(e,"cy","50"),P(e,"r","20"),P(e,"fill","none"),P(e,"stroke","currentColor"),P(e,"stroke-width","5"),P(e,"stroke-miterlimit","10"),P(n,"class","loading svelte-1p3nqvd"),P(n,"viewBox","25 25 50 50")},m:function(i,r){Pe(i,n,r),de(n,e)},p:Lt,i:Lt,o:Lt,d:function(i){i&&je(n)}}}var ZWe=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,null,QWe,ys,{},KWe),r}return Se(e)}();function eqe(t){pi(t,"svelte-tyxmms",".svelte-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{--borderRadius:var(--border-radius);--clearSelectColor:var(--clear-select-color);--clearSelectWidth:var(--clear-select-width);--disabledBackground:var(--disabled-background);--disabledBorderColor:var(--disabled-border-color);--disabledColor:var(--disabled-color);--disabledPlaceholderColor:var(--disabled-placeholder-color);--disabledPlaceholderOpacity:var(--disabled-placeholder-opacity);--errorBackground:var(--error-background);--errorBorder:var(--error-border);--groupItemPaddingLeft:var(--group-item-padding-left);--groupTitleColor:var(--group-title-color);--groupTitleFontSize:var(--group-title-font-size);--groupTitleFontWeight:var(--group-title-font-weight);--groupTitlePadding:var(--group-title-padding);--groupTitleTextTransform:var(--group-title-text-transform);--indicatorColor:var(--chevron-color);--indicatorHeight:var(--chevron-height);--indicatorWidth:var(--chevron-width);--inputColor:var(--input-color);--inputLeft:var(--input-left);--inputLetterSpacing:var(--input-letter-spacing);--inputMargin:var(--input-margin);--inputPadding:var(--input-padding);--itemActiveBackground:var(--item-active-background);--itemColor:var(--item-color);--itemFirstBorderRadius:var(--item-first-border-radius);--itemHoverBG:var(--item-hover-bg);--itemHoverColor:var(--item-hover-color);--itemIsActiveBG:var(--item-is-active-bg);--itemIsActiveColor:var(--item-is-active-color);--itemIsNotSelectableColor:var(--item-is-not-selectable-color);--itemPadding:var(--item-padding);--listBackground:var(--list-background);--listBorder:var(--list-border);--listBorderRadius:var(--list-border-radius);--listEmptyColor:var(--list-empty-color);--listEmptyPadding:var(--list-empty-padding);--listEmptyTextAlign:var(--list-empty-text-align);--listMaxHeight:var(--list-max-height);--listPosition:var(--list-position);--listShadow:var(--list-shadow);--listZIndex:var(--list-z-index);--multiItemBG:var(--multi-item-bg);--multiItemBorderRadius:var(--multi-item-border-radius);--multiItemDisabledHoverBg:var(--multi-item-disabled-hover-bg);--multiItemDisabledHoverColor:var(--multi-item-disabled-hover-color);--multiItemHeight:var(--multi-item-height);--multiItemMargin:var(--multi-item-margin);--multiItemPadding:var(--multi-item-padding);--multiSelectInputMargin:var(--multi-select-input-margin);--multiSelectInputPadding:var(--multi-select-input-padding);--multiSelectPadding:var(--multi-select-padding);--placeholderColor:var(--placeholder-color);--placeholderOpacity:var(--placeholder-opacity);--selectedItemPadding:var(--selected-item-padding);--spinnerColor:var(--spinner-color);--spinnerHeight:var(--spinner-height);--spinnerWidth:var(--spinner-width);--internal-padding:0 0 0 16px;border:var(--border, 1px solid #d8dbdf);border-radius:var(--border-radius, 6px);min-height:var(--height, 42px);position:relative;display:flex;align-items:stretch;padding:var(--padding, var(--internal-padding));background:var(--background, #fff);margin:var(--margin, 0);width:var(--width, 100%);font-size:var(--font-size, 16px)}.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{box-sizing:var(--box-sizing, border-box)}.svelte-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:hover{border:var(--border-hover, 1px solid #b2b8bf)}.value-container.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;flex:1 1 0%;flex-wrap:wrap;align-items:center;gap:5px 10px;padding:5px 0;position:relative;overflow:hidden;align-self:stretch}.prepend.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.indicators.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;flex-shrink:0;align-items:center}input.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{position:absolute;cursor:default;border:none;color:var(--input-color, var(--item-color));padding:var(--input-padding, 0);letter-spacing:var(--input-letter-spacing, inherit);margin:var(--input-margin, 0);min-width:10px;top:0;right:0;bottom:0;left:0;background:transparent;font-size:var(--font-size, 16px)}.svelte-tyxmms:not(.multi)>.value-container.svelte-tyxmms>input.svelte-tyxmms{width:100%;height:100%}input.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms::placeholder{color:var(--placeholder-color, #78848f);opacity:var(--placeholder-opacity, 1)}input.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:focus{outline:none}.svelte-select.focused.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{border:var(--border-focused, 1px solid #006fe8);border-radius:var(--border-radius-focused, var(--border-radius, 6px))}.disabled.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{background:var(--disabled-background, #ebedef);border-color:var(--disabled-border-color, #ebedef);color:var(--disabled-color, #c1c6cc)}.disabled.svelte-tyxmms input.svelte-tyxmms.svelte-tyxmms::placeholder{color:var(--disabled-placeholder-color, #c1c6cc);opacity:var(--disabled-placeholder-opacity, 1)}.selected-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{position:relative;overflow:var(--selected-item-overflow, hidden);padding:var(--selected-item-padding, 0 20px 0 0);text-overflow:ellipsis;white-space:nowrap;color:var(--selected-item-color, inherit);font-size:var(--font-size, 16px)}.multi.svelte-tyxmms .selected-item.svelte-tyxmms.svelte-tyxmms{position:absolute;line-height:var(--height, 42px);height:var(--height, 42px)}.selected-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:focus{outline:none}.hide-selected-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{opacity:0}.icon.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;align-items:center;justify-content:center}.clear-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{all:unset;display:flex;align-items:center;justify-content:center;width:var(--clear-select-width, 40px);height:var(--clear-select-height, 100%);color:var(--clear-select-color, var(--icons-color));margin:var(--clear-select-margin, 0);pointer-events:all;flex-shrink:0}.clear-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:focus{outline:var(--clear-select-focus-outline, 1px solid #006fe8)}.loading.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{width:var(--loading-width, 40px);height:var(--loading-height);color:var(--loading-color, var(--icons-color));margin:var(--loading--margin, 0);flex-shrink:0}.chevron.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{width:var(--chevron-width, 40px);height:var(--chevron-height, 40px);background:var(--chevron-background, transparent);pointer-events:var(--chevron-pointer-events, none);color:var(--chevron-color, var(--icons-color));border:var(--chevron-border, 0 0 0 1px solid #d8dbdf);flex-shrink:0}.multi.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{padding:var(--multi-select-padding, var(--internal-padding))}.multi.svelte-tyxmms input.svelte-tyxmms.svelte-tyxmms{padding:var(--multi-select-input-padding, 0);position:relative;margin:var(--multi-select-input-margin, 5px 0);flex:1 1 40px}.svelte-select.error.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{border:var(--error-border, 1px solid #ff2d55);background:var(--error-background, #fff)}.a11y-text.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{z-index:9999;border:0px;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0px;white-space:nowrap}.multi-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{background:var(--multi-item-bg, #ebedef);margin:var(--multi-item-margin, 0);outline:var(--multi-item-outline, 1px solid #ddd);border-radius:var(--multi-item-border-radius, 4px);height:var(--multi-item-height, 25px);line-height:var(--multi-item-height, 25px);display:flex;cursor:default;padding:var(--multi-item-padding, 0 5px);overflow:hidden;gap:var(--multi-item-gap, 4px);outline-offset:-1px;max-width:var(--multi-max-width, none);color:var(--multi-item-color, var(--item-color))}.multi-item.disabled.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:hover{background:var(--multi-item-disabled-hover-bg, #ebedef);color:var(--multi-item-disabled-hover-color, #c1c6cc)}.multi-item-text.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.multi-item-clear.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;align-items:center;justify-content:center;--clear-icon-color:var(--multi-item-clear-icon-color, #000)}.multi-item.active.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{outline:var(--multi-item-active-outline, 1px solid #006fe8)}.svelte-select-list.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{box-shadow:var(--list-shadow, 0 2px 3px 0 rgba(44, 62, 80, 0.24));border-radius:var(--list-border-radius, 4px);max-height:var(--list-max-height, 252px);overflow-y:auto;background:var(--list-background, #fff);position:var(--list-position, absolute);z-index:var(--list-z-index, 2);border:var(--list-border)}.prefloat.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{opacity:0;pointer-events:none}.list-group-title.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{color:var(--group-title-color, #8f8f8f);cursor:default;font-size:var(--group-title-font-size, 16px);font-weight:var(--group-title-font-weight, 600);height:var(--height, 42px);line-height:var(--height, 42px);padding:var(--group-title-padding, 0 20px);text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap;text-transform:var(--group-title-text-transform, uppercase)}.empty.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{text-align:var(--list-empty-text-align, center);padding:var(--list-empty-padding, 20px 0);color:var(--list-empty-color, #78848f)}.item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{cursor:default;height:var(--item-height, var(--height, 42px));line-height:var(--item-line-height, var(--height, 42px));padding:var(--item-padding, 0 20px);color:var(--item-color, inherit);text-overflow:ellipsis;overflow:hidden;white-space:nowrap;transition:var(--item-transition, all 0.2s);align-items:center;width:100%}.item.group-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{padding-left:var(--group-item-padding-left, 40px)}.item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:active{background:var(--item-active-background, #b9daff)}.item.active.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{background:var(--item-is-active-bg, #007aff);color:var(--item-is-active-color, #fff)}.item.first.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{border-radius:var(--item-first-border-radius, 4px 4px 0 0)}.item.hover.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:not(.active){background:var(--item-hover-bg, #e7f2ff);color:var(--item-hover-color, inherit)}.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.item.hover.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.item.active.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:active{color:var(--item-is-not-selectable-color, #999);background:transparent}.required.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{opacity:0;z-index:-1;position:absolute;top:0;left:0;bottom:0;right:0}")}var tqe=function(t){return{value:8&t[0]}},$se=function(t){return{value:t[3]}},nqe=function(t){return{listOpen:64&t[0]}},Bse=function(t){return{listOpen:t[6]}},iqe=function(t){return{}},Vse=function(t){return{}},rqe=function(t){return{}},Hse=function(t){return{}},oqe=function(t){return{selection:8&t[0]}},zse=function(t){return{selection:t[3]}};function Use(t,n,e){var i=t.slice();return i[127]=n[e],i[129]=e,i}var sqe=function(t){return{}},Gse=function(t){return{}},aqe=function(t){return{selection:8&t[0]}},Wse=function(t){return{selection:t[127],index:t[129]}},lqe=function(t){return{}},qse=function(t){return{}},cqe=function(t){return{}},Xse=function(t){return{}};function Yse(t,n,e){var i=t.slice();return i[127]=n[e],i[129]=e,i}var uqe=function(t){return{item:16777216&t[0]}},Jse=function(t){return{item:t[127],index:t[129]}},dqe=function(t){return{filteredItems:16777216&t[0]}},Kse=function(t){return{filteredItems:t[24]}};function Qse(t){var n,e,i,r,o,s,a=[pqe,fqe,hqe],l=[];function c(u,d){return u[51].list?0:u[24].length>0?1:u[19]?-1:2}return~(e=c(t))&&(i=l[e]=a[e](t)),{c:function(){n=be("div"),i&&i.c(),P(n,"class","svelte-select-list svelte-tyxmms"),Mt(n,"prefloat",t[28])},m:function(u,d){Pe(u,n,d),~e&&l[e].m(n,null),t[91](n),r=!0,o||(s=[_a(t[49].call(null,n)),Nt(n,"scroll",t[41]),Nt(n,"pointerdown",Jh(t[50])),Nt(n,"pointerup",Kh(Jh(t[86])))],o=!0)},p:function(u,d){var h=e;(e=c(u))===h?~e&&l[e].p(u,d):(i&&($t(),ce(l[h],1,1,function(){l[h]=null}),Bt()),~e?((i=l[e])?i.p(u,d):(i=l[e]=a[e](u)).c(),Q(i,1),i.m(n,null)):i=null),(!r||268435456&d[0])&&Mt(n,"prefloat",u[28])},i:function(u){r||(Q(i),r=!0)},o:function(u){ce(i),r=!1},d:function(u){u&&je(n),~e&&l[e].d(),t[91](null),o=!1,ho(s)}}}function hqe(t){var n,e,i=t[83].empty,r=Ms(i,t,t[82],Xse),o=r||{c:function(){(e=be("div")).textContent="No options",P(e,"class","empty svelte-tyxmms")},m:function(s,a){Pe(s,e,a)},p:Lt,d:function(s){s&&je(e)}};return{c:function(){o&&o.c()},m:function(s,a){o&&o.m(s,a),n=!0},p:function(s,a){r&&r.p&&(!n||1048576&a[2])&&Fs(r,i,s,s[82],n?Is(i,s[82],a,cqe):Ns(s[82]),Xse)},i:function(s){n||(Q(o,s),n=!0)},o:function(s){ce(o,s),n=!1},d:function(s){o&&o.d(s)}}}function fqe(t){for(var n,e,i=t[24],r=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:1;clearTimeout(h),h=setTimeout(Qe,Jn)}:Dn,hi=n.debounceWait,di=void 0===hi?300:hi,kr=n.hideEmptyState,Qr=void 0!==kr&&kr,gi=n.inputAttributes,yr=void 0===gi?{}:gi,Ee=n.listAutoWidth,St=void 0===Ee||Ee,Ht=n.showChevron,sn=void 0!==Ht&&Ht,hn=n.listOffset,ri=void 0===hn?5:hn,Oi=n.hoverItemIndex,Bn=void 0===Oi?0:Oi,ei=n.floatingConfig,Yn=void 0===ei?{}:ei,br=n.class,Ar=void 0===br?"":br;function Po(Qe){var Jn=[],er={};Qe.forEach(function(wd){var Br=$r(wd);Jn.includes(Br)||(Jn.push(Br),er[Br]=[],Br&&er[Br].push(Object.assign(Js(Br,wd),{id:Br,groupHeader:!0,selectable:Wr}))),er[Br].push(Object.assign({groupItem:!!Br},wd))});var Qs=[];return Or(Jn).forEach(function(wd){er[wd]&&Qs.push.apply(Qs,si(er[wd]))}),Qs}function ca(){var Qe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,Jn=arguments.length>1?arguments[1]:void 0;e(7,Bn=Qe<0?0:Qe),!Jn&&$r&&c[Bn]&&!c[Bn].selectable&&wo(1)}function md(){var Qe=!0;if(B){var Jn=[],er=[];B.forEach(function(Qs){Jn.includes(Qs[Nn])?Qe=!1:(Jn.push(Qs[Nn]),er.push(Qs))}),Qe||e(3,B=er)}return Qe}function hu(Qe){var Jn=Qe?Qe[Nn]:B[Nn];return _n.find(function(er){return er[Nn]===Jn})}function ua(Qe){return Rl.apply(this,arguments)}function Rl(){return(Rl=Zi(vn().mark(function Qe(Jn){var er;return vn().wrap(function(Qs){for(;;)switch(Qs.prev=Qs.next){case 0:er=B[Jn],e(3,B=1===B.length?void 0:B.filter(function(wd){return wd!==er})),$("clear",er);case 3:case"end":return Qs.stop()}},Qe)}))).apply(this,arguments)}function gd(Qe){var Jn;ze&&N===(null===(Jn=document)||void 0===Jn?void 0:Jn.activeElement)||(Qe&&$("focus",Qe),N.focus(),e(2,ze=!0))}function Ps(Qe){return vd.apply(this,arguments)}function vd(){return(vd=Zi(vn().mark(function Qe(Jn){return vn().wrap(function(er){for(;;)switch(er.prev=er.next){case 0:if(!fi&&!z_){er.next=2;break}return er.abrupt("return");case 2:(Ue||ze)&&($("blur",Jn),yd(),e(2,ze=!1),e(26,f=void 0),N.blur());case 3:case"end":return er.stop()}},Qe)}))).apply(this,arguments)}function yd(){e(4,ie=""),e(6,Ue=!1)}y=Zi(vn().mark(function Qe(){return vn().wrap(function(Jn){for(;;)switch(Jn.prev=Jn.next){case 0:e(78,p=B),e(79,m=ie),e(80,g=V);case 3:case"end":return Jn.stop()}},Qe)})),Tv().$$.before_update.push(y),Wc(function(){Ue&&e(2,ze=!0),ze&&N&&N.focus()});var an,eT=n.ariaValues,Ce=void 0===eT?function(Qe){return"Option ".concat(Qe,", selected.")}:eT,lt=n.ariaListOpen,It=void 0===lt?function(Qe,Jn){return"You are currently focused on option ".concat(Qe,". There are ").concat(Jn," results available.")}:lt,Jt=n.ariaFocused,nn=void 0===Jt?function(){return"Select is focused, type to refine list, press down to open the menu."}:Jt,Vn=null;function li(){clearTimeout(an),an=setTimeout(function(){fi=!1},100)}Hu(function(){var Qe;null===(Qe=Vn)||void 0===Qe||Qe.remove()});var fi=!1;function Lo(Qe){Qe&&!1!==Qe.selectable&&function(Jn){if(Jn){e(4,ie="");var er=Object.assign({},Jn);if(er.groupHeader&&!er.selectable)return;e(3,B=V?B?B.concat([er]):[er]:e(3,B=er)),setTimeout(function(){qr&&yd(),e(26,f=void 0),$("change",B),$("select",Jn)})}}(Qe)}function Ls(Qe){fi||e(7,Bn=Qe)}function Zo(Qe){var Qs,Jn=Qe.item,er=Qe.i;if(!1!==Jn?.selectable){if(B&&!V&&B[Nn]===Jn[Nn])return yd();((Qs=Jn).groupHeader&&Qs.selectable||Qs.selectable||!Qs.hasOwnProperty("selectable"))&&(e(7,Bn=er),Lo(Jn)),z_=!1}}function wo(Qe){if(0===c.filter(function(er){return!Object.hasOwn(er,"selectable")||!0===er.selectable}).length)return e(7,Bn=0);e(7,Qe>0&&Bn===c.length-1?Bn=0:Qe<0&&0===Bn?Bn=c.length-1:Bn+=Qe);var Jn=c[Bn];Jn&&!1===Jn.selectable&&(1!==Qe&&-1!==Qe||wo(Qe))}var $l=bd,wh=bd;function bd(Qe){return{update:function(Jn){Jn.scroll&&(li(),Qe.scrollIntoView({behavior:"auto",block:"nearest"}))}}}var Mr={strategy:"absolute",placement:"bottom-start",middleware:[PWe(ri),jWe(),RWe()],autoUpdate:!1},tc=Un(function zWe(t){var n,e,i={autoUpdate:!0},r=t,o=function(l){return Ze(Ze(Ze({},i),t||{}),l||{})},s=function(l){var c,u,d,h,f,p;n&&e&&(r=o(l),(c=n,u=e,d=r,h=new Map,f=Ze({platform:VWe},d),p=Ze(Ze({},f.platform),{},{_c:h}),EWe(c,u,Ze(Ze({},f),{},{platform:p}))).then(function(c){var u;Object.assign(e.style,{position:c.strategy,left:"".concat(c.x,"px"),top:"".concat(c.y,"px")}),null!==(u=r)&&void 0!==u&&u.onComputed&&r.onComputed(c)}))};return[function(l){if("subscribe"in l)return function(l){Hu(l.subscribe(function(c){void 0===n?(n=c,s()):(Object.assign(n,c),s())}))}(l),{};n=l,s()},function(l,c){var u;e=l,r=o(c),setTimeout(function(){return s(c)},0),s(c);var d=function(){u&&(u(),u=void 0)},h=function(){var p=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:r||{}).autoUpdate;if(d(),!1!==p)return function HWe(t,n,e,i){void 0===i&&(i={});var o=i.ancestorScroll,a=i.ancestorResize,l=void 0===a||a,c=i.elementResize,u=void 0===c||c,d=i.animationFrame,h=void 0!==d&&d,f=(void 0===o||o)&&!h,p=f||l?[].concat(si(td(t)?Yb(t):t.contextElement?Yb(t.contextElement):[]),si(Yb(n))):[];p.forEach(function(_){f&&_.addEventListener("scroll",e,{passive:!0}),l&&_.addEventListener("resize",e)});var m,g=null;if(u){var v=!0;g=new ResizeObserver(function(){v||e(),v=!1}),td(t)&&!h&&g.observe(t),td(t)||!t.contextElement||h||g.observe(t.contextElement),g.observe(n)}var y=h?Vm(t):null;return h&&function _(){var C=Vm(t);!y||C.x===y.x&&C.y===y.y&&C.width===y.width&&C.height===y.height||e(),y=C,m=requestAnimationFrame(_)}(),e(),function(){var _;p.forEach(function(C){f&&C.removeEventListener("scroll",e),l&&C.removeEventListener("resize",e)}),null==(_=g)||_.disconnect(),g=null,h&&cancelAnimationFrame(m)}}(n,e,function(){return s(r)},!0===p?{}:p)};return u=h(),{update:function(f){s(f),u=h(f)},destroy:function(){d()}}},s]}(Mr),3),fu=tc[0],_d=tc[1],Ch=tc[2],xd=!0,z_=!1;return t.$$set=function(Qe){"justValue"in Qe&&e(53,R=Qe.justValue),"filter"in Qe&&e(54,U=Qe.filter),"getItems"in Qe&&e(55,re=Qe.getItems),"id"in Qe&&e(56,X=Qe.id),"name"in Qe&&e(8,H=Qe.name),"container"in Qe&&e(0,E=Qe.container),"input"in Qe&&e(1,N=Qe.input),"multiple"in Qe&&e(9,V=Qe.multiple),"multiFullItemClearable"in Qe&&e(10,fe=Qe.multiFullItemClearable),"disabled"in Qe&&e(11,xe=Qe.disabled),"focused"in Qe&&e(2,ze=Qe.focused),"value"in Qe&&e(3,B=Qe.value),"filterText"in Qe&&e(4,ie=Qe.filterText),"placeholder"in Qe&&e(57,Ye=Qe.placeholder),"placeholderAlwaysShow"in Qe&&e(58,_t=Qe.placeholderAlwaysShow),"items"in Qe&&e(52,_n=Qe.items),"label"in Qe&&e(12,on=Qe.label),"itemFilter"in Qe&&e(59,pn=Qe.itemFilter),"groupBy"in Qe&&e(60,$r=Qe.groupBy),"groupFilter"in Qe&&e(61,Or=Qe.groupFilter),"groupHeaderSelectable"in Qe&&e(62,Wr=Qe.groupHeaderSelectable),"itemId"in Qe&&e(13,Nn=Qe.itemId),"loadOptions"in Qe&&e(63,ui=Qe.loadOptions),"containerStyles"in Qe&&e(14,Cr=Qe.containerStyles),"hasError"in Qe&&e(15,Qo=Qe.hasError),"filterSelectedItems"in Qe&&e(64,On=Qe.filterSelectedItems),"required"in Qe&&e(16,bi=Qe.required),"closeListOnChange"in Qe&&e(65,qr=Qe.closeListOnChange),"createGroupHeaderItem"in Qe&&e(66,Js=Qe.createGroupHeaderItem),"searchable"in Qe&&e(17,Ks=Qe.searchable),"inputStyles"in Qe&&e(18,Xa=Qe.inputStyles),"clearable"in Qe&&e(68,we=Qe.clearable),"loading"in Qe&&e(5,qe=Qe.loading),"listOpen"in Qe&&e(6,Ue=Qe.listOpen),"debounce"in Qe&&e(69,ii=Qe.debounce),"debounceWait"in Qe&&e(70,di=Qe.debounceWait),"hideEmptyState"in Qe&&e(19,Qr=Qe.hideEmptyState),"inputAttributes"in Qe&&e(71,yr=Qe.inputAttributes),"listAutoWidth"in Qe&&e(72,St=Qe.listAutoWidth),"showChevron"in Qe&&e(20,sn=Qe.showChevron),"listOffset"in Qe&&e(73,ri=Qe.listOffset),"hoverItemIndex"in Qe&&e(7,Bn=Qe.hoverItemIndex),"floatingConfig"in Qe&&e(74,Yn=Qe.floatingConfig),"class"in Qe&&e(21,Ar=Qe.class),"ariaValues"in Qe&&e(75,Ce=Qe.ariaValues),"ariaListOpen"in Qe&&e(76,It=Qe.ariaListOpen),"ariaFocused"in Qe&&e(77,nn=Qe.ariaFocused),"$$scope"in Qe&&e(82,S=Qe.$$scope)},t.$$.update=function(){var Qe,Jn,er,Qs,wd,Br;8&t.$$.dirty[0]|2097152&t.$$.dirty[1]&&B&&function(){if("string"==typeof B){var Br,Zs=(_n||[]).find(function(pu){return pu[Nn]===B});e(3,B=Zs||(ql(Br={},Nn,B),ql(Br,"label",B),Br))}else V&&Array.isArray(B)&&B.length>0&&e(3,B=B.map(function(pu){return"string"==typeof pu?{value:pu,label:pu}:pu}))}(),131072&t.$$.dirty[0]|512&t.$$.dirty[2]&&(!yr&&Ks||(e(27,v=Object.assign({autocapitalize:"none",autocomplete:"off",autocorrect:"off",spellcheck:!1,tabindex:0,type:"text","aria-autocomplete":"list"},yr)),X&&e(27,v.id=X,v),Ks||e(27,v.readonly=!0,v))),512&t.$$.dirty[0]&&V&&B&&(Array.isArray(B)?e(3,B=si(B)):e(3,B=[B])),512&t.$$.dirty[0]|262144&t.$$.dirty[2]&&g&&!V&&B&&e(3,B=null),520&t.$$.dirty[0]&&V&&B&&B.length>1&&md(),8&t.$$.dirty[0]&&B&&(V?JSON.stringify(B)!==JSON.stringify(p)&&md()&&$("input",B):p&&JSON.stringify(B[Nn])===JSON.stringify(p[Nn])||$("input",B)),520&t.$$.dirty[0]|65536&t.$$.dirty[2]&&!B&&V&&p&&$("input",B),6&t.$$.dirty[0]&&!ze&&N&&yd(),16&t.$$.dirty[0]|131072&t.$$.dirty[2]&&ie!==m&&(ui||0!==ie.length)&&(ui?ii(Zi(vn().mark(function Br(){var Zs;return vn().wrap(function(pu){for(;;)switch(pu.prev=pu.next){case 0:return e(5,qe=!0),pu.next=3,re({dispatch:$,loadOptions:ui,convertStringItemsToObjects:lae,filterText:ie});case 3:(Zs=pu.sent)?(e(5,qe=Zs.loading),e(6,Ue=Ue?Zs.listOpen:ie.length>0),e(2,ze=Ue&&Zs.focused),e(52,_n=$r?Po(Zs.filteredItems):Zs.filteredItems)):(e(5,qe=!1),e(2,ze=!0),e(6,Ue=!0));case 5:case"end":return pu.stop()}},Br)})),di):(e(6,Ue=!0),V&&e(26,f=void 0))),12824&t.$$.dirty[0]|815792128&t.$$.dirty[1]|6&t.$$.dirty[2]&&e(24,c=U({loadOptions:ui,filterText:ie,items:_n,multiple:V,value:B,itemId:Nn,groupBy:$r,label:on,filterSelectedItems:On,itemFilter:pn,convertStringItemsToObjects:lae,filterGroupedItems:Po})),16777800&t.$$.dirty[0]&&!V&&Ue&&B&&c&&(Qe=c.findIndex(function(Br){return Br[Nn]===B[Nn]}),ca(Qe,!0)),576&t.$$.dirty[0]&&Ue&&V&&e(7,Bn=0),16&t.$$.dirty[0]&&ie&&e(7,Bn=0),128&t.$$.dirty[0]&&$("hoverItem",Bn),520&t.$$.dirty[0]&&e(25,i=V?B&&B.length>0:B),33554448&t.$$.dirty[0]&&e(35,r=i&&ie.length>0),33556512&t.$$.dirty[0]|64&t.$$.dirty[2]&&e(34,o=i&&we&&!xe&&!qe),520&t.$$.dirty[0]|201326592&t.$$.dirty[1]&&e(33,s=_t&&V||V&&0===(null===(Jn=B)||void 0===Jn?void 0:Jn.length)?Ye:B?"":Ye),520&t.$$.dirty[0]&&e(32,a=B?(er=V&&B.length>0?B.map(function(Br){return Br[on]}).join(", "):B[on],Ce(er)):""),16777412&t.$$.dirty[0]&&e(31,l=function(){if(!c||0===c.length)return"";var Br=c[Bn];return Ue&&Br?It(Br[on],c?c.length:0):nn()}()),2097152&t.$$.dirty[1]&&(Br=_n)&&0!==Br.length&&!Br.some(function(Zs){return"object"!==bn(Zs)})&&B&&(V?!B.some(function(Zs){return!Zs||!Zs[Nn]}):B[Nn])&&(Array.isArray(B)?e(3,B=B.map(function(Zs){return hu(Zs)||Zs})):e(3,B=hu()||B)),8712&t.$$.dirty[0]&&e(53,R=V?B?B.map(function(Br){return Br[Nn]}):null:B&&B[Nn]),520&t.$$.dirty[0]|65536&t.$$.dirty[2]&&(V||!p||B||$("input",B)),16777800&t.$$.dirty[0]&&Ue&&c&&!V&&!B&&ca(),16777216&t.$$.dirty[0]&&function(Br){Ue&&$("filter",Br)}(c),1&t.$$.dirty[0]|4096&t.$$.dirty[2]&&E&&void 0===(null===(Qs=Yn)||void 0===Qs?void 0:Qs.autoUpdate)&&e(81,Mr.autoUpdate=!0,Mr),1&t.$$.dirty[0]|528384&t.$$.dirty[2]&&E&&Yn&&Ch(Object.assign(Mr,Yn)),8388608&t.$$.dirty[0]&&e(30,u=!!Vn),8388672&t.$$.dirty[0]&&function(Br,Zs){if(!Br||!Zs)return e(28,xd=!0);setTimeout(function(){e(28,xd=!1)},0)}(Vn,Ue),8388673&t.$$.dirty[0]&&Ue&&E&&Vn&&(wd=E.getBoundingClientRect().width,e(23,Vn.style.width=St?wd+"px":"auto",Vn)),128&t.$$.dirty[0]&&e(29,d=Bn),70&t.$$.dirty[0]&&N&&Ue&&!ze&&gd()},[E,N,ze,B,ie,qe,Ue,Bn,H,V,fe,xe,on,Nn,Cr,Qo,bi,Ks,Xa,Qr,sn,Ar,function(){$("clear",B),e(3,B=void 0),yd(),gd()},Vn,c,i,f,v,xd,d,u,l,a,s,o,r,ua,function(Qe){if(ze)switch(Qe.stopPropagation(),Qe.key){case"Escape":Qe.preventDefault(),yd();break;case"Enter":if(Qe.preventDefault(),Ue){if(0===c.length)break;if(B&&!V&&B[Nn]===c[Bn][Nn]){yd();break}Lo(c[Bn])}break;case"ArrowDown":Qe.preventDefault(),Ue?wo(1):(e(6,Ue=!0),e(26,f=void 0));break;case"ArrowUp":Qe.preventDefault(),Ue?wo(-1):(e(6,Ue=!0),e(26,f=void 0));break;case"Tab":if(Ue&&ze){if(0===c.length||B&&B[Nn]===c[Bn][Nn])return yd();Qe.preventDefault(),Lo(c[Bn]),yd()}break;case"Backspace":if(!V||ie.length>0)return;if(V&&B&&B.length>0){if(ua(void 0!==f?f:B.length-1),0===f||void 0===f)break;e(26,f=B.length>f?f-1:void 0)}break;case"ArrowLeft":if(!B||!V||ie.length>0)return;void 0===f?e(26,f=B.length-1):B.length>f&&0!==f&&e(26,f-=1);break;case"ArrowRight":if(!B||!V||ie.length>0||void 0===f)return;f===B.length-1?e(26,f=void 0):f",">="].map(function(X){return{value:X,label:X}}),R=[{value:"asc",label:"ascending"},{value:"desc",label:"descending"}],z=null!==(i=M)&&void 0!==i&&null!==(r=i.filter)&&void 0!==r&&r.path?Lb(M.filter.path):null,U=null!==(o=M)&&void 0!==o&&null!==(s=o.filter)&&void 0!==s&&s.relation?G.find(function(X){var Z;return X.value===(null===(Z=M.filter)||void 0===Z?void 0:Z.relation)}):null,q=(null===(a=M)||void 0===a||null===(l=a.filter)||void 0===l?void 0:l.value)||"",re=null!==(c=M)&&void 0!==c&&null!==(u=c.sort)&&void 0!==u&&u.path?Lb(M.sort.path):null,L=null!==(d=M)&&void 0!==d&&null!==(h=d.sort)&&void 0!==h&&h.direction?R.find(function(X){var Z;return X.value===(null===(Z=M.sort)||void 0===Z?void 0:Z.direction)}):null;return t.$$set=function(X){"json"in X&&e(11,C=X.json),"queryOptions"in X&&e(10,M=X.queryOptions),"onChange"in X&&e(12,$=X.onChange)},t.$$.update=function(){var X,Z,H,he,E,F,N,Y,V,oe,fe,Fe,xe,tt,ze,ot,B,ne,ie,Ie,Ye;2048&t.$$.dirty&&e(15,f=Array.isArray(C)),34816&t.$$.dirty&&e(14,p=f?CO(C):[]),34816&t.$$.dirty&&e(13,m=f?CO(C,!0):[]),16384&t.$$.dirty&&e(7,g=p.map(Lb)),8192&t.$$.dirty&&e(6,v=m?m.map(Lb):[]),1088&t.$$.dirty&&e(5,y=null!==(X=M)&&void 0!==X&&null!==(Z=X.projection)&&void 0!==Z&&Z.paths&&v?M.projection.paths.map(function(ie){return v.find(function(Ie){return or(Ie.value,ie)})}).filter(function(ie){return!!ie}):null),1&t.$$.dirty&&(he=(null===(H=z)||void 0===H?void 0:H.value)||null,or(null===(E=M)||void 0===E||null===(F=E.filter)||void 0===F?void 0:F.path,he)||(_("changeFilterPath",he),e(10,M=qu(M,["filter","path"],he,!0)),$(M))),2&t.$$.dirty&&(Y=(null===(N=U)||void 0===N?void 0:N.value)||null,or(null===(V=M)||void 0===V||null===(oe=V.filter)||void 0===oe?void 0:oe.relation,Y)||(_("changeFilterRelation",Y),e(10,M=qu(M,["filter","relation"],Y,!0)),$(M))),4&t.$$.dirty&&(or(null===(Fe=M)||void 0===Fe||null===(xe=Fe.filter)||void 0===xe?void 0:xe.value,fe=q||null)||(_("changeFilterValue",fe),e(10,M=qu(M,["filter","value"],fe,!0)),$(M))),8&t.$$.dirty&&(ie=(null===(tt=re)||void 0===tt?void 0:tt.value)||null,or(null===(Ie=M)||void 0===Ie||null===(Ye=Ie.sort)||void 0===Ye?void 0:Ye.path,ie)||(_("changeSortPath",ie),e(10,M=qu(M,["sort","path"],ie,!0)),$(M))),16&t.$$.dirty&&(ot=(null===(ze=L)||void 0===ze?void 0:ze.value)||null,or(null===(B=M)||void 0===B||null===(ne=B.sort)||void 0===ne?void 0:ne.direction,ot)||(_("changeSortDirection",ot),e(10,M=qu(M,["sort","direction"],ot,!0)),$(M))),32&t.$$.dirty&&function(ie){var Ie,Ye;or(null===(Ie=M)||void 0===Ie||null===(Ye=Ie.projection)||void 0===Ye?void 0:Ye.paths,ie)||(_("changeProjectionPaths",ie),e(10,M=qu(M,["projection","paths"],ie,!0)),$(M))}(y?y.map(function(ie){return ie.value}):null)},[z,U,q,re,L,y,v,g,G,R,M,C,$,m,p,f,function(X){e(0,z=X)},function(X){e(1,U=X)},function(){e(2,q=this.value)},function(X){e(3,re=X)},function(X){e(4,L=X)},function(X){e(5,y=X),e(10,M),e(6,v),e(13,m),e(15,f),e(11,C)}]}var wqe=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,xqe,_qe,Ei,{json:11,queryOptions:10,onChange:12},bqe),r}return Se(e)}();function Cqe(t){pi(t,"svelte-19cxesy",".jse-select-query-language.svelte-19cxesy.svelte-19cxesy{position:relative;width:32px}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container.svelte-19cxesy{position:absolute;top:0;right:0;display:flex;flex-direction:column;box-shadow:var(--jse-controls-box-shadow)}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container .jse-query-language.svelte-19cxesy{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;text-align:left;padding:var(--jse-padding) calc(2 * var(--jse-padding));white-space:nowrap;color:var(--jse-context-menu-color);background:var(--jse-context-menu-background)}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container .jse-query-language.svelte-19cxesy:hover{background:var(--jse-context-menu-background-highlight)}")}function cae(t,n,e){var i=t.slice();return i[5]=n[e],i}function kqe(t){var n,e;return n=new sr({props:{data:Bb}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:Lt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function Sqe(t){var n,e;return n=new sr({props:{data:$b}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:Lt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function uae(t){var n,e,i,r,o,s,a,l,c,u,d=t[5].name+"",h=[Sqe,kqe],f=[];function p(g,v){return g[5].id===g[0]?0:1}function m(){return t[4](t[5])}return e=p(t),i=f[e]=h[e](t),{c:function(){n=be("button"),i.c(),r=it(),o=tn(d),s=it(),P(n,"type","button"),P(n,"class","jse-query-language svelte-19cxesy"),P(n,"title",a="Select ".concat(t[5].name," as query language")),Mt(n,"selected",t[5].id===t[0])},m:function(g,v){Pe(g,n,v),f[e].m(n,null),de(n,r),de(n,o),de(n,s),l=!0,c||(u=Nt(n,"click",m),c=!0)},p:function(g,v){var y=e;(e=p(t=g))===y?f[e].p(t,v):($t(),ce(f[y],1,1,function(){f[y]=null}),Bt(),(i=f[e])?i.p(t,v):(i=f[e]=h[e](t)).c(),Q(i,1),i.m(n,r)),(!l||2&v)&&d!==(d=t[5].name+"")&&qn(o,d),(!l||2&v&&a!==(a="Select ".concat(t[5].name," as query language")))&&P(n,"title",a),(!l||3&v)&&Mt(n,"selected",t[5].id===t[0])},i:function(g){l||(Q(i),l=!0)},o:function(g){ce(i),l=!1},d:function(g){g&&je(n),f[e].d(),c=!1,u()}}}function Dqe(t){for(var n,e,i,r=t[1],o=[],s=0;s1&&dae(t);return s=new sr({props:{data:p0}}),{c:function(){n=be("div"),(e=be("div")).textContent="Transform",i=it(),u&&u.c(),r=it(),o=be("button"),mt(s.$$.fragment),P(e,"class","jse-title svelte-d01h2s"),P(o,"type","button"),P(o,"class","jse-close svelte-d01h2s"),P(n,"class","jse-header svelte-d01h2s")},m:function(d,h){Pe(d,n,h),de(n,e),de(n,i),u&&u.m(n,null),de(n,r),de(n,o),ft(s,o,null),a=!0,l||(c=Nt(o,"click",t[2]),l=!0)},p:function(d,h){var f=Un(h,1)[0];d[0].length>1?u?(u.p(d,f),1&f&&Q(u,1)):((u=dae(d)).c(),Q(u,1),u.m(n,r)):u&&($t(),ce(u,1,1,function(){u=null}),Bt())},i:function(d){a||(Q(u),Q(s.$$.fragment,d),a=!0)},o:function(d){ce(u),ce(s.$$.fragment,d),a=!1},d:function(d){d&&je(n),u&&u.d(),pt(s),l=!1,c()}}}function Iqe(t,n,e){var i,r,o=n.queryLanguages,s=n.queryLanguageId,a=n.onChangeQueryLanguage,l=xa("simple-modal").close,c=xa("absolute-popup"),u=c.openAbsolutePopup,d=c.closeAbsolutePopup;return t.$$set=function(h){"queryLanguages"in h&&e(0,o=h.queryLanguages),"queryLanguageId"in h&&e(4,s=h.queryLanguageId),"onChangeQueryLanguage"in h&&e(5,a=h.onChangeQueryLanguage)},[o,i,l,function(){r=u(Eqe,{queryLanguages:o,queryLanguageId:s,onChangeQueryLanguage:function(h){d(r),a(h)}},{position:"bottom",offsetTop:-2,offsetLeft:0,anchor:i,closeOnOuterClick:!0})},s,a,function(h){Vi[h?"unshift":"push"](function(){e(1,i=h)})}]}var Fqe=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,Iqe,Mqe,Ei,{queryLanguages:0,queryLanguageId:4,onChangeQueryLanguage:5},Aqe),r}return Se(e)}(),s4=wa("jsoneditor:AutoScrollHandler"),Nqe=function(t,n,e,i){return(t/=i/2)<1?e/2*t*t+n:-e/2*(--t*(t-2)-1)+n},hae=function(){var t,n,e,i,r,o,s,a,l,c,u,d,h;function p(v){return v.getBoundingClientRect().top-(t.getBoundingClientRect?t.getBoundingClientRect().top:0)+e}function m(v){t.scrollTo?t.scrollTo(t.scrollLeft,v):t.scrollTop=v}function g(v){c||(c=v),m(o(u=v-c,e,a,l)),h=!0,u1&&void 0!==arguments[1]?arguments[1]:{};switch(l=1e3,r=y.offset||0,d=void 0,o=y.easing||Nqe,s=y.a11y||!1,bn(y.container)){case"object":t=y.container;break;case"string":t=document.querySelector(y.container);break;default:t=window.document.documentElement}switch(e=function f(){return t.scrollTop}(),bn(v)){case"number":n=void 0,s=!1,i=e+v;break;case"object":i=p(n=v);break;case"string":n=document.querySelector(v),i=p(n)}switch(a=i-e+r,bn(y.duration)){case"number":l=y.duration;break;case"function":l=y.duration(a)}h?c=0:requestAnimationFrame(g)}},Zk=wa("jsoneditor:History");function fae(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.maxItems||1e3,e=[],i=0;function r(){return i0}function s(){return{canUndo:r(),canRedo:o(),length:e.length}}function a(){t.onChange&&t.onChange(s())}return{add:function l(h){Zk("add",h),e=[h].concat(e.slice(i)).slice(0,n),i=0,a()},clear:function c(){Zk("clear"),e=[],i=0,a()},getState:s,undo:function u(){if(r()){var h=e[i];return i+=1,Zk("undo",h),a(),h}},redo:function d(){if(o())return Zk("redo",e[i-=1]),a(),e[i]}}}function g0(t,n){var e=Date.now(),i=t();return n(Date.now()-e),i}var v0=wa("validation");function pae(t,n,e,i){return v0("validateJSON"),n?n(e!==i?i.parse(e.stringify(t)):t):[]}function Oqe(t,n,e,i){if(v0("validateText"),t.length>104857600)return{validationErrors:[{path:[],message:"Validation turned off: the document is too large",severity:Xd.info}]};if(0===t.length)return null;try{var r=g0(function(){return e.parse(t)},function(l){return v0("validate: parsed json in ".concat(l," ms"))});if(!n)return null;var o=e===i?r:g0(function(){return i.parse(t)},function(l){return v0("validate: parsed json with the validationParser in ".concat(l," ms"))}),s=g0(function(){return n(o)},function(l){return v0("validate: validated json in ".concat(l," ms"))});return Hi(s)?null:{validationErrors:s}}catch(l){var a=g0(function(){return function(c,u){if(c.length>1048576)return!1;try{return u.parse(Yd(c)),!0}catch{return!1}}(t,e)},function(c){return v0("validate: checked whether repairable in ".concat(c," ms"))});return{parseError:Fk(t,l.message||l.toString()),isRepairable:a}}}var eS=wa("jsoneditor:FocusTracker");function a4(t){var n,i=t.onDestroy,r=t.getWindow,o=t.hasFocus,s=t.onFocus,a=t.onBlur,l=!1;function c(){var d=o();d&&(clearTimeout(n),l||(eS("focus"),s(),l=d))}function u(){l&&(clearTimeout(n),n=setTimeout(function(){eS("blur"),l=!1,a()}))}(0,t.onMount)(function(){eS("mount FocusTracker");var d=r();d&&(d.addEventListener("focusin",c,!0),d.addEventListener("focusout",u,!0))}),i(function(){eS("destroy FocusTracker");var d=r();d&&(d.removeEventListener("focusin",c,!0),d.removeEventListener("focusout",u,!0))})}function jqe(t){pi(t,"svelte-fqu1ku",".jse-message.svelte-fqu1ku.svelte-fqu1ku{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);padding:var(--jse-padding);display:flex;gap:var(--jse-padding);flex-wrap:wrap;align-items:stretch}.jse-message.jse-success.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-success-background);color:var(--jse-message-success-color)}.jse-message.svelte-fqu1ku .jse-text.svelte-fqu1ku{display:flex;flex:1;min-width:60%;align-items:center}.jse-message.svelte-fqu1ku .jse-text.jse-clickable.svelte-fqu1ku{cursor:pointer}.jse-message.svelte-fqu1ku .jse-text.jse-clickable.svelte-fqu1ku:hover{background-color:rgba(255, 255, 255, 0.1)}.jse-message.jse-error.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-error-background);color:var(--jse-message-error-color)}.jse-message.jse-warning.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-warning-background);color:var(--jse-message-warning-color)}.jse-message.jse-info.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-info-background);color:var(--jse-message-info-color)}.jse-message.svelte-fqu1ku .jse-actions.svelte-fqu1ku{display:flex;gap:var(--jse-padding)}.jse-message.svelte-fqu1ku .jse-actions button.jse-action.svelte-fqu1ku{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-message-action-background);color:inherit;padding:calc(0.5 * var(--jse-padding)) var(--jse-padding)}.jse-message.svelte-fqu1ku .jse-actions button.jse-action.svelte-fqu1ku:hover{background:var(--jse-message-action-background-highlight)}")}function mae(t,n,e){var i=t.slice();return i[8]=n[e],i}function gae(t){var n,e;return n=new sr({props:{data:t[1]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};2&r&&(o.data=i[1]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function vae(t){var n,e;return n=new sr({props:{data:t[8].icon}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};8&r&&(o.data=i[8].icon),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function yae(t){var n,e,i,r,o,s,a,l,c,u=t[8].text+"",d=t[8].icon&&vae(t);function h(){return t[6](t[8])}function f(){return t[7](t[8])}return{c:function(){n=be("button"),d&&d.c(),e=it(),i=tn(u),r=it(),P(n,"type","button"),P(n,"class","jse-button jse-action jse-primary svelte-fqu1ku"),P(n,"title",o=t[8].title),n.disabled=s=t[8].disabled},m:function(p,m){Pe(p,n,m),d&&d.m(n,null),de(n,e),de(n,i),de(n,r),a=!0,l||(c=[Nt(n,"click",h),Nt(n,"mousedown",f)],l=!0)},p:function(p,m){(t=p)[8].icon?d?(d.p(t,m),8&m&&Q(d,1)):((d=vae(t)).c(),Q(d,1),d.m(n,e)):d&&($t(),ce(d,1,1,function(){d=null}),Bt()),(!a||8&m)&&u!==(u=t[8].text+"")&&qn(i,u),(!a||8&m&&o!==(o=t[8].title))&&P(n,"title",o),(!a||8&m&&s!==(s=t[8].disabled))&&(n.disabled=s)},i:function(p){a||(Q(d),a=!0)},o:function(p){ce(d),a=!1},d:function(p){p&&je(n),d&&d.d(),l=!1,ho(c)}}}function Pqe(t){for(var n,e,i,r,o,s,a,l,c,u,d,h=t[1]&&gae(t),f=t[3],p=[],m=0;m100&&Cae(t);return{c:function(){n=be("table"),e=be("tbody");for(var u=0;u100?c?c.p(u,d):((c=Cae(u)).c(),c.m(e,null)):c&&(c.d(1),c=null)},i:function(u){if(!r){for(var d=0;d1&&xae(t);function y(){return t[6](t[7])}return{c:function(){n=be("tr"),e=be("td"),mt(i.$$.fragment),r=it(),o=be("td"),s=tn(m),a=it(),l=be("td"),c=tn(g),u=it(),d=be("td"),v&&v.c(),P(e,"class","jse-validation-error-icon svelte-1oe8e8r"),P(o,"class","svelte-1oe8e8r"),P(l,"class","svelte-1oe8e8r"),P(d,"class","jse-validation-error-action svelte-1oe8e8r"),P(n,"class","jse-validation-error svelte-1oe8e8r")},m:function(_,C){Pe(_,n,C),de(n,e),ft(i,e,null),de(n,r),de(n,o),de(o,s),de(n,a),de(n,l),de(l,c),de(n,u),de(n,d),v&&v.m(d,null),h=!0,f||(p=Nt(n,"click",y),f=!0)},p:function(_,C){t=_,(!h||1&C)&&m!==(m=tu(Kl(t[7].path))+"")&&qn(s,m),(!h||1&C)&&g!==(g=t[7].message+"")&&qn(c,g),0===t[9]&&t[0].length>1?v?(v.p(t,C),1&C&&Q(v,1)):((v=xae(t)).c(),Q(v,1),v.m(d,null)):v&&($t(),ce(v,1,1,function(){v=null}),Bt())},i:function(_){h||(Q(i.$$.fragment,_),Q(v),h=!0)},o:function(_){ce(i.$$.fragment,_),ce(v),h=!1},d:function(_){_&&je(n),pt(i),v&&v.d(),f=!1,p()}}}function Cae(t){var n,e,i,r,o,s,a,l,c,u,d,h=t[3]-100+"";return{c:function(){n=be("tr"),e=be("td"),i=it(),r=be("td"),o=it(),s=be("td"),a=tn("(and "),l=tn(h),c=tn(" more errors)"),u=it(),d=be("td"),P(e,"class","svelte-1oe8e8r"),P(r,"class","svelte-1oe8e8r"),P(s,"class","svelte-1oe8e8r"),P(d,"class","svelte-1oe8e8r"),P(n,"class","jse-validation-error svelte-1oe8e8r")},m:function(f,p){Pe(f,n,p),de(n,e),de(n,i),de(n,r),de(n,o),de(n,s),de(s,a),de(s,l),de(s,c),de(n,u),de(n,d)},p:function(f,p){8&p&&h!==(h=f[3]-100+"")&&qn(l,h)},d:function(f){f&&je(n)}}}function Vqe(t){var n,e,i=!Hi(t[0]),r=i&&_ae(t);return{c:function(){r&&r.c(),n=_r()},m:function(o,s){r&&r.m(o,s),Pe(o,n,s),e=!0},p:function(o,s){var a=Un(s,1)[0];1&a&&(i=!Hi(o[0])),i?r?(r.p(o,a),1&a&&Q(r,1)):((r=_ae(o)).c(),Q(r,1),r.m(n.parentNode,n)):r&&($t(),ce(r,1,1,function(){r=null}),Bt())},i:function(o){e||(Q(r),e=!0)},o:function(o){ce(r),e=!1},d:function(o){r&&r.d(o),o&&je(n)}}}function Hqe(t,n,e){var i,r=n.validationErrors,o=n.selectError,s=!0;return t.$$set=function(a){"validationErrors"in a&&e(0,r=a.validationErrors),"selectError"in a&&e(1,o=a.selectError)},t.$$.update=function(){1&t.$$.dirty&&e(3,i=r.length)},[r,o,s,i,function(){e(2,s=!1)},function(){e(2,s=!0)},function(a){setTimeout(function(){return o(a)})}]}var l4=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,Hqe,Vqe,Ei,{validationErrors:0,selectError:1},Rqe),r}return Se(e)}(),zqe=typeof navigator<"u"&&navigator.platform.toUpperCase().indexOf("MAC")>=0;function Uqe(t){pi(t,"svelte-d01h2s",".jse-header.svelte-d01h2s.svelte-d01h2s{display:flex;background:var(--jse-theme-color);color:var(--jse-menu-color)}.jse-header.svelte-d01h2s .jse-title.svelte-d01h2s{flex:1;padding:5px;vertical-align:middle}.jse-header.svelte-d01h2s button.svelte-d01h2s{border:none;background:transparent;min-width:32px;color:inherit;cursor:pointer}.jse-header.svelte-d01h2s button.svelte-d01h2s:hover{background:rgba(255, 255, 255, 0.1)}")}function Gqe(t){var n,e,i,r,o,s,a,l,c;return s=new sr({props:{data:p0}}),{c:function(){n=be("div"),e=be("div"),i=tn(t[0]),r=it(),o=be("button"),mt(s.$$.fragment),P(e,"class","jse-title svelte-d01h2s"),P(o,"type","button"),P(o,"class","jse-close svelte-d01h2s"),P(n,"class","jse-header svelte-d01h2s")},m:function(u,d){Pe(u,n,d),de(n,e),de(e,i),de(n,r),de(n,o),ft(s,o,null),a=!0,l||(c=Nt(o,"click",t[3]),l=!0)},p:function(u,d){var h=Un(d,1)[0];(!a||1&h)&&qn(i,u[0])},i:function(u){a||(Q(s.$$.fragment,u),a=!0)},o:function(u){ce(s.$$.fragment,u),a=!1},d:function(u){u&&je(n),pt(s),l=!1,c()}}}function Wqe(t,n,e){var i=n.title,r=void 0===i?"Modal":i,o=n.onClose,s=void 0===o?void 0:o,a=xa("simple-modal").close;return t.$$set=function(l){"title"in l&&e(0,r=l.title),"onClose"in l&&e(1,s=l.onClose)},[r,s,a,function(){s?s():a()}]}var c4=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,Wqe,Gqe,Ei,{title:0,onClose:1},Uqe),r}return Se(e)}();function qqe(t){pi(t,"svelte-1olothd",".jse-modal.svelte-1olothd.svelte-1olothd{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-1olothd .jse-modal-contents.svelte-1olothd{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions.svelte-1olothd{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-copy-paste.svelte-1olothd .jse-shortcuts.svelte-1olothd{display:flex;flex-wrap:wrap;justify-content:space-around;margin:calc(2 * var(--jse-padding)) 0}.jse-modal.jse-copy-paste.svelte-1olothd .jse-shortcuts .jse-shortcut .jse-key.svelte-1olothd{font-size:200%;color:var(--jse-theme-color)}")}function Xqe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,C,S,M,$,G;return e=new c4({props:{title:"Copying and pasting"}}),{c:function(){n=be("div"),mt(e.$$.fragment),i=it(),r=be("div"),(o=be("div")).textContent="These actions are unavailable via the menu. Please use:",s=it(),a=be("div"),l=be("div"),(c=be("div")).textContent="".concat(t[1],"+C"),u=tn("\n for copy"),d=it(),h=be("div"),(f=be("div")).textContent="".concat(t[1],"+X"),p=tn("\n for cut"),m=it(),g=be("div"),(v=be("div")).textContent="".concat(t[1],"+V"),y=tn("\n for paste"),_=it(),C=be("div"),(S=be("button")).textContent="Close",P(c,"class","jse-key svelte-1olothd"),P(l,"class","jse-shortcut"),P(f,"class","jse-key svelte-1olothd"),P(h,"class","jse-shortcut"),P(v,"class","jse-key svelte-1olothd"),P(g,"class","jse-shortcut"),P(a,"class","jse-shortcuts svelte-1olothd"),P(S,"type","button"),P(S,"class","jse-primary svelte-1olothd"),P(C,"class","jse-actions svelte-1olothd"),P(r,"class","jse-modal-contents svelte-1olothd"),P(n,"class","jse-modal jse-copy-paste svelte-1olothd")},m:function(R,z){Pe(R,n,z),ft(e,n,null),de(n,i),de(n,r),de(r,o),de(r,s),de(r,a),de(a,l),de(l,c),de(l,u),de(a,d),de(a,h),de(h,f),de(h,p),de(a,m),de(a,g),de(g,v),de(g,y),de(r,_),de(r,C),de(C,S),M=!0,$||(G=Nt(S,"click",t[0]),$=!0)},p:Lt,i:function(R){M||(Q(e.$$.fragment,R),M=!0)},o:function(R){ce(e.$$.fragment,R),M=!1},d:function(R){R&&je(n),pt(e),$=!1,G()}}}function Yqe(t){return[xa("simple-modal").close,zqe?"\u2318":"Ctrl"]}var kae=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,Yqe,Xqe,Ei,{},qqe),r}return Se(e)}();function Sae(t){return!!t&&("space"===t.type||!0===t.space)}function tS(t){return!!t&&("separator"===t.type||!0===t.separator)}function Jb(t){return!!t&&"function"==typeof t.onClick}function u4(t){return!!t&&"dropdown-button"===t.type&&Jb(t.main)&&Array.isArray(t.items)}function Dae(t){return Io(t)&&Io(t.parseError)}function Kqe(t){pi(t,"svelte-497ud4",".jse-menu.svelte-497ud4.svelte-497ud4{background:var(--jse-theme-color);border-bottom:1px solid var(--jse-theme-color);color:var(--jse-menu-color);display:flex;flex-wrap:wrap;align-items:center;position:relative}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4{width:var(--jse-menu-button-size);height:var(--jse-menu-button-size);border:none;background:transparent;color:inherit;cursor:pointer;padding:calc(0.5 * var(--jse-padding));margin:0;border-radius:0}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:hover,.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:focus{background:var(--jse-theme-color-highlight)}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:disabled{color:var(--jse-menu-color);opacity:0.5;background:transparent}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4{border:1px solid var(--jse-menu-color);padding:0 calc(0.5 * var(--jse-padding));margin:calc(0.5 * var(--jse-padding)) 0;height:calc(var(--jse-menu-button-size) - var(--jse-padding));width:auto}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:not(.jse-last){border-right:none}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-first.svelte-497ud4{margin-left:calc(0.5 * var(--jse-padding))}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-last.svelte-497ud4{margin-right:calc(0.5 * var(--jse-padding))}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:hover,.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:focus{background:var(--jse-theme-color-highlight)}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-selected.svelte-497ud4{background:var(--jse-menu-color);color:var(--jse-theme-color)}.jse-menu.svelte-497ud4 .jse-space.svelte-497ud4{flex:1}.jse-menu.svelte-497ud4 .jse-separator.svelte-497ud4{background:var(--jse-menu-color);opacity:0.3;box-sizing:border-box;width:1px;height:calc(var(--jse-menu-button-size) - 6px);margin:3px}")}var Qqe=function(t){return{}},Tae=function(t){return{}};function Eae(t,n,e){var i=t.slice();return i[3]=n[e],i}var Zqe=function(t){return{}},Aae=function(t){return{}};function eXe(t){var n,e=Nae(t[3])+"";return{c:function(){n=tn(e)},m:function(i,r){Pe(i,n,r)},p:function(i,r){1&r&&e!==(e=Nae(i[3])+"")&&qn(n,e)},i:Lt,o:Lt,d:function(i){i&&je(n)}}}function tXe(t){var n,e,i,r,o,s,a,l,c=t[3].icon&&Mae(t),u=t[3].text&&Iae(t);return{c:function(){n=be("button"),c&&c.c(),e=it(),u&&u.c(),P(n,"type","button"),P(n,"class",i="jse-button "+t[3].className+" svelte-497ud4"),P(n,"title",r=t[3].title),n.disabled=o=t[3].disabled||!1},m:function(d,h){Pe(d,n,h),c&&c.m(n,null),de(n,e),u&&u.m(n,null),s=!0,a||(l=Nt(n,"click",function(){ba(t[3].onClick)&&t[3].onClick.apply(this,arguments)}),a=!0)},p:function(d,h){(t=d)[3].icon?c?(c.p(t,h),1&h&&Q(c,1)):((c=Mae(t)).c(),Q(c,1),c.m(n,e)):c&&($t(),ce(c,1,1,function(){c=null}),Bt()),t[3].text?u?u.p(t,h):((u=Iae(t)).c(),u.m(n,null)):u&&(u.d(1),u=null),(!s||1&h&&i!==(i="jse-button "+t[3].className+" svelte-497ud4"))&&P(n,"class",i),(!s||1&h&&r!==(r=t[3].title))&&P(n,"title",r),(!s||1&h&&o!==(o=t[3].disabled||!1))&&(n.disabled=o)},i:function(d){s||(Q(c),s=!0)},o:function(d){ce(c),s=!1},d:function(d){d&&je(n),c&&c.d(),u&&u.d(),a=!1,l()}}}function nXe(t){var n;return{c:function(){P(n=be("div"),"class","jse-space svelte-497ud4")},m:function(e,i){Pe(e,n,i)},p:Lt,i:Lt,o:Lt,d:function(e){e&&je(n)}}}function iXe(t){var n;return{c:function(){P(n=be("div"),"class","jse-separator svelte-497ud4")},m:function(e,i){Pe(e,n,i)},p:Lt,i:Lt,o:Lt,d:function(e){e&&je(n)}}}function Mae(t){var n,e;return n=new sr({props:{data:t[3].icon}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};1&r&&(o.data=i[3].icon),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function Iae(t){var n,e=t[3].text+"";return{c:function(){n=tn(e)},m:function(i,r){Pe(i,n,r)},p:function(i,r){1&r&&e!==(e=i[3].text+"")&&qn(n,e)},d:function(i){i&&je(n)}}}function Fae(t){var n,e,i,r,o,s,a,l=[iXe,nXe,tXe,eXe],c=[];function u(d,h){return 1&h&&(n=null),1&h&&(e=null),1&h&&(i=null),null==n&&(n=!!tS(d[3])),n?0:(null==e&&(e=!!Sae(d[3])),e?1:(null==i&&(i=!!Jb(d[3])),i?2:3))}return r=u(t,-1),o=c[r]=l[r](t),{c:function(){o.c(),s=_r()},m:function(d,h){c[r].m(d,h),Pe(d,s,h),a=!0},p:function(d,h){var f=r;(r=u(d,h))===f?c[r].p(d,h):($t(),ce(c[f],1,1,function(){c[f]=null}),Bt(),(o=c[r])?o.p(d,h):(o=c[r]=l[r](d)).c(),Q(o,1),o.m(s.parentNode,s))},i:function(d){a||(Q(o),a=!0)},o:function(d){ce(o),a=!1},d:function(d){c[r].d(d),d&&je(s)}}}function rXe(t){for(var n,e,i,r,o=t[2].left,s=Ms(o,t,t[1],Aae),a=t[0],l=[],c=0;c0&&_.height>0}),u),c=u(e);function u(y){var _=y.getBoundingClientRect();return{x:_.left+_.width/2,y:_.top+_.height/2,rect:_,element:y}}function d(y,_){var S=y.x-_.x,M=(y.y-_.y)*(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1);return Math.sqrt(S*S+M*M)}var h=function(y){return d(y,c)};if("Left"===i||"Right"===i){var f=l.filter("Left"===i?function(y){return y.rect.left+ac.rect.right+a});return(Xv(f.filter(function(y){return Math.abs(y.y-c.y)c.y+a});return(Xv(g.filter(function(y){return o(y.element)}),h)||Xv(g,h))?.element}}({allElements:Array.from(i.querySelectorAll("button:not([disabled])")),currentElement:a.target,direction:c,hasPrio:function(d){return"jse-open-dropdown"!==d.getAttribute("data-type")}});u&&u.focus()}},function(a){Vi[a?"unshift":"push"](function(){e(2,i=a)})}]}var Jae=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,GXe,UXe,Ei,{items:0,tip:1},EXe),r}return Se(e)}();function WXe(t){var n,e;return n=new Jae({props:{items:t[1],tip:t[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};2&r[0]&&(o.items=i[1]),1&r[0]&&(o.tip=i[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function qXe(t,n,e){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,C,S,M,$=n.json,G=n.documentState,R=n.parser,z=n.showTip,U=n.onCloseContextMenu,q=n.onEditKey,re=n.onEditValue,L=n.onToggleEnforceString,X=n.onCut,Z=n.onCopy,H=n.onPaste,he=n.onRemove,E=n.onDuplicate,F=n.onExtract,N=n.onInsertBefore,Y=n.onInsert,V=n.onConvert,oe=n.onInsertAfter,fe=n.onSort,Fe=n.onTransform;function xe(){U(),q()}function tt(){U(),re()}function ze(){U(),L()}function ot(){U(),X(!0)}function B(){U(),X(!1)}function ne(){U(),Z(!0)}function ie(){U(),Z(!1)}function Ie(){U(),H()}function Ye(){U(),he()}function Le(){U(),E()}function _t(){U(),F()}function At(pn){U(),c?V(pn):Y(pn)}function _n(){U(),fe()}function ci(){U(),Fe()}function on(){U(),N()}function Fi(){U(),oe()}return t.$$set=function(pn){"json"in pn&&e(2,$=pn.json),"documentState"in pn&&e(3,G=pn.documentState),"parser"in pn&&e(4,R=pn.parser),"showTip"in pn&&e(0,z=pn.showTip),"onCloseContextMenu"in pn&&e(5,U=pn.onCloseContextMenu),"onEditKey"in pn&&e(6,q=pn.onEditKey),"onEditValue"in pn&&e(7,re=pn.onEditValue),"onToggleEnforceString"in pn&&e(8,L=pn.onToggleEnforceString),"onCut"in pn&&e(9,X=pn.onCut),"onCopy"in pn&&e(10,Z=pn.onCopy),"onPaste"in pn&&e(11,H=pn.onPaste),"onRemove"in pn&&e(12,he=pn.onRemove),"onDuplicate"in pn&&e(13,E=pn.onDuplicate),"onExtract"in pn&&e(14,F=pn.onExtract),"onInsertBefore"in pn&&e(15,N=pn.onInsertBefore),"onInsert"in pn&&e(16,Y=pn.onInsert),"onConvert"in pn&&e(17,V=pn.onConvert),"onInsertAfter"in pn&&e(18,oe=pn.onInsertAfter),"onSort"in pn&&e(19,fe=pn.onSort),"onTransform"in pn&&e(20,Fe=pn.onTransform)},t.$$.update=function(){8&t.$$.dirty[0]&&e(37,i=G.selection),4&t.$$.dirty[0]&&e(39,r=void 0!==$),64&t.$$.dirty[1]&&e(31,o=null!=i),65&t.$$.dirty[1]&&e(21,s=o&&Hi(i.focusPath)),4&t.$$.dirty[0]|65&t.$$.dirty[1]&&e(38,a=o?Sn($,i.focusPath):void 0),128&t.$$.dirty[1]&&e(35,l=Array.isArray(a)?"Edit array":Io(a)?"Edit object":"Edit value"),320&t.$$.dirty[1]&&e(22,c=r&&(Fr(i)||xs(i)||Yi(i))),6291456&t.$$.dirty[0]|256&t.$$.dirty[1]&&e(30,u=r&&c&&!s),2097152&t.$$.dirty[0]|320&t.$$.dirty[1]&&e(29,d=r&&null!=i&&(Fr(i)||Yi(i))&&!s),2097156&t.$$.dirty[0]|320&t.$$.dirty[1]&&e(36,h=r&&null!=i&&zb(i)&&!s&&!Array.isArray(Sn($,Xi(i.focusPath)))),320&t.$$.dirty[1]&&e(34,f=r&&null!=i&&zb(i)),136&t.$$.dirty[1]&&e(32,p=f&&!Ho(a)),4194304&t.$$.dirty[0]&&e(25,m=c),33554432&t.$$.dirty[0]&&e(24,g=m?"Convert to:":"Insert:"),33554432&t.$$.dirty[0]|1&t.$$.dirty[1]&&e(28,v=!m&&o),33554432&t.$$.dirty[0]|193&t.$$.dirty[1]&&e(27,y=m?Lm(i)&&!Io(a):o),33554432&t.$$.dirty[0]|193&t.$$.dirty[1]&&e(26,_=m?Lm(i)&&!Array.isArray(a):o),33554432&t.$$.dirty[0]|193&t.$$.dirty[1]&&e(23,C=m?Lm(i)&&Ho(a):o),24&t.$$.dirty[0]|192&t.$$.dirty[1]&&e(33,S=null!=i&&lf(a,G.enforceStringMap,ln(i.focusPath),R)),2145386496&t.$$.dirty[0]|63&t.$$.dirty[1]&&e(1,M=[{type:"row",items:[{type:"button",onClick:xe,icon:h0,text:"Edit key",title:"Edit the key (Double-click on the key)",disabled:!h},{type:"dropdown-button",main:{type:"button",onClick:tt,icon:h0,text:l,title:"Edit the value (Double-click on the value)",disabled:!f},width:"11em",items:[{type:"button",icon:h0,text:l,title:"Edit the value (Double-click on the value)",onClick:tt,disabled:!f},{type:"button",icon:S?$b:Bb,text:"Enforce string",title:"Enforce keeping the value as string when it contains a numeric value",onClick:ze,disabled:!p}]}]},{type:"separator"},{type:"row",items:[{type:"dropdown-button",main:{type:"button",onClick:ot,icon:d0,text:"Cut",title:"Cut selected contents, formatted with indentation (Ctrl+X)",disabled:!c},width:"10em",items:[{type:"button",icon:d0,text:"Cut formatted",title:"Cut selected contents, formatted with indentation (Ctrl+X)",onClick:ot,disabled:!c},{type:"button",icon:d0,text:"Cut compacted",title:"Cut selected contents, without indentation (Ctrl+Shift+X)",onClick:B,disabled:!c}]},{type:"dropdown-button",main:{type:"button",onClick:ne,icon:sp,text:"Copy",title:"Copy selected contents, formatted with indentation (Ctrl+C)",disabled:!c},width:"12em",items:[{type:"button",icon:sp,text:"Copy formatted",title:"Copy selected contents, formatted with indentation (Ctrl+C)",onClick:ne,disabled:!c},{type:"button",icon:sp,text:"Copy compacted",title:"Copy selected contents, without indentation (Ctrl+Shift+C)",onClick:ie,disabled:!c}]},{type:"button",onClick:Ie,icon:mse,text:"Paste",title:"Paste clipboard contents (Ctrl+V)",disabled:!o}]},{type:"separator"},{type:"row",items:[{type:"column",items:[{type:"button",onClick:Le,icon:wse,text:"Duplicate",title:"Duplicate selected contents (Ctrl+D)",disabled:!u},{type:"button",onClick:_t,icon:wWe,text:"Extract",title:"Extract selected contents",disabled:!d},{type:"button",onClick:_n,icon:Gk,text:"Sort",title:"Sort array or object contents",disabled:!c},{type:"button",onClick:ci,icon:Hk,text:"Transform",title:"Transform array or object contents (filter, sort, project)",disabled:!c},{type:"button",onClick:Ye,icon:XO,text:"Remove",title:"Remove selected contents (Delete)",disabled:!c}]},{type:"column",items:[{type:"label",text:g},{type:"button",onClick:function(){return At("structure")},icon:m?Uk:f0,text:"Structure",title:g+" structure",disabled:!v},{type:"button",onClick:function(){return At("object")},icon:m?Uk:f0,text:"Object",title:g+" structure",disabled:!y},{type:"button",onClick:function(){return At("array")},icon:m?Uk:f0,text:"Array",title:g+" array",disabled:!_},{type:"button",onClick:function(){return At("value")},icon:m?Uk:f0,text:"Value",title:g+" value",disabled:!C}]}]},{type:"separator"},{type:"row",items:[{type:"button",onClick:on,icon:_We,text:"Insert before",title:"Select area before current entry to insert or paste contents",disabled:!c||s},{type:"button",onClick:Fi,icon:vWe,text:"Insert after",title:"Select area after current entry to insert or paste contents",disabled:!c||s}]}])},[z,M,$,G,R,U,q,re,L,X,Z,H,he,E,F,N,Y,V,oe,fe,Fe,s,c,C,g,m,_,y,v,d,u,o,p,S,f,l,h,i,a,r]}var XXe=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,qXe,WXe,Ei,{json:2,documentState:3,parser:4,showTip:0,onCloseContextMenu:5,onEditKey:6,onEditValue:7,onToggleEnforceString:8,onCut:9,onCopy:10,onPaste:11,onRemove:12,onDuplicate:13,onExtract:14,onInsertBefore:15,onInsert:16,onConvert:17,onInsertAfter:18,onSort:19,onTransform:20},null,[-1,-1]),r}return Se(e)}();function YXe(t){pi(t,"svelte-1kai5ns","div.jse-collapsed-items.svelte-1kai5ns.svelte-1kai5ns{font-family:var(--jse-font-family);font-size:var(--jse-font-size);color:var(--jse-collapsed-items-link-color);padding:calc(0.5 * var(--jse-padding));border:8px solid transparent;border-width:8px 0;background-color:var(--jse-contents-background-color);background-image:linear-gradient(var(--jse-collapsed-items-background-color), var(--jse-collapsed-items-background-color)), linear-gradient(to bottom right, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to bottom left, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to top right, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to top left, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%);background-repeat:repeat, repeat-x, repeat-x, repeat-x, repeat-x;background-position:0 0, 8px 0, 8px 0, 8px 100%, 8px 100%;background-size:auto auto, 16px 16px, 16px 16px, 16px 16px, 16px 16px;background-clip:padding-box, border-box, border-box, border-box, border-box;background-origin:padding-box, border-box, border-box, border-box, border-box;display:flex}div.jse-collapsed-items.svelte-1kai5ns div.jse-text.svelte-1kai5ns,div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns{margin:0 calc(0.5 * var(--jse-padding))}div.jse-collapsed-items.svelte-1kai5ns div.jse-text.svelte-1kai5ns{display:inline}div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns{font-family:inherit;font-size:inherit;color:var(--jse-collapsed-items-link-color);background:none;border:none;padding:0;text-decoration:underline;cursor:pointer}div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns:hover,div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns:focus{color:var(--jse-collapsed-items-link-color-highlight)}")}function Kae(t,n,e){var i=t.slice();return i[13]=n[e],i}function Qae(t){var n,e,i,r,o,s,a,l,c=t[13].start+"",u=t[13].end+"";function d(){return t[12](t[13])}return{c:function(){n=be("button"),e=tn("show "),i=tn(c),r=tn("-"),o=tn(u),s=it(),P(n,"type","button"),P(n,"class","jse-expand-items svelte-1kai5ns")},m:function(h,f){Pe(h,n,f),de(n,e),de(n,i),de(n,r),de(n,o),de(n,s),a||(l=Nt(n,"click",d),a=!0)},p:function(h,f){t=h,16&f&&c!==(c=t[13].start+"")&&qn(i,c),16&f&&u!==(u=t[13].end+"")&&qn(o,u)},d:function(h){h&&je(n),a=!1,l()}}}function JXe(t){for(var n,e,i,r,o,s,a,l,c,u,d,h=t[4],f=[],p=0;p=v.end&&_.end<=M.start)&&$.push(_),M.start>=(G?_.end:v.end)&&$.push(M),a=$))},[d,p,o,r,a,s,l,c,u,h,f,i,function(m){return p(d,m)}]}var ZXe=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,QXe,JXe,Ei,{visibleSections:6,sectionIndex:7,total:8,path:0,pointer:9,selection:10,onExpandSection:1},YXe),r}return Se(e)}();function eYe(t){pi(t,"svelte-1yzl4st",".jse-context-menu-pointer.svelte-1yzl4st{position:absolute;top:calc(-0.5 * var(--jse-context-menu-pointer-size));right:calc(-0.5 * var(--jse-context-menu-pointer-size));width:var(--jse-context-menu-pointer-size);height:var(--jse-context-menu-pointer-size);padding:0;margin:0;cursor:pointer;background:transparent;border-radius:2px;background:var(--jse-context-menu-pointer-background);color:var(--jse-context-menu-pointer-color);border:none;box-shadow:var(--jse-controls-box-shadow)}.jse-context-menu-pointer.svelte-1yzl4st:hover{background:var(--jse-context-menu-pointer-background-highlight)}")}function tYe(t){var n,e,i,r,o;return e=new sr({props:{data:ru}}),{c:function(){n=be("button"),mt(e.$$.fragment),P(n,"type","button"),P(n,"class","jse-context-menu-pointer svelte-1yzl4st"),P(n,"title",xF),Mt(n,"jse-selected",t[0])},m:function(s,a){Pe(s,n,a),ft(e,n,null),i=!0,r||(o=Nt(n,"click",t[1]),r=!0)},p:function(s,a){var l=Un(a,1)[0];(!i||1&l)&&Mt(n,"jse-selected",s[0])},i:function(s){i||(Q(e.$$.fragment,s),i=!0)},o:function(s){ce(e.$$.fragment,s),i=!1},d:function(s){s&&je(n),pt(e),r=!1,o()}}}function nYe(t,n,e){var i=n.selected,r=n.onContextMenu;return t.$$set=function(o){"selected"in o&&e(0,i=o.selected),"onContextMenu"in o&&e(2,r=o.onContextMenu)},[i,function(o){for(var s=o.target;s&&"BUTTON"!==s.nodeName;)s=s.parentNode;s&&r({anchor:s,left:0,top:0,width:260,height:336,offsetTop:2,offsetLeft:0,showTip:!0})},r]}var cp=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,nYe,tYe,Ei,{selected:0,onContextMenu:2},eYe),r}return Se(e)}();function iYe(t){pi(t,"svelte-24a1b2",'.jse-key.svelte-24a1b2{display:inline-block;min-width:2em;padding:0 5px;box-sizing:border-box;outline:none;border-radius:1px;vertical-align:top;color:var(--jse-key-color);cursor:var(--jse-contents-cursor);word-break:normal;overflow-wrap:normal;white-space:pre-wrap}.jse-key.svelte-24a1b2:hover{background:var(--jse-hover-background-color)}.jse-key.svelte-24a1b2:hover{background:var(--jse-hover-background-color)}.jse-key.jse-empty.svelte-24a1b2{min-width:3em;outline:1px dotted var(--jse-tag-background);-moz-outline-radius:2px}.jse-key.jse-empty.svelte-24a1b2::after{pointer-events:none;color:var(--jse-tag-background);content:"key"}')}function rYe(t){var n,e,i,r,o,s,a,l=[aYe,sYe],c=[];function u(d,h){return d[1]?0:1}return e=u(t),i=c[e]=l[e](t),{c:function(){n=be("div"),i.c(),P(n,"data-type","selectable-key"),P(n,"class",r=Ao(t[6](t[0]))+" svelte-24a1b2")},m:function(d,h){Pe(d,n,h),c[e].m(n,null),o=!0,s||(a=Nt(n,"dblclick",t[5]),s=!0)},p:function(d,h){var f=e;(e=u(d))===f?c[e].p(d,h):($t(),ce(c[f],1,1,function(){c[f]=null}),Bt(),(i=c[e])?i.p(d,h):(i=c[e]=l[e](d)).c(),Q(i,1),i.m(n,null)),(!o||1&h&&r!==(r=Ao(d[6](d[0]))+" svelte-24a1b2"))&&P(n,"class",r)},i:function(d){o||(Q(i),o=!0)},o:function(d){ce(i),o=!1},d:function(d){d&&je(n),c[e].d(),s=!1,a()}}}function oYe(t){var n,e;return n=new tse({props:{value:t[2].normalization.escapeValue(t[0]),shortText:!0,onChange:t[7],onCancel:t[8],onFind:t[2].onFind}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};5&r&&(o.value=i[2].normalization.escapeValue(i[0])),4&r&&(o.onFind=i[2].onFind),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function sYe(t){var n,e=jm(t[2].normalization.escapeValue(t[0]))+"";return{c:function(){n=tn(e)},m:function(i,r){Pe(i,n,r)},p:function(i,r){5&r&&e!==(e=jm(i[2].normalization.escapeValue(i[0]))+"")&&qn(n,e)},i:Lt,o:Lt,d:function(i){i&&je(n)}}}function aYe(t){var n,e;return n=new pse({props:{text:t[2].normalization.escapeValue(t[0]),searchResultItems:t[1]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};5&r&&(o.text=i[2].normalization.escapeValue(i[0])),2&r&&(o.searchResultItems=i[1]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function ele(t){var n,e;return n=new cp({props:{selected:!0,onContextMenu:t[2].onContextMenu}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};4&r&&(o.onContextMenu=i[2].onContextMenu),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function lYe(t){var n,e,i,r,o,s=[oYe,rYe],a=[];function l(u,d){return u[4]?0:1}n=l(t),e=a[n]=s[n](t);var c=!t[2].readOnly&&t[3]&&!t[4]&&ele(t);return{c:function(){e.c(),i=it(),c&&c.c(),r=_r()},m:function(u,d){a[n].m(u,d),Pe(u,i,d),c&&c.m(u,d),Pe(u,r,d),o=!0},p:function(u,d){var h=Un(d,1)[0],f=n;(n=l(u))===f?a[n].p(u,h):($t(),ce(a[f],1,1,function(){a[f]=null}),Bt(),(e=a[n])?e.p(u,h):(e=a[n]=s[n](u)).c(),Q(e,1),e.m(i.parentNode,i)),u[2].readOnly||!u[3]||u[4]?c&&($t(),ce(c,1,1,function(){c=null}),Bt()):c?(c.p(u,h),28&h&&Q(c,1)):((c=ele(u)).c(),Q(c,1),c.m(r.parentNode,r))},i:function(u){o||(Q(e),Q(c),o=!0)},o:function(u){ce(e),ce(c),o=!1},d:function(u){a[n].d(u),u&&je(i),c&&c.d(u),u&&je(r)}}}function cYe(t,n,e){var i,r,o=n.path,s=n.pointer,a=n.key,l=n.selection,c=n.searchResultItems,u=n.onUpdateKey,d=n.context;return t.$$set=function(h){"path"in h&&e(9,o=h.path),"pointer"in h&&e(10,s=h.pointer),"key"in h&&e(0,a=h.key),"selection"in h&&e(11,l=h.selection),"searchResultItems"in h&&e(1,c=h.searchResultItems),"onUpdateKey"in h&&e(12,u=h.onUpdateKey),"context"in h&&e(2,d=h.context)},t.$$.update=function(){3072&t.$$.dirty&&e(3,i=l?!0===l.pointersMap[s]&&xs(l):void 0),2056&t.$$.dirty&&e(4,r=i&&ip(l))},[a,c,d,i,r,function(h){r||d.readOnly||(h.preventDefault(),d.onSelect(iu(o,!0)))},function(h){return ah("jse-key",{"jse-empty":""===h})},function(h,f){var p=u(a,d.normalization.unescapeValue(h)),m=Xi(o).concat(p);d.onSelect(f===CF?mr(m,!1):iu(m,!1)),f!==wF&&d.focus()},function(){d.onSelect(iu(o,!1)),d.focus()},o,s,l,u]}var uYe=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,cYe,lYe,Ei,{path:9,pointer:10,key:0,selection:11,searchResultItems:1,onUpdateKey:12,context:2},iYe),r}return Se(e)}();function tle(t,n,e){var i=t.slice();return i[8]=n[e],i}function nle(t){var n,e,i,r=[t[8].props],o=t[8].component;function s(a){for(var l={},c=0;cy+g()/2;)y+=g(),v-=1;return v!==m&&void 0!==d[v]?{beforePath:d[v].path,offset:v-m}:void 0}({json:n,selection:o,deltaY:i,items:r}):function(u){for(var d,h=u.json,f=u.items,m=u.deltaY,g=$k(u.selection),v=f.findIndex(function(z){return or(z.path,g)}),y=0,_=v,C=function(){var z;return null===(z=f[_+1])||void 0===z?void 0:z.height};void 0!==C()&&Math.abs(m)>y+C()/2;)y+=C(),_+=1;var M=Sn(h,Xi(g)),$=Array.isArray(M),G=null===(d=f[$?_:_+1])||void 0===d?void 0:d.path,R=_-v;return G?{beforePath:G,offset:R}:{append:!0,offset:R}}({json:n,selection:o,deltaY:i,items:r});if(!s||0===s.offset)return{operations:void 0,updatedSelection:void 0,offset:0};var u,d,h,f,p,m,g,v,y,_,C,a=function(u,d,h){if(!d)return[];var f="beforePath"in h?h.beforePath:void 0,p="append"in h?h.append:void 0,m=Xi(d.focusPath),g=Sn(u,m);if(!(p||f&&l0(f,m)&&f.length>m.length))return[];var v=o0(d),y=$k(d),_=Ln(v),C=Ln(y),S=f?f[m.length]:void 0;if(!Mo(g)){if(oo(g)){var M=Ws(_),$=Ws(C),G=void 0!==S?Ws(S):g.length;return vO($-M+1,Gz?[].concat(si(R.slice(z,U+1)),si(R.slice(q,R.length))).map(function(re){return Rm(m,re)}):[].concat(si(R.slice(q,z)),si(R.slice(U+1,R.length))).map(function(re){return Rm(m,re)}):[]}(n,o,s),l=Sn(n,Xi(o0(o)));return Array.isArray(l)?{operations:a,updatedSelection:(f=(u={items:r,json:n,selection:o,offset:s.offset}).items,p=u.json,g=u.offset,v=o0(m=u.selection),y=$k(m),_=f.findIndex(function($){return or($.path,v)}),C=f.findIndex(function($){return or($.path,y)}),Os(p,null===(d=f[_+g])||void 0===d?void 0:d.path,null===(h=f[C+g])||void 0===h?void 0:h.path)),offset:s.offset}:{operations:a,updatedSelection:void 0,offset:s.offset}}function uh(t,n){return function(e,i){if(e){for(var r={},o=0,s=Object.keys(e);o0?r:void 0}}(t,function(e){return Iv(e,n)})}function mYe(t){pi(t,"svelte-pz3g1j","button.jse-validation-error.svelte-pz3g1j{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;padding:0;margin:0;vertical-align:top;display:inline-flex;color:var(--jse-warning-color)}")}function gYe(t){var n,e,i,r,o,s;return e=new sr({props:{data:$m}}),{c:function(){n=be("button"),mt(e.$$.fragment),P(n,"type","button"),P(n,"class","jse-validation-error svelte-pz3g1j")},m:function(a,l){Pe(a,n,l),ft(e,n,null),r=!0,o||(s=[Nt(n,"click",function(){ba(t[0])&&t[0].apply(this,arguments)}),_a(i=qO.call(null,n,Ze({text:t[1]},t[2])))],o=!0)},p:function(a,l){var c=Un(l,1)[0];t=a,i&&ba(i.update)&&2&c&&i.update.call(null,Ze({text:t[1]},t[2]))},i:function(a){r||(Q(e.$$.fragment,a),r=!0)},o:function(a){ce(e.$$.fragment,a),r=!1},d:function(a){a&&je(n),pt(e),o=!1,ho(s)}}}function vYe(t,n,e){var i,r=xa("absolute-popup"),o=n.validationError,s=n.onExpand;return t.$$set=function(a){"validationError"in a&&e(3,o=a.validationError),"onExpand"in a&&e(0,s=a.onExpand)},t.$$.update=function(){8&t.$$.dirty&&e(1,i=o.isChildError?"Contains invalid data":o.message)},[s,i,r,o]}var _0=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,vYe,gYe,ys,{validationError:3,onExpand:0},mYe),r}return Se(e)}();function yYe(t){pi(t,"svelte-1wlxti1",".jse-json-node.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative;color:var(--jse-text-color)}.jse-json-node.jse-root.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{min-height:100%;padding-bottom:2px;box-sizing:border-box}.jse-json-node.jse-root.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1 .jse-context-menu-pointer,.jse-json-node.jse-root.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1 .jse-context-menu-pointer{top:0;right:calc(-2px - var(--jse-context-menu-pointer-size))}.jse-json-node.jse-root.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1.svelte-1wlxti1{padding-left:0}.jse-json-node.svelte-1wlxti1 .jse-props.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-items.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-header-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-footer-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-header .jse-meta.svelte-1wlxti1>.jse-meta-inner.svelte-1wlxti1.svelte-1wlxti1{display:flex;justify-content:center}.jse-json-node.svelte-1wlxti1 .jse-contents-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;flex-direction:row;align-items:start}.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding-left:var(--jse-indent-size)}.jse-json-node.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:inline-flex;padding-left:calc(var(--jse-indent-size) + 5px)}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-contents-background-color)}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{visibility:hidden;padding:0 calc(0.5 * var(--jse-padding));flex:1}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.jse-inside.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:inline-flex;align-items:center}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.jse-after.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;align-items:flex-end}.jse-json-node.svelte-1wlxti1 .jse-context-menu-pointer-anchor.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-insert-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;position:relative;z-index:1;max-width:250px;min-width:100px;height:0;margin-right:calc(0.5 * var(--jse-padding));outline:1px solid}.jse-json-node.svelte-1wlxti1 .jse-insert-area.svelte-1wlxti1 .jse-context-menu-pointer{right:-1px;background:var(--jse-context-menu-pointer-hover-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-hovered.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{outline-color:var(--jse-context-menu-pointer-hover-background)}.jse-json-node.svelte-1wlxti1:hover>.jse-contents-outer .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected),.jse-json-node.svelte-1wlxti1 .jse-header-outer.svelte-1wlxti1:hover>.jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected),.jse-json-node.svelte-1wlxti1 .jse-footer-outer:hover .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected){visibility:visible}.jse-json-node.jse-hovered.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-hover-background-color)}.jse-json-node.jse-selected.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-selected.svelte-1wlxti1 .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-selection-background-color)}.jse-json-node.jse-selected-key.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1>.jse-identifier>.jse-key,.jse-json-node.jse-selected-key.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-identifier>.jse-key{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1>.jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.svelte-1wlxti1 .jse-collapsed-items.jse-selected,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-collapsed-items,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-collapsed-items{background-color:var(--jse-selection-background-color);--jse-collapsed-items-background-color:var(--jse-collapsed-items-selected-background-color)}.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-selection-background-color)}.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1 .jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-readonly.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{--jse-contents-selected-cursor:pointer}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{outline-color:var(--jse-context-menu-pointer-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1 .jse-context-menu-pointer{background:var(--jse-context-menu-pointer-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1 .jse-context-menu-pointer:hover{background:var(--jse-context-menu-pointer-background-highlight)}.jse-main:not(.jse-focus) .jse-json-node.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{--jse-selection-background-color:var(--jse-selection-background-inactive-color);--jse-context-menu-pointer-background:var(--jse-context-menu-pointer-hover-background)}.jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{width:var(--jse-indent-size);padding:0;margin:0;border:none;cursor:pointer;background:transparent;color:var(--jse-delimiter-color);font-size:var(--jse-font-size-mono);height:var(--jse-line-height)}.jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:hover{opacity:0.8}.jse-meta.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-separator.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-index.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-bracket.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{vertical-align:top;color:var(--jse-delimiter-color)}.jse-index.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding:0 calc(0.5 * var(--jse-padding))}.jse-bracket.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding:0 2px}.jse-bracket.jse-expanded.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding-right:var(--jse-padding)}.jse-tag.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{border:none;font-size:80%;font-family:var(--jse-font-family);color:var(--jse-tag-color);background:var(--jse-tag-background);border-radius:2px;cursor:pointer;display:inline-block;padding:0 4px;line-height:normal;margin:1px 0}.jse-tag.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:hover{opacity:0.8}.jse-tag.jse-expanded.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{opacity:0.7;cursor:inherit}.jse-identifier.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{vertical-align:top;position:relative}")}var bYe=function(t){return{}},ile=function(t){return{}};function rle(t,n,e){var i=t.slice();return i[53]=n[e],i}var _Ye=function(t){return{}},ole=function(t){return{}};function sle(t,n,e){var i=t.slice();return i[47]=n[e],i[49]=e,i}function ale(t,n,e){var i=t.slice();return i[50]=n[e],i}var xYe=function(t){return{}},lle=function(t){return{}};function wYe(t){var n,e,i,r,o,s,a,l,c,u=!t[8].readOnly&&t[16]&&t[7]&&(Yi(t[7])||Fr(t[7]))&&!t[7].edit&&or(t[7].focusPath,t[1]),d=t[34].identifier,h=Ms(d,t,t[35],ile),f=!t[17]&&cle();o=new pYe({props:{path:t[1],value:t[0],enforceString:t[13],selection:t[16]?t[7]:void 0,searchResultItems:dse(t[6],t[9]),context:t[8]}});var p=u&&ule(t),m=t[15]&&dle(t),g=!t[17]&&hle(t);return{c:function(){n=be("div"),e=be("div"),h&&h.c(),i=it(),f&&f.c(),r=it(),mt(o.$$.fragment),s=it(),p&&p.c(),a=it(),m&&m.c(),l=it(),g&&g.c(),P(e,"class","jse-contents svelte-1wlxti1"),P(n,"class","jse-contents-outer svelte-1wlxti1"),P(n,"style",t[18])},m:function(v,y){Pe(v,n,y),de(n,e),h&&h.m(e,null),de(e,i),f&&f.m(e,null),de(e,r),ft(o,e,null),de(e,s),p&&p.m(e,null),de(n,a),m&&m.m(n,null),de(n,l),g&&g.m(n,null),c=!0},p:function(v,y){h&&h.p&&(!c||16&y[1])&&Fs(h,d,v,v[35],c?Is(d,v[35],y,bYe):Ns(v[35]),ile),v[17]?f&&(f.d(1),f=null):f||((f=cle()).c(),f.m(e,r));var _={};2&y[0]&&(_.path=v[1]),1&y[0]&&(_.value=v[0]),8192&y[0]&&(_.enforceString=v[13]),65664&y[0]&&(_.selection=v[16]?v[7]:void 0),576&y[0]&&(_.searchResultItems=dse(v[6],v[9])),256&y[0]&&(_.context=v[8]),o.$set(_),65922&y[0]&&(u=!v[8].readOnly&&v[16]&&v[7]&&(Yi(v[7])||Fr(v[7]))&&!v[7].edit&&or(v[7].focusPath,v[1])),u?p?(p.p(v,y),65922&y[0]&&Q(p,1)):((p=ule(v)).c(),Q(p,1),p.m(e,null)):p&&($t(),ce(p,1,1,function(){p=null}),Bt()),v[15]?m?(m.p(v,y),32768&y[0]&&Q(m,1)):((m=dle(v)).c(),Q(m,1),m.m(n,l)):m&&($t(),ce(m,1,1,function(){m=null}),Bt()),v[17]?g&&(g.d(1),g=null):g?g.p(v,y):((g=hle(v)).c(),g.m(n,null)),(!c||262144&y[0])&&P(n,"style",v[18])},i:function(v){c||(Q(h,v),Q(o.$$.fragment,v),Q(p),Q(m),c=!0)},o:function(v){ce(h,v),ce(o.$$.fragment,v),ce(p),ce(m),c=!1},d:function(v){v&&je(n),h&&h.d(v),f&&f.d(),pt(o),p&&p.d(),m&&m.d(),g&&g.d()}}}function CYe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_=!t[8].readOnly&&t[16]&&t[7]&&(Yi(t[7])||Fr(t[7]))&&!t[7].edit&&or(t[7].focusPath,t[1]),C=[DYe,SYe],S=[];function M(E,F){return E[12]?0:1}r=M(t),o=S[r]=C[r](t);var $=t[34].identifier,G=Ms($,t,t[35],ole),R=!t[17]&&fle();function z(E,F){return E[12]?EYe:TYe}var U=z(t),q=U(t),re=_&&ple(t),L=t[15]&&(!t[12]||!t[15].isChildError)&&mle(t);function X(E,F){return E[12]?MYe:E[17]?void 0:AYe}var Z=X(t),H=Z&&Z(t),he=t[12]&&gle(t);return{c:function(){n=be("div"),e=be("div"),i=be("button"),o.c(),s=it(),G&&G.c(),a=it(),R&&R.c(),l=it(),c=be("div"),u=be("div"),q.c(),d=it(),re&&re.c(),h=it(),L&&L.c(),f=it(),H&&H.c(),p=it(),he&&he.c(),m=_r(),P(i,"type","button"),P(i,"class","jse-expand svelte-1wlxti1"),P(i,"title","Expand or collapse this object (Ctrl+Click to expand/collapse recursively)"),P(u,"class","jse-meta-inner svelte-1wlxti1"),P(c,"class","jse-meta svelte-1wlxti1"),P(c,"data-type","selectable-value"),P(e,"class","jse-header svelte-1wlxti1"),P(n,"class","jse-header-outer svelte-1wlxti1"),P(n,"style",t[18])},m:function(E,F){Pe(E,n,F),de(n,e),de(e,i),S[r].m(i,null),de(e,s),G&&G.m(e,null),de(e,a),R&&R.m(e,null),de(e,l),de(e,c),de(c,u),q.m(u,null),de(e,d),re&&re.m(e,null),de(n,h),L&&L.m(n,null),de(n,f),H&&H.m(n,null),Pe(E,p,F),he&&he.m(E,F),Pe(E,m,F),g=!0,v||(y=Nt(i,"click",t[21]),v=!0)},p:function(E,F){var N=r;(r=M(E))===N?S[r].p(E,F):($t(),ce(S[N],1,1,function(){S[N]=null}),Bt(),(o=S[r])?o.p(E,F):(o=S[r]=C[r](E)).c(),Q(o,1),o.m(i,null)),G&&G.p&&(!g||16&F[1])&&Fs(G,$,E,E[35],g?Is($,E[35],F,_Ye):Ns(E[35]),ole),E[17]?R&&(R.d(1),R=null):R||((R=fle()).c(),R.m(e,l)),U===(U=z(E))&&q?q.p(E,F):(q.d(1),(q=U(E))&&(q.c(),q.m(u,null))),65922&F[0]&&(_=!E[8].readOnly&&E[16]&&E[7]&&(Yi(E[7])||Fr(E[7]))&&!E[7].edit&&or(E[7].focusPath,E[1])),_?re?(re.p(E,F),65922&F[0]&&Q(re,1)):((re=ple(E)).c(),Q(re,1),re.m(e,null)):re&&($t(),ce(re,1,1,function(){re=null}),Bt()),!E[15]||E[12]&&E[15].isChildError?L&&($t(),ce(L,1,1,function(){L=null}),Bt()):L?(L.p(E,F),36864&F[0]&&Q(L,1)):((L=mle(E)).c(),Q(L,1),L.m(n,f)),Z===(Z=X(E))&&H?H.p(E,F):(H&&H.d(1),(H=Z&&Z(E))&&(H.c(),H.m(n,null))),(!g||262144&F[0])&&P(n,"style",E[18]),E[12]?he?(he.p(E,F),4096&F[0]&&Q(he,1)):((he=gle(E)).c(),Q(he,1),he.m(m.parentNode,m)):he&&($t(),ce(he,1,1,function(){he=null}),Bt())},i:function(E){g||(Q(o),Q(G,E),Q(re),Q(L),Q(he),g=!0)},o:function(E){ce(o),ce(G,E),ce(re),ce(L),ce(he),g=!1},d:function(E){E&&je(n),S[r].d(),G&&G.d(E),R&&R.d(),q.d(),re&&re.d(),L&&L.d(),H&&H.d(),E&&je(p),he&&he.d(E),E&&je(m),v=!1,y()}}}function kYe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_=!t[8].readOnly&&t[16]&&t[7]&&(Yi(t[7])||Fr(t[7]))&&!t[7].edit&&or(t[7].focusPath,t[1]),C=[NYe,FYe],S=[];function M(E,F){return E[12]?0:1}r=M(t),o=S[r]=C[r](t);var $=t[34].identifier,G=Ms($,t,t[35],lle),R=!t[17]&&_le();function z(E,F){return E[12]?jYe:OYe}var U=z(t),q=U(t),re=_&&xle(t),L=t[15]&&(!t[12]||!t[15].isChildError)&&wle(t);function X(E,F){return E[12]?LYe:PYe}var Z=X(t),H=Z(t),he=t[12]&&Cle(t);return{c:function(){n=be("div"),e=be("div"),i=be("button"),o.c(),s=it(),G&&G.c(),a=it(),R&&R.c(),l=it(),c=be("div"),u=be("div"),q.c(),d=it(),re&&re.c(),h=it(),L&&L.c(),f=it(),H.c(),p=it(),he&&he.c(),m=_r(),P(i,"type","button"),P(i,"class","jse-expand svelte-1wlxti1"),P(i,"title","Expand or collapse this array (Ctrl+Click to expand/collapse recursively)"),P(u,"class","jse-meta-inner svelte-1wlxti1"),P(u,"data-type","selectable-value"),P(c,"class","jse-meta svelte-1wlxti1"),P(e,"class","jse-header svelte-1wlxti1"),P(n,"class","jse-header-outer svelte-1wlxti1"),P(n,"style",t[18])},m:function(E,F){Pe(E,n,F),de(n,e),de(e,i),S[r].m(i,null),de(e,s),G&&G.m(e,null),de(e,a),R&&R.m(e,null),de(e,l),de(e,c),de(c,u),q.m(u,null),de(e,d),re&&re.m(e,null),de(n,h),L&&L.m(n,null),de(n,f),H.m(n,null),Pe(E,p,F),he&&he.m(E,F),Pe(E,m,F),g=!0,v||(y=Nt(i,"click",t[21]),v=!0)},p:function(E,F){var N=r;(r=M(E))===N?S[r].p(E,F):($t(),ce(S[N],1,1,function(){S[N]=null}),Bt(),(o=S[r])?o.p(E,F):(o=S[r]=C[r](E)).c(),Q(o,1),o.m(i,null)),G&&G.p&&(!g||16&F[1])&&Fs(G,$,E,E[35],g?Is($,E[35],F,xYe):Ns(E[35]),lle),E[17]?R&&(R.d(1),R=null):R||((R=_le()).c(),R.m(e,l)),U===(U=z(E))&&q?q.p(E,F):(q.d(1),(q=U(E))&&(q.c(),q.m(u,null))),65922&F[0]&&(_=!E[8].readOnly&&E[16]&&E[7]&&(Yi(E[7])||Fr(E[7]))&&!E[7].edit&&or(E[7].focusPath,E[1])),_?re?(re.p(E,F),65922&F[0]&&Q(re,1)):((re=xle(E)).c(),Q(re,1),re.m(e,null)):re&&($t(),ce(re,1,1,function(){re=null}),Bt()),!E[15]||E[12]&&E[15].isChildError?L&&($t(),ce(L,1,1,function(){L=null}),Bt()):L?(L.p(E,F),36864&F[0]&&Q(L,1)):((L=wle(E)).c(),Q(L,1),L.m(n,f)),Z===(Z=X(E))&&H?H.p(E,F):(H.d(1),(H=Z(E))&&(H.c(),H.m(n,null))),(!g||262144&F[0])&&P(n,"style",E[18]),E[12]?he?(he.p(E,F),4096&F[0]&&Q(he,1)):((he=Cle(E)).c(),Q(he,1),he.m(m.parentNode,m)):he&&($t(),ce(he,1,1,function(){he=null}),Bt())},i:function(E){g||(Q(o),Q(G,E),Q(re),Q(L),Q(he),g=!0)},o:function(E){ce(o),ce(G,E),ce(re),ce(L),ce(he),g=!1},d:function(E){E&&je(n),S[r].d(),G&&G.d(E),R&&R.d(),q.d(),re&&re.d(),L&&L.d(),H.d(),E&&je(p),he&&he.d(E),E&&je(m),v=!1,y()}}}function cle(t){var n;return{c:function(){(n=be("div")).textContent=":",P(n,"class","jse-separator svelte-1wlxti1")},m:function(e,i){Pe(e,n,i)},d:function(e){e&&je(n)}}}function ule(t){var n,e,i;return e=new cp({props:{selected:!0,onContextMenu:t[8].onContextMenu}}),{c:function(){n=be("div"),mt(e.$$.fragment),P(n,"class","jse-context-menu-pointer-anchor svelte-1wlxti1")},m:function(r,o){Pe(r,n,o),ft(e,n,null),i=!0},p:function(r,o){var s={};256&o[0]&&(s.onContextMenu=r[8].onContextMenu),e.$set(s)},i:function(r){i||(Q(e.$$.fragment,r),i=!0)},o:function(r){ce(e.$$.fragment,r),i=!1},d:function(r){r&&je(n),pt(e)}}}function dle(t){var n,e;return n=new _0({props:{validationError:t[15],onExpand:t[22]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};32768&r[0]&&(o.validationError=i[15]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function hle(t){var n,e,i;return{c:function(){P(n=be("div"),"class","jse-insert-selection-area jse-after svelte-1wlxti1"),P(n,"data-type","insert-selection-area-after")},m:function(r,o){Pe(r,n,o),e||(i=Nt(n,"click",t[30]),e=!0)},p:Lt,d:function(r){r&&je(n),e=!1,i()}}}function SYe(t){var n,e;return n=new sr({props:{data:rp}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:Lt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function DYe(t){var n,e;return n=new sr({props:{data:ru}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:Lt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function fle(t){var n;return{c:function(){(n=be("div")).textContent=":",P(n,"class","jse-separator svelte-1wlxti1")},m:function(e,i){Pe(e,n,i)},d:function(e){e&&je(n)}}}function TYe(t){var n,e,i,r,o,s,a,l,c,u,d=Object.keys(t[0]).length+"",h=1===Object.keys(t[0]).length?"prop":"props";return{c:function(){(n=be("div")).textContent="{",e=it(),i=be("button"),r=tn(d),o=it(),s=tn(h),a=it(),(l=be("div")).textContent="}",P(n,"class","jse-bracket svelte-1wlxti1"),P(i,"type","button"),P(i,"class","jse-tag svelte-1wlxti1"),P(l,"class","jse-bracket svelte-1wlxti1")},m:function(f,p){Pe(f,n,p),Pe(f,e,p),Pe(f,i,p),de(i,r),de(i,o),de(i,s),Pe(f,a,p),Pe(f,l,p),c||(u=Nt(i,"click",t[22]),c=!0)},p:function(f,p){1&p[0]&&d!==(d=Object.keys(f[0]).length+"")&&qn(r,d),1&p[0]&&h!==(h=1===Object.keys(f[0]).length?"prop":"props")&&qn(s,h)},d:function(f){f&&je(n),f&&je(e),f&&je(i),f&&je(a),f&&je(l),c=!1,u()}}}function EYe(t){var n;return{c:function(){(n=be("div")).textContent="{",P(n,"class","jse-bracket jse-expanded svelte-1wlxti1")},m:function(e,i){Pe(e,n,i)},p:Lt,d:function(e){e&&je(n)}}}function ple(t){var n,e,i;return e=new cp({props:{selected:!0,onContextMenu:t[8].onContextMenu}}),{c:function(){n=be("div"),mt(e.$$.fragment),P(n,"class","jse-context-menu-pointer-anchor svelte-1wlxti1")},m:function(r,o){Pe(r,n,o),ft(e,n,null),i=!0},p:function(r,o){var s={};256&o[0]&&(s.onContextMenu=r[8].onContextMenu),e.$set(s)},i:function(r){i||(Q(e.$$.fragment,r),i=!0)},o:function(r){ce(e.$$.fragment,r),i=!1},d:function(r){r&&je(n),pt(e)}}}function mle(t){var n,e;return n=new _0({props:{validationError:t[15],onExpand:t[22]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};32768&r[0]&&(o.validationError=i[15]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function AYe(t){var n,e,i;return{c:function(){P(n=be("div"),"class","jse-insert-selection-area jse-after svelte-1wlxti1"),P(n,"data-type","insert-selection-area-after")},m:function(r,o){Pe(r,n,o),e||(i=Nt(n,"click",t[30]),e=!0)},p:Lt,d:function(r){r&&je(n),e=!1,i()}}}function MYe(t){var n,e,i;return{c:function(){P(n=be("div"),"class","jse-insert-selection-area jse-inside svelte-1wlxti1"),P(n,"data-type","insert-selection-area-inside")},m:function(r,o){Pe(r,n,o),e||(i=Nt(n,"click",t[29]),e=!0)},p:Lt,d:function(r){r&&je(n),e=!1,i()}}}function gle(t){for(var n,e,i,r,o,s,a,l=!t[8].readOnly&&("hover-insert-inside"===t[10]||t[16]&&Xs(t[7])),c=l&&vle(t),u=t[19](t[1],t[0],t[2],t[3],t[4],t[5],t[6],t[7],t[11]),d=[],h=0;h}',s=it(),p&&p.c(),P(n,"class","jse-props svelte-1wlxti1"),P(o,"data-type","selectable-value"),P(o,"class","jse-footer svelte-1wlxti1"),P(r,"class","jse-footer-outer svelte-1wlxti1"),P(r,"style",t[18])},m:function(m,g){Pe(m,n,g),c&&c.m(n,null),de(n,e);for(var v=0;v]',s=it(),v&&v.c(),P(n,"class","jse-items svelte-1wlxti1"),P(o,"data-type","selectable-value"),P(o,"class","jse-footer svelte-1wlxti1"),P(r,"class","jse-footer-outer svelte-1wlxti1"),P(r,"style",t[18])},m:function(y,_){Pe(y,n,_),d&&d.m(n,null),de(n,e);for(var C=0;C=Le.start&&ne<=Le.end});if(!ie)return null;toe(ie.start,Math.min(p.length,ie.end),function(Le){return tt(String(Le))})}else Object.keys(p).forEach(tt);return xe}(S,l||wm);if(G("dragSelectionStart",{selection:S,items:N}),N){var Y=o0(S),V=N.findIndex(function(fe){return or(fe.path,Y)}),oe=f4({json:M.getJson(),documentState:M.getDocumentState(),deltaY:0,items:N}).offset;e(11,U={initialTarget:E.target,initialClientY:E.clientY,initialContentTop:X(),selectionStartIndex:V,selectionItemsCount:Qoe(S).length,items:N,offset:oe,didMoveItems:!1}),aa.dragging=!0,document.addEventListener("mousemove",H,!0),document.addEventListener("mouseup",he)}else G("Cannot drag the current selection (probably spread over multiple sections)")}else $(E)}},function(E){aa.selecting||aa.dragging||(E.stopPropagation(),Pm(E.target,"data-type","selectable-value")?e(10,R="hover-collection"):Pm(E.target,"data-type","insert-selection-area-inside")?e(10,R="hover-insert-inside"):Pm(E.target,"data-type","insert-selection-area-after")&&e(10,R="hover-insert-after"),clearTimeout(z))},function(E){E.stopPropagation(),z=setTimeout(function(){return e(10,R=void 0)})},function(E){E.shiftKey||(E.stopPropagation(),E.preventDefault(),M.onSelect(cf(m)))},function(E){E.shiftKey||(E.stopPropagation(),E.preventDefault(),M.onSelect(uf(m)))},function(E){M.onSelect(cf(m)),M.onContextMenu(E)},function(E){M.onSelect(uf(m)),M.onContextMenu(E)},$,h,f]}var p4=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,BYe,$Ye,Ei,{value:0,path:1,expandedMap:2,enforceStringMap:3,visibleSectionsMap:4,validationErrorsMap:5,searchResultItemsMap:6,selection:7,context:8,onDragSelectionStart:33},yYe,[-1,-1]),r}return Se(e)}(),VYe=p4,HYe={prefix:"fas",iconName:"jsoneditor-expand",icon:[512,512,[],"","M 0,448 V 512 h 512 v -64 z M 0,0 V 64 H 512 V 0 Z M 256,96 128,224 h 256 z M 256,416 384,288 H 128 Z"]},zYe={prefix:"fas",iconName:"jsoneditor-collapse",icon:[512,512,[],"","m 0,224 v 64 h 512 v -64 z M 256,192 384,64 H 128 Z M 256,320 128,448 h 256 z"]},m4={prefix:"fas",iconName:"jsoneditor-format",icon:[512,512,[],"","M 0,32 v 64 h 416 v -64 z M 160,160 v 64 h 352 v -64 z M 160,288 v 64 h 288 v -64 z M 0,416 v 64 h 320 v -64 z"]},UYe={prefix:"fas",iconName:"jsoneditor-compact",icon:[512,512,[],"","M 0,32 v 64 h 512 v -64 z M 0,160 v 64 h 512 v -64 z M 0,288 v 64 h 352 v -64 z"]};function GYe(t){var n,e;return n=new nS({props:{items:t[0]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};1&Un(r,1)[0]&&(o.items=i[0]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function WYe(t,n,e){var i,r,o,s,a,l,c,u=n.json,d=n.selection,h=n.readOnly,f=n.showSearch,p=void 0!==f&&f,m=n.historyState,g=n.onExpandAll,v=n.onCollapseAll,y=n.onUndo,_=n.onRedo,C=n.onSort,S=n.onTransform,M=n.onContextMenu,$=n.onCopy,G=n.onRenderMenu;function R(){e(1,p=!p)}return t.$$set=function(z){"json"in z&&e(2,u=z.json),"selection"in z&&e(3,d=z.selection),"readOnly"in z&&e(4,h=z.readOnly),"showSearch"in z&&e(1,p=z.showSearch),"historyState"in z&&e(5,m=z.historyState),"onExpandAll"in z&&e(6,g=z.onExpandAll),"onCollapseAll"in z&&e(7,v=z.onCollapseAll),"onUndo"in z&&e(8,y=z.onUndo),"onRedo"in z&&e(9,_=z.onRedo),"onSort"in z&&e(10,C=z.onSort),"onTransform"in z&&e(11,S=z.onTransform),"onContextMenu"in z&&e(12,M=z.onContextMenu),"onCopy"in z&&e(13,$=z.onCopy),"onRenderMenu"in z&&e(14,G=z.onRenderMenu)},t.$$.update=function(){4&t.$$.dirty&&e(20,i=void 0!==u),1048584&t.$$.dirty&&e(19,r=i&&(Fr(d)||xs(d)||Yi(d))),68&t.$$.dirty&&e(15,s={type:"button",icon:HYe,title:"Expand all",className:"jse-expand-all",onClick:g,disabled:!Ho(u)}),132&t.$$.dirty&&e(16,a={type:"button",icon:zYe,title:"Collapse all",className:"jse-collapse-all",onClick:v,disabled:!Ho(u)}),4&t.$$.dirty&&e(17,l={type:"button",icon:KO,title:"Search (Ctrl+F)",className:"jse-search",onClick:R,disabled:void 0===u}),769844&t.$$.dirty&&e(18,c=h?[s,a,{type:"separator"},{type:"button",icon:sp,title:"Copy (Ctrl+C)",className:"jse-copy",onClick:$,disabled:!r},{type:"separator"},l,{type:"space"}]:[s,a,{type:"separator"},{type:"button",icon:Gk,title:"Sort",className:"jse-sort",onClick:C,disabled:h||void 0===u},{type:"button",icon:Hk,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:S,disabled:h||void 0===u},l,{type:"button",icon:bse,title:xF,className:"jse-contextmenu",onClick:M},{type:"separator"},{type:"button",icon:JO,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:y,disabled:!m.canUndo},{type:"button",icon:YO,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:_,disabled:!m.canRedo},{type:"space"}]),278528&t.$$.dirty&&e(0,o=G(c)||c)},[o,p,u,d,h,m,g,v,y,_,C,S,M,$,G,s,a,l,c,r,i]}var qYe=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,WYe,GYe,Ei,{json:2,selection:3,readOnly:4,showSearch:1,historyState:5,onExpandAll:6,onCollapseAll:7,onUndo:8,onRedo:9,onSort:10,onTransform:11,onContextMenu:12,onCopy:13,onRenderMenu:14}),r}return Se(e)}();function XYe(t){pi(t,"svelte-1q2qkk2",'@charset "UTF-8";.jse-welcome.svelte-1q2qkk2.svelte-1q2qkk2{flex:1;overflow:auto;font-family:var(--jse-font-family);font-size:var(--jse-font-size);display:flex;flex-direction:column;align-items:center;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-welcome.svelte-1q2qkk2.svelte-1q2qkk2:last-child{border-bottom:var(--jse-main-border)}.jse-welcome.svelte-1q2qkk2 .jse-space.jse-before.svelte-1q2qkk2{flex:1}.jse-welcome.svelte-1q2qkk2 .jse-space.jse-after.svelte-1q2qkk2{flex:2}.jse-welcome.svelte-1q2qkk2 .jse-contents.svelte-1q2qkk2{margin:2em var(--jse-padding) 0;color:var(--jse-panel-color-readonly)}.jse-welcome.svelte-1q2qkk2 .jse-contents ul.svelte-1q2qkk2{list-style:"\u25cf";list-style-position:outside;padding-left:20px}.jse-welcome.svelte-1q2qkk2 .jse-contents ul li.svelte-1q2qkk2{padding-left:10px}.jse-welcome.svelte-1q2qkk2 .jse-contents ul li span.jse-bold.svelte-1q2qkk2{font-family:var(--jse-font-family-mono);font-weight:bold}')}function Mle(t){var n;return{c:function(){(n=be("ul")).innerHTML='
  • Click inside the editor
  • \n
  • Paste clipboard data using Ctrl+V
  • \n
  • Create a new object by typing {
  • \n
  • Create a new array by typing [
  • ',P(n,"class","svelte-1q2qkk2")},m:function(e,i){Pe(e,n,i)},d:function(e){e&&je(n)}}}function YYe(t){var n,e,i,r,o,s,a,l=!t[0]&&Mle();return{c:function(){n=be("div"),e=be("div"),i=it(),r=be("div"),o=tn("Empty document\n "),l&&l.c(),s=it(),a=be("div"),P(e,"class","jse-space jse-before svelte-1q2qkk2"),P(r,"class","jse-contents svelte-1q2qkk2"),P(a,"class","jse-space jse-after svelte-1q2qkk2"),P(n,"class","jse-welcome svelte-1q2qkk2")},m:function(c,u){Pe(c,n,u),de(n,e),de(n,i),de(n,r),de(r,o),l&&l.m(r,null),de(n,s),de(n,a)},p:function(c,u){Un(u,1),c[0]?l&&(l.d(1),l=null):l||((l=Mle()).c(),l.m(r,null))},i:Lt,o:Lt,d:function(c){c&&je(n),l&&l.d()}}}function JYe(t,n,e){var i=n.readOnly;return t.$$set=function(r){"readOnly"in r&&e(0,i=r.readOnly)},[i]}var KYe=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,JYe,YYe,Ei,{readOnly:0},XYe),r}return Se(e)}(),g4={},QYe={get exports(){return g4},set exports(t){g4=t}},Ile=function(t,n){var e,i,r=1,o=0,s=0,a=String.alphabet;function l(c,u,d){if(d){for(e=u;(d=l(c,e))<76&&d>65;)++e;return+c.slice(u-1,e)}return(d=a&&a.indexOf(c.charAt(u)))>-1?d+76:(d=c.charCodeAt(u)||0)<45||d>127?d:d<46?65:d<48?d-1:d<58?d+18:d<65?d-11:d<91?d+11:d<97?d-37:d<123?d+5:d-63}if((t+="")!=(n+=""))for(;r;)if(i=l(t,o++),r=l(n,s++),i<76&&r<76&&i>66&&r>66&&(i=l(t,o,o),r=l(n,s,o=e),s=e),i!=r)return i1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(oo(Sn(t,n))){if(void 0===e)throw new Error("Cannot sort: no property selected by which to sort the array");return function eJe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=function tJe(t,n){return function(e,i){var r=Sn(e,t),o=Sn(i,t);return void 0===r?n:void 0===o?-n:"string"!=typeof r&&"string"!=typeof o?r>o?n:r2&&void 0!==arguments[2]?arguments[2]:[],arguments.length>3&&void 0!==arguments[3]?arguments[3]:1),o=Sn(t,n);return[{op:"replace",path:ln(n),value:o.slice(0).sort(r)}]}(t,n,e,i)}if(Io(t))return function ZYe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=Sn(t,n),o=Object.keys(i).slice();o.sort(function(u,d){return e*v4(u,d)});for(var s=[],a=0;aQb&&jle();return{c:function(){n=be("div");for(var d=0;dQb?u?u.p(d,f):((u=jle()).c(),u.m(n,null)):u&&(u.d(1),u=null)},i:Lt,o:Lt,d:function(d){d&&je(n);for(var h=0;h0&&(a("scrollTo ",g),o.scrollTo({left:g,behavior:"smooth"}))}})},[l,d,h,i,o,s,f,r,function(g){a("get items for path",g);var v=Sn(l,g);if(Array.isArray(v))return fO(0,v.length).map(String);if(Io(v)){var y=Object.keys(v).slice(0);return y.sort(v4),y}return[]},function(g){return Xc(l,g)},p,function(){e(6,f=!f)},m,function(g){m(),p(g)},c,u,function(g){Vi[g?"unshift":"push"](function(){e(5,s=g)})},function(g){Vi[g?"unshift":"push"](function(){e(4,o=g)})}]}var yJe=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,vJe,gJe,Ei,{json:0,documentState:14,onSelect:15,onError:1,pathParser:2},fJe),r}return Se(e)}();function bJe(t){pi(t,"svelte-3lbrbf",".jse-search-box.svelte-3lbrbf.svelte-3lbrbf{border:var(--jse-panel-border);border-radius:3px;font-family:var(--jse-font-family);font-size:var(--jse-font-size);background:var(--jse-panel-background);color:var(--jse-panel-color-readonly);box-shadow:var(--jse-controls-box-shadow);display:inline-block;width:400px;max-width:100%;overflow:auto}.jse-search-box.svelte-3lbrbf .jse-search-form.svelte-3lbrbf{display:flex;align-items:stretch}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf,.jse-search-box.svelte-3lbrbf .jse-search-form input.svelte-3lbrbf{font-family:inherit;font-size:inherit}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf{display:block;text-align:center;border:none;padding:0 5px;margin:0;cursor:pointer;color:var(--jse-panel-button-color);background:var(--jse-panel-button-background)}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf:hover{color:var(--jse-panel-button-color-highlight);background:var(--jse-panel-button-background-highlight)}.jse-search-box.svelte-3lbrbf .jse-search-form input.svelte-3lbrbf{color:var(--jse-panel-color);border:var(--jse-input-border);border-radius:3px;background:var(--jse-input-background);height:28px;padding:0 5px;margin:0;flex:1;width:0;min-width:50px;outline:none}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-replace-toggle.svelte-3lbrbf{padding:var(--jse-padding) calc(0.5 * var(--jse-padding));min-width:20px;background:var(--jse-panel-button-background-highlight)}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents.svelte-3lbrbf{flex:1;display:flex;flex-direction:column;padding:calc(0.5 * var(--jse-padding));gap:calc(0.5 * var(--jse-padding))}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section.svelte-3lbrbf{flex:1;display:flex;align-items:center;position:relative;padding-left:32px}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-icon.svelte-3lbrbf{color:inherit;cursor:inherit;background:inherit;position:absolute;top:calc(0.5 * var(--jse-padding));left:calc(0.5 * var(--jse-padding))}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section label.jse-search-input-label.svelte-3lbrbf{flex:1;display:flex}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-count.svelte-3lbrbf{color:inherit;font-size:80%;visibility:hidden;padding:0 5px;min-width:36px;text-align:center}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-count.jse-visible.svelte-3lbrbf{visibility:visible}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-replace-section.svelte-3lbrbf{padding-left:32px;flex:1;display:flex}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-replace-section button.svelte-3lbrbf{width:auto}")}function Ule(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,C,S,M,$,G,R,z,U,q,re=(-1!==t[3]?"".concat(t[3]+1,"/"):"")+"",L=!t[4]&&Gle(t),X=[xJe,_Je],Z=[];function H(E,F){return E[2]?0:1}a=H(t),l=Z[a]=X[a](t),y=new sr({props:{data:DWe}}),S=new sr({props:{data:bWe}}),G=new sr({props:{data:p0}});var he=t[0]&&!t[4]&&Wle(t);return{c:function(){n=be("div"),e=be("form"),L&&L.c(),i=it(),r=be("div"),o=be("div"),s=be("div"),l.c(),c=it(),u=be("label"),d=be("input"),h=it(),f=be("div"),p=tn(re),m=tn(t[10]),g=it(),v=be("button"),mt(y.$$.fragment),_=it(),C=be("button"),mt(S.$$.fragment),M=it(),$=be("button"),mt(G.$$.fragment),R=it(),he&&he.c(),P(s,"class","jse-search-icon svelte-3lbrbf"),P(d,"class","jse-search-input svelte-3lbrbf"),P(d,"title","Enter text to search"),P(d,"type","text"),P(d,"placeholder","Find"),P(u,"class","jse-search-input-label svelte-3lbrbf"),P(u,"about","jse-search input"),P(f,"class","jse-search-count svelte-3lbrbf"),Mt(f,"jse-visible",""!==t[8]),P(v,"type","button"),P(v,"class","jse-search-next svelte-3lbrbf"),P(v,"title","Go to next search result (Enter)"),P(C,"type","button"),P(C,"class","jse-search-previous svelte-3lbrbf"),P(C,"title","Go to previous search result (Shift+Enter)"),P($,"type","button"),P($,"class","jse-search-clear svelte-3lbrbf"),P($,"title","Close search box (Esc)"),P(o,"class","jse-search-section svelte-3lbrbf"),P(r,"class","jse-search-contents svelte-3lbrbf"),P(e,"class","jse-search-form svelte-3lbrbf"),P(n,"class","jse-search-box svelte-3lbrbf")},m:function(E,F){Pe(E,n,F),de(n,e),L&&L.m(e,null),de(e,i),de(e,r),de(r,o),de(o,s),Z[a].m(s,null),de(o,c),de(o,u),de(u,d),Hf(d,t[8]),de(o,h),de(o,f),de(f,p),de(f,m),de(o,g),de(o,v),ft(y,v,null),de(o,_),de(o,C),ft(S,C,null),de(o,M),de(o,$),ft(G,$,null),de(r,R),he&&he.m(r,null),z=!0,U||(q=[Nt(d,"input",t[21]),_a(CJe.call(null,d)),Nt(v,"click",t[22]),Nt(C,"click",t[23]),Nt($,"click",t[24]),Nt(e,"submit",t[12]),Nt(e,"keydown",t[13])],U=!0)},p:function(E,F){E[4]?L&&($t(),ce(L,1,1,function(){L=null}),Bt()):L?(L.p(E,F),16&F&&Q(L,1)):((L=Gle(E)).c(),Q(L,1),L.m(e,i));var N=a;(a=H(E))===N?Z[a].p(E,F):($t(),ce(Z[N],1,1,function(){Z[N]=null}),Bt(),(l=Z[a])?l.p(E,F):(l=Z[a]=X[a](E)).c(),Q(l,1),l.m(s,null)),256&F&&d.value!==E[8]&&Hf(d,E[8]),(!z||8&F)&&re!==(re=(-1!==E[3]?"".concat(E[3]+1,"/"):"")+"")&&qn(p,re),(!z||1024&F)&&qn(m,E[10]),(!z||256&F)&&Mt(f,"jse-visible",""!==E[8]),E[0]&&!E[4]?he?he.p(E,F):((he=Wle(E)).c(),he.m(r,null)):he&&(he.d(1),he=null)},i:function(E){z||(Q(L),Q(l),Q(y.$$.fragment,E),Q(S.$$.fragment,E),Q(G.$$.fragment,E),z=!0)},o:function(E){ce(L),ce(l),ce(y.$$.fragment,E),ce(S.$$.fragment,E),ce(G.$$.fragment,E),z=!1},d:function(E){E&&je(n),L&&L.d(),Z[a].d(),pt(y),pt(S),pt(G),he&&he.d(),U=!1,ho(q)}}}function Gle(t){var n,e,i,r,o;return e=new sr({props:{data:t[0]?ru:rp}}),{c:function(){n=be("button"),mt(e.$$.fragment),P(n,"type","button"),P(n,"class","jse-replace-toggle svelte-3lbrbf"),P(n,"title","Toggle visibility of replace options (Ctrl+H)")},m:function(s,a){Pe(s,n,a),ft(e,n,null),i=!0,r||(o=Nt(n,"click",t[11]),r=!0)},p:function(s,a){var l={};1&a&&(l.data=s[0]?ru:rp),e.$set(l)},i:function(s){i||(Q(e.$$.fragment,s),i=!0)},o:function(s){ce(e.$$.fragment,s),i=!1},d:function(s){s&&je(n),pt(e),r=!1,o()}}}function _Je(t){var n,e;return n=new sr({props:{data:KO}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:Lt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function xJe(t){var n,e;return n=new sr({props:{data:gWe,spin:!0}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:Lt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function Wle(t){var n,e,i,r,o,s,a,l;return{c:function(){n=be("div"),e=be("input"),i=it(),(r=be("button")).textContent="Replace",o=it(),(s=be("button")).textContent="All",P(e,"class","jse-replace-input svelte-3lbrbf"),P(e,"title","Enter replacement text"),P(e,"type","text"),P(e,"placeholder","Replace"),P(r,"type","button"),P(r,"title","Replace current occurrence (Ctrl+Enter)"),P(r,"class","svelte-3lbrbf"),P(s,"type","button"),P(s,"title","Replace all occurrences"),P(s,"class","svelte-3lbrbf"),P(n,"class","jse-replace-section svelte-3lbrbf")},m:function(c,u){Pe(c,n,u),de(n,e),Hf(e,t[9]),de(n,i),de(n,r),de(n,o),de(n,s),a||(l=[Nt(e,"input",t[25]),Nt(r,"click",t[14]),Nt(s,"click",t[15])],a=!0)},p:function(c,u){512&u&&e.value!==c[9]&&Hf(e,c[9])},d:function(c){c&&je(n),a=!1,ho(l)}}}function wJe(t){var n,e,i=t[1]&&Ule(t);return{c:function(){i&&i.c(),n=_r()},m:function(r,o){i&&i.m(r,o),Pe(r,n,o),e=!0},p:function(r,o){var s=Un(o,1)[0];r[1]?i?(i.p(r,s),2&s&&Q(i,1)):((i=Ule(r)).c(),Q(i,1),i.m(n.parentNode,n)):i&&($t(),ce(i,1,1,function(){i=null}),Bt())},i:function(r){e||(Q(i),e=!0)},o:function(r){ce(i),e=!1},d:function(r){i&&i.d(r),r&&je(n)}}}function CJe(t){t.select()}function kJe(t,n,e){var i,r,o=n.show,s=void 0!==o&&o,a=n.searching,l=n.resultCount,c=void 0===l?0:l,u=n.activeIndex,d=void 0===u?0:u,h=n.showReplace,f=void 0!==h&&h,p=n.readOnly,m=void 0!==p&&p,g=n.onChange,v=void 0===g?go:g,y=n.onPrevious,_=void 0===y?go:y,C=n.onNext,S=void 0===C?go:C,M=n.onReplace,$=void 0===M?go:M,G=n.onReplaceAll,R=void 0===G?go:G,z=n.onClose,U=void 0===z?go:z,q="",re="",L="";function X(){e(0,f=!f&&!m)}function Z(){m||$(q,L)}return t.$$set=function(H){"show"in H&&e(1,s=H.show),"searching"in H&&e(2,a=H.searching),"resultCount"in H&&e(16,c=H.resultCount),"activeIndex"in H&&e(3,d=H.activeIndex),"showReplace"in H&&e(0,f=H.showReplace),"readOnly"in H&&e(4,m=H.readOnly),"onChange"in H&&e(17,v=H.onChange),"onPrevious"in H&&e(5,_=H.onPrevious),"onNext"in H&&e(6,S=H.onNext),"onReplace"in H&&e(18,$=H.onReplace),"onReplaceAll"in H&&e(19,R=H.onReplaceAll),"onClose"in H&&e(7,U=H.onClose)},t.$$.update=function(){65536&t.$$.dirty&&e(10,i=c>=1e3?"".concat(999,"+"):String(c)),131072&t.$$.dirty&&e(20,r=Gv(v,300)),1048832&t.$$.dirty&&r(q),2&t.$$.dirty&&s&&""!==q&&v(q)},[f,s,a,d,m,_,S,U,q,L,i,X,function(H){H.preventDefault(),q!==re?(re=q,r.cancel(),v(q)):S()},function(H){H.stopPropagation();var he=tp(H);"Enter"===he&&(H.preventDefault(),S()),"Shift+Enter"===he&&(H.preventDefault(),_()),"Ctrl+Enter"===he&&(H.preventDefault(),f?Z():S()),"Ctrl+H"===he&&(H.preventDefault(),X()),"Escape"===he&&(H.preventDefault(),U())},Z,function(){m||R(q,L)},c,v,$,R,r,function(){e(8,q=this.value)},function(){return S()},function(){return _()},function(){return U()},function(){e(9,L=this.value)}]}var SJe=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,kJe,wJe,Ei,{show:1,searching:2,resultCount:16,activeIndex:3,showReplace:0,readOnly:4,onChange:17,onPrevious:5,onNext:6,onReplace:18,onReplaceAll:19,onClose:7},bJe),r}return Se(e)}(),qle=Number.isNaN||function(t){return"number"==typeof t&&t!=t};function DJe(t,n){if(t.length!==n.length)return!1;for(var e=0;e \n
    loading...
    ',P(n,"class","jse-contents svelte-qojdc1")},m:function(e,i){Pe(e,n,i)},p:Lt,i:Lt,o:Lt,d:function(e){e&&je(n)}}}function HJe(t){var n,e,i,r,o,s,a,l,c,u=[UJe,zJe],d=[];function h(f,p){return void 0===f[10]?0:1}return r=h(t),o=d[r]=u[r](t),{c:function(){n=be("label"),e=be("input"),i=it(),o.c(),s=_r(),P(e,"type","text"),e.readOnly="readonly",P(e,"tabindex","-1"),P(e,"class","jse-hidden-input svelte-qojdc1"),P(n,"class","jse-hidden-input-label svelte-qojdc1")},m:function(f,p){Pe(f,n,p),de(n,e),t[76](e),Pe(f,i,p),d[r].m(f,p),Pe(f,s,p),a=!0,l||(c=Nt(e,"paste",t[34]),l=!0)},p:function(f,p){var m=r;(r=h(f))===m?d[r].p(f,p):($t(),ce(d[m],1,1,function(){d[m]=null}),Bt(),(o=d[r])?o.p(f,p):(o=d[r]=u[r](f)).c(),Q(o,1),o.m(s.parentNode,s))},i:function(f){a||(Q(o),a=!0)},o:function(f){ce(o),a=!1},d:function(f){f&&je(n),t[76](null),f&&je(i),d[r].d(f),f&&je(s),l=!1,c()}}}function zJe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p;s=new SJe({props:{show:t[19],resultCount:(null===(n=t[17])||void 0===n||null===(e=n.items)||void 0===e?void 0:e.length)||0,activeIndex:(null===(i=t[17])||void 0===i?void 0:i.activeIndex)||0,showReplace:t[20],searching:t[21],readOnly:t[0],onChange:t[26],onNext:t[27],onPrevious:t[28],onReplace:t[29],onReplaceAll:t[30],onClose:t[31]}}),c=new VYe({props:{value:t[10],path:[],expandedMap:t[16].expandedMap,enforceStringMap:t[16].enforceStringMap,visibleSectionsMap:t[16].visibleSectionsMap,validationErrorsMap:t[24],searchResultItemsMap:null===(r=t[17])||void 0===r?void 0:r.itemsMap,selection:t[16].selection,context:t[13],onDragSelectionStart:go}});var m=t[18]&&rce(t),g=t[23]&&oce(t);return f=new l4({props:{validationErrors:t[12],selectError:t[32]}}),{c:function(){o=be("div"),mt(s.$$.fragment),a=it(),l=be("div"),mt(c.$$.fragment),u=it(),m&&m.c(),d=it(),g&&g.c(),h=it(),mt(f.$$.fragment),P(o,"class","jse-search-box-container svelte-qojdc1"),P(l,"class","jse-contents svelte-qojdc1"),P(l,"data-jsoneditor-scrollable-contents",!0)},m:function(v,y){Pe(v,o,y),ft(s,o,null),Pe(v,a,y),Pe(v,l,y),ft(c,l,null),t[77](l),Pe(v,u,y),m&&m.m(v,y),Pe(v,d,y),g&&g.m(v,y),Pe(v,h,y),ft(f,v,y),p=!0},p:function(v,y){var _,C,S,M,$={};524288&y[0]&&($.show=v[19]),131072&y[0]&&($.resultCount=(null===(_=v[17])||void 0===_||null===(C=_.items)||void 0===C?void 0:C.length)||0),131072&y[0]&&($.activeIndex=(null===(S=v[17])||void 0===S?void 0:S.activeIndex)||0),1048576&y[0]&&($.showReplace=v[20]),2097152&y[0]&&($.searching=v[21]),1&y[0]&&($.readOnly=v[0]),s.$set($);var G={};1024&y[0]&&(G.value=v[10]),65536&y[0]&&(G.expandedMap=v[16].expandedMap),65536&y[0]&&(G.enforceStringMap=v[16].enforceStringMap),65536&y[0]&&(G.visibleSectionsMap=v[16].visibleSectionsMap),16777216&y[0]&&(G.validationErrorsMap=v[24]),131072&y[0]&&(G.searchResultItemsMap=null===(M=v[17])||void 0===M?void 0:M.itemsMap),65536&y[0]&&(G.selection=v[16].selection),8192&y[0]&&(G.context=v[13]),c.$set(G),v[18]?m?(m.p(v,y),262144&y[0]&&Q(m,1)):((m=rce(v)).c(),Q(m,1),m.m(d.parentNode,d)):m&&($t(),ce(m,1,1,function(){m=null}),Bt()),v[23]?g?(g.p(v,y),8388608&y[0]&&Q(g,1)):((g=oce(v)).c(),Q(g,1),g.m(h.parentNode,h)):g&&($t(),ce(g,1,1,function(){g=null}),Bt());var R={};4096&y[0]&&(R.validationErrors=v[12]),f.$set(R)},i:function(v){p||(Q(s.$$.fragment,v),Q(c.$$.fragment,v),Q(m),Q(g),Q(f.$$.fragment,v),p=!0)},o:function(v){ce(s.$$.fragment,v),ce(c.$$.fragment,v),ce(m),ce(g),ce(f.$$.fragment,v),p=!1},d:function(v){v&&je(o),pt(s),v&&je(a),v&&je(l),pt(c),t[77](null),v&&je(u),m&&m.d(v),v&&je(d),g&&g.d(v),v&&je(h),pt(f,v)}}}function UJe(t){var n,e,i,r,o=[WJe,GJe],s=[];function a(l,c){return""===l[11]||void 0===l[11]?0:1}return n=a(t),e=s[n]=o[n](t),{c:function(){e.c(),i=_r()},m:function(l,c){s[n].m(l,c),Pe(l,i,c),r=!0},p:function(l,c){var u=n;(n=a(l))===u?s[n].p(l,c):($t(),ce(s[u],1,1,function(){s[u]=null}),Bt(),(e=s[n])?e.p(l,c):(e=s[n]=o[n](l)).c(),Q(e,1),e.m(i.parentNode,i))},i:function(l){r||(Q(e),r=!0)},o:function(l){ce(e),r=!1},d:function(l){s[n].d(l),l&&je(i)}}}function rce(t){var n,e;return n=new nd({props:{type:"info",message:"You pasted a JSON ".concat(Array.isArray(t[18].contents)?"array":"object"," as text"),actions:[{icon:zk,text:"Paste as JSON instead",onMouseDown:t[45]},{text:"Leave as is",onClick:t[46]}]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};262144&r[0]&&(o.message="You pasted a JSON ".concat(Array.isArray(i[18].contents)?"array":"object"," as text")),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function oce(t){var n,e;return n=new nd({props:{type:"success",message:"The loaded JSON document was invalid but is successfully repaired.",actions:t[0]?[]:[{icon:Wb,text:"Ok",onClick:t[8]},{icon:op,text:"Repair manually instead",onClick:t[47]}]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};1&r[0]&&(o.actions=i[0]?[]:[{icon:Wb,text:"Ok",onClick:i[8]},{icon:op,text:"Repair manually instead",onClick:i[47]}]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function GJe(t){var n,e,i,r;return n=new nd({props:{type:"error",message:"The loaded JSON document is invalid and could not be repaired automatically.",actions:t[0]?[]:[{icon:op,text:"Repair manually",onClick:t[47]}]}}),i=new tce({props:{text:t[11],json:t[10],indentation:t[5],parser:t[3]}}),{c:function(){mt(n.$$.fragment),e=it(),mt(i.$$.fragment)},m:function(o,s){ft(n,o,s),Pe(o,e,s),ft(i,o,s),r=!0},p:function(o,s){var a={};1&s[0]&&(a.actions=o[0]?[]:[{icon:op,text:"Repair manually",onClick:o[47]}]),n.$set(a);var l={};2048&s[0]&&(l.text=o[11]),1024&s[0]&&(l.json=o[10]),32&s[0]&&(l.indentation=o[5]),8&s[0]&&(l.parser=o[3]),i.$set(l)},i:function(o){r||(Q(n.$$.fragment,o),Q(i.$$.fragment,o),r=!0)},o:function(o){ce(n.$$.fragment,o),ce(i.$$.fragment,o),r=!1},d:function(o){pt(n,o),o&&je(e),pt(i,o)}}}function WJe(t){var n,e;return n=new KYe({props:{readOnly:t[0]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};1&r[0]&&(o.readOnly=i[0]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function qJe(t){var n,e,i,r,o,s,a,l,c=t[1]&&nce(t),u=t[2]&&ice(t),h=[];return o=h[r=t[25]?1:0]=[HJe,VJe][r](t),{c:function(){n=be("div"),c&&c.c(),e=it(),u&&u.c(),i=it(),o.c(),P(n,"class","jse-tree-mode svelte-qojdc1"),Mt(n,"no-main-menu",!t[1])},m:function(f,p){Pe(f,n,p),c&&c.m(n,null),de(n,e),u&&u.m(n,null),de(n,i),h[r].m(n,null),t[78](n),s=!0,a||(l=[Nt($Je,"mousedown",t[49]),Nt(n,"keydown",t[41]),Nt(n,"mousedown",t[42]),Nt(n,"contextmenu",t[43])],a=!0)},p:function(f,p){f[1]?c?(c.p(f,p),2&p[0]&&Q(c,1)):((c=nce(f)).c(),Q(c,1),c.m(n,e)):c&&($t(),ce(c,1,1,function(){c=null}),Bt()),f[2]?u?(u.p(f,p),4&p[0]&&Q(u,1)):((u=ice(f)).c(),Q(u,1),u.m(n,i)):u&&($t(),ce(u,1,1,function(){u=null}),Bt()),o.p(f,p),(!s||2&p[0])&&Mt(n,"no-main-menu",!f[1])},i:function(f){s||(Q(c),Q(u),Q(o),s=!0)},o:function(f){ce(c),ce(u),ce(o),s=!1},d:function(f){f&&je(n),c&&c.d(),u&&u.d(),h[r].d(),t[78](null),a=!1,ho(l)}}}function XJe(t,n,e){var i,r=wa("jsoneditor:TreeMode"),o=typeof window>"u";r("isSSR:",o);var s,a,l,c,u,d=xa("simple-modal").open,h=ep(),f=ep(),p=xa("absolute-popup"),m=p.openAbsolutePopup,g=p.closeAbsolutePopup,v=!1,y=hae(),_=n.readOnly,C=n.externalContent,S=n.mainMenuBar,M=n.navigationBar,$=n.escapeControlCharacters,G=n.escapeUnicodeCharacters,R=n.parser,z=n.parseMemoizeOne,U=n.validator,q=n.validationParser,re=n.pathParser,L=n.indentation,X=n.onError,Z=n.onChange,H=n.onChangeMode,he=n.onRenderValue,E=n.onRenderMenu,F=n.onClassName,N=n.onFocus,Y=n.onBlur,V=n.onSortModal,oe=n.onTransformModal,fe=n.onJSONEditorModal,Fe=!1;a4({onMount:Wc,onDestroy:Hu,getWindow:function(){return e0(l)},hasFocus:function(){return Fe&&document.hasFocus()||jk(l)},onFocus:function(){v=!0,N&&N()},onBlur:function(){v=!1,Y&&Y()}});var xe=void 0;function tt(Ce){r("updateSelection",Ce);var lt="function"==typeof Ce?Ce(ie.selection):Ce;or(lt,ie.selection)||e(16,ie=Ze(Ze({},ie),{},{selection:lt}))}var ze,ot,B,ne=!1,ie=Lk(),Ie=!1,Ye=!1,Le=!1,_t="";function At(Ce){return _n.apply(this,arguments)}function _n(){return(_n=Zi(vn().mark(function Ce(lt){return vn().wrap(function(It){for(;;)switch(It.prev=It.next){case 0:return r("search text updated",lt),e(74,_t=lt),It.next=4,Xl();case 4:return It.next=6,Nr();case 6:case"end":return It.stop()}},Ce)}))).apply(this,arguments)}function ci(){return(ci=Zi(vn().mark(function Ce(){return vn().wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:return e(17,ze=ze?GGe(ze):void 0),lt.next=3,Nr();case 3:case"end":return lt.stop()}},Ce)}))).apply(this,arguments)}function on(){return(on=Zi(vn().mark(function Ce(){return vn().wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:return e(17,ze=ze?WGe(ze):void 0),lt.next=3,Nr();case 3:case"end":return lt.stop()}},Ce)}))).apply(this,arguments)}function Fi(){return(Fi=Zi(vn().mark(function Ce(lt,It){var Jt,nn,an,li;return vn().wrap(function(fi){for(;;)switch(fi.prev=fi.next){case 0:if(nn=null===(Jt=ze)||void 0===Jt?void 0:Jt.activeItem,r("handleReplace",{replacementText:It,activeItem:nn}),nn){fi.next=4;break}return fi.abrupt("return");case 4:return an=qGe(c,ie,It,nn,R),li=an.newSelection,Yn(an.operations,function(Lo,Ls){return{state:Ze(Ze({},Ls),{},{selection:li})}}),fi.next=8,Xl();case 8:return fi.next=10,Nr();case 10:case"end":return fi.stop()}},Ce)}))).apply(this,arguments)}function pn(){return(pn=Zi(vn().mark(function Ce(lt,It){var Jt,an;return vn().wrap(function(Vn){for(;;)switch(Vn.prev=Vn.next){case 0:return r("handleReplaceAll",{text:lt,replacementText:It}),Jt=XGe(c,ie,lt,It,R),an=Jt.newSelection,Yn(Jt.operations,function(li,fi){return{state:Ze(Ze({},fi),{},{selection:an})}}),Vn.next=5,Xl();case 5:return Vn.next=7,Nr();case 7:case"end":return Vn.stop()}},Ce)}))).apply(this,arguments)}function Nr(){return $r.apply(this,arguments)}function $r(){return($r=Zi(vn().mark(function Ce(){var lt,It,Jt;return vn().wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:if(It=null===(lt=ze)||void 0===lt?void 0:lt.activeItem,r("focusActiveSearchResult",ze),!It){nn.next=9;break}return e(16,ie=Ze(Ze({},PO(c,ie,Jt=It.path)),{},{selection:void 0})),nn.next=7,Xl();case 7:return nn.next=9,hn(Jt);case 9:case"end":return nn.stop()}},Ce)}))).apply(this,arguments)}var Ai,Wr,wr=fae({onChange:function(Ce){e(22,Or=Ce)}}),Or=wr.getState(),jo=gO(function(Ce,lt){if(""===Ce)return r("clearing search result"),void(void 0!==ze&&e(17,ze=void 0));e(21,Le=!0),setTimeout(function(){r("searching...",Ce);var nn,an,Vn,li,fi,Lo,Ls,It=ase(Ce,lt,1e3);e(17,(nn=It,Vn=null!=(an=ze)&&an.activeItem?use(an.activeItem):void 0,li=nn.findIndex(function(Zo){return or(Vn,use(Zo))}),fi=-1!==li?li:void 0!==an?.activeIndex&&an?.activeIndex0?0:-1,Ls=(Lo=nn.map(function(Zo,wo){return Ze(Ze({},Zo),{},{active:wo===fi})}))[fi],ze={items:Lo,itemsMap:qv(Lo,function(Zo){return ln(Zo.path)}),activeItem:Ls,activeIndex:fi})),e(21,Le=!1)})},300),Nn=!1,xt=[],ui=Zb(pae);function Ni(Ce,lt,It,Jt){g0(function(){var nn;try{nn=ui(Ce,lt,It,Jt)}catch(an){nn=[{path:[],message:"Failed to validate: "+an.message,severity:Xd.warning}]}or(nn,xt)||(r("validationErrors changed:",nn),e(12,xt=nn))},function(nn){return r("validationErrors updated in ".concat(nn," ms"))})}function Cr(){return r("validate"),xe?{parseError:xe,isRepairable:!1}:(Ni(c,U,R,q),Hi(xt)?null:{validationErrors:xt})}function xo(){return c}function Qo(){return ie}function On(Ce){ne||(ne=!0,e(16,ie=nu(Ce,ie,[],coe({json:Ce},10240)?sh:Hb)))}function ai(Ce){void 0!==ie.selection&&(ie.selection&&Xc(Ce,ie.selection.anchorPath)&&Xc(Ce,ie.selection.focusPath)||(r("clearing selection: path does not exist anymore",ie.selection),e(16,ie=Ze(Ze({},ie),{},{selection:s0(Ce,ie)}))))}function bi(Ce){var lt=Ce.previousJson,It=Ce.previousState,Jt=Ce.previousText,nn=Ce.previousTextIsRepaired;void 0===lt&&void 0===Jt||(void 0!==c?wr.add(void 0!==lt?{undo:{patch:[{op:"replace",path:"",value:lt}],state:ul(It),json:void 0,text:Jt,textIsRepaired:nn},redo:{patch:[{op:"replace",path:"",value:c}],state:ul(ie),json:void 0,text:u,textIsRepaired:Nn}}:{undo:{patch:void 0,json:void 0,text:Jt,state:ul(It),textIsRepaired:nn},redo:{patch:void 0,json:c,state:ul(ie),text:u,textIsRepaired:Nn}}):void 0!==lt&&wr.add({undo:{patch:void 0,json:lt,state:ul(It),text:Jt,textIsRepaired:nn},redo:{patch:void 0,json:void 0,text:u,textIsRepaired:Nn,state:ul(ie)}}))}function Er(Ce,lt){if(r("patch",Ce,lt),void 0===c)throw new Error("Cannot apply patch: no JSON");var It={json:c,text:u},Jt=c,nn=ie,an=u,Vn=Nn,li=ose(c,Ce),fi=$oe(c,ie,Ce),Lo=a0(c,Ce),Ls=function(wh,bd){return void 0!==bd||!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?Ze(Ze({},wh),{},{selection:bd}):wh}(fi.documentState,Lo,!1);r("patch updatedSelection",Lo);var Zo="function"==typeof lt?lt(fi.json,Ls):void 0;e(10,c=Zo&&void 0!==Zo.json?Zo.json:fi.json);var wo=Zo&&void 0!==Zo.state?Zo.state:Ls;e(16,ie=wo),e(11,u=void 0),e(23,Nn=!1),e(18,B=void 0),ai(c),wr.add({undo:{patch:li,json:void 0,text:an,state:ul(nn),textIsRepaired:Vn},redo:{patch:Ce,json:void 0,state:ul(wo),text:u,textIsRepaired:Nn}});var $l={json:c,previousJson:Jt,undo:li,redo:Ce};return ei(It,$l),$l}function qr(){!_&&ie.selection&&tt(iu(ie.selection.focusPath,!0))}function ao(){if(!_&&ie.selection){var Ce=ie.selection.focusPath,lt=Sn(c,Ce);Ho(lt)?(r("openJSONEditorModal",{path:It=Ce,value:Jt=lt}),Fe=!0,fe({content:{json:Jt},path:It,onPatch:Wr.onPatch,onClose:function(){Fe=!1,Ps()}})):tt(mr(Ce,!0))}var It,Jt}function Js(){if(!_&&Yi(ie.selection)){var Ce=ie.selection.focusPath,lt=ln(Ce),It=Sn(c,Ce),Jt=!lf(It,ie.enforceStringMap,lt,R),nn=Jt?String(It):Fv(String(It),R);r("handleToggleEnforceString",{enforceString:Jt,value:It,updatedValue:nn}),Yn([{op:"replace",path:lt,value:nn}],function(an,Vn){return{state:Roe(Vn,lt,Jt)}})}}function vr(){return Ks.apply(this,arguments)}function Ks(){return Ks=Zi(vn().mark(function Ce(){var lt,It=arguments;return vn().wrap(function(Jt){for(;;)switch(Jt.prev=Jt.next){case 0:return lt=!(It.length>0&&void 0!==It[0])||It[0],Jt.next=3,Jle({json:c,documentState:ie,indentation:lt?L:void 0,readOnly:_,parser:R,onPatch:Yn});case 3:case"end":return Jt.stop()}},Ce)})),Ks.apply(this,arguments)}function qa(){return Xa.apply(this,arguments)}function Xa(){return Xa=Zi(vn().mark(function Ce(){var lt,It=arguments;return vn().wrap(function(Jt){for(;;)switch(Jt.prev=Jt.next){case 0:if(lt=!(It.length>0&&void 0!==It[0])||It[0],void 0!==c){Jt.next=3;break}return Jt.abrupt("return");case 3:return Jt.next=5,Kle({json:c,documentState:ie,indentation:lt?L:void 0,parser:R});case 5:case"end":return Jt.stop()}},Ce)})),Xa.apply(this,arguments)}function Ic(){d(kae,{},Ze(Ze({},Cm),{},{styleWindow:{width:"450px"}}),{onClose:function(){return Ps()}})}function we(Ce,lt){d(jae,{text:Ce,onParse:Ik,onRepair:soe,onApply:lt},Ze(Ze({},Cm),{},{styleWindow:{width:"600px",height:"500px"},styleContent:{padding:0,height:"100%"}}),{onClose:function(){return Ps()}})}function He(){Zle({json:c,text:u,documentState:ie,keepSelection:!1,readOnly:_,onChange:Z,onPatch:Yn})}function qe(){!_&&void 0!==c&&ie.selection&&c0(ie.selection)&&!Hi(ie.selection.focusPath)&&(r("duplicate",{selection:ie.selection}),Yn(nse(c,Qoe(ie.selection))))}function ut(){_||!ie.selection||!Fr(ie.selection)&&!Yi(ie.selection)||Hi(ie.selection.focusPath)||(r("extract",{selection:ie.selection}),Yn(function(lt,It){if(Yi(It))return[{op:"move",from:ln(It.focusPath),path:""}];if(!Fr(It))throw new Error("Cannot create extract operations: parent must be an Object or Array");var Jt=Sn(lt,Xi(It.focusPath));if(oo(Jt))return[{op:"replace",path:"",value:It.paths.map(function(an){var Vn=Ws(Ln(an));return Jt[Vn]})}];if(Mo(Jt)){var nn={};return It.paths.forEach(function(an){var Vn=String(Ln(an));nn[Vn]=Jt[Vn]}),[{op:"replace",path:"",value:nn}]}throw new Error("Cannot extract: unsupported type of selection "+JSON.stringify(It))}(c,ie.selection),function(lt,It){if(Ho(lt))return{state:np(lt,It,[])}}))}function Ue(Ce){void 0!==c&&rS({insertType:Ce,selectInside:!0,refJsonEditor:l,json:c,documentState:ie,readOnly:_,parser:R,onPatch:Yn,onReplaceJson:br})}function Dn(Ce){xs(ie.selection)&&tt(mr(ie.selection.focusPath,!1)),Ue(Ce)}function ii(Ce){if(!_&&ie.selection)if(Lm(ie.selection))try{var lt=ie.selection.anchorPath,It=Sn(c,lt),Jt=function(an,Vn,li){if("array"===Vn){if(Array.isArray(an))return an;if(Io(an))return ioe(an);if("string"==typeof an)try{var fi=li.parse(an);if(Array.isArray(fi))return fi;if(Io(fi))return ioe(fi)}catch{return[an]}return[an]}if("object"===Vn){if(Array.isArray(an))return noe(an);if(Io(an))return an;if("string"==typeof an)try{var Lo=li.parse(an);if(Io(Lo))return Lo;if(Array.isArray(Lo))return noe(Lo)}catch{return{value:an}}return{value:an}}if("value"===Vn)return Ho(an)?li.stringify(an):an;throw new Error("Cannot convert ".concat(VF(an,li)," to ").concat(Vn))}(It,Ce,R);if(Jt===It)return;var nn=[{op:"replace",path:ln(lt),value:Jt}];r("handleConvert",{selection:ie.selection,path:lt,type:Ce,operations:nn}),Yn(nn,function(an,Vn){return{state:np(an,Vn,ie.selection.focusPath)}})}catch(an){X(an)}else X(new Error("Cannot convert current selection to ".concat(Ce)))}function hi(){var Ce=qoe(c,ie,!1),lt=Xi(ie.selection.focusPath);!Hi(Ce.focusPath)&&or(lt,Xi(Ce.focusPath))?tt(uf(Ce.focusPath)):tt(cf(lt)),r("insert before",{selection:ie.selection,selectionBefore:Ce,parentPath:lt}),Xl().then(Rl)}function di(){var Ce=Fr(ie.selection)?Ln(ie.selection.paths):ie.selection.focusPath;r("insert after",Ce),tt(uf(Ce)),Xl().then(Rl)}function kr(Ce){return Qr.apply(this,arguments)}function Qr(){return(Qr=Zi(vn().mark(function Ce(lt){return vn().wrap(function(It){for(;;)switch(It.prev=It.next){case 0:return It.next=2,ece({char:lt,selectInside:!0,refJsonEditor:l,json:c,documentState:ie,readOnly:_,parser:R,onPatch:Yn,onReplaceJson:br,onSelect:tt});case 2:case"end":return It.stop()}},Ce)}))).apply(this,arguments)}function gi(){if(!_&&wr.getState().canUndo){var Ce=wr.undo();if(Ce){var lt={json:c,text:u};e(10,c=Ce.undo.patch?Yu(c,Ce.undo.patch):Ce.undo.json),e(16,ie=Ce.undo.state),e(11,u=Ce.undo.text),e(23,Nn=Ce.undo.textIsRepaired),r("undo",{item:Ce,json:c,documentState:ie}),ei(lt,{json:c,previousJson:lt.json,redo:Ce.undo.patch,undo:Ce.redo.patch}),Ps(),ie.selection&&hn(ie.selection.focusPath,!1)}}}function yr(){if(!_&&wr.getState().canRedo){var Ce=wr.redo();if(Ce){var lt={json:c,text:u};e(10,c=Ce.redo.patch?Yu(c,Ce.redo.patch):Ce.redo.json),e(16,ie=Ce.redo.state),e(11,u=Ce.redo.text),e(23,Nn=Ce.redo.textIsRepaired),r("redo",{item:Ce,json:c,documentState:ie}),ei(lt,{json:c,previousJson:lt.json,redo:Ce.redo.patch,undo:Ce.undo.patch}),Ps(),ie.selection&&hn(ie.selection.focusPath,!1)}}}function Ee(Ce){var lt;_||void 0===c||(Fe=!0,V({id:h,json:c,rootPath:Ce,onSort:(lt=Zi(vn().mark(function It(Jt){var nn;return vn().wrap(function(an){for(;;)switch(an.prev=an.next){case 0:r("onSort",Ce,nn=Jt.operations),Yn(nn,function(Vn,li){return{state:Ze(Ze({},np(Vn,li,Ce)),{},{selection:mr(Ce,!1)})}});case 3:case"end":return an.stop()}},It)})),function(It){return lt.apply(this,arguments)}),onClose:function(){Fe=!1,Ps()}}))}function St(){ie.selection&&Ee(Joe(c,ie.selection))}function Ht(Ce){var It=Ce.rootPath,Jt=Ce.onTransform,nn=Ce.onClose;void 0!==c&&It&&(Fe=!0,oe({id:Ce.id||f,json:c,rootPath:It,onTransform:Jt?function(an){Jt({operations:an,json:c,transformedJson:Yu(c,an)})}:function(an){r("onTransform",It,an),Yn(an,function(Vn,li){return{state:Ze(Ze({},np(Vn,li,It)),{},{selection:mr(It,!1)})}})},onClose:function(){Fe=!1,Ps(),nn&&nn()}}))}function sn(){ie.selection&&Ht({rootPath:Joe(c,ie.selection)})}function hn(Ce){return ri.apply(this,arguments)}function ri(){return ri=Zi(vn().mark(function Ce(lt){var It,Jt,nn,an,li=arguments;return vn().wrap(function(fi){for(;;)switch(fi.prev=fi.next){case 0:return It=!(li.length>1&&void 0!==li[1])||li[1],e(16,ie=PO(c,ie,Xi(lt))),fi.next=4,Xl();case 4:if(!(Jt=Oi(lt))){fi.next=14;break}if(r("scrollTo",{path:lt,elem:Jt,refContents:s}),nn=s.getBoundingClientRect(),an=Jt.getBoundingClientRect(),It){fi.next=12;break}if(!(an.bottom>nn.top&&an.topIt.bottom-20&&y(lt,{container:s,offset:-(It.height-nn-20),duration:0})}}function ei(Ce,lt){(void 0!==Ce.json||void 0!==Ce?.text)&&(void 0!==u?Z({text:u,json:void 0},Ce,{contentErrors:Cr(),patchResult:lt}):void 0!==c&&Z({text:void 0,json:c},Ce,{contentErrors:Cr(),patchResult:lt}))}function Yn(Ce,lt){if(!_)return r("handlePatch",Ce,lt),Er(Ce,lt)}function br(Ce,lt){var It=ie,Jt=c,nn=u,an={json:c,text:u},Vn=Nn,li=nu(c,ie,[],sh),fi="function"==typeof lt?lt(Ce,li):void 0;e(10,c=fi&&void 0!==fi.json?fi.json:Ce),e(16,ie=fi&&void 0!==fi.state?fi.state:li),e(11,u=void 0),e(23,Nn=!1),ai(c),bi({previousJson:Jt,previousState:It,previousText:nn,previousTextIsRepaired:Vn}),ei(an,null)}function Ar(Ce,lt){r("handleChangeText");var It=ie,Jt=c,nn=u,an={json:c,text:u},Vn=Nn;try{e(10,c=z(Ce)),e(16,ie=nu(c,ie,[],sh)),e(11,u=void 0),e(23,Nn=!1)}catch{try{e(10,c=z(Yd(Ce))),e(16,ie=nu(c,ie,[],sh)),e(11,u=Ce),e(23,Nn=!0)}catch{e(10,c=void 0),e(16,ie=Lk({json:c,expand:sh})),e(11,u=Ce),e(23,Nn=!1)}}if("function"==typeof lt){var li=lt(c,ie);e(10,c=li&&li.json?li.json:c),e(16,ie=li&&li.state?li.state:ie)}ai(c),bi({previousJson:Jt,previousState:It,previousText:nn,previousTextIsRepaired:Vn}),ei(an,null)}function Po(Ce,lt){var It=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r("expand",{path:Ce,expanded:lt,recursive:It}),e(16,ie=lt?It?nu(c,ie,Ce,Hb):function PGe(t,n){return Ze(Ze({},t),{},{expandedMap:Ze(Ze({},t.expandedMap),{},ql({},ln(n),!0))})}(ie,Ce):Loe(ie,Ce)),ie.selection&&!lt&&function RGe(t,n){return l0(t.focusPath,n)&&(t.focusPath.length>n.length||Xs(t))}(ie.selection,Ce)&&tt(void 0),setTimeout(function(){jk(l)||Ps()})}function ca(Ce){r("openFind",{findAndReplace:Ce}),e(19,Ie=!1),e(20,Ye=!1),Xl().then(function(){e(19,Ie=!0),e(20,Ye=Ce)})}function md(Ce,lt){r("handleExpandSection",Ce,lt);var nn,an,Vn,It=ln(Ce);e(16,(an=It,Vn=lt,ie=Ze(Ze({},nn=ie),{},{visibleSectionsMap:Ze(Ze({},nn.visibleSectionsMap),{},ql({},an,Poe(Rk(nn,an).concat(Vn))))})))}function hu(Ce){r("pasted json as text",Ce),e(18,B=Ce)}function ua(Ce){Fe=!0;var Lo=m(XXe,{json:c,documentState:ie,parser:R,showTip:Ce.showTip,onEditKey:qr,onEditValue:ao,onToggleEnforceString:Js,onCut:vr,onCopy:qa,onPaste:Ic,onRemove:He,onDuplicate:qe,onExtract:ut,onInsertBefore:hi,onInsert:Dn,onConvert:ii,onInsertAfter:di,onSort:St,onTransform:sn,onCloseContextMenu:function(){g(Lo),Ps()}},{left:Ce.left,top:Ce.top,offsetTop:Ce.offsetTop,offsetLeft:Ce.offsetLeft,width:Ce.width,height:Ce.height,anchor:Ce.anchor,closeOnOuterClick:!0,onClose:function(){Fe=!1,Ps()}})}function Rl(Ce){if(!_&&!ip(ie.selection)){if(Ce&&(Ce.stopPropagation(),Ce.preventDefault()),Ce&&"contextmenu"===Ce.type&&Ce.target!==a)ua({left:Ce.clientX,top:Ce.clientY,width:260,height:336,showTip:!1});else{var lt,It=null===(lt=s)||void 0===lt?void 0:lt.querySelector(".jse-context-menu-pointer.jse-selected");if(It)ua({anchor:It,offsetTop:2,width:260,height:336,showTip:!1});else{var Jt,nn=null===(Jt=s)||void 0===Jt?void 0:Jt.getBoundingClientRect();nn&&ua({top:nn.top+2,left:nn.left+2,width:260,height:336,showTip:!1})}}return!1}}function gd(){return(gd=Zi(vn().mark(function Ce(){var lt,It,Jt;return vn().wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:return r("apply pasted json",B),It=(lt=B).path,Jt=lt.contents,tt(mr(It,!1)),nn.next=5,Xl();case 5:Yn([{op:"replace",path:ln(It),value:Jt}],function(an,Vn){return{state:np(an,Vn,It)}});case 7:case"end":return nn.stop()}},Ce)}))).apply(this,arguments)}function Ps(){r("focus"),a&&(a.focus(),a.select())}function vd(Ce){return lt=c,It=ie,nn=Xi(Jt=Ce),an=[Ln(Jt)],(li=(Vn=Sn(lt,nn))?HO(Vn,It,an):void 0)?mr(nn.concat(li),!1):uf(Jt);var lt,It,Jt,nn,an,Vn,li}function yd(Ce){i&&i.onDrag(Ce)}function eT(){i&&i.onDragEnd()}return t.$$set=function(Ce){"readOnly"in Ce&&e(0,_=Ce.readOnly),"externalContent"in Ce&&e(50,C=Ce.externalContent),"mainMenuBar"in Ce&&e(1,S=Ce.mainMenuBar),"navigationBar"in Ce&&e(2,M=Ce.navigationBar),"escapeControlCharacters"in Ce&&e(51,$=Ce.escapeControlCharacters),"escapeUnicodeCharacters"in Ce&&e(52,G=Ce.escapeUnicodeCharacters),"parser"in Ce&&e(3,R=Ce.parser),"parseMemoizeOne"in Ce&&e(53,z=Ce.parseMemoizeOne),"validator"in Ce&&e(54,U=Ce.validator),"validationParser"in Ce&&e(55,q=Ce.validationParser),"pathParser"in Ce&&e(4,re=Ce.pathParser),"indentation"in Ce&&e(5,L=Ce.indentation),"onError"in Ce&&e(6,X=Ce.onError),"onChange"in Ce&&e(56,Z=Ce.onChange),"onChangeMode"in Ce&&e(57,H=Ce.onChangeMode),"onRenderValue"in Ce&&e(58,he=Ce.onRenderValue),"onRenderMenu"in Ce&&e(7,E=Ce.onRenderMenu),"onClassName"in Ce&&e(59,F=Ce.onClassName),"onFocus"in Ce&&e(60,N=Ce.onFocus),"onBlur"in Ce&&e(61,Y=Ce.onBlur),"onSortModal"in Ce&&e(62,V=Ce.onSortModal),"onTransformModal"in Ce&&e(63,oe=Ce.onTransformModal),"onJSONEditorModal"in Ce&&e(64,fe=Ce.onJSONEditorModal)},t.$$.update=function(){var Ce,lt;3145728&t.$$.dirty[1]&&e(73,ot=TO({escapeControlCharacters:$,escapeUnicodeCharacters:G})),524288&t.$$.dirty[1]&&function gt(Ce){void 0!==Ce.json&&function(lt){if(void 0!==lt){var It=!or(c,lt);if(r("update external json",{isChanged:It,currentlyText:void 0===c}),It){var Jt={json:c,text:u},nn=ie,an=c,Vn=u,li=Nn;e(10,c=lt),On(c),e(11,u=void 0),e(23,Nn=!1),ai(c),bi({previousJson:an,previousState:nn,previousText:Vn,previousTextIsRepaired:li}),ei(Jt,null)}}}(Ce.json),void 0!==Ce.text&&function(lt){if(void 0!==lt&&void 0===C.json){var It=lt!==u;if(r("update external text",{isChanged:It}),It){var Jt={json:c,text:u},nn=c,an=ie,Vn=u,li=Nn;try{e(10,c=z(lt)),On(c),e(11,u=lt),e(23,Nn=!1),xe=void 0}catch(fi){try{e(10,c=z(Yd(lt))),On(c),e(11,u=lt),e(23,Nn=!0),xe=void 0,ai(c)}catch{e(10,c=void 0),e(11,u=C.text),e(23,Nn=!1),xe=Fk(u,fi.message||fi.toString())}}ai(c),bi({previousJson:nn,previousState:an,previousText:Vn,previousTextIsRepaired:li}),ei(Jt,null)}}}(Ce.text)}(C),1024&t.$$.dirty[0]|4096&t.$$.dirty[2]&&jo(_t,c),1032&t.$$.dirty[0]|25165824&t.$$.dirty[1]&&Ni(c,U,R,q),4096&t.$$.dirty[0]&&e(24,(lt={},(Ce=xt).forEach(function(It){lt[ln(It.path)]=It}),Ce.forEach(function(It){for(var Jt=It.path;Jt.length>0;){var nn=ln(Jt=Xi(Jt));nn in lt||(lt[nn]={isChildError:!0,path:Jt,message:"Contains invalid data",severity:Xd.warning})}}),Ai=lt)),512&t.$$.dirty[0]&&(i=s?function(Ce){var lt,It;function Jt(li){return li<20?200:li<50?400:1200}function nn(){Ce&&(Ce.scrollTop+=.05*(lt||0))}function an(li){It&&li===lt||(Vn(),s4("startAutoScroll",li),lt=li,It=setInterval(nn,50))}function Vn(){It&&(s4("stopAutoScroll"),clearInterval(It),It=void 0,lt=void 0)}return s4("createAutoScrollHandler",Ce),{onDrag:function(li){if(Ce){var fi=li.clientY,Lo=Ce.getBoundingClientRect(),Ls=Lo.top,Zo=Lo.bottom;fiZo?an(Jt(fi-Zo)):Vn()}},onDragEnd:function(){Vn()}}}(s):void 0),9&t.$$.dirty[0]|402653184&t.$$.dirty[1]|2048&t.$$.dirty[2]&&e(13,Wr={readOnly:_,parser:R,normalization:ot,getJson:xo,getDocumentState:Qo,findElement:Oi,findNextInside:vd,focus:Ps,onPatch:Yn,onInsert:Ue,onExpand:Po,onSelect:tt,onFind:ca,onExpandSection:md,onPasteJson:hu,onRenderValue:he,onContextMenu:ua,onClassName:F||function(){},onDrag:yd,onDragEnd:eT}),8192&t.$$.dirty[0]&&r("context changed",Wr)},[_,S,M,R,re,L,X,E,function(){return Nn&&void 0!==c&&br(c),{json:c,text:u}},s,c,u,xt,Wr,a,l,ie,ze,B,Ie,Ye,Le,Or,Nn,Ai,o,At,function(){return ci.apply(this,arguments)},function(){return on.apply(this,arguments)},function(Ce,lt){return Fi.apply(this,arguments)},function(Ce,lt){return pn.apply(this,arguments)},function(){e(19,Ie=!1),e(20,Ye=!1),At(""),Ps()},function(Ce){r("select validation error",Ce),tt(mr(Ce.path,!1)),hn(Ce.path)},qa,function(Ce){Ce.preventDefault(),Qle({clipboardText:Ce.clipboardData.getData("text/plain"),json:c,documentState:ie,readOnly:_,parser:R,onPatch:Yn,onChangeText:Ar,openRepairModal:we})},gi,yr,function(){Ee([])},function(){Ht({rootPath:[]})},function(){Po([],!0,!0)},function(){Po([],!1,!0)},function(Ce){var lt=tp(Ce),It=Ce.shiftKey;if(r("keydown",{combo:lt,key:Ce.key}),"Ctrl+X"===lt&&(Ce.preventDefault(),vr(!0)),"Ctrl+Shift+X"===lt&&(Ce.preventDefault(),vr(!1)),"Ctrl+C"===lt&&(Ce.preventDefault(),qa(!0)),"Ctrl+Shift+C"===lt&&(Ce.preventDefault(),qa(!1)),"Ctrl+D"===lt&&(Ce.preventDefault(),qe()),"Delete"!==lt&&"Backspace"!==lt||(Ce.preventDefault(),He()),"Insert"===lt&&(Ce.preventDefault(),Ue("structure")),"Ctrl+A"===lt&&(Ce.preventDefault(),tt(mr([],!1))),"Ctrl+Q"===lt&&Rl(Ce),"ArrowUp"===lt||"Shift+ArrowUp"===lt){Ce.preventDefault();var Jt=ie.selection?qoe(c,ie,It,!0)||ie.selection:s0(c,ie);tt(Jt),Bn(Jt.focusPath)}if("ArrowDown"===lt||"Shift+ArrowDown"===lt){Ce.preventDefault();var nn=ie.selection?function(wo,$l){var wh=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Mr=$l.selection;if(!Mr)return null;var tc=arguments.length>3&&void 0!==arguments[3]&&arguments[3]||!Fr(Mr)?Mr.focusPath:Ln(Mr.paths),fu=HO(wo,$l,tc),_d=fu,Ch=fu;if(null===fu||null==_d||null==Ch)return null;if(wh){var xd=HO(wo,Ho(Sn(wo,tc))?Loe($l,tc):$l,tc);return null===xd?null:Zu(Mr)?Os(wo,xd,xd):Xs(Mr)?Os(wo,_d,Ch):Os(wo,Mr.anchorPath,xd)}if(xs(Mr)){var z_=Sn(wo,Xi(fu));return Array.isArray(z_)?mr(Ch,!1):iu(Ch,!1)}return Yi(Mr)?mr(Ch,!1):Xs(Mr)?Os(wo,_d,Ch):Os(wo,fu,fu)}(c,ie,It,!0)||ie.selection:s0(c,ie);tt(nn),Bn(nn.focusPath)}if("ArrowLeft"===lt||"Shift+ArrowLeft"===lt){Ce.preventDefault();var an=ie.selection?function(wo,$l){var wh=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Mr=$l.selection;if(!Mr)return null;var tc=Xoe(wo,$l,!(arguments.length>3&&void 0!==arguments[3])||arguments[3]),fu=tc.caret,_d=tc.previous;if(wh)return Fr(Mr)?null:Os(wo,Mr.anchorPath,Mr.focusPath);if(fu&&_d)return zO(_d);var xd=Sn(wo,Xi(Mr.focusPath));return Yi(Mr)&&Array.isArray(xd)?Os(wo,Mr.focusPath,Mr.focusPath):Fr(Mr)&&!Array.isArray(xd)?iu(Mr.focusPath,!1):null}(c,ie,It,!_)||ie.selection:s0(c,ie);tt(an),Bn(an.focusPath)}if("ArrowRight"===lt||"Shift+ArrowRight"===lt){Ce.preventDefault();var Vn=ie.selection&&void 0!==c?function(wo,$l){var wh=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Mr=$l.selection;if(!Mr)return null;var tc=Xoe(wo,$l,!(arguments.length>3&&void 0!==arguments[3])||arguments[3]),fu=tc.caret,_d=tc.next;return wh?Fr(Mr)?null:Os(wo,Mr.anchorPath,Mr.focusPath):fu&&_d?zO(_d):Fr(Mr)?mr(Mr.focusPath,!1):null}(c,ie,It,!_)||ie.selection:s0(c,ie);tt(Vn),Bn(Vn.focusPath)}if("Enter"===lt&&ie.selection){if(!_&&Fr(ie.selection)&&1===ie.selection.paths.length){var li=ie.selection.focusPath,fi=Sn(c,Xi(li));Array.isArray(fi)&&tt(mr(li,!1))}!_&&xs(ie.selection)&&(Ce.preventDefault(),tt(Ze(Ze({},ie.selection),{},{edit:!0}))),Yi(ie.selection)&&(Ce.preventDefault(),Ho(Sn(c,ie.selection.focusPath))?Po(ie.selection.focusPath,!0):_||tt(Ze(Ze({},ie.selection),{},{edit:!0})))}if(1===lt.replace(/^Shift\+/,"").length&&ie.selection)return Ce.preventDefault(),void kr(Ce.key);if("Enter"===lt&&(Zu(ie.selection)||Xs(ie.selection)))return Ce.preventDefault(),void kr("");if("Ctrl+Enter"===lt&&Yi(ie.selection)){var Lo=Sn(c,ie.selection.focusPath);V2(Lo)&&window.open(String(Lo),"_blank")}if("Escape"===lt&&ie.selection&&(Ce.preventDefault(),tt(void 0)),"Ctrl+F"===lt&&(Ce.preventDefault(),ca(!1)),"Ctrl+H"===lt&&(Ce.preventDefault(),ca(!0)),"Ctrl+Z"===lt){Ce.preventDefault();var Ls=document.activeElement;Ls&&Ls.blur&&Ls.focus?(Ls.blur(),setTimeout(function(){gi(),setTimeout(function(){return Ls.select()})})):gi()}if("Ctrl+Shift+Z"===lt){Ce.preventDefault();var Zo=document.activeElement;Zo&&Zo.blur&&Zo.focus?(Zo.blur(),setTimeout(function(){yr(),setTimeout(function(){return Zo.select()})})):yr()}},function(Ce){r("handleMouseDown",Ce),setTimeout(function(){setTimeout(function(){v||yoe(Ce.target,"BUTTON")||(Ps(),ie.selection||void 0!==c||""!==u&&void 0!==u||(r("createDefaultSelection"),e(16,ie=Ze(Ze({},ie),{},{selection:Os(c||{},[],[])}))))})})},Rl,function(Ce){_||ua({anchor:_oe(Ce.target,"BUTTON"),offsetTop:0,width:260,height:336,showTip:!0})},function(){return gd.apply(this,arguments)},function(){r("clear pasted json"),e(18,B=void 0)},function(){H(Jo.text)},function(Ce){tt(Ce),Ps(),hn(Ce.focusPath)},function(Ce){!Pb(Ce.target,function(It){return It===l})&&ip(ie.selection)&&(r("click outside the editor, stop edit mode"),tt(function(It){return xs(It)||Yi(It)?Ze(Ze({},It),{},{edit:!1}):It}),v&&a&&(a.focus(),a.blur()),Xl().then(function(){setTimeout(function(){a&&a.blur()})}))},C,$,G,z,U,q,Z,H,he,F,N,Y,V,oe,fe,function(){var Ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Hb;r("expand");var lt=Ze(Ze({},ie),{},{expandedMap:{},visibleSectionsMap:{}});e(16,ie=nu(c,lt,[],Ce))},Cr,xo,Er,Ht,hn,Oi,Ps,ot,_t,function(Ce){e(19,Ie=Ce)},function(Ce){Vi[Ce?"unshift":"push"](function(){e(14,a=Ce)})},function(Ce){Vi[Ce?"unshift":"push"](function(){e(9,s=Ce)})},function(Ce){Vi[Ce?"unshift":"push"](function(){e(15,l=Ce)})}]}var k4=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,XJe,qJe,Ei,{readOnly:0,externalContent:50,mainMenuBar:1,navigationBar:2,escapeControlCharacters:51,escapeUnicodeCharacters:52,parser:3,parseMemoizeOne:53,validator:54,validationParser:55,pathParser:4,indentation:5,onError:6,onChange:56,onChangeMode:57,onRenderValue:58,onRenderMenu:7,onClassName:59,onFocus:60,onBlur:61,onSortModal:62,onTransformModal:63,onJSONEditorModal:64,expand:65,validate:66,getJson:67,patch:68,acceptAutoRepair:8,openTransformModal:69,scrollTo:70,findElement:71,focus:72},BJe,[-1,-1,-1,-1,-1]),r}return Se(e,[{key:"expand",get:function(){return this.$$.ctx[65]}},{key:"validate",get:function(){return this.$$.ctx[66]}},{key:"getJson",get:function(){return this.$$.ctx[67]}},{key:"patch",get:function(){return this.$$.ctx[68]}},{key:"acceptAutoRepair",get:function(){return this.$$.ctx[8]}},{key:"openTransformModal",get:function(){return this.$$.ctx[69]}},{key:"scrollTo",get:function(){return this.$$.ctx[70]}},{key:"findElement",get:function(){return this.$$.ctx[71]}},{key:"focus",get:function(){return this.$$.ctx[72]}}]),e}();function YJe(t){pi(t,"svelte-107mggt",".jse-modal.svelte-107mggt.svelte-107mggt{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-107mggt .jse-modal-contents.svelte-107mggt{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions.svelte-107mggt{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column;color:inherit;min-height:0;padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents.svelte-107mggt{flex:1;display:flex;gap:calc(2 * var(--jse-padding));min-height:0;box-sizing:border-box;padding:0 calc(2 * var(--jse-padding)) var(--jse-padding)}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p{margin:var(--jse-padding) 0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p:first-child{margin-top:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p:last-child{margin-bottom:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt code{background:var(--jse-modal-code-background);font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono)}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents textarea.jse-query.svelte-107mggt{flex:1;outline:none;resize:vertical}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column;gap:calc(2 * var(--jse-padding))}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-original-data.svelte-107mggt{flex:1;display:flex;flex-direction:column;min-height:0;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-original-data.jse-hide.svelte-107mggt{flex:none}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-preview-data.svelte-107mggt{flex:1;display:flex;flex-direction:column;min-height:0;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.jse-hide-original-data.svelte-107mggt{flex-direction:column;gap:0;margin-bottom:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-actions.svelte-107mggt{padding:var(--jse-padding) calc(2 * var(--jse-padding)) calc(2 * var(--jse-padding))}@media screen and (max-width: 1200px){.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents.svelte-107mggt{flex-direction:column;overflow:auto}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents textarea.jse-query.svelte-107mggt{min-height:150px;flex:none}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.svelte-107mggt .jse-tree-mode{height:300px;flex:none}}.jse-modal.jse-transform.svelte-107mggt .jse-label.svelte-107mggt{font-weight:bold;display:block;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-label .jse-label-inner.svelte-107mggt{margin-top:calc(2 * var(--jse-padding));margin-bottom:calc(0.5 * var(--jse-padding));box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-label .jse-label-inner button.svelte-107mggt{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;font-weight:bold;padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-tree-mode{flex:1;background:var(--jse-input-background-readonly);box-shadow:none;box-sizing:border-box;--jse-main-border:var(--jse-input-border)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt{border:var(--jse-input-border);outline:none;box-sizing:border-box;padding:calc(0.5 * var(--jse-padding));font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:inherit;background:var(--jse-input-background)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt:focus,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt:focus{border:var(--jse-input-border-focus)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt:read-only,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt:read-only{background:var(--jse-input-background-readonly)}.jse-modal.jse-transform.svelte-107mggt .jse-preview.jse-error.svelte-107mggt{flex:1;background:var(--jse-input-background-readonly);border:var(--jse-input-border);color:var(--jse-error-color);padding:calc(0.5 * var(--jse-padding))}.jse-modal.jse-transform.svelte-107mggt a{color:var(--jse-a-color)}.jse-modal.jse-transform.svelte-107mggt a:hover{color:var(--jse-a-color-highlight)}")}function sce(t){var n,e,i,r,o,s=[KJe,JJe],a=[];function l(c,u){return 16384&u[0]&&(n=null),null==n&&(n=!!Array.isArray(c[14])),n?0:1}return e=l(t,[-1,-1]),i=a[e]=s[e](t),{c:function(){i.c(),r=_r()},m:function(c,u){a[e].m(c,u),Pe(c,r,u),o=!0},p:function(c,u){var d=e;(e=l(c,u))===d?a[e].p(c,u):($t(),ce(a[d],1,1,function(){a[d]=null}),Bt(),(i=a[e])?i.p(c,u):(i=a[e]=s[e](c)).c(),Q(i,1),i.m(r.parentNode,r))},i:function(c){o||(Q(i),o=!0)},o:function(c){ce(i),o=!1},d:function(c){a[e].d(c),c&&je(r)}}}function JJe(t){var n;return{c:function(){n=tn("(Only available for arrays, not for objects)")},m:function(e,i){Pe(e,n,i)},p:Lt,i:Lt,o:Lt,d:function(e){e&&je(n)}}}function KJe(t){var n,e;return n=new wqe({props:{queryOptions:t[12],json:t[14],onChange:t[22]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};4096&r[0]&&(o.queryOptions=i[12]),16384&r[0]&&(o.json=i[14]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function ace(t){var n,e;return n=new k4({props:{externalContent:t[19],readOnly:!0,mainMenuBar:!1,navigationBar:!1,indentation:t[2],escapeControlCharacters:t[3],escapeUnicodeCharacters:t[4],parser:t[5],parseMemoizeOne:t[6],onRenderValue:t[10],onRenderMenu:go,onError:console.error,onChange:go,onChangeMode:go,onFocus:go,onBlur:go,onSortModal:go,onTransformModal:go,onJSONEditorModal:go,onClassName:t[11],validator:null,validationParser:t[7],pathParser:t[8]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};524288&r[0]&&(o.externalContent=i[19]),4&r[0]&&(o.indentation=i[2]),8&r[0]&&(o.escapeControlCharacters=i[3]),16&r[0]&&(o.escapeUnicodeCharacters=i[4]),32&r[0]&&(o.parser=i[5]),64&r[0]&&(o.parseMemoizeOne=i[6]),1024&r[0]&&(o.onRenderValue=i[10]),2048&r[0]&&(o.onClassName=i[11]),128&r[0]&&(o.validationParser=i[7]),256&r[0]&&(o.pathParser=i[8]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function QJe(t){var n,e;return{c:function(){n=be("div"),e=tn(t[17]),P(n,"class","jse-preview jse-error svelte-107mggt")},m:function(i,r){Pe(i,n,r),de(n,e)},p:function(i,r){131072&r[0]&&qn(e,i[17])},i:Lt,o:Lt,d:function(i){i&&je(n)}}}function ZJe(t){var n,e;return n=new k4({props:{externalContent:t[18],readOnly:!0,mainMenuBar:!1,navigationBar:!1,indentation:t[2],escapeControlCharacters:t[3],escapeUnicodeCharacters:t[4],parser:t[5],parseMemoizeOne:t[6],onRenderValue:t[10],onRenderMenu:go,onError:console.error,onChange:go,onChangeMode:go,onFocus:go,onBlur:go,onSortModal:go,onTransformModal:go,onJSONEditorModal:go,onClassName:t[11],validator:null,validationParser:t[7],pathParser:t[8]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};262144&r[0]&&(o.externalContent=i[18]),4&r[0]&&(o.indentation=i[2]),8&r[0]&&(o.escapeControlCharacters=i[3]),16&r[0]&&(o.escapeUnicodeCharacters=i[4]),32&r[0]&&(o.parser=i[5]),64&r[0]&&(o.parseMemoizeOne=i[6]),1024&r[0]&&(o.onRenderValue=i[10]),2048&r[0]&&(o.onClassName=i[11]),128&r[0]&&(o.validationParser=i[7]),256&r[0]&&(o.pathParser=i[8]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function eKe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,C,S,M,$,G,R,z,U,q,re,L,X,Z,H,he,E,F,N,Y,V,oe,fe,Fe,xe,tt,ze,ot,B,ne=t[21](t[0]).description+"";n=new Fqe({props:{queryLanguages:t[9],queryLanguageId:t[0],onChangeQueryLanguage:t[27]}}),y=new sr({props:{data:t[15]?ru:rp}});var ie=t[15]&&sce(t);X=new sr({props:{data:t[16]?ru:rp}});var Ie=t[16]&&ace(t),Ye=[ZJe,QJe],Le=[];function _t(At,_n){return At[17]?1:0}return Y=_t(t),V=Le[Y]=Ye[Y](t),{c:function(){mt(n.$$.fragment),e=it(),i=be("div"),r=be("div"),o=be("div"),(s=be("div")).innerHTML='
    Language
    ',a=it(),l=be("div"),c=it(),(u=be("div")).innerHTML='
    Path
    ',d=it(),h=be("input"),p=it(),m=be("div"),g=be("div"),v=be("button"),mt(y.$$.fragment),_=tn("\n Wizard"),C=it(),ie&&ie.c(),S=it(),(M=be("div")).innerHTML='
    Query
    ',$=it(),G=be("textarea"),R=it(),z=be("div"),U=be("div"),q=be("div"),re=be("div"),L=be("button"),mt(X.$$.fragment),Z=tn("\n Original"),H=it(),Ie&&Ie.c(),he=it(),E=be("div"),(F=be("div")).innerHTML='
    Preview
    ',N=it(),V.c(),oe=it(),fe=be("div"),Fe=be("button"),xe=tn("Transform"),P(s,"class","jse-label svelte-107mggt"),P(l,"class","jse-description svelte-107mggt"),P(u,"class","jse-label svelte-107mggt"),P(h,"class","jse-path svelte-107mggt"),P(h,"type","text"),h.readOnly=!0,P(h,"title","Selected path"),h.value=f=Hi(t[1])?"(whole document)":tu(Kl(t[1])),P(v,"type","button"),P(v,"class","svelte-107mggt"),P(g,"class","jse-label-inner svelte-107mggt"),P(m,"class","jse-label svelte-107mggt"),P(M,"class","jse-label svelte-107mggt"),P(G,"class","jse-query svelte-107mggt"),P(G,"spellcheck","false"),G.value=t[13],P(o,"class","jse-query-contents svelte-107mggt"),P(L,"type","button"),P(L,"class","svelte-107mggt"),P(re,"class","jse-label-inner svelte-107mggt"),P(q,"class","jse-label svelte-107mggt"),P(U,"class","jse-original-data svelte-107mggt"),Mt(U,"jse-hide",!t[16]),P(F,"class","jse-label svelte-107mggt"),P(E,"class","jse-preview-data svelte-107mggt"),P(z,"class","jse-data-contents svelte-107mggt"),Mt(z,"jse-hide-original-data",!t[16]),P(r,"class","jse-main-contents svelte-107mggt"),P(Fe,"type","button"),P(Fe,"class","jse-primary svelte-107mggt"),Fe.disabled=tt=!!t[17],P(fe,"class","jse-actions svelte-107mggt"),P(i,"class","jse-modal-contents svelte-107mggt")},m:function(At,_n){ft(n,At,_n),Pe(At,e,_n),Pe(At,i,_n),de(i,r),de(r,o),de(o,s),de(o,a),de(o,l),l.innerHTML=ne,de(o,c),de(o,u),de(o,d),de(o,h),de(o,p),de(o,m),de(m,g),de(g,v),ft(y,v,null),de(v,_),de(o,C),ie&&ie.m(o,null),de(o,S),de(o,M),de(o,$),de(o,G),de(r,R),de(r,z),de(z,U),de(U,q),de(q,re),de(re,L),ft(X,L,null),de(L,Z),de(U,H),Ie&&Ie.m(U,null),de(z,he),de(z,E),de(E,F),de(E,N),Le[Y].m(E,null),de(i,oe),de(i,fe),de(fe,Fe),de(Fe,xe),ze=!0,ot||(B=[Nt(v,"click",t[25]),Nt(G,"input",t[23]),Nt(L,"click",t[26]),Nt(Fe,"click",t[24]),_a(nKe.call(null,Fe))],ot=!0)},p:function(At,_n){var ci={};512&_n[0]&&(ci.queryLanguages=At[9]),1&_n[0]&&(ci.queryLanguageId=At[0]),n.$set(ci),(!ze||1&_n[0])&&ne!==(ne=At[21](At[0]).description+"")&&(l.innerHTML=ne),(!ze||2&_n[0]&&f!==(f=Hi(At[1])?"(whole document)":tu(Kl(At[1])))&&h.value!==f)&&(h.value=f);var on={};32768&_n[0]&&(on.data=At[15]?ru:rp),y.$set(on),At[15]?ie?(ie.p(At,_n),32768&_n[0]&&Q(ie,1)):((ie=sce(At)).c(),Q(ie,1),ie.m(o,S)):ie&&($t(),ce(ie,1,1,function(){ie=null}),Bt()),(!ze||8192&_n[0])&&(G.value=At[13]);var Fi={};65536&_n[0]&&(Fi.data=At[16]?ru:rp),X.$set(Fi),At[16]?Ie?(Ie.p(At,_n),65536&_n[0]&&Q(Ie,1)):((Ie=ace(At)).c(),Q(Ie,1),Ie.m(U,null)):Ie&&($t(),ce(Ie,1,1,function(){Ie=null}),Bt()),(!ze||65536&_n[0])&&Mt(U,"jse-hide",!At[16]);var pn=Y;(Y=_t(At))===pn?Le[Y].p(At,_n):($t(),ce(Le[pn],1,1,function(){Le[pn]=null}),Bt(),(V=Le[Y])?V.p(At,_n):(V=Le[Y]=Ye[Y](At)).c(),Q(V,1),V.m(E,null)),(!ze||65536&_n[0])&&Mt(z,"jse-hide-original-data",!At[16]),(!ze||131072&_n[0]&&tt!==(tt=!!At[17]))&&(Fe.disabled=tt)},i:function(At){ze||(Q(n.$$.fragment,At),Q(y.$$.fragment,At),Q(ie),Q(X.$$.fragment,At),Q(Ie),Q(V),ze=!0)},o:function(At){ce(n.$$.fragment,At),ce(y.$$.fragment,At),ce(ie),ce(X.$$.fragment,At),ce(Ie),ce(V),ze=!1},d:function(At){pt(n,At),At&&je(e),At&&je(i),pt(y),ie&&ie.d(),pt(X),Ie&&Ie.d(),Le[Y].d(),ot=!1,ho(B)}}}function tKe(t){var n,e,i,r,o;return e=new Doe({props:{$$slots:{default:[eKe]},$$scope:{ctx:t}}}),{c:function(){n=be("div"),mt(e.$$.fragment),P(n,"class","jse-modal jse-transform svelte-107mggt")},m:function(s,a){Pe(s,n,a),ft(e,n,null),i=!0,r||(o=_a(iS.call(null,n,t[20])),r=!0)},p:function(s,a){var l={};1048575&a[0]|256&a[1]&&(l.$$scope={dirty:a,ctx:s}),e.$set(l)},i:function(s){i||(Q(e.$$.fragment,s),i=!0)},o:function(s){ce(e.$$.fragment,s),i=!1},d:function(s){s&&je(n),pt(e),r=!1,o()}}}function nKe(t){t.focus()}function iKe(t,n,e){var i,r,o=wa("jsoneditor:TransformModal"),s=n.id,a=void 0===s?"transform-modal-"+fb():s,l=n.json,c=n.rootPath,u=void 0===c?[]:c,d=n.indentation,h=n.escapeControlCharacters,f=n.escapeUnicodeCharacters,p=n.parser,m=n.parseMemoizeOne,g=n.validationParser,v=n.pathParser,y=n.queryLanguages,_=n.queryLanguageId,C=n.onChangeQueryLanguage,S=n.onRenderValue,M=n.onClassName,$=n.onTransform,G=xa("simple-modal").close,R="".concat(a,":").concat(ln(u)),z=ed[R]||{},U=!1!==ed.showWizard,q=!1!==ed.showOriginal,re=z.queryOptions||{},L=_===z.queryLanguageId&&z.query?z.query:he(_).createQuery(l,z.queryOptions||{}),X=z.isManual||!1,Z=void 0,H={text:""};function he(F){return y.find(function(N){return N.id===F})||y[0]}var E=Gv(function(F,N){try{o("previewTransform",{query:N});var Y=he(_).executeQuery(F,N,p);e(18,H={json:Y}),e(17,Z=void 0)}catch(V){e(18,H={text:""}),e(17,Z=V.toString())}},300);return t.$$set=function(F){"id"in F&&e(28,a=F.id),"json"in F&&e(29,l=F.json),"rootPath"in F&&e(1,u=F.rootPath),"indentation"in F&&e(2,d=F.indentation),"escapeControlCharacters"in F&&e(3,h=F.escapeControlCharacters),"escapeUnicodeCharacters"in F&&e(4,f=F.escapeUnicodeCharacters),"parser"in F&&e(5,p=F.parser),"parseMemoizeOne"in F&&e(6,m=F.parseMemoizeOne),"validationParser"in F&&e(7,g=F.validationParser),"pathParser"in F&&e(8,v=F.pathParser),"queryLanguages"in F&&e(9,y=F.queryLanguages),"queryLanguageId"in F&&e(0,_=F.queryLanguageId),"onChangeQueryLanguage"in F&&e(30,C=F.onChangeQueryLanguage),"onRenderValue"in F&&e(10,S=F.onRenderValue),"onClassName"in F&&e(11,M=F.onClassName),"onTransform"in F&&e(31,$=F.onTransform)},t.$$.update=function(){536870914&t.$$.dirty[0]&&e(14,i=Sn(l,u)),16384&t.$$.dirty[0]&&e(19,r={json:i}),24576&t.$$.dirty[0]&&E(i,L),12289&t.$$.dirty[0]|6&t.$$.dirty[1]&&(e(32,ed[R]={queryOptions:re,query:L,queryLanguageId:_,isManual:X},ed),o("store state in memory",R,ed[R]))},[_,u,d,h,f,p,m,g,v,y,S,M,re,L,i,U,q,Z,H,r,G,he,function(F){e(12,re=F),e(13,L=he(_).createQuery(l,F)),e(33,X=!1),o("updateQueryByWizard",{queryOptions:re,query:L,isManual:X})},function(F){e(13,L=F.target.value),e(33,X=!0),o("handleChangeQuery",{query:L,isManual:X})},function(){try{o("handleTransform",{query:L});var F=he(_).executeQuery(i,L,p);$([{op:"replace",path:ln(u),value:F}]),G()}catch(N){console.error(N),e(18,H={text:""}),e(17,Z=N.toString())}},function(){e(15,U=!U),e(32,ed.showWizard=U,ed)},function(){e(16,q=!q),e(32,ed.showOriginal=q,ed)},function(F){o("handleChangeQueryLanguage",F),e(0,_=F),C(F);var N=he(_);e(13,L=N.createQuery(l,re)),e(33,X=!1)},a,l,C,$,ed,X]}var rKe=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,iKe,tKe,Ei,{id:28,json:29,rootPath:1,indentation:2,escapeControlCharacters:3,escapeUnicodeCharacters:4,parser:5,parseMemoizeOne:6,validationParser:7,pathParser:8,queryLanguages:9,queryLanguageId:0,onChangeQueryLanguage:30,onRenderValue:10,onClassName:11,onTransform:31},YJe,[-1,-1]),r}return Se(e)}(),up={};function oKe(t){pi(t,"svelte-1y818v2",".jse-modal.svelte-1y818v2.svelte-1y818v2{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-1y818v2 .jse-modal-contents.svelte-1y818v2{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions.svelte-1y818v2{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-sort.svelte-1y818v2 table.svelte-1y818v2{width:100%;border-collapse:collapse;border-spacing:0}.jse-modal.jse-sort.svelte-1y818v2 table th.svelte-1y818v2,.jse-modal.jse-sort.svelte-1y818v2 table td.svelte-1y818v2{text-align:left;vertical-align:middle;font-weight:normal;padding-bottom:var(--jse-padding)}.jse-modal.jse-sort.svelte-1y818v2 table th input.jse-path.svelte-1y818v2,.jse-modal.jse-sort.svelte-1y818v2 table td input.jse-path.svelte-1y818v2{width:100%;box-sizing:border-box;padding:6px 16px;border:var(--jse-input-border);border-radius:var(--jse-input-radius);font-family:inherit;font-size:inherit;background:inherit;color:inherit;outline:none}.jse-modal.jse-sort.svelte-1y818v2 table th input.jse-path.svelte-1y818v2:read-only,.jse-modal.jse-sort.svelte-1y818v2 table td input.jse-path.svelte-1y818v2:read-only{background:var(--jse-input-background-readonly)}.jse-modal.jse-sort.svelte-1y818v2 table th.svelte-1y818v2 .svelte-select input,.jse-modal.jse-sort.svelte-1y818v2 table td.svelte-1y818v2 .svelte-select input{box-sizing:border-box}.jse-modal.jse-sort.svelte-1y818v2 .jse-space.svelte-1y818v2{height:200px}.jse-modal.jse-sort.svelte-1y818v2 .jse-space .jse-error.svelte-1y818v2{color:var(--jse-error-color)}")}function lce(t){var n,e,i,r,o,s,a;function l(u){t[14](u)}var c={showChevron:!0,items:t[3]};return void 0!==t[1]&&(c.value=t[1]),o=new Hm({props:c}),Vi.push(function(){return Uu(o,"value",l)}),{c:function(){n=be("tr"),(e=be("th")).textContent="Property",i=it(),r=be("td"),mt(o.$$.fragment),P(e,"class","svelte-1y818v2"),P(r,"class","svelte-1y818v2")},m:function(u,d){Pe(u,n,d),de(n,e),de(n,i),de(n,r),ft(o,r,null),a=!0},p:function(u,d){var h={};8&d&&(h.items=u[3]),!s&&2&d&&(s=!0,h.value=u[1],zu(function(){return s=!1})),o.$set(h)},i:function(u){a||(Q(o.$$.fragment,u),a=!0)},o:function(u){ce(o.$$.fragment,u),a=!1},d:function(u){u&&je(n),pt(o)}}}function cce(t){var n,e;return{c:function(){n=be("div"),e=tn(t[5]),P(n,"class","jse-error svelte-1y818v2")},m:function(i,r){Pe(i,n,r),de(n,e)},p:function(i,r){32&r&&qn(e,i[5])},d:function(i){i&&je(n)}}}function sKe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,C,S,M,$,G,R,z,U,q,re,L,X,Z;e=new c4({props:{title:t[4]?"Sort array items":"Sort object keys"}});var H=t[4]&&(t[3].length>1||void 0===t[1])&&lce(t);function he(N){t[15](N)}var E={showChevron:!0,clearable:!1,items:t[7]};void 0!==t[2]&&(E.value=t[2]),S=new Hm({props:E}),Vi.push(function(){return Uu(S,"value",he)});var F=t[5]&&cce(t);return{c:function(){n=be("div"),mt(e.$$.fragment),i=it(),r=be("div"),o=be("table"),(s=be("colgroup")).innerHTML=' \n ',a=it(),l=be("tbody"),c=be("tr"),(u=be("th")).textContent="Path",d=it(),h=be("td"),f=be("input"),m=it(),H&&H.c(),g=it(),v=be("tr"),(y=be("th")).textContent="Direction",_=it(),C=be("td"),mt(S.$$.fragment),$=it(),G=be("div"),F&&F.c(),R=it(),z=be("div"),U=be("button"),q=tn("Sort"),P(u,"class","svelte-1y818v2"),P(f,"class","jse-path svelte-1y818v2"),P(f,"type","text"),f.readOnly=!0,P(f,"title","Selected path"),f.value=p=Hi(t[0])?"(whole document)":tu(Kl(t[0])),P(h,"class","svelte-1y818v2"),P(y,"class","svelte-1y818v2"),P(C,"class","svelte-1y818v2"),P(o,"class","svelte-1y818v2"),P(G,"class","jse-space svelte-1y818v2"),P(U,"type","button"),P(U,"class","jse-primary svelte-1y818v2"),U.disabled=re=!!t[4]&&!t[1],P(z,"class","jse-actions svelte-1y818v2"),P(r,"class","jse-modal-contents svelte-1y818v2"),P(n,"class","jse-modal jse-sort svelte-1y818v2")},m:function(N,Y){Pe(N,n,Y),ft(e,n,null),de(n,i),de(n,r),de(r,o),de(o,s),de(o,a),de(o,l),de(l,c),de(c,u),de(c,d),de(c,h),de(h,f),de(l,m),H&&H.m(l,null),de(l,g),de(l,v),de(v,y),de(v,_),de(v,C),ft(S,C,null),de(r,$),de(r,G),F&&F.m(G,null),de(r,R),de(r,z),de(z,U),de(U,q),L=!0,X||(Z=[Nt(U,"click",t[8]),_a(aKe.call(null,U)),_a(iS.call(null,n,t[6]))],X=!0)},p:function(N,Y){var V=Un(Y,1)[0],oe={};16&V&&(oe.title=N[4]?"Sort array items":"Sort object keys"),e.$set(oe),(!L||1&V&&p!==(p=Hi(N[0])?"(whole document)":tu(Kl(N[0])))&&f.value!==p)&&(f.value=p),N[4]&&(N[3].length>1||void 0===N[1])?H?(H.p(N,V),26&V&&Q(H,1)):((H=lce(N)).c(),Q(H,1),H.m(l,g)):H&&($t(),ce(H,1,1,function(){H=null}),Bt());var fe={};!M&&4&V&&(M=!0,fe.value=N[2],zu(function(){return M=!1})),S.$set(fe),N[5]?F?F.p(N,V):((F=cce(N)).c(),F.m(G,null)):F&&(F.d(1),F=null),(!L||18&V&&re!==(re=!!N[4]&&!N[1]))&&(U.disabled=re)},i:function(N){L||(Q(e.$$.fragment,N),Q(H),Q(S.$$.fragment,N),L=!0)},o:function(N){ce(e.$$.fragment,N),ce(H),ce(S.$$.fragment,N),L=!1},d:function(N){N&&je(n),pt(e),H&&H.d(),pt(S),F&&F.d(),X=!1,ho(Z)}}}function aKe(t){t.focus()}function lKe(t,n,e){var i,r,o,s=wa("jsoneditor:SortModal"),a=n.id,l=n.json,c=n.rootPath,u=n.onSort,d=xa("simple-modal").close,h="".concat(a,":").concat(ln(c)),f=Sn(l,c),p={value:1,label:"ascending"},m=[p,{value:-1,label:"descending"}],g=up[h]&&up[h].selectedProperty||void 0,v=up[h]&&up[h].selectedDirection||p,y=void 0;return t.$$set=function(_){"id"in _&&e(9,a=_.id),"json"in _&&e(10,l=_.json),"rootPath"in _&&e(0,c=_.rootPath),"onSort"in _&&e(11,u=_.onSort)},t.$$.update=function(){16&t.$$.dirty&&e(13,r=i&&void 0!==f?CO(f):void 0),8192&t.$$.dirty&&e(3,o=r?r.map(Lb):void 0),10&t.$$.dirty&&void 0===g&&o&&1===o.length&&e(1,g=o[0]),4102&t.$$.dirty&&(e(12,up[h]={selectedProperty:g,selectedDirection:v},up),s("store state in memory",h,up[h]))},e(4,i=Array.isArray(f)),[c,g,v,o,i,y,d,m,function(){try{var _,C;e(5,y=void 0);var S=null===(_=g)||void 0===_?void 0:_.value,M=null===(C=v)||void 0===C?void 0:C.value,$=Fle(l,c,S,M);u({operations:$,rootPath:c,itemPath:S,direction:M}),d()}catch(G){e(5,y=G.toString())}},a,l,u,up,r,function(_){e(1,g=_),e(3,o),e(13,r),e(4,i)},function(_){e(2,v=_)}]}var cKe=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,lKe,sKe,Ei,{id:9,json:10,rootPath:0,onSort:11},oKe),r}return Se(e)}();function dh(){}function sS(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(t<.9*n)return t.toFixed()+" B";var e=t/n;if(e<.9*n)return e.toFixed(1)+" KB";var i=e/n;if(i<.9*n)return i.toFixed(1)+" MB";var r=i/n;return r<.9*n?r.toFixed(1)+" GB":(r/n).toFixed(1)+" TB"}function uKe(t){var n,e;return n=new nS({props:{items:t[0]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};1&Un(r,1)[0]&&(o.items=i[0]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function dKe(t,n,e){var i,r,o=n.readOnly,s=void 0!==o&&o,a=n.onFormat,l=n.onCompact,c=n.onSort,u=n.onTransform,d=n.onToggleSearch,h=n.onUndo,f=n.onRedo,p=n.canUndo,m=n.canRedo,g=n.canFormat,v=n.canCompact,y=n.canSort,_=n.canTransform,C=n.onRenderMenu;return t.$$set=function(S){"readOnly"in S&&e(1,s=S.readOnly),"onFormat"in S&&e(2,a=S.onFormat),"onCompact"in S&&e(3,l=S.onCompact),"onSort"in S&&e(4,c=S.onSort),"onTransform"in S&&e(5,u=S.onTransform),"onToggleSearch"in S&&e(6,d=S.onToggleSearch),"onUndo"in S&&e(7,h=S.onUndo),"onRedo"in S&&e(8,f=S.onRedo),"canUndo"in S&&e(9,p=S.canUndo),"canRedo"in S&&e(10,m=S.canRedo),"canFormat"in S&&e(11,g=S.canFormat),"canCompact"in S&&e(12,v=S.canCompact),"canSort"in S&&e(13,y=S.canSort),"canTransform"in S&&e(14,_=S.canTransform),"onRenderMenu"in S&&e(15,C=S.onRenderMenu)},t.$$.update=function(){32766&t.$$.dirty&&e(16,r=s?[{type:"space"}]:[{type:"button",icon:m4,title:"Format JSON: add proper indentation and new lines (Ctrl+I)",className:"jse-format",onClick:a,disabled:s||!g},{type:"button",icon:UYe,title:"Compact JSON: remove all white spacing and new lines (Ctrl+Shift+I)",className:"jse-compact",onClick:l,disabled:s||!v},{type:"separator"},{type:"button",icon:Gk,title:"Sort",className:"jse-sort",onClick:c,disabled:s||!y},{type:"button",icon:Hk,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:u,disabled:s||!_},{type:"button",icon:KO,title:"Search (Ctrl+F)",className:"jse-search",onClick:d},{type:"separator"},{type:"button",icon:JO,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:h,disabled:!p},{type:"button",icon:YO,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:f,disabled:!m},{type:"space"}]),98304&t.$$.dirty&&e(0,i=C(r)||r)},[i,s,a,l,c,u,d,h,f,p,m,g,v,y,_,C,r]}var hKe=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,dKe,uKe,Ei,{readOnly:1,onFormat:2,onCompact:3,onSort:4,onTransform:5,onToggleSearch:6,onUndo:7,onRedo:8,canUndo:9,canRedo:10,canFormat:11,canCompact:12,canSort:13,canTransform:14,onRenderMenu:15}),r}return Se(e)}(),fo=function(){function t(){ke(this,t)}return Se(t,[{key:"lineAt",value:function(n){if(n<0||n>this.length)throw new RangeError("Invalid position ".concat(n," in document of length ").concat(this.length));return this.lineInner(n,!1,1,0)}},{key:"line",value:function(n){if(n<1||n>this.lines)throw new RangeError("Invalid line number ".concat(n," in ").concat(this.lines,"-line document"));return this.lineInner(n,!0,1,0)}},{key:"replace",value:function(n,e,i){var r=[];return this.decompose(0,n,r,2),i.length&&i.decompose(0,i.length,r,3),this.decompose(e,this.length,r,1),aS.from(r,this.length-(e-n)+i.length)}},{key:"append",value:function(n){return this.replace(this.length,this.length,n)}},{key:"slice",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,i=[];return this.decompose(n,e,i,0),aS.from(i,e-n)}},{key:"eq",value:function(n){if(n==this)return!0;if(n.length!=this.length||n.lines!=this.lines)return!1;for(var e=this.scanIdentical(n,1),i=this.length-this.scanIdentical(n,-1),r=new t_(this),o=new t_(n),s=e,a=e;;){if(r.next(s),o.next(s),s=0,r.lineBreak!=o.lineBreak||r.done!=o.done||r.value!=o.value)return!1;if(a+=r.value.length,r.done||a>=i)return!0}}},{key:"iter",value:function(){return new t_(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)}},{key:"iterRange",value:function(n){return new dce(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length)}},{key:"iterLines",value:function(n,e){var i;if(null==n)i=this.iter();else{null==e&&(e=this.lines+1);var r=this.line(n).from;i=this.iterRange(r,Math.max(r,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new hce(i)}},{key:"toString",value:function(){return this.sliceString(0)}},{key:"toJSON",value:function(){var n=[];return this.flatten(n),n}}],[{key:"of",value:function(n){if(0==n.length)throw new RangeError("A document must have at least one line");return 1!=n.length||n[0]?n.length<=32?new id(n):aS.from(id.split(n,[])):t.empty}}]),t}(),id=function(t){wt(e,fo);var n=Ct(e);function e(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function fKe(t){var n,e=-1,i=Re(t);try{for(i.s();!(n=i.n()).done;)e+=n.value.length+1}catch(r){i.e(r)}finally{i.f()}return e}(i);return ke(this,e),(r=n.call(this)).text=i,r.length=o,r}return Se(e,[{key:"lines",get:function(){return this.text.length}},{key:"children",get:function(){return null}},{key:"lineInner",value:function(i,r,o,s){for(var a=0;;a++){var l=this.text[a],c=s+l.length;if((r?o:c)>=i)return new pKe(s,c,o,l);s=c+1,o++}}},{key:"decompose",value:function(i,r,o,s){var a=i<=0&&r>=this.length?this:new e(uce(this.text,i,r),Math.min(r,this.length)-Math.max(0,i));if(1&s){var l=o.pop(),c=lS(a.text,l.text.slice(),0,a.length);if(c.length<=32)o.push(new e(c,l.length+a.length));else{var u=c.length>>1;o.push(new e(c.slice(0,u)),new e(c.slice(u)))}}else o.push(a)}},{key:"replace",value:function(i,r,o){if(!(o instanceof e))return pr(qi(e.prototype),"replace",this).call(this,i,r,o);var s=lS(this.text,lS(o.text,uce(this.text,0,i)),r),a=this.length+o.length-(r-i);return s.length<=32?new e(s,a):aS.from(e.split(s,[]),a)}},{key:"sliceString",value:function(i){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",s="",a=0,l=0;a<=r&&li&&l&&(s+=o),ia&&(s+=c.slice(Math.max(0,i-a),r-a)),a=u+1}return s}},{key:"flatten",value:function(i){var r,o=Re(this.text);try{for(o.s();!(r=o.n()).done;)i.push(r.value)}catch(a){o.e(a)}finally{o.f()}}},{key:"scanIdentical",value:function(){return 0}}],[{key:"split",value:function(i,r){var o,s=[],a=-1,l=Re(i);try{for(l.s();!(o=l.n()).done;){var c=o.value;s.push(c),a+=c.length+1,32==s.length&&(r.push(new e(s,a)),s=[],a=-1)}}catch(u){l.e(u)}finally{l.f()}return a>-1&&r.push(new e(s,a)),r}}]),e}(),aS=function(t){wt(e,fo);var n=Ct(e);function e(i,r){var o;ke(this,e),(o=n.call(this)).children=i,o.length=r,o.lines=0;var s,a=Re(i);try{for(a.s();!(s=a.n()).done;)o.lines+=s.value.lines}catch(c){a.e(c)}finally{a.f()}return o}return Se(e,[{key:"lineInner",value:function(i,r,o,s){for(var a=0;;a++){var l=this.children[a],c=s+l.length,u=o+l.lines-1;if((r?u:c)>=i)return l.lineInner(i,r,o,s);s=c+1,o=u+1}}},{key:"decompose",value:function(i,r,o,s){for(var a=0,l=0;l<=r&&a=l){var d=s&((l<=i?1:0)|(u>=r?2:0));l>=i&&u<=r&&!d?o.push(c):c.decompose(i-l,r-l,o,d)}l=u+1}}},{key:"replace",value:function(i,r,o){if(o.lines=a&&r<=c){var u=l.replace(i-a,r-a,o),d=this.lines-l.lines+u.lines;if(u.lines>4&&u.lines>d>>6){var h=this.children.slice();return h[s]=u,new e(h,this.length-(r-i)+o.length)}return pr(qi(e.prototype),"replace",this).call(this,a,c,u)}a=c+1}return pr(qi(e.prototype),"replace",this).call(this,i,r,o)}},{key:"sliceString",value:function(i){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",s="",a=0,l=0;ai&&a&&(s+=o),il&&(s+=c.sliceString(i-l,r-l,o)),l=u+1}return s}},{key:"flatten",value:function(i){var r,o=Re(this.children);try{for(o.s();!(r=o.n()).done;)r.value.flatten(i)}catch(s){o.e(s)}finally{o.f()}}},{key:"scanIdentical",value:function(i,r){if(!(i instanceof e))return 0;for(var o=0,s=Un(r>0?[0,0,this.children.length,i.children.length]:[this.children.length-1,i.children.length-1,-1,-1],4),a=s[0],l=s[1],c=s[2],u=s[3];;a+=r,l+=r){if(a==c||l==u)return o;var d=this.children[a],h=i.children[l];if(d!=h)return o+d.scanIdentical(h,r);o+=d.length+1}}}],[{key:"from",value:function(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.reduce(function(R,z){return R+z.length+1},-1),s=0,a=Re(i);try{for(a.s();!(r=a.n()).done;)s+=r.value.lines}catch(R){a.e(R)}finally{a.f()}if(s<32){var c,u=[],d=Re(i);try{for(d.s();!(c=d.n()).done;)c.value.flatten(u)}catch(R){d.e(R)}finally{d.f()}return new id(u,o)}var f=Math.max(32,s>>5),p=f<<1,m=f>>1,g=[],v=0,y=-1,_=[];function C(R){var z;if(R.lines>p&&R instanceof e){var U,q=Re(R.children);try{for(q.s();!(U=q.n()).done;)C(U.value)}catch(re){q.e(re)}finally{q.f()}}else R.lines>m&&(v>m||!v)?(S(),g.push(R)):R instanceof id&&v&&(z=_[_.length-1])instanceof id&&R.lines+z.lines<=32?(v+=R.lines,y+=R.length+1,_[_.length-1]=new id(z.text.concat(R.text),z.length+1+R.length)):(v+R.lines>f&&S(),v+=R.lines,y+=R.length+1,_.push(R))}function S(){0!=v&&(g.push(1==_.length?_[0]:e.from(_,y)),y=-1,v=_.length=0)}var M,$=Re(i);try{for($.s();!(M=$.n()).done;)C(M.value)}catch(R){$.e(R)}finally{$.f()}return S(),1==g.length?g[0]:new e(g,o)}}]),e}();function lS(t,n){for(var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e9,r=0,o=0,s=!0;o=e&&(l>i&&(a=a.slice(0,i-r)),r1&&void 0!==arguments[1]?arguments[1]:1;ke(this,t),this.dir=e,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[n],this.offsets=[e>0?1:(n instanceof id?n.text.length:n.children.length)<<1]}return Se(t,[{key:"nextInner",value:function(n,e){for(this.done=this.lineBreak=!1;;){var i=this.nodes.length-1,r=this.nodes[i],o=this.offsets[i],s=o>>1;if(s==(e>0?r instanceof id?r.text.length:r.children.length:0)){if(0==i)return this.done=!0,this.value="",this;e>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&o)==(e>0?0:1)){if(this.offsets[i]+=e,0==n)return this.lineBreak=!0,this.value="\n",this;n--}else if(r instanceof id){var l=r.text[s+(e<0?-1:0)];if(this.offsets[i]+=e,l.length>Math.max(0,n))return this.value=0==n?l:e>0?l.slice(n):l.slice(0,l.length-n),this;n-=l.length}else{var c=r.children[s+(e<0?-1:0)];n>c.length?(n-=c.length,this.offsets[i]+=e):(e<0&&this.offsets[i]--,this.nodes.push(c),this.offsets.push(e>0?1:(c instanceof id?c.text.length:c.children.length)<<1))}}}},{key:"next",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return n<0&&(this.nextInner(-n,-this.dir),n=this.value.length),this.nextInner(n,this.dir)}}]),t}(),dce=function(){function t(n,e,i){ke(this,t),this.value="",this.done=!1,this.cursor=new t_(n,e>i?-1:1),this.pos=e>i?n.length:0,this.from=Math.min(e,i),this.to=Math.max(e,i)}return Se(t,[{key:"nextInner",value:function(n,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;n+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);var i=e<0?this.pos-this.from:this.to-this.pos;n>i&&(n=i),i-=n;var r=this.cursor.next(n).value;return this.pos+=(r.length+n)*e,this.value=r.length<=i?r:e<0?r.slice(r.length-i):r.slice(0,i),this.done=!this.value,this}},{key:"next",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return n<0?n=Math.max(n,this.from-this.pos):n>0&&(n=Math.min(n,this.to-this.pos)),this.nextInner(n,this.cursor.dir)}},{key:"lineBreak",get:function(){return this.cursor.lineBreak&&""!=this.value}}]),t}(),hce=function(){function t(n){ke(this,t),this.inner=n,this.afterBreak=!0,this.value="",this.done=!1}return Se(t,[{key:"next",value:function(){var e=this.inner.next(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0),r=e.lineBreak,o=e.value;return e.done?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=o,this.afterBreak=!1),this}},{key:"lineBreak",get:function(){return!1}}]),t}();typeof Symbol<"u"&&(fo.prototype[Symbol.iterator]=function(){return this.iter()},t_.prototype[Symbol.iterator]=dce.prototype[Symbol.iterator]=hce.prototype[Symbol.iterator]=function(){return this});for(var pKe=function(){function t(n,e,i,r){ke(this,t),this.from=n,this.to=e,this.number=i,this.text=r}return Se(t,[{key:"length",get:function(){return this.to-this.from}}]),t}(),w0="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(function(t){return t?parseInt(t,36):1}),cS=1;cSt)return w0[n-1]<=t;return!1}function fce(t){return t>=127462&&t<=127487}function Pl(t,n){return(arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?gKe:pce)(t,n,!(arguments.length>3&&void 0!==arguments[3])||arguments[3])}function pce(t,n,e){if(n==t.length)return n;n&&mce(t.charCodeAt(n))&&gce(t.charCodeAt(n-1))&&n--;var i=Ba(t,n);for(n+=Sc(i);n=0&&fce(Ba(t,s));)o++,s-=2;if(o%2==0)break;n+=2}}return n}function gKe(t,n,e){for(;n>0;){var i=pce(t,n-2,e);if(i=56320&&t<57344}function gce(t){return t>=55296&&t<56320}function Ba(t,n){var e=t.charCodeAt(n);if(!gce(e)||n+1==t.length)return e;var i=t.charCodeAt(n+1);return mce(i)?i-56320+(e-55296<<10)+65536:e}function S4(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}function Sc(t){return t<65536?1:2}var D4=/\r\n?|\n/,Ll=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(Ll||(Ll={})),C0=function(){function t(n){ke(this,t),this.sections=n}return Se(t,[{key:"length",get:function(){for(var n=0,e=0;e1&&void 0!==arguments[1]&&arguments[1])}},{key:"invertedDesc",get:function(){for(var n=[],e=0;e1&&void 0!==arguments[1]&&arguments[1])}},{key:"mapPos",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ll.Simple,r=0,o=0,s=0;sn)return o+(n-r);o+=a}else{if(i!=Ll.Simple&&c>=n&&(i==Ll.TrackDel&&rn||i==Ll.TrackBefore&&rn))return null;if(c>n||c==n&&e<0&&!a)return n==r||e<0?o:o+l;o+=l}r=c}if(n>r)throw new RangeError("Position ".concat(n," is out of range for changeset of length ").concat(r));return o}},{key:"touchesRange",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,i=0,r=0;i=0&&r<=e&&a>=n)return!(re)||"cover";r=a}return!1}},{key:"toString",value:function(){for(var n="",e=0;e=0?":"+r:"")}return n}},{key:"toJSON",value:function(){return this.sections}}],[{key:"fromJSON",value:function(n){if(!Array.isArray(n)||n.length%2||n.some(function(e){return"number"!=typeof e}))throw new RangeError("Invalid JSON representation of ChangeDesc");return new t(n)}},{key:"create",value:function(n){return new t(n)}}]),t}(),rd=function(t){wt(e,C0);var n=Ct(e);function e(i,r){var o;return ke(this,e),(o=n.call(this,i)).inserted=r,o}return Se(e,[{key:"apply",value:function(i){if(this.length!=i.length)throw new RangeError("Applying change set to a document with the wrong length");return T4(this,function(r,o,s,a,l){return i=i.replace(s,s+(o-r),l)},!1),i}},{key:"mapDesc",value:function(i){return E4(this,i,arguments.length>1&&void 0!==arguments[1]&&arguments[1],!0)}},{key:"invert",value:function(i){for(var r=this.sections.slice(),o=[],s=0,a=0;s=0){r[s]=c,r[s+1]=l;for(var u=s>>1;o.length1&&void 0!==arguments[1]&&arguments[1],!0)}},{key:"iterChanges",value:function(i){T4(this,i,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}},{key:"desc",get:function(){return C0.create(this.sections)}},{key:"filter",value:function(i){var r=[],o=[],s=[],a=new n_(this);e:for(var l=0,c=0;;){for(var u=l==i.length?1e9:i[l++];c0&&dp(o,r,a.text),a.forward(d),c+=d}for(var f=i[l++];c>1].toJSON()))}return i}}],[{key:"of",value:function(i,r,o){var s=[],a=[],l=0,c=null;function u(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||s.length){lv||m<0||v>r)throw new RangeError("Invalid change range ".concat(m," to ").concat(v," (in doc of length ").concat(r,")"));var _=y?"string"==typeof y?fo.of(y.split(o||D4)):y:fo.empty,C=_.length;if(m==v&&0==C)return;ml&&dl(s,m-l,-1),dl(s,v-m,C),dp(a,s,_),l=v}}(i),u(!c),c}},{key:"empty",value:function(i){return new e(i?[i,-1]:[],[])}},{key:"fromJSON",value:function(i){if(!Array.isArray(i))throw new RangeError("Invalid JSON representation of ChangeSet");for(var r=[],o=[],s=0;s3&&void 0!==arguments[3]&&arguments[3];if(!(0==n&&e<=0)){var r=t.length-2;r>=0&&e<=0&&e==t[r+1]?t[r]+=n:0==n&&0==t[r]?t[r+1]+=e:i?(t[r]+=n,t[r+1]+=e):t.push(n,e)}}function dp(t,n,e){if(0!=e.length){var i=n.length-2>>1;if(i>1])),!(e||s==t.sections.length||t.sections[s+1]<0);)a=t.sections[s++],l=t.sections[s++];n(r,c,o,u,d),r=c,o=u}}}function E4(t,n,e){for(var r=[],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3]?[]:null,s=new n_(t),a=new n_(n),l=-1;;)if(-1==s.ins&&-1==a.ins){var c=Math.min(s.len,a.len);dl(r,c,-1),s.forward(c),a.forward(c)}else if(a.ins>=0&&(s.ins<0||l==s.i||0==s.off&&(a.len=0&&l=0)){if(s.done&&a.done)return o?rd.createSet(r,o):C0.create(r);throw new Error("Mismatched change set lengths")}for(var h=0,f=s.len;f;)if(-1==a.ins){var p=Math.min(f,a.len);h+=p,f-=p,a.forward(p)}else{if(!(0==a.ins&&a.len2&&void 0!==arguments[2]&&arguments[2]?[]:null,o=new n_(t),s=new n_(n),a=!1;;){if(o.done&&s.done)return r?rd.createSet(i,r):C0.create(i);if(0==o.ins)dl(i,o.len,0,a),o.next();else if(0!=s.len||s.done){if(o.done||s.done)throw new Error("Mismatched change set lengths");var l=Math.min(o.len2,s.len),c=i.length;if(-1==o.ins){var u=-1==s.ins?-1:s.off?0:s.ins;dl(i,l,u,a),r&&u&&dp(r,i,s.text)}else-1==s.ins?(dl(i,o.off?0:o.len,l,a),r&&dp(r,i,o.textBit(l))):(dl(i,o.off?0:o.len,s.off?0:s.ins,a),r&&!s.off&&dp(r,i,s.text));a=(o.ins>l||s.ins>=0&&s.len>l)&&(a||i.length>c),o.forward2(l),s.forward(l)}else dl(i,0,s.ins,a),r&&dp(r,i,s.text),s.next()}}var n_=function(){function t(n){ke(this,t),this.set=n,this.i=0,this.next()}return Se(t,[{key:"next",value:function(){var n=this.set.sections;this.i>1;return e>=n.length?fo.empty:n[e]}},{key:"textBit",value:function(n){var e=this.set.inserted,i=this.i-2>>1;return i>=e.length&&!n?fo.empty:e[i].slice(this.off,null==n?void 0:this.off+n)}},{key:"forward",value:function(n){n==this.len?this.next():(this.len-=n,this.off+=n)}},{key:"forward2",value:function(n){-1==this.ins?this.forward(n):n==this.ins?this.next():(this.ins-=n,this.off+=n)}}]),t}(),uS=function(){function t(n,e,i){ke(this,t),this.from=n,this.to=e,this.flags=i}return Se(t,[{key:"anchor",get:function(){return 16&this.flags?this.to:this.from}},{key:"head",get:function(){return 16&this.flags?this.from:this.to}},{key:"empty",get:function(){return this.from==this.to}},{key:"assoc",get:function(){return 4&this.flags?-1:8&this.flags?1:0}},{key:"bidiLevel",get:function(){var n=3&this.flags;return 3==n?null:n}},{key:"goalColumn",get:function(){var n=this.flags>>5;return 33554431==n?void 0:n}},{key:"map",value:function(n){var e,i;return this.empty?e=i=n.mapPos(this.from,arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1):(e=n.mapPos(this.from,1),i=n.mapPos(this.to,-1)),e==this.from&&i==this.to?this:new t(e,i,this.flags)}},{key:"extend",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;if(n<=this.anchor&&e>=this.anchor)return en.range(n,e);var i=Math.abs(n-this.anchor)>Math.abs(e-this.anchor)?n:e;return en.range(this.anchor,i)}},{key:"eq",value:function(n){return this.anchor==n.anchor&&this.head==n.head}},{key:"toJSON",value:function(){return{anchor:this.anchor,head:this.head}}}],[{key:"fromJSON",value:function(n){if(!n||"number"!=typeof n.anchor||"number"!=typeof n.head)throw new RangeError("Invalid JSON representation for SelectionRange");return en.range(n.anchor,n.head)}},{key:"create",value:function(n,e,i){return new t(n,e,i)}}]),t}(),en=function(){function t(n,e){ke(this,t),this.ranges=n,this.mainIndex=e}return Se(t,[{key:"map",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return n.empty?this:t.create(this.ranges.map(function(i){return i.map(n,e)}),this.mainIndex)}},{key:"eq",value:function(n){if(this.ranges.length!=n.ranges.length||this.mainIndex!=n.mainIndex)return!1;for(var e=0;e1&&void 0!==arguments[1])||arguments[1];return t.create([n].concat(this.ranges),e?0:this.mainIndex+1)}},{key:"replaceRange",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.mainIndex,i=this.ranges.slice();return i[e]=n,t.create(i,this.mainIndex)}},{key:"toJSON",value:function(){return{ranges:this.ranges.map(function(n){return n.toJSON()}),main:this.mainIndex}}}],[{key:"fromJSON",value:function(n){if(!n||!Array.isArray(n.ranges)||"number"!=typeof n.main||n.main>=n.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new t(n.ranges.map(function(e){return uS.fromJSON(e)}),n.main)}},{key:"single",value:function(n){return new t([t.range(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n)],0)}},{key:"create",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0==n.length)throw new RangeError("A selection needs at least one range");for(var i=0,r=0;r1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return uS.create(n,n,(0==e?0:e<0?4:8)|(null==i?3:Math.min(2,i))|(r??33554431)<<5)}},{key:"range",value:function(n,e,i,r){var o=(i??33554431)<<5|(null==r?3:Math.min(2,r));return en?4:0)|o)}},{key:"normalized",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=n[e];n.sort(function(c,u){return c.from-u.from}),e=n.indexOf(i);for(var r=1;ro.head?t.range(l,a):t.range(a,l))}}return new t(n,e)}}]),t}();function yce(t,n){var e,i=Re(t.ranges);try{for(i.s();!(e=i.n()).done;)if(e.value.to>n)throw new RangeError("Selection points outside of document")}catch(r){i.e(r)}finally{i.f()}}var A4=0,Qn=function(){function t(n,e,i,r,o){ke(this,t),this.combine=n,this.compareInput=e,this.compare=i,this.isStatic=r,this.id=A4++,this.default=n([]),this.extensions="function"==typeof o?o(this):o}return Se(t,[{key:"of",value:function(n){return new dS([],this,0,n)}},{key:"compute",value:function(n,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new dS(n,this,1,e)}},{key:"computeN",value:function(n,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new dS(n,this,2,e)}},{key:"from",value:function(n,e){return e||(e=function(i){return i}),this.compute([n],function(i){return e(i.field(n))})}}],[{key:"define",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t(n.combine||function(e){return e},n.compareInput||function(e,i){return e===i},n.compare||(n.combine?function(e,i){return e===i}:M4),!!n.static,n.enables)}}]),t}();function M4(t,n){return t==n||t.length==n.length&&t.every(function(e,i){return e===n[i]})}var dS=function(){function t(n,e,i,r){ke(this,t),this.dependencies=n,this.facet=e,this.type=i,this.value=r,this.id=A4++}return Se(t,[{key:"dynamicSlot",value:function(n){var e,i,r=this,o=this.value,s=this.facet.compareInput,a=this.id,l=n[a]>>1,c=2==this.type,u=!1,d=!1,h=[],f=Re(this.dependencies);try{for(f.s();!(i=f.n()).done;){var p=i.value;"doc"==p?u=!0:"selection"==p?d=!0:!(1&(null!==(e=n[p.id])&&void 0!==e?e:1))&&h.push(n[p.id])}}catch(m){f.e(m)}finally{f.f()}return{create:function(m){return m.values[l]=o(m),1},update:function(m,g){if(u&&g.docChanged||d&&(g.docChanged||g.selection)||I4(m,h)){var v=o(m);if(c?!bce(v,m.values[l],s):!s(v,m.values[l]))return m.values[l]=v,1}return 0},reconfigure:function(m,g){var v,y=g.config.address[a];if(null!=y){var _=hS(g,y);if(r.dependencies.every(function(C){return C instanceof Qn?g.facet(C)===m.facet(C):!(C instanceof Va)||g.field(C,!1)==m.field(C,!1)})||(c?bce(v=o(m),_,s):s(v=o(m),_)))return m.values[l]=_,0}else v=o(m);return m.values[l]=v,1}}}}]),t}();function bce(t,n,e){if(t.length!=n.length)return!1;for(var i=0;i>1;return{create:function(r){return r.values[i]=e.create(r),1},update:function(r,o){var s=r.values[i],a=e.updateF(s,o);return e.compareF(s,a)?0:(r.values[i]=a,1)},reconfigure:function(r,o){return null!=o.config.address[e.id]?(r.values[i]=o.field(e),0):(r.values[i]=e.create(r),1)}}}},{key:"init",value:function(n){return[this,_ce.of({field:this,create:n})]}},{key:"extension",get:function(){return this}}],[{key:"define",value:function(n){var e=new t(A4++,n.create,n.update,n.compare||function(i,r){return i===r},n);return n.provide&&(e.provides=n.provide(e)),e}}]),t}();function i_(t){return function(n){return new xce(n,t)}}var k0={highest:i_(0),high:i_(1),default:i_(2),low:i_(3),lowest:i_(4)},xce=Se(function t(n,e){ke(this,t),this.inner=n,this.prec=e}),hp=function(){function t(){ke(this,t)}return Se(t,[{key:"of",value:function(n){return new N4(this,n)}},{key:"reconfigure",value:function(n){return t.reconfigure.of({compartment:this,extension:n})}},{key:"get",value:function(n){return n.config.compartments.get(this)}}]),t}(),N4=Se(function t(n,e){ke(this,t),this.compartment=n,this.inner=e}),wce=function(){function t(n,e,i,r,o,s){for(ke(this,t),this.base=n,this.compartments=e,this.dynamicSlots=i,this.address=r,this.staticValues=o,this.facets=s,this.statusTemplate=[];this.statusTemplate.length>1]}}],[{key:"resolve",value:function(n,e,i){var r,C,S,M,$,G,o=[],s=Object.create(null),a=new Map,l=Re((C=n,S=e,M=a,$=[[],[],[],[],[]],G=new Map,function R(z,U){var q=G.get(z);if(null!=q){if(q<=U)return;var re=$[q].indexOf(z);re>-1&&$[q].splice(re,1),z instanceof N4&&M.delete(z.compartment)}if(G.set(z,U),Array.isArray(z)){var L,X=Re(z);try{for(X.s();!(L=X.n()).done;)R(L.value,U)}catch(he){X.e(he)}finally{X.f()}}else if(z instanceof N4){if(M.has(z.compartment))throw new RangeError("Duplicate use of compartment in extensions");var Z=S.get(z.compartment)||z.inner;M.set(z.compartment,Z),R(Z,U)}else if(z instanceof xce)R(z.inner,z.prec);else if(z instanceof Va)$[U].push(z),z.provides&&R(z.provides,U);else if(z instanceof dS)$[U].push(z),z.facet.extensions&&R(z.facet.extensions,2);else{var H=z.extension;if(!H)throw new Error("Unrecognized extension value in extension set (".concat(z,"). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks."));R(H,U)}}(C,2),$.reduce(function(z,U){return z.concat(U)})));try{for(l.s();!(r=l.n()).done;){var c=r.value;c instanceof Va?o.push(c):(s[c.facet.id]||(s[c.facet.id]=[])).push(c)}}catch(C){l.e(C)}finally{l.f()}for(var u=Object.create(null),d=[],h=[],f=function(){var C=m[p];u[C.id]=h.length<<1,h.push(function(S){return C.slot(S)})},p=0,m=o;p>1;function F(N){for(var Y=[],V=0;V>1,i=t.status[e];if(4==i)throw new Error("Cyclic dependency between fields and/or facets");if(2&i)return i;t.status[e]=4;var r=t.computeSlot(t,t.config.dynamicSlots[e]);return t.status[e]=2|r}function hS(t,n){return 1&n?t.config.staticValues[n>>1]:t.values[n>>1]}var Cce=Qn.define(),kce=Qn.define({combine:function(t){return t.some(function(n){return n})},static:!0}),Sce=Qn.define({combine:function(t){return t.length?t[0]:void 0},static:!0}),Dce=Qn.define(),Tce=Qn.define(),Ece=Qn.define(),Ace=Qn.define({combine:function(t){return!!t.length&&t[0]}}),fp=function(){function t(n,e){ke(this,t),this.type=n,this.value=e}return Se(t,null,[{key:"define",value:function(){return new _Ke}}]),t}(),_Ke=function(){function t(){ke(this,t)}return Se(t,[{key:"of",value:function(n){return new fp(this,n)}}]),t}(),xKe=function(){function t(n){ke(this,t),this.map=n}return Se(t,[{key:"of",value:function(n){return new hr(this,n)}}]),t}(),hr=function(){function t(n,e){ke(this,t),this.type=n,this.value=e}return Se(t,[{key:"map",value:function(n){var e=this.type.map(this.value,n);return void 0===e?void 0:e==this.value?this:new t(this.type,e)}},{key:"is",value:function(n){return this.type==n}}],[{key:"define",value:function(){return new xKe((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).map||function(e){return e})}},{key:"mapEffects",value:function(n,e){if(!n.length)return n;var i,r=[],o=Re(n);try{for(o.s();!(i=o.n()).done;){var s=i.value.map(e);s&&r.push(s)}}catch(a){o.e(a)}finally{o.f()}return r}}]),t}();hr.reconfigure=hr.define(),hr.appendConfig=hr.define();var Ql=function(){function t(n,e,i,r,o,s){ke(this,t),this.startState=n,this.changes=e,this.selection=i,this.effects=r,this.annotations=o,this.scrollIntoView=s,this._doc=null,this._state=null,i&&yce(i,e.newLength),o.some(function(a){return a.type==t.time})||(this.annotations=o.concat(t.time.of(Date.now())))}return Se(t,[{key:"newDoc",get:function(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}},{key:"newSelection",get:function(){return this.selection||this.startState.selection.map(this.changes)}},{key:"state",get:function(){return this._state||this.startState.applyTransaction(this),this._state}},{key:"annotation",value:function(n){var e,i=Re(this.annotations);try{for(i.s();!(e=i.n()).done;){var r=e.value;if(r.type==n)return r.value}}catch(o){i.e(o)}finally{i.f()}}},{key:"docChanged",get:function(){return!this.changes.empty}},{key:"reconfigured",get:function(){return this.startState.config!=this.state.config}},{key:"isUserEvent",value:function(n){var e=this.annotation(t.userEvent);return!(!e||!(e==n||e.length>n.length&&e.slice(0,n.length)==n&&"."==e[n.length]))}}],[{key:"create",value:function(n,e,i,r,o,s){return new t(n,e,i,r,o,s)}}]),t}();function wKe(t,n){for(var e=[],i=0,r=0;;){var o=void 0,s=void 0;if(i=t[i]))o=t[i++],s=t[i++];else{if(!(r=0;d--){var h=c[d](a);h&&Object.keys(h).length&&(u=Mce(u,O4(l,h,a.changes.newLength),!0))}return u==a?a:Ql.create(l,a.changes,a.selection,u.effects,u.annotations,u.scrollIntoView)}(e?function(a){var l,c=a.startState,u=!0,d=Re(c.facet(Dce));try{for(d.s();!(l=d.n()).done;){var h=(0,l.value)(a);if(!1===h){u=!1;break}Array.isArray(h)&&(u=!0===u?h:wKe(u,h))}}catch(_){d.e(_)}finally{d.f()}if(!0!==u){var f,p;if(!1===u)p=a.changes.invertedDesc,f=rd.empty(c.doc.length);else{var m=a.changes.filter(u);f=m.changes,p=m.filtered.mapDesc(m.changes).invertedDesc}a=Ql.create(c,f,a.selection&&a.selection.map(p),hr.mapEffects(a.effects,p),a.annotations,a.scrollIntoView)}for(var g=c.facet(Tce),v=g.length-1;v>=0;v--){var y=g[v](a);a=y instanceof Ql?y:Array.isArray(y)&&1==y.length&&y[0]instanceof Ql?y[0]:Ice(c,S0(y),!1)}return a}(s):s)}Ql.time=fp.define(),Ql.userEvent=fp.define(),Ql.addToHistory=fp.define(),Ql.remote=fp.define();var CKe=[];function S0(t){return null==t?CKe:Array.isArray(t)?t:[t]}var j4,cs=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(cs||(cs={})),kKe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{j4=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}var No=function(){function t(n,e,i,r,o,s){ke(this,t),this.config=n,this.doc=e,this.selection=i,this.values=r,this.status=n.statusTemplate.slice(),this.computeSlot=o,s&&(s._state=this);for(var a=0;a1&&void 0!==arguments[1])||arguments[1],i=this.config.address[n.id];if(null!=i)return r_(this,i),hS(this,i);if(e)throw new RangeError("Field is not present in this state")}},{key:"update",value:function(){for(var n=arguments.length,e=new Array(n),i=0;i0&&void 0!==arguments[0]?arguments[0]:[];return n instanceof rd?n:rd.of(n,this.doc.length,this.facet(t.lineSeparator))}},{key:"toText",value:function(n){return fo.of(n.split(this.facet(t.lineSeparator)||D4))}},{key:"sliceDoc",value:function(){return this.doc.sliceString(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.doc.length,this.lineBreak)}},{key:"facet",value:function(n){var e=this.config.address[n.id];return null==e?n.default:(r_(this,e),hS(this,e))}},{key:"toJSON",value:function(n){var e={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(n)for(var i in n){var r=n[i];r instanceof Va&&null!=this.config.address[r.id]&&(e[i]=r.spec.toJSON(this.field(n[i]),this))}return e}},{key:"tabSize",get:function(){return this.facet(t.tabSize)}},{key:"lineBreak",get:function(){return this.facet(t.lineSeparator)||"\n"}},{key:"readOnly",get:function(){return this.facet(Ace)}},{key:"phrase",value:function(n){for(var e=arguments.length,i=new Array(e>1?e-1:0),r=1;ri.length?l:i[u-1]})),n}},{key:"languageDataAt",value:function(n,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,o=[],s=Re(this.facet(Cce));try{for(s.s();!(i=s.n()).done;){var a,c=Re((0,i.value)(this,e,r));try{for(c.s();!(a=c.n()).done;){var u=a.value;Object.prototype.hasOwnProperty.call(u,n)&&o.push(u[n])}}catch(d){c.e(d)}finally{c.f()}}}catch(d){s.e(d)}finally{s.f()}return o}},{key:"charCategorizer",value:function(n){return function SKe(t){return function(n){if(!/\S/.test(n))return cs.Space;if(function(i){if(j4)return j4.test(i);for(var r=0;r"\x80"&&(o.toUpperCase()!=o.toLowerCase()||kKe.test(o)))return!0}return!1}(n))return cs.Word;for(var e=0;e-1)return cs.Word;return cs.Other}}(this.languageDataAt("wordChars",n).join(""))}},{key:"wordAt",value:function(n){for(var e=this.doc.lineAt(n),i=e.text,r=e.from,o=e.length,s=this.charCategorizer(n),a=n-r,l=n-r;a>0;){var c=Pl(i,a,!1);if(s(i.slice(c,a))!=cs.Word)break;a=c}for(;l1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;if(!n||"string"!=typeof n.doc)throw new RangeError("Invalid JSON representation for EditorState");var r=[];if(i)for(var o in i)Object.prototype.hasOwnProperty.call(n,o)&&function(){var s=i[o],a=n[o];r.push(s.init(function(l){return s.spec.fromJSON(a,l)}))}();return t.create({doc:n.doc,selection:en.fromJSON(n.selection),extensions:e.extensions?r.concat([e.extensions]):r})}},{key:"create",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=wce.resolve(n.extensions||[],new Map),i=n.doc instanceof fo?n.doc:fo.of((n.doc||"").split(e.staticFacet(t.lineSeparator)||D4)),r=n.selection?n.selection instanceof en?n.selection:en.single(n.selection.anchor,n.selection.head):en.single(0);return yce(r,i.length),e.staticFacet(kce)||(r=r.asSingle()),new t(e,i,r,e.dynamicSlots.map(function(){return null}),function(o,s){return s.create(o)},null)}}]),t}();function su(t,n){var e,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={},o=Re(t);try{for(o.s();!(e=o.n()).done;)for(var s=e.value,a=0,l=Object.keys(s);a1&&void 0!==arguments[1]?arguments[1]:n,this)}}]),t}();Um.prototype.startSide=Um.prototype.endSide=0,Um.prototype.point=!1,Um.prototype.mapMode=Ll.TrackDel;var P4=function(){function t(n,e,i){ke(this,t),this.from=n,this.to=e,this.value=i}return Se(t,null,[{key:"create",value:function(n,e,i){return new t(n,e,i)}}]),t}();function L4(t,n){return t.from-n.from||t.value.startSide-n.value.startSide}var DKe=function(){function t(n,e,i,r){ke(this,t),this.from=n,this.to=e,this.value=i,this.maxPoint=r}return Se(t,[{key:"length",get:function(){return this.to[this.to.length-1]}},{key:"findIndex",value:function(n,e,i){for(var o=i?this.to:this.from,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=o.length;;){if(s==a)return s;var l=s+a>>1,c=o[l]-n||(i?this.value[l].endSide:this.value[l].startSide)-e;if(l==s)return c>=0?s:a;c>=0?a=l:s=l+1}}},{key:"between",value:function(n,e,i,r){for(var o=this.findIndex(e,-1e9,!0),s=this.findIndex(i,1e9,!1,o);o(f=e.mapPos(d,c.endSide))||h==f&&c.startSide>0&&c.endSide<=0)continue;(f-h||c.endSide-c.startSide)<0||(s<0&&(s=h),c.point&&(a=Math.max(a,f-h)),i.push(c),r.push(h-s),o.push(f-s))}return{mapped:i.length?new t(r,o,i,a):null,pos:s}}}]),t}(),Go=function(){function t(n,e,i,r){ke(this,t),this.chunkPos=n,this.chunk=e,this.nextLayer=i,this.maxPoint=r}return Se(t,[{key:"length",get:function(){var n=this.chunk.length-1;return n<0?0:Math.max(this.chunkEnd(n),this.nextLayer.length)}},{key:"size",get:function(){if(this.isEmpty)return 0;var n,e=this.nextLayer.size,i=Re(this.chunk);try{for(i.s();!(n=i.n()).done;)e+=n.value.value.length}catch(r){i.e(r)}finally{i.f()}return e}},{key:"chunkEnd",value:function(n){return this.chunkPos[n]+this.chunk[n].length}},{key:"update",value:function(n){var e=n.add,i=void 0===e?[]:e,r=n.sort,s=n.filterFrom,a=void 0===s?0:s,l=n.filterTo,c=void 0===l?this.length:l,u=n.filter;if(0==i.length&&!u)return this;if(void 0!==r&&r&&(i=i.slice().sort(L4)),this.isEmpty)return i.length?t.of(i):this;for(var d=new Nce(this,null,-1).goto(0),h=0,f=[],p=new Gm;d.value||h=0){var m=i[h++];p.addInner(m.from,m.to,m.value)||f.push(m)}else 1==d.rangeIndex&&d.chunkIndexthis.chunkEnd(d.chunkIndex)||cd.to||c=o&&n<=o+s.length&&!1===s.between(o,n-o,e-o,i))return}this.nextLayer.between(n,e,i)}}},{key:"iter",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return R4.from([this]).goto(n)}},{key:"isEmpty",get:function(){return this.nextLayer==this}}],[{key:"create",value:function(n,e,i,r){return new t(n,e,i,r)}},{key:"iter",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return R4.from(n).goto(e)}},{key:"compare",value:function(n,e,i,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,s=n.filter(function(d){return d.maxPoint>0||!d.isEmpty&&d.maxPoint>=o}),a=e.filter(function(d){return d.maxPoint>0||!d.isEmpty&&d.maxPoint>=o}),l=Fce(s,a,i),c=new o_(s,l,o),u=new o_(a,l,o);i.iterGaps(function(d,h,f){return Oce(c,d,u,h,f,r)}),i.empty&&0==i.length&&Oce(c,0,u,0,0,r)}},{key:"eq",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0;null==r&&(r=999999999);var o=n.filter(function(u){return!u.isEmpty&&e.indexOf(u)<0}),s=e.filter(function(u){return!u.isEmpty&&n.indexOf(u)<0});if(o.length!=s.length)return!1;if(!o.length)return!0;for(var a=Fce(o,s),l=new o_(o,a,0).goto(i),c=new o_(s,a,0).goto(i);;){if(l.to!=c.to||!B4(l.active,c.active)||l.point&&(!c.point||!l.point.eq(c.point)))return!1;if(l.to>r)return!0;l.next(),c.next()}}},{key:"spans",value:function(n,e,i,r){for(var s=new o_(n,null,arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1).goto(e),a=e,l=s.openStart;;){var c=Math.min(s.to,i);if(s.point){var u=s.activeForPoint(s.to),d=s.pointFroma&&(r.span(a,c,s.active,l),l=s.openEnd(c));if(s.to>i)return l+(s.point&&s.to>i?1:0);a=s.to,s.next()}}},{key:"of",value:function(n){var e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=new Gm,o=Re(n instanceof P4?[n]:i?function TKe(t){if(t.length>1)for(var n=t[0],e=1;e0)return t.slice().sort(L4);n=i}return t}(n):n);try{for(o.s();!(e=o.n()).done;){var s=e.value;r.add(s.from,s.to,s.value)}}catch(a){o.e(a)}finally{o.f()}return r.finish()}}]),t}();Go.empty=new Go([],[],null,-1),Go.empty.nextLayer=Go.empty;var Gm=function(){function t(){ke(this,t),this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}return Se(t,[{key:"finishChunk",value:function(n){this.chunks.push(new DKe(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,n&&(this.from=[],this.to=[],this.value=[])}},{key:"add",value:function(n,e,i){this.addInner(n,e,i)||(this.nextLayer||(this.nextLayer=new t)).add(n,e,i)}},{key:"addInner",value:function(n,e,i){var r=n-this.lastTo||i.startSide-this.last.endSide;if(r<=0&&(n-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0||(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=n),this.from.push(n-this.chunkStart),this.to.push(e-this.chunkStart),this.last=i,this.lastFrom=n,this.lastTo=e,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,e-n)),0))}},{key:"addChunk",value:function(n,e){if((n-this.lastTo||e.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,e.maxPoint),this.chunks.push(e),this.chunkPos.push(n);var i=e.value.length-1;return this.last=e.value[i],this.lastFrom=e.from[i]+n,this.lastTo=e.to[i]+n,!0}},{key:"finish",value:function(){return this.finishInner(Go.empty)}},{key:"finishInner",value:function(n){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return n;var e=Go.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(n):n,this.setMaxPoint);return this.from=null,e}}]),t}();function Fce(t,n,e){var i,r=new Map,o=Re(t);try{for(o.s();!(i=o.n()).done;)for(var s=i.value,a=0;a3&&void 0!==arguments[3]?arguments[3]:0;ke(this,t),this.layer=n,this.skip=e,this.minPoint=i,this.rank=r}return Se(t,[{key:"startSide",get:function(){return this.value?this.value.startSide:0}},{key:"endSide",get:function(){return this.value?this.value.endSide:0}},{key:"goto",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.chunkIndex=this.rangeIndex=0,this.gotoInner(n,e,!1),this}},{key:"gotoInner",value:function(n,e,i){for(;this.chunkIndex=this.minPoint)break}}},{key:"setRangeIndex",value:function(n){if(n==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex1&&void 0!==arguments[1]?arguments[1]:-1e9,r=Re(this.heap);try{for(r.s();!(e=r.n()).done;)e.value.goto(n,i)}catch(a){r.e(a)}finally{r.f()}for(var s=this.heap.length>>1;s>=0;s--)$4(this.heap,s);return this.next(),this}},{key:"forward",value:function(n,e){var i,r=Re(this.heap);try{for(r.s();!(i=r.n()).done;)i.value.forward(n,e)}catch(s){r.e(s)}finally{r.f()}for(var o=this.heap.length>>1;o>=0;o--)$4(this.heap,o);(this.to-n||this.value.endSide-e)<0&&this.next()}},{key:"next",value:function(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{var n=this.heap[0];this.from=n.from,this.to=n.to,this.value=n.value,this.rank=n.rank,n.value&&n.next(),$4(this.heap,0)}}}],[{key:"from",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=[],o=0;o=i&&r.push(new Nce(s,e,i,o));return 1==r.length?r[0]:new t(r)}}]),t}();function $4(t,n){for(var e=t[n];;){var i=1+(n<<1);if(i>=t.length)break;var r=t[i];if(i+1=0&&(r=t[i+1],i++),e.compare(r)<0)break;t[i]=e,t[n]=r,n=i}}var o_=function(){function t(n,e,i){ke(this,t),this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=R4.from(n,e,i)}return Se(t,[{key:"goto",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.cursor.goto(n,e),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=n,this.endSide=e,this.openStart=-1,this.next(),this}},{key:"forward",value:function(n,e){for(;this.minActive>-1&&(this.activeTo[this.minActive]-n||this.active[this.minActive].endSide-e)<0;)this.removeActive(this.minActive);this.cursor.forward(n,e)}},{key:"removeActive",value:function(n){fS(this.active,n),fS(this.activeTo,n),fS(this.activeRank,n),this.minActive=jce(this.active,this.activeTo)}},{key:"addActive",value:function(n){for(var e=0,i=this.cursor,r=i.value,o=i.to,s=i.rank;e-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>n){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),i&&fS(i,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>n){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}var o=this.cursor.value;if(o.point){if(!(e&&this.cursor.to==this.to&&this.cursor.from=0&&i[s]=0&&!(this.activeRank[i]n||this.activeTo[i]==n&&this.active[i].endSide>=this.point.endSide)&&e.push(this.active[i]);return e.reverse()}},{key:"openEnd",value:function(n){for(var e=0,i=this.activeTo.length-1;i>=0&&this.activeTo[i]>n;i--)e++;return e}}]),t}();function Oce(t,n,e,i,r,o){t.goto(n),e.goto(i);for(var s=i+r,a=i,l=i-n;;){var c=t.to+l-e.to||t.endSide-e.endSide,u=c<0?t.to+l:e.to,d=Math.min(u,s);if(t.point||e.point?t.point&&e.point&&(t.point==e.point||t.point.eq(e.point))&&B4(t.activeForPoint(t.to+l),e.activeForPoint(e.to))||o.comparePoint(a,d,t.point,e.point):d>a&&!B4(t.active,e.active)&&o.compareRange(a,d,t.active,e.active),u>s)break;a=u,c<=0&&t.next(),c>=0&&e.next()}}function B4(t,n){if(t.length!=n.length)return!1;for(var e=0;e=n;i--)t[i+1]=t[i];t[n]=e}function jce(t,n){for(var e=-1,i=1e9,r=0;r2&&void 0!==arguments[2]?arguments[2]:t.length,i=0,r=0;r=n)return r;if(r==t.length)break;o+=9==t.charCodeAt(r)?e-o%e:1,r=Pl(t,r)}return!0===i?-1:t.length}for(var Pce=typeof Symbol>"u"?"__\u037c":Symbol.for("\u037c"),H4=typeof Symbol>"u"?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),Lce=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{},pp=function(){function t(n,e){ke(this,t),this.rules=[];var i=(e||{}).finish;function r(a){return/^@/.test(a)?[a]:a.split(/,\s*/)}function o(a,l,c,u){var d=[],h=/^@(\w+)\b/.exec(a[0]),f=h&&"keyframes"==h[1];if(h&&null==l)return c.push(a[0]+";");for(var p in l){var m=l[p];if(/&/.test(p))o(p.split(/,\s*/).map(function(g){return a.map(function(v){return g.replace(/&/,v)})}).reduce(function(g,v){return g.concat(v)}),m,c);else if(m&&"object"==bn(m)){if(!h)throw new RangeError("The value of a property ("+p+") should be a primitive value.");o(r(p),m,d,f)}else null!=m&&d.push(p.replace(/_.*/,"").replace(/[A-Z]/g,function(g){return"-"+g.toLowerCase()})+": "+m+";")}(d.length||f)&&c.push((!i||h||u?a:a.map(i)).join(", ")+" {"+d.join(" ")+"}")}for(var s in n)o(r(s),n[s],this.rules)}return Se(t,[{key:"getRules",value:function(){return this.rules.join("\n")}}],[{key:"newName",value:function(){var n=Lce[Pce]||1;return Lce[Pce]=n+1,"\u037c"+n.toString(36)}},{key:"mount",value:function(n,e){(n[H4]||new EKe(n)).mount(Array.isArray(e)?e:[e])}}]),t}(),mS=null,EKe=function(){function t(n){if(ke(this,t),!n.head&&n.adoptedStyleSheets&&typeof CSSStyleSheet<"u"){if(mS)return n.adoptedStyleSheets=[mS.sheet].concat(n.adoptedStyleSheets),n[H4]=mS;this.sheet=new CSSStyleSheet,n.adoptedStyleSheets=[this.sheet].concat(n.adoptedStyleSheets),mS=this}else{this.styleTag=(n.ownerDocument||n).createElement("style");var e=n.head||n;e.insertBefore(this.styleTag,e.firstChild)}this.modules=[],n[H4]=this}return Se(t,[{key:"mount",value:function(n){for(var e=this.sheet,i=0,r=0,o=0;o-1&&(this.modules.splice(a,1),r--,a=-1),-1==a){if(this.modules.splice(r++,0,s),e)for(var l=0;l",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Rce=typeof navigator<"u"&&/Chrome\/(\d+)/.exec(navigator.userAgent),AKe=typeof navigator<"u"&&/Mac/.test(navigator.platform),MKe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),IKe=AKe||Rce&&+Rce[1]<57,Ha=0;Ha<10;Ha++)mp[48+Ha]=mp[96+Ha]=String(Ha);for(Ha=1;Ha<=24;Ha++)mp[Ha+111]="F"+Ha;for(Ha=65;Ha<=90;Ha++)mp[Ha]=String.fromCharCode(Ha+32),a_[Ha]=String.fromCharCode(Ha);for(var z4 in mp)a_.hasOwnProperty(z4)||(a_[z4]=mp[z4]);function gS(t){return(11==t.nodeType?t.getSelection?t:t.ownerDocument:t).getSelection()}function D0(t,n){return!!n&&(t==n||t.contains(1!=n.nodeType?n.parentNode:n))}function vS(t,n){if(!n.anchorNode)return!1;try{return D0(t,n.anchorNode)}catch{return!1}}function l_(t){return 3==t.nodeType?E0(t,0,t.nodeValue.length).getClientRects():1==t.nodeType?t.getClientRects():[]}function yS(t,n,e,i){return!!e&&($ce(t,n,e,i,-1)||$ce(t,n,e,i,1))}function bS(t){for(var n=0;;n++)if(!(t=t.previousSibling))return n}function $ce(t,n,e,i,r){for(;;){if(t==e&&n==i)return!0;if(n==(r<0?0:c_(t))){if("DIV"==t.nodeName)return!1;var o=t.parentNode;if(!o||1!=o.nodeType)return!1;n=bS(t)+(r<0?0:1),t=o}else{if(1!=t.nodeType||1==(t=t.childNodes[n+(r<0?-1:0)]).nodeType&&"false"==t.contentEditable)return!1;n=r<0?c_(t):0}}}function c_(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}var Bce={left:0,right:0,top:0,bottom:0};function U4(t,n){var e=n?t.left:t.right;return{left:e,right:e,top:t.top,bottom:t.bottom}}function FKe(t){return{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}var Vce,NKe=function(){function t(){ke(this,t),this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}return Se(t,[{key:"eq",value:function(n){return this.anchorNode==n.anchorNode&&this.anchorOffset==n.anchorOffset&&this.focusNode==n.focusNode&&this.focusOffset==n.focusOffset}},{key:"setRange",value:function(n){this.set(n.anchorNode,n.anchorOffset,n.focusNode,n.focusOffset)}},{key:"set",value:function(n,e,i,r){this.anchorNode=n,this.anchorOffset=e,this.focusNode=i,this.focusOffset=r}}]),t}(),T0=null;function Hce(t){if(t.setActive)return t.setActive();if(T0)return t.focus(T0);for(var n=[],e=t;e&&(n.push(e,e.scrollTop,e.scrollLeft),e!=e.ownerDocument);e=e.parentNode);if(t.focus(null==T0?{get preventScroll(){return T0={preventScroll:!0},!0}}:void 0),!T0){T0=!1;for(var i=0;i2&&void 0!==arguments[2]?arguments[2]:n,i=Vce||(Vce=document.createRange());return i.setEnd(t,e),i.setStart(t,n),i}function A0(t,n,e){var i={key:n,code:n,keyCode:e,which:e,cancelable:!0},r=new KeyboardEvent("keydown",i);r.synthetic=!0,t.dispatchEvent(r);var o=new KeyboardEvent("keyup",i);return o.synthetic=!0,t.dispatchEvent(o),r.defaultPrevented||o.defaultPrevented}function zce(t){for(;t.attributes.length;)t.removeAttributeNode(t.attributes[0])}var Dc=function(){function t(n,e){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];ke(this,t),this.node=n,this.offset=e,this.precise=i}return Se(t,null,[{key:"before",value:function(n,e){return new t(n.parentNode,bS(n),e)}},{key:"after",value:function(n,e){return new t(n.parentNode,bS(n)+1,e)}}]),t}(),G4=[],ws=function(){function t(){ke(this,t),this.parent=null,this.dom=null,this.dirty=2}return Se(t,[{key:"overrideDOMText",get:function(){return null}},{key:"posAtStart",get:function(){return this.parent?this.parent.posBefore(this):0}},{key:"posAtEnd",get:function(){return this.posAtStart+this.length}},{key:"posBefore",value:function(n){var e,i=this.posAtStart,r=Re(this.children);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(o==n)return i;i+=o.length+o.breakAfter}}catch(s){r.e(s)}finally{r.f()}throw new RangeError("Invalid child in posBefore")}},{key:"posAfter",value:function(n){return this.posBefore(n)+n.length}},{key:"coordsAt",value:function(n,e){return null}},{key:"sync",value:function(n,e){if(2&this.dirty){var i,r,o=this.dom,s=null,a=Re(this.children);try{for(a.s();!(r=a.n()).done;){var l=r.value;if(l.dirty){if(!l.dom&&(i=s?s.nextSibling:o.firstChild)){var c=t.get(i);(!c||!c.parent&&c.canReuseDOM(l))&&l.reuseDOM(i)}l.sync(n,e),l.dirty=0}if(i=s?s.nextSibling:o.firstChild,e&&!e.written&&e.node==o&&i!=l.dom&&(e.written=!0),l.dom.parentNode==o)for(;i&&i!=l.dom;)i=Uce(i);else o.insertBefore(l.dom,i);s=l.dom}}catch(f){a.e(f)}finally{a.f()}for((i=s?s.nextSibling:o.firstChild)&&e&&e.node==o&&(e.written=!0);i;)i=Uce(i)}else if(1&this.dirty){var u,d=Re(this.children);try{for(d.s();!(u=d.n()).done;){var h=u.value;h.dirty&&(h.sync(n,e),h.dirty=0)}}catch(f){d.e(f)}finally{d.f()}}}},{key:"reuseDOM",value:function(n){}},{key:"localPosFromDOM",value:function(n,e){var i;if(n==this.dom)i=this.dom.childNodes[e];else{for(var r=0==c_(n)?0:0==e?-1:1;;){var o=n.parentNode;if(o==this.dom)break;0==r&&o.firstChild!=o.lastChild&&(r=n==o.firstChild?-1:1),n=o}i=r<0?n:n.nextSibling}if(i==this.dom.firstChild)return 0;for(;i&&!t.get(i);)i=i.nextSibling;if(!i)return this.length;for(var s=0,a=0;;s++){var l=this.children[s];if(l.dom==i)return a;a+=l.length+l.breakAfter}}},{key:"domBoundsAround",value:function(n,e){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=-1,o=-1,s=-1,a=-1,l=0,c=i,u=i;le)return d.domBoundsAround(n,e,c);if(h>=n&&-1==r&&(r=l,o=c),c>e&&d.dom.parentNode==this.dom){s=l,a=u;break}u=h,c=h+d.breakAfter}return{from:o,to:a<0?i+this.length:a,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:s=0?this.children[s].dom:null}}},{key:"markDirty",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.dirty|=2,this.markParentsDirty(n)}},{key:"markParentsDirty",value:function(n){for(var e=this.parent;e;e=e.parent){if(n&&(e.dirty|=2),1&e.dirty)return;e.dirty|=1,n=!1}}},{key:"setParent",value:function(n){this.parent!=n&&(this.parent=n,this.dirty&&this.markParentsDirty(!0))}},{key:"setDOM",value:function(n){this.dom&&(this.dom.cmView=null),this.dom=n,n.cmView=this}},{key:"rootView",get:function(){for(var n=this;;){var e=n.parent;if(!e)return n;n=e}}},{key:"replaceChildren",value:function(n,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:G4;this.markDirty();for(var o=n;o0&&void 0!==arguments[0]?arguments[0]:this.length,this.children.length)}},{key:"childPos",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.childCursor().findPos(n,e)}},{key:"toString",value:function(){var n=this.constructor.name.replace("View","");return n+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==n?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}},{key:"isEditable",get:function(){return!0}},{key:"isWidget",get:function(){return!1}},{key:"merge",value:function(n,e,i,r,o,s){return!1}},{key:"become",value:function(n){return!1}},{key:"canReuseDOM",value:function(n){return n.constructor==this.constructor}},{key:"getSide",value:function(){return 0}},{key:"destroy",value:function(){this.parent=null}}],[{key:"get",value:function(n){return n.cmView}}]),t}();function Uce(t){var n=t.nextSibling;return t.parentNode.removeChild(t),n}ws.prototype.breakAfter=0;var Gce=function(){function t(n,e,i){ke(this,t),this.children=n,this.pos=e,this.i=i,this.off=0}return Se(t,[{key:"findPos",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;;){if(n>this.pos||n==this.pos&&(e>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=n-this.pos,this;var i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}]),t}();function Wce(t,n,e,i,r,o,s,a,l){var c=t.children,u=c.length?c[n]:null,d=o.length?o[o.length-1]:null,h=d?d.breakAfter:s;if(!(n==i&&u&&!s&&!h&&o.length<2&&u.merge(e,r,o.length?d:null,0==e,a,l))){if(i0&&(!s&&o.length&&u.merge(e,u.length,o[0],!1,a,0)?u.breakAfter=o.shift().breakAfter:(e2),Zn={mac:Qce||/Mac/.test(Tc.platform),windows:/Win/.test(Tc.platform),linux:/Linux|X11/.test(Tc.platform),ie:_S,ie_version:Xce?W4.documentMode||6:X4?+X4[1]:q4?+q4[1]:0,gecko:Yce,gecko_version:Yce?+(/Firefox\/(\d+)/.exec(Tc.userAgent)||[0,0])[1]:0,chrome:!!Y4,chrome_version:Y4?+Y4[1]:0,ios:Qce,android:/Android\b/.test(Tc.userAgent),webkit:Jce,safari:Kce,webkit_version:Jce?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=W4.documentElement.style.tabSize?"tab-size":"-moz-tab-size"},u_=function(t){wt(e,ws);var n=Ct(e);function e(i){var r;return ke(this,e),(r=n.call(this)).text=i,r}return Se(e,[{key:"length",get:function(){return this.text.length}},{key:"createDOM",value:function(i){this.setDOM(i||document.createTextNode(this.text))}},{key:"sync",value:function(i,r){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(r&&r.node==this.dom&&(r.written=!0),this.dom.nodeValue=this.text)}},{key:"reuseDOM",value:function(i){3==i.nodeType&&this.createDOM(i)}},{key:"merge",value:function(i,r,o){return(!o||o instanceof e&&!(this.length-(r-i)+o.length>256))&&(this.text=this.text.slice(0,i)+(o?o.text:"")+this.text.slice(r),this.markDirty(),!0)}},{key:"split",value:function(i){var r=new e(this.text.slice(i));return this.text=this.text.slice(0,i),this.markDirty(),r}},{key:"localPosFromDOM",value:function(i,r){return i==this.dom?r:r?this.text.length:0}},{key:"domAtPos",value:function(i){return new Dc(this.dom,i)}},{key:"domBoundsAround",value:function(i,r,o){return{from:o,to:o+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}},{key:"coordsAt",value:function(i,r){return J4(this.dom,i,r)}}]),e}(),Wm=function(t){wt(e,ws);var n=Ct(e);function e(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;ke(this,e),(r=n.call(this)).mark=i,r.children=o,r.length=s;var a,l=Re(o);try{for(l.s();!(a=l.n()).done;)a.value.setParent(An(r))}catch(u){l.e(u)}finally{l.f()}return r}return Se(e,[{key:"setAttrs",value:function(i){if(zce(i),this.mark.class&&(i.className=this.mark.class),this.mark.attrs)for(var r in this.mark.attrs)i.setAttribute(r,this.mark.attrs[r]);return i}},{key:"reuseDOM",value:function(i){i.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(i),this.dirty|=6)}},{key:"sync",value:function(i,r){this.dom?4&this.dirty&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),pr(qi(e.prototype),"sync",this).call(this,i,r)}},{key:"merge",value:function(i,r,o,s,a,l){return!(o&&(!(o instanceof e&&o.mark.eq(this.mark))||i&&a<=0||ri&&o.push(s=i&&(a=l),s=d,l++}}catch(f){c.e(f)}finally{c.f()}var h=this.length-i;return this.length=i,a>-1&&(this.children.length=a,this.markDirty()),new e(this.mark,o,h)}},{key:"domAtPos",value:function(i){return tue(this,i)}},{key:"coordsAt",value:function(i,r){return iue(this,i,r)}}]),e}();function J4(t,n,e){var i=t.nodeValue.length;n>i&&(n=i);var r=n,o=n,s=0;0==n&&e<0||n==i&&e>=0?Zn.chrome||Zn.gecko||(n?(r--,s=1):o=0)?0:a.length-1];return Zn.safari&&!s&&0==l.width&&(l=Array.prototype.find.call(a,function(c){return c.width})||l),s?U4(l,s<0):l||null}var K4=function(t){wt(e,ws);var n=Ct(e);function e(i,r,o){var s;return ke(this,e),(s=n.call(this)).widget=i,s.length=r,s.side=o,s.prevWidget=null,s}return Se(e,[{key:"split",value:function(i){var r=e.create(this.widget,this.length-i,this.side);return this.length-=i,r}},{key:"sync",value:function(i){this.dom&&this.widget.updateDOM(this.dom,i)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(i)),this.dom.contentEditable="false")}},{key:"getSide",value:function(){return this.side}},{key:"merge",value:function(i,r,o,s,a,l){return!(o&&(!(o instanceof e&&this.widget.compare(o.widget))||i>0&&a<=0||r0?o.length-1:0;s=o[a],!(i>0?0==a:a==o.length-1||s.top0?-1:1);return this.length?s:U4(s,this.side>0)}},{key:"isEditable",get:function(){return!1}},{key:"isWidget",get:function(){return!0}},{key:"destroy",value:function(){pr(qi(e.prototype),"destroy",this).call(this),this.dom&&this.widget.destroy(this.dom)}}],[{key:"create",value:function(i,r,o){return new(i.customView||e)(i,r,o)}}]),e}(),Zce=function(t){wt(e,K4);var n=Ct(e);function e(){return ke(this,e),n.apply(this,arguments)}return Se(e,[{key:"domAtPos",value:function(i){var r=this.widget,o=r.topView,s=r.text;return o?Q4(i,0,o,s,function(a,l){return a.domAtPos(l)},function(a){return new Dc(s,Math.min(a,s.nodeValue.length))}):new Dc(s,Math.min(i,s.nodeValue.length))}},{key:"sync",value:function(){this.setDOM(this.widget.toDOM())}},{key:"localPosFromDOM",value:function(i,r){var o=this.widget,s=o.topView;return s?eue(i,r,s,o.text):Math.min(r,this.length)}},{key:"ignoreMutation",value:function(){return!1}},{key:"overrideDOMText",get:function(){return null}},{key:"coordsAt",value:function(i,r){var o=this.widget,s=o.topView,a=o.text;return s?Q4(i,r,s,a,function(l,c,u){return l.coordsAt(c,u)},function(l,c){return J4(a,l,c)}):J4(a,i,r)}},{key:"destroy",value:function(){var i;pr(qi(e.prototype),"destroy",this).call(this),null===(i=this.widget.topView)||void 0===i||i.destroy()}},{key:"isEditable",get:function(){return!0}},{key:"canReuseDOM",value:function(){return!0}}]),e}();function Q4(t,n,e,i,r,o){if(e instanceof Wm){for(var s=e.dom.firstChild;s;s=s.nextSibling){var a=ws.get(s);if(!a)return o(t,n);var l=D0(s,i),c=a.length+(l?i.nodeValue.length:0);if(t=0;)if(a<0?c>0:c0?-1:1);return o&&o.topr.top?{left:r.left,right:r.right,top:o.top,bottom:o.bottom}:r}},{key:"overrideDOMText",get:function(){return fo.empty}}]),e}();function tue(t,n){for(var e=t.dom,i=t.children,r=0,o=0;ro&&n0;l--){var c=i[l-1];if(c.dom.parentNode==e)return c.domAtPos(c.length)}for(var u=r;u0&&n instanceof Wm&&r.length&&(i=r[r.length-1])instanceof Wm&&i.mark.eq(n.mark)?nue(i,n.children[0],e-1):(r.push(n),n.setParent(t)),t.length+=n.length}function iue(t,n,e){var i=null,r=-1,o=null,s=-1;!function l(c,u){for(var d=0,h=0;d=u&&(f.children.length?l(f,u-h):!o&&(p>u||h==p&&f.getSide()>0)?(o=f,s=u-h):(h-1}}],[{key:"mark",value:function(i){return new rue(i)}},{key:"widget",value:function(i){var r=i.side||0,o=!!i.block;return new d_(i,r+=o?r>0?3e8:-4e8:r>0?1e8:-1e8,r,o,i.widget||null,!1)}},{key:"replace",value:function(i){var r,o,s=!!i.block;if(i.isBlockGap)r=-5e8,o=4e8;else{var a=oue(i,s);r=(a.start?s?-3e8:-1:5e8)-1,o=1+(a.end?s?2e8:1:-6e8)}return new d_(i,r,o,s,i.widget||null,!0)}},{key:"line",value:function(i){return new ij(i)}},{key:"set",value:function(i){return Go.of(i,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}}]),e}();yi.none=Go.empty;var rue=function(t){wt(e,yi);var n=Ct(e);function e(i){var r;ke(this,e);var o=oue(i);return(r=n.call(this,o.start?-1:5e8,o.end?1:-6e8,null,i)).tagName=i.tagName||"span",r.class=i.class||"",r.attrs=i.attributes||null,r}return Se(e,[{key:"eq",value:function(i){return this==i||i instanceof e&&this.tagName==i.tagName&&this.class==i.class&&tj(this.attrs,i.attrs)}},{key:"range",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(i>=r)throw new RangeError("Mark decorations may not be empty");return pr(qi(e.prototype),"range",this).call(this,i,r)}}]),e}();rue.prototype.point=!1;var ij=function(t){wt(e,yi);var n=Ct(e);function e(i){return ke(this,e),n.call(this,-2e8,-2e8,null,i)}return Se(e,[{key:"eq",value:function(i){return i instanceof e&&this.spec.class==i.spec.class&&tj(this.spec.attributes,i.spec.attributes)}},{key:"range",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(r!=i)throw new RangeError("Line decoration ranges must be zero-length");return pr(qi(e.prototype),"range",this).call(this,i,r)}}]),e}();ij.prototype.mapMode=Ll.TrackBefore,ij.prototype.point=!0;var d_=function(t){wt(e,yi);var n=Ct(e);function e(i,r,o,s,a,l){var c;return ke(this,e),(c=n.call(this,r,o,a,i)).block=s,c.isReplace=l,c.mapMode=s?r<=0?Ll.TrackBefore:Ll.TrackAfter:Ll.TrackDel,c}return Se(e,[{key:"type",get:function(){return this.startSide=5}},{key:"eq",value:function(i){return i instanceof e&&((r=this.widget)==(o=i.widget)||!!(r&&o&&r.compare(o)))&&this.block==i.block&&this.startSide==i.startSide&&this.endSide==i.endSide;var r,o}},{key:"range",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(this.isReplace&&(i>r||i==r&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&r!=i)throw new RangeError("Widget decorations can only have zero-length ranges");return pr(qi(e.prototype),"range",this).call(this,i,r)}}]),e}();function oue(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=t.inclusiveStart,i=t.inclusiveEnd;return null==e&&(e=t.inclusive),null==i&&(i=t.inclusive),{start:e??n,end:i??n}}function rj(t,n,e){var r=e.length-1;r>=0&&e[r]+(arguments.length>3&&void 0!==arguments[3]?arguments[3]:0)>=t?e[r]=Math.max(e[r],n):e.push(t,n)}d_.prototype.point=!0;var od=function(t){wt(e,ws);var n=Ct(e);function e(){var i;return ke(this,e),(i=n.apply(this,arguments)).children=[],i.length=0,i.prevAttrs=void 0,i.attrs=null,i.breakAfter=0,i}return Se(e,[{key:"merge",value:function(i,r,o,s,a,l){if(o){if(!(o instanceof e))return!1;this.dom||o.transferDOM(this)}return s&&this.setDeco(o?o.attrs:null),qce(this,i,r,o?o.children:[],a,l),!0}},{key:"split",value:function(i){var r=new e;if(r.breakAfter=this.breakAfter,0==this.length)return r;var o=this.childPos(i),s=o.i,a=o.off;a&&(r.append(this.children[s].split(a),0),this.children[s].merge(a,this.children[s].length,null,!1,0,0),s++);for(var l=s;l0&&0==this.children[s-1].length;)this.children[--s].destroy();return this.children.length=s,this.markDirty(),this.length=i,r}},{key:"transferDOM",value:function(i){this.dom&&(this.markDirty(),i.setDOM(this.dom),i.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}},{key:"setDeco",value:function(i){tj(this.attrs,i)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=i)}},{key:"append",value:function(i,r){nue(this,i,r)}},{key:"addLineDeco",value:function(i){var r=i.spec.attributes,o=i.spec.class;r&&(this.attrs=ej(r,this.attrs||{})),o&&(this.attrs=ej({class:o},this.attrs||{}))}},{key:"domAtPos",value:function(i){return tue(this,i)}},{key:"reuseDOM",value:function(i){"DIV"==i.nodeName&&(this.setDOM(i),this.dirty|=6)}},{key:"sync",value:function(i,r){var o;this.dom?4&this.dirty&&(zce(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(nj(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),pr(qi(e.prototype),"sync",this).call(this,i,r);for(var s=this.dom.lastChild;s&&ws.get(s)instanceof Wm;)s=s.lastChild;if(!(s&&this.length&&("BR"==s.nodeName||0!=(null===(o=ws.get(s))||void 0===o?void 0:o.isEditable)||Zn.ios&&this.children.some(function(l){return l instanceof u_})))){var a=document.createElement("BR");a.cmIgnore=!0,this.dom.appendChild(a)}}},{key:"measureTextSize",value:function(){if(0==this.children.length||this.length>20)return null;var i,r=0,o=Re(this.children);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(!(s instanceof u_)||/[^ -~]/.test(s.text))return null;var a=l_(s.dom);if(1!=a.length)return null;r+=a[0].width}}catch(l){o.e(l)}finally{o.f()}return r?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:r/this.length}:null}},{key:"coordsAt",value:function(i,r){return iue(this,i,r)}},{key:"become",value:function(i){return!1}},{key:"type",get:function(){return _o.Text}}],[{key:"find",value:function(i,r){for(var o=0,s=0;o=r){if(a instanceof e)return a;if(l>r)break}s=l+a.breakAfter}return null}}]),e}(),oj=function(t){wt(e,ws);var n=Ct(e);function e(i,r,o){var s;return ke(this,e),(s=n.call(this)).widget=i,s.length=r,s.type=o,s.breakAfter=0,s.prevWidget=null,s}return Se(e,[{key:"merge",value:function(i,r,o,s,a,l){return!(o&&(!(o instanceof e&&this.widget.compare(o.widget))||i>0&&a<=0||r0&&void 0!==arguments[0]?arguments[0]:this.bufferMarks;this.pendingBuffer&&(this.curLine.append(xS(new Z4(-1),n),n.length),this.pendingBuffer=0)}},{key:"addBlockWidget",value:function(n){this.flushBuffer(),this.curLine=null,this.content.push(n)}},{key:"finish",value:function(n){this.pendingBuffer&&n<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||this.getLine()}},{key:"buildText",value:function(n,e,i){for(;n>0;){if(this.textOff==this.text.length){var r=this.cursor.next(this.skip),o=r.value,s=r.lineBreak,a=r.done;if(this.skip=0,a)throw new Error("Ran out of text content when drawing inline views");if(s){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,n--;continue}this.text=o,this.textOff=0}var l=Math.min(this.text.length-this.textOff,n,512);this.flushBuffer(e.slice(e.length-i)),this.getLine().append(xS(new u_(this.text.slice(this.textOff,this.textOff+l)),e),i),this.atCursorPos=!0,this.textOff+=l,n-=l,i=0}}},{key:"span",value:function(n,e,i,r){this.buildText(e-n,i,r),this.pos=e,this.openStart<0&&(this.openStart=r)}},{key:"point",value:function(n,e,i,r,o,s){if(this.disallowBlockEffectsFor[s]&&i instanceof d_){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(e>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}var a=e-n;if(i instanceof d_)if(i.block){var l=i.type;l!=_o.WidgetAfter||this.posCovered()||this.getLine(),this.addBlockWidget(new oj(i.widget||new sue("div"),a,l))}else{var c=K4.create(i.widget||new sue("span"),a,a?0:i.startSide),u=this.atCursorPos&&!c.isEditable&&o<=r.length&&(n0),d=!c.isEditable&&(nr.length||i.startSide<=0),h=this.getLine();2!=this.pendingBuffer||u||(this.pendingBuffer=0),this.flushBuffer(r),u&&(h.append(xS(new Z4(1),r),o),o=r.length+Math.max(0,o-r.length)),h.append(xS(c,r),o),this.atCursorPos=d,this.pendingBuffer=d?nr.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=e),this.openStart<0&&(this.openStart=o)}}],[{key:"build",value:function(n,e,i,r,o){var s=new t(n,e,i,o);return s.openEnd=Go.spans(r,e,i,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}}]),t}();function xS(t,n){var e,i=Re(n);try{for(i.s();!(e=i.n()).done;)t=new Wm(e.value,[t],t.length)}catch(o){i.e(o)}finally{i.f()}return t}var sue=function(t){wt(e,gp);var n=Ct(e);function e(i){var r;return ke(this,e),(r=n.call(this)).tag=i,r}return Se(e,[{key:"eq",value:function(i){return i.tag==this.tag}},{key:"toDOM",value:function(){return document.createElement(this.tag)}},{key:"updateDOM",value:function(i){return i.nodeName.toLowerCase()==this.tag}}]),e}(),aue=Qn.define(),lue=Qn.define(),cue=Qn.define(),uue=Qn.define(),sj=Qn.define(),due=Qn.define(),hue=Qn.define(),fue=Qn.define({combine:function(t){return t.some(function(n){return n})}}),pue=Qn.define({combine:function(t){return t.some(function(n){return n})}}),mue=function(){function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"nearest",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"nearest",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:5;ke(this,t),this.range=n,this.y=e,this.x=i,this.yMargin=r,this.xMargin=o}return Se(t,[{key:"map",value:function(n){return n.empty?this:new t(this.range.map(n),this.y,this.x,this.yMargin,this.xMargin)}}]),t}(),gue=hr.define({map:function(t,n){return t.map(n)}});function Ec(t,n,e){var i=t.facet(uue);i.length?i[0](n):window.onerror?window.onerror(String(n),e,void 0,void 0,n):e?console.error(e+":",n):console.error(n)}var wS=Qn.define({combine:function(t){return!t.length||t[0]}}),PKe=0,h_=Qn.define(),ka=function(){function t(n,e,i,r){ke(this,t),this.id=n,this.create=e,this.domEventHandlers=i,this.extension=r(this)}return Se(t,null,[{key:"define",value:function(n,e){var i=e||{},o=i.provide,s=i.decorations;return new t(PKe++,n,i.eventHandlers,function(a){var l=[h_.of(a)];return s&&l.push(f_.of(function(c){var u=c.plugin(a);return u?s(u):yi.none})),o&&l.push(o(a)),l})}},{key:"fromClass",value:function(n,e){return t.define(function(i){return new n(i)},e)}}]),t}(),aj=function(){function t(n){ke(this,t),this.spec=n,this.mustUpdate=null,this.value=null}return Se(t,[{key:"update",value:function(n){if(this.value){if(this.mustUpdate){var e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(i){if(Ec(e.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(n)}catch(i){Ec(n.state,i,"CodeMirror plugin crashed"),this.deactivate()}return this}},{key:"destroy",value:function(n){var e;if(null!==(e=this.value)&&void 0!==e&&e.destroy)try{this.value.destroy()}catch(i){Ec(n.state,i,"CodeMirror plugin crashed")}}},{key:"deactivate",value:function(){this.spec=this.value=null}}]),t}(),vue=Qn.define(),lj=Qn.define(),f_=Qn.define(),yue=Qn.define(),bue=Qn.define(),p_=Qn.define(),M0=function(){function t(n,e,i,r){ke(this,t),this.fromA=n,this.toA=e,this.fromB=i,this.toB=r}return Se(t,[{key:"join",value:function(n){return new t(Math.min(this.fromA,n.fromA),Math.max(this.toA,n.toA),Math.min(this.fromB,n.fromB),Math.max(this.toB,n.toB))}},{key:"addToSet",value:function(n){for(var e=n.length,i=this;e>0;e--){var r=n[e-1];if(!(r.fromA>i.toA)){if(r.toAu)break;o+=2}if(!l)return i;new t(l.fromA,l.toA,l.fromB,l.toB).addToSet(i),s=l.toA,a=l.toB}}}]),t}(),_ue=function(){function t(n,e,i){ke(this,t),this.view=n,this.state=e,this.transactions=i,this.flags=0,this.startState=n.state,this.changes=rd.empty(this.startState.doc.length);var r,o=Re(i);try{for(o.s();!(r=o.n()).done;)this.changes=this.changes.compose(r.value.changes)}catch(l){o.e(l)}finally{o.f()}var a=[];this.changes.iterChangedRanges(function(l,c,u,d){return a.push(new M0(l,c,u,d))}),this.changedRanges=a}return Se(t,[{key:"viewportChanged",get:function(){return(4&this.flags)>0}},{key:"heightChanged",get:function(){return(2&this.flags)>0}},{key:"geometryChanged",get:function(){return this.docChanged||(10&this.flags)>0}},{key:"focusChanged",get:function(){return(1&this.flags)>0}},{key:"docChanged",get:function(){return!this.changes.empty}},{key:"selectionSet",get:function(){return this.transactions.some(function(n){return n.selection})}},{key:"empty",get:function(){return 0==this.flags&&0==this.transactions.length}}],[{key:"create",value:function(n,e,i){return new t(n,e,i)}}]),t}(),us=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(us||(us={})),cj=us.LTR,LKe=us.RTL;function xue(t){for(var n=[],e=0;e=e){if(a.level==i)return s;(o<0||(0!=r?r<0?a.frome:n[o].level>a.level))&&(o=s)}}if(o<0)throw new RangeError("Index out of range");return o}}]),t}(),ds=[];function Due(t){return[new I0(0,t,0)]}var Tue="";function HKe(t,n,e,i,r){var o,s=i.head-t.from,a=-1;if(0==s){if(!r||!t.length)return null;n[0].level!=e&&(s=n[0].side(!1,e),a=0)}else if(s==t.length){if(r)return null;var l=n[n.length-1];l.level!=e&&(s=l.side(!0,e),a=n.length-1)}a<0&&(a=I0.find(n,s,null!==(o=i.bidiLevel)&&void 0!==o?o:-1,i.assoc));var c=n[a];s==c.side(r,e)&&(s=(c=n[a+=r?1:-1]).side(!r,e));var u=r==(c.dir==e),d=Pl(t.text,s,u);if(Tue=t.text.slice(Math.min(s,d),Math.max(s,d)),d!=c.side(r,e))return en.cursor(d+t.from,u?-1:1,c.level);var h=a==(r?n.length-1:0)?null:n[a+(r?1:-1)];return h||c.level==e?h&&h.level1){var d,h=Re(this.points);try{for(h.s();!(d=h.n()).done;){var f=d.value;f.node==n&&f.pos>this.text.length&&(f.pos-=c-1)}}catch(p){h.e(p)}finally{h.f()}}s=l+c}}},{key:"readNode",value:function(n){if(!n.cmIgnore){var e=ws.get(n),i=e&&e.overrideDOMText;if(null!=i){this.findPointInside(n,i.length);for(var r=i.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else 3==n.nodeType?this.readTextNode(n):"BR"==n.nodeName?n.nextSibling&&this.lineBreak():1==n.nodeType&&this.readRange(n.firstChild,null)}}},{key:"findPointBefore",value:function(n,e){var i,r=Re(this.points);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.node==n&&n.childNodes[o.offset]==e&&(o.pos=this.text.length)}}catch(s){r.e(s)}finally{r.f()}}},{key:"findPointInside",value:function(n,e){var i,r=Re(this.points);try{for(r.s();!(i=r.n()).done;){var o=i.value;(3==n.nodeType?o.node==n:n.contains(o.node))&&(o.pos=this.text.length+Math.min(e,o.offset))}}catch(s){r.e(s)}finally{r.f()}}}]),t}();function Aue(t){return 1==t.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}var Mue=Se(function t(n,e){ke(this,t),this.node=n,this.offset=e,this.pos=-1}),Iue=function(t){wt(e,ws);var n=Ct(e);function e(i){var r;return ke(this,e),(r=n.call(this)).view=i,r.compositionDeco=yi.none,r.decorations=[],r.dynamicDecorationMap=[],r.minWidth=0,r.minWidthFrom=0,r.minWidthTo=0,r.impreciseAnchor=null,r.impreciseHead=null,r.forceSelection=!1,r.lastUpdate=Date.now(),r.setDOM(i.contentDOM),r.children=[new od],r.children[0].setParent(An(r)),r.updateDeco(),r.updateInner([new M0(0,0,0,i.state.doc.length)],0),r}return Se(e,[{key:"length",get:function(){return this.view.state.doc.length}},{key:"update",value:function(i){var r=this,o=i.changedRanges;this.minWidth>0&&o.length&&(o.every(function(a){return a.toAr.minWidthTo})?(this.minWidthFrom=i.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=i.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.view.inputState.composing<0?this.compositionDeco=yi.none:(i.transactions.length||this.dirty)&&(this.compositionDeco=function(a,l){var c=Nue(a);if(!c)return yi.none;var d=c.to,h=c.node,f=c.text,p=l.mapPos(c.from,1),m=Math.max(p,l.mapPos(d,-1)),g=a.state,v=3==h.nodeType?h.nodeValue:new Eue([],g).readRange(h.firstChild,null).text;if(m-p=0?i[s]:null;if(!a)break;var l=a.fromA,c=a.toA,h=jKe.build(this.view.state.doc,a.fromB,a.toB,this.decorations,this.dynamicDecorationMap),f=h.content,p=h.breakAtStart,m=h.openStart,g=h.openEnd,v=o.findPos(c,1),y=v.i,_=v.off,C=o.findPos(l,-1);Wce(this,C.i,C.off,y,_,f,p,m,g)}}},{key:"updateSelection",value:function(){var i=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange(),o||this.mayControlSelection()){var s=this.forceSelection;this.forceSelection=!1;var a=this.view.state.selection.main,l=this.domAtPos(a.anchor),c=a.empty?l:this.domAtPos(a.head);if(Zn.gecko&&a.empty&&function zKe(t){return 1==t.node.nodeType&&t.node.firstChild&&(0==t.offset||"false"==t.node.childNodes[t.offset-1].contentEditable)&&(t.offset==t.node.childNodes.length||"false"==t.node.childNodes[t.offset].contentEditable)}(l)){var u=document.createTextNode("");this.view.observer.ignore(function(){return l.node.insertBefore(u,l.node.childNodes[l.offset]||null)}),l=c=new Dc(u,0),s=!0}var d=this.view.observer.selectionRange;!s&&d.focusNode&&yS(l.node,l.offset,d.anchorNode,d.anchorOffset)&&yS(c.node,c.offset,d.focusNode,d.focusOffset)||(this.view.observer.ignore(function(){Zn.android&&Zn.chrome&&i.dom.contains(d.focusNode)&&function qKe(t,n){for(var e=t;e&&e!=n;e=e.assignedSlot||e.parentNode)if(1==e.nodeType&&"false"==e.contentEditable)return!0;return!1}(d.focusNode,i.dom)&&(i.dom.blur(),i.dom.focus({preventScroll:!0}));var h=gS(i.view.root);if(h)if(a.empty){if(Zn.gecko){var f=function GKe(t,n){return 1!=t.nodeType?0:(n&&"false"==t.childNodes[n-1].contentEditable?1:0)|(na.head){var g=[c,l];l=g[0],c=g[1]}m.setEnd(c.node,c.offset),m.setStart(l.node,l.offset),h.removeAllRanges(),h.addRange(m)}}),this.view.observer.setSelectionRange(l,c)),this.impreciseAnchor=l.precise?null:new Dc(d.anchorNode,d.anchorOffset),this.impreciseHead=c.precise?null:new Dc(d.focusNode,d.focusOffset)}}},{key:"enforceCursorAssoc",value:function(){if(!this.compositionDeco.size){var i=this.view,r=i.state.selection.main,o=gS(i.root),s=i.observer.selectionRange,a=s.anchorNode,l=s.anchorOffset;if(o&&r.empty&&r.assoc&&o.modify){var c=od.find(this,r.head);if(c){var u=c.posAtStart;if(r.head!=u&&r.head!=u+c.length){var d=this.coordsAt(r.head,-1),h=this.coordsAt(r.head,1);if(d&&h&&!(d.bottom>h.top)){var f=this.domAtPos(r.head+r.assoc);o.collapse(f.node,f.offset),o.modify("move",r.assoc<0?"forward":"backward","lineboundary"),i.observer.readSelectionRange();var p=i.observer.selectionRange;i.docView.posFromDOM(p.anchorNode,p.anchorOffset)!=r.from&&o.collapse(a,l)}}}}}}},{key:"mayControlSelection",value:function(){var i=this.view.root.activeElement;return i==this.dom||vS(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i))}},{key:"nearest",value:function(i){for(var r=i;r;){var o=ws.get(r);if(o&&o.rootView==this)return o;r=r.parentNode}return null}},{key:"posFromDOM",value:function(i,r){var o=this.nearest(i);if(!o)throw new RangeError("Trying to find position for a DOM position outside of the document");return o.localPosFromDOM(i,r)+o.posAtStart}},{key:"domAtPos",value:function(i){for(var r=this.childCursor().findPos(i,-1),o=r.i,s=r.off;ol||i==l&&a.type!=_o.WidgetBefore&&a.type!=_o.WidgetAfter&&(!s||2==r||this.children[s-1].breakAfter||this.children[s-1].type==_o.WidgetBefore&&r>-2))return a.coordsAt(i-l,r);o=l}}},{key:"measureVisibleLineHeights",value:function(i){for(var r=[],o=i.from,s=i.to,a=this.view.contentDOM.clientWidth,l=a>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,c=-1,u=this.view.textDirection==us.LTR,d=0,h=0;hs)break;if(d>=o){var m=f.dom.getBoundingClientRect();if(r.push(m.height),l){var g=f.dom.lastChild,v=g?l_(g):[];if(v.length){var y=v[v.length-1],_=u?y.right-m.left:m.right-y.left;_>c&&(c=_,this.minWidth=a,this.minWidthFrom=d,this.minWidthTo=p)}}}d=p+f.breakAfter}return r}},{key:"textDirectionAt",value:function(i){var r=this.childPos(i,1).i;return"rtl"==getComputedStyle(this.children[r].dom).direction?us.RTL:us.LTR}},{key:"measureTextSize",value:function(){var i,r=this,o=Re(this.children);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(s instanceof od){var a=s.measureTextSize();if(a)return a}}}catch(d){o.e(d)}finally{o.f()}var l,c,u=document.createElement("div");return u.className="cm-line",u.style.width="99999px",u.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(function(){r.dom.appendChild(u);var d=l_(u.firstChild)[0];l=u.getBoundingClientRect().height,c=d?d.width/27:7,u.remove()}),{lineHeight:l,charWidth:c}}},{key:"childCursor",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.length,r=this.children.length;return r&&(i-=this.children[--r].length),new Gce(this.children,i,r)}},{key:"computeBlockGapDeco",value:function(){for(var i=[],r=this.view.viewState,o=0,s=0;;s++){var a=s==r.viewports.length?null:r.viewports[s],l=a?a.from-1:this.length;if(l>o){var c=r.lineBlockAt(l).bottom-r.lineBlockAt(o).top;i.push(yi.replace({widget:new Fue(c),block:!0,inclusive:!0,isBlockGap:!0}).range(o,l))}if(!a)break;o=a.to+1}return yi.set(i)}},{key:"updateDeco",value:function(){for(var i=this,r=this.view.state.facet(f_).map(function(s,a){return(i.dynamicDecorationMap[a]="function"==typeof s)?s(i.view):s}),o=r.length;os.anchor?-1:1);if(a){!s.empty&&(r=this.coordsAt(s.anchor,s.anchor>s.head?-1:1))&&(a={left:Math.min(a.left,r.left),top:Math.min(a.top,r.top),right:Math.max(a.right,r.right),bottom:Math.max(a.bottom,r.bottom)});var l,c=0,u=0,d=0,h=0,f=Re(this.view.state.facet(bue).map(function(C){return C(o.view)}));try{for(f.s();!(l=f.n()).done;){var p=l.value;if(p){var m=p.left,g=p.right,v=p.top,y=p.bottom;null!=m&&(c=Math.max(c,m)),null!=g&&(u=Math.max(u,g)),null!=v&&(d=Math.max(d,v)),null!=y&&(h=Math.max(h,y))}}}catch(C){f.e(C)}finally{f.f()}!function(C,S,M,$,G,R,z,U){for(var q=C.ownerDocument,re=q.defaultView||window,L=C;L;)if(1==L.nodeType){var X=void 0,Z=L==q.body;if(Z)X=FKe(re);else{if(L.scrollHeight<=L.clientHeight&&L.scrollWidth<=L.clientWidth){L=L.assignedSlot||L.parentNode;continue}var H=L.getBoundingClientRect();X={left:H.left,right:H.left+L.clientWidth,top:H.top,bottom:H.top+L.clientHeight}}var he=0,E=0;if("nearest"==G)S.top0&&S.bottom>X.bottom+E&&(E=S.bottom-X.bottom+E+z)):S.bottom>X.bottom&&(E=S.bottom-X.bottom+z,M<0&&S.top-E0&&S.right>X.right+he&&(he=S.right-X.right+he+R)):S.right>X.right&&(he=S.right-X.right+R,M<0&&S.left0&&e<=0)n=c_(t=t.childNodes[n-1]);else{if(!(1==t.nodeType&&n=0))return null;t=t.childNodes[n],n=0}}}var WKe=function(){function t(){ke(this,t),this.changes=[]}return Se(t,[{key:"compareRange",value:function(n,e){rj(n,e,this.changes)}},{key:"comparePoint",value:function(n,e){rj(n,e,this.changes)}}]),t}();function XKe(t,n){return n.left>t?n.left-t:Math.max(0,t-n.right)}function YKe(t,n){return n.top>t?n.top-t:Math.max(0,t-n.bottom)}function hj(t,n){return t.topn.top+1}function jue(t,n){return nt.bottom?{top:t.top,left:t.left,right:t.right,bottom:n}:t}function fj(t,n,e){for(var i,r,o,s,a,l,c,u,d=!1,h=t.firstChild;h;h=h.nextSibling)for(var f=l_(h),p=0;pv||s==v&&o>g){i=h,r=m,o=g,s=v;var y=v?e0?p0)}0==g?e>m.bottom&&(!c||c.bottomm.top)&&(l=h,u=m):c&&hj(c,m)?c=Pue(c,m.bottom):u&&hj(u,m)&&(u=jue(u,m.top))}if(c&&c.bottom>=e?(i=a,r=c):u&&u.top<=e&&(i=l,r=u),!i)return{node:t,offset:0};var _=Math.max(r.left,Math.min(r.right,n));return 3==i.nodeType?Lue(i,_,e):d&&"false"!=i.contentEditable?fj(i,_,e):{node:t,offset:Array.prototype.indexOf.call(t.childNodes,i)+(n>=(r.left+r.right)/2?1:0)}}function Lue(t,n,e){for(var i=t.nodeValue.length,r=-1,o=1e9,s=0,a=0;ae?u.top-e:e-u.bottom)-1;if(u.left-1<=n&&u.right+1>=n&&d=(u.left+u.right)/2,f=h;if((Zn.chrome||Zn.gecko)&&E0(t,a).getBoundingClientRect().left==u.right&&(f=!h),d<=0)return{node:t,offset:a+(f?1:0)};r=a+(f?1:0),o=d}}}return{node:t,offset:r>-1?r:s>0?t.nodeValue.length:0}}function Rue(t,n,e){var i,r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,s=t.contentDOM.getBoundingClientRect(),a=s.top+t.viewState.paddingTop,l=t.viewState.docHeight,c=n.x,u=n.y,d=u-a;if(d<0)return 0;if(d>l)return t.state.doc.length;for(var h=t.defaultLineHeight/2,f=!1;(r=t.elementAtHeight(d)).type!=_o.Text;)for(;!((d=o>0?r.bottom+h:r.top-h)>=0&&d<=l);){if(f)return e?null:0;f=!0,o=-o}u=a+d;var p=r.from;if(pt.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:e?null:$ue(t,s,r,c,u);var m=t.dom.ownerDocument,g=t.root.elementFromPoint?t.root:m,v=g.elementFromPoint(c,u);v&&!t.contentDOM.contains(v)&&(v=null),v||(c=Math.max(s.left+1,Math.min(s.right-1,c)),(v=g.elementFromPoint(c,u))&&!t.contentDOM.contains(v)&&(v=null));var y,_=-1;if(v&&0!=(null===(i=t.docView.nearest(v))||void 0===i?void 0:i.isEditable))if(m.caretPositionFromPoint){var C=m.caretPositionFromPoint(c,u);C&&(y=C.offsetNode,_=C.offset)}else if(m.caretRangeFromPoint){var S=m.caretRangeFromPoint(c,u);S&&(_=S.startOffset,(!t.contentDOM.contains(y=S.startContainer)||Zn.safari&&function JKe(t,n,e){var i;if(3!=t.nodeType||n!=(i=t.nodeValue.length))return!1;for(var r=t.nextSibling;r;r=r.nextSibling)if(1!=r.nodeType||"BR"!=r.nodeName)return!1;return E0(t,i-1,i).getBoundingClientRect().left>e}(y,_,c)||Zn.chrome&&function KKe(t,n,e){if(0!=n)return!1;for(var i=t;;){var r=i.parentNode;if(!r||1!=r.nodeType||r.firstChild!=i)return!1;if(r.classList.contains("cm-line"))break;i=r}return e-(1==t.nodeType?t.getBoundingClientRect():E0(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect()).left>5}(y,_,c))&&(y=void 0))}if(!y||!t.docView.dom.contains(y)){var M=od.find(t.docView,p);if(!M)return d>r.top+r.height/2?r.to:r.from;var $=fj(M.dom,c,u);y=$.node,_=$.offset}var G=t.docView.nearest(y);if(!G)return null;if(G.isWidget){var R=G.dom.getBoundingClientRect();return n.y1.5*t.defaultLineHeight&&(o+=Math.floor((r-e.top)/t.defaultLineHeight)*t.viewState.heightOracle.lineLength);var s=t.state.sliceDoc(e.from,e.to);return e.from+V4(s,o,t.state.tabSize)}function Bue(t,n,e,i){for(var r=t.state.doc.lineAt(n.head),o=t.bidiSpans(r),s=t.textDirectionAt(r.from),a=n,l=null;;){var c=HKe(r,o,s,a,e),u=Tue;if(!c){if(r.number==(e?t.state.doc.lines:1))return a;u="\n",r=t.state.doc.line(r.number+(e?1:-1)),o=t.bidiSpans(r),c=en.cursor(e?r.from:r.to)}if(l){if(!l(u))return a}else{if(!i)return c;l=i(u)}a=c}}function pj(t,n,e){for(var i=t.state.facet(yue).map(function(a){return a(t)});;){var r,o=!1,s=Re(i);try{for(s.s();!(r=s.n()).done;)r.value.between(e.from-1,e.from+1,function(a,l,c){e.from>a&&e.frome.from?en.cursor(a,1):en.cursor(l,-1),o=!0)})}catch(a){s.e(a)}finally{s.f()}if(!o)return e}}var ZKe=function(){function t(n){var e=this;ke(this,t),this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.chromeScrollHack=-1,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.mouseSelection=null;var i=function(s,a){e.ignoreDuringComposition(a)||"keydown"==a.type&&e.keydown(n,a)||(e.mustFlushObserver(a)&&n.observer.forceFlush(),e.runCustomHandlers(a.type,n,a)?a.preventDefault():s(n,a))},r=function(s){var a=la[s];n.contentDOM.addEventListener(s,function(l){zue(n,l)&&i(a,l)},mj[s]),e.registeredEvents.push(s)};for(var o in la)r(o);n.scrollDOM.addEventListener("mousedown",function(s){s.target==n.scrollDOM&&s.clientY>n.contentDOM.getBoundingClientRect().bottom&&i(la.mousedown,s)}),Zn.chrome&&102==Zn.chrome_version&&n.scrollDOM.addEventListener("wheel",function(){e.chromeScrollHack<0?n.contentDOM.style.pointerEvents="none":window.clearTimeout(e.chromeScrollHack),e.chromeScrollHack=setTimeout(function(){e.chromeScrollHack=-1,n.contentDOM.style.pointerEvents=""},100)},{passive:!0}),this.notifiedFocused=n.hasFocus,Zn.safari&&n.contentDOM.addEventListener("input",function(){return null})}return Se(t,[{key:"setSelectionOrigin",value:function(n){this.lastSelectionOrigin=n,this.lastSelectionTime=Date.now()}},{key:"ensureHandlers",value:function(n,e){var i,r,o=this;this.customHandlers=[];var s,a=Re(e);try{for(a.s();!(s=a.n()).done;){var l=s.value;if(r=null===(i=l.update(n).spec)||void 0===i?void 0:i.domEventHandlers){this.customHandlers.push({plugin:l.value,handlers:r});var c=function(d){o.registeredEvents.indexOf(d)<0&&"scroll"!=d&&(o.registeredEvents.push(d),n.contentDOM.addEventListener(d,function(h){zue(n,h)&&o.runCustomHandlers(d,n,h)&&h.preventDefault()}))};for(var u in r)c(u)}}}catch(d){a.e(d)}finally{a.f()}}},{key:"runCustomHandlers",value:function(n,e,i){var r,o=Re(this.customHandlers);try{for(o.s();!(r=o.n()).done;){var s=r.value,a=s.handlers[n];if(a)try{if(a.call(s.plugin,i,e)||i.defaultPrevented)return!0}catch(l){Ec(e.state,l)}}}catch(l){o.e(l)}finally{o.f()}return!1}},{key:"runScrollHandlers",value:function(n,e){this.lastScrollTop=n.scrollDOM.scrollTop,this.lastScrollLeft=n.scrollDOM.scrollLeft;var i,r=Re(this.customHandlers);try{for(r.s();!(i=r.n()).done;){var o=i.value,s=o.handlers.scroll;if(s)try{s.call(o.plugin,e,n)}catch(a){Ec(n.state,a)}}}catch(a){r.e(a)}finally{r.f()}}},{key:"keydown",value:function(n,e){var i,r=this;return this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&Date.now()-1&&e.ctrlKey&&!e.shiftKey)||(this.pendingIOSKey=i||e,setTimeout(function(){return r.flushIOSKey(n)},250),0)):(n.observer.delayAndroidKey(e.key,e.keyCode),!0))}},{key:"flushIOSKey",value:function(n){var e=this.pendingIOSKey;return!!e&&(this.pendingIOSKey=void 0,A0(n.contentDOM,e.key,e.keyCode))}},{key:"ignoreDuringComposition",value:function(n){return!!/^key/.test(n.type)&&(this.composing>0||!!(Zn.safari&&!Zn.ios&&Date.now()-this.compositionEndedAt<100)&&(this.compositionEndedAt=0,!0))}},{key:"mustFlushObserver",value:function(n){return"keydown"==n.type&&229!=n.keyCode}},{key:"startMouseSelection",value:function(n){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=n}},{key:"update",value:function(n){this.mouseSelection&&this.mouseSelection.update(n),n.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}},{key:"destroy",value:function(){this.mouseSelection&&this.mouseSelection.destroy()}}]),t}(),Vue=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],eQe="dthko",Hue=[16,17,18,20,91,92,224,225];function CS(t){return.7*t+8}var tQe=function(){function t(n,e,i,r){ke(this,t),this.view=n,this.style=i,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=e,this.scrollParent=function(s){for(var a=s.ownerDocument,l=s.parentNode;l&&l!=a.body;)if(1==l.nodeType){if(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth)return l;l=l.assignedSlot||l.parentNode}else{if(11!=l.nodeType)break;l=l.host}return null}(n.contentDOM);var a,l,o=n.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=e.shiftKey,this.multiple=n.state.facet(No.allowMultipleSelections)&&(a=e,(l=n.state.facet(aue)).length?l[0](a):Zn.mac?a.metaKey:a.ctrlKey),this.dragMove=function(s,a){var l=s.state.facet(lue);return l.length?l[0](a):Zn.mac?!a.altKey:!a.ctrlKey}(n,e),this.dragging=!(!function(s,a){if(s.state.selection.main.empty)return!1;var l=gS(s.root);if(!l||0==l.rangeCount)return!0;for(var c=l.getRangeAt(0).getClientRects(),u=0;u=a.clientX&&d.top<=a.clientY&&d.bottom>=a.clientY)return!0}return!1}(n,e)||1!=Zue(e))&&null}return Se(t,[{key:"start",value:function(n){!1===this.dragging&&(n.preventDefault(),this.select(n))}},{key:"move",value:function(n){var e;if(0==n.buttons)return this.destroy();if(!1===this.dragging){this.select(this.lastEvent=n);var i=0,r=0,o=(null===(e=this.scrollParent)||void 0===e?void 0:e.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight};n.clientX<=o.left?i=-CS(o.left-n.clientX):n.clientX>=o.right&&(i=CS(n.clientX-o.right)),n.clientY<=o.top?r=-CS(o.top-n.clientY):n.clientY>=o.bottom&&(r=CS(n.clientY-o.bottom)),this.setScrollSpeed(i,r)}}},{key:"up",value:function(n){null==this.dragging&&this.select(this.lastEvent),this.dragging||n.preventDefault(),this.destroy()}},{key:"destroy",value:function(){this.setScrollSpeed(0,0);var n=this.view.contentDOM.ownerDocument;n.removeEventListener("mousemove",this.move),n.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}},{key:"setScrollSpeed",value:function(n,e){var i=this;this.scrollSpeed={x:n,y:e},n||e?this.scrolling<0&&(this.scrolling=setInterval(function(){return i.scroll()},50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}},{key:"scroll",value:function(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}},{key:"select",value:function(n){var e=this.style.get(n,this.extend,this.multiple);!this.mustSelect&&e.eq(this.view.state.selection)&&e.main.assoc==this.view.state.selection.main.assoc||this.view.dispatch({selection:e,userEvent:"select.pointer"}),this.mustSelect=!1}},{key:"update",value:function(n){var e=this;n.docChanged&&this.dragging&&(this.dragging=this.dragging.map(n.changes)),this.style.update(n)&&setTimeout(function(){return e.select(e.lastEvent)},20)}}]),t}();function zue(t,n){if(!n.bubbles)return!0;if(n.defaultPrevented)return!1;for(var e,i=n.target;i!=t.contentDOM;i=i.parentNode)if(!i||11==i.nodeType||(e=ws.get(i))&&e.ignoreEvent(n))return!1;return!0}var la=Object.create(null),mj=Object.create(null),Uue=Zn.ie&&Zn.ie_version<15||Zn.ios&&Zn.webkit_version<604;function Gue(t,n){var e,i=t.state,r=1,o=i.toText(n),s=o.lines==i.selection.ranges.length;if(null!=gj&&i.selection.ranges.every(function(c){return c.empty})&&gj==o.toString()){var l=-1;e=i.changeByRange(function(c){var u=i.doc.lineAt(c.from);if(u.from==l)return{range:c};l=u.from;var d=i.toText((s?o.line(r++).text:n)+i.lineBreak);return{changes:{from:u.from,insert:d},range:en.cursor(c.from+d.length)}})}else e=s?i.changeByRange(function(c){var u=o.line(r++);return{changes:{from:c.from,to:c.to,insert:u.text},range:en.cursor(c.from+u.length)}}):i.replaceSelection(o);t.dispatch(e,{userEvent:"input.paste",scrollIntoView:!0})}function Wue(t,n,e,i){if(1==i)return en.cursor(n,e);if(2==i)return function(l,c){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,d=l.charCategorizer(c),h=l.doc.lineAt(c),f=c-h.from;if(0==h.length)return en.cursor(c);0==f?u=1:f==h.length&&(u=-1);var p=f,m=f;u<0?p=Pl(h.text,f,!1):m=Pl(h.text,f);for(var g=d(h.text.slice(p,m));p>0;){var v=Pl(h.text,p,!1);if(d(h.text.slice(v,p))!=g)break;p=v}for(;mDate.now()-2e3)){var e,i=null,r=Re(t.state.facet(cue));try{for(r.s();!(e=r.n()).done&&!(i=(0,e.value)(t,n)););}catch(s){r.e(s)}finally{r.f()}if(i||0!=n.button||(l=Yue(s=t,a=n),c=Zue(a),u=s.state.selection,i={update:function(d){d.docChanged&&(l.pos=d.changes.mapPos(l.pos),u=u.map(d.changes))},get:function(d,h,f){var p=Yue(s,d),m=Wue(s,p.pos,p.bias,c);if(l.pos!=p.pos&&!h){var g=Wue(s,l.pos,l.bias,c),v=Math.min(g.from,m.from),y=Math.max(g.to,m.to);m=v1&&u.ranges.some(function(_){return _.eq(m)})?function(_,C){for(var S=0;;S++)if(_.ranges[S].eq(C))return en.create(_.ranges.slice(0,S).concat(_.ranges.slice(S+1)),_.mainIndex==S?0:_.mainIndex-(_.mainIndex>S?1:0))}(u,m):f?u.addRange(m):en.create([m])}}),i){var o=t.root.activeElement!=t.contentDOM;t.inputState.startMouseSelection(new tQe(t,n,i,o)),o&&t.observer.ignore(function(){return Hce(t.contentDOM)}),t.inputState.mouseSelection&&t.inputState.mouseSelection.start(n)}}var s,a,l,c,u};var que=function(t,n){return t>=n.top&&t<=n.bottom},Xue=function(t,n,e){return que(n,e)&&t>=e.left&&t<=e.right};function nQe(t,n,e,i){var r=od.find(t.docView,n);if(!r)return 1;var o=n-r.posAtStart;if(0==o)return 1;if(o==r.length)return-1;var s=r.coordsAt(o,-1);if(s&&Xue(e,i,s))return-1;var a=r.coordsAt(o,1);return a&&Xue(e,i,a)?1:s&&que(i,s)?-1:1}function Yue(t,n){var e=t.posAtCoords({x:n.clientX,y:n.clientY},!1);return{pos:e,bias:nQe(t,e,n.clientX,n.clientY)}}var iQe=Zn.ie&&Zn.ie_version<=11,Jue=null,Kue=0,Que=0;function Zue(t){if(!iQe)return t.detail;var n=Jue,e=Que;return Jue=t,Que=Date.now(),Kue=!n||e>Date.now()-400&&Math.abs(n.clientX-t.clientX)<2&&Math.abs(n.clientY-t.clientY)<2?(Kue+1)%3:1}function ede(t,n,e,i){if(e){var r=t.posAtCoords({x:n.clientX,y:n.clientY},!1);n.preventDefault();var o=t.inputState.mouseSelection,s=i&&o&&o.dragging&&o.dragMove?{from:o.dragging.from,to:o.dragging.to}:null,a={from:r,insert:e},l=t.state.changes(s?[s,a]:a);t.focus(),t.dispatch({changes:l,selection:{anchor:l.mapPos(r,-1),head:l.mapPos(r,1)},userEvent:s?"move.drop":"input.drop"})}}la.dragstart=function(t,n){var e=t.state.selection.main,i=t.inputState.mouseSelection;i&&(i.dragging=e),n.dataTransfer&&(n.dataTransfer.setData("Text",t.state.sliceDoc(e.from,e.to)),n.dataTransfer.effectAllowed="copyMove")},la.drop=function(t,n){if(n.dataTransfer){if(t.state.readOnly)return n.preventDefault();var e=n.dataTransfer.files;e&&e.length?function(){n.preventDefault();for(var i=Array(e.length),r=0,o=function(){++r==e.length&&ede(t,n,i.filter(function(l){return null!=l}).join(t.state.lineBreak),!1)},s=function(l){var c=new FileReader;c.onerror=o,c.onload=function(){/[\x00-\x08\x0e-\x1f]{2}/.test(c.result)||(i[l]=c.result),o()},c.readAsText(e[l])},a=0;am&&(c.push(y.text),u.push({from:y.from,to:Math.min(a.doc.length,y.to+1)})),m=y.number}}catch(_){g.e(_)}finally{g.f()}d=!0}return{text:c.join(a.lineBreak),ranges:u,linewise:d}}(t.state),i=e.text,r=e.ranges,o=e.linewise;if(i||o){gj=o?i:null;var s=Uue?null:n.clipboardData;s?(n.preventDefault(),s.clearData(),s.setData("text/plain",i)):function(a,l){var c=a.dom.parentNode;if(c){var u=c.appendChild(document.createElement("textarea"));u.style.cssText="position: fixed; left: -10000px; top: 10px",u.value=l,u.focus(),u.selectionEnd=l.length,u.selectionStart=0,setTimeout(function(){u.remove(),a.focus()},50)}}(t,i),"cut"!=n.type||t.state.readOnly||t.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"})}};var tde=fp.define();function nde(t,n){var e,i=[],r=Re(t.facet(hue));try{for(r.s();!(e=r.n()).done;){var o=(0,e.value)(t,n);o&&i.push(o)}}catch(s){r.e(s)}finally{r.f()}return i?t.update({effects:i,annotations:tde.of(!0)}):null}function ide(t){setTimeout(function(){var n=t.hasFocus;if(n!=t.inputState.notifiedFocused){var e=nde(t.state,n);e?t.dispatch(e):t.update([])}},10)}la.focus=function(t){t.inputState.lastFocusTime=Date.now(),t.scrollDOM.scrollTop||!t.inputState.lastScrollTop&&!t.inputState.lastScrollLeft||(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),ide(t)},la.blur=function(t){t.observer.clearSelectionRange(),ide(t)},la.compositionstart=la.compositionupdate=function(t){null==t.inputState.compositionFirstChange&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0)},la.compositionend=function(t){t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionFirstChange=null,Zn.chrome&&Zn.android&&t.observer.flushSoon(),setTimeout(function(){t.inputState.composing<0&&t.docView.compositionDeco.size&&t.update([])},50)},la.contextmenu=function(t){t.inputState.lastContextMenu=Date.now()},la.beforeinput=function(t,n){var e,i;if(Zn.chrome&&Zn.android&&(i=Vue.find(function(o){return o.inputType==n.inputType}))&&(t.observer.delayAndroidKey(i.key,i.keyCode),"Backspace"==i.key||"Delete"==i.key)){var r=(null===(e=window.visualViewport)||void 0===e?void 0:e.height)||0;setTimeout(function(){var o;((null===(o=window.visualViewport)||void 0===o?void 0:o.height)||0)>r+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}};var rde=["pre-wrap","normal","pre-line","break-spaces"],rQe=function(){function t(n){ke(this,t),this.lineWrapping=n,this.doc=fo.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.lineLength=30,this.heightChanged=!1}return Se(t,[{key:"heightForGap",value:function(n,e){var i=this.doc.lineAt(e).number-this.doc.lineAt(n).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((e-n-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}},{key:"heightForLine",value:function(n){return this.lineWrapping?(1+Math.max(0,Math.ceil((n-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}},{key:"setDoc",value:function(n){return this.doc=n,this}},{key:"mustRefreshForWrapping",value:function(n){return rde.indexOf(n)>-1!=this.lineWrapping}},{key:"mustRefreshForHeights",value:function(n){for(var e=!1,i=0;i-1,a=Math.round(e)!=Math.round(this.lineHeight)||this.lineWrapping!=s;if(this.lineWrapping=s,this.lineHeight=e,this.charWidth=i,this.lineLength=r,a){this.heightSamples={};for(var l=0;l2&&void 0!==arguments[2]?arguments[2]:2;ke(this,t),this.length=n,this.height=e,this.flags=i}return Se(t,[{key:"outdated",get:function(){return(2&this.flags)>0},set:function(n){this.flags=(n?2:0)|-3&this.flags}},{key:"setHeight",value:function(n,e){this.height!=e&&(Math.abs(this.height-e)>.001&&(n.heightChanged=!0),this.height=e)}},{key:"replace",value:function(n,e,i){return t.of(i)}},{key:"decomposeLeft",value:function(n,e){e.push(this)}},{key:"decomposeRight",value:function(n,e){e.push(this)}},{key:"applyChanges",value:function(n,e,i,r){for(var o=this,s=i.doc,a=r.length-1;a>=0;a--){var l=r[a],c=l.fromA,u=l.toA,d=l.fromB,h=l.toB,f=o.lineAt(c,Wo.ByPosNoHeight,i.setDoc(e),0,0),p=f.to>=u?f:o.lineAt(u,Wo.ByPosNoHeight,i,0,0);for(h+=p.to-u,u=p.to;a>0&&f.from<=r[a-1].toA;)c=r[a-1].fromA,d=r[a-1].fromB,a--,c2*o){var s=n[e-1];s.break?n.splice(--e,1,s.left,null,s.right):n.splice(--e,1,s.left,s.right),i+=1+s.break,r-=s.size}else{if(!(o>2*r))break;var a=n[i];a.break?n.splice(i,1,a.left,null,a.right):n.splice(i,1,a.left,a.right),i+=2+a.break,o-=a.size}else if(r=a&&l(this.blockAt(0,o,s,a))}},{key:"updateHeight",value:function(i){var o=arguments.length>3?arguments[3]:void 0;return o&&o.from<=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)&&o.more&&this.setHeight(i,o.heights[o.index++]),this.outdated=!1,this}},{key:"toString",value:function(){return"block(".concat(this.length,")")}}]),e}(),fh=function(t){wt(e,ode);var n=Ct(e);function e(i,r){var o;return ke(this,e),(o=n.call(this,i,r,_o.Text)).collapsed=0,o.widgetHeight=0,o}return Se(e,[{key:"replace",value:function(i,r,o){var s=o[0];return 1==o.length&&(s instanceof e||s instanceof F0&&4&s.flags)&&Math.abs(this.length-s.length)<10?(s instanceof F0?s=new e(s.length,this.height):s.height=this.height,this.outdated||(s.outdated=!1),s):sd.of(o)}},{key:"updateHeight",value:function(i){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0;return s&&s.from<=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)&&s.more?this.setHeight(i,s.heights[s.index++]):(o||this.outdated)&&this.setHeight(i,Math.max(this.widgetHeight,i.heightForLine(this.length-this.collapsed))),this.outdated=!1,this}},{key:"toString",value:function(){return"line(".concat(this.length).concat(this.collapsed?-this.collapsed:"").concat(this.widgetHeight?":"+this.widgetHeight:"",")")}}]),e}(),F0=function(t){wt(e,sd);var n=Ct(e);function e(i){return ke(this,e),n.call(this,i,0)}return Se(e,[{key:"heightMetrics",value:function(i,r){var o,s=i.doc.lineAt(r).number,a=i.doc.lineAt(r+this.length).number,l=a-s+1,c=0;if(i.lineWrapping){var u=Math.min(this.height,i.lineHeight*l);o=u/l,c=(this.height-u)/(this.length-l-1)}else o=this.height/l;return{firstLine:s,lastLine:a,perLine:o,perChar:c}}},{key:"blockAt",value:function(i,r,o,s){var a=this.heightMetrics(r,s),l=a.firstLine,c=a.lastLine,u=a.perLine,d=a.perChar;if(r.lineWrapping){var h=s+Math.round(Math.max(0,Math.min(1,(i-o)/this.height))*this.length),f=r.doc.lineAt(h),p=u+f.length*d,m=Math.max(o,i-p/2);return new qm(f.from,f.length,m,p,_o.Text)}var g=Math.max(0,Math.min(c-l,Math.floor((i-o)/u))),v=r.doc.line(l+g);return new qm(v.from,v.length,o+u*g,u,_o.Text)}},{key:"lineAt",value:function(i,r,o,s,a){if(r==Wo.ByHeight)return this.blockAt(i,o,s,a);if(r==Wo.ByPosNoHeight){var l=o.doc.lineAt(i),c=l.from;return new qm(c,l.to-c,0,0,_o.Text)}var d=this.heightMetrics(o,a),h=d.firstLine,f=d.perLine,p=d.perChar,m=o.doc.lineAt(i),g=f+m.length*p,v=m.number-h;return new qm(m.from,m.length,Math.max(s,Math.min(s+f*v+p*(m.from-a-v),s+this.height-g)),g,_o.Text)}},{key:"forEachLine",value:function(i,r,o,s,a,l){i=Math.max(i,a),r=Math.min(r,a+this.length);for(var c=this.heightMetrics(o,a),u=c.firstLine,d=c.perLine,h=c.perChar,f=i,p=s;f<=r;){var m=o.doc.lineAt(f);if(f==i){var g=m.number-u;p+=d*g+h*(i-a-g)}var v=d+h*m.length;l(new qm(m.from,m.length,p,v,_o.Text)),p+=v,f=m.to+1}}},{key:"replace",value:function(i,r,o){var s=this.length-r;if(s>0){var a=o[o.length-1];a instanceof e?o[o.length-1]=new e(a.length+s):o.push(null,new e(s-1))}if(i>0){var l=o[0];l instanceof e?o[0]=new e(i+l.length):o.unshift(new e(i-1),null)}return sd.of(o)}},{key:"decomposeLeft",value:function(i,r){r.push(new e(i-1),null)}},{key:"decomposeRight",value:function(i,r){r.push(null,new e(this.length-i-1))}},{key:"updateHeight",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0,a=r+this.length;if(s&&s.from<=r+this.length&&s.more){var l=[],c=Math.max(r,s.from),u=-1;for(s.from>r&&l.push(new e(s.from-r-1).updateHeight(i,r));c<=a&&s.more;){var d=i.doc.lineAt(c).length;l.length&&l.push(null);var h=s.heights[s.index++];-1==u?u=h:Math.abs(h-u)>=.001&&(u=-2);var f=new fh(d,h);f.outdated=!1,l.push(f),c+=d+1}c<=a&&l.push(null,new e(a-c).updateHeight(i,c));var p=sd.of(l);return(u<0||Math.abs(p.height-this.height)>=.001||Math.abs(u-this.heightMetrics(i,r).perLine)>=.001)&&(i.heightChanged=!0),p}return(o||this.outdated)&&(this.setHeight(i,i.heightForGap(r,r+this.length)),this.outdated=!1),this}},{key:"toString",value:function(){return"gap(".concat(this.length,")")}}]),e}(),sQe=function(t){wt(e,sd);var n=Ct(e);function e(i,r,o){var s;return ke(this,e),(s=n.call(this,i.length+r+o.length,i.height+o.height,r|(i.outdated||o.outdated?2:0))).left=i,s.right=o,s.size=i.size+o.size,s}return Se(e,[{key:"break",get:function(){return 1&this.flags}},{key:"blockAt",value:function(i,r,o,s){var a=o+this.left.height;return ic))return d;var h=r==Wo.ByPosNoHeight?Wo.ByPosNoHeight:Wo.ByPos;return u?d.join(this.right.lineAt(c,h,o,l,c)):this.left.lineAt(c,h,o,s,a).join(d)}},{key:"forEachLine",value:function(i,r,o,s,a,l){var c=s+this.left.height,u=a+this.left.length+this.break;if(this.break)i=u&&this.right.forEachLine(i,r,o,c,u,l);else{var d=this.lineAt(u,Wo.ByPos,o,s,a);i=i&&d.from<=r&&l(d),r>d.to&&this.right.forEachLine(d.to+1,r,o,c,u,l)}}},{key:"replace",value:function(i,r,o){var s=this.left.length+this.break;if(rthis.left.length)return this.balanced(this.left,this.right.replace(i-s,r-s,o));var a=[];i>0&&this.decomposeLeft(i,a);var l,c=a.length,u=Re(o);try{for(u.s();!(l=u.n()).done;)a.push(l.value)}catch(f){u.e(f)}finally{u.f()}if(i>0&&sde(a,c-1),r=++o&&r.push(null),i>o&&this.right.decomposeLeft(i-o,r)}},{key:"decomposeRight",value:function(i,r){var o=this.left.length,s=o+this.break;if(i>=s)return this.right.decomposeRight(i-s,r);i2*r.size||r.size>2*i.size?sd.of(this.break?[i,null,r]:[i,r]):(this.left=i,this.right=r,this.height=i.height+r.height,this.outdated=i.outdated||r.outdated,this.size=i.size+r.size,this.length=i.length+this.break+r.length,this)}},{key:"updateHeight",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0,a=this.left,l=this.right,c=r+a.length+this.break,u=null;return s&&s.from<=r+a.length&&s.more?u=a=a.updateHeight(i,r,o,s):a.updateHeight(i,r,o),s&&s.from<=c+l.length&&s.more?u=l=l.updateHeight(i,c,o,s):l.updateHeight(i,c,o),u?this.balanced(a,l):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}},{key:"toString",value:function(){return this.left+(this.break?" ":"-")+this.right}}]),e}();function sde(t,n){var e,i;null==t[n]&&(e=t[n-1])instanceof F0&&(i=t[n+1])instanceof F0&&t.splice(n-1,3,new F0(e.length+1+i.length))}var aQe=function(){function t(n,e){ke(this,t),this.pos=n,this.oracle=e,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=n}return Se(t,[{key:"isCovered",get:function(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}},{key:"span",value:function(n,e){if(this.lineStart>-1){var i=Math.min(e,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof fh?r.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new fh(i-this.pos,-1)),this.writtenTo=i,e>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=e}},{key:"point",value:function(n,e,i){if(n=5)&&this.addLineDeco(r,o)}else e>n&&this.span(n,e);this.lineEnd>-1&&this.lineEnd-1)){var n=this.oracle.doc.lineAt(this.pos),e=n.from,i=n.to;this.lineStart=e,this.lineEnd=i,this.writtenToe&&this.nodes.push(new fh(this.pos-e,-1)),this.writtenTo=this.pos}}},{key:"blankContent",value:function(n,e){var i=new F0(e-n);return this.oracle.doc.lineAt(n).to==e&&(i.flags|=4),i}},{key:"ensureLine",value:function(){this.enterLine();var n=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(n instanceof fh)return n;var e=new fh(0,-1);return this.nodes.push(e),e}},{key:"addBlock",value:function(n){this.enterLine(),n.type!=_o.WidgetAfter||this.isCovered||this.ensureLine(),this.nodes.push(n),this.writtenTo=this.pos=this.pos+n.length,n.type!=_o.WidgetBefore&&(this.covering=n)}},{key:"addLineDeco",value:function(n,e){var i=this.ensureLine();i.length+=e,i.collapsed+=e,i.widgetHeight=Math.max(i.widgetHeight,n),this.writtenTo=this.pos=this.pos+e}},{key:"finish",value:function(n){var e=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||e instanceof fh||this.isCovered?(this.writtenTou.clientHeight||u.scrollWidth>u.clientWidth)&&"visible"!=d.overflow){var h=u.getBoundingClientRect();o=Math.max(o,h.left),s=Math.min(s,h.right),a=Math.max(a,h.top),l=c==t.parentNode?h.bottom:Math.min(l,h.bottom)}c="absolute"==d.position||"fixed"==d.position?u.offsetParent:u.parentNode}else{if(11!=c.nodeType)break;c=c.host}return{left:o-e.left,right:Math.max(o,s)-e.left,top:a-(e.top+n),bottom:Math.max(a,l)-(e.top+n)}}function dQe(t,n){var e=t.getBoundingClientRect();return{left:0,right:e.right-e.left,top:n,bottom:e.bottom-(e.top+n)}}var vj=function(){function t(n,e,i){ke(this,t),this.from=n,this.to=e,this.size=i}return Se(t,[{key:"draw",value:function(n){return yi.replace({widget:new hQe(this.size,n)}).range(this.from,this.to)}}],[{key:"same",value:function(n,e){if(n.length!=e.length)return!1;for(var i=0;i=d.from&&a<=d.to})){var l=n.lineBlockAt(a);e.push(new kS(l.from,l.to))}},o=0;o<=1;o++)r(o);this.viewports=e.sort(function(s,a){return s.from-a.from}),this.scaler=this.heightMap.height<=7e6?lde:new pQe(this.heightOracle,this.heightMap,this.viewports)}},{key:"updateViewportLines",value:function(){var n=this;this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,function(e){n.viewportLines.push(1==n.scaler.scale?e:m_(e,n.scaler))})}},{key:"update",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.state=n.state;var i=this.stateDeco;this.stateDeco=this.state.facet(f_).filter(function(c){return"function"!=typeof c});var o=M0.extendWithRanges(n.changedRanges,function lQe(t,n,e){var i=new cQe;return Go.compare(t,n,e,i,0),i.changes}(i,this.stateDeco,n?n.changes:rd.empty(this.state.doc.length))),s=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(this.stateDeco,n.startState.doc,this.heightOracle.setDoc(this.state.doc),o),this.heightMap.height!=s&&(n.flags|=2);var a=o.length?this.mapViewport(this.viewport,n.changes):this.viewport;(e&&(e.range.heada.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,e));var l=!n.changes.empty||2&n.flags||a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,this.updateForViewport(),l&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,n.changes))),n.flags|=this.computeVisibleRanges(),e&&(this.scrollTarget=e),!this.mustEnforceCursorAssoc&&n.selectionSet&&n.view.lineWrapping&&n.state.selection.main.empty&&n.state.selection.main.assoc&&!n.state.facet(pue)&&(this.mustEnforceCursorAssoc=!0)}},{key:"measure",value:function(n){var e=n.contentDOM,i=window.getComputedStyle(e),r=this.heightOracle,o=i.whiteSpace;this.defaultTextDirection="rtl"==i.direction?us.RTL:us.LTR;var s=this.heightOracle.mustRefreshForWrapping(o),a=e.getBoundingClientRect(),l=s||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;var c=0,u=0,d=parseInt(i.paddingTop)||0,h=parseInt(i.paddingBottom)||0;this.paddingTop==d&&this.paddingBottom==h||(this.paddingTop=d,this.paddingBottom=h,c|=10),this.editorWidth!=n.scrollDOM.clientWidth&&(r.lineWrapping&&(l=!0),this.editorWidth=n.scrollDOM.clientWidth,c|=8);var f=(this.printing?dQe:uQe)(e,this.paddingTop),p=f.top-this.pixelViewport.top,m=f.bottom-this.pixelViewport.bottom;this.pixelViewport=f;var g=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(g!=this.inView&&(this.inView=g,g&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;var v=a.width;if(this.contentDOMWidth==v&&this.editorHeight==n.scrollDOM.clientHeight||(this.contentDOMWidth=a.width,this.editorHeight=n.scrollDOM.clientHeight,c|=8),l){var y=n.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(y)&&(s=!0),s||r.lineWrapping&&Math.abs(v-this.contentDOMWidth)>r.charWidth){var _=n.docView.measureTextSize(),C=_.lineHeight,S=_.charWidth;(s=C>0&&r.refresh(o,C,S,v/S,y))&&(n.docView.minWidth=0,c|=8)}p>0&&m>0?u=Math.max(p,m):p<0&&m<0&&(u=Math.min(p,m)),r.heightChanged=!1;var M,$=Re(this.viewports);try{for($.s();!(M=$.n()).done;){var G=M.value,R=G.from==this.viewport.from?y:n.docView.measureVisibleLineHeights(G);this.heightMap=(s?sd.empty().applyChanges(this.stateDeco,fo.empty,this.heightOracle,[new M0(0,0,0,n.state.doc.length)]):this.heightMap).updateHeight(r,0,s,new oQe(G.from,R))}}catch(U){$.e(U)}finally{$.f()}r.heightChanged&&(c|=2)}var z=!this.viewportIsAppropriate(this.viewport,u)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return z&&(this.viewport=this.getViewport(u,this.scrollTarget)),this.updateForViewport(),(2&c||z)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,n)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,n.docView.enforceCursorAssoc()),c}},{key:"visibleTop",get:function(){return this.scaler.fromDOM(this.pixelViewport.top)}},{key:"visibleBottom",get:function(){return this.scaler.fromDOM(this.pixelViewport.bottom)}},{key:"getViewport",value:function(n,e){var i=.5-Math.max(-.5,Math.min(.5,n/1e3/2)),r=this.heightMap,o=this.heightOracle,a=this.visibleBottom,l=new kS(r.lineAt(this.visibleTop-1e3*i,Wo.ByHeight,o,0,0).from,r.lineAt(a+1e3*(1-i),Wo.ByHeight,o,0,0).to);if(e){var c=e.range.head;if(cl.to){var u,d=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),h=r.lineAt(c,Wo.ByPos,o,0,0);l=new kS(r.lineAt((u="center"==e.y?(h.top+h.bottom)/2-d/2:"start"==e.y||"nearest"==e.y&&c1&&void 0!==arguments[1]?arguments[1]:0;if(!this.inView)return!0;var s=this.heightMap.lineAt(e,Wo.ByPos,this.heightOracle,0,0).top,l=this.heightMap.lineAt(i,Wo.ByPos,this.heightOracle,0,0).bottom,c=this.visibleTop,u=this.visibleBottom;return(0==e||s<=c-Math.max(10,Math.min(-r,250)))&&(i==this.state.doc.length||l>=u+Math.max(10,Math.min(r,250)))&&s>c-2e3&&l>1,a=o<<1;if(this.defaultTextDirection!=us.LTR&&!r)return[];var l,c=[],u=function q(re,L,X,Z){if(!(L-rere&&N=X.from&&oe.to<=X.to&&Math.abs(oe.from-re)fe})});if(!Y){if(L=L})){var V=e.moveToLineBoundary(en.cursor(L),!1,!0).head;V>re&&(L=V)}Y=new vj(re,L,i.gapSize(X,re,L,Z))}c.push(Y)}},d=Re(this.viewportLines);try{for(d.s();!(l=d.n()).done;){var h=l.value;if(!(h.lengthh.from&&u(h.from,m,h,f),g=this.viewport.from&&n<=this.viewport.to&&this.viewportLines.find(function(e){return e.from<=n&&e.to>=n})||m_(this.heightMap.lineAt(n,Wo.ByPos,this.heightOracle,0,0),this.scaler)}},{key:"lineBlockAtHeight",value:function(n){return m_(this.heightMap.lineAt(this.scaler.fromDOM(n),Wo.ByHeight,this.heightOracle,0,0),this.scaler)}},{key:"elementAtHeight",value:function(n){return m_(this.heightMap.blockAt(this.scaler.fromDOM(n),this.heightOracle,0,0),this.scaler)}},{key:"docHeight",get:function(){return this.scaler.toDOM(this.heightMap.height)}},{key:"contentHeight",get:function(){return this.docHeight+this.paddingTop+this.paddingBottom}}]),t}(),kS=Se(function t(n,e){ke(this,t),this.from=n,this.to=e});function fQe(t,n,e){var i=[],r=t,o=0;return Go.spans(e,t,n,{span:function(){},point:function(s,a){s>r&&(i.push({from:r,to:s}),o+=s-r),r=a}},20),r=1)return i[i.length-1].to;for(var r=Math.floor(t.total*n),o=0;;o++){var s=i[o],a=s.from,l=s.to-a;if(r<=l)return a+r;r-=l}}function DS(t,n){var e,i=0,r=Re(t.ranges);try{for(r.s();!(e=r.n()).done;){var o=e.value,s=o.from,a=o.to;if(n<=a){i+=n-s;break}i+=a-s}}catch(l){r.e(l)}finally{r.f()}return i/t.total}var lde={toDOM:function(t){return t},fromDOM:function(t){return t},scale:1},pQe=function(){function t(n,e,i){ke(this,t);var r=0,o=0,s=0;this.viewports=i.map(function(u){var d=u.from,h=u.to,f=e.lineAt(d,Wo.ByPos,n,0,0).top,p=e.lineAt(h,Wo.ByPos,n,0,0).bottom;return r+=p-f,{from:d,to:h,top:f,bottom:p,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(e.height-r);var a,l=Re(this.viewports);try{for(l.s();!(a=l.n()).done;){var c=a.value;c.domTop=s+(c.top-o)*this.scale,s=c.domBottom=c.domTop+(c.bottom-c.top),o=c.bottom}}catch(u){l.e(u)}finally{l.f()}}return Se(t,[{key:"toDOM",value:function(n){for(var e=0,i=0,r=0;;e++){var o=e-1}}),bj=pp.newName(),cde=pp.newName(),ude=pp.newName(),dde={"&light":"."+cde,"&dark":"."+ude};function _j(t,n,e){return new pp(n,{finish:function(i){return/&/.test(i)?i.replace(/&\w*/,function(r){if("&"==r)return t;if(!e||!e[r])throw new RangeError("Unsupported selector: ".concat(r));return e[r]}):t+" "+i}})}var mQe=_j("."+bj,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",left:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},dde),gQe=Se(function t(n,e,i,r){ke(this,t),this.typeOver=r,this.bounds=null,this.text="";var o=n.docView,s=o.impreciseHead,a=o.impreciseAnchor;if(n.state.readOnly&&e>-1)this.newSel=null;else if(e>-1&&(this.bounds=n.docView.domBoundsAround(e,i,0))){var l=s||a?[]:function(f){var p=[];if(f.root.activeElement!=f.contentDOM)return p;var m=f.observer.selectionRange,g=m.anchorNode,v=m.anchorOffset,y=m.focusNode,_=m.focusOffset;return g&&(p.push(new Mue(g,v)),y==g&&_==v||p.push(new Mue(y,_))),p}(n),c=new Eue(l,n.state);c.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=c.text,this.newSel=function(f,p){if(0==f.length)return null;var m=f[0].pos,g=2==f.length?f[1].pos:m;return m>-1&&g>-1?en.single(m+p,g+p):null}(l,this.bounds.from)}else{var u=n.observer.selectionRange,d=s&&s.node==u.focusNode&&s.offset==u.focusOffset||!D0(n.contentDOM,u.focusNode)?n.state.selection.main.head:n.docView.posFromDOM(u.focusNode,u.focusOffset),h=a&&a.node==u.anchorNode&&a.offset==u.anchorOffset||!D0(n.contentDOM,u.anchorNode)?n.state.selection.main.anchor:n.docView.posFromDOM(u.anchorNode,u.anchorOffset);this.newSel=en.single(h,d)}});function hde(t,n){var e,i=n.newSel,r=t.state.selection.main;if(n.bounds){var o=n.bounds,s=o.from,a=o.to,l=r.from,c=null;(8===t.inputState.lastKeyCode&&t.inputState.lastKeyTime>Date.now()-100||Zn.android&&n.text.length0&&Z>0&&R.charCodeAt(X-1)==z.charCodeAt(Z-1);)X--,Z--;return"end"==q&&(U-=X+Math.max(0,L-Math.min(X,Z))-L),X=X?L-U:0)+(Z-X),X=L):Z=Z?L-U:0)+(X-Z),Z=L),{from:L,toA:X,toB:Z}}(t.state.doc.sliceString(s,a,"\uffff"),n.text,l-s,c);u&&(Zn.chrome&&13==t.inputState.lastKeyCode&&u.toB==u.from+2&&"\uffff\uffff"==n.text.slice(u.from,u.toB)&&u.toB--,e={from:s+u.from,to:s+u.toA,insert:fo.of(n.text.slice(u.from,u.toB).split("\uffff"))})}else i&&(!t.hasFocus&&t.state.facet(wS)||i.main.eq(r))&&(i=null);if(!e&&!i)return!1;if(!e&&n.typeOver&&!r.empty&&i&&i.main.empty?e={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,r.to)}:e&&e.from>=r.from&&e.to<=r.to&&(e.from!=r.from||e.to!=r.to)&&r.to-r.from-(e.to-e.from)<=4?e={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,e.from).append(e.insert).append(t.state.doc.slice(e.to,r.to))}:(Zn.mac||Zn.android)&&e&&e.from==e.to&&e.from==r.head-1&&/^\. ?$/.test(e.insert.toString())&&"off"==t.contentDOM.getAttribute("autocorrect")?(i&&2==e.insert.length&&(i=en.single(i.main.anchor-1,i.main.head-1)),e={from:r.from,to:r.to,insert:fo.of([" "])}):Zn.chrome&&e&&e.from==e.to&&e.from==r.head&&"\n "==e.insert.toString()&&t.lineWrapping&&(i&&(i=en.single(i.main.anchor-1,i.main.head-1)),e={from:r.from,to:r.to,insert:fo.of([" "])}),e){var d=t.state;if(Zn.ios&&t.inputState.flushIOSKey(t)||Zn.android&&(e.from==r.from&&e.to==r.to&&1==e.insert.length&&2==e.insert.lines&&A0(t.contentDOM,"Enter",13)||e.from==r.from-1&&e.to==r.to&&0==e.insert.length&&A0(t.contentDOM,"Backspace",8)||e.from==r.from&&e.to==r.to+1&&0==e.insert.length&&A0(t.contentDOM,"Delete",46)))return!0;var h,f=e.insert.toString();if(t.state.facet(due).some(function(R){return R(t,e.from,e.to,f)}))return!0;if(t.inputState.composing>=0&&t.inputState.composing++,e.from>=r.from&&e.to<=r.to&&e.to-e.from>=(r.to-r.from)/3&&(!i||i.main.empty&&i.main.from==e.from+e.insert.length)&&t.inputState.composing<0){var p=r.frome.to?d.sliceDoc(e.to,r.to):"";h=d.replaceSelection(t.state.toText(p+e.insert.sliceString(0,void 0,t.state.lineBreak)+m))}else{var g=d.changes(e),v=i&&!d.selection.main.eq(i.main)&&i.main.to<=g.newLength?i.main:void 0;if(d.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=r.to&&e.to>=r.to-10){var y=t.state.sliceDoc(e.from,e.to),_=Nue(t)||t.state.doc.lineAt(r.head),C=r.to-e.to,S=r.to-r.from;h=d.changeByRange(function(R){if(R.from==r.from&&R.to==r.to)return{changes:g,range:v||R.map(g)};var z=R.to-C,U=z-y.length;if(R.to-R.from!=S||t.state.sliceDoc(U,z)!=y||_&&R.to>=_.from&&R.from<=_.to)return{range:R};var q=d.changes({from:U,to:z,insert:e.insert}),re=R.to-r.to;return{changes:q,range:v?en.range(Math.max(0,v.anchor+re),Math.max(0,v.head+re)):R.map(q)}})}else h={changes:g,selection:v&&d.selection.replaceRange(v)}}var M="input.type";return t.composing&&(M+=".compose",t.inputState.compositionFirstChange&&(M+=".start",t.inputState.compositionFirstChange=!1)),t.dispatch(h,{scrollIntoView:!0,userEvent:M}),!0}if(i&&!i.main.eq(r)){var $=!1,G="select";return t.inputState.lastSelectionTime>Date.now()-50&&("select"==t.inputState.lastSelectionOrigin&&($=!0),G=t.inputState.lastSelectionOrigin),t.dispatch({selection:i,scrollIntoView:$,userEvent:G}),!0}return!1}var vQe={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},xj=Zn.ie&&Zn.ie_version<=11,yQe=function(){function t(n){var e=this;ke(this,t),this.view=n,this.active=!1,this.selectionRange=new NKe,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.resizeContent=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=n.contentDOM,this.observer=new MutationObserver(function(i){var r,o=Re(i);try{for(o.s();!(r=o.n()).done;)e.queue.push(r.value)}catch(a){o.e(a)}finally{o.f()}(Zn.ie&&Zn.ie_version<=11||Zn.ios&&n.composing)&&i.some(function(a){return"childList"==a.type&&a.removedNodes.length||"characterData"==a.type&&a.oldValue.length>a.target.nodeValue.length})?e.flushSoon():e.flush()}),xj&&(this.onCharData=function(i){e.queue.push({target:i.target,type:"characterData",oldValue:i.prevValue}),e.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver(function(){var i;(null===(i=e.view.docView)||void 0===i?void 0:i.lastUpdate)0&&i[i.length-1].intersectionRatio>0!=e.intersecting&&(e.intersecting=!e.intersecting,e.intersecting!=e.view.inView&&e.onScrollChanged(document.createEvent("Event")))},{}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(function(i){i.length>0&&i[i.length-1].intersectionRatio>0&&e.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}return Se(t,[{key:"onScrollChanged",value:function(n){this.view.inputState.runScrollHandlers(this.view,n),this.intersecting&&this.view.measure()}},{key:"onScroll",value:function(n){this.intersecting&&this.flush(!1),this.onScrollChanged(n)}},{key:"onResize",value:function(){var n=this;this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(function(){n.resizeTimeout=-1,n.view.requestMeasure()},50))}},{key:"onPrint",value:function(){var n=this;this.view.viewState.printing=!0,this.view.measure(),setTimeout(function(){n.view.viewState.printing=!1,n.view.requestMeasure()},500)}},{key:"updateGaps",value:function(n){if(this.gapIntersection&&(n.length!=this.gaps.length||this.gaps.some(function(o,s){return o!=n[s]}))){this.gapIntersection.disconnect();var e,i=Re(n);try{for(i.s();!(e=i.n()).done;)this.gapIntersection.observe(e.value)}catch(o){i.e(o)}finally{i.f()}this.gaps=n}}},{key:"onSelectionChange",value:function(n){var e=this.selectionChanged;if(this.readSelectionRange()&&!this.delayedAndroidKey){var i=this.view,r=this.selectionRange;if(i.state.facet(wS)?i.root.activeElement==this.dom:vS(i.dom,r)){var o=r.anchorNode&&i.docView.nearest(r.anchorNode);o&&o.ignoreEvent(n)?e||(this.selectionChanged=!1):(Zn.ie&&Zn.ie_version<=11||Zn.android&&Zn.chrome)&&!i.state.selection.main.empty&&r.focusNode&&yS(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}}}},{key:"readSelectionRange",value:function(){var n=this.view,e=Zn.safari&&11==n.root.nodeType&&function(r){for(var o=r.activeElement;o&&o.shadowRoot;)o=o.shadowRoot.activeElement;return o}(this.dom.ownerDocument)==this.dom&&function(r){var o=null;function s(f){f.preventDefault(),f.stopImmediatePropagation(),o=f.getTargetRanges()[0]}if(r.contentDOM.addEventListener("beforeinput",s,!0),r.dom.ownerDocument.execCommand("indent"),r.contentDOM.removeEventListener("beforeinput",s,!0),!o)return null;var a=o.startContainer,l=o.startOffset,c=o.endContainer,u=o.endOffset,d=r.docView.domAtPos(r.state.selection.main.anchor);if(yS(d.node,d.offset,c,u)){var h=[c,u,a,l];a=h[0],l=h[1],c=h[2],u=h[3]}return{anchorNode:a,anchorOffset:l,focusNode:c,focusOffset:u}}(this.view)||gS(n.root);if(!e||this.selectionRange.eq(e))return!1;var i=vS(this.dom,e);return i&&!this.selectionChanged&&n.inputState.lastFocusTime>Date.now()-200&&n.inputState.lastTouchTime=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}},{key:"processRecords",value:function(){var n,e=this.queue,i=Re(this.observer.takeRecords());try{for(i.s();!(n=i.n()).done;)e.push(n.value)}catch(h){i.e(h)}finally{i.f()}e.length&&(this.queue=[]);var o,s=-1,a=-1,l=!1,c=Re(e);try{for(c.s();!(o=c.n()).done;){var d=this.readMutation(o.value);d&&(d.typeOver&&(l=!0),-1==s?(s=d.from,a=d.to):(s=Math.min(d.from,s),a=Math.max(d.to,a)))}}catch(h){c.e(h)}finally{c.f()}return{from:s,to:a,typeOver:l}}},{key:"readChange",value:function(){var n=this.processRecords(),e=n.from,i=n.to,r=n.typeOver,o=this.selectionChanged&&vS(this.dom,this.selectionRange);return e<0&&!o?null:(e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1,new gQe(this.view,e,i,r))}},{key:"flush",value:function(){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&this.readSelectionRange();var e=this.readChange();if(!e)return!1;var i=this.view.state,r=hde(this.view,e);return this.view.state==i&&this.view.update([]),r}},{key:"readMutation",value:function(n){var e=this.view.docView.nearest(n.target);if(!e||e.ignoreMutation(n))return null;if(e.markDirty("attributes"==n.type),"attributes"==n.type&&(e.dirty|=4),"childList"==n.type){var i=fde(e,n.previousSibling||n.target.previousSibling,-1),r=fde(e,n.nextSibling||n.target.nextSibling,1);return{from:i?e.posAfter(i):e.posAtStart,to:r?e.posBefore(r):e.posAtEnd,typeOver:!1}}return"characterData"==n.type?{from:e.posAtStart,to:e.posAtEnd,typeOver:n.target.nodeValue==n.oldValue}:null}},{key:"setWindow",value:function(n){n!=this.win&&(this.removeWindowListeners(this.win),this.win=n,this.addWindowListeners(this.win))}},{key:"addWindowListeners",value:function(n){n.addEventListener("resize",this.onResize),n.addEventListener("beforeprint",this.onPrint),n.addEventListener("scroll",this.onScroll),n.document.addEventListener("selectionchange",this.onSelectionChange)}},{key:"removeWindowListeners",value:function(n){n.removeEventListener("scroll",this.onScroll),n.removeEventListener("resize",this.onResize),n.removeEventListener("beforeprint",this.onPrint),n.document.removeEventListener("selectionchange",this.onSelectionChange)}},{key:"destroy",value:function(){var n,e,i,r;this.stop(),null===(n=this.intersection)||void 0===n||n.disconnect(),null===(e=this.gapIntersection)||void 0===e||e.disconnect(),null===(i=this.resizeScroll)||void 0===i||i.disconnect(),null===(r=this.resizeContent)||void 0===r||r.disconnect();var o,s=Re(this.scrollTargets);try{for(s.s();!(o=s.n()).done;)o.value.removeEventListener("scroll",this.onScroll)}catch(a){s.e(a)}finally{s.f()}this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}]),t}();function fde(t,n,e){for(;n;){var i=ws.get(n);if(i&&i.parent==t)return i;var r=n.parentNode;n=r!=t.dom?r:e>0?n.nextSibling:n.previousSibling}return null}var Wn=function(){function t(){var n=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ke(this,t),this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: fixed; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),this._dispatch=e.dispatch||function(s){return n.update([s])},this.dispatch=this.dispatch.bind(this),this._root=e.root||function OKe(t){for(;t;){if(t&&(9==t.nodeType||11==t.nodeType&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}(e.parent)||document,this.viewState=new ade(e.state||No.create(e)),this.plugins=this.state.facet(h_).map(function(s){return new aj(s)});var i,r=Re(this.plugins);try{for(r.s();!(i=r.n()).done;)i.value.update(this)}catch(s){r.e(s)}finally{r.f()}this.observer=new yQe(this),this.inputState=new ZKe(this),this.inputState.ensureHandlers(this,this.plugins),this.docView=new Iue(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}return Se(t,[{key:"state",get:function(){return this.viewState.state}},{key:"viewport",get:function(){return this.viewState.viewport}},{key:"visibleRanges",get:function(){return this.viewState.visibleRanges}},{key:"inView",get:function(){return this.viewState.inView}},{key:"composing",get:function(){return this.inputState.composing>0}},{key:"compositionStarted",get:function(){return this.inputState.composing>=0}},{key:"root",get:function(){return this._root}},{key:"win",get:function(){return this.dom.ownerDocument.defaultView||window}},{key:"dispatch",value:function(){var n;this._dispatch(1==arguments.length&&(arguments.length<=0?void 0:arguments[0])instanceof Ql?arguments.length<=0?void 0:arguments[0]:(n=this.state).update.apply(n,arguments))}},{key:"update",value:function(n){var e=this;if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");var i,r,o=!1,s=!1,a=this.state,l=Re(n);try{for(l.s();!(r=l.n()).done;){var c=r.value;if(c.startState!=a)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");a=c.state}}catch(R){l.e(R)}finally{l.f()}if(this.destroyed)this.viewState.state=a;else{var u=this.hasFocus,d=0,h=null;n.some(function(R){return R.annotation(tde)})?(this.inputState.notifiedFocused=u,d=1):u!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=u,(h=nde(a,u))||(d=1));var f=this.observer.delayedAndroidKey,p=null;if(f?(this.observer.clearDelayedAndroidKey(),((p=this.observer.readChange())&&!this.state.doc.eq(a.doc)||!this.state.selection.eq(a.selection))&&(p=null)):this.observer.clear(),a.facet(No.phrases)!=this.state.facet(No.phrases))return this.setState(a);(i=_ue.create(this,a,n)).flags|=d;var m=this.viewState.scrollTarget;try{this.updateState=2;var g,v=Re(n);try{for(v.s();!(g=v.n()).done;){var y=g.value;if(m&&(m=m.map(y.changes)),y.scrollIntoView){var _=y.state.selection.main;m=new mue(_.empty?_:en.cursor(_.head,_.head>_.anchor?-1:1))}var C,S=Re(y.effects);try{for(S.s();!(C=S.n()).done;){var M=C.value;M.is(gue)&&(m=M.value)}}catch(R){S.e(R)}finally{S.f()}}}catch(R){v.e(R)}finally{v.f()}this.viewState.update(i,m),this.bidiCache=mde.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),o=this.docView.update(i),this.state.facet(p_)!=this.styleModules&&this.mountStyles(),s=this.updateAttrs(),this.showAnnouncements(n),this.docView.updateSelection(o,n.some(function(R){return R.isUserEvent("select.pointer")}))}finally{this.updateState=0}if(i.startState.facet(TS)!=i.state.facet(TS)&&(this.viewState.mustMeasureContent=!0),(o||s||m||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!i.empty){var $,G=Re(this.state.facet(sj));try{for(G.s();!($=G.n()).done;)(0,$.value)(i)}catch(R){G.e(R)}finally{G.f()}}(h||p)&&Promise.resolve().then(function(){h&&e.state==h.startState&&e.dispatch(h),p&&!hde(e,p)&&f.force&&A0(e.contentDOM,f.key,f.keyCode)})}}},{key:"setState",value:function(n){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)this.viewState.state=n;else{this.updateState=2;var e=this.hasFocus;try{var i,r=Re(this.plugins);try{for(r.s();!(i=r.n()).done;)i.value.destroy(this)}catch(a){r.e(a)}finally{r.f()}this.viewState=new ade(n),this.plugins=n.facet(h_).map(function(a){return new aj(a)}),this.pluginMap.clear();var o,s=Re(this.plugins);try{for(s.s();!(o=s.n()).done;)o.value.update(this)}catch(a){s.e(a)}finally{s.f()}this.docView=new Iue(this),this.inputState.ensureHandlers(this,this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}e&&this.focus(),this.requestMeasure()}}},{key:"updatePlugins",value:function(n){var e=n.startState.facet(h_),i=n.state.facet(h_);if(e!=i){var r,o=[],s=Re(i);try{for(s.s();!(r=s.n()).done;){var a=r.value,l=e.indexOf(a);if(l<0)o.push(new aj(a));else{var c=this.plugins[l];c.mustUpdate=n,o.push(c)}}}catch(g){s.e(g)}finally{s.f()}var u,d=Re(this.plugins);try{for(d.s();!(u=d.n()).done;){var h=u.value;h.mustUpdate!=n&&h.destroy(this)}}catch(g){d.e(g)}finally{d.f()}this.plugins=o,this.pluginMap.clear(),this.inputState.ensureHandlers(this,this.plugins)}else{var f,p=Re(this.plugins);try{for(p.s();!(f=p.n()).done;)f.value.mustUpdate=n}catch(g){p.e(g)}finally{p.f()}}for(var m=0;m0&&void 0!==arguments[0])||arguments[0];if(!this.destroyed){this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.measureScheduled=0,e&&this.observer.forceFlush();var i=null,r=this.scrollDOM,o=r.scrollHeight,s=r.scrollTop,l=s>o-r.clientHeight-4?o:s;try{for(var c=0;;c++){this.updateState=1;var u=this.viewport,d=this.viewState.lineBlockAtHeight(l),h=this.viewState.measure(this);if(!h&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(c>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}var f=[];if(!(4&h)){var p=[f,this.measureRequests];this.measureRequests=p[0],f=p[1]}var m=f.map(function(R){try{return R.read(n)}catch(z){return Ec(n.state,z),pde}}),g=_ue.create(this,this.state,[]),v=!1,y=!1;g.flags|=h,i?i.flags|=h:i=g,this.updateState=2,g.empty||(this.updatePlugins(g),this.inputState.update(g),this.updateAttrs(),v=this.docView.update(g));for(var _=0;_1||S<-1)&&(this.scrollDOM.scrollTop+=S,y=!0)}if(v&&this.docView.updateSelection(!0),this.viewport.from==u.from&&this.viewport.to==u.to&&!y&&0==this.measureRequests.length)break}}finally{this.updateState=0,this.measureScheduled=-1}if(i&&!i.empty){var M,$=Re(this.state.facet(sj));try{for($.s();!(M=$.n()).done;)(0,M.value)(i)}catch(R){$.e(R)}finally{$.f()}}}}},{key:"themeClasses",get:function(){return bj+" "+(this.state.facet(yj)?ude:cde)+" "+this.state.facet(TS)}},{key:"updateAttrs",value:function(){var n=this,e=gde(this,vue,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),i={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(wS)?"true":"false",class:"cm-content",style:"".concat(Zn.tabSize,": ").concat(this.state.tabSize),role:"textbox","aria-multiline":"true"};this.state.readOnly&&(i["aria-readonly"]="true"),gde(this,lj,i);var r=this.observer.ignore(function(){var o=nj(n.contentDOM,n.contentAttrs,i),s=nj(n.dom,n.editorAttrs,e);return o||s});return this.editorAttrs=e,this.contentAttrs=i,r}},{key:"showAnnouncements",value:function(n){var e,i=!0,r=Re(n);try{for(r.s();!(e=r.n()).done;){var o,s=Re(e.value.effects);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.is(t.announce)&&(i&&(this.announceDOM.textContent=""),i=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=a.value)}}catch(l){s.e(l)}finally{s.f()}}}catch(l){r.e(l)}finally{r.f()}}},{key:"mountStyles",value:function(){this.styleModules=this.state.facet(p_),pp.mount(this.root,this.styleModules.concat(mQe).reverse())}},{key:"readMeasured",value:function(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}},{key:"requestMeasure",value:function(n){var e=this;if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(function(){return e.measure()})),n){if(this.measureRequests.indexOf(n)>-1)return;if(null!=n.key)for(var i=0;ir.from?n.head-1:n.head):null;if(o){var s=t.dom.getBoundingClientRect(),a=t.textDirectionAt(r.from),l=t.posAtCoords({x:e==(a==us.LTR)?s.right-1:s.left+1,y:(o.top+o.bottom)/2});if(null!=l)return en.cursor(l,e?-1:1)}var c=od.find(t.docView,n.head);return en.cursor(c?e?c.posAtEnd:c.posAtStart:e?r.to:r.from,e?-1:1)}(this,n,e,!(arguments.length>2&&void 0!==arguments[2])||arguments[2])}},{key:"moveVertically",value:function(n,e,i){return pj(this,n,function(r,o,s,a){var l=o.head,c=s?1:-1;if(l==(s?r.state.doc.length:0))return en.cursor(l,o.assoc);var u,d=o.goalColumn,h=r.contentDOM.getBoundingClientRect(),f=r.coordsAtPos(l),p=r.documentTop;if(f)null==d&&(d=f.left-h.left),u=c<0?f.top:f.bottom;else{var m=r.viewState.lineBlockAt(l);null==d&&(d=Math.min(h.right-h.left,r.defaultCharacterWidth*(l-m.from))),u=(c<0?m.top:m.bottom)+p}for(var g=h.left+d,v=a??r.defaultLineHeight>>1,y=0;;y+=10){var _=u+(v+y)*c,C=Rue(r,{x:g,y:_},!1,c);if(_h.bottom||(c<0?Cl))return en.cursor(C,o.assoc,void 0,d)}}(this,n,e,i))}},{key:"domAtPos",value:function(n){return this.docView.domAtPos(n)}},{key:"posAtDOM",value:function(n){return this.docView.posFromDOM(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)}},{key:"posAtCoords",value:function(n){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.readMeasured(),Rue(this,n,e)}},{key:"coordsAtPos",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.readMeasured();var i=this.docView.coordsAt(n,e);if(!i||i.left==i.right)return i;var r=this.state.doc.lineAt(n),o=this.bidiSpans(r);return U4(i,o[I0.find(o,n-r.from,-1,e)].dir==us.LTR==e>0)}},{key:"defaultCharacterWidth",get:function(){return this.viewState.heightOracle.charWidth}},{key:"defaultLineHeight",get:function(){return this.viewState.heightOracle.lineHeight}},{key:"textDirection",get:function(){return this.viewState.defaultTextDirection}},{key:"textDirectionAt",value:function(n){return!this.state.facet(fue)||nthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(n))}},{key:"lineWrapping",get:function(){return this.viewState.heightOracle.lineWrapping}},{key:"bidiSpans",value:function(n){if(n.length>bQe)return Due(n.length);var e,i=this.textDirectionAt(n.from),r=Re(this.bidiCache);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(o.from==n.from&&o.dir==i)return o.order}}catch(a){r.e(a)}finally{r.f()}var s=function(a,l){var c=a.length,u=l==cj?1:2,d=l==cj?2:1;if(!a||1==u&&!VKe.test(a))return Due(c);for(var h=0,f=u,p=u;h=0;re-=3)if(hh[re+1]==-G){var L=hh[re+2],X=2&L?u:4&L?1&L?d:u:0;X&&(ds[z]=ds[hh[re]]=X),U=re;break}}else{if(189==hh.length)break;hh[U++]=z,hh[U++]=$,hh[U++]=q}else if(2==(R=ds[z])||1==R){var Z=R==u;q=Z?0:1;for(var H=U-3;H>=0;H-=3){var he=hh[H+2];if(2&he)break;if(Z)hh[H+2]|=2;else{if(4&he)break;hh[H+2]|=4}}}for(var E=0;EFe;){for(var ze=tt,ot=2!=ds[--tt];tt>Fe&&ot==(2!=ds[tt-1]);)tt--;oe.push(new I0(tt,ze,ot?2:1))}else oe.push(new I0(Fe,fe,0))}else for(var B=0;BDate.now()-3e4)&&this.root.activeElement==this.contentDOM}},{key:"focus",value:function(){var n=this;this.observer.ignore(function(){Hce(n.contentDOM),n.docView.updateSelection()})}},{key:"setRoot",value:function(n){this._root!=n&&(this._root=n,this.observer.setWindow((9==n.nodeType?n:n.ownerDocument).defaultView||window),this.mountStyles())}},{key:"destroy",value:function(){var n,e=Re(this.plugins);try{for(e.s();!(n=e.n()).done;)n.value.destroy(this)}catch(i){e.e(i)}finally{e.f()}this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}}],[{key:"scrollIntoView",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return gue.of(new mue("number"==typeof n?en.cursor(n):n,e.y,e.x,e.yMargin,e.xMargin))}},{key:"domEventHandlers",value:function(n){return ka.define(function(){return{}},{eventHandlers:n})}},{key:"theme",value:function(n,e){var i=pp.newName(),r=[TS.of(i),p_.of(_j(".".concat(i),n))];return e&&e.dark&&r.push(yj.of(!0)),r}},{key:"baseTheme",value:function(n){return k0.lowest(p_.of(_j("."+bj,n,dde)))}},{key:"findFromDOM",value:function(n){var e,i=n.querySelector(".cm-content");return(null===(e=(i&&ws.get(i)||ws.get(n))?.rootView)||void 0===e?void 0:e.view)||null}}]),t}();Wn.styleModule=p_,Wn.inputHandler=due,Wn.focusChangeEffect=hue,Wn.perLineTextDirection=fue,Wn.exceptionSink=uue,Wn.updateListener=sj,Wn.editable=wS,Wn.mouseSelectionStyle=cue,Wn.dragMovesSelection=lue,Wn.clickAddsSelectionRange=aue,Wn.decorations=f_,Wn.atomicRanges=yue,Wn.scrollMargins=bue,Wn.darkTheme=yj,Wn.contentAttributes=lj,Wn.editorAttributes=vue,Wn.lineWrapping=Wn.contentAttributes.of({class:"cm-lineWrapping"}),Wn.announce=hr.define();var bQe=4096,pde={},mde=function(){function t(n,e,i,r){ke(this,t),this.from=n,this.to=e,this.dir=i,this.order=r}return Se(t,null,[{key:"update",value:function(n,e){if(e.empty)return n;for(var i=[],r=n.length?n[n.length-1].dir:us.LTR,o=Math.max(0,n.length-10);o=0;r--){var o=i[r],s="function"==typeof o?o(t):o;s&&ej(s,e)}return e}var _Qe=Zn.mac?"mac":Zn.windows?"win":Zn.linux?"linux":"key";function ES(t,n,e){return n.altKey&&(t="Alt-"+t),n.ctrlKey&&(t="Ctrl-"+t),n.metaKey&&(t="Meta-"+t),!1!==e&&n.shiftKey&&(t="Shift-"+t),t}var wQe=k0.default(Wn.domEventHandlers({keydown:function(t,n){return bde(yde(n.state),t,n,"editor")}})),AS=Qn.define({enables:wQe}),vde=new WeakMap;function yde(t){var n=t.facet(AS),e=vde.get(n);return e||vde.set(n,e=function(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_Qe,s=Object.create(null),a=Object.create(null),l=function(M,$){var G=a[M];if(null==G)a[M]=$;else if(G!=$)throw new Error("Key binding "+M+" is used both as a regular binding and as a multi-stroke prefix")},c=function(M,$,G,R){for(var z,U,q=s[M]||(s[M]=Object.create(null)),re=$.split(/ (?!$)/).map(function(he){return function xQe(t,n){var e,i,r,o,s=t.split(/-(?!$)/),a=s[s.length-1];"Space"==a&&(a=" ");for(var l=0;l=t.viewport.to)return[];var i=Math.max(e.from,t.viewport.from),r=Math.min(e.to,t.viewport.to),o=t.textDirection==us.LTR,s=t.contentDOM,a=s.getBoundingClientRect(),l=_de(t),c=window.getComputedStyle(s.firstChild),u=a.left+parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)),d=a.right-parseInt(c.paddingRight),h=wde(t,i),f=wde(t,r),p=h.type==_o.Text?h:null,m=f.type==_o.Text?f:null;if(t.lineWrapping&&(p&&(p=xde(t,i,p)),m&&(m=xde(t,r,m))),p&&m&&p.from==m.from)return C(S(e.from,e.to,p));var g=p?S(e.from,null,p):M(h,!1),v=m?S(null,e.to,m):M(f,!0),y=[];return(p||h).to<(m||f).from-1?y.push(_(u,g.bottom,d,v.top)):g.bottomX&&he.from=F)break;Fe>E&&re(Math.max(fe,E),null==$&&fe<=X,Math.min(Fe,F),null==G&&Fe>=Z,oe.dir)}}catch(xe){V.e(xe)}finally{V.f()}if((E=Y.to+1)>=F)break}}}catch(xe){H.e(xe)}finally{H.f()}return 0==q.length&&re(X,null==$,Z,null==G,t.textDirection),{top:z,bottom:U,horizontal:q}}function M($,G){var R=a.top+(G?$.top:$.bottom);return{top:R,bottom:R,horizontal:[]}}}(n,e,i)}}]),t}();function _de(t){var n=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==us.LTR?n.left:n.right-t.scrollDOM.clientWidth)-t.scrollDOM.scrollLeft,top:n.top-t.scrollDOM.scrollTop}}function xde(t,n,e){var i=en.cursor(n);return{from:Math.max(e.from,t.moveToLineBoundary(i,!1,!0).from),to:Math.min(e.to,t.moveToLineBoundary(i,!0,!0).from),type:_o.Text}}function wde(t,n){var e=t.lineBlockAt(n);if(Array.isArray(e.type)){var i,r=Re(e.type);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.to>n||o.to==n&&(o.to==e.to||o.type==_o.Text))return o}}catch(s){r.e(s)}finally{r.f()}}return e}var kQe=function(){function t(n,e){ke(this,t),this.view=n,this.layer=e,this.drawn=[],this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=n.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),e.above&&this.dom.classList.add("cm-layer-above"),e.class&&this.dom.classList.add(e.class),this.dom.setAttribute("aria-hidden","true"),this.setOrder(n.state),n.requestMeasure(this.measureReq),e.mount&&e.mount(this.dom,n)}return Se(t,[{key:"update",value:function(n){n.startState.facet(MS)!=n.state.facet(MS)&&this.setOrder(n.state),(this.layer.update(n,this.dom)||n.geometryChanged)&&n.view.requestMeasure(this.measureReq)}},{key:"setOrder",value:function(n){for(var e=0,i=n.facet(MS);e0&&void 0!==arguments[0]?arguments[0]:{}),DQe,TQe,EQe,pue.of(!0)]}function Sde(t){return t.startState.facet(g_)!=t.state.facet(g_)}var DQe=Cde({above:!0,markers:function(t){var n,e=t.state,i=e.facet(g_),r=[],o=Re(e.selection.ranges);try{for(o.s();!(n=o.n()).done;){var s=n.value,a=s==e.selection.main;if(s.empty?!a||kde:i.drawRangeCursor){var l,c=a?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",u=s.empty?s:en.cursor(s.head,s.head>s.anchor?-1:1),d=Re(wj.forRange(t,c,u));try{for(d.s();!(l=d.n()).done;)r.push(l.value)}catch(f){d.e(f)}finally{d.f()}}}}catch(f){o.e(f)}finally{o.f()}return r},update:function(t,n){t.transactions.some(function(i){return i.selection})&&(n.style.animationName="cm-blink"==n.style.animationName?"cm-blink2":"cm-blink");var e=Sde(t);return e&&Dde(t.state,n),t.docChanged||t.selectionSet||e},mount:function(t,n){Dde(n.state,t)},class:"cm-cursorLayer"});function Dde(t,n){n.style.animationDuration=t.facet(g_).cursorBlinkRate+"ms"}var TQe=Cde({above:!1,markers:function(t){return t.state.selection.ranges.map(function(n){return n.empty?[]:wj.forRange(t,"cm-selectionBackground",n)}).reduce(function(n,e){return n.concat(e)})},update:function(t,n){return t.docChanged||t.selectionSet||t.viewportChanged||Sde(t)},class:"cm-selectionLayer"}),Tde={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};kde&&(Tde[".cm-line"].caretColor="transparent !important");var EQe=k0.highest(Wn.theme(Tde)),Ede=hr.define({map:function(t,n){return null==t?null:n.mapPos(t)}}),v_=Va.define({create:function(){return null},update:function(t,n){return null!=t&&(t=n.changes.mapPos(t)),n.effects.reduce(function(e,i){return i.is(Ede)?i.value:e},t)}}),AQe=ka.fromClass(function(){function t(n){ke(this,t),this.view=n,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}return Se(t,[{key:"update",value:function(n){var e,i=n.state.field(v_);null==i?null!=this.cursor&&(null===(e=this.cursor)||void 0===e||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(n.startState.field(v_)!=i||n.docChanged||n.geometryChanged)&&this.view.requestMeasure(this.measureReq))}},{key:"readPos",value:function(){var n=this.view.state.field(v_),e=null!=n&&this.view.coordsAtPos(n);if(!e)return null;var i=this.view.scrollDOM.getBoundingClientRect();return{left:e.left-i.left+this.view.scrollDOM.scrollLeft,top:e.top-i.top+this.view.scrollDOM.scrollTop,height:e.bottom-e.top}}},{key:"drawCursor",value:function(n){this.cursor&&(n?(this.cursor.style.left=n.left+"px",this.cursor.style.top=n.top+"px",this.cursor.style.height=n.height+"px"):this.cursor.style.left="-100000px")}},{key:"destroy",value:function(){this.cursor&&this.cursor.remove()}},{key:"setDropPos",value:function(n){this.view.state.field(v_)!=n&&this.view.dispatch({effects:Ede.of(n)})}}]),t}(),{eventHandlers:{dragover:function(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave:function(t){t.target!=this.view.contentDOM&&this.view.contentDOM.contains(t.relatedTarget)||this.setDropPos(null)},dragend:function(){this.setDropPos(null)},drop:function(){this.setDropPos(null)}}});function Ade(t,n,e,i,r){n.lastIndex=0;for(var o,s=t.iterRange(e,i),a=e;!s.next().done;a+=s.value.length)if(!s.lineBreak)for(;o=n.exec(s.value);)r(a+o.index,o)}var MQe=function(){function t(n){ke(this,t);var e=n.regexp,i=n.decoration,r=n.decorate,o=n.boundary,s=n.maxLength,a=void 0===s?1e3:s;if(!e.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=e,r)this.addMatch=function(l,c,u,d){return r(d,u,u+l[0].length,l,c)};else if("function"==typeof i)this.addMatch=function(l,c,u,d){var h=i(l,c,u);h&&d(u,u+l[0].length,h)};else{if(!i)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=function(l,c,u,d){return d(u,u+l[0].length,i)}}this.boundary=o,this.maxLength=a}return Se(t,[{key:"createDeco",value:function(n){var e,i=this,r=new Gm,o=r.add.bind(r),s=Re(function(u,d){var h=u.visibleRanges;if(1==h.length&&h[0].from==u.viewport.from&&h[0].to==u.viewport.to)return h;var f,p=[],m=Re(h);try{for(m.s();!(f=m.n()).done;){var g=f.value,v=g.from,y=g.to;v=Math.max(u.state.doc.lineAt(v).from,v-d),y=Math.min(u.state.doc.lineAt(y).to,y+d),p.length&&p[p.length-1].to>=v?p[p.length-1].to=y:p.push({from:v,to:y})}}catch(_){m.e(_)}finally{m.f()}return p}(n,this.maxLength));try{for(s.s();!(e=s.n()).done;){var a=e.value;Ade(n.state.doc,this.regexp,a.from,a.to,function(u,d){return i.addMatch(d,n,u,o)})}}catch(u){s.e(u)}finally{s.f()}return r.finish()}},{key:"updateDeco",value:function(n,e){var i=1e9,r=-1;return n.docChanged&&n.changes.iterChanges(function(o,s,a,l){l>n.view.viewport.from&&a1e3?this.createDeco(n.view):r>-1?this.updateRange(n.view,e.map(n.changes),i,r):e}},{key:"updateRange",value:function(n,e,i,r){var o,s=this,a=Re(n.visibleRanges);try{for(a.s();!(o=a.n()).done;){var l=o.value,c=Math.max(l.from,i),u=Math.min(l.to,r);u>c&&function(){var d=n.state.doc.lineAt(c),h=d.tod.from;c--)if(s.boundary.test(d.text[c-1-d.from])){f=c;break}for(;up},add:m})}()}}catch(d){a.e(d)}finally{a.f()}return e}}]),t}(),Cj=null!=/x/.unicode?"gu":"g",IQe=new RegExp("[\0-\b\n-\x1f\x7f-\x9f\xad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]",Cj),FQe={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},kj=null,IS=Qn.define({combine:function(t){var n=su(t,{render:null,specialChars:IQe,addSpecialChars:null});return(n.replaceTabs=!function(){var e;if(null==kj&&typeof document<"u"&&document.body){var i=document.body.style;kj=null!=(null!==(e=i.tabSize)&&void 0!==e?e:i.MozTabSize)}return kj||!1}())&&(n.specialChars=new RegExp("\t|"+n.specialChars.source,Cj)),n.addSpecialChars&&(n.specialChars=new RegExp(n.specialChars.source+"|"+n.addSpecialChars.source,Cj)),n}});function NQe(){return[IS.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Mde||(Mde=ka.fromClass(function(){function t(n){ke(this,t),this.view=n,this.decorations=yi.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(n.state.facet(IS)),this.decorations=this.decorator.createDeco(n)}return Se(t,[{key:"makeDecorator",value:function(n){var e=this;return new MQe({regexp:n.specialChars,decoration:function(i,r,o){var s=r.state.doc,a=Ba(i[0],0);if(9==a){var l=s.lineAt(o),c=r.state.tabSize,u=s_(l.text,c,o-l.from);return yi.replace({widget:new PQe((c-u%c)*e.view.defaultCharacterWidth)})}return e.decorationCache[a]||(e.decorationCache[a]=yi.replace({widget:new jQe(n,a)}))},boundary:n.replaceTabs?void 0:/[^]/})}},{key:"update",value:function(n){var e=n.state.facet(IS);n.startState.facet(IS)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(n.view)):this.decorations=this.decorator.updateDeco(n,this.decorations)}}]),t}(),{decorations:function(t){return t.decorations}}))]}var Mde=null,jQe=function(t){wt(e,gp);var n=Ct(e);function e(i,r){var o;return ke(this,e),(o=n.call(this)).options=i,o.code=r,o}return Se(e,[{key:"eq",value:function(i){return i.code==this.code}},{key:"toDOM",value:function(i){var l,r=(l=this.code)>=32?"\u2022":10==l?"\u2424":String.fromCharCode(9216+l),o=i.state.phrase("Control character")+" "+(FQe[this.code]||"0x"+this.code.toString(16)),s=this.options.render&&this.options.render(this.code,o,r);if(s)return s;var a=document.createElement("span");return a.textContent=r,a.title=o,a.setAttribute("aria-label",o),a.className="cm-specialChar",a}},{key:"ignoreEvent",value:function(){return!1}}]),e}(),PQe=function(t){wt(e,gp);var n=Ct(e);function e(i){var r;return ke(this,e),(r=n.call(this)).width=i,r}return Se(e,[{key:"eq",value:function(i){return i.width==this.width}},{key:"toDOM",value:function(){var i=document.createElement("span");return i.textContent="\t",i.className="cm-tab",i.style.width=this.width+"px",i}},{key:"ignoreEvent",value:function(){return!1}}]),e}(),LQe=yi.line({class:"cm-activeLine"}),RQe=ka.fromClass(function(){function t(n){ke(this,t),this.decorations=this.getDeco(n)}return Se(t,[{key:"update",value:function(n){(n.docChanged||n.selectionSet)&&(this.decorations=this.getDeco(n.view))}},{key:"getDeco",value:function(n){var e,i=-1,r=[],o=Re(n.state.selection.ranges);try{for(o.s();!(e=o.n()).done;){var a=n.lineBlockAt(e.value.head);a.from>i&&(r.push(LQe.range(a.from)),i=a.from)}}catch(l){o.e(l)}finally{o.f()}return yi.set(r)}}]),t}(),{decorations:function(t){return t.decorations}});function Ide(t,n){var s,a,l,e=t.posAtCoords({x:n.clientX,y:n.clientY},!1),i=t.state.doc.lineAt(e),r=e-i.from,o=r>2e3?-1:r==i.length?(a=n.clientX,(l=(s=t).coordsAtPos(s.viewport.from))?Math.round(Math.abs((l.left-a)/s.defaultCharacterWidth)):-1):s_(i.text,t.state.tabSize,e-i.from);return{line:i.number,col:o,off:r}}function BQe(t){var n=t?.eventFilter||function(e){return e.altKey&&0==e.button};return Wn.mouseSelectionStyle.of(function(e,i){return n(i)?function $Qe(t,n){var e=Ide(t,n),i=t.state.selection;return e?{update:function(r){if(r.docChanged){var o=r.changes.mapPos(r.startState.doc.line(e.line).from),s=r.state.doc.lineAt(o);e={line:s.number,col:e.col,off:Math.min(e.off,s.length)},i=i.map(r.changes)}},get:function(r,o,s){var a=Ide(t,r);if(!a)return i;var l=function(c,u,d){var h=Math.min(u.line,d.line),f=Math.max(u.line,d.line),p=[];if(u.off>2e3||d.off>2e3||u.col<0||d.col<0)for(var m=Math.min(u.off,d.off),g=Math.max(u.off,d.off),v=h;v<=f;v++){var y=c.doc.line(v);y.length<=g&&p.push(en.range(y.from+m,y.to+g))}else for(var _=Math.min(u.col,d.col),C=Math.max(u.col,d.col),S=h;S<=f;S++){var M=c.doc.line(S),$=V4(M.text,_,c.tabSize,!0);if($<0)p.push(en.cursor(M.to));else{var G=V4(M.text,C,c.tabSize);p.push(en.range(M.from+$,M.from+G))}}return p}(t.state,e,a);return l.length?en.create(s?l.concat(i.ranges):l):i}}:null}(e,i):null})}var VQe={Alt:[18,function(t){return t.altKey}],Control:[17,function(t){return t.ctrlKey}],Shift:[16,function(t){return t.shiftKey}],Meta:[91,function(t){return t.metaKey}]},HQe={style:"cursor: crosshair"};function zQe(){var n=Un(VQe[(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).key||"Alt"],2),e=n[0],i=n[1],r=ka.fromClass(function(){function o(s){ke(this,o),this.view=s,this.isDown=!1}return Se(o,[{key:"set",value:function(s){this.isDown!=s&&(this.isDown=s,this.view.update([]))}}]),o}(),{eventHandlers:{keydown:function(o){this.set(o.keyCode==e||i(o))},keyup:function(o){o.keyCode!=e&&i(o)||this.set(!1)},mousemove:function(o){this.set(i(o))}}});return[r,Wn.contentAttributes.of(function(o){var s;return null!==(s=o.plugin(r))&&void 0!==s&&s.isDown?HQe:null})]}var Fde=function(){function t(n,e,i){ke(this,t),this.facet=e,this.createTooltipView=i,this.input=n.state.facet(e),this.tooltips=this.input.filter(function(r){return r}),this.tooltipViews=this.tooltips.map(i)}return Se(t,[{key:"update",value:function(n){var e,i=n.state.facet(this.facet),r=i.filter(function(y){return y});if(i===this.input){var o,s=Re(this.tooltipViews);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.update&&a.update(n)}}catch(y){s.e(y)}finally{s.f()}return!1}for(var l=[],c=0;ce.lastTransaction-50&&r.length>0&&r[r.length-1].intersectionRatio<1&&e.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),n.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}return Se(t,[{key:"createContainer",value:function(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}},{key:"observeIntersection",value:function(){if(this.intersectionObserver){this.intersectionObserver.disconnect();var n,e=Re(this.manager.tooltipViews);try{for(e.s();!(n=e.n()).done;)this.intersectionObserver.observe(n.value.dom)}catch(r){e.e(r)}finally{e.f()}}}},{key:"measureSoon",value:function(){var n=this;this.measureTimeout<0&&(this.measureTimeout=setTimeout(function(){n.measureTimeout=-1,n.maybeMeasure()},50))}},{key:"update",value:function(n){n.transactions.length&&(this.lastTransaction=Date.now());var e=this.manager.update(n);e&&this.observeIntersection();var i=e||n.geometryChanged,r=n.state.facet(Sj);if(r.position!=this.position){this.position=r.position;var o,s=Re(this.manager.tooltipViews);try{for(s.s();!(o=s.n()).done;)o.value.dom.style.position=this.position}catch(u){s.e(u)}finally{s.f()}i=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();var a,l=Re(this.manager.tooltipViews);try{for(l.s();!(a=l.n()).done;)this.container.appendChild(a.value.dom)}catch(u){l.e(u)}finally{l.f()}i=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);i&&this.maybeMeasure()}},{key:"createTooltip",value:function(n){var e=n.create(this.view);if(e.dom.classList.add("cm-tooltip"),n.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){var i=document.createElement("div");i.className="cm-tooltip-arrow",e.dom.appendChild(i)}return e.dom.style.position=this.position,e.dom.style.top="-10000px",this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}},{key:"destroy",value:function(){var n,e;this.view.win.removeEventListener("resize",this.measureSoon);var i,r=Re(this.manager.tooltipViews);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.dom.remove(),null===(n=o.destroy)||void 0===n||n.call(o)}}catch(s){r.e(s)}finally{r.f()}null===(e=this.intersectionObserver)||void 0===e||e.disconnect(),clearTimeout(this.measureTimeout)}},{key:"readMeasure",value:function(){var n=this,e=this.view.dom.getBoundingClientRect();return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map(function(i,r){var o=n.manager.tooltipViews[r];return o.getCoords?o.getCoords(i.pos):n.view.coordsAtPos(i.pos)}),size:this.manager.tooltipViews.map(function(i){return i.dom.getBoundingClientRect()}),space:this.view.state.facet(Sj).tooltipSpace(this.view)}}},{key:"writeMeasure",value:function(n){for(var e,i=n.editor,r=n.space,o=[],s=0;s=Math.min(i.bottom,r.bottom)||u.rightMath.min(i.right,r.right)+.1)c.style.top="-10000px";else{var h=a.arrow?l.dom.querySelector(".cm-tooltip-arrow"):null,f=h?7:0,p=d.right-d.left,m=null!==(e=Nde.get(l))&&void 0!==e?e:d.bottom-d.top,g=l.offset||WQe,v=this.view.textDirection==us.LTR,y=d.width>r.right-r.left?v?r.left:r.right-d.width:v?Math.min(u.left-(h?14:0)+g.x,r.right-p):Math.max(r.left,u.left-p+(h?14:0)-g.x),_=!!a.above;!a.strictSide&&(_?u.top-(d.bottom-d.top)-g.yr.bottom)&&_==r.bottom-u.bottom>u.top-r.top&&(_=!_);var C=(_?u.top-r.top:r.bottom-u.bottom)-f;if(Cy&&R.topS&&(S=_?R.top-m-2-f:R.bottom+f+2)}}catch(z){G.e(z)}finally{G.f()}}"absolute"==this.position?(c.style.top=S-n.parent.top+"px",c.style.left=y-n.parent.left+"px"):(c.style.top=S+"px",c.style.left=y+"px"),h&&(h.style.left="".concat(u.left+(v?g.x:-g.x)-(y+14-7),"px")),!0!==l.overlap&&o.push({left:y,top:S,right:M,bottom:S+m}),c.classList.toggle("cm-tooltip-above",_),c.classList.toggle("cm-tooltip-below",!_),l.positioned&&l.positioned(n.space)}}}},{key:"maybeMeasure",value:function(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView))){var n,e=Re(this.manager.tooltipViews);try{for(e.s();!(n=e.n()).done;)n.value.dom.style.top="-10000px"}catch(i){e.e(i)}finally{e.f()}}}}]),t}(),{eventHandlers:{scroll:function(){this.maybeMeasure()}}}),GQe=Wn.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"".concat(7,"px"),width:"".concat(14,"px"),position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"".concat(7,"px solid transparent"),borderRight:"".concat(7,"px solid transparent")},".cm-tooltip-above &":{bottom:"-".concat(7,"px"),"&:before":{borderTop:"".concat(7,"px solid #bbb")},"&:after":{borderTop:"".concat(7,"px solid #f5f5f5"),bottom:"1px"}},".cm-tooltip-below &":{top:"-".concat(7,"px"),"&:before":{borderBottom:"".concat(7,"px solid #bbb")},"&:after":{borderBottom:"".concat(7,"px solid #f5f5f5"),top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),WQe={x:0,y:0},FS=Qn.define({enables:[Ode,GQe]}),NS=Qn.define(),qQe=function(){function t(n){var e=this;ke(this,t),this.view=n,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Fde(n,NS,function(i){return e.createHostedView(i)})}return Se(t,[{key:"createHostedView",value:function(n){var e=n.create(this.view);return e.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(e.dom),this.mounted&&e.mount&&e.mount(this.view),e}},{key:"mount",value:function(n){var e,i=Re(this.manager.tooltipViews);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.mount&&r.mount(n)}}catch(o){i.e(o)}finally{i.f()}this.mounted=!0}},{key:"positioned",value:function(n){var e,i=Re(this.manager.tooltipViews);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.positioned&&r.positioned(n)}}catch(o){i.e(o)}finally{i.f()}}},{key:"update",value:function(n){this.manager.update(n)}}],[{key:"create",value:function(n){return new t(n)}}]),t}(),XQe=FS.compute([NS],function(t){var n=t.facet(NS).filter(function(e){return e});return 0===n.length?null:{pos:Math.min.apply(Math,si(n.map(function(e){return e.pos}))),end:Math.max.apply(Math,si(n.filter(function(e){return null!=e.end}).map(function(e){return e.end}))),create:qQe.create,above:n[0].above,arrow:n.some(function(e){return e.arrow})}}),YQe=function(){function t(n,e,i,r,o){ke(this,t),this.view=n,this.source=e,this.field=i,this.setHover=r,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:n.dom,time:0},this.checkHover=this.checkHover.bind(this),n.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),n.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}return Se(t,[{key:"update",value:function(){var n=this;this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(function(){return n.startHover()},20))}},{key:"active",get:function(){return this.view.state.field(this.field)}},{key:"checkHover",value:function(){if(this.hoverTimeout=-1,!this.active){var n=Date.now()-this.lastMove.time;nr.bottom||e.xr.right+this.view.defaultCharacterWidth)){var o=this.view.bidiSpans(this.view.state.doc.lineAt(i)).find(function(c){return c.from<=i&&c.to>=i}),s=o&&o.dir==us.RTL?-1:1,a=this.source(this.view,i,e.x1&&void 0!==arguments[1]?arguments[1]:{},e=hr.define(),i=Va.define({create:function(){return null},update:function(r,o){if(r&&(n.hideOnChange&&(o.docChanged||o.selection)||n.hideOn&&n.hideOn(o,r)))return null;if(r&&o.docChanged){var s=o.changes.mapPos(r.pos,-1,Ll.TrackDel);if(null==s)return null;var a=Object.assign(Object.create(null),r);a.pos=s,null!=r.end&&(a.end=o.changes.mapPos(r.end)),r=a}var l,c=Re(o.effects);try{for(c.s();!(l=c.n()).done;){var u=l.value;u.is(e)&&(r=u.value),u.is(QQe)&&(r=null)}}catch(d){c.e(d)}finally{c.f()}return r},provide:function(r){return NS.from(r)}});return[i,ka.define(function(r){return new YQe(r,t,i,e,n.hoverTime||300)}),XQe]}var QQe=hr.define(),Pde=Qn.define({combine:function(t){var n,e,i,r=Re(t);try{for(r.s();!(i=r.n()).done;){var o=i.value;n=n||o.topContainer,e=e||o.bottomContainer}}catch(s){r.e(s)}finally{r.f()}return{topContainer:n,bottomContainer:e}}});function y_(t,n){var e=t.plugin(Lde),i=e?e.specs.indexOf(n):-1;return i>-1?e.panels[i]:null}var Lde=ka.fromClass(function(){function t(n){ke(this,t),this.input=n.state.facet(b_),this.specs=this.input.filter(function(s){return s}),this.panels=this.specs.map(function(s){return s(n)});var e=n.state.facet(Pde);this.top=new OS(n,!0,e.topContainer),this.bottom=new OS(n,!1,e.bottomContainer),this.top.sync(this.panels.filter(function(s){return s.top})),this.bottom.sync(this.panels.filter(function(s){return!s.top}));var i,r=Re(this.panels);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.dom.classList.add("cm-panel"),o.mount&&o.mount()}}catch(s){r.e(s)}finally{r.f()}}return Se(t,[{key:"update",value:function(n){var e=n.state.facet(Pde);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new OS(n.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new OS(n.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();var i=n.state.facet(b_);if(i!=this.input){var r,o=i.filter(function(C){return C}),s=[],a=[],l=[],c=[],u=Re(o);try{for(u.s();!(r=u.n()).done;){var d=r.value,h=this.specs.indexOf(d),f=void 0;h<0?(f=d(n.view),c.push(f)):(f=this.panels[h]).update&&f.update(n),s.push(f),(f.top?a:l).push(f)}}catch(C){u.e(C)}finally{u.f()}this.specs=o,this.panels=s,this.top.sync(a),this.bottom.sync(l);for(var p=0,m=c;pthis.i;){var e=n.elements.pop();n.dom.removeChild(e.dom),e.destroy()}}}]),t}(),zde=function(){function t(n,e){var i=this;ke(this,t),this.view=n,this.config=e,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");var r=function(s){i.dom.addEventListener(s,function(a){var l,c=a.target;if(c!=i.dom&&i.dom.contains(c)){for(;c.parentNode!=i.dom;)c=c.parentNode;var u=c.getBoundingClientRect();l=(u.top+u.bottom)/2}else l=a.clientY;var d=n.lineBlockAtHeight(l-n.documentTop);e.domEventHandlers[s](n,d,a)&&a.preventDefault()})};for(var o in e.domEventHandlers)r(o);this.markers=Vde(e.markers(n)),e.initialSpacer&&(this.spacer=new Ude(n,0,0,[e.initialSpacer(n)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}return Se(t,[{key:"update",value:function(n){var e=this.markers;if(this.markers=Vde(this.config.markers(n.view)),this.spacer&&this.config.updateSpacer){var i=this.config.updateSpacer(this.spacer.markers[0],n);i!=this.spacer.markers[0]&&this.spacer.update(n.view,0,0,[i])}var r=n.view.viewport;return!Go.eq(this.markers,e,r.from,r.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(n)}},{key:"destroy",value:function(){var n,e=Re(this.elements);try{for(e.s();!(n=e.n()).done;)n.value.destroy()}catch(i){e.e(i)}finally{e.f()}}}]),t}(),Ude=function(){function t(n,e,i,r){ke(this,t),this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(n,e,i,r)}return Se(t,[{key:"update",value:function(n,e,i,r){this.height!=e&&(this.dom.style.height=(this.height=e)+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),function(o,s){if(o.length!=s.length)return!1;for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:{}),Bde(),iZe]}function Gde(t){for(var n=9;ni&&(i=s,e.push(oZe.range(s)))}}catch(a){r.e(a)}finally{r.f()}return Go.of(e)}),aZe=0,Aj=Se(function t(n,e){ke(this,t),this.from=n,this.to=e}),gr=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ke(this,t),this.id=aZe++,this.perNode=!!n.perNode,this.deserialize=n.deserialize||function(){throw new Error("This node type doesn't define a deserialize function")}}return Se(t,[{key:"add",value:function(n){var e=this;if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof n&&(n=au.match(n)),function(i){var r=n(i);return void 0===r?null:[e,r]}}}]),t}();gr.closedBy=new gr({deserialize:function(t){return t.split(" ")}}),gr.openedBy=new gr({deserialize:function(t){return t.split(" ")}}),gr.group=new gr({deserialize:function(t){return t.split(" ")}}),gr.contextHash=new gr({perNode:!0}),gr.lookAhead=new gr({perNode:!0}),gr.mounted=new gr({perNode:!0});var lZe=Object.create(null),au=function(){function t(n,e,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;ke(this,t),this.name=n,this.props=e,this.id=i,this.flags=r}return Se(t,[{key:"prop",value:function(n){return this.props[n.id]}},{key:"isTop",get:function(){return(1&this.flags)>0}},{key:"isSkipped",get:function(){return(2&this.flags)>0}},{key:"isError",get:function(){return(4&this.flags)>0}},{key:"isAnonymous",get:function(){return(8&this.flags)>0}},{key:"is",value:function(n){if("string"==typeof n){if(this.name==n)return!0;var e=this.prop(gr.group);return!!e&&e.indexOf(n)>-1}return this.id==n}}],[{key:"define",value:function(n){var e=n.props&&n.props.length?Object.create(null):lZe,r=new t(n.name||"",e,n.id,(n.top?1:0)|(n.skipped?2:0)|(n.error?4:0)|(null==n.name?8:0));if(n.props){var o,s=Re(n.props);try{for(s.s();!(o=s.n()).done;){var a=o.value;if(Array.isArray(a)||(a=a(r)),a){if(a[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");e[a[0].id]=a[1]}}}catch(l){s.e(l)}finally{s.f()}}return r}},{key:"match",value:function(n){var e=Object.create(null);for(var i in n){var r,o=Re(i.split(" "));try{for(o.s();!(r=o.n()).done;)e[r.value]=n[i]}catch(a){o.e(a)}finally{o.f()}}return function(a){for(var l=a.prop(gr.group),c=-1;c<(l?l.length:0);c++){var u=e[c<0?a.name:l[c]];if(u)return u}}}}]),t}();au.none=new au("",Object.create(null),0,8);var za,cZe=function(){function t(n){ke(this,t),this.types=n;for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"cursorAt",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=PS.get(this)||this.topNode,r=new $S(i);return r.moveTo(n,e),PS.set(this,r._tree),r}},{key:"topNode",get:function(){return new w_(this,0,0,null)}},{key:"resolve",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=O0(PS.get(this)||this.topNode,n,e,!1);return PS.set(this,i),i}},{key:"resolveInner",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=O0(Wde.get(this)||this.topNode,n,e,!0);return Wde.set(this,i),i}},{key:"iterate",value:function(n){for(var e=n.enter,i=n.leave,r=n.from,o=void 0===r?0:r,s=n.to,a=void 0===s?this.length:s,l=this.cursor((n.mode||0)|za.IncludeAnonymous);;){var c=!1;if(l.from<=a&&l.to>=o&&(l.type.isAnonymous||!1!==e(l))){if(l.firstChild())continue;c=!0}for(;c&&i&&!l.type.isAnonymous&&i(l),!l.nextSibling();){if(!l.parent())return;c=!0}}}},{key:"prop",value:function(n){return n.perNode?this.props?this.props[n.id]:void 0:this.type.prop(n)}},{key:"propValues",get:function(){var n=[];if(this.props)for(var e in this.props)n.push([+e,this.props[e]]);return n}},{key:"balance",value:function(){var n=this;return this.children.length<=8?this:Fj(au.none,this.children,this.positions,0,this.children.length,0,this.length,function(i,r,o){return new t(n.type,i,r,o,n.propValues)},(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).makeTree||function(i,r,o){return new t(au.none,i,r,o)})}}],[{key:"build",value:function(n){return function hZe(t){var n,e=t.buffer,i=t.nodeSet,r=t.maxBufferLength,o=void 0===r?1024:r,s=t.reused,a=void 0===s?[]:s,l=t.minRepeatType,c=void 0===l?i.types.length:l,u=Array.isArray(e)?new uZe(e,e.length):e,d=i.types,h=0,f=0;function p(S,M,$,G,R){for(var z=u.id,U=u.start,q=u.end,re=u.size,L=f;re<0;){if(u.next(),-1==re)return $.push(a[z]),void G.push(U-S);if(-3==re)return void(h=z);if(-4==re)return void(f=z);throw new RangeError("Unrecognized record size: ".concat(re))}var Z,H,ot,he=d[z],E=U-S;if(q-U<=o&&(H=function(ot,B){var ne=u.fork(),ie=0,Ie=0,Ye=0,Le=ne.end-o,_t={size:0,start:0,skip:0};e:for(var At=ne.pos-ot;ne.pos>At;){var _n=ne.size;if(ne.id==B&&_n>=0)_t.size=ie,_t.start=Ie,_t.skip=Ye,Ye+=4,ie+=4,ne.next();else{var ci=ne.pos-_n;if(_n<0||ci=c?4:0,Fi=ne.start;for(ne.next();ne.pos>ci;){if(ne.size<0){if(-3!=ne.size)break e;on+=4}else ne.id>=c&&(on+=4);ne.next()}Ie=Fi,ie+=_n,Ye+=on}}return(B<0||ie==ot)&&(_t.size=ie,_t.start=Ie,_t.skip=Ye),_t.size>4?_t:void 0}(u.pos-M,R))){for(var F=new Uint16Array(H.size-H.skip),N=u.pos-H.size,Y=F.length;u.pos>N;)Y=v(H.start,F,Y);Z=new x_(F,q-H.start,i),E=H.start-S}else{var V=u.pos-re;u.next();for(var oe=[],fe=[],Fe=z>=c?z:-1,xe=0,tt=q;u.pos>V;)Fe>=0&&u.id==Fe&&u.size>=0?(u.end<=tt-o&&(m(oe,fe,U,xe,u.end,tt,Fe,L),xe=oe.length,tt=u.end),u.next()):p(U,V,oe,fe,Fe);if(Fe>=0&&xe>0&&xe-1&&xe>0){var ze=(ot=he,function(B,ne,ie){var Ie,Ye,Le=0,_t=B.length-1;if(_t>=0&&(Ie=B[_t])instanceof Ua){if(!_t&&Ie.type==ot&&Ie.length==ie)return Ie;(Ye=Ie.prop(gr.lookAhead))&&(Le=ne[_t]+Ie.length+Ye)}return g(ot,B,ne,ie,Le)});Z=Fj(he,oe,fe,0,oe.length,0,q-U,ze,ze)}else Z=g(he,oe,fe,q-U,L-q)}$.push(Z),G.push(E)}function m(S,M,$,G,R,z,U,q){for(var re=[],L=[];S.length>G;)re.push(S.pop()),L.push(M.pop()+$-R);S.push(g(i.types[U],re,L,z-R,q-z)),M.push(R-$)}function g(S,M,$,G){var R=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,z=arguments.length>5?arguments[5]:void 0;if(h){var U=[gr.contextHash,h];z=z?[U].concat(z):[U]}if(R>25){var q=[gr.lookAhead,R];z=z?[q].concat(z):[q]}return new Ua(S,M,$,G,z)}function v(S,M,$){var G=u.id,R=u.start,z=u.end,U=u.size;if(u.next(),U>=0&&G4)for(var re=u.pos-(U-4);u.pos>re;)$=v(S,M,$);M[--$]=q,M[--$]=z-S,M[--$]=R-S,M[--$]=G}else-3==U?h=G:-4==U&&(f=G);return $}for(var y=[],_=[];u.pos>0;)p(t.start||0,t.bufferStart||0,y,_,-1);var C=null!==(n=t.length)&&void 0!==n?n:y.length?_[0]+y[0].length:0;return new Ua(d[t.topID],y.reverse(),_.reverse(),C)}(n)}}]),t}();Ua.empty=new Ua(au.none,[],[],0);var uZe=function(){function t(n,e){ke(this,t),this.buffer=n,this.index=e}return Se(t,[{key:"id",get:function(){return this.buffer[this.index-4]}},{key:"start",get:function(){return this.buffer[this.index-3]}},{key:"end",get:function(){return this.buffer[this.index-2]}},{key:"size",get:function(){return this.buffer[this.index-1]}},{key:"pos",get:function(){return this.index}},{key:"next",value:function(){this.index-=4}},{key:"fork",value:function(){return new t(this.buffer,this.index)}}]),t}(),x_=function(){function t(n,e,i){ke(this,t),this.buffer=n,this.length=e,this.set=i}return Se(t,[{key:"type",get:function(){return au.none}},{key:"toString",value:function(){for(var n=[],e=0;e0));l=s[l+3]);return a}},{key:"slice",value:function(n,e,i,r){for(var o=this.buffer,s=new Uint16Array(e-n),a=n,l=0;a=n&&en;case 1:return e<=n&&i>n;case 2:return i>n;case 4:return!0}}function Xde(t,n){for(var e=t.childBefore(n);e;){var i=e.lastChild;if(!i||i.to!=e.to)break;i.type.isError&&i.from==i.to?(t=e,e=i.prevSibling):e=i}return t}function O0(t,n,e,i){for(var r;t.from==t.to||(e<1?t.from>=n:t.from>n)||(e>-1?t.to<=n:t.to4&&void 0!==arguments[4]?arguments[4]:0,s=this;;){for(var a=s._tree,l=a.children,c=a.positions,u=e>0?l.length:-1;n!=u;n+=e){var d=l[n],h=c[n]+s.from;if(qde(r,i,h,h+d.length))if(d instanceof x_){if(o&za.ExcludeBuffers)continue;var f=d.findChild(0,d.buffer.length,e,i-h,r);if(f>-1)return new Mj(new dZe(s,d,n,h),null,f)}else if(o&za.IncludeAnonymous||!d.type.isAnonymous||Ij(d)){var p=void 0;if(!(o&za.IgnoreMounts)&&d.props&&(p=d.prop(gr.mounted))&&!p.overlay)return new t(p.tree,h,n,s);var m=new t(d,h,n,s);return o&za.IncludeAnonymous||!m.type.isAnonymous?m:m.nextChild(e<0?d.children.length-1:0,e,i,r)}}if(o&za.IncludeAnonymous||!s.type.isAnonymous||(n=s.index>=0?s.index+e:e<0?-1:s._parent._tree.children.length,!(s=s._parent)))return null}}},{key:"firstChild",get:function(){return this.nextChild(0,1,0,4)}},{key:"lastChild",get:function(){return this.nextChild(this._tree.children.length-1,-1,0,4)}},{key:"childAfter",value:function(n){return this.nextChild(0,1,n,2)}},{key:"childBefore",value:function(n){return this.nextChild(this._tree.children.length-1,-1,n,-2)}},{key:"enter",value:function(n,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!(r&za.IgnoreOverlays)&&(i=this._tree.prop(gr.mounted))&&i.overlay){var o,s=n-this.from,a=Re(i.overlay);try{for(a.s();!(o=a.n()).done;){var l=o.value,c=l.from,u=l.to;if((e>0?c<=s:c=s:u>s))return new t(i.tree,i.overlay[0].from+this.from,-1,this)}}catch(d){a.e(d)}finally{a.f()}}return this.nextChild(0,1,n,e,r)}},{key:"nextSignificantParent",value:function(){for(var n=this;n.type.isAnonymous&&n._parent;)n=n._parent;return n}},{key:"parent",get:function(){return this._parent?this._parent.nextSignificantParent():null}},{key:"nextSibling",get:function(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}},{key:"prevSibling",get:function(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}},{key:"cursor",value:function(){return new $S(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"tree",get:function(){return this._tree}},{key:"toTree",value:function(){return this._tree}},{key:"resolve",value:function(n){return O0(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!1)}},{key:"resolveInner",value:function(n){return O0(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!0)}},{key:"enterUnfinishedNodesBefore",value:function(n){return Xde(this,n)}},{key:"getChild",value:function(n){var r=LS(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null);return r.length?r[0]:null}},{key:"getChildren",value:function(n){return LS(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}},{key:"toString",value:function(){return this._tree.toString()}},{key:"node",get:function(){return this}},{key:"matchContext",value:function(n){return RS(this,n)}}]),t}();function LS(t,n,e,i){var r=t.cursor(),o=[];if(!r.firstChild())return o;if(null!=e)for(;!r.type.is(e);)if(!r.nextSibling())return o;for(;;){if(null!=i&&r.type.is(i))return o;if(r.type.is(n)&&o.push(r.node),!r.nextSibling())return null==i?o:[]}}function RS(t,n){for(var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.length-1,i=t.parent;e>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(n[e]&&n[e]!=i.name)return!1;e--}}return!0}var dZe=Se(function t(n,e,i,r){ke(this,t),this.parent=n,this.buffer=e,this.index=i,this.start=r}),Mj=function(){function t(n,e,i){ke(this,t),this.context=n,this._parent=e,this.index=i,this.type=n.buffer.set.types[n.buffer.buffer[i]]}return Se(t,[{key:"name",get:function(){return this.type.name}},{key:"from",get:function(){return this.context.start+this.context.buffer.buffer[this.index+1]}},{key:"to",get:function(){return this.context.start+this.context.buffer.buffer[this.index+2]}},{key:"child",value:function(n,e,i){var r=this.context.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],n,e-this.context.start,i);return o<0?null:new t(this.context,this,o)}},{key:"firstChild",get:function(){return this.child(1,0,4)}},{key:"lastChild",get:function(){return this.child(-1,0,4)}},{key:"childAfter",value:function(n){return this.child(1,n,2)}},{key:"childBefore",value:function(n){return this.child(-1,n,-2)}},{key:"enter",value:function(n,e){if((arguments.length>2&&void 0!==arguments[2]?arguments[2]:0)&za.ExcludeBuffers)return null;var r=this.context.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],e>0?1:-1,n-this.context.start,e);return o<0?null:new t(this.context,this,o)}},{key:"parent",get:function(){return this._parent||this.context.parent.nextSignificantParent()}},{key:"externalSibling",value:function(n){return this._parent?null:this.context.parent.nextChild(this.context.index+n,n,0,4)}},{key:"nextSibling",get:function(){var n=this.context.buffer,e=n.buffer[this.index+3];return e<(this._parent?n.buffer[this._parent.index+3]:n.buffer.length)?new t(this.context,this._parent,e):this.externalSibling(1)}},{key:"prevSibling",get:function(){var n=this.context.buffer,e=this._parent?this._parent.index+4:0;return this.index==e?this.externalSibling(-1):new t(this.context,this._parent,n.findChild(e,this.index,-1,0,4))}},{key:"cursor",value:function(){return new $S(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"tree",get:function(){return null}},{key:"toTree",value:function(){var n=[],e=[],i=this.context.buffer,r=this.index+4,o=i.buffer[this.index+3];return o>r&&(n.push(i.slice(r,o,i.buffer[this.index+1],i.buffer[this.index+2])),e.push(0)),new Ua(this.type,n,e,this.to-this.from)}},{key:"resolve",value:function(n){return O0(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!1)}},{key:"resolveInner",value:function(n){return O0(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!0)}},{key:"enterUnfinishedNodesBefore",value:function(n){return Xde(this,n)}},{key:"toString",value:function(){return this.context.buffer.childString(this.index)}},{key:"getChild",value:function(n){var r=LS(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null);return r.length?r[0]:null}},{key:"getChildren",value:function(n){return LS(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}},{key:"node",get:function(){return this}},{key:"matchContext",value:function(n){return RS(this,n)}}]),t}(),$S=function(){function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(ke(this,t),this.mode=e,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,n instanceof w_)this.yieldNode(n);else{this._tree=n.context.parent,this.buffer=n.context;for(var i=n._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=n,this.yieldBuf(n.index)}}return Se(t,[{key:"name",get:function(){return this.type.name}},{key:"yieldNode",value:function(n){return!!n&&(this._tree=n,this.type=n.type,this.from=n.from,this.to=n.to,!0)}},{key:"yieldBuf",value:function(n,e){this.index=n;var i=this.buffer,r=i.start,o=i.buffer;return this.type=e||o.set.types[o.buffer[n]],this.from=r+o.buffer[n+1],this.to=r+o.buffer[n+2],!0}},{key:"yield",value:function(n){return!!n&&(n instanceof w_?(this.buffer=null,this.yieldNode(n)):(this.buffer=n.context,this.yieldBuf(n.index,n.type)))}},{key:"toString",value:function(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}},{key:"enterChild",value:function(n,e,i){if(!this.buffer)return this.yield(this._tree.nextChild(n<0?this._tree._tree.children.length-1:0,n,e,i,this.mode));var r=this.buffer.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],n,e-this.buffer.start,i);return!(o<0)&&(this.stack.push(this.index),this.yieldBuf(o))}},{key:"firstChild",value:function(){return this.enterChild(1,0,4)}},{key:"lastChild",value:function(){return this.enterChild(-1,0,4)}},{key:"childAfter",value:function(n){return this.enterChild(1,n,2)}},{key:"childBefore",value:function(n){return this.enterChild(-1,n,-2)}},{key:"enter",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.mode;return this.buffer?!(i&za.ExcludeBuffers)&&this.enterChild(1,n,e):this.yield(this._tree.enter(n,e,i))}},{key:"parent",value:function(){if(!this.buffer)return this.yieldNode(this.mode&za.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());var n=this.mode&za.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(n)}},{key:"sibling",value:function(n){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+n,n,0,4,this.mode));var e=this.buffer.buffer,i=this.stack.length-1;if(n<0){var r=i<0?0:this.stack[i]+4;if(this.index!=r)return this.yieldBuf(e.findChild(r,this.index,-1,0,4))}else{var o=e.buffer[this.index+3];if(o<(i<0?e.buffer.length:e.buffer[this.stack[i]+3]))return this.yieldBuf(o)}return i<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+n,n,0,4,this.mode))}},{key:"nextSibling",value:function(){return this.sibling(1)}},{key:"prevSibling",value:function(){return this.sibling(-1)}},{key:"atLastNode",value:function(n){var e,i,r=this.buffer;if(r){if(n>0){if(this.index-1)for(var l=e+n,c=n<0?-1:i._tree.children.length;l!=c;l+=n){var u=i._tree.children[l];if(this.mode&za.IncludeAnonymous||u instanceof x_||!u.type.isAnonymous||Ij(u))return!1}}return!0}},{key:"move",value:function(n,e){if(e&&this.enterChild(n,0,4))return!0;for(;;){if(this.sibling(n))return!0;if(this.atLastNode(n)||!this.parent())return!1}}},{key:"next",value:function(){return this.move(1,!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"prev",value:function(){return this.move(-1,!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"moveTo",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(this.from==this.to||(e<1?this.from>=n:this.from>n)||(e>-1?this.to<=n:this.to=0;){for(var s=n;s;s=s._parent)if(s.index==r){if(r==this.index)return s;e=s,i=o+1;break e}r=this.stack[--o]}for(var a=i;a=0;o--){if(o<0)return RS(this.node,n,r);var s=i[e.buffer[this.stack[o]]];if(!s.isAnonymous){if(n[r]&&n[r]!=s.name)return!1;r--}}return!0}}]),t}();function Ij(t){return t.children.some(function(n){return n instanceof x_||!n.type.isAnonymous||Ij(n)})}var Yde=new WeakMap;function BS(t,n){if(!t.isAnonymous||n instanceof x_||n.type!=t)return 1;var e=Yde.get(n);if(null==e){e=1;var i,r=Re(n.children);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.type!=t||!(o instanceof Ua)){e=1;break}e+=BS(t,o)}}catch(s){r.e(s)}finally{r.f()}Yde.set(n,e)}return e}function Fj(t,n,e,i,r,o,s,a,l){for(var c=0,u=i;u=d)break;$+=G}if(C==S+1){if($>d){var R=m[S];p(R.children,R.positions,0,R.children.length,g[S]+_);continue}h.push(m[S])}else h.push(Fj(t,m,g,S,C,M,g[C-1]+m[C-1].length-M,null,l));f.push(M+_-o)}}(n,e,i,r,0),(a||l)(h,f,s)}var VS=function(){function t(n,e,i,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];ke(this,t),this.from=n,this.to=e,this.tree=i,this.offset=r,this.open=(o?1:0)|(s?2:0)}return Se(t,[{key:"openStart",get:function(){return(1&this.open)>0}},{key:"openEnd",get:function(){return(2&this.open)>0}}],[{key:"addTree",value:function(n){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=[new t(0,n.length,n,0,!1,arguments.length>2&&void 0!==arguments[2]&&arguments[2])],s=Re(i);try{for(s.s();!(e=s.n()).done;){var a=e.value;a.to>n.length&&o.push(a)}}catch(l){s.e(l)}finally{s.f()}return o}},{key:"applyChanges",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:128;if(!e.length)return n;for(var r=[],o=1,s=n.length?n[0]:null,a=0,l=0,c=0;;a++){var u=a=i)for(;s&&s.from=h.from||d<=h.to||c){var f=Math.max(h.from,l)-c,p=Math.min(h.to,d)-c;h=f>=p?null:new t(f,p,h.tree,h.offset+c,a>0,!!u)}if(h&&r.push(h),s.to>d)break;s=o-1?e:Kde.get(e.base||e,e.modified.concat(n).sort(function(i,r){return i.id-r.id}))}}}]),t}(),mZe=0,Kde=function(){function t(){ke(this,t),this.instances=[],this.id=mZe++}return Se(t,null,[{key:"get",value:function(n,e){if(!e.length)return n;var i=e[0].instances.find(function(m){return m.base==n&&(g=e).length==(v=m.modified).length&&g.every(function(y,_){return y==v[_]});var g,v});if(i)return i;var r,o=[],s=new yp(o,n,e),a=Re(e);try{for(a.s();!(r=a.n()).done;)r.value.instances.push(s)}catch(m){a.e(m)}finally{a.f()}var l,c=Qde(e),u=Re(n.set);try{for(u.s();!(l=u.n()).done;){var d,h=l.value,f=Re(c);try{for(f.s();!(d=f.n()).done;)o.push(t.get(h,d.value))}catch(m){f.e(m)}finally{f.f()}}}catch(m){u.e(m)}finally{u.f()}return s}}]),t}();function Qde(t){for(var n=[t],e=0;e0&&u+3==s.length){l=1;break}var d=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(c);if(!d)throw new RangeError("Invalid path: "+s);if(a.push("*"==d[0]?"":'"'==d[0][0]?JSON.parse(d[0]):d[0]),(u+=d[0].length)==s.length)break;var h=s[u++];if(u==s.length&&"!"==h){l=0;break}if("/"!=h)throw new RangeError("Invalid path: "+s);c=s.slice(u)}var f=a.length-1,p=a[f];if(!p)throw new RangeError("Invalid path: "+s);var m=new gZe(i,l,f>0?a.slice(0,f):null);n[p]=m.sort(n[p])}}}catch(g){o.e(g)}finally{o.f()}}return ehe.add(n)}var ehe=new gr,gZe=function(){function t(n,e,i,r){ke(this,t),this.tags=n,this.mode=e,this.context=i,this.next=r}return Se(t,[{key:"sort",value:function(n){return!n||n.depth3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t.length,o=new bZe(i,Array.isArray(n)?n:[n],e);o.highlightRange(t.cursor(),i,r,"",o.highlighters),o.flush(r)}var Nj,bZe=function(){function t(n,e,i){ke(this,t),this.at=n,this.highlighters=e,this.span=i,this.class=""}return Se(t,[{key:"startSpan",value:function(n,e){e!=this.class&&(this.flush(n),n>this.at&&(this.at=n),this.class=e)}},{key:"flush",value:function(n){n>this.at&&this.class&&this.span(this.at,n,this.class)}},{key:"highlightRange",value:function(n,e,i,r,o){var s=n.type,a=n.from,l=n.to;if(!(a>=i||l<=e)){s.isTop&&(o=this.highlighters.filter(function($){return!$.scope||$.scope(s)}));for(var c=r,u=s.prop(ehe),d=!1;u;){if(!u.context||n.matchContext(u.context)){var h=vZe(o,u.tags);h&&(c&&(c+=" "),c+=h,1==u.mode?r+=(r?" ":"")+h:0==u.mode&&(d=!0));break}u=u.next}if(this.startSpan(n.from,c),!d){var f=n.tree&&n.tree.prop(gr.mounted);if(f&&f.overlay){for(var p=n.node.enter(f.overlay[0].from+a,1),m=this.highlighters.filter(function($){return!$.scope||$.scope(f.tree.type)}),g=n.firstChild(),v=0,y=a;;v++){var _=v=C)&&n.nextSibling()););if(!_||C>i)break;(y=_.to+a)>e&&(this.highlightRange(p.cursor(),Math.max(e,_.from+a),Math.min(i,y),r,m),this.startSpan(y,c))}g&&n.parent()}else if(n.firstChild()){do{if(!(n.to<=e)){if(n.from>=i)break;this.highlightRange(n,e,i,r,o),this.startSpan(Math.min(i,n.to),c)}}while(n.nextSibling());n.parent()}}}}}]),t}(),kn=yp.define,HS=kn(),bp=kn(),nhe=kn(bp),ihe=kn(bp),_p=kn(),zS=kn(_p),Oj=kn(_p),mh=kn(),Xm=kn(mh),gh=kn(),vh=kn(),jj=kn(),C_=kn(jj),US=kn(),fn={comment:HS,lineComment:kn(HS),blockComment:kn(HS),docComment:kn(HS),name:bp,variableName:kn(bp),typeName:nhe,tagName:kn(nhe),propertyName:ihe,attributeName:kn(ihe),className:kn(bp),labelName:kn(bp),namespace:kn(bp),macroName:kn(bp),literal:_p,string:zS,docString:kn(zS),character:kn(zS),attributeValue:kn(zS),number:Oj,integer:kn(Oj),float:kn(Oj),bool:kn(_p),regexp:kn(_p),escape:kn(_p),color:kn(_p),url:kn(_p),keyword:gh,self:kn(gh),null:kn(gh),atom:kn(gh),unit:kn(gh),modifier:kn(gh),operatorKeyword:kn(gh),controlKeyword:kn(gh),definitionKeyword:kn(gh),moduleKeyword:kn(gh),operator:vh,derefOperator:kn(vh),arithmeticOperator:kn(vh),logicOperator:kn(vh),bitwiseOperator:kn(vh),compareOperator:kn(vh),updateOperator:kn(vh),definitionOperator:kn(vh),typeOperator:kn(vh),controlOperator:kn(vh),punctuation:jj,separator:kn(jj),bracket:C_,angleBracket:kn(C_),squareBracket:kn(C_),paren:kn(C_),brace:kn(C_),content:mh,heading:Xm,heading1:kn(Xm),heading2:kn(Xm),heading3:kn(Xm),heading4:kn(Xm),heading5:kn(Xm),heading6:kn(Xm),contentSeparator:kn(mh),list:kn(mh),quote:kn(mh),emphasis:kn(mh),strong:kn(mh),link:kn(mh),monospace:kn(mh),strikethrough:kn(mh),inserted:kn(),deleted:kn(),changed:kn(),invalid:kn(),meta:US,documentMeta:kn(US),annotation:kn(US),processingInstruction:kn(US),definition:yp.defineModifier(),constant:yp.defineModifier(),function:yp.defineModifier(),standard:yp.defineModifier(),local:yp.defineModifier(),special:yp.defineModifier()};the([{tag:fn.link,class:"tok-link"},{tag:fn.heading,class:"tok-heading"},{tag:fn.emphasis,class:"tok-emphasis"},{tag:fn.strong,class:"tok-strong"},{tag:fn.keyword,class:"tok-keyword"},{tag:fn.atom,class:"tok-atom"},{tag:fn.bool,class:"tok-bool"},{tag:fn.url,class:"tok-url"},{tag:fn.labelName,class:"tok-labelName"},{tag:fn.inserted,class:"tok-inserted"},{tag:fn.deleted,class:"tok-deleted"},{tag:fn.literal,class:"tok-literal"},{tag:fn.string,class:"tok-string"},{tag:fn.number,class:"tok-number"},{tag:[fn.regexp,fn.escape,fn.special(fn.string)],class:"tok-string2"},{tag:fn.variableName,class:"tok-variableName"},{tag:fn.local(fn.variableName),class:"tok-variableName tok-local"},{tag:fn.definition(fn.variableName),class:"tok-variableName tok-definition"},{tag:fn.special(fn.variableName),class:"tok-variableName2"},{tag:fn.definition(fn.propertyName),class:"tok-propertyName tok-definition"},{tag:fn.typeName,class:"tok-typeName"},{tag:fn.namespace,class:"tok-namespace"},{tag:fn.className,class:"tok-className"},{tag:fn.macroName,class:"tok-macroName"},{tag:fn.propertyName,class:"tok-propertyName"},{tag:fn.operator,class:"tok-operator"},{tag:fn.comment,class:"tok-comment"},{tag:fn.meta,class:"tok-meta"},{tag:fn.invalid,class:"tok-invalid"},{tag:fn.punctuation,class:"tok-punctuation"}]);var j0=new gr,_Ze=new gr,ad=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";ke(this,t),this.data=n,this.name=r,No.prototype.hasOwnProperty("tree")||Object.defineProperty(No.prototype,"tree",{get:function(){return hl(this)}}),this.parser=e,this.extension=[xp.of(this),No.languageData.of(function(o,s,a){var l=rhe(o,s,a),c=l.type.prop(j0);if(!c)return[];var u=o.facet(c),d=l.type.prop(_Ze);if(d){var h,f=l.resolve(s-l.from,a),p=Re(d);try{for(p.s();!(h=p.n()).done;){var m=h.value;if(m.test(f,o)){var g=o.facet(m.facet);return"replace"==m.type?g:g.concat(u)}}}catch(v){p.e(v)}finally{p.f()}}return u})].concat(i)}return Se(t,[{key:"isActiveAt",value:function(n,e){return rhe(n,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1).type.prop(j0)==this.data}},{key:"findRegions",value:function(n){var e=this,i=n.facet(xp);if(i?.data==this.data)return[{from:0,to:n.doc.length}];if(!i||!i.allowsNesting)return[];var r=[];return function o(s,a){if(s.prop(j0)!=e.data){var l=s.prop(gr.mounted);if(l){if(l.tree.prop(j0)==e.data){if(l.overlay){var c,u=Re(l.overlay);try{for(u.s();!(c=u.n()).done;){var d=c.value;r.push({from:d.from+a,to:d.to+a})}}catch(m){u.e(m)}finally{u.f()}}else r.push({from:a,to:a+s.length});return}if(l.overlay){var h=r.length;if(o(l.tree,l.overlay[0].from+a),r.length>h)return}}for(var f=0;f=this.cursorPos?this.doc.sliceString(n,e):this.string.slice(n-i,e-i)}}]),t}(),k_=null,CZe=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0;ke(this,t),this.parser=n,this.state=e,this.fragments=i,this.tree=r,this.treeLen=o,this.viewport=s,this.skipped=a,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}return Se(t,[{key:"startParse",value:function(){return this.parser.startParse(new wZe(this.state.doc),this.fragments)}},{key:"work",value:function(n,e){var i=this;return null!=e&&e>=this.state.doc.length&&(e=void 0),this.tree!=Ua.empty&&this.isDone(e??this.state.doc.length)?(this.takeTree(),!0):this.withContext(function(){var r;if("number"==typeof n){var o=Date.now()+n;n=function(){return Date.now()>o}}for(i.parse||(i.parse=i.startParse()),null!=e&&(null==i.parse.stoppedAt||i.parse.stoppedAt>e)&&e=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>n)&&this.parse.stopAt(n),this.withContext(function(){for(;!(e=i.parse.advance()););}),this.treeLen=n,this.tree=e,this.fragments=this.withoutTempSkipped(VS.addTree(this.tree,this.fragments,!0)),this.parse=null)}},{key:"withContext",value:function(n){var e=k_;k_=this;try{return n()}finally{k_=e}}},{key:"withoutTempSkipped",value:function(n){for(var e;e=this.tempSkipped.pop();)n=ohe(n,e.from,e.to);return n}},{key:"changes",value:function(n,e){var i=this.fragments,r=this.tree,o=this.treeLen,s=this.viewport,a=this.skipped;if(this.takeTree(),!n.empty){var l=[];if(n.iterChangedRanges(function(p,m,g,v){return l.push({fromA:p,toA:m,fromB:g,toB:v})}),i=VS.applyChanges(i,l),r=Ua.empty,o=0,s={from:n.mapPos(s.from,-1),to:n.mapPos(s.to,1)},this.skipped.length){a=[];var c,u=Re(this.skipped);try{for(u.s();!(c=u.n()).done;){var d=c.value,h=n.mapPos(d.from,1),f=n.mapPos(d.to,-1);hn.from&&(this.fragments=ohe(this.fragments,o,s),this.skipped.splice(i--,1))}return!(this.skipped.length>=e||(this.reset(),0))}},{key:"reset",value:function(){this.parse&&(this.takeTree(),this.parse=null)}},{key:"skipUntilInView",value:function(n,e){this.skipped.push({from:n,to:e})}},{key:"isDone",value:function(n){n=Math.min(n,this.state.doc.length);var e=this.fragments;return this.treeLen>=n&&e.length&&0==e[0].from&&e[0].to>=n}}],[{key:"create",value:function(n,e,i){return new t(n,e,[],Ua.empty,0,i,[],null)}},{key:"getSkippingParser",value:function(n){return new(function(e){wt(r,Jde);var i=Ct(r);function r(){return ke(this,r),i.apply(this,arguments)}return Se(r,[{key:"createParse",value:function(o,s,a){var l=a[0].from,c=a[a.length-1].to;return{parsedPos:l,advance:function(){var u=k_;if(u){var d,h=Re(a);try{for(h.s();!(d=h.n()).done;)u.tempSkipped.push(d.value)}catch(p){h.e(p)}finally{h.f()}n&&(u.scheduleOn=u.scheduleOn?Promise.all([u.scheduleOn,n]):n)}return this.parsedPos=c,new Ua(au.none,[],[],c-l)},stoppedAt:null,stopAt:function(){}}}}]),r}())}},{key:"get",value:function(){return k_}}]),t}();function ohe(t,n,e){return VS.applyChanges(t,[{fromA:n,toA:e,fromB:n,toB:e}])}var Pj=function(){function t(n){ke(this,t),this.context=n,this.tree=n.tree}return Se(t,[{key:"apply",value:function(n){if(!n.docChanged&&this.tree==this.context.tree)return this;var e=this.context.changes(n.changes,n.state),i=this.context.treeLen==n.startState.doc.length?void 0:Math.max(n.changes.mapPos(this.context.treeLen),e.viewport.to);return e.work(20,i)||e.takeTree(),new t(e)}}],[{key:"init",value:function(n){var e=Math.min(3e3,n.doc.length),i=CZe.create(n.facet(xp).parser,n,{from:0,to:e});return i.work(20,e)||i.takeTree(),new t(i)}}]),t}();ad.state=Va.define({create:Pj.init,update:function(t,n){var e,i=Re(n.effects);try{for(i.s();!(e=i.n()).done;){var r=e.value;if(r.is(ad.setState))return r.value}}catch(o){i.e(o)}finally{i.f()}return n.startState.facet(xp)!=n.state.facet(xp)?Pj.init(n.state):t.apply(n)}});var she=function(t){var n=setTimeout(function(){return t()},500);return function(){return clearTimeout(n)}};typeof requestIdleCallback<"u"&&(she=function(t){var n=-1,e=setTimeout(function(){n=requestIdleCallback(t,{timeout:400})},100);return function(){return n<0?clearTimeout(e):cancelIdleCallback(n)}});var Lj=typeof navigator<"u"&&null!==(Nj=navigator.scheduling)&&void 0!==Nj&&Nj.isInputPending?function(){return navigator.scheduling.isInputPending()}:null,kZe=ka.fromClass(function(){function t(n){ke(this,t),this.view=n,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}return Se(t,[{key:"update",value:function(n){var e=this.view.state.field(ad.state).context;(e.updateViewport(n.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),n.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}},{key:"scheduleWork",value:function(){if(!this.working){var n=this.view.state,e=n.field(ad.state);e.tree==e.context.tree&&e.context.isDone(n.doc.length)||(this.working=she(this.work))}}},{key:"work",value:function(n){this.working=null;var e=Date.now();if(this.chunkEndo+1e3,c=s.context.work(function(){return Lj&&Lj()||Date.now()>a},o+(l?0:1e5));this.chunkBudget-=Date.now()-e,(c||this.chunkBudget<=0)&&(s.context.takeTree(),this.view.dispatch({effects:ad.setState.of(new Pj(s.context))})),this.chunkBudget>0&&(!c||l)&&this.scheduleWork(),this.checkAsyncSchedule(s.context)}}}},{key:"checkAsyncSchedule",value:function(n){var e=this;n.scheduleOn&&(this.workScheduled++,n.scheduleOn.then(function(){return e.scheduleWork()}).catch(function(i){return Ec(e.view.state,i)}).then(function(){return e.workScheduled--}),n.scheduleOn=null)}},{key:"destroy",value:function(){this.working&&this.working()}},{key:"isWorking",value:function(){return!!(this.working||this.workScheduled>0)}}]),t}(),{eventHandlers:{focus:function(){this.scheduleWork()}}}),xp=Qn.define({combine:function(t){return t.length?t[0]:null},enables:function(t){return[ad.state,kZe,Wn.contentAttributes.compute([t],function(n){var e=n.facet(t);return e&&e.name?{"data-language":e.name}:{}})]}}),SZe=Se(function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];ke(this,t),this.language=n,this.support=e,this.extension=[n,e]}),DZe=Qn.define(),GS=Qn.define({combine:function(t){if(!t.length)return" ";var n=t[0];if(!n||/\S/.test(n)||Array.from(n).some(function(e){return e!=n[0]}))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return n}});function P0(t){var n=t.facet(GS);return 9==n.charCodeAt(0)?t.tabSize*n.length:n.length}function S_(t,n){var e="",i=t.tabSize,r=t.facet(GS)[0];if("\t"==r){for(;n>=i;)e+="\t",n-=i;r=" "}for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:{};ke(this,t),this.state=n,this.options=e,this.unit=P0(n)}return Se(t,[{key:"lineAt",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=this.state.doc.lineAt(n),r=this.options,o=r.simulateBreak;return null!=o&&o>=i.from&&o<=i.to?r.simulateDoubleBreak&&o==n?{text:"",from:n}:(e<0?o1&&void 0!==arguments[1]?arguments[1]:1),r=i.text,o=i.from;return r.slice(n-o,Math.min(r.length,n+100-o))}},{key:"column",value:function(n){var i=this.lineAt(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),r=i.text,o=i.from,s=this.countColumn(r,n-o),a=this.options.overrideIndentation?this.options.overrideIndentation(o):-1;return a>-1&&(s+=a-this.countColumn(r,r.search(/\S|$/))),s}},{key:"countColumn",value:function(n){return s_(n,this.state.tabSize,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.length)}},{key:"lineIndent",value:function(n){var i=this.lineAt(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),r=i.text,s=this.options.overrideIndentation;if(s){var a=s(i.from);if(a>-1)return a}return this.countColumn(r,r.search(/\S|$/))}},{key:"simulatedBreak",get:function(){return this.options.simulateBreak||null}}]),t}(),ahe=new gr;function TZe(t){var n=t.type.prop(ahe);if(n)return n;var e,i=t.firstChild;if(i&&(e=i.type.prop(gr.closedBy))){var r=t.lastChild,o=r&&e.indexOf(r.name)>-1;return function(s){return function(a,l,c,u,d){var f=a.textAfter.match(/^\s*/)[0].length,p=d==a.pos+f,m=function(g){var v=g.node,y=v.childAfter(v.from),_=v.lastChild;if(!y)return null;for(var C=g.options.simulateBreak,S=g.state.doc.lineAt(y.from),M=null==C||C<=S.from?S.to:Math.min(S.to,C),$=y.to;;){var G=v.childAfter($);if(!G||G==_)return null;if(!G.type.isSkipped)return G.from0&&void 0!==arguments[0]?arguments[0]:{},n=t.except,e=t.units,i=void 0===e?1:e;return function(r){var o=n&&n.test(r.textAfter);return r.baseIndent+(o?0:i*r.unit)}}var IZe=Qn.define(),uhe=new gr;function qS(t,n,e){var i,r=Re(t.facet(IZe));try{for(r.s();!(i=r.n()).done;){var o=(0,i.value)(t,n,e);if(o)return o}}catch(s){r.e(s)}finally{r.f()}return function(s,a,l){var c=hl(s);if(c.lengthl)){if(h&&f.from=a&&m.to>l&&(h=m)}}return h}(t,n,e)}function dhe(t,n){var e=n.mapPos(t.from,1),i=n.mapPos(t.to,-1);return e>=i?void 0:{from:e,to:i}}var XS=hr.define({map:dhe}),D_=hr.define({map:dhe});function hhe(t){var n,e=[],i=Re(t.state.selection.ranges);try{var r=function(){var o=n.value.head;if(e.some(function(s){return s.from<=o&&s.to>=o}))return"continue";e.push(t.lineBlockAt(o))};for(i.s();!(n=i.n()).done;)r()}catch(o){i.e(o)}finally{i.f()}return e}var Ym=Va.define({create:function(){return yi.none},update:function(t,n){t=t.map(n.changes);var e,i=Re(n.effects);try{var r=function(){var c,u,d,a=e.value;a.is(XS)&&(u=a.value.to,d=!1,t.between(c=a.value.from,c,function(h,f){h==c&&f==u&&(d=!0)}),!d)?t=t.update({add:[vhe.range(a.value.from,a.value.to)]}):a.is(D_)&&(t=t.update({filter:function(l,c){return a.value.from!=l||a.value.to!=c},filterFrom:a.value.from,filterTo:a.value.to}))};for(i.s();!(e=i.n()).done;)r()}catch(a){i.e(a)}finally{i.f()}if(n.selection){var o=!1,s=n.selection.main.head;t.between(s,s,function(a,l){as&&(o=!0)}),o&&(t=t.update({filterFrom:s,filterTo:s,filter:function(a,l){return l<=s||a>=s}}))}return t},provide:function(t){return Wn.decorations.from(t)},toJSON:function(t,n){var e=[];return t.between(0,n.doc.length,function(i,r){e.push(i,r)}),e},fromJSON:function(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");for(var n=[],e=0;eo)&&(r={from:o,to:s})}),r}function fhe(t,n){return t.field(Ym,!1)?n:n.concat(hr.appendConfig.of(ghe()))}function phe(t,n){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=t.state.doc.lineAt(n.from).number,r=t.state.doc.lineAt(n.to).number;return Wn.announce.of("".concat(t.state.phrase(e?"Folded lines":"Unfolded lines")," ").concat(i," ").concat(t.state.phrase("to")," ").concat(r,"."))}var FZe=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:function(t){var n,e=Re(hhe(t));try{for(e.s();!(n=e.n()).done;){var i=n.value,r=qS(t.state,i.from,i.to);if(r)return t.dispatch({effects:fhe(t.state,[XS.of(r),phe(t,r)])}),!0}}catch(o){e.e(o)}finally{e.f()}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:function(t){if(!t.state.field(Ym,!1))return!1;var n,e=[],i=Re(hhe(t));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=YS(t.state,r.from,r.to);o&&e.push(D_.of(o),phe(t,o,!1))}}catch(s){i.e(s)}finally{i.f()}return e.length&&t.dispatch({effects:e}),e.length>0}},{key:"Ctrl-Alt-[",run:function(t){for(var n=t.state,e=[],i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=Object.assign(Object.assign({},OZe),t),e=new $j(n,!0),i=new $j(n,!1),r=ka.fromClass(function(){function s(a){ke(this,s),this.from=a.viewport.from,this.markers=this.buildMarkers(a)}return Se(s,[{key:"update",value:function(a){(a.docChanged||a.viewportChanged||a.startState.facet(xp)!=a.state.facet(xp)||a.startState.field(Ym,!1)!=a.state.field(Ym,!1)||hl(a.startState)!=hl(a.state)||n.foldingChanged(a))&&(this.markers=this.buildMarkers(a.view))}},{key:"buildMarkers",value:function(a){var l,c=new Gm,u=Re(a.viewportLineBlocks);try{for(u.s();!(l=u.n()).done;){var d=l.value,h=YS(a.state,d.from,d.to)?i:qS(a.state,d.from,d.to)?e:null;h&&c.add(d.from,d.from,h)}}catch(f){u.e(f)}finally{u.f()}return c.finish()}}]),s}()),o=n.domEventHandlers;return[r,$de({class:"cm-foldGutter",markers:function(s){var a;return(null===(a=s.plugin(r))||void 0===a?void 0:a.markers)||Go.empty},initialSpacer:function(){return new $j(n,!1)},domEventHandlers:Object.assign(Object.assign({},o),{click:function(s,a,l){if(o.click&&o.click(s,a,l))return!0;var c=YS(s.state,a.from,a.to);if(c)return s.dispatch({effects:D_.of(c)}),!0;var u=qS(s.state,a.from,a.to);return!!u&&(s.dispatch({effects:XS.of(u)}),!0)}})}),ghe()]}var PZe=Wn.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}}),Bj=function(){function t(n,e){var i;function r(a){var l=pp.newName();return(i||(i=Object.create(null)))["."+l]=a,l}ke(this,t),this.specs=n;var o="string"==typeof e.all?e.all:e.all?r(e.all):void 0,s=e.scope;this.scope=s instanceof ad?function(a){return a.prop(j0)==s.data}:s?function(a){return a==s}:void 0,this.style=the(n.map(function(a){return{tag:a.tag,class:a.class||r(Object.assign({},a,{tag:null}))}}),{all:o}).style,this.module=i?new pp(i):null,this.themeType=e.themeType}return Se(t,null,[{key:"define",value:function(n,e){return new t(n,e||{})}}]),t}(),Vj=Qn.define(),yhe=Qn.define({combine:function(t){return t.length?[t[0]]:null}});function Hj(t){var n=t.facet(Vj);return n.length?n:t.facet(yhe)}function bhe(t,n){var e,i=[RZe];return t instanceof Bj&&(t.module&&i.push(Wn.styleModule.of(t.module)),e=t.themeType),i.push(n?.fallback?yhe.of(t):e?Vj.computeN([Wn.darkTheme],function(r){return r.facet(Wn.darkTheme)==("dark"==e)?[t]:[]}):Vj.of(t)),i}var LZe=function(){function t(n){ke(this,t),this.markCache=Object.create(null),this.tree=hl(n.state),this.decorations=this.buildDeco(n,Hj(n.state))}return Se(t,[{key:"update",value:function(n){var e=hl(n.state),i=Hj(n.state),r=i!=Hj(n.startState);e.length0&&yh(n.state,s.head-1,1,r)||r.afterCursor&&(yh(n.state,s.head,1,r)||s.head0&&void 0!==arguments[0]?arguments[0]:{}),GZe]}var qZe=new gr;function zj(t,n,e){var i=t.prop(n<0?gr.openedBy:gr.closedBy);if(i)return i;if(1==t.name.length){var r=e.indexOf(t.name);if(r>-1&&r%2==(n<0?1:0))return[e[r+n]]}return null}function Uj(t){var n=t.type.prop(qZe);return n?n(t.node):t}function yh(t,n,e){for(var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=i.maxScanDistance||1e4,o=i.brackets||"()[]{}",s=hl(t),a=s.resolveInner(n,e),l=a;l;l=l.parent){var c=zj(l.type,e,o);if(c&&l.from0?n>=u.from&&nu.from&&n<=u.to))return XZe(0,0,e,l,u,c,o)}}return function YZe(t,n,e,i,r,o,s){var a=e<0?t.sliceDoc(n-1,n):t.sliceDoc(n,n+1),l=s.indexOf(a);if(l<0||l%2==0!=e>0)return null;for(var c={from:e<0?n-1:n,to:e>0?n+1:n},u=t.doc.iterRange(n,e>0?t.doc.length:0),d=0,h=0;!u.next().done&&h<=o;){var f=u.value;e<0&&(h+=f.length);for(var p=n+h*e,m=e>0?0:f.length-1,g=e>0?f.length:-1;m!=g;m+=e){var v=s.indexOf(f[m]);if(!(v<0||i.resolveInner(p+m,1).type!=r))if(v%2==0==e>0)d++;else{if(1==d)return{start:c,end:{from:p+m,to:p+m+1},matched:v>>1==l>>1};d--}}e>0&&(h+=f.length)}return u.done?{start:c,matched:!1}:null}(t,n,e,s,a.type,r,o)}function XZe(t,n,e,i,r,o,s){var l={from:r.from,to:r.to},c=0,u=i.parent?.cursor();if(u&&(e<0?u.childBefore(i.from):u.childAfter(i.to)))do{if(e<0?u.to<=i.from:u.from>=i.to){if(0==c&&o.indexOf(u.type.name)>-1&&u.from-1||(whe.push(t),console.warn(n))}function eet(t,n){var e,i=null,r=Re(n.split("."));try{for(r.s();!(e=r.n()).done;){var o=e.value,s=t[o]||fn[o];s?"function"==typeof s?i?i=s(i):Wj(o,"Modifier ".concat(o," used at start of tag")):i?Wj(o,"Tag ".concat(o," used as modifier")):i=s:Wj(o,"Unknown highlighting tag ".concat(o))}}catch(c){r.e(c)}finally{r.f()}if(!i)return 0;var a=n.replace(/ /g,"_"),l=au.define({id:xhe.length,name:a,props:[Zde(ql({},a,i))]});return xhe.push(l),l.id}function qj(t,n){return function(e){var i=e.state,r=e.dispatch;if(i.readOnly)return!1;var o=t(n,i);return!!o&&(r(i.update(o)),!0)}}var tet=qj(function oet(t,n){var e,r=[],o=-1,s=Re(arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.selection.ranges);try{for(s.s();!(e=s.n()).done;){for(var a=e.value,l=a.from,c=a.to,u=r.length,d=1e9,h=l;h<=c;){var f=n.doc.lineAt(h);if(f.from>o&&(l==c||c>f.from)){o=f.from;var p=Xj(n,f.from).line;if(!p)continue;var m=/^\s*/.exec(f.text)[0].length,g=m==f.length,v=f.text.slice(m,m+p.length)==p?m:-1;m=0})){var re,L=[],X=Re(r);try{for(X.s();!(re=X.n()).done;){var Z=re.value,H=Z.line,he=Z.comment;if(he>=0){var F=H.from+he,N=F+Z.token.length;" "==H.text[N-H.from]&&N++,L.push({from:F,to:N})}}}catch(Y){X.e(Y)}finally{X.f()}return{changes:L}}return null},0),net=qj(She,0),iet=qj(function(t,n){return She(t,n,function(e){var i,r=[],o=Re(e.selection.ranges);try{for(o.s();!(i=o.n()).done;){var s=i.value,a=e.doc.lineAt(s.from),l=s.to<=a.to?a:e.doc.lineAt(s.to),c=r.length-1;c>=0&&r[c].to>a.from?r[c].to=l.to:r.push({from:a.from,to:l.to})}}catch(u){o.e(u)}finally{o.f()}return r}(n))},0);function Xj(t,n){var e=t.languageDataAt("commentTokens",n);return e.length?e[0]:{}}function She(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.selection.ranges,i=e.map(function(h){return Xj(n,h.from).block});if(!i.every(function(h){return h}))return null;var r=e.map(function(h,f){return function ret(t,n,e,i){var r,o,s=n.open,a=n.close,l=t.sliceDoc(e-50,e),c=t.sliceDoc(i,i+50),u=/\s*$/.exec(l)[0].length,d=/^\s*/.exec(c)[0].length,h=l.length-u;if(l.slice(h-s.length,h)==s&&c.slice(d,d+a.length)==a)return{open:{pos:e-u,margin:u&&1},close:{pos:i+d,margin:d&&1}};i-e<=100?r=o=t.sliceDoc(e,i):(r=t.sliceDoc(e,e+50),o=t.sliceDoc(i-50,i));var f=/^\s*/.exec(r)[0].length,p=/\s*$/.exec(o)[0].length,m=o.length-p-a.length;return r.slice(f,f+s.length)==s&&o.slice(m,m+a.length)==a?{open:{pos:e+f+s.length,margin:/\s/.test(r.charAt(f+s.length))?1:0},close:{pos:i-p-a.length,margin:/\s/.test(o.charAt(m-1))?1:0}}:null}(n,i[f],h.from,h.to)});if(2!=t&&!r.every(function(h){return h}))return{changes:n.changes(e.map(function(h,f){return r[f]?[]:[{from:h.from,insert:i[f].open+" "},{from:h.to,insert:" "+i[f].close}]}))};if(1!=t&&r.some(function(h){return h})){for(var o,s=[],a=0;a0&&void 0!==arguments[0]?arguments[0]:{}),Wn.domEventHandlers({beforeinput:function(n,e){var i="historyUndo"==n.inputType?Kj:"historyRedo"==n.inputType?KS:null;return!!i&&(n.preventDefault(),i(e))}})]}function JS(t,n){return function(e){var i=e.state,r=e.dispatch;if(!n&&i.readOnly)return!1;var o=i.field(Jj,!1);if(!o)return!1;var s=o.pop(t,i,n);return!!s&&(r(s),!0)}}var Kj=JS(0,!1),KS=JS(1,!1),uet=JS(0,!0),det=JS(1,!0);function The(t){return function(n){var e=n.field(Jj,!1);if(!e)return 0;var i=0==t?e.done:e.undone;return i.length-(i.length&&!i[0].changes?1:0)}}var het=The(0),fet=The(1),df=function(){function t(n,e,i,r,o){ke(this,t),this.changes=n,this.effects=e,this.mapped=i,this.startSelection=r,this.selectionsAfter=o}return Se(t,[{key:"setSelAfter",value:function(n){return new t(this.changes,this.effects,this.mapped,this.startSelection,n)}},{key:"toJSON",value:function(){var n,e,i;return{changes:null===(n=this.changes)||void 0===n?void 0:n.toJSON(),mapped:null===(e=this.mapped)||void 0===e?void 0:e.toJSON(),startSelection:null===(i=this.startSelection)||void 0===i?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(function(r){return r.toJSON()})}}}],[{key:"fromJSON",value:function(n){return new t(n.changes&&rd.fromJSON(n.changes),[],n.mapped&&C0.fromJSON(n.mapped),n.startSelection&&en.fromJSON(n.startSelection),n.selectionsAfter.map(en.fromJSON))}},{key:"fromTransaction",value:function(n,e){var i,r=lu,o=Re(n.startState.facet(aet));try{for(o.s();!(i=o.n()).done;){var s=(0,i.value)(n);s.length&&(r=r.concat(s))}}catch(a){o.e(a)}finally{o.f()}return!r.length&&n.changes.empty?null:new t(n.changes.invert(n.startState.doc),r,void 0,e||n.startState.selection,lu)}},{key:"selection",value:function(n){return new t(void 0,lu,void 0,void 0,n)}}]),t}();function QS(t,n,e,i){var o=t.slice(n+1>e+20?n-e-1:0,n);return o.push(i),o}function Ehe(t,n){return t.length?n.length?t.concat(n):t:n}var lu=[];function Ahe(t,n){if(t.length){var e=t[t.length-1],i=e.selectionsAfter.slice(Math.max(0,e.selectionsAfter.length-200));return i.length&&i[i.length-1].eq(n)?t:(i.push(n),QS(t,t.length-1,1e9,e.setSelAfter(i)))}return[df.selection([n])]}function pet(t){var n=t[t.length-1],e=t.slice();return e[t.length-1]=n.setSelAfter(n.selectionsAfter.slice(0,n.selectionsAfter.length-1)),e}function Qj(t,n){if(!t.length)return t;for(var e=t.length,i=lu;e;){var r=met(t[e-1],n,i);if(r.changes&&!r.changes.empty||r.effects.length){var o=t.slice(0,e);return o[e-1]=r,o}n=r.mapped,e--,i=r.selectionsAfter}return i.length?[df.selection(i)]:lu}function met(t,n,e){var i=Ehe(t.selectionsAfter.length?t.selectionsAfter.map(function(a){return a.map(n)}):lu,e);if(!t.changes)return df.selection(i);var r=t.changes.map(n),o=n.mapDesc(t.changes,!0),s=t.mapped?t.mapped.composeDesc(o):o;return new df(r,hr.mapEffects(t.effects,n),s,t.startSelection.map(o),i)}var get=/^(input\.type|delete)($|\.)/,T_=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;ke(this,t),this.done=n,this.undone=e,this.prevTime=i,this.prevUserEvent=r}return Se(t,[{key:"isolate",value:function(){return this.prevTime?new t(this.done,this.undone):this}},{key:"addChanges",value:function(n,e,i,r,o){var c,u,d,s=this.done,a=s[s.length-1];return new t(s=a&&a.changes&&!a.changes.empty&&n.changes&&(!i||get.test(i))&&(!a.selectionsAfter.length&&e-this.prevTime=v&&p<=y&&(d=!0)}}),d))||"input.type.compose"==i)?QS(s,s.length-1,r.minDepth,new df(n.changes.compose(a.changes),Ehe(n.effects,a.effects),a.mapped,a.startSelection,lu)):QS(s,s.length,r.minDepth,n),lu,e,i)}},{key:"addSelection",value:function(n,e,i,r){var s,a,o=this.done.length?this.done[this.done.length-1].selectionsAfter:lu;return o.length>0&&e-this.prevTime2||/[^\s,.;:]/.test(t.sliceDoc(n.from,n.to)))||n.firstChild}function eD(t,n,e){for(var i=hl(t).resolveInner(n.head),r=e?gr.closedBy:gr.openedBy,o=n.head;;){var s=e?i.childAfter(o):i.childBefore(o);if(!s)break;yet(t,s,r)?i=s:o=e?s.to:s.from}var a,l;return l=i.type.prop(r)&&(a=e?yh(t,i.from,1):yh(t,i.to,-1))&&a.matched?e?a.end.to:a.end.from:e?i.to:i.from,en.cursor(l,e?-1:1)}function Ohe(t,n){return ld(t,function(e){if(!e.empty)return ZS(e,n);var i=t.moveVertically(e,n);return i.head!=e.head?i:t.moveToLineBoundary(e,n)})}var jhe=function(t){return Ohe(t,!1)},Phe=function(t){return Ohe(t,!0)};function Lhe(t){var n,e=t.scrollDOM.clientHeightl&&s.bottoms&&(e="delete.forward",l=nD(t,l,!0)),s=Math.min(s,l),a=Math.max(a,l)}else s=nD(t,s,!1),a=nD(t,a,!0);return s==a?{range:o}:{changes:{from:s,to:a},range:en.cursor(s)}});return!r.changes.empty&&(t.dispatch(i.update(r,{scrollIntoView:!0,userEvent:e,effects:"delete.selection"==e?Wn.announce.of(i.phrase("Selection deleted")):void 0})),!0)}function nD(t,n,e){if(t instanceof Wn){var i,r=Re(t.state.facet(Wn.atomicRanges).map(function(o){return o(t)}));try{for(r.s();!(i=r.n()).done;)i.value.between(n,n,function(o,s){on&&(n=e?s:o)})}catch(o){r.e(o)}finally{r.f()}}return n}var efe=function(t,n){return tD(t,function(e){var i,r,o=t.state,s=o.doc.lineAt(e);if(!n&&e>s.from&&e=s.number){var l=e[e.length-1];l.to=a.to,l.ranges.push(o)}else e.push({from:s.from,to:a.to,ranges:[o]});i=a.number+1}}catch(c){r.e(c)}finally{r.f()}return e}function ofe(t,n,e){if(t.readOnly)return!1;var i,r=[],o=[],s=Re(iD(t));try{for(s.s();!(i=s.n()).done;){var a=i.value;if(e?a.to!=t.doc.length:0!=a.from){var l=t.doc.lineAt(e?a.to+1:a.from-1),c=l.length+1;if(e){r.push({from:a.to,to:l.to},{from:a.from,insert:l.text+t.lineBreak});var u,d=Re(a.ranges);try{for(d.s();!(u=d.n()).done;){var h=u.value;o.push(en.range(Math.min(t.doc.length,h.anchor+c),Math.min(t.doc.length,h.head+c)))}}catch(g){d.e(g)}finally{d.f()}}else{r.push({from:l.from,to:a.from},{from:a.to,insert:t.lineBreak+l.text});var f,p=Re(a.ranges);try{for(p.s();!(f=p.n()).done;){var m=f.value;o.push(en.range(m.anchor-c,m.head-c))}}catch(g){p.e(g)}finally{p.f()}}}}}catch(g){s.e(g)}finally{s.f()}return!!r.length&&(n(t.update({changes:r,scrollIntoView:!0,selection:en.create(o,t.selection.mainIndex),userEvent:"move.line"})),!0)}function sfe(t,n,e){if(t.readOnly)return!1;var i,r=[],o=Re(iD(t));try{for(o.s();!(i=o.n()).done;){var s=i.value;r.push(e?{from:s.from,insert:t.doc.slice(s.from,s.to)+t.lineBreak}:{from:s.to,insert:t.lineBreak+t.doc.slice(s.from,s.to)})}}catch(a){o.e(a)}finally{o.f()}return n(t.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}var bet=afe(!1),_et=afe(!0);function afe(t){return function(n){var e=n.state,i=n.dispatch;if(e.readOnly)return!1;var r=e.changeByRange(function(o){var s=o.from,a=o.to,l=e.doc.lineAt(s),c=!t&&s==a&&function(f,p){if(/\(\)|\[\]|\{\}/.test(f.sliceDoc(p-1,p+1)))return{from:p,to:p};var m,g=hl(f).resolveInner(p),v=g.childBefore(p),y=g.childAfter(p);return v&&y&&v.to<=p&&y.from>=p&&(m=v.type.prop(gr.closedBy))&&m.indexOf(y.name)>-1&&f.doc.lineAt(v.to).from==f.doc.lineAt(y.from).from?{from:v.to,to:y.from}:null}(e,s);t&&(s=a=(a<=l.to?l:e.doc.lineAt(a)).to);var u=new WS(e,{simulateBreak:s,simulateDoubleBreak:!!c}),d=Rj(u,s);for(null==d&&(d=/^\s*/.exec(e.doc.lineAt(s).text)[0].length);al.from&&se&&(i.empty||i.to>s.from)&&(n(s,r,i),e=s.number),o=s.to+1}var a=t.changes(r);return{changes:r,range:en.range(a.mapPos(i.anchor,1),a.mapPos(i.head,1))}})}var lfe=function(t){var n=t.state;return!n.readOnly&&((0,t.dispatch)(n.update(tP(n,function(i,r){r.push({from:i.from,insert:n.facet(GS)})}),{userEvent:"input.indent"})),!0)},cfe=function(t){var n=t.state;return!n.readOnly&&((0,t.dispatch)(n.update(tP(n,function(i,r){var o=/^\s*/.exec(i.text)[0];if(o){for(var s=s_(o,n.tabSize),a=0,l=S_(n,Math.max(0,s-P0(n)));ae?e:Math.max(0,n-1)})}},{mac:"Mod-Delete",run:rfe}].concat(xet.map(function(t){return{mac:t.key,run:t.run,shift:t.shift}})),Cet=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:function(t){return ld(t,function(n){return eD(t.state,n,!fl(t))})},shift:function(t){return cu(t,function(n){return eD(t.state,n,!fl(t))})}},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:function(t){return ld(t,function(n){return eD(t.state,n,fl(t))})},shift:function(t){return cu(t,function(n){return eD(t.state,n,fl(t))})}},{key:"Alt-ArrowUp",run:function(t){return ofe(t.state,t.dispatch,!1)}},{key:"Shift-Alt-ArrowUp",run:function(t){return sfe(t.state,t.dispatch,!1)}},{key:"Alt-ArrowDown",run:function(t){return ofe(t.state,t.dispatch,!0)}},{key:"Shift-Alt-ArrowDown",run:function(t){return sfe(t.state,t.dispatch,!0)}},{key:"Escape",run:function(t){var n=t.state,e=t.dispatch,i=n.selection,r=null;return i.ranges.length>1?r=en.create([i.main]):i.main.empty||(r=en.create([en.cursor(i.main.head)])),!!r&&(e(bh(n,r)),!0)}},{key:"Mod-Enter",run:_et},{key:"Alt-l",mac:"Ctrl-l",run:function(t){var n=t.state,e=t.dispatch,i=iD(n).map(function(r){return en.range(r.from,Math.min(r.to+1,n.doc.length))});return e(n.update({selection:en.create(i),userEvent:"select"})),!0}},{key:"Mod-i",run:function(t){var n=t.state,e=t.dispatch,i=L0(n.selection,function(r){for(var o,s=hl(n).resolveInner(r.head,1);!(s.from=r.to||s.to>r.to&&s.from<=r.from)&&null!==(o=s.parent)&&void 0!==o&&o.parent;)s=s.parent;return en.range(s.to,s.from)});return e(bh(n,i)),!0},preventDefault:!0},{key:"Mod-[",run:cfe},{key:"Mod-]",run:lfe},{key:"Mod-Alt-\\",run:function(t){var n=t.state,e=t.dispatch;if(n.readOnly)return!1;var i=Object.create(null),r=new WS(n,{overrideIndentation:function(s){return i[s]??-1}}),o=tP(n,function(s,a,l){var c=Rj(r,s.from);if(null!=c){/\S/.test(s.text)||(c=0);var u=/^\s*/.exec(s.text)[0],d=S_(n,c);(u!=d||l.from0?o--:s0&&yh(n,s.head-1,1)||s.head2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.length,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0;ke(this,t),this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=n.iterRange(i,r),this.bufferStart=i,this.normalize=o?function(a){return o(dfe(a))}:dfe,this.query=this.normalize(e)}return Se(t,[{key:"peek",value:function(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Ba(this.buffer,this.bufferPos)}},{key:"next",value:function(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}},{key:"nextOverlapping",value:function(){for(;;){var n=this.peek();if(n<0)return this.done=!0,this;var e=S4(n),i=this.bufferStart+this.bufferPos;this.bufferPos+=Sc(n);for(var r=this.normalize(e),o=0,s=i;;o++){var a=r.charCodeAt(o),l=this.match(a,s);if(l)return this.value=l,this;if(o==r.length-1)break;s==i&&o3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:n.length;if(ke(this,t),this.text=n,this.to=o,this.curLine="",this.done=!1,this.value=hfe,/\\[sWDnr]|\n|\r|\[\^/.test(e))return new mfe(n,e,i,r,o);this.re=new RegExp(e,nP+(i?.ignoreCase?"i":"")),this.test=i?.test,this.iter=n.iter();var s=n.lineAt(r);this.curLineStart=s.from,this.matchPos=rD(n,r),this.getLine(this.curLineStart)}return Se(t,[{key:"getLine",value:function(n){this.iter.next(n),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}},{key:"nextLine",value:function(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}},{key:"next",value:function(){for(var n=this.matchPos-this.curLineStart;;){this.re.lastIndex=n;var e=this.matchPos<=this.to&&this.re.exec(this.curLine);if(e){var i=this.curLineStart+e.index,r=i+e[0].length;if(this.matchPos=rD(this.text,r+(i==r?1:0)),i==this.curLineStart+this.curLine.length&&this.nextLine(),(ithis.value.to)&&(!this.test||this.test(i,r,e)))return this.value={from:i,to:r,match:e},this;n=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=i||r.to<=e){var o=new t(e,n.sliceString(e,i));return iP.set(n,o),o}if(r.from==e&&r.to==i)return r;var s=r.text,a=r.from;return a>e&&(s=n.sliceString(e,a)+s,a=e),r.to=this.to?this.to:this.text.lineAt(n).to}},{key:"next",value:function(){for(;;){var n=this.re.lastIndex=this.matchPos-this.flat.from,e=this.re.exec(this.flat.text);if(e&&!e[0]&&e.index==n&&(this.re.lastIndex=n+1,e=this.re.exec(this.flat.text)),e){var i=this.flat.from+e.index,r=i+e[0].length;if((this.flat.to>=this.to||e.index+e[0].length<=this.flat.text.length-10)&&(!this.test||this.test(i,r,e)))return this.value={from:i,to:r,match:e},this.matchPos=rD(this.text,r+(i==r?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=pfe.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}]),t}();function rD(t,n){if(n>=t.length)return n;for(var e,i=t.lineAt(n);n=56320&&e<57344;)n++;return n}function rP(t){var n=Oo("input",{class:"cm-textfield",name:"line"});function e(){var i=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(i){var r=t.state,o=r.doc.lineAt(r.selection.main.head),s=Un(i,5),a=s[1],l=s[2],c=s[3],u=s[4],d=c?+c.slice(1):0,h=l?+l:o.number;if(l&&u){var f=h/100;a&&(f=f*("-"==a?-1:1)+o.number/r.doc.lines),h=Math.round(r.doc.lines*f)}else l&&a&&(h=h*("-"==a?-1:1)+o.number);var p=r.doc.line(Math.max(1,Math.min(r.doc.lines,h)));t.dispatch({effects:oD.of(!1),selection:en.cursor(p.from+Math.max(0,Math.min(d,p.length))),scrollIntoView:!0}),t.focus()}}return{dom:Oo("form",{class:"cm-gotoLine",onkeydown:function(i){27==i.keyCode?(i.preventDefault(),t.dispatch({effects:oD.of(!1)}),t.focus()):13==i.keyCode&&(i.preventDefault(),e())},onsubmit:function(i){i.preventDefault(),e()}},Oo("label",t.state.phrase("Go to line"),": ",n)," ",Oo("button",{class:"cm-button",type:"submit"},t.state.phrase("go")))}}typeof Symbol<"u"&&(ffe.prototype[Symbol.iterator]=mfe.prototype[Symbol.iterator]=function(){return this});var oD=hr.define(),gfe=Va.define({create:function(){return!0},update:function(t,n){var e,i=Re(n.effects);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.is(oD)&&(t=r.value)}}catch(o){i.e(o)}finally{i.f()}return t},provide:function(t){return b_.from(t,function(n){return n?rP:null})}}),Det=Wn.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),Tet={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},vfe=Qn.define({combine:function(t){return su(t,Tet,{highlightWordAroundCursor:function(n,e){return n||e},minSelectionLength:Math.min,maxMatches:Math.min})}}),Eet=yi.mark({class:"cm-selectionMatch"}),Aet=yi.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function yfe(t,n,e,i){return!(0!=e&&t(n.sliceDoc(e-1,e))==cs.Word||i!=n.doc.length&&t(n.sliceDoc(i,i+1))==cs.Word)}var Met=ka.fromClass(function(){function t(n){ke(this,t),this.decorations=this.getDeco(n)}return Se(t,[{key:"update",value:function(n){(n.selectionSet||n.docChanged||n.viewportChanged)&&(this.decorations=this.getDeco(n.view))}},{key:"getDeco",value:function(n){var e=n.state.facet(vfe),i=n.state,r=i.selection;if(r.ranges.length>1)return yi.none;var o,y,_,C,S,s=r.main,a=null;if(s.empty){if(!e.highlightWordAroundCursor)return yi.none;var l=i.wordAt(s.head);if(!l)return yi.none;a=i.charCategorizer(s.head),o=i.sliceDoc(l.from,l.to)}else{var c=s.to-s.from;if(c200)return yi.none;if(e.wholeWords){if(o=i.sliceDoc(s.from,s.to),!yfe(a=i.charCategorizer(s.head),i,s.from,s.to)||(S=s.to,(y=a)((_=i).sliceDoc(C=s.from,C+1))!=cs.Word||y(_.sliceDoc(S-1,S))!=cs.Word))return yi.none}else if(!(o=i.sliceDoc(s.from,s.to).trim()))return yi.none}var u,d=[],h=Re(n.visibleRanges);try{for(h.s();!(u=h.n()).done;)for(var f=u.value,p=new R0(i.doc,o,f.from,f.to);!p.next().done;){var m=p.value,g=m.from,v=m.to;if((!a||yfe(a,i,g,v))&&(s.empty&&g<=s.from&&v>=s.to?d.push(Aet.range(g,v)):(g>=s.to||v<=s.from)&&d.push(Eet.range(g,v)),d.length>e.maxMatches))return yi.none}}catch(y){h.e(y)}finally{h.f()}return yi.set(d)}}]),t}(),{decorations:function(t){return t.decorations}}),Iet=Wn.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),sD=Qn.define({combine:function(t){return su(t,{top:!1,caseSensitive:!1,literal:!1,wholeWord:!1,createPanel:function(n){return new Vet(n)}})}});function Fet(t){return t?[sD.of(t),hP]:hP}var bfe=function(){function t(n){ke(this,t),this.search=n.search,this.caseSensitive=!!n.caseSensitive,this.literal=!!n.literal,this.regexp=!!n.regexp,this.replace=n.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,nP),!0}catch{return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!n.wholeWord}return Se(t,[{key:"unquote",value:function(n){return this.literal?n:n.replace(/\\([nrt\\])/g,function(e,i){return"n"==i?"\n":"r"==i?"\r":"t"==i?"\t":"\\"})}},{key:"eq",value:function(n){return this.search==n.search&&this.replace==n.replace&&this.caseSensitive==n.caseSensitive&&this.regexp==n.regexp&&this.wholeWord==n.wholeWord}},{key:"create",value:function(){return this.regexp?new Oet(this):new Net(this)}},{key:"getCursor",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0,r=n.doc?n:No.create({doc:n});return null==i&&(i=r.doc.length),this.regexp?B0(this,r,e,i):$0(this,r,e,i)}}]),t}(),_fe=Se(function t(n){ke(this,t),this.spec=n});function $0(t,n,e,i){return new R0(n.doc,t.unquoted,e,i,t.caseSensitive?void 0:function(r){return r.toLowerCase()},t.wholeWord?(r=n.doc,o=n.charCategorizer(n.selection.main.head),function(s,a,l,c){return(c>s||c+l.length=r)return null;s.push(o.value)}return s}},{key:"highlight",value:function(i,r,o,s){for(var a=$0(this.spec,i,Math.max(0,r-this.spec.unquoted.length),Math.min(o+this.spec.unquoted.length,i.doc.length));!a.next().done;)s(a.value.from,a.value.to)}}]),e}();function B0(t,n,e,i){return new ffe(n.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?(r=n.charCategorizer(n.selection.main.head),function(o,s,a){return!a[0].length||(r(aD(a.input,a.index))!=cs.Word||r(lD(a.input,a.index))!=cs.Word)&&(r(lD(a.input,a.index+a[0].length))!=cs.Word||r(aD(a.input,a.index+a[0].length))!=cs.Word)}):void 0},e,i);var r}function aD(t,n){return t.slice(Pl(t,n,!1),n)}function lD(t,n){return t.slice(n,Pl(t,n))}var Oet=function(t){wt(e,_fe);var n=Ct(e);function e(){return ke(this,e),n.apply(this,arguments)}return Se(e,[{key:"nextMatch",value:function(i,r,o){var s=B0(this.spec,i,o,i.doc.length).next();return s.done&&(s=B0(this.spec,i,0,r).next()),s.done?null:s.value}},{key:"prevMatchInRange",value:function(i,r,o){for(var s=1;;s++){for(var a=Math.max(r,o-1e4*s),l=B0(this.spec,i,a,o),c=null;!l.next().done;)c=l.value;if(c&&(a==r||c.from>a+10))return c;if(a==r)return null}}},{key:"prevMatch",value:function(i,r,o){return this.prevMatchInRange(i,0,r)||this.prevMatchInRange(i,o,i.doc.length)}},{key:"getReplacement",value:function(i){return this.spec.unquote(this.spec.replace.replace(/\$([$&\d+])/g,function(r,o){return"$"==o?"$":"&"==o?i.match[0]:"0"!=o&&+o=r)return null;s.push(o.value)}return s}},{key:"highlight",value:function(i,r,o,s){for(var a=B0(this.spec,i,Math.max(0,r-250),Math.min(o+250,i.doc.length));!a.next().done;)s(a.value.from,a.value.to)}}]),e}(),E_=hr.define(),oP=hr.define(),Cp=Va.define({create:function(t){return new sP(lP(t).create(),null)},update:function(t,n){var e,i=Re(n.effects);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.is(E_)?t=new sP(r.value.create(),t.panel):r.is(oP)&&(t=new sP(t.query,r.value?aP:null))}}catch(o){i.e(o)}finally{i.f()}return t},provide:function(t){return b_.from(t,function(n){return n.panel})}}),sP=Se(function t(n,e){ke(this,t),this.query=n,this.panel=e}),jet=yi.mark({class:"cm-searchMatch"}),Pet=yi.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Let=ka.fromClass(function(){function t(n){ke(this,t),this.view=n,this.decorations=this.highlight(n.state.field(Cp))}return Se(t,[{key:"update",value:function(n){var e=n.state.field(Cp);(e!=n.startState.field(Cp)||n.docChanged||n.selectionSet||n.viewportChanged)&&(this.decorations=this.highlight(e))}},{key:"highlight",value:function(n){var e=n.query;if(!n.panel||!e.spec.valid)return yi.none;for(var i=this.view,r=new Gm,o=0,s=i.visibleRanges,a=s.length;os[o+1].from-500;)u=s[++o].to;e.highlight(i.state,c,u,function(d,h){var f=i.state.selection.ranges.some(function(p){return p.from==d&&p.to==h});r.add(d,h,f?Pet:jet)})}return r.finish()}}]),t}(),{decorations:function(t){return t.decorations}});function A_(t){return function(n){var e=n.state.field(Cp,!1);return e&&e.query.spec.valid?t(n,e):cP(n)}}var cD=A_(function(t,n){var i=t.state.selection.main.to,r=n.query.nextMatch(t.state,i,i);return!!r&&(t.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:dP(t,r),userEvent:"select.search"}),!0)}),uD=A_(function(t,n){var i=t.state,r=i.selection.main.from,o=n.query.prevMatch(i,r,r);return!!o&&(t.dispatch({selection:{anchor:o.from,head:o.to},scrollIntoView:!0,effects:dP(t,o),userEvent:"select.search"}),!0)}),Ret=A_(function(t,n){var e=n.query.matchAll(t.state,1e3);return!(!e||!e.length||(t.dispatch({selection:en.create(e.map(function(i){return en.range(i.from,i.to)})),userEvent:"select.search.matches"}),0))}),xfe=A_(function(t,n){var e=n.query,i=t.state,r=i.selection.main,o=r.from,s=r.to;if(i.readOnly)return!1;var a=e.nextMatch(i,o,o);if(!a)return!1;var l,c,u=[],d=[];if(a.from==o&&a.to==s&&(c=i.toText(e.getReplacement(a)),u.push({from:a.from,to:a.to,insert:c}),a=e.nextMatch(i,a.from,a.to),d.push(Wn.announce.of(i.phrase("replaced match on line $",i.doc.lineAt(o).number)+"."))),a){var h=0==u.length||u[0].from>=a.to?0:a.to-a.from-c.length;l={anchor:a.from-h,head:a.to-h},d.push(dP(t,a))}return t.dispatch({changes:u,selection:l,scrollIntoView:!!l,effects:d,userEvent:"input.replace"}),!0}),$et=A_(function(t,n){var e=n.query;if(t.state.readOnly)return!1;var i=e.matchAll(t.state,1e9).map(function(o){return{from:o.from,to:o.to,insert:e.getReplacement(o)}});if(!i.length)return!1;var r=t.state.phrase("replaced $ matches",i.length)+".";return t.dispatch({changes:i,effects:Wn.announce.of(r),userEvent:"input.replace.all"}),!0});function aP(t){return t.state.facet(sD).createPanel(t)}function lP(t,n){var e,i,r,o,s=t.selection.main,a=s.empty||s.to>s.from+100?"":t.sliceDoc(s.from,s.to);if(n&&!a)return n;var l=t.facet(sD);return new bfe({search:(null!==(e=n?.literal)&&void 0!==e?e:l.literal)?a:a.replace(/\n/g,"\\n"),caseSensitive:null!==(i=n?.caseSensitive)&&void 0!==i?i:l.caseSensitive,literal:null!==(r=n?.literal)&&void 0!==r?r:l.literal,wholeWord:null!==(o=n?.wholeWord)&&void 0!==o?o:l.wholeWord})}var cP=function(t){var n=t.state.field(Cp,!1);if(n&&n.panel){var e=y_(t,aP);if(!e)return!1;var i=e.dom.querySelector("[main-field]");if(i&&i!=t.root.activeElement){var r=lP(t.state,n.query.spec);r.valid&&t.dispatch({effects:E_.of(r)}),i.focus(),i.select()}}else t.dispatch({effects:[oP.of(!0),n?E_.of(lP(t.state,n.query.spec)):hr.appendConfig.of(hP)]});return!0},uP=function(t){var n=t.state.field(Cp,!1);if(!n||!n.panel)return!1;var e=y_(t,aP);return e&&e.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:oP.of(!1)}),!0},Bet=[{key:"Mod-f",run:cP,scope:"editor search-panel"},{key:"F3",run:cD,shift:uD,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:cD,shift:uD,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:uP,scope:"editor search-panel"},{key:"Mod-Shift-l",run:function(t){var n=t.state,e=t.dispatch,i=n.selection;if(i.ranges.length>1||i.main.empty)return!1;for(var r=i.main,o=r.from,a=[],l=0,c=new R0(n.doc,n.sliceDoc(o,r.to));!c.next().done;){if(a.length>1e3)return!1;c.value.from==o&&(l=a.length),a.push(en.range(c.value.from,c.value.to))}return e(n.update({selection:en.create(a,l),userEvent:"select.search.matches"})),!0}},{key:"Alt-g",run:function(t){var n=y_(t,rP);if(!n){var e=[oD.of(!0)];null==t.state.field(gfe,!1)&&e.push(hr.appendConfig.of([gfe,Det])),t.dispatch({effects:e}),n=y_(t,rP)}return n&&n.dom.querySelector("input").focus(),!0}},{key:"Mod-d",run:function(t){var s,a,l,c,u,n=t.state,e=t.dispatch,i=n.selection.ranges;if(i.some(function(s){return s.from===s.to}))return l=(s={state:n,dispatch:e}).dispatch,!(u=en.create((c=(a=s.state).selection).ranges.map(function(d){return a.wordAt(d.head)||en.cursor(d.head)}),c.mainIndex)).eq(c)&&(l(a.update({selection:u})),!0);var r=n.sliceDoc(i[0].from,i[0].to);if(n.selection.ranges.some(function(s){return n.sliceDoc(s.from,s.to)!=r}))return!1;var o=function(s,a){for(var l=s.selection,c=l.main,u=l.ranges,d=s.wordAt(c.head),h=d&&d.from==c.from&&d.to==c.to,f=function(v,y){if(y.next(),!y.done){if(v&&u.some(function(C){return C.from==y.value.from}))return m=y,p=v,"continue";if(h){var _=s.wordAt(y.value.from);if(!_||_.from!=y.value.from||_.to!=y.value.to)return m=y,p=v,"continue"}return p=v,m=y,{v:y.value}}if(v)return m=y,p=v,{v:null};y=new R0(s.doc,a,0,Math.max(0,u[u.length-1].from-1)),p=v=!0,m=y},p=!1,m=new R0(s.doc,a,u[u.length-1].to);;){var g=f(p,m);if("continue"!==g&&"object"===bn(g))return g.v}}(n,r);return!!o&&(e(n.update({selection:n.selection.addRange(en.range(o.from,o.to),!1),effects:Wn.scrollIntoView(o.to)})),!0)},preventDefault:!0}],Vet=function(){function t(n){var e=this;ke(this,t),this.view=n;var i=this.query=n.state.field(Cp).query.spec;function r(o,s,a){return Oo("button",{class:"cm-button",name:o,onclick:s,type:"button"},a)}this.commit=this.commit.bind(this),this.searchField=Oo("input",{value:i.search,placeholder:Ac(n,"Find"),"aria-label":Ac(n,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Oo("input",{value:i.replace,placeholder:Ac(n,"Replace"),"aria-label":Ac(n,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Oo("input",{type:"checkbox",name:"case",form:"",checked:i.caseSensitive,onchange:this.commit}),this.reField=Oo("input",{type:"checkbox",name:"re",form:"",checked:i.regexp,onchange:this.commit}),this.wordField=Oo("input",{type:"checkbox",name:"word",form:"",checked:i.wholeWord,onchange:this.commit}),this.dom=Oo("div",{onkeydown:function(o){return e.keydown(o)},class:"cm-search"},[this.searchField,r("next",function(){return cD(n)},[Ac(n,"next")]),r("prev",function(){return uD(n)},[Ac(n,"previous")]),r("select",function(){return Ret(n)},[Ac(n,"all")]),Oo("label",null,[this.caseField,Ac(n,"match case")]),Oo("label",null,[this.reField,Ac(n,"regexp")]),Oo("label",null,[this.wordField,Ac(n,"by word")])].concat(si(n.state.readOnly?[]:[Oo("br"),this.replaceField,r("replace",function(){return xfe(n)},[Ac(n,"replace")]),r("replaceAll",function(){return $et(n)},[Ac(n,"replace all")])]),[Oo("button",{name:"close",onclick:function(){return uP(n)},"aria-label":Ac(n,"close"),type:"button"},["\xd7"])]))}return Se(t,[{key:"commit",value:function(){var n=new bfe({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});n.eq(this.query)||(this.query=n,this.view.dispatch({effects:E_.of(n)}))}},{key:"keydown",value:function(n){!function(e,i,r){return bde(yde(e.state),i,e,"search-panel")}(this.view,n)?13==n.keyCode&&n.target==this.searchField?(n.preventDefault(),(n.shiftKey?uD:cD)(this.view)):13==n.keyCode&&n.target==this.replaceField&&(n.preventDefault(),xfe(this.view)):n.preventDefault()}},{key:"update",value:function(n){var e,i=Re(n.transactions);try{for(i.s();!(e=i.n()).done;){var r,o=Re(e.value.effects);try{for(o.s();!(r=o.n()).done;){var s=r.value;s.is(E_)&&!s.value.eq(this.query)&&this.setQuery(s.value)}}catch(a){o.e(a)}finally{o.f()}}}catch(a){i.e(a)}finally{i.f()}}},{key:"setQuery",value:function(n){this.query=n,this.searchField.value=n.search,this.replaceField.value=n.replace,this.caseField.checked=n.caseSensitive,this.reField.checked=n.regexp,this.wordField.checked=n.wholeWord}},{key:"mount",value:function(){this.searchField.select()}},{key:"pos",get:function(){return 80}},{key:"top",get:function(){return this.view.state.facet(sD).top}}]),t}();function Ac(t,n){return t.state.phrase(n)}var dD=/[\s\.,:;?!]/;function dP(t,n){var e=n.from,i=n.to,r=t.state.doc.lineAt(e),o=t.state.doc.lineAt(i).to,s=Math.max(r.from,e-30),a=Math.min(o,i+30),l=t.state.sliceDoc(s,a);if(s!=r.from)for(var c=0;c<30;c++)if(!dD.test(l[c+1])&&dD.test(l[c])){l=l.slice(c);break}if(a!=o)for(var u=l.length-1;u>l.length-30;u--)if(!dD.test(l[u-1])&&dD.test(l[u])){l=l.slice(0,u);break}return Wn.announce.of("".concat(t.state.phrase("current match"),". ").concat(l," ").concat(t.state.phrase("on line")," ").concat(r.number,"."))}var Het=Wn.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),hP=[Cp,k0.lowest(Let),Het],wfe=function(){function t(n,e,i){ke(this,t),this.state=n,this.pos=e,this.explicit=i,this.abortListeners=[]}return Se(t,[{key:"tokenBefore",value:function(n){for(var e=hl(this.state).resolveInner(this.pos,-1);e&&n.indexOf(e.name)<0;)e=e.parent;return e?{from:e.from,to:this.pos,text:this.state.sliceDoc(e.from,this.pos),type:e.type}:null}},{key:"matchBefore",value:function(n){var e=this.state.doc.lineAt(this.pos),i=Math.max(e.from,this.pos-250),r=e.text.slice(i-e.from,this.pos-e.from),o=r.search(Sfe(n,!1));return o<0?null:{from:i+o,to:this.pos,text:r.slice(o)}}},{key:"aborted",get:function(){return null==this.abortListeners}},{key:"addEventListener",value:function(n,e){"abort"==n&&this.abortListeners&&this.abortListeners.push(e)}}]),t}();function Cfe(t){var n=Object.keys(t).join(""),e=/\w/.test(n);return e&&(n=n.replace(/\w/g,"")),"[".concat(e?"\\w":"").concat(n.replace(/[^\w\s]/g,"\\$&"),"]")}var kfe=Se(function t(n,e,i){ke(this,t),this.completion=n,this.source=e,this.match=i});function kp(t){return t.selection.main.head}function Sfe(t,n){var e,i=t.source,r=n&&"^"!=i[0],o="$"!=i[i.length-1];return r||o?new RegExp("".concat(r?"^":"","(?:").concat(i,")").concat(o?"$":""),null!==(e=t.flags)&&void 0!==e?e:t.ignoreCase?"i":""):t}function Dfe(t,n){var r,o,s,a,e=n.completion.apply||n.completion.label,i=n.source;"string"==typeof e?t.dispatch((r=t.state,o=e,s=i.from,a=i.to,Object.assign(Object.assign({},r.changeByRange(function(l){if(l==r.selection.main)return{changes:{from:s,to:a,insert:o},range:en.cursor(s+o.length)};var c=a-s;return!l.empty||c&&r.sliceDoc(l.from-c,l.from)!=r.sliceDoc(s,a)?{range:l}:{changes:{from:l.from-c,to:l.from,insert:o},range:en.cursor(l.from-c+o.length)}})),{userEvent:"input.complete"}))):e(t,n.completion,i.from,i.to)}var Tfe=new WeakMap;function Uet(t){if(!Array.isArray(t))return t;var n=Tfe.get(t);return n||Tfe.set(t,n=function zet(t){var n=t.map(function(s){return"string"==typeof s?{label:s}:s}),i=Un(n.every(function(s){return/^\w+$/.test(s.label)})?[/\w*$/,/\w+$/]:function(s){var a,l=Object.create(null),c=Object.create(null),u=Re(s);try{for(u.s();!(a=u.n()).done;){var d=a.value.label;l[d[0]]=!0;for(var h=1;h=48&&R<=57||R>=97&&R<=122?2:R>=65&&R<=90?1:0:(z=S4(R))!=z.toLowerCase()?1:z!=z.toUpperCase()?2:0;(!M||1==U&&C||0==G&&0!=U)&&(e[m]==R||i[m]==R&&(g=!0)?s[m++]=M:s.length&&(S=!1)),G=U,M+=Sc(R)}return m==c&&0==s[0]&&S?this.result((g?-200:0)-100,s,n):v==c&&0==y?[-200-n.length,0,_]:l>-1?[-700-n.length,l,l+this.pattern.length]:v==c?[-900-n.length,y,_]:m==c?this.result((g?-200:0)-100-700+(S?0:-1100),s,n):2==e.length?null:this.result((r[0]?-700:0)-200-1100,r,n)}},{key:"result",value:function(n,e,i){var r,o=[n-i.length],s=1,a=Re(e);try{for(a.s();!(r=a.n()).done;){var l=r.value,c=l+(this.astral?Sc(Ba(i,l)):1);s>1&&o[s-1]==l?o[s-1]=c:(o[s++]=l,o[s++]=c)}}catch(u){a.e(u)}finally{a.f()}return o}}]),t}(),_h=Qn.define({combine:function(t){return su(t,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,optionClass:function(){return""},aboveCursor:!1,icons:!0,addToOptions:[],compareCompletions:function(n,e){return n.label.localeCompare(e.label)}},{defaultKeymap:function(n,e){return n&&e},closeOnBlur:function(n,e){return n&&e},icons:function(n,e){return n&&e},optionClass:function(n,e){return function(i){return r=n(i),o=e(i),r?o?r+" "+o:r:o;var r,o}},addToOptions:function(n,e){return n.concat(e)}})}});function Efe(t,n,e){if(t<=e)return{from:0,to:t};if(n<0&&(n=0),n<=t>>1){var i=Math.floor(n/e);return{from:i*e,to:(i+1)*e}}var r=Math.floor((t-n)/e);return{from:t-(r+1)*e,to:t-r*e}}var Wet=function(){function t(n,e){var i=this;ke(this,t),this.view=n,this.stateField=e,this.info=null,this.placeInfo={read:function(){return i.measureInfo()},write:function(c){return i.positionInfo(c)},key:this};var c,u,r=n.state.field(e),o=r.open,s=o.options,a=o.selected,l=n.state.facet(_h);this.optionContent=(u=(c=l).addToOptions.slice(),c.icons&&u.push({render:function(d){var h,f=document.createElement("div");return f.classList.add("cm-completionIcon"),d.type&&(h=f.classList).add.apply(h,si(d.type.split(/\s+/g).map(function(p){return"cm-completionIcon-"+p}))),f.setAttribute("aria-hidden","true"),f},position:20}),u.push({render:function(d,h,f){var p=document.createElement("span");p.className="cm-completionLabel";for(var m=d.label,g=0,v=1;vg&&p.appendChild(document.createTextNode(m.slice(g,y)));var C=p.appendChild(document.createElement("span"));C.appendChild(document.createTextNode(m.slice(y,_))),C.className="cm-completionMatchedText",g=_}return g=this.range.to)&&(this.range=Efe(i.options.length,i.selected,this.view.state.facet(_h).maxRenderedOptions),this.list.remove(),this.list=this.dom.appendChild(this.createListBox(i.options,e.id,this.range)),this.list.addEventListener("scroll",function(){n.info&&n.view.requestMeasure(n.placeInfo)})),this.updateSelectedOption(i.selected)){this.info&&(this.info.remove(),this.info=null);var r=i.options[i.selected].completion,o=r.info;if(!o)return;var s="string"==typeof o?document.createTextNode(o):o(r);if(!s)return;"then"in s?s.then(function(a){a&&n.view.state.field(n.stateField,!1)==e&&n.addInfoPane(a)}).catch(function(a){return Ec(n.view.state,a,"completion info")}):this.addInfoPane(s)}}},{key:"addInfoPane",value:function(n){var e=this.info=document.createElement("div");e.className="cm-tooltip cm-completionInfo",e.appendChild(n),this.dom.appendChild(e),this.view.requestMeasure(this.placeInfo)}},{key:"updateSelectedOption",value:function(n){for(var e=null,i=this.list.firstChild,r=this.range.from;i;i=i.nextSibling,r++)r==n?i.hasAttribute("aria-selected")||(i.setAttribute("aria-selected","true"),e=i):i.hasAttribute("aria-selected")&&i.removeAttribute("aria-selected");return e&&(s=e,a=(o=this.list).getBoundingClientRect(),(l=s.getBoundingClientRect()).topa.bottom&&(o.scrollTop+=l.bottom-a.bottom)),e;var o,s,a,l}},{key:"measureInfo",value:function(){var n=this.dom.querySelector("[aria-selected]");if(!n||!this.info)return null;var e=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),r=n.getBoundingClientRect();if(r.top>Math.min(innerHeight,e.bottom)-10||r.bottom=this.options.length?this:new t(this.options,Mfe(e,n),this.tooltip,this.timestamp,n)}},{key:"map",value:function(n){return new t(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:n.mapPos(this.tooltip.pos)}),this.timestamp,this.selected)}}],[{key:"build",value:function(n,e,i,r,o){var s=function(d,h){var f,p=[],m=0,g=Re(d);try{for(g.s();!(f=g.n()).done;){var v=f.value;if(v.hasResult())if(!1===v.result.filter){var y,_=v.result.getMatch,C=Re(v.result.options);try{for(C.s();!(y=C.n()).done;){var S=y.value,M=[1e9-m++];if(_){var $,G=Re(_(S));try{for(G.s();!($=G.n()).done;)M.push($.value)}catch(N){G.e(N)}finally{G.f()}}p.push(new kfe(S,v,M))}}catch(N){C.e(N)}finally{C.f()}}else{var z,U=new Get(h.sliceDoc(v.from,v.to)),q=void 0,re=Re(v.result.options);try{for(re.s();!(z=re.n()).done;){var L=z.value;(q=U.match(L.label))&&(null!=L.boost&&(q[0]+=L.boost),p.push(new kfe(L,v,q)))}}catch(N){re.e(N)}finally{re.f()}}}}catch(N){g.e(N)}finally{g.f()}var X,Z=[],H=null,he=h.facet(_h).compareCompletions,E=Re(p.sort(function(N,Y){return Y.match[0]-N.match[0]||he(N.completion,Y.completion)}));try{for(E.s();!(X=E.n()).done;){var F=X.value;!H||H.label!=F.completion.label||H.detail!=F.completion.detail||null!=H.type&&null!=F.completion.type&&H.type!=F.completion.type||H.apply!=F.completion.apply?Z.push(F):Afe(F.completion)>Afe(H)&&(Z[Z.length-1]=F),H=F.completion}}catch(N){E.e(N)}finally{E.f()}return Z}(n,e);if(!s.length)return null;var a,l=e.facet(_h).selectOnOpen?0:-1;if(r&&r.selected!=l&&-1!=r.selected)for(var c=r.options[r.selected].completion,u=0;u-1&&(e["aria-activedescendant"]=t+"-"+n),e}var Jet=[];function fP(t){return t.isUserEvent("input.type")?"input":t.isUserEvent("delete.backward")?"delete":null}var Jm=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;ke(this,t),this.source=n,this.state=e,this.explicitPos=i}return Se(t,[{key:"hasResult",value:function(){return!1}},{key:"update",value:function(n,e){var i=fP(n),r=this;i?r=r.handleUserEvent(n,i,e):n.docChanged?r=r.handleChange(n):n.selection&&0!=r.state&&(r=new t(r.source,0));var o,s=Re(n.effects);try{for(s.s();!(o=s.n()).done;){var a=o.value;if(a.is(pP))r=new t(r.source,1,a.value?kp(n.state):-1);else if(a.is(hD))r=new t(r.source,0);else if(a.is(Ife)){var l,c=Re(a.value);try{for(c.s();!(l=c.n()).done;){var u=l.value;u.source==r.source&&(r=u)}}catch(d){c.e(d)}finally{c.f()}}}}catch(d){s.e(d)}finally{s.f()}return r}},{key:"handleUserEvent",value:function(n,e,i){return"delete"!=e&&i.activateOnTyping?new t(this.source,1):this.map(n.changes)}},{key:"handleChange",value:function(n){return n.changes.touchesRange(kp(n.startState))?new t(this.source,0):this.map(n.changes)}},{key:"map",value:function(n){return n.empty||this.explicitPos<0?this:new t(this.source,this.state,n.mapPos(this.explicitPos))}}]),t}(),Ket=function(t){wt(e,Jm);var n=Ct(e);function e(i,r,o,s,a){var l;return ke(this,e),(l=n.call(this,i,2,r)).result=o,l.from=s,l.to=a,l}return Se(e,[{key:"hasResult",value:function(){return!0}},{key:"handleUserEvent",value:function(i,r,o){var s,a=i.changes.mapPos(this.from),l=i.changes.mapPos(this.to,1),c=kp(i.state);if((this.explicitPos<0?c<=a:cl||"delete"==r&&kp(i.startState)==this.from)return new Jm(this.source,"input"==r&&o.activateOnTyping?1:0);var u,d=this.explicitPos<0?-1:i.changes.mapPos(this.explicitPos);return function(h,f,p,m){if(!h)return!1;var g=f.sliceDoc(p,m);return"function"==typeof h?h(g,p,m,f):Sfe(h,!0).test(g)}(this.result.validFor,i.state,a,l)?new e(this.source,d,this.result,a,l):this.result.update&&(u=this.result.update(this.result,a,l,new wfe(i.state,c,d>=0)))?new e(this.source,d,u,u.from,null!==(s=u.to)&&void 0!==s?s:kp(i.state)):new Jm(this.source,1,d)}},{key:"handleChange",value:function(i){return i.changes.touchesRange(this.from,this.to)?new Jm(this.source,0):this.map(i.changes)}},{key:"map",value:function(i){return i.empty?this:new e(this.source,this.explicitPos<0?-1:i.mapPos(this.explicitPos),this.result,i.mapPos(this.from),i.mapPos(this.to,1))}}]),e}(),pP=hr.define(),hD=hr.define(),Ife=hr.define({map:function(t,n){return t.map(function(e){return e.map(n)})}}),Ffe=hr.define(),uu=Va.define({create:function(){return Xet.start()},update:function(t,n){return t.update(n)},provide:function(t){return[FS.from(t,function(n){return n.tooltip}),Wn.contentAttributes.from(t,function(n){return n.attrs})]}});function fD(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"option";return function(e){var i=e.state.field(uu,!1);if(!i||!i.open||Date.now()-i.open.timestamp<75)return!1;var r,o=1;"page"==n&&(r=function KQe(t,n){var e=t.plugin(Ode);if(!e)return null;var i=e.manager.tooltips.indexOf(n);return i<0?null:e.manager.tooltipViews[i]}(e,i.open.tooltip))&&(o=Math.max(2,Math.floor(r.dom.offsetHeight/r.dom.querySelector("li").offsetHeight)-1));var s=i.open.options.length,a=i.open.selected>-1?i.open.selected+o*(t?1:-1):t?0:s-1;return a<0?a="page"==n?0:s-1:a>=s&&(a="page"==n?s-1:0),e.dispatch({effects:Ffe.of(a)}),!0}}var Qet=Se(function t(n,e){ke(this,t),this.active=n,this.context=e,this.time=Date.now(),this.updates=[],this.done=void 0}),Zet=ka.fromClass(function(){function t(n){ke(this,t),this.view=n,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;var e,i=Re(n.state.field(uu).active);try{for(i.s();!(e=i.n()).done;){var r=e.value;1==r.state&&this.startQuery(r)}}catch(o){i.e(o)}finally{i.f()}}return Se(t,[{key:"update",value:function(n){var e=this,i=n.state.field(uu);if(n.selectionSet||n.docChanged||n.startState.field(uu)!=i){for(var r=n.transactions.some(function(p){return(p.selection||p.docChanged)&&!fP(p)}),o=0;o50&&Date.now()-s.time>1e3){var a,l=Re(s.context.abortListeners);try{for(l.s();!(a=l.n()).done;){var c=a.value;try{c()}catch(p){Ec(this.view.state,p)}}}catch(p){l.e(p)}finally{l.f()}s.context.abortListeners=null,this.running.splice(o--,1)}else{var u;(u=s.updates).push.apply(u,si(n.transactions))}}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=i.active.some(function(p){return 1==p.state&&!e.running.some(function(m){return m.active.source==p.source})})?setTimeout(function(){return e.startUpdate()},50):-1,0!=this.composing){var d,h=Re(n.transactions);try{for(h.s();!(d=h.n()).done;){var f=d.value;"input"==fP(f)?this.composing=2:2==this.composing&&f.selection&&(this.composing=3)}}catch(p){h.e(p)}finally{h.f()}}}}},{key:"startUpdate",value:function(){var n=this;this.debounceUpdate=-1;var e,i=Re(this.view.state.field(uu).active);try{var r=function(){var o=e.value;1!=o.state||n.running.some(function(s){return s.active.source==o.source})||n.startQuery(o)};for(i.s();!(e=i.n()).done;)r()}catch(o){i.e(o)}finally{i.f()}}},{key:"startQuery",value:function(n){var e=this,i=this.view.state,r=kp(i),o=new wfe(i,r,n.explicitPos==r),s=new Qet(n,o);this.running.push(s),Promise.resolve(n.source(o)).then(function(a){s.context.aborted||(s.done=a||null,e.scheduleAccept())},function(a){e.view.dispatch({effects:hD.of(null)}),Ec(e.view.state,a)})}},{key:"scheduleAccept",value:function(){var n=this;this.running.every(function(e){return void 0!==e.done})?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(function(){return n.accept()},50))}},{key:"accept",value:function(){var n,e=this;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;for(var i=[],r=this.view.state.facet(_h),o=function(a){var l=e.running[a];if(void 0===l.done)return s=a,"continue";if(e.running.splice(a--,1),l.done){var c,u=new Ket(l.active.source,l.active.explicitPos,l.done,l.done.from,null!==(n=l.done.to)&&void 0!==n?n:kp(l.updates.length?l.updates[0].startState:e.view.state)),d=Re(l.updates);try{for(d.s();!(c=d.n()).done;)u=u.update(c.value,r)}catch(y){d.e(y)}finally{d.f()}if(u.hasResult())return i.push(u),s=a,"continue"}var f=e.view.state.field(uu).active.find(function(y){return y.source==l.active.source});if(f&&1==f.state)if(null==l.done){var p,m=new Jm(l.active.source,0),g=Re(l.updates);try{for(g.s();!(p=g.n()).done;)m=m.update(p.value,r)}catch(y){g.e(y)}finally{g.f()}1!=m.state&&i.push(m)}else e.startQuery(f);s=a},s=0;s ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",listStyle:"none",margin:0,padding:0,"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer",padding:"1px 3px",lineHeight:1.2}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"300px"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25cb'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25cc'"}},".cm-completionIcon-variable":{"&:after":{content:"'\u{1d465}'"}},".cm-completionIcon-constant":{"&:after":{content:"'\u{1d436}'"}},".cm-completionIcon-type":{"&:after":{content:"'\u{1d461}'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222a'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25a1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\u{1f511}\ufe0e'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25a2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),pD={brackets:["(","[","{","'",'"'],before:")]}:;>"},Km=hr.define({map:function(t,n){return n.mapPos(t,-1,Ll.TrackAfter)??void 0}}),mP=hr.define({map:function(t,n){return n.mapPos(t)}}),gP=new(function(t){wt(e,Um);var n=Ct(e);function e(){return ke(this,e),n.apply(this,arguments)}return Se(e)}());gP.startSide=1,gP.endSide=-1;var Nfe=Va.define({create:function(){return Go.empty},update:function(t,n){if(n.selection){var e=n.state.doc.lineAt(n.selection.main.head).from,i=n.startState.doc.lineAt(n.startState.selection.main.head).from;e!=n.changes.mapPos(i,-1)&&(t=Go.empty)}t=t.map(n.changes);var r,o=Re(n.effects);try{var s=function(){var a=r.value;a.is(Km)?t=t.update({add:[gP.range(a.value,a.value+1)]}):a.is(mP)&&(t=t.update({filter:function(l){return l!=a.value}}))};for(o.s();!(r=o.n()).done;)s()}catch(a){o.e(a)}finally{o.f()}return t}});function Ofe(t){for(var n=0;n<8;n+=2)if("()[]{}<>".charCodeAt(n)==t)return"()[]{}<>".charAt(n+1);return S4(t<128?t:t+1)}function jfe(t,n){return t.languageDataAt("closeBrackets",n)[0]||pD}var ttt="object"==(typeof navigator>"u"?"undefined":bn(navigator))&&/Android\b/.test(navigator.userAgent),ntt=Wn.inputHandler.of(function(t,n,e,i){if((ttt?t.composing:t.compositionStarted)||t.state.readOnly)return!1;var r=t.state.selection.main;if(i.length>2||2==i.length&&1==Sc(Ba(i,0))||n!=r.from||e!=r.to)return!1;var o=function(s,a){var l,c=jfe(s,s.selection.main.head),u=c.brackets||pD.brackets,d=Re(u);try{for(d.s();!(l=d.n()).done;){var h=l.value,f=Ofe(Ba(h,0));if(a==h)return f==h?stt(s,h,u.indexOf(h+h+h)>-1):rtt(s,h,f,c.before||pD.before);if(a==f&&Pfe(s,s.selection.main.from))return ott(s,0,f)}}catch(p){d.e(p)}finally{d.f()}return null}(t.state,i);return!!o&&(t.dispatch(o),!0)}),itt=[{key:"Backspace",run:function(t){var n=t.state,e=t.dispatch;if(n.readOnly)return!1;var i=jfe(n,n.selection.main.head).brackets||pD.brackets,r=null,o=n.changeByRange(function(s){if(s.empty){var a,l=Sc(Ba(f=(d=n.doc).sliceString((h=s.head)-2,h),0))==f.length?f:f.slice(1),c=Re(i);try{for(c.s();!(a=c.n()).done;){var u=a.value;if(u==l&&mD(n.doc,s.head)==Ofe(Ba(u,0)))return{changes:{from:s.head-u.length,to:s.head+u.length},range:en.cursor(s.head-u.length),userEvent:"delete.backward"}}}catch(d){c.e(d)}finally{c.f()}}var d,h,f;return{range:r=s}});return r||e(n.update(o,{scrollIntoView:!0})),!r}}];function Pfe(t,n){var e=!1;return t.field(Nfe).between(0,t.doc.length,function(i){i==n&&(e=!0)}),e}function mD(t,n){var e=t.sliceString(n,n+2);return e.slice(0,Sc(Ba(e,0)))}function rtt(t,n,e,i){var r=null,o=t.changeByRange(function(s){if(!s.empty)return{changes:[{insert:n,from:s.from},{insert:e,from:s.to}],effects:Km.of(s.to+n.length),range:en.range(s.anchor+n.length,s.head+n.length)};var a=mD(t.doc,s.head);return!a||/\s/.test(a)||i.indexOf(a)>-1?{changes:{insert:n+e,from:s.head},effects:Km.of(s.head+n.length),range:en.cursor(s.head+n.length)}:{range:r=s}});return r?null:t.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function ott(t,n,e){var i=null,r=t.selection.ranges.map(function(o){return o.empty&&mD(t.doc,o.head)==e?en.cursor(o.head+e.length):i=o});return i?null:t.update({selection:en.create(r,t.selection.mainIndex),scrollIntoView:!0,effects:t.selection.ranges.map(function(o){return mP.of(o.from)})})}function stt(t,n,e){var i=null,r=t.changeByRange(function(o){if(!o.empty)return{changes:[{insert:n,from:o.from},{insert:n,from:o.to}],effects:Km.of(o.to+n.length),range:en.range(o.anchor+n.length,o.head+n.length)};var s=o.head,a=mD(t.doc,s);if(a==n){if(Lfe(t,s))return{changes:{insert:n+n,from:s},effects:Km.of(s+n.length),range:en.cursor(s+n.length)};if(Pfe(t,s)){var l=e&&t.sliceDoc(s,s+3*n.length)==n+n+n;return{range:en.cursor(s+n.length*(l?3:1)),effects:mP.of(s)}}}else{if(e&&t.sliceDoc(s-2*n.length,s)==n+n&&Lfe(t,s-2*n.length))return{changes:{insert:n+n+n+n,from:s},effects:Km.of(s+n.length),range:en.cursor(s+n.length)};if(t.charCategorizer(s)(a)!=cs.Word){var c=t.sliceDoc(s-1,s);if(c!=n&&t.charCategorizer(s)(c)!=cs.Word&&!function(u,d,h){for(var f=hl(u).resolveInner(d,-1),p=0;p<5;p++){if(u.sliceDoc(f.from,f.from+h.length)==h){for(var m=f.firstChild;m&&m.from==f.from&&m.to-m.from>h.length;){if(u.sliceDoc(m.to-h.length,m.to)==h)return!1;m=m.firstChild}return!0}var g=f.to==d&&f.parent;if(!g)break;f=g}return!1}(t,s,n))return{changes:{insert:n+n,from:s},effects:Km.of(s+n.length),range:en.cursor(s+n.length)}}}return{range:i=o}});return i?null:t.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function Lfe(t,n){var e=hl(t).resolveInner(n+1);return e.parent&&e.from==n}function att(){return[uu,_h.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Zet,ltt,ett]}var Rfe=[{key:"Ctrl-Space",run:function(t){return!!t.state.field(uu,!1)&&(t.dispatch({effects:pP.of(!0)}),!0)}},{key:"Escape",run:function(t){var n=t.state.field(uu,!1);return!(!n||!n.active.some(function(e){return 0!=e.state})||(t.dispatch({effects:hD.of(null)}),0))}},{key:"ArrowDown",run:fD(!0)},{key:"ArrowUp",run:fD(!1)},{key:"PageDown",run:fD(!0,"page")},{key:"PageUp",run:fD(!1,"page")},{key:"Enter",run:function(t){var n=t.state.field(uu,!1);return!(t.state.readOnly||!n||!n.open||Date.now()-n.open.timestamp<75||n.open.selected<0||(Dfe(t,n.open.options[n.open.selected]),0))}}],ltt=k0.highest(AS.computeN([_h],function(t){return t.facet(_h).defaultKeymap?[Rfe]:[]})),ctt=Se(function t(n,e,i){ke(this,t),this.from=n,this.to=e,this.diagnostic=i}),M_=function(){function t(n,e,i){ke(this,t),this.diagnostics=n,this.panel=e,this.selected=i}return Se(t,null,[{key:"init",value:function(n,e,i){var r=n,o=i.facet(Qm).markerFilter;o&&(r=o(r));var s=yi.set(r.map(function(a){return a.from==a.to||a.from==a.to-1&&i.doc.lineAt(a.from).to==a.from?yi.widget({widget:new ptt(a),diagnostic:a}).range(a.from):yi.mark({attributes:{class:"cm-lintRange cm-lintRange-"+a.severity},diagnostic:a}).range(a.from,a.to)}),!0);return new t(s,e,V0(s))}}]),t}();function V0(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=null;return t.between(arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,1e9,function(r,o,s){var a=s.spec;if(!n||a.diagnostic==n)return i=new ctt(r,o,a.diagnostic),!1}),i}function $fe(t,n){return!(!t.effects.some(function(e){return e.is(gD)})&&!t.changes.touchesRange(n.pos))}function Bfe(t,n){return t.field(Mc,!1)?n:n.concat(hr.appendConfig.of([Mc,Wn.decorations.compute([Mc],function(e){var i=e.field(Mc),r=i.selected;return r&&i.panel&&r.from!=r.to?yi.set([utt.range(r.from,r.to)]):yi.none}),JQe(dtt,{hideOn:$fe}),mtt]))}var gD=hr.define(),vP=hr.define(),Vfe=hr.define(),Mc=Va.define({create:function(){return new M_(yi.none,null,null)},update:function(t,n){if(n.docChanged){var e=t.diagnostics.map(n.changes),i=null;if(t.selected){var r=n.changes.mapPos(t.selected.from,1);i=V0(e,t.selected.diagnostic,r)||V0(e,null,r)}t=new M_(e,t.panel,i)}var o,s=Re(n.effects);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.is(gD)?t=M_.init(a.value,t.panel,n.state):a.is(vP)?t=new M_(t.diagnostics,a.value?qfe.open:null,t.selected):a.is(Vfe)&&(t=new M_(t.diagnostics,t.panel,a.value))}}catch(l){s.e(l)}finally{s.f()}return t},provide:function(t){return[b_.from(t,function(n){return n.panel}),Wn.decorations.from(t,function(n){return n.diagnostics})]}}),utt=yi.mark({class:"cm-lintRange cm-lintRange-active"});function dtt(t,n,e){var i=t.state.field(Mc).diagnostics,r=[],o=2e8,s=0;i.between(n-(e<0?1:0),n+(e>0?1:0),function(l,c,u){n>=l&&n<=c&&(l==c||(n>l||e>0)&&(n=65&&i.keyCode<=90&&e.selectedIndex>=0))return;for(var r=e.items[e.selectedIndex].diagnostic,o=Ufe(r.actions),s=0;so&&(n.items.splice(o,f-o),s=!0)),r&&d.diagnostic==r.diagnostic?d.dom.hasAttribute("aria-selected")||(d.dom.setAttribute("aria-selected","true"),a=d):d.dom.hasAttribute("aria-selected")&&d.dom.removeAttribute("aria-selected"),o++});ou.bottom&&(n.list.scrollTop+=c.bottom-u.bottom)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),s&&this.sync()}},{key:"sync",value:function(){var n=this.list.firstChild;function e(){var s=n;n=s.nextSibling,s.remove()}var i,r=Re(this.items);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.dom.parentNode==this.list){for(;n!=o.dom;)e();n=o.dom.nextSibling}else this.list.insertBefore(o.dom,n)}}catch(s){r.e(s)}finally{r.f()}for(;n;)e()}},{key:"moveSelection",value:function(n){if(!(this.selectedIndex<0)){var e=V0(this.view.state.field(Mc).diagnostics,this.items[n].diagnostic);e&&this.view.dispatch({selection:{anchor:e.from,head:e.to},scrollIntoView:!0,effects:Vfe.of(e)})}}}],[{key:"open",value:function(n){return new t(n)}}]),t}();function vD(t){return'url(\'data:image/svg+xml,1&&void 0!==arguments[1]?arguments[1]:'viewBox="0 0 40 40"',">").concat(encodeURIComponent(t),"')")}function yP(t){return vD(''),'width="6" height="3"')}var mtt=Wn.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:yP("#d11")},".cm-lintRange-warning":{backgroundImage:yP("orange")},".cm-lintRange-info":{backgroundImage:yP("#999")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),gtt=function(t){wt(e,ph);var n=Ct(e);function e(i){var r;return ke(this,e),(r=n.call(this)).diagnostics=i,r.severity=i.reduce(function(o,s){var a=s.severity;return"error"==a||"warning"==a&&"info"==o?a:o},"info"),r}return Se(e,[{key:"toDOM",value:function(i){var r=document.createElement("div");r.className="cm-lint-marker cm-lint-marker-"+this.severity;var o=this.diagnostics,s=i.state.facet(yD).tooltipFilter;return s&&(o=s(o)),o.length&&(r.onmouseover=function(){return function(a,l,c){function u(){var p,m,f=a.elementAtHeight(l.getBoundingClientRect().top+5-a.documentTop);a.coordsAtPos(f.from)&&a.dispatch({effects:bP.of({pos:f.from,above:!1,create:function(){return{dom:Hfe(a,c),getCoords:function(){return l.getBoundingClientRect()}}}})}),l.onmouseout=l.onmousemove=null,p=a,m=l,window.addEventListener("mousemove",function v(y){var _=m.getBoundingClientRect();if(!(y.clientX>_.left-10&&y.clientX<_.right+10&&y.clientY>_.top-10&&y.clientY<_.bottom+10)){for(var C=y.target;C;C=C.parentNode)if(1==C.nodeType&&C.classList.contains("cm-tooltip-lint"))return;window.removeEventListener("mousemove",v),p.state.field(Yfe)&&p.dispatch({effects:bP.of(null)})}})}var d=a.state.facet(yD).hoverTime,h=setTimeout(u,d);l.onmouseout=function(){clearTimeout(h),l.onmouseout=l.onmousemove=null},l.onmousemove=function(){clearTimeout(h),h=setTimeout(u,d)}}(i,r,o)}),r}}]),e}();function vtt(t,n){var e,i=Object.create(null),r=Re(n);try{for(r.s();!(e=r.n()).done;){var o=e.value,s=t.lineAt(o.from);(i[s.from]||(i[s.from]=[])).push(o)}}catch(c){r.e(c)}finally{r.f()}var a=[];for(var l in i)a.push(new gtt(i[l]).range(+l));return Go.of(a,!0)}var ytt=$de({class:"cm-gutter-lint",markers:function(t){return t.state.field(Xfe)}}),Xfe=Va.define({create:function(){return Go.empty},update:function(t,n){t=t.map(n.changes);var e,i=n.state.facet(yD).markerFilter,r=Re(n.effects);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(o.is(gD)){var s=o.value;i&&(s=i(s||[])),t=vtt(n.state.doc,s.slice(0))}}}catch(a){r.e(a)}finally{r.f()}return t}}),bP=hr.define(),Yfe=Va.define({create:function(){return null},update:function(t,n){return t&&n.docChanged&&(t=$fe(n,t)?null:Object.assign(Object.assign({},t),{pos:n.changes.mapPos(t.pos)})),n.effects.reduce(function(e,i){return i.is(bP)?i.value:e},t)},provide:function(t){return FS.from(t)}}),btt=Wn.baseTheme({".cm-gutter-lint":{width:"1.4em","& .cm-gutterElement":{padding:".2em"}},".cm-lint-marker":{width:"1em",height:"1em"},".cm-lint-marker-info":{content:vD('')},".cm-lint-marker-warning":{content:vD('')},".cm-lint-marker-error":{content:vD('')}}),yD=Qn.define({combine:function(t){return su(t,{hoverTime:300,markerFilter:null,tooltipFilter:null})}});function _tt(){return[yD.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Xfe,ytt,btt,Yfe]}var Jfe,xtt=function(){return[rZe(),sZe,NQe(),cet(),jZe(),SQe(),[v_,AQe],No.allowMultipleSelections.of(!0),No.transactionFilter.of(function(e){if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;var i=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!i.length)return e;var r=e.newDoc,o=e.newSelection.main.head,s=r.lineAt(o);if(o>s.from+200)return e;var a=r.sliceString(s.from,o);if(!i.some(function(y){return y.test(a)}))return e;var l,c=e.state,u=-1,d=[],h=Re(c.selection.ranges);try{for(h.s();!(l=h.n()).done;){var p=c.doc.lineAt(l.value.head);if(p.from!=u){u=p.from;var m=Rj(c,p.from);if(null!=m){var g=/^\s*/.exec(p.text)[0],v=S_(c,m);g!=v&&d.push({from:p.from,to:p.from+g.length,insert:v})}}}}catch(y){h.e(y)}finally{h.f()}return d.length?[e,{changes:d,sequential:!0}]:e}),bhe($Ze,{fallback:!0}),WZe(),[ntt,Nfe],att(),BQe(),zQe(),RQe,(n=[Iet,Met],n),AS.of([].concat(itt,si(Cet),Bet,vet,FZe,Rfe,htt))];var n}(),wtt=function(){function t(n,e,i,r,o,s,a,l,c){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,d=arguments.length>10?arguments[10]:void 0;ke(this,t),this.p=n,this.stack=e,this.state=i,this.reducePos=r,this.pos=o,this.score=s,this.buffer=a,this.bufferBase=l,this.curContext=c,this.lookAhead=u,this.parent=d}return Se(t,[{key:"toString",value:function(){return"[".concat(this.stack.filter(function(n,e){return e%3==0}).concat(this.state),"]@").concat(this.pos).concat(this.score?"!"+this.score:"")}},{key:"context",get:function(){return this.curContext?this.curContext.context:null}},{key:"pushState",value:function(n,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=n}},{key:"reduce",value:function(n){var e=n>>19,i=65535&n,r=this.p.parser,o=r.dynamicPrecedence(i);if(o&&(this.score+=o),0==e)return this.pushState(r.getGoto(this.state,i,!0),this.reducePos),is;)this.stack.pop();this.reduceContext(i,a)}},{key:"storeNode",value:function(n,e,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:4,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(0==n&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==s.buffer[a-4]&&s.buffer[a-1]>-1){if(e==i)return;if(s.buffer[a-2]>=e)return void(s.buffer[a-2]=i)}}if(o&&this.pos!=i){var l=this.buffer.length;if(l>0&&0!=this.buffer[l-4])for(;l>0&&this.buffer[l-2]>i;)this.buffer[l]=this.buffer[l-4],this.buffer[l+1]=this.buffer[l-3],this.buffer[l+2]=this.buffer[l-2],this.buffer[l+3]=this.buffer[l-1],l-=4,r>4&&(r-=4);this.buffer[l]=n,this.buffer[l+1]=e,this.buffer[l+2]=i,this.buffer[l+3]=r}else this.buffer.push(n,e,i,r)}},{key:"shift",value:function(n,e,i){var r=this.pos;if(131072&n)this.pushState(65535&n,this.pos);else if(262144&n)this.pos=i,this.shiftContext(e,r),e<=this.p.parser.maxNode&&this.buffer.push(e,r,i,4);else{var o=n,s=this.p.parser;(i>this.pos||e<=s.maxNode)&&(this.pos=i,s.stateFlag(o,1)||(this.reducePos=i)),this.pushState(o,r),this.shiftContext(e,r),e<=s.maxNode&&this.buffer.push(e,r,i,4)}}},{key:"apply",value:function(n,e,i){65536&n?this.reduce(n):this.shift(n,e,i)}},{key:"useNode",value:function(n,e){var i=this.p.reused.length-1;(i<0||this.p.reused[i]!=n)&&(this.p.reused.push(n),i++);var r=this.pos;this.reducePos=this.pos=r+n.length,this.pushState(e,r),this.buffer.push(i,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,n,this,this.p.stream.reset(this.pos-n.length)))}},{key:"split",value:function(){for(var n=this,e=n.buffer.length;e>0&&n.buffer[e-2]>n.reducePos;)e-=4;for(var i=n.buffer.slice(e),r=n.bufferBase+e;n&&r==n.bufferBase;)n=n.parent;return new t(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,r,this.curContext,this.lookAhead,n)}},{key:"recoverByDelete",value:function(n,e){var i=n<=this.p.parser.maxNode;i&&this.storeNode(n,this.pos,e,4),this.storeNode(0,this.pos,e,i?8:4),this.pos=this.reducePos=e,this.score-=190}},{key:"canShift",value:function(n){for(var e=new Ctt(this);;){var i=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,n);if(!(65536&i))return!0;if(0==i)return!1;e.reduce(i)}}},{key:"recoverByInsert",value:function(n){if(this.stack.length>=300)return[];var e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){for(var i,r=[],o=0;o>19);if(o<0||e.getGoto(this.stack[o],65535&n,!1)<0)return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}},{key:"forceAll",value:function(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}},{key:"deadEnd",get:function(){if(3!=this.stack.length)return!1;var n=this.p.parser;return 65535==n.data[n.stateSlot(this.state,1)]&&!n.stateSlot(this.state,4)}},{key:"restart",value:function(){this.state=this.stack[0],this.stack.length=0}},{key:"sameState",value:function(n){if(this.state!=n.state||this.stack.length!=n.stack.length)return!1;for(var e=0;ethis.lookAhead&&(this.emitLookAhead(),this.lookAhead=n)}},{key:"close",value:function(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}],[{key:"start",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=n.parser.context;return new t(n,[],e,i,i,0,[],0,r?new Kfe(r,r.start):null,0,null)}}]),t}(),Kfe=Se(function t(n,e){ke(this,t),this.tracker=n,this.context=e,this.hash=n.strict?n.hash(e):0});!function(t){t[t.Insert=200]="Insert",t[t.Delete=190]="Delete",t[t.Reduce=100]="Reduce",t[t.MaxNext=4]="MaxNext",t[t.MaxInsertStackDepth=300]="MaxInsertStackDepth",t[t.DampenInsertStackDepth=120]="DampenInsertStackDepth"}(Jfe||(Jfe={}));var Ctt=function(){function t(n){ke(this,t),this.start=n,this.state=n.state,this.stack=n.stack,this.base=this.stack.length}return Se(t,[{key:"reduce",value:function(n){var e=65535&n,i=n>>19;0==i?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(i-1);var r=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=r}}]),t}(),ktt=function(){function t(n,e,i){ke(this,t),this.stack=n,this.pos=e,this.index=i,this.buffer=n.buffer,0==this.index&&this.maybeNext()}return Se(t,[{key:"maybeNext",value:function(){var n=this.stack.parent;null!=n&&(this.index=this.stack.bufferBase-n.bufferBase,this.stack=n,this.buffer=n.buffer)}},{key:"id",get:function(){return this.buffer[this.index-4]}},{key:"start",get:function(){return this.buffer[this.index-3]}},{key:"end",get:function(){return this.buffer[this.index-2]}},{key:"size",get:function(){return this.buffer[this.index-1]}},{key:"next",value:function(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}},{key:"fork",value:function(){return new t(this.stack,this.pos,this.index)}}],[{key:"create",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.bufferBase+n.buffer.length;return new t(n,e,e-n.bufferBase)}}]),t}(),bD=Se(function t(){ke(this,t),this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}),Qfe=new bD,Stt=function(){function t(n,e){ke(this,t),this.input=n,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Qfe,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}return Se(t,[{key:"resolveOffset",value:function(n,e){for(var i=this.range,r=this.rangeIndex,o=this.pos+n;oi.to:o>=i.to;){if(r==this.ranges.length-1)return null;var a=this.ranges[++r];o+=a.from-i.to,i=a}return o}},{key:"clipPos",value:function(n){if(n>=this.range.from&&nn)return Math.max(n,r.from)}}catch(o){i.e(o)}finally{i.f()}return this.end}},{key:"peek",value:function(n){var e,i,r=this.chunkOff+n;if(r>=0&&r=this.chunk2Pos&&ea.to&&(this.chunk2=this.chunk2.slice(0,a.to-e)),i=this.chunk2.charCodeAt(0)}}return e>=this.token.lookAhead&&(this.token.lookAhead=e+1),i}},{key:"acceptToken",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=e?this.resolveOffset(e,-1):this.pos;if(null==i||i=this.chunk2Pos&&this.posthis.range.to?i.slice(0,this.range.to-this.pos):i,this.chunkPos=this.pos,this.chunkOff=0}}},{key:"readNext",value:function(){return this.next=this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?-1:this.chunk.charCodeAt(this.chunkOff)}},{key:"advance",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;for(this.chunkOff+=n;this.pos+n>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();n-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=n,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}},{key:"setDone",value:function(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}},{key:"reset",value:function(n,e){if(e?(this.token=e,e.start=n,e.lookAhead=n+1,e.value=e.extended=-1):this.token=Qfe,this.pos!=n){if(this.pos=n,n==this.end)return this.setDone(),this;for(;n=this.range.to;)this.range=this.ranges[++this.rangeIndex];n>=this.chunkPos&&n=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(n-this.chunkPos,e-this.chunkPos);if(n>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(n-this.chunk2Pos,e-this.chunk2Pos);if(n>=this.range.from&&e<=this.range.to)return this.input.read(n,e);var i,r="",o=Re(this.ranges);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(s.from>=e)break;s.to>n&&(r+=this.input.read(Math.max(s.from,n),Math.min(s.to,e)))}}catch(a){o.e(a)}finally{o.f()}return r}}]),t}(),_D=function(){function t(n,e){ke(this,t),this.data=n,this.id=e}return Se(t,[{key:"token",value:function(n,e){!function(i,r,o,s){var a=0,l=1<0){var f=i[h];if(u.allows(f)&&(-1==r.token.value||r.token.value==f||c.overrides(f,r.token.value))){r.acceptToken(f);break}}var p=r.next,m=0,g=i[a+2];if(!(r.next<0&&g>m&&65535==i[d+3*g-3])){for(;m>1,y=d+v+(v<<1);if(p=i[y+1])){a=i[y+2],r.advance();continue e}m=v+1}}break}a=i[d+3*g-1]}}(this.data,n,e,this.id)}}]),t}();function xD(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Uint16Array;if("string"!=typeof t)return t;for(var e=null,i=0,r=0;i=92&&s--,s>=34&&s--;var l=s-32;if(l>=46&&(l-=46,a=!0),o+=l,a)break;o*=46}e?e[r++]=o:e=new n(o)}return e}_D.prototype.contextual=_D.prototype.fallback=_D.prototype.extend=!1;var Zfe,cd=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG),_P=null;function epe(t,n,e){var i=t.cursor(za.IncludeAnonymous);for(i.moveTo(n);;)if(!(e<0?i.childBefore(n):i.childAfter(n)))for(;;){if((e<0?i.ton)&&!i.type.isError)return e<0?Math.max(0,Math.min(i.to-1,n-25)):Math.min(t.length,Math.max(i.from+1,n+25));if(e<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return e<0?0:t.length}}!function(t){t[t.Margin=25]="Margin"}(Zfe||(Zfe={}));var tpe,Dtt=function(){function t(n,e){ke(this,t),this.fragments=n,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}return Se(t,[{key:"nextFragment",value:function(){var n=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(n){for(this.safeFrom=n.openStart?epe(n.tree,n.from+n.offset,1)-n.offset:n.from,this.safeTo=n.openEnd?epe(n.tree,n.to+n.offset,-1)-n.offset:n.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(n.tree),this.start.push(-n.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}},{key:"nodeAt",value:function(n){if(nn)return this.nextStart=s,null;if(o instanceof Ua){if(s==n){if(s=Math.max(this.safeFrom,n)&&(this.trees.push(o),this.start.push(s),this.index.push(0))}else this.index[e]++,this.nextStart=s+o.length}else this.trees.pop(),this.start.pop(),this.index.pop()}}}]),t}(),Ttt=function(){function t(n,e){ke(this,t),this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=n.tokenizers.map(function(i){return new bD})}return Se(t,[{key:"getActions",value:function(n){for(var e=0,i=null,r=n.p.parser,o=r.tokenizers,s=r.stateSlot(n.state,3),a=n.curContext?n.curContext.hash:0,l=0,c=0;cd.end+25&&(l=Math.max(d.lookAhead,l)),0!=d.value)){var h=e;if(d.extended>-1&&(e=this.addActions(n,d.extended,d.end,e)),e=this.addActions(n,d.value,d.end,e),!u.extend&&(i=d,e>h))break}}for(;this.actions.length>e;)this.actions.pop();return l&&n.setLookAhead(l),i||n.pos!=this.stream.end||((i=new bD).value=n.p.parser.eofTerm,i.start=i.end=n.pos,e=this.addActions(n,i.value,i.end,e)),this.mainToken=i,this.actions}},{key:"getMainToken",value:function(n){if(this.mainToken)return this.mainToken;var e=new bD,i=n.pos,r=n.p;return e.start=i,e.end=Math.min(i+1,r.stream.end),e.value=i==r.stream.end?r.parser.eofTerm:0,e}},{key:"updateCachedToken",value:function(n,e,i){var r=this.stream.clipPos(i.pos);if(e.token(this.stream.reset(r,n),i),n.value>-1){for(var o=i.p.parser,s=0;s=0&&i.p.parser.dialect.allows(a>>1)){1&a?n.extended=a>>1:n.value=a>>1;break}}}else n.value=0,n.end=this.stream.clipPos(r+1)}},{key:"putAction",value:function(n,e,i,r){for(var o=0;o4*n.bufferLength?new Dtt(i,n.nodeSet):null}return Se(t,[{key:"parsedPos",get:function(){return this.minStackPos}},{key:"advance",value:function(){for(var n,e,i=this.stacks,r=this.minStackPos,o=this.stacks=[],s=0;sr)o.push(a);else{if(this.advanceStack(a,o,i))continue;n||(n=[],e=[]),n.push(a);var l=this.tokens.getMainToken(a);e.push(l.value,l.end)}break}if(!o.length){var c=n&&function(v){var y,_=null,C=Re(v);try{for(C.s();!(y=C.n()).done;){var S=y.value,M=S.p.stoppedAt;(S.pos==S.p.stream.end||null!=M&&S.pos>M)&&S.p.parser.stateFlag(S.state,2)&&(!_||_.scorethis.stoppedAt?n[0]:this.runRecovery(n,e,o);if(u)return this.stackToTree(u.forceAll())}if(this.recovering){var d=1==this.recovering?1:3*this.recovering;if(o.length>d)for(o.sort(function(v,y){return y.score-v.score});o.length>d;)o.pop();o.some(function(v){return v.reducePos>r})&&this.recovering--}else if(o.length>1)e:for(var h=0;h500&&m.buffer.length>500){if(!((f.score-m.score||f.buffer.length-m.buffer.length)>0)){o.splice(h--,1);continue e}o.splice(p--,1)}}this.minStackPos=o[0].pos;for(var g=1;g ":"";if(null!=this.stoppedAt&&r>this.stoppedAt)return n.forceReduce()?n:null;if(this.fragments)for(var a=n.curContext&&n.curContext.tracker.strict,l=a?n.curContext.hash:0,c=this.fragments.nodeAt(r);c;){var u=this.parser.nodeSet.types[c.type.id]==c.type?o.getGoto(n.state,c.type.id):-1;if(u>-1&&c.length&&(!a||(c.prop(gr.contextHash)||0)==l))return n.useNode(c,u),cd&&console.log(s+this.stackID(n)+" (via reuse of ".concat(o.getName(c.type.id),")")),!0;if(!(c instanceof Ua)||0==c.children.length||c.positions[0]>0)break;var d=c.children[0];if(!(d instanceof Ua&&0==c.positions[0]))break;c=d}var h=o.stateSlot(n.state,4);if(h>0)return n.reduce(h),cd&&console.log(s+this.stackID(n)+" (via always-reduce ".concat(o.getName(65535&h),")")),!0;if(n.stack.length>=15e3)for(;n.stack.length>9e3&&n.forceReduce(););for(var f=this.tokens.getActions(n),p=0;pr?e.push(_):i.push(_)}return!1}},{key:"advanceFully",value:function(n,e){for(var i=n.pos;;){if(!this.advanceStack(n,null,null))return!1;if(n.pos>i)return npe(n,e),!0}}},{key:"runRecovery",value:function(n,e,i){for(var r=null,o=!1,s=0;s ":"";if(!a.deadEnd||!o&&(o=!0,a.restart(),cd&&console.log(u+this.stackID(a)+" (restarted)"),!this.advanceFully(a,i))){for(var d=a.split(),h=u,f=0;d.forceReduce()&&f<10&&(cd&&console.log(h+this.stackID(d)+" (via force-reduce)"),!this.advanceFully(d,i));f++)cd&&(h=this.stackID(d)+" -> ");var p,m=Re(a.recoverByInsert(l));try{for(m.s();!(p=m.n()).done;){var g=p.value;cd&&console.log(u+this.stackID(g)+" (via recover-insert)"),this.advanceFully(g,i)}}catch(v){m.e(v)}finally{m.f()}this.stream.end>a.pos?(c==a.pos&&(c++,l=0),a.recoverByDelete(l,c),cd&&console.log(u+this.stackID(a)+" (via recover-delete ".concat(this.parser.getName(l),")")),npe(a,i)):(!r||r.score=0)d(v,m,p[g++]);else{for(var y=p[g+-v],_=-v;_>0;_--)d(p[g++],m,y);g++}}}}catch(M){f.e(M)}finally{f.f()}}o.nodeSet=new cZe(s.map(function(M,$){return au.define({name:$>=o.minRepeatTerm?void 0:M,id:$,props:c[$],top:l.indexOf($)>-1,error:0==$,skipped:i.skippedNodes&&i.skippedNodes.indexOf($)>-1})})),i.propSources&&(o.nodeSet=(r=o.nodeSet).extend.apply(r,si(i.propSources))),o.strict=!1,o.bufferLength=1024;var C=xD(i.tokenData);o.context=i.context,o.specializerSpecs=i.specialized||[],o.specialized=new Uint16Array(o.specializerSpecs.length);for(var S=0;S2&&void 0!==arguments[2]&&arguments[2],s=this.goto;if(r>=s[0])return-1;for(var a=s[r+1];;){var l=s[a++],c=1&l,u=s[a++];if(c&&o)return u;for(var d=a+(l>>1);a0}},{key:"validAction",value:function(i,r){if(r==this.stateSlot(i,4))return!0;for(var o=this.stateSlot(i,1);;o+=3){if(65535==this.data[o]){if(1!=this.data[o+1])return!1;o=hf(this.data,o+2)}if(r==hf(this.data,o+1))return!0}}},{key:"nextStates",value:function(i){for(var r=this,o=[],s=this.stateSlot(i,1);;s+=3){if(65535==this.data[s]){if(1!=this.data[s+1])break;s=hf(this.data,s+2)}!(1&this.data[s+2])&&function(){var a=r.data[s+1];o.some(function(l,c){return 1&c&&l==a})||o.push(r.data[s],a)}()}return o}},{key:"overrides",value:function(i,r){var o=ipe(this.data,this.tokenPrecTable,r);return o<0||ipe(this.data,this.tokenPrecTable,i)0}},{key:"getName",value:function(i){return this.termNames?this.termNames[i]:String(i<=this.maxNode&&this.nodeSet.types[i].name||i)}},{key:"eofTerm",get:function(){return this.maxNode+1}},{key:"topNode",get:function(){return this.nodeSet.types[this.top[1]]}},{key:"dynamicPrecedence",value:function(i){var r=this.dynamicPrecedences;return null==r?0:r[i]||0}},{key:"parseDialect",value:function(i){var r=Object.keys(this.dialects),o=r.map(function(){return!1});if(i){var s,a=Re(i.split(" "));try{for(a.s();!(s=a.n()).done;){var c=r.indexOf(s.value);c>=0&&(o[c]=!0)}}catch(p){a.e(p)}finally{a.f()}}for(var u=null,d=0;d0&&ape(t);return{c:function(){n=be("div"),r&&r.c(),e=it(),o&&o.c(),i=it(),s&&s.c(),P(n,"class","jse-status-bar svelte-1oo7hnc")},m:function(a,l){Pe(a,n,l),r&&r.m(n,null),de(n,e),o&&o.m(n,null),de(n,i),s&&s.m(n,null)},p:function(a,l){var c=Un(l,1)[0];void 0!==a[0]?r?r.p(a,c):((r=ope(a)).c(),r.m(n,e)):r&&(r.d(1),r=null),void 0!==a[1]?o?o.p(a,c):((o=spe(a)).c(),o.m(n,i)):o&&(o.d(1),o=null),void 0!==a[2]&&a[2]>0?s?s.p(a,c):((s=ape(a)).c(),s.m(n,null)):s&&(s.d(1),s=null)},i:Lt,o:Lt,d:function(a){a&&je(n),r&&r.d(),o&&o.d(),s&&s.d()}}}function Ptt(t,n,e){var i,r,o,s,a,l=n.editorState;return t.$$set=function(c){"editorState"in c&&e(3,l=c.editorState)},t.$$.update=function(){var c,u,d,h,f,p,m,g;8&t.$$.dirty&&e(4,i=null===(c=l)||void 0===c||null===(u=c.selection)||void 0===u||null===(d=u.main)||void 0===d?void 0:d.head),24&t.$$.dirty&&e(5,r=null===(h=l)||void 0===h||null===(f=h.doc)||void 0===f?void 0:f.lineAt(i)),32&t.$$.dirty&&e(0,o=r?r.number:void 0),48&t.$$.dirty&&e(1,s=r?i-r.from+1:void 0),8&t.$$.dirty&&e(2,a=null===(p=l)||void 0===p||null===(m=p.selection)||void 0===m||null===(g=m.ranges)||void 0===g?void 0:g.reduce(function(v,y){return v+y.to-y.from},0))},[o,s,a,l,i,r]}var Ltt=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,Ptt,jtt,ys,{editorState:3},Ott),r}return Se(e)}(),xP=Bj.define([{tag:fn.propertyName,color:"var(--jse-key-color)"},{tag:fn.number,color:"var(--jse-value-color-number)"},{tag:fn.bool,color:"var(--jse-value-color-boolean)"},{tag:fn.string,color:"var(--jse-value-color-string)"},{tag:fn.keyword,color:"var(--jse-value-color-null)"}]),Rtt=bhe(xP),$tt=xP.style;function wP(t){return t.doc.lineAt(t.selection.main.head)}function lpe(t,n){var e=0;e:for(var i=0;i=r.level?i.level:i.empty&&0===i.level&&0!==r.level?0:r.level>i.level?i.level+1:r.level)}var o=lpe(n.text,this.state.tabSize),s=Math.floor(o/this.unitWidth);return this.set(n,o,s)}},{key:"closestNonEmpty",value:function(n,e){for(var i=n.number+e;-1===e?i>=1:i<=this.state.doc.lines;){if(this.has(i)){var r=this.get(i);if(!r.empty)return r}var o=this.state.doc.line(i);if(o.text.trim().length){var s=lpe(o.text,this.state.tabSize),a=Math.floor(s/this.unitWidth);return this.set(o,s,a)}i+=e}var l=this.state.doc.line(-1===e?1:this.state.doc.lines);return this.set(l,0,0)}},{key:"findAndSetActiveLines",value:function(){var n=wP(this.state);if(this.has(n)){var e=this.get(n);if(this.has(e.line.number+1)){var i=this.get(e.line.number+1);i.level>e.level&&(e=i)}if(this.has(e.line.number-1)){var r=this.get(e.line.number-1);r.level>e.level&&(e=r)}if(0!==e.level){var o,s;for(e.active=e.level,o=e.line.number;o>1;o--)if(this.has(o-1)){var a=this.get(o-1);if(a.level1&&void 0!==arguments[1]?arguments[1]:d.state,p=new Set,m=Re(d.visibleRanges);try{for(m.s();!(h=m.n()).done;)for(var g=h.value,y=g.to,_=g.from;_<=y;){var C=f.doc.lineAt(_);p.has(C)||p.add(C),_=C.to+1}}catch(S){m.e(S)}finally{m.f()}return p}(this.view,n),o=new Btt(r,n,this.unitWidth),s=n.facet(wD).hideFirstIndent,a=Re(r);try{for(a.s();!(e=a.n()).done;){var l=e.value,c=o.get(l.number);if(c?.level){var u=Htt(c,this.unitWidth,s);i.add(l.from,l.from,yi.line({class:"cm-indent-markers",attributes:{style:"--indent-markers: ".concat(u)}}))}}}catch(d){a.e(d)}finally{a.f()}this.decorations=i.finish()}}]),t}();function Utt(){return[wD.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Vtt,ka.fromClass(ztt,{decorations:function(n){return n.decorations}})]}function Gtt(t){pi(t,"svelte-1yqirn0",'.jse-text-mode.svelte-1yqirn0.svelte-1yqirn0{flex:1;box-sizing:border-box;display:flex;flex-direction:column;background:var(--jse-background-color)}.jse-text-mode.no-main-menu.svelte-1yqirn0.svelte-1yqirn0{border-top:var(--jse-main-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0{flex:1;display:flex;position:relative;flex-direction:column;overflow:hidden;min-width:0;min-height:0;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0:last-child{border-bottom:var(--jse-main-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.jse-hidden.svelte-1yqirn0{visibility:hidden;position:absolute;top:0;left:0}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor{flex:1;overflow:hidden}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-scroller{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);line-height:var(--jse-line-height);color:var(--jse-delimiter-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-gutters{background:var(--jse-panel-background);color:var(--jse-panel-color-readonly);border-right:var(--jse-panel-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-activeLine,.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-activeLineGutter{background:var(--jse-active-line-background-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-selectionBackground{background:var(--jse-selection-background-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-searchMatch{background-color:var(--jse-search-match-color);outline:var(--jse-search-match-outline)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-searchMatch.cm-searchMatch-selected{background-color:var(--jse-search-match-active-color);outline:var(--jse-search-match-active-outline)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-selectionMatch{background-color:var(--jse-search-match-background-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-foldPlaceholder{background:var(--jse-tag-background);color:var(--jse-tag-color);border:none;padding:0 var(--jse-padding)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-tooltip{font-size:var(--jse-font-size);font-family:var(--jse-font-family);color:var(--jse-tooltip-color);background:var(--jse-tooltip-background);border:var(--jse-tooltip-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-diagnosticAction{background:var(--jse-tooltip-action-button-color);background:var(--jse-tooltip-action-button-background)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-panels{border-bottom:var(--jse-panel-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search{background:var(--jse-panel-background);color:var(--jse-panel-color);font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search input{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);color:var(--jse-input-color);border:var(--jse-input-border);background:var(--jse-input-background);margin-right:2px}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search button{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);color:var(--jse-panel-button-color);background:var(--jse-panel-button-background);border:none;cursor:pointer;text-transform:capitalize;padding:calc(0.5 * var(--jse-padding)) var(--jse-padding);margin:0}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search button:hover{color:var(--jse-panel-button-color-highlight);background:var(--jse-panel-button-background-highlight)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search label{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);padding-left:var(--jse-padding)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search label input{margin-right:2px}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search button[name="close"]{width:32px;height:32px;font-size:24px;line-height:24px;padding:0;right:0;top:-4px}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-cursor-primary{border-color:var(--jse-text-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents .jse-loading-space.svelte-1yqirn0{flex:1}.jse-text-mode.svelte-1yqirn0 .jse-contents .jse-loading.svelte-1yqirn0{flex:2;text-align:center;color:var(--jse-panel-color-readonly);box-sizing:border-box;font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-text-mode.svelte-1yqirn0 .jse-contents.jse-preview.svelte-1yqirn0{flex:1;color:var(--jse-panel-color-readonly);overflow:auto;white-space:pre-wrap;word-break:break-word;padding:2px}')}function CP(t){var n=t.slice();return n[93]=0===n[10].length,n}function cpe(t){var n,e;return n=new hKe({props:{readOnly:t[0],onFormat:t[16],onCompact:t[17],onSort:t[18],onTransform:t[19],onToggleSearch:t[20],onUndo:t[21],onRedo:t[22],canFormat:!t[93],canCompact:!t[93],canSort:!t[93],canTransform:!t[93],canUndo:t[11],canRedo:t[12],onRenderMenu:t[3]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};1&r[0]&&(o.readOnly=i[0]),1024&r[0]&&(o.canFormat=!i[93]),1024&r[0]&&(o.canCompact=!i[93]),1024&r[0]&&(o.canSort=!i[93]),1024&r[0]&&(o.canTransform=!i[93]),2048&r[0]&&(o.canUndo=i[11]),4096&r[0]&&(o.canRedo=i[12]),8&r[0]&&(o.onRenderMenu=i[3]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function Wtt(t){var n;return{c:function(){(n=be("div")).innerHTML='
    \n
    loading...
    ',P(n,"class","jse-contents svelte-1yqirn0")},m:function(e,i){Pe(e,n,i)},p:Lt,i:Lt,o:Lt,d:function(e){e&&je(n)}}}function qtt(t){var n,e,i,r,o,s=t[92]&&upe(t),a=!t[92]&&dpe(t);return{c:function(){n=be("div"),e=it(),s&&s.c(),i=it(),a&&a.c(),r=_r(),P(n,"class","jse-contents svelte-1yqirn0"),Mt(n,"jse-hidden",t[92])},m:function(l,c){Pe(l,n,c),t[50](n),Pe(l,e,c),s&&s.m(l,c),Pe(l,i,c),a&&a.m(l,c),Pe(l,r,c),o=!0},p:function(l,c){(!o||134218880&c[0])&&Mt(n,"jse-hidden",l[92]),l[92]?s?(s.p(l,c),1152&c[0]&&Q(s,1)):((s=upe(l)).c(),Q(s,1),s.m(i.parentNode,i)):s&&($t(),ce(s,1,1,function(){s=null}),Bt()),l[92]?a&&($t(),ce(a,1,1,function(){a=null}),Bt()):a?(a.p(l,c),1152&c[0]&&Q(a,1)):((a=dpe(l)).c(),Q(a,1),a.m(r.parentNode,r))},i:function(l){o||(Q(s),Q(a),o=!0)},o:function(l){ce(s),ce(a),o=!1},d:function(l){l&&je(n),t[50](null),l&&je(e),s&&s.d(l),l&&je(i),a&&a.d(l),l&&je(r)}}}function upe(t){var n,e,i,r,o,s=oh(t[10]||"",2e4)+"";return n=new nd({props:{icon:$m,type:"error",message:"The JSON document is larger than ".concat(sS(10485760,1024),", ")+"and may crash your browser when loading it in text mode. Actual size: ".concat(sS(t[10].length,1024),"."),actions:[{text:"Open anyway",title:"Open the document in text mode. This may freeze or crash your browser.",onClick:t[23]},{text:"Open in tree mode",title:"Open the document in tree mode. Tree mode can handle large documents.",onClick:t[24]},{text:"Cancel",title:"Cancel opening this large document.",onClick:t[25]}]}}),{c:function(){mt(n.$$.fragment),e=it(),i=be("div"),r=tn(s),P(i,"class","jse-contents jse-preview svelte-1yqirn0")},m:function(a,l){ft(n,a,l),Pe(a,e,l),Pe(a,i,l),de(i,r),o=!0},p:function(a,l){var c={};1024&l[0]&&(c.message="The JSON document is larger than ".concat(sS(10485760,1024),", ")+"and may crash your browser when loading it in text mode. Actual size: ".concat(sS(a[10].length,1024),".")),n.$set(c),(!o||1024&l[0])&&s!==(s=oh(a[10]||"",2e4)+"")&&qn(r,s)},i:function(a){o||(Q(n.$$.fragment,a),o=!0)},o:function(a){ce(n.$$.fragment,a),o=!1},d:function(a){pt(n,a),a&&je(e),a&&je(i)}}}function dpe(t){var n,e,i,r,o,s=!t[13]&&t[8]&&hoe(t[10]),a=t[2]&&hpe(t),l=t[13]&&fpe(t),c=s&&ppe(t);return r=new l4({props:{validationErrors:t[9],selectError:t[26]}}),{c:function(){a&&a.c(),n=it(),l&&l.c(),e=it(),c&&c.c(),i=it(),mt(r.$$.fragment)},m:function(u,d){a&&a.m(u,d),Pe(u,n,d),l&&l.m(u,d),Pe(u,e,d),c&&c.m(u,d),Pe(u,i,d),ft(r,u,d),o=!0},p:function(u,d){u[2]?a?(a.p(u,d),4&d[0]&&Q(a,1)):((a=hpe(u)).c(),Q(a,1),a.m(n.parentNode,n)):a&&($t(),ce(a,1,1,function(){a=null}),Bt()),u[13]?l?(l.p(u,d),8192&d[0]&&Q(l,1)):((l=fpe(u)).c(),Q(l,1),l.m(e.parentNode,e)):l&&($t(),ce(l,1,1,function(){l=null}),Bt()),9472&d[0]&&(s=!u[13]&&u[8]&&hoe(u[10])),s?c?(c.p(u,d),9472&d[0]&&Q(c,1)):((c=ppe(u)).c(),Q(c,1),c.m(i.parentNode,i)):c&&($t(),ce(c,1,1,function(){c=null}),Bt());var h={};512&d[0]&&(h.validationErrors=u[9]),r.$set(h)},i:function(u){o||(Q(a),Q(l),Q(c),Q(r.$$.fragment,u),o=!0)},o:function(u){ce(a),ce(l),ce(c),ce(r.$$.fragment,u),o=!1},d:function(u){a&&a.d(u),u&&je(n),l&&l.d(u),u&&je(e),c&&c.d(u),u&&je(i),pt(r,u)}}}function hpe(t){var n,e;return n=new Ltt({props:{editorState:t[6]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};64&r[0]&&(o.editorState=i[6]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function fpe(t){var n,e;return n=new nd({props:{type:"error",icon:$m,message:t[13].message,actions:t[14],onClick:t[28]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};8192&r[0]&&(o.message=i[13].message),16384&r[0]&&(o.actions=i[14]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function ppe(t){var n,e;return n=new nd({props:{type:"success",message:"Do you want to format the JSON?",actions:[{icon:m4,text:"Format",title:"Format JSON: add proper indentation and new lines (Ctrl+I)",onClick:t[16]},{icon:p0,text:"No thanks",title:"Close this message",onClick:t[51]}]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};256&r[0]&&(o.actions=[{icon:m4,text:"Format",title:"Format JSON: add proper indentation and new lines (Ctrl+I)",onClick:i[16]},{icon:p0,text:"No thanks",title:"Close this message",onClick:i[51]}]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function Xtt(t){var n,e,i,r,o,s=t[1]&&cpe(CP(t)),l=[];function c(u,d){return 0===d?(p=(f=u.slice())[27](f[10],f[7]),f[92]=p,f):u;var f,p}return r=l[i=t[15]?1:0]=[qtt,Wtt][i](c(t,i)),{c:function(){n=be("div"),s&&s.c(),e=it(),r.c(),P(n,"class","jse-text-mode svelte-1yqirn0"),Mt(n,"no-main-menu",!t[1])},m:function(u,d){Pe(u,n,d),s&&s.m(n,null),de(n,e),l[i].m(n,null),t[52](n),o=!0},p:function(u,d){u[1]?s?(s.p(CP(u),d),2&d[0]&&Q(s,1)):((s=cpe(CP(u))).c(),Q(s,1),s.m(n,e)):s&&($t(),ce(s,1,1,function(){s=null}),Bt()),r.p(c(u,i),d),(!o||2&d[0])&&Mt(n,"no-main-menu",!u[1])},i:function(u){o||(Q(s),Q(r),o=!0)},o:function(u){ce(s),ce(r),o=!1},d:function(u){u&&je(n),s&&s.d(),l[i].d(),t[52](null)}}}function mpe(t){return{from:t.from||0,to:t.to||0,message:t.message||"",actions:t.actions,severity:t.severity}}function Ytt(t,n,e){var i,r,o,s,a,l,c=n.readOnly,u=n.mainMenuBar,d=n.statusBar,h=n.externalContent,f=n.indentation,p=n.tabSize,m=n.escapeUnicodeCharacters,g=n.parser,v=n.validator,y=n.validationParser,_=n.onChange,C=n.onChangeMode,S=n.onError,M=n.onFocus,$=n.onBlur,G=n.onRenderMenu,R=n.onSortModal,z=n.onTransformModal,U=wa("jsoneditor:TextMode"),q={key:"Mod-i",run:ie,shift:Ie,preventDefault:!0},re=typeof window>"u";U("isSSR:",re);var L=!1,X=!0,Z=[],H=new hp,he=new hp,E=new hp,F=new hp,N=new hp,Y=new hp,V=h,oe=Nk(V,f,g),fe=m;Wc(Zi(vn().mark(function gt(){return vn().wrap(function(On){for(;;)switch(On.prev=On.next){case 0:if(!re){On.next=2;break}return On.abrupt("return");case 2:try{s=ci({target:o,initialText:jo(oe,L)?"":i.escapeValue(oe),readOnly:c,indentation:f})}catch(ai){console.error(ai)}case 3:case"end":return On.stop()}},gt)}))),Hu(function(){s&&(U("Destroy CodeMirror editor"),s.destroy())});var Fe=!1,xe=!1,tt=ep(),ze=ep();function ot(){s&&(U("focus"),s.focus())}var B=!1;function ne(gt){U("patch",gt);var On=g.parse(oe),ai=Yu(On,gt),bi=FQ(On,gt);return Nr({text:g.stringify(ai,null,f)}),{json:ai,previousJson:On,undo:bi,redo:gt}}function ie(){if(U("format"),c)return!1;try{var gt=g.parse(oe);return Nr({text:g.stringify(gt,null,f)}),e(8,X=!0),!0}catch(On){S(On)}return!1}function Ie(){if(U("compact"),c)return!1;try{var gt=g.parse(oe);return Nr({text:g.stringify(gt)}),e(8,X=!1),!0}catch(On){S(On)}return!1}function Ye(){if(U("repair"),!c)try{Nr({text:Yd(oe)}),e(49,Nn="valid"),e(13,xt=null)}catch(gt){S(gt)}}function Le(gt){var On=gt.id,ai=gt.rootPath,bi=gt.onTransform,Er=gt.onClose;try{var qr=g.parse(oe);B=!0,z({id:On||ze,json:qr,rootPath:ai||[],onTransform:function(ao){bi?bi({operations:ao,json:qr,transformedJson:Yu(qr,ao)}):(U("onTransform",ao),ne(ao))},onClose:function(){B=!1,ot(),Er&&Er()}})}catch(ao){S(ao)}}function _t(gt,On){U("setSelection",{anchor:gt,head:On}),s&&s.dispatch(s.state.update({selection:{anchor:gt,head:On},scrollIntoView:!0}))}function At(gt,On){if(1===On.state.selection.ranges.length){var ai=On.state.selection.ranges[0],bi=oe.slice(ai.from,ai.to);if("{"===bi||"["===bi){var Er=O2.parse(oe),qr=Object.keys(Er.pointers).find(function(Js){var vr;return(null===(vr=Er.pointers[Js].value)||void 0===vr?void 0:vr.pos)===ai.from}),ao=Er.pointers[qr];qr&&ao&&ao.value&&ao.valueEnd&&(U("pointer found, selecting inner contents of path:",qr,ao),_t(ao.value.pos+1,ao.valueEnd.pos-1))}}}function _n(){return function(gt){return Qm.of({source:gt,config:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}})}(ui,{delay:300})}function ci(gt){var On=gt.target,ai=gt.initialText,bi=gt.readOnly,Er=gt.indentation;U("Create CodeMirror editor",{readOnly:bi,indentation:Er});var qr=No.create({doc:ai,extensions:[AS.of([ket,q]),H.of(_n()),_tt(),xtt,Rtt,Utt({hideFirstIndent:!0}),Wn.domEventHandlers({dblclick:At}),Wn.updateListener.of(function(ao){e(6,l=ao.state),ao.docChanged&&Ai()}),new SZe(Ntt),Fet({top:!0}),E.of(No.readOnly.of(bi)),he.of(Wn.editable.of(!bi)),N.of(No.tabSize.of(p)),F.of(wr(Er)),Y.of(Wn.theme({},{dark:on()})),Wn.lineWrapping]});return s=new Wn({state:qr,parent:On})}function on(){return!!o&&getComputedStyle(o).getPropertyValue("--jse-theme").includes("dark")}function Fi(gt){var On=gt.path,ai=gt.message,bi=function(Er,qr){try{var ao=O2.parse(Er),Js=ln(qr),vr=ao.pointers[Js];if(vr)return{path:qr,line:vr.key?vr.key.line:vr.value?vr.value.line:0,column:vr.key?vr.key.column:vr.value?vr.value.column:0,from:vr.key?vr.key.pos:vr.value?vr.value.pos:0,to:vr.keyEnd?vr.keyEnd.pos:vr.valueEnd?vr.valueEnd.pos:0}}catch(Ks){console.error(Ks)}return null}(i.escapeValue(oe),On);return{path:On,line:bi.line,column:bi.column,from:bi.from,to:bi.to,message:ai,severity:Xd.warning,actions:[]}}function pn(gt,On){var Er=gt.position;return{path:[],line:gt.line,column:gt.column,from:Er,to:Er,severity:Xd.error,message:gt.message,actions:On&&!c?[{name:"Auto repair",apply:function(){return Ye()}}]:null}}function Nr(gt){var On=arguments.length>1&&void 0!==arguments[1]&&arguments[1],ai=Nk(gt,f,g),bi=!or(gt,V),Er=V;V=gt,e(10,oe=ai),U("setCodeMirrorContent",{isChanged:bi,forceUpdate:On}),s&&(bi||On)&&(jo(oe,L)||s.dispatch({changes:{from:0,to:s.state.doc.length,insert:i.escapeValue(oe)}}),Or(),bi&&Wr(V,Er))}function $r(){if(s){var gt=s?i.unescapeValue(s.state.doc.toString()):"",On=gt!==oe;if(U("onChangeCodeMirrorValue",{isChanged:On}),On){var ai=V;e(10,oe=gt),V={text:oe},Or(),Wr(V,ai)}}}function wr(gt){return GS.of("number"==typeof gt?" ".repeat(gt):gt)}function Or(){e(11,Fe=het(s.state)>0),e(12,xe=fet(s.state)>0),U({canUndo:Fe,canRedo:xe})}a4({onMount:Wc,onDestroy:Hu,getWindow:function(){return e0(a)},hasFocus:function(){return B&&document.hasFocus()||jk(a)},onFocus:M,onBlur:$});var Ai=Gv($r,300);function Wr(gt,On){_&&_(gt,On,{contentErrors:Ni(),patchResult:null})}function jo(gt,On){return!!gt&>.length>10485760&&!On}var Nn="valid",xt=null;function ui(){if(jo(oe,L))return[];var gt=Ni();return Dae(gt)?[mpe(pn(gt.parseError,gt.isRepairable))]:function Jqe(t){return Io(t)&&Array.isArray(t.validationErrors)}(gt)?gt.validationErrors.map(Fi).map(mpe):[]}function Ni(){U("validate:start"),Ai.flush();var gt=Cr(i.escapeValue(oe),v,g,y);return Dae(gt)?(e(49,Nn=gt.isRepairable?"repairable":"invalid"),e(13,xt=gt.parseError),e(9,Z=[])):(e(49,Nn="valid"),e(13,xt=null),e(9,Z=gt?.validationErrors||[])),U("validate:end"),gt}var Cr=Zb(Oqe);function xo(){xt&&function(gt){U("select parse error",gt);var On=pn(gt,!1);_t(On.from,On.to),ot()}(xt)}var Qo={icon:xWe,text:"Show me",title:"Move to the parse error location",onClick:xo};return t.$$set=function(gt){"readOnly"in gt&&e(0,c=gt.readOnly),"mainMenuBar"in gt&&e(1,u=gt.mainMenuBar),"statusBar"in gt&&e(2,d=gt.statusBar),"externalContent"in gt&&e(29,h=gt.externalContent),"indentation"in gt&&e(30,f=gt.indentation),"tabSize"in gt&&e(31,p=gt.tabSize),"escapeUnicodeCharacters"in gt&&e(32,m=gt.escapeUnicodeCharacters),"parser"in gt&&e(33,g=gt.parser),"validator"in gt&&e(34,v=gt.validator),"validationParser"in gt&&e(35,y=gt.validationParser),"onChange"in gt&&e(36,_=gt.onChange),"onChangeMode"in gt&&e(37,C=gt.onChangeMode),"onError"in gt&&e(38,S=gt.onError),"onFocus"in gt&&e(39,M=gt.onFocus),"onBlur"in gt&&e(40,$=gt.onBlur),"onRenderMenu"in gt&&e(3,G=gt.onRenderMenu),"onSortModal"in gt&&e(41,R=gt.onSortModal),"onTransformModal"in gt&&e(42,z=gt.onTransformModal)},t.$$.update=function(){var gt;2&t.$$.dirty[1]&&(i=TO({escapeControlCharacters:!1,escapeUnicodeCharacters:m})),536870912&t.$$.dirty[0]&&Nr(h),8&t.$$.dirty[1]&&(U("updateLinter",v),s&&s.dispatch({effects:H.reconfigure(_n())})),1073741824&t.$$.dirty[0]&&(gt=f,s&&(U("updateIndentation",gt),s.dispatch({effects:F.reconfigure(wr(gt))}))),1&t.$$.dirty[1]&&function(gt){s&&(U("updateTabSize",gt),s.dispatch({effects:N.reconfigure(No.tabSize.of(gt))}))}(p),1&t.$$.dirty[0]&&function(gt){s&&(U("updateReadOnly",gt),s.dispatch({effects:[E.reconfigure(No.readOnly.of(gt)),he.reconfigure(Wn.editable.of(!gt))]}))}(c),131074&t.$$.dirty[1]&&fe!==m&&(e(48,fe=m),U("forceUpdateText",{escapeUnicodeCharacters:m}),s&&s.dispatch({changes:{from:0,to:s.state.doc.length,insert:i.escapeValue(oe)}})),1&t.$$.dirty[0]|262144&t.$$.dirty[1]&&e(14,r="repairable"!==Nn||c?[Qo]:[{icon:zk,text:"Auto repair",title:"Automatically repair JSON",onClick:Ye},Qo])},[c,u,d,G,o,a,l,L,X,Z,oe,Fe,xe,xt,r,re,ie,Ie,function(){var gt;if(!c)try{var On=g.parse(oe);B=!0,R({id:tt,json:On,rootPath:[],onSort:(gt=Zi(vn().mark(function ai(bi){var Er;return vn().wrap(function(qr){for(;;)switch(qr.prev=qr.next){case 0:U("onSort",Er=bi.operations),ne(Er);case 3:case"end":return qr.stop()}},ai)})),function(ai){return gt.apply(this,arguments)}),onClose:function(){B=!1,ot()}})}catch(ai){S(ai)}},function(){c||Le({rootPath:[]})},function(){s&&(o&&o.querySelector(".cm-search")?uP(s):cP(s))},function(){c||s&&(Kj(s),ot())},function(){c||s&&(KS(s),ot())},function(){e(7,L=!0),Nr(h,!0)},function(){C(Jo.tree)},function(){$r()},function(gt){U("select validation error",gt);var On=Fi(gt);_t(On.from,On.to),ot()},jo,xo,h,f,p,m,g,v,y,_,C,S,M,$,R,z,ot,ne,Le,function(){U("refresh"),Xl().then(function(){if(s){var gt=on();U("updateTheme",{dark:gt}),s.dispatch({effects:[Y.reconfigure(Wn.theme({},{dark:gt}))]})}})},Ni,fe,Nn,function(gt){Vi[gt?"unshift":"push"](function(){e(4,o=gt)})},function(){return e(8,X=!1)},function(gt){Vi[gt?"unshift":"push"](function(){e(5,a=gt)})}]}var Jtt=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,Ytt,Xtt,Ei,{readOnly:0,mainMenuBar:1,statusBar:2,externalContent:29,indentation:30,tabSize:31,escapeUnicodeCharacters:32,parser:33,validator:34,validationParser:35,onChange:36,onChangeMode:37,onError:38,onFocus:39,onBlur:40,onRenderMenu:3,onSortModal:41,onTransformModal:42,focus:43,patch:44,openTransformModal:45,refresh:46,validate:47},Gtt,[-1,-1,-1,-1]),r}return Se(e,[{key:"focus",get:function(){return this.$$.ctx[43]}},{key:"patch",get:function(){return this.$$.ctx[44]}},{key:"openTransformModal",get:function(){return this.$$.ctx[45]}},{key:"refresh",get:function(){return this.$$.ctx[46]}},{key:"validate",get:function(){return this.$$.ctx[47]}}]),e}();function Ktt(t){var n,e;return n=new nS({props:{items:t[0]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};1&Un(r,1)[0]&&(o.items=i[0]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function Qtt(t,n,e){var i,r,o=n.json,s=n.readOnly,a=n.historyState,l=n.onSort,c=n.onTransform,u=n.onContextMenu,d=n.onUndo,h=n.onRedo,f=n.onRenderMenu;return t.$$set=function(p){"json"in p&&e(1,o=p.json),"readOnly"in p&&e(2,s=p.readOnly),"historyState"in p&&e(3,a=p.historyState),"onSort"in p&&e(4,l=p.onSort),"onTransform"in p&&e(5,c=p.onTransform),"onContextMenu"in p&&e(6,u=p.onContextMenu),"onUndo"in p&&e(7,d=p.onUndo),"onRedo"in p&&e(8,h=p.onRedo),"onRenderMenu"in p&&e(9,f=p.onRenderMenu)},t.$$.update=function(){510&t.$$.dirty&&e(10,i=s?[{type:"space"}]:[{type:"button",icon:Gk,title:"Sort",className:"jse-sort",onClick:l,disabled:s||void 0===o},{type:"button",icon:Hk,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:c,disabled:s||void 0===o},{type:"button",icon:bse,title:xF,className:"jse-contextmenu",onClick:u},{type:"separator"},{type:"button",icon:JO,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:d,disabled:!a.canUndo},{type:"button",icon:YO,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:h,disabled:!a.canRedo},{type:"space"}]),1536&t.$$.dirty&&e(0,r=f(i)||i)},[r,o,s,a,l,c,u,d,h,f,i]}var Ztt=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,Qtt,Ktt,Ei,{json:1,readOnly:2,historyState:3,onSort:4,onTransform:5,onContextMenu:6,onUndo:7,onRedo:8,onRenderMenu:9}),r}return Se(e)}();function gpe(t,n,e){var i=t.slice();return i[9]=n[e],i}function vpe(t){var n,e,i,r=[t[9].props],o=t[9].component;function s(a){for(var l={},c=0;c0){for(var y=[g],_=Xi(v);_.length>0&&!Xc(m,_);)y.unshift({op:"add",path:ln(_),value:{}}),_=Xi(_);return y}}return g})),f);var p,m}return t.$$set=function(h){"path"in h&&e(1,o=h.path),"value"in h&&e(2,s=h.value),"context"in h&&e(3,a=h.context),"enforceString"in h&&e(4,l=h.enforceString),"selection"in h&&e(5,c=h.selection),"searchResultItems"in h&&e(6,u=h.searchResultItems)},t.$$.update=function(){40&t.$$.dirty&&e(7,i=!a.readOnly&&Yi(c)&&ip(c)),254&t.$$.dirty&&e(0,r=a.onRenderValue({path:o,value:s,readOnly:a.readOnly,enforceString:l,isEditing:i,parser:a.parser,normalization:a.normalization,selection:c,searchResultItems:u,onPatch:d,onPasteJson:a.onPasteJson,onSelect:a.onSelect,onFind:a.onFind,findNextInside:a.findNextInside,focus:a.focus}))},[r,o,s,a,l,c,u,i]}var nnt=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,tnt,ent,Ei,{path:1,value:2,context:3,enforceString:4,selection:5,searchResultItems:6}),r}return Se(e)}();function int(t){pi(t,"svelte-l28mqd",".jse-inline-value.svelte-l28mqd{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);line-height:var(--jse-line-height);border:none;padding:0 calc(0.5 * var(--jse-padding));background:transparent;color:inherit;cursor:pointer}.jse-inline-value.svelte-l28mqd:hover{background:var(--jse-hover-background-color)}.jse-inline-value.jse-selected.svelte-l28mqd{background:var(--jse-selection-background-color)}")}function rnt(t){var n,e,i,r,o=oh(t[2].stringify(t[1]),50)+"";return{c:function(){n=be("button"),e=tn(o),P(n,"type","button"),P(n,"class","jse-inline-value svelte-l28mqd"),Mt(n,"jse-selected",t[3])},m:function(s,a){Pe(s,n,a),de(n,e),i||(r=Nt(n,"dblclick",t[6]),i=!0)},p:function(s,a){var l=Un(a,1)[0];6&l&&o!==(o=oh(s[2].stringify(s[1]),50)+"")&&qn(e,o),8&l&&Mt(n,"jse-selected",s[3])},i:Lt,o:Lt,d:function(s){s&&je(n),i=!1,r()}}}function ont(t,n,e){var i,r=n.path,o=n.value,s=n.parser,a=n.isSelected,l=n.onEdit;return t.$$set=function(c){"path"in c&&e(0,r=c.path),"value"in c&&e(1,o=c.value),"parser"in c&&e(2,s=c.parser),"isSelected"in c&&e(3,a=c.isSelected),"onEdit"in c&&e(4,l=c.onEdit)},t.$$.update=function(){2&t.$$.dirty&&e(5,i=oo(o)?o.length:Object.keys(o).length)},[r,o,s,a,l,i,function(){return l(r)}]}var snt=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,ont,rnt,Ei,{path:0,value:1,parser:2,isSelected:3,onEdit:4},int),r}return Se(e)}();function ant(t){pi(t,"svelte-h4fort",".jse-column-header.svelte-h4fort.svelte-h4fort{background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;display:flex;gap:var(--jse-padding);padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding));width:100%}.jse-column-header.svelte-h4fort.svelte-h4fort:hover{background:var(--jse-table-header-background-highlight)}.jse-column-header.svelte-h4fort.svelte-h4fort:not(.jse-column-header.jse-readonly){cursor:pointer}.jse-column-header.svelte-h4fort span.jse-column-sort-icon.svelte-h4fort{height:1em}")}function ype(t){var n,e,i,r;return e=new sr({props:{data:t[1]===qc.asc?ru:yse}}),{c:function(){n=be("span"),mt(e.$$.fragment),P(n,"class","jse-column-sort-icon svelte-h4fort"),P(n,"title",i="Currently sorted in ".concat(t[2]," order"))},m:function(o,s){Pe(o,n,s),ft(e,n,null),r=!0},p:function(o,s){var a={};2&s&&(a.data=o[1]===qc.asc?ru:yse),e.$set(a),(!r||4&s&&i!==(i="Currently sorted in ".concat(o[2]," order")))&&P(n,"title",i)},i:function(o){r||(Q(e.$$.fragment,o),r=!0)},o:function(o){ce(e.$$.fragment,o),r=!1},d:function(o){o&&je(n),pt(e)}}}function lnt(t){var n,e,i,r,o,s,a,l,c=oh(t[3],50)+"",u=void 0!==t[1]&&ype(t);return{c:function(){n=be("button"),e=be("span"),i=tn(c),r=it(),u&&u.c(),P(e,"class","jse-column-name"),P(n,"type","button"),P(n,"class","jse-column-header svelte-h4fort"),P(n,"title",o=t[0]?t[3]:t[3]+" (Click to sort the data by this column)"),Mt(n,"jse-readonly",t[0])},m:function(d,h){Pe(d,n,h),de(n,e),de(e,i),de(n,r),u&&u.m(n,null),s=!0,a||(l=Nt(n,"click",t[4]),a=!0)},p:function(d,h){var f=Un(h,1)[0];(!s||8&f)&&c!==(c=oh(d[3],50)+"")&&qn(i,c),void 0!==d[1]?u?(u.p(d,f),2&f&&Q(u,1)):((u=ype(d)).c(),Q(u,1),u.m(n,null)):u&&($t(),ce(u,1,1,function(){u=null}),Bt()),(!s||9&f&&o!==(o=d[0]?d[3]:d[3]+" (Click to sort the data by this column)"))&&P(n,"title",o),(!s||1&f)&&Mt(n,"jse-readonly",d[0])},i:function(d){s||(Q(u),s=!0)},o:function(d){ce(u),s=!1},d:function(d){d&&je(n),u&&u.d(),a=!1,l()}}}function cnt(t,n,e){var i,r,o,s=n.path,a=n.sortedColumn,l=n.readOnly,c=n.onSort;return t.$$set=function(u){"path"in u&&e(5,s=u.path),"sortedColumn"in u&&e(6,a=u.sortedColumn),"readOnly"in u&&e(0,l=u.readOnly),"onSort"in u&&e(7,c=u.onSort)},t.$$.update=function(){var u;32&t.$$.dirty&&e(3,i=Hi(s)?"values":tu(Kl(s))),96&t.$$.dirty&&e(1,r=or(s,null===(u=a)||void 0===u?void 0:u.path)?a.sortDirection:void 0),2&t.$$.dirty&&e(2,o=H7e[r])},[l,r,o,i,function(){l||c({path:s,sortDirection:r===qc.asc?qc.desc:qc.asc})},s,a,c]}var CD,kD,unt=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,cnt,lnt,Ei,{path:5,sortedColumn:6,readOnly:0,onSort:7},ant),r}return Se(e)}();function bpe(t,n){return CD||(kD=new WeakMap,CD=new ResizeObserver(function(e){var i,r=Re(e);try{for(r.s();!(i=r.n()).done;){var o=i.value,s=kD.get(o.target);s&&s(o.target)}}catch(a){r.e(a)}finally{r.f()}})),kD.set(t,n),CD.observe(t),{destroy:function(){kD.delete(t),CD.unobserve(t)}}}function dnt(t){var n,e;return n=new Jae({props:{items:t[1],tip:t[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};2&r[0]&&(o.items=i[1]),1&r[0]&&(o.tip=i[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function hnt(t,n,e){var i,r,o,s,a,l,c,u,d,h,f,p=n.json,m=n.documentState,g=n.parser,v=n.showTip,y=n.onCloseContextMenu,_=n.onEditValue,C=n.onEditRow,S=n.onToggleEnforceString,M=n.onCut,$=n.onCopy,G=n.onPaste,R=n.onRemove,z=n.onDuplicateRow,U=n.onInsertBeforeRow,q=n.onInsertAfterRow,re=n.onRemoveRow;function L(){y(),_()}function X(){y(),C()}function Z(){y(),S()}function H(){y(),M(!0)}function he(){y(),M(!1)}function E(){y(),$(!0)}function F(){y(),$(!1)}function N(){y(),G()}function Y(){y(),R()}function V(){y(),z()}function oe(){y(),U()}function fe(){y(),q()}function Fe(){y(),re()}return t.$$set=function(xe){"json"in xe&&e(2,p=xe.json),"documentState"in xe&&e(3,m=xe.documentState),"parser"in xe&&e(4,g=xe.parser),"showTip"in xe&&e(0,v=xe.showTip),"onCloseContextMenu"in xe&&e(5,y=xe.onCloseContextMenu),"onEditValue"in xe&&e(6,_=xe.onEditValue),"onEditRow"in xe&&e(7,C=xe.onEditRow),"onToggleEnforceString"in xe&&e(8,S=xe.onToggleEnforceString),"onCut"in xe&&e(9,M=xe.onCut),"onCopy"in xe&&e(10,$=xe.onCopy),"onPaste"in xe&&e(11,G=xe.onPaste),"onRemove"in xe&&e(12,R=xe.onRemove),"onDuplicateRow"in xe&&e(13,z=xe.onDuplicateRow),"onInsertBeforeRow"in xe&&e(14,U=xe.onInsertBeforeRow),"onInsertAfterRow"in xe&&e(15,q=xe.onInsertAfterRow),"onRemoveRow"in xe&&e(16,re=xe.onRemoveRow)},t.$$.update=function(){8&t.$$.dirty[0]&&e(22,i=m.selection),4&t.$$.dirty[0]&&e(25,r=void 0!==p),4194304&t.$$.dirty[0]&&e(17,o=null!=i),4194304&t.$$.dirty[0]&&e(26,s=null!=i&&Hi(i.focusPath)),4194308&t.$$.dirty[0]&&e(23,a=void 0!==p&&null!=i?Sn(p,i.focusPath):void 0),37748736&t.$$.dirty[0]&&e(18,l=r&&(Fr(i)||xs(i)||Yi(i))),104857600&t.$$.dirty[0]&&r&&null!=i&&(Fr(i)||Yi(i)),71303172&t.$$.dirty[0]&&void 0!==p&&null!=i&&zb(i)&&!s&&Array.isArray(Sn(p,Xi(i.focusPath))),37748736&t.$$.dirty[0]&&e(21,c=r&&null!=i&&zb(i)),10485760&t.$$.dirty[0]&&e(19,u=c&&!Ho(a)),262144&t.$$.dirty[0]&&e(24,d=l),29491200&t.$$.dirty[0]&&d&&Lm(i)&&Io(a),29491200&t.$$.dirty[0]&&d&&Lm(i)&&Array.isArray(a),29491200&t.$$.dirty[0]&&d&&Lm(i)&&Ho(a),12582936&t.$$.dirty[0]&&e(20,h=null!=i&&lf(a,m.enforceStringMap,ln(i.focusPath),g)),4063232&t.$$.dirty[0]&&e(1,f=[{type:"separator"},{type:"row",items:[{type:"column",items:[{type:"label",text:"Table cell:"},{type:"dropdown-button",main:{type:"button",onClick:L,icon:h0,text:"Edit",title:"Edit the value (Double-click on the value)",disabled:!c},width:"11em",items:[{type:"button",icon:h0,text:"Edit",title:"Edit the value (Double-click on the value)",onClick:L,disabled:!c},{type:"button",icon:h?$b:Bb,text:"Enforce string",title:"Enforce keeping the value as string when it contains a numeric value",onClick:Z,disabled:!u}]},{type:"dropdown-button",main:{type:"button",onClick:H,icon:d0,text:"Cut",title:"Cut selected contents, formatted with indentation (Ctrl+X)",disabled:!l},width:"10em",items:[{type:"button",icon:d0,text:"Cut formatted",title:"Cut selected contents, formatted with indentation (Ctrl+X)",onClick:H,disabled:!l},{type:"button",icon:d0,text:"Cut compacted",title:"Cut selected contents, without indentation (Ctrl+Shift+X)",onClick:he,disabled:!l}]},{type:"dropdown-button",main:{type:"button",onClick:E,icon:sp,text:"Copy",title:"Copy selected contents, formatted with indentation (Ctrl+C)",disabled:!l},width:"12em",items:[{type:"button",icon:sp,text:"Copy formatted",title:"Copy selected contents, formatted with indentation (Ctrl+C)",onClick:E,disabled:!l},{type:"button",icon:sp,text:"Copy compacted",title:"Copy selected contents, without indentation (Ctrl+Shift+C)",onClick:F,disabled:!l}]},{type:"button",onClick:N,icon:mse,text:"Paste",title:"Paste clipboard contents (Ctrl+V)",disabled:!o},{type:"button",onClick:Y,icon:XO,text:"Remove",title:"Remove selected contents (Delete)",disabled:!l}]},{type:"column",items:[{type:"label",text:"Table row:"},{type:"button",onClick:X,icon:h0,text:"Edit row",title:"Edit the current row",disabled:!l},{type:"button",onClick:V,icon:wse,text:"Duplicate row",title:"Duplicate the current row",disabled:!o},{type:"button",onClick:oe,icon:f0,text:"Insert before",title:"Insert a row before the current row",disabled:!o},{type:"button",onClick:fe,icon:f0,text:"Insert after",title:"Insert a row after the current row",disabled:!o},{type:"button",onClick:Fe,icon:XO,text:"Remove row",title:"Remove current row",disabled:!o}]}]}])},[v,f,p,m,g,y,_,C,S,M,$,G,R,z,U,q,re,o,l,u,h,c,i,a,d,r,s]}var fnt=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,hnt,dnt,Ei,{json:2,documentState:3,parser:4,showTip:0,onCloseContextMenu:5,onEditValue:6,onEditRow:7,onToggleEnforceString:8,onCut:9,onCopy:10,onPaste:11,onRemove:12,onDuplicateRow:13,onInsertBeforeRow:14,onInsertAfterRow:15,onRemoveRow:16},null,[-1,-1]),r}return Se(e)}();function pnt(t){pi(t,"svelte-1te5h1h",".jse-table-mode-welcome.svelte-1te5h1h.svelte-1te5h1h{flex:1;display:flex;flex-direction:column;overflow:auto;align-items:center;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-table-mode-welcome.svelte-1te5h1h.svelte-1te5h1h:last-child{border-bottom:var(--jse-main-border)}.jse-table-mode-welcome.svelte-1te5h1h .jse-space.jse-before.svelte-1te5h1h{flex:1}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays.svelte-1te5h1h{display:flex;flex-direction:column;gap:var(--jse-padding);max-width:300px;margin:var(--jse-padding);font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays .jse-nested-arrays-info.svelte-1te5h1h{color:var(--jse-panel-color-readonly)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px;text-align:left}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h:hover{background:var(--jse-button-primary-background-highlight)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h:disabled{background:var(--jse-button-primary-background-disabled)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action .jse-nested-array-count.svelte-1te5h1h{opacity:0.5;white-space:nowrap}.jse-table-mode-welcome.svelte-1te5h1h .jse-space.jse-after.svelte-1te5h1h{flex:2}")}function _pe(t,n,e){var i=t.slice();i[12]=n[e];var r=Sn(i[0],i[12]).length;return i[13]=r,i}function mnt(t){var n,e;return{c:function(){n=tn(t[5]),e=tn(" cannot be opened in table mode. You can open the document in tree mode instead.")},m:function(i,r){Pe(i,n,r),Pe(i,e,r)},p:function(i,r){32&r&&qn(n,i[5])},d:function(i){i&&je(n),i&&je(e)}}}function gnt(t){var n;return{c:function(){n=tn("An object cannot be opened in table mode. You can open a nested array instead, or open the\n document in tree mode.")},m:function(e,i){Pe(e,n,i)},p:Lt,d:function(e){e&&je(n)}}}function xpe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p=tu(Kl(t[12]))+"",m=t[13]+"",g=1!==t[13]?"items":"item";function v(){return t[10](t[12])}return{c:function(){n=be("button"),e=tn(t[6]),i=tn(' "'),r=tn(p),o=tn('"\n '),s=be("span"),a=tn("("),l=tn(m),c=it(),u=tn(g),d=tn(")"),P(s,"class","jse-nested-array-count svelte-1te5h1h"),P(n,"type","button"),P(n,"class","jse-nested-array-action svelte-1te5h1h")},m:function(y,_){Pe(y,n,_),de(n,e),de(n,i),de(n,r),de(n,o),de(n,s),de(s,a),de(s,l),de(s,c),de(s,u),de(s,d),h||(f=Nt(n,"click",v),h=!0)},p:function(y,_){t=y,64&_&&qn(e,t[6]),8&_&&p!==(p=tu(Kl(t[12]))+"")&&qn(r,p),9&_&&m!==(m=t[13]+"")&&qn(l,m),9&_&&g!==(g=1!==t[13]?"items":"item")&&qn(u,g)},d:function(y){y&&je(n),h=!1,f()}}}function vnt(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v;function y(G,R){return G[4]?gnt:mnt}for(var _=y(t),C=_(t),S=t[3],M=[],$=0;$1&&void 0!==arguments[1]?arguments[1]:2,m=[];return function g(v,y){Mo(v)&&y.length0}):[]),8&t.$$.dirty&&e(4,r=!Hi(s)),657&t.$$.dirty&&e(5,o=r?"Object with nested arrays":void 0!==l||""!==a&&void 0!==a?Mo(l)?"An object":oo(l)?"An empty array":"A ".concat(VF(l,u)):"An empty document")},[l,d,h,s,r,o,i,a,c,u,function(f){return d(f)},function(){return h(Jo.tree)}]}var bnt=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,ynt,vnt,Ei,{text:7,json:0,readOnly:8,parser:9,openJSONEditorModal:1,onChangeMode:2},pnt),r}return Se(e)}();function _nt(t){pi(t,"svelte-h4fort",".jse-column-header.svelte-h4fort{background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;display:flex;gap:var(--jse-padding);padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding));width:100%}.jse-column-header.svelte-h4fort:hover{background:var(--jse-table-header-background-highlight)}.jse-column-header.svelte-h4fort:not(.jse-column-header.jse-readonly){cursor:pointer}")}function xnt(t){var n,e,i,r,o,s;return e=new sr({props:{data:TWe}}),{c:function(){n=be("button"),mt(e.$$.fragment),P(n,"type","button"),P(n,"class","jse-column-header svelte-h4fort"),P(n,"title",i="The Columns are created by sampling ".concat(t[1]," items out of ").concat(t[0],". ")+"If you're missing a column, click here to sample all of the items instead of a subset. This is slower.")},m:function(a,l){Pe(a,n,l),ft(e,n,null),r=!0,o||(s=Nt(n,"click",t[3]),o=!0)},p:function(a,l){var c=Un(l,1)[0];(!r||3&c&&i!==(i="The Columns are created by sampling ".concat(a[1]," items out of ").concat(a[0],". ")+"If you're missing a column, click here to sample all of the items instead of a subset. This is slower."))&&P(n,"title",i)},i:function(a){r||(Q(e.$$.fragment,a),r=!0)},o:function(a){ce(e.$$.fragment,a),r=!1},d:function(a){a&&je(n),pt(e),o=!1,s()}}}function wnt(t,n,e){var i=n.count,r=n.maxSampleCount,o=n.onRefresh;return t.$$set=function(s){"count"in s&&e(0,i=s.count),"maxSampleCount"in s&&e(1,r=s.maxSampleCount),"onRefresh"in s&&e(2,o=s.onRefresh)},[i,r,o,function(){return o()}]}var Cnt=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,wnt,xnt,Ei,{count:0,maxSampleCount:1,onRefresh:2},_nt),r}return Se(e)}();function knt(t){pi(t,"svelte-hs49xj",".jse-table-mode.svelte-hs49xj.svelte-hs49xj{flex:1;display:flex;flex-direction:column;position:relative;background:var(--jse-background-color);min-width:0;min-height:0;font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:var(--jse-text-color)}.jse-table-mode.no-main-menu.svelte-hs49xj.svelte-hs49xj{border-top:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-hidden-input-label.svelte-hs49xj{position:fixed;right:0;top:0;width:0;height:0}.jse-table-mode.svelte-hs49xj .jse-hidden-input-label .jse-hidden-input.svelte-hs49xj{width:0;height:0;padding:0;border:0;outline:none}.jse-table-mode.svelte-hs49xj .jse-contents.svelte-hs49xj{flex:1;align-items:start;flex-direction:column;display:flex;overflow:auto;overflow-anchor:none;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-contents.svelte-hs49xj:last-child{border-bottom:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main.svelte-hs49xj{border-collapse:collapse;border-spacing:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-start-section td.svelte-hs49xj,.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-hs49xj{margin:0;padding:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-hs49xj{padding-bottom:var(--jse-padding)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row.svelte-hs49xj:hover{background-color:var(--jse-table-row-odd-background)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj{padding:0 var(--jse-padding) 0 0;vertical-align:top;white-space:nowrap;height:var(--jse-line-height)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-hs49xj,.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-hs49xj{font-weight:normal;text-align:left;color:var(--jse-text-readonly);background:var(--jse-table-header-background)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-hs49xj{padding:0;position:sticky;top:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header .jse-table-root-error.svelte-hs49xj{padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding))}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-hs49xj{padding:0 var(--jse-padding) 0 calc(0.5 * var(--jse-padding))}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-selected-value.svelte-hs49xj>.jse-value{background:var(--jse-selection-background-color)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj div{display:inline-flex}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj div.jse-value{overflow-wrap:normal;white-space:nowrap;vertical-align:top;display:inline-block}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell .jse-context-menu-anchor.svelte-hs49xj{position:relative;vertical-align:top}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading.svelte-hs49xj{align-items:unset}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading .jse-loading-space.svelte-hs49xj{flex:1}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading .jse-loading.svelte-hs49xj{flex:2;text-align:center;color:var(--jse-panel-color-readonly);box-sizing:border-box;font-family:var(--jse-font-family);font-size:var(--jse-font-size)}")}function wpe(t,n,e){var i=t.slice();return i[120]=n[e],i[124]=e,i[121]=i[22].startIndex+i[124],i[122]=i[21].rows[i[121]],i}function Cpe(t,n,e){var i,r=t.slice();r[125]=n[e],r[131]=e;var o=[String(r[121])].concat(r[125]);r[126]=o;var s=Sn(r[120],r[125]);r[127]=s;var a=r[46](r[126],r[10].selection);r[128]=a;var l=null===(i=r[122])||void 0===i?void 0:i.columns[r[131]];return r[129]=l,r}function kpe(t,n,e){var i=t.slice();return i[125]=n[e],i}function Spe(t){var n,e;return n=new Ztt({props:{json:t[7],readOnly:t[0],historyState:t[19],onSort:t[40],onTransform:t[41],onUndo:t[42],onRedo:t[43],onContextMenu:t[32],onRenderMenu:t[5]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};128&r[0]&&(o.json=i[7]),1&r[0]&&(o.readOnly=i[0]),524288&r[0]&&(o.historyState=i[19]),32&r[0]&&(o.onRenderMenu=i[5]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function Snt(t){var n;return{c:function(){(n=be("div")).innerHTML='
    \n
    loading...
    ',P(n,"class","jse-contents jse-contents-loading svelte-hs49xj")},m:function(e,i){Pe(e,n,i)},p:Lt,i:Lt,o:Lt,d:function(e){e&&je(n)}}}function Dnt(t){var n,e,i,r,o,s,a,l,c,u=[Ant,Ent,Tnt],d=[];function h(f,p){return f[24]?0:f[16]&&void 0!==f[15]&&""!==f[15]?1:2}return r=h(t),o=d[r]=u[r](t),{c:function(){n=be("label"),e=be("input"),i=it(),o.c(),s=_r(),P(e,"type","text"),e.readOnly="readonly",P(e,"tabindex","-1"),P(e,"class","jse-hidden-input svelte-hs49xj"),P(n,"class","jse-hidden-input-label svelte-hs49xj")},m:function(f,p){Pe(f,n,p),de(n,e),t[71](e),Pe(f,i,p),d[r].m(f,p),Pe(f,s,p),a=!0,l||(c=Nt(e,"paste",t[37]),l=!0)},p:function(f,p){var m=r;(r=h(f))===m?d[r].p(f,p):($t(),ce(d[m],1,1,function(){d[m]=null}),Bt(),(o=d[r])?o.p(f,p):(o=d[r]=u[r](f)).c(),Q(o,1),o.m(s.parentNode,s))},i:function(f){a||(Q(o),a=!0)},o:function(f){ce(o),a=!1},d:function(f){f&&je(n),t[71](null),f&&je(i),d[r].d(f),f&&je(s),l=!1,c()}}}function Tnt(t){var n,e;return n=new bnt({props:{text:t[15],json:t[7],readOnly:t[0],parser:t[2],openJSONEditorModal:t[39],onChangeMode:t[4]}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};32768&r[0]&&(o.text=i[15]),128&r[0]&&(o.json=i[7]),1&r[0]&&(o.readOnly=i[0]),4&r[0]&&(o.parser=i[2]),16&r[0]&&(o.onChangeMode=i[4]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function Ent(t){var n,e,i,r;return n=new nd({props:{type:"error",message:"The loaded JSON document is invalid and could not be repaired automatically.",actions:t[0]?[]:[{icon:op,text:"Repair manually",onClick:t[35]}]}}),i=new tce({props:{text:t[15]||"",json:t[7],indentation:t[3],parser:t[2]}}),{c:function(){mt(n.$$.fragment),e=it(),mt(i.$$.fragment)},m:function(o,s){ft(n,o,s),Pe(o,e,s),ft(i,o,s),r=!0},p:function(o,s){var a={};1&s[0]&&(a.actions=o[0]?[]:[{icon:op,text:"Repair manually",onClick:o[35]}]),n.$set(a);var l={};32768&s[0]&&(l.text=o[15]||""),128&s[0]&&(l.json=o[7]),8&s[0]&&(l.indentation=o[3]),4&s[0]&&(l.parser=o[2]),i.$set(l)},i:function(o){r||(Q(n.$$.fragment,o),Q(i.$$.fragment,o),r=!0)},o:function(o){ce(n.$$.fragment,o),ce(i.$$.fragment,o),r=!1},d:function(o){pt(n,o),o&&je(e),pt(i,o)}}}function Ant(t){for(var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,_,C,S,M,$,G,R=!Hi(null===(n=t[21])||void 0===n?void 0:n.root),z=R&&Dpe(t),U=t[9],q=[],re=0;re"u";a("isSSR:",m);var g,v,y,_,C,S,M=n.readOnly,$=n.externalContent,G=n.mainMenuBar,R=n.escapeControlCharacters,z=n.escapeUnicodeCharacters,U=n.flattenColumns,q=n.parser,re=n.parseMemoizeOne,L=n.validator,X=n.validationParser,Z=n.indentation,H=n.onChange,he=n.onChangeMode,E=n.onRenderValue,F=n.onRenderMenu,N=n.onFocus,Y=n.onBlur,V=n.onSortModal,oe=n.onTransformModal,fe=n.onJSONEditorModal;a4({onMount:Wc,onDestroy:Hu,getWindow:function(){return e0(v)},hasFocus:function(){return ot&&document.hasFocus()||jk(v)},onFocus:function(){N&&N()},onBlur:function(){Y&&Y()}});var Fe,xe=void 0,tt=1e4,ze=[],ot=!1,B={},ne=600,ie=0;function Ie(Ee){a("updateSelection",Ee);var St="function"==typeof Ee?Ee(Le.selection):Ee;or(St,Le.selection)||e(10,Le=Ze(Ze({},Le),{},{selection:St}))}function Ye(Ee){void 0!==Le.selection&&void 0!==Ee&&(Le.selection&&Xc(Ee,Le.selection.anchorPath)&&Xc(Ee,Le.selection.focusPath)||(a("clearing selection: path does not exist anymore",Le.selection),e(10,Le=Ze(Ze({},Le),{},{selection:s0(Ee,Le)}))))}var At,Le=Lk(),_t=!1,_n=fae({onChange:function(Ee){e(19,ci=Ee)}}),ci=_n.getState();function Fi(Ee){var St=Ee.previousJson,Ht=Ee.previousState,sn=Ee.previousText,hn=Ee.previousTextIsRepaired;void 0===St&&void 0===sn||(void 0!==C?_n.add(void 0!==St?{undo:{patch:[{op:"replace",path:"",value:St}],state:ul(Ht),json:void 0,text:sn,textIsRepaired:hn},redo:{patch:[{op:"replace",path:"",value:C}],state:ul(Le),json:void 0,text:S,textIsRepaired:_t}}:{undo:{patch:void 0,json:void 0,text:sn,state:ul(Ht),textIsRepaired:hn},redo:{patch:void 0,json:C,state:ul(Le),text:S,textIsRepaired:_t}}):void 0!==St&&_n.add({undo:{patch:void 0,json:St,state:ul(Ht),text:sn,textIsRepaired:hn},redo:{patch:void 0,json:void 0,text:S,textIsRepaired:_t,state:ul(Le)}}))}var pn=[],Nr=Zb(pae);function $r(Ee,St,Ht,sn){g0(function(){var hn;try{hn=Nr(Ee,St,Ht,sn)}catch(ri){hn=[{path:[],message:"Failed to validate: "+ri.message,severity:Xd.warning}]}or(hn,pn)||(a("validationErrors changed:",hn),e(11,pn=hn))},function(hn){return a("validationErrors updated in ".concat(hn," ms"))})}function wr(){return a("validate"),xe?{parseError:xe,isRepairable:!1}:($r(C,L,q,X),Hi(pn)?null:{validationErrors:pn})}function Or(Ee,St){if(a("patch",Ee,St),void 0===C)throw new Error("Cannot apply patch: no JSON");var Ht={json:C},sn=C,hn=Le,ri=_t,Oi=ose(C,Ee),Bn=$oe(C,Le,Ee).json,ei=function MJe(t,n,e){return n.some(function(i){return function(r,o,s){if(!r)return!1;if("replace"===o.op){var a=ou(Xu(o.path),s),l=a.rowIndex,c=a.columnIndex,u=s.findIndex(function(d){return or(d,r.path)});if(-1!==l&&-1!==c&&c!==u)return!1}return!0}(t.sortedColumn,i,e)})?Ze(Ze({},t),{},{sortedColumn:void 0}):t}(Le,Ee,ze),Yn="function"==typeof St?St(Bn,ei):void 0;e(7,C=Yn&&void 0!==Yn.json?Yn.json:Bn);var br=Yn&&void 0!==Yn.state?Yn.state:ei;e(10,Le=br),e(15,S=void 0),e(18,_t=!1),e(17,Fe=void 0),_n.add({undo:{patch:Oi,json:void 0,text:void 0,state:ul(hn),textIsRepaired:ri},redo:{patch:Ee,json:void 0,state:ul(br),text:void 0,textIsRepaired:_t}});var Ar={json:C,previousJson:sn,undo:Oi,redo:Ee};return Wr(Ht,Ar),Ar}function Ai(Ee,St){if(!M)return Or(Ee,St)}function Wr(Ee,St){(void 0!==Ee.json||void 0!==Ee?.text)&&(void 0!==S?H({text:S,json:void 0},Ee,{contentErrors:wr(),patchResult:St}):void 0!==C&&H({text:void 0,json:C},Ee,{contentErrors:wr(),patchResult:St}))}function jo(Ee){a("handleFind",Ee)}function Nn(Ee){a("pasted json as text",Ee),e(17,Fe=Ee)}function xt(Ee){var St=parseInt(Ee[0]),Ht=[String(St+1)].concat(si(Ee.slice(1)));return Xc(C,Ht)?mr(Ht,!1):mr(Ee,!1)}function ui(){_&&(_.focus(),_.select())}function Ni(){Le.selection||Ie(function(){if(oo(C)&&!Hi(C)&&!Hi(ze))return mr(["0"].concat(si(ze[0])),!1)}())}function Cr(Ee){var St=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],Ht=b4(Ee,ze,B,18),sn=Ht-ie,hn=gt(Ee);a("scrollTo",{path:Ee,top:Ht,scrollTop:ie,elem:hn});var ri=y.getBoundingClientRect();if(hn&&!St){var Oi=hn.getBoundingClientRect();if(Oi.bottom>ri.top&&Oi.topHt.right&&e(13,y.scrollLeft+=sn.right-Ht.right,y),sn.left(Bn=ie+ri.height-18)&&e(13,y.scrollTop+=hn-Bn,y),sn0&&void 0!==Ht[0])||Ht[0],void 0!==C){sn.next=3;break}return sn.abrupt("return");case 3:return sn.next=5,Kle({json:C,documentState:Le,indentation:St?Z:void 0,parser:q});case 5:case"end":return sn.stop()}},Ee)})),Xa.apply(this,arguments)}function Ic(){Zle({json:C,text:S,documentState:Le,keepSelection:!0,readOnly:M,onChange:H,onPatch:Ai})}function we(){!function IJe(t){var n=t.json,e=t.documentState,i=t.columns,o=t.onPatch;if(!t.readOnly&&void 0!==n&&e.selection&&c0(e.selection)){var s=ou(e.selection.focusPath,i),a=s.rowIndex,l=s.columnIndex;jl("duplicate row",{rowIndex:a});var c=[String(a)];o(nse(n,[c]),function(u,d){var h=mr(zm({rowIndex:a0?a-1:void 0,h=void 0!==d?mr(zm({rowIndex:d,columnIndex:l},i),!1):void 0;return jl("remove row new selection",{rowIndex:a,newRowIndex:d,newSelection:h}),{state:Ze(Ze({},u),{},{selection:h})}})}}({json:C,documentState:Le,columns:ze,readOnly:M,onPatch:Ai})}function Ue(){return(Ue=Zi(vn().mark(function Ee(St){return vn().wrap(function(Ht){for(;;)switch(Ht.prev=Ht.next){case 0:return Ht.next=2,ece({char:St,selectInside:!1,refJsonEditor:v,json:C,documentState:Le,readOnly:M,parser:q,onPatch:Ai,onReplaceJson:Dn,onSelect:Ie});case 2:case"end":return Ht.stop()}},Ee)}))).apply(this,arguments)}function Dn(Ee,St){var Ht=Le,sn=C,hn=S,ri={json:C,text:S},Oi=_t,Bn=nu(C,Le,[],sh),ei="function"==typeof St?St(Ee,Bn):void 0;e(7,C=ei&&void 0!==ei.json?ei.json:Ee),e(10,Le=ei&&void 0!==ei.state?ei.state:Bn),e(15,S=void 0),e(18,_t=!1),Ye(C),Fi({previousJson:sn,previousState:Ht,previousText:hn,previousTextIsRepaired:Oi}),Wr(ri,null)}function ii(Ee,St){a("handleChangeText");var Ht=Le,sn=C,hn=S,ri={json:C,text:S},Oi=_t;try{e(7,C=re(Ee)),e(10,Le=nu(C,Le,[],sh)),e(15,S=void 0),e(18,_t=!1)}catch{try{e(7,C=re(Yd(Ee))),e(10,Le=nu(C,Le,[],sh)),e(15,S=Ee),e(18,_t=!0)}catch{e(7,C=void 0),e(10,Le=Lk({json:C,expand:sh})),e(15,S=Ee),e(18,_t=!1)}}if("function"==typeof St){var Bn=St(C,Le);e(7,C=Bn&&Bn.json?Bn.json:C),e(10,Le=Bn&&Bn.state?Bn.state:Le)}Ye(C),Fi({previousJson:sn,previousState:Ht,previousText:hn,previousTextIsRepaired:Oi}),Wr(ri,null)}function hi(Ee){var Ht=Ee.rootPath,sn=Ee.onTransform,hn=Ee.onClose;M||void 0===C||(ot=!0,oe({id:Ee.id||p,json:C,rootPath:Ht||[],onTransform:sn?function(ri){sn({operations:ri,json:C,transformedJson:Yu(C,ri)})}:function(ri){a("onTransform",Ht,ri),Ai(ri)},onClose:function(){ot=!1,ui(),hn&&hn()}}))}function di(Ee){a("openJSONEditorModal",{path:Ee}),ot=!0,fe({content:{json:Sn(C,Ee)},path:Ee,onPatch:At.onPatch,onClose:function(){ot=!1,ui()}})}function kr(Ee,St){l(jae,{text:Ee,onParse:Ik,onRepair:soe,onApply:St},Ze(Ze({},Cm),{},{styleWindow:{width:"600px",height:"500px"},styleContent:{padding:0,height:"100%"}}),{onClose:function(){return ui()}})}function Qr(){if(!M&&_n.getState().canUndo){var Ee=_n.undo();if(Ee){var St={json:C,text:S};e(7,C=Ee.undo.patch?Yu(C,Ee.undo.patch):Ee.undo.json),e(10,Le=Ee.undo.state),e(15,S=Ee.undo.text),e(18,_t=Ee.undo.textIsRepaired),a("undo",{item:Ee,json:C}),Wr(St,{json:C,previousJson:St.json,redo:Ee.undo.patch,undo:Ee.redo.patch}),ui(),Le.selection&&Cr(Le.selection.focusPath,!1)}}}function gi(){if(!M&&_n.getState().canRedo){var Ee=_n.redo();if(Ee){var St={json:C,text:S};e(7,C=Ee.redo.patch?Yu(C,Ee.redo.patch):Ee.redo.json),e(10,Le=Ee.redo.state),e(15,S=Ee.redo.text),e(18,_t=Ee.redo.textIsRepaired),a("redo",{item:Ee,json:C}),Wr(St,{json:C,previousJson:St.json,redo:Ee.redo.patch,undo:Ee.undo.patch}),ui(),Le.selection&&Cr(Le.selection.focusPath,!1)}}}function yr(Ee,St){e(68,B[St]=Ee.getBoundingClientRect().height,B)}return t.$$set=function(Ee){"readOnly"in Ee&&e(0,M=Ee.readOnly),"externalContent"in Ee&&e(47,$=Ee.externalContent),"mainMenuBar"in Ee&&e(1,G=Ee.mainMenuBar),"escapeControlCharacters"in Ee&&e(48,R=Ee.escapeControlCharacters),"escapeUnicodeCharacters"in Ee&&e(49,z=Ee.escapeUnicodeCharacters),"flattenColumns"in Ee&&e(50,U=Ee.flattenColumns),"parser"in Ee&&e(2,q=Ee.parser),"parseMemoizeOne"in Ee&&e(51,re=Ee.parseMemoizeOne),"validator"in Ee&&e(52,L=Ee.validator),"validationParser"in Ee&&e(53,X=Ee.validationParser),"indentation"in Ee&&e(3,Z=Ee.indentation),"onChange"in Ee&&e(54,H=Ee.onChange),"onChangeMode"in Ee&&e(4,he=Ee.onChangeMode),"onRenderValue"in Ee&&e(55,E=Ee.onRenderValue),"onRenderMenu"in Ee&&e(5,F=Ee.onRenderMenu),"onFocus"in Ee&&e(56,N=Ee.onFocus),"onBlur"in Ee&&e(57,Y=Ee.onBlur),"onSortModal"in Ee&&e(58,V=Ee.onSortModal),"onTransformModal"in Ee&&e(59,oe=Ee.onTransformModal),"onJSONEditorModal"in Ee&&e(60,fe=Ee.onJSONEditorModal)},t.$$.update=function(){393216&t.$$.dirty[1]&&e(67,g=TO({escapeControlCharacters:R,escapeUnicodeCharacters:z})),65536&t.$$.dirty[1]&&function on(Ee){var St=C,Ht=Qv(Ee)?Ee.text!==S:!or(St,Ee.json);if(a("update external content",{isChanged:Ht}),Ht){var sn={json:C,text:S},hn=C,ri=Le,Oi=S,Bn=_t;if(Qv(Ee))try{e(7,C=re(Ee.text)),e(15,S=Ee.text),e(18,_t=!1),e(16,xe=void 0)}catch(ei){try{e(7,C=re(Yd(Ee.text))),e(15,S=Ee.text),e(18,_t=!0),e(16,xe=void 0)}catch{e(7,C=void 0),e(15,S=$.text),e(18,_t=!1),e(16,xe=Fk(S,ei.message||ei.toString()))}}else e(7,C=Ee.json),e(15,S=void 0),e(18,_t=!1),e(16,xe=void 0);Ye(C),Le.sortedColumn&&e(10,Le=Ze(Ze({},Le),{},{sortedColumn:void 0})),Fi({previousJson:hn,previousState:ri,previousText:Oi,previousTextIsRepaired:Bn}),Wr(sn,null)}}($),896&t.$$.dirty[0]|524288&t.$$.dirty[1]&&e(9,ze=oo(C)?function(Ee,St){var Ht,sn=new Set(St.map(ln)),hn=new Set(Ee.map(ln)),ri=Re(sn);try{for(ri.s();!(Ht=ri.n()).done;){var Oi=Ht.value;hn.has(Oi)||sn.delete(Oi)}}catch(br){ri.e(br)}finally{ri.f()}var Bn,ei=Re(hn);try{for(ei.s();!(Bn=ei.n()).done;){var Yn=Bn.value;sn.has(Yn)||sn.add(Yn)}}catch(br){ei.e(br)}finally{ei.f()}return si(sn).map(Xu)}(function(Ee,St){var Ht=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,sn={};Array.isArray(Ee)&&function LUe(t,n,e){if(t.length1?(t.length-1)/(n-1):t.length,r=0;rtt),128&t.$$.dirty[0]|448&t.$$.dirty[2]&&e(22,o=function(Ee,St,Ht,sn,hn){for(var ri=arguments.length>5&&void 0!==arguments[5]?arguments[5]:80,Oi=oo(Ht)?Ht.length:0,Bn=function TJe(t,n){var e=Object.values(t);return Hi(e)?n:e.reduce(function(r,o){return r+o})/e.length}(sn,hn),ei=Ee-ri,Yn=St+2*ri,br=function(gd){return sn[gd]||hn},Ar=0,Po=0;Po0&&(Po-=br(--Ar));for(var ca=Ar,md=0;md0?mr(zm({rowIndex:br.rowIndex,columnIndex:Po-1},ei),!1):Yn;Ie(Ht),Qo(Ht.focusPath)}if("ArrowRight"===St&&(Ee.preventDefault(),Ni(),Le.selection)){var sn=function(ei,Yn){var br=ou(Yn.focusPath,ei),Po=br.columnIndex;return Po0?mr(zm({rowIndex:Ar-1,columnIndex:br.columnIndex},ei),!1):Yn}(ze,Le.selection);Ie(hn),Qo(hn.focusPath)}if("ArrowDown"===St&&(Ee.preventDefault(),Ni(),Le.selection)){var ri=function(ei,Yn,br){var Ar=ou(br.focusPath,Yn),Po=Ar.rowIndex;return Po1?" (".concat(t[18].length,")"):""),onClose:t[23]}}),h=new Rpe({props:{mode:Ln(t[18]).mode,content:Ln(t[18]).content,readOnly:t[0],indentation:t[1],tabSize:t[2],statusBar:t[5],mainMenuBar:t[3],navigationBar:t[4],escapeControlCharacters:t[6],escapeUnicodeCharacters:t[7],flattenColumns:t[8],parser:t[9],parseMemoizeOne:t[20],validator:t[10],validationParser:t[11],pathParser:t[12],insideModal:!0,onError:t[26],onChange:t[24],onChangeMode:t[25],onRenderValue:t[13],onClassName:t[14],onFocus:dh,onBlur:dh,onRenderMenu:t[15],onSortModal:t[16],onTransformModal:t[17],onJSONEditorModal:t[27]}});var C=t[19]&&$pe(t),S=t[18].length>1&&Bpe(t);function M(R,z){return R[0]?Vnt:Hnt}var $=M(t),G=$(t);return{c:function(){n=be("div"),mt(e.$$.fragment),i=it(),r=be("div"),(o=be("div")).innerHTML='
    Path
    ',s=it(),a=be("input"),l=it(),(c=be("div")).innerHTML='
    Contents
    ',u=it(),d=be("div"),mt(h.$$.fragment),f=it(),p=be("div"),C&&C.c(),m=it(),S&&S.c(),g=it(),G.c(),P(o,"class","jse-label svelte-1hibiw3"),P(a,"class","jse-path svelte-1hibiw3"),P(a,"type","text"),a.readOnly=!0,P(a,"title","Selected path"),a.value=t[21],P(c,"class","jse-label svelte-1hibiw3"),P(d,"class","jse-modal-inline-editor svelte-1hibiw3"),P(p,"class","jse-actions svelte-1hibiw3"),P(r,"class","jse-modal-contents svelte-1hibiw3"),P(n,"class","jse-modal jse-jsoneditor-modal svelte-1hibiw3")},m:function(R,z){Pe(R,n,z),ft(e,n,null),de(n,i),de(n,r),de(r,o),de(r,s),de(r,a),de(r,l),de(r,c),de(r,u),de(r,d),ft(h,d,null),de(r,f),de(r,p),C&&C.m(p,null),de(p,m),S&&S.m(p,null),de(p,g),G.m(p,null),v=!0,y||(_=_a(iS.call(null,n,t[23])),y=!0)},p:function(R,z){var U={};262144&z[0]&&(U.title="Edit nested content "+(R[18].length>1?" (".concat(R[18].length,")"):"")),e.$set(U),(!v||2097152&z[0]&&a.value!==R[21])&&(a.value=R[21]);var q={};262144&z[0]&&(q.mode=Ln(R[18]).mode),262144&z[0]&&(q.content=Ln(R[18]).content),1&z[0]&&(q.readOnly=R[0]),2&z[0]&&(q.indentation=R[1]),4&z[0]&&(q.tabSize=R[2]),32&z[0]&&(q.statusBar=R[5]),8&z[0]&&(q.mainMenuBar=R[3]),16&z[0]&&(q.navigationBar=R[4]),64&z[0]&&(q.escapeControlCharacters=R[6]),128&z[0]&&(q.escapeUnicodeCharacters=R[7]),256&z[0]&&(q.flattenColumns=R[8]),512&z[0]&&(q.parser=R[9]),1048576&z[0]&&(q.parseMemoizeOne=R[20]),1024&z[0]&&(q.validator=R[10]),2048&z[0]&&(q.validationParser=R[11]),4096&z[0]&&(q.pathParser=R[12]),8192&z[0]&&(q.onRenderValue=R[13]),16384&z[0]&&(q.onClassName=R[14]),32768&z[0]&&(q.onRenderMenu=R[15]),65536&z[0]&&(q.onSortModal=R[16]),131072&z[0]&&(q.onTransformModal=R[17]),h.$set(q),R[19]?C?C.p(R,z):((C=$pe(R)).c(),C.m(p,m)):C&&(C.d(1),C=null),R[18].length>1?S?(S.p(R,z),262144&z[0]&&Q(S,1)):((S=Bpe(R)).c(),Q(S,1),S.m(p,g)):S&&($t(),ce(S,1,1,function(){S=null}),Bt()),$===($=M(R))&&G?G.p(R,z):(G.d(1),(G=$(R))&&(G.c(),G.m(p,null)))},i:function(R){v||(Q(e.$$.fragment,R),Q(h.$$.fragment,R),Q(S),v=!0)},o:function(R){ce(e.$$.fragment,R),ce(h.$$.fragment,R),ce(S),v=!1},d:function(R){R&&je(n),pt(e),pt(h),C&&C.d(),S&&S.d(),G.d(),y=!1,_()}}}function Vpe(t){t.focus()}function Unt(t,n,e){var i,r,o,s=wa("jsoneditor:JSONEditorModal"),a=n.content,l=n.path,c=n.onPatch,u=n.readOnly,d=n.indentation,h=n.tabSize,f=n.mainMenuBar,p=n.navigationBar,m=n.statusBar,g=n.escapeControlCharacters,v=n.escapeUnicodeCharacters,y=n.flattenColumns,_=n.parser,C=n.validator,S=n.validationParser,M=n.pathParser,$=n.onRenderValue,G=n.onClassName,R=n.onRenderMenu,z=n.onSortModal,U=n.onTransformModal,q=xa("simple-modal").close,re=[{mode:X(a),content:a,relativePath:l}],L=void 0;function X(H){return DO(H)&&oo(H.json)?Jo.table:Jo.tree}function Z(H){s("handleChange",H);var he=Ze(Ze({},Ln(re)),{},{content:H});e(18,re=[].concat(si(Xi(re)),[he]))}return t.$$set=function(H){"content"in H&&e(28,a=H.content),"path"in H&&e(29,l=H.path),"onPatch"in H&&e(30,c=H.onPatch),"readOnly"in H&&e(0,u=H.readOnly),"indentation"in H&&e(1,d=H.indentation),"tabSize"in H&&e(2,h=H.tabSize),"mainMenuBar"in H&&e(3,f=H.mainMenuBar),"navigationBar"in H&&e(4,p=H.navigationBar),"statusBar"in H&&e(5,m=H.statusBar),"escapeControlCharacters"in H&&e(6,g=H.escapeControlCharacters),"escapeUnicodeCharacters"in H&&e(7,v=H.escapeUnicodeCharacters),"flattenColumns"in H&&e(8,y=H.flattenColumns),"parser"in H&&e(9,_=H.parser),"validator"in H&&e(10,C=H.validator),"validationParser"in H&&e(11,S=H.validationParser),"pathParser"in H&&e(12,M=H.pathParser),"onRenderValue"in H&&e(13,$=H.onRenderValue),"onClassName"in H&&e(14,G=H.onClassName),"onRenderMenu"in H&&e(15,R=H.onRenderMenu),"onSortModal"in H&&e(16,z=H.onSortModal),"onTransformModal"in H&&e(17,U=H.onTransformModal)},t.$$.update=function(){262144&t.$$.dirty[0]&&e(31,i=re.flatMap(function(H){return H.relativePath})),1&t.$$.dirty[1]&&e(21,r=Hi(i)?"(whole document)":tu(Kl(i))),512&t.$$.dirty[0]&&e(20,o=Zb(_.parse))},[u,d,h,f,p,m,g,v,y,_,C,S,M,$,G,R,z,U,re,L,o,r,function(){if(s("handleApply"),!u)try{e(19,L=void 0);var H=[{op:"replace",path:ln(Ln(re).relativePath),value:loe(Ln(re).content,_).json}];if(re.length>1){var he={json:Yu(loe(re[re.length-2].content,_).json,H)};e(18,re=Xi(re)),Z(he)}else c(H),q()}catch(E){e(19,L=E.toString())}},function(){s("handleClose"),re.length>1?(e(18,re=Xi(re)),e(19,L=void 0)):q()},Z,function(H){s("handleChangeMode",H);var he=Ze(Ze({},Ln(re)),{},{mode:H});e(18,re=[].concat(si(Xi(re)),[he]))},function(H){e(19,L=H.toString()),console.error(H)},function(H){var he=H.content,E=H.path;s("handleJSONEditorModal",{content:he,path:E});var F={mode:X(he),content:he,relativePath:E};e(18,re=[].concat(si(re),[F]))},a,l,c,i]}var Gnt=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,Unt,znt,Ei,{content:28,path:29,onPatch:30,readOnly:0,indentation:1,tabSize:2,mainMenuBar:3,navigationBar:4,statusBar:5,escapeControlCharacters:6,escapeUnicodeCharacters:7,flattenColumns:8,parser:9,validator:10,validationParser:11,pathParser:12,onRenderValue:13,onClassName:14,onRenderMenu:15,onSortModal:16,onTransformModal:17},Bnt,[-1,-1]),r}return Se(e)}();function Wnt(t,n,e){var i=xa("simple-modal");return[i.open,i.close]}var qnt=function(t){wt(e,Fn);var n=Ct(e);function e(i){var r;return ke(this,e),Pn(An(r=n.call(this)),i,Wnt,null,Ei,{open:0,close:1}),r}return Se(e,[{key:"open",get:function(){return this.$$.ctx[0]}},{key:"close",get:function(){return this.$$.ctx[1]}}]),e}();function Xnt(t){pi(t,"svelte-sxaskb",':root{--jse-theme:light;--jse-font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,\n Cantarell, "Helvetica Neue", sans-serif;--jse-font-family-mono:consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace;--jse-font-size-mono:14px;--jse-font-size:16px;--jse-font-size-text-mode-search:80%;--jse-line-height:calc(1em + 4px);--jse-indent-size:calc(1em + 4px);--jse-color-picker-button-size:1em;--jse-padding:10px;--jse-theme-color:#3883fa;--jse-theme-color-highlight:#5f9dff;--jse-background-color:#fff;--jse-text-color:#4d4d4d;--jse-text-readonly:#8d8d8d;--jse-text-color-inverse:#fff;--jse-error-color:#ee5341;--jse-warning-color:#fdc539;--jse-main-border:1px solid #d7d7d7;--jse-menu-color:var(--jse-text-color-inverse);--jse-menu-button-size:32px;--jse-modal-background:#f5f5f5;--jse-modal-overlay-background:rgba(0, 0, 0, 0.3);--jse-modal-code-background:rgba(0, 0, 0, 0.05);--jse-modal-theme-color:#707070;--jse-modal-theme-color-highlight:#646464;--jse-tooltip-color:var(--jse-text-color);--jse-tooltip-background:var(--jse-modal-background);--jse-tooltip-border:var(--jse-main-border);--jse-tooltip-action-button-color:var(--jse-text-color-inverse);--jse-tooltip-action-button-background:#4d4d4d;--jse-panel-background:#ebebeb;--jse-panel-color:var(--jse-text-color);--jse-panel-color-readonly:#b2b2b2;--jse-panel-border:var(--jse-main-border);--jse-panel-button-color:inherit;--jse-panel-button-background:transparent;--jse-panel-button-color-highlight:var(--jse-text-color);--jse-panel-button-background-highlight:#e0e0e0;--jse-navigation-bar-background:var(--jse-background-color);--jse-navigation-bar-background-highlight:#e5e5e5;--jse-navigation-bar-dropdown-color:#656565;--jse-context-menu-background:#656565;--jse-context-menu-background-highlight:#7a7a7a;--jse-context-menu-color:var(--jse-text-color-inverse);--jse-context-menu-color-disabled:#9d9d9d;--jse-context-menu-separator-color:#7a7a7a;--jse-context-menu-pointer-hover-background:#b2b2b2;--jse-context-menu-pointer-background:var(--jse-context-menu-background);--jse-context-menu-pointer-background-highlight:var(--jse-context-menu-background-highlight);--jse-context-menu-pointer-color:var(--jse-context-menu-color);--jse-context-menu-pointer-size:calc(1em + 4px);--jse-context-menu-tip-background:rgba(255, 255, 255, 0.2);--jse-context-menu-tip-color:inherit;--jse-key-color:#1a1a1a;--jse-value-color:#1a1a1a;--jse-value-color-number:#ee422e;--jse-value-color-boolean:#ff8c00;--jse-value-color-null:#004ed0;--jse-value-color-string:#008000;--jse-value-color-url:#008000;--jse-delimiter-color:rgba(0, 0, 0, 0.38);--jse-edit-outline:2px solid #656565;--jse-contents-background-color:transparent;--jse-contents-cursor:pointer;--jse-contents-selected-cursor:grab;--jse-selection-background-color:#d3d3d3;--jse-selection-background-inactive-color:#e8e8e8;--jse-hover-background-color:rgba(0, 0, 0, 0.06);--jse-active-line-background-color:rgba(0, 0, 0, 0.06);--jse-search-match-background-color:#99ff7780;--jse-collapsed-items-background-color:#f5f5f5;--jse-collapsed-items-selected-background-color:#c2c2c2;--jse-collapsed-items-link-color:rgba(0, 0, 0, 0.38);--jse-collapsed-items-link-color-highlight:#ee5341;--jse-search-match-color:#ffe665;--jse-search-match-outline:1px solid #ffd700;--jse-search-match-active-color:#ffd700;--jse-search-match-active-outline:1px solid #e1be00;--jse-tag-background:rgba(0, 0, 0, 0.2);--jse-tag-color:var(--jse-text-color-inverse);--jse-table-header-background:#f5f5f5;--jse-table-header-background-highlight:#e8e8e8;--jse-table-row-odd-background:rgba(0, 0, 0, 0.05);--jse-controls-box-shadow:0 2px 6px 0 rgba(0, 0, 0, 0.24);--jse-input-background:var(--jse-background-color);--jse-input-background-readonly:transparent;--jse-input-border:1px solid #d8dbdf;--jse-input-border-focus:1px solid var(--jse-theme-color);--jse-input-radius:3px;--jse-button-background:#e0e0e0;--jse-button-background-highlight:#e7e7e7;--jse-button-color:var(--jse-text-color);--jse-button-primary-background:var(--jse-theme-color);--jse-button-primary-background-highlight:var(--jse-theme-color-highlight);--jse-button-primary-background-disabled:#9d9d9d;--jse-button-primary-color:var(--jse-text-color-inverse);--jse-button-secondary-background:#d3d3d3;--jse-button-secondary-background-highlight:#e1e1e1;--jse-button-secondary-background-disabled:#9d9d9d;--jse-button-secondary-color:var(--jse-text-color);--jse-a-color:#156fc5;--jse-a-color-highlight:#0f508d;--jse-message-error-background:var(--jse-error-color);--jse-message-error-color:var(--jse-text-color-inverse);--jse-message-warning-background:#ffde5c;--jse-message-warning-color:var(--jse-text-color);--jse-message-success-background:#9ac45d;--jse-message-success-color:var(--jse-text-color-inverse);--jse-message-info-background:#4f91ff;--jse-message-info-color:var(--jse-text-color-inverse);--jse-message-action-background:rgba(255, 255, 255, 0.2);--jse-message-action-background-highlight:rgba(255, 255, 255, 0.3);--item-is-active-bg:#3883fa;--border:1px solid #d8dbdf;--border-radius:3px;--background:#fff;--padding:0 10px;--multi-select-padding:0 10px;--jse-color-picker-background:var(--jse-panel-background);--jse-color-picker-border-box-shadow:#cbcbcb 0 0 0 1px}.jse-main.svelte-sxaskb{width:100%;height:100%;min-width:0;min-height:150px;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;position:relative;display:flex;flex-direction:row}')}function Hpe(t){var n,e;return n=new Rpe({props:{mode:t[1],content:t[0],readOnly:t[2],indentation:t[3],tabSize:t[4],statusBar:t[7],mainMenuBar:t[5],navigationBar:t[6],escapeControlCharacters:t[8],escapeUnicodeCharacters:t[9],flattenColumns:t[10],parser:t[11],parseMemoizeOne:t[24],validator:t[12],validationParser:t[13],pathParser:t[14],insideModal:!1,onError:t[18],onChange:t[25],onChangeMode:t[28],onRenderValue:t[15],onClassName:t[16],onFocus:t[26],onBlur:t[27],onRenderMenu:t[17],onSortModal:t[30],onTransformModal:t[29],onJSONEditorModal:t[31]}}),t[56](n),{c:function(){mt(n.$$.fragment)},m:function(r,o){ft(n,r,o),e=!0},p:function(r,o){var s={};2&o[0]&&(s.mode=r[1]),1&o[0]&&(s.content=r[0]),4&o[0]&&(s.readOnly=r[2]),8&o[0]&&(s.indentation=r[3]),16&o[0]&&(s.tabSize=r[4]),128&o[0]&&(s.statusBar=r[7]),32&o[0]&&(s.mainMenuBar=r[5]),64&o[0]&&(s.navigationBar=r[6]),256&o[0]&&(s.escapeControlCharacters=r[8]),512&o[0]&&(s.escapeUnicodeCharacters=r[9]),1024&o[0]&&(s.flattenColumns=r[10]),2048&o[0]&&(s.parser=r[11]),16777216&o[0]&&(s.parseMemoizeOne=r[24]),4096&o[0]&&(s.validator=r[12]),8192&o[0]&&(s.validationParser=r[13]),16384&o[0]&&(s.pathParser=r[14]),262144&o[0]&&(s.onError=r[18]),32768&o[0]&&(s.onRenderValue=r[15]),65536&o[0]&&(s.onClassName=r[16]),131072&o[0]&&(s.onRenderMenu=r[17]),n.$set(s)},i:function(r){e||(Q(n.$$.fragment,r),e=!0)},o:function(r){ce(n.$$.fragment,r),e=!1},d:function(r){t[56](null),pt(n,r)}}}function Ynt(t){var n,e,i,r,o,s=t[19];function a(u){t[55](u)}var l={};void 0!==t[22]&&(l.open=t[22]),n=new qnt({props:l}),Vi.push(function(){return Uu(n,"open",a)});var c=Hpe(t);return{c:function(){mt(n.$$.fragment),i=it(),r=be("div"),c.c(),P(r,"class","jse-main svelte-sxaskb"),Mt(r,"jse-focus",t[20])},m:function(u,d){ft(n,u,d),Pe(u,i,d),Pe(u,r,d),c.m(r,null),o=!0},p:function(u,d){var h={};!e&&4194304&d[0]&&(e=!0,h.open=u[22],zu(function(){return e=!1})),n.$set(h),524288&d[0]&&Ei(s,s=u[19])?($t(),ce(c,1,1,Lt),Bt(),(c=Hpe(u)).c(),Q(c,1),c.m(r,null)):c.p(u,d),(!o||1048576&d[0])&&Mt(r,"jse-focus",u[20])},i:function(u){o||(Q(n.$$.fragment,u),Q(c),o=!0)},o:function(u){ce(n.$$.fragment,u),ce(c),o=!1},d:function(u){pt(n,u),u&&je(i),u&&je(r),c.d(u)}}}function Jnt(t){var n,e;return n=new CQ({props:{closeOnEsc:!1,$$slots:{default:[Ynt]},$$scope:{ctx:t}}}),{c:function(){mt(n.$$.fragment)},m:function(i,r){ft(n,i,r),e=!0},p:function(i,r){var o={};25165823&r[0]|268435456&r[1]&&(o.$$scope={dirty:r,ctx:i}),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){ce(n.$$.fragment,i),e=!1},d:function(i){pt(n,i)}}}function Knt(t){for(var n,e,i,r=[{show:null===(n=t[23])||void 0===n?void 0:n.component},kQ,{closeOnEsc:!1}],o={$$slots:{default:[Jnt]},$$scope:{ctx:t}},s=0;s1)return!1;var p=this._items[0];return""===p||'""'===p}},{key:"str",get:function(){var p;return null!==(p=this._str)&&void 0!==p?p:this._str=this._items.reduce(function(m,g){return"".concat(m).concat(g)},"")}},{key:"names",get:function(){var p;return null!==(p=this._names)&&void 0!==p?p:this._names=this._items.reduce(function(m,g){return g instanceof e&&(m[g.str]=(m[g.str]||0)+1),m},{})}}]),f}(n);function r(d){for(var h=[d[0]],f=0,p=arguments.length,m=new Array(p>1?p-1:0),g=1;g1?p-1:0),g=1;g0&&void 0!==arguments[0]?arguments[0]:{},u=c.prefixes,d=c.parent;ke(this,l),this._names={},this._prefixes=u,this._parent=d}return Se(l,[{key:"toName",value:function(c){return c instanceof e.Name?c:this.name(c)}},{key:"name",value:function(c){return new e.Name(this._newName(c))}},{key:"_newName",value:function(c){var u=this._names[c]||this._nameGroup(c);return"".concat(c).concat(u.index++)}},{key:"_nameGroup",value:function(c){var u,d;if(null!==(d=null===(u=this._parent)||void 0===u?void 0:u._prefixes)&&void 0!==d&&d.has(c)||this._prefixes&&!this._prefixes.has(c))throw new Error('CodeGen: prefix "'.concat(c,'" is not allowed in this scope'));return this._names[c]={prefix:c,index:0}}}]),l}();t.Scope=r;var o=function(l){wt(u,l);var c=Ct(u);function u(d,h){var f;return ke(this,u),(f=c.call(this,h)).prefix=d,f}return Se(u,[{key:"setValue",value:function(d,h){var f=h.property,p=h.itemIndex;this.value=d,this.scopePath=(0,e._)(RW||(RW=Ae([".","[","]"])),new e.Name(f),p)}}]),u}(e.Name);t.ValueScopeName=o;var s=(0,e._)($W||($W=Ae(["\n"],["\\n"]))),a=function(l){wt(u,l);var c=Ct(u);function u(d){var h;return ke(this,u),(h=c.call(this,d))._values={},h._scope=d.scope,h.opts=Ze(Ze({},d),{},{_n:d.lines?s:e.nil}),h}return Se(u,[{key:"get",value:function(){return this._scope}},{key:"name",value:function(d){return new o(d,this._newName(d))}},{key:"value",value:function(d,h){var f;if(void 0===h.ref)throw new Error("CodeGen: ref must be passed in value");var p=this.toName(d),m=p.prefix,g=null!==(f=h.key)&&void 0!==f?f:h.ref,v=this._values[m];if(v){var y=v.get(g);if(y)return y}else v=this._values[m]=new Map;v.set(g,p);var _=this._scope[m]||(this._scope[m]=[]),C=_.length;return _[C]=h.ref,p.setValue(h,{property:m,itemIndex:C}),p}},{key:"getValue",value:function(d,h){var f=this._values[d];if(f)return f.get(h)}},{key:"scopeRefs",value:function(d){return this._reduceValues(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._values,function(f){if(void 0===f.scopePath)throw new Error('CodeGen: name "'.concat(f,'" has no value'));return(0,e._)(BW||(BW=Ae(["","",""])),d,f.scopePath)})}},{key:"scopeCode",value:function(){return this._reduceValues(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._values,function(p){if(void 0===p.value)throw new Error('CodeGen: name "'.concat(p,'" has no value'));return p.value.code},arguments.length>1?arguments[1]:void 0,arguments.length>2?arguments[2]:void 0)}},{key:"_reduceValues",value:function(d,h){var f=this,p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},m=arguments.length>3?arguments[3]:void 0,g=e.nil,v=function(_){var C=d[_];if(!C)return"continue";var S=p[_]=p[_]||new Map;C.forEach(function(M){if(!S.has(M)){S.set(M,n.Started);var $=h(M);if($){var G=f.opts.es5?t.varKinds.var:t.varKinds.const;g=(0,e._)(VW||(VW=Ae(["",""," "," = ",";",""])),g,G,M,$,f.opts._n)}else{if(!($=m?.(M)))throw new i(M);g=(0,e._)(HW||(HW=Ae(["","","",""])),g,$,f.opts._n)}S.set(M,n.Completed)}})};for(var y in d)v(y);return g}}]),u}(r);t.ValueScope=a}(eme)),eme}function xr(){return Zpe||(Zpe=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;var n=DD(),e=tme(),i=DD();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return i.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return i.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return i.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return i.Name}});var r=tme();Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return r.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return r.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return r.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return r.varKinds}}),t.operators={GT:new n._Code(">"),GTE:new n._Code(">="),LT:new n._Code("<"),LTE:new n._Code("<="),EQ:new n._Code("==="),NEQ:new n._Code("!=="),NOT:new n._Code("!"),OR:new n._Code("||"),AND:new n._Code("&&"),ADD:new n._Code("+")};var o=function(){function N(){ke(this,N)}return Se(N,[{key:"optimizeNodes",value:function(){return this}},{key:"optimizeNames",value:function(Y,V){return this}}]),N}(),s=function(N){wt(V,N);var Y=Ct(V);function V(oe,fe,Fe){var xe;return ke(this,V),(xe=Y.call(this)).varKind=oe,xe.name=fe,xe.rhs=Fe,xe}return Se(V,[{key:"render",value:function(oe){var Fe=oe._n,xe=oe.es5?e.varKinds.var:this.varKind,tt=void 0===this.rhs?"":" = ".concat(this.rhs);return"".concat(xe," ").concat(this.name).concat(tt,";")+Fe}},{key:"optimizeNames",value:function(oe,fe){if(oe[this.name.str])return this.rhs&&(this.rhs=L(this.rhs,oe,fe)),this}},{key:"names",get:function(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}]),V}(o),a=function(N){wt(V,N);var Y=Ct(V);function V(oe,fe,Fe){var xe;return ke(this,V),(xe=Y.call(this)).lhs=oe,xe.rhs=fe,xe.sideEffects=Fe,xe}return Se(V,[{key:"render",value:function(oe){var fe=oe._n;return"".concat(this.lhs," = ").concat(this.rhs,";")+fe}},{key:"optimizeNames",value:function(oe,fe){if(!(this.lhs instanceof n.Name)||oe[this.lhs.str]||this.sideEffects)return this.rhs=L(this.rhs,oe,fe),this}},{key:"names",get:function(){return re(this.lhs instanceof n.Name?{}:Ze({},this.lhs.names),this.rhs)}}]),V}(o),l=function(N){wt(V,N);var Y=Ct(V);function V(oe,fe,Fe,xe){var tt;return ke(this,V),(tt=Y.call(this,oe,Fe,xe)).op=fe,tt}return Se(V,[{key:"render",value:function(oe){var fe=oe._n;return"".concat(this.lhs," ").concat(this.op,"= ").concat(this.rhs,";")+fe}}]),V}(a),c=function(N){wt(V,N);var Y=Ct(V);function V(oe){var fe;return ke(this,V),(fe=Y.call(this)).label=oe,fe.names={},fe}return Se(V,[{key:"render",value:function(oe){var fe=oe._n;return"".concat(this.label,":")+fe}}]),V}(o),u=function(N){wt(V,N);var Y=Ct(V);function V(oe){var fe;return ke(this,V),(fe=Y.call(this)).label=oe,fe.names={},fe}return Se(V,[{key:"render",value:function(oe){var fe=oe._n,Fe=this.label?" ".concat(this.label):"";return"break".concat(Fe,";")+fe}}]),V}(o),d=function(N){wt(V,N);var Y=Ct(V);function V(oe){var fe;return ke(this,V),(fe=Y.call(this)).error=oe,fe}return Se(V,[{key:"render",value:function(oe){var fe=oe._n;return"throw ".concat(this.error,";")+fe}},{key:"names",get:function(){return this.error.names}}]),V}(o),h=function(N){wt(V,N);var Y=Ct(V);function V(oe){var fe;return ke(this,V),(fe=Y.call(this)).code=oe,fe}return Se(V,[{key:"render",value:function(oe){var fe=oe._n;return"".concat(this.code,";")+fe}},{key:"optimizeNodes",value:function(){return"".concat(this.code)?this:void 0}},{key:"optimizeNames",value:function(oe,fe){return this.code=L(this.code,oe,fe),this}},{key:"names",get:function(){return this.code instanceof n._CodeOrName?this.code.names:{}}}]),V}(o),f=function(N){wt(V,N);var Y=Ct(V);function V(){var oe,fe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return ke(this,V),(oe=Y.call(this)).nodes=fe,oe}return Se(V,[{key:"render",value:function(oe){return this.nodes.reduce(function(fe,Fe){return fe+Fe.render(oe)},"")}},{key:"optimizeNodes",value:function(){for(var oe=this.nodes,fe=oe.length;fe--;){var Fe=oe[fe].optimizeNodes();Array.isArray(Fe)?oe.splice.apply(oe,[fe,1].concat(si(Fe))):Fe?oe[fe]=Fe:oe.splice(fe,1)}return oe.length>0?this:void 0}},{key:"optimizeNames",value:function(oe,fe){for(var Fe=this.nodes,xe=Fe.length;xe--;){var tt=Fe[xe];tt.optimizeNames(oe,fe)||(X(oe,tt.names),Fe.splice(xe,1))}return Fe.length>0?this:void 0}},{key:"names",get:function(){return this.nodes.reduce(function(oe,fe){return q(oe,fe.names)},{})}}]),V}(o),p=function(N){wt(V,N);var Y=Ct(V);function V(){return ke(this,V),Y.apply(this,arguments)}return Se(V,[{key:"render",value:function(oe){return"{"+oe._n+pr(qi(V.prototype),"render",this).call(this,oe)+"}"+oe._n}}]),V}(f),m=function(N){wt(V,N);var Y=Ct(V);function V(){return ke(this,V),Y.apply(this,arguments)}return Se(V)}(f),g=function(N){wt(V,N);var Y=Ct(V);function V(){return ke(this,V),Y.apply(this,arguments)}return Se(V)}(p);g.kind="else";var v=function(N){wt(V,N);var Y=Ct(V);function V(oe,fe){var Fe;return ke(this,V),(Fe=Y.call(this,fe)).condition=oe,Fe}return Se(V,[{key:"render",value:function(oe){var fe="if(".concat(this.condition,")")+pr(qi(V.prototype),"render",this).call(this,oe);return this.else&&(fe+="else "+this.else.render(oe)),fe}},{key:"optimizeNodes",value:function(){pr(qi(V.prototype),"optimizeNodes",this).call(this);var oe=this.condition;if(!0===oe)return this.nodes;var fe=this.else;if(fe){var Fe=fe.optimizeNodes();fe=this.else=Array.isArray(Fe)?new g(Fe):Fe}return fe?!1===oe?fe instanceof V?fe:fe.nodes:this.nodes.length?this:new V(Z(oe),fe instanceof V?[fe]:fe.nodes):!1!==oe&&this.nodes.length?this:void 0}},{key:"optimizeNames",value:function(oe,fe){var Fe;if(this.else=null===(Fe=this.else)||void 0===Fe?void 0:Fe.optimizeNames(oe,fe),pr(qi(V.prototype),"optimizeNames",this).call(this,oe,fe)||this.else)return this.condition=L(this.condition,oe,fe),this}},{key:"names",get:function(){var oe=pr(qi(V.prototype),"names",this);return re(oe,this.condition),this.else&&q(oe,this.else.names),oe}}]),V}(p);v.kind="if";var y=function(N){wt(V,N);var Y=Ct(V);function V(){return ke(this,V),Y.apply(this,arguments)}return Se(V)}(p);y.kind="for";var _=function(N){wt(V,N);var Y=Ct(V);function V(oe){var fe;return ke(this,V),(fe=Y.call(this)).iteration=oe,fe}return Se(V,[{key:"render",value:function(oe){return"for(".concat(this.iteration,")")+pr(qi(V.prototype),"render",this).call(this,oe)}},{key:"optimizeNames",value:function(oe,fe){if(pr(qi(V.prototype),"optimizeNames",this).call(this,oe,fe))return this.iteration=L(this.iteration,oe,fe),this}},{key:"names",get:function(){return q(pr(qi(V.prototype),"names",this),this.iteration.names)}}]),V}(y),C=function(N){wt(V,N);var Y=Ct(V);function V(oe,fe,Fe,xe){var tt;return ke(this,V),(tt=Y.call(this)).varKind=oe,tt.name=fe,tt.from=Fe,tt.to=xe,tt}return Se(V,[{key:"render",value:function(oe){var Fe=this.name,xe=this.from,tt=this.to;return"for(".concat(oe.es5?e.varKinds.var:this.varKind," ").concat(Fe,"=").concat(xe,"; ").concat(Fe,"<").concat(tt,"; ").concat(Fe,"++)")+pr(qi(V.prototype),"render",this).call(this,oe)}},{key:"names",get:function(){var oe=re(pr(qi(V.prototype),"names",this),this.from);return re(oe,this.to)}}]),V}(y),S=function(N){wt(V,N);var Y=Ct(V);function V(oe,fe,Fe,xe){var tt;return ke(this,V),(tt=Y.call(this)).loop=oe,tt.varKind=fe,tt.name=Fe,tt.iterable=xe,tt}return Se(V,[{key:"render",value:function(oe){return"for(".concat(this.varKind," ").concat(this.name," ").concat(this.loop," ").concat(this.iterable,")")+pr(qi(V.prototype),"render",this).call(this,oe)}},{key:"optimizeNames",value:function(oe,fe){if(pr(qi(V.prototype),"optimizeNames",this).call(this,oe,fe))return this.iterable=L(this.iterable,oe,fe),this}},{key:"names",get:function(){return q(pr(qi(V.prototype),"names",this),this.iterable.names)}}]),V}(y),M=function(N){wt(V,N);var Y=Ct(V);function V(oe,fe,Fe){var xe;return ke(this,V),(xe=Y.call(this)).name=oe,xe.args=fe,xe.async=Fe,xe}return Se(V,[{key:"render",value:function(oe){return"".concat(this.async?"async ":"","function ").concat(this.name,"(").concat(this.args,")")+pr(qi(V.prototype),"render",this).call(this,oe)}}]),V}(p);M.kind="func";var $=function(N){wt(V,N);var Y=Ct(V);function V(){return ke(this,V),Y.apply(this,arguments)}return Se(V,[{key:"render",value:function(oe){return"return "+pr(qi(V.prototype),"render",this).call(this,oe)}}]),V}(f);$.kind="return";var G=function(N){wt(V,N);var Y=Ct(V);function V(){return ke(this,V),Y.apply(this,arguments)}return Se(V,[{key:"render",value:function(oe){var fe="try"+pr(qi(V.prototype),"render",this).call(this,oe);return this.catch&&(fe+=this.catch.render(oe)),this.finally&&(fe+=this.finally.render(oe)),fe}},{key:"optimizeNodes",value:function(){var oe,fe;return pr(qi(V.prototype),"optimizeNodes",this).call(this),null===(oe=this.catch)||void 0===oe||oe.optimizeNodes(),null===(fe=this.finally)||void 0===fe||fe.optimizeNodes(),this}},{key:"optimizeNames",value:function(oe,fe){var Fe,xe;return pr(qi(V.prototype),"optimizeNames",this).call(this,oe,fe),null===(Fe=this.catch)||void 0===Fe||Fe.optimizeNames(oe,fe),null===(xe=this.finally)||void 0===xe||xe.optimizeNames(oe,fe),this}},{key:"names",get:function(){var oe=pr(qi(V.prototype),"names",this);return this.catch&&q(oe,this.catch.names),this.finally&&q(oe,this.finally.names),oe}}]),V}(p),R=function(N){wt(V,N);var Y=Ct(V);function V(oe){var fe;return ke(this,V),(fe=Y.call(this)).error=oe,fe}return Se(V,[{key:"render",value:function(oe){return"catch(".concat(this.error,")")+pr(qi(V.prototype),"render",this).call(this,oe)}}]),V}(p);R.kind="catch";var z=function(N){wt(V,N);var Y=Ct(V);function V(){return ke(this,V),Y.apply(this,arguments)}return Se(V,[{key:"render",value:function(oe){return"finally"+pr(qi(V.prototype),"render",this).call(this,oe)}}]),V}(p);z.kind="finally";var U=function(){function N(Y){var V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ke(this,N),this._values={},this._blockStarts=[],this._constants={},this.opts=Ze(Ze({},V),{},{_n:V.lines?"\n":""}),this._extScope=Y,this._scope=new e.Scope({parent:Y}),this._nodes=[new m]}return Se(N,[{key:"toString",value:function(){return this._root.render(this.opts)}},{key:"name",value:function(Y){return this._scope.name(Y)}},{key:"scopeName",value:function(Y){return this._extScope.name(Y)}},{key:"scopeValue",value:function(Y,V){var oe=this._extScope.value(Y,V);return(this._values[oe.prefix]||(this._values[oe.prefix]=new Set)).add(oe),oe}},{key:"getScopeValue",value:function(Y,V){return this._extScope.getValue(Y,V)}},{key:"scopeRefs",value:function(Y){return this._extScope.scopeRefs(Y,this._values)}},{key:"scopeCode",value:function(){return this._extScope.scopeCode(this._values)}},{key:"_def",value:function(Y,V,oe,fe){var Fe=this._scope.toName(V);return void 0!==oe&&fe&&(this._constants[Fe.str]=oe),this._leafNode(new s(Y,Fe,oe)),Fe}},{key:"const",value:function(Y,V,oe){return this._def(e.varKinds.const,Y,V,oe)}},{key:"let",value:function(Y,V,oe){return this._def(e.varKinds.let,Y,V,oe)}},{key:"var",value:function(Y,V,oe){return this._def(e.varKinds.var,Y,V,oe)}},{key:"assign",value:function(Y,V,oe){return this._leafNode(new a(Y,V,oe))}},{key:"add",value:function(Y,V){return this._leafNode(new l(Y,t.operators.ADD,V))}},{key:"code",value:function(Y){return"function"==typeof Y?Y():Y!==n.nil&&this._leafNode(new h(Y)),this}},{key:"object",value:function(){for(var Y=["{"],V=arguments.length,oe=new Array(V),fe=0;fe1&&Y.push(","),Y.push(ze),(ze!==ot||this.opts.es5)&&(Y.push(":"),(0,n.addCodeArg)(Y,ot))}return Y.push("}"),new n._Code(Y)}},{key:"if",value:function(Y,V,oe){if(this._blockNode(new v(Y)),V&&oe)this.code(V).else().code(oe).endIf();else if(V)this.code(V).endIf();else if(oe)throw new Error('CodeGen: "else" body without "then" body');return this}},{key:"elseIf",value:function(Y){return this._elseNode(new v(Y))}},{key:"else",value:function(){return this._elseNode(new g)}},{key:"endIf",value:function(){return this._endBlockNode(v,g)}},{key:"_for",value:function(Y,V){return this._blockNode(Y),V&&this.code(V).endFor(),this}},{key:"for",value:function(Y,V){return this._for(new _(Y),V)}},{key:"forRange",value:function(Y,V,oe,fe){var Fe=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.opts.es5?e.varKinds.var:e.varKinds.let,xe=this._scope.toName(Y);return this._for(new C(Fe,xe,V,oe),function(){return fe(xe)})}},{key:"forOf",value:function(Y,V,oe){var fe=this,Fe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.varKinds.const,xe=this._scope.toName(Y);if(this.opts.es5){var tt=V instanceof n.Name?V:this.var("_arr",V);return this.forRange("_i",0,(0,n._)(zW||(zW=Ae(["",".length"])),tt),function(ze){fe.var(xe,(0,n._)(UW||(UW=Ae(["","[","]"])),tt,ze)),oe(xe)})}return this._for(new S("of",Fe,xe,V),function(){return oe(xe)})}},{key:"forIn",value:function(Y,V,oe){var fe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.es5?e.varKinds.var:e.varKinds.const;if(this.opts.ownProperties)return this.forOf(Y,(0,n._)(GW||(GW=Ae(["Object.keys(",")"])),V),oe);var Fe=this._scope.toName(Y);return this._for(new S("in",fe,Fe,V),function(){return oe(Fe)})}},{key:"endFor",value:function(){return this._endBlockNode(y)}},{key:"label",value:function(Y){return this._leafNode(new c(Y))}},{key:"break",value:function(Y){return this._leafNode(new u(Y))}},{key:"return",value:function(Y){var V=new $;if(this._blockNode(V),this.code(Y),1!==V.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode($)}},{key:"try",value:function(Y,V,oe){if(!V&&!oe)throw new Error('CodeGen: "try" without "catch" and "finally"');var fe=new G;if(this._blockNode(fe),this.code(Y),V){var Fe=this.name("e");this._currNode=fe.catch=new R(Fe),V(Fe)}return oe&&(this._currNode=fe.finally=new z,this.code(oe)),this._endBlockNode(R,z)}},{key:"throw",value:function(Y){return this._leafNode(new d(Y))}},{key:"block",value:function(Y,V){return this._blockStarts.push(this._nodes.length),Y&&this.code(Y).endBlock(V),this}},{key:"endBlock",value:function(Y){var V=this._blockStarts.pop();if(void 0===V)throw new Error("CodeGen: not in self-balancing block");var oe=this._nodes.length-V;if(oe<0||void 0!==Y&&oe!==Y)throw new Error("CodeGen: wrong number of nodes: ".concat(oe," vs ").concat(Y," expected"));return this._nodes.length=V,this}},{key:"func",value:function(Y){var fe=arguments.length>3?arguments[3]:void 0;return this._blockNode(new M(Y,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.nil,arguments.length>2?arguments[2]:void 0)),fe&&this.code(fe).endFunc(),this}},{key:"endFunc",value:function(){return this._endBlockNode(M)}},{key:"optimize",value:function(){for(var Y=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;Y-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}},{key:"_leafNode",value:function(Y){return this._currNode.nodes.push(Y),this}},{key:"_blockNode",value:function(Y){this._currNode.nodes.push(Y),this._nodes.push(Y)}},{key:"_endBlockNode",value:function(Y,V){var oe=this._currNode;if(oe instanceof Y||V&&oe instanceof V)return this._nodes.pop(),this;throw new Error('CodeGen: not in block "'.concat(V?"".concat(Y.kind,"/").concat(V.kind):Y.kind,'"'))}},{key:"_elseNode",value:function(Y){var V=this._currNode;if(!(V instanceof v))throw new Error('CodeGen: "else" without "if"');return this._currNode=V.else=Y,this}},{key:"_root",get:function(){return this._nodes[0]}},{key:"_currNode",get:function(){var Y=this._nodes;return Y[Y.length-1]},set:function(Y){var V=this._nodes;V[V.length-1]=Y}}]),N}();function q(N,Y){for(var V in Y)N[V]=(N[V]||0)+(Y[V]||0);return N}function re(N,Y){return Y instanceof n._CodeOrName?q(N,Y.names):N}function L(N,Y,V){return N instanceof n.Name?oe(N):(fe=N)instanceof n._Code&&fe._items.some(function(Fe){return Fe instanceof n.Name&&1===Y[Fe.str]&&void 0!==V[Fe.str]})?new n._Code(N._items.reduce(function(fe,Fe){return Fe instanceof n.Name&&(Fe=oe(Fe)),Fe instanceof n._Code?fe.push.apply(fe,si(Fe._items)):fe.push(Fe),fe},[])):N;var fe;function oe(fe){var Fe=V[fe.str];return void 0===Fe||1!==Y[fe.str]?fe:(delete Y[fe.str],Fe)}}function X(N,Y){for(var V in Y)N[V]=(N[V]||0)-(Y[V]||0)}function Z(N){return"boolean"==typeof N||"number"==typeof N||null===N?!N:(0,n._)(WW||(WW=Ae(["!",""])),F(N))}t.CodeGen=U,t.not=Z;var H=E(t.operators.AND);t.and=function(){for(var N=arguments.length,Y=new Array(N),V=0;V1&&void 0!==arguments[1]?arguments[1]:f.schema;if(f.opts.strictSchema&&"boolean"!=typeof p){var v=f.self.RULES.keywords;for(var y in p)v[y]||h(f,'unknown keyword: "'.concat(y,'"'))}}function r(f,p){if("boolean"==typeof f)return!f;for(var m in f)if(p[m])return!0;return!1}function o(f){return"number"==typeof f?"".concat(f):f.replace(/~/g,"~0").replace(/\//g,"~1")}function s(f){return f.replace(/~1/g,"/").replace(/~0/g,"~")}function a(f){var p=f.mergeNames,m=f.mergeToName,g=f.mergeValues,v=f.resultToName;return function(y,_,C,S){var M=void 0===C?_:C instanceof n.Name?(_ instanceof n.Name?p(y,_,C):m(y,_,C),C):_ instanceof n.Name?(m(y,C,_),_):g(_,C);return S!==n.Name||M instanceof n.Name?M:v(y,M)}}function l(f,p){if(!0===p)return f.var("props",!0);var m=f.var("props",(0,n._)(aq||(aq=Ae(["{}"]))));return void 0!==p&&c(f,m,p),m}function c(f,p,m){Object.keys(m).forEach(function(g){return f.assign((0,n._)(lq||(lq=Ae(["","",""])),p,(0,n.getProperty)(g)),!0)})}t.toHash=function(f){var p,m={},g=Re(f);try{for(g.s();!(p=g.n()).done;)m[p.value]=!0}catch(v){g.e(v)}finally{g.f()}return m},t.alwaysValidSchema=function(f,p){return"boolean"==typeof p?p:0===Object.keys(p).length||(i(f,p),!r(p,f.self.RULES.all))},t.checkUnknownRules=i,t.schemaHasRules=r,t.schemaHasRulesButRef=function(f,p){if("boolean"==typeof f)return!f;for(var m in f)if("$ref"!==m&&p.all[m])return!0;return!1},t.schemaRefOrVal=function(f,p,m,g){var v=f.topSchemaRef,y=f.schemaPath;if(!g){if("number"==typeof p||"boolean"==typeof p)return p;if("string"==typeof p)return(0,n._)(YW||(YW=Ae(["",""])),p)}return(0,n._)(JW||(JW=Ae(["","","",""])),v,y,(0,n.getProperty)(m))},t.unescapeFragment=function(f){return s(decodeURIComponent(f))},t.escapeFragment=function(f){return encodeURIComponent(o(f))},t.escapeJsonPointer=o,t.unescapeJsonPointer=s,t.eachItem=function(f,p){if(Array.isArray(f)){var m,g=Re(f);try{for(g.s();!(m=g.n()).done;)p(m.value)}catch(v){g.e(v)}finally{g.f()}}else p(f)},t.mergeEvaluated={props:a({mergeNames:function(f,p,m){return f.if((0,n._)(KW||(KW=Ae([""," !== true && "," !== undefined"])),m,p),function(){f.if((0,n._)(QW||(QW=Ae([""," === true"])),p),function(){return f.assign(m,!0)},function(){return f.assign(m,(0,n._)(ZW||(ZW=Ae([""," || {}"])),m)).code((0,n._)(eq||(eq=Ae(["Object.assign(",", ",")"])),m,p))})})},mergeToName:function(f,p,m){return f.if((0,n._)(tq||(tq=Ae([""," !== true"])),m),function(){!0===p?f.assign(m,!0):(f.assign(m,(0,n._)(nq||(nq=Ae([""," || {}"])),m)),c(f,m,p))})},mergeValues:function(f,p){return!0===f||Ze(Ze({},f),p)},resultToName:l}),items:a({mergeNames:function(f,p,m){return f.if((0,n._)(iq||(iq=Ae([""," !== true && "," !== undefined"])),m,p),function(){return f.assign(m,(0,n._)(rq||(rq=Ae([""," === true ? true : "," > "," ? "," : ",""])),p,m,p,m,p))})},mergeToName:function(f,p,m){return f.if((0,n._)(oq||(oq=Ae([""," !== true"])),m),function(){return f.assign(m,!0===p||(0,n._)(sq||(sq=Ae([""," > "," ? "," : ",""])),m,p,m,p))})},mergeValues:function(f,p){return!0===f||Math.max(f,p)},resultToName:function(f,p){return f.var("items",p)}})},t.evaluatedPropsToName=l,t.setEvaluated=c;var u,f,d={};function h(f,p){var m=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.opts.strictSchema;if(m){if(p="strict mode: ".concat(p),!0===m)throw new Error(p);f.self.logger.warn(p)}}t.useFunc=function(f,p){return f.scopeValue("func",{ref:p,code:d[p.code]||(d[p.code]=new e._Code(p.code))})},(f=u=t.Type||(t.Type={}))[f.Num=0]="Num",f[f.Str=1]="Str",t.getErrorPath=function(f,p,m){if(f instanceof n.Name){var g=p===u.Num;return(0,n._)(m?g?cq||(cq=Ae(['"[" + ',' + "]"'])):uq||(uq=Ae(['"[\'" + ',' + "\']"'])):g?dq||(dq=Ae(['"/" + ',""])):hq||(hq=Ae(['"/" + ','.replace(/~/g, "~0").replace(/\\//g, "~1")'],['"/" + ','.replace(/~/g, "~0").replace(/\\\\//g, "~1")'])),f)}return m?(0,n.getProperty)(f).toString():"/"+o(f)},t.checkStrictMode=h}(Hr);var nme,ime,rme,TD={};function Sp(){if(nme)return TD;nme=1,Object.defineProperty(TD,"__esModule",{value:!0});var t=xr(),n={data:new t.Name("data"),valCxt:new t.Name("valCxt"),instancePath:new t.Name("instancePath"),parentData:new t.Name("parentData"),parentDataProperty:new t.Name("parentDataProperty"),rootData:new t.Name("rootData"),dynamicAnchors:new t.Name("dynamicAnchors"),vErrors:new t.Name("vErrors"),errors:new t.Name("errors"),this:new t.Name("this"),self:new t.Name("self"),scope:new t.Name("scope"),json:new t.Name("json"),jsonPos:new t.Name("jsonPos"),jsonLen:new t.Name("jsonLen"),jsonPart:new t.Name("jsonPart")};return TD.default=n,TD}function ED(){return ime||(ime=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;var n=xr(),e=Hr,i=Sp();function r(d,h){var f=d.const("err",h);d.if((0,n._)(Dq||(Dq=Ae([""," === null"])),i.default.vErrors),function(){return d.assign(i.default.vErrors,(0,n._)(Tq||(Tq=Ae(["[","]"])),f))},(0,n._)(Eq||(Eq=Ae(["",".push(",")"])),i.default.vErrors,f)),d.code((0,n._)(Aq||(Aq=Ae(["","++"])),i.default.errors))}function o(d,h){var f=d.gen,p=d.validateName;d.schemaEnv.$async?f.throw((0,n._)(Mq||(Mq=Ae(["new ","(",")"])),d.ValidationError,h)):(f.assign((0,n._)(Iq||(Iq=Ae(["",".errors"])),p),h),f.return(!1))}t.keywordError={message:function(d){var h=d.keyword;return(0,n.str)(fq||(fq=Ae(['must pass "','" keyword validation'])),h)}},t.keyword$DataError={message:function(d){var h=d.keyword,f=d.schemaType;return f?(0,n.str)(pq||(pq=Ae(['"','" keyword must be '," ($data)"])),h,f):(0,n.str)(mq||(mq=Ae(['"','" keyword is invalid ($data)'])),h)}},t.reportError=function(d){var p=arguments.length>3?arguments[3]:void 0,m=d.it,g=m.gen,v=m.compositeRule,y=m.allErrors,_=a(d,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.keywordError,arguments.length>2?arguments[2]:void 0);p??(v||y)?r(g,_):o(m,(0,n._)(gq||(gq=Ae(["[","]"])),_))},t.reportExtraError=function(d){var p=d.it,g=p.compositeRule,v=p.allErrors;r(p.gen,a(d,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.keywordError,arguments.length>2?arguments[2]:void 0)),g||v||o(p,i.default.vErrors)},t.resetErrorsCount=function(d,h){d.assign(i.default.errors,h),d.if((0,n._)(vq||(vq=Ae([""," !== null"])),i.default.vErrors),function(){return d.if(h,function(){return d.assign((0,n._)(yq||(yq=Ae(["",".length"])),i.default.vErrors),h)},function(){return d.assign(i.default.vErrors,null)})})},t.extendErrors=function(d){var h=d.gen,f=d.keyword,p=d.schemaValue,m=d.data,g=d.errsCount,v=d.it;if(void 0===g)throw new Error("ajv implementation error");var y=h.name("err");h.forRange("i",g,i.default.errors,function(_){h.const(y,(0,n._)(bq||(bq=Ae(["","[","]"])),i.default.vErrors,_)),h.if((0,n._)(_q||(_q=Ae(["",".instancePath === undefined"])),y),function(){return h.assign((0,n._)(xq||(xq=Ae(["",".instancePath"])),y),(0,n.strConcat)(i.default.instancePath,v.errorPath))}),h.assign((0,n._)(wq||(wq=Ae(["",".schemaPath"])),y),(0,n.str)(Cq||(Cq=Ae(["","/",""])),v.errSchemaPath,f)),v.opts.verbose&&(h.assign((0,n._)(kq||(kq=Ae(["",".schema"])),y),p),h.assign((0,n._)(Sq||(Sq=Ae(["",".data"])),y),m))})};var s={keyword:new n.Name("keyword"),schemaPath:new n.Name("schemaPath"),params:new n.Name("params"),propertyName:new n.Name("propertyName"),message:new n.Name("message"),schema:new n.Name("schema"),parentSchema:new n.Name("parentSchema")};function a(d,h,f){return!1===d.it.createErrors?(0,n._)(Fq||(Fq=Ae(["{}"]))):function(p,m){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},v=p.gen,y=[l(p.it,g),c(p,g)];return function u(d,h,f){var p=h.params,m=h.message,v=d.data,y=d.schemaValue,_=d.it,C=_.opts,S=_.propertyName,M=_.topSchemaRef,$=_.schemaPath;f.push([s.keyword,d.keyword],[s.params,"function"==typeof p?p(d):p||(0,n._)(Pq||(Pq=Ae(["{}"])))]),C.messages&&f.push([s.message,"function"==typeof m?m(d):m]),C.verbose&&f.push([s.schema,y],[s.parentSchema,(0,n._)(Lq||(Lq=Ae(["","",""])),M,$)],[i.default.data,v]),S&&f.push([s.propertyName,S])}(p,m,y),v.object.apply(v,y)}(d,h,f)}function l(d,h){var f=d.errorPath,p=h.instancePath,m=p?(0,n.str)(Nq||(Nq=Ae(["","",""])),f,(0,e.getErrorPath)(p,e.Type.Str)):f;return[i.default.instancePath,(0,n.strConcat)(i.default.instancePath,m)]}function c(d,h){var f=d.keyword,p=d.it.errSchemaPath,m=h.schemaPath,g=h.parentSchema?p:(0,n.str)(Oq||(Oq=Ae(["","/",""])),p,f);return m&&(g=(0,n.str)(jq||(jq=Ae(["","",""])),g,(0,e.getErrorPath)(m,e.Type.Str))),[s.schemaPath,g]}}(Ype)),Ype}var I_={},tg={};Object.defineProperty(tg,"__esModule",{value:!0}),tg.getRules=tg.isJSONType=void 0;var ait=new Set(["string","number","integer","boolean","null","object","array"]);tg.isJSONType=function(t){return"string"==typeof t&&ait.has(t)},tg.getRules=function(){var t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:Ze(Ze({},t),{},{integer:!0,boolean:!0,null:!0}),rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}};var ome,pf={};function sme(){if(ome)return pf;function t(e,i){return i.rules.some(function(r){return n(e,r)})}function n(e,i){var r;return void 0!==e[i.keyword]||(null===(r=i.definition.implements)||void 0===r?void 0:r.some(function(o){return void 0!==e[o]}))}return ome=1,Object.defineProperty(pf,"__esModule",{value:!0}),pf.shouldUseRule=pf.shouldUseGroup=pf.schemaHasRulesForType=void 0,pf.schemaHasRulesForType=function(e,i){var o=e.self.RULES.types[i];return o&&!0!==o&&t(e.schema,o)},pf.shouldUseGroup=t,pf.shouldUseRule=n,pf}!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;var n,f,e=tg,i=sme(),r=ED(),o=xr(),s=Hr;function a(f){var p=Array.isArray(f)?f:f?[f]:[];if(p.every(e.isJSONType))return p;throw new Error("type must be JSONType or JSONType[]: "+p.join(","))}(f=n=t.DataType||(t.DataType={}))[f.Correct=0]="Correct",f[f.Wrong=1]="Wrong",t.getSchemaTypes=function(f){var p=a(f.type);if(p.includes("null")){if(!1===f.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!p.length&&void 0!==f.nullable)throw new Error('"nullable" cannot be used without "type"');!0===f.nullable&&p.push("null")}return p},t.getJSONTypes=a,t.coerceAndCheckDataType=function(f,p){var M,m=f.gen,g=f.data,v=f.opts,y=(M=v.coerceTypes)?p.filter(function($){return l.has($)||"array"===M&&"array"===$}):[],_=p.length>0&&!(0===y.length&&1===p.length&&(0,i.schemaHasRulesForType)(f,p[0]));if(_){var C=u(p,g,v.strictNumbers,n.Wrong);m.if(C,function(){y.length?function(S,M,$){var G=S.gen,R=S.data,z=S.opts,U=G.let("dataType",(0,o._)($q||($q=Ae(["typeof ",""])),R)),q=G.let("coerced",(0,o._)(Bq||(Bq=Ae(["undefined"]))));"array"===z.coerceTypes&&G.if((0,o._)(Vq||(Vq=Ae([""," == 'object' && Array.isArray(",") && ",".length == 1"])),U,R,R),function(){return G.assign(R,(0,o._)(Hq||(Hq=Ae(["","[0]"])),R)).assign(U,(0,o._)(zq||(zq=Ae(["typeof ",""])),R)).if(u(M,R,z.strictNumbers),function(){return G.assign(q,R)})}),G.if((0,o._)(Uq||(Uq=Ae([""," !== undefined"])),q));var re,L=Re($);try{for(L.s();!(re=L.n()).done;){var X=re.value;(l.has(X)||"array"===X&&"array"===z.coerceTypes)&&Z(X)}}catch(H){L.e(H)}finally{L.f()}function Z(H){switch(H){case"string":return void G.elseIf((0,o._)(Wq||(Wq=Ae(["",' == "number" || ',' == "boolean"'])),U,U)).assign(q,(0,o._)(qq||(qq=Ae(['"" + ',""])),R)).elseIf((0,o._)(Xq||(Xq=Ae([""," === null"])),R)).assign(q,(0,o._)(Yq||(Yq=Ae(['""']))));case"number":return void G.elseIf((0,o._)(Jq||(Jq=Ae(["",' == "boolean" || '," === null\n || (",' == "string" && '," && "," == +",")"])),U,R,U,R,R,R)).assign(q,(0,o._)(Kq||(Kq=Ae(["+",""])),R));case"integer":return void G.elseIf((0,o._)(Qq||(Qq=Ae(["",' === "boolean" || '," === null\n || (",' === "string" && '," && "," == +"," && !("," % 1))"])),U,R,U,R,R,R,R)).assign(q,(0,o._)(Zq||(Zq=Ae(["+",""])),R));case"boolean":return void G.elseIf((0,o._)(eX||(eX=Ae(["",' === "false" || '," === 0 || "," === null"])),R,R,R)).assign(q,!1).elseIf((0,o._)(tX||(tX=Ae(["",' === "true" || '," === 1"])),R,R)).assign(q,!0);case"null":return G.elseIf((0,o._)(nX||(nX=Ae(["",' === "" || '," === 0 || "," === false"])),R,R,R)),void G.assign(q,null);case"array":G.elseIf((0,o._)(iX||(iX=Ae(["",' === "string" || ',' === "number"\n || ',' === "boolean" || '," === null"])),U,U,U,R)).assign(q,(0,o._)(rX||(rX=Ae(["[","]"])),R))}}G.else(),h(S),G.endIf(),G.if((0,o._)(Gq||(Gq=Ae([""," !== undefined"])),q),function(){var H,he,E,F,N;G.assign(R,q),he=q,F=(H=S).parentData,N=H.parentDataProperty,(E=H.gen).if((0,o._)(oX||(oX=Ae([""," !== undefined"])),F),function(){return E.assign((0,o._)(sX||(sX=Ae(["","[","]"])),F,N),he)})})}(f,p,y):h(f)})}return _};var l=new Set(["string","number","integer","boolean","null"]);function c(f,p,m){var g,v=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.Correct,y=v===n.Correct?o.operators.EQ:o.operators.NEQ;switch(f){case"null":return(0,o._)(aX||(aX=Ae([""," "," null"])),p,y);case"array":g=(0,o._)(lX||(lX=Ae(["Array.isArray(",")"])),p);break;case"object":g=(0,o._)(cX||(cX=Ae([""," && typeof ",' == "object" && !Array.isArray(',")"])),p,p,p);break;case"integer":g=_((0,o._)(uX||(uX=Ae(["!("," % 1) && !isNaN(",")"])),p,p));break;case"number":g=_();break;default:return(0,o._)(dX||(dX=Ae(["typeof "," "," ",""])),p,y,f)}return v===n.Correct?g:(0,o.not)(g);function _(){var C=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.nil;return(0,o.and)((0,o._)(hX||(hX=Ae(["typeof ",' == "number"'])),p),C,m?(0,o._)(fX||(fX=Ae(["isFinite(",")"])),p):o.nil)}}function u(f,p,m,g){if(1===f.length)return c(f[0],p,m,g);var v,y=(0,s.toHash)(f);if(y.array&&y.object){var _=(0,o._)(pX||(pX=Ae(["typeof ",' != "object"'])),p);v=y.null?_:(0,o._)(mX||(mX=Ae(["!"," || ",""])),p,_),delete y.null,delete y.array,delete y.object}else v=o.nil;for(var C in y.number&&delete y.integer,y)v=(0,o.and)(v,c(C,p,m,g));return v}t.checkDataType=c,t.checkDataTypes=u;var d={message:function(f){return"must be ".concat(f.schema)},params:function(f){var p=f.schema,m=f.schemaValue;return"string"==typeof p?(0,o._)(gX||(gX=Ae(["{type: ","}"])),p):(0,o._)(vX||(vX=Ae(["{type: ","}"])),m)}};function h(f){var m,g,v,y,_,p=(g=(m=f).gen,v=m.data,_=(0,s.schemaRefOrVal)(m,y=m.schema,"type"),{gen:g,keyword:"type",data:v,schema:y.type,schemaCode:_,schemaValue:_,parentSchema:y,params:{},it:m});(0,r.reportError)(p,d)}t.reportTypeError=h}(I_);var ame,lme,cme,F_={},ud={},po={};function dd(){if(lme)return po;lme=1,Object.defineProperty(po,"__esModule",{value:!0}),po.validateUnion=po.validateArray=po.usePattern=po.callValidateCode=po.schemaProperties=po.allSchemaProperties=po.noPropertyInData=po.propertyInData=po.isOwnProperty=po.hasPropFunc=po.reportMissingProp=po.checkMissingProp=po.checkReportMissingProp=void 0;var t=xr(),n=Hr,e=Sp(),i=Hr;function r(c){return c.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,t._)(kX||(kX=Ae(["Object.prototype.hasOwnProperty"])))})}function o(c,u,d){return(0,t._)(SX||(SX=Ae(["",".call(",", ",")"])),r(c),u,d)}function s(c,u,d,h){var f=(0,t._)(EX||(EX=Ae(["",""," === undefined"])),u,(0,t.getProperty)(d));return h?(0,t.or)(f,(0,t.not)(o(c,u,d))):f}function a(c){return c?Object.keys(c).filter(function(u){return"__proto__"!==u}):[]}po.checkReportMissingProp=function(c,u){var d=c.gen;d.if(s(d,c.data,u,c.it.opts.ownProperties),function(){c.setParams({missingProperty:(0,t._)(wX||(wX=Ae(["",""])),u)},!0),c.error()})},po.checkMissingProp=function(c,u,d){var h=c.gen,f=c.data,p=c.it.opts;return t.or.apply(void 0,si(u.map(function(m){return(0,t.and)(s(h,f,m,p.ownProperties),(0,t._)(CX||(CX=Ae([""," = ",""])),d,m))})))},po.reportMissingProp=function(c,u){c.setParams({missingProperty:u},!0),c.error()},po.hasPropFunc=r,po.isOwnProperty=o,po.propertyInData=function(c,u,d,h){var f=(0,t._)(DX||(DX=Ae(["",""," !== undefined"])),u,(0,t.getProperty)(d));return h?(0,t._)(TX||(TX=Ae([""," && ",""])),f,o(c,u,d)):f},po.noPropertyInData=s,po.allSchemaProperties=a,po.schemaProperties=function(c,u){return a(u).filter(function(d){return!(0,n.alwaysValidSchema)(c,u[d])})},po.callValidateCode=function(c,u,d,h){var f=c.schemaCode,p=c.data,m=c.it,g=m.gen,v=m.topSchemaRef,y=m.schemaPath,_=m.errorPath,C=c.it,S=h?(0,t._)(AX||(AX=Ae(["",", ",", ","",""])),f,p,v,y):p,M=[[e.default.instancePath,(0,t.strConcat)(e.default.instancePath,_)],[e.default.parentData,C.parentData],[e.default.parentDataProperty,C.parentDataProperty],[e.default.rootData,e.default.rootData]];C.opts.dynamicRef&&M.push([e.default.dynamicAnchors,e.default.dynamicAnchors]);var $=(0,t._)(MX||(MX=Ae(["",", ",""])),S,g.object.apply(g,M));return d!==t.nil?(0,t._)(IX||(IX=Ae(["",".call(",", ",")"])),u,d,$):(0,t._)(FX||(FX=Ae(["","(",")"])),u,$)};var l=(0,t._)(NX||(NX=Ae(["new RegExp"])));return po.usePattern=function(c,u){var d=c.gen,h=c.it.opts,f=h.unicodeRegExp?"u":"",p=h.code.regExp,m=p(u,f);return d.scopeValue("pattern",{key:m.toString(),ref:m,code:(0,t._)(OX||(OX=Ae(["","(",", ",")"])),"new RegExp"===p.code?l:(0,i.useFunc)(d,p),u,f)})},po.validateArray=function(c){var u=c.gen,d=c.data,h=c.keyword,f=c.it,p=u.name("valid");if(f.allErrors){var m=u.let("valid",!0);return g(function(){return u.assign(m,!1)}),m}return u.var(p,!0),g(function(){return u.break()}),p;function g(v){var y=u.const("len",(0,t._)(jX||(jX=Ae(["",".length"])),d));u.forRange("i",0,y,function(_){c.subschema({keyword:h,dataProp:_,dataPropType:n.Type.Num},p),u.if((0,t.not)(p),v)})}},po.validateUnion=function(c){var u=c.gen,d=c.schema,h=c.keyword,f=c.it;if(!Array.isArray(d))throw new Error("ajv implementation error");if(!d.some(function(g){return(0,n.alwaysValidSchema)(f,g)})||f.opts.unevaluated){var p=u.let("valid",!1),m=u.name("_valid");u.block(function(){return d.forEach(function(g,v){var y=c.subschema({keyword:h,schemaProp:v,compositeRule:!0},m);u.assign(p,(0,t._)(PX||(PX=Ae([""," || ",""])),p,m)),c.mergeValidEvaluated(y,m)||u.if((0,t.not)(p))})}),c.result(p,function(){return c.reset()},function(){return c.error(!0)})}},po}var ume,mf={},Ga={},dme=function t(n,e){if(n===e)return!0;if(n&&e&&"object"==bn(n)&&"object"==bn(e)){if(n.constructor!==e.constructor)return!1;var i,r,o;if(Array.isArray(n)){if((i=n.length)!=e.length)return!1;for(r=i;0!=r--;)if(!t(n[r],e[r]))return!1;return!0}if(n.constructor===RegExp)return n.source===e.source&&n.flags===e.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===e.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===e.toString();if((i=(o=Object.keys(n)).length)!==Object.keys(e).length)return!1;for(r=i;0!=r--;)if(!Object.prototype.hasOwnProperty.call(e,o[r]))return!1;for(r=i;0!=r--;){var s=o[r];if(!t(n[s],e[s]))return!1}return!0}return n!=n&&e!=e},kP={},cit={get exports(){return kP},set exports(t){kP=t}},Dp=cit.exports=function(t,n,e){"function"==typeof n&&(e=n,n={}),AD(n,"function"==typeof(e=n.cb||e)?e:e.pre||function(){},e.post||function(){},t,"",t)};function AD(t,n,e,i,r,o,s,a,l,c){if(i&&"object"==bn(i)&&!Array.isArray(i)){for(var u in n(i,r,o,s,a,l,c),i){var d=i[u];if(Array.isArray(d)){if(u in Dp.arrayKeywords)for(var h=0;h1&&void 0!==arguments[1])||arguments[1];return"boolean"==typeof t||(!0===n?!SP(t):!!n&&hme(t)<=n)};var pit=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function SP(t){for(var n in t){if(pit.has(n))return!0;var e=t[n];if(Array.isArray(e)&&e.some(SP)||"object"==bn(e)&&SP(e))return!0}return!1}function hme(t){var n=0;for(var e in t)if("$ref"===e||(n++,!fit.has(e)&&("object"==bn(t[e])&&(0,uit.eachItem)(t[e],function(i){return n+=hme(i)}),n===1/0)))return 1/0;return n}function fme(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";!1!==(arguments.length>2?arguments[2]:void 0)&&(n=z0(n));var i=t.parse(n);return pme(t,i)}function pme(t,n){return t.serialize(n).split("#")[0]+"#"}Ga.getFullPath=fme,Ga._getFullPath=pme;var mit=/#\/?$/;function z0(t){return t?t.replace(mit,""):""}Ga.normalizeId=z0,Ga.resolveUrl=function(t,n,e){return e=z0(e),t.resolve(n,e)};var mme,git=/^[a-z_][-a-z0-9._]*$/i;function MD(){if(mme)return ff;mme=1,Object.defineProperty(ff,"__esModule",{value:!0}),ff.getData=ff.KeywordCxt=ff.validateFunctionCode=void 0;var t=function(){if(rme)return eg;rme=1,Object.defineProperty(eg,"__esModule",{value:!0}),eg.boolOrEmptySchema=eg.topBoolOrEmptySchema=void 0;var L=ED(),X=xr(),Z=Sp(),H={message:"boolean schema is false"};function he(E,F){(0,L.reportError)({gen:E.gen,keyword:"false schema",data:E.data,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:E},H,void 0,F)}return eg.topBoolOrEmptySchema=function(E){var F=E.gen,N=E.schema,Y=E.validateName;!1===N?he(E,!1):"object"==bn(N)&&!0===N.$async?F.return(Z.default.data):(F.assign((0,X._)(Rq||(Rq=Ae(["",".errors"])),Y),null),F.return(!0))},eg.boolOrEmptySchema=function(E,F){var N=E.gen;!1===E.schema?(N.var(F,!1),he(E)):N.var(F,!0)},eg}(),n=I_,e=sme(),i=I_,r=function(){if(ame)return F_;ame=1,Object.defineProperty(F_,"__esModule",{value:!0}),F_.assignDefaults=void 0;var L=xr(),X=Hr;function Z(H,he,E){var F=H.gen,N=H.compositeRule,Y=H.data,V=H.opts;if(void 0!==E){var oe=(0,L._)(yX||(yX=Ae(["","",""])),Y,(0,L.getProperty)(he));if(N)(0,X.checkStrictMode)(H,"default is ignored for: ".concat(oe));else{var fe=(0,L._)(bX||(bX=Ae([""," === undefined"])),oe);"empty"===V.useDefaults&&(fe=(0,L._)(_X||(_X=Ae([""," || "," === null || ",' === ""'])),fe,oe,oe)),F.if(fe,(0,L._)(xX||(xX=Ae([""," = ",""])),oe,(0,L.stringify)(E)))}}}return F_.assignDefaults=function(H,he){var E=H.schema,F=E.properties,N=E.items;if("object"===he&&F)for(var Y in F)Z(H,Y,F[Y].default);else"array"===he&&Array.isArray(N)&&N.forEach(function(V,oe){return Z(H,oe,V.default)})},F_}(),o=function lit(){if(cme)return ud;cme=1,Object.defineProperty(ud,"__esModule",{value:!0}),ud.validateKeywordUsage=ud.validSchemaType=ud.funcKeywordCode=ud.macroKeywordCode=void 0;var t=xr(),n=Sp(),e=dd(),i=ED();function r(s){var a=s.gen,l=s.data,c=s.it;a.if(c.parentData,function(){return a.assign(l,(0,t._)(zX||(zX=Ae(["","[","]"])),c.parentData,c.parentDataProperty))})}function o(s,a,l){if(void 0===l)throw new Error('keyword "'.concat(a,'" failed to compile'));return s.scopeValue("keyword","function"==typeof l?{ref:l}:{ref:l,code:(0,t.stringify)(l)})}return ud.macroKeywordCode=function(s,a){var l=s.gen,c=s.keyword,h=s.it,f=a.macro.call(h.self,s.schema,s.parentSchema,h),p=o(l,c,f);!1!==h.opts.validateSchema&&h.self.validateSchema(f,!0);var m=l.name("valid");s.subschema({schema:f,schemaPath:t.nil,errSchemaPath:"".concat(h.errSchemaPath,"/").concat(c),topSchemaRef:p,compositeRule:!0},m),s.pass(m,function(){return s.error(!0)})},ud.funcKeywordCode=function(s,a){var l,c=s.gen,u=s.keyword,d=s.schema,h=s.parentSchema,f=s.$data,p=s.it;!function(C,S){if(S.async&&!C.schemaEnv.$async)throw new Error("async keyword in sync schema")}(p,a);var m=!f&&a.compile?a.compile.call(p.self,d,h,p):a.validate,g=o(c,u,m),v=c.let("valid");function y(){var C=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.async?(0,t._)(VX||(VX=Ae(["await "]))):t.nil,S=p.opts.passContext?n.default.this:n.default.self,M=!("compile"in a&&!f||!1===a.schema);c.assign(v,(0,t._)(HX||(HX=Ae(["","",""])),C,(0,e.callValidateCode)(s,g,S,M)),a.modifying)}function _(C){var S;c.if((0,t.not)(null!==(S=a.valid)&&void 0!==S?S:v),C)}s.block$data(v,function(){if(!1===a.errors)y(),a.modifying&&r(s),_(function(){return s.error()});else{var C=a.async?(M=c.let("ruleErrs",null),c.try(function(){return y((0,t._)(LX||(LX=Ae(["await "]))))},function($){return c.assign(v,!1).if((0,t._)(RX||(RX=Ae([""," instanceof ",""])),$,p.ValidationError),function(){return c.assign(M,(0,t._)($X||($X=Ae(["",".errors"])),$))},function(){return c.throw($)})}),M):(S=(0,t._)(BX||(BX=Ae(["",".errors"])),g),c.assign(S,null),y(t.nil),S);a.modifying&&r(s),_(function(){return function(M,$){var G=M.gen;G.if((0,t._)(UX||(UX=Ae(["Array.isArray(",")"])),$),function(){G.assign(n.default.vErrors,(0,t._)(GX||(GX=Ae([""," === null ? "," : ",".concat(",")"])),n.default.vErrors,$,n.default.vErrors,$)).assign(n.default.errors,(0,t._)(WX||(WX=Ae(["",".length"])),n.default.vErrors)),(0,i.extendErrors)(M)},function(){return M.error()})}(s,C)})}var M,S}),s.ok(null!==(l=a.valid)&&void 0!==l?l:v)},ud.validSchemaType=function(s,a){var l=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!a.length||a.some(function(c){return"array"===c?Array.isArray(s):"object"===c?s&&"object"==bn(s)&&!Array.isArray(s):bn(s)==c||l&&void 0===s})},ud.validateKeywordUsage=function(s,a,l){var c=s.schema,u=s.opts,d=s.self,h=s.errSchemaPath;if(Array.isArray(a.keyword)?!a.keyword.includes(l):a.keyword!==l)throw new Error("ajv implementation error");var f=a.dependencies;if(f?.some(function(m){return!Object.prototype.hasOwnProperty.call(c,m)}))throw new Error("parent schema must have dependencies of ".concat(l,": ").concat(f.join(",")));if(a.validateSchema&&!a.validateSchema(c[l])){var p='keyword "'.concat(l,'" value is invalid at path "').concat(h,'": ')+d.errorsText(a.validateSchema.errors);if("log"!==u.validateSchema)throw new Error(p);d.logger.error(p)}},ud}(),s=function(){if(ume)return mf;ume=1,Object.defineProperty(mf,"__esModule",{value:!0}),mf.extendSubschemaMode=mf.extendSubschemaData=mf.getSubschema=void 0;var L=xr(),X=Hr;return mf.getSubschema=function(Z,H){var he=H.keyword,E=H.schemaProp,F=H.schema,N=H.schemaPath,Y=H.errSchemaPath,V=H.topSchemaRef;if(void 0!==he&&void 0!==F)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==he){var oe=Z.schema[he];return void 0===E?{schema:oe,schemaPath:(0,L._)(qX||(qX=Ae(["","",""])),Z.schemaPath,(0,L.getProperty)(he)),errSchemaPath:"".concat(Z.errSchemaPath,"/").concat(he)}:{schema:oe[E],schemaPath:(0,L._)(XX||(XX=Ae(["","","",""])),Z.schemaPath,(0,L.getProperty)(he),(0,L.getProperty)(E)),errSchemaPath:"".concat(Z.errSchemaPath,"/").concat(he,"/").concat((0,X.escapeFragment)(E))}}if(void 0!==F){if(void 0===N||void 0===Y||void 0===V)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:F,schemaPath:N,topSchemaRef:V,errSchemaPath:Y}}throw new Error('either "keyword" or "schema" must be passed')},mf.extendSubschemaData=function(Z,H,he){var E=he.dataProp,F=he.dataPropType,N=he.data,Y=he.dataTypes,V=he.propertyName;if(void 0!==N&&void 0!==E)throw new Error('both "data" and "dataProp" passed, only one allowed');var oe=H.gen;if(void 0!==E){var fe=H.errorPath,Fe=H.dataPathArr,xe=H.opts;tt(oe.let("data",(0,L._)(YX||(YX=Ae(["","",""])),H.data,(0,L.getProperty)(E)),!0)),Z.errorPath=(0,L.str)(JX||(JX=Ae(["","",""])),fe,(0,X.getErrorPath)(E,F,xe.jsPropertySyntax)),Z.parentDataProperty=(0,L._)(KX||(KX=Ae(["",""])),E),Z.dataPathArr=[].concat(si(Fe),[Z.parentDataProperty])}function tt(ze){Z.data=ze,Z.dataLevel=H.dataLevel+1,Z.dataTypes=[],H.definedProperties=new Set,Z.parentData=H.data,Z.dataNames=[].concat(si(H.dataNames),[ze])}void 0!==N&&(tt(N instanceof L.Name?N:oe.let("data",N,!0)),void 0!==V&&(Z.propertyName=V)),Y&&(Z.dataTypes=Y)},mf.extendSubschemaMode=function(Z,H){var he=H.jtdDiscriminator,E=H.jtdMetadata,F=H.compositeRule,N=H.createErrors,Y=H.allErrors;void 0!==F&&(Z.compositeRule=F),void 0!==N&&(Z.createErrors=N),void 0!==Y&&(Z.allErrors=Y),Z.jtdDiscriminator=he,Z.jtdMetadata=E},mf}(),a=xr(),l=Sp(),c=Ga,u=Hr,d=ED();function h(L,X){var N,Z=L.gen,H=L.validateName,he=L.schema,E=L.schemaEnv,F=L.opts;F.code.es5?Z.func(H,(0,a._)(QX||(QX=Ae(["",", ",""])),l.default.data,l.default.valCxt),E.$async,function(){var N,Y;Z.code((0,a._)(ZX||(ZX=Ae(['"use strict"; ',""])),f(he,F))),Y=F,(N=Z).if(l.default.valCxt,function(){N.var(l.default.instancePath,(0,a._)(iY||(iY=Ae(["",".",""])),l.default.valCxt,l.default.instancePath)),N.var(l.default.parentData,(0,a._)(rY||(rY=Ae(["",".",""])),l.default.valCxt,l.default.parentData)),N.var(l.default.parentDataProperty,(0,a._)(oY||(oY=Ae(["",".",""])),l.default.valCxt,l.default.parentDataProperty)),N.var(l.default.rootData,(0,a._)(sY||(sY=Ae(["",".",""])),l.default.valCxt,l.default.rootData)),Y.dynamicRef&&N.var(l.default.dynamicAnchors,(0,a._)(aY||(aY=Ae(["",".",""])),l.default.valCxt,l.default.dynamicAnchors))},function(){N.var(l.default.instancePath,(0,a._)(lY||(lY=Ae(['""'])))),N.var(l.default.parentData,(0,a._)(cY||(cY=Ae(["undefined"])))),N.var(l.default.parentDataProperty,(0,a._)(uY||(uY=Ae(["undefined"])))),N.var(l.default.rootData,l.default.data),Y.dynamicRef&&N.var(l.default.dynamicAnchors,(0,a._)(dY||(dY=Ae(["{}"]))))}),Z.code(X)}):Z.func(H,(0,a._)(eY||(eY=Ae(["",", ",""])),l.default.data,(N=F,(0,a._)(tY||(tY=Ae(["{",'="", ',", ",", ","=","","}={}"])),l.default.instancePath,l.default.parentData,l.default.parentDataProperty,l.default.rootData,l.default.data,N.dynamicRef?(0,a._)(nY||(nY=Ae([", ","={}"])),l.default.dynamicAnchors):a.nil))),E.$async,function(){return Z.code(f(he,F)).code(X)})}function f(L,X){var Z="object"==bn(L)&&L[X.schemaId];return Z&&(X.code.source||X.code.process)?(0,a._)(bY||(bY=Ae(["/*# sourceURL="," */"])),Z):a.nil}function m(L){var X=L.schema,Z=L.self;if("boolean"==typeof X)return!X;for(var H in X)if(Z.RULES.all[H])return!0;return!1}function g(L){return"boolean"!=typeof L.schema}function v(L){var X,Z,H,E;(0,u.checkUnknownRules)(L),H=(X=L).errSchemaPath,E=X.self,(Z=X.schema).$ref&&X.opts.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(Z,E.RULES)&&E.logger.warn('$ref: keywords ignored in schema at path "'.concat(H,'"'))}function y(L,X){if(L.opts.jtd)return C(L,[],!1,X);var Z=(0,n.getSchemaTypes)(L.schema);C(L,Z,!(0,n.coerceAndCheckDataType)(L,Z),X)}function _(L){var X=L.gen,Z=L.schemaEnv,he=L.errSchemaPath,E=L.opts,F=L.schema.$comment;if(!0===E.$comment)X.code((0,a._)(xY||(xY=Ae(["",".logger.log(",")"])),l.default.self,F));else if("function"==typeof E.$comment){var N=(0,a.str)(wY||(wY=Ae(["","/$comment"])),he),Y=X.scopeValue("root",{ref:Z.root});X.code((0,a._)(CY||(CY=Ae(["",".opts.$comment(",", ",", ",".schema)"])),l.default.self,F,N,Y))}}function C(L,X,Z,H){var fe,Fe,xe,tt,he=L.gen,E=L.schema,F=L.data,N=L.allErrors,Y=L.opts,V=L.self.RULES;function oe(fe){(0,e.shouldUseGroup)(E,fe)&&(fe.type?(he.if((0,i.checkDataType)(fe.type,F,Y.strictNumbers)),S(L,fe),1===X.length&&X[0]===fe.type&&Z&&(he.else(),(0,i.reportTypeError)(L)),he.endIf()):S(L,fe),N||he.if((0,a._)(MY||(MY=Ae([""," === ",""])),l.default.errors,H||0)))}!E.$ref||!Y.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(E,V)?(Y.jtd||(Fe=X,(fe=L).schemaEnv.meta||!fe.opts.strictTypes||(function(xe,tt){if(tt.length){if(!xe.dataTypes.length)return void(xe.dataTypes=tt);tt.forEach(function(ze){$(xe.dataTypes,ze)||G(xe,'type "'.concat(ze,'" not allowed by context "').concat(xe.dataTypes.join(","),'"'))}),function(ze,ot){var B,ne=[],ie=Re(ze.dataTypes);try{for(ie.s();!(B=ie.n()).done;){var Ie=B.value;$(ot,Ie)?ne.push(Ie):ot.includes("integer")&&"number"===Ie&&ne.push("integer")}}catch(Ye){ie.e(Ye)}finally{ie.f()}ze.dataTypes=ne}(xe,tt)}}(fe,Fe),fe.opts.allowUnionTypes||(xe=fe,(tt=Fe).length>1&&(2!==tt.length||!tt.includes("null"))&&G(xe,"use allowUnionTypes to allow union type keyword")),function(xe,tt){var ze=xe.self.RULES.all;for(var ot in ze){var B=ze[ot];if("object"==bn(B)&&(0,e.shouldUseRule)(xe.schema,B)){var ne=B.definition.type;ne.length&&!ne.some(function(ie){return M(tt,ie)})&&G(xe,'missing type "'.concat(ne.join(","),'" for keyword "').concat(ot,'"'))}}}(fe,fe.dataTypes))),he.block(function(){var fe,Fe=Re(V.rules);try{for(Fe.s();!(fe=Fe.n()).done;)oe(fe.value)}catch(xe){Fe.e(xe)}finally{Fe.f()}oe(V.post)})):he.block(function(){return z(L,"$ref",V.all.$ref.definition)})}function S(L,X){var Z=L.gen,H=L.schema;L.opts.useDefaults&&(0,r.assignDefaults)(L,X.type),Z.block(function(){var he,E=Re(X.rules);try{for(E.s();!(he=E.n()).done;){var F=he.value;(0,e.shouldUseRule)(H,F)&&z(L,F.keyword,F.definition,X.type)}}catch(N){E.e(N)}finally{E.f()}})}function M(L,X){return L.includes(X)||"number"===X&&L.includes("integer")}function $(L,X){return L.includes(X)||"integer"===X&&L.includes("number")}function G(L,X){X+=' at "'.concat(L.schemaEnv.baseId+L.errSchemaPath,'" (strictTypes)'),(0,u.checkStrictMode)(L,X,L.opts.strictTypes)}ff.validateFunctionCode=function(L){var X,Z,H,he;g(L)&&(v(L),m(L))?(Z=(X=L).schema,H=X.opts,he=X.gen,h(X,function(){var E,N;H.$comment&&Z.$comment&&_(X),N=(E=X).opts,void 0!==E.schema.default&&N.useDefaults&&N.strictSchema&&(0,u.checkStrictMode)(E,"default is ignored in the schema root"),he.let(l.default.vErrors,null),he.let(l.default.errors,0),H.unevaluated&&function(E){var F=E.gen,N=E.validateName;E.evaluated=F.const("evaluated",(0,a._)(hY||(hY=Ae(["",".evaluated"])),N)),F.if((0,a._)(fY||(fY=Ae(["",".dynamicProps"])),E.evaluated),function(){return F.assign((0,a._)(pY||(pY=Ae(["",".props"])),E.evaluated),(0,a._)(mY||(mY=Ae(["undefined"]))))}),F.if((0,a._)(gY||(gY=Ae(["",".dynamicItems"])),E.evaluated),function(){return F.assign((0,a._)(vY||(vY=Ae(["",".items"])),E.evaluated),(0,a._)(yY||(yY=Ae(["undefined"]))))})}(X),y(X),function(E){var fe,Fe,xe,tt,ze,F=E.gen,Y=E.validateName,V=E.ValidationError,oe=E.opts;E.schemaEnv.$async?F.if((0,a._)(kY||(kY=Ae([""," === 0"])),l.default.errors),function(){return F.return(l.default.data)},function(){return F.throw((0,a._)(SY||(SY=Ae(["new ","(",")"])),V,l.default.vErrors))}):(F.assign((0,a._)(DY||(DY=Ae(["",".errors"])),Y),l.default.vErrors),oe.unevaluated&&(Fe=(fe=E).gen,xe=fe.evaluated,ze=fe.items,(tt=fe.props)instanceof a.Name&&Fe.assign((0,a._)(EY||(EY=Ae(["",".props"])),xe),tt),ze instanceof a.Name&&Fe.assign((0,a._)(AY||(AY=Ae(["",".items"])),xe),ze)),F.return((0,a._)(TY||(TY=Ae([""," === 0"])),l.default.errors)))}(X)})):h(L,function(){return(0,t.topBoolOrEmptySchema)(L)})};var R=function(){function L(X,Z,H){if(ke(this,L),(0,o.validateKeywordUsage)(X,Z,H),this.gen=X.gen,this.allErrors=X.allErrors,this.keyword=H,this.data=X.data,this.schema=X.schema[H],this.$data=Z.$data&&X.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)(X,this.schema,H,this.$data),this.schemaType=Z.schemaType,this.parentSchema=X.schema,this.params={},this.it=X,this.def=Z,this.$data)this.schemaCode=X.gen.const("vSchema",re(this.$data,X));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,Z.schemaType,Z.allowUndefined))throw new Error("".concat(H," value must be ").concat(JSON.stringify(Z.schemaType)));("code"in Z?Z.trackErrors:!1!==Z.errors)&&(this.errsCount=X.gen.const("_errs",l.default.errors))}return Se(L,[{key:"result",value:function(X,Z,H){this.failResult((0,a.not)(X),Z,H)}},{key:"failResult",value:function(X,Z,H){this.gen.if(X),H?H():this.error(),Z?(this.gen.else(),Z(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}},{key:"pass",value:function(X,Z){this.failResult((0,a.not)(X),void 0,Z)}},{key:"fail",value:function(X){if(void 0===X)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(X),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}},{key:"fail$data",value:function(X){if(!this.$data)return this.fail(X);var Z=this.schemaCode;this.fail((0,a._)(IY||(IY=Ae([""," !== undefined && (",")"])),Z,(0,a.or)(this.invalid$data(),X)))}},{key:"error",value:function(X,Z,H){if(Z)return this.setParams(Z),this._error(X,H),void this.setParams({});this._error(X,H)}},{key:"_error",value:function(X,Z){(X?d.reportExtraError:d.reportError)(this,this.def.error,Z)}},{key:"$dataError",value:function(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}},{key:"reset",value:function(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,d.resetErrorsCount)(this.gen,this.errsCount)}},{key:"ok",value:function(X){this.allErrors||this.gen.if(X)}},{key:"setParams",value:function(X,Z){Z?Object.assign(this.params,X):this.params=X}},{key:"block$data",value:function(X,Z){var H=this,he=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.nil;this.gen.block(function(){H.check$data(X,he),Z()})}},{key:"check$data",value:function(){var X=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.nil,Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.nil;if(this.$data){var H=this.gen,he=this.schemaCode,E=this.schemaType,F=this.def;H.if((0,a.or)((0,a._)(FY||(FY=Ae([""," === undefined"])),he),Z)),X!==a.nil&&H.assign(X,!0),(E.length||F.validateSchema)&&(H.elseIf(this.invalid$data()),this.$dataError(),X!==a.nil&&H.assign(X,!1)),H.else()}}},{key:"invalid$data",value:function(){var X=this.gen,Z=this.schemaCode,H=this.schemaType,he=this.def,E=this.it;return(0,a.or)(function(){if(H.length){if(!(Z instanceof a.Name))throw new Error("ajv implementation error");var F=Array.isArray(H)?H:[H];return(0,a._)(NY||(NY=Ae(["",""])),(0,i.checkDataTypes)(F,Z,E.opts.strictNumbers,i.DataType.Wrong))}return a.nil}(),function(){if(he.validateSchema){var F=X.scopeValue("validate$data",{ref:he.validateSchema});return(0,a._)(OY||(OY=Ae(["!","(",")"])),F,Z)}return a.nil}())}},{key:"subschema",value:function(X,Z){var H=(0,s.getSubschema)(this.it,X);(0,s.extendSubschemaData)(H,this.it,X),(0,s.extendSubschemaMode)(H,X);var he=Ze(Ze(Ze({},this.it),H),{},{items:void 0,props:void 0});return function p(L,X){g(L)&&(v(L),m(L))?function(Z,H){var N,Y,E=Z.gen;Z.opts.$comment&&Z.schema.$comment&&_(Z),(Y=(N=Z).schema[N.opts.schemaId])&&(N.baseId=(0,c.resolveUrl)(N.opts.uriResolver,N.baseId,Y)),function(N){if(N.schema.$async&&!N.schemaEnv.$async)throw new Error("async schema in sync schema")}(Z);var F=E.const("_errs",l.default.errors);y(Z,F),E.var(H,(0,a._)(_Y||(_Y=Ae([""," === ",""])),F,l.default.errors))}(L,X):(0,t.boolOrEmptySchema)(L,X)}(he,Z),he}},{key:"mergeEvaluated",value:function(X,Z){var H=this.it,he=this.gen;H.opts.unevaluated&&(!0!==H.props&&void 0!==X.props&&(H.props=u.mergeEvaluated.props(he,X.props,H.props,Z)),!0!==H.items&&void 0!==X.items&&(H.items=u.mergeEvaluated.items(he,X.items,H.items,Z)))}},{key:"mergeValidEvaluated",value:function(X,Z){var H=this,he=this.it;if(he.opts.unevaluated&&(!0!==he.props||!0!==he.items))return this.gen.if(Z,function(){return H.mergeEvaluated(X,a.Name)}),!0}}]),L}();function z(L,X,Z,H){var he=new R(L,Z,X);"code"in Z?Z.code(he,H):he.$data&&Z.validate?(0,o.funcKeywordCode)(he,Z):"macro"in Z?(0,o.macroKeywordCode)(he,Z):(Z.compile||Z.validate)&&(0,o.funcKeywordCode)(he,Z)}ff.KeywordCxt=R;var U=/^\/(?:[^~]|~0|~1)*$/,q=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function re(L,X){var Z,H,he=X.dataLevel,E=X.dataNames,F=X.dataPathArr;if(""===L)return l.default.rootData;if("/"===L[0]){if(!U.test(L))throw new Error("Invalid JSON-pointer: ".concat(L));Z=L,H=l.default.rootData}else{var N=q.exec(L);if(!N)throw new Error("Invalid JSON-pointer: ".concat(L));var Y=+N[1];if("#"===(Z=N[2])){if(Y>=he)throw new Error(xe("property/index",Y));return F[he-Y]}if(Y>he)throw new Error(xe("data",Y));if(H=E[he-Y],!Z)return H}var V,oe=H,fe=Re(Z.split("/"));try{for(fe.s();!(V=fe.n()).done;){var Fe=V.value;Fe&&(H=(0,a._)(jY||(jY=Ae(["","",""])),H,(0,a.getProperty)((0,u.unescapeJsonPointer)(Fe))),oe=(0,a._)(PY||(PY=Ae([""," && ",""])),oe,H))}}catch(tt){fe.e(tt)}finally{fe.f()}return oe;function xe(tt,ze){return"Cannot access ".concat(tt," ").concat(ze," levels up, current level is ").concat(he)}}return ff.getData=re,ff}Ga.getSchemaRefs=function(t,n){var e=this;if("boolean"==typeof t)return{};var i=this.opts,r=i.schemaId,o=i.uriResolver,s=z0(t[r]||n),a={"":s},l=fme(o,s,!1),c={},u=new Set;return hit(t,{allKeys:!0},function(f,p,m,g){if(void 0!==g){var v=l+p,y=a[g];"string"==typeof f[r]&&(y=_.call(e,f[r])),C.call(e,f.$anchor),C.call(e,f.$dynamicAnchor),a[p]=y}function _(S){if(S=z0(y?(0,this.opts.uriResolver.resolve)(y,S):S),u.has(S))throw h(S);u.add(S);var $=this.refs[S];return"string"==typeof $&&($=this.refs[$]),"object"==bn($)?d(f,$.schema,S):S!==z0(v)&&("#"===S[0]?(d(f,c[S],S),c[S]=f):this.refs[S]=v),S}function C(S){if("string"==typeof S){if(!git.test(S))throw new Error('invalid anchor "'.concat(S,'"'));_.call(this,"#".concat(S))}}}),c;function d(f,p,m){if(void 0!==p&&!dit(f,p))throw h(m)}function h(f){return new Error('reference "'.concat(f,'" resolves to more than one schema'))}};var gme,ID={};function DP(){if(gme)return ID;gme=1,Object.defineProperty(ID,"__esModule",{value:!0});var t=function(n){wt(i,lb(Error));var e=Ct(i);function i(r){var o;return ke(this,i),(o=e.call(this,"validation failed")).errors=r,o.ajv=o.validation=!0,o}return Se(i)}();return ID.default=t,ID}var vme,FD={};function TP(){if(vme)return FD;vme=1,Object.defineProperty(FD,"__esModule",{value:!0});var t=Ga,n=function(e){wt(r,lb(Error));var i=Ct(r);function r(o,s,a,l){var c;return ke(this,r),(c=i.call(this,l||"can't resolve reference ".concat(a," from id ").concat(s))).missingRef=(0,t.resolveUrl)(o,s,a),c.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(o,c.missingRef)),c}return Se(r)}();return FD.default=n,FD}var Zl={};Object.defineProperty(Zl,"__esModule",{value:!0}),Zl.resolveSchema=Zl.getCompilingSchema=Zl.resolveRef=Zl.compileSchema=Zl.SchemaEnv=void 0;var hd=xr(),vit=DP(),ng=Sp(),fd=Ga,yme=Hr,yit=MD(),ND=Se(function t(n){var e,i;ke(this,t),this.refs={},this.dynamicAnchors={},"object"==bn(n.schema)&&(i=n.schema),this.schema=n.schema,this.schemaId=n.schemaId,this.root=n.root||this,this.baseId=null!==(e=n.baseId)&&void 0!==e?e:(0,fd.normalizeId)(i?.[n.schemaId||"$id"]),this.schemaPath=n.schemaPath,this.localRefs=n.localRefs,this.meta=n.meta,this.$async=i?.$async,this.refs={}});function EP(t){var n=bme.call(this,t);if(n)return n;var e,i=(0,fd.getFullPath)(this.opts.uriResolver,t.root.baseId),r=this.opts.code,l=new hd.CodeGen(this.scope,{es5:r.es5,lines:r.lines,ownProperties:this.opts.ownProperties});t.$async&&(e=l.scopeValue("Error",{ref:vit.default,code:(0,hd._)(LY||(LY=Ae(['require("ajv/dist/runtime/validation_error").default'])))}));var c=l.scopeName("validate");t.validateName=c;var u,d={gen:l,allErrors:this.opts.allErrors,data:ng.default.data,parentData:ng.default.parentData,parentDataProperty:ng.default.parentDataProperty,dataNames:[ng.default.data],dataPathArr:[hd.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:l.scopeValue("schema",!0===this.opts.code.source?{ref:t.schema,code:(0,hd.stringify)(t.schema)}:{ref:t.schema}),validateName:c,ValidationError:e,schema:t.schema,schemaEnv:t,rootId:i,baseId:t.baseId||i,schemaPath:hd.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,hd._)(RY||(RY=Ae(['""']))),opts:this.opts,self:this};try{this._compilations.add(t),(0,yit.validateFunctionCode)(d),l.optimize(this.opts.code.optimize);var h=l.toString();u="".concat(l.scopeRefs(ng.default.scope),"return ").concat(h),this.opts.code.process&&(u=this.opts.code.process(u,t));var f=new Function("".concat(ng.default.self),"".concat(ng.default.scope),u)(this,this.scope.get());if(this.scope.value(c,{ref:f}),f.errors=null,f.schema=t.schema,f.schemaEnv=t,t.$async&&(f.$async=!0),!0===this.opts.code.source&&(f.source={validateName:c,validateCode:h,scopeValues:l._values}),this.opts.unevaluated){var p=d.props,m=d.items;f.evaluated={props:p instanceof hd.Name?void 0:p,items:m instanceof hd.Name?void 0:m,dynamicProps:p instanceof hd.Name,dynamicItems:m instanceof hd.Name},f.source&&(f.source.evaluated=(0,hd.stringify)(f.evaluated))}return t.validate=f,t}catch(g){throw delete t.validate,delete t.validateName,u&&this.logger.error("Error compiling schema, function code:",u),g}finally{this._compilations.delete(t)}}function bit(t){return(0,fd.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:EP.call(this,t)}function bme(t){var n,e,i,r=Re(this._compilations);try{for(r.s();!(n=r.n()).done;){var o=n.value;if((e=o).schema===(i=t).schema&&e.root===i.root&&e.baseId===i.baseId)return o}}catch(s){r.e(s)}finally{r.f()}}function _it(t,n){for(var e;"string"==typeof(e=this.refs[n]);)n=e;return e||this.schemas[n]||OD.call(this,t,n)}function OD(t,n){var e=this.opts.uriResolver.parse(n),i=(0,fd._getFullPath)(this.opts.uriResolver,e),r=(0,fd.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&i===r)return AP.call(this,e,t);var o=(0,fd.normalizeId)(i),s=this.refs[o]||this.schemas[o];if("string"==typeof s){var a=OD.call(this,t,s);return"object"!==bn(a?.schema)?void 0:AP.call(this,e,a)}if("object"===bn(s?.schema)){if(s.validate||EP.call(this,s),o===(0,fd.normalizeId)(n)){var l=s.schema,c=this.opts.schemaId,u=l[c];return u&&(r=(0,fd.resolveUrl)(this.opts.uriResolver,r,u)),new ND({schema:l,schemaId:c,root:t,baseId:r})}return AP.call(this,e,s)}}Zl.SchemaEnv=ND,Zl.compileSchema=EP,Zl.resolveRef=function(t,n,e){var i;e=(0,fd.resolveUrl)(this.opts.uriResolver,n,e);var r=t.refs[e];if(r)return r;var o=_it.call(this,t,e);if(void 0===o){var s=null===(i=t.localRefs)||void 0===i?void 0:i[e];s&&(o=new ND({schema:s,schemaId:this.opts.schemaId,root:t,baseId:n}))}return void 0!==o?t.refs[e]=bit.call(this,o):void 0},Zl.getCompilingSchema=bme,Zl.resolveSchema=OD;var xit=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function AP(t,n){var e,i=n.baseId,r=n.schema,o=n.root;if("/"===(null===(e=t.fragment)||void 0===e?void 0:e[0])){var s,a,l=Re(t.fragment.slice(1).split("/"));try{for(l.s();!(s=l.n()).done;){var c=s.value;if("boolean"==typeof r)return;var u=r[(0,yme.unescapeFragment)(c)];if(void 0===u)return;var d="object"===bn(r=u)&&r[this.opts.schemaId];!xit.has(c)&&d&&(i=(0,fd.resolveUrl)(this.opts.uriResolver,i,d))}}catch(p){l.e(p)}finally{l.f()}if("boolean"!=typeof r&&r.$ref&&!(0,yme.schemaHasRulesButRef)(r,this.RULES)){var h=(0,fd.resolveUrl)(this.opts.uriResolver,i,r.$ref);a=OD.call(this,o,h)}return(a=a||new ND({schema:r,schemaId:this.opts.schemaId,root:o,baseId:i})).schema!==a.root.schema?a:void 0}}var wit={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1},MP={},_me={};(function(t){function n(){for(var we=arguments.length,He=Array(we),qe=0;qe1){He[0]=He[0].slice(0,-1);for(var ut=He.length-1,Ue=1;Ue= 0x80 (not a basic code point)","invalid-input":"Invalid input"},z=Math.floor,U=String.fromCharCode;function q(we){throw new RangeError(G[we])}function L(we,He){var qe=we.split("@"),ut="";return qe.length>1&&(ut=qe[0]+"@",we=qe[1]),ut+function re(we,He){for(var qe=[],ut=we.length;ut--;)qe[ut]=He(we[ut]);return qe}((we=we.replace($,".")).split("."),He).join(".")}function X(we){for(var He=[],qe=0,ut=we.length;qe=55296&&Ue<=56319&&qe>1,we+=z(we/He);we>455;ut+=f)we=z(we/35);return z(ut+36*we/(we+38))},F=function(we){var He=[],qe=we.length,ut=0,Ue=128,Dn=72,ii=we.lastIndexOf("-");ii<0&&(ii=0);for(var hi=0;hi=128&&q("not-basic"),He.push(we.charCodeAt(hi));for(var di=ii>0?ii+1:0;di=qe&&q("invalid-input");var yr=H(we.charCodeAt(di++));(yr>=f||yr>z((h-ut)/Qr))&&q("overflow"),ut+=yr*Qr;var Ee=gi<=Dn?1:gi>=Dn+26?26:gi-Dn;if(yrz(h/St)&&q("overflow"),Qr*=St}var Ht=He.length+1;Dn=E(ut-kr,Ht,0==kr),z(ut/Ht)>h-Ue&&q("overflow"),Ue+=z(ut/Ht),ut%=Ht,He.splice(ut++,0,Ue)}return String.fromCodePoint.apply(String,He)},N=function(we){var He=[],qe=(we=X(we)).length,ut=128,Ue=0,Dn=72,ii=!0,hi=!1,di=void 0;try{for(var kr,Qr=we[Symbol.iterator]();!(ii=(kr=Qr.next()).done);ii=!0){var gi=kr.value;gi<128&&He.push(U(gi))}}catch(vd){hi=!0,di=vd}finally{try{!ii&&Qr.return&&Qr.return()}finally{if(hi)throw di}}var yr=He.length,Ee=yr;for(yr&&He.push("-");Ee=ut&&Bnz((h-Ue)/ei)&&q("overflow"),Ue+=(St-ut)*ei,ut=St;var Yn=!0,br=!1,Ar=void 0;try{for(var Po,ca=we[Symbol.iterator]();!(Yn=(Po=ca.next()).done);Yn=!0){var md=Po.value;if(mdh&&q("overflow"),md==ut){for(var hu=Ue,ua=f;;ua+=f){var Rl=ua<=Dn?1:ua>=Dn+26?26:ua-Dn;if(hu>6|192).toString(16).toUpperCase()+"%"+(63&He|128).toString(16).toUpperCase():"%"+(He>>12|224).toString(16).toUpperCase()+"%"+(He>>6&63|128).toString(16).toUpperCase()+"%"+(63&He|128).toString(16).toUpperCase()}function xe(we){for(var He="",qe=0,ut=we.length;qe=194&&Ue<224){if(ut-qe>=6){var Dn=parseInt(we.substr(qe+4,2),16);He+=String.fromCharCode((31&Ue)<<6|63&Dn)}else He+=we.substr(qe,6);qe+=6}else if(Ue>=224){if(ut-qe>=9){var ii=parseInt(we.substr(qe+4,2),16),hi=parseInt(we.substr(qe+7,2),16);He+=String.fromCharCode((15&Ue)<<12|(63&ii)<<6|63&hi)}else He+=we.substr(qe,9);qe+=9}else He+=we.substr(qe,3),qe+=3}return He}function tt(we,He){function qe(ut){var Ue=xe(ut);return Ue.match(He.UNRESERVED)?Ue:ut}return we.scheme&&(we.scheme=String(we.scheme).replace(He.PCT_ENCODED,qe).toLowerCase().replace(He.NOT_SCHEME,"")),void 0!==we.userinfo&&(we.userinfo=String(we.userinfo).replace(He.PCT_ENCODED,qe).replace(He.NOT_USERINFO,Fe).replace(He.PCT_ENCODED,r)),void 0!==we.host&&(we.host=String(we.host).replace(He.PCT_ENCODED,qe).toLowerCase().replace(He.NOT_HOST,Fe).replace(He.PCT_ENCODED,r)),void 0!==we.path&&(we.path=String(we.path).replace(He.PCT_ENCODED,qe).replace(we.scheme?He.NOT_PATH:He.NOT_PATH_NOSCHEME,Fe).replace(He.PCT_ENCODED,r)),void 0!==we.query&&(we.query=String(we.query).replace(He.PCT_ENCODED,qe).replace(He.NOT_QUERY,Fe).replace(He.PCT_ENCODED,r)),void 0!==we.fragment&&(we.fragment=String(we.fragment).replace(He.PCT_ENCODED,qe).replace(He.NOT_FRAGMENT,Fe).replace(He.PCT_ENCODED,r)),we}function ze(we){return we.replace(/^0*(.*)/,"$1")||"0"}function ot(we,He){var qe=we.match(He.IPV4ADDRESS)||[],ut=u(qe,2)[1];return ut?ut.split(".").map(ze).join("."):we}function B(we,He){var qe=we.match(He.IPV6ADDRESS)||[],ut=u(qe,3),Ue=ut[1],Dn=ut[2];if(Ue){for(var ii=Ue.toLowerCase().split("::").reverse(),hi=u(ii,2),di=hi[0],kr=hi[1],Qr=kr?kr.split(":").map(ze):[],gi=di.split(":").map(ze),yr=He.IPV4ADDRESS.test(gi[gi.length-1]),Ee=yr?7:8,St=gi.length-Ee,Ht=Array(Ee),sn=0;sn1){var Oi=Ht.slice(0,hn.index),Bn=Ht.slice(hn.index+hn.length);ri=Oi.join(":")+"::"+Bn.join(":")}else ri=Ht.join(":");return Dn&&(ri+="%"+Dn),ri}return we}var ne=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,ie=void 0==="".match(/(){0}/)[1];function Ie(we){var He=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},qe={},ut=!1!==He.iri?c:l;"suffix"===He.reference&&(we=(He.scheme?He.scheme+":":"")+"//"+we);var Ue=we.match(ne);if(Ue){ie?(qe.scheme=Ue[1],qe.userinfo=Ue[3],qe.host=Ue[4],qe.port=parseInt(Ue[5],10),qe.path=Ue[6]||"",qe.query=Ue[7],qe.fragment=Ue[8],isNaN(qe.port)&&(qe.port=Ue[5])):(qe.scheme=Ue[1]||void 0,qe.userinfo=-1!==we.indexOf("@")?Ue[3]:void 0,qe.host=-1!==we.indexOf("//")?Ue[4]:void 0,qe.port=parseInt(Ue[5],10),qe.path=Ue[6]||"",qe.query=-1!==we.indexOf("?")?Ue[7]:void 0,qe.fragment=-1!==we.indexOf("#")?Ue[8]:void 0,isNaN(qe.port)&&(qe.port=we.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Ue[4]:void 0)),qe.host&&(qe.host=B(ot(qe.host,ut),ut)),qe.reference=void 0!==qe.scheme||void 0!==qe.userinfo||void 0!==qe.host||void 0!==qe.port||qe.path||void 0!==qe.query?void 0===qe.scheme?"relative":void 0===qe.fragment?"absolute":"uri":"same-document",He.reference&&"suffix"!==He.reference&&He.reference!==qe.reference&&(qe.error=qe.error||"URI is not a "+He.reference+" reference.");var Dn=fe[(He.scheme||qe.scheme||"").toLowerCase()];if(He.unicodeSupport||Dn&&Dn.unicodeSupport)tt(qe,ut);else{if(qe.host&&(He.domainHost||Dn&&Dn.domainHost))try{qe.host=oe.toASCII(qe.host.replace(ut.PCT_ENCODED,xe).toLowerCase())}catch(ii){qe.error=qe.error||"Host's domain name can not be converted to ASCII via punycode: "+ii}tt(qe,l)}Dn&&Dn.parse&&Dn.parse(qe,He)}else qe.error=qe.error||"URI can not be parsed.";return qe}var Le=/^\.\.?\//,_t=/^\/\.(\/|$)/,At=/^\/\.\.(\/|$)/,_n=/^\/?(?:.|\n)*?(?=\/|$)/;function ci(we){for(var He=[];we.length;)if(we.match(Le))we=we.replace(Le,"");else if(we.match(_t))we=we.replace(_t,"/");else if(we.match(At))we=we.replace(At,"/"),He.pop();else if("."===we||".."===we)we="";else{var qe=we.match(_n);if(!qe)throw new Error("Unexpected dot segment condition");var ut=qe[0];we=we.slice(ut.length),He.push(ut)}return He.join("")}function on(we){var He=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},qe=He.iri?c:l,ut=[],Ue=fe[(He.scheme||we.scheme||"").toLowerCase()];if(Ue&&Ue.serialize&&Ue.serialize(we,He),we.host&&!qe.IPV6ADDRESS.test(we.host)&&(He.domainHost||Ue&&Ue.domainHost))try{we.host=He.iri?oe.toUnicode(we.host):oe.toASCII(we.host.replace(qe.PCT_ENCODED,xe).toLowerCase())}catch(hi){we.error=we.error||"Host's domain name can not be converted to "+(He.iri?"Unicode":"ASCII")+" via punycode: "+hi}tt(we,qe),"suffix"!==He.reference&&we.scheme&&(ut.push(we.scheme),ut.push(":"));var Dn=function Ye(we,He){var qe=!1!==He.iri?c:l,ut=[];return void 0!==we.userinfo&&(ut.push(we.userinfo),ut.push("@")),void 0!==we.host&&ut.push(B(ot(String(we.host),qe),qe).replace(qe.IPV6ADDRESS,function(Ue,Dn,ii){return"["+Dn+(ii?"%25"+ii:"")+"]"})),"number"!=typeof we.port&&"string"!=typeof we.port||(ut.push(":"),ut.push(String(we.port))),ut.length?ut.join(""):void 0}(we,He);if(void 0!==Dn&&("suffix"!==He.reference&&ut.push("//"),ut.push(Dn),we.path&&"/"!==we.path.charAt(0)&&ut.push("/")),void 0!==we.path){var ii=we.path;He.absolutePath||Ue&&Ue.absolutePath||(ii=ci(ii)),void 0===Dn&&(ii=ii.replace(/^\/\//,"/%2F")),ut.push(ii)}return void 0!==we.query&&(ut.push("?"),ut.push(we.query)),void 0!==we.fragment&&(ut.push("#"),ut.push(we.fragment)),ut.join("")}function Fi(we,He){var qe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},ut={};return arguments[3]||(we=Ie(on(we,qe),qe),He=Ie(on(He,qe),qe)),!(qe=qe||{}).tolerant&&He.scheme?(ut.scheme=He.scheme,ut.userinfo=He.userinfo,ut.host=He.host,ut.port=He.port,ut.path=ci(He.path||""),ut.query=He.query):(void 0!==He.userinfo||void 0!==He.host||void 0!==He.port?(ut.userinfo=He.userinfo,ut.host=He.host,ut.port=He.port,ut.path=ci(He.path||""),ut.query=He.query):(He.path?("/"===He.path.charAt(0)?ut.path=ci(He.path):(ut.path=void 0===we.userinfo&&void 0===we.host&&void 0===we.port||we.path?we.path?we.path.slice(0,we.path.lastIndexOf("/")+1)+He.path:He.path:"/"+He.path,ut.path=ci(ut.path)),ut.query=He.query):(ut.path=we.path,ut.query=void 0!==He.query?He.query:we.query),ut.userinfo=we.userinfo,ut.host=we.host,ut.port=we.port),ut.scheme=we.scheme),ut.fragment=He.fragment,ut}function Or(we,He){return we&&we.toString().replace(He&&He.iri?c.PCT_ENCODED:l.PCT_ENCODED,xe)}var Ai={scheme:"http",domainHost:!0,parse:function(we,He){return we.host||(we.error=we.error||"HTTP URIs must have a host."),we},serialize:function(we,He){var qe="https"===String(we.scheme).toLowerCase();return we.port!==(qe?443:80)&&""!==we.port||(we.port=void 0),we.path||(we.path="/"),we}},Wr={scheme:"https",domainHost:Ai.domainHost,parse:Ai.parse,serialize:Ai.serialize};function jo(we){return"boolean"==typeof we.secure?we.secure:"wss"===String(we.scheme).toLowerCase()}var Nn={scheme:"ws",domainHost:!0,parse:function(we,He){var qe=we;return qe.secure=jo(qe),qe.resourceName=(qe.path||"/")+(qe.query?"?"+qe.query:""),qe.path=void 0,qe.query=void 0,qe},serialize:function(we,He){if(we.port!==(jo(we)?443:80)&&""!==we.port||(we.port=void 0),"boolean"==typeof we.secure&&(we.scheme=we.secure?"wss":"ws",we.secure=void 0),we.resourceName){var qe=we.resourceName.split("?"),ut=u(qe,2),Ue=ut[0],Dn=ut[1];we.path=Ue&&"/"!==Ue?Ue:void 0,we.query=Dn,we.resourceName=void 0}return we.fragment=void 0,we}},xt={scheme:"wss",domainHost:Nn.domainHost,parse:Nn.parse,serialize:Nn.serialize},ui={},Ni="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Cr="[0-9A-Fa-f]",xo=e(e("%[EFef]"+Cr+"%"+Cr+Cr+"%"+Cr+Cr)+"|"+e("%[89A-Fa-f]"+Cr+"%"+Cr+Cr)+"|"+e("%"+Cr+Cr)),gt=n("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),ai=new RegExp(Ni,"g"),bi=new RegExp(xo,"g"),Er=new RegExp(n("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',gt),"g"),qr=new RegExp(n("[^]",Ni,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),ao=qr;function Js(we){var He=xe(we);return He.match(ai)?He:we}var vr={scheme:"mailto",parse:function(we,He){var qe=we,ut=qe.to=qe.path?qe.path.split(","):[];if(qe.path=void 0,qe.query){for(var Ue=!1,Dn={},ii=qe.query.split("&"),hi=0,di=ii.length;hi string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},v={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},_=function(){function E(){var F=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ke(this,E),this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,F=this.opts=Ze(Ze({},F),function y(E){var F,N,Y,V,oe,fe,Fe,xe,tt,ze,ot,B,ne,ie,Ie,Ye,Le,_t,At,_n,ci,on,Fi,pn,Nr,$r=E.strict,wr=null===(F=E.code)||void 0===F?void 0:F.optimize,Or=!0===wr||void 0===wr?1:wr||0,Ai=null!==(Y=null===(N=E.code)||void 0===N?void 0:N.regExp)&&void 0!==Y?Y:f,Wr=null!==(V=E.uriResolver)&&void 0!==V?V:h.default;return{strictSchema:null===(fe=null!==(oe=E.strictSchema)&&void 0!==oe?oe:$r)||void 0===fe||fe,strictNumbers:null===(xe=null!==(Fe=E.strictNumbers)&&void 0!==Fe?Fe:$r)||void 0===xe||xe,strictTypes:null!==(ze=null!==(tt=E.strictTypes)&&void 0!==tt?tt:$r)&&void 0!==ze?ze:"log",strictTuples:null!==(B=null!==(ot=E.strictTuples)&&void 0!==ot?ot:$r)&&void 0!==B?B:"log",strictRequired:null!==(ie=null!==(ne=E.strictRequired)&&void 0!==ne?ne:$r)&&void 0!==ie&&ie,code:E.code?Ze(Ze({},E.code),{},{optimize:Or,regExp:Ai}):{optimize:Or,regExp:Ai},loopRequired:null!==(Ie=E.loopRequired)&&void 0!==Ie?Ie:200,loopEnum:null!==(Ye=E.loopEnum)&&void 0!==Ye?Ye:200,meta:null===(Le=E.meta)||void 0===Le||Le,messages:null===(_t=E.messages)||void 0===_t||_t,inlineRefs:null===(At=E.inlineRefs)||void 0===At||At,schemaId:null!==(_n=E.schemaId)&&void 0!==_n?_n:"$id",addUsedSchema:null===(ci=E.addUsedSchema)||void 0===ci||ci,validateSchema:null===(on=E.validateSchema)||void 0===on||on,validateFormats:null===(Fi=E.validateFormats)||void 0===Fi||Fi,unicodeRegExp:null===(pn=E.unicodeRegExp)||void 0===pn||pn,int32range:null===(Nr=E.int32range)||void 0===Nr||Nr,uriResolver:Wr}}(F));var N=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:m,es5:N.es5,lines:N.lines}),this.logger=function U(E){if(!1===E)return z;if(void 0===E)return console;if(E.log&&E.warn&&E.error)return E;throw new Error("logger must implement log, warn and error methods")}(F.logger);var oe=F.validateFormats;F.validateFormats=!1,this.RULES=(0,o.getRules)(),C.call(this,g,F,"NOT SUPPORTED"),C.call(this,v,F,"DEPRECATED","warn"),this._metaOpts=R.call(this),F.formats&&$.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),F.keywords&&G.call(this,F.keywords),"object"==bn(F.meta)&&this.addMetaSchema(F.meta),M.call(this),F.validateFormats=oe}return Se(E,[{key:"_addVocabularies",value:function(){this.addKeyword("$async")}},{key:"_addDefaultMetaSchema",value:function(){var F=this.opts,N=F.$data,Y=F.meta,V=F.schemaId,oe=d;"id"===V&&((oe=Ze({},d)).id=oe.$id,delete oe.$id),Y&&N&&this.addMetaSchema(oe,oe[V],!1)}},{key:"defaultMeta",value:function(){var F=this.opts,N=F.meta,Y=F.schemaId;return this.opts.defaultMeta="object"==bn(N)?N[Y]||N:void 0}},{key:"validate",value:function(F,N){var Y;if("string"==typeof F){if(!(Y=this.getSchema(F)))throw new Error('no schema with key or ref "'.concat(F,'"'))}else Y=this.compile(F);var V=Y(N);return"$async"in Y||(this.errors=Y.errors),V}},{key:"compile",value:function(F,N){var Y=this._addSchema(F,N);return Y.validate||this._compileSchemaEnv(Y)}},{key:"compileAsync",value:function(F,N){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");var Y=this.opts.loadSchema;return V.call(this,F,N);function V(Ie,Ye){return oe.apply(this,arguments)}function oe(){return(oe=Zi(vn().mark(function Ie(Ye,Le){var _t;return vn().wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return At.next=2,fe.call(this,Ye.$schema);case 2:return _t=this._addSchema(Ye,Le),At.abrupt("return",_t.validate||xe.call(this,_t));case 4:case"end":return At.stop()}},Ie,this)}))).apply(this,arguments)}function fe(Ie){return Fe.apply(this,arguments)}function Fe(){return(Fe=Zi(vn().mark(function Ie(Ye){return vn().wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:if(!Ye||this.getSchema(Ye)){Le.next=3;break}return Le.next=3,V.call(this,{$ref:Ye},!0);case 3:case"end":return Le.stop()}},Ie,this)}))).apply(this,arguments)}function xe(Ie){return tt.apply(this,arguments)}function tt(){return(tt=Zi(vn().mark(function Ie(Ye){return vn().wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return Le.prev=0,Le.abrupt("return",this._compileSchemaEnv(Ye));case 4:if(Le.prev=4,Le.t0=Le.catch(0),Le.t0 instanceof r.default){Le.next=8;break}throw Le.t0;case 8:return ze.call(this,Le.t0),Le.next=11,ot.call(this,Le.t0.missingSchema);case 11:return Le.abrupt("return",xe.call(this,Ye));case 12:case"end":return Le.stop()}},Ie,this,[[0,4]])}))).apply(this,arguments)}function ze(Ie){var Ye=Ie.missingSchema,Le=Ie.missingRef;if(this.refs[Ye])throw new Error("AnySchema ".concat(Ye," is loaded but ").concat(Le," cannot be resolved"))}function ot(Ie){return B.apply(this,arguments)}function B(){return(B=Zi(vn().mark(function Ie(Ye){var Le;return vn().wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return _t.next=2,ne.call(this,Ye);case 2:if(Le=_t.sent,this.refs[Ye]){_t.next=6;break}return _t.next=6,fe.call(this,Le.$schema);case 6:this.refs[Ye]||this.addSchema(Le,Ye,N);case 7:case"end":return _t.stop()}},Ie,this)}))).apply(this,arguments)}function ne(Ie){return ie.apply(this,arguments)}function ie(){return(ie=Zi(vn().mark(function Ie(Ye){var Le;return vn().wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:if(!(Le=this._loading[Ye])){_t.next=3;break}return _t.abrupt("return",Le);case 3:return _t.prev=3,_t.next=6,this._loading[Ye]=Y(Ye);case 6:return _t.abrupt("return",_t.sent);case 7:return _t.prev=7,delete this._loading[Ye],_t.finish(7);case 10:case"end":return _t.stop()}},Ie,this,[[3,,7,10]])}))).apply(this,arguments)}}},{key:"addSchema",value:function(F,N,Y){var V,oe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.validateSchema;if(Array.isArray(F)){var fe,Fe=Re(F);try{for(Fe.s();!(fe=Fe.n()).done;)this.addSchema(fe.value,void 0,Y,oe)}catch(ze){Fe.e(ze)}finally{Fe.f()}return this}if("object"===bn(F)){var tt=this.opts.schemaId;if(void 0!==(V=F[tt])&&"string"!=typeof V)throw new Error("schema ".concat(tt," must be string"))}return N=(0,l.normalizeId)(N||V),this._checkUnique(N),this.schemas[N]=this._addSchema(F,Y,N,oe,!0),this}},{key:"addMetaSchema",value:function(F,N){return this.addSchema(F,N,!0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.opts.validateSchema),this}},{key:"validateSchema",value:function(F,N){if("boolean"==typeof F)return!0;var Y;if(void 0!==(Y=F.$schema)&&"string"!=typeof Y)throw new Error("$schema must be a string");if(!(Y=Y||this.opts.defaultMeta||this.defaultMeta()))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var V=this.validate(Y,F);if(!V&&N){var oe="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(oe);this.logger.error(oe)}return V}},{key:"getSchema",value:function(F){for(var N;"string"==typeof(N=S.call(this,F));)F=N;if(void 0===N){var V=new s.SchemaEnv({schema:{},schemaId:this.opts.schemaId});if(!(N=s.resolveSchema.call(this,V,F)))return;this.refs[F]=N}return N.validate||this._compileSchemaEnv(N)}},{key:"removeSchema",value:function(F){if(F instanceof RegExp)return this._removeAllSchemas(this.schemas,F),this._removeAllSchemas(this.refs,F),this;switch(bn(F)){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":var N=S.call(this,F);return"object"==bn(N)&&this._cache.delete(N.schema),delete this.schemas[F],delete this.refs[F],this;case"object":this._cache.delete(F);var V=F[this.opts.schemaId];return V&&(V=(0,l.normalizeId)(V),delete this.schemas[V],delete this.refs[V]),this;default:throw new Error("ajv.removeSchema: invalid parameter")}}},{key:"addVocabulary",value:function(F){var N,Y=Re(F);try{for(Y.s();!(N=Y.n()).done;)this.addKeyword(N.value)}catch(oe){Y.e(oe)}finally{Y.f()}return this}},{key:"addKeyword",value:function(F,N){var Y,V=this;if("string"==typeof F)Y=F,"object"==bn(N)&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),N.keyword=Y);else{if("object"!=bn(F)||void 0!==N)throw new Error("invalid addKeywords parameters");if(Y=(N=F).keyword,Array.isArray(Y)&&!Y.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(re.call(this,Y,N),!N)return(0,u.eachItem)(Y,function(fe){return L.call(V,fe)}),this;Z.call(this,N);var oe=Ze(Ze({},N),{},{type:(0,c.getJSONTypes)(N.type),schemaType:(0,c.getJSONTypes)(N.schemaType)});return(0,u.eachItem)(Y,0===oe.type.length?function(fe){return L.call(V,fe,oe)}:function(fe){return oe.type.forEach(function(Fe){return L.call(V,fe,oe,Fe)})}),this}},{key:"getKeyword",value:function(F){var N=this.RULES.all[F];return"object"==bn(N)?N.definition:!!N}},{key:"removeKeyword",value:function(F){var N=this.RULES;delete N.keywords[F],delete N.all[F];var Y,V=Re(N.rules);try{for(V.s();!(Y=V.n()).done;){var oe=Y.value,fe=oe.rules.findIndex(function(Fe){return Fe.keyword===F});fe>=0&&oe.rules.splice(fe,1)}}catch(Fe){V.e(Fe)}finally{V.f()}return this}},{key:"addFormat",value:function(F,N){return"string"==typeof N&&(N=new RegExp(N)),this.formats[F]=N,this}},{key:"errorsText",value:function(){var F=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.errors,N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Y=N.separator,V=void 0===Y?", ":Y,oe=N.dataVar,fe=void 0===oe?"data":oe;return F&&0!==F.length?F.map(function(Fe){return"".concat(fe).concat(Fe.instancePath," ").concat(Fe.message)}).reduce(function(Fe,xe){return Fe+V+xe}):"No errors"}},{key:"$dataMetaSchema",value:function(F,N){var Y=this.RULES.all;F=JSON.parse(JSON.stringify(F));var V,oe=Re(N);try{for(oe.s();!(V=oe.n()).done;){var fe,Fe=V.value.split("/").slice(1),xe=F,tt=Re(Fe);try{for(tt.s();!(fe=tt.n()).done;)xe=xe[fe.value]}catch(ie){tt.e(ie)}finally{tt.f()}for(var ze in Y){var ot=Y[ze];if("object"==bn(ot)){var ne=xe[ze];ot.definition.$data&&ne&&(xe[ze]=he(ne))}}}}catch(ie){oe.e(ie)}finally{oe.f()}return F}},{key:"_removeAllSchemas",value:function(F,N){for(var Y in F){var V=F[Y];N&&!N.test(Y)||("string"==typeof V?delete F[Y]:V&&!V.meta&&(this._cache.delete(V.schema),delete F[Y]))}}},{key:"_addSchema",value:function(F,N,Y){var V,oe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.validateSchema,fe=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.opts.addUsedSchema,Fe=this.opts.schemaId;if("object"==bn(F))V=F[Fe];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof F)throw new Error("schema must be object or boolean")}var xe=this._cache.get(F);if(void 0!==xe)return xe;Y=(0,l.normalizeId)(V||Y);var tt=l.getSchemaRefs.call(this,F,Y);return xe=new s.SchemaEnv({schema:F,schemaId:Fe,meta:N,baseId:Y,localRefs:tt}),this._cache.set(xe.schema,xe),fe&&!Y.startsWith("#")&&(Y&&this._checkUnique(Y),this.refs[Y]=xe),oe&&this.validateSchema(F,!0),xe}},{key:"_checkUnique",value:function(F){if(this.schemas[F]||this.refs[F])throw new Error('schema with key or id "'.concat(F,'" already exists'))}},{key:"_compileSchemaEnv",value:function(F){if(F.meta?this._compileMetaSchema(F):s.compileSchema.call(this,F),!F.validate)throw new Error("ajv implementation error");return F.validate}},{key:"_compileMetaSchema",value:function(F){var N=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,F)}finally{this.opts=N}}}]),E}();function C(E,F,N){var Y=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"error";for(var V in E){var oe=V;oe in F&&this.logger[Y]("".concat(N,": option ").concat(V,". ").concat(E[oe]))}}function S(E){return E=(0,l.normalizeId)(E),this.schemas[E]||this.refs[E]}function M(){var E=this.opts.schemas;if(E)if(Array.isArray(E))this.addSchema(E);else for(var F in E)this.addSchema(E[F],F)}function $(){for(var E in this.opts.formats){var F=this.opts.formats[E];F&&this.addFormat(E,F)}}function G(E){if(Array.isArray(E))this.addVocabulary(E);else for(var F in this.logger.warn("keywords option as map is deprecated, pass array"),E){var N=E[F];N.keyword||(N.keyword=F),this.addKeyword(N)}}function R(){var E,F=Ze({},this.opts),N=Re(p);try{for(N.s();!(E=N.n()).done;)delete F[E.value]}catch(Y){N.e(Y)}finally{N.f()}return F}t.default=_,_.ValidationError=i.default,_.MissingRefError=r.default;var z={log:function(){},warn:function(){},error:function(){}},q=/^[a-z_$][a-z0-9_$:-]*$/i;function re(E,F){var N=this.RULES;if((0,u.eachItem)(E,function(Y){if(N.keywords[Y])throw new Error("Keyword ".concat(Y," is already defined"));if(!q.test(Y))throw new Error("Keyword ".concat(Y," has invalid name"))}),F&&F.$data&&!("code"in F)&&!("validate"in F))throw new Error('$data keyword must have "code" or "validate" function')}function L(E,F,N){var Y,V=this,oe=F?.post;if(N&&oe)throw new Error('keyword with "post" flag cannot have "type"');var fe=this.RULES,Fe=oe?fe.post:fe.rules.find(function(tt){return tt.type===N});if(Fe||fe.rules.push(Fe={type:N,rules:[]}),fe.keywords[E]=!0,F){var xe={keyword:E,definition:Ze(Ze({},F),{},{type:(0,c.getJSONTypes)(F.type),schemaType:(0,c.getJSONTypes)(F.schemaType)})};F.before?X.call(this,Fe,xe,F.before):Fe.rules.push(xe),fe.all[E]=xe,null===(Y=F.implements)||void 0===Y||Y.forEach(function(tt){return V.addKeyword(tt)})}}function X(E,F,N){var Y=E.rules.findIndex(function(V){return V.keyword===N});Y>=0?E.rules.splice(Y,0,F):(E.rules.push(F),this.logger.warn("rule ".concat(N," is not defined")))}function Z(E){var F=E.metaSchema;void 0!==F&&(E.$data&&this.opts.$data&&(F=he(F)),E.validateSchema=this.compile(F,!0))}var H={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function he(E){return{anyOf:[E,H]}}}(Xpe);var IP={},FP={},NP={};Object.defineProperty(NP,"__esModule",{value:!0}),NP.default={keyword:"id",code:function(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};var ig={};Object.defineProperty(ig,"__esModule",{value:!0}),ig.callRef=ig.getValidate=void 0;var kit=TP(),wme=dd(),ec=xr(),U0=Sp(),Cme=Zl,jD=Hr,Sit={keyword:"$ref",schemaType:"string",code:function(t){var n=t.gen,e=t.schema,i=t.it,r=i.baseId,o=i.schemaEnv,s=i.validateName,a=i.opts,l=i.self,c=o.root;if(("#"===e||"#/"===e)&&r===c.baseId)return function(){if(o===c)return PD(t,s,o,o.$async);var m=n.scopeValue("root",{ref:c});return PD(t,(0,ec._)($Y||($Y=Ae(["",".validate"])),m),c,c.$async)}();var u,d,h,f,m,g,p=Cme.resolveRef.call(l,c,r,e);if(void 0===p)throw new kit.default(i.opts.uriResolver,r,e);return p instanceof Cme.SchemaEnv?(g=kme(t,m=p),void PD(t,g,m,m.$async)):(u=p,d=n.scopeValue("schema",!0===a.code.source?{ref:u,code:(0,ec.stringify)(u)}:{ref:u}),h=n.name("valid"),f=t.subschema({schema:u,dataTypes:[],schemaPath:ec.nil,topSchemaRef:d,errSchemaPath:e},h),t.mergeEvaluated(f),void t.ok(h))}};function kme(t,n){var e=t.gen;return n.validate?e.scopeValue("validate",{ref:n.validate}):(0,ec._)(BY||(BY=Ae(["",".validate"])),e.scopeValue("wrapper",{ref:n}))}function PD(t,n,e,i){var r=t.gen,o=t.it,s=o.allErrors,a=o.schemaEnv,l=o.opts.passContext?U0.default.this:ec.nil;function c(d){var h=(0,ec._)(zY||(zY=Ae(["",".errors"])),d);r.assign(U0.default.vErrors,(0,ec._)(UY||(UY=Ae([""," === null ? "," : ",".concat(",")"])),U0.default.vErrors,h,U0.default.vErrors,h)),r.assign(U0.default.errors,(0,ec._)(GY||(GY=Ae(["",".length"])),U0.default.vErrors))}function u(d){var h;if(o.opts.unevaluated){var f=null===(h=e?.validate)||void 0===h?void 0:h.evaluated;if(!0!==o.props)if(f&&!f.dynamicProps)void 0!==f.props&&(o.props=jD.mergeEvaluated.props(r,f.props,o.props));else{var p=r.var("props",(0,ec._)(WY||(WY=Ae(["",".evaluated.props"])),d));o.props=jD.mergeEvaluated.props(r,p,o.props,ec.Name)}if(!0!==o.items)if(f&&!f.dynamicItems)void 0!==f.items&&(o.items=jD.mergeEvaluated.items(r,f.items,o.items));else{var m=r.var("items",(0,ec._)(qY||(qY=Ae(["",".evaluated.items"])),d));o.items=jD.mergeEvaluated.items(r,m,o.items,ec.Name)}}}i?function(){if(!a.$async)throw new Error("async schema referenced by sync schema");var d=r.let("valid");r.try(function(){r.code((0,ec._)(VY||(VY=Ae(["await ",""])),(0,wme.callValidateCode)(t,n,l))),u(n),s||r.assign(d,!0)},function(h){r.if((0,ec._)(HY||(HY=Ae(["!("," instanceof ",")"])),h,o.ValidationError),function(){return r.throw(h)}),c(h),s||r.assign(d,!1)}),t.ok(d)}():t.result((0,wme.callValidateCode)(t,n,l),function(){return u(n)},function(){return c(n)})}ig.getValidate=kme,ig.callRef=PD,ig.default=Sit,Object.defineProperty(FP,"__esModule",{value:!0}),FP.default=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",NP.default,ig.default];var OP={},jP={};Object.defineProperty(jP,"__esModule",{value:!0});var LD=xr(),Tp=LD.operators,RD={maximum:{okStr:"<=",ok:Tp.LTE,fail:Tp.GT},minimum:{okStr:">=",ok:Tp.GTE,fail:Tp.LT},exclusiveMaximum:{okStr:"<",ok:Tp.LT,fail:Tp.GTE},exclusiveMinimum:{okStr:">",ok:Tp.GT,fail:Tp.LTE}},Eit={message:function(t){var n=t.keyword,e=t.schemaCode;return(0,LD.str)(XY||(XY=Ae(["must be "," ",""])),RD[n].okStr,e)},params:function(t){var n=t.keyword,e=t.schemaCode;return(0,LD._)(YY||(YY=Ae(["{comparison: ",", limit: ","}"])),RD[n].okStr,e)}},Ait={keyword:Object.keys(RD),type:"number",schemaType:"number",$data:!0,error:Eit,code:function(t){var n=t.keyword,e=t.data,i=t.schemaCode;t.fail$data((0,LD._)(JY||(JY=Ae([""," "," "," || isNaN(",")"])),e,RD[n].fail,i,e))}};jP.default=Ait;var PP={};Object.defineProperty(PP,"__esModule",{value:!0});var N_=xr(),Mit={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:function(t){var n=t.schemaCode;return(0,N_.str)(KY||(KY=Ae(["must be multiple of ",""])),n)},params:function(t){var n=t.schemaCode;return(0,N_._)(QY||(QY=Ae(["{multipleOf: ","}"])),n)}},code:function(t){var e=t.data,i=t.schemaCode,r=t.it.opts.multipleOfPrecision,o=t.gen.let("res"),s=r?(0,N_._)(ZY||(ZY=Ae(["Math.abs(Math.round(",") - ",") > 1e-",""])),o,o,r):(0,N_._)(eJ||(eJ=Ae([""," !== parseInt(",")"])),o,o);t.fail$data((0,N_._)(tJ||(tJ=Ae(["("," === 0 || ("," = ","/",", ","))"])),i,o,e,i,s))}};PP.default=Mit;var LP={},RP={};function Sme(t){for(var n,e=t.length,i=0,r=0;r=55296&&n<=56319&&r=a.loopRequired;if(s.allErrors?function(){if(l||o)t.block$data(P_.nil,g);else{var v,y=Re(e);try{for(y.s();!(v=y.n()).done;)(0,j_.checkReportMissingProp)(t,v.value)}catch(C){y.e(C)}finally{y.f()}}}():function(){var v=n.let("missing");if(l||o){var y=n.let("valid",!0);t.block$data(y,function(){return C=y,t.setParams({missingProperty:_=v}),void n.forOf(_,i,function(){n.assign(C,(0,j_.propertyInData)(n,r,_,a.ownProperties)),n.if((0,P_.not)(C),function(){t.error(),n.break()})},P_.nil);var _,C}),t.ok(y)}else n.if((0,j_.checkMissingProp)(t,e,v)),(0,j_.reportMissingProp)(t,v),n.else()}(),a.strictRequired){var c,u=t.parentSchema.properties,d=t.it.definedProperties,h=Re(e);try{for(h.s();!(c=h.n()).done;){var f=c.value;if(void 0===u?.[f]&&!d.has(f)){var p=s.schemaEnv.baseId+s.errSchemaPath,m='required property "'.concat(f,'" is not defined at "').concat(p,'" (strictRequired)');(0,$it.checkStrictMode)(s,m,s.opts.strictRequired)}}}catch(v){h.e(v)}finally{h.f()}}}function g(){n.forOf("prop",i,function(v){t.setParams({missingProperty:v}),n.if((0,j_.noPropertyInData)(n,r,v,a.ownProperties),function(){return t.error()})})}}};VP.default=Bit;var HP={};Object.defineProperty(HP,"__esModule",{value:!0});var L_=xr(),Vit={message:function(t){var e=t.schemaCode,i="maxItems"===t.keyword?"more":"fewer";return(0,L_.str)(gJ||(gJ=Ae(["must NOT have "," than "," items"])),i,e)},params:function(t){var n=t.schemaCode;return(0,L_._)(vJ||(vJ=Ae(["{limit: ","}"])),n)}},Hit={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Vit,code:function(t){var e=t.data,i=t.schemaCode,r="maxItems"===t.keyword?L_.operators.GT:L_.operators.LT;t.fail$data((0,L_._)(yJ||(yJ=Ae(["",".length "," ",""])),e,r,i))}};HP.default=Hit;var zP={},R_={};Object.defineProperty(R_,"__esModule",{value:!0});var Dme=dme;Dme.code='require("ajv/dist/runtime/equal").default',R_.default=Dme,Object.defineProperty(zP,"__esModule",{value:!0});var UP=I_,Wa=xr(),zit=Hr,Uit=R_,Git={message:function(t){var n=t.params,e=n.i,i=n.j;return(0,Wa.str)(bJ||(bJ=Ae(["must NOT have duplicate items (items ## "," and "," are identical)"])),i,e)},params:function(t){var n=t.params,e=n.i,i=n.j;return(0,Wa._)(_J||(_J=Ae(["{i: ",", j: ","}"])),e,i)}},Wit={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Git,code:function(t){var n=t.gen,e=t.data,o=t.parentSchema,s=t.schemaCode,a=t.it;if(t.$data||t.schema){var l=n.let("valid"),c=o.items?(0,UP.getSchemaTypes)(o.items):[];t.block$data(l,function(){var h=n.let("i",(0,Wa._)(wJ||(wJ=Ae(["",".length"])),e)),f=n.let("j");t.setParams({i:h,j:f}),n.assign(l,!0),n.if((0,Wa._)(CJ||(CJ=Ae([""," > 1"])),h),function(){return(c.length>0&&!c.some(function(p){return"object"===p||"array"===p})?u:d)(h,f)})},(0,Wa._)(xJ||(xJ=Ae([""," === false"])),s)),t.ok(l)}function u(h,f){var p=n.name("item"),m=(0,UP.checkDataTypes)(c,p,a.opts.strictNumbers,UP.DataType.Wrong),g=n.const("indices",(0,Wa._)(kJ||(kJ=Ae(["{}"]))));n.for((0,Wa._)(SJ||(SJ=Ae([";","--;"])),h),function(){n.let(p,(0,Wa._)(DJ||(DJ=Ae(["","[","]"])),e,h)),n.if(m,(0,Wa._)(TJ||(TJ=Ae(["continue"])))),c.length>1&&n.if((0,Wa._)(EJ||(EJ=Ae(["typeof ",' == "string"'])),p),(0,Wa._)(AJ||(AJ=Ae(["",' += "_"'])),p)),n.if((0,Wa._)(MJ||(MJ=Ae(["typeof ","[",'] == "number"'])),g,p),function(){n.assign(f,(0,Wa._)(IJ||(IJ=Ae(["","[","]"])),g,p)),t.error(),n.assign(l,!1).break()}).code((0,Wa._)(FJ||(FJ=Ae(["","[","] = ",""])),g,p,h))})}function d(h,f){var p=(0,zit.useFunc)(n,Uit.default),m=n.name("outer");n.label(m).for((0,Wa._)(NJ||(NJ=Ae([";","--;"])),h),function(){return n.for((0,Wa._)(OJ||(OJ=Ae([""," = ","; ","--;"])),f,h,f),function(){return n.if((0,Wa._)(jJ||(jJ=Ae(["","(","[","], ","[","])"])),p,e,h,e,f),function(){t.error(),n.assign(l,!1).break(m)})})})}}};zP.default=Wit;var GP={};Object.defineProperty(GP,"__esModule",{value:!0});var WP=xr(),qit=Hr,Xit=R_,Yit={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:function(t){var n=t.schemaCode;return(0,WP._)(PJ||(PJ=Ae(["{allowedValue: ","}"])),n)}},code:function(t){var n=t.gen,e=t.data,r=t.schemaCode,o=t.schema;t.$data||o&&"object"==bn(o)?t.fail$data((0,WP._)(LJ||(LJ=Ae(["!","(",", ",")"])),(0,qit.useFunc)(n,Xit.default),e,r)):t.fail((0,WP._)(RJ||(RJ=Ae([""," !== ",""])),o,e))}};GP.default=Yit;var qP={};Object.defineProperty(qP,"__esModule",{value:!0});var $_=xr(),Jit=Hr,Kit=R_,Qit={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:function(t){var n=t.schemaCode;return(0,$_._)($J||($J=Ae(["{allowedValues: ","}"])),n)}},code:function(t){var n=t.gen,e=t.data,i=t.$data,r=t.schema,o=t.schemaCode,s=t.it;if(!i&&0===r.length)throw new Error("enum must have non-empty array");var a,l,u=function(){return a??(a=(0,Jit.useFunc)(n,Kit.default))};if(r.length>=s.opts.loopEnum||i)l=n.let("valid"),t.block$data(l,function(){n.assign(l,!1),n.forOf("v",o,function(h){return n.if((0,$_._)(BJ||(BJ=Ae(["","(",", ",")"])),u(),e,h),function(){return n.assign(l,!0).break()})})});else{if(!Array.isArray(r))throw new Error("ajv implementation error");var d=n.const("vSchema",o);l=$_.or.apply(void 0,si(r.map(function(h,f){return p=d,"object"===bn(g=r[m=f])&&null!==g?(0,$_._)(VJ||(VJ=Ae(["","(",", ","[","])"])),u(),e,p,m):(0,$_._)(HJ||(HJ=Ae([""," === ",""])),e,g);var p,m,g})))}t.pass(l)}};qP.default=Qit,Object.defineProperty(OP,"__esModule",{value:!0}),OP.default=[jP.default,PP.default,LP.default,$P.default,BP.default,VP.default,HP.default,zP.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},GP.default,qP.default];var XP={},G0={};Object.defineProperty(G0,"__esModule",{value:!0}),G0.validateAdditionalItems=void 0;var og=xr(),YP=Hr,crt={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:function(t){var n=t.params.len;return(0,og.str)(zJ||(zJ=Ae(["must NOT have more than "," items"])),n)},params:function(t){var n=t.params.len;return(0,og._)(UJ||(UJ=Ae(["{limit: ","}"])),n)}},code:function(t){var e=t.it,i=t.parentSchema.items;Array.isArray(i)?Tme(t,i):(0,YP.checkStrictMode)(e,'"additionalItems" is ignored when "items" is not an array of schemas')}};function Tme(t,n){var e=t.gen,i=t.schema,r=t.data,o=t.keyword,s=t.it;s.items=!0;var a=e.const("len",(0,og._)(GJ||(GJ=Ae(["",".length"])),r));if(!1===i)t.setParams({len:n.length}),t.pass((0,og._)(WJ||(WJ=Ae([""," <= ",""])),a,n.length));else if("object"==bn(i)&&!(0,YP.alwaysValidSchema)(s,i)){var l=e.var("valid",(0,og._)(qJ||(qJ=Ae([""," <= ",""])),a,n.length));e.if((0,og.not)(l),function(){return c=l,void e.forRange("i",n.length,a,function(u){t.subschema({keyword:o,dataProp:u,dataPropType:YP.Type.Num},c),s.allErrors||e.if((0,og.not)(c),function(){return e.break()})});var c}),t.ok(l)}}G0.validateAdditionalItems=Tme,G0.default=crt;var JP={},W0={};Object.defineProperty(W0,"__esModule",{value:!0}),W0.validateTuple=void 0;var Eme=xr(),BD=Hr,urt=dd(),drt={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code:function(t){var n=t.schema,e=t.it;if(Array.isArray(n))return Ame(t,"additionalItems",n);e.items=!0,(0,BD.alwaysValidSchema)(e,n)||t.ok((0,urt.validateArray)(t))}};function Ame(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.schema,i=t.gen,o=t.data,s=t.keyword,a=t.it;(function u(d){var h=a.opts,f=a.errSchemaPath,p=e.length;if(h.strictTuples&&!(p===d.minItems&&(p===d.maxItems||!1===d[n]))){var g='"'.concat(s,'" is ').concat(p,"-tuple, but minItems or maxItems/").concat(n,' are not specified or different at path "').concat(f,'"');(0,BD.checkStrictMode)(a,g,h.strictTuples)}})(t.parentSchema),a.opts.unevaluated&&e.length&&!0!==a.items&&(a.items=BD.mergeEvaluated.items(i,e.length,a.items));var l=i.name("valid"),c=i.const("len",(0,Eme._)(XJ||(XJ=Ae(["",".length"])),o));e.forEach(function(d,h){(0,BD.alwaysValidSchema)(a,d)||(i.if((0,Eme._)(YJ||(YJ=Ae([""," > ",""])),c,h),function(){return t.subschema({keyword:s,schemaProp:h,dataProp:h},l)}),t.ok(l))})}W0.validateTuple=Ame,W0.default=drt,Object.defineProperty(JP,"__esModule",{value:!0});var hrt=W0,frt={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:function(t){return(0,hrt.validateTuple)(t,"items")}};JP.default=frt;var KP={};Object.defineProperty(KP,"__esModule",{value:!0});var Mme=xr(),prt=Hr,mrt=dd(),grt=G0,vrt={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:function(t){var n=t.params.len;return(0,Mme.str)(JJ||(JJ=Ae(["must NOT have more than "," items"])),n)},params:function(t){var n=t.params.len;return(0,Mme._)(KJ||(KJ=Ae(["{limit: ","}"])),n)}},code:function(t){var n=t.schema,i=t.it,r=t.parentSchema.prefixItems;i.items=!0,(0,prt.alwaysValidSchema)(i,n)||(r?(0,grt.validateAdditionalItems)(t,r):t.ok((0,mrt.validateArray)(t)))}};KP.default=vrt;var QP={};Object.defineProperty(QP,"__esModule",{value:!0});var du=xr(),VD=Hr,yrt={message:function(t){var n=t.params,e=n.min,i=n.max;return void 0===i?(0,du.str)(QJ||(QJ=Ae(["must contain at least "," valid item(s)"])),e):(0,du.str)(ZJ||(ZJ=Ae(["must contain at least "," and no more than "," valid item(s)"])),e,i)},params:function(t){var n=t.params,e=n.min,i=n.max;return void 0===i?(0,du._)(eK||(eK=Ae(["{minContains: ","}"])),e):(0,du._)(tK||(tK=Ae(["{minContains: ",", maxContains: ","}"])),e,i)}},brt={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:yrt,code:function(t){var n,e,i=t.gen,r=t.schema,o=t.parentSchema,s=t.data,a=t.it,l=o.minContains;a.opts.next?(n=void 0===l?1:l,e=o.maxContains):n=1;var u=i.const("len",(0,du._)(nK||(nK=Ae(["",".length"])),s));if(t.setParams({min:n,max:e}),void 0!==e||0!==n){if(void 0!==e&&n>e)return(0,VD.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void t.fail();if((0,VD.alwaysValidSchema)(a,r)){var d=(0,du._)(iK||(iK=Ae([""," >= ",""])),u,n);return void 0!==e&&(d=(0,du._)(rK||(rK=Ae([""," && "," <= ",""])),d,u,e)),void t.pass(d)}a.items=!0;var h=i.name("valid");void 0===e&&1===n?p(h,function(){return i.if(h,function(){return i.break()})}):0===n?(i.let(h,!0),void 0!==e&&i.if((0,du._)(oK||(oK=Ae(["",".length > 0"])),s),f)):(i.let(h,!1),f()),t.result(h,function(){return t.reset()})}else(0,VD.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');function f(){var m=i.name("_valid"),g=i.let("count",0);p(m,function(){return i.if(m,function(){return v=g,i.code((0,du._)(sK||(sK=Ae(["","++"])),v)),void(void 0===e?i.if((0,du._)(aK||(aK=Ae([""," >= ",""])),v,n),function(){return i.assign(h,!0).break()}):(i.if((0,du._)(lK||(lK=Ae([""," > ",""])),v,e),function(){return i.assign(h,!1).break()}),1===n?i.assign(h,!0):i.if((0,du._)(cK||(cK=Ae([""," >= ",""])),v,n),function(){return i.assign(h,!0)})));var v})})}function p(m,g){i.forRange("i",0,u,function(v){t.subschema({keyword:"contains",dataProp:v,dataPropType:VD.Type.Num,compositeRule:!0},m),g()})}}};QP.default=brt;var Ime={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;var n=xr(),e=Hr,i=dd();t.error={message:function(a){var l=a.params,c=l.property,d=l.deps,h=1===l.depsCount?"property":"properties";return(0,n.str)(uK||(uK=Ae(["must have "," "," when property "," is present"])),h,d,c)},params:function(a){var l=a.params,c=l.property,u=l.depsCount,d=l.deps,h=l.missingProperty;return(0,n._)(dK||(dK=Ae(["{property: ",",\n missingProperty: ",",\n depsCount: ",",\n deps: ","}"])),c,h,u,d)}};var r={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code:function(a){var l=Un(function(d){var h=d.schema,f={},p={};for(var m in h)"__proto__"!==m&&((Array.isArray(h[m])?f:p)[m]=h[m]);return[f,p]}(a),2),u=l[1];o(a,l[0]),s(a,u)}};function o(a){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.schema,c=a.gen,u=a.data,d=a.it;if(0!==Object.keys(l).length){var h=c.let("missing"),f=function(m){var g=l[m];if(0===g.length)return"continue";var v=(0,i.propertyInData)(c,u,m,d.opts.ownProperties);a.setParams({property:m,depsCount:g.length,deps:g.join(", ")}),d.allErrors?c.if(v,function(){var y,_=Re(g);try{for(_.s();!(y=_.n()).done;)(0,i.checkReportMissingProp)(a,y.value)}catch(S){_.e(S)}finally{_.f()}}):(c.if((0,n._)(hK||(hK=Ae([""," && (",")"])),v,(0,i.checkMissingProp)(a,g,h))),(0,i.reportMissingProp)(a,h),c.else())};for(var p in l)f(p)}}function s(a){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.schema,c=a.gen,u=a.data,d=a.keyword,h=a.it,f=c.name("valid"),p=function(g){if((0,e.alwaysValidSchema)(h,l[g]))return"continue";c.if((0,i.propertyInData)(c,u,g,h.opts.ownProperties),function(){var v=a.subschema({keyword:d,schemaProp:g},f);a.mergeValidEvaluated(v,f)},function(){return c.var(f,!0)}),a.ok(f)};for(var m in l)p(m)}t.validatePropertyDeps=o,t.validateSchemaDeps=s,t.default=r}(Ime);var ZP={};Object.defineProperty(ZP,"__esModule",{value:!0});var Fme=xr(),_rt=Hr,xrt={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:function(t){var n=t.params;return(0,Fme._)(fK||(fK=Ae(["{propertyName: ","}"])),n.propertyName)}},code:function(t){var n=t.gen,i=t.data,r=t.it;if(!(0,_rt.alwaysValidSchema)(r,t.schema)){var o=n.name("valid");n.forIn("key",i,function(s){t.setParams({propertyName:s}),t.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},o),n.if((0,Fme.not)(o),function(){t.error(!0),r.allErrors||n.break()})}),t.ok(o)}}};ZP.default=xrt;var HD={};Object.defineProperty(HD,"__esModule",{value:!0});var zD=dd(),pd=xr(),wrt=Sp(),UD=Hr,Crt={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:function(t){var n=t.params;return(0,pd._)(pK||(pK=Ae(["{additionalProperty: ","}"])),n.additionalProperty)}},code:function(t){var n=t.gen,e=t.schema,i=t.parentSchema,r=t.data,o=t.errsCount,s=t.it;if(!o)throw new Error("ajv implementation error");var a=s.allErrors,l=s.opts;if(s.props=!0,"all"===l.removeAdditional||!(0,UD.alwaysValidSchema)(s,e)){var c=(0,zD.allSchemaProperties)(i.properties),u=(0,zD.allSchemaProperties)(i.patternProperties);n.forIn("key",r,function(p){c.length||u.length?n.if(function(m){var g;if(c.length>8){var v=(0,UD.schemaRefOrVal)(s,i.properties,"properties");g=(0,zD.isOwnProperty)(n,v,m)}else g=c.length?pd.or.apply(void 0,si(c.map(function(y){return(0,pd._)(gK||(gK=Ae([""," === ",""])),m,y)}))):pd.nil;return u.length&&(g=pd.or.apply(void 0,[g].concat(si(u.map(function(y){return(0,pd._)(vK||(vK=Ae(["",".test(",")"])),(0,zD.usePattern)(t,y),m)}))))),(0,pd.not)(g)}(p),function(){return h(p)}):h(p)}),t.ok((0,pd._)(mK||(mK=Ae([""," === ",""])),o,wrt.default.errors))}function d(p){n.code((0,pd._)(yK||(yK=Ae(["delete ","[","]"])),r,p))}function h(p){if("all"===l.removeAdditional||l.removeAdditional&&!1===e)d(p);else{if(!1===e)return t.setParams({additionalProperty:p}),t.error(),void(a||n.break());if("object"==bn(e)&&!(0,UD.alwaysValidSchema)(s,e)){var m=n.name("valid");"failing"===l.removeAdditional?(f(p,m,!1),n.if((0,pd.not)(m),function(){t.reset(),d(p)})):(f(p,m),a||n.if((0,pd.not)(m),function(){return n.break()}))}}}function f(p,m,g){var v={keyword:"additionalProperties",dataProp:p,dataPropType:UD.Type.Str};!1===g&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(v,m)}}};HD.default=Crt;var eL={};Object.defineProperty(eL,"__esModule",{value:!0});var krt=MD(),Nme=dd(),tL=Hr,Ome=HD,Srt={keyword:"properties",type:"object",schemaType:"object",code:function(t){var n=t.gen,e=t.schema,r=t.data,o=t.it;"all"===o.opts.removeAdditional&&void 0===t.parentSchema.additionalProperties&&Ome.default.code(new krt.KeywordCxt(o,Ome.default,"additionalProperties"));var s,a=(0,Nme.allSchemaProperties)(e),l=Re(a);try{for(l.s();!(s=l.n()).done;)o.definedProperties.add(s.value)}catch(v){l.e(v)}finally{l.f()}o.opts.unevaluated&&a.length&&!0!==o.props&&(o.props=tL.mergeEvaluated.props(n,(0,tL.toHash)(a),o.props));var v,u=a.filter(function(v){return!(0,tL.alwaysValidSchema)(o,e[v])});if(0!==u.length){var d,h=n.name("valid"),f=Re(u);try{for(f.s();!(d=f.n()).done;){var p=d.value;o.opts.useDefaults&&!o.compositeRule&&void 0!==e[v=p].default?g(p):(n.if((0,Nme.propertyInData)(n,r,p,o.opts.ownProperties)),g(p),o.allErrors||n.else().var(h,!0),n.endIf()),t.it.definedProperties.add(p),t.ok(h)}}catch(v){f.e(v)}finally{f.f()}}function g(v){t.subschema({keyword:"properties",schemaProp:v,dataProp:v},h)}}};eL.default=Srt;var nL={};Object.defineProperty(nL,"__esModule",{value:!0});var jme=dd(),GD=xr(),Pme=Hr,Lme=Hr,Drt={keyword:"patternProperties",type:"object",schemaType:"object",code:function(t){var n=t.gen,e=t.schema,i=t.data,r=t.parentSchema,o=t.it,s=o.opts,a=(0,jme.allSchemaProperties)(e),l=a.filter(function(p){return(0,Pme.alwaysValidSchema)(o,e[p])});if(0!==a.length&&(l.length!==a.length||o.opts.unevaluated&&!0!==o.props)){var c=s.strictSchema&&!s.allowMatchingProperties&&r.properties,u=n.name("valid");!0===o.props||o.props instanceof GD.Name||(o.props=(0,Lme.evaluatedPropsToName)(n,o.props));var d=o.props;!function(){var p,m=Re(a);try{for(m.s();!(p=m.n()).done;){var g=p.value;c&&h(g),o.allErrors?f(g):(n.var(u,!0),f(g),n.if(u))}}catch(v){m.e(v)}finally{m.f()}}()}function h(p){for(var m in c)new RegExp(p).test(m)&&(0,Pme.checkStrictMode)(o,"property ".concat(m," matches pattern ").concat(p," (use allowMatchingProperties)"))}function f(p){n.forIn("key",i,function(m){n.if((0,GD._)(bK||(bK=Ae(["",".test(",")"])),(0,jme.usePattern)(t,p),m),function(){var g=l.includes(p);g||t.subschema({keyword:"patternProperties",schemaProp:p,dataProp:m,dataPropType:Lme.Type.Str},u),o.opts.unevaluated&&!0!==d?n.assign((0,GD._)(_K||(_K=Ae(["","[","]"])),d,m),!0):g||o.allErrors||n.if((0,GD.not)(u),function(){return n.break()})})})}}};nL.default=Drt;var iL={};Object.defineProperty(iL,"__esModule",{value:!0});var Trt=Hr,Ert={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code:function(t){var n=t.gen;if((0,Trt.alwaysValidSchema)(t.it,t.schema))t.fail();else{var r=n.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},r),t.failResult(r,function(){return t.reset()},function(){return t.error()})}},error:{message:"must NOT be valid"}};iL.default=Ert;var rL={};Object.defineProperty(rL,"__esModule",{value:!0});var Art={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:dd().validateUnion,error:{message:"must match a schema in anyOf"}};rL.default=Art;var oL={};Object.defineProperty(oL,"__esModule",{value:!0});var WD=xr(),Mrt=Hr,Irt={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:function(t){var n=t.params;return(0,WD._)(xK||(xK=Ae(["{passingSchemas: ","}"])),n.passing)}},code:function(t){var n=t.gen,e=t.schema,i=t.parentSchema,r=t.it;if(!Array.isArray(e))throw new Error("ajv implementation error");if(!r.opts.discriminator||!i.discriminator){var o=e,s=n.let("valid",!1),a=n.let("passing",null),l=n.name("_valid");t.setParams({passing:a}),n.block(function(){o.forEach(function(c,u){var d;(0,Mrt.alwaysValidSchema)(r,c)?n.var(l,!0):d=t.subschema({keyword:"oneOf",schemaProp:u,compositeRule:!0},l),u>0&&n.if((0,WD._)(wK||(wK=Ae([""," && ",""])),l,s)).assign(s,!1).assign(a,(0,WD._)(CK||(CK=Ae(["[",", ","]"])),a,u)).else(),n.if(l,function(){n.assign(s,!0),n.assign(a,u),d&&t.mergeEvaluated(d,WD.Name)})})}),t.result(s,function(){return t.reset()},function(){return t.error(!0)})}}};oL.default=Irt;var sL={};Object.defineProperty(sL,"__esModule",{value:!0});var Frt=Hr,Nrt={keyword:"allOf",schemaType:"array",code:function(t){var n=t.gen,e=t.schema,i=t.it;if(!Array.isArray(e))throw new Error("ajv implementation error");var r=n.name("valid");e.forEach(function(o,s){if(!(0,Frt.alwaysValidSchema)(i,o)){var a=t.subschema({keyword:"allOf",schemaProp:s},r);t.ok(r),t.mergeEvaluated(a)}})}};sL.default=Nrt;var aL={};Object.defineProperty(aL,"__esModule",{value:!0});var qD=xr(),Rme=Hr,Ort={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:function(t){var n=t.params;return(0,qD.str)(kK||(kK=Ae(['must match "','" schema'])),n.ifClause)},params:function(t){var n=t.params;return(0,qD._)(SK||(SK=Ae(["{failingKeyword: ","}"])),n.ifClause)}},code:function(t){var n=t.gen,e=t.parentSchema,i=t.it;void 0===e.then&&void 0===e.else&&(0,Rme.checkStrictMode)(i,'"if" without "then" and "else" is ignored');var r=$me(i,"then"),o=$me(i,"else");if(r||o){var s,a=n.let("valid",!0),l=n.name("_valid");if(s=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},l),t.mergeEvaluated(s),t.reset(),r&&o){var c=n.let("ifClause");t.setParams({ifClause:c}),n.if(l,u("then",c),u("else",c))}else r?n.if(l,u("then")):n.if((0,qD.not)(l),u("else"));t.pass(a,function(){return t.error(!0)})}function u(d,h){return function(){var f=t.subschema({keyword:d},l);n.assign(a,l),t.mergeValidEvaluated(f,a),h?n.assign(h,(0,qD._)(DK||(DK=Ae(["",""])),d)):t.setParams({ifClause:d})}}}};function $me(t,n){var e=t.schema[n];return void 0!==e&&!(0,Rme.alwaysValidSchema)(t,e)}aL.default=Ort;var lL={};Object.defineProperty(lL,"__esModule",{value:!0});var jrt=Hr,Prt={keyword:["then","else"],schemaType:["object","boolean"],code:function(t){void 0===t.parentSchema.if&&(0,jrt.checkStrictMode)(t.it,'"'.concat(t.keyword,'" without "if" is ignored'))}};lL.default=Prt,Object.defineProperty(XP,"__esModule",{value:!0});var Lrt=G0,Rrt=JP,$rt=W0,Brt=KP,Vrt=QP,Hrt=Ime,zrt=ZP,Urt=HD,Grt=eL,Wrt=nL,qrt=iL,Xrt=rL,Yrt=oL,Jrt=sL,Krt=aL,Qrt=lL;XP.default=function(){var n=[qrt.default,Xrt.default,Yrt.default,Jrt.default,Krt.default,Qrt.default,zrt.default,Urt.default,Hrt.default,Grt.default,Wrt.default];return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.push(Rrt.default,Brt.default):n.push(Lrt.default,$rt.default),n.push(Vrt.default),n};var cL={},uL={};Object.defineProperty(uL,"__esModule",{value:!0});var js=xr(),Zrt={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:function(t){var n=t.schemaCode;return(0,js.str)(TK||(TK=Ae(['must match format "','"'])),n)},params:function(t){var n=t.schemaCode;return(0,js._)(EK||(EK=Ae(["{format: ","}"])),n)}},code:function(t,n){var g,v,h,f,p,m,e=t.gen,i=t.data,o=t.schema,s=t.schemaCode,a=t.it,l=a.opts,c=a.errSchemaPath,u=a.schemaEnv,d=a.self;l.validateFormats&&(t.$data?(h=e.scopeValue("formats",{ref:d.formats,code:l.code.formats}),f=e.const("fDef",(0,js._)(AK||(AK=Ae(["","[","]"])),h,s)),p=e.let("fType"),m=e.let("format"),e.if((0,js._)(MK||(MK=Ae(["typeof ",' == "object" && !('," instanceof RegExp)"])),f,f),function(){return e.assign(p,(0,js._)(IK||(IK=Ae(["",'.type || "string"'])),f)).assign(m,(0,js._)(FK||(FK=Ae(["",".validate"])),f))},function(){return e.assign(p,(0,js._)(NK||(NK=Ae(['"string"'])))).assign(m,f)}),t.fail$data((0,js.or)(!1===l.strictSchema?js.nil:(0,js._)(OK||(OK=Ae([""," && !",""])),s,m),(g=u.$async?(0,js._)(jK||(jK=Ae(["(",".async ? await ","(",") : ","(","))"])),f,m,i,m,i):(0,js._)(PK||(PK=Ae(["","(",")"])),m,i),v=(0,js._)(LK||(LK=Ae(["(typeof ",' == "function" ? '," : ",".test(","))"])),m,g,m,i),(0,js._)(RK||(RK=Ae([""," && "," !== true && "," === "," && !",""])),m,m,p,n,v))))):function(){var h=d.formats[o];if(h){if(!0!==h){var f=Un(function(v){var y=v instanceof RegExp?(0,js.regexpCode)(v):l.code.formats?(0,js._)($K||($K=Ae(["","",""])),l.code.formats,(0,js.getProperty)(o)):void 0,_=e.scopeValue("formats",{key:o,ref:v,code:y});return"object"!=bn(v)||v instanceof RegExp?["string",v,_]:[v.type||"string",v.validate,(0,js._)(BK||(BK=Ae(["",".validate"])),_)]}(h),3),m=f[1],g=f[2];f[0]===n&&t.pass(function(){if("object"==bn(h)&&!(h instanceof RegExp)&&h.async){if(!u.$async)throw new Error("async format in sync schema");return(0,js._)(VK||(VK=Ae(["await ","(",")"])),g,i)}return(0,js._)("function"==typeof m?HK||(HK=Ae(["","(",")"])):zK||(zK=Ae(["",".test(",")"])),g,i)}())}}else!function(){if(!1!==l.strictSchema)throw new Error(v());function v(){return'unknown format "'.concat(o,'" ignored in schema at path "').concat(c,'"')}d.logger.warn(v())}()}())}};uL.default=Zrt,Object.defineProperty(cL,"__esModule",{value:!0}),cL.default=[uL.default];var q0={};Object.defineProperty(q0,"__esModule",{value:!0}),q0.contentVocabulary=q0.metadataVocabulary=void 0,q0.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],q0.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(IP,"__esModule",{value:!0});var iot=cL,Bme=q0,rot=[FP.default,OP.default,(0,XP.default)(),iot.default,Bme.metadataVocabulary,Bme.contentVocabulary];IP.default=rot;var dL={},Vme={};(function(t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,(n=t.DiscrError||(t.DiscrError={})).Tag="tag",n.Mapping="mapping"})(Vme),Object.defineProperty(dL,"__esModule",{value:!0});var X0=xr(),hL=Vme,Hme=Zl,oot=Hr,sot={keyword:"discriminator",type:"object",schemaType:"object",error:{message:function(t){var n=t.params,i=n.tagName;return n.discrError===hL.DiscrError.Tag?'tag "'.concat(i,'" must be string'):'value of tag "'.concat(i,'" must be in oneOf')},params:function(t){var n=t.params,e=n.discrError,i=n.tag,r=n.tagName;return(0,X0._)(UK||(UK=Ae(["{error: ",", tag: ",", tagValue: ","}"])),e,r,i)}},code:function(t){var n=t.gen,e=t.data,i=t.schema,r=t.parentSchema,o=t.it,s=r.oneOf;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");var a=i.propertyName;if("string"!=typeof a)throw new Error("discriminator: requires propertyName");if(i.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");var l=n.let("valid",!1),c=n.const("tag",(0,X0._)(GK||(GK=Ae(["","",""])),e,(0,X0.getProperty)(a)));function u(d){var h=n.name("valid"),f=t.subschema({keyword:"oneOf",schemaProp:d},h);return t.mergeEvaluated(f,X0.Name),h}n.if((0,X0._)(WK||(WK=Ae(["typeof ",' == "string"'])),c),function(){return function(){var d=function(){for(var f,p={},m=C(r),g=!0,v=0;v",9:"Array"},u="UnquotedIdentifier",d="QuotedIdentifier",h="Rbracket",f="Rparen",p="Comma",m="Colon",g="Rbrace",v="Number",y="Current",_="Expref",C="Pipe",$="EQ",G="GT",R="LT",z="GTE",U="LTE",q="NE",re="Flatten",L="Star",X="Filter",Z="Dot",he="Lbrace",E="Lbracket",F="Lparen",N="Literal",Y={".":Z,"*":L,",":p,":":m,"{":he,"}":g,"]":h,"(":F,")":f,"@":y},V={"<":!0,">":!0,"=":!0,"!":!0},oe={" ":!0,"\t":!0,"\n":!0};function fe(B){return B>="0"&&B<="9"||"-"===B}function Fe(){}Fe.prototype={tokenize:function(B){var ne,ie,Ie,Ye,Le=[];for(this._current=0;this._current="a"&&Ye<="z"||Ye>="A"&&Ye<="Z"||"_"===Ye)ne=this._current,ie=this._consumeUnquotedIdentifier(B),Le.push({type:u,value:ie,start:ne});else if(void 0!==Y[B[this._current]])Le.push({type:Y[B[this._current]],value:B[this._current],start:this._current}),this._current++;else if(fe(B[this._current]))Ie=this._consumeNumber(B),Le.push(Ie);else if("["===B[this._current])Ie=this._consumeLBracket(B),Le.push(Ie);else if('"'===B[this._current])ne=this._current,ie=this._consumeQuotedIdentifier(B),Le.push({type:d,value:ie,start:ne});else if("'"===B[this._current])ne=this._current,ie=this._consumeRawStringLiteral(B),Le.push({type:N,value:ie,start:ne});else if("`"===B[this._current]){ne=this._current;var _t=this._consumeLiteral(B);Le.push({type:N,value:_t,start:ne})}else if(void 0!==V[B[this._current]])Le.push(this._consumeOperator(B));else if(void 0!==oe[B[this._current]])this._current++;else if("&"===B[this._current])ne=this._current,this._current++,"&"===B[this._current]?(this._current++,Le.push({type:"And",value:"&&",start:ne})):Le.push({type:_,value:"&",start:ne});else{if("|"!==B[this._current]){var At=new Error("Unknown character:"+B[this._current]);throw At.name="LexerError",At}ne=this._current,this._current++,"|"===B[this._current]?(this._current++,Le.push({type:"Or",value:"||",start:ne})):Le.push({type:C,value:"|",start:ne})}return Le},_consumeUnquotedIdentifier:function(B){var ne,ie=this._current;for(this._current++;this._current="a"&&ne<="z"||ne>="A"&&ne<="Z"||ne>="0"&&ne<="9"||"_"===ne);)this._current++;return B.slice(ie,this._current)},_consumeQuotedIdentifier:function(B){var ne=this._current;this._current++;for(var ie=B.length;'"'!==B[this._current]&&this._current"===ie?"="===B[this._current]?(this._current++,{type:z,value:">=",start:ne}):{type:G,value:">",start:ne}:"="===ie&&"="===B[this._current]?(this._current++,{type:$,value:"==",start:ne}):void 0},_consumeLiteral:function(B){this._current++;for(var ne,ie=this._current,Ie=B.length;"`"!==B[this._current]&&this._current=0||["true","false","null"].indexOf(B)>=0)return!0;if(!("-0123456789".indexOf(B[0])>=0))return!1;try{return JSON.parse(B),!0}catch{return!1}}};var xe={};function tt(){}function ze(B){this.runtime=B}function ot(B){this._interpreter=B,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[s]}]},avg:{_func:this._functionAvg,_signature:[{types:[8]}]},ceil:{_func:this._functionCeil,_signature:[{types:[s]}]},contains:{_func:this._functionContains,_signature:[{types:[a,3]},{types:[1]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[a]},{types:[a]}]},floor:{_func:this._functionFloor,_signature:[{types:[s]}]},length:{_func:this._functionLength,_signature:[{types:[a,3,4]}]},map:{_func:this._functionMap,_signature:[{types:[6]},{types:[3]}]},max:{_func:this._functionMax,_signature:[{types:[8,9]}]},merge:{_func:this._functionMerge,_signature:[{types:[4],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[3]},{types:[6]}]},sum:{_func:this._functionSum,_signature:[{types:[8]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[a]},{types:[a]}]},min:{_func:this._functionMin,_signature:[{types:[8,9]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[3]},{types:[6]}]},type:{_func:this._functionType,_signature:[{types:[1]}]},keys:{_func:this._functionKeys,_signature:[{types:[4]}]},values:{_func:this._functionValues,_signature:[{types:[4]}]},sort:{_func:this._functionSort,_signature:[{types:[9,8]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[3]},{types:[6]}]},join:{_func:this._functionJoin,_signature:[{types:[a]},{types:[9]}]},reverse:{_func:this._functionReverse,_signature:[{types:[a,3]}]},to_array:{_func:this._functionToArray,_signature:[{types:[1]}]},to_string:{_func:this._functionToString,_signature:[{types:[1]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[1]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[1],variadic:!0}]}}}xe.EOF=0,xe.UnquotedIdentifier=0,xe.QuotedIdentifier=0,xe.Rbracket=0,xe.Rparen=0,xe.Comma=0,xe.Rbrace=0,xe.Number=0,xe.Current=0,xe.Expref=0,xe.Pipe=1,xe.Or=2,xe.And=3,xe.EQ=5,xe.GT=5,xe.LT=5,xe.GTE=5,xe.LTE=5,xe.NE=5,xe.Flatten=9,xe.Star=20,xe.Filter=21,xe.Dot=40,xe.Not=45,xe.Lbrace=50,xe.Lbracket=55,xe.Lparen=60,tt.prototype={parse:function(B){this._loadTokens(B),this.index=0;var ne=this.expression(0);if("EOF"!==this._lookahead(0)){var ie=this._lookaheadToken(0),Ie=new Error("Unexpected token type: "+ie.type+", value: "+ie.value);throw Ie.name="ParserError",Ie}return ne},_loadTokens:function(B){var ne=(new Fe).tokenize(B);ne.push({type:"EOF",value:"",start:B.length}),this.tokens=ne},expression:function(B){var ne=this._lookaheadToken(0);this._advance();for(var ie=this.nud(ne),Ie=this._lookahead(0);B=0?this.expression(B):ne===E?(this._match(E),this._parseMultiselectList()):ne===he?(this._match(he),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(B){var ne;if(xe[this._lookahead(0)]<10)ne={type:"Identity"};else if(this._lookahead(0)===E)ne=this.expression(B);else if(this._lookahead(0)===X)ne=this.expression(B);else{if(this._lookahead(0)!==Z){var ie=this._lookaheadToken(0),Ie=new Error("Sytanx error, unexpected token: "+ie.value+"("+ie.type+")");throw Ie.name="ParserError",Ie}this._match(Z),ne=this._parseDotRHS(B)}return ne},_parseMultiselectList:function(){for(var B=[];this._lookahead(0)!==h;){var ne=this.expression(0);if(B.push(ne),this._lookahead(0)===p&&(this._match(p),this._lookahead(0)===h))throw new Error("Unexpected token Rbracket")}return this._match(h),{type:"MultiSelectList",children:B}},_parseMultiselectHash:function(){for(var B,ne,ie,Ie=[],Ye=[u,d];;){if(B=this._lookaheadToken(0),Ye.indexOf(B.type)<0)throw new Error("Expecting an identifier token, got: "+B.type);if(ne=B.value,this._advance(),this._match(m),ie={type:"KeyValuePair",name:ne,value:this.expression(0)},Ie.push(ie),this._lookahead(0)===p)this._match(p);else if(this._lookahead(0)===g){this._match(g);break}}return{type:"MultiSelectHash",children:Ie}}},ze.prototype={search:function(B,ne){return this.visit(B,ne)},visit:function(B,ne){var ie,Ie,Ye,Le,_t,At,_n,ci,on;switch(B.type){case"Field":return null!==ne&&e(ne)?void 0===(At=ne[B.name])?null:At:null;case"Subexpression":for(Ye=this.visit(B.children[0],ne),on=1;on0)for(on=$r;onwr;on+=Or)Ye.push(ne[on]);return Ye;case"Projection":var Ai=this.visit(B.children[0],ne);if(!n(Ai))return null;for(ci=[],on=0;on_t;break;case z:Ye=Le>=_t;break;case R:Ye=Le<_t;break;case U:Ye=Le<=_t;break;default:throw new Error("Unknown comparator: "+B.name)}return Ye;case re:var ui=this.visit(B.children[0],ne);if(!n(ui))return null;var Ni=[];for(on=0;on=B&&(ne=ie<0?B-1:B),ne}},ot.prototype={callFunction:function(B,ne){var ie=this.functionTable[B];if(void 0===ie)throw new Error("Unknown function: "+B+"()");return this._validateArgs(B,ne,ie._signature),ie._func.call(this,ne)},_validateArgs:function(B,ne,ie){var Ie,Ye,Le,_t;if(ie[ie.length-1].variadic){if(ne.length=0;Ie--)ie+=ne[Ie];return ie}var Ye=B[0].slice(0);return Ye.reverse(),Ye},_functionAbs:function(B){return Math.abs(B[0])},_functionCeil:function(B){return Math.ceil(B[0])},_functionAvg:function(B){for(var ne=0,ie=B[0],Ie=0;Ie=0},_functionFloor:function(B){return Math.floor(B[0])},_functionLength:function(B){return e(B[0])?Object.keys(B[0]).length:B[0].length},_functionMap:function(B){for(var ne=[],ie=this._interpreter,Ie=B[0],Ye=B[1],Le=0;Le0){if(this._getTypeName(B[0][0])===s)return Math.max.apply(Math,B[0]);for(var ne=B[0],ie=ne[0],Ie=1;Ie0){if(this._getTypeName(B[0][0])===s)return Math.min.apply(Math,B[0]);for(var ne=B[0],ie=ne[0],Ie=1;Iepn?1:Fi_t&&(_t=ie,ne=Ye[At]);return ne},_functionMinBy:function(B){for(var ne,ie,Ye=B[0],Le=this.createKeyFunction(B[1],[s,a]),_t=1/0,At=0;At1&&void 0!==arguments[1]?arguments[1]:1;return(n>0?t.toFixed(n).replace(/0+$/,"").replace(/\.$/,""):t.toString())||"0"}var dot=function(){function t(n,e,i,r){fL(this,t);var o=this;if(void 0!==n)if(Array.isArray(n))this.rgba=n;else if(void 0===i){var s=n&&""+n;s&&function(a){if(a.startsWith("hsl")){var l=a.match(/([\-\d\.e]+)/g).map(Number),c=XD(l,4),u=c[0],d=c[1],h=c[2],f=c[3];void 0===f&&(f=1),o.hsla=[u/=360,d/=100,h/=100,f]}else if(a.startsWith("rgb")){var p=a.match(/([\-\d\.e]+)/g).map(Number),m=XD(p,4),_=m[3];void 0===_&&(_=1),o.rgba=[m[0],m[1],m[2],_]}else o.rgba=a.startsWith("#")?t.hexToRgb(a):t.nameToRgb(a)||t.hexToRgb(a)}(s.toLowerCase())}else this.rgba=[n,e,i,void 0===r?1:r]}return pL(t,[{key:"printRGB",value:function(n){var e=(n?this.rgba:this.rgba.slice(0,3)).map(function(i,r){return Gme(i,3===r?3:0)});return n?"rgba("+e+")":"rgb("+e+")"}},{key:"printHSL",value:function(n){var e=[360,100,100,1],i=["","%","%",""],r=(n?this.hsla:this.hsla.slice(0,3)).map(function(o,s){return Gme(o*e[s],3===s?3:1)+i[s]});return n?"hsla("+r+")":"hsl("+r+")"}},{key:"printHex",value:function(n){var e=this.hex;return n?e:e.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(!this._hsla)throw new Error("No color is set");return this._rgba=t.hslToRgb(this._hsla)},set:function(n){3===n.length&&(n[3]=1),this._rgba=n,this._hsla=null}},{key:"rgbString",get:function(){return this.printRGB()}},{key:"rgbaString",get:function(){return this.printRGB(!0)}},{key:"hsla",get:function(){if(this._hsla)return this._hsla;if(!this._rgba)throw new Error("No color is set");return this._hsla=t.rgbToHsl(this._rgba)},set:function(n){3===n.length&&(n[3]=1),this._hsla=n,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){var n=this.rgba.map(function(e,i){return i<3?e.toString(16):Math.round(255*e).toString(16)});return"#"+n.map(function(e){return e.padStart(2,"0")}).join("")},set:function(n){this.rgba=t.hexToRgb(n)}}],[{key:"hexToRgb",value:function(n){var e=(n.startsWith("#")?n.slice(1):n).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(!e.match(/^([0-9a-fA-F]{8})$/))throw new Error("Unknown hex color; "+n);var i=e.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map(function(r){return parseInt(r,16)});return i[3]=i[3]/255,i}},{key:"nameToRgb",value:function(n){var e=n.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),i=uot[e];return void 0===i?i:t.hexToRgb(i.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(n){var e=XD(n,4),i=e[0],r=e[1],o=e[2],s=e[3];i/=255,r/=255,o/=255;var a=Math.max(i,r,o),l=Math.min(i,r,o),c=void 0,u=void 0,d=(a+l)/2;if(a===l)c=u=0;else{var h=a-l;switch(u=d>.5?h/(2-a-l):h/(a+l),a){case i:c=(r-o)/h+(r1&&(g-=1),g<.16666666666666666?p+6*(m-p)*g:g<.5?m:g<.6666666666666666?p+(m-p)*(.6666666666666666-g)*6:p},d=o<.5?o*(1+r):o+r-o*r,h=2*o-d;a=u(h,d,i+1/3),l=u(h,d,i),c=u(h,d,i-1/3)}var f=[255*a,255*l,255*c].map(Math.round);return f[3]=s,f}}]),t}(),hot=function(){function t(){fL(this,t),this._events=[]}return pL(t,[{key:"add",value:function(n,e,i){n.addEventListener(e,i,!1),this._events.push({target:n,type:e,handler:i})}},{key:"remove",value:function(n,e,i){this._events=this._events.filter(function(r){var o=!0;return n&&n!==r.target&&(o=!1),e&&e!==r.type&&(o=!1),i&&i!==r.handler&&(o=!1),o&&t._doRemove(r.target,r.type,r.handler),!o})}},{key:"destroy",value:function(){this._events.forEach(function(n){return t._doRemove(n.target,n.type,n.handler)}),this._events=[]}}],[{key:"_doRemove",value:function(n,e,i){n.removeEventListener(e,i,!1)}}]),t}();function mL(t,n,e){var i=!1;function r(l,c,u){return Math.max(c,Math.min(l,u))}function o(l,c,u){if(u&&(i=!0),i){l.preventDefault();var d=n.getBoundingClientRect(),h=d.width,f=d.height,m=c.clientY,g=r(c.clientX-d.left,0,h),v=r(m-d.top,0,f);e(g/h,v/f)}}function s(l,c){1===(void 0===l.buttons?l.which:l.buttons)?o(l,l,c):i=!1}function a(l,c){1===l.touches.length?o(l,l.touches[0],c):i=!1}t.add(n,"mousedown",function(l){s(l,!0)}),t.add(n,"touchstart",function(l){a(l,!0)}),t.add(window,"mousemove",s),t.add(n,"touchmove",a),t.add(window,"mouseup",function(l){i=!1}),t.add(n,"touchend",function(l){i=!1}),t.add(n,"touchcancel",function(l){i=!1})}function xh(t,n){return(n||document).querySelector(t)}function Wme(t){t.preventDefault(),t.stopPropagation()}function gL(t,n,e,i,r){t.add(n,"keydown",function(o){e.indexOf(o.key)>=0&&(r&&Wme(o),i(o))})}var qme=function(){function t(n){fL(this,t),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new hot,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(n)}return pL(t,[{key:"setOptions",value:function(n){var e=this;if(n){var i=this.settings;if(n instanceof HTMLElement)i.parent=n;else{i.parent&&n.parent&&i.parent!==n.parent&&(this._events.remove(i.parent),this._popupInited=!1),function(a,l,c){for(var u in a)l[u]=a[u]}(n,i),n.onChange&&(this.onChange=n.onChange),n.onDone&&(this.onDone=n.onDone),n.onOpen&&(this.onOpen=n.onOpen),n.onClose&&(this.onClose=n.onClose);var r=n.color||n.colour;r&&this._setColor(r)}var o=i.parent;if(o&&i.popup&&!this._popupInited){var s=function(a){return e.openHandler(a)};this._events.add(o,"click",s),gL(this._events,o,[" ","Spacebar","Enter"],s),this._popupInited=!0}else n.parent&&!i.popup&&this.show()}}},{key:"openHandler",value:function(n){if(this.show()){n&&n.preventDefault(),this.settings.parent.style.pointerEvents="none";var e=n&&"keydown"===n.type?this._domEdit:this.domElement;setTimeout(function(){return e.focus()},100),this.onOpen&&this.onOpen(this.colour)}}},{key:"closeHandler",value:function(n){var e=n&&n.type,i=!1;n?"mousedown"===e||"focusin"===e?n.timeStamp>(this.__containedEvent||0)+100&&(i=!0):(Wme(n),i=!0):i=!0,i&&this.hide()&&(this.settings.parent.style.pointerEvents="","mousedown"!==e&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:"movePopup",value:function(n,e){this.closeHandler(),this.setOptions(n),e&&this.openHandler()}},{key:"setColor",value:function(n,e){this._setColor(n,{silent:e})}},{key:"_setColor",value:function(n,e){if("string"==typeof n&&(n=n.trim()),n){e=e||{};var i=void 0;try{i=new dot(n)}catch(o){if(e.failSilently)return;throw o}if(!this.settings.alpha){var r=i.hsla;r[3]=1,i.hsla=r}this.colour=this.color=i,this._setHSLA(null,null,null,null,e)}}},{key:"setColour",value:function(n,e){this.setColor(n,e)}},{key:"show",value:function(){if(!this.settings.parent)return!1;if(this.domElement){var n=this._toggleDOM(!0);return this._setPosition(),n}var e,i,o=(e=this.settings.template||'
    ',(i=document.createElement("div")).innerHTML=e,i.firstElementChild);return this.domElement=o,this._domH=xh(".picker_hue",o),this._domSL=xh(".picker_sl",o),this._domA=xh(".picker_alpha",o),this._domEdit=xh(".picker_editor input",o),this._domSample=xh(".picker_sample",o),this._domOkay=xh(".picker_done button",o),this._domCancel=xh(".picker_cancel button",o),o.classList.add("layout_"+this.settings.layout),this.settings.alpha||o.classList.add("no_alpha"),this.settings.editor||o.classList.add("no_editor"),this.settings.cancelButton||o.classList.add("no_cancel"),this._ifPopup(function(){return o.classList.add("popup")}),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){var n=this,e=this,i=this.domElement,r=this._events;function o(l,c,u){r.add(l,c,u)}o(i,"click",function(l){return l.preventDefault()}),mL(r,this._domH,function(l,c){return e._setHSLA(l)}),mL(r,this._domSL,function(l,c){return e._setHSLA(null,l,1-c)}),this.settings.alpha&&mL(r,this._domA,function(l,c){return e._setHSLA(null,null,null,1-c)});var s=this._domEdit;o(s,"input",function(l){e._setColor(this.value,{fromEditor:!0,failSilently:!0})}),o(s,"focus",function(l){var c=this;c.selectionStart===c.selectionEnd&&c.select()}),this._ifPopup(function(){var l=function(u){return n.closeHandler(u)};o(window,"mousedown",l),o(window,"focusin",l),gL(r,i,["Esc","Escape"],l);var c=function(u){n.__containedEvent=u.timeStamp};o(i,"mousedown",c),o(i,"focusin",c),o(n._domCancel,"click",l)});var a=function(l){n._ifPopup(function(){return n.closeHandler(l)}),n.onDone&&n.onDone(n.colour)};o(this._domOkay,"click",a),gL(r,i,["Enter"],a)}},{key:"_setPosition",value:function(){var n=this.settings.parent,e=this.domElement;n!==e.parentNode&&n.appendChild(e),this._ifPopup(function(i){"static"===getComputedStyle(n).position&&(n.style.position="relative");var r=!0===i?"popup_right":"popup_"+i;["popup_top","popup_bottom","popup_left","popup_right"].forEach(function(o){o===r?e.classList.add(o):e.classList.remove(o)}),e.classList.add(r)})}},{key:"_setHSLA",value:function(n,e,i,r,o){o=o||{};var s=this.colour,a=s.hsla;[n,e,i,r].forEach(function(l,c){(l||0===l)&&(a[c]=l)}),s.hsla=a,this._updateUI(o),this.onChange&&!o.silent&&this.onChange(s)}},{key:"_updateUI",value:function(n){if(this.domElement){n=n||{};var e=this.colour,i=e.hsla,r="hsl("+360*i[0]+", 100%, 50%)",o=e.hslString,s=e.hslaString,l=this._domSL,c=this._domA,u=xh(".picker_selector",this._domH),d=xh(".picker_selector",l),h=xh(".picker_selector",c);_(0,u,i[0]),this._domSL.style.backgroundColor=this._domH.style.color=r,_(0,d,i[1]),C(0,d,1-i[2]),l.style.color=o,C(0,h,1-i[3]);var f=o,p=f.replace("hsl","hsla").replace(")",", 0)");if(this._domA.style.background="linear-gradient("+[f,p]+"), linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em,\n linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em",!n.fromEditor){var v=this.settings.alpha,y=void 0;switch(this.settings.editorFormat){case"rgb":y=e.printRGB(v);break;case"hsl":y=e.printHSL(v);break;default:y=e.printHex(v)}this._domEdit.value=y}this._domSample.style.color=s}function _(S,M,$){M.style.left=100*$+"%"}function C(S,M,$){M.style.top=100*$+"%"}}},{key:"_ifPopup",value:function(n,e){this.settings.parent&&this.settings.popup?n&&n(this.settings.popup):e&&e()}},{key:"_toggleDOM",value:function(n){var e=this.domElement;if(!e)return!1;var i=n?"":"none",r=e.style.display!==i;return r&&(e.style.display=i),r}}]),t}(),vL=document.createElement("style");vL.textContent='.picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:"";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:"";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:"";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:"";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}',document.documentElement.firstElementChild.appendChild(vL),qme.StyleElement=vL;var fot=Object.freeze({__proto__:null,default:qme});const pot=["editor"];function mot(t,n){if(1&t&&(b(0,"ngb-alert",37),ge(1,"img",38),b(2,"h6",39),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Error while modifying storage object: ",e.error,"")}}function got(t,n){1&t&&(b(0,"ngb-alert",40),ge(1,"img",41),b(2,"h6",39),I(3,"Storage object was modified successfully."),x()()),2&t&&k("dismissible",!1)}function vot(t,n){1&t&&(b(0,"span"),I(1,"Save as a copy"),x())}function yot(t,n){1&t&&I(0,"Save")}function bot(t,n){if(1&t&&(b(0,"button",42),J(1,vot,2,0,"span",43),J(2,yot,1,0,"ng-template",null,44,Ur),x()),2&t){const e=uo(3),i=j();k("disabled",i.updating),w(1),k("ngIf",i.object.collection!==i.f.collection.value||i.object.key!==i.f.keyname.value||i.object.user_id!==i.f.user_id.value)("ngIfElse",e)}}const yL=function(){return["/storage"]},_ot=function(t){return{collection:t}},xot=function(t,n){return{collection:t,key:n}},wot=function(t,n,e){return{collection:t,key:n,user_id:e}},bL=function(t){return{"is-invalid":t}};let Cot=(()=>{class t{ngOnInit(){this.objectForm=this.formBuilder.group({collection:["",Do.required],keyname:["",Do.required],user_id:["",Do.required],permission_read:[0,Do.required],permission_write:[0,Do.required]}),this.route.data.subscribe(e=>{this.object=e[0],this.f.collection.setValue(this.object.collection),this.f.keyname.setValue(this.object.key),this.f.user_id.setValue(this.object.user_id),this.f.permission_read.setValue(this.object.permission_read),this.f.permission_write.setValue(this.object.permission_write),this.updateAllowed()||this.objectForm.disable()},e=>{this.error=e})}constructor(e,i,r,o,s){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"formBuilder",void 0),K(this,"editor",void 0),K(this,"jsonEditor",void 0),K(this,"error",""),K(this,"object",void 0),K(this,"objectForm",void 0),K(this,"updating",!1),K(this,"updated",!1),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngAfterViewInit(){this.jsonEditor=new Zm({target:this.editor.nativeElement,props:{mode:Jo.text,readOnly:!this.updateAllowed(),content:{text:this.object.value}}})}updateObject(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=Zv(this.jsonEditor.get()).text}catch(o){return this.error=o,void(this.updating=!1)}let i=this.object.version;(this.object.collection!==this.f.collection.value||this.object.key!==this.f.keyname.value||this.object.user_id!==this.f.user_id.value)&&(i=""),this.consoleService.writeStorageObject("",this.f.collection.value,this.f.keyname.value,this.f.user_id.value,{version:i,value:e,permission_read:this.f.permission_read.value,permission_write:this.f.permission_write.value}).subscribe(o=>{this.updated=!0,this.updating=!1,this.object.version=o.version,""===i&&(this.object.collection=this.f.collection.value,this.object.key=this.f.keyname.value,this.object.user_id=this.f.user_id.value,this.object.permission_read=this.f.permission_read.value,this.object.permission_write=this.f.permission_write.value)},o=>{this.error=o,this.updating=!1})}deleteObject(){this.error="",this.updated=!1,this.updating=!1;const e=this.object;this.consoleService.deleteStorageObject("",e.collection,e.key,e.user_id,e.version).subscribe(()=>{this.router.navigate(["/storage"],{relativeTo:this.route,queryParams:{collection:this.f.collection.value,key:this.f.key.value,user_id:this.f.user_id.value}})},i=>{this.error=i})}updateAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}get f(){return this.objectForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&io(pot,5),2&e){let r;cn(r=un())&&(i.editor=r.first)}},decls:88,vars:50,consts:[[1,"pb-1"],[1,"storage-top-nav","d-flex","justify-content-between","align-items-baseline","mb-3"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink","queryParams"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","collection",1,"d-inline"],["type","text","id","collection","placeholder","Collection","required","","formControlName","collection",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","key",1,"d-inline"],["type","text","id","key","placeholder","Key","required","","formControlName","keyname",1,"form-control","form-control-sm","my-2",3,"ngClass"],["for","user_id",1,"d-inline"],["type","text","id","user_id","placeholder","User ID","required","","formControlName","user_id",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","permission_read",1,"d-inline"],["ngbRadioGroup","","id","permission_read","name","permission_read","formControlName","permission_read",1,"btn-group","btn-group-toggle"],["ngbButtonLabel","",1,"btn-outline-secondary"],["ngbButton","","type","radio",3,"disabled","value"],["for","version",1,"d-inline"],["type","text","id","version","placeholder","Version","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","permission_write",1,"d-inline"],["ngbRadioGroup","","id","permission_write","name","permission_write","formControlName","permission_write",1,"btn-group","btn-group-toggle"],[1,"row","add-border-single-row-bottom","mb-3"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","update_time",1,"d-inline"],["type","text","id","update_time","placeholder","Update Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"card","p-2","mt-3","mb-3","jsoneditor",2,"height","518px"],[2,"height","500px"],["editor",""],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","submit",1,"btn","btn-primary",3,"disabled"],[4,"ngIf","ngIfElse"],["elseBlock",""]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"Storage Object"),x(),b(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4),I(6,"Storage"),x(),b(7,"li",4)(8,"a",5),I(9),x()(),b(10,"li",4)(11,"a",5),I(12),x()(),b(13,"li",4)(14,"a",5),I(15),x()()()()(),J(16,mot,4,2,"ngb-alert",6),J(17,got,4,1,"ngb-alert",7),b(18,"form",8),ye("ngSubmit",function(){return i.updateObject()}),b(19,"div",9)(20,"div",10)(21,"div",11)(22,"label",12),I(23,"Collection"),x()(),ge(24,"input",13),b(25,"div",14),I(26,"Collection is required"),x()(),b(27,"div",10)(28,"div",11)(29,"label",15),I(30,"Key"),x()(),ge(31,"input",16),b(32,"div",14),I(33,"Key is required"),x()()(),b(34,"div",9)(35,"div",10)(36,"div",11)(37,"label",17),I(38,"User ID"),x()(),ge(39,"input",18),b(40,"div",14),I(41,"User ID is required"),x()(),b(42,"div",19)(43,"div",11)(44,"label",20),I(45,"Read Permission"),x()(),b(46,"div",21)(47,"label",22),ge(48,"input",23),I(49," No Read "),x(),b(50,"label",22),ge(51,"input",23),I(52," Owner Read "),x(),b(53,"label",22),ge(54,"input",23),I(55," Public Read "),x()()()(),b(56,"div",9)(57,"div",10)(58,"div",11)(59,"label",24),I(60,"Version"),x()(),ge(61,"input",25),x(),b(62,"div",19)(63,"div",11)(64,"label",26),I(65,"Write Permission"),x()(),b(66,"div",27)(67,"label",22),ge(68,"input",23),I(69," No Write "),x(),b(70,"label",22),ge(71,"input",23),I(72," Owner Write "),x()()()(),b(73,"div",28)(74,"div",10)(75,"div",11)(76,"label",29),I(77,"Create Time"),x()(),ge(78,"input",30),x(),b(79,"div",10)(80,"div",11)(81,"label",31),I(82,"Update Time"),x()(),ge(83,"input",32),x()(),b(84,"div",33),ge(85,"div",34,35),x(),J(87,bot,4,3,"button",36),x()),2&e&&(w(8),k("routerLink",wl(32,yL))("queryParams",lr(33,_ot,i.object.collection)),w(1),Dt(i.object.collection),w(2),k("routerLink",wl(35,yL))("queryParams",Sr(36,xot,i.object.collection,i.object.key)),w(1),Dt(i.object.key),w(2),k("routerLink",wl(39,yL))("queryParams",Ug(40,wot,i.object.collection,i.object.key,i.object.user_id)),w(1),Dt(i.object.user_id),w(1),k("ngIf",i.error),w(1),k("ngIf",i.updated),w(1),k("formGroup",i.objectForm),w(6),k("ngClass",lr(44,bL,i.f.collection.dirty&&i.f.collection.errors)),w(1),k("hidden",i.f.collection.disabled||i.f.collection.valid||i.f.collection.pristine),w(6),k("ngClass",lr(46,bL,i.f.keyname.dirty&&i.f.keyname.errors)),w(1),k("hidden",i.f.keyname.disabled||i.f.keyname.valid||i.f.keyname.pristine),w(7),k("ngClass",lr(48,bL,i.f.user_id.dirty&&i.f.user_id.errors)),w(1),k("hidden",i.f.user_id.disabled||i.f.user_id.valid||i.f.user_id.pristine),w(8),k("disabled",!i.updateAllowed())("value",0),w(3),k("disabled",!i.updateAllowed())("value",1),w(3),k("disabled",!i.updateAllowed())("value",2),w(7),k("value",i.object.version),w(7),k("disabled",!i.updateAllowed())("value",0),w(3),k("disabled",!i.updateAllowed())("value",1),w(7),k("value",i.object.create_time),w(5),k("value",i.object.update_time),w(4),k("ngIf",i.updateAllowed()))},dependencies:[Fu,Rh,gn,To,AC,F3,IH,sl,Na,rl,ol,Ff,fa,ja],styles:[".storage-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})),t})(),kot=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.paramMap.get("collection"),o=e.paramMap.get("key"),s=e.paramMap.get("user_id");return this.consoleService.getStorage("",r,o,s)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Sot(t,n){if(1&t&&(b(0,"ngb-alert",18),ge(1,"img",19),b(2,"h6",20),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Error while processing request: ",e.error,"")}}function Dot(t,n){1&t&&(b(0,"th",21),I(1,"Remove"),x())}function Tot(t,n){if(1&t){const e=vt();b(0,"td",25),ye("click",function(){$e(e);const r=j().$implicit;return Be(j().viewLeaderboardEntries(r))}),I(1,"Yes"),x()}}function Eot(t,n){if(1&t){const e=vt();b(0,"td",25),ye("click",function(){$e(e);const r=j().$implicit;return Be(j().viewLeaderboardEntries(r))}),I(1,"No"),x()}}function Aot(t,n){if(1&t){const e=vt();b(0,"td",25),ye("click",function(){$e(e);const r=j().$implicit;return Be(j().viewLeaderboardEntries(r))}),I(1,"Yes"),x()}}function Mot(t,n){if(1&t){const e=vt();b(0,"td",25),ye("click",function(){$e(e);const r=j().$implicit;return Be(j().viewLeaderboardEntries(r))}),I(1,"No"),x()}}function Iot(t,n){if(1&t){const e=vt();b(0,"td",26)(1,"button",27),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteLeaderboard(r,s,a))}),I(2,"Delete"),x()()}}function Fot(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td",22),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewLeaderboardEntries(o))}),I(2),x(),b(3,"td",22),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewLeaderboardEntries(o))}),I(4),x(),b(5,"td",22),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewLeaderboardEntries(o))}),I(6),x(),b(7,"td",22),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewLeaderboardEntries(o))}),I(8),x(),J(9,Tot,2,0,"td",23),J(10,Eot,2,0,"td",23),J(11,Aot,2,0,"td",23),J(12,Mot,2,0,"td",23),J(13,Iot,3,0,"td",24),x()}if(2&t){const e=n.$implicit,i=j();w(2),Dt(e.id),w(2),Dt(i.orderString[e.sort_order]),w(2),Dt(i.operatorString[e.operator]),w(2),Dt(""===e.reset_schedule?"-":e.reset_schedule),w(1),k("ngIf",e.authoritative),w(1),k("ngIf",!e.authoritative),w(1),k("ngIf",e.tournament),w(1),k("ngIf",!e.tournament),w(1),k("ngIf",i.deleteAllowed())}}function Not(t,n){1&t&&(b(0,"tr")(1,"td",28),I(2,"No leaderboards were found."),x()())}let Oot=(()=>{class t{constructor(e,i,r,o){K(this,"route",void 0),K(this,"router",void 0),K(this,"authService",void 0),K(this,"consoleService",void 0),K(this,"error",""),K(this,"leaderboards",[]),K(this,"nextCursor",""),K(this,"leaderboardsCount",0),K(this,"orderString",{0:"Ascending",1:"Descending"}),K(this,"operatorString",{0:"Best",1:"Set",2:"Increment",3:"Decrement"}),this.route=e,this.router=i,this.authService=r,this.consoleService=o}ngOnInit(){this.nextCursor=this.route.snapshot.queryParamMap.get("cursor"),this.search(this.nextCursor&&""!==this.nextCursor?1:0)}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_DEVELOPER}deleteLeaderboard(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteLeaderboard("",r.id).subscribe(()=>{this.error="",this.leaderboards.splice(i,1),this.leaderboardsCount--},o=>{this.error=o})}viewLeaderboardEntries(e){this.router.navigate(["/leaderboards",e.id],{relativeTo:this.route})}search(e){let i="";switch(e){case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listLeaderboards("",i).subscribe(r=>{this.error="",this.leaderboards.length=0,this.leaderboards.push(...r.leaderboards),this.leaderboardsCount=r.total,this.nextCursor=r.cursor,this.router.navigate([],{relativeTo:this.route,queryParams:{cursor:i},queryParamsHandling:"merge"})},r=>{this.error=r})}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(Xo),le(xi))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:33,vars:7,consts:[[1,"row","no-gutters"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[1,"pb-1"],[1,"pb-4"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger",3,"dismissible",4,"ngIf"],[1,"table","table-sm","table-bordered","table-hover"],[1,"thead-light"],[2,"width","130px"],[2,"width","100px"],["style","width: 90px",4,"ngIf"],[4,"ngFor","ngForOf"],[4,"ngIf"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],[3,"click"],["class","text-center",3,"click",4,"ngIf"],["class","text-center",4,"ngIf"],[1,"text-center",3,"click"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],["colspan","7",1,"text-muted"]],template:function(e,i){1&e&&(b(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2",3),I(4,"Leaderboards"),x(),b(5,"h6",4),I(6),x()(),b(7,"div",5)(8,"div",6)(9,"button",7),ye("click",function(){return i.search(0)}),ge(10,"img",8),x(),b(11,"button",7),ye("click",function(){return i.search(1)}),ge(12,"img",9),x()()()()(),J(13,Sot,4,2,"ngb-alert",10),b(14,"table",11)(15,"thead",12)(16,"tr")(17,"th"),I(18,"Leaderboard ID"),x(),b(19,"th",13),I(20,"Sort Order"),x(),b(21,"th",13),I(22,"Operator"),x(),b(23,"th",13),I(24,"Reset Schedule"),x(),b(25,"th",14),I(26,"Authoritative"),x(),b(27,"th",14),I(28,"Tournament"),x(),J(29,Dot,2,0,"th",15),x()(),b(30,"tbody"),J(31,Fot,14,9,"tr",16),J(32,Not,3,0,"tr",17),x()()),2&e&&(w(6),xn("",i.leaderboardsCount," leaderboards found."),w(3),k("disabled",0===i.leaderboards.length),w(2),k("disabled",""===i.nextCursor),w(2),k("ngIf",i.error),w(16),k("ngIf",i.deleteAllowed()),w(2),k("ngForOf",i.leaderboards),w(1),k("ngIf",0===i.leaderboards.length))},dependencies:[jn,gn,To],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})),t})(),jot=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.listLeaderboards("")}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Pot(t,n){if(1&t&&(b(0,"ngb-alert",31),ge(1,"img",32),b(2,"h6",33),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Error when querying accounts: ",e.error,"")}}function Lot(t,n){1&t&&(b(0,"th",34),I(1,"Remove"),x())}function Rot(t,n){1&t&&(b(0,"tr")(1,"td",35),I(2,"No users found - change the filter criteria or add new user accounts."),x()())}function $ot(t,n){1&t&&ge(0,"td")}function Bot(t,n){if(1&t){const e=vt();b(0,"td",38)(1,"button",39),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteAccount(r,s,a))}),I(2,"Delete"),x()()}}function Vot(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td",36),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(2),x(),b(3,"td",36),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(4),x(),b(5,"td",36),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(6),x(),b(7,"td",36),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(8),x(),J(9,$ot,1,0,"td",29),J(10,Bot,3,0,"td",37),x()}if(2&t){const e=n.$implicit,i=j();w(2),Dt(e.id),w(2),Dt(e.username),w(2),Dt(e.display_name),w(2),Dt(e.update_time),w(1),k("ngIf",i.deleteAllowed()&&e.id===i.systemUserId),w(1),k("ngIf",i.deleteAllowed()&&e.id!==i.systemUserId)}}let Hot=(()=>{class t{constructor(e,i,r,o,s){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"formBuilder",void 0),K(this,"systemUserId","00000000-0000-0000-0000-000000000000"),K(this,"error",""),K(this,"accountsCount",0),K(this,"accounts",[]),K(this,"nextCursor",""),K(this,"prevCursor",""),K(this,"searchForm",void 0),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.searchForm=this.formBuilder.group({filter:[""],filter_type:[0]});const e=this.route.snapshot.queryParamMap;this.f.filter.setValue(e.get("filter")),this.f.filter_type.setValue(+e.get("filter_type")),this.nextCursor=e.get("cursor"),this.nextCursor&&""!==this.nextCursor?this.search(1):(this.f.filter.value||this.f.filter_type.value)&&this.search(0),this.route.data.subscribe(i=>{this.accounts.length=0,i&&(this.accounts.push(...i[0].users),this.accountsCount=i[0].total_count,this.nextCursor=i[0].next_cursor,this.prevCursor=i[0].prev_cursor)},i=>{this.error=i})}search(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listAccounts("",this.f.filter.value,this.f.filter_type.value&&1===this.f.filter_type.value,i).subscribe(o=>{this.error="",this.accounts.length=0,this.accounts.push(...o.users),this.accountsCount=o.total_count,this.nextCursor=o.next_cursor,this.router.navigate([],{relativeTo:this.route,queryParams:{filter:this.f.filter.value,filter_type:this.f.filter_type.value,cursor:i},queryParamsHandling:"merge"})},o=>{this.error=o})}deleteAccount(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteAccount("",r.id,!1).subscribe(()=>{this.error="",this.accounts.splice(i,1),this.accountsCount--},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_DEVELOPER}viewAccount(e){this.router.navigate(["/accounts",e.id],{relativeTo:this.route})}get f(){return this.searchForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:45,vars:9,consts:[[1,"pb-1"],[1,"pb-3"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","filter","placeholder","Filter by user ID, social provider ID, device ID, or username (use '%' for prefix or suffix wildcard search)",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"input-group-text",3,"click"],["src","/static/svg/purple-cog-1.svg","alt","","width","20","height","",1,"mr-1"],[1,"btn-group"],["type","button",1,"btn","btn-primary","dropdown-radius",3,"click"],["ngbDropdown","","role","group","aria-label","Button group with nested dropdown",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-primary","dropdown-toggle-split",3,"disabled"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"User Accounts"),x(),b(2,"h6",1),I(3),x(),b(4,"div",2)(5,"div",3)(6,"div",4)(7,"form",5),ye("ngSubmit",function(){return i.search(0)}),b(8,"div",6),ge(9,"input",7),b(10,"div",8)(11,"span",9),ye("click",function(){return i.f.filter.setValue(i.systemUserId)}),ge(12,"img",10),x()(),b(13,"div",8)(14,"div",11)(15,"button",12),ye("click",function(){return i.f.filter_type.setValue(0),i.search(0)}),I(16,"Search"),x(),b(17,"div",13),ge(18,"button",14),b(19,"div",15)(20,"button",16),ye("click",function(){return i.f.filter_type.setValue(1),i.search(0)}),I(21,"Tombstones"),x()()()()()()()(),b(22,"div",17)(23,"div",18)(24,"button",19),ye("click",function(){return i.search(0)}),ge(25,"img",20),x(),b(26,"button",19),ye("click",function(){return i.search(1)}),ge(27,"img",21),x()()()()(),J(28,Pot,4,2,"ngb-alert",22),b(29,"div",23)(30,"table",24)(31,"thead",25)(32,"tr")(33,"th",26),I(34,"User ID"),x(),b(35,"th"),I(36,"Username"),x(),b(37,"th"),I(38,"Display Name"),x(),b(39,"th",27),I(40,"Last Update"),x(),J(41,Lot,2,0,"th",28),x()(),b(42,"tbody"),J(43,Rot,3,0,"tr",29),J(44,Vot,11,6,"tr",30),x()()()),2&e&&(w(3),xn("",i.accountsCount," accounts found."),w(4),k("formGroup",i.searchForm),w(11),k("disabled",!i.f.filter.value||""===i.f.filter.value),w(6),k("disabled",0===i.accounts.length),w(2),k("disabled",""===i.nextCursor),w(2),k("ngIf",i.error),w(13),k("ngIf",i.deleteAllowed()),w(2),k("ngIf",0===i.accounts.length),w(1),k("ngForOf",i.accounts))},dependencies:[jn,gn,To,Pu,rm,Pf,jf,sl,Na,rl,ol,fa,ja],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})),t})(),zot=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.queryParamMap.get("filter"),o=e.queryParamMap.get("tombstones");return this.consoleService.listAccounts("",r,"true"===o,null)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Uot(t,n){if(1&t){const e=vt();b(0,"button",15),ye("click",function(r){return $e(e),Be(j().exportAccount(r))}),ge(1,"img",16),I(2,"Export"),x()}}function Got(t,n){1&t&&(b(0,"span"),I(1,"Unban"),x())}function Wot(t,n){1&t&&(b(0,"span"),I(1,"Ban"),x())}function qot(t,n){if(1&t){const e=vt();b(0,"button",15),ye("click",function(r){return $e(e),Be(j().banUnbanAccount(r))}),ge(1,"img",17),J(2,Got,2,0,"span",18),J(3,Wot,2,0,"span",18),x()}if(2&t){const e=j();w(2),k("ngIf",e.account.disable_time),w(1),k("ngIf",!e.account.disable_time)}}function Xot(t,n){if(1&t){const e=vt();b(0,"button",19),ye("click",function(r){return $e(e),Be(j().deleteAccount(r,!1))}),ge(1,"img",20),I(2,"Delete"),x()}}function Yot(t,n){if(1&t){const e=vt();b(0,"button",19),ye("click",function(r){return $e(e),Be(j().deleteAccount(r,!0))}),ge(1,"img",21),I(2,"Recorded delete"),x()}}function Jot(t,n){if(1&t&&(b(0,"ngb-alert",22),ge(1,"img",23),b(2,"h6",24),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}const Kot=function(t,n){return["/accounts",t,n]};function Qot(t,n){if(1&t&&(b(0,"div"),ta(1,25),b(2,"a",26),I(3),x(),na(),x()),2&t){const e=n.$implicit,i=j();w(1),k("ngbNavItem",e.path),w(1),k("routerLink",Sr(3,Kot,i.account.user.id,e.path)),w(1),Dt(e.label)}}const Zot=function(){return["/accounts"]},est=function(){return["/storage"]},tst=function(t){return{user_id:t}};let nst=(()=>{class t{constructor(e,i,r,o){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"account",void 0),K(this,"error",""),K(this,"views",[{label:"Profile",path:"profile"},{label:"Authentication",path:"authentication"},{label:"Friends",path:"friends"},{label:"Groups",path:"groups"},{label:"Wallet",path:"wallet"},{label:"Purchases",path:"purchases"},{label:"Subscriptions",path:"subscriptions"}]),this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}deleteAccount(e,i){e.target.disabled=!0,this.error="",this.consoleService.deleteAccount("",this.account.user.id,i).subscribe(()=>{this.error="",this.router.navigate(["/accounts"])},r=>{this.error=r})}banUnbanAccount(e){e.target.disabled=!0,this.error="",this.account.disable_time?this.consoleService.unbanAccount("",this.account.user.id).subscribe(()=>{this.error="",this.account.disable_time=null,e.target.disabled=!1},i=>{this.error=i,e.target.disabled=!1}):this.consoleService.banAccount("",this.account.user.id).subscribe(()=>{this.error="",this.account.disable_time=Date.now().toString(),e.target.disabled=!1},i=>{this.error=i,e.target.disabled=!1})}exportAccount(e){e.target.disabled=!0,this.error="",this.consoleService.exportAccount("",this.account.user.id).subscribe(i=>{this.error="";const r=this.account.user.id+"-export.json",o=JSON.stringify(i,null,2),s=(new TextEncoder).encode(o),a=new Blob([s],{type:"application/json;charset=utf-8"});(0,rF.saveAs)(a,r),e.target.disabled=!1},i=>{e.target.disabled=!1,this.error=i})}updateAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}exportAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}banAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:24,vars:14,consts:[[1,"pb-1"],[1,"account-top-nav","d-flex","justify-content-between","align-items-baseline","mb-4"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active"],["type","button","class","btn btn-outline-secondary mr-2",3,"click",4,"ngIf"],["type","button","class","btn btn-danger btn-danger-icon mr-2",3,"click",4,"ngIf"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["ngbNav","",1,"navbar-expand-sm","p-0","mb-3"],["accountNav","ngbNav"],[4,"ngFor","ngForOf"],["ngbNavItem","storage"],["ngbNavLink","",3,"routerLink","queryParams"],["type","button",1,"btn","btn-outline-secondary","mr-2",3,"click"],["src","/static/svg/export.svg","alt","","width","13","height","13",1,"mr-2"],["src","/static/svg/ban.svg","alt","","width","13","height","13",1,"mr-2"],[4,"ngIf"],["type","button",1,"btn","btn-danger","btn-danger-icon","mr-2",3,"click"],["src","/static/svg/bin-red.svg","alt","","width","14","height","",1,"mr-2"],["src","/static/svg/bin-recorded.svg","alt","","width","15","height","",1,"mr-2"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"ngbNavItem"],["ngbNavLink","","routerLinkActive","account-link-active",3,"routerLink"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"User Account"),x(),b(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4)(6,"a",5),I(7,"Account"),x()(),b(8,"li",6),I(9),x()()(),b(10,"div"),J(11,Uot,3,0,"button",7),J(12,qot,4,2,"button",7),J(13,Xot,3,0,"button",8),J(14,Yot,3,0,"button",8),x()(),J(15,Jot,4,2,"ngb-alert",9),b(16,"nav",10,11),J(18,Qot,4,6,"div",12),b(19,"div"),ta(20,13),b(21,"a",14),I(22," Storage "),x(),na(),x()(),ge(23,"router-outlet")),2&e&&(w(6),k("routerLink",wl(10,Zot)),w(3),Dt(i.account.user.id),w(2),k("ngIf",i.exportAllowed()),w(1),k("ngIf",i.banAllowed()),w(1),k("ngIf",i.deleteAllowed()),w(1),k("ngIf",i.deleteAllowed()),w(1),k("ngIf",i.error),w(3),k("ngForOf",i.views),w(3),k("routerLink",wl(11,est))("queryParams",lr(12,tst,i.account.user.id)))},dependencies:[Jp,Fu,hy,jn,gn,To,am,sm,fv],styles:[".nav-link[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#000;opacity:.5;padding:0 0 1.6em;margin-right:3em;margin-bottom:-2px;font-weight:600}.nav-link[_ngcontent-%COMP%]:hover{opacity:1}.nav-link.account-link-active[_ngcontent-%COMP%]{opacity:1;border-bottom:solid 2px #7668ED}.navbar-expand-sm[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9}.account-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})),t})(),ist=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.paramMap.get("id");return this.consoleService.getAccount("",r)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();const rst=["editor"];function ost(t,n){if(1&t&&(b(0,"ngb-alert",29),ge(1,"img",30),b(2,"h6",31),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function sst(t,n){1&t&&(b(0,"ngb-alert",32),ge(1,"img",33),b(2,"h6",31),I(3,"Account was modified successfully."),x()()),2&t&&k("dismissible",!1)}function ast(t,n){1&t&&(b(0,"button",34),I(1,"Save"),x()),2&t&&k("disabled",j().updating)}const lst=function(t){return{"is-invalid":t}};let cst=(()=>{class t{constructor(e,i,r,o,s){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"formBuilder",void 0),K(this,"editor",void 0),K(this,"jsonEditor",void 0),K(this,"error",""),K(this,"account",void 0),K(this,"accountForm",void 0),K(this,"updating",!1),K(this,"updated",!1),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.accountForm=this.formBuilder.group({username:["",Do.required],display_name:[""],avatar_url:[""],location:[""],timezone:[""]}),this.route.parent.data.subscribe(e=>{this.account=e[0].account,this.f.username.setValue(this.account.user.username),this.f.display_name.setValue(this.account.user.display_name),this.f.avatar_url.setValue(this.account.user.avatar_url),this.f.location.setValue(this.account.user.location),this.f.timezone.setValue(this.account.user.timezone),this.updateAllowed()||this.accountForm.disable()},e=>{this.error=e})}ngAfterViewInit(){this.jsonEditor=new Zm({target:this.editor.nativeElement,props:{mode:Jo.text,readOnly:!this.updateAllowed(),content:{text:this.account.user.metadata}}})}updateAccount(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=Zv(this.jsonEditor.get()).text}catch(r){return this.error=r,void(this.updating=!1)}this.consoleService.updateAccount("",this.account.user.id,{username:this.f.username.value,display_name:this.f.display_name.value,avatar_url:this.f.avatar_url.value,location:this.f.location.value,timezone:this.f.timezone.value,metadata:e}).subscribe(r=>{this.updated=!0,this.updating=!1},r=>{this.error=r,this.updating=!1})}updateAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}get f(){return this.accountForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&io(rst,5),2&e){let r;cn(r=un())&&(i.editor=r.first)}},decls:53,vars:11,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","user_id",1,"d-inline"],["type","text","id","user_id","placeholder","User ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","username",1,"d-inline"],["type","text","id","username","placeholder","Username","required","","formControlName","username",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","display_name",1,"d-inline"],["type","text","id","display_name","placeholder","Display Name","formControlName","display_name",1,"form-control","form-control-sm","my-2"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","avatar_url",1,"d-inline"],["type","text","id","avatar_url","placeholder","Avatar URL","formControlName","avatar_url",1,"form-control","form-control-sm","my-2"],["for","location",1,"d-inline"],["type","text","id","location","placeholder","Location","formControlName","location",1,"form-control","form-control-sm","my-2"],["for","timezone",1,"d-inline"],["type","text","id","timezone","placeholder","Timezone","formControlName","timezone",1,"form-control","form-control-sm","my-2"],[1,"row","mb-3","add-border-single-row-bottom"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","update_time",1,"d-inline"],["type","text","id","update_time","placeholder","Update Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(e,i){1&e&&(J(0,ost,4,2,"ngb-alert",0),J(1,sst,4,1,"ngb-alert",1),b(2,"form",2),ye("ngSubmit",function(){return i.updateAccount()}),b(3,"div",3)(4,"div",4)(5,"div",5)(6,"label",6),I(7,"User ID"),x()(),ge(8,"input",7),x(),b(9,"div",4)(10,"div",5)(11,"label",8),I(12,"Username"),x()(),ge(13,"input",9),b(14,"div",10),I(15,"Username is required"),x()()(),b(16,"div",3)(17,"div",4)(18,"div",5)(19,"label",11),I(20,"Display Name"),x()(),ge(21,"input",12),x(),b(22,"div",13)(23,"div",5)(24,"label",14),I(25,"Avatar URL"),x()(),ge(26,"input",15),x()(),b(27,"div",3)(28,"div",4)(29,"div",5)(30,"label",16),I(31,"Location"),x()(),ge(32,"input",17),x(),b(33,"div",13)(34,"div",5)(35,"label",18),I(36,"Timezone"),x()(),ge(37,"input",19),x()(),b(38,"div",20)(39,"div",4)(40,"div",5)(41,"label",21),I(42,"Create Time"),x()(),ge(43,"input",22),x(),b(44,"div",4)(45,"div",5)(46,"label",23),I(47,"Update Time"),x()(),ge(48,"input",24),x()(),b(49,"div",25),ge(50,"div",26,27),x(),J(52,ast,2,1,"button",28),x()),2&e&&(k("ngIf",i.error),w(1),k("ngIf",i.updated),w(1),k("formGroup",i.accountForm),w(6),k("value",i.account.user.id),w(5),k("ngClass",lr(9,lst,i.f.username.dirty&&i.f.username.errors)),w(1),k("hidden",i.f.username.disabled||i.f.username.valid||i.f.username.pristine),w(29),k("value",i.account.user.create_time),w(5),k("value",i.account.user.update_time),w(4),k("ngIf",i.updateAllowed()))},dependencies:[Rh,gn,To,sl,Na,rl,ol,Ff,fa,ja]})),t})();function ust(t,n){if(1&t&&(b(0,"ngb-alert",36),ge(1,"img",37),b(2,"h6",38),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function dst(t,n){1&t&&(b(0,"ngb-alert",39),ge(1,"img",40),b(2,"h6",38),I(3,"Account was modified successfully."),x()()),2&t&&k("dismissible",!1)}function hst(t,n){if(1&t&&(b(0,"option",41),I(1),x()),2&t){const e=n.$implicit,i=n.index;Nh("value",i),k("selected",0===i),w(1),Dt(e.id)}}function fst(t,n){1&t&&(b(0,"button",42),I(1,"Save"),x()),2&t&&k("disabled",j().updating)}let pst=(()=>{class t{constructor(e,i,r,o,s){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"formBuilder",void 0),K(this,"error",""),K(this,"account",void 0),K(this,"accountForm",void 0),K(this,"updating",!1),K(this,"updated",!1),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.accountForm=this.formBuilder.group({email:[""],password:[""],selected_device_id_index:[""]}),this.route.parent.data.subscribe(e=>{this.account=e[0].account,this.f.email.setValue(this.account.email),this.f.password.setValue(""),this.f.selected_device_id_index.setValue(0),0===this.account.devices.length&&this.f.selected_device_id_index.disable(),this.updateAllowed()||this.accountForm.disable()},e=>{this.error=e})}updateAccount(){this.error="",this.updated=!1,this.updating=!0;let e={email:this.f.email.value};this.f.password.dirty&&(e.password=this.f.password.value),this.consoleService.updateAccount("",this.account.user.id,e).subscribe(i=>{this.updated=!0,this.updating=!1,this.f.password.reset()},i=>{this.error=i,this.updating=!1})}unlinkDeviceId(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkDevice("",this.account.user.id,{device_id:this.account.devices[this.f.selected_device_id_index.value].id}).subscribe(()=>{this.error="",this.account.devices.splice(this.f.selected_device_id_index.value,1),this.f.selected_device_id_index.setValue(0)},r=>{this.error=r})}unlinkCustomID(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkCustom("",this.account.user.id).subscribe(()=>{this.error="",this.account.custom_id=null},i=>{this.error=i})}unlinkFacebook(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkFacebook("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.facebook_id=null},i=>{this.error=i})}unlinkFacebookInstantGames(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkFacebookInstantGame("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.facebook_instant_game_id=null},i=>{this.error=i})}unlinkApple(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkApple("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.apple_id=null},i=>{this.error=i})}unlinkGameCenter(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkGameCenter("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.gamecenter_id=null},i=>{this.error=i})}unlinkGoogle(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkGoogle("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.google_id=null},i=>{this.error=i})}unlinkSteam(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkSteam("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.steam_id=null},i=>{this.error=i})}updateAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}copyDeviceIdToClipboard(e){const i=document.createElement("textarea");i.style.position="fixed",i.style.left="0",i.style.top="0",i.style.opacity="0",i.value=this.account.devices[e].id,document.body.appendChild(i),i.focus(),i.select(),document.execCommand("copy"),document.body.removeChild(i)}get f(){return this.accountForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:102,vars:21,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","selected_device_id_index",1,"d-inline"],[1,"input-group"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["src","/static/svg/copy.svg","alt","","width","16","height","",1,""],["id","selected_device_id_index","formControlName","selected_device_id_index",1,"form-control","custom-select","custom-select-sm"],[3,"value","selected",4,"ngFor","ngForOf"],[1,"input-group-append"],["type","button",1,"btn","btn-sm","btn-outline-danger",3,"disabled","click"],["for","custom_id",1,"d-inline"],["type","text","id","custom_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","facebook_id",1,"d-inline"],["type","text","id","facebook_id","disabled","",1,"form-control","form-control-sm",3,"value"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","facebook_instant_game_id",1,"d-inline"],["type","text","id","facebook_instant_game_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","apple_id",1,"d-inline"],["type","text","id","apple_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","gamecenter_id",1,"d-inline"],["type","text","id","gamecenter_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","google_id",1,"d-inline"],["type","text","id","google_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","steam_id",1,"d-inline"],["type","text","id","steam_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","email",1,"d-inline"],["type","text","id","email","placeholder","Email","formControlName","email",1,"form-control","form-control-sm"],["for","password",1,"d-inline"],["type","text","id","password","placeholder","Password","formControlName","password",1,"form-control","form-control-sm"],[1,"row","remove-sides"],[1,"small"],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],[3,"value","selected"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(e,i){1&e&&(J(0,ust,4,2,"ngb-alert",0),J(1,dst,4,1,"ngb-alert",1),b(2,"form",2),ye("ngSubmit",function(){return i.updateAccount()}),b(3,"div",3)(4,"div",4)(5,"div",5)(6,"label",6),I(7,"Device IDs"),x()(),b(8,"div",7)(9,"button",8),ye("click",function(){return i.copyDeviceIdToClipboard(i.f.selected_device_id_index.value)}),ge(10,"img",9),I(11," Copy "),x(),b(12,"select",10),J(13,hst,2,3,"option",11),x(),b(14,"div",12)(15,"button",13),ye("click",function(o){return i.unlinkDeviceId(o)}),I(16,"Unlink"),x()()()(),b(17,"div",4)(18,"div",5)(19,"label",14),I(20,"Custom ID"),x()(),b(21,"div",7),ge(22,"input",15),b(23,"div",12)(24,"button",13),ye("click",function(o){return i.unlinkCustomID(o)}),I(25,"Unlink"),x()()()()(),b(26,"div",3)(27,"div",4)(28,"div",5)(29,"label",16),I(30,"Facebook ID"),x()(),b(31,"div",7),ge(32,"input",17),b(33,"div",12)(34,"button",13),ye("click",function(o){return i.unlinkFacebook(o)}),I(35,"Unlink"),x()()()(),b(36,"div",18)(37,"div",5)(38,"label",19),I(39,"FB Instant Game ID"),x()(),b(40,"div",7),ge(41,"input",20),b(42,"div",12)(43,"button",13),ye("click",function(o){return i.unlinkFacebookInstantGames(o)}),I(44,"Unlink"),x()()()()(),b(45,"div",3)(46,"div",4)(47,"div",5)(48,"label",21),I(49,"Apple ID"),x()(),b(50,"div",7),ge(51,"input",22),b(52,"div",12)(53,"button",13),ye("click",function(o){return i.unlinkApple(o)}),I(54,"Unlink"),x()()()(),b(55,"div",18)(56,"div",5)(57,"label",23),I(58,"GameCenter ID"),x()(),b(59,"div",7),ge(60,"input",24),b(61,"div",12)(62,"button",13),ye("click",function(o){return i.unlinkGameCenter(o)}),I(63,"Unlink"),x()()()()(),b(64,"div",3)(65,"div",4)(66,"div",5)(67,"label",25),I(68,"Google ID"),x()(),b(69,"div",7),ge(70,"input",26),b(71,"div",12)(72,"button",13),ye("click",function(o){return i.unlinkGoogle(o)}),I(73,"Unlink"),x()()()(),b(74,"div",4)(75,"div",5)(76,"label",27),I(77,"Steam ID"),x()(),b(78,"div",7),ge(79,"input",28),b(80,"div",12)(81,"button",13),ye("click",function(o){return i.unlinkSteam(o)}),I(82,"Unlink"),x()()()()(),b(83,"div",3)(84,"div",4)(85,"div",5)(86,"label",29),I(87,"Email"),x(),ge(88,"br"),x(),ge(89,"input",30),x(),b(90,"div",4)(91,"div",5)(92,"label",31),I(93,"Password"),x()(),ge(94,"input",32),x()(),b(95,"div",33)(96,"div",4),ge(97,"div",5),b(98,"span",34),I(99),x()(),ge(100,"div",4),x(),J(101,fst,2,1,"button",35),x()),2&e&&(k("ngIf",i.error),w(1),k("ngIf",i.updated),w(1),k("formGroup",i.accountForm),w(11),k("ngForOf",i.account.devices),w(2),k("disabled",!i.updateAllowed()||0===i.account.devices.length),w(7),k("value",i.account.custom_id),w(2),k("disabled",!i.updateAllowed()||!i.account.custom_id||""===i.account.custom_id),w(8),k("value",i.account.user.facebook_id),w(2),k("disabled",!i.updateAllowed()||!i.account.user.facebook_id||""===i.account.user.facebook_id),w(7),k("value",i.account.user.facebook_instant_game_id),w(2),k("disabled",!i.updateAllowed()||!i.account.user.facebook_instant_game_id||""===i.account.user.facebook_instant_game_id),w(8),k("value",i.account.user.apple_id),w(2),k("disabled",!i.updateAllowed()||!i.account.user.apple_id||""===i.account.user.apple_id),w(7),k("value",i.account.user.gamecenter_id),w(2),k("disabled",!i.updateAllowed()||!i.account.user.gamecenter_id||""===i.account.user.gamecenter_id),w(8),k("value",i.account.user.google_id),w(2),k("disabled",!i.updateAllowed()||!i.account.user.google_id||""===i.account.user.google_id),w(7),k("value",i.account.user.steam_id),w(2),k("disabled",!i.updateAllowed()||!i.account.user.steam_id||""===i.account.user.steam_id),w(18),xn("Verification Status: ",null===i.account.verify_time?"Not Verified":"Verified",""),w(2),k("ngIf",i.updateAllowed()))},dependencies:[jn,gn,To,sl,xy,wy,Na,ov,rl,ol,fa,ja],styles:[".custom-select[_ngcontent-%COMP%]{height:auto}"]})),t})();const mst=["editor"];function gst(t,n){if(1&t&&(b(0,"ngb-alert",24),ge(1,"img",25),b(2,"h6",26),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function vst(t,n){1&t&&(b(0,"ngb-alert",27),ge(1,"img",28),b(2,"h6",26),I(3,"Account was modified successfully."),x()()),2&t&&k("dismissible",!1)}function yst(t,n){if(1&t){const e=vt();b(0,"button",29),ye("click",function(){return $e(e),Be(j().updateWallet())}),I(1,"Save"),x()}2&t&&k("disabled",j().updating)}function bst(t,n){1&t&&(b(0,"th",30),I(1,"Remove"),x())}function _st(t,n){1&t&&(b(0,"tr")(1,"td",31),I(2,"No wallet ledger items found."),x()())}function xst(t,n){1&t&&ge(0,"div",37)}function wst(t,n){1&t&&ge(0,"div",38)}function Cst(t,n){if(1&t){const e=vt();b(0,"td")(1,"button",39),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteLedgerItem(r,s,a))}),I(2,"Delete"),x()()}}function kst(t,n){if(1&t&&(b(0,"tr")(1,"td",40)(2,"pre",41)(3,"small"),I(4),x()()()()),2&t){const e=j().$implicit;w(4),Dt(e.metadata)}}function Sst(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td")(2,"div",32),ye("click",function(){const o=$e(e).index,s=j();return Be(s.walletLedgerMetadataOpen[o]=!s.walletLedgerMetadataOpen[o])}),J(3,xst,1,0,"div",33),J(4,wst,1,0,"div",34),x(),I(5),x(),b(6,"td",35)(7,"pre",36),I(8),x()(),b(9,"td"),I(10),x(),J(11,Cst,3,0,"td",22),x(),J(12,kst,5,1,"tr",22)}if(2&t){const e=n.index,i=n.$implicit,r=j();w(3),k("ngIf",!r.walletLedgerMetadataOpen[e]),w(1),k("ngIf",r.walletLedgerMetadataOpen[e]),w(1),xn(" ",i.id," "),w(3),Dt(i.changeset),w(2),Dt(i.update_time),w(1),k("ngIf",r.deleteAllowed()),w(1),k("ngIf",r.walletLedgerMetadataOpen[e])}}let Dst=(()=>{class t{constructor(e,i,r,o){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"editor",void 0),K(this,"jsonEditor",void 0),K(this,"error",""),K(this,"account",void 0),K(this,"walletLedger",[]),K(this,"walletLedgerMetadataOpen",[]),K(this,"updating",!1),K(this,"updated",!1),K(this,"nextCursor",""),K(this,"prevCursor",""),K(this,"limit",100),K(this,"userID",void 0),this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.userID=this.route.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(e=>{this.walletLedger.length=0,this.walletLedger.push(...e[0].items),this.walletLedgerMetadataOpen.length=this.walletLedger.length,this.nextCursor=e[0].next_cursor,this.prevCursor=e[0].prev_cursor},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}loadData(e){this.consoleService.getWalletLedger("",this.userID,this.limit,e).subscribe(i=>{this.walletLedger=i.items,this.walletLedgerMetadataOpen=[],this.nextCursor=i.next_cursor,this.prevCursor=i.prev_cursor},i=>{this.error=i})}ngAfterViewInit(){this.jsonEditor=new Zm({target:this.editor.nativeElement,props:{mode:Jo.text,readOnly:!this.updateAllowed(),content:{text:this.account.wallet}}})}updateWallet(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=Zv(this.jsonEditor.get()).text}catch(r){return this.error=r,void(this.updating=!1)}this.consoleService.updateAccount("",this.account.user.id,{wallet:e}).subscribe(r=>{this.updated=!0,this.updating=!1},r=>{this.error=r,this.updating=!1})}updateAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}deleteLedgerItem(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteWalletLedger("",this.account.user.id,r.id).subscribe(()=>{this.error="",this.walletLedger.splice(i,1),this.walletLedgerMetadataOpen.splice(i,1)},o=>{this.error=o})}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&io(mst,5),2&e){let r;cn(r=un())&&(i.editor=r.first)}},decls:32,vars:9,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","button","class","btn btn-primary",3,"disabled","click",4,"ngIf"],[1,"my-4"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered"],[1,"thead-light"],[2,"width","315px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],["ngFor","",3,"ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","button",1,"btn","btn-primary",3,"disabled","click"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],[1,"align-middle"],[1,"m-0","p-0"],[1,"arrow-right"],[1,"arrow-down"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],["colspan","5",1,"align-middle"],[1,"pre-wrap","m-0","p-0"]],template:function(e,i){1&e&&(J(0,gst,4,2,"ngb-alert",0),J(1,vst,4,1,"ngb-alert",1),b(2,"div",2),ge(3,"div",3,4),x(),J(5,yst,2,1,"button",5),ge(6,"hr",6),b(7,"div",7)(8,"div",8),ge(9,"div",9),b(10,"div",10)(11,"div",11)(12,"button",12),ye("click",function(){return i.loadData("")}),ge(13,"img",13),x(),b(14,"button",12),ye("click",function(){return i.loadData(i.prevCursor)}),ge(15,"img",14),x(),b(16,"button",12),ye("click",function(){return i.loadData(i.nextCursor)}),ge(17,"img",15),x()()()()(),b(18,"div",16)(19,"table",17)(20,"thead",18)(21,"tr")(22,"th",19),I(23,"ID"),x(),b(24,"th"),I(25,"Changeset"),x(),b(26,"th",20),I(27,"Update Time"),x(),J(28,bst,2,0,"th",21),x()(),b(29,"tbody"),J(30,_st,3,0,"tr",22),J(31,Sst,13,7,"ng-template",23),x()()()),2&e&&(k("ngIf",i.error),w(1),k("ngIf",i.updated),w(4),k("ngIf",i.updateAllowed()),w(7),k("disabled",0===i.walletLedger.length),w(2),k("disabled",""===i.prevCursor),w(2),k("disabled",""===i.nextCursor),w(12),k("ngIf",i.deleteAllowed()),w(2),k("ngIf",0===i.walletLedger.length),w(1),k("ngForOf",i.walletLedger))},dependencies:[jn,gn,To],styles:[".pre-wrap[_ngcontent-%COMP%]{word-wrap:anywhere;word-break:break-all;white-space:pre-wrap}"]})),t})(),Tst=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getWalletLedger("",r,100,"")}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Est(t,n){if(1&t&&(b(0,"ngb-alert",10),ge(1,"img",11),b(2,"h6",12),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function Ast(t,n){1&t&&(b(0,"th",13),I(1,"Remove"),x())}function Mst(t,n){1&t&&(b(0,"tr")(1,"td",14),I(2,"No friends found."),x()())}function Ist(t,n){1&t&&(b(0,"span"),I(1,"Friend (0)"),x())}function Fst(t,n){1&t&&(b(0,"span"),I(1,"Invite Sent (1)"),x())}function Nst(t,n){1&t&&(b(0,"span"),I(1,"Invite Received (2)"),x())}function Ost(t,n){1&t&&(b(0,"span"),I(1,"Blocked (3)"),x())}function jst(t,n){if(1&t){const e=vt();b(0,"td",16)(1,"button",17),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteFriend(r,s,a))}),I(2,"Delete"),x()()}}function Pst(t,n){if(1&t&&(b(0,"tr")(1,"td"),I(2),x(),b(3,"td"),I(4),x(),b(5,"td"),J(6,Ist,2,0,"span",8),J(7,Fst,2,0,"span",8),J(8,Nst,2,0,"span",8),J(9,Ost,2,0,"span",8),x(),b(10,"td"),I(11),x(),J(12,jst,3,0,"td",15),x()),2&t){const e=n.$implicit,i=j();w(2),Dt(e.user.id),w(2),Dt(e.user.username),w(2),k("ngIf",0===e.state),w(1),k("ngIf",1===e.state),w(1),k("ngIf",2===e.state),w(1),k("ngIf",3===e.state),w(2),Dt(e.update_time),w(1),k("ngIf",i.deleteAllowed())}}let Lst=(()=>{class t{constructor(e,i,r,o){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"error",""),K(this,"account",void 0),K(this,"friends",[]),this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.friends.length=0,this.friends.push(...e[0].friends)},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}deleteFriend(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteFriend("",this.account.user.id,r.user.id).subscribe(()=>{this.error="",this.friends.splice(i,1)},o=>{this.error=o})}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:17,vars:4,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","300px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(e,i){1&e&&(J(0,Est,4,2,"ngb-alert",0),b(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr")(5,"th",4),I(6,"User ID"),x(),b(7,"th"),I(8,"Username"),x(),b(9,"th",5),I(10,"State"),x(),b(11,"th",6),I(12,"Update Time"),x(),J(13,Ast,2,0,"th",7),x()(),b(14,"tbody"),J(15,Mst,3,0,"tr",8),J(16,Pst,13,8,"tr",9),x()()()),2&e&&(k("ngIf",i.error),w(13),k("ngIf",i.deleteAllowed()),w(2),k("ngIf",0===i.friends.length),w(1),k("ngForOf",i.friends))},dependencies:[jn,gn,To],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})),t})(),Rst=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getFriends("",r)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function $st(t,n){if(1&t&&(b(0,"ngb-alert",10),ge(1,"img",11),b(2,"h6",12),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function Bst(t,n){1&t&&(b(0,"th",13),I(1,"Remove"),x())}function Vst(t,n){1&t&&(b(0,"tr")(1,"td",14),I(2,"No group membership found."),x()())}function Hst(t,n){1&t&&(b(0,"span"),I(1,"Superadmin (0)"),x())}function zst(t,n){1&t&&(b(0,"span"),I(1,"Admin (1)"),x())}function Ust(t,n){1&t&&(b(0,"span"),I(1,"Member (2)"),x())}function Gst(t,n){1&t&&(b(0,"span"),I(1,"Join Request (3)"),x())}function Wst(t,n){1&t&&(b(0,"span"),I(1,"Banned (4)"),x())}function qst(t,n){if(1&t){const e=vt();b(0,"td")(1,"button",16),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteGroupUser(r,s,a))}),I(2,"Delete"),x()()}}function Xst(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td",15),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(2),x(),b(3,"td",15),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(4),x(),b(5,"td",15),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),J(6,Hst,2,0,"span",8),J(7,zst,2,0,"span",8),J(8,Ust,2,0,"span",8),J(9,Gst,2,0,"span",8),J(10,Wst,2,0,"span",8),x(),b(11,"td",15),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(12),x(),J(13,qst,3,0,"td",8),x()}if(2&t){const e=n.$implicit,i=j();w(2),Dt(e.group.id),w(2),Dt(e.group.name),w(2),k("ngIf",0===e.state),w(1),k("ngIf",1===e.state),w(1),k("ngIf",2===e.state),w(1),k("ngIf",3===e.state),w(1),k("ngIf",4===e.state),w(2),Dt(e.group.update_time),w(1),k("ngIf",i.deleteAllowed())}}let Yst=(()=>{class t{constructor(e,i,r,o){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"error",""),K(this,"account",void 0),K(this,"groups",[]),this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.groups.length=0,this.groups.push(...e[0].user_groups)},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}deleteGroupUser(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteGroupUser("",this.account.user.id,r.group.id).subscribe(()=>{this.error="",this.groups.splice(i,1)},o=>{this.error=o})}viewAccount(e){this.router.navigate(["/groups",e.group.id],{relativeTo:this.route})}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:17,vars:4,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","300px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(e,i){1&e&&(J(0,$st,4,2,"ngb-alert",0),b(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr")(5,"th",4),I(6,"Group ID"),x(),b(7,"th"),I(8,"Name"),x(),b(9,"th",5),I(10,"State"),x(),b(11,"th",6),I(12,"Update Time"),x(),J(13,Bst,2,0,"th",7),x()(),b(14,"tbody"),J(15,Vst,3,0,"tr",8),J(16,Xst,14,9,"tr",9),x()()()),2&e&&(k("ngIf",i.error),w(13),k("ngIf",i.deleteAllowed()),w(2),k("ngIf",0===i.groups.length),w(1),k("ngForOf",i.groups))},dependencies:[jn,gn,To],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})),t})(),Jst=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getGroups("",r)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();const Kst=["editor"];function Qst(t,n){if(1&t&&(b(0,"ngb-alert",34),ge(1,"img",35),b(2,"h6",36),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function Zst(t,n){1&t&&(b(0,"ngb-alert",37),ge(1,"img",38),b(2,"h6",36),I(3,"Group was modified successfully."),x()()),2&t&&k("dismissible",!1)}function eat(t,n){1&t&&(b(0,"button",39),I(1,"Save"),x()),2&t&&k("disabled",j().updating)}const tat=function(t){return["/accounts",t]},nat=function(t){return{"is-invalid":t}};let iat=(()=>{class t{constructor(e,i,r,o,s){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"formBuilder",void 0),K(this,"editor",void 0),K(this,"jsonEditor",void 0),K(this,"error",""),K(this,"group",void 0),K(this,"groupForm",void 0),K(this,"updating",!1),K(this,"updated",!1),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.groupForm=this.formBuilder.group({name:["",Do.required],description:[""],avatar_url:[""],lang_tag:[""],open:[""],max_count:[""]}),this.route.parent.data.subscribe(e=>{this.group=e[0],this.f.name.setValue(this.group.name),this.f.description.setValue(this.group.description),this.f.avatar_url.setValue(this.group.avatar_url),this.f.lang_tag.setValue(this.group.lang_tag),this.f.open.setValue(this.group.open),this.f.max_count.setValue(this.group.max_count),this.updateAllowed()||this.groupForm.disable()},e=>{this.error=e})}ngAfterViewInit(){this.jsonEditor=new Zm({target:this.editor.nativeElement,props:{mode:Jo.text,readOnly:!this.updateAllowed(),content:{text:this.group.metadata}}})}updateGroup(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=Zv(this.jsonEditor.get()).text}catch(r){return this.error=r,void(this.updating=!1)}if(this.f.max_count.value{this.updated=!0,this.updating=!1},r=>{this.error=r,this.updating=!1})}updateAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}get f(){return this.groupForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&io(Kst,5),2&e){let r;cn(r=un())&&(i.editor=r.first)}},decls:71,vars:16,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","group_id",1,"d-inline"],["type","text","id","group_id","placeholder","Group ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","creator_id",1,"d-inline"],[2,"width","100%",3,"routerLink"],["type","text","id","creator_id","placeholder","Creator ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","name",1,"d-inline"],["type","text","id","name","placeholder","Name","required","","formControlName","name",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","description",1,"d-inline"],["type","text","id","description","placeholder","Description","formControlName","description",1,"form-control","form-control-sm","my-2"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","avatar_url",1,"d-inline"],["type","text","id","avatar_url","placeholder","Avatar URL","formControlName","avatar_url",1,"form-control","form-control-sm","my-2"],["for","lang_tag",1,"d-inline"],["type","text","id","lang_tag","placeholder","Language","formControlName","lang_tag",1,"form-control","form-control-sm","my-2"],["type","text","id","edge_count","placeholder","Members","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","max_count",1,"d-inline"],["type","text","id","max_count","placeholder","Max Count","formControlName","max_count",1,"form-control","form-control-sm","my-2"],["type","checkbox","id","open","formControlName","open",1,"my-2"],[1,"row","mb-3","add-border-single-row-bottom"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","update_time",1,"d-inline"],["type","text","id","update_time","placeholder","Update Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(e,i){1&e&&(J(0,Qst,4,2,"ngb-alert",0),J(1,Zst,4,1,"ngb-alert",1),b(2,"form",2),ye("ngSubmit",function(){return i.updateGroup()}),b(3,"div",3)(4,"div",4)(5,"div",5)(6,"label",6),I(7,"Group ID"),x()(),ge(8,"input",7),x(),b(9,"div",4)(10,"div",5)(11,"label",8),I(12,"Creator ID"),x()(),b(13,"a",9),ge(14,"input",10),x()()(),b(15,"div",3)(16,"div",4)(17,"div",5)(18,"label",11),I(19,"Name"),x()(),ge(20,"input",12),b(21,"div",13),I(22,"Name is required"),x()(),b(23,"div",4)(24,"div",5)(25,"label",14),I(26,"Description"),x()(),ge(27,"input",15),x()(),b(28,"div",3)(29,"div",16)(30,"div",5)(31,"label",17),I(32,"Avatar URL"),x()(),ge(33,"input",18),x(),b(34,"div",4)(35,"div",5)(36,"label",19),I(37,"Language"),x()(),ge(38,"input",20),x()(),b(39,"div",3)(40,"div",4)(41,"div",5)(42,"label",8),I(43,"Members"),x()(),ge(44,"input",21),x(),b(45,"div",16)(46,"div",5)(47,"label",22),I(48,"Max Count"),x()(),ge(49,"input",23),x()(),b(50,"div",3)(51,"div",16)(52,"div",5)(53,"label",22),I(54,"Open"),x()(),ge(55,"input",24),x()(),b(56,"div",25)(57,"div",4)(58,"div",5)(59,"label",26),I(60,"Create Time"),x()(),ge(61,"input",27),x(),b(62,"div",4)(63,"div",5)(64,"label",28),I(65,"Update Time"),x()(),ge(66,"input",29),x()(),b(67,"div",30),ge(68,"div",31,32),x(),J(70,eat,2,1,"button",33),x()),2&e&&(k("ngIf",i.error),w(1),k("ngIf",i.updated),w(1),k("formGroup",i.groupForm),w(6),k("value",i.group.id),w(5),k("routerLink",lr(12,tat,i.group.creator_id)),w(1),k("value",i.group.creator_id),w(6),k("ngClass",lr(14,nat,i.f.name.dirty&&i.f.name.errors)),w(1),k("hidden",i.f.name.disabled||i.f.name.valid||i.f.name.pristine),w(23),k("value",i.group.edge_count),w(17),k("value",i.group.create_time),w(5),k("value",i.group.update_time),w(4),k("ngIf",i.updateAllowed()))},dependencies:[Fu,Rh,gn,To,sl,Na,aC,rl,ol,Ff,fa,ja]})),t})();function rat(t,n){if(1&t&&(b(0,"ngb-alert",13),ge(1,"img",14),b(2,"h6",15),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function oat(t,n){1&t&&(b(0,"span"),I(1,"Add by membership state"),x())}function sat(t,n){if(1&t&&(b(0,"span"),I(1),x()),2&t){const e=j(2);w(1),Dt(e.activeState)}}function aat(t,n){if(1&t){const e=vt();b(0,"button",20),ye("click",function(){const o=$e(e).$implicit;return Be(j(2).activeState=o)}),I(1),x()}if(2&t){const e=n.$implicit;w(1),Dt(e)}}function lat(t,n){if(1&t&&(b(0,"div",16)(1,"button",17),J(2,oat,2,0,"span",11),J(3,sat,2,1,"span",11),x(),b(4,"div",18),J(5,aat,2,1,"button",19),x()()),2&t){const e=j();w(2),k("ngIf",!e.activeState||""===e.activeState),w(1),k("ngIf",e.activeState&&""!==e.activeState),w(2),k("ngForOf",e.states)}}function cat(t,n){if(1&t){const e=vt();b(0,"div",21)(1,"div",22)(2,"div",23)(3,"form",24)(4,"div",25),ge(5,"input",26),b(6,"div",27)(7,"div",28)(8,"button",29),ye("click",function(){return $e(e),Be(j().add())}),I(9,"Add"),x()()()()()()()()}if(2&t){const e=j();w(3),k("formGroup",e.addForm)}}function uat(t,n){1&t&&(b(0,"th",30),I(1,"Demote"),x())}function dat(t,n){1&t&&(b(0,"th",30),I(1,"Promote"),x())}function hat(t,n){1&t&&(b(0,"th",31),I(1,"Remove"),x())}function fat(t,n){1&t&&(b(0,"tr")(1,"td",32),I(2,"No group membership found."),x()())}function pat(t,n){1&t&&(b(0,"span"),I(1,"Superadmin (0)"),x())}function mat(t,n){1&t&&(b(0,"span"),I(1,"Admin (1)"),x())}function gat(t,n){1&t&&(b(0,"span"),I(1,"Member (2)"),x())}function vat(t,n){1&t&&(b(0,"span"),I(1,"Join Request (3)"),x())}function yat(t,n){1&t&&(b(0,"span"),I(1,"Banned (4)"),x())}function bat(t,n){if(1&t){const e=vt();b(0,"td",36)(1,"button",37),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().demoteGroupUser(r,s,a))}),at(),b(2,"svg",38),ge(3,"path",39),x()()()}}function _at(t,n){if(1&t){const e=vt();b(0,"td",36)(1,"button",37),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().promoteGroupUser(r,s,a))}),at(),b(2,"svg",40),ge(3,"path",41),x()()()}}function xat(t,n){if(1&t){const e=vt();b(0,"td",42)(1,"button",43),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteGroupUser(r,s,a))}),I(2,"Delete"),x()()}}function wat(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td",33),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(2),x(),b(3,"td",33),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(4),x(),b(5,"td",33),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),J(6,pat,2,0,"span",11),J(7,mat,2,0,"span",11),J(8,gat,2,0,"span",11),J(9,vat,2,0,"span",11),J(10,yat,2,0,"span",11),x(),b(11,"td",33),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(12),x(),J(13,bat,4,0,"td",34),J(14,_at,4,0,"td",34),J(15,xat,3,0,"td",35),x()}if(2&t){const e=n.$implicit,i=j();w(2),Dt(e.user.id),w(2),Dt(e.user.username),w(2),k("ngIf",0===e.state),w(1),k("ngIf",1===e.state),w(1),k("ngIf",2===e.state),w(1),k("ngIf",3===e.state),w(1),k("ngIf",4===e.state),w(2),Dt(e.user.update_time),w(1),k("ngIf",i.editionAllowed()),w(1),k("ngIf",i.editionAllowed()),w(1),k("ngIf",i.editionAllowed())}}let Cat=(()=>{class t{constructor(e,i,r,o,s){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"formBuilder",void 0),K(this,"authService",void 0),K(this,"error",""),K(this,"group",void 0),K(this,"members",[]),K(this,"activeState","Add Member"),K(this,"states",["Add Member","Join"]),K(this,"addForm",void 0),this.route=e,this.router=i,this.consoleService=r,this.formBuilder=o,this.authService=s,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.addForm=this.formBuilder.group({ids:[""]})}ngOnInit(){this.route.data.subscribe(e=>{this.members.length=0,this.members.push(...e[0].group_users)},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.group=e[0]},e=>{this.error=e})}editionAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}deleteGroupUser(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteGroupUser("",r.user.id,this.group.id).subscribe(()=>{this.members.splice(i,1)},o=>{this.error=o})}demoteGroupUser(e,i,r){this.error="",this.consoleService.demoteGroupMember("",this.group.id,r.user.id).subscribe(()=>{this.members[i].state++},o=>{this.error=o})}promoteGroupUser(e,i,r){this.error="",this.consoleService.promoteGroupMember("",this.group.id,r.user.id).subscribe(()=>{this.members[i].state--},o=>{this.error=o})}viewAccount(e){this.router.navigate(["/accounts",e.user.id],{relativeTo:this.route})}add(){this.consoleService.addGroupUsers("",this.group.id,{ids:this.f.ids.value,join_request:"Join"===this.activeState}).subscribe(()=>{this.error="",this.router.navigate([this.router.url])},i=>{this.error=i})}get f(){return this.addForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Tl),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:21,vars:8,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["class","btn-group mb-1","ngbDropdown","",4,"ngIf"],["class","row no-gutters mb-4",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","300px"],[2,"width","180px"],["style","width: 70px",4,"ngIf"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["ngbDropdown","",1,"btn-group","mb-1"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],["type","button","ngbDropdownItem","",3,"click"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup"],[1,"input-group"],["id","ids","type","text","formControlName","ids","placeholder","Add user IDs as members, comma-separated",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","submit",1,"btn","btn-primary","dropdown-radius-left",3,"click"],[2,"width","70px"],[2,"width","90px"],["colSpan","7",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],["class","text-center align-middle",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-outline-secondary",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-arrow-down"],["fill-rule","evenodd","d","M8 1a.5.5 0 0 1 .5.5v11.793l3.146-3.147a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L7.5 13.293V1.5A.5.5 0 0 1 8 1z"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-arrow-up"],["fill-rule","evenodd","d","M8 15a.5.5 0 0 0 .5-.5V2.707l3.146 3.147a.5.5 0 0 0 .708-.708l-4-4a.5.5 0 0 0-.708 0l-4 4a.5.5 0 1 0 .708.708L7.5 2.707V14.5a.5.5 0 0 0 .5.5z"],[1,"text-center","align-middle"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(e,i){1&e&&(J(0,rat,4,2,"ngb-alert",0),J(1,lat,6,3,"div",1),J(2,cat,10,1,"div",2),b(3,"div",3)(4,"table",4)(5,"thead",5)(6,"tr")(7,"th",6),I(8,"User ID"),x(),b(9,"th"),I(10,"Name"),x(),b(11,"th",7),I(12,"State"),x(),b(13,"th",8),I(14,"Update Time"),x(),J(15,uat,2,0,"th",9),J(16,dat,2,0,"th",9),J(17,hat,2,0,"th",10),x()(),b(18,"tbody"),J(19,fat,3,0,"tr",11),J(20,wat,16,11,"tr",12),x()()()),2&e&&(k("ngIf",i.error),w(1),k("ngIf",!i.group.open&&i.editionAllowed()),w(1),k("ngIf",i.editionAllowed()),w(13),k("ngIf",i.editionAllowed()),w(1),k("ngIf",i.editionAllowed()),w(1),k("ngIf",i.editionAllowed()),w(2),k("ngIf",0===i.members.length),w(1),k("ngForOf",i.members))},dependencies:[jn,gn,To,Pu,rm,Pf,jf,sl,Na,rl,ol,fa,ja],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}.dropdown-radius-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}"]})),t})(),kat=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getMembers("",r)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Sat(t,n){if(1&t&&(b(0,"ngb-alert",28),ge(1,"img",29),b(2,"h6",30),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function Dat(t,n){if(1&t&&(b(0,"span"),I(1),x()),2&t){const e=j();w(1),Dt(e.activeType)}}function Tat(t,n){if(1&t){const e=vt();b(0,"button",31),ye("click",function(){const o=$e(e).$implicit;return Be(j().activeType=o)}),I(1),x()}if(2&t){const e=n.$implicit;w(1),Dt(e)}}function Eat(t,n){if(1&t&&(b(0,"span"),I(1),x()),2&t){const e=j();w(1),Dt(e.activeNode)}}function Aat(t,n){if(1&t){const e=vt();b(0,"button",31),ye("click",function(){const o=$e(e).$implicit;return Be(j().activeNode=o)}),I(1),x()}if(2&t){const e=n.$implicit;w(1),Dt(e)}}function Mat(t,n){1&t&&(b(0,"tr")(1,"td",32),I(2,"No realtime matches were found."),x()())}function Iat(t,n){1&t&&ge(0,"div",40)}function Fat(t,n){1&t&&ge(0,"div",41)}function Nat(t,n){if(1&t){const e=vt();b(0,"div",37),ye("click",function(){$e(e);const r=j(),o=r.index,s=r.$implicit,a=j();return a.getMatchState(o,s),Be(a.matchStatesOpen[o]=!a.matchStatesOpen[o])}),J(1,Iat,1,0,"div",38),J(2,Fat,1,0,"div",39),x()}if(2&t){const e=j().index,i=j();w(1),k("ngIf",!i.matchStatesOpen[e]),w(1),k("ngIf",i.matchStatesOpen[e])}}function Oat(t,n){1&t&&ge(0,"div",42)}function jat(t,n){1&t&&(b(0,"span"),I(1,"Yes"),x())}function Pat(t,n){1&t&&(b(0,"span"),I(1,"No"),x())}function Lat(t,n){1&t&&ge(0,"img",51)}function Rat(t,n){if(1&t&&(b(0,"div")(1,"small")(2,"b"),I(3,"Current Tick"),x()(),b(4,"pre",47)(5,"small"),I(6),x()(),b(7,"small")(8,"b"),I(9,"Match State"),x()(),b(10,"pre",47)(11,"small"),I(12),x()()()),2&t){const e=j(2).index,i=j();w(6),Dt(i.matchStates[e].tick),w(6),Dt(i.matchStates[e].state)}}function $at(t,n){1&t&&ge(0,"img",51)}function Bat(t,n){if(1&t&&(b(0,"pre",47)(1,"small"),I(2),x()()),2&t){const e=j(2).index,i=j();w(2),Dt(i.getMatchPresencesString(i.matchStates[e].presences))}}function Vat(t,n){if(1&t&&(b(0,"tr",43)(1,"td",44)(2,"div",45)(3,"div",46)(4,"small")(5,"b"),I(6,"Match Label"),x()(),b(7,"pre",47)(8,"small"),I(9),x()()(),b(10,"div",48),J(11,Lat,1,0,"img",49),J(12,Rat,13,2,"div",7),x(),b(13,"div",48)(14,"small")(15,"b"),I(16,"Match Presences"),x()(),J(17,$at,1,0,"img",49),J(18,Bat,3,1,"pre",50),x()()()()),2&t){const e=j(),i=e.$implicit,r=e.index,o=j();w(9),Dt(i.api_match.label),w(2),k("ngIf",!o.matchStates[r]||null===o.matchStates[r]),w(1),k("ngIf",null!==o.matchStates[r]),w(5),k("ngIf",!o.matchStates[r]||null===o.matchStates[r]),w(1),k("ngIf",null!==o.matchStates[r])}}function Hat(t,n){if(1&t&&(b(0,"tr")(1,"td"),J(2,Nat,3,2,"div",33),J(3,Oat,1,0,"div",34),I(4),x(),b(5,"td"),I(6),x(),b(7,"td",35),J(8,jat,2,0,"span",7),J(9,Pat,2,0,"span",7),x(),b(10,"td"),I(11),x(),b(12,"td"),I(13),x(),b(14,"td"),I(15),x()(),J(16,Vat,19,5,"tr",36)),2&t){const e=n.index,i=n.$implicit,r=j();w(2),k("ngIf",i.api_match.authoritative),w(1),k("ngIf",!i.api_match.authoritative),w(1),xn(" ",i.api_match.match_id," "),w(2),Dt(i.api_match.size),w(2),k("ngIf",i.api_match.authoritative),w(1),k("ngIf",!i.api_match.authoritative),w(2),Dt(i.node),w(2),Dt(i.api_match.handler_name),w(2),Dt(i.api_match.authoritative?i.api_match.tick_rate:"-"),w(1),k("ngIf",r.matchStatesOpen[e])}}let zat=(()=>{class t{constructor(e,i,r,o){K(this,"route",void 0),K(this,"router",void 0),K(this,"formBuilder",void 0),K(this,"consoleService",void 0),K(this,"error",""),K(this,"matches",[]),K(this,"matchStates",[]),K(this,"matchStatesOpen",[]),K(this,"updated",!1),K(this,"searchForm1",void 0),K(this,"searchForm2",void 0),K(this,"searchForm3",void 0),K(this,"type",void 0),K(this,"activeType","All"),K(this,"types",["All","Authoritative","Relayed"]),K(this,"activeNode","All Nodes"),K(this,"nodes",["All Nodes"]),this.route=e,this.router=i,this.formBuilder=r,this.consoleService=o,this.searchForm1=this.formBuilder.group({match_id:""}),this.searchForm2=this.formBuilder.group({match_id:""}),this.searchForm3=this.formBuilder.group({query:""})}ngOnInit(){const e=this.route.snapshot.queryParamMap;this.f1.match_id.setValue(e.get("match_id")),this.f2.match_id.setValue(e.get("match_id")),this.f3.query.setValue(e.get("query"));let i=e.get("type");this.type=Number(i);let r=e.get("node");if(this.route.data.subscribe(o=>{console.log(o),o&&(o[0]&&(this.error="",this.matches.length=0,this.matches.push(...o[0].matches),this.matchStates.length=this.matches.length,this.matchStatesOpen.length=this.matches.length),o[1]&&this.nodes.push(...o[1]),o.error&&(this.error=o.error))},o=>{this.error=o}),null===i?(this.type=0,this.activeType=this.types[0]):0==this.type||1==this.type||2==this.type?this.activeType=this.types[this.type]:this.error="Invalid type",null!==r){let o=!1;this.nodes.forEach(s=>{r===s&&(this.activeNode=r,o=!0)}),o||(this.error="Invalid node.")}}search(){const e=this.getType();this.type=e,Xme(this.consoleService,e,0==e?this.f1.match_id.value:this.f2.match_id.value,this.f3.query.value,this.activeNode===this.nodes[0]?"":this.activeNode).subscribe(i=>this.postData(i),i=>{this.error=i})}postData(e){let i;switch(this.error="",this.matches.length=0,this.matches.push(...e.matches),this.matchStates.length=this.matches.length,this.matchStatesOpen.length=this.matches.length,this.type){case 0:i={type:this.type,match_id:this.f1.match_id.value};break;case 1:i={type:this.type,query:this.f3.query.value},this.activeNode!==this.nodes[0]&&(i.node=this.activeNode);break;case 2:i={type:this.type,match_id:this.f2.match_id.value}}this.router.navigate([],{relativeTo:this.route,queryParams:i})}getType(){let e=0;return this.types.forEach((i,r)=>{this.activeType===i&&(e=r)}),e}getMatchState(e,i){this.matchStatesOpen[e]||(this.matchStates[e]=null,this.error="",this.consoleService.getMatchState("",i.api_match.match_id).subscribe(r=>{this.matchStatesOpen[e]=!0,this.matchStates[e]=r},r=>{this.matchStatesOpen[e]=!1,this.matchStates[e]=null,this.error=r}))}getMatchPresencesString(e){return JSON.stringify(e)}get f1(){return this.searchForm1.controls}get f2(){return this.searchForm2.controls}get f3(){return this.searchForm3.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(Tl),le(xi))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:53,vars:16,consts:[[1,"pb-1"],[1,"pb-4"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"input-group","mb-1"],[1,"input-group-prepend"],["ngbDropdown","",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary","dropdown-radius-right"],[4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],[1,"input-group-append"],["type","submit",1,"btn","btn-primary",3,"click"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"hidden","formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","match_id","placeholder","Filter by match ID",1,"form-control"],["type","text","formControlName","query","placeholder","Filter by query or match ID",1,"form-control","border-right-0"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary","dropdown-radius-left"],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered"],[1,"thead-light"],[2,"width","140px"],[2,"width","100px"],[2,"width","130px"],[2,"width","90px"],["ngFor","",3,"ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","button","ngbDropdownItem","",3,"click"],["colSpan","8",1,"text-muted"],["class","arrow",3,"click",4,"ngIf"],["class","d-inline-block mr-3",4,"ngIf"],[1,"text-center"],["class","open-row",4,"ngIf"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"d-inline-block","mr-3"],[1,"open-row"],["colspan","6",1,"align-middle"],[1,"d-flex","p-0"],[1,"p-3","w-33","border"],[1,"pre-wrap","m-0","p-0"],[1,"p-3","w-33","border","border-left-0"],["src","/static/spinner.svg","class","d-block","width","16",4,"ngIf"],["class","pre-wrap m-0 p-0",4,"ngIf"],["src","/static/spinner.svg","width","16",1,"d-block"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"Active Matches"),x(),b(2,"h6",1),I(3),x(),J(4,Sat,4,2,"ngb-alert",2),b(5,"div",3)(6,"div",4)(7,"div",5)(8,"button",6),J(9,Dat,2,1,"span",7),x(),b(10,"div",8),J(11,Tat,2,1,"button",9),x()()(),b(12,"div",10)(13,"button",11),ye("click",function(){return i.search()}),I(14,"Search"),x()()(),b(15,"div",12)(16,"div",13)(17,"div",14)(18,"form",15),ye("ngSubmit",function(){return i.search()}),b(19,"div",16),ge(20,"input",17),x()(),b(21,"form",15),ye("ngSubmit",function(){return i.search()}),b(22,"div",16),ge(23,"input",17),x()(),b(24,"form",15),ye("ngSubmit",function(){return i.search()}),b(25,"div",16),ge(26,"input",18),b(27,"div",10)(28,"div",5)(29,"button",19),J(30,Eat,2,1,"span",7),x(),b(31,"div",8),J(32,Aat,2,1,"button",9),x()()()()()()()(),b(33,"div",20)(34,"table",21)(35,"thead",22)(36,"tr")(37,"th")(38,"span"),I(39,"Match ID"),x()(),b(40,"th",23),I(41,"Presence Count"),x(),b(42,"th",24),I(43,"Authoritative"),x(),b(44,"th",24),I(45,"Node"),x(),b(46,"th",25),I(47,"Handler Name"),x(),b(48,"th",26),I(49,"Tick Rate"),x()()(),b(50,"tbody"),J(51,Mat,3,0,"tr",7),J(52,Hat,17,10,"ng-template",27),x()()()),2&e&&(w(3),xn("",i.matches.length," running matches found."),w(1),k("ngIf",i.error),w(5),k("ngIf",i.activeType&&""!==i.activeType),w(2),k("ngForOf",i.types),w(7),k("hidden","All"!==i.activeType)("formGroup",i.searchForm1),w(3),k("hidden","Relayed"!==i.activeType)("formGroup",i.searchForm2),w(3),k("hidden","Authoritative"!==i.activeType)("formGroup",i.searchForm3),w(6),k("ngIf",i.activeNode&&""!==i.activeNode),w(2),k("ngForOf",i.nodes),w(6),Mn("pl-3",i.matches.length>0),w(13),k("ngIf",0===i.matches.length),w(1),k("ngForOf",i.matches))},dependencies:[jn,gn,To,Pu,rm,Pf,jf,sl,Na,rl,ol,fa,ja],styles:[".pre-wrap[_ngcontent-%COMP%]{word-wrap:anywhere;word-break:break-all;white-space:pre-wrap}.open-row[_ngcontent-%COMP%]{background:#FAFAFC}.w-33[_ngcontent-%COMP%]{width:33.3333%!important}.dropdown-radius-right[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.dropdown-radius-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}"]})),t})(),Uat=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){let r=Number(e.queryParamMap.get("type"));return Xme(this.consoleService,r,e.queryParamMap.get("match_id"),e.queryParamMap.get("query"),e.queryParamMap.get("node")).pipe(Ul(o=>(e.data={...e.data,error:o},$n(null))))}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Xme(t,n,e,i,r){switch(n){case 0:return t.listMatches("",null,null,null,null,null,e);case 1:return t.listMatches("",null,!0,null,null,null,null,i,r);case 2:return t.listMatches("",null,!1,null,null,null,e)}return $n(null)}let Gat=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.getStatus("").pipe(nt(r=>$n(r.nodes.map(o=>o.name)))).pipe(Ul(r=>(e.data={...e.data,error:r},$n([]))))}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Wat(t,n){if(1&t&&(b(0,"ngb-alert",25),ge(1,"img",26),b(2,"h6",27),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Error when querying groups: ",e.error,"")}}function qat(t,n){1&t&&(b(0,"th",28),I(1,"Remove"),x())}function Xat(t,n){1&t&&(b(0,"tr")(1,"td",29),I(2,"No groups found - change the filter criteria or add new user groups."),x()())}function Yat(t,n){1&t&&ge(0,"td")}function Jat(t,n){if(1&t){const e=vt();b(0,"td",32)(1,"button",33),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteGroup(r,s,a))}),I(2,"Delete"),x()()}}function Kat(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td",30),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewGroup(o))}),I(2),x(),b(3,"td",30),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewGroup(o))}),I(4),x(),b(5,"td",30),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewGroup(o))}),I(6),x(),J(7,Yat,1,0,"td",23),J(8,Jat,3,0,"td",31),x()}if(2&t){const e=n.$implicit,i=j();w(2),Dt(e.id),w(2),Dt(e.name),w(2),Dt(e.update_time),w(1),k("ngIf",i.deleteAllowed()&&e.id===i.systemUserId),w(1),k("ngIf",i.deleteAllowed()&&e.id!==i.systemUserId)}}let Qat=(()=>{class t{constructor(e,i,r,o,s){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"formBuilder",void 0),K(this,"systemUserId","00000000-0000-0000-0000-000000000000"),K(this,"error",""),K(this,"groupsCount",0),K(this,"groups",[]),K(this,"nextCursor",""),K(this,"prevCursor",""),K(this,"searchForm",void 0),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.searchForm=this.formBuilder.group({filter:[""]});const e=this.route.snapshot.queryParamMap;this.f.filter.setValue(e.get("filter")),this.nextCursor=e.get("cursor"),this.nextCursor&&""!==this.nextCursor?this.search(1):this.f.filter.value&&this.search(0),this.route.data.subscribe(i=>{this.groups.length=0,i&&(this.groups.push(...i[0].groups),this.groupsCount=i[0].total_count,this.nextCursor=i[0].next_cursor,this.prevCursor=i[0].prev_cursor)},i=>{this.error=i})}search(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listGroups("",this.f.filter.value,i).subscribe(r=>{this.error="",this.groups.length=0,this.groups.push(...r.groups),this.groupsCount=r.total_count,this.nextCursor=r.next_cursor,this.router.navigate([],{relativeTo:this.route,queryParams:{filter:this.f.filter.value,cursor:i},queryParamsHandling:"merge"})},r=>{this.error=r})}deleteGroup(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteGroup("",r.id).subscribe(()=>{this.error="",this.groups.splice(i,1),this.groupsCount--},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_DEVELOPER}viewGroup(e){this.router.navigate(["/groups",e.id],{relativeTo:this.route})}get f(){return this.searchForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:35,vars:8,consts:[[1,"pb-1"],[1,"pb-3"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","filter","placeholder","Filter by group ID or name (use '%' for wildcard search)",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","button",1,"btn","btn-primary","dropdown-radius",3,"click"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"User Groups"),x(),b(2,"h6",1),I(3),x(),b(4,"div",2)(5,"div",3)(6,"div",4)(7,"form",5),ye("ngSubmit",function(){return i.search(0)}),b(8,"div",6),ge(9,"input",7),b(10,"div",8)(11,"div",9)(12,"button",10),ye("click",function(){return i.search(0)}),I(13,"Search"),x()()()()()(),b(14,"div",11)(15,"div",12)(16,"button",13),ye("click",function(){return i.search(0)}),ge(17,"img",14),x(),b(18,"button",13),ye("click",function(){return i.search(1)}),ge(19,"img",15),x()()()()(),J(20,Wat,4,2,"ngb-alert",16),b(21,"div",17)(22,"table",18)(23,"thead",19)(24,"tr")(25,"th",20),I(26,"Group ID"),x(),b(27,"th"),I(28,"Name"),x(),b(29,"th",21),I(30,"Last Update"),x(),J(31,qat,2,0,"th",22),x()(),b(32,"tbody"),J(33,Xat,3,0,"tr",23),J(34,Kat,9,5,"tr",24),x()()()),2&e&&(w(3),xn("",i.groupsCount," groups found."),w(4),k("formGroup",i.searchForm),w(9),k("disabled",0===i.groups.length),w(2),k("disabled",""===i.nextCursor),w(2),k("ngIf",i.error),w(11),k("ngIf",i.deleteAllowed()),w(2),k("ngIf",0===i.groups.length),w(1),k("ngForOf",i.groups))},dependencies:[jn,gn,To,sl,Na,rl,ol,fa,ja],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})),t})(),Zat=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.queryParamMap.get("filter");return this.consoleService.listGroups("",r,null)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function elt(t,n){if(1&t){const e=vt();b(0,"button",13),ye("click",function(r){return $e(e),Be(j().exportGroup(r))}),ge(1,"img",14),I(2,"Export"),x()}}function tlt(t,n){if(1&t){const e=vt();b(0,"button",15),ye("click",function(r){return $e(e),Be(j().deleteGroup(r,!1))}),ge(1,"img",16),I(2,"Delete"),x()}}function nlt(t,n){if(1&t&&(b(0,"ngb-alert",17),ge(1,"img",18),b(2,"h6",19),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}const ilt=function(t,n){return["/groups",t,n]};function rlt(t,n){if(1&t&&(b(0,"div"),ta(1,20),b(2,"a",21),I(3),x(),na(),x()),2&t){const e=n.$implicit,i=j();w(1),k("ngbNavItem",e.path),w(1),k("routerLink",Sr(3,ilt,i.group.id,e.path)),w(1),Dt(e.label)}}const olt=function(){return["/groups"]};let slt=(()=>{class t{constructor(e,i,r,o){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"group",void 0),K(this,"error",""),K(this,"views",[{label:"Details",path:"details"},{label:"Members",path:"members"}]),this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.group=e[0]},e=>{this.error=e})}deleteGroup(e,i){e.target.disabled=!0,this.error="",this.consoleService.deleteGroup("",this.group.id).subscribe(()=>{this.error="",this.router.navigate(["/groups"])},r=>{this.error=r})}exportGroup(e){e.target.disabled=!0,this.error="",this.consoleService.exportGroup("",this.group.id).subscribe(i=>{this.error="";const r=this.group.id+"-export.json",o=JSON.stringify(i,null,2),s=(new TextEncoder).encode(o),a=new Blob([s],{type:"application/json;charset=utf-8"});(0,rF.saveAs)(a,r),e.target.disabled=!1},i=>{e.target.disabled=!1,this.error=i})}updateAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}exportAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}banAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:18,vars:7,consts:[[1,"pb-1"],[1,"account-top-nav","d-flex","justify-content-between","align-items-baseline","mb-4"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active"],["type","button","class","btn btn-outline-secondary mr-2",3,"click",4,"ngIf"],["type","button","class","btn btn-danger btn-danger-icon mr-2",3,"click",4,"ngIf"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["ngbNav","",1,"navbar-expand-sm","p-0","mb-3"],["accountNav","ngbNav"],[4,"ngFor","ngForOf"],["type","button",1,"btn","btn-outline-secondary","mr-2",3,"click"],["src","/static/svg/export.svg","alt","","width","13","height","13",1,"mr-2"],["type","button",1,"btn","btn-danger","btn-danger-icon","mr-2",3,"click"],["src","/static/svg/bin-red.svg","alt","","width","14","height","",1,"mr-2"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"ngbNavItem"],["ngbNavLink","","routerLinkActive","account-link-active",3,"routerLink"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"User Group"),x(),b(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4)(6,"a",5),I(7,"Group"),x()(),b(8,"li",6),I(9),x()()(),b(10,"div"),J(11,elt,3,0,"button",7),J(12,tlt,3,0,"button",8),x()(),J(13,nlt,4,2,"ngb-alert",9),b(14,"nav",10,11),J(16,rlt,4,6,"div",12),x(),ge(17,"router-outlet")),2&e&&(w(6),k("routerLink",wl(6,olt)),w(3),Dt(i.group.id),w(2),k("ngIf",i.exportAllowed()),w(1),k("ngIf",i.deleteAllowed()),w(1),k("ngIf",i.error),w(3),k("ngForOf",i.views))},dependencies:[Jp,Fu,hy,jn,gn,To,am,sm,fv],styles:[".nav-link[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#000;opacity:.5;padding:0 0 1.6em;margin-right:3em;margin-bottom:-2px;font-weight:600}.nav-link[_ngcontent-%COMP%]:hover{opacity:1}.nav-link.account-link-active[_ngcontent-%COMP%]{opacity:1;border-bottom:solid 2px #7668ED}.navbar-expand-sm[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9}.account-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})),t})(),alt=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.paramMap.get("id");return this.consoleService.getGroup("",r)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function llt(t,n){if(1&t){const e=vt();b(0,"button",12),ye("click",function(r){return $e(e),Be(j().deleteLeaderboard(r))}),ge(1,"img",13),I(2,"Delete Leaderboard"),x()}}function clt(t,n){if(1&t&&(b(0,"ngb-alert",14),ge(1,"img",15),b(2,"h6",16),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}const ult=function(t,n){return["/leaderboards",t,n]};function dlt(t,n){if(1&t&&(b(0,"div"),ta(1,17),b(2,"a",18),I(3),x(),na(),x()),2&t){const e=n.$implicit,i=j();w(1),k("ngbNavItem",e.path),w(1),k("routerLink",Sr(3,ult,i.leaderboard.id,e.path)),w(1),Dt(e.label)}}const hlt=function(){return["/leaderboards"]};let flt=(()=>{class t{constructor(e,i,r,o){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"leaderboard",void 0),K(this,"error",""),K(this,"views",[{label:"Details",path:"details"},{label:"Records",path:"records"}]),this.route=e,this.router=i,this.consoleService=r,this.authService=o}ngOnInit(){this.route.data.subscribe(e=>{this.leaderboard=e[0]},e=>{this.error=e})}deleteLeaderboard(e){e.target.disabled=!0,this.error="",this.consoleService.deleteLeaderboard("",this.leaderboard.id).subscribe(()=>{this.error="",this.router.navigate(["/leaderboards"])},i=>{this.error=i})}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_DEVELOPER}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:17,vars:6,consts:[[1,"pb-1"],[1,"leaderboard-top-nav","d-flex","justify-content-between","align-items-baseline","mb-3"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active"],["type","button","class","btn btn-danger btn-danger-icon",3,"click",4,"ngIf"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["ngbNav","",1,"navbar-expand-sm","p-0","mb-3"],["leaderboardNav","ngbNav"],[4,"ngFor","ngForOf"],["type","button",1,"btn","btn-danger","btn-danger-icon",3,"click"],["src","/static/svg/bin-red.svg","alt","","width","13","height","13",1,"mr-2"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"ngbNavItem"],["ngbNavLink","","routerLinkActive","account-link-active",3,"routerLink"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"Leaderboard"),x(),b(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4)(6,"a",5),I(7,"Leaderboards"),x()(),b(8,"li",6),I(9),x()()(),b(10,"div"),J(11,llt,3,0,"button",7),x()(),J(12,clt,4,2,"ngb-alert",8),b(13,"nav",9,10),J(15,dlt,4,6,"div",11),x(),ge(16,"router-outlet")),2&e&&(w(6),k("routerLink",wl(5,hlt)),w(3),Dt(i.leaderboard.id),w(2),k("ngIf",i.deleteAllowed()),w(1),k("ngIf",i.error),w(3),k("ngForOf",i.views))},dependencies:[Jp,Fu,hy,jn,gn,To,am,sm,fv],styles:[".nav-link[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#000;opacity:.5;padding:0 0 1.6em;margin-right:3em;margin-bottom:-2px;font-weight:600}.nav-link[_ngcontent-%COMP%]:hover{opacity:1}.nav-link.account-link-active[_ngcontent-%COMP%]{opacity:1;border-bottom:solid 2px #7668ED}.navbar-expand-sm[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9}.leaderboard-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})),t})(),plt=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.paramMap.get("id");return this.consoleService.getLeaderboard("",r)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();const mlt=["editor"];function glt(t,n){if(1&t&&(b(0,"ngb-alert",24),ge(1,"img",25),b(2,"h6",26),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function vlt(t,n){if(1&t&&(b(0,"div",27)(1,"h6"),I(2,"Tournament"),x(),ge(3,"hr",28),b(4,"div",2)(5,"div",3)(6,"div",4)(7,"label",29),I(8,"Title"),x()(),ge(9,"input",30),x(),b(10,"div",3)(11,"div",4)(12,"label",31),I(13,"Description"),x()(),ge(14,"input",32),x()(),b(15,"div",2)(16,"div",3)(17,"div",4)(18,"label",33),I(19,"Category"),x()(),ge(20,"input",34),x(),b(21,"div",3)(22,"div",4)(23,"label",35),I(24,"Max Num Score"),x()(),ge(25,"input",36),x()(),b(26,"div",2)(27,"div",3)(28,"div",4)(29,"label",37),I(30,"Size"),x()(),ge(31,"input",38),x(),b(32,"div",3)(33,"div",4)(34,"label",39),I(35,"Max Size"),x()(),ge(36,"input",40),x()(),b(37,"div",2)(38,"div",3)(39,"div",4)(40,"label",41),I(41,"Duration"),x()(),ge(42,"input",42),x(),b(43,"div",3)(44,"div",4)(45,"label",43),I(46,"Join Required"),x()(),ge(47,"input",44),x()(),b(48,"div",2)(49,"div",3)(50,"div",4)(51,"label",45),I(52,"Start Time"),x()(),ge(53,"input",46),x(),b(54,"div",3)(55,"div",4)(56,"label",47),I(57,"End Time"),x()(),ge(58,"input",48),x()(),b(59,"div",2)(60,"div",3)(61,"div",4)(62,"label",49),I(63,"Start Active"),x()(),ge(64,"input",50),x(),b(65,"div",3)(66,"div",4)(67,"label",51),I(68,"End Active"),x()(),ge(69,"input",52),x()()()),2&t){const e=j();w(9),k("value",e.leaderboard.title),w(5),k("value",e.leaderboard.description),w(6),k("value",e.leaderboard.category),w(5),k("value",e.leaderboard.max_num_score),w(6),k("value",e.leaderboard.size),w(5),k("value",e.leaderboard.max_size),w(6),k("value",e.leaderboard.duration),w(5),k("value",e.leaderboard.join_required),w(6),k("value",e.leaderboard.start_time),w(5),k("value",e.leaderboard.end_time),w(6),k("value",e.leaderboard.start_active),w(5),k("value",e.leaderboard.end_active)}}let ylt=(()=>{class t{constructor(e){K(this,"route",void 0),K(this,"editor",void 0),K(this,"orderString",{0:"Ascending",1:"Descending"}),K(this,"operatorString",{0:"Best",1:"Set",2:"Increment",3:"Decrement"}),K(this,"jsonEditor",void 0),K(this,"leaderboard",void 0),K(this,"error",""),this.route=e}ngOnInit(){this.route.parent.data.subscribe(e=>{this.leaderboard=e[0]},e=>{this.error=e})}ngAfterViewInit(){this.jsonEditor=new Zm({target:this.editor.nativeElement,props:{mode:Jo.text,readOnly:!0,content:{text:this.leaderboard.metadata??""}}})}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&io(mlt,5),2&e){let r;cn(r=un())&&(i.editor=r.first)}},decls:50,vars:10,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border","mb-3"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","id",1,"d-inline"],["type","text","id","id","placeholder","ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","authoritative",1,"d-inline"],["type","text","id","authoritative","placeholder","Authoritative","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","sortorder",1,"d-inline"],["type","text","id","sortorder","placeholder","Sort Order","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","operator",1,"d-inline"],["type","text","id","operator","placeholder","Operator","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","reset",1,"d-inline"],["type","text","id","reset","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"row","add-border-single-row-bottom"],["type","text","id","prev_reset","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["type","text","id","next_reset","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["class","mt-4",4,"ngIf"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[1,"mt-4"],[1,"mb-4"],["for","title",1,"d-inline"],["type","text","id","title","placeholder","Title","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","description",1,"d-inline"],["type","text","id","description","placeholder","Description","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","category",1,"d-inline"],["type","text","id","category","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","max_num_score",1,"d-inline"],["type","text","id","max_num_score","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","size",1,"d-inline"],["type","text","id","size","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","max_size",1,"d-inline"],["type","text","id","max_size","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","duration",1,"d-inline"],["type","text","id","duration","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","join_required",1,"d-inline"],["type","text","id","join_required","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","start_time",1,"d-inline"],["type","text","id","start_time","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","end_time",1,"d-inline"],["type","text","id","end_time","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","start_active",1,"d-inline"],["type","text","id","start_active","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","end_active",1,"d-inline"],["type","text","id","end_active","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"]],template:function(e,i){1&e&&(J(0,glt,4,2,"ngb-alert",0),b(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"label",5),I(6,"ID"),x()(),ge(7,"input",6),x(),b(8,"div",3)(9,"div",4)(10,"label",7),I(11,"Authoritative"),x()(),ge(12,"input",8),x()(),b(13,"div",2)(14,"div",3)(15,"div",4)(16,"label",9),I(17,"Sort Order"),x()(),ge(18,"input",10),x(),b(19,"div",3)(20,"div",4)(21,"label",11),I(22,"Operator"),x()(),ge(23,"input",12),x()(),b(24,"div",2)(25,"div",3)(26,"div",4)(27,"label",13),I(28,"Reset Schedule"),x()(),ge(29,"input",14),x(),b(30,"div",3)(31,"div",4)(32,"label",15),I(33,"Create Time"),x()(),ge(34,"input",16),x()(),b(35,"div",17)(36,"div",3)(37,"div",4)(38,"label",13),I(39,"Prev Reset"),x()(),ge(40,"input",18),x(),b(41,"div",3)(42,"div",4)(43,"label",15),I(44,"Next Reset"),x()(),ge(45,"input",19),x()()(),J(46,vlt,70,12,"div",20),b(47,"div",21),ge(48,"div",22,23),x()),2&e&&(k("ngIf",i.error),w(7),k("value",i.leaderboard.id),w(5),k("value",i.leaderboard.authoritative),w(6),k("value",i.orderString[i.leaderboard.sort_order]),w(5),k("value",i.operatorString[i.leaderboard.operator]),w(6),k("value",i.leaderboard.reset_schedule),w(5),k("value",i.leaderboard.create_time),w(6),k("value",i.leaderboard.prev_reset),w(5),k("value",i.leaderboard.next_reset),w(1),k("ngIf",i.leaderboard.tournament))},dependencies:[gn,To],styles:[".leaderboard-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})),t})();function blt(t,n){if(1&t&&(b(0,"ngb-alert",19),ge(1,"img",20),b(2,"h6",21),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("An error occurred: ",e.error,"")}}function _lt(t,n){1&t&&(b(0,"th",22),I(1,"Remove"),x())}function xlt(t,n){1&t&&(b(0,"tr")(1,"td",23),I(2,"No records found."),x()())}function wlt(t,n){1&t&&ge(0,"div",28)}function Clt(t,n){1&t&&ge(0,"div",29)}function klt(t,n){if(1&t){const e=vt();b(0,"td",30)(1,"button",31),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteRecord(r,s,a))}),I(2,"Delete"),x()()}}function Slt(t,n){if(1&t&&(b(0,"tr")(1,"td",32)(2,"pre",33)(3,"small"),I(4),x()()()()),2&t){const e=j().$implicit;w(4),Dt(e.metadata)}}function Dlt(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td")(2,"div",24),ye("click",function(){const o=$e(e).index,s=j();return Be(s.recordsMetadataOpen[o]=!s.recordsMetadataOpen[o])}),J(3,wlt,1,0,"div",25),J(4,Clt,1,0,"div",26),x(),I(5),x(),b(6,"td"),I(7),x(),b(8,"td"),I(9),x(),b(10,"td"),I(11),x(),b(12,"td"),I(13),x(),b(14,"td"),I(15),x(),b(16,"td"),I(17),x(),J(18,klt,3,0,"td",27),x(),J(19,Slt,5,1,"tr",17)}if(2&t){const e=n.index,i=n.$implicit,r=j();w(3),k("ngIf",!r.recordsMetadataOpen[e]),w(1),k("ngIf",r.recordsMetadataOpen[e]),w(1),xn(" ",i.owner_id," "),w(2),Dt(i.username),w(2),Dt(i.score),w(2),Dt(i.subscore),w(2),Dt(i.rank),w(2),Dt(i.num_score),w(2),Dt(i.expiry_time?i.expiry_time:"-"),w(1),k("ngIf",r.deleteAllowed()),w(1),k("ngIf",r.recordsMetadataOpen[e])}}let Tlt=(()=>{class t{constructor(e,i,r){K(this,"route",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"error",""),K(this,"leaderboard",void 0),K(this,"records",[]),K(this,"recordsMetadataOpen",[]),K(this,"nextCursor",""),K(this,"prevCursor",""),this.route=e,this.consoleService=i,this.authService=r}ngOnInit(){this.route.data.subscribe(e=>{this.records.length=0,this.records.push(...e[0].records),this.nextCursor=e[0].next_cursor,this.prevCursor=e[0].prev_cursor,this.recordsMetadataOpen.length=this.records.length},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.leaderboard=e[0]},e=>{this.error=e})}loadRecords(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listLeaderboardRecords("",this.leaderboard.id,null,100,i,null).subscribe(r=>{this.error="",this.nextCursor=r.next_cursor,this.prevCursor=r.prev_cursor,this.records.length=0,this.records.push(...r.records),this.recordsMetadataOpen.length=0,this.recordsMetadataOpen.length=this.records.length},r=>{this.error=r})}deleteRecord(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteLeaderboardRecord("",r.leaderboard_id,r.owner_id).subscribe(()=>{this.error="",this.records.splice(i,1),this.recordsMetadataOpen.splice(i,1)},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(xi),le(Xo))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:34,vars:7,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered"],[1,"thead-light"],[2,"width","380px"],[2,"width","150px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],["ngFor","",3,"ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","8",1,"text-muted"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","text-center",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],["colspan","7",1,"align-middle"],[1,"pre-wrap","m-0","p-0"]],template:function(e,i){1&e&&(J(0,blt,4,2,"ngb-alert",0),b(1,"div",1)(2,"div",2),ge(3,"div",3),b(4,"div",4)(5,"div",5)(6,"button",6),ye("click",function(){return i.loadRecords(0)}),ge(7,"img",7),x(),b(8,"button",6),ye("click",function(){return i.loadRecords(-1)}),ge(9,"img",8),x(),b(10,"button",6),ye("click",function(){return i.loadRecords(1)}),ge(11,"img",9),x()()()()(),b(12,"div",10)(13,"table",11)(14,"thead",12)(15,"tr")(16,"th",13),I(17,"Owner ID"),x(),b(18,"th"),I(19,"Username"),x(),b(20,"th",14),I(21,"Score"),x(),b(22,"th",14),I(23,"Subscore"),x(),b(24,"th",14),I(25,"Rank"),x(),b(26,"th",14),I(27,"No. of scores"),x(),b(28,"th",15),I(29,"Expiry Time"),x(),J(30,_lt,2,0,"th",16),x()(),b(31,"tbody"),J(32,xlt,3,0,"tr",17),J(33,Dlt,20,11,"ng-template",18),x()()()),2&e&&(k("ngIf",i.error),w(6),k("disabled",0===i.records.length),w(2),k("disabled",""===i.prevCursor),w(2),k("disabled",""===i.nextCursor),w(20),k("ngIf",i.deleteAllowed()),w(2),k("ngIf",0===i.records.length),w(1),k("ngForOf",i.records))},dependencies:[jn,gn,To]})),t})(),Elt=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.listLeaderboardRecords("",r,null,100,null,null)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();const Alt=["editor"],Mlt=["editorResponse"];function Ilt(t,n){if(1&t&&(b(0,"ngb-alert",23),ge(1,"img",24),b(2,"h6",25),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Error whilst making RPC call: ",e.error,"")}}function Flt(t,n){if(1&t&&(b(0,"option",26),I(1),x()),2&t){const e=n.$implicit;Nh("value",e.method),w(1),Dt(e.method)}}function Nlt(t,n){if(1&t&&(b(0,"option",26),I(1),x()),2&t){const e=n.$implicit;Nh("value",e.method),w(1),Dt(e.method)}}let Olt=(()=>{class t{constructor(e,i,r,o){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"formBuilder",void 0),K(this,"editor",void 0),K(this,"editorResponse",void 0),K(this,"jsonEditor",void 0),K(this,"jsonEditorResponse",void 0),K(this,"error",""),K(this,"rpcEndpoints",[]),K(this,"endpoints",[]),K(this,"endpointCallForm",void 0),this.route=e,this.router=i,this.consoleService=r,this.formBuilder=o}ngOnInit(){this.endpointCallForm=this.formBuilder.group({method:["",Do.required],user_id:[""]}),this.f.method.valueChanges.subscribe(i=>{const r=this.endpoints.concat(this.rpcEndpoints).find(o=>o.method===i?o:null);this.updateQueryParam(r.method),this.setupRequestBody(r.body_template)}),this.route.data.subscribe(i=>{const r=i[0];this.endpoints.length=0,this.endpoints.push(...r.endpoints),this.rpcEndpoints.length=0,this.rpcEndpoints.push(...r.rpc_endpoints)},i=>{this.error=i});const e=this.endpoints.concat(this.rpcEndpoints).find(i=>i.method===this.route.snapshot.queryParamMap.get("endpoint")?i:null);null!=e&&this.f.method.setValue(e.method)}ngAfterViewInit(){this.jsonEditor=new Zm({target:this.editor.nativeElement,props:{mode:Jo.text,readOnly:!0}}),this.jsonEditorResponse=new Zm({target:this.editorResponse.nativeElement,props:{mode:Jo.text,readOnly:!0}})}sendRequest(){this.error="";let e="";try{e=Zv(this.jsonEditor.get()).text}catch(o){return void(this.error=o)}const i={user_id:this.f.user_id.value,body:e};let r=null;r=this.isRpcEndpoint(this.f.method.value)?this.consoleService.callRpcEndpoint("",this.f.method.value,i):this.consoleService.callApiEndpoint("",this.f.method.value,i),r.subscribe(o=>{if(o.error_message&&""!==o.error_message)this.jsonEditorResponse.set({json:o.error_message});else{e="";try{e=JSON.stringify(JSON.parse(o.body),null,2)}catch(s){return void(this.error=s)}this.jsonEditorResponse.set({text:e})}},o=>{this.jsonEditorResponse.set({text:""}),this.error=o})}isRpcEndpoint(e){return null!=this.rpcEndpoints.find(i=>i.method===e?i:null)}setupRequestBody(e){if(null!=this.jsonEditor){if(!e||""===e)return this.jsonEditor.set({text:""}),void this.jsonEditor.updateProps({readOnly:!this.isRpcEndpoint(this.f.method.value)});try{const i=JSON.stringify(JSON.parse(e),null,2);this.jsonEditor.set({text:i}),this.jsonEditor.updateProps({readOnly:!1})}catch(i){return void(this.error=i)}}else console.log("problem?")}updateQueryParam(e){this.router.navigate([],{relativeTo:this.route,queryParams:{endpoint:e},queryParamsHandling:"merge"})}get f(){return this.endpointCallForm.controls}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Tl))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&(io(Alt,5),io(Mlt,5)),2&e){let r;cn(r=un())&&(i.editor=r.first),cn(r=un())&&(i.editorResponse=r.first)}},decls:35,vars:6,consts:[[1,"pb-4"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],[1,"input-group-prepend"],["id","method","formControlName","method",1,"form-control","custom-select","dropdown-radius"],["disabled","",3,"value"],[3,"value",4,"ngFor","ngForOf"],["disabled","",1,"text-muted"],["type","text","formControlName","user_id","placeholder","set user ID as request context",1,"form-control","border-right-0"],[1,"input-group-append"],["type","submit",1,"btn","btn-primary",3,"disabled"],[1,"d-flex"],[1,"w-50","py-3"],[1,"mb-4"],[1,"card","p-2","mb-3","jsoneditor"],[2,"height","500px"],["editor",""],[1,"w-50","pl-3","py-3"],["editorResponse",""],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"value"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"API Explorer"),x(),J(2,Ilt,4,2,"ngb-alert",1),b(3,"div",2)(4,"div",3)(5,"div",4)(6,"form",5),ye("ngSubmit",function(){return i.sendRequest()}),b(7,"div",6)(8,"div",7)(9,"select",8)(10,"option",9),I(11,"Select Endpoint"),x(),J(12,Flt,2,2,"option",10),b(13,"option",11),I(14,"----"),x(),J(15,Nlt,2,2,"option",10),x()(),ge(16,"input",12),b(17,"div",13)(18,"button",14),I(19,"Send Request"),x()()()()()()(),b(20,"div",15)(21,"div",16)(22,"h5"),I(23,"Request Body"),x(),ge(24,"hr",17),b(25,"div",18),ge(26,"div",19,20),x()(),b(28,"div",21)(29,"h5"),I(30,"Response"),x(),ge(31,"hr",17),b(32,"div",18),ge(33,"div",19,22),x()()()),2&e&&(w(2),k("ngIf",i.error),w(4),k("formGroup",i.endpointCallForm),w(4),k("value",""),w(2),k("ngForOf",i.rpcEndpoints),w(3),k("ngForOf",i.endpoints),w(3),k("disabled",i.f.method.invalid))},dependencies:[jn,gn,To,sl,xy,wy,Na,ov,rl,ol,fa,ja],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}"]})),t})(),jlt=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){return this.consoleService.listApiEndpoints("")}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Plt(t,n){if(1&t&&(b(0,"ngb-alert",16),ge(1,"img",17),b(2,"h6",18),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Error while processing request: ",e.error,"")}}function Llt(t,n){1&t&&ge(0,"div",23)}function Rlt(t,n){1&t&&ge(0,"div",24)}function $lt(t,n){if(1&t&&(b(0,"tr",25)(1,"td",26)(2,"div",27)(3,"div")(4,"small")(5,"b"),I(6,"Provider Response"),x()()(),b(7,"div")(8,"pre",28)(9,"small"),I(10),x()()()()()()),2&t){const e=j().$implicit;w(10),Dt(e.provider_response)}}function Blt(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td")(2,"div",19),ye("click",function(){const o=$e(e).index,s=j();return Be(s.purchasesRowsOpen[o]=!s.purchasesRowsOpen[o])}),J(3,Llt,1,0,"div",20),J(4,Rlt,1,0,"div",21),x(),I(5),x(),b(6,"td"),I(7),x(),b(8,"td"),I(9),x(),b(10,"td"),I(11),x(),b(12,"td"),I(13),x()(),J(14,$lt,11,1,"tr",22)}if(2&t){const e=n.index,i=n.$implicit,r=j();w(3),k("ngIf",!r.purchasesRowsOpen[e]),w(1),k("ngIf",r.purchasesRowsOpen[e]),w(1),xn(" ",i.product_id," "),w(2),Dt(i.transaction_id),w(2),Dt(r.getStoreText(i.store)),w(2),Dt(i.purchase_time),w(2),Dt(i.create_time),w(1),k("ngIf",r.purchasesRowsOpen[e])}}function Vlt(t,n){1&t&&(b(0,"tr")(1,"td",29),I(2,"No purchases were found."),x()())}let Hlt=(()=>{class t{constructor(e,i,r){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"purchases",[]),K(this,"purchasesRowsOpen",[]),K(this,"error",""),K(this,"nextCursor",""),K(this,"prevCursor",""),K(this,"userID",void 0),K(this,"limit",100),this.route=e,this.router=i,this.consoleService=r}ngOnInit(){this.userID=this.route.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(e=>{this.purchases=e[0].validated_purchases,this.nextCursor=e[0].cursor,this.prevCursor=e[0].prev_cursor})}loadData(e){this.consoleService.listPurchases("",this.userID,this.limit,e).subscribe(i=>{this.purchases=i.validated_purchases,this.purchasesRowsOpen=[],this.nextCursor=i.cursor,this.prevCursor=i.prev_cursor},i=>{this.error=i})}getStoreText(e){return this.formatStoreText(Sy[e])}formatStoreText(e){return e.split("_").map(i=>i[0]+i.slice(1).toLowerCase()).join(" ")}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["app-purchases"]],decls:29,vars:6,consts:[["type","danger",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered","table-hover"],[1,"thead-light"],[2,"width","180px"],["ngFor","",3,"ngForOf"],[4,"ngIf"],["type","danger",3,"dismissible"],["src","/src/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","open-row",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"open-row"],["colspan","7"],[1,"p-2"],[1,"pre-wrap","m-0","p-0"],["colspan","5",1,"text-muted"]],template:function(e,i){1&e&&(J(0,Plt,4,2,"ngb-alert",0),b(1,"div",1)(2,"div",2),ge(3,"div",3),b(4,"div",4)(5,"div",5)(6,"button",6),ye("click",function(){return i.loadData("")}),ge(7,"img",7),x(),b(8,"button",6),ye("click",function(){return i.loadData(i.prevCursor)}),ge(9,"img",8),x(),b(10,"button",6),ye("click",function(){return i.loadData(i.nextCursor)}),ge(11,"img",9),x()()()()(),b(12,"div",10)(13,"table",11)(14,"thead",12)(15,"tr")(16,"th"),I(17,"Product ID"),x(),b(18,"th"),I(19,"Transaction ID"),x(),b(20,"th"),I(21,"Store"),x(),b(22,"th",13),I(23,"Purchase Time"),x(),b(24,"th",13),I(25,"Create Time"),x()()(),b(26,"tbody"),J(27,Blt,15,8,"ng-template",14),J(28,Vlt,3,0,"tr",15),x()()()),2&e&&(k("ngIf",i.error),w(6),k("disabled",0===i.purchases.length),w(2),k("disabled",""===i.prevCursor),w(2),k("disabled",""===i.nextCursor),w(17),k("ngForOf",i.purchases),w(1),k("ngIf",0===i.purchases.length))},dependencies:[jn,gn,To]})),t})(),zlt=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.listPurchases("",r,100,"")}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function Ult(t,n){1&t&&(b(0,"span"),I(1,"Filter by type"),x())}function Glt(t,n){if(1&t&&(b(0,"span"),I(1),x()),2&t){const e=j();w(1),Dt(e.activeFilter)}}function Wlt(t,n){if(1&t){const e=vt();b(0,"button",40),ye("click",function(){const o=$e(e).$implicit;return Be(j().activeFilter=o)}),I(1),x()}if(2&t){const e=n.$implicit;w(1),Dt(e)}}function qlt(t,n){if(1&t&&(b(0,"h6"),I(1),x()),2&t){const e=j();w(1),xn("Showing results for chat room label: ",e.f1.label.value,"")}}const Xlt=function(t){return["/groups",t]};function Ylt(t,n){if(1&t&&(b(0,"h6"),I(1,"Showing results for group ID: "),b(2,"a",41),I(3),x()()),2&t){const e=j();w(2),k("routerLink",lr(2,Xlt,e.route.snapshot.queryParamMap.get("group_id"))),w(1),Dt(e.f2.group_id.value)}}const Yme=function(t){return["/accounts",t]};function Jlt(t,n){if(1&t&&(b(0,"h6"),I(1,"Showing results for user IDs: "),b(2,"a",41),I(3),x(),I(4,", "),b(5,"a",41),I(6),x()()),2&t){const e=j();w(2),k("routerLink",lr(4,Yme,e.route.snapshot.queryParamMap.get("user_id_one"))),w(1),Dt(e.f3.user_id_one.value),w(2),k("routerLink",lr(6,Yme,e.route.snapshot.queryParamMap.get("user_id_two"))),w(1),Dt(e.f3.user_id_two.value)}}function Klt(t,n){if(1&t&&(b(0,"ngb-alert",42),ge(1,"img",43),b(2,"h6",44),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Error when querying messages: ",e.error,"")}}function Qlt(t,n){1&t&&(b(0,"th",45),I(1,"Remove"),x())}function Zlt(t,n){if(1&t&&(b(0,"tr")(1,"td",46),I(2,"No messages found."),x()()),2&t){const e=j();w(1),ht("colspan",e.deleteAllowed()?6:5)}}function ect(t,n){1&t&&ge(0,"div",55)}function tct(t,n){1&t&&ge(0,"div",56)}function nct(t,n){1&t&&ge(0,"td")}function ict(t,n){if(1&t){const e=vt();b(0,"td",57)(1,"button",58),ye("click",function(r){$e(e);const o=j(),s=o.index,a=o.$implicit;return Be(j().deleteMessage(r,s,a))}),I(2,"Delete"),x()()}}function rct(t,n){if(1&t&&(b(0,"tr",59)(1,"td"),I(2),x()()),2&t){const e=j().$implicit,i=j();w(1),ht("colspan",i.deleteAllowed()?6:5),w(1),xn(" ",e.content," ")}}function oct(t,n){if(1&t){const e=vt();b(0,"tr")(1,"td"),I(2),x(),b(3,"td",47),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(4),x(),b(5,"td",48),ye("click",function(){const o=$e(e).$implicit;return Be(j().viewAccount(o))}),I(6),x(),b(7,"td",49)(8,"div",50),ye("click",function(){const o=$e(e).index,s=j();return Be(s.messageStatesOpen[o]=!s.messageStatesOpen[o])}),J(9,ect,1,0,"div",51),J(10,tct,1,0,"div",52),x(),I(11),x(),b(12,"td"),I(13),x(),J(14,nct,1,0,"td",3),J(15,ict,3,0,"td",53),x(),J(16,rct,3,2,"tr",54)}if(2&t){const e=n.$implicit,i=n.index,r=j();w(2),Dt(e.code),w(2),Dt(e.sender_id),w(2),Dt(e.username),w(3),k("ngIf",!r.messageStatesOpen[i]),w(1),k("ngIf",r.messageStatesOpen[i]),w(1),xn(" ",e.content," "),w(2),Dt(e.create_time),w(1),k("ngIf",r.deleteAllowed()&&e.sender_id===r.systemUserId),w(1),k("ngIf",r.deleteAllowed()&&e.sender_id!==r.systemUserId),w(1),k("ngIf",r.messageStatesOpen[i])}}function sct(t,n){if(1&t&&(b(0,"ngb-alert",60),ge(1,"img",43),b(2,"h6",44),I(3,"Failed to delete data."),x(),b(4,"p",61),I(5),x()()),2&t){const e=j();k("dismissible",!1),w(5),Dt(e.deleteError)}}function act(t,n){if(1&t){const e=vt();b(0,"ngb-alert",62),ye("close",function(){return $e(e),Be(j().deleteSuccess=!1)}),ge(1,"img",63),b(2,"h6",44),I(3),x()()}if(2&t){const e=j();k("dismissible",!0),w(3),Ld("",e.total_deleted," messages ",e.total_deleted>0?"successfully":""," deleted.")}}const lct=function(t){return{"is-invalid":t}};function cct(t,n){if(1&t){const e=vt();b(0,"div",64)(1,"h5",65),I(2,"Delete messages"),x(),b(3,"button",66),ye("click",function(){return Be($e(e).$implicit.dismiss())}),b(4,"span",67),I(5,"\xd7"),x()()(),b(6,"div",68)(7,"div",69)(8,"form",70)(9,"div",71)(10,"p")(11,"b"),I(12,"Choose how many days to retain: "),x(),ge(13,"input",72),x()(),ge(14,"input",73),x()()(),b(15,"div",74)(16,"button",75),ye("click",function(){return Be($e(e).$implicit.dismiss())}),I(17,"Cancel"),x(),b(18,"button",76),ye("click",function(){return Be($e(e).$implicit.close())}),I(19,"DELETE"),x()()}if(2&t){const e=j();w(8),k("formGroup",e.confirmDeleteForm),w(6),k("ngClass",lr(3,lct,e.f.delete.touched&&e.f.delete.invalid)),w(4),k("disabled",e.f.delete.invalid)}}function uct(t,n){if(1&t){const e=vt();b(0,"button",76),ye("click",function(){$e(e);const r=j(),o=uo(68);return Be(r.openDeleteDataModal(o))}),I(1,"Delete messages"),x()}2&t&&k("disabled",j().deleting)}let dct=(()=>{class t{constructor(e,i,r,o,s,a){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"authService",void 0),K(this,"formBuilder",void 0),K(this,"modalService",void 0),K(this,"systemUserId","00000000-0000-0000-0000-000000000000"),K(this,"error",""),K(this,"messages",[]),K(this,"nextCursor",""),K(this,"searchForm1",void 0),K(this,"searchForm2",void 0),K(this,"searchForm3",void 0),K(this,"type",void 0),K(this,"confirmDeleteForm",void 0),K(this,"deleteError",""),K(this,"deleteSuccess",!1),K(this,"deleting",!1),K(this,"total_deleted",0),K(this,"activeFilter",""),K(this,"filters",["Chat Room","Group Chat","Direct Chat"]),K(this,"messageStatesOpen",[]),this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s,this.modalService=a,this.searchForm1=this.formBuilder.group({label:""}),this.searchForm2=this.formBuilder.group({group_id:""}),this.searchForm3=this.formBuilder.group({user_id_one:"",user_id_two:""}),this.confirmDeleteForm=this.formBuilder.group({delete:["",Do.compose([Do.required,Do.pattern("DELETE")])],days:30})}ngOnInit(){const e=this.route.snapshot.queryParamMap;this.f1.label.setValue(e.get("label")),this.f2.group_id.setValue(e.get("group_id")),this.f3.user_id_one.setValue(e.get("user_id_one")),this.f3.user_id_two.setValue(e.get("user_id_two")),this.nextCursor=e.get("cursor");let i=e.get("type");this.type=Number(i),this.route.data.subscribe(r=>{r&&(r[0]&&(this.error="",this.messageStatesOpen=[],this.messages.length=0,this.messages.push(...r[0].messages),this.nextCursor=r[0].next_cursor),r.error&&(this.error=r.error))},r=>{this.error=r}),null===i?(this.type=2,this.activeFilter=this.filters[0]):2==this.type||3==this.type||4==this.type?this.activeFilter=this.filters[this.type-2]:this.error="Invalid type."}search(e){let i="";switch(e){case 0:i="";break;case 1:i=this.nextCursor}this.updateMessages(this.type,this.f1.label.value,this.f2.group_id.value,this.f3.user_id_one.value,this.f3.user_id_two.value,i)}updateMessages(e,i,r,o,s,a){switch(e){case 2:this.consoleService.listChannelMessages("",e.toString(),i,null,null,null,encodeURIComponent(a)).subscribe(l=>this.postData(l,a),l=>{this.error=l});break;case 3:this.consoleService.listChannelMessages("",e.toString(),null,r,null,null,encodeURIComponent(a)).subscribe(l=>this.postData(l,a),l=>{this.error=l});break;case 4:this.consoleService.listChannelMessages("",e.toString(),null,null,o,s,encodeURIComponent(a)).subscribe(l=>this.postData(l,a),l=>{this.error=l})}}postData(e,i){let r;switch(this.error="",this.messageStatesOpen=[],this.messages.length=0,this.messages.push(...e.messages),this.nextCursor=e.next_cursor,this.type){case 2:r={type:this.type,label:this.f1.label.value,cursor:i};break;case 3:r={type:this.type,group_id:this.f2.group_id.value,cursor:i};break;case 4:r={type:this.type,user_id_one:this.f3.user_id_one.value,user_id_two:this.f3.user_id_two.value,cursor:i}}this.router.navigate([],{relativeTo:this.route,queryParams:r})}deleteMessage(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteChannelMessages("",null,[r.message_id]).subscribe(()=>{this.error="",this.messageStatesOpen.splice(i,1),this.messages.splice(i,1)},o=>{this.error=o})}deleteAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}deleteMessagesAllowed(){return this.authService.sessionRole<=oi.USER_ROLE_MAINTAINER}get f1(){return this.searchForm1.controls}get f2(){return this.searchForm2.controls}get f3(){return this.searchForm3.controls}get f(){return this.confirmDeleteForm.controls}openDeleteDataModal(e){this.modalService.open(e,{centered:!0}).result.then(()=>{this.deleteData(),this.confirmDeleteForm.controls.delete.setValue("")},()=>{this.confirmDeleteForm.controls.delete.setValue("")})}deleteData(){this.deleteError="",this.deleting=!0;let e=new Date;e.setDate(e.getDate()-this.f.days.value),this.consoleService.deleteChannelMessages("",e.toISOString(),null).subscribe(i=>{this.total_deleted=Number(i.total),this.deleting=!1,this.deleteError="",this.deleteSuccess=!0;const r=this.route.snapshot.queryParamMap;let o=r.get("type"),s=r.get("label");s||(s="0");let a=r.get("group_id"),l=r.get("user_id_one"),c=r.get("user_id_two"),u=r.get("cursor");u||(u=""),o&&this.updateMessages(Number(o),s,a,l,c,u)},i=>{this.deleting=!1,this.deleteError=i})}viewAccount(e){this.router.navigate(["/accounts",e.sender_id],{relativeTo:this.route})}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi),le(Xo),le(Tl),le(H3))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["ng-component"]],decls:70,vars:21,consts:[[1,"pb-1"],["ngbDropdown","",1,"btn-group","mb-1"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary"],[4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"hidden","formGroup"],[1,"input-group"],["type","text","formControlName","label","placeholder","Search by chat room label",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","submit",1,"btn","btn-primary","dropdown-radius-left",3,"click"],["type","text","formControlName","group_id","placeholder","Search by group ID",1,"form-control","border-right-0"],["type","text","formControlName","user_id_one","placeholder","Search by user ID 1",1,"form-control","border-right-0"],[1,"input-group-text",3,"click"],["src","/static/svg/purple-cog-1.svg","alt","","width","20","height","",1,"mr-1"],["type","text","formControlName","user_id_two","placeholder","Search by user ID 2",1,"form-control","border-right-0"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Basic example",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered",2,"table-layout","fixed"],[1,"thead-light"],[2,"width","60px"],[2,"width","320px"],[2,"width","150px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],["ngFor","",3,"ngForOf"],["type","danger",3,"dismissible",4,"ngIf"],["type","success",3,"dismissible","close",4,"ngIf"],["role","alert",1,"d-flex","justify-content-between","align-items-center"],["confirmDelete",""],["type","button","class","btn btn-danger",3,"disabled","click",4,"ngIf"],["type","button","ngbDropdownItem","",3,"click"],[2,"width","100%",3,"routerLink"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],[1,"text-muted"],[3,"click"],[2,"text-overflow","ellipsis","overflow","hidden",3,"click"],[2,"white-space","nowrap","text-overflow","ellipsis","overflow","hidden"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","text-center",4,"ngIf"],["class","open-row",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],[1,"open-row"],["type","danger",3,"dismissible"],[1,"mb-0","pl-4"],["type","success",3,"dismissible","close"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-describedby","modal-title",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"d-flex","flex-column","justify-content-center"],["autocomplete","off",3,"formGroup"],[1,"mt-2"],["type","number","value","30","min","0","formControlName","days",2,"width","80px"],["type","text","id","delete-confirm","placeholder","Type 'DELETE' to confirm","formControlName","delete",1,"form-control",3,"ngClass"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-danger",3,"disabled","click"]],template:function(e,i){1&e&&(b(0,"h2",0),I(1,"Chat Messages"),x(),b(2,"div",1)(3,"button",2),J(4,Ult,2,0,"span",3),J(5,Glt,2,1,"span",3),x(),b(6,"div",4),J(7,Wlt,2,1,"button",5),x()(),b(8,"div",6)(9,"div",7)(10,"div",8)(11,"form",9)(12,"div",10),ge(13,"input",11),b(14,"div",12)(15,"div",13)(16,"button",14),ye("click",function(){return i.type=2,i.search(0)}),I(17,"Search"),x()()()()(),b(18,"form",9)(19,"div",10),ge(20,"input",15),b(21,"div",12)(22,"div",13)(23,"button",14),ye("click",function(){return i.type=3,i.search(0)}),I(24,"Search "),x()()()()(),b(25,"form",9)(26,"div",10),ge(27,"input",16),b(28,"div",12)(29,"span",17),ye("click",function(){return i.f3.user_id_one.setValue(i.systemUserId)}),ge(30,"img",18),x()(),ge(31,"input",19),b(32,"div",12)(33,"div",13)(34,"button",14),ye("click",function(){return i.type=4,i.search(0)}),I(35,"Search "),x()()()()()(),b(36,"div",20)(37,"div",21)(38,"button",22),ye("click",function(){return i.search(0)}),ge(39,"img",23),x(),b(40,"button",22),ye("click",function(){return i.search(1)}),ge(41,"img",24),x()()()()(),J(42,qlt,2,1,"h6",3),J(43,Ylt,4,4,"h6",3),J(44,Jlt,7,8,"h6",3),J(45,Klt,4,2,"ngb-alert",25),b(46,"div",26)(47,"table",27)(48,"thead",28)(49,"tr")(50,"th",29),I(51,"Code"),x(),b(52,"th",30),I(53,"Sender ID"),x(),b(54,"th",31),I(55,"Username"),x(),b(56,"th"),I(57,"Content"),x(),b(58,"th",32),I(59,"Create Time"),x(),J(60,Qlt,2,0,"th",33),x()(),b(61,"tbody"),J(62,Zlt,3,1,"tr",3),J(63,oct,17,10,"ng-template",34),x()()(),J(64,sct,6,2,"ngb-alert",35),J(65,act,4,3,"ngb-alert",36),b(66,"div",37),J(67,cct,20,5,"ng-template",null,38,Ur),J(69,uct,2,1,"button",39),x()),2&e&&(w(4),k("ngIf",!i.activeFilter||""===i.activeFilter),w(1),k("ngIf",i.activeFilter&&""!==i.activeFilter),w(2),k("ngForOf",i.filters),w(4),k("hidden","Chat Room"!==i.activeFilter)("formGroup",i.searchForm1),w(7),k("hidden","Group Chat"!==i.activeFilter)("formGroup",i.searchForm2),w(7),k("hidden","Direct Chat"!==i.activeFilter)("formGroup",i.searchForm3),w(13),k("disabled",0===i.messages.length),w(2),k("disabled",""===i.nextCursor||null===i.nextCursor),w(2),k("ngIf",0!=i.messages.length&&""===i.error&&2==i.type),w(1),k("ngIf",0!=i.messages.length&&""===i.error&&3==i.type),w(1),k("ngIf",0!=i.messages.length&&""===i.error&&4==i.type),w(1),k("ngIf",i.error),w(15),k("ngIf",i.deleteAllowed()),w(2),k("ngIf",0===i.messages.length),w(1),k("ngForOf",i.messages),w(1),k("ngIf",i.deleteError),w(1),k("ngIf",i.deleteSuccess),w(4),k("ngIf",i.deleteMessagesAllowed()))},dependencies:[Fu,Rh,jn,gn,To,Pu,rm,Pf,jf,sl,Na,c3,rl,ol,p3,fa,ja],styles:[".input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}.dropdown-radius-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.open-row[_ngcontent-%COMP%]{background:#FAFAFC}"]})),t})(),hct=(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){let r=Number(e.queryParamMap.get("type"));switch(r){case 2:return this.consoleService.listChannelMessages("",r.toString(),e.queryParamMap.get("label"),null,null,null,encodeURIComponent(e.queryParamMap.get("cursor"))).pipe(Ul(o=>(e.data={...e.data,error:o},$n(null))));case 3:return this.consoleService.listChannelMessages("",r.toString(),null,e.queryParamMap.get("group_id"),null,null,encodeURIComponent(e.queryParamMap.get("cursor"))).pipe(Ul(o=>(e.data={...e.data,error:o},$n(null))));case 4:return this.consoleService.listChannelMessages("",r.toString(),null,null,e.queryParamMap.get("user_id_one"),e.queryParamMap.get("user_id_two"),encodeURIComponent(e.queryParamMap.get("cursor"))).pipe(Ul(o=>(e.data={...e.data,error:o},$n(null))));default:return $n(null)}}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})();function fct(t,n){if(1&t&&(b(0,"ngb-alert",16),ge(1,"img",17),b(2,"h6",18),I(3),x()()),2&t){const e=j();k("dismissible",!1),w(3),xn("Error while processing request: ",e.error,"")}}function pct(t,n){if(1&t&&(b(0,"tr")(1,"td"),I(2),x(),b(3,"td"),I(4),x(),b(5,"td"),I(6),x(),b(7,"td"),I(8),x(),b(9,"td"),I(10),x(),b(11,"td"),I(12),x()()),2&t){const e=n.$implicit,i=j();w(2),Dt(e.product_id),w(2),Dt(e.original_transaction_id),w(2),Dt(i.getStoreText(e.store)),w(2),Dt(e.purchase_time),w(2),Dt(e.expiry_time),w(2),Dt(e.create_time)}}function mct(t,n){1&t&&(b(0,"tr")(1,"td",19),I(2,"No purchases were found."),x()())}const gct=[{path:"",component:yNe,canActivate:[tMe],canActivateChild:[bNe],children:[{path:"",redirectTo:"status",pathMatch:"full"},{path:"status",component:rBe,resolve:[oBe]},{path:"config",component:OBe,resolve:[jBe]},{path:"users",component:BBe,resolve:[VBe]},{path:"modules",component:t7e,resolve:[n7e]},{path:"storage",component:d7e,resolve:[h7e,f7e],pathMatch:"full"},{path:"storage/:collection/:key/:user_id",component:Cot,resolve:[kot],pathMatch:"full"},{path:"leaderboards",component:Oot,resolve:[jot]},{path:"leaderboards/:id",component:flt,resolve:[plt],children:[{path:"",redirectTo:"details",pathMatch:"full"},{path:"details",component:ylt,resolve:[]},{path:"records",component:Tlt,resolve:[Elt]}]},{path:"matches",component:zat,resolve:[Uat,Gat]},{path:"groups",component:Qat,resolve:[Zat]},{path:"groups/:id",component:slt,resolve:[alt],children:[{path:"",redirectTo:"details",pathMatch:"full"},{path:"details",component:iat,resolve:[]},{path:"members",component:Cat,resolve:[kat],runGuardsAndResolvers:"always"}]},{path:"accounts",component:Hot,resolve:[zot]},{path:"accounts/:id",component:nst,resolve:[ist],children:[{path:"",redirectTo:"profile",pathMatch:"full"},{path:"profile",component:cst,resolve:[]},{path:"authentication",component:pst,resolve:[]},{path:"wallet",component:Dst,resolve:[Tst]},{path:"friends",component:Lst,resolve:[Rst]},{path:"groups",component:Yst,resolve:[Jst]},{path:"purchases",component:Hlt,resolve:[zlt]},{path:"subscriptions",component:(()=>{class t{constructor(e,i,r){K(this,"route",void 0),K(this,"router",void 0),K(this,"consoleService",void 0),K(this,"subscriptions",[]),K(this,"error",""),K(this,"nextCursor",""),K(this,"prevCursor",""),K(this,"userID",void 0),K(this,"limit",100),this.route=e,this.router=i,this.consoleService=r}ngOnInit(){this.userID=this.route.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(e=>{this.subscriptions=e[0].validated_subscriptions,this.nextCursor=e[0].cursor,this.prevCursor=e[0].prev_cursor})}loadData(e){this.consoleService.listSubscriptions("",this.userID,this.limit,e).subscribe(i=>{this.subscriptions=i.validated_subscriptions,this.nextCursor=i.cursor,this.prevCursor=i.prev_cursor},i=>{this.error=i})}getStoreText(e){return this.formatStoreText(Sy[e])}formatStoreText(e){return e.split("_").map(i=>i[0]+i.slice(1).toLowerCase()).join(" ")}}return K(t,"\u0275fac",function(e){return new(e||t)(le(Rr),le(cr),le(xi))}),K(t,"\u0275cmp",Rt({type:t,selectors:[["app-subscriptions"]],decls:31,vars:6,consts:[["type","danger",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered","table-hover"],[1,"thead-light"],[2,"width","180px"],["ngFor","",3,"ngForOf"],[4,"ngIf"],["type","danger",3,"dismissible"],["src","/src/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["colspan","6",1,"text-muted"]],template:function(e,i){1&e&&(J(0,fct,4,2,"ngb-alert",0),b(1,"div",1)(2,"div",2),ge(3,"div",3),b(4,"div",4)(5,"div",5)(6,"button",6),ye("click",function(){return i.loadData("")}),ge(7,"img",7),x(),b(8,"button",6),ye("click",function(){return i.loadData(i.prevCursor)}),ge(9,"img",8),x(),b(10,"button",6),ye("click",function(){return i.loadData(i.nextCursor)}),ge(11,"img",9),x()()()()(),b(12,"div",10)(13,"table",11)(14,"thead",12)(15,"tr")(16,"th"),I(17,"Product ID"),x(),b(18,"th"),I(19,"Original Transaction ID"),x(),b(20,"th"),I(21,"Store"),x(),b(22,"th",13),I(23,"Purchase Time"),x(),b(24,"th",13),I(25,"Expiry Time"),x(),b(26,"th",13),I(27,"Create Time"),x()()(),b(28,"tbody"),J(29,pct,13,6,"ng-template",14),J(30,mct,3,0,"tr",15),x()()()),2&e&&(k("ngIf",i.error),w(6),k("disabled",0===i.subscriptions.length),w(2),k("disabled",""===i.prevCursor),w(2),k("disabled",""===i.nextCursor),w(19),k("ngForOf",i.subscriptions),w(1),k("ngIf",0===i.subscriptions.length))},dependencies:[jn,gn,To]})),t})(),resolve:[(()=>{class t{constructor(e){K(this,"consoleService",void 0),this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.listSubscriptions("",r,100,"")}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(xi))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac,providedIn:"root"})),t})()]}]},{path:"apiexplorer",component:Olt,resolve:[jlt]},{path:"chat",component:dct,resolve:[hct]}]},{path:"login",component:ZAe,canActivate:[eMe]},{path:"**",redirectTo:""}];let vct=(()=>{class t{}return K(t,"\u0275fac",function(e){return new(e||t)}),K(t,"\u0275mod",Di({type:t})),K(t,"\u0275inj",Ci({imports:[J9.forRoot(gct,{useHash:!0}),J9]})),t})(),yct=(()=>{class t{}return K(t,"\u0275fac",function(e){return new(e||t)}),K(t,"\u0275cmp",Rt({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(e,i){1&e&&ge(0,"router-outlet")},dependencies:[Jp]})),t})();new class kct extends Hd{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++r0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=requestAnimationFrame(()=>n.flush(null))))}recycleAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length&&(cancelAnimationFrame(e),n.scheduled=void 0)}});let Dct=1;const Tct=Promise.resolve(),YD={};function Jme(t){return t in YD&&(delete YD[t],!0)}const Kme={setImmediate(t){const n=Dct++;return YD[n]=!0,Tct.then(()=>Jme(n)&&t()),n},clearImmediate(t){Jme(t)}};new class Act extends Hd{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++r0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=Kme.setImmediate(n.flush.bind(n,null))))}recycleAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length&&(Kme.clearImmediate(e),n.scheduled=void 0)}});RegExp(/[&<>"']/g.source);const Cs={Tab:9,Enter:13,Esc:27,Space:32,ArrowUp:38,ArrowDown:40,Backspace:8};Cs[Cs.Tab]="Tab",Cs[Cs.Enter]="Enter",Cs[Cs.Esc]="Esc",Cs[Cs.Space]="Space",Cs[Cs.ArrowUp]="ArrowUp",Cs[Cs.ArrowDown]="ArrowDown",Cs[Cs.Backspace]="Backspace";const ige=new zn("ng-select-selection-model");class jut{constructor(){this._selected=[]}get value(){return this._selected}select(n,e,i){if(n.selected=!0,(!n.children||!e&&i)&&this._selected.push(n),e)if(n.parent){const r=n.parent.children.length,o=n.parent.children.filter(s=>s.selected).length;n.parent.selected=r===o}else n.children&&(this._setChildrenSelectedState(n.children,!0),this._removeChildren(n),this._selected=i&&this._activeChildren(n)?[...this._selected.filter(r=>r.parent!==n),n]:[...this._selected,...n.children.filter(r=>!r.disabled)])}unselect(n,e){if(this._selected=this._selected.filter(i=>i!==n),n.selected=!1,e)if(n.parent&&n.parent.selected){const i=n.parent.children;this._removeParent(n.parent),this._removeChildren(n.parent),this._selected.push(...i.filter(r=>r!==n&&!r.disabled)),n.parent.selected=!1}else n.children&&(this._setChildrenSelectedState(n.children,!1),this._removeChildren(n))}clear(n){this._selected=n?this._selected.filter(e=>e.disabled):[]}_setChildrenSelectedState(n,e){for(const i of n)i.disabled||(i.selected=e)}_removeChildren(n){this._selected=[...this._selected.filter(e=>e.parent!==n),...n.children.filter(e=>e.parent===n&&e.disabled&&e.selected)]}_removeParent(n){this._selected=this._selected.filter(e=>e!==n)}_activeChildren(n){return n.children.every(e=>!e.disabled||e.selected)}}const Put=function Out(){return new jut};let Lut=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Di({type:t}),t.\u0275inj=Ci({providers:[{provide:ige,useValue:Put}],imports:[Vs]}),t})(),Rut=(()=>{class t{constructor(e){K(this,"authenticationService",void 0),this.authenticationService=e}intercept(e,i){const r=this.authenticationService.currentSessionValue;return r&&r.token&&(e=e.clone({setHeaders:{Authorization:`Bearer ${r.token}`}})),i.handle(e)}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(Xo))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac})),t})(),$ut=(()=>{class t{constructor(e,i){K(this,"authenticationService",void 0),K(this,"router",void 0),this.authenticationService=e,this.router=i}intercept(e,i){return i.handle(e).pipe(Ul(r=>(401===r.status?this.authenticationService.logout().subscribe({next:()=>{e.url.includes("/v3/auth")||this.router.navigate(["/login"],{queryParams:{next:this.router.routerState.snapshot.url}})}}):r.status>=500&&console.log(`${r.status}: + ${r.error.message||r.statusText}`),qp(r.error.message||r.statusText))))}}return K(t,"\u0275fac",function(e){return new(e||t)(ct(Xo),ct(cr))}),K(t,"\u0275prov",Et({token:t,factory:t.\u0275fac})),t})(),But=(()=>{class t{}return K(t,"\u0275fac",function(e){return new(e||t)}),K(t,"\u0275mod",Di({type:t,bootstrap:[yct]})),K(t,"\u0275inj",Ci({providers:[JAe,Iz,{provide:C3,useValue:{host:document.location.origin,timeout:15e3}},{provide:x3,useClass:Rut,multi:!0},{provide:x3,useClass:$ut,multi:!0}],imports:[pBe,vct,qA,SSe,qAe,cNe,L$e,SAe.forRoot({apiKey:"dHl7FTjJ9icepBjEdOCcyMFQYL1BBiQO",debug:!1,loadOnInitialization:!0}),DSe,wAe,ZV,Lut]})),t})();g2e().bootstrapModule(But).then(t=>{window.ngRef&&window.ngRef.destroy(),window.ngRef=t}).catch(t=>console.error(t))},343:(Yt,Tn)=>{"use strict";Tn.byteLength=function Ve(T){var O=et(T),Me=O[1];return 3*(O[0]+Me)/4-Me},Tn.toByteArray=function se(T){var O,wn,te=et(T),Me=te[0],Je=te[1],kt=new Oe(function ve(T,O,te){return 3*(O+te)/4-te}(0,Me,Je)),jt=0,Wt=Je>0?Me-4:Me;for(wn=0;wn>16&255,kt[jt++]=O>>8&255,kt[jt++]=255&O;return 2===Je&&(O=rt[T.charCodeAt(wn)]<<2|rt[T.charCodeAt(wn+1)]>>4,kt[jt++]=255&O),1===Je&&(O=rt[T.charCodeAt(wn)]<<10|rt[T.charCodeAt(wn+1)]<<4|rt[T.charCodeAt(wn+2)]>>2,kt[jt++]=O>>8&255,kt[jt++]=255&O),kt},Tn.fromByteArray=function D(T){for(var O,te=T.length,Me=te%3,Je=[],jt=0,Wt=te-Me;jtWt?Wt:jt+16383));return 1===Me?Je.push(De[(O=T[te-1])>>2]+De[O<<4&63]+"=="):2===Me&&Je.push(De[(O=(T[te-2]<<8)+T[te-1])>>10]+De[O>>4&63]+De[O<<2&63]+"="),Je.join("")};for(var De=[],rt=[],Oe=typeof Uint8Array<"u"?Uint8Array:Array,dt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ge=0,_e=dt.length;Ge<_e;++Ge)De[Ge]=dt[Ge],rt[dt.charCodeAt(Ge)]=Ge;function et(T){var O=T.length;if(O%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var te=T.indexOf("=");return-1===te&&(te=O),[te,te===O?0:4-te%4]}function ue(T){return De[T>>18&63]+De[T>>12&63]+De[T>>6&63]+De[63&T]}function ae(T,O,te){for(var Je=[],kt=O;kt{"use strict";var Oe=De(343),dt=De(461),Ge="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;Tn.lW=ve,Tn.h2=50;var _e=2147483647;function Ve(Te){if(Te>_e)throw new RangeError('The value "'+Te+'" is invalid for option "size"');var W=new Uint8Array(Te);return Object.setPrototypeOf(W,ve.prototype),W}function ve(Te,W,ee){if("number"==typeof Te){if("string"==typeof W)throw new TypeError('The "string" argument must be of type string. Received type number');return D(Te)}return se(Te,W,ee)}function se(Te,W,ee){if("string"==typeof Te)return function T(Te,W){if(("string"!=typeof W||""===W)&&(W="utf8"),!ve.isEncoding(W))throw new TypeError("Unknown encoding: "+W);var ee=0|Wt(Te,W),Ne=Ve(ee),nt=Ne.write(Te,W);return nt!==ee&&(Ne=Ne.slice(0,nt)),Ne}(Te,W);if(ArrayBuffer.isView(Te))return function te(Te){if(da(Te,Uint8Array)){var W=new Uint8Array(Te);return Me(W.buffer,W.byteOffset,W.byteLength)}return O(Te)}(Te);if(null==Te)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Te);if(da(Te,ArrayBuffer)||Te&&da(Te.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(da(Te,SharedArrayBuffer)||Te&&da(Te.buffer,SharedArrayBuffer)))return Me(Te,W,ee);if("number"==typeof Te)throw new TypeError('The "value" argument must not be of type number. Received type number');var Ne=Te.valueOf&&Te.valueOf();if(null!=Ne&&Ne!==Te)return ve.from(Ne,W,ee);var nt=function Je(Te){if(ve.isBuffer(Te)){var W=0|kt(Te.length),ee=Ve(W);return 0===ee.length||Te.copy(ee,0,0,W),ee}return void 0!==Te.length?"number"!=typeof Te.length||co(Te.length)?Ve(0):O(Te):"Buffer"===Te.type&&Array.isArray(Te.data)?O(Te.data):void 0}(Te);if(nt)return nt;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof Te[Symbol.toPrimitive])return ve.from(Te[Symbol.toPrimitive]("string"),W,ee);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Te)}function ue(Te){if("number"!=typeof Te)throw new TypeError('"size" argument must be of type number');if(Te<0)throw new RangeError('The value "'+Te+'" is invalid for option "size"')}function D(Te){return ue(Te),Ve(Te<0?0:0|kt(Te))}function O(Te){for(var W=Te.length<0?0:0|kt(Te.length),ee=Ve(W),Ne=0;Ne=_e)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+_e.toString(16)+" bytes");return 0|Te}function Wt(Te,W){if(ve.isBuffer(Te))return Te.length;if(ArrayBuffer.isView(Te)||da(Te,ArrayBuffer))return Te.byteLength;if("string"!=typeof Te)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Te);var ee=Te.length,Ne=arguments.length>2&&!0===arguments[2];if(!Ne&&0===ee)return 0;for(var nt=!1;;)switch(W){case"ascii":case"latin1":case"binary":return ee;case"utf8":case"utf-8":return Nc(Te).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*ee;case"hex":return ee>>>1;case"base64":return vu(Te).length;default:if(nt)return Ne?-1:Nc(Te).length;W=(""+W).toLowerCase(),nt=!0}}function wn(Te,W,ee){var Ne=!1;if((void 0===W||W<0)&&(W=0),W>this.length||((void 0===ee||ee>this.length)&&(ee=this.length),ee<=0)||(ee>>>=0)<=(W>>>=0))return"";for(Te||(Te="utf8");;)switch(Te){case"hex":return gu(this,W,ee);case"utf8":case"utf-8":return yn(this,W,ee);case"ascii":return Kn(this,W,ee);case"latin1":case"binary":return Fc(this,W,ee);case"base64":return Sa(this,W,ee);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ro(this,W,ee);default:if(Ne)throw new TypeError("Unknown encoding: "+Te);Te=(Te+"").toLowerCase(),Ne=!0}}function rn(Te,W,ee){var Ne=Te[W];Te[W]=Te[ee],Te[ee]=Ne}function Mi(Te,W,ee,Ne,nt){if(0===Te.length)return-1;if("string"==typeof ee?(Ne=ee,ee=0):ee>2147483647?ee=2147483647:ee<-2147483648&&(ee=-2147483648),co(ee=+ee)&&(ee=nt?0:Te.length-1),ee<0&&(ee=Te.length+ee),ee>=Te.length){if(nt)return-1;ee=Te.length-1}else if(ee<0){if(!nt)return-1;ee=0}if("string"==typeof W&&(W=ve.from(W,Ne)),ve.isBuffer(W))return 0===W.length?-1:zr(Te,W,ee,Ne,nt);if("number"==typeof W)return W&=255,"function"==typeof Uint8Array.prototype.indexOf?nt?Uint8Array.prototype.indexOf.call(Te,W,ee):Uint8Array.prototype.lastIndexOf.call(Te,W,ee):zr(Te,[W],ee,Ne,nt);throw new TypeError("val must be string, number or Buffer")}function zr(Te,W,ee,Ne,nt){var st,zt=1,Qt=Te.length,nr=W.length;if(void 0!==Ne&&("ucs2"===(Ne=String(Ne).toLowerCase())||"ucs-2"===Ne||"utf16le"===Ne||"utf-16le"===Ne)){if(Te.length<2||W.length<2)return-1;zt=2,Qt/=2,nr/=2,ee/=2}function A(mn,pe){return 1===zt?mn[pe]:mn.readUInt16BE(pe*zt)}if(nt){var Tt=-1;for(st=ee;stQt&&(ee=Qt-nr),st=ee;st>=0;st--){for(var Ut=!0,Vt=0;Vtnt&&(Ne=nt):Ne=nt;var zt=W.length;Ne>zt/2&&(Ne=zt/2);for(var Qt=0;Qt>8,zt.push(ee%256),zt.push(Ne);return zt}(W,Te.length-ee),Te,ee,Ne)}function Sa(Te,W,ee){return Oe.fromByteArray(0===W&&ee===Te.length?Te:Te.slice(W,ee))}function yn(Te,W,ee){ee=Math.min(Te.length,ee);for(var Ne=[],nt=W;nt239?4:zt>223?3:zt>191?2:1;if(nt+nr<=ee)switch(nr){case 1:zt<128&&(Qt=zt);break;case 2:128==(192&(A=Te[nt+1]))&&(Ut=(31&zt)<<6|63&A)>127&&(Qt=Ut);break;case 3:st=Te[nt+2],128==(192&(A=Te[nt+1]))&&128==(192&st)&&(Ut=(15&zt)<<12|(63&A)<<6|63&st)>2047&&(Ut<55296||Ut>57343)&&(Qt=Ut);break;case 4:st=Te[nt+2],Tt=Te[nt+3],128==(192&(A=Te[nt+1]))&&128==(192&st)&&128==(192&Tt)&&(Ut=(15&zt)<<18|(63&A)<<12|(63&st)<<6|63&Tt)>65535&&Ut<1114112&&(Qt=Ut)}null===Qt?(Qt=65533,nr=1):Qt>65535&&(Ne.push((Qt-=65536)>>>10&1023|55296),Qt=56320|1023&Qt),Ne.push(Qt),nt+=nr}return function kd(Te){var W=Te.length;if(W<=Cd)return String.fromCharCode.apply(String,Te);for(var ee="",Ne=0;Nent.length?ve.from(Qt).copy(nt,zt):Uint8Array.prototype.set.call(nt,Qt,zt);else{if(!ve.isBuffer(Qt))throw new TypeError('"list" argument must be an Array of Buffers');Qt.copy(nt,zt)}zt+=Qt.length}return nt},ve.byteLength=Wt,ve.prototype._isBuffer=!0,ve.prototype.swap16=function(){var W=this.length;if(W%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ee=0;eeee&&(W+=" ... "),""},Ge&&(ve.prototype[Ge]=ve.prototype.inspect),ve.prototype.compare=function(W,ee,Ne,nt,zt){if(da(W,Uint8Array)&&(W=ve.from(W,W.offset,W.byteLength)),!ve.isBuffer(W))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof W);if(void 0===ee&&(ee=0),void 0===Ne&&(Ne=W?W.length:0),void 0===nt&&(nt=0),void 0===zt&&(zt=this.length),ee<0||Ne>W.length||nt<0||zt>this.length)throw new RangeError("out of range index");if(nt>=zt&&ee>=Ne)return 0;if(nt>=zt)return-1;if(ee>=Ne)return 1;if(this===W)return 0;for(var Qt=(zt>>>=0)-(nt>>>=0),nr=(Ne>>>=0)-(ee>>>=0),A=Math.min(Qt,nr),st=this.slice(nt,zt),Tt=W.slice(ee,Ne),Ut=0;Ut>>=0,isFinite(Ne)?(Ne>>>=0,void 0===nt&&(nt="utf8")):(nt=Ne,Ne=void 0)}var zt=this.length-ee;if((void 0===Ne||Ne>zt)&&(Ne=zt),W.length>0&&(Ne<0||ee<0)||ee>this.length)throw new RangeError("Attempt to write outside buffer bounds");nt||(nt="utf8");for(var Qt=!1;;)switch(nt){case"hex":return Xr(this,W,ee,Ne);case"utf8":case"utf-8":return hs(this,W,ee,Ne);case"ascii":case"latin1":case"binary":return Ya(this,W,ee,Ne);case"base64":return tr(this,W,ee,Ne);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return mu(this,W,ee,Ne);default:if(Qt)throw new TypeError("Unknown encoding: "+nt);nt=(""+nt).toLowerCase(),Qt=!0}},ve.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Cd=4096;function Kn(Te,W,ee){var Ne="";ee=Math.min(Te.length,ee);for(var nt=W;ntNe)&&(ee=Ne);for(var nt="",zt=W;ztee)throw new RangeError("Trying to access beyond buffer length")}function lo(Te,W,ee,Ne,nt,zt){if(!ve.isBuffer(Te))throw new TypeError('"buffer" argument must be a Buffer instance');if(W>nt||WTe.length)throw new RangeError("Index out of range")}function Da(Te,W,ee,Ne,nt,zt){if(ee+Ne>Te.length)throw new RangeError("Index out of range");if(ee<0)throw new RangeError("Index out of range")}function Zr(Te,W,ee,Ne,nt){return W=+W,ee>>>=0,nt||Da(Te,0,ee,4),dt.write(Te,W,ee,Ne,23,4),ee+4}function pl(Te,W,ee,Ne,nt){return W=+W,ee>>>=0,nt||Da(Te,0,ee,8),dt.write(Te,W,ee,Ne,52,8),ee+8}ve.prototype.slice=function(W,ee){var Ne=this.length;(W=~~W)<0?(W+=Ne)<0&&(W=0):W>Ne&&(W=Ne),(ee=void 0===ee?Ne:~~ee)<0?(ee+=Ne)<0&&(ee=0):ee>Ne&&(ee=Ne),ee>>=0,ee>>>=0,Ne||Co(W,ee,this.length);for(var nt=this[W],zt=1,Qt=0;++Qt>>=0,ee>>>=0,Ne||Co(W,ee,this.length);for(var nt=this[W+--ee],zt=1;ee>0&&(zt*=256);)nt+=this[W+--ee]*zt;return nt},ve.prototype.readUint8=ve.prototype.readUInt8=function(W,ee){return W>>>=0,ee||Co(W,1,this.length),this[W]},ve.prototype.readUint16LE=ve.prototype.readUInt16LE=function(W,ee){return W>>>=0,ee||Co(W,2,this.length),this[W]|this[W+1]<<8},ve.prototype.readUint16BE=ve.prototype.readUInt16BE=function(W,ee){return W>>>=0,ee||Co(W,2,this.length),this[W]<<8|this[W+1]},ve.prototype.readUint32LE=ve.prototype.readUInt32LE=function(W,ee){return W>>>=0,ee||Co(W,4,this.length),(this[W]|this[W+1]<<8|this[W+2]<<16)+16777216*this[W+3]},ve.prototype.readUint32BE=ve.prototype.readUInt32BE=function(W,ee){return W>>>=0,ee||Co(W,4,this.length),16777216*this[W]+(this[W+1]<<16|this[W+2]<<8|this[W+3])},ve.prototype.readIntLE=function(W,ee,Ne){W>>>=0,ee>>>=0,Ne||Co(W,ee,this.length);for(var nt=this[W],zt=1,Qt=0;++Qt=(zt*=128)&&(nt-=Math.pow(2,8*ee)),nt},ve.prototype.readIntBE=function(W,ee,Ne){W>>>=0,ee>>>=0,Ne||Co(W,ee,this.length);for(var nt=ee,zt=1,Qt=this[W+--nt];nt>0&&(zt*=256);)Qt+=this[W+--nt]*zt;return Qt>=(zt*=128)&&(Qt-=Math.pow(2,8*ee)),Qt},ve.prototype.readInt8=function(W,ee){return W>>>=0,ee||Co(W,1,this.length),128&this[W]?-1*(255-this[W]+1):this[W]},ve.prototype.readInt16LE=function(W,ee){W>>>=0,ee||Co(W,2,this.length);var Ne=this[W]|this[W+1]<<8;return 32768&Ne?4294901760|Ne:Ne},ve.prototype.readInt16BE=function(W,ee){W>>>=0,ee||Co(W,2,this.length);var Ne=this[W+1]|this[W]<<8;return 32768&Ne?4294901760|Ne:Ne},ve.prototype.readInt32LE=function(W,ee){return W>>>=0,ee||Co(W,4,this.length),this[W]|this[W+1]<<8|this[W+2]<<16|this[W+3]<<24},ve.prototype.readInt32BE=function(W,ee){return W>>>=0,ee||Co(W,4,this.length),this[W]<<24|this[W+1]<<16|this[W+2]<<8|this[W+3]},ve.prototype.readFloatLE=function(W,ee){return W>>>=0,ee||Co(W,4,this.length),dt.read(this,W,!0,23,4)},ve.prototype.readFloatBE=function(W,ee){return W>>>=0,ee||Co(W,4,this.length),dt.read(this,W,!1,23,4)},ve.prototype.readDoubleLE=function(W,ee){return W>>>=0,ee||Co(W,8,this.length),dt.read(this,W,!0,52,8)},ve.prototype.readDoubleBE=function(W,ee){return W>>>=0,ee||Co(W,8,this.length),dt.read(this,W,!1,52,8)},ve.prototype.writeUintLE=ve.prototype.writeUIntLE=function(W,ee,Ne,nt){W=+W,ee>>>=0,Ne>>>=0,nt||lo(this,W,ee,Ne,Math.pow(2,8*Ne)-1,0);var Qt=1,nr=0;for(this[ee]=255&W;++nr>>=0,Ne>>>=0,nt||lo(this,W,ee,Ne,Math.pow(2,8*Ne)-1,0);var Qt=Ne-1,nr=1;for(this[ee+Qt]=255&W;--Qt>=0&&(nr*=256);)this[ee+Qt]=W/nr&255;return ee+Ne},ve.prototype.writeUint8=ve.prototype.writeUInt8=function(W,ee,Ne){return W=+W,ee>>>=0,Ne||lo(this,W,ee,1,255,0),this[ee]=255&W,ee+1},ve.prototype.writeUint16LE=ve.prototype.writeUInt16LE=function(W,ee,Ne){return W=+W,ee>>>=0,Ne||lo(this,W,ee,2,65535,0),this[ee]=255&W,this[ee+1]=W>>>8,ee+2},ve.prototype.writeUint16BE=ve.prototype.writeUInt16BE=function(W,ee,Ne){return W=+W,ee>>>=0,Ne||lo(this,W,ee,2,65535,0),this[ee]=W>>>8,this[ee+1]=255&W,ee+2},ve.prototype.writeUint32LE=ve.prototype.writeUInt32LE=function(W,ee,Ne){return W=+W,ee>>>=0,Ne||lo(this,W,ee,4,4294967295,0),this[ee+3]=W>>>24,this[ee+2]=W>>>16,this[ee+1]=W>>>8,this[ee]=255&W,ee+4},ve.prototype.writeUint32BE=ve.prototype.writeUInt32BE=function(W,ee,Ne){return W=+W,ee>>>=0,Ne||lo(this,W,ee,4,4294967295,0),this[ee]=W>>>24,this[ee+1]=W>>>16,this[ee+2]=W>>>8,this[ee+3]=255&W,ee+4},ve.prototype.writeIntLE=function(W,ee,Ne,nt){if(W=+W,ee>>>=0,!nt){var zt=Math.pow(2,8*Ne-1);lo(this,W,ee,Ne,zt-1,-zt)}var Qt=0,nr=1,A=0;for(this[ee]=255&W;++Qt>0)-A&255;return ee+Ne},ve.prototype.writeIntBE=function(W,ee,Ne,nt){if(W=+W,ee>>>=0,!nt){var zt=Math.pow(2,8*Ne-1);lo(this,W,ee,Ne,zt-1,-zt)}var Qt=Ne-1,nr=1,A=0;for(this[ee+Qt]=255&W;--Qt>=0&&(nr*=256);)W<0&&0===A&&0!==this[ee+Qt+1]&&(A=1),this[ee+Qt]=(W/nr>>0)-A&255;return ee+Ne},ve.prototype.writeInt8=function(W,ee,Ne){return W=+W,ee>>>=0,Ne||lo(this,W,ee,1,127,-128),W<0&&(W=255+W+1),this[ee]=255&W,ee+1},ve.prototype.writeInt16LE=function(W,ee,Ne){return W=+W,ee>>>=0,Ne||lo(this,W,ee,2,32767,-32768),this[ee]=255&W,this[ee+1]=W>>>8,ee+2},ve.prototype.writeInt16BE=function(W,ee,Ne){return W=+W,ee>>>=0,Ne||lo(this,W,ee,2,32767,-32768),this[ee]=W>>>8,this[ee+1]=255&W,ee+2},ve.prototype.writeInt32LE=function(W,ee,Ne){return W=+W,ee>>>=0,Ne||lo(this,W,ee,4,2147483647,-2147483648),this[ee]=255&W,this[ee+1]=W>>>8,this[ee+2]=W>>>16,this[ee+3]=W>>>24,ee+4},ve.prototype.writeInt32BE=function(W,ee,Ne){return W=+W,ee>>>=0,Ne||lo(this,W,ee,4,2147483647,-2147483648),W<0&&(W=4294967295+W+1),this[ee]=W>>>24,this[ee+1]=W>>>16,this[ee+2]=W>>>8,this[ee+3]=255&W,ee+4},ve.prototype.writeFloatLE=function(W,ee,Ne){return Zr(this,W,ee,!0,Ne)},ve.prototype.writeFloatBE=function(W,ee,Ne){return Zr(this,W,ee,!1,Ne)},ve.prototype.writeDoubleLE=function(W,ee,Ne){return pl(this,W,ee,!0,Ne)},ve.prototype.writeDoubleBE=function(W,ee,Ne){return pl(this,W,ee,!1,Ne)},ve.prototype.copy=function(W,ee,Ne,nt){if(!ve.isBuffer(W))throw new TypeError("argument should be a Buffer");if(Ne||(Ne=0),!nt&&0!==nt&&(nt=this.length),ee>=W.length&&(ee=W.length),ee||(ee=0),nt>0&&nt=this.length)throw new RangeError("Index out of range");if(nt<0)throw new RangeError("sourceEnd out of bounds");nt>this.length&&(nt=this.length),W.length-ee>>=0,Ne=void 0===Ne?this.length:Ne>>>0,W||(W=0),"number"==typeof W)for(Qt=ee;Qt55295&&ee<57344){if(!nt){if(ee>56319){(W-=3)>-1&&zt.push(239,191,189);continue}if(Qt+1===Ne){(W-=3)>-1&&zt.push(239,191,189);continue}nt=ee;continue}if(ee<56320){(W-=3)>-1&&zt.push(239,191,189),nt=ee;continue}ee=65536+(nt-55296<<10|ee-56320)}else nt&&(W-=3)>-1&&zt.push(239,191,189);if(nt=null,ee<128){if((W-=1)<0)break;zt.push(ee)}else if(ee<2048){if((W-=2)<0)break;zt.push(ee>>6|192,63&ee|128)}else if(ee<65536){if((W-=3)<0)break;zt.push(ee>>12|224,ee>>6&63|128,63&ee|128)}else{if(!(ee<1114112))throw new Error("Invalid code point");if((W-=4)<0)break;zt.push(ee>>18|240,ee>>12&63|128,ee>>6&63|128,63&ee|128)}}return zt}function vu(Te){return Oe.toByteArray(function Sd(Te){if((Te=(Te=Te.split("=")[0]).trim().replace(nc,"")).length<2)return"";for(;Te.length%4!=0;)Te+="=";return Te}(Te))}function Ja(Te,W,ee,Ne){for(var nt=0;nt=W.length||nt>=Te.length);++nt)W[nt+ee]=Te[nt];return nt}function da(Te,W){return Te instanceof W||null!=Te&&null!=Te.constructor&&null!=Te.constructor.name&&Te.constructor.name===W.name}function co(Te){return Te!=Te}var ml=function(){for(var Te="0123456789abcdef",W=new Array(256),ee=0;ee<16;++ee)for(var Ne=16*ee,nt=0;nt<16;++nt)W[Ne+nt]=Te[ee]+Te[nt];return W}()},797:function(Yt){Yt.exports=function(Tn){var De={};function rt(Oe){if(De[Oe])return De[Oe].exports;var dt=De[Oe]={exports:{},id:Oe,loaded:!1};return Tn[Oe].call(dt.exports,dt,dt.exports,rt),dt.loaded=!0,dt.exports}return rt.m=Tn,rt.c=De,rt.p="",rt(0)}([function(Tn,De,rt){"use strict";Object.defineProperty(De,"__esModule",{value:!0});var Oe=rt(1),dt=rt(3),Ge=rt(8),_e=rt(15);function et(ae,D,T){var O=null,te=function(Mi,zr){T&&T(Mi,zr),O&&O.visit(Mi,zr)},Me="function"==typeof T?te:null,Je=!1;if(D){var kt="boolean"==typeof D.attachComment&&D.attachComment;((Je="boolean"==typeof D.comment&&D.comment)||kt)&&((O=new Oe.CommentHandler).attach=kt,D.comment=!0,Me=te)}var Wt,jt=!1;D&&"string"==typeof D.sourceType&&(jt="module"===D.sourceType),Wt=D&&"boolean"==typeof D.jsx&&D.jsx?new dt.JSXParser(ae,D,Me):new Ge.Parser(ae,D,Me);var rn=jt?Wt.parseModule():Wt.parseScript();return Je&&O&&(rn.comments=O.comments),Wt.config.tokens&&(rn.tokens=Wt.tokens),Wt.config.tolerant&&(rn.errors=Wt.errorHandler.errors),rn}De.parse=et,De.parseModule=function Ve(ae,D,T){var O=D||{};return O.sourceType="module",et(ae,O,T)},De.parseScript=function ve(ae,D,T){var O=D||{};return O.sourceType="script",et(ae,O,T)},De.tokenize=function se(ae,D,T){var te,O=new _e.Tokenizer(ae,D);te=[];try{for(;;){var Me=O.getNextToken();if(!Me)break;T&&(Me=T(Me)),te.push(Me)}}catch(Je){O.errorHandler.tolerate(Je)}return O.errorHandler.tolerant&&(te.errors=O.errors()),te};var ue=rt(2);De.Syntax=ue.Syntax,De.version="4.0.1"},function(Tn,De,rt){"use strict";Object.defineProperty(De,"__esModule",{value:!0});var Oe=rt(2),dt=function(){function Ge(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return Ge.prototype.insertInnerComments=function(_e,et){if(_e.type===Oe.Syntax.BlockStatement&&0===_e.body.length){for(var Ve=[],ve=this.leading.length-1;ve>=0;--ve){var se=this.leading[ve];et.end.offset>=se.start&&(Ve.unshift(se.comment),this.leading.splice(ve,1),this.trailing.splice(ve,1))}Ve.length&&(_e.innerComments=Ve)}},Ge.prototype.findTrailingComments=function(_e){var et=[];if(this.trailing.length>0){for(var Ve=this.trailing.length-1;Ve>=0;--Ve){var ve=this.trailing[Ve];ve.start>=_e.end.offset&&et.unshift(ve.comment)}return this.trailing.length=0,et}var se=this.stack[this.stack.length-1];if(se&&se.node.trailingComments){var ue=se.node.trailingComments[0];ue&&ue.range[0]>=_e.end.offset&&(et=se.node.trailingComments,delete se.node.trailingComments)}return et},Ge.prototype.findLeadingComments=function(_e){for(var Ve,et=[];this.stack.length>0&&(ve=this.stack[this.stack.length-1])&&ve.start>=_e.start.offset;)Ve=ve.node,this.stack.pop();if(Ve){for(var ue=(Ve.leadingComments?Ve.leadingComments.length:0)-1;ue>=0;--ue){var ae=Ve.leadingComments[ue];ae.range[1]<=_e.start.offset&&(et.unshift(ae),Ve.leadingComments.splice(ue,1))}return Ve.leadingComments&&0===Ve.leadingComments.length&&delete Ve.leadingComments,et}for(ue=this.leading.length-1;ue>=0;--ue){var ve;(ve=this.leading[ue]).start<=_e.start.offset&&(et.unshift(ve.comment),this.leading.splice(ue,1))}return et},Ge.prototype.visitNode=function(_e,et){if(!(_e.type===Oe.Syntax.Program&&_e.body.length>0)){this.insertInnerComments(_e,et);var Ve=this.findTrailingComments(et),ve=this.findLeadingComments(et);ve.length>0&&(_e.leadingComments=ve),Ve.length>0&&(_e.trailingComments=Ve),this.stack.push({node:_e,start:et.start.offset})}},Ge.prototype.visitComment=function(_e,et){var Ve="L"===_e.type[0]?"Line":"Block",ve={type:Ve,value:_e.value};if(_e.range&&(ve.range=_e.range),_e.loc&&(ve.loc=_e.loc),this.comments.push(ve),this.attach){var se={comment:{type:Ve,value:_e.value,range:[et.start.offset,et.end.offset]},start:et.start.offset};_e.loc&&(se.comment.loc=_e.loc),_e.type=Ve,this.leading.push(se),this.trailing.push(se)}},Ge.prototype.visit=function(_e,et){"LineComment"===_e.type||"BlockComment"===_e.type?this.visitComment(_e,et):this.attach&&this.visitNode(_e,et)},Ge}();De.CommentHandler=dt},function(Tn,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0}),De.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(Tn,De,rt){"use strict";var D,Oe=this&&this.__extends||(D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,O){T.__proto__=O}||function(T,O){for(var te in O)O.hasOwnProperty(te)&&(T[te]=O[te])},function(T,O){function te(){this.constructor=T}D(T,O),T.prototype=null===O?Object.create(O):(te.prototype=O.prototype,new te)});Object.defineProperty(De,"__esModule",{value:!0});var dt=rt(4),Ge=rt(5),_e=rt(6),et=rt(7),Ve=rt(8),ve=rt(13),se=rt(14);function ue(D){var T;switch(D.type){case _e.JSXSyntax.JSXIdentifier:T=D.name;break;case _e.JSXSyntax.JSXNamespacedName:var te=D;T=ue(te.namespace)+":"+ue(te.name);break;case _e.JSXSyntax.JSXMemberExpression:var Me=D;T=ue(Me.object)+"."+ue(Me.property)}return T}ve.TokenName[100]="JSXIdentifier",ve.TokenName[101]="JSXText";var ae=function(D){function T(O,te,Me){return D.call(this,O,te,Me)||this}return Oe(T,D),T.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():D.prototype.parsePrimaryExpression.call(this)},T.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},T.prototype.finishJSX=function(){this.nextToken()},T.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},T.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},T.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},T.prototype.scanXHTMLEntity=function(O){for(var te="&",Me=!0,Je=!1,kt=!1,jt=!1;!this.scanner.eof()&&Me&&!Je;){var Wt=this.scanner.source[this.scanner.index];if(Wt===O)break;if(Je=";"===Wt,te+=Wt,++this.scanner.index,!Je)switch(te.length){case 2:kt="#"===Wt;break;case 3:kt&&(Me=(jt="x"===Wt)||dt.Character.isDecimalDigit(Wt.charCodeAt(0)),kt=kt&&!jt);break;default:Me=(Me=Me&&!(kt&&!dt.Character.isDecimalDigit(Wt.charCodeAt(0))))&&!(jt&&!dt.Character.isHexDigit(Wt.charCodeAt(0)))}}if(Me&&Je&&te.length>2){var wn=te.substr(1,te.length-2);kt&&wn.length>1?te=String.fromCharCode(parseInt(wn.substr(1),10)):jt&&wn.length>2?te=String.fromCharCode(parseInt("0"+wn.substr(1),16)):!kt&&!jt&&se.XHTMLEntities[wn]&&(te=se.XHTMLEntities[wn])}return te},T.prototype.lexJSX=function(){var O=this.scanner.source.charCodeAt(this.scanner.index);if(60===O||62===O||47===O||58===O||61===O||123===O||125===O)return{type:7,value:te=this.scanner.source[this.scanner.index++],lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index};if(34===O||39===O){for(var Me=this.scanner.index,Je=this.scanner.source[this.scanner.index++],kt="";!this.scanner.eof()&&(jt=this.scanner.source[this.scanner.index++])!==Je;)kt+="&"===jt?this.scanXHTMLEntity(Je):jt;return{type:8,value:kt,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:Me,end:this.scanner.index}}if(46===O){var te,Wt=this.scanner.source.charCodeAt(this.scanner.index+1),wn=this.scanner.source.charCodeAt(this.scanner.index+2);return Me=this.scanner.index,this.scanner.index+=(te=46===Wt&&46===wn?"...":".").length,{type:7,value:te,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:Me,end:this.scanner.index}}if(96===O)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(dt.Character.isIdentifierStart(O)&&92!==O){for(Me=this.scanner.index,++this.scanner.index;!this.scanner.eof();){var jt=this.scanner.source.charCodeAt(this.scanner.index);if(dt.Character.isIdentifierPart(jt)&&92!==jt)++this.scanner.index;else{if(45!==jt)break;++this.scanner.index}}return{type:100,value:this.scanner.source.slice(Me,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:Me,end:this.scanner.index}}return this.scanner.lex()},T.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var O=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(O)),O},T.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var O=this.scanner.index,te="";!this.scanner.eof();){var Me=this.scanner.source[this.scanner.index];if("{"===Me||"<"===Me)break;++this.scanner.index,te+=Me,dt.Character.isLineTerminator(Me.charCodeAt(0))&&(++this.scanner.lineNumber,"\r"===Me&&"\n"===this.scanner.source[this.scanner.index]&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var Je={type:101,value:te,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:O,end:this.scanner.index};return te.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(Je)),Je},T.prototype.peekJSXToken=function(){var O=this.scanner.saveState();this.scanner.scanComments();var te=this.lexJSX();return this.scanner.restoreState(O),te},T.prototype.expectJSX=function(O){var te=this.nextJSXToken();(7!==te.type||te.value!==O)&&this.throwUnexpectedToken(te)},T.prototype.matchJSX=function(O){var te=this.peekJSXToken();return 7===te.type&&te.value===O},T.prototype.parseJSXIdentifier=function(){var O=this.createJSXNode(),te=this.nextJSXToken();return 100!==te.type&&this.throwUnexpectedToken(te),this.finalize(O,new Ge.JSXIdentifier(te.value))},T.prototype.parseJSXElementName=function(){var O=this.createJSXNode(),te=this.parseJSXIdentifier();if(this.matchJSX(":")){var Me=te;this.expectJSX(":");var Je=this.parseJSXIdentifier();te=this.finalize(O,new Ge.JSXNamespacedName(Me,Je))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var kt=te;this.expectJSX(".");var jt=this.parseJSXIdentifier();te=this.finalize(O,new Ge.JSXMemberExpression(kt,jt))}return te},T.prototype.parseJSXAttributeName=function(){var te,O=this.createJSXNode(),Me=this.parseJSXIdentifier();if(this.matchJSX(":")){var Je=Me;this.expectJSX(":");var kt=this.parseJSXIdentifier();te=this.finalize(O,new Ge.JSXNamespacedName(Je,kt))}else te=Me;return te},T.prototype.parseJSXStringLiteralAttribute=function(){var O=this.createJSXNode(),te=this.nextJSXToken();8!==te.type&&this.throwUnexpectedToken(te);var Me=this.getTokenRaw(te);return this.finalize(O,new et.Literal(te.value,Me))},T.prototype.parseJSXExpressionAttribute=function(){var O=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var te=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(O,new Ge.JSXExpressionContainer(te))},T.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},T.prototype.parseJSXNameValueAttribute=function(){var O=this.createJSXNode(),te=this.parseJSXAttributeName(),Me=null;return this.matchJSX("=")&&(this.expectJSX("="),Me=this.parseJSXAttributeValue()),this.finalize(O,new Ge.JSXAttribute(te,Me))},T.prototype.parseJSXSpreadAttribute=function(){var O=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var te=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(O,new Ge.JSXSpreadAttribute(te))},T.prototype.parseJSXAttributes=function(){for(var O=[];!this.matchJSX("/")&&!this.matchJSX(">");){var te=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();O.push(te)}return O},T.prototype.parseJSXOpeningElement=function(){var O=this.createJSXNode();this.expectJSX("<");var te=this.parseJSXElementName(),Me=this.parseJSXAttributes(),Je=this.matchJSX("/");return Je&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(O,new Ge.JSXOpeningElement(te,Je,Me))},T.prototype.parseJSXBoundaryElement=function(){var O=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var te=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(O,new Ge.JSXClosingElement(te))}var Me=this.parseJSXElementName(),Je=this.parseJSXAttributes(),kt=this.matchJSX("/");return kt&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(O,new Ge.JSXOpeningElement(Me,kt,Je))},T.prototype.parseJSXEmptyExpression=function(){var O=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(O,new Ge.JSXEmptyExpression)},T.prototype.parseJSXExpressionContainer=function(){var te,O=this.createJSXNode();return this.expectJSX("{"),this.matchJSX("}")?(te=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),te=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(O,new Ge.JSXExpressionContainer(te))},T.prototype.parseJSXChildren=function(){for(var O=[];!this.scanner.eof();){var te=this.createJSXChildNode(),Me=this.nextJSXText();if(Me.start0))break;jt=this.finalize(O.node,new Ge.JSXElement(O.opening,O.children,O.closing)),(O=te[te.length-1]).children.push(jt),te.pop()}}return O},T.prototype.parseJSXElement=function(){var O=this.createJSXNode(),te=this.parseJSXOpeningElement(),Me=[],Je=null;if(!te.selfClosing){var kt=this.parseComplexJSXElement({node:O,opening:te,closing:Je,children:Me});Me=kt.children,Je=kt.closing}return this.finalize(O,new Ge.JSXElement(te,Me,Je))},T.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var O=this.parseJSXElement();return this.finishJSX(),O},T.prototype.isStartOfExpression=function(){return D.prototype.isStartOfExpression.call(this)||this.match("<")},T}(Ve.Parser);De.JSXParser=ae},function(Tn,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0});var rt={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};De.Character={fromCodePoint:function(Oe){return Oe<65536?String.fromCharCode(Oe):String.fromCharCode(55296+(Oe-65536>>10))+String.fromCharCode(56320+(Oe-65536&1023))},isWhiteSpace:function(Oe){return 32===Oe||9===Oe||11===Oe||12===Oe||160===Oe||Oe>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(Oe)>=0},isLineTerminator:function(Oe){return 10===Oe||13===Oe||8232===Oe||8233===Oe},isIdentifierStart:function(Oe){return 36===Oe||95===Oe||Oe>=65&&Oe<=90||Oe>=97&&Oe<=122||92===Oe||Oe>=128&&rt.NonAsciiIdentifierStart.test(De.Character.fromCodePoint(Oe))},isIdentifierPart:function(Oe){return 36===Oe||95===Oe||Oe>=65&&Oe<=90||Oe>=97&&Oe<=122||Oe>=48&&Oe<=57||92===Oe||Oe>=128&&rt.NonAsciiIdentifierPart.test(De.Character.fromCodePoint(Oe))},isDecimalDigit:function(Oe){return Oe>=48&&Oe<=57},isHexDigit:function(Oe){return Oe>=48&&Oe<=57||Oe>=65&&Oe<=70||Oe>=97&&Oe<=102},isOctalDigit:function(Oe){return Oe>=48&&Oe<=55}}},function(Tn,De,rt){"use strict";Object.defineProperty(De,"__esModule",{value:!0});var Oe=rt(6);De.JSXClosingElement=function O(te){this.type=Oe.JSXSyntax.JSXClosingElement,this.name=te},De.JSXElement=function O(te,Me,Je){this.type=Oe.JSXSyntax.JSXElement,this.openingElement=te,this.children=Me,this.closingElement=Je},De.JSXEmptyExpression=function O(){this.type=Oe.JSXSyntax.JSXEmptyExpression},De.JSXExpressionContainer=function O(te){this.type=Oe.JSXSyntax.JSXExpressionContainer,this.expression=te},De.JSXIdentifier=function O(te){this.type=Oe.JSXSyntax.JSXIdentifier,this.name=te},De.JSXMemberExpression=function O(te,Me){this.type=Oe.JSXSyntax.JSXMemberExpression,this.object=te,this.property=Me},De.JSXAttribute=function O(te,Me){this.type=Oe.JSXSyntax.JSXAttribute,this.name=te,this.value=Me},De.JSXNamespacedName=function O(te,Me){this.type=Oe.JSXSyntax.JSXNamespacedName,this.namespace=te,this.name=Me},De.JSXOpeningElement=function O(te,Me,Je){this.type=Oe.JSXSyntax.JSXOpeningElement,this.name=te,this.selfClosing=Me,this.attributes=Je},De.JSXSpreadAttribute=function O(te){this.type=Oe.JSXSyntax.JSXSpreadAttribute,this.argument=te},De.JSXText=function O(te,Me){this.type=Oe.JSXSyntax.JSXText,this.value=te,this.raw=Me}},function(Tn,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0}),De.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(Tn,De,rt){"use strict";Object.defineProperty(De,"__esModule",{value:!0});var Oe=rt(2);De.ArrayExpression=function We(Xe){this.type=Oe.Syntax.ArrayExpression,this.elements=Xe},De.ArrayPattern=function We(Xe){this.type=Oe.Syntax.ArrayPattern,this.elements=Xe},De.ArrowFunctionExpression=function We(Xe,bt,Cn){this.type=Oe.Syntax.ArrowFunctionExpression,this.id=null,this.params=Xe,this.body=bt,this.generator=!1,this.expression=Cn,this.async=!1},De.AssignmentExpression=function We(Xe,bt,Cn){this.type=Oe.Syntax.AssignmentExpression,this.operator=Xe,this.left=bt,this.right=Cn},De.AssignmentPattern=function We(Xe,bt){this.type=Oe.Syntax.AssignmentPattern,this.left=Xe,this.right=bt},De.AsyncArrowFunctionExpression=function We(Xe,bt,Cn){this.type=Oe.Syntax.ArrowFunctionExpression,this.id=null,this.params=Xe,this.body=bt,this.generator=!1,this.expression=Cn,this.async=!0},De.AsyncFunctionDeclaration=function We(Xe,bt,Cn){this.type=Oe.Syntax.FunctionDeclaration,this.id=Xe,this.params=bt,this.body=Cn,this.generator=!1,this.expression=!1,this.async=!0},De.AsyncFunctionExpression=function We(Xe,bt,Cn){this.type=Oe.Syntax.FunctionExpression,this.id=Xe,this.params=bt,this.body=Cn,this.generator=!1,this.expression=!1,this.async=!0},De.AwaitExpression=function We(Xe){this.type=Oe.Syntax.AwaitExpression,this.argument=Xe},De.BinaryExpression=function We(Xe,bt,Cn){this.type="||"===Xe||"&&"===Xe?Oe.Syntax.LogicalExpression:Oe.Syntax.BinaryExpression,this.operator=Xe,this.left=bt,this.right=Cn},De.BlockStatement=function We(Xe){this.type=Oe.Syntax.BlockStatement,this.body=Xe},De.BreakStatement=function We(Xe){this.type=Oe.Syntax.BreakStatement,this.label=Xe},De.CallExpression=function We(Xe,bt){this.type=Oe.Syntax.CallExpression,this.callee=Xe,this.arguments=bt},De.CatchClause=function We(Xe,bt){this.type=Oe.Syntax.CatchClause,this.param=Xe,this.body=bt},De.ClassBody=function We(Xe){this.type=Oe.Syntax.ClassBody,this.body=Xe},De.ClassDeclaration=function We(Xe,bt,Cn){this.type=Oe.Syntax.ClassDeclaration,this.id=Xe,this.superClass=bt,this.body=Cn},De.ClassExpression=function We(Xe,bt,Cn){this.type=Oe.Syntax.ClassExpression,this.id=Xe,this.superClass=bt,this.body=Cn},De.ComputedMemberExpression=function We(Xe,bt){this.type=Oe.Syntax.MemberExpression,this.computed=!0,this.object=Xe,this.property=bt},De.ConditionalExpression=function We(Xe,bt,Cn){this.type=Oe.Syntax.ConditionalExpression,this.test=Xe,this.consequent=bt,this.alternate=Cn},De.ContinueStatement=function We(Xe){this.type=Oe.Syntax.ContinueStatement,this.label=Xe},De.DebuggerStatement=function We(){this.type=Oe.Syntax.DebuggerStatement},De.Directive=function We(Xe,bt){this.type=Oe.Syntax.ExpressionStatement,this.expression=Xe,this.directive=bt},De.DoWhileStatement=function We(Xe,bt){this.type=Oe.Syntax.DoWhileStatement,this.body=Xe,this.test=bt},De.EmptyStatement=function We(){this.type=Oe.Syntax.EmptyStatement},De.ExportAllDeclaration=function We(Xe){this.type=Oe.Syntax.ExportAllDeclaration,this.source=Xe},De.ExportDefaultDeclaration=function We(Xe){this.type=Oe.Syntax.ExportDefaultDeclaration,this.declaration=Xe},De.ExportNamedDeclaration=function We(Xe,bt,Cn){this.type=Oe.Syntax.ExportNamedDeclaration,this.declaration=Xe,this.specifiers=bt,this.source=Cn},De.ExportSpecifier=function We(Xe,bt){this.type=Oe.Syntax.ExportSpecifier,this.exported=bt,this.local=Xe},De.ExpressionStatement=function We(Xe){this.type=Oe.Syntax.ExpressionStatement,this.expression=Xe},De.ForInStatement=function We(Xe,bt,Cn){this.type=Oe.Syntax.ForInStatement,this.left=Xe,this.right=bt,this.body=Cn,this.each=!1},De.ForOfStatement=function We(Xe,bt,Cn){this.type=Oe.Syntax.ForOfStatement,this.left=Xe,this.right=bt,this.body=Cn},De.ForStatement=function We(Xe,bt,Cn,jr){this.type=Oe.Syntax.ForStatement,this.init=Xe,this.test=bt,this.update=Cn,this.body=jr},De.FunctionDeclaration=function We(Xe,bt,Cn,jr){this.type=Oe.Syntax.FunctionDeclaration,this.id=Xe,this.params=bt,this.body=Cn,this.generator=jr,this.expression=!1,this.async=!1},De.FunctionExpression=function We(Xe,bt,Cn,jr){this.type=Oe.Syntax.FunctionExpression,this.id=Xe,this.params=bt,this.body=Cn,this.generator=jr,this.expression=!1,this.async=!1},De.Identifier=function We(Xe){this.type=Oe.Syntax.Identifier,this.name=Xe},De.IfStatement=function We(Xe,bt,Cn){this.type=Oe.Syntax.IfStatement,this.test=Xe,this.consequent=bt,this.alternate=Cn},De.ImportDeclaration=function We(Xe,bt){this.type=Oe.Syntax.ImportDeclaration,this.specifiers=Xe,this.source=bt},De.ImportDefaultSpecifier=function We(Xe){this.type=Oe.Syntax.ImportDefaultSpecifier,this.local=Xe},De.ImportNamespaceSpecifier=function We(Xe){this.type=Oe.Syntax.ImportNamespaceSpecifier,this.local=Xe},De.ImportSpecifier=function We(Xe,bt){this.type=Oe.Syntax.ImportSpecifier,this.local=Xe,this.imported=bt},De.LabeledStatement=function We(Xe,bt){this.type=Oe.Syntax.LabeledStatement,this.label=Xe,this.body=bt},De.Literal=function We(Xe,bt){this.type=Oe.Syntax.Literal,this.value=Xe,this.raw=bt},De.MetaProperty=function We(Xe,bt){this.type=Oe.Syntax.MetaProperty,this.meta=Xe,this.property=bt},De.MethodDefinition=function We(Xe,bt,Cn,jr,Y0){this.type=Oe.Syntax.MethodDefinition,this.key=Xe,this.computed=bt,this.value=Cn,this.kind=jr,this.static=Y0},De.Module=function We(Xe){this.type=Oe.Syntax.Program,this.body=Xe,this.sourceType="module"},De.NewExpression=function We(Xe,bt){this.type=Oe.Syntax.NewExpression,this.callee=Xe,this.arguments=bt},De.ObjectExpression=function We(Xe){this.type=Oe.Syntax.ObjectExpression,this.properties=Xe},De.ObjectPattern=function We(Xe){this.type=Oe.Syntax.ObjectPattern,this.properties=Xe},De.Property=function We(Xe,bt,Cn,jr,Y0,Gi){this.type=Oe.Syntax.Property,this.key=bt,this.computed=Cn,this.value=jr,this.kind=Xe,this.method=Y0,this.shorthand=Gi},De.RegexLiteral=function We(Xe,bt,Cn,jr){this.type=Oe.Syntax.Literal,this.value=Xe,this.raw=bt,this.regex={pattern:Cn,flags:jr}},De.RestElement=function We(Xe){this.type=Oe.Syntax.RestElement,this.argument=Xe},De.ReturnStatement=function We(Xe){this.type=Oe.Syntax.ReturnStatement,this.argument=Xe},De.Script=function We(Xe){this.type=Oe.Syntax.Program,this.body=Xe,this.sourceType="script"},De.SequenceExpression=function We(Xe){this.type=Oe.Syntax.SequenceExpression,this.expressions=Xe},De.SpreadElement=function We(Xe){this.type=Oe.Syntax.SpreadElement,this.argument=Xe},De.StaticMemberExpression=function We(Xe,bt){this.type=Oe.Syntax.MemberExpression,this.computed=!1,this.object=Xe,this.property=bt},De.Super=function We(){this.type=Oe.Syntax.Super},De.SwitchCase=function We(Xe,bt){this.type=Oe.Syntax.SwitchCase,this.test=Xe,this.consequent=bt},De.SwitchStatement=function We(Xe,bt){this.type=Oe.Syntax.SwitchStatement,this.discriminant=Xe,this.cases=bt},De.TaggedTemplateExpression=function We(Xe,bt){this.type=Oe.Syntax.TaggedTemplateExpression,this.tag=Xe,this.quasi=bt},De.TemplateElement=function We(Xe,bt){this.type=Oe.Syntax.TemplateElement,this.value=Xe,this.tail=bt},De.TemplateLiteral=function We(Xe,bt){this.type=Oe.Syntax.TemplateLiteral,this.quasis=Xe,this.expressions=bt},De.ThisExpression=function We(){this.type=Oe.Syntax.ThisExpression},De.ThrowStatement=function We(Xe){this.type=Oe.Syntax.ThrowStatement,this.argument=Xe},De.TryStatement=function We(Xe,bt,Cn){this.type=Oe.Syntax.TryStatement,this.block=Xe,this.handler=bt,this.finalizer=Cn},De.UnaryExpression=function We(Xe,bt){this.type=Oe.Syntax.UnaryExpression,this.operator=Xe,this.argument=bt,this.prefix=!0},De.UpdateExpression=function We(Xe,bt,Cn){this.type=Oe.Syntax.UpdateExpression,this.operator=Xe,this.argument=bt,this.prefix=Cn},De.VariableDeclaration=function We(Xe,bt){this.type=Oe.Syntax.VariableDeclaration,this.declarations=Xe,this.kind=bt},De.VariableDeclarator=function We(Xe,bt){this.type=Oe.Syntax.VariableDeclarator,this.id=Xe,this.init=bt},De.WhileStatement=function We(Xe,bt){this.type=Oe.Syntax.WhileStatement,this.test=Xe,this.body=bt},De.WithStatement=function We(Xe,bt){this.type=Oe.Syntax.WithStatement,this.object=Xe,this.body=bt},De.YieldExpression=function We(Xe,bt){this.type=Oe.Syntax.YieldExpression,this.argument=Xe,this.delegate=bt}},function(Tn,De,rt){"use strict";Object.defineProperty(De,"__esModule",{value:!0});var Oe=rt(9),dt=rt(10),Ge=rt(11),_e=rt(7),et=rt(12),Ve=rt(2),ve=rt(13),se="ArrowParameterPlaceHolder",ue=function(){function ae(D,T,O){void 0===T&&(T={}),this.config={range:"boolean"==typeof T.range&&T.range,loc:"boolean"==typeof T.loc&&T.loc,source:null,tokens:"boolean"==typeof T.tokens&&T.tokens,comment:"boolean"==typeof T.comment&&T.comment,tolerant:"boolean"==typeof T.tolerant&&T.tolerant},this.config.loc&&T.source&&null!==T.source&&(this.config.source=String(T.source)),this.delegate=O,this.errorHandler=new dt.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new et.Scanner(D,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return ae.prototype.throwError=function(D){for(var T=[],O=1;O0&&this.delegate)for(var T=0;T>="===D||">>>="===D||"&="===D||"^="===D||"|="===D},ae.prototype.isolateCoverGrammar=function(D){var T=this.context.isBindingElement,O=this.context.isAssignmentTarget,te=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var Me=D.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=T,this.context.isAssignmentTarget=O,this.context.firstCoverInitializedNameError=te,Me},ae.prototype.inheritCoverGrammar=function(D){var T=this.context.isBindingElement,O=this.context.isAssignmentTarget,te=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var Me=D.call(this);return this.context.isBindingElement=this.context.isBindingElement&&T,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&O,this.context.firstCoverInitializedNameError=te||this.context.firstCoverInitializedNameError,Me},ae.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(2!==this.lookahead.type&&!this.match("}")&&this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},ae.prototype.parsePrimaryExpression=function(){var T,O,te,D=this.createNode();switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&"await"===this.lookahead.value&&this.tolerateUnexpectedToken(this.lookahead),T=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(D,new _e.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,Ge.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,O=this.nextToken(),te=this.getTokenRaw(O),T=this.finalize(D,new _e.Literal(O.value,te));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,O=this.nextToken(),te=this.getTokenRaw(O),T=this.finalize(D,new _e.Literal("true"===O.value,te));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,O=this.nextToken(),te=this.getTokenRaw(O),T=this.finalize(D,new _e.Literal(null,te));break;case 10:T=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,T=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":T=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":T=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,O=this.nextRegexToken(),te=this.getTokenRaw(O),T=this.finalize(D,new _e.RegexLiteral(O.regex,te,O.pattern,O.flags));break;default:T=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?T=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?T=this.finalize(D,new _e.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?T=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),T=this.finalize(D,new _e.ThisExpression)):T=this.matchKeyword("class")?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:T=this.throwUnexpectedToken(this.nextToken())}return T},ae.prototype.parseSpreadElement=function(){var D=this.createNode();this.expect("...");var T=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(D,new _e.SpreadElement(T))},ae.prototype.parseArrayInitializer=function(){var D=this.createNode(),T=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),T.push(null);else if(this.match("...")){var O=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),T.push(O)}else T.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(D,new _e.ArrayExpression(T))},ae.prototype.parsePropertyMethod=function(D){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var T=this.context.strict,O=this.context.allowStrictDirective;this.context.allowStrictDirective=D.simple;var te=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&D.firstRestricted&&this.tolerateUnexpectedToken(D.firstRestricted,D.message),this.context.strict&&D.stricted&&this.tolerateUnexpectedToken(D.stricted,D.message),this.context.strict=T,this.context.allowStrictDirective=O,te},ae.prototype.parsePropertyMethodFunction=function(){var T=this.createNode(),O=this.context.allowYield;this.context.allowYield=!0;var te=this.parseFormalParameters(),Me=this.parsePropertyMethod(te);return this.context.allowYield=O,this.finalize(T,new _e.FunctionExpression(null,te.params,Me,!1))},ae.prototype.parsePropertyMethodAsyncFunction=function(){var D=this.createNode(),T=this.context.allowYield,O=this.context.await;this.context.allowYield=!1,this.context.await=!0;var te=this.parseFormalParameters(),Me=this.parsePropertyMethod(te);return this.context.allowYield=T,this.context.await=O,this.finalize(D,new _e.AsyncFunctionExpression(null,te.params,Me))},ae.prototype.parseObjectPropertyKey=function(){var O,D=this.createNode(),T=this.nextToken();switch(T.type){case 8:case 6:this.context.strict&&T.octal&&this.tolerateUnexpectedToken(T,Ge.Messages.StrictOctalLiteral);var te=this.getTokenRaw(T);O=this.finalize(D,new _e.Literal(T.value,te));break;case 3:case 1:case 5:case 4:O=this.finalize(D,new _e.Identifier(T.value));break;case 7:"["===T.value?(O=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):O=this.throwUnexpectedToken(T);break;default:O=this.throwUnexpectedToken(T)}return O},ae.prototype.isPropertyKey=function(D,T){return D.type===Ve.Syntax.Identifier&&D.name===T||D.type===Ve.Syntax.Literal&&D.value===T},ae.prototype.parseObjectProperty=function(D){var te,T=this.createNode(),O=this.lookahead,Me=null,Je=null,kt=!1,jt=!1,Wt=!1,wn=!1;if(3===O.type){var rn=O.value;this.nextToken(),kt=this.match("["),Me=(wn=!(this.hasLineTerminator||"async"!==rn||this.match(":")||this.match("(")||this.match("*")||this.match(",")))?this.parseObjectPropertyKey():this.finalize(T,new _e.Identifier(rn))}else this.match("*")?this.nextToken():(kt=this.match("["),Me=this.parseObjectPropertyKey());var Mi=this.qualifiedPropertyName(this.lookahead);if(3===O.type&&!wn&&"get"===O.value&&Mi)te="get",kt=this.match("["),Me=this.parseObjectPropertyKey(),this.context.allowYield=!1,Je=this.parseGetterMethod();else if(3===O.type&&!wn&&"set"===O.value&&Mi)te="set",kt=this.match("["),Me=this.parseObjectPropertyKey(),Je=this.parseSetterMethod();else if(7===O.type&&"*"===O.value&&Mi)te="init",kt=this.match("["),Me=this.parseObjectPropertyKey(),Je=this.parseGeneratorMethod(),jt=!0;else if(Me||this.throwUnexpectedToken(this.lookahead),te="init",this.match(":")&&!wn)!kt&&this.isPropertyKey(Me,"__proto__")&&(D.value&&this.tolerateError(Ge.Messages.DuplicateProtoProperty),D.value=!0),this.nextToken(),Je=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))Je=wn?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),jt=!0;else if(3===O.type)if(rn=this.finalize(T,new _e.Identifier(O.value)),this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),Wt=!0;var zr=this.isolateCoverGrammar(this.parseAssignmentExpression);Je=this.finalize(T,new _e.AssignmentPattern(rn,zr))}else Wt=!0,Je=rn;else this.throwUnexpectedToken(this.nextToken());return this.finalize(T,new _e.Property(te,Me,kt,Je,jt,Wt))},ae.prototype.parseObjectInitializer=function(){var D=this.createNode();this.expect("{");for(var T=[],O={value:!1};!this.match("}");)T.push(this.parseObjectProperty(O)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(D,new _e.ObjectExpression(T))},ae.prototype.parseTemplateHead=function(){Oe.assert(this.lookahead.head,"Template literal must start with a template head");var D=this.createNode(),T=this.nextToken();return this.finalize(D,new _e.TemplateElement({raw:T.value,cooked:T.cooked},T.tail))},ae.prototype.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();var D=this.createNode(),T=this.nextToken();return this.finalize(D,new _e.TemplateElement({raw:T.value,cooked:T.cooked},T.tail))},ae.prototype.parseTemplateLiteral=function(){var D=this.createNode(),T=[],O=[],te=this.parseTemplateHead();for(O.push(te);!te.tail;)T.push(this.parseExpression()),te=this.parseTemplateElement(),O.push(te);return this.finalize(D,new _e.TemplateLiteral(O,T))},ae.prototype.reinterpretExpressionAsPattern=function(D){switch(D.type){case Ve.Syntax.Identifier:case Ve.Syntax.MemberExpression:case Ve.Syntax.RestElement:case Ve.Syntax.AssignmentPattern:break;case Ve.Syntax.SpreadElement:D.type=Ve.Syntax.RestElement,this.reinterpretExpressionAsPattern(D.argument);break;case Ve.Syntax.ArrayExpression:D.type=Ve.Syntax.ArrayPattern;for(var T=0;T")||this.expect("=>"),D={type:se,params:[],async:!1};else{var T=this.lookahead,O=[];if(this.match("..."))D=this.parseRestElement(O),this.expect(")"),this.match("=>")||this.expect("=>"),D={type:se,params:[D],async:!1};else{var te=!1;if(this.context.isBindingElement=!0,D=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var Me=[];for(this.context.isAssignmentTarget=!1,Me.push(D);2!==this.lookahead.type&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var Je=0;Je")||this.expect("=>"),this.context.isBindingElement=!1,Je=0;Je")&&(D.type===Ve.Syntax.Identifier&&"yield"===D.name&&(te=!0,D={type:se,params:[D],async:!1}),!te)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),D.type===Ve.Syntax.SequenceExpression)for(Je=0;Je")){for(var jt=0;jt0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var Me=[D,this.lookahead],Je=T,kt=this.isolateCoverGrammar(this.parseExponentiationExpression),jt=[Je,O.value,kt],Wt=[te];!((te=this.binaryPrecedence(this.lookahead))<=0);){for(;jt.length>2&&te<=Wt[Wt.length-1];){kt=jt.pop();var wn=jt.pop();Wt.pop(),Je=jt.pop(),Me.pop();var rn=this.startNode(Me[Me.length-1]);jt.push(this.finalize(rn,new _e.BinaryExpression(wn,Je,kt)))}jt.push(this.nextToken().value),Wt.push(te),Me.push(this.lookahead),jt.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var Mi=jt.length-1;T=jt[Mi];for(var zr=Me.pop();Mi>1;){var Xr=Me.pop();rn=this.startNode(Xr,zr&&zr.lineStart),T=this.finalize(rn,new _e.BinaryExpression(wn=jt[Mi-1],jt[Mi-2],T)),Mi-=2,zr=Xr}}return T},ae.prototype.parseConditionalExpression=function(){var D=this.lookahead,T=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var O=this.context.allowIn;this.context.allowIn=!0;var te=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=O,this.expect(":");var Me=this.isolateCoverGrammar(this.parseAssignmentExpression);T=this.finalize(this.startNode(D),new _e.ConditionalExpression(T,te,Me)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return T},ae.prototype.checkPatternParam=function(D,T){switch(T.type){case Ve.Syntax.Identifier:this.validateParam(D,T,T.name);break;case Ve.Syntax.RestElement:this.checkPatternParam(D,T.argument);break;case Ve.Syntax.AssignmentPattern:this.checkPatternParam(D,T.left);break;case Ve.Syntax.ArrayPattern:for(var O=0;O")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var Me=D.async,Je=this.reinterpretAsCoverFormalsList(D);if(Je){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var kt=this.context.strict,jt=this.context.allowStrictDirective;this.context.allowStrictDirective=Je.simple;var Wt=this.context.allowYield,wn=this.context.await;this.context.allowYield=!0,this.context.await=Me;var rn=this.startNode(T);this.expect("=>");var Mi=void 0;if(this.match("{")){var zr=this.context.allowIn;this.context.allowIn=!0,Mi=this.parseFunctionSourceElements(),this.context.allowIn=zr}else Mi=this.isolateCoverGrammar(this.parseAssignmentExpression);var Xr=Mi.type!==Ve.Syntax.BlockStatement;this.context.strict&&Je.firstRestricted&&this.throwUnexpectedToken(Je.firstRestricted,Je.message),this.context.strict&&Je.stricted&&this.tolerateUnexpectedToken(Je.stricted,Je.message),D=this.finalize(rn,Me?new _e.AsyncArrowFunctionExpression(Je.params,Mi,Xr):new _e.ArrowFunctionExpression(Je.params,Mi,Xr)),this.context.strict=kt,this.context.allowStrictDirective=jt,this.context.allowYield=Wt,this.context.await=wn}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(Ge.Messages.InvalidLHSInAssignment),this.context.strict&&D.type===Ve.Syntax.Identifier){var hs=D;this.scanner.isRestrictedWord(hs.name)&&this.tolerateUnexpectedToken(O,Ge.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(hs.name)&&this.tolerateUnexpectedToken(O,Ge.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(D):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1);var Ya=(O=this.nextToken()).value,tr=this.isolateCoverGrammar(this.parseAssignmentExpression);D=this.finalize(this.startNode(T),new _e.AssignmentExpression(Ya,D,tr)),this.context.firstCoverInitializedNameError=null}}return D},ae.prototype.parseExpression=function(){var D=this.lookahead,T=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var O=[];for(O.push(T);2!==this.lookahead.type&&this.match(",");)this.nextToken(),O.push(this.isolateCoverGrammar(this.parseAssignmentExpression));T=this.finalize(this.startNode(D),new _e.SequenceExpression(O))}return T},ae.prototype.parseStatementListItem=function(){var D;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,4===this.lookahead.type)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,Ge.Messages.IllegalExportDeclaration),D=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,Ge.Messages.IllegalImportDeclaration),D=this.parseImportDeclaration();break;case"const":D=this.parseLexicalDeclaration({inFor:!1});break;case"function":D=this.parseFunctionDeclaration();break;case"class":D=this.parseClassDeclaration();break;case"let":D=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:D=this.parseStatement()}else D=this.parseStatement();return D},ae.prototype.parseBlock=function(){var D=this.createNode();this.expect("{");for(var T=[];!this.match("}");)T.push(this.parseStatementListItem());return this.expect("}"),this.finalize(D,new _e.BlockStatement(T))},ae.prototype.parseLexicalBinding=function(D,T){var O=this.createNode(),Me=this.parsePattern([],D);this.context.strict&&Me.type===Ve.Syntax.Identifier&&this.scanner.isRestrictedWord(Me.name)&&this.tolerateError(Ge.Messages.StrictVarName);var Je=null;return"const"===D?!this.matchKeyword("in")&&!this.matchContextualKeyword("of")&&(this.match("=")?(this.nextToken(),Je=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(Ge.Messages.DeclarationMissingInitializer,"const")):(!T.inFor&&Me.type!==Ve.Syntax.Identifier||this.match("="))&&(this.expect("="),Je=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(O,new _e.VariableDeclarator(Me,Je))},ae.prototype.parseBindingList=function(D,T){for(var O=[this.parseLexicalBinding(D,T)];this.match(",");)this.nextToken(),O.push(this.parseLexicalBinding(D,T));return O},ae.prototype.isLexicalDeclaration=function(){var D=this.scanner.saveState();this.scanner.scanComments();var T=this.scanner.lex();return this.scanner.restoreState(D),3===T.type||7===T.type&&"["===T.value||7===T.type&&"{"===T.value||4===T.type&&"let"===T.value||4===T.type&&"yield"===T.value},ae.prototype.parseLexicalDeclaration=function(D){var T=this.createNode(),O=this.nextToken().value;Oe.assert("let"===O||"const"===O,"Lexical declaration must be either let or const");var te=this.parseBindingList(O,D);return this.consumeSemicolon(),this.finalize(T,new _e.VariableDeclaration(te,O))},ae.prototype.parseBindingRestElement=function(D,T){var O=this.createNode();this.expect("...");var te=this.parsePattern(D,T);return this.finalize(O,new _e.RestElement(te))},ae.prototype.parseArrayPattern=function(D,T){var O=this.createNode();this.expect("[");for(var te=[];!this.match("]");)if(this.match(","))this.nextToken(),te.push(null);else{if(this.match("...")){te.push(this.parseBindingRestElement(D,T));break}te.push(this.parsePatternWithDefault(D,T)),this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(O,new _e.ArrayPattern(te))},ae.prototype.parsePropertyPattern=function(D,T){var kt,jt,O=this.createNode(),te=!1,Me=!1;if(3===this.lookahead.type){var Wt=this.lookahead;kt=this.parseVariableIdentifier();var wn=this.finalize(O,new _e.Identifier(Wt.value));if(this.match("=")){D.push(Wt),Me=!0,this.nextToken();var rn=this.parseAssignmentExpression();jt=this.finalize(this.startNode(Wt),new _e.AssignmentPattern(wn,rn))}else this.match(":")?(this.expect(":"),jt=this.parsePatternWithDefault(D,T)):(D.push(Wt),Me=!0,jt=wn)}else te=this.match("["),kt=this.parseObjectPropertyKey(),this.expect(":"),jt=this.parsePatternWithDefault(D,T);return this.finalize(O,new _e.Property("init",kt,te,jt,!1,Me))},ae.prototype.parseObjectPattern=function(D,T){var O=this.createNode(),te=[];for(this.expect("{");!this.match("}");)te.push(this.parsePropertyPattern(D,T)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(O,new _e.ObjectPattern(te))},ae.prototype.parsePattern=function(D,T){var O;return this.match("[")?O=this.parseArrayPattern(D,T):this.match("{")?O=this.parseObjectPattern(D,T):(this.matchKeyword("let")&&("const"===T||"let"===T)&&this.tolerateUnexpectedToken(this.lookahead,Ge.Messages.LetInLexicalBinding),D.push(this.lookahead),O=this.parseVariableIdentifier(T)),O},ae.prototype.parsePatternWithDefault=function(D,T){var O=this.lookahead,te=this.parsePattern(D,T);if(this.match("=")){this.nextToken();var Me=this.context.allowYield;this.context.allowYield=!0;var Je=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=Me,te=this.finalize(this.startNode(O),new _e.AssignmentPattern(te,Je))}return te},ae.prototype.parseVariableIdentifier=function(D){var T=this.createNode(),O=this.nextToken();return 4===O.type&&"yield"===O.value?this.context.strict?this.tolerateUnexpectedToken(O,Ge.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(O):3!==O.type?this.context.strict&&4===O.type&&this.scanner.isStrictModeReservedWord(O.value)?this.tolerateUnexpectedToken(O,Ge.Messages.StrictReservedWord):(this.context.strict||"let"!==O.value||"var"!==D)&&this.throwUnexpectedToken(O):(this.context.isModule||this.context.await)&&3===O.type&&"await"===O.value&&this.tolerateUnexpectedToken(O),this.finalize(T,new _e.Identifier(O.value))},ae.prototype.parseVariableDeclaration=function(D){var T=this.createNode(),te=this.parsePattern([],"var");this.context.strict&&te.type===Ve.Syntax.Identifier&&this.scanner.isRestrictedWord(te.name)&&this.tolerateError(Ge.Messages.StrictVarName);var Me=null;return this.match("=")?(this.nextToken(),Me=this.isolateCoverGrammar(this.parseAssignmentExpression)):te.type!==Ve.Syntax.Identifier&&!D.inFor&&this.expect("="),this.finalize(T,new _e.VariableDeclarator(te,Me))},ae.prototype.parseVariableDeclarationList=function(D){var T={inFor:D.inFor},O=[];for(O.push(this.parseVariableDeclaration(T));this.match(",");)this.nextToken(),O.push(this.parseVariableDeclaration(T));return O},ae.prototype.parseVariableStatement=function(){var D=this.createNode();this.expectKeyword("var");var T=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(D,new _e.VariableDeclaration(T,"var"))},ae.prototype.parseEmptyStatement=function(){var D=this.createNode();return this.expect(";"),this.finalize(D,new _e.EmptyStatement)},ae.prototype.parseExpressionStatement=function(){var D=this.createNode(),T=this.parseExpression();return this.consumeSemicolon(),this.finalize(D,new _e.ExpressionStatement(T))},ae.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(Ge.Messages.StrictFunction),this.parseStatement()},ae.prototype.parseIfStatement=function(){var T,D=this.createNode(),O=null;this.expectKeyword("if"),this.expect("(");var te=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),T=this.finalize(this.createNode(),new _e.EmptyStatement)):(this.expect(")"),T=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),O=this.parseIfClause())),this.finalize(D,new _e.IfStatement(te,T,O))},ae.prototype.parseDoWhileStatement=function(){var D=this.createNode();this.expectKeyword("do");var T=this.context.inIteration;this.context.inIteration=!0;var O=this.parseStatement();this.context.inIteration=T,this.expectKeyword("while"),this.expect("(");var te=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(D,new _e.DoWhileStatement(O,te))},ae.prototype.parseWhileStatement=function(){var T,D=this.createNode();this.expectKeyword("while"),this.expect("(");var O=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),T=this.finalize(this.createNode(),new _e.EmptyStatement);else{this.expect(")");var te=this.context.inIteration;this.context.inIteration=!0,T=this.parseStatement(),this.context.inIteration=te}return this.finalize(D,new _e.WhileStatement(O,T))},ae.prototype.parseForStatement=function(){var Me,Je,Xr,D=null,T=null,O=null,te=!0,kt=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){D=this.createNode(),this.nextToken();var jt=this.context.allowIn;this.context.allowIn=!1;var Wt=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=jt,1===Wt.length&&this.matchKeyword("in")){var wn=Wt[0];wn.init&&(wn.id.type===Ve.Syntax.ArrayPattern||wn.id.type===Ve.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(Ge.Messages.ForInOfLoopInitializer,"for-in"),D=this.finalize(D,new _e.VariableDeclaration(Wt,"var")),this.nextToken(),Me=D,Je=this.parseExpression(),D=null}else 1===Wt.length&&null===Wt[0].init&&this.matchContextualKeyword("of")?(D=this.finalize(D,new _e.VariableDeclaration(Wt,"var")),this.nextToken(),Me=D,Je=this.parseAssignmentExpression(),D=null,te=!1):(D=this.finalize(D,new _e.VariableDeclaration(Wt,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){D=this.createNode();var rn=this.nextToken().value;this.context.strict||"in"!==this.lookahead.value?(jt=this.context.allowIn,this.context.allowIn=!1,Wt=this.parseBindingList(rn,{inFor:!0}),this.context.allowIn=jt,1===Wt.length&&null===Wt[0].init&&this.matchKeyword("in")?(D=this.finalize(D,new _e.VariableDeclaration(Wt,rn)),this.nextToken(),Me=D,Je=this.parseExpression(),D=null):1===Wt.length&&null===Wt[0].init&&this.matchContextualKeyword("of")?(D=this.finalize(D,new _e.VariableDeclaration(Wt,rn)),this.nextToken(),Me=D,Je=this.parseAssignmentExpression(),D=null,te=!1):(this.consumeSemicolon(),D=this.finalize(D,new _e.VariableDeclaration(Wt,rn)))):(D=this.finalize(D,new _e.Identifier(rn)),this.nextToken(),Me=D,Je=this.parseExpression(),D=null)}else{var Mi=this.lookahead;if(jt=this.context.allowIn,this.context.allowIn=!1,D=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=jt,this.matchKeyword("in"))(!this.context.isAssignmentTarget||D.type===Ve.Syntax.AssignmentExpression)&&this.tolerateError(Ge.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(D),Me=D,Je=this.parseExpression(),D=null;else if(this.matchContextualKeyword("of"))(!this.context.isAssignmentTarget||D.type===Ve.Syntax.AssignmentExpression)&&this.tolerateError(Ge.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(D),Me=D,Je=this.parseAssignmentExpression(),D=null,te=!1;else{if(this.match(",")){for(var zr=[D];this.match(",");)this.nextToken(),zr.push(this.isolateCoverGrammar(this.parseAssignmentExpression));D=this.finalize(this.startNode(Mi),new _e.SequenceExpression(zr))}this.expect(";")}}if(typeof Me>"u"&&(this.match(";")||(T=this.parseExpression()),this.expect(";"),this.match(")")||(O=this.parseExpression())),!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),Xr=this.finalize(this.createNode(),new _e.EmptyStatement);else{this.expect(")");var hs=this.context.inIteration;this.context.inIteration=!0,Xr=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=hs}return this.finalize(kt,typeof Me>"u"?new _e.ForStatement(D,T,O,Xr):te?new _e.ForInStatement(Me,Je,Xr):new _e.ForOfStatement(Me,Je,Xr))},ae.prototype.parseContinueStatement=function(){var D=this.createNode();this.expectKeyword("continue");var T=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var O=this.parseVariableIdentifier();T=O,Object.prototype.hasOwnProperty.call(this.context.labelSet,"$"+O.name)||this.throwError(Ge.Messages.UnknownLabel,O.name)}return this.consumeSemicolon(),null===T&&!this.context.inIteration&&this.throwError(Ge.Messages.IllegalContinue),this.finalize(D,new _e.ContinueStatement(T))},ae.prototype.parseBreakStatement=function(){var D=this.createNode();this.expectKeyword("break");var T=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var O=this.parseVariableIdentifier();Object.prototype.hasOwnProperty.call(this.context.labelSet,"$"+O.name)||this.throwError(Ge.Messages.UnknownLabel,O.name),T=O}return this.consumeSemicolon(),null===T&&!this.context.inIteration&&!this.context.inSwitch&&this.throwError(Ge.Messages.IllegalBreak),this.finalize(D,new _e.BreakStatement(T))},ae.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(Ge.Messages.IllegalReturn);var D=this.createNode();this.expectKeyword("return");var O=(this.match(";")||this.match("}")||this.hasLineTerminator||2===this.lookahead.type)&&8!==this.lookahead.type&&10!==this.lookahead.type?null:this.parseExpression();return this.consumeSemicolon(),this.finalize(D,new _e.ReturnStatement(O))},ae.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(Ge.Messages.StrictModeWith);var T,D=this.createNode();this.expectKeyword("with"),this.expect("(");var O=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),T=this.finalize(this.createNode(),new _e.EmptyStatement)):(this.expect(")"),T=this.parseStatement()),this.finalize(D,new _e.WithStatement(O,T))},ae.prototype.parseSwitchCase=function(){var T,D=this.createNode();this.matchKeyword("default")?(this.nextToken(),T=null):(this.expectKeyword("case"),T=this.parseExpression()),this.expect(":");for(var O=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)O.push(this.parseStatementListItem());return this.finalize(D,new _e.SwitchCase(T,O))},ae.prototype.parseSwitchStatement=function(){var D=this.createNode();this.expectKeyword("switch"),this.expect("(");var T=this.parseExpression();this.expect(")");var O=this.context.inSwitch;this.context.inSwitch=!0;var te=[],Me=!1;for(this.expect("{");!this.match("}");){var Je=this.parseSwitchCase();null===Je.test&&(Me&&this.throwError(Ge.Messages.MultipleDefaultsInSwitch),Me=!0),te.push(Je)}return this.expect("}"),this.context.inSwitch=O,this.finalize(D,new _e.SwitchStatement(T,te))},ae.prototype.parseLabelledStatement=function(){var O,D=this.createNode(),T=this.parseExpression();if(T.type===Ve.Syntax.Identifier&&this.match(":")){this.nextToken();var te=T,Me="$"+te.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,Me)&&this.throwError(Ge.Messages.Redeclaration,"Label",te.name),this.context.labelSet[Me]=!0;var Je=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),Je=this.parseClassDeclaration();else if(this.matchKeyword("function")){var kt=this.lookahead,jt=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(kt,Ge.Messages.StrictFunction):jt.generator&&this.tolerateUnexpectedToken(kt,Ge.Messages.GeneratorInLegacyContext),Je=jt}else Je=this.parseStatement();delete this.context.labelSet[Me],O=new _e.LabeledStatement(te,Je)}else this.consumeSemicolon(),O=new _e.ExpressionStatement(T);return this.finalize(D,O)},ae.prototype.parseThrowStatement=function(){var D=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(Ge.Messages.NewlineAfterThrow);var T=this.parseExpression();return this.consumeSemicolon(),this.finalize(D,new _e.ThrowStatement(T))},ae.prototype.parseCatchClause=function(){var D=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var T=[],O=this.parsePattern(T),te={},Me=0;Me0&&this.tolerateError(Ge.Messages.BadGetterArity);var Me=this.parsePropertyMethod(te);return this.context.allowYield=O,this.finalize(D,new _e.FunctionExpression(null,te.params,Me,false))},ae.prototype.parseSetterMethod=function(){var D=this.createNode(),O=this.context.allowYield;this.context.allowYield=!0;var te=this.parseFormalParameters();1!==te.params.length?this.tolerateError(Ge.Messages.BadSetterArity):te.params[0]instanceof _e.RestElement&&this.tolerateError(Ge.Messages.BadSetterRestParameter);var Me=this.parsePropertyMethod(te);return this.context.allowYield=O,this.finalize(D,new _e.FunctionExpression(null,te.params,Me,false))},ae.prototype.parseGeneratorMethod=function(){var D=this.createNode(),O=this.context.allowYield;this.context.allowYield=!0;var te=this.parseFormalParameters();this.context.allowYield=!1;var Me=this.parsePropertyMethod(te);return this.context.allowYield=O,this.finalize(D,new _e.FunctionExpression(null,te.params,Me,!0))},ae.prototype.isStartOfExpression=function(){var D=!0,T=this.lookahead.value;switch(this.lookahead.type){case 7:D="["===T||"("===T||"{"===T||"+"===T||"-"===T||"!"===T||"~"===T||"++"===T||"--"===T||"/"===T||"/="===T;break;case 4:D="class"===T||"delete"===T||"function"===T||"let"===T||"new"===T||"super"===T||"this"===T||"typeof"===T||"void"===T||"yield"===T}return D},ae.prototype.parseYieldExpression=function(){var D=this.createNode();this.expectKeyword("yield");var T=null,O=!1;if(!this.hasLineTerminator){var te=this.context.allowYield;this.context.allowYield=!1,(O=this.match("*"))?(this.nextToken(),T=this.parseAssignmentExpression()):this.isStartOfExpression()&&(T=this.parseAssignmentExpression()),this.context.allowYield=te}return this.finalize(D,new _e.YieldExpression(T,O))},ae.prototype.parseClassElement=function(D){var T=this.lookahead,O=this.createNode(),te="",Me=null,Je=null,kt=!1,jt=!1,Wt=!1,wn=!1;if(this.match("*"))this.nextToken();else if(kt=this.match("["),"static"===(Me=this.parseObjectPropertyKey()).name&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(T=this.lookahead,Wt=!0,kt=this.match("["),this.match("*")?this.nextToken():Me=this.parseObjectPropertyKey()),3===T.type&&!this.hasLineTerminator&&"async"===T.value){var Mi=this.lookahead.value;":"!==Mi&&"("!==Mi&&"*"!==Mi&&(wn=!0,T=this.lookahead,Me=this.parseObjectPropertyKey(),3===T.type&&"constructor"===T.value&&this.tolerateUnexpectedToken(T,Ge.Messages.ConstructorIsAsync))}var zr=this.qualifiedPropertyName(this.lookahead);return 3===T.type?"get"===T.value&&zr?(te="get",kt=this.match("["),Me=this.parseObjectPropertyKey(),this.context.allowYield=!1,Je=this.parseGetterMethod()):"set"===T.value&&zr&&(te="set",kt=this.match("["),Me=this.parseObjectPropertyKey(),Je=this.parseSetterMethod()):7===T.type&&"*"===T.value&&zr&&(te="init",kt=this.match("["),Me=this.parseObjectPropertyKey(),Je=this.parseGeneratorMethod(),jt=!0),!te&&Me&&this.match("(")&&(te="init",Je=wn?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),jt=!0),te||this.throwUnexpectedToken(this.lookahead),"init"===te&&(te="method"),kt||(Wt&&this.isPropertyKey(Me,"prototype")&&this.throwUnexpectedToken(T,Ge.Messages.StaticPrototype),!Wt&&this.isPropertyKey(Me,"constructor")&&(("method"!==te||!jt||Je&&Je.generator)&&this.throwUnexpectedToken(T,Ge.Messages.ConstructorSpecialMethod),D.value?this.throwUnexpectedToken(T,Ge.Messages.DuplicateConstructor):D.value=!0,te="constructor")),this.finalize(O,new _e.MethodDefinition(Me,kt,Je,te,Wt))},ae.prototype.parseClassElementList=function(){var D=[],T={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():D.push(this.parseClassElement(T));return this.expect("}"),D},ae.prototype.parseClassBody=function(){var D=this.createNode(),T=this.parseClassElementList();return this.finalize(D,new _e.ClassBody(T))},ae.prototype.parseClassDeclaration=function(D){var T=this.createNode(),O=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var te=D&&3!==this.lookahead.type?null:this.parseVariableIdentifier(),Me=null;this.matchKeyword("extends")&&(this.nextToken(),Me=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var Je=this.parseClassBody();return this.context.strict=O,this.finalize(T,new _e.ClassDeclaration(te,Me,Je))},ae.prototype.parseClassExpression=function(){var D=this.createNode(),T=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var O=3===this.lookahead.type?this.parseVariableIdentifier():null,te=null;this.matchKeyword("extends")&&(this.nextToken(),te=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var Me=this.parseClassBody();return this.context.strict=T,this.finalize(D,new _e.ClassExpression(O,te,Me))},ae.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var D=this.createNode(),T=this.parseDirectivePrologues();2!==this.lookahead.type;)T.push(this.parseStatementListItem());return this.finalize(D,new _e.Module(T))},ae.prototype.parseScript=function(){for(var D=this.createNode(),T=this.parseDirectivePrologues();2!==this.lookahead.type;)T.push(this.parseStatementListItem());return this.finalize(D,new _e.Script(T))},ae.prototype.parseModuleSpecifier=function(){var D=this.createNode();8!==this.lookahead.type&&this.throwError(Ge.Messages.InvalidModuleSpecifier);var T=this.nextToken(),O=this.getTokenRaw(T);return this.finalize(D,new _e.Literal(T.value,O))},ae.prototype.parseImportSpecifier=function(){var T,O,D=this.createNode();return 3===this.lookahead.type?(O=T=this.parseVariableIdentifier(),this.matchContextualKeyword("as")&&(this.nextToken(),O=this.parseVariableIdentifier())):(O=T=this.parseIdentifierName(),this.matchContextualKeyword("as")?(this.nextToken(),O=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(D,new _e.ImportSpecifier(O,T))},ae.prototype.parseNamedImports=function(){this.expect("{");for(var D=[];!this.match("}");)D.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),D},ae.prototype.parseImportDefaultSpecifier=function(){var D=this.createNode(),T=this.parseIdentifierName();return this.finalize(D,new _e.ImportDefaultSpecifier(T))},ae.prototype.parseImportNamespaceSpecifier=function(){var D=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(Ge.Messages.NoAsAfterImportNamespace),this.nextToken();var T=this.parseIdentifierName();return this.finalize(D,new _e.ImportNamespaceSpecifier(T))},ae.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(Ge.Messages.IllegalImportDeclaration);var D=this.createNode();this.expectKeyword("import");var T,O=[];return 8===this.lookahead.type||(this.match("{")?O=O.concat(this.parseNamedImports()):this.match("*")?O.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(O.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?O.push(this.parseImportNamespaceSpecifier()):this.match("{")?O=O.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),this.matchContextualKeyword("from")||this.throwError(this.lookahead.value?Ge.Messages.UnexpectedToken:Ge.Messages.MissingFromClause,this.lookahead.value),this.nextToken()),T=this.parseModuleSpecifier(),this.consumeSemicolon(),this.finalize(D,new _e.ImportDeclaration(O,T))},ae.prototype.parseExportSpecifier=function(){var D=this.createNode(),T=this.parseIdentifierName(),O=T;return this.matchContextualKeyword("as")&&(this.nextToken(),O=this.parseIdentifierName()),this.finalize(D,new _e.ExportSpecifier(T,O))},ae.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(Ge.Messages.IllegalExportDeclaration);var T,D=this.createNode();if(this.expectKeyword("export"),this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var O=this.parseFunctionDeclaration(!0);T=this.finalize(D,new _e.ExportDefaultDeclaration(O))}else this.matchKeyword("class")?(O=this.parseClassDeclaration(!0),T=this.finalize(D,new _e.ExportDefaultDeclaration(O))):this.matchContextualKeyword("async")?(O=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression(),T=this.finalize(D,new _e.ExportDefaultDeclaration(O))):(this.matchContextualKeyword("from")&&this.throwError(Ge.Messages.UnexpectedToken,this.lookahead.value),O=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression(),this.consumeSemicolon(),T=this.finalize(D,new _e.ExportDefaultDeclaration(O)));else if(this.match("*")){this.nextToken(),this.matchContextualKeyword("from")||this.throwError(this.lookahead.value?Ge.Messages.UnexpectedToken:Ge.Messages.MissingFromClause,this.lookahead.value),this.nextToken();var Me=this.parseModuleSpecifier();this.consumeSemicolon(),T=this.finalize(D,new _e.ExportAllDeclaration(Me))}else if(4===this.lookahead.type){switch(O=void 0,this.lookahead.value){case"let":case"const":O=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":O=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}T=this.finalize(D,new _e.ExportNamedDeclaration(O,[],null))}else if(this.matchAsyncFunction())O=this.parseFunctionDeclaration(),T=this.finalize(D,new _e.ExportNamedDeclaration(O,[],null));else{var Je=[],kt=null,jt=!1;for(this.expect("{");!this.match("}");)jt=jt||this.matchKeyword("default"),Je.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");this.expect("}"),this.matchContextualKeyword("from")?(this.nextToken(),kt=this.parseModuleSpecifier(),this.consumeSemicolon()):jt?this.throwError(this.lookahead.value?Ge.Messages.UnexpectedToken:Ge.Messages.MissingFromClause,this.lookahead.value):this.consumeSemicolon(),T=this.finalize(D,new _e.ExportNamedDeclaration(null,Je,kt))}return T},ae}();De.Parser=ue},function(Tn,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0}),De.assert=function rt(Oe,dt){if(!Oe)throw new Error("ASSERT: "+dt)}},function(Tn,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0});var rt=function(){function Oe(){this.errors=[],this.tolerant=!1}return Oe.prototype.recordError=function(dt){this.errors.push(dt)},Oe.prototype.tolerate=function(dt){if(!this.tolerant)throw dt;this.recordError(dt)},Oe.prototype.constructError=function(dt,Ge){var _e=new Error(dt);try{throw _e}catch(et){Object.create&&Object.defineProperty&&(_e=Object.create(et),Object.defineProperty(_e,"column",{value:Ge}))}return _e},Oe.prototype.createError=function(dt,Ge,_e,et){var ve=this.constructError("Line "+Ge+": "+et,_e);return ve.index=dt,ve.lineNumber=Ge,ve.description=et,ve},Oe.prototype.throwError=function(dt,Ge,_e,et){throw this.createError(dt,Ge,_e,et)},Oe.prototype.tolerateError=function(dt,Ge,_e,et){var Ve=this.createError(dt,Ge,_e,et);if(!this.tolerant)throw Ve;this.recordError(Ve)},Oe}();De.ErrorHandler=rt},function(Tn,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0}),De.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(Tn,De,rt){"use strict";Object.defineProperty(De,"__esModule",{value:!0});var Oe=rt(9),dt=rt(4),Ge=rt(11);function _e(ve){return"0123456789abcdef".indexOf(ve.toLowerCase())}function et(ve){return"01234567".indexOf(ve)}var Ve=function(){function ve(se,ue){this.source=se,this.errorHandler=ue,this.trackComment=!1,this.isModule=!1,this.length=se.length,this.index=0,this.lineNumber=se.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return ve.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},ve.prototype.restoreState=function(se){this.index=se.index,this.lineNumber=se.lineNumber,this.lineStart=se.lineStart},ve.prototype.eof=function(){return this.index>=this.length},ve.prototype.throwUnexpectedToken=function(se){return void 0===se&&(se=Ge.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,se)},ve.prototype.tolerateUnexpectedToken=function(se){void 0===se&&(se=Ge.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,se)},ve.prototype.skipSingleLineComment=function(se){var ae,D,ue=[];for(this.trackComment&&(ue=[],ae=this.index-se,D={start:{line:this.lineNumber,column:this.index-this.lineStart-se},end:{}});!this.eof();){var T=this.source.charCodeAt(this.index);if(++this.index,dt.Character.isLineTerminator(T))return this.trackComment&&(D.end={line:this.lineNumber,column:this.index-this.lineStart-1},ue.push({multiLine:!1,slice:[ae+se,this.index-1],range:[ae,this.index-1],loc:D})),13===T&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,ue}return this.trackComment&&(D.end={line:this.lineNumber,column:this.index-this.lineStart},ue.push({multiLine:!1,slice:[ae+se,this.index],range:[ae,this.index],loc:D})),ue},ve.prototype.skipMultiLineComment=function(){var ue,ae,se=[];for(this.trackComment&&(se=[],ue=this.index-2,ae={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var D=this.source.charCodeAt(this.index);if(dt.Character.isLineTerminator(D))13===D&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===D){if(47===this.source.charCodeAt(this.index+1))return this.index+=2,this.trackComment&&(ae.end={line:this.lineNumber,column:this.index-this.lineStart},se.push({multiLine:!0,slice:[ue+2,this.index-2],range:[ue,this.index],loc:ae})),se;++this.index}else++this.index}return this.trackComment&&(ae.end={line:this.lineNumber,column:this.index-this.lineStart},se.push({multiLine:!0,slice:[ue+2,this.index],range:[ue,this.index],loc:ae})),this.tolerateUnexpectedToken(),se},ve.prototype.scanComments=function(){var se;this.trackComment&&(se=[]);for(var ue=0===this.index;!this.eof();){var ae=this.source.charCodeAt(this.index);if(dt.Character.isWhiteSpace(ae))++this.index;else if(dt.Character.isLineTerminator(ae))++this.index,13===ae&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,ue=!0;else if(47===ae)if(47===(ae=this.source.charCodeAt(this.index+1))){this.index+=2;var D=this.skipSingleLineComment(2);this.trackComment&&(se=se.concat(D)),ue=!0}else{if(42!==ae)break;this.index+=2,D=this.skipMultiLineComment(),this.trackComment&&(se=se.concat(D))}else if(ue&&45===ae){if(45!==this.source.charCodeAt(this.index+1)||62!==this.source.charCodeAt(this.index+2))break;this.index+=3,D=this.skipSingleLineComment(3),this.trackComment&&(se=se.concat(D))}else{if(60!==ae||this.isModule)break;if("!--"!==this.source.slice(this.index+1,this.index+4))break;this.index+=4,D=this.skipSingleLineComment(4),this.trackComment&&(se=se.concat(D))}}return se},ve.prototype.isFutureReservedWord=function(se){switch(se){case"enum":case"export":case"import":case"super":return!0;default:return!1}},ve.prototype.isStrictModeReservedWord=function(se){switch(se){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},ve.prototype.isRestrictedWord=function(se){return"eval"===se||"arguments"===se},ve.prototype.isKeyword=function(se){switch(se.length){case 2:return"if"===se||"in"===se||"do"===se;case 3:return"var"===se||"for"===se||"new"===se||"try"===se||"let"===se;case 4:return"this"===se||"else"===se||"case"===se||"void"===se||"with"===se||"enum"===se;case 5:return"while"===se||"break"===se||"catch"===se||"throw"===se||"const"===se||"yield"===se||"class"===se||"super"===se;case 6:return"return"===se||"typeof"===se||"delete"===se||"switch"===se||"export"===se||"import"===se;case 7:return"default"===se||"finally"===se||"extends"===se;case 8:return"function"===se||"continue"===se||"debugger"===se;case 10:return"instanceof"===se;default:return!1}},ve.prototype.codePointAt=function(se){var ue=this.source.charCodeAt(se);if(ue>=55296&&ue<=56319){var ae=this.source.charCodeAt(se+1);ae>=56320&&ae<=57343&&(ue=1024*(ue-55296)+ae-56320+65536)}return ue},ve.prototype.scanHexEscape=function(se){for(var ue="u"===se?4:2,ae=0,D=0;D1114111||"}"!==se)&&this.throwUnexpectedToken(),dt.Character.fromCodePoint(ue)},ve.prototype.getIdentifier=function(){for(var se=this.index++;!this.eof();){var ue=this.source.charCodeAt(this.index);if(92===ue)return this.index=se,this.getComplexIdentifier();if(ue>=55296&&ue<57343)return this.index=se,this.getComplexIdentifier();if(!dt.Character.isIdentifierPart(ue))break;++this.index}return this.source.slice(se,this.index)},ve.prototype.getComplexIdentifier=function(){var ae,se=this.codePointAt(this.index),ue=dt.Character.fromCodePoint(se);for(this.index+=ue.length,92===se&&(117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,ae=this.scanUnicodeCodePointEscape()):(null===(ae=this.scanHexEscape("u"))||"\\"===ae||!dt.Character.isIdentifierStart(ae.charCodeAt(0)))&&this.throwUnexpectedToken(),ue=ae);!this.eof()&&(se=this.codePointAt(this.index),dt.Character.isIdentifierPart(se));)ue+=ae=dt.Character.fromCodePoint(se),this.index+=ae.length,92===se&&(ue=ue.substr(0,ue.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,ae=this.scanUnicodeCodePointEscape()):(null===(ae=this.scanHexEscape("u"))||"\\"===ae||!dt.Character.isIdentifierPart(ae.charCodeAt(0)))&&this.throwUnexpectedToken(),ue+=ae);return ue},ve.prototype.octalToDecimal=function(se){var ue="0"!==se,ae=et(se);return!this.eof()&&dt.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(ue=!0,ae=8*ae+et(this.source[this.index++]),"0123".indexOf(se)>=0&&!this.eof()&&dt.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(ae=8*ae+et(this.source[this.index++]))),{code:ae,octal:ue}},ve.prototype.scanIdentifier=function(){var se,ue=this.index,ae=92===this.source.charCodeAt(ue)?this.getComplexIdentifier():this.getIdentifier();if(3!=(se=1===ae.length?3:this.isKeyword(ae)?4:"null"===ae?5:"true"===ae||"false"===ae?1:3)&&ue+ae.length!==this.index){var D=this.index;this.index=ue,this.tolerateUnexpectedToken(Ge.Messages.InvalidEscapedReservedWord),this.index=D}return{type:se,value:ae,lineNumber:this.lineNumber,lineStart:this.lineStart,start:ue,end:this.index}},ve.prototype.scanPunctuator=function(){var se=this.index,ue=this.source[this.index];switch(ue){case"(":case"{":"{"===ue&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,"."===this.source[this.index]&&"."===this.source[this.index+1]&&(this.index+=2,ue="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:">>>="===(ue=this.source.substr(this.index,4))?this.index+=4:"==="===(ue=ue.substr(0,3))||"!=="===ue||">>>"===ue||"<<="===ue||">>="===ue||"**="===ue?this.index+=3:"&&"===(ue=ue.substr(0,2))||"||"===ue||"=="===ue||"!="===ue||"+="===ue||"-="===ue||"*="===ue||"/="===ue||"++"===ue||"--"===ue||"<<"===ue||">>"===ue||"&="===ue||"|="===ue||"^="===ue||"%="===ue||"<="===ue||">="===ue||"=>"===ue||"**"===ue?this.index+=2:"<>=!+-*%&|^/".indexOf(ue=this.source[this.index])>=0&&++this.index}return this.index===se&&this.throwUnexpectedToken(),{type:7,value:ue,lineNumber:this.lineNumber,lineStart:this.lineStart,start:se,end:this.index}},ve.prototype.scanHexLiteral=function(se){for(var ue="";!this.eof()&&dt.Character.isHexDigit(this.source.charCodeAt(this.index));)ue+=this.source[this.index++];return 0===ue.length&&this.throwUnexpectedToken(),dt.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+ue,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:se,end:this.index}},ve.prototype.scanBinaryLiteral=function(se){for(var ae,ue="";!this.eof()&&("0"===(ae=this.source[this.index])||"1"===ae);)ue+=this.source[this.index++];return 0===ue.length&&this.throwUnexpectedToken(),this.eof()||(ae=this.source.charCodeAt(this.index),(dt.Character.isIdentifierStart(ae)||dt.Character.isDecimalDigit(ae))&&this.throwUnexpectedToken()),{type:6,value:parseInt(ue,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:se,end:this.index}},ve.prototype.scanOctalLiteral=function(se,ue){var ae="",D=!1;for(dt.Character.isOctalDigit(se.charCodeAt(0))?(D=!0,ae="0"+this.source[this.index++]):++this.index;!this.eof()&&dt.Character.isOctalDigit(this.source.charCodeAt(this.index));)ae+=this.source[this.index++];return!D&&0===ae.length&&this.throwUnexpectedToken(),(dt.Character.isIdentifierStart(this.source.charCodeAt(this.index))||dt.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(ae,8),octal:D,lineNumber:this.lineNumber,lineStart:this.lineStart,start:ue,end:this.index}},ve.prototype.isImplicitOctalLiteral=function(){for(var se=this.index+1;se=0&&(D=D.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(O,te,Me){var Je=parseInt(te||Me,16);return Je>1114111&&T.throwUnexpectedToken(Ge.Messages.InvalidRegExp),Je<=65535?String.fromCharCode(Je):"\uffff"}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"\uffff"));try{RegExp(D)}catch{this.throwUnexpectedToken(Ge.Messages.InvalidRegExp)}try{return new RegExp(se,ue)}catch{return null}},ve.prototype.scanRegExpBody=function(){var se=this.source[this.index];Oe.assert("/"===se,"Regular expression literal must start with a slash");for(var ue=this.source[this.index++],ae=!1,D=!1;!this.eof();)if(ue+=se=this.source[this.index++],"\\"===se)se=this.source[this.index++],dt.Character.isLineTerminator(se.charCodeAt(0))&&this.throwUnexpectedToken(Ge.Messages.UnterminatedRegExp),ue+=se;else if(dt.Character.isLineTerminator(se.charCodeAt(0)))this.throwUnexpectedToken(Ge.Messages.UnterminatedRegExp);else if(ae)"]"===se&&(ae=!1);else{if("/"===se){D=!0;break}"["===se&&(ae=!0)}return D||this.throwUnexpectedToken(Ge.Messages.UnterminatedRegExp),ue.substr(1,ue.length-2)},ve.prototype.scanRegExpFlags=function(){for(var ue="";!this.eof();){var ae=this.source[this.index];if(!dt.Character.isIdentifierPart(ae.charCodeAt(0)))break;if(++this.index,"\\"!==ae||this.eof())ue+=ae;else if("u"===(ae=this.source[this.index])){++this.index;var D=this.index,T=this.scanHexEscape("u");if(null!==T)for(ue+=T;D=55296&&se<57343&&dt.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},ve}();De.Scanner=Ve},function(Tn,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0}),De.TokenName={},De.TokenName[1]="Boolean",De.TokenName[2]="",De.TokenName[3]="Identifier",De.TokenName[4]="Keyword",De.TokenName[5]="Null",De.TokenName[6]="Numeric",De.TokenName[7]="Punctuator",De.TokenName[8]="String",De.TokenName[9]="RegularExpression",De.TokenName[10]="Template"},function(Tn,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0}),De.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",frasl:"\u2044",euro:"\u20ac",image:"\u2111",weierp:"\u2118",real:"\u211c",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lArr:"\u21d0",uArr:"\u21d1",rArr:"\u21d2",dArr:"\u21d3",hArr:"\u21d4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",lang:"\u27e8",rang:"\u27e9"}},function(Tn,De,rt){"use strict";Object.defineProperty(De,"__esModule",{value:!0});var Oe=rt(10),dt=rt(12),Ge=rt(13),_e=function(){function Ve(){this.values=[],this.curly=this.paren=-1}return Ve.prototype.beforeFunctionExpression=function(ve){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(ve)>=0},Ve.prototype.isRegexStart=function(){var ve=this.values[this.values.length-1],se=null!==ve;switch(ve){case"this":case"]":se=!1;break;case")":var ue=this.values[this.paren-1];se="if"===ue||"while"===ue||"for"===ue||"with"===ue;break;case"}":if(se=!1,"function"===this.values[this.curly-3])se=!!(ae=this.values[this.curly-4])&&!this.beforeFunctionExpression(ae);else if("function"===this.values[this.curly-4]){var ae;se=!(ae=this.values[this.curly-5])||!this.beforeFunctionExpression(ae)}}return se},Ve.prototype.push=function(ve){7===ve.type||4===ve.type?("{"===ve.value?this.curly=this.values.length:"("===ve.value&&(this.paren=this.values.length),this.values.push(ve.value)):this.values.push(null)},Ve}(),et=function(){function Ve(ve,se){this.errorHandler=new Oe.ErrorHandler,this.errorHandler.tolerant=!!se&&"boolean"==typeof se.tolerant&&se.tolerant,this.scanner=new dt.Scanner(ve,this.errorHandler),this.scanner.trackComment=!!se&&"boolean"==typeof se.comment&&se.comment,this.trackRange=!!se&&"boolean"==typeof se.range&&se.range,this.trackLoc=!!se&&"boolean"==typeof se.loc&&se.loc,this.buffer=[],this.reader=new _e}return Ve.prototype.errors=function(){return this.errorHandler.errors},Ve.prototype.getNextToken=function(){if(0===this.buffer.length){var ve=this.scanner.scanComments();if(this.scanner.trackComment)for(var se=0;se=ae.status}function et(ue){try{ue.dispatchEvent(new MouseEvent("click"))}catch{var ae=document.createEvent("MouseEvents");ae.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),ue.dispatchEvent(ae)}}var Ve="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,ve=Ve.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),se=Ve.saveAs||("object"!=typeof window||window!==Ve?function(){}:"download"in HTMLAnchorElement.prototype&&!ve?function(ue,ae,D){var T=Ve.URL||Ve.webkitURL,O=document.createElement("a");O.download=ae=ae||ue.name||"download",O.rel="noopener","string"==typeof ue?(O.href=ue,O.origin===location.origin?et(O):_e(O.href)?Ge(ue,ae,D):et(O,O.target="_blank")):(O.href=T.createObjectURL(ue),setTimeout(function(){T.revokeObjectURL(O.href)},4e4),setTimeout(function(){et(O)},0))}:"msSaveOrOpenBlob"in navigator?function(ue,ae,D){if(ae=ae||ue.name||"download","string"!=typeof ue)navigator.msSaveOrOpenBlob(function dt(ue,ae){return typeof ae>"u"?ae={autoBom:!1}:"object"!=typeof ae&&(console.warn("Deprecated: Expected third argument to be a object"),ae={autoBom:!ae}),ae.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(ue.type)?new Blob(["\ufeff",ue],{type:ue.type}):ue}(ue,D),ae);else if(_e(ue))Ge(ue,ae,D);else{var T=document.createElement("a");T.href=ue,T.target="_blank",setTimeout(function(){et(T)})}}:function(ue,ae,D,T){if((T=T||open("","_blank"))&&(T.document.title=T.document.body.innerText="downloading..."),"string"==typeof ue)return Ge(ue,ae,D);var O="application/octet-stream"===ue.type,te=/constructor/i.test(Ve.HTMLElement)||Ve.safari,Me=/CriOS\/[\d]+/.test(navigator.userAgent);if((Me||O&&te||ve)&&typeof FileReader<"u"){var Je=new FileReader;Je.onloadend=function(){var Wt=Je.result;Wt=Me?Wt:Wt.replace(/^data:[^;]*;/,"data:attachment/file;"),T?T.location.href=Wt:location=Wt,T=null},Je.readAsDataURL(ue)}else{var kt=Ve.URL||Ve.webkitURL,jt=kt.createObjectURL(ue);T?T.location=jt:location.href=jt,T=null,setTimeout(function(){kt.revokeObjectURL(jt)},4e4)}});Ve.saveAs=se.saveAs=se,Yt.exports=se})?De.apply(Tn,[]):De)&&(Yt.exports=Oe)},461:(Yt,Tn)=>{Tn.read=function(De,rt,Oe,dt,Ge){var _e,et,Ve=8*Ge-dt-1,ve=(1<>1,ue=-7,ae=Oe?Ge-1:0,D=Oe?-1:1,T=De[rt+ae];for(ae+=D,_e=T&(1<<-ue)-1,T>>=-ue,ue+=Ve;ue>0;_e=256*_e+De[rt+ae],ae+=D,ue-=8);for(et=_e&(1<<-ue)-1,_e>>=-ue,ue+=dt;ue>0;et=256*et+De[rt+ae],ae+=D,ue-=8);if(0===_e)_e=1-se;else{if(_e===ve)return et?NaN:1/0*(T?-1:1);et+=Math.pow(2,dt),_e-=se}return(T?-1:1)*et*Math.pow(2,_e-dt)},Tn.write=function(De,rt,Oe,dt,Ge,_e){var et,Ve,ve,se=8*_e-Ge-1,ue=(1<>1,D=23===Ge?Math.pow(2,-24)-Math.pow(2,-77):0,T=dt?0:_e-1,O=dt?1:-1,te=rt<0||0===rt&&1/rt<0?1:0;for(rt=Math.abs(rt),isNaN(rt)||rt===1/0?(Ve=isNaN(rt)?1:0,et=ue):(et=Math.floor(Math.log(rt)/Math.LN2),rt*(ve=Math.pow(2,-et))<1&&(et--,ve*=2),(rt+=et+ae>=1?D/ve:D*Math.pow(2,1-ae))*ve>=2&&(et++,ve/=2),et+ae>=ue?(Ve=0,et=ue):et+ae>=1?(Ve=(rt*ve-1)*Math.pow(2,Ge),et+=ae):(Ve=rt*Math.pow(2,ae-1)*Math.pow(2,Ge),et=0));Ge>=8;De[Oe+T]=255&Ve,T+=O,Ve/=256,Ge-=8);for(et=et<0;De[Oe+T]=255&et,T+=O,et/=256,se-=8);De[Oe+T-O]|=128*te}},870:(Yt,Tn,De)=>{"use strict";var rt=De(133);Yt.exports=rt},133:(Yt,Tn,De)=>{"use strict";var rt=De(840),Oe=De(34);function dt(Ge){return function(){throw new Error("Function "+Ge+" is deprecated and cannot be used.")}}Yt.exports.Type=De(647),Yt.exports.Schema=De(372),Yt.exports.FAILSAFE_SCHEMA=De(746),Yt.exports.JSON_SCHEMA=De(147),Yt.exports.CORE_SCHEMA=De(192),Yt.exports.DEFAULT_SAFE_SCHEMA=De(31),Yt.exports.DEFAULT_FULL_SCHEMA=De(94),Yt.exports.load=rt.load,Yt.exports.loadAll=rt.loadAll,Yt.exports.safeLoad=rt.safeLoad,Yt.exports.safeLoadAll=rt.safeLoadAll,Yt.exports.dump=Oe.dump,Yt.exports.safeDump=Oe.safeDump,Yt.exports.YAMLException=De(314),Yt.exports.MINIMAL_SCHEMA=De(746),Yt.exports.SAFE_SCHEMA=De(31),Yt.exports.DEFAULT_SCHEMA=De(94),Yt.exports.scan=dt("scan"),Yt.exports.parse=dt("parse"),Yt.exports.compose=dt("compose"),Yt.exports.addConstructor=dt("addConstructor")},997:Yt=>{"use strict";function Tn(_e){return typeof _e>"u"||null===_e}Yt.exports.isNothing=Tn,Yt.exports.isObject=function De(_e){return"object"==typeof _e&&null!==_e},Yt.exports.toArray=function rt(_e){return Array.isArray(_e)?_e:Tn(_e)?[]:[_e]},Yt.exports.repeat=function dt(_e,et){var ve,Ve="";for(ve=0;ve{"use strict";var rt=De(997),Oe=De(314),dt=De(94),Ge=De(31),_e=Object.prototype.toString,et=Object.prototype.hasOwnProperty,Ve=9,ve=10,se=13,ue=32,ae=33,D=34,T=35,O=37,te=38,Me=39,Je=42,kt=44,jt=45,Wt=58,wn=61,rn=62,Mi=63,zr=64,Xr=91,hs=93,Ya=96,tr=123,mu=124,Sa=125,yn={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},Cd=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Kn(pe){var yt,Ft,Kt;if(yt=pe.toString(16).toUpperCase(),pe<=255)Ft="x",Kt=2;else if(pe<=65535)Ft="u",Kt=4;else{if(!(pe<=4294967295))throw new Oe("code point within a string may not be greater than 0xFFFFFFFF");Ft="U",Kt=8}return"\\"+Ft+rt.repeat("0",Kt-yt.length)+yt}function Fc(pe){this.schema=pe.schema||dt,this.indent=Math.max(1,pe.indent||2),this.noArrayIndent=pe.noArrayIndent||!1,this.skipInvalid=pe.skipInvalid||!1,this.flowLevel=rt.isNothing(pe.flowLevel)?-1:pe.flowLevel,this.styleMap=function kd(pe,yt){var Ft,Kt,Xt,Pt,dn,qt,We;if(null===yt)return{};for(Ft={},Xt=0,Pt=(Kt=Object.keys(yt)).length;Xt0?pe.charCodeAt(Pt-1):null,jr=jr&&pl(dn,qt)}else{for(Pt=0;PtKt&&" "!==pe[Cn+1],Cn=Pt);else if(!Da(dn))return Ja;qt=Pt>0?pe.charCodeAt(Pt-1):null,jr=jr&&pl(dn,qt)}Xe=Xe||bt&&Pt-Cn-1>Kt&&" "!==pe[Cn+1]}return We||Xe?Ft>9&&Sd(pe)?Ja:Xe?vu:Dd:jr&&!Xt(pe)?Nc:Oc}(yt,Kt||pe.flowLevel>-1&&Ft>=pe.flowLevel,pe.indent,Pt,function qt(We){return function Co(pe,yt){var Ft,Kt;for(Ft=0,Kt=pe.implicitTypes.length;Ft"+ml(yt,pe.indent)+Te(gu(function W(pe,yt){for(var Pt,dn,Ft=/(\n+)([^\n]*)/g,Kt=(Xe=void 0,Xe=pe.indexOf("\n"),Ft.lastIndex=Xe=-1!==Xe?Xe:pe.length,ee(pe.slice(0,Xe),yt)),Xt="\n"===pe[0]||" "===pe[0];dn=Ft.exec(pe);){var We=dn[2];Pt=" "===We[0],Kt+=dn[1]+(Xt||Pt||""===We?"":"\n")+ee(We,yt),Xt=Pt}var Xe;return Kt}(yt,Pt),Xt));case Ja:return'"'+function Ne(pe){for(var Ft,Kt,Xt,yt="",Pt=0;Pt=55296&&Ft<=56319&&(Kt=pe.charCodeAt(Pt+1))>=56320&&Kt<=57343?(yt+=Kn(1024*(Ft-55296)+Kt-56320+65536),Pt++):yt+=!(Xt=yn[Ft])&&Da(Ft)?pe[Pt]:Xt||Kn(Ft);return yt}(yt)+'"';default:throw new Oe("impossible error: invalid scalar style")}}()}function ml(pe,yt){var Ft=Sd(pe)?String(yt):"",Kt="\n"===pe[pe.length-1];return Ft+(!Kt||"\n"!==pe[pe.length-2]&&"\n"!==pe?Kt?"":"-":"+")+"\n"}function Te(pe){return"\n"===pe[pe.length-1]?pe.slice(0,-1):pe}function ee(pe,yt){if(""===pe||" "===pe[0])return pe;for(var Kt,Pt,Ft=/ [^ ]/g,Xt=0,dn=0,qt=0,We="";Kt=Ft.exec(pe);)(qt=Kt.index)-Xt>yt&&(We+="\n"+pe.slice(Xt,Pt=dn>Xt?dn:qt),Xt=Pt+1),dn=qt;return We+="\n",(We+=pe.length-Xt>yt&&dn>Xt?pe.slice(Xt,dn)+"\n"+pe.slice(dn+1):pe.slice(Xt)).slice(1)}function A(pe,yt,Ft){var Kt,Xt,Pt,dn,qt,We;for(Pt=0,dn=(Xt=Ft?pe.explicitTypes:pe.implicitTypes).length;Pt tag resolver accepts not "'+We+'" style');Kt=qt.represent[We](yt,We)}pe.dump=Kt}return!0}return!1}function st(pe,yt,Ft,Kt,Xt,Pt){pe.tag=null,pe.dump=Ft,A(pe,Ft,!1)||A(pe,Ft,!0);var dn=_e.call(pe.dump);Kt&&(Kt=pe.flowLevel<0||pe.flowLevel>yt);var We,Xe,qt="[object Object]"===dn||"[object Array]"===dn;if(qt&&(Xe=-1!==(We=pe.duplicates.indexOf(Ft))),(null!==pe.tag&&"?"!==pe.tag||Xe||2!==pe.indent&&yt>0)&&(Xt=!1),Xe&&pe.usedDuplicates[We])pe.dump="*ref_"+We;else{if(qt&&Xe&&!pe.usedDuplicates[We]&&(pe.usedDuplicates[We]=!0),"[object Object]"===dn)Kt&&0!==Object.keys(pe.dump).length?(function nr(pe,yt,Ft,Kt){var qt,We,Xe,bt,Cn,jr,Xt="",Pt=pe.tag,dn=Object.keys(Ft);if(!0===pe.sortKeys)dn.sort();else if("function"==typeof pe.sortKeys)dn.sort(pe.sortKeys);else if(pe.sortKeys)throw new Oe("sortKeys must be a boolean or a function");for(qt=0,We=dn.length;qt1024)&&(pe.dump&&ve===pe.dump.charCodeAt(0)?jr+="?":jr+="? "),jr+=pe.dump,Cn&&(jr+=Ro(pe,yt)),st(pe,yt+1,bt,!0,Cn)&&(pe.dump&&ve===pe.dump.charCodeAt(0)?jr+=":":jr+=": ",Xt+=jr+=pe.dump));pe.tag=Pt,pe.dump=Xt||"{}"}(pe,yt,pe.dump,Xt),Xe&&(pe.dump="&ref_"+We+pe.dump)):(function Qt(pe,yt,Ft){var dn,qt,We,Xe,bt,Kt="",Xt=pe.tag,Pt=Object.keys(Ft);for(dn=0,qt=Pt.length;dn1024&&(bt+="? "),bt+=pe.dump+(pe.condenseFlow?'"':"")+":"+(pe.condenseFlow?"":" "),st(pe,yt,Xe,!1,!1)&&(Kt+=bt+=pe.dump));pe.tag=Xt,pe.dump="{"+Kt+"}"}(pe,yt,pe.dump),Xe&&(pe.dump="&ref_"+We+" "+pe.dump));else if("[object Array]"===dn){var bt=pe.noArrayIndent&&yt>0?yt-1:yt;Kt&&0!==pe.dump.length?(function zt(pe,yt,Ft,Kt){var dn,qt,Xt="",Pt=pe.tag;for(dn=0,qt=Ft.length;dn "+pe.dump)}return!0}function Tt(pe,yt){var Xt,Pt,Ft=[],Kt=[];for(Ut(pe,Ft,Kt),Xt=0,Pt=Kt.length;Xt{"use strict";function Tn(De,rt){Error.call(this),this.name="YAMLException",this.reason=De,this.mark=rt,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}(Tn.prototype=Object.create(Error.prototype)).constructor=Tn,Tn.prototype.toString=function(rt){var Oe=this.name+": ";return Oe+=this.reason||"(unknown reason)",!rt&&this.mark&&(Oe+=" "+this.mark.toString()),Oe},Yt.exports=Tn},840:(Yt,Tn,De)=>{"use strict";var rt=De(997),Oe=De(314),dt=De(48),Ge=De(31),_e=De(94),et=Object.prototype.hasOwnProperty,Ve=1,ve=2,se=3,ue=4,ae=1,D=2,T=3,O=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,te=/[\x85\u2028\u2029]/,Me=/[,\[\]\{\}]/,Je=/^(?:!|!!|![a-z\-]+!)$/i,kt=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function jt(A){return Object.prototype.toString.call(A)}function Wt(A){return 10===A||13===A}function wn(A){return 9===A||32===A}function rn(A){return 9===A||32===A||10===A||13===A}function Mi(A){return 44===A||91===A||93===A||123===A||125===A}function zr(A){var st;return 48<=A&&A<=57?A-48:97<=(st=32|A)&&st<=102?st-97+10:-1}function Xr(A){return 120===A?2:117===A?4:85===A?8:0}function hs(A){return 48<=A&&A<=57?A-48:-1}function Ya(A){return 48===A?"\0":97===A?"\x07":98===A?"\b":116===A||9===A?"\t":110===A?"\n":118===A?"\v":102===A?"\f":114===A?"\r":101===A?"\x1b":32===A?" ":34===A?'"':47===A?"/":92===A?"\\":78===A?"\x85":95===A?"\xa0":76===A?"\u2028":80===A?"\u2029":""}function tr(A){return A<=65535?String.fromCharCode(A):String.fromCharCode(55296+(A-65536>>10),56320+(A-65536&1023))}for(var mu=new Array(256),Sa=new Array(256),yn=0;yn<256;yn++)mu[yn]=Ya(yn)?1:0,Sa[yn]=Ya(yn);function Cd(A,st){this.input=A,this.filename=st.filename||null,this.schema=st.schema||_e,this.onWarning=st.onWarning||null,this.legacy=st.legacy||!1,this.json=st.json||!1,this.listener=st.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=A.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function kd(A,st){return new Oe(st,new dt(A.filename,A.input,A.position,A.line,A.position-A.lineStart))}function Kn(A,st){throw kd(A,st)}function Fc(A,st){A.onWarning&&A.onWarning.call(null,kd(A,st))}var gu={YAML:function(st,Tt,Ut){var Vt,mn,pe;null!==st.version&&Kn(st,"duplication of %YAML directive"),1!==Ut.length&&Kn(st,"YAML directive accepts exactly one argument"),null===(Vt=/^([0-9]+)\.([0-9]+)$/.exec(Ut[0]))&&Kn(st,"ill-formed argument of the YAML directive"),mn=parseInt(Vt[1],10),pe=parseInt(Vt[2],10),1!==mn&&Kn(st,"unacceptable YAML version of the document"),st.version=Ut[0],st.checkLineBreaks=pe<2,1!==pe&&2!==pe&&Fc(st,"unsupported YAML version of the document")},TAG:function(st,Tt,Ut){var Vt,mn;2!==Ut.length&&Kn(st,"TAG directive accepts exactly two arguments"),mn=Ut[1],Je.test(Vt=Ut[0])||Kn(st,"ill-formed tag handle (first argument) of the TAG directive"),et.call(st.tagMap,Vt)&&Kn(st,'there is a previously declared suffix for "'+Vt+'" tag handle'),kt.test(mn)||Kn(st,"ill-formed tag prefix (second argument) of the TAG directive"),st.tagMap[Vt]=mn}};function Ro(A,st,Tt,Ut){var Vt,mn,pe,yt;if(st1&&(A.result+=rt.repeat("\n",st-1))}function Ja(A,st){var Tt,Ft,Ut=A.tag,Vt=A.anchor,mn=[],yt=!1;for(null!==A.anchor&&(A.anchorMap[A.anchor]=mn),Ft=A.input.charCodeAt(A.position);0!==Ft&&45===Ft&&rn(A.input.charCodeAt(A.position+1));)if(yt=!0,A.position++,Zr(A,!0,-1)&&A.lineIndent<=st)mn.push(null),Ft=A.input.charCodeAt(A.position);else if(Tt=A.line,W(A,st,se,!1,!0),mn.push(A.result),Zr(A,!0,-1),Ft=A.input.charCodeAt(A.position),(A.line===Tt||A.lineIndent>st)&&0!==Ft)Kn(A,"bad indentation of a sequence entry");else if(A.lineIndentst?Ft=1:A.lineIndent===st?Ft=0:A.lineIndentst?Ft=1:A.lineIndent===st?Ft=0:A.lineIndentst)&&(W(A,st,ue,!0,Vt)&&(We?dn=A.result:qt=A.result),We||(lo(A,Kt,Xt,Pt,dn,qt,mn,pe),Pt=dn=qt=null),Zr(A,!0,-1),bt=A.input.charCodeAt(A.position)),A.lineIndent>st&&0!==bt)Kn(A,"bad indentation of a mapping entry");else if(A.lineIndent=0))break;0===Xt?Kn(A,"bad explicit indentation width of a block scalar; it cannot be less than one"):pe?Kn(A,"repeat of an indentation width identifier"):(yt=st+Xt-1,pe=!0)}if(wn(Pt)){do{Pt=A.input.charCodeAt(++A.position)}while(wn(Pt));if(35===Pt)do{Pt=A.input.charCodeAt(++A.position)}while(!Wt(Pt)&&0!==Pt)}for(;0!==Pt;){for(Da(A),A.lineIndent=0,Pt=A.input.charCodeAt(A.position);(!pe||A.lineIndentyt&&(yt=A.lineIndent),Wt(Pt))Ft++;else{if(A.lineIndent0){for(Vt=pe,mn=0;Vt>0;Vt--)(pe=zr(yt=A.input.charCodeAt(++A.position)))>=0?mn=(mn<<4)+pe:Kn(A,"expected hexadecimal character");A.result+=tr(mn),A.position++}else Kn(A,"unknown escape sequence");Tt=Ut=A.position}else Wt(yt)?(Ro(A,Tt,Ut,!0),nc(A,Zr(A,!1,st)),Tt=Ut=A.position):A.position===A.lineStart&&pl(A)?Kn(A,"unexpected end of the document within a double quoted scalar"):(A.position++,Ut=A.position)}Kn(A,"unexpected end of the stream within a double quoted scalar")}(A,We)?Xt=!0:function Te(A){var st,Tt,Ut;if(42!==(Ut=A.input.charCodeAt(A.position)))return!1;for(Ut=A.input.charCodeAt(++A.position),st=A.position;0!==Ut&&!rn(Ut)&&!Mi(Ut);)Ut=A.input.charCodeAt(++A.position);return A.position===st&&Kn(A,"name of an alias node must contain at least one character"),Tt=A.input.slice(st,A.position),A.anchorMap.hasOwnProperty(Tt)||Kn(A,'unidentified alias "'+Tt+'"'),A.result=A.anchorMap[Tt],Zr(A,!0,-1),!0}(A)?(Xt=!0,(null!==A.tag||null!==A.anchor)&&Kn(A,"alias node should not have any properties")):function Sd(A,st,Tt){var Vt,mn,pe,yt,Ft,Kt,Xt,qt,Pt=A.kind,dn=A.result;if(rn(qt=A.input.charCodeAt(A.position))||Mi(qt)||35===qt||38===qt||42===qt||33===qt||124===qt||62===qt||39===qt||34===qt||37===qt||64===qt||96===qt||(63===qt||45===qt)&&(rn(Vt=A.input.charCodeAt(A.position+1))||Tt&&Mi(Vt)))return!1;for(A.kind="scalar",A.result="",mn=pe=A.position,yt=!1;0!==qt;){if(58===qt){if(rn(Vt=A.input.charCodeAt(A.position+1))||Tt&&Mi(Vt))break}else if(35===qt){if(rn(A.input.charCodeAt(A.position-1)))break}else{if(A.position===A.lineStart&&pl(A)||Tt&&Mi(qt))break;if(Wt(qt)){if(Ft=A.line,Kt=A.lineStart,Xt=A.lineIndent,Zr(A,!1,-1),A.lineIndent>=st){yt=!0,qt=A.input.charCodeAt(A.position);continue}A.position=pe,A.line=Ft,A.lineStart=Kt,A.lineIndent=Xt;break}}yt&&(Ro(A,mn,pe,!1),nc(A,A.line-Ft),mn=pe=A.position,yt=!1),wn(qt)||(pe=A.position+1),qt=A.input.charCodeAt(++A.position)}return Ro(A,mn,pe,!1),!!A.result||(A.kind=Pt,A.result=dn,!1)}(A,We,Ve===Tt)&&(Xt=!0,null===A.tag&&(A.tag="?")),null!==A.anchor&&(A.anchorMap[A.anchor]=A.result)):0===Ft&&(Xt=yt&&Ja(A,Xe))),null!==A.tag&&"!"!==A.tag)if("?"===A.tag){for(null!==A.result&&"scalar"!==A.kind&&Kn(A,'unacceptable node kind for ! tag; it should be "scalar", not "'+A.kind+'"'),Pt=0,dn=A.implicitTypes.length;Pt tag; it should be "'+qt.kind+'", not "'+A.kind+'"'),qt.resolve(A.result)?(A.result=qt.construct(A.result),null!==A.anchor&&(A.anchorMap[A.anchor]=A.result)):Kn(A,"cannot resolve a node with !<"+A.tag+"> explicit tag")):Kn(A,"unknown tag !<"+A.tag+">");return null!==A.listener&&A.listener("close",A),null!==A.tag||null!==A.anchor||Xt}function ee(A){var Tt,Ut,Vt,pe,st=A.position,mn=!1;for(A.version=null,A.checkLineBreaks=A.legacy,A.tagMap={},A.anchorMap={};0!==(pe=A.input.charCodeAt(A.position))&&(Zr(A,!0,-1),pe=A.input.charCodeAt(A.position),!(A.lineIndent>0||37!==pe));){for(mn=!0,pe=A.input.charCodeAt(++A.position),Tt=A.position;0!==pe&&!rn(pe);)pe=A.input.charCodeAt(++A.position);for(Vt=[],(Ut=A.input.slice(Tt,A.position)).length<1&&Kn(A,"directive name must not be less than one character in length");0!==pe;){for(;wn(pe);)pe=A.input.charCodeAt(++A.position);if(35===pe){do{pe=A.input.charCodeAt(++A.position)}while(0!==pe&&!Wt(pe));break}if(Wt(pe))break;for(Tt=A.position;0!==pe&&!rn(pe);)pe=A.input.charCodeAt(++A.position);Vt.push(A.input.slice(Tt,A.position))}0!==pe&&Da(A),et.call(gu,Ut)?gu[Ut](A,Ut,Vt):Fc(A,'unknown document directive "'+Ut+'"')}Zr(A,!0,-1),0===A.lineIndent&&45===A.input.charCodeAt(A.position)&&45===A.input.charCodeAt(A.position+1)&&45===A.input.charCodeAt(A.position+2)?(A.position+=3,Zr(A,!0,-1)):mn&&Kn(A,"directives end mark is expected"),W(A,A.lineIndent-1,ue,!1,!0),Zr(A,!0,-1),A.checkLineBreaks&&te.test(A.input.slice(st,A.position))&&Fc(A,"non-ASCII line breaks are interpreted as content"),A.documents.push(A.result),A.position===A.lineStart&&pl(A)?46===A.input.charCodeAt(A.position)&&(A.position+=3,Zr(A,!0,-1)):A.position"u"&&(Tt=st,st=null);var Ut=Ne(A,Tt);if("function"!=typeof st)return Ut;for(var Vt=0,mn=Ut.length;Vt"u"&&(Tt=st,st=null),nt(A,st,rt.extend({schema:Ge},Tt))},Yt.exports.safeLoad=function nr(A,st){return zt(A,rt.extend({schema:Ge},st))}},48:(Yt,Tn,De)=>{"use strict";var rt=De(997);function Oe(dt,Ge,_e,et,Ve){this.name=dt,this.buffer=Ge,this.position=_e,this.line=et,this.column=Ve}Oe.prototype.getSnippet=function(Ge,_e){var et,Ve,ve,se,ue;if(!this.buffer)return null;for(Ge=Ge||4,_e=_e||75,et="",Ve=this.position;Ve>0&&-1==="\0\r\n\x85\u2028\u2029".indexOf(this.buffer.charAt(Ve-1));)if(this.position-(Ve-=1)>_e/2-1){et=" ... ",Ve+=5;break}for(ve="",se=this.position;se_e/2-1){ve=" ... ",se-=5;break}return ue=this.buffer.slice(Ve,se),rt.repeat(" ",Ge)+et+ue+ve+"\n"+rt.repeat(" ",Ge+this.position-Ve+et.length)+"^"},Oe.prototype.toString=function(Ge){var _e,et="";return this.name&&(et+='in "'+this.name+'" '),et+="at line "+(this.line+1)+", column "+(this.column+1),Ge||(_e=this.getSnippet())&&(et+=":\n"+_e),et},Yt.exports=Oe},372:(Yt,Tn,De)=>{"use strict";var rt=De(997),Oe=De(314),dt=De(647);function Ge(Ve,ve,se){var ue=[];return Ve.include.forEach(function(ae){se=Ge(ae,ve,se)}),Ve[ve].forEach(function(ae){se.forEach(function(D,T){D.tag===ae.tag&&D.kind===ae.kind&&ue.push(T)}),se.push(ae)}),se.filter(function(ae,D){return-1===ue.indexOf(D)})}function et(Ve){this.include=Ve.include||[],this.implicit=Ve.implicit||[],this.explicit=Ve.explicit||[],this.implicit.forEach(function(ve){if(ve.loadKind&&"scalar"!==ve.loadKind)throw new Oe("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Ge(this,"implicit",[]),this.compiledExplicit=Ge(this,"explicit",[]),this.compiledTypeMap=function _e(){var ve,se,Ve={scalar:{},sequence:{},mapping:{},fallback:{}};function ue(ae){Ve[ae.kind][ae.tag]=Ve.fallback[ae.tag]=ae}for(ve=0,se=arguments.length;ve{"use strict";var rt=De(372);Yt.exports=new rt({include:[De(147)]})},94:(Yt,Tn,De)=>{"use strict";var rt=De(372);Yt.exports=rt.DEFAULT=new rt({include:[De(31)],explicit:[De(771),De(632),De(716)]})},31:(Yt,Tn,De)=>{"use strict";var rt=De(372);Yt.exports=new rt({include:[De(192)],implicit:[De(934),De(996)],explicit:[De(486),De(166),De(711),De(738)]})},746:(Yt,Tn,De)=>{"use strict";var rt=De(372);Yt.exports=new rt({explicit:[De(464),De(322),De(71)]})},147:(Yt,Tn,De)=>{"use strict";var rt=De(372);Yt.exports=new rt({include:[De(746)],implicit:[De(568),De(911),De(877),De(615)]})},647:(Yt,Tn,De)=>{"use strict";var rt=De(314),Oe=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],dt=["scalar","sequence","mapping"];Yt.exports=function _e(et,Ve){if(Ve=Ve||{},Object.keys(Ve).forEach(function(ve){if(-1===Oe.indexOf(ve))throw new rt('Unknown option "'+ve+'" is met in definition of "'+et+'" YAML type.')}),this.tag=et,this.kind=Ve.kind||null,this.resolve=Ve.resolve||function(){return!0},this.construct=Ve.construct||function(ve){return ve},this.instanceOf=Ve.instanceOf||null,this.predicate=Ve.predicate||null,this.represent=Ve.represent||null,this.defaultStyle=Ve.defaultStyle||null,this.styleAliases=function Ge(et){var Ve={};return null!==et&&Object.keys(et).forEach(function(ve){et[ve].forEach(function(se){Ve[String(se)]=ve})}),Ve}(Ve.styleAliases||null),-1===dt.indexOf(this.kind))throw new rt('Unknown kind "'+this.kind+'" is specified for "'+et+'" YAML type.')}},486:(Yt,Tn,De)=>{"use strict";var rt;try{rt=De(172).lW}catch{}var dt=De(647),Ge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";Yt.exports=new dt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function _e(se){if(null===se)return!1;var ue,ae,D=0,T=se.length,O=Ge;for(ae=0;ae64)){if(ue<0)return!1;D+=6}return D%8==0},construct:function et(se){var ue,ae,D=se.replace(/[\r\n=]/g,""),T=D.length,O=Ge,te=0,Me=[];for(ue=0;ue>16&255),Me.push(te>>8&255),Me.push(255&te)),te=te<<6|O.indexOf(D.charAt(ue));return 0==(ae=T%4*6)?(Me.push(te>>16&255),Me.push(te>>8&255),Me.push(255&te)):18===ae?(Me.push(te>>10&255),Me.push(te>>2&255)):12===ae&&Me.push(te>>4&255),rt?rt.from?rt.from(Me):new rt(Me):Me},predicate:function ve(se){return rt&&rt.isBuffer(se)},represent:function Ve(se){var D,T,ue="",ae=0,O=se.length,te=Ge;for(D=0;D>18&63],ue+=te[ae>>12&63],ue+=te[ae>>6&63],ue+=te[63&ae]),ae=(ae<<8)+se[D];return 0==(T=O%3)?(ue+=te[ae>>18&63],ue+=te[ae>>12&63],ue+=te[ae>>6&63],ue+=te[63&ae]):2===T?(ue+=te[ae>>10&63],ue+=te[ae>>4&63],ue+=te[ae<<2&63],ue+=te[64]):1===T&&(ue+=te[ae>>2&63],ue+=te[ae<<4&63],ue+=te[64],ue+=te[64]),ue}})},911:(Yt,Tn,De)=>{"use strict";var rt=De(647);Yt.exports=new rt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function Oe(_e){if(null===_e)return!1;var et=_e.length;return 4===et&&("true"===_e||"True"===_e||"TRUE"===_e)||5===et&&("false"===_e||"False"===_e||"FALSE"===_e)},construct:function dt(_e){return"true"===_e||"True"===_e||"TRUE"===_e},predicate:function Ge(_e){return"[object Boolean]"===Object.prototype.toString.call(_e)},represent:{lowercase:function(_e){return _e?"true":"false"},uppercase:function(_e){return _e?"TRUE":"FALSE"},camelcase:function(_e){return _e?"True":"False"}},defaultStyle:"lowercase"})},615:(Yt,Tn,De)=>{"use strict";var rt=De(997),Oe=De(647),dt=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),et=/^[-+]?[0-9]+e/;Yt.exports=new Oe("tag:yaml.org,2002:float",{kind:"scalar",resolve:function Ge(se){return!(null===se||!dt.test(se)||"_"===se[se.length-1])},construct:function _e(se){var ue,ae,D,T;return ae="-"===(ue=se.replace(/_/g,"").toLowerCase())[0]?-1:1,T=[],"+-".indexOf(ue[0])>=0&&(ue=ue.slice(1)),".inf"===ue?1===ae?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===ue?NaN:ue.indexOf(":")>=0?(ue.split(":").forEach(function(O){T.unshift(parseFloat(O,10))}),ue=0,D=1,T.forEach(function(O){ue+=O*D,D*=60}),ae*ue):ae*parseFloat(ue,10)},predicate:function ve(se){return"[object Number]"===Object.prototype.toString.call(se)&&(se%1!=0||rt.isNegativeZero(se))},represent:function Ve(se,ue){var ae;if(isNaN(se))switch(ue){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===se)switch(ue){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===se)switch(ue){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(rt.isNegativeZero(se))return"-0.0";return ae=se.toString(10),et.test(ae)?ae.replace("e",".e"):ae},defaultStyle:"lowercase"})},877:(Yt,Tn,De)=>{"use strict";var rt=De(997),Oe=De(647);function dt(se){return 48<=se&&se<=57||65<=se&&se<=70||97<=se&&se<=102}function Ge(se){return 48<=se&&se<=55}function _e(se){return 48<=se&&se<=57}Yt.exports=new Oe("tag:yaml.org,2002:int",{kind:"scalar",resolve:function et(se){if(null===se)return!1;var T,ue=se.length,ae=0,D=!1;if(!ue)return!1;if(("-"===(T=se[ae])||"+"===T)&&(T=se[++ae]),"0"===T){if(ae+1===ue)return!0;if("b"===(T=se[++ae])){for(ae++;ae=0?"0b"+se.toString(2):"-0b"+se.toString(2).slice(1)},octal:function(se){return se>=0?"0"+se.toString(8):"-0"+se.toString(8).slice(1)},decimal:function(se){return se.toString(10)},hexadecimal:function(se){return se>=0?"0x"+se.toString(16).toUpperCase():"-0x"+se.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},716:(Yt,Tn,De)=>{"use strict";var rt;try{rt=De(797)}catch{typeof window<"u"&&(rt=window.esprima)}var dt=De(647);Yt.exports=new dt("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function Ge(ve){if(null===ve)return!1;try{var ue=rt.parse("("+ve+")",{range:!0});return!("Program"!==ue.type||1!==ue.body.length||"ExpressionStatement"!==ue.body[0].type||"ArrowFunctionExpression"!==ue.body[0].expression.type&&"FunctionExpression"!==ue.body[0].expression.type)}catch{return!1}},construct:function _e(ve){var D,se="("+ve+")",ue=rt.parse(se,{range:!0}),ae=[];if("Program"!==ue.type||1!==ue.body.length||"ExpressionStatement"!==ue.body[0].type||"ArrowFunctionExpression"!==ue.body[0].expression.type&&"FunctionExpression"!==ue.body[0].expression.type)throw new Error("Failed to resolve function");return ue.body[0].expression.params.forEach(function(T){ae.push(T.name)}),D=ue.body[0].expression.body.range,new Function(ae,"BlockStatement"===ue.body[0].expression.body.type?se.slice(D[0]+1,D[1]-1):"return "+se.slice(D[0],D[1]))},predicate:function Ve(ve){return"[object Function]"===Object.prototype.toString.call(ve)},represent:function et(ve){return ve.toString()}})},632:(Yt,Tn,De)=>{"use strict";var rt=De(647);Yt.exports=new rt("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:function Oe(et){if(null===et||0===et.length)return!1;var Ve=et,ve=/\/([gim]*)$/.exec(et),se="";return!("/"===Ve[0]&&(ve&&(se=ve[1]),se.length>3||"/"!==Ve[Ve.length-se.length-1]))},construct:function dt(et){var Ve=et,ve=/\/([gim]*)$/.exec(et),se="";return"/"===Ve[0]&&(ve&&(se=ve[1]),Ve=Ve.slice(1,Ve.length-se.length-1)),new RegExp(Ve,se)},predicate:function _e(et){return"[object RegExp]"===Object.prototype.toString.call(et)},represent:function Ge(et){var Ve="/"+et.source+"/";return et.global&&(Ve+="g"),et.multiline&&(Ve+="m"),et.ignoreCase&&(Ve+="i"),Ve}})},771:(Yt,Tn,De)=>{"use strict";var rt=De(647);Yt.exports=new rt("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:function Oe(){return!0},construct:function dt(){},predicate:function _e(et){return typeof et>"u"},represent:function Ge(){return""}})},71:(Yt,Tn,De)=>{"use strict";var rt=De(647);Yt.exports=new rt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(Oe){return null!==Oe?Oe:{}}})},996:(Yt,Tn,De)=>{"use strict";var rt=De(647);Yt.exports=new rt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function Oe(dt){return"<<"===dt||null===dt}})},568:(Yt,Tn,De)=>{"use strict";var rt=De(647);Yt.exports=new rt("tag:yaml.org,2002:null",{kind:"scalar",resolve:function Oe(_e){if(null===_e)return!0;var et=_e.length;return 1===et&&"~"===_e||4===et&&("null"===_e||"Null"===_e||"NULL"===_e)},construct:function dt(){return null},predicate:function Ge(_e){return null===_e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},166:(Yt,Tn,De)=>{"use strict";var rt=De(647),Oe=Object.prototype.hasOwnProperty,dt=Object.prototype.toString;Yt.exports=new rt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function Ge(et){if(null===et)return!0;var ve,se,ue,ae,D,Ve=[],T=et;for(ve=0,se=T.length;ve{"use strict";var rt=De(647),Oe=Object.prototype.toString;Yt.exports=new rt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function dt(_e){if(null===_e)return!0;var et,Ve,ve,se,ue,ae=_e;for(ue=new Array(ae.length),et=0,Ve=ae.length;et{"use strict";var rt=De(647);Yt.exports=new rt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(Oe){return null!==Oe?Oe:[]}})},738:(Yt,Tn,De)=>{"use strict";var rt=De(647),Oe=Object.prototype.hasOwnProperty;Yt.exports=new rt("tag:yaml.org,2002:set",{kind:"mapping",resolve:function dt(_e){if(null===_e)return!0;var et,Ve=_e;for(et in Ve)if(Oe.call(Ve,et)&&null!==Ve[et])return!1;return!0},construct:function Ge(_e){return null!==_e?_e:{}}})},464:(Yt,Tn,De)=>{"use strict";var rt=De(647);Yt.exports=new rt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(Oe){return null!==Oe?Oe:""}})},934:(Yt,Tn,De)=>{"use strict";var rt=De(647),Oe=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),dt=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");Yt.exports=new rt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function Ge(Ve){return null!==Ve&&(null!==Oe.exec(Ve)||null!==dt.exec(Ve))},construct:function _e(Ve){var ve,se,ue,ae,D,T,O,jt,te=0,Me=null;if(null===(ve=Oe.exec(Ve))&&(ve=dt.exec(Ve)),null===ve)throw new Error("Date resolve error");if(se=+ve[1],ue=+ve[2]-1,ae=+ve[3],!ve[4])return new Date(Date.UTC(se,ue,ae));if(D=+ve[4],T=+ve[5],O=+ve[6],ve[7]){for(te=ve[7].slice(0,3);te.length<3;)te+="0";te=+te}return ve[9]&&(Me=6e4*(60*+ve[10]+ +(ve[11]||0)),"-"===ve[9]&&(Me=-Me)),jt=new Date(Date.UTC(se,ue,ae,D,T,O,te)),Me&&jt.setTime(jt.getTime()-Me),jt},instanceOf:Date,represent:function et(Ve){return Ve.toISOString()}})}},Yt=>{Yt(Yt.s=440)}]); \ No newline at end of file diff --git a/console/ui/dist/prod/runtime.72fa9d749641f9d8.js b/console/ui/dist/prod/runtime.72fa9d749641f9d8.js new file mode 100644 index 000000000..ce1bf2cd5 --- /dev/null +++ b/console/ui/dist/prod/runtime.72fa9d749641f9d8.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,v={},p={};function n(e){var f=p[e];if(void 0!==f)return f.exports;var r=p[e]={exports:{}};return v[e].call(r.exports,r,r.exports,n),r.exports}n.m=v,e=[],n.O=(f,r,o,l)=>{if(!r){var c=1/0;for(a=0;a=l)&&Object.keys(n.O).every(h=>n.O[h](r[u]))?r.splice(u--,1):(t=!1,l0&&e[a-1][2]>l;a--)e[a]=e[a-1];e[a]=[r,o,l]},n.o=(e,f)=>Object.prototype.hasOwnProperty.call(e,f),(()=>{var e={666:0};n.O.j=o=>0===e[o];var f=(o,l)=>{var u,s,[a,c,t]=l,i=0;if(a.some(d=>0!==e[d])){for(u in c)n.o(c,u)&&(n.m[u]=c[u]);if(t)var _=t(n)}for(o&&o(l);i{"use strict";var e,d={},h={};function a(e){var i=h[e];if(void 0!==i)return i.exports;var r=h[e]={id:e,loaded:!1,exports:{}};return d[e].call(r.exports,r,r.exports,a),r.loaded=!0,r.exports}a.m=d,a.amdD=function(){throw new Error("define cannot be used indirect")},e=[],a.O=(i,r,t,f)=>{if(!r){var o=1/0;for(n=0;n=f)&&Object.keys(a.O).every(_=>a.O[_](r[l]))?r.splice(l--,1):(s=!1,f0&&e[n-1][2]>f;n--)e[n]=e[n-1];e[n]=[r,t,f]},a.o=(e,i)=>Object.prototype.hasOwnProperty.call(e,i),a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={666:0};a.O.j=t=>0===e[t];var i=(t,f)=>{var l,c,[n,o,s]=f,u=0;if(n.some(p=>0!==e[p])){for(l in o)a.o(o,l)&&(a.m[l]=o[l]);if(s)var v=s(a)}for(t&&t(f);u=6.0.0" } }, - "@angular-devkit/architect": { + "node_modules/@angular-devkit/architect": { "version": "0.1502.2", "resolved": "https://registry.npmjs.org/@angular-devkit/architect/-/architect-0.1502.2.tgz", "integrity": "sha512-+NE2IV+tuPgcBdC+1ac7eYIBqZDH0VskXTqbhHiRKySbK0vF3/cwTw6Ie07phl0xC1dxLXeRE52L5YwX5jERFQ==", "dev": true, - "requires": { + "dependencies": { "@angular-devkit/core": "15.2.2", "rxjs": "6.6.7" }, + "engines": { + "node": "^14.20.0 || ^16.13.0 || >=18.10.0", + "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", + "yarn": ">= 1.13.0" + } + }, + "node_modules/@angular-devkit/architect/node_modules/rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dev": true, "dependencies": { - "rxjs": { - "version": "6.6.7", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", - "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", - "dev": true, - "requires": { - "tslib": "^1.9.0" - } - }, - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - } + "tslib": "^1.9.0" + }, + "engines": { + "npm": ">=2.0.0" } }, - "@angular-devkit/build-angular": { + "node_modules/@angular-devkit/architect/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, + "node_modules/@angular-devkit/build-angular": { "version": "15.2.2", "resolved": "https://registry.npmjs.org/@angular-devkit/build-angular/-/build-angular-15.2.2.tgz", "integrity": "sha512-iSav72D66ZguuIg7yZz/VcbrITidRmjBUApu1GAVfXd4rYZhdWygR072LAsAUNnSDAGwmIICFzj86c8LxYOtzA==", "dev": true, - "requires": { + "dependencies": { "@ampproject/remapping": "2.2.0", "@angular-devkit/architect": "0.1502.2", "@angular-devkit/build-webpack": "0.1502.2", @@ -72,7 +125,6 @@ "copy-webpack-plugin": "11.0.0", "critters": "0.0.16", "css-loader": "6.7.3", - "esbuild": "0.17.8", "esbuild-wasm": "0.17.8", "glob": "8.1.0", "https-proxy-agent": "5.0.1", @@ -108,323 +160,447 @@ "webpack-merge": "5.8.0", "webpack-subresource-integrity": "5.1.0" }, - "dependencies": { - "@babel/generator": { - "version": "7.20.14", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.20.14.tgz", - "integrity": "sha512-AEmuXHdcD3A52HHXxaTmYlb8q/xMEhoRP67B3T4Oq7lbmSoqroMZzjnGj3+i1io3pdnF8iBYVu4Ilj+c4hBxYg==", - "dev": true, - "requires": { - "@babel/types": "^7.20.7", - "@jridgewell/gen-mapping": "^0.3.2", - "jsesc": "^2.5.1" - } - }, - "@jridgewell/gen-mapping": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", - "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", - "dev": true, - "requires": { - "@jridgewell/set-array": "^1.0.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" - } - }, - "agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "dev": true, - "requires": { - "debug": "4" - } - }, - "brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0" - } - }, - "esbuild": { - "version": "0.17.8", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.8.tgz", - "integrity": "sha512-g24ybC3fWhZddZK6R3uD2iF/RIPnRpwJAqLov6ouX3hMbY4+tKolP0VMF3zuIYCaXun+yHwS5IPQ91N2BT191g==", - "dev": true, - "optional": true, - "requires": { - "@esbuild/android-arm": "0.17.8", - "@esbuild/android-arm64": "0.17.8", - "@esbuild/android-x64": "0.17.8", - "@esbuild/darwin-arm64": "0.17.8", - "@esbuild/darwin-x64": "0.17.8", - "@esbuild/freebsd-arm64": "0.17.8", - "@esbuild/freebsd-x64": "0.17.8", - "@esbuild/linux-arm": "0.17.8", - "@esbuild/linux-arm64": "0.17.8", - "@esbuild/linux-ia32": "0.17.8", - "@esbuild/linux-loong64": "0.17.8", - "@esbuild/linux-mips64el": "0.17.8", - "@esbuild/linux-ppc64": "0.17.8", - "@esbuild/linux-riscv64": "0.17.8", - "@esbuild/linux-s390x": "0.17.8", - "@esbuild/linux-x64": "0.17.8", - "@esbuild/netbsd-x64": "0.17.8", - "@esbuild/openbsd-x64": "0.17.8", - "@esbuild/sunos-x64": "0.17.8", - "@esbuild/win32-arm64": "0.17.8", - "@esbuild/win32-ia32": "0.17.8", - "@esbuild/win32-x64": "0.17.8" - } - }, - "glob": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", - "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^5.0.1", - "once": "^1.3.0" - } - }, - "https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", - "dev": true, - "requires": { - "agent-base": "6", - "debug": "4" - } - }, - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "minimatch": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", - "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", - "dev": true, - "requires": { - "brace-expansion": "^2.0.1" - } + "engines": { + "node": "^14.20.0 || ^16.13.0 || >=18.10.0", + "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", + "yarn": ">= 1.13.0" + }, + "optionalDependencies": { + "esbuild": "0.17.8" + }, + "peerDependencies": { + "@angular/compiler-cli": "^15.0.0", + "@angular/localize": "^15.0.0", + "@angular/platform-server": "^15.0.0", + "@angular/service-worker": "^15.0.0", + "karma": "^6.3.0", + "ng-packagr": "^15.0.0", + "protractor": "^7.0.0", + "tailwindcss": "^2.0.0 || ^3.0.0", + "typescript": ">=4.8.2 <5.0" + }, + "peerDependenciesMeta": { + "@angular/localize": { + "optional": true }, - "rxjs": { - "version": "6.6.7", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", - "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", - "dev": true, - "requires": { - "tslib": "^1.9.0" - }, - "dependencies": { - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - } - } + "@angular/platform-server": { + "optional": true }, - "semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } + "@angular/service-worker": { + "optional": true }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true + "karma": { + "optional": true }, - "source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dev": true, - "requires": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } + "ng-packagr": { + "optional": true }, - "tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==", - "dev": true + "protractor": { + "optional": true }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true + "tailwindcss": { + "optional": true } } }, - "@angular-devkit/build-webpack": { + "node_modules/@angular-devkit/build-angular/node_modules/@babel/generator": { + "version": "7.20.14", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.20.14.tgz", + "integrity": "sha512-AEmuXHdcD3A52HHXxaTmYlb8q/xMEhoRP67B3T4Oq7lbmSoqroMZzjnGj3+i1io3pdnF8iBYVu4Ilj+c4hBxYg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.20.7", + "@jridgewell/gen-mapping": "^0.3.2", + "jsesc": "^2.5.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/@jridgewell/gen-mapping": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", + "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", + "dev": true, + "dependencies": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "dev": true, + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/esbuild": { + "version": "0.17.8", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.8.tgz", + "integrity": "sha512-g24ybC3fWhZddZK6R3uD2iF/RIPnRpwJAqLov6ouX3hMbY4+tKolP0VMF3zuIYCaXun+yHwS5IPQ91N2BT191g==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/android-arm": "0.17.8", + "@esbuild/android-arm64": "0.17.8", + "@esbuild/android-x64": "0.17.8", + "@esbuild/darwin-arm64": "0.17.8", + "@esbuild/darwin-x64": "0.17.8", + "@esbuild/freebsd-arm64": "0.17.8", + "@esbuild/freebsd-x64": "0.17.8", + "@esbuild/linux-arm": "0.17.8", + "@esbuild/linux-arm64": "0.17.8", + "@esbuild/linux-ia32": "0.17.8", + "@esbuild/linux-loong64": "0.17.8", + "@esbuild/linux-mips64el": "0.17.8", + "@esbuild/linux-ppc64": "0.17.8", + "@esbuild/linux-riscv64": "0.17.8", + "@esbuild/linux-s390x": "0.17.8", + "@esbuild/linux-x64": "0.17.8", + "@esbuild/netbsd-x64": "0.17.8", + "@esbuild/openbsd-x64": "0.17.8", + "@esbuild/sunos-x64": "0.17.8", + "@esbuild/win32-arm64": "0.17.8", + "@esbuild/win32-ia32": "0.17.8", + "@esbuild/win32-x64": "0.17.8" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/glob": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", + "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^5.0.1", + "once": "^1.3.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "dev": true, + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dev": true, + "dependencies": { + "tslib": "^1.9.0" + }, + "engines": { + "npm": ">=2.0.0" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/rxjs/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, + "node_modules/@angular-devkit/build-angular/node_modules/semver": { + "version": "7.3.8", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", + "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/@angular-devkit/build-angular/node_modules/tslib": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", + "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==", + "dev": true + }, + "node_modules/@angular-devkit/build-angular/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/@angular-devkit/build-webpack": { "version": "0.1502.2", "resolved": "https://registry.npmjs.org/@angular-devkit/build-webpack/-/build-webpack-0.1502.2.tgz", "integrity": "sha512-y/K6mi4oYjxdSuktdI/HznfxwWc2U8d6SJHdQeoPA6TRsBbWjEk1gcOt3f54PIsExLiDe6Oq1KjbfLTpNSu0kA==", "dev": true, - "requires": { + "dependencies": { "@angular-devkit/architect": "0.1502.2", "rxjs": "6.6.7" }, + "engines": { + "node": "^14.20.0 || ^16.13.0 || >=18.10.0", + "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", + "yarn": ">= 1.13.0" + }, + "peerDependencies": { + "webpack": "^5.30.0", + "webpack-dev-server": "^4.0.0" + } + }, + "node_modules/@angular-devkit/build-webpack/node_modules/rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dev": true, "dependencies": { - "rxjs": { - "version": "6.6.7", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", - "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", - "dev": true, - "requires": { - "tslib": "^1.9.0" - } - }, - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - } + "tslib": "^1.9.0" + }, + "engines": { + "npm": ">=2.0.0" } }, - "@angular-devkit/core": { + "node_modules/@angular-devkit/build-webpack/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, + "node_modules/@angular-devkit/core": { "version": "15.2.2", "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-15.2.2.tgz", "integrity": "sha512-YPwDSldpVcuSJuIkXy5iRzaPA78ySXKc80OicHR6XtMsrHlwY7DuxQoSWr+ih9LAqpeeBz9ECMalztwohdy0MA==", "dev": true, - "requires": { + "dependencies": { "ajv": "8.12.0", "ajv-formats": "2.1.1", "jsonc-parser": "3.2.0", "rxjs": "6.6.7", "source-map": "0.7.4" }, - "dependencies": { - "ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - } - }, - "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true - }, - "rxjs": { - "version": "6.6.7", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", - "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", - "dev": true, - "requires": { - "tslib": "^1.9.0" - } - }, - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true + "engines": { + "node": "^14.20.0 || ^16.13.0 || >=18.10.0", + "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", + "yarn": ">= 1.13.0" + }, + "peerDependencies": { + "chokidar": "^3.5.2" + }, + "peerDependenciesMeta": { + "chokidar": { + "optional": true } } }, - "@angular-devkit/schematics": { + "node_modules/@angular-devkit/core/node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/@angular-devkit/core/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "node_modules/@angular-devkit/core/node_modules/rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dev": true, + "dependencies": { + "tslib": "^1.9.0" + }, + "engines": { + "npm": ">=2.0.0" + } + }, + "node_modules/@angular-devkit/core/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, + "node_modules/@angular-devkit/schematics": { "version": "15.2.2", "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-15.2.2.tgz", "integrity": "sha512-i1yQzzv1bJtVrhWPixdXg61nkR/mO5/mQ6SA8rq9t0NAjs4W08MBZ6TUspPvt4iLy9+W6pImW45tUmnfkdhhdQ==", "dev": true, - "requires": { + "dependencies": { "@angular-devkit/core": "15.2.2", "jsonc-parser": "3.2.0", "magic-string": "0.29.0", "ora": "5.4.1", "rxjs": "6.6.7" }, + "engines": { + "node": "^14.20.0 || ^16.13.0 || >=18.10.0", + "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", + "yarn": ">= 1.13.0" + } + }, + "node_modules/@angular-devkit/schematics/node_modules/rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dev": true, "dependencies": { - "rxjs": { - "version": "6.6.7", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", - "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", - "dev": true, - "requires": { - "tslib": "^1.9.0" - } - }, - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - } + "tslib": "^1.9.0" + }, + "engines": { + "npm": ">=2.0.0" } }, - "@angular/animations": { + "node_modules/@angular-devkit/schematics/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, + "node_modules/@angular/animations": { "version": "15.2.2", "resolved": "https://registry.npmjs.org/@angular/animations/-/animations-15.2.2.tgz", "integrity": "sha512-2XYJn+my4Gf02QAziO+WJJLOQyw0Ao79xAp6IWj/rUOCxNDlRPY3TwoMqLZVtjSmWxSdmx/fPqd393vPawrPLg==", - "requires": { + "dependencies": { "tslib": "^2.3.0" }, - "dependencies": { - "tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" - } + "engines": { + "node": "^14.20.0 || ^16.13.0 || >=18.10.0" + }, + "peerDependencies": { + "@angular/core": "15.2.2" } }, - "@angular/cdk": { + "node_modules/@angular/animations/node_modules/tslib": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", + "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" + }, + "node_modules/@angular/cdk": { "version": "14.2.7", "resolved": "https://registry.npmjs.org/@angular/cdk/-/cdk-14.2.7.tgz", "integrity": "sha512-/tEsYaUbDSnfEmKVvAMramIptmhI67O+9STjOV0i+74XR2NospeK0fkbywIANu1n3w6AHGMotvRWJrjmbCElFg==", - "requires": { - "parse5": "^5.0.0", + "dependencies": { "tslib": "^2.3.0" }, - "dependencies": { - "parse5": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-5.1.1.tgz", - "integrity": "sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug==", - "optional": true - }, - "tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" - } + "optionalDependencies": { + "parse5": "^5.0.0" + }, + "peerDependencies": { + "@angular/common": "^14.0.0 || ^15.0.0", + "@angular/core": "^14.0.0 || ^15.0.0", + "rxjs": "^6.5.3 || ^7.4.0" } }, - "@angular/cli": { + "node_modules/@angular/cdk/node_modules/parse5": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-5.1.1.tgz", + "integrity": "sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug==", + "optional": true + }, + "node_modules/@angular/cdk/node_modules/tslib": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", + "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" + }, + "node_modules/@angular/cli": { "version": "15.2.2", "resolved": "https://registry.npmjs.org/@angular/cli/-/cli-15.2.2.tgz", "integrity": "sha512-r0VrQ+3CHp/y6GHzWDD8CPRqtAuV2iUZ1pbl4AiCnjAlUpPBXJMkJ2kzFn6rTlMoqPeFBnjyhTWyL/azi7GEcw==", "dev": true, - "requires": { + "dependencies": { "@angular-devkit/architect": "0.1502.2", "@angular-devkit/core": "15.2.2", "@angular-devkit/schematics": "15.2.2", @@ -444,396 +620,542 @@ "symbol-observable": "4.0.0", "yargs": "17.6.2" }, - "dependencies": { - "ini": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/ini/-/ini-3.0.1.tgz", - "integrity": "sha512-it4HyVAUTKBc6m8e1iXWvXSTdndF7HbdN713+kvLrymxTaU4AUBWrJ4vEooP+V7fexnVD3LKcBshjGGPefSMUQ==", - "dev": true - }, - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true - }, - "resolve": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", - "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", - "dev": true, - "requires": { - "is-core-module": "^2.9.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - } - }, - "semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - }, - "y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "dev": true - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "yargs": { - "version": "17.6.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.6.2.tgz", - "integrity": "sha512-1/9UrdHjDZc0eOU0HxOHoS78C69UD3JRMvzlJ7S79S2nTaWRA/whGCTV8o9e/N/1Va9YIV7Q4sOxD8VV4pCWOw==", - "dev": true, - "requires": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" - } - } + "bin": { + "ng": "bin/ng.js" + }, + "engines": { + "node": "^14.20.0 || ^16.13.0 || >=18.10.0", + "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", + "yarn": ">= 1.13.0" } }, - "@angular/common": { - "version": "15.2.2", - "resolved": "https://registry.npmjs.org/@angular/common/-/common-15.2.2.tgz", - "integrity": "sha512-407yHyMR5CGFWjZPeiBNHa4UKwOTTMCNn7gmfi243AxIaPjIHwCDvIOx2w5OfrV+OUKSMIuqMRHLP4eUYkJDjA==", - "requires": { - "tslib": "^2.3.0" - }, - "dependencies": { - "tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" - } + "node_modules/@angular/cli/node_modules/ini": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ini/-/ini-3.0.1.tgz", + "integrity": "sha512-it4HyVAUTKBc6m8e1iXWvXSTdndF7HbdN713+kvLrymxTaU4AUBWrJ4vEooP+V7fexnVD3LKcBshjGGPefSMUQ==", + "dev": true, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } }, - "@angular/compiler": { - "version": "15.2.2", - "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-15.2.2.tgz", - "integrity": "sha512-Zv2XpyOoiRDzTxkB5YaMx8egEf7hkVYkCSPvES5IXAlcs4lA1SdWHiNk7zstGMjqQlMt6RNgN8E+2BYrOJh6DQ==", - "requires": { - "tslib": "^2.3.0" - }, + "node_modules/@angular/cli/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, "dependencies": { - "tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" - } + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" } }, - "@angular/compiler-cli": { - "version": "15.2.2", - "resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-15.2.2.tgz", - "integrity": "sha512-tS4RrqA0JI37rsqtTjKqkpP9pD21pG+Wxqki3X/w/tjISh7xuXCyG6vSbOsAjXAqkC8LwJN1S1IF1zp4F+mcLQ==", + "node_modules/@angular/cli/node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "node_modules/@angular/cli/node_modules/resolve": { + "version": "1.22.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", + "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", "dev": true, - "requires": { - "@babel/core": "7.19.3", - "@jridgewell/sourcemap-codec": "^1.4.14", - "chokidar": "^3.0.0", - "convert-source-map": "^1.5.1", - "dependency-graph": "^0.11.0", - "magic-string": "^0.27.0", - "reflect-metadata": "^0.1.2", - "semver": "^7.0.0", - "tslib": "^2.3.0", - "yargs": "^17.2.1" + "dependencies": { + "is-core-module": "^2.9.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/@angular/cli/node_modules/semver": { + "version": "7.3.8", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", + "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "dev": true, "dependencies": { - "@babel/code-frame": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz", - "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", - "dev": true, - "requires": { - "@babel/highlight": "^7.18.6" - } - }, - "@babel/core": { - "version": "7.19.3", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.19.3.tgz", - "integrity": "sha512-WneDJxdsjEvyKtXKsaBGbDeiyOjR5vYq4HcShxnIbG0qixpoHjI3MqeZM9NDvsojNCEBItQE4juOo/bU6e72gQ==", - "dev": true, - "requires": { - "@ampproject/remapping": "^2.1.0", - "@babel/code-frame": "^7.18.6", - "@babel/generator": "^7.19.3", - "@babel/helper-compilation-targets": "^7.19.3", - "@babel/helper-module-transforms": "^7.19.0", - "@babel/helpers": "^7.19.0", - "@babel/parser": "^7.19.3", - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.19.3", - "@babel/types": "^7.19.3", - "convert-source-map": "^1.7.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.1", - "semver": "^6.3.0" - }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } - } - }, - "@babel/helper-validator-identifier": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", - "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", - "dev": true - }, - "@babel/highlight": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", - "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", - "dev": true, - "requires": { - "@babel/helper-validator-identifier": "^7.18.6", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - } - }, - "magic-string": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.27.0.tgz", - "integrity": "sha512-8UnnX2PeRAPZuN12svgR9j7M1uWMovg/CEnIwIG0LFkXSJJe4PdfUGiTGl8V9bsBHFUtfVINcSyYxd7q+kx9fA==", - "dev": true, - "requires": { - "@jridgewell/sourcemap-codec": "^1.4.13" - } - }, - "tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==", - "dev": true + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@angular/cli/node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/@angular/cli/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/@angular/cli/node_modules/yargs": { + "version": "17.6.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.6.2.tgz", + "integrity": "sha512-1/9UrdHjDZc0eOU0HxOHoS78C69UD3JRMvzlJ7S79S2nTaWRA/whGCTV8o9e/N/1Va9YIV7Q4sOxD8VV4pCWOw==", + "dev": true, + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@angular/common": { + "version": "15.2.2", + "resolved": "https://registry.npmjs.org/@angular/common/-/common-15.2.2.tgz", + "integrity": "sha512-407yHyMR5CGFWjZPeiBNHa4UKwOTTMCNn7gmfi243AxIaPjIHwCDvIOx2w5OfrV+OUKSMIuqMRHLP4eUYkJDjA==", + "dependencies": { + "tslib": "^2.3.0" + }, + "engines": { + "node": "^14.20.0 || ^16.13.0 || >=18.10.0" + }, + "peerDependencies": { + "@angular/core": "15.2.2", + "rxjs": "^6.5.3 || ^7.4.0" + } + }, + "node_modules/@angular/common/node_modules/tslib": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", + "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" + }, + "node_modules/@angular/compiler": { + "version": "15.2.2", + "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-15.2.2.tgz", + "integrity": "sha512-Zv2XpyOoiRDzTxkB5YaMx8egEf7hkVYkCSPvES5IXAlcs4lA1SdWHiNk7zstGMjqQlMt6RNgN8E+2BYrOJh6DQ==", + "dependencies": { + "tslib": "^2.3.0" + }, + "engines": { + "node": "^14.20.0 || ^16.13.0 || >=18.10.0" + }, + "peerDependencies": { + "@angular/core": "15.2.2" + }, + "peerDependenciesMeta": { + "@angular/core": { + "optional": true } } }, - "@angular/core": { + "node_modules/@angular/compiler-cli": { + "version": "15.2.2", + "resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-15.2.2.tgz", + "integrity": "sha512-tS4RrqA0JI37rsqtTjKqkpP9pD21pG+Wxqki3X/w/tjISh7xuXCyG6vSbOsAjXAqkC8LwJN1S1IF1zp4F+mcLQ==", + "dependencies": { + "@babel/core": "7.19.3", + "@jridgewell/sourcemap-codec": "^1.4.14", + "chokidar": "^3.0.0", + "convert-source-map": "^1.5.1", + "dependency-graph": "^0.11.0", + "magic-string": "^0.27.0", + "reflect-metadata": "^0.1.2", + "semver": "^7.0.0", + "tslib": "^2.3.0", + "yargs": "^17.2.1" + }, + "bin": { + "ng-xi18n": "bundles/src/bin/ng_xi18n.js", + "ngc": "bundles/src/bin/ngc.js", + "ngcc": "bundles/ngcc/main-ngcc.js" + }, + "engines": { + "node": "^14.20.0 || ^16.13.0 || >=18.10.0" + }, + "peerDependencies": { + "@angular/compiler": "15.2.2", + "typescript": ">=4.8.2 <5.0" + } + }, + "node_modules/@angular/compiler-cli/node_modules/@babel/code-frame": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz", + "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", + "dependencies": { + "@babel/highlight": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@angular/compiler-cli/node_modules/@babel/core": { + "version": "7.19.3", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.19.3.tgz", + "integrity": "sha512-WneDJxdsjEvyKtXKsaBGbDeiyOjR5vYq4HcShxnIbG0qixpoHjI3MqeZM9NDvsojNCEBItQE4juOo/bU6e72gQ==", + "dependencies": { + "@ampproject/remapping": "^2.1.0", + "@babel/code-frame": "^7.18.6", + "@babel/generator": "^7.19.3", + "@babel/helper-compilation-targets": "^7.19.3", + "@babel/helper-module-transforms": "^7.19.0", + "@babel/helpers": "^7.19.0", + "@babel/parser": "^7.19.3", + "@babel/template": "^7.18.10", + "@babel/traverse": "^7.19.3", + "@babel/types": "^7.19.3", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.1", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@angular/compiler-cli/node_modules/@babel/core/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@angular/compiler-cli/node_modules/@babel/helper-validator-identifier": { + "version": "7.19.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", + "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@angular/compiler-cli/node_modules/@babel/highlight": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", + "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", + "dependencies": { + "@babel/helper-validator-identifier": "^7.18.6", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@angular/compiler-cli/node_modules/magic-string": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.27.0.tgz", + "integrity": "sha512-8UnnX2PeRAPZuN12svgR9j7M1uWMovg/CEnIwIG0LFkXSJJe4PdfUGiTGl8V9bsBHFUtfVINcSyYxd7q+kx9fA==", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.4.13" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@angular/compiler-cli/node_modules/tslib": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", + "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" + }, + "node_modules/@angular/compiler/node_modules/tslib": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", + "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" + }, + "node_modules/@angular/core": { "version": "15.2.2", "resolved": "https://registry.npmjs.org/@angular/core/-/core-15.2.2.tgz", "integrity": "sha512-Rn9LKeeryV0hVrOxlOPnQJdgUxbKdB8NByhptzB6XSzZ0ODx0ZN+iYVRLqu0Fu95zh5oSeYYU+2yT6+FIIX65w==", - "requires": { + "dependencies": { "tslib": "^2.3.0" }, - "dependencies": { - "tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" - } + "engines": { + "node": "^14.20.0 || ^16.13.0 || >=18.10.0" + }, + "peerDependencies": { + "rxjs": "^6.5.3 || ^7.4.0", + "zone.js": "~0.11.4 || ~0.12.0 || ~0.13.0" } }, - "@angular/forms": { + "node_modules/@angular/core/node_modules/tslib": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", + "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" + }, + "node_modules/@angular/forms": { "version": "15.2.2", "resolved": "https://registry.npmjs.org/@angular/forms/-/forms-15.2.2.tgz", "integrity": "sha512-X2cXhD8gQBn03RZJ5XD2mgf90vyeH2HABbNLelv3GCQRgn4SCTHM4cP1J9OCdX0r6cz+JBjz13fDChdWb624Mg==", - "requires": { + "dependencies": { "tslib": "^2.3.0" }, - "dependencies": { - "tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" - } + "engines": { + "node": "^14.20.0 || ^16.13.0 || >=18.10.0" + }, + "peerDependencies": { + "@angular/common": "15.2.2", + "@angular/core": "15.2.2", + "@angular/platform-browser": "15.2.2", + "rxjs": "^6.5.3 || ^7.4.0" } }, - "@angular/language-service": { + "node_modules/@angular/forms/node_modules/tslib": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", + "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" + }, + "node_modules/@angular/language-service": { "version": "15.2.2", "resolved": "https://registry.npmjs.org/@angular/language-service/-/language-service-15.2.2.tgz", "integrity": "sha512-U91MPkBULdvzYXeuuah+n6AUEJ335C0MRUrDGHS1XfD3QQd/+nvC2lgGz9g1qhW9iYO4SNKOtIFSsUAavHQdVQ==", - "dev": true + "dev": true, + "engines": { + "node": "^14.20.0 || ^16.13.0 || >=18.10.0" + } }, - "@angular/localize": { + "node_modules/@angular/localize": { "version": "15.2.2", "resolved": "https://registry.npmjs.org/@angular/localize/-/localize-15.2.2.tgz", "integrity": "sha512-n9k1BCYybkq8i9Nm4l9rESI29Us51pMpj4J7+FWjb80UyDf5PDAaEmkehVFPKG2lCVx+C+MrgU2jZ18dpxkRCA==", - "requires": { + "dependencies": { "@babel/core": "7.19.3", "glob": "8.1.0", "yargs": "^17.2.1" }, + "bin": { + "localize-extract": "tools/bundles/src/extract/cli.js", + "localize-migrate": "tools/bundles/src/migrate/cli.js", + "localize-translate": "tools/bundles/src/translate/cli.js" + }, + "engines": { + "node": "^14.20.0 || ^16.13.0 || >=18.10.0" + }, + "peerDependencies": { + "@angular/compiler": "15.2.2", + "@angular/compiler-cli": "15.2.2" + } + }, + "node_modules/@angular/localize/node_modules/@babel/code-frame": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz", + "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", "dependencies": { - "@babel/code-frame": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz", - "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", - "requires": { - "@babel/highlight": "^7.18.6" - } - }, - "@babel/core": { - "version": "7.19.3", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.19.3.tgz", - "integrity": "sha512-WneDJxdsjEvyKtXKsaBGbDeiyOjR5vYq4HcShxnIbG0qixpoHjI3MqeZM9NDvsojNCEBItQE4juOo/bU6e72gQ==", - "requires": { - "@ampproject/remapping": "^2.1.0", - "@babel/code-frame": "^7.18.6", - "@babel/generator": "^7.19.3", - "@babel/helper-compilation-targets": "^7.19.3", - "@babel/helper-module-transforms": "^7.19.0", - "@babel/helpers": "^7.19.0", - "@babel/parser": "^7.19.3", - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.19.3", - "@babel/types": "^7.19.3", - "convert-source-map": "^1.7.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.1", - "semver": "^6.3.0" - } - }, - "@babel/helper-validator-identifier": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", - "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==" - }, - "@babel/highlight": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", - "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", - "requires": { - "@babel/helper-validator-identifier": "^7.18.6", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - } - }, - "brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "requires": { - "balanced-match": "^1.0.0" - } - }, - "glob": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", - "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^5.0.1", - "once": "^1.3.0" - } - }, - "minimatch": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", - "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", - "requires": { - "brace-expansion": "^2.0.1" - } - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" - } + "@babel/highlight": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@angular/localize/node_modules/@babel/core": { + "version": "7.19.3", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.19.3.tgz", + "integrity": "sha512-WneDJxdsjEvyKtXKsaBGbDeiyOjR5vYq4HcShxnIbG0qixpoHjI3MqeZM9NDvsojNCEBItQE4juOo/bU6e72gQ==", + "dependencies": { + "@ampproject/remapping": "^2.1.0", + "@babel/code-frame": "^7.18.6", + "@babel/generator": "^7.19.3", + "@babel/helper-compilation-targets": "^7.19.3", + "@babel/helper-module-transforms": "^7.19.0", + "@babel/helpers": "^7.19.0", + "@babel/parser": "^7.19.3", + "@babel/template": "^7.18.10", + "@babel/traverse": "^7.19.3", + "@babel/types": "^7.19.3", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.1", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@angular/localize/node_modules/@babel/helper-validator-identifier": { + "version": "7.19.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", + "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@angular/localize/node_modules/@babel/highlight": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", + "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", + "dependencies": { + "@babel/helper-validator-identifier": "^7.18.6", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@angular/localize/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dependencies": { + "balanced-match": "^1.0.0" } }, - "@angular/platform-browser": { + "node_modules/@angular/localize/node_modules/glob": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", + "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^5.0.1", + "once": "^1.3.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@angular/localize/node_modules/minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@angular/localize/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@angular/platform-browser": { "version": "15.2.2", "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-15.2.2.tgz", "integrity": "sha512-kH1vUsFF7iRQ+DCQ/UkQtCWAzXzTDRO1p40RMf2IzDduESMcMwyWtheZflOuL1l4ubMbLitQiL846Hj/4CUl4g==", - "requires": { + "dependencies": { "tslib": "^2.3.0" }, - "dependencies": { - "tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" + "engines": { + "node": "^14.20.0 || ^16.13.0 || >=18.10.0" + }, + "peerDependencies": { + "@angular/animations": "15.2.2", + "@angular/common": "15.2.2", + "@angular/core": "15.2.2" + }, + "peerDependenciesMeta": { + "@angular/animations": { + "optional": true } } }, - "@angular/platform-browser-dynamic": { + "node_modules/@angular/platform-browser-dynamic": { "version": "15.2.2", "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-15.2.2.tgz", "integrity": "sha512-kYn57NkjOMkLHrWyZiqwfHUg4Td5hCrq9kADJRimbgSKusi9yHN7Whkd5HhySpF4yZU15XXsJHnl1KvqGNtWOw==", - "requires": { + "dependencies": { "tslib": "^2.3.0" }, - "dependencies": { - "tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" - } + "engines": { + "node": "^14.20.0 || ^16.13.0 || >=18.10.0" + }, + "peerDependencies": { + "@angular/common": "15.2.2", + "@angular/compiler": "15.2.2", + "@angular/core": "15.2.2", + "@angular/platform-browser": "15.2.2" } }, - "@angular/router": { + "node_modules/@angular/platform-browser-dynamic/node_modules/tslib": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", + "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" + }, + "node_modules/@angular/platform-browser/node_modules/tslib": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", + "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" + }, + "node_modules/@angular/router": { "version": "15.2.2", "resolved": "https://registry.npmjs.org/@angular/router/-/router-15.2.2.tgz", "integrity": "sha512-Yo9l9ZEWkKERvc8Fu9R5NNmUWcOB8ic+MX4GDWYOlgAnK0ZoM1/m0G2OtKFNmLwTj9CMfDqE0n5QZPbLCvjR9w==", - "requires": { + "dependencies": { "tslib": "^2.3.0" }, - "dependencies": { - "tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" - } + "engines": { + "node": "^14.20.0 || ^16.13.0 || >=18.10.0" + }, + "peerDependencies": { + "@angular/common": "15.2.2", + "@angular/core": "15.2.2", + "@angular/platform-browser": "15.2.2", + "rxjs": "^6.5.3 || ^7.4.0" } }, - "@assemblyscript/loader": { + "node_modules/@angular/router/node_modules/tslib": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", + "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" + }, + "node_modules/@assemblyscript/loader": { "version": "0.10.1", "resolved": "https://registry.npmjs.org/@assemblyscript/loader/-/loader-0.10.1.tgz", "integrity": "sha512-H71nDOOL8Y7kWRLqf6Sums+01Q5msqBW2KhDUTemh1tvY04eSkSXrK0uj/4mmY0Xr16/3zyZmsrxN7CKuRbNRg==", "dev": true }, - "@babel/code-frame": { + "node_modules/@babel/code-frame": { "version": "7.10.4", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.4.tgz", "integrity": "sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg==", "dev": true, - "requires": { + "dependencies": { "@babel/highlight": "^7.10.4" } }, - "@babel/compat-data": { + "node_modules/@babel/compat-data": { "version": "7.21.0", "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.21.0.tgz", - "integrity": "sha512-gMuZsmsgxk/ENC3O/fRw5QY8A9/uxQbbCEypnLIiYYc/qVJtEV7ouxC3EllIIwNzMqAQee5tanFabWsUOutS7g==" + "integrity": "sha512-gMuZsmsgxk/ENC3O/fRw5QY8A9/uxQbbCEypnLIiYYc/qVJtEV7ouxC3EllIIwNzMqAQee5tanFabWsUOutS7g==", + "engines": { + "node": ">=6.9.0" + } }, - "@babel/core": { + "node_modules/@babel/core": { "version": "7.20.12", "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.20.12.tgz", "integrity": "sha512-XsMfHovsUYHFMdrIHkZphTN/2Hzzi78R08NuHfDBehym2VsPDL6Zn/JAD/JQdnRvbSsbQc4mVaU1m6JgtTEElg==", - "dev": true, - "requires": { + "dependencies": { "@ampproject/remapping": "^2.1.0", "@babel/code-frame": "^7.18.6", "@babel/generator": "^7.20.7", @@ -850,108 +1172,138 @@ "json5": "^2.2.2", "semver": "^6.3.0" }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/core/node_modules/@babel/code-frame": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz", + "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", "dependencies": { - "@babel/code-frame": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz", - "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", - "dev": true, - "requires": { - "@babel/highlight": "^7.18.6" - } - }, - "@babel/helper-validator-identifier": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", - "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", - "dev": true - }, - "@babel/highlight": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", - "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", - "dev": true, - "requires": { - "@babel/helper-validator-identifier": "^7.18.6", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - } - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } + "@babel/highlight": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core/node_modules/@babel/helper-validator-identifier": { + "version": "7.19.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", + "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", + "engines": { + "node": ">=6.9.0" } }, - "@babel/generator": { + "node_modules/@babel/core/node_modules/@babel/highlight": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", + "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", + "dependencies": { + "@babel/helper-validator-identifier": "^7.18.6", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/generator": { "version": "7.21.1", "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.21.1.tgz", "integrity": "sha512-1lT45bAYlQhFn/BHivJs43AiW2rg3/UbLyShGfF3C0KmHvO5fSghWd5kBJy30kpRRucGzXStvnnCFniCR2kXAA==", - "requires": { + "dependencies": { "@babel/types": "^7.21.0", "@jridgewell/gen-mapping": "^0.3.2", "@jridgewell/trace-mapping": "^0.3.17", "jsesc": "^2.5.1" }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/generator/node_modules/@jridgewell/gen-mapping": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", + "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", "dependencies": { - "@jridgewell/gen-mapping": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", - "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", - "requires": { - "@jridgewell/set-array": "^1.0.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" - } - } + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" } }, - "@babel/helper-annotate-as-pure": { + "node_modules/@babel/helper-annotate-as-pure": { "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz", "integrity": "sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==", "dev": true, - "requires": { + "dependencies": { "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-builder-binary-assignment-operator-visitor": { + "node_modules/@babel/helper-builder-binary-assignment-operator-visitor": { "version": "7.18.9", "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.18.9.tgz", "integrity": "sha512-yFQ0YCHoIqarl8BCRwBL8ulYUaZpz3bNsA7oFepAzee+8/+ImtADXNOmO5vJvsPff3qi+hvpkY/NYBTrBQgdNw==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-explode-assignable-expression": "^7.18.6", "@babel/types": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-compilation-targets": { + "node_modules/@babel/helper-compilation-targets": { "version": "7.20.7", "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.20.7.tgz", "integrity": "sha512-4tGORmfQcrc+bvrjb5y3dG9Mx1IOZjsHqQVUz7XCNHO+iTmqxWnVg3KRygjGmpRLJGdQSKuvFinbIb0CnZwHAQ==", - "requires": { + "dependencies": { "@babel/compat-data": "^7.20.5", "@babel/helper-validator-option": "^7.18.6", "browserslist": "^4.21.3", "lru-cache": "^5.1.1", "semver": "^6.3.0" }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" - } + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, - "@babel/helper-create-class-features-plugin": { + "node_modules/@babel/helper-compilation-targets/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-create-class-features-plugin": { "version": "7.21.0", "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.21.0.tgz", "integrity": "sha512-Q8wNiMIdwsv5la5SPxNYzzkPnjgC0Sy0i7jLkVOCdllu/xcVNkr3TeZzbHBJrj+XXRqzX5uCyCoV9eu6xUG7KQ==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-annotate-as-pure": "^7.18.6", "@babel/helper-environment-visitor": "^7.18.9", "@babel/helper-function-name": "^7.21.0", @@ -960,24 +1312,36 @@ "@babel/helper-replace-supers": "^7.20.7", "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", "@babel/helper-split-export-declaration": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, - "@babel/helper-create-regexp-features-plugin": { + "node_modules/@babel/helper-create-regexp-features-plugin": { "version": "7.21.0", "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.21.0.tgz", "integrity": "sha512-N+LaFW/auRSWdx7SHD/HiARwXQju1vXTW4fKr4u5SgBUTm51OKEjKgj+cs00ggW3kEvNqwErnlwuq7Y3xBe4eg==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-annotate-as-pure": "^7.18.6", "regexpu-core": "^5.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, - "@babel/helper-define-polyfill-provider": { + "node_modules/@babel/helper-define-polyfill-provider": { "version": "0.3.3", "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.3.3.tgz", "integrity": "sha512-z5aQKU4IzbqCC1XH0nAqfsFLMVSo22SBKUc0BxGrLkolTdPTructy0ToNnlO2zA4j9Q/7pjMZf0DSY+DSTYzww==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-compilation-targets": "^7.17.7", "@babel/helper-plugin-utils": "^7.16.7", "debug": "^4.1.1", @@ -985,68 +1349,90 @@ "resolve": "^1.14.2", "semver": "^6.1.2" }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } + "peerDependencies": { + "@babel/core": "^7.4.0-0" + } + }, + "node_modules/@babel/helper-define-polyfill-provider/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" } }, - "@babel/helper-environment-visitor": { + "node_modules/@babel/helper-environment-visitor": { "version": "7.18.9", "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz", - "integrity": "sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==" + "integrity": "sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==", + "engines": { + "node": ">=6.9.0" + } }, - "@babel/helper-explode-assignable-expression": { + "node_modules/@babel/helper-explode-assignable-expression": { "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.18.6.tgz", "integrity": "sha512-eyAYAsQmB80jNfg4baAtLeWAQHfHFiR483rzFK+BhETlGZaQC9bsfrugfXDCbRHLQbIA7U5NxhhOxN7p/dWIcg==", "dev": true, - "requires": { + "dependencies": { "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-function-name": { + "node_modules/@babel/helper-function-name": { "version": "7.21.0", "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.21.0.tgz", "integrity": "sha512-HfK1aMRanKHpxemaY2gqBmL04iAPOPRj7DxtNbiDOrJK+gdwkiNRVpCpUJYbUT+aZyemKN8brqTOxzCaG6ExRg==", - "requires": { + "dependencies": { "@babel/template": "^7.20.7", "@babel/types": "^7.21.0" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-hoist-variables": { + "node_modules/@babel/helper-hoist-variables": { "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz", "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==", - "requires": { + "dependencies": { "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-member-expression-to-functions": { + "node_modules/@babel/helper-member-expression-to-functions": { "version": "7.21.0", "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.21.0.tgz", "integrity": "sha512-Muu8cdZwNN6mRRNG6lAYErJ5X3bRevgYR2O8wN0yn7jJSnGDu6eG59RfT29JHxGUovyfrh6Pj0XzmR7drNVL3Q==", "dev": true, - "requires": { + "dependencies": { "@babel/types": "^7.21.0" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-module-imports": { + "node_modules/@babel/helper-module-imports": { "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz", "integrity": "sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==", - "requires": { + "dependencies": { "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-module-transforms": { + "node_modules/@babel/helper-module-transforms": { "version": "7.21.2", "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.21.2.tgz", "integrity": "sha512-79yj2AR4U/Oqq/WOV7Lx6hUjau1Zfo4cI+JLAVYeMV5XIlbOhmjEk5ulbTc9fMpmlojzZHkUUxAiK+UKn+hNQQ==", - "requires": { + "dependencies": { "@babel/helper-environment-visitor": "^7.18.9", "@babel/helper-module-imports": "^7.18.6", "@babel/helper-simple-access": "^7.20.2", @@ -1056,492 +1442,721 @@ "@babel/traverse": "^7.21.2", "@babel/types": "^7.21.2" }, - "dependencies": { - "@babel/helper-validator-identifier": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", - "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==" - } + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-optimise-call-expression": { + "node_modules/@babel/helper-module-transforms/node_modules/@babel/helper-validator-identifier": { + "version": "7.19.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", + "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-optimise-call-expression": { "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz", "integrity": "sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA==", "dev": true, - "requires": { + "dependencies": { "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-plugin-utils": { + "node_modules/@babel/helper-plugin-utils": { "version": "7.20.2", "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.20.2.tgz", "integrity": "sha512-8RvlJG2mj4huQ4pZ+rU9lqKi9ZKiRmuvGuM2HlWmkmgOhbs6zEAw6IEiJ5cQqGbDzGZOhwuOQNtZMi/ENLjZoQ==", - "dev": true + "dev": true, + "engines": { + "node": ">=6.9.0" + } }, - "@babel/helper-remap-async-to-generator": { + "node_modules/@babel/helper-remap-async-to-generator": { "version": "7.18.9", "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.18.9.tgz", "integrity": "sha512-dI7q50YKd8BAv3VEfgg7PS7yD3Rtbi2J1XMXaalXO0W0164hYLnh8zpjRS0mte9MfVp/tltvr/cfdXPvJr1opA==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-annotate-as-pure": "^7.18.6", "@babel/helper-environment-visitor": "^7.18.9", "@babel/helper-wrap-function": "^7.18.9", "@babel/types": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, - "@babel/helper-replace-supers": { + "node_modules/@babel/helper-replace-supers": { "version": "7.20.7", "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.20.7.tgz", "integrity": "sha512-vujDMtB6LVfNW13jhlCrp48QNslK6JXi7lQG736HVbHz/mbf4Dc7tIRh1Xf5C0rF7BP8iiSxGMCmY6Ci1ven3A==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-environment-visitor": "^7.18.9", "@babel/helper-member-expression-to-functions": "^7.20.7", "@babel/helper-optimise-call-expression": "^7.18.6", "@babel/template": "^7.20.7", "@babel/traverse": "^7.20.7", "@babel/types": "^7.20.7" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-simple-access": { + "node_modules/@babel/helper-simple-access": { "version": "7.20.2", "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.20.2.tgz", "integrity": "sha512-+0woI/WPq59IrqDYbVGfshjT5Dmk/nnbdpcF8SnMhhXObpTq2KNBdLFRFrkVdbDOyUmHBCxzm5FHV1rACIkIbA==", - "requires": { + "dependencies": { "@babel/types": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-skip-transparent-expression-wrappers": { + "node_modules/@babel/helper-skip-transparent-expression-wrappers": { "version": "7.20.0", "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.20.0.tgz", "integrity": "sha512-5y1JYeNKfvnT8sZcK9DVRtpTbGiomYIHviSP3OQWmDPU3DeH4a1ZlT/N2lyQ5P8egjcRaT/Y9aNqUxK0WsnIIg==", "dev": true, - "requires": { + "dependencies": { "@babel/types": "^7.20.0" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-split-export-declaration": { + "node_modules/@babel/helper-split-export-declaration": { "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz", "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==", - "requires": { + "dependencies": { "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-string-parser": { + "node_modules/@babel/helper-string-parser": { "version": "7.19.4", "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz", - "integrity": "sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw==" + "integrity": "sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw==", + "engines": { + "node": ">=6.9.0" + } }, - "@babel/helper-validator-identifier": { + "node_modules/@babel/helper-validator-identifier": { "version": "7.10.4", "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.4.tgz", "integrity": "sha512-3U9y+43hz7ZM+rzG24Qe2mufW5KhvFg/NhnNph+i9mgCtdTCtMJuI1TMkrIUiK7Ix4PYlRF9I5dhqaLYA/ADXw==", "dev": true }, - "@babel/helper-validator-option": { + "node_modules/@babel/helper-validator-option": { "version": "7.21.0", "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.21.0.tgz", - "integrity": "sha512-rmL/B8/f0mKS2baE9ZpyTcTavvEuWhTTW8amjzXNvYG4AwBsqTLikfXsEofsJEfKHf+HQVQbFOHy6o+4cnC/fQ==" + "integrity": "sha512-rmL/B8/f0mKS2baE9ZpyTcTavvEuWhTTW8amjzXNvYG4AwBsqTLikfXsEofsJEfKHf+HQVQbFOHy6o+4cnC/fQ==", + "engines": { + "node": ">=6.9.0" + } }, - "@babel/helper-wrap-function": { + "node_modules/@babel/helper-wrap-function": { "version": "7.20.5", "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.20.5.tgz", "integrity": "sha512-bYMxIWK5mh+TgXGVqAtnu5Yn1un+v8DDZtqyzKRLUzrh70Eal2O3aZ7aPYiMADO4uKlkzOiRiZ6GX5q3qxvW9Q==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-function-name": "^7.19.0", "@babel/template": "^7.18.10", "@babel/traverse": "^7.20.5", "@babel/types": "^7.20.5" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/helpers": { + "node_modules/@babel/helpers": { "version": "7.21.0", "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.21.0.tgz", "integrity": "sha512-XXve0CBtOW0pd7MRzzmoyuSj0e3SEzj8pgyFxnTT1NJZL38BD1MK7yYrm8yefRPIDvNNe14xR4FdbHwpInD4rA==", - "requires": { + "dependencies": { "@babel/template": "^7.20.7", "@babel/traverse": "^7.21.0", "@babel/types": "^7.21.0" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/highlight": { + "node_modules/@babel/highlight": { "version": "7.10.4", "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.4.tgz", "integrity": "sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-validator-identifier": "^7.10.4", "chalk": "^2.0.0", "js-tokens": "^4.0.0" } }, - "@babel/parser": { + "node_modules/@babel/parser": { "version": "7.21.2", "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.21.2.tgz", - "integrity": "sha512-URpaIJQwEkEC2T9Kn+Ai6Xe/02iNaVCuT/PtoRz3GPVJVDpPd7mLo+VddTbhCRU9TXqW5mSrQfXZyi8kDKOVpQ==" + "integrity": "sha512-URpaIJQwEkEC2T9Kn+Ai6Xe/02iNaVCuT/PtoRz3GPVJVDpPd7mLo+VddTbhCRU9TXqW5mSrQfXZyi8kDKOVpQ==", + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } }, - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { + "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.18.6.tgz", "integrity": "sha512-Dgxsyg54Fx1d4Nge8UnvTrED63vrwOdPmyvPzlNN/boaliRP54pm3pGzZD1SJUwrBA+Cs/xdG8kXX6Mn/RfISQ==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { + "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { "version": "7.20.7", "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.20.7.tgz", "integrity": "sha512-sbr9+wNE5aXMBBFBICk01tt7sBf2Oc9ikRFEcem/ZORup9IMUdNhW7/wVLEbbtlWOsEubJet46mHAL2C8+2jKQ==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.20.2", "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", "@babel/plugin-proposal-optional-chaining": "^7.20.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.13.0" } }, - "@babel/plugin-proposal-async-generator-functions": { + "node_modules/@babel/plugin-proposal-async-generator-functions": { "version": "7.20.7", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.20.7.tgz", "integrity": "sha512-xMbiLsn/8RK7Wq7VeVytytS2L6qE69bXPB10YCmMdDZbKF4okCqY74pI/jJQ/8U0b/F6NrT2+14b8/P9/3AMGA==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-environment-visitor": "^7.18.9", "@babel/helper-plugin-utils": "^7.20.2", "@babel/helper-remap-async-to-generator": "^7.18.9", "@babel/plugin-syntax-async-generators": "^7.8.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-proposal-class-properties": { + "node_modules/@babel/plugin-proposal-class-properties": { "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz", "integrity": "sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-create-class-features-plugin": "^7.18.6", "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-proposal-class-static-block": { + "node_modules/@babel/plugin-proposal-class-static-block": { "version": "7.21.0", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-static-block/-/plugin-proposal-class-static-block-7.21.0.tgz", "integrity": "sha512-XP5G9MWNUskFuP30IfFSEFB0Z6HzLIUcjYM4bYOPHXl7eiJ9HFv8tWj6TXTN5QODiEhDZAeI4hLok2iHFFV4hw==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-create-class-features-plugin": "^7.21.0", "@babel/helper-plugin-utils": "^7.20.2", "@babel/plugin-syntax-class-static-block": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.12.0" } }, - "@babel/plugin-proposal-dynamic-import": { + "node_modules/@babel/plugin-proposal-dynamic-import": { "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.18.6.tgz", "integrity": "sha512-1auuwmK+Rz13SJj36R+jqFPMJWyKEDd7lLSdOj4oJK0UTgGueSAtkrCvz9ewmgyU/P941Rv2fQwZJN8s6QruXw==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.18.6", "@babel/plugin-syntax-dynamic-import": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-proposal-export-namespace-from": { + "node_modules/@babel/plugin-proposal-export-namespace-from": { "version": "7.18.9", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.18.9.tgz", "integrity": "sha512-k1NtHyOMvlDDFeb9G5PhUXuGj8m/wiwojgQVEhJ/fsVsMCpLyOP4h0uGEjYJKrRI+EVPlb5Jk+Gt9P97lOGwtA==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.18.9", "@babel/plugin-syntax-export-namespace-from": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-proposal-json-strings": { + "node_modules/@babel/plugin-proposal-json-strings": { "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.18.6.tgz", "integrity": "sha512-lr1peyn9kOdbYc0xr0OdHTZ5FMqS6Di+H0Fz2I/JwMzGmzJETNeOFq2pBySw6X/KFL5EWDjlJuMsUGRFb8fQgQ==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.18.6", "@babel/plugin-syntax-json-strings": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-proposal-logical-assignment-operators": { + "node_modules/@babel/plugin-proposal-logical-assignment-operators": { "version": "7.20.7", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.20.7.tgz", "integrity": "sha512-y7C7cZgpMIjWlKE5T7eJwp+tnRYM89HmRvWM5EQuB5BoHEONjmQ8lSNmBUwOyy/GFRsohJED51YBF79hE1djug==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.20.2", "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-proposal-nullish-coalescing-operator": { + "node_modules/@babel/plugin-proposal-nullish-coalescing-operator": { "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.18.6.tgz", "integrity": "sha512-wQxQzxYeJqHcfppzBDnm1yAY0jSRkUXR2z8RePZYrKwMKgMlE8+Z6LUno+bd6LvbGh8Gltvy74+9pIYkr+XkKA==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.18.6", "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-proposal-numeric-separator": { + "node_modules/@babel/plugin-proposal-numeric-separator": { "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.18.6.tgz", "integrity": "sha512-ozlZFogPqoLm8WBr5Z8UckIoE4YQ5KESVcNudyXOR8uqIkliTEgJ3RoketfG6pmzLdeZF0H/wjE9/cCEitBl7Q==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.18.6", "@babel/plugin-syntax-numeric-separator": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-proposal-object-rest-spread": { + "node_modules/@babel/plugin-proposal-object-rest-spread": { "version": "7.20.7", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.20.7.tgz", "integrity": "sha512-d2S98yCiLxDVmBmE8UjGcfPvNEUbA1U5q5WxaWFUGRzJSVAZqm5W6MbPct0jxnegUZ0niLeNX+IOzEs7wYg9Dg==", "dev": true, - "requires": { + "dependencies": { "@babel/compat-data": "^7.20.5", "@babel/helper-compilation-targets": "^7.20.7", "@babel/helper-plugin-utils": "^7.20.2", "@babel/plugin-syntax-object-rest-spread": "^7.8.3", "@babel/plugin-transform-parameters": "^7.20.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-proposal-optional-catch-binding": { + "node_modules/@babel/plugin-proposal-optional-catch-binding": { "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.18.6.tgz", "integrity": "sha512-Q40HEhs9DJQyaZfUjjn6vE8Cv4GmMHCYuMGIWUnlxH6400VGxOuwWsPt4FxXxJkC/5eOzgn0z21M9gMT4MOhbw==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.18.6", "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-proposal-optional-chaining": { + "node_modules/@babel/plugin-proposal-optional-chaining": { "version": "7.21.0", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.21.0.tgz", "integrity": "sha512-p4zeefM72gpmEe2fkUr/OnOXpWEf8nAgk7ZYVqqfFiyIG7oFfVZcCrU64hWn5xp4tQ9LkV4bTIa5rD0KANpKNA==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.20.2", "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", "@babel/plugin-syntax-optional-chaining": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-proposal-private-methods": { + "node_modules/@babel/plugin-proposal-private-methods": { "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.18.6.tgz", "integrity": "sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-create-class-features-plugin": "^7.18.6", "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-proposal-private-property-in-object": { + "node_modules/@babel/plugin-proposal-private-property-in-object": { "version": "7.21.0", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0.tgz", "integrity": "sha512-ha4zfehbJjc5MmXBlHec1igel5TJXXLDDRbuJ4+XT2TJcyD9/V1919BA8gMvsdHcNMBy4WBUBiRb3nw/EQUtBw==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-annotate-as-pure": "^7.18.6", "@babel/helper-create-class-features-plugin": "^7.21.0", "@babel/helper-plugin-utils": "^7.20.2", "@babel/plugin-syntax-private-property-in-object": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-proposal-unicode-property-regex": { + "node_modules/@babel/plugin-proposal-unicode-property-regex": { "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.18.6.tgz", "integrity": "sha512-2BShG/d5yoZyXZfVePH91urL5wTG6ASZU9M4o03lKK8u8UW1y08OMttBSOADTcJrnPMpvDXRG3G8fyLh4ovs8w==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-create-regexp-features-plugin": "^7.18.6", "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-async-generators": { + "node_modules/@babel/plugin-syntax-async-generators": { "version": "7.8.4", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-class-properties": { + "node_modules/@babel/plugin-syntax-class-properties": { "version": "7.12.13", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-class-static-block": { + "node_modules/@babel/plugin-syntax-class-static-block": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-dynamic-import": { + "node_modules/@babel/plugin-syntax-dynamic-import": { "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-export-namespace-from": { + "node_modules/@babel/plugin-syntax-export-namespace-from": { "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-import-assertions": { + "node_modules/@babel/plugin-syntax-import-assertions": { "version": "7.20.0", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.20.0.tgz", "integrity": "sha512-IUh1vakzNoWalR8ch/areW7qFopR2AEw03JlG7BbrDqmQ4X3q9uuipQwSGrUn7oGiemKjtSLDhNtQHzMHr1JdQ==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.19.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-json-strings": { + "node_modules/@babel/plugin-syntax-json-strings": { "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-logical-assignment-operators": { + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { "version": "7.10.4", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-nullish-coalescing-operator": { + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-numeric-separator": { + "node_modules/@babel/plugin-syntax-numeric-separator": { "version": "7.10.4", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-object-rest-spread": { + "node_modules/@babel/plugin-syntax-object-rest-spread": { "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-optional-catch-binding": { + "node_modules/@babel/plugin-syntax-optional-catch-binding": { "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-optional-chaining": { + "node_modules/@babel/plugin-syntax-optional-chaining": { "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-private-property-in-object": { + "node_modules/@babel/plugin-syntax-private-property-in-object": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-top-level-await": { + "node_modules/@babel/plugin-syntax-top-level-await": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-arrow-functions": { + "node_modules/@babel/plugin-transform-arrow-functions": { "version": "7.20.7", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.20.7.tgz", "integrity": "sha512-3poA5E7dzDomxj9WXWwuD6A5F3kc7VXwIJO+E+J8qtDtS+pXPAhrgEyh+9GBwBgPq1Z+bB+/JD60lp5jsN7JPQ==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-async-to-generator": { + "node_modules/@babel/plugin-transform-async-to-generator": { "version": "7.20.7", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.20.7.tgz", "integrity": "sha512-Uo5gwHPT9vgnSXQxqGtpdufUiWp96gk7yiP4Mp5bm1QMkEmLXBO7PAGYbKoJ6DhAwiNkcHFBol/x5zZZkL/t0Q==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-module-imports": "^7.18.6", "@babel/helper-plugin-utils": "^7.20.2", "@babel/helper-remap-async-to-generator": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-block-scoped-functions": { + "node_modules/@babel/plugin-transform-block-scoped-functions": { "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.18.6.tgz", "integrity": "sha512-ExUcOqpPWnliRcPqves5HJcJOvHvIIWfuS4sroBUenPuMdmW+SMHDakmtS7qOo13sVppmUijqeTv7qqGsvURpQ==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-block-scoping": { + "node_modules/@babel/plugin-transform-block-scoping": { "version": "7.21.0", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.21.0.tgz", "integrity": "sha512-Mdrbunoh9SxwFZapeHVrwFmri16+oYotcZysSzhNIVDwIAb1UV+kvnxULSYq9J3/q5MDG+4X6w8QVgD1zhBXNQ==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-classes": { + "node_modules/@babel/plugin-transform-classes": { "version": "7.21.0", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.21.0.tgz", "integrity": "sha512-RZhbYTCEUAe6ntPehC4hlslPWosNHDox+vAs4On/mCLRLfoDVHf6hVEd7kuxr1RnHwJmxFfUM3cZiZRmPxJPXQ==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-annotate-as-pure": "^7.18.6", "@babel/helper-compilation-targets": "^7.20.7", "@babel/helper-environment-visitor": "^7.18.9", @@ -1551,217 +2166,344 @@ "@babel/helper-replace-supers": "^7.20.7", "@babel/helper-split-export-declaration": "^7.18.6", "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-computed-properties": { + "node_modules/@babel/plugin-transform-computed-properties": { "version": "7.20.7", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.20.7.tgz", "integrity": "sha512-Lz7MvBK6DTjElHAmfu6bfANzKcxpyNPeYBGEafyA6E5HtRpjpZwU+u7Qrgz/2OR0z+5TvKYbPdphfSaAcZBrYQ==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.20.2", "@babel/template": "^7.20.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-destructuring": { + "node_modules/@babel/plugin-transform-destructuring": { "version": "7.20.7", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.20.7.tgz", "integrity": "sha512-Xwg403sRrZb81IVB79ZPqNQME23yhugYVqgTxAhT99h485F4f+GMELFhhOsscDUB7HCswepKeCKLn/GZvUKoBA==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-dotall-regex": { + "node_modules/@babel/plugin-transform-dotall-regex": { "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.18.6.tgz", "integrity": "sha512-6S3jpun1eEbAxq7TdjLotAsl4WpQI9DxfkycRcKrjhQYzU87qpXdknpBg/e+TdcMehqGnLFi7tnFUBR02Vq6wg==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-create-regexp-features-plugin": "^7.18.6", "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-duplicate-keys": { + "node_modules/@babel/plugin-transform-duplicate-keys": { "version": "7.18.9", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.18.9.tgz", "integrity": "sha512-d2bmXCtZXYc59/0SanQKbiWINadaJXqtvIQIzd4+hNwkWBgyCd5F/2t1kXoUdvPMrxzPvhK6EMQRROxsue+mfw==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-exponentiation-operator": { + "node_modules/@babel/plugin-transform-exponentiation-operator": { "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.18.6.tgz", "integrity": "sha512-wzEtc0+2c88FVR34aQmiz56dxEkxr2g8DQb/KfaFa1JYXOFVsbhvAonFN6PwVWj++fKmku8NP80plJ5Et4wqHw==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-builder-binary-assignment-operator-visitor": "^7.18.6", "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-for-of": { + "node_modules/@babel/plugin-transform-for-of": { "version": "7.21.0", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.21.0.tgz", "integrity": "sha512-LlUYlydgDkKpIY7mcBWvyPPmMcOphEyYA27Ef4xpbh1IiDNLr0kZsos2nf92vz3IccvJI25QUwp86Eo5s6HmBQ==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-function-name": { + "node_modules/@babel/plugin-transform-function-name": { "version": "7.18.9", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.18.9.tgz", "integrity": "sha512-WvIBoRPaJQ5yVHzcnJFor7oS5Ls0PYixlTYE63lCj2RtdQEl15M68FXQlxnG6wdraJIXRdR7KI+hQ7q/9QjrCQ==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-compilation-targets": "^7.18.9", "@babel/helper-function-name": "^7.18.9", "@babel/helper-plugin-utils": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-literals": { + "node_modules/@babel/plugin-transform-literals": { "version": "7.18.9", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.18.9.tgz", "integrity": "sha512-IFQDSRoTPnrAIrI5zoZv73IFeZu2dhu6irxQjY9rNjTT53VmKg9fenjvoiOWOkJ6mm4jKVPtdMzBY98Fp4Z4cg==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-member-expression-literals": { + "node_modules/@babel/plugin-transform-member-expression-literals": { "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.18.6.tgz", "integrity": "sha512-qSF1ihLGO3q+/g48k85tUjD033C29TNTVB2paCwZPVmOsjn9pClvYYrM2VeJpBY2bcNkuny0YUyTNRyRxJ54KA==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-modules-amd": { + "node_modules/@babel/plugin-transform-modules-amd": { "version": "7.20.11", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.20.11.tgz", "integrity": "sha512-NuzCt5IIYOW0O30UvqktzHYR2ud5bOWbY0yaxWZ6G+aFzOMJvrs5YHNikrbdaT15+KNO31nPOy5Fim3ku6Zb5g==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-module-transforms": "^7.20.11", "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-modules-commonjs": { + "node_modules/@babel/plugin-transform-modules-commonjs": { "version": "7.21.2", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.21.2.tgz", "integrity": "sha512-Cln+Yy04Gxua7iPdj6nOV96smLGjpElir5YwzF0LBPKoPlLDNJePNlrGGaybAJkd0zKRnOVXOgizSqPYMNYkzA==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-module-transforms": "^7.21.2", "@babel/helper-plugin-utils": "^7.20.2", "@babel/helper-simple-access": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-modules-systemjs": { + "node_modules/@babel/plugin-transform-modules-systemjs": { "version": "7.20.11", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.20.11.tgz", "integrity": "sha512-vVu5g9BPQKSFEmvt2TA4Da5N+QVS66EX21d8uoOihC+OCpUoGvzVsXeqFdtAEfVa5BILAeFt+U7yVmLbQnAJmw==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-hoist-variables": "^7.18.6", "@babel/helper-module-transforms": "^7.20.11", "@babel/helper-plugin-utils": "^7.20.2", "@babel/helper-validator-identifier": "^7.19.1" }, - "dependencies": { - "@babel/helper-validator-identifier": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", - "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", - "dev": true - } + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-modules-umd": { + "node_modules/@babel/plugin-transform-modules-systemjs/node_modules/@babel/helper-validator-identifier": { + "version": "7.19.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", + "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/plugin-transform-modules-umd": { "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.18.6.tgz", "integrity": "sha512-dcegErExVeXcRqNtkRU/z8WlBLnvD4MRnHgNs3MytRO1Mn1sHRyhbcpYbVMGclAqOjdW+9cfkdZno9dFdfKLfQ==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-module-transforms": "^7.18.6", "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-named-capturing-groups-regex": { + "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { "version": "7.20.5", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.20.5.tgz", "integrity": "sha512-mOW4tTzi5iTLnw+78iEq3gr8Aoq4WNRGpmSlrogqaiCBoR1HFhpU4JkpQFOHfeYx3ReVIFWOQJS4aZBRvuZ6mA==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-create-regexp-features-plugin": "^7.20.5", "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, - "@babel/plugin-transform-new-target": { + "node_modules/@babel/plugin-transform-new-target": { "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.18.6.tgz", "integrity": "sha512-DjwFA/9Iu3Z+vrAn+8pBUGcjhxKguSMlsFqeCKbhb9BAV756v0krzVK04CRDi/4aqmk8BsHb4a/gFcaA5joXRw==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-object-super": { + "node_modules/@babel/plugin-transform-object-super": { "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.18.6.tgz", "integrity": "sha512-uvGz6zk+pZoS1aTZrOvrbj6Pp/kK2mp45t2B+bTDre2UgsZZ8EZLSJtUg7m/no0zOJUWgFONpB7Zv9W2tSaFlA==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.18.6", "@babel/helper-replace-supers": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-parameters": { + "node_modules/@babel/plugin-transform-parameters": { "version": "7.20.7", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.20.7.tgz", "integrity": "sha512-WiWBIkeHKVOSYPO0pWkxGPfKeWrCJyD3NJ53+Lrp/QMSZbsVPovrVl2aWZ19D/LTVnaDv5Ap7GJ/B2CTOZdrfA==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-property-literals": { + "node_modules/@babel/plugin-transform-property-literals": { "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.18.6.tgz", "integrity": "sha512-cYcs6qlgafTud3PAzrrRNbQtfpQ8+y/+M5tKmksS9+M1ckbH6kzY8MrexEM9mcA6JDsukE19iIRvAyYl463sMg==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-regenerator": { + "node_modules/@babel/plugin-transform-regenerator": { "version": "7.20.5", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.20.5.tgz", "integrity": "sha512-kW/oO7HPBtntbsahzQ0qSE3tFvkFwnbozz3NWFhLGqH75vLEg+sCGngLlhVkePlCs3Jv0dBBHDzCHxNiFAQKCQ==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.20.2", "regenerator-transform": "^0.15.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-reserved-words": { + "node_modules/@babel/plugin-transform-reserved-words": { "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.18.6.tgz", "integrity": "sha512-oX/4MyMoypzHjFrT1CdivfKZ+XvIPMFXwwxHp/r0Ddy2Vuomt4HDFGmft1TAY2yiTKiNSsh3kjBAzcM8kSdsjA==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-runtime": { + "node_modules/@babel/plugin-transform-runtime": { "version": "7.19.6", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.19.6.tgz", "integrity": "sha512-PRH37lz4JU156lYFW1p8OxE5i7d6Sl/zV58ooyr+q1J1lnQPyg5tIiXlIwNVhJaY4W3TmOtdc8jqdXQcB1v5Yw==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-module-imports": "^7.18.6", "@babel/helper-plugin-utils": "^7.19.0", "babel-plugin-polyfill-corejs2": "^0.3.3", @@ -1769,86 +2511,135 @@ "babel-plugin-polyfill-regenerator": "^0.4.1", "semver": "^6.3.0" }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-runtime/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" } }, - "@babel/plugin-transform-shorthand-properties": { + "node_modules/@babel/plugin-transform-shorthand-properties": { "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.18.6.tgz", "integrity": "sha512-eCLXXJqv8okzg86ywZJbRn19YJHU4XUa55oz2wbHhaQVn/MM+XhukiT7SYqp/7o00dg52Rj51Ny+Ecw4oyoygw==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-spread": { + "node_modules/@babel/plugin-transform-spread": { "version": "7.20.7", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.20.7.tgz", "integrity": "sha512-ewBbHQ+1U/VnH1fxltbJqDeWBU1oNLG8Dj11uIv3xVf7nrQu0bPGe5Rf716r7K5Qz+SqtAOVswoVunoiBtGhxw==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.20.2", "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-sticky-regex": { + "node_modules/@babel/plugin-transform-sticky-regex": { "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.18.6.tgz", "integrity": "sha512-kfiDrDQ+PBsQDO85yj1icueWMfGfJFKN1KCkndygtu/C9+XUfydLC8Iv5UYJqRwy4zk8EcplRxEOeLyjq1gm6Q==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-template-literals": { + "node_modules/@babel/plugin-transform-template-literals": { "version": "7.18.9", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.18.9.tgz", "integrity": "sha512-S8cOWfT82gTezpYOiVaGHrCbhlHgKhQt8XH5ES46P2XWmX92yisoZywf5km75wv5sYcXDUCLMmMxOLCtthDgMA==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-typeof-symbol": { + "node_modules/@babel/plugin-transform-typeof-symbol": { "version": "7.18.9", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.18.9.tgz", "integrity": "sha512-SRfwTtF11G2aemAZWivL7PD+C9z52v9EvMqH9BuYbabyPuKUvSWks3oCg6041pT925L4zVFqaVBeECwsmlguEw==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-unicode-escapes": { + "node_modules/@babel/plugin-transform-unicode-escapes": { "version": "7.18.10", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.18.10.tgz", "integrity": "sha512-kKAdAI+YzPgGY/ftStBFXTI1LZFju38rYThnfMykS+IXy8BVx+res7s2fxf1l8I35DV2T97ezo6+SGrXz6B3iQ==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-unicode-regex": { + "node_modules/@babel/plugin-transform-unicode-regex": { "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.18.6.tgz", "integrity": "sha512-gE7A6Lt7YLnNOL3Pb9BNeZvi+d8l7tcRrG4+pwJjK9hD2xX4mEvjlQW60G9EEmfXVYRPv9VRQcyegIVHCql/AA==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-create-regexp-features-plugin": "^7.18.6", "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/preset-env": { + "node_modules/@babel/preset-env": { "version": "7.20.2", "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.20.2.tgz", "integrity": "sha512-1G0efQEWR1EHkKvKHqbG+IN/QdgwfByUpM5V5QroDzGV2t3S/WXNQd693cHiHTlCFMpr9B6FkPFXDA2lQcKoDg==", "dev": true, - "requires": { + "dependencies": { "@babel/compat-data": "^7.20.1", "@babel/helper-compilation-targets": "^7.20.0", "@babel/helper-plugin-utils": "^7.20.2", @@ -1925,83 +2716,106 @@ "core-js-compat": "^3.25.1", "semver": "^6.3.0" }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-env/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" } }, - "@babel/preset-modules": { + "node_modules/@babel/preset-modules": { "version": "0.1.5", "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.5.tgz", "integrity": "sha512-A57th6YRG7oR3cq/yt/Y84MvGgE0eJG2F1JLhKuyG+jFxEgrd/HAMJatiFtmOiZurz+0DkrvbheCLaV5f2JfjA==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.0.0", "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", "@babel/plugin-transform-dotall-regex": "^7.4.4", "@babel/types": "^7.4.4", "esutils": "^2.0.2" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/regjsgen": { + "node_modules/@babel/regjsgen": { "version": "0.8.0", "resolved": "https://registry.npmjs.org/@babel/regjsgen/-/regjsgen-0.8.0.tgz", "integrity": "sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==", "dev": true }, - "@babel/runtime": { + "node_modules/@babel/runtime": { "version": "7.20.13", "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.20.13.tgz", "integrity": "sha512-gt3PKXs0DBoL9xCvOIIZ2NEqAGZqHjAnmVbfQtB620V0uReIQutpel14KcneZuer7UioY8ALKZ7iocavvzTNFA==", "dev": true, - "requires": { + "dependencies": { "regenerator-runtime": "^0.13.11" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/template": { + "node_modules/@babel/template": { "version": "7.20.7", "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.20.7.tgz", "integrity": "sha512-8SegXApWe6VoNw0r9JHpSteLKTpTiLZ4rMlGIm9JQ18KiCtyQiAMEazujAHrUS5flrcqYZa75ukev3P6QmUwUw==", - "requires": { + "dependencies": { "@babel/code-frame": "^7.18.6", "@babel/parser": "^7.20.7", "@babel/types": "^7.20.7" }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/template/node_modules/@babel/code-frame": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz", + "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", "dependencies": { - "@babel/code-frame": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz", - "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", - "requires": { - "@babel/highlight": "^7.18.6" - } - }, - "@babel/helper-validator-identifier": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", - "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==" - }, - "@babel/highlight": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", - "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", - "requires": { - "@babel/helper-validator-identifier": "^7.18.6", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - } - } + "@babel/highlight": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/template/node_modules/@babel/helper-validator-identifier": { + "version": "7.19.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", + "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/template/node_modules/@babel/highlight": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", + "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", + "dependencies": { + "@babel/helper-validator-identifier": "^7.18.6", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/traverse": { + "node_modules/@babel/traverse": { "version": "7.21.2", "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.21.2.tgz", "integrity": "sha512-ts5FFU/dSUPS13tv8XiEObDu9K+iagEKME9kAbaP7r0Y9KtZJZ+NGndDvWoRAYNpeWafbpFeki3q9QoMD6gxyw==", - "requires": { + "dependencies": { "@babel/code-frame": "^7.18.6", "@babel/generator": "^7.21.1", "@babel/helper-environment-visitor": "^7.18.9", @@ -2013,359 +2827,628 @@ "debug": "^4.1.0", "globals": "^11.1.0" }, - "dependencies": { - "@babel/code-frame": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz", - "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", - "requires": { - "@babel/highlight": "^7.18.6" - } - }, - "@babel/helper-validator-identifier": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", - "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==" - }, - "@babel/highlight": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", - "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", - "requires": { - "@babel/helper-validator-identifier": "^7.18.6", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - } - } + "engines": { + "node": ">=6.9.0" } }, - "@babel/types": { + "node_modules/@babel/traverse/node_modules/@babel/code-frame": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz", + "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", + "dependencies": { + "@babel/highlight": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse/node_modules/@babel/helper-validator-identifier": { + "version": "7.19.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", + "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse/node_modules/@babel/highlight": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", + "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", + "dependencies": { + "@babel/helper-validator-identifier": "^7.18.6", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { "version": "7.21.2", "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.21.2.tgz", "integrity": "sha512-3wRZSs7jiFaB8AjxiiD+VqN5DTG2iRvJGQ+qYFrs/654lg6kGTQWIOFjlBo5RaXuAZjBmP3+OQH4dmhqiiyYxw==", - "requires": { + "dependencies": { "@babel/helper-string-parser": "^7.19.4", "@babel/helper-validator-identifier": "^7.19.1", "to-fast-properties": "^2.0.0" }, - "dependencies": { - "@babel/helper-validator-identifier": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", - "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==" - } + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types/node_modules/@babel/helper-validator-identifier": { + "version": "7.19.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", + "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", + "engines": { + "node": ">=6.9.0" } }, - "@discoveryjs/json-ext": { + "node_modules/@discoveryjs/json-ext": { "version": "0.5.7", "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", "integrity": "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==", - "dev": true + "dev": true, + "engines": { + "node": ">=10.0.0" + } }, - "@esbuild/android-arm": { + "node_modules/@esbuild/android-arm": { "version": "0.17.8", "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.17.8.tgz", "integrity": "sha512-0/rb91GYKhrtbeglJXOhAv9RuYimgI8h623TplY2X+vA4EXnk3Zj1fXZreJ0J3OJJu1bwmb0W7g+2cT/d8/l/w==", + "cpu": [ + "arm" + ], "dev": true, - "optional": true + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } }, - "@esbuild/android-arm64": { + "node_modules/@esbuild/android-arm64": { "version": "0.17.8", "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.17.8.tgz", "integrity": "sha512-oa/N5j6v1svZQs7EIRPqR8f+Bf8g6HBDjD/xHC02radE/NjKHK7oQmtmLxPs1iVwYyvE+Kolo6lbpfEQ9xnhxQ==", + "cpu": [ + "arm64" + ], "dev": true, - "optional": true + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } }, - "@esbuild/android-x64": { + "node_modules/@esbuild/android-x64": { "version": "0.17.8", "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.17.8.tgz", "integrity": "sha512-bTliMLqD7pTOoPg4zZkXqCDuzIUguEWLpeqkNfC41ODBHwoUgZ2w5JBeYimv4oP6TDVocoYmEhZrCLQTrH89bg==", + "cpu": [ + "x64" + ], "dev": true, - "optional": true + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } }, - "@esbuild/darwin-arm64": { + "node_modules/@esbuild/darwin-arm64": { "version": "0.17.8", "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.17.8.tgz", "integrity": "sha512-ghAbV3ia2zybEefXRRm7+lx8J/rnupZT0gp9CaGy/3iolEXkJ6LYRq4IpQVI9zR97ID80KJVoUlo3LSeA/sMAg==", + "cpu": [ + "arm64" + ], "dev": true, - "optional": true + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } }, - "@esbuild/darwin-x64": { + "node_modules/@esbuild/darwin-x64": { "version": "0.17.8", "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.17.8.tgz", "integrity": "sha512-n5WOpyvZ9TIdv2V1K3/iIkkJeKmUpKaCTdun9buhGRWfH//osmUjlv4Z5mmWdPWind/VGcVxTHtLfLCOohsOXw==", + "cpu": [ + "x64" + ], "dev": true, - "optional": true + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } }, - "@esbuild/freebsd-arm64": { + "node_modules/@esbuild/freebsd-arm64": { "version": "0.17.8", "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.17.8.tgz", "integrity": "sha512-a/SATTaOhPIPFWvHZDoZYgxaZRVHn0/LX1fHLGfZ6C13JqFUZ3K6SMD6/HCtwOQ8HnsNaEeokdiDSFLuizqv5A==", + "cpu": [ + "arm64" + ], "dev": true, - "optional": true + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } }, - "@esbuild/freebsd-x64": { + "node_modules/@esbuild/freebsd-x64": { "version": "0.17.8", "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.17.8.tgz", "integrity": "sha512-xpFJb08dfXr5+rZc4E+ooZmayBW6R3q59daCpKZ/cDU96/kvDM+vkYzNeTJCGd8rtO6fHWMq5Rcv/1cY6p6/0Q==", + "cpu": [ + "x64" + ], "dev": true, - "optional": true + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } }, - "@esbuild/linux-arm": { + "node_modules/@esbuild/linux-arm": { "version": "0.17.8", "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.17.8.tgz", "integrity": "sha512-6Ij8gfuGszcEwZpi5jQIJCVIACLS8Tz2chnEBfYjlmMzVsfqBP1iGmHQPp7JSnZg5xxK9tjCc+pJ2WtAmPRFVA==", + "cpu": [ + "arm" + ], "dev": true, - "optional": true + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } }, - "@esbuild/linux-arm64": { + "node_modules/@esbuild/linux-arm64": { "version": "0.17.8", "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.17.8.tgz", "integrity": "sha512-v3iwDQuDljLTxpsqQDl3fl/yihjPAyOguxuloON9kFHYwopeJEf1BkDXODzYyXEI19gisEsQlG1bM65YqKSIww==", + "cpu": [ + "arm64" + ], "dev": true, - "optional": true + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } }, - "@esbuild/linux-ia32": { + "node_modules/@esbuild/linux-ia32": { "version": "0.17.8", "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.17.8.tgz", "integrity": "sha512-8svILYKhE5XetuFk/B6raFYIyIqydQi+GngEXJgdPdI7OMKUbSd7uzR02wSY4kb53xBrClLkhH4Xs8P61Q2BaA==", + "cpu": [ + "ia32" + ], "dev": true, - "optional": true + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } }, - "@esbuild/linux-loong64": { + "node_modules/@esbuild/linux-loong64": { "version": "0.17.8", "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.17.8.tgz", "integrity": "sha512-B6FyMeRJeV0NpyEOYlm5qtQfxbdlgmiGdD+QsipzKfFky0K5HW5Td6dyK3L3ypu1eY4kOmo7wW0o94SBqlqBSA==", + "cpu": [ + "loong64" + ], "dev": true, - "optional": true + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } }, - "@esbuild/linux-mips64el": { + "node_modules/@esbuild/linux-mips64el": { "version": "0.17.8", "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.17.8.tgz", "integrity": "sha512-CCb67RKahNobjm/eeEqeD/oJfJlrWyw29fgiyB6vcgyq97YAf3gCOuP6qMShYSPXgnlZe/i4a8WFHBw6N8bYAA==", + "cpu": [ + "mips64el" + ], "dev": true, - "optional": true + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } }, - "@esbuild/linux-ppc64": { + "node_modules/@esbuild/linux-ppc64": { "version": "0.17.8", "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.17.8.tgz", "integrity": "sha512-bytLJOi55y55+mGSdgwZ5qBm0K9WOCh0rx+vavVPx+gqLLhxtSFU0XbeYy/dsAAD6xECGEv4IQeFILaSS2auXw==", + "cpu": [ + "ppc64" + ], "dev": true, - "optional": true + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } }, - "@esbuild/linux-riscv64": { + "node_modules/@esbuild/linux-riscv64": { "version": "0.17.8", "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.17.8.tgz", "integrity": "sha512-2YpRyQJmKVBEHSBLa8kBAtbhucaclb6ex4wchfY0Tj3Kg39kpjeJ9vhRU7x4mUpq8ISLXRXH1L0dBYjAeqzZAw==", + "cpu": [ + "riscv64" + ], "dev": true, - "optional": true + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } }, - "@esbuild/linux-s390x": { + "node_modules/@esbuild/linux-s390x": { "version": "0.17.8", "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.17.8.tgz", "integrity": "sha512-QgbNY/V3IFXvNf11SS6exkpVcX0LJcob+0RWCgV9OiDAmVElnxciHIisoSix9uzYzScPmS6dJFbZULdSAEkQVw==", + "cpu": [ + "s390x" + ], "dev": true, - "optional": true + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } }, - "@esbuild/linux-x64": { + "node_modules/@esbuild/linux-x64": { "version": "0.17.8", "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.17.8.tgz", "integrity": "sha512-mM/9S0SbAFDBc4OPoyP6SEOo5324LpUxdpeIUUSrSTOfhHU9hEfqRngmKgqILqwx/0DVJBzeNW7HmLEWp9vcOA==", + "cpu": [ + "x64" + ], "dev": true, - "optional": true + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } }, - "@esbuild/netbsd-x64": { + "node_modules/@esbuild/netbsd-x64": { "version": "0.17.8", "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.17.8.tgz", "integrity": "sha512-eKUYcWaWTaYr9zbj8GertdVtlt1DTS1gNBWov+iQfWuWyuu59YN6gSEJvFzC5ESJ4kMcKR0uqWThKUn5o8We6Q==", + "cpu": [ + "x64" + ], "dev": true, - "optional": true + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } }, - "@esbuild/openbsd-x64": { + "node_modules/@esbuild/openbsd-x64": { "version": "0.17.8", "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.17.8.tgz", "integrity": "sha512-Vc9J4dXOboDyMXKD0eCeW0SIeEzr8K9oTHJU+Ci1mZc5njPfhKAqkRt3B/fUNU7dP+mRyralPu8QUkiaQn7iIg==", + "cpu": [ + "x64" + ], "dev": true, - "optional": true + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } }, - "@esbuild/sunos-x64": { + "node_modules/@esbuild/sunos-x64": { "version": "0.17.8", "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.17.8.tgz", "integrity": "sha512-0xvOTNuPXI7ft1LYUgiaXtpCEjp90RuBBYovdd2lqAFxje4sEucurg30M1WIm03+3jxByd3mfo+VUmPtRSVuOw==", + "cpu": [ + "x64" + ], "dev": true, - "optional": true + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } }, - "@esbuild/win32-arm64": { + "node_modules/@esbuild/win32-arm64": { "version": "0.17.8", "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.17.8.tgz", "integrity": "sha512-G0JQwUI5WdEFEnYNKzklxtBheCPkuDdu1YrtRrjuQv30WsYbkkoixKxLLv8qhJmNI+ATEWquZe/N0d0rpr55Mg==", + "cpu": [ + "arm64" + ], "dev": true, - "optional": true + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } }, - "@esbuild/win32-ia32": { + "node_modules/@esbuild/win32-ia32": { "version": "0.17.8", "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.17.8.tgz", "integrity": "sha512-Fqy63515xl20OHGFykjJsMnoIWS+38fqfg88ClvPXyDbLtgXal2DTlhb1TfTX34qWi3u4I7Cq563QcHpqgLx8w==", + "cpu": [ + "ia32" + ], "dev": true, - "optional": true + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } }, - "@esbuild/win32-x64": { + "node_modules/@esbuild/win32-x64": { "version": "0.17.8", "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.17.8.tgz", "integrity": "sha512-1iuezdyDNngPnz8rLRDO2C/ZZ/emJLb72OsZeqQ6gL6Avko/XCXZw+NuxBSNhBAP13Hie418V7VMt9et1FMvpg==", + "cpu": [ + "x64" + ], "dev": true, - "optional": true + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } }, - "@gar/promisify": { + "node_modules/@gar/promisify": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/@gar/promisify/-/promisify-1.1.3.tgz", "integrity": "sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==", "dev": true }, - "@istanbuljs/load-nyc-config": { + "node_modules/@istanbuljs/load-nyc-config": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", "dev": true, - "requires": { + "dependencies": { "camelcase": "^5.3.1", "find-up": "^4.1.0", "get-package-type": "^0.1.0", "js-yaml": "^3.13.1", "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" } }, - "@istanbuljs/schema": { + "node_modules/@istanbuljs/schema": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "@jridgewell/gen-mapping": { + "node_modules/@jridgewell/gen-mapping": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz", "integrity": "sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w==", - "requires": { + "dependencies": { "@jridgewell/set-array": "^1.0.0", "@jridgewell/sourcemap-codec": "^1.4.10" + }, + "engines": { + "node": ">=6.0.0" } }, - "@jridgewell/resolve-uri": { + "node_modules/@jridgewell/resolve-uri": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", - "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==" + "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", + "engines": { + "node": ">=6.0.0" + } }, - "@jridgewell/set-array": { + "node_modules/@jridgewell/set-array": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", - "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==" + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "engines": { + "node": ">=6.0.0" + } }, - "@jridgewell/source-map": { + "node_modules/@jridgewell/source-map": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.2.tgz", "integrity": "sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==", "dev": true, - "requires": { + "dependencies": { "@jridgewell/gen-mapping": "^0.3.0", "@jridgewell/trace-mapping": "^0.3.9" - }, + } + }, + "node_modules/@jridgewell/source-map/node_modules/@jridgewell/gen-mapping": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", + "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", + "dev": true, "dependencies": { - "@jridgewell/gen-mapping": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", - "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", - "dev": true, - "requires": { - "@jridgewell/set-array": "^1.0.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" - } - } + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" } }, - "@jridgewell/sourcemap-codec": { + "node_modules/@jridgewell/sourcemap-codec": { "version": "1.4.14", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==" }, - "@jridgewell/trace-mapping": { + "node_modules/@jridgewell/trace-mapping": { "version": "0.3.17", "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.17.tgz", "integrity": "sha512-MCNzAp77qzKca9+W/+I0+sEpaUnZoeasnghNeVc41VZCEKaCH73Vq3BZZ/SzWIgrqE4H4ceI+p+b6C0mHf9T4g==", - "requires": { + "dependencies": { "@jridgewell/resolve-uri": "3.1.0", "@jridgewell/sourcemap-codec": "1.4.14" } }, - "@leichtgewicht/ip-codec": { + "node_modules/@leichtgewicht/ip-codec": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz", "integrity": "sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==", "dev": true }, - "@ng-bootstrap/ng-bootstrap": { + "node_modules/@ng-bootstrap/ng-bootstrap": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/@ng-bootstrap/ng-bootstrap/-/ng-bootstrap-8.0.1.tgz", "integrity": "sha512-v/TyLbXOguEGiV1SuNzHoBeahGwCihBcB96LJz91DexPbM403jiLNxhoFtEYbAPRoPI9v3MILxSgOwCkdyeBVw==", - "requires": { + "dependencies": { "tslib": "^2.0.0" + }, + "peerDependencies": { + "@angular/common": "^10.0.0", + "@angular/core": "^10.0.0", + "@angular/forms": "^10.0.0", + "@angular/localize": "^10.0.0", + "rxjs": "^6.5.5" } }, - "@ng-select/ng-select": { + "node_modules/@ng-select/ng-select": { "version": "5.0.14", "resolved": "https://registry.npmjs.org/@ng-select/ng-select/-/ng-select-5.0.14.tgz", "integrity": "sha512-BFloLZQhfcaHVj7Dmk5EorNe7teGlee/MosLGWrXm1UGWjovtumc4FAs4bbahLilVtUBNFi8R0opv48jIOd0fA==", - "requires": { + "dependencies": { "tslib": "^2.0.0" + }, + "engines": { + "node": ">= 6.9.0", + "npm": ">= 3.0.0" + }, + "peerDependencies": { + "@angular/common": ">=10.0.0 <11.0.0", + "@angular/core": ">=10.0.0 <11.0.0", + "@angular/forms": ">=10.0.0 <11.0.0" } }, - "@ngtools/webpack": { + "node_modules/@ngtools/webpack": { "version": "15.2.2", "resolved": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-15.2.2.tgz", "integrity": "sha512-xHd5CC0Wi0a/CKfKoOC4Bwb1FVjy0esj22eQAkVh0iDKeiAQH4UG/VRmsdSHvto1z0IzGbMSt4hRbv4h2aYIdw==", - "dev": true + "dev": true, + "engines": { + "node": "^14.20.0 || ^16.13.0 || >=18.10.0", + "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", + "yarn": ">= 1.13.0" + }, + "peerDependencies": { + "@angular/compiler-cli": "^15.0.0", + "typescript": ">=4.8.2 <5.0", + "webpack": "^5.54.0" + } }, - "@nodelib/fs.scandir": { + "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", "dev": true, - "requires": { + "dependencies": { "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" } }, - "@nodelib/fs.stat": { + "node_modules/@nodelib/fs.stat": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true + "dev": true, + "engines": { + "node": ">= 8" + } }, - "@nodelib/fs.walk": { + "node_modules/@nodelib/fs.walk": { "version": "1.2.8", "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", "dev": true, - "requires": { + "dependencies": { "@nodelib/fs.scandir": "2.1.5", "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" } }, - "@npmcli/fs": { + "node_modules/@npmcli/fs": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-3.1.0.tgz", "integrity": "sha512-7kZUAaLscfgbwBQRbvdMYaZOWyMEcPTH/tJjnyAWJ/dvvs9Ef+CERx/qJb9GExJpl1qipaDGn7KqHnFGGixd0w==", "dev": true, - "requires": { + "dependencies": { "semver": "^7.3.5" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, - "@npmcli/git": { + "node_modules/@npmcli/git": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/@npmcli/git/-/git-4.0.3.tgz", "integrity": "sha512-8cXNkDIbnXPVbhXMmQ7/bklCAjtmPaXfI9aEM4iH+xSuEHINLMHhlfESvVwdqmHJRJkR48vNJTSUvoF6GRPSFA==", "dev": true, - "requires": { + "dependencies": { "@npmcli/promise-spawn": "^6.0.0", "lru-cache": "^7.4.4", "mkdirp": "^1.0.4", @@ -2376,129 +3459,182 @@ "semver": "^7.3.5", "which": "^3.0.0" }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/@npmcli/git/node_modules/lru-cache": { + "version": "7.18.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", + "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/@npmcli/git/node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true, + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@npmcli/git/node_modules/which": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/which/-/which-3.0.0.tgz", + "integrity": "sha512-nla//68K9NU6yRiwDY/Q8aU6siKlSs64aEC7+IV56QoAuyQT2ovsJcgGYGyqMOmI/CGN1BOR6mM5EN0FBO+zyQ==", + "dev": true, "dependencies": { - "lru-cache": { - "version": "7.18.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", - "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", - "dev": true - }, - "mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "dev": true - }, - "which": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/which/-/which-3.0.0.tgz", - "integrity": "sha512-nla//68K9NU6yRiwDY/Q8aU6siKlSs64aEC7+IV56QoAuyQT2ovsJcgGYGyqMOmI/CGN1BOR6mM5EN0FBO+zyQ==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - } + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/which.js" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, - "@npmcli/installed-package-contents": { + "node_modules/@npmcli/installed-package-contents": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/@npmcli/installed-package-contents/-/installed-package-contents-2.0.2.tgz", "integrity": "sha512-xACzLPhnfD51GKvTOOuNX2/V4G4mz9/1I2MfDoye9kBM3RYe5g2YbscsaGoTlaWqkxeiapBWyseULVKpSVHtKQ==", "dev": true, - "requires": { + "dependencies": { "npm-bundled": "^3.0.0", "npm-normalize-package-bin": "^3.0.0" + }, + "bin": { + "installed-package-contents": "lib/index.js" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, - "@npmcli/move-file": { + "node_modules/@npmcli/move-file": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/@npmcli/move-file/-/move-file-2.0.1.tgz", "integrity": "sha512-mJd2Z5TjYWq/ttPLLGqArdtnC74J6bOzg4rMDnN+p1xTacZ2yPRCk2y0oSWQtygLR9YVQXgOcONrwtnk3JupxQ==", + "deprecated": "This functionality has been moved to @npmcli/fs", "dev": true, - "requires": { + "dependencies": { "mkdirp": "^1.0.4", "rimraf": "^3.0.2" }, - "dependencies": { - "mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "dev": true - } + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/@npmcli/move-file/node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true, + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" } }, - "@npmcli/node-gyp": { + "node_modules/@npmcli/node-gyp": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/@npmcli/node-gyp/-/node-gyp-3.0.0.tgz", "integrity": "sha512-gp8pRXC2oOxu0DUE1/M3bYtb1b3/DbJ5aM113+XJBgfXdussRAsX0YOrOhdd8WvnAR6auDBvJomGAkLKA5ydxA==", - "dev": true + "dev": true, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } }, - "@npmcli/promise-spawn": { + "node_modules/@npmcli/promise-spawn": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/@npmcli/promise-spawn/-/promise-spawn-6.0.2.tgz", "integrity": "sha512-gGq0NJkIGSwdbUt4yhdF8ZrmkGKVz9vAdVzpOfnom+V8PLSmSOVhZwbNvZZS1EYcJN5hzzKBxmmVVAInM6HQLg==", "dev": true, - "requires": { + "dependencies": { "which": "^3.0.0" }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/@npmcli/promise-spawn/node_modules/which": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/which/-/which-3.0.0.tgz", + "integrity": "sha512-nla//68K9NU6yRiwDY/Q8aU6siKlSs64aEC7+IV56QoAuyQT2ovsJcgGYGyqMOmI/CGN1BOR6mM5EN0FBO+zyQ==", + "dev": true, "dependencies": { - "which": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/which/-/which-3.0.0.tgz", - "integrity": "sha512-nla//68K9NU6yRiwDY/Q8aU6siKlSs64aEC7+IV56QoAuyQT2ovsJcgGYGyqMOmI/CGN1BOR6mM5EN0FBO+zyQ==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - } + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/which.js" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, - "@npmcli/run-script": { + "node_modules/@npmcli/run-script": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/@npmcli/run-script/-/run-script-6.0.0.tgz", "integrity": "sha512-ql+AbRur1TeOdl1FY+RAwGW9fcr4ZwiVKabdvm93mujGREVuVLbdkXRJDrkTXSdCjaxYydr1wlA2v67jxWG5BQ==", "dev": true, - "requires": { + "dependencies": { "@npmcli/node-gyp": "^3.0.0", "@npmcli/promise-spawn": "^6.0.0", "node-gyp": "^9.0.0", "read-package-json-fast": "^3.0.0", "which": "^3.0.0" }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/@npmcli/run-script/node_modules/which": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/which/-/which-3.0.0.tgz", + "integrity": "sha512-nla//68K9NU6yRiwDY/Q8aU6siKlSs64aEC7+IV56QoAuyQT2ovsJcgGYGyqMOmI/CGN1BOR6mM5EN0FBO+zyQ==", + "dev": true, "dependencies": { - "which": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/which/-/which-3.0.0.tgz", - "integrity": "sha512-nla//68K9NU6yRiwDY/Q8aU6siKlSs64aEC7+IV56QoAuyQT2ovsJcgGYGyqMOmI/CGN1BOR6mM5EN0FBO+zyQ==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - } + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/which.js" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, - "@scarf/scarf": { + "node_modules/@scarf/scarf": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/@scarf/scarf/-/scarf-1.1.1.tgz", - "integrity": "sha512-VGbKDbk1RFIaSmdVb0cNjjWJoRWRI/Weo23AjRCC2nryO0iAS8pzsToJfPVPtVs74WHw4L1UTADNdIYRLkirZQ==" + "integrity": "sha512-VGbKDbk1RFIaSmdVb0cNjjWJoRWRI/Weo23AjRCC2nryO0iAS8pzsToJfPVPtVs74WHw4L1UTADNdIYRLkirZQ==", + "hasInstallScript": true }, - "@schematics/angular": { + "node_modules/@schematics/angular": { "version": "15.2.2", "resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-15.2.2.tgz", "integrity": "sha512-H8R2TziGgJkXFZf3NQCOKQhkbGhVX8bPQAKv/YFEpPm1n//cPshysf2r3nBCc0WcTGkdC087UTCYvbFjQ7Fa6w==", "dev": true, - "requires": { + "dependencies": { "@angular-devkit/core": "15.2.2", "@angular-devkit/schematics": "15.2.2", "jsonc-parser": "3.2.0" + }, + "engines": { + "node": "^14.20.0 || ^16.13.0 || >=18.10.0", + "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", + "yarn": ">= 1.13.0" } }, - "@swimlane/ngx-charts": { + "node_modules/@swimlane/ngx-charts": { "version": "16.0.0", "resolved": "https://registry.npmjs.org/@swimlane/ngx-charts/-/ngx-charts-16.0.0.tgz", "integrity": "sha512-ltbyA7qhnbdNcjWD0NerObHrDzWgDDja8M8R1RVgBZnkaoJFpB/KZ1W3+Ch9F1y9pCy/zdpWSzwd/RzCEhsQhA==", - "requires": { + "dependencies": { "d3-array": "^2.4.0", "d3-brush": "^1.1.5", "d3-color": "^1.4.0", @@ -2511,317 +3647,337 @@ "d3-time-format": "^2.2.2", "d3-transition": "^1.3.2", "tslib": "^2.0.0" - } - }, - "@tootallnate/once": { + }, + "peerDependencies": { + "@angular/animations": ">=10.0.0", + "@angular/cdk": ">=10.0.0", + "@angular/common": ">=10.0.0", + "@angular/core": ">=10.0.0", + "@angular/forms": ">=10.0.0", + "@angular/platform-browser": ">=10.0.0", + "@angular/platform-browser-dynamic": ">=10.0.0", + "rxjs": "6.x" + } + }, + "node_modules/@tootallnate/once": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz", "integrity": "sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==", - "dev": true + "dev": true, + "engines": { + "node": ">= 10" + } }, - "@tufjs/models": { + "node_modules/@tufjs/models": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/@tufjs/models/-/models-1.0.0.tgz", "integrity": "sha512-RRMu4uMxWnZlxaIBxahSb2IssFZiu188sndesZflWOe1cA/qUqtemSIoBWbuVKPvvdktapImWNnKpBcc+VrCQw==", "dev": true, - "requires": { + "dependencies": { "minimatch": "^6.1.0" }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/@tufjs/models/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, "dependencies": { - "brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0" - } - }, - "minimatch": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-6.2.0.tgz", - "integrity": "sha512-sauLxniAmvnhhRjFwPNnJKaPFYyddAgbYdeUpHULtCT/GhzdCx/MDNy+Y40lBxTQUrMzDE8e0S43Z5uqfO0REg==", - "dev": true, - "requires": { - "brace-expansion": "^2.0.1" - } - } + "balanced-match": "^1.0.0" } }, - "@types/body-parser": { + "node_modules/@tufjs/models/node_modules/minimatch": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-6.2.0.tgz", + "integrity": "sha512-sauLxniAmvnhhRjFwPNnJKaPFYyddAgbYdeUpHULtCT/GhzdCx/MDNy+Y40lBxTQUrMzDE8e0S43Z5uqfO0REg==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@types/body-parser": { "version": "1.19.2", "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.2.tgz", "integrity": "sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==", "dev": true, - "requires": { + "dependencies": { "@types/connect": "*", "@types/node": "*" } }, - "@types/bonjour": { + "node_modules/@types/bonjour": { "version": "3.5.10", "resolved": "https://registry.npmjs.org/@types/bonjour/-/bonjour-3.5.10.tgz", "integrity": "sha512-p7ienRMiS41Nu2/igbJxxLDWrSZ0WxM8UQgCeO9KhoVF7cOVFkrKsiDr1EsJIla8vV3oEEjGcz11jc5yimhzZw==", "dev": true, - "requires": { + "dependencies": { "@types/node": "*" } }, - "@types/color-name": { + "node_modules/@types/color-name": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz", "integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==", "dev": true }, - "@types/connect": { + "node_modules/@types/connect": { "version": "3.4.35", "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.35.tgz", "integrity": "sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==", "dev": true, - "requires": { + "dependencies": { "@types/node": "*" } }, - "@types/connect-history-api-fallback": { + "node_modules/@types/connect-history-api-fallback": { "version": "1.3.5", "resolved": "https://registry.npmjs.org/@types/connect-history-api-fallback/-/connect-history-api-fallback-1.3.5.tgz", "integrity": "sha512-h8QJa8xSb1WD4fpKBDcATDNGXghFj6/3GRWG6dhmRcu0RX1Ubasur2Uvx5aeEwlf0MwblEC2bMzzMQntxnw/Cw==", "dev": true, - "requires": { + "dependencies": { "@types/express-serve-static-core": "*", "@types/node": "*" } }, - "@types/eslint": { + "node_modules/@types/eslint": { "version": "8.21.1", "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.21.1.tgz", "integrity": "sha512-rc9K8ZpVjNcLs8Fp0dkozd5Pt2Apk1glO4Vgz8ix1u6yFByxfqo5Yavpy65o+93TAe24jr7v+eSBtFLvOQtCRQ==", "dev": true, - "requires": { + "dependencies": { "@types/estree": "*", "@types/json-schema": "*" } }, - "@types/eslint-scope": { + "node_modules/@types/eslint-scope": { "version": "3.7.4", "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz", "integrity": "sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==", "dev": true, - "requires": { + "dependencies": { "@types/eslint": "*", "@types/estree": "*" } }, - "@types/estree": { + "node_modules/@types/estree": { "version": "0.0.51", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.51.tgz", "integrity": "sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ==", "dev": true }, - "@types/express": { + "node_modules/@types/express": { "version": "4.17.17", "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.17.tgz", "integrity": "sha512-Q4FmmuLGBG58btUnfS1c1r/NQdlp3DMfGDGig8WhfpA2YRUtEkxAjkZb0yvplJGYdF1fsQ81iMDcH24sSCNC/Q==", "dev": true, - "requires": { + "dependencies": { "@types/body-parser": "*", "@types/express-serve-static-core": "^4.17.33", "@types/qs": "*", "@types/serve-static": "*" } }, - "@types/express-serve-static-core": { + "node_modules/@types/express-serve-static-core": { "version": "4.17.33", "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.33.tgz", "integrity": "sha512-TPBqmR/HRYI3eC2E5hmiivIzv+bidAfXofM+sbonAGvyDhySGw9/PQZFt2BLOrjUUR++4eJVpx6KnLQK1Fk9tA==", "dev": true, - "requires": { + "dependencies": { "@types/node": "*", "@types/qs": "*", "@types/range-parser": "*" } }, - "@types/http-proxy": { + "node_modules/@types/http-proxy": { "version": "1.17.10", "resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.10.tgz", "integrity": "sha512-Qs5aULi+zV1bwKAg5z1PWnDXWmsn+LxIvUGv6E2+OOMYhclZMO+OXd9pYVf2gLykf2I7IV2u7oTHwChPNsvJ7g==", "dev": true, - "requires": { + "dependencies": { "@types/node": "*" } }, - "@types/json-schema": { + "node_modules/@types/json-schema": { "version": "7.0.11", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", "dev": true }, - "@types/mime": { + "node_modules/@types/mime": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/@types/mime/-/mime-3.0.1.tgz", "integrity": "sha512-Y4XFY5VJAuw0FgAqPNd6NNoV44jbq9Bz2L7Rh/J6jLTiHBSBJa9fxqQIvkIld4GsoDOcCbvzOUAbLPsSKKg+uA==", "dev": true }, - "@types/node": { + "node_modules/@types/node": { "version": "14.6.3", "resolved": "https://registry.npmjs.org/@types/node/-/node-14.6.3.tgz", "integrity": "sha512-pC/hkcREG6YfDfui1FBmj8e20jFU5Exjw4NYDm8kEdrW+mOh0T1Zve8DWKnS7ZIZvgncrctcNCXF4Q2I+loyww==", "dev": true }, - "@types/parse-json": { + "node_modules/@types/parse-json": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==", "dev": true }, - "@types/qs": { + "node_modules/@types/qs": { "version": "6.9.7", "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.7.tgz", "integrity": "sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==", "dev": true }, - "@types/range-parser": { + "node_modules/@types/range-parser": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.4.tgz", "integrity": "sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==", "dev": true }, - "@types/retry": { + "node_modules/@types/retry": { "version": "0.12.0", "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.0.tgz", "integrity": "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==", "dev": true }, - "@types/selenium-webdriver": { + "node_modules/@types/selenium-webdriver": { "version": "3.0.17", "resolved": "https://registry.npmjs.org/@types/selenium-webdriver/-/selenium-webdriver-3.0.17.tgz", "integrity": "sha512-tGomyEuzSC1H28y2zlW6XPCaDaXFaD6soTdb4GNdmte2qfHtrKqhy0ZFs4r/1hpazCfEZqeTSRLvSasmEx89uw==", "dev": true }, - "@types/serve-index": { + "node_modules/@types/serve-index": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/@types/serve-index/-/serve-index-1.9.1.tgz", "integrity": "sha512-d/Hs3nWDxNL2xAczmOVZNj92YZCS6RGxfBPjKzuu/XirCgXdpKEb88dYNbrYGint6IVWLNP+yonwVAuRC0T2Dg==", "dev": true, - "requires": { + "dependencies": { "@types/express": "*" } }, - "@types/serve-static": { + "node_modules/@types/serve-static": { "version": "1.15.1", "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.1.tgz", "integrity": "sha512-NUo5XNiAdULrJENtJXZZ3fHtfMolzZwczzBbnAeBbqBwG+LaG6YaJtuwzwGSQZ2wsCrxjEhNNjAkKigy3n8teQ==", "dev": true, - "requires": { + "dependencies": { "@types/mime": "*", "@types/node": "*" } }, - "@types/sockjs": { + "node_modules/@types/sockjs": { "version": "0.3.33", "resolved": "https://registry.npmjs.org/@types/sockjs/-/sockjs-0.3.33.tgz", "integrity": "sha512-f0KEEe05NvUnat+boPTZ0dgaLZ4SfSouXUgv5noUiefG2ajgKjmETo9ZJyuqsl7dfl2aHlLJUiki6B4ZYldiiw==", "dev": true, - "requires": { + "dependencies": { "@types/node": "*" } }, - "@types/ws": { + "node_modules/@types/ws": { "version": "8.5.4", "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.4.tgz", "integrity": "sha512-zdQDHKUgcX/zBc4GrwsE/7dVdAD8JR4EuiAXiiUhhfyIJXXb2+PrGshFyeXWQPMmmZ2XxgaqclgpIC7eTXc1mg==", "dev": true, - "requires": { + "dependencies": { "@types/node": "*" } }, - "@webassemblyjs/ast": { + "node_modules/@webassemblyjs/ast": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.1.tgz", "integrity": "sha512-ukBh14qFLjxTQNTXocdyksN5QdM28S1CxHt2rdskFyL+xFV7VremuBLVbmCePj+URalXBENx/9Lm7lnhihtCSw==", "dev": true, - "requires": { + "dependencies": { "@webassemblyjs/helper-numbers": "1.11.1", "@webassemblyjs/helper-wasm-bytecode": "1.11.1" } }, - "@webassemblyjs/floating-point-hex-parser": { + "node_modules/@webassemblyjs/floating-point-hex-parser": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.1.tgz", "integrity": "sha512-iGRfyc5Bq+NnNuX8b5hwBrRjzf0ocrJPI6GWFodBFzmFnyvrQ83SHKhmilCU/8Jv67i4GJZBMhEzltxzcNagtQ==", "dev": true }, - "@webassemblyjs/helper-api-error": { + "node_modules/@webassemblyjs/helper-api-error": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.1.tgz", "integrity": "sha512-RlhS8CBCXfRUR/cwo2ho9bkheSXG0+NwooXcc3PAILALf2QLdFyj7KGsKRbVc95hZnhnERon4kW/D3SZpp6Tcg==", "dev": true }, - "@webassemblyjs/helper-buffer": { + "node_modules/@webassemblyjs/helper-buffer": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.1.tgz", "integrity": "sha512-gwikF65aDNeeXa8JxXa2BAk+REjSyhrNC9ZwdT0f8jc4dQQeDQ7G4m0f2QCLPJiMTTO6wfDmRmj/pW0PsUvIcA==", "dev": true }, - "@webassemblyjs/helper-numbers": { + "node_modules/@webassemblyjs/helper-numbers": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.1.tgz", "integrity": "sha512-vDkbxiB8zfnPdNK9Rajcey5C0w+QJugEglN0of+kmO8l7lDb77AnlKYQF7aarZuCrv+l0UvqL+68gSDr3k9LPQ==", "dev": true, - "requires": { + "dependencies": { "@webassemblyjs/floating-point-hex-parser": "1.11.1", "@webassemblyjs/helper-api-error": "1.11.1", "@xtuc/long": "4.2.2" } }, - "@webassemblyjs/helper-wasm-bytecode": { + "node_modules/@webassemblyjs/helper-wasm-bytecode": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.1.tgz", "integrity": "sha512-PvpoOGiJwXeTrSf/qfudJhwlvDQxFgelbMqtq52WWiXC6Xgg1IREdngmPN3bs4RoO83PnL/nFrxucXj1+BX62Q==", "dev": true }, - "@webassemblyjs/helper-wasm-section": { + "node_modules/@webassemblyjs/helper-wasm-section": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.1.tgz", "integrity": "sha512-10P9No29rYX1j7F3EVPX3JvGPQPae+AomuSTPiF9eBQeChHI6iqjMIwR9JmOJXwpnn/oVGDk7I5IlskuMwU/pg==", "dev": true, - "requires": { + "dependencies": { "@webassemblyjs/ast": "1.11.1", "@webassemblyjs/helper-buffer": "1.11.1", "@webassemblyjs/helper-wasm-bytecode": "1.11.1", "@webassemblyjs/wasm-gen": "1.11.1" } }, - "@webassemblyjs/ieee754": { + "node_modules/@webassemblyjs/ieee754": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.1.tgz", "integrity": "sha512-hJ87QIPtAMKbFq6CGTkZYJivEwZDbQUgYd3qKSadTNOhVY7p+gfP6Sr0lLRVTaG1JjFj+r3YchoqRYxNH3M0GQ==", "dev": true, - "requires": { + "dependencies": { "@xtuc/ieee754": "^1.2.0" } }, - "@webassemblyjs/leb128": { + "node_modules/@webassemblyjs/leb128": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.1.tgz", "integrity": "sha512-BJ2P0hNZ0u+Th1YZXJpzW6miwqQUGcIHT1G/sf72gLVD9DZ5AdYTqPNbHZh6K1M5VmKvFXwGSWZADz+qBWxeRw==", "dev": true, - "requires": { + "dependencies": { "@xtuc/long": "4.2.2" } }, - "@webassemblyjs/utf8": { + "node_modules/@webassemblyjs/utf8": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.1.tgz", "integrity": "sha512-9kqcxAEdMhiwQkHpkNiorZzqpGrodQQ2IGrHHxCy+Ozng0ofyMA0lTqiLkVs1uzTRejX+/O0EOT7KxqVPuXosQ==", "dev": true }, - "@webassemblyjs/wasm-edit": { + "node_modules/@webassemblyjs/wasm-edit": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.1.tgz", "integrity": "sha512-g+RsupUC1aTHfR8CDgnsVRVZFJqdkFHpsHMfJuWQzWU3tvnLC07UqHICfP+4XyL2tnr1amvl1Sdp06TnYCmVkA==", "dev": true, - "requires": { + "dependencies": { "@webassemblyjs/ast": "1.11.1", "@webassemblyjs/helper-buffer": "1.11.1", "@webassemblyjs/helper-wasm-bytecode": "1.11.1", @@ -2832,12 +3988,12 @@ "@webassemblyjs/wast-printer": "1.11.1" } }, - "@webassemblyjs/wasm-gen": { + "node_modules/@webassemblyjs/wasm-gen": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.1.tgz", "integrity": "sha512-F7QqKXwwNlMmsulj6+O7r4mmtAlCWfO/0HdgOxSklZfQcDu0TpLiD1mRt/zF25Bk59FIjEuGAIyn5ei4yMfLhA==", "dev": true, - "requires": { + "dependencies": { "@webassemblyjs/ast": "1.11.1", "@webassemblyjs/helper-wasm-bytecode": "1.11.1", "@webassemblyjs/ieee754": "1.11.1", @@ -2845,24 +4001,24 @@ "@webassemblyjs/utf8": "1.11.1" } }, - "@webassemblyjs/wasm-opt": { + "node_modules/@webassemblyjs/wasm-opt": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.1.tgz", "integrity": "sha512-VqnkNqnZlU5EB64pp1l7hdm3hmQw7Vgqa0KF/KCNO9sIpI6Fk6brDEiX+iCOYrvMuBWDws0NkTOxYEb85XQHHw==", "dev": true, - "requires": { + "dependencies": { "@webassemblyjs/ast": "1.11.1", "@webassemblyjs/helper-buffer": "1.11.1", "@webassemblyjs/wasm-gen": "1.11.1", "@webassemblyjs/wasm-parser": "1.11.1" } }, - "@webassemblyjs/wasm-parser": { + "node_modules/@webassemblyjs/wasm-parser": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.1.tgz", "integrity": "sha512-rrBujw+dJu32gYB7/Lup6UhdkPx9S9SnobZzRVL7VcBH9Bt9bCBLEuX/YXOOtBsOZ4NQrRykKhffRWHvigQvOA==", "dev": true, - "requires": { + "dependencies": { "@webassemblyjs/ast": "1.11.1", "@webassemblyjs/helper-api-error": "1.11.1", "@webassemblyjs/helper-wasm-bytecode": "1.11.1", @@ -2871,533 +4027,692 @@ "@webassemblyjs/utf8": "1.11.1" } }, - "@webassemblyjs/wast-printer": { + "node_modules/@webassemblyjs/wast-printer": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.1.tgz", "integrity": "sha512-IQboUWM4eKzWW+N/jij2sRatKMh99QEelo3Eb2q0qXkvPRISAj8Qxtmw5itwqK+TTkBuUIE45AxYPToqPtL5gg==", "dev": true, - "requires": { + "dependencies": { "@webassemblyjs/ast": "1.11.1", "@xtuc/long": "4.2.2" } }, - "@xtuc/ieee754": { + "node_modules/@xtuc/ieee754": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", "dev": true }, - "@xtuc/long": { + "node_modules/@xtuc/long": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", "dev": true }, - "@yarnpkg/lockfile": { + "node_modules/@yarnpkg/lockfile": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz", "integrity": "sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ==", "dev": true }, - "abab": { + "node_modules/abab": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==", "dev": true }, - "abbrev": { + "node_modules/abbrev": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", "dev": true }, - "accepts": { + "node_modules/accepts": { "version": "1.3.8", "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", "dev": true, - "requires": { + "dependencies": { "mime-types": "~2.1.34", "negotiator": "0.6.3" }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/accepts/node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/accepts/node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, "dependencies": { - "mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "dev": true - }, - "mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dev": true, - "requires": { - "mime-db": "1.52.0" - } - } + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" } }, - "ace-builds": { + "node_modules/ace-builds": { "version": "1.4.12", "resolved": "https://registry.npmjs.org/ace-builds/-/ace-builds-1.4.12.tgz", "integrity": "sha512-G+chJctFPiiLGvs3+/Mly3apXTcfgE45dT5yp12BcWZ1kUs+gm0qd3/fv4gsz6fVag4mM0moHVpjHDIgph6Psg==" }, - "acorn": { + "node_modules/acorn": { "version": "8.8.2", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", - "dev": true + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } }, - "acorn-import-assertions": { + "node_modules/acorn-import-assertions": { "version": "1.8.0", "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.8.0.tgz", "integrity": "sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw==", - "dev": true + "dev": true, + "peerDependencies": { + "acorn": "^8" + } }, - "adjust-sourcemap-loader": { + "node_modules/adjust-sourcemap-loader": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/adjust-sourcemap-loader/-/adjust-sourcemap-loader-4.0.0.tgz", "integrity": "sha512-OXwN5b9pCUXNQHJpwwD2qP40byEmSgzj8B4ydSN0uMNYWiFmJ6x6KwUllMmfk8Rwu/HJDFR7U8ubsWBoN0Xp0A==", "dev": true, - "requires": { + "dependencies": { "loader-utils": "^2.0.0", "regex-parser": "^2.2.11" }, + "engines": { + "node": ">=8.9" + } + }, + "node_modules/adjust-sourcemap-loader/node_modules/loader-utils": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", + "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", + "dev": true, "dependencies": { - "loader-utils": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", - "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", - "dev": true, - "requires": { - "big.js": "^5.2.2", - "emojis-list": "^3.0.0", - "json5": "^2.1.2" - } - } + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + }, + "engines": { + "node": ">=8.9.0" } }, - "adm-zip": { + "node_modules/adm-zip": { "version": "0.4.16", "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.4.16.tgz", "integrity": "sha512-TFi4HBKSGfIKsK5YCkKaaFG2m4PEDyViZmEwof3MTIgzimHLto6muaHVpbrljdIvIrFZzEq/p4nafOeLcYegrg==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.3.0" + } }, - "agent-base": { + "node_modules/agent-base": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.3.0.tgz", "integrity": "sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg==", "dev": true, - "requires": { + "dependencies": { "es6-promisify": "^5.0.0" + }, + "engines": { + "node": ">= 4.0.0" } }, - "agentkeepalive": { + "node_modules/agentkeepalive": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.3.0.tgz", "integrity": "sha512-7Epl1Blf4Sy37j4v9f9FjICCh4+KAQOyXgHEwlyBiAQLbhKdq/i2QQU3amQalS/wPhdPzDXPL5DMR5bkn+YeWg==", "dev": true, - "requires": { + "dependencies": { "debug": "^4.1.0", "depd": "^2.0.0", "humanize-ms": "^1.2.1" + }, + "engines": { + "node": ">= 8.0.0" } }, - "aggregate-error": { + "node_modules/aggregate-error": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", "dev": true, - "requires": { + "dependencies": { "clean-stack": "^2.0.0", "indent-string": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "ajv": { + "node_modules/ajv": { "version": "8.12.0", "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "requires": { + "dependencies": { "fast-deep-equal": "^3.1.1", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2", "uri-js": "^4.2.2" }, - "dependencies": { - "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - } + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" } }, - "ajv-formats": { + "node_modules/ajv-formats": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", "dev": true, - "requires": { + "dependencies": { "ajv": "^8.0.0" }, - "dependencies": { + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { "ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - } - }, - "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true + "optional": true } } }, - "ajv-keywords": { + "node_modules/ajv-formats/node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-formats/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "node_modules/ajv-keywords": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", "dev": true, - "requires": { + "dependencies": { "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" } }, - "analytics.js": { + "node_modules/ajv/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + }, + "node_modules/analytics.js": { "version": "2.9.1", "resolved": "https://registry.npmjs.org/analytics.js/-/analytics.js-2.9.1.tgz", - "integrity": "sha1-7vGG/b3Qe9b1MAIL4CXfDmeD2Z8=" + "integrity": "sha1-7vGG/b3Qe9b1MAIL4CXfDmeD2Z8=", + "deprecated": "Security updates will cease on August 31st, 2022. Please use @segment/analytics-next.", + "engines": { + "node": ">=0.12.0", + "npm": ">=2.7.0" + } }, - "ansi-colors": { + "node_modules/ansi-colors": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", - "dev": true + "dev": true, + "engines": { + "node": ">=6" + } }, - "ansi-escapes": { + "node_modules/ansi-escapes": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", "dev": true, - "requires": { + "dependencies": { "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "ansi-html-community": { + "node_modules/ansi-html-community": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/ansi-html-community/-/ansi-html-community-0.0.8.tgz", "integrity": "sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw==", - "dev": true + "dev": true, + "engines": [ + "node >= 0.8.0" + ], + "bin": { + "ansi-html": "bin/ansi-html" + } }, - "ansi-regex": { + "node_modules/ansi-regex": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "ansi-styles": { + "node_modules/ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "requires": { + "dependencies": { "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" } }, - "anymatch": { + "node_modules/anymatch": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dev": true, - "requires": { + "dependencies": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" } }, - "app-root-path": { + "node_modules/app-root-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/app-root-path/-/app-root-path-3.0.0.tgz", "integrity": "sha512-qMcx+Gy2UZynHjOHOIXPNvpf+9cjvk3cWrBBK7zg4gH9+clobJRb9NGzcT7mQTcV/6Gm/1WelUtqxVXnNlrwcw==", - "dev": true + "dev": true, + "engines": { + "node": ">= 6.0.0" + } }, - "aproba": { + "node_modules/aproba": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz", "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==", "dev": true }, - "are-we-there-yet": { + "node_modules/are-we-there-yet": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-3.0.1.tgz", "integrity": "sha512-QZW4EDmGwlYur0Yyf/b2uGucHQMa8aFUP7eu9ddR73vvhFyt4V0Vl3QHPcTNJ8l6qYOBdxgXdnBXQrHilfRQBg==", "dev": true, - "requires": { + "dependencies": { "delegates": "^1.0.0", "readable-stream": "^3.6.0" }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/are-we-there-yet/node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dev": true, "dependencies": { - "readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } - } + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" } }, - "arg": { + "node_modules/arg": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", "dev": true }, - "argparse": { + "node_modules/argparse": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", "dev": true, - "requires": { + "dependencies": { "sprintf-js": "~1.0.2" } }, - "aria-query": { + "node_modules/aria-query": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-3.0.0.tgz", "integrity": "sha1-ZbP8wcoRVajJrmTW7uKX8V1RM8w=", "dev": true, - "requires": { + "dependencies": { "ast-types-flow": "0.0.7", "commander": "^2.11.0" } }, - "array-flatten": { + "node_modules/array-flatten": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-2.1.2.tgz", "integrity": "sha512-hNfzcOV8W4NdualtqBFPyVO+54DSJuZGY9qT4pRroB6S9e3iiido2ISIC5h9R2sPJ8H3FHCIiEnsv1lPXO3KtQ==", "dev": true }, - "array-uniq": { + "node_modules/array-uniq": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "arrify": { + "node_modules/arrify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "asn1": { + "node_modules/asn1": { "version": "0.2.4", "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", "dev": true, - "requires": { + "dependencies": { "safer-buffer": "~2.1.0" } }, - "assert-plus": { + "node_modules/assert-plus": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.8" + } }, - "ast-types-flow": { + "node_modules/ast-types-flow": { "version": "0.0.7", "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz", "integrity": "sha1-9wtzXGvKGlycItmCw+Oef+ujva0=", "dev": true }, - "asynckit": { + "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", "dev": true }, - "autoprefixer": { + "node_modules/autoprefixer": { "version": "10.4.13", "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.13.tgz", "integrity": "sha512-49vKpMqcZYsJjwotvt4+h/BCjJVnhGwcLpDt5xkcaOG3eLrG/HUYLagrihYsQ+qrIBgIzX1Rw7a6L8I/ZA1Atg==", "dev": true, - "requires": { + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/autoprefixer" + } + ], + "dependencies": { "browserslist": "^4.21.4", "caniuse-lite": "^1.0.30001426", "fraction.js": "^4.2.0", "normalize-range": "^0.1.2", "picocolors": "^1.0.0", "postcss-value-parser": "^4.2.0" + }, + "bin": { + "autoprefixer": "bin/autoprefixer" + }, + "engines": { + "node": "^10 || ^12 || >=14" + }, + "peerDependencies": { + "postcss": "^8.1.0" } }, - "aws-sign2": { + "node_modules/aws-sign2": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", - "dev": true + "dev": true, + "engines": { + "node": "*" + } }, - "aws4": { + "node_modules/aws4": { "version": "1.10.1", "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.10.1.tgz", "integrity": "sha512-zg7Hz2k5lI8kb7U32998pRRFin7zJlkfezGJjUc2heaD4Pw2wObakCDVzkKztTm/Ln7eiVvYsjqak0Ed4LkMDA==", "dev": true }, - "axobject-query": { + "node_modules/axobject-query": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-2.0.2.tgz", "integrity": "sha512-MCeek8ZH7hKyO1rWUbKNQBbl4l2eY0ntk7OGi+q0RlafrCnfPxC06WZA+uebCfmYp4mNU9jRBP1AhGyf8+W3ww==", "dev": true, - "requires": { + "dependencies": { "ast-types-flow": "0.0.7" } }, - "babel-loader": { + "node_modules/babel-loader": { "version": "9.1.2", "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-9.1.2.tgz", "integrity": "sha512-mN14niXW43tddohGl8HPu5yfQq70iUThvFL/4QzESA7GcZoC0eVOhvWdQ8+3UlSjaDE9MVtsW9mxDY07W7VpVA==", "dev": true, - "requires": { + "dependencies": { "find-cache-dir": "^3.3.2", "schema-utils": "^4.0.0" + }, + "engines": { + "node": ">= 14.15.0" + }, + "peerDependencies": { + "@babel/core": "^7.12.0", + "webpack": ">=5" } }, - "babel-plugin-istanbul": { + "node_modules/babel-plugin-istanbul": { "version": "6.1.1", "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.0.0", "@istanbuljs/load-nyc-config": "^1.0.0", "@istanbuljs/schema": "^0.1.2", "istanbul-lib-instrument": "^5.0.4", "test-exclude": "^6.0.0" + }, + "engines": { + "node": ">=8" } }, - "babel-plugin-polyfill-corejs2": { + "node_modules/babel-plugin-polyfill-corejs2": { "version": "0.3.3", "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.3.3.tgz", "integrity": "sha512-8hOdmFYFSZhqg2C/JgLUQ+t52o5nirNwaWM2B9LWteozwIvM14VSwdsCAUET10qT+kmySAlseadmfeeSWFCy+Q==", "dev": true, - "requires": { + "dependencies": { "@babel/compat-data": "^7.17.7", "@babel/helper-define-polyfill-provider": "^0.3.3", "semver": "^6.1.1" }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/babel-plugin-polyfill-corejs2/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" } }, - "babel-plugin-polyfill-corejs3": { + "node_modules/babel-plugin-polyfill-corejs3": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.6.0.tgz", "integrity": "sha512-+eHqR6OPcBhJOGgsIar7xoAB1GcSwVUA3XjAd7HJNzOXT4wv6/H7KIdA/Nc60cvUlDbKApmqNvD1B1bzOt4nyA==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-define-polyfill-provider": "^0.3.3", "core-js-compat": "^3.25.1" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "babel-plugin-polyfill-regenerator": { + "node_modules/babel-plugin-polyfill-regenerator": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.4.1.tgz", "integrity": "sha512-NtQGmyQDXjQqQ+IzRkBVwEOz9lQ4zxAQZgoAYEtU9dJjnl1Oc98qnN7jcp+bE7O7aYzVpavXE3/VKXNzUbh7aw==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-define-polyfill-provider": "^0.3.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "balanced-match": { + "node_modules/balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" }, - "base64-js": { + "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", - "dev": true + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] }, - "batch": { + "node_modules/batch": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", "integrity": "sha512-x+VAiMRL6UPkx+kudNvxTl6hB2XNNCG2r+7wixVfIYwu/2HKRXimwQyaumLjMveWvT2Hkd/cAJw+QBMfJ/EKVw==", "dev": true }, - "bcrypt-pbkdf": { + "node_modules/bcrypt-pbkdf": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", "dev": true, - "requires": { + "dependencies": { "tweetnacl": "^0.14.3" } }, - "big.js": { + "node_modules/big.js": { "version": "5.2.2", "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", - "dev": true + "dev": true, + "engines": { + "node": "*" + } }, - "binary-extensions": { + "node_modules/binary-extensions": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", - "dev": true + "engines": { + "node": ">=8" + } }, - "bl": { + "node_modules/bl": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", "dev": true, - "requires": { + "dependencies": { "buffer": "^5.5.0", "inherits": "^2.0.4", "readable-stream": "^3.4.0" - }, + } + }, + "node_modules/bl/node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dev": true, "dependencies": { - "readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } - } + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" } }, - "blocking-proxy": { + "node_modules/blocking-proxy": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/blocking-proxy/-/blocking-proxy-1.0.1.tgz", "integrity": "sha512-KE8NFMZr3mN2E0HcvCgRtX7DjhiIQrwle+nSVJVC/yqFb9+xznHl2ZcoBp2L9qzkI4t4cBFJ1efXF8Dwi132RA==", "dev": true, - "requires": { + "dependencies": { "minimist": "^1.2.0" + }, + "bin": { + "blocking-proxy": "built/lib/bin.js" + }, + "engines": { + "node": ">=6.9.x" } }, - "body-parser": { + "node_modules/body-parser": { "version": "1.20.1", "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz", "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==", "dev": true, - "requires": { + "dependencies": { "bytes": "3.1.2", "content-type": "~1.0.4", "debug": "2.6.9", @@ -3411,130 +4726,173 @@ "type-is": "~1.6.18", "unpipe": "1.0.0" }, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/body-parser/node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/body-parser/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, "dependencies": { - "bytes": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", - "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", - "dev": true - }, - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - } + "ms": "2.0.0" } }, - "bonjour-service": { + "node_modules/body-parser/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "node_modules/bonjour-service": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/bonjour-service/-/bonjour-service-1.1.0.tgz", "integrity": "sha512-LVRinRB3k1/K0XzZ2p58COnWvkQknIY6sf0zF2rpErvcJXpMBttEPQSxK+HEXSS9VmpZlDoDnQWv8ftJT20B0Q==", "dev": true, - "requires": { + "dependencies": { "array-flatten": "^2.1.2", "dns-equal": "^1.0.0", "fast-deep-equal": "^3.1.3", "multicast-dns": "^7.2.5" } }, - "boolbase": { + "node_modules/boolbase": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", "dev": true }, - "brace-expansion": { + "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, - "requires": { + "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, - "braces": { + "node_modules/braces": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dev": true, - "requires": { + "dependencies": { "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" } }, - "browserslist": { + "node_modules/browserslist": { "version": "4.21.5", "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.5.tgz", "integrity": "sha512-tUkiguQGW7S3IhB7N+c2MV/HZPSCPAAiYBZXLsBhFB/PCy6ZKKsZrmBayHV9fdGV/ARIfJ14NkxKzRDjvp7L6w==", - "requires": { + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + } + ], + "dependencies": { "caniuse-lite": "^1.0.30001449", "electron-to-chromium": "^1.4.284", "node-releases": "^2.0.8", "update-browserslist-db": "^1.0.10" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" } }, - "browserstack": { + "node_modules/browserstack": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/browserstack/-/browserstack-1.6.0.tgz", "integrity": "sha512-HJDJ0TSlmkwnt9RZ+v5gFpa1XZTBYTj0ywvLwJ3241J7vMw2jAsGNVhKHtmCOyg+VxeLZyaibO9UL71AsUeDIw==", "dev": true, - "requires": { + "dependencies": { "https-proxy-agent": "^2.2.1" } }, - "buffer": { + "node_modules/buffer": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", "dev": true, - "requires": { + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { "base64-js": "^1.3.1", "ieee754": "^1.1.13" } }, - "buffer-from": { + "node_modules/buffer-from": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", "dev": true }, - "builtin-modules": { + "node_modules/builtin-modules": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "builtins": { + "node_modules/builtins": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/builtins/-/builtins-5.0.1.tgz", "integrity": "sha512-qwVpFEHNfhYJIzNRBvd2C1kyo6jz3ZSMPyyuR47OPdiKWlbYnZNyDWuyR175qDnAJLiCo5fBBqPb3RiXgWlkOQ==", "dev": true, - "requires": { + "dependencies": { "semver": "^7.0.0" } }, - "bytes": { + "node_modules/bytes": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", "integrity": "sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.8" + } }, - "cacache": { + "node_modules/cacache": { "version": "17.0.4", "resolved": "https://registry.npmjs.org/cacache/-/cacache-17.0.4.tgz", "integrity": "sha512-Z/nL3gU+zTUjz5pCA5vVjYM8pmaw2kxM7JEiE0fv3w77Wj+sFbi70CrBruUWH0uNcEdvLDixFpgA2JM4F4DBjA==", "dev": true, - "requires": { + "dependencies": { "@npmcli/fs": "^3.1.0", "fs-minipass": "^3.0.0", "glob": "^8.0.1", @@ -3549,216 +4907,302 @@ "tar": "^6.1.11", "unique-filename": "^3.0.0" }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/cacache/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, "dependencies": { - "brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0" - } - }, - "glob": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", - "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^5.0.1", - "once": "^1.3.0" - } - }, - "lru-cache": { - "version": "7.18.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", - "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", - "dev": true - }, - "minimatch": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", - "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", - "dev": true, - "requires": { - "brace-expansion": "^2.0.1" - } - } + "balanced-match": "^1.0.0" + } + }, + "node_modules/cacache/node_modules/glob": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", + "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^5.0.1", + "once": "^1.3.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/cacache/node_modules/lru-cache": { + "version": "7.18.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", + "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/cacache/node_modules/minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" } }, - "call-bind": { + "node_modules/call-bind": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", "dev": true, - "requires": { + "dependencies": { "function-bind": "^1.1.1", "get-intrinsic": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "callsites": { + "node_modules/callsites": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true + "dev": true, + "engines": { + "node": ">=6" + } }, - "camelcase": { + "node_modules/camelcase": { "version": "5.3.1", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true + "dev": true, + "engines": { + "node": ">=6" + } }, - "caniuse-lite": { + "node_modules/caniuse-lite": { "version": "1.0.30001465", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001465.tgz", - "integrity": "sha512-HvjgL3MYAJjceTDCcjRnQGjwUz/5qec9n7JPOzUursUoOTIsYCSDOb1l7RsnZE8mjbxG78zVRCKfrBXyvChBag==" + "integrity": "sha512-HvjgL3MYAJjceTDCcjRnQGjwUz/5qec9n7JPOzUursUoOTIsYCSDOb1l7RsnZE8mjbxG78zVRCKfrBXyvChBag==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + } + ] }, - "caseless": { + "node_modules/caseless": { "version": "0.12.0", "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", "dev": true }, - "chalk": { + "node_modules/chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "requires": { + "dependencies": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" } }, - "chardet": { + "node_modules/chardet": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", "dev": true }, - "chokidar": { + "node_modules/chokidar": { "version": "3.5.3", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", - "dev": true, - "requires": { + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "dependencies": { "anymatch": "~3.1.2", "braces": "~3.0.2", - "fsevents": "~2.3.2", "glob-parent": "~5.1.2", "is-binary-path": "~2.1.0", "is-glob": "~4.0.1", "normalize-path": "~3.0.0", "readdirp": "~3.6.0" }, + "engines": { + "node": ">= 8.10.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/chokidar/node_modules/fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/chokidar/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", "dependencies": { - "fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "dev": true, - "optional": true - }, - "glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "requires": { - "is-glob": "^4.0.1" - } - } + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" } }, - "chownr": { + "node_modules/chownr": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", - "dev": true + "dev": true, + "engines": { + "node": ">=10" + } }, - "chrome-trace-event": { + "node_modules/chrome-trace-event": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", - "dev": true + "dev": true, + "engines": { + "node": ">=6.0" + } }, - "clean-stack": { + "node_modules/clean-stack": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", - "dev": true + "dev": true, + "engines": { + "node": ">=6" + } }, - "cli-cursor": { + "node_modules/cli-cursor": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", "dev": true, - "requires": { + "dependencies": { "restore-cursor": "^3.1.0" + }, + "engines": { + "node": ">=8" } }, - "cli-spinners": { + "node_modules/cli-spinners": { "version": "2.7.0", "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.7.0.tgz", "integrity": "sha512-qu3pN8Y3qHNgE2AFweciB1IfMnmZ/fsNTEE+NOFjmGB2F/7rLhnhzppvpCnN4FovtP26k8lHyy9ptEbNwWFLzw==", - "dev": true + "dev": true, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "cli-width": { + "node_modules/cli-width": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-3.0.0.tgz", "integrity": "sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==", - "dev": true + "dev": true, + "engines": { + "node": ">= 10" + } }, - "cliui": { + "node_modules/cliui": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", - "requires": { + "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.1", "wrap-ansi": "^7.0.0" }, + "engines": { + "node": ">=12" + } + }, + "node_modules/cliui/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/cliui/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dependencies": { - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "requires": { - "ansi-regex": "^5.0.1" - } - } + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" } }, - "clone": { + "node_modules/clone": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.8" + } }, - "clone-deep": { + "node_modules/clone-deep": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", "dev": true, - "requires": { + "dependencies": { "is-plain-object": "^2.0.4", "kind-of": "^6.0.2", "shallow-clone": "^3.0.0" + }, + "engines": { + "node": ">=6" } }, - "codelyzer": { + "node_modules/codelyzer": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/codelyzer/-/codelyzer-6.0.0.tgz", "integrity": "sha512-edJIQCIcxD9DhVSyBEdJ38AbLikm515Wl91t5RDGNT88uA6uQdTm4phTWfn9JhzAI8kXNUcfYyAE90lJElpGtA==", "dev": true, - "requires": { + "dependencies": { "@angular/compiler": "9.0.0", "@angular/core": "9.0.0", "app-root-path": "^3.0.0", @@ -3774,106 +5218,129 @@ "tslib": "^1.10.0", "zone.js": "~0.10.3" }, - "dependencies": { - "@angular/compiler": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-9.0.0.tgz", - "integrity": "sha512-ctjwuntPfZZT2mNj2NDIVu51t9cvbhl/16epc5xEwyzyDt76pX9UgwvY+MbXrf/C/FWwdtmNtfP698BKI+9leQ==", - "dev": true - }, - "@angular/core": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/@angular/core/-/core-9.0.0.tgz", - "integrity": "sha512-6Pxgsrf0qF9iFFqmIcWmjJGkkCaCm6V5QNnxMy2KloO3SDq6QuMVRbN9RtC8Urmo25LP+eZ6ZgYqFYpdD8Hd9w==", - "dev": true - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "sprintf-js": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.2.tgz", - "integrity": "sha512-VE0SOVEHCk7Qc8ulkWw3ntAzXuqf7S2lvwQaDLRnUeIEaKNQJzV6BwmLKhOqT61aGhfUMrXeaBk+oDGCzvhcug==", - "dev": true - }, - "tslib": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.13.0.tgz", - "integrity": "sha512-i/6DQjL8Xf3be4K/E6Wgpekn5Qasl1usyw++dAA35Ue5orEn65VIxOA+YvNNl9HV3qv70T7CNwjODHZrLwvd1Q==", - "dev": true - }, - "zone.js": { - "version": "0.10.3", - "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.10.3.tgz", - "integrity": "sha512-LXVLVEq0NNOqK/fLJo3d0kfzd4sxwn2/h67/02pjCjfKDxgx1i9QqpvtHD8CrBnSSwMw5+dy11O7FRX5mkO7Cg==", - "dev": true - } + "peerDependencies": { + "@angular/compiler": ">=2.3.1 <11.0.0 || >9.0.0-beta <11.0.0 || >9.1.0-beta <11.0.0 || >9.2.0-beta <11.0.0", + "@angular/core": ">=2.3.1 <11.0.0 || >9.0.0-beta <11.0.0 || >9.1.0-beta <11.0.0 || >9.2.0-beta <11.0.0", + "tslint": "^5.0.0 || ^6.0.0" } }, - "color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "requires": { - "color-name": "1.1.3" + "node_modules/codelyzer/node_modules/@angular/compiler": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-9.0.0.tgz", + "integrity": "sha512-ctjwuntPfZZT2mNj2NDIVu51t9cvbhl/16epc5xEwyzyDt76pX9UgwvY+MbXrf/C/FWwdtmNtfP698BKI+9leQ==", + "dev": true, + "peerDependencies": { + "tslib": "^1.10.0" } }, - "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" + "node_modules/codelyzer/node_modules/@angular/core": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/@angular/core/-/core-9.0.0.tgz", + "integrity": "sha512-6Pxgsrf0qF9iFFqmIcWmjJGkkCaCm6V5QNnxMy2KloO3SDq6QuMVRbN9RtC8Urmo25LP+eZ6ZgYqFYpdD8Hd9w==", + "dev": true, + "peerDependencies": { + "rxjs": "^6.5.3", + "tslib": "^1.10.0", + "zone.js": "~0.10.2" + } }, - "color-support": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", - "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", + "node_modules/codelyzer/node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/codelyzer/node_modules/sprintf-js": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.2.tgz", + "integrity": "sha512-VE0SOVEHCk7Qc8ulkWw3ntAzXuqf7S2lvwQaDLRnUeIEaKNQJzV6BwmLKhOqT61aGhfUMrXeaBk+oDGCzvhcug==", + "dev": true + }, + "node_modules/codelyzer/node_modules/tslib": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.13.0.tgz", + "integrity": "sha512-i/6DQjL8Xf3be4K/E6Wgpekn5Qasl1usyw++dAA35Ue5orEn65VIxOA+YvNNl9HV3qv70T7CNwjODHZrLwvd1Q==", "dev": true }, - "colorette": { + "node_modules/codelyzer/node_modules/zone.js": { + "version": "0.10.3", + "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.10.3.tgz", + "integrity": "sha512-LXVLVEq0NNOqK/fLJo3d0kfzd4sxwn2/h67/02pjCjfKDxgx1i9QqpvtHD8CrBnSSwMw5+dy11O7FRX5mkO7Cg==", + "dev": true + }, + "node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" + }, + "node_modules/color-support": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", + "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", + "dev": true, + "bin": { + "color-support": "bin.js" + } + }, + "node_modules/colorette": { "version": "2.0.19", "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.19.tgz", "integrity": "sha512-3tlv/dIP7FWvj3BsbHrGLJ6l/oKh1O3TcgBqMn+yyCagOxc23fyzDS6HypQbgxWbkpDnf52p1LuR4eWDQ/K9WQ==", "dev": true }, - "combined-stream": { + "node_modules/combined-stream": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", "dev": true, - "requires": { + "dependencies": { "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" } }, - "commander": { + "node_modules/commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", "dev": true }, - "commondir": { + "node_modules/commondir": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==", "dev": true }, - "compressible": { + "node_modules/compressible": { "version": "2.0.18", "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz", "integrity": "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==", "dev": true, - "requires": { + "dependencies": { "mime-db": ">= 1.43.0 < 2" + }, + "engines": { + "node": ">= 0.6" } }, - "compression": { + "node_modules/compression": { "version": "1.7.4", "resolved": "https://registry.npmjs.org/compression/-/compression-1.7.4.tgz", "integrity": "sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==", "dev": true, - "requires": { + "dependencies": { "accepts": "~1.3.5", "bytes": "3.0.0", "compressible": "~2.0.16", @@ -3882,215 +5349,282 @@ "safe-buffer": "5.1.2", "vary": "~1.1.2" }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/compression/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - } + "ms": "2.0.0" } }, - "concat-map": { + "node_modules/compression/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", "dev": true }, - "connect-history-api-fallback": { + "node_modules/connect-history-api-fallback": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-2.0.0.tgz", "integrity": "sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.8" + } }, - "console-control-strings": { + "node_modules/console-control-strings": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==", "dev": true }, - "content-disposition": { + "node_modules/content-disposition": { "version": "0.5.4", "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", "dev": true, - "requires": { + "dependencies": { "safe-buffer": "5.2.1" }, - "dependencies": { - "safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true - } + "engines": { + "node": ">= 0.6" } }, - "content-type": { + "node_modules/content-disposition/node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/content-type": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.6" + } }, - "convert-source-map": { + "node_modules/convert-source-map": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==" }, - "cookie": { + "node_modules/cookie": { "version": "0.5.0", "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.6" + } }, - "cookie-signature": { + "node_modules/cookie-signature": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==", "dev": true }, - "copy-anything": { + "node_modules/copy-anything": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/copy-anything/-/copy-anything-2.0.6.tgz", "integrity": "sha512-1j20GZTsvKNkc4BY3NpMOM8tt///wY3FpIzozTOFO2ffuZcV61nojHXVKIy3WM+7ADCy5FVhdZYHYDdgTU0yJw==", "dev": true, - "requires": { + "dependencies": { "is-what": "^3.14.1" + }, + "funding": { + "url": "https://github.com/sponsors/mesqueeb" } }, - "copy-webpack-plugin": { + "node_modules/copy-webpack-plugin": { "version": "11.0.0", "resolved": "https://registry.npmjs.org/copy-webpack-plugin/-/copy-webpack-plugin-11.0.0.tgz", "integrity": "sha512-fX2MWpamkW0hZxMEg0+mYnA40LTosOSa5TqZ9GYIBzyJa9C3QUaMPSE2xAi/buNr8u89SfD9wHSQVBzrRa/SOQ==", "dev": true, - "requires": { + "dependencies": { "fast-glob": "^3.2.11", "glob-parent": "^6.0.1", "globby": "^13.1.1", "normalize-path": "^3.0.0", "schema-utils": "^4.0.0", "serialize-javascript": "^6.0.0" + }, + "engines": { + "node": ">= 14.15.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.1.0" } }, - "core-js-compat": { + "node_modules/core-js-compat": { "version": "3.29.1", "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.29.1.tgz", "integrity": "sha512-QmchCua884D8wWskMX8tW5ydINzd8oSJVx38lx/pVkFGqztxt73GYre3pm/hyYq8bPf+MW5In4I/uRShFDsbrA==", "dev": true, - "requires": { + "dependencies": { "browserslist": "^4.21.5" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" } }, - "core-util-is": { + "node_modules/core-util-is": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", "dev": true }, - "cosmiconfig": { + "node_modules/cosmiconfig": { "version": "7.1.0", "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz", "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==", "dev": true, - "requires": { + "dependencies": { "@types/parse-json": "^4.0.0", "import-fresh": "^3.2.1", "parse-json": "^5.0.0", "path-type": "^4.0.0", "yaml": "^1.10.0" + }, + "engines": { + "node": ">=10" } }, - "critters": { + "node_modules/critters": { "version": "0.0.16", "resolved": "https://registry.npmjs.org/critters/-/critters-0.0.16.tgz", "integrity": "sha512-JwjgmO6i3y6RWtLYmXwO5jMd+maZt8Tnfu7VVISmEWyQqfLpB8soBswf8/2bu6SBXxtKA68Al3c+qIG1ApT68A==", "dev": true, - "requires": { + "dependencies": { "chalk": "^4.1.0", "css-select": "^4.2.0", "parse5": "^6.0.1", "parse5-htmlparser2-tree-adapter": "^6.0.1", "postcss": "^8.3.7", "pretty-bytes": "^5.3.0" + } + }, + "node_modules/critters/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/critters/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/critters/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/critters/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/critters/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/critters/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "cross-spawn": { + "node_modules/cross-spawn": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", "dev": true, - "requires": { + "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" } }, - "css-loader": { + "node_modules/css-loader": { "version": "6.7.3", "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-6.7.3.tgz", "integrity": "sha512-qhOH1KlBMnZP8FzRO6YCH9UHXQhVMcEGLyNdb7Hv2cpcmJbW0YrddO+tG1ab5nT41KpHIYGsbeHqxB9xPu1pKQ==", "dev": true, - "requires": { + "dependencies": { "icss-utils": "^5.1.0", "postcss": "^8.4.19", "postcss-modules-extract-imports": "^3.0.0", @@ -4100,87 +5634,119 @@ "postcss-value-parser": "^4.2.0", "semver": "^7.3.8" }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + } + }, + "node_modules/css-loader/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/css-loader/node_modules/semver": { + "version": "7.3.8", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", + "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "dev": true, "dependencies": { - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - } + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" } }, - "css-select": { + "node_modules/css-loader/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/css-select": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz", "integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==", "dev": true, - "requires": { + "dependencies": { "boolbase": "^1.0.0", "css-what": "^6.0.1", "domhandler": "^4.3.1", "domutils": "^2.8.0", "nth-check": "^2.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" } }, - "css-selector-tokenizer": { + "node_modules/css-selector-tokenizer": { "version": "0.7.3", "resolved": "https://registry.npmjs.org/css-selector-tokenizer/-/css-selector-tokenizer-0.7.3.tgz", "integrity": "sha512-jWQv3oCEL5kMErj4wRnK/OPoBi0D+P1FR2cDCKYPaMeD2eW3/mttav8HT4hT1CKopiJI/psEULjkClhvJo4Lvg==", "dev": true, - "requires": { + "dependencies": { "cssesc": "^3.0.0", "fastparse": "^1.1.2" } }, - "css-what": { + "node_modules/css-what": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz", "integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==", - "dev": true + "dev": true, + "engines": { + "node": ">= 6" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } }, - "cssauron": { + "node_modules/cssauron": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/cssauron/-/cssauron-1.4.0.tgz", "integrity": "sha1-pmAt/34EqDBtwNuaVR6S6LVmKtg=", "dev": true, - "requires": { + "dependencies": { "through": "X.X.X" } }, - "cssesc": { + "node_modules/cssesc": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", - "dev": true + "dev": true, + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } }, - "d3-array": { + "node_modules/d3-array": { "version": "2.9.1", "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-2.9.1.tgz", "integrity": "sha512-Ob7RdOtkqsjx1NWyQHMFLtCSk6/aKTxDdC4ZIolX+O+mDD2RzrsYgAyc0WGAlfYFVELLSilS7w8BtE3PKM8bHg==" }, - "d3-brush": { + "node_modules/d3-brush": { "version": "1.1.6", "resolved": "https://registry.npmjs.org/d3-brush/-/d3-brush-1.1.6.tgz", "integrity": "sha512-7RW+w7HfMCPyZLifTz/UnJmI5kdkXtpCbombUSs8xniAyo0vIbrDzDwUJB6eJOgl9u5DQOt2TQlYumxzD1SvYA==", - "requires": { + "dependencies": { "d3-dispatch": "1", "d3-drag": "1", "d3-interpolate": "1", @@ -4188,58 +5754,58 @@ "d3-transition": "1" } }, - "d3-color": { + "node_modules/d3-color": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-1.4.1.tgz", "integrity": "sha512-p2sTHSLCJI2QKunbGb7ocOh7DgTAn8IrLx21QRc/BSnodXM4sv6aLQlnfpvehFMLZEfBc6g9pH9SWQccFYfJ9Q==" }, - "d3-dispatch": { + "node_modules/d3-dispatch": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/d3-dispatch/-/d3-dispatch-1.0.6.tgz", "integrity": "sha512-fVjoElzjhCEy+Hbn8KygnmMS7Or0a9sI2UzGwoB7cCtvI1XpVN9GpoYlnb3xt2YV66oXYb1fLJ8GMvP4hdU1RA==" }, - "d3-drag": { + "node_modules/d3-drag": { "version": "1.2.5", "resolved": "https://registry.npmjs.org/d3-drag/-/d3-drag-1.2.5.tgz", "integrity": "sha512-rD1ohlkKQwMZYkQlYVCrSFxsWPzI97+W+PaEIBNTMxRuxz9RF0Hi5nJWHGVJ3Om9d2fRTe1yOBINJyy/ahV95w==", - "requires": { + "dependencies": { "d3-dispatch": "1", "d3-selection": "1" } }, - "d3-ease": { + "node_modules/d3-ease": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/d3-ease/-/d3-ease-1.0.7.tgz", "integrity": "sha512-lx14ZPYkhNx0s/2HX5sLFUI3mbasHjSSpwO/KaaNACweVwxUruKyWVcb293wMv1RqTPZyZ8kSZ2NogUZNcLOFQ==" }, - "d3-format": { + "node_modules/d3-format": { "version": "1.4.5", "resolved": "https://registry.npmjs.org/d3-format/-/d3-format-1.4.5.tgz", "integrity": "sha512-J0piedu6Z8iB6TbIGfZgDzfXxUFN3qQRMofy2oPdXzQibYGqPB/9iMcxr/TGalU+2RsyDO+U4f33id8tbnSRMQ==" }, - "d3-hierarchy": { + "node_modules/d3-hierarchy": { "version": "1.1.9", "resolved": "https://registry.npmjs.org/d3-hierarchy/-/d3-hierarchy-1.1.9.tgz", "integrity": "sha512-j8tPxlqh1srJHAtxfvOUwKNYJkQuBFdM1+JAUfq6xqH5eAqf93L7oG1NVqDa4CpFZNvnNKtCYEUC8KY9yEn9lQ==" }, - "d3-interpolate": { + "node_modules/d3-interpolate": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-1.4.0.tgz", "integrity": "sha512-V9znK0zc3jOPV4VD2zZn0sDhZU3WAE2bmlxdIwwQPPzPjvyLkd8B3JUVdS1IDUFDkWZ72c9qnv1GK2ZagTZ8EA==", - "requires": { + "dependencies": { "d3-color": "1" } }, - "d3-path": { + "node_modules/d3-path": { "version": "1.0.9", "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-1.0.9.tgz", "integrity": "sha512-VLaYcn81dtHVTjEHd8B+pbe9yHWpXKZUC87PzoFmsFrJqgFwDe/qxfp5MlfsfM1V5E/iVt0MmEbWQ7FVIXh/bg==" }, - "d3-scale": { + "node_modules/d3-scale": { "version": "3.2.3", "resolved": "https://registry.npmjs.org/d3-scale/-/d3-scale-3.2.3.tgz", "integrity": "sha512-8E37oWEmEzj57bHcnjPVOBS3n4jqakOeuv1EDdQSiSrYnMCBdMd3nc4HtKk7uia8DUHcY/CGuJ42xxgtEYrX0g==", - "requires": { + "dependencies": { "d3-array": "^2.3.0", "d3-format": "1 - 2", "d3-interpolate": "1.2.0 - 2", @@ -4247,49 +5813,47 @@ "d3-time-format": "2 - 3" } }, - "d3-selection": { + "node_modules/d3-selection": { "version": "1.4.2", "resolved": "https://registry.npmjs.org/d3-selection/-/d3-selection-1.4.2.tgz", "integrity": "sha512-SJ0BqYihzOjDnnlfyeHT0e30k0K1+5sR3d5fNueCNeuhZTnGw4M4o8mqJchSwgKMXCNFo+e2VTChiSJ0vYtXkg==" }, - "d3-shape": { + "node_modules/d3-shape": { "version": "1.3.7", "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-1.3.7.tgz", "integrity": "sha512-EUkvKjqPFUAZyOlhY5gzCxCeI0Aep04LwIRpsZ/mLFelJiUfnK56jo5JMDSE7yyP2kLSb6LtF+S5chMk7uqPqw==", - "requires": { + "dependencies": { "d3-path": "1" } }, - "d3-time": { + "node_modules/d3-time": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-2.0.0.tgz", "integrity": "sha512-2mvhstTFcMvwStWd9Tj3e6CEqtOivtD8AUiHT8ido/xmzrI9ijrUUihZ6nHuf/vsScRBonagOdj0Vv+SEL5G3Q==" }, - "d3-time-format": { + "node_modules/d3-time-format": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/d3-time-format/-/d3-time-format-2.3.0.tgz", "integrity": "sha512-guv6b2H37s2Uq/GefleCDtbe0XZAuy7Wa49VGkPVPMfLL9qObgBST3lEHJBMUp8S7NdLQAGIvr2KXk8Hc98iKQ==", - "requires": { - "d3-time": "1" - }, "dependencies": { - "d3-time": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-1.1.0.tgz", - "integrity": "sha512-Xh0isrZ5rPYYdqhAVk8VLnMEidhz5aP7htAADH6MfzgmmicPkTo8LhkLxci61/lCB7n7UmE3bN0leRt+qvkLxA==" - } + "d3-time": "1" } }, - "d3-timer": { + "node_modules/d3-time-format/node_modules/d3-time": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-1.1.0.tgz", + "integrity": "sha512-Xh0isrZ5rPYYdqhAVk8VLnMEidhz5aP7htAADH6MfzgmmicPkTo8LhkLxci61/lCB7n7UmE3bN0leRt+qvkLxA==" + }, + "node_modules/d3-timer": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/d3-timer/-/d3-timer-1.0.10.tgz", "integrity": "sha512-B1JDm0XDaQC+uvo4DT79H0XmBskgS3l6Ve+1SBCfxgmtIb1AVrPIoqd+nPSv+loMX8szQ0sVUhGngL7D5QPiXw==" }, - "d3-transition": { + "node_modules/d3-transition": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/d3-transition/-/d3-transition-1.3.2.tgz", "integrity": "sha512-sc0gRU4PFqZ47lPVHloMn9tlPcv8jxgOQg+0zjhfZXMQuvppjG6YuwdMBE0TuqCZjeJkLecku/l9R0JPcRhaDA==", - "requires": { + "dependencies": { "d3-color": "1", "d3-dispatch": "1", "d3-ease": "1", @@ -4298,387 +5862,506 @@ "d3-timer": "1" } }, - "damerau-levenshtein": { + "node_modules/damerau-levenshtein": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.6.tgz", "integrity": "sha512-JVrozIeElnj3QzfUIt8tB8YMluBJom4Vw9qTPpjGYQ9fYlB3D/rb6OordUxf3xeFB35LKWs0xqcO5U6ySvBtug==", "dev": true }, - "dashdash": { + "node_modules/dashdash": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", "dev": true, - "requires": { + "dependencies": { "assert-plus": "^1.0.0" + }, + "engines": { + "node": ">=0.10" } }, - "debug": { + "node_modules/debug": { "version": "4.3.4", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "requires": { + "dependencies": { "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } } }, - "decamelize": { + "node_modules/decamelize": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "default-gateway": { + "node_modules/default-gateway": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/default-gateway/-/default-gateway-6.0.3.tgz", "integrity": "sha512-fwSOJsbbNzZ/CUFpqFBqYfYNLj1NbMPm8MMCIzHjC83iSJRBEGmDUxU+WP661BaBQImeC2yHwXtz+P/O9o+XEg==", "dev": true, - "requires": { + "dependencies": { "execa": "^5.0.0" + }, + "engines": { + "node": ">= 10" } }, - "defaults": { + "node_modules/defaults": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz", "integrity": "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==", "dev": true, - "requires": { + "dependencies": { "clone": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "define-lazy-prop": { + "node_modules/define-lazy-prop": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "delayed-stream": { + "node_modules/delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.4.0" + } }, - "delegates": { + "node_modules/delegates": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==", "dev": true }, - "depd": { + "node_modules/depd": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.8" + } }, - "dependency-graph": { + "node_modules/dependency-graph": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-0.11.0.tgz", "integrity": "sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==", - "dev": true + "engines": { + "node": ">= 0.6.0" + } }, - "destroy": { + "node_modules/destroy": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } }, - "detect-node": { + "node_modules/detect-node": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==", "dev": true }, - "diff": { + "node_modules/diff": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.3.1" + } }, - "dir-glob": { + "node_modules/dir-glob": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", "dev": true, - "requires": { + "dependencies": { "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "dns-equal": { + "node_modules/dns-equal": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz", "integrity": "sha512-z+paD6YUQsk+AbGCEM4PrOXSss5gd66QfcVBFTKR/HpFL9jCqikS94HYwKww6fQyO7IxrIIyUu+g0Ka9tUS2Cg==", "dev": true }, - "dns-packet": { + "node_modules/dns-packet": { "version": "5.4.0", "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-5.4.0.tgz", "integrity": "sha512-EgqGeaBB8hLiHLZtp/IbaDQTL8pZ0+IvwzSHA6d7VyMDM+B9hgddEMa9xjK5oYnw0ci0JQ6g2XCD7/f6cafU6g==", "dev": true, - "requires": { + "dependencies": { "@leichtgewicht/ip-codec": "^2.0.1" + }, + "engines": { + "node": ">=6" } }, - "dom-serializer": { + "node_modules/dom-serializer": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz", "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==", "dev": true, - "requires": { + "dependencies": { "domelementtype": "^2.0.1", "domhandler": "^4.2.0", "entities": "^2.0.0" + }, + "funding": { + "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" } }, - "domelementtype": { + "node_modules/domelementtype": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", - "dev": true + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ] }, - "domhandler": { + "node_modules/domhandler": { "version": "4.3.1", "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", "dev": true, - "requires": { + "dependencies": { "domelementtype": "^2.2.0" + }, + "engines": { + "node": ">= 4" + }, + "funding": { + "url": "https://github.com/fb55/domhandler?sponsor=1" } }, - "domutils": { + "node_modules/domutils": { "version": "2.8.0", "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", "dev": true, - "requires": { + "dependencies": { "dom-serializer": "^1.0.1", "domelementtype": "^2.2.0", "domhandler": "^4.2.0" + }, + "funding": { + "url": "https://github.com/fb55/domutils?sponsor=1" } }, - "ecc-jsbn": { + "node_modules/ecc-jsbn": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", "dev": true, - "requires": { + "dependencies": { "jsbn": "~0.1.0", "safer-buffer": "^2.1.0" } }, - "ee-first": { + "node_modules/ee-first": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", "dev": true }, - "electron-to-chromium": { + "node_modules/electron-to-chromium": { "version": "1.4.328", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.328.tgz", "integrity": "sha512-DE9tTy2PNmy1v55AZAO542ui+MLC2cvINMK4P2LXGsJdput/ThVG9t+QGecPuAZZSgC8XoI+Jh9M1OG9IoNSCw==" }, - "emoji-regex": { + "node_modules/emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" }, - "emojis-list": { + "node_modules/emojis-list": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==", - "dev": true + "dev": true, + "engines": { + "node": ">= 4" + } }, - "encodeurl": { + "node_modules/encodeurl": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.8" + } }, - "encoding": { + "node_modules/encoding": { "version": "0.1.13", "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz", "integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==", "dev": true, "optional": true, - "requires": { + "dependencies": { "iconv-lite": "^0.6.2" - }, + } + }, + "node_modules/encoding/node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "dev": true, + "optional": true, "dependencies": { - "iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "dev": true, - "optional": true, - "requires": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - } - } + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "enhanced-resolve": { + "node_modules/enhanced-resolve": { "version": "5.12.0", "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.12.0.tgz", "integrity": "sha512-QHTXI/sZQmko1cbDoNAa3mJ5qhWUUNAq3vR0/YiD379fWQrcfuoX1+HW2S0MTt7XmoPLapdaDKUtelUSPic7hQ==", "dev": true, - "requires": { + "dependencies": { "graceful-fs": "^4.2.4", "tapable": "^2.2.0" + }, + "engines": { + "node": ">=10.13.0" } }, - "entities": { + "node_modules/entities": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", - "dev": true + "dev": true, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } }, - "env-paths": { + "node_modules/env-paths": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", - "dev": true + "dev": true, + "engines": { + "node": ">=6" + } }, - "err-code": { + "node_modules/err-code": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/err-code/-/err-code-2.0.3.tgz", "integrity": "sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==", "dev": true }, - "errno": { + "node_modules/errno": { "version": "0.1.8", "resolved": "https://registry.npmjs.org/errno/-/errno-0.1.8.tgz", "integrity": "sha512-dJ6oBr5SQ1VSd9qkk7ByRgb/1SH4JZjCHSW/mr63/QcXO9zLVxvJ6Oy13nio03rxpSnVDDjFor75SjVeZWPW/A==", "dev": true, "optional": true, - "requires": { + "dependencies": { "prr": "~1.0.1" + }, + "bin": { + "errno": "cli.js" } }, - "error-ex": { + "node_modules/error-ex": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", "dev": true, - "requires": { + "dependencies": { "is-arrayish": "^0.2.1" } }, - "es-module-lexer": { + "node_modules/es-module-lexer": { "version": "0.9.3", "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-0.9.3.tgz", "integrity": "sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==", "dev": true }, - "es6-promise": { + "node_modules/es6-promise": { "version": "4.2.8", "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz", "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==", "dev": true }, - "es6-promisify": { + "node_modules/es6-promisify": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/es6-promisify/-/es6-promisify-5.0.0.tgz", "integrity": "sha1-UQnWLz5W6pZ8S2NQWu8IKRyKUgM=", "dev": true, - "requires": { + "dependencies": { "es6-promise": "^4.0.3" } }, - "esbuild-wasm": { + "node_modules/esbuild-wasm": { "version": "0.17.8", "resolved": "https://registry.npmjs.org/esbuild-wasm/-/esbuild-wasm-0.17.8.tgz", "integrity": "sha512-zCmpxv95E0FuCmvdw1K836UHnj4EdiQnFfjTby35y3LAjRPtXMj3sbHDRHjbD8Mqg5lTwq3knacr/1qIFU51CQ==", - "dev": true + "dev": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + } }, - "escalade": { + "node_modules/escalade": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==" + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "engines": { + "node": ">=6" + } }, - "escape-html": { + "node_modules/escape-html": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", "dev": true }, - "escape-string-regexp": { + "node_modules/escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "engines": { + "node": ">=0.8.0" + } }, - "eslint-scope": { + "node_modules/eslint-scope": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", "dev": true, - "requires": { + "dependencies": { "esrecurse": "^4.3.0", "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" } }, - "esprima": { + "node_modules/esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true + "dev": true, + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } }, - "esrecurse": { + "node_modules/esrecurse": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", "dev": true, - "requires": { + "dependencies": { "estraverse": "^5.2.0" }, - "dependencies": { - "estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true - } + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" } }, - "estraverse": { + "node_modules/estraverse": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "dev": true + "dev": true, + "engines": { + "node": ">=4.0" + } }, - "esutils": { + "node_modules/esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "etag": { + "node_modules/etag": { "version": "1.8.1", "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.6" + } }, - "eventemitter-asyncresource": { + "node_modules/eventemitter-asyncresource": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/eventemitter-asyncresource/-/eventemitter-asyncresource-1.0.0.tgz", "integrity": "sha512-39F7TBIV0G7gTelxwbEqnwhp90eqCPON1k0NwNfwhgKn4Co4ybUbj2pECcXT0B3ztRKZ7Pw1JujUUgmQJHcVAQ==", "dev": true }, - "eventemitter3": { + "node_modules/eventemitter3": { "version": "4.0.7", "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==", "dev": true }, - "events": { + "node_modules/events": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", - "dev": true - }, - "execa": { + "dev": true, + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/execa": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", "dev": true, - "requires": { + "dependencies": { "cross-spawn": "^7.0.3", "get-stream": "^6.0.0", "human-signals": "^2.1.0", @@ -4688,20 +6371,29 @@ "onetime": "^5.1.2", "signal-exit": "^3.0.3", "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" } }, - "exit": { + "node_modules/exit": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.8.0" + } }, - "express": { + "node_modules/express": { "version": "4.18.2", "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz", "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==", "dev": true, - "requires": { + "dependencies": { "accepts": "~1.3.8", "array-flatten": "1.1.1", "body-parser": "1.20.1", @@ -4734,147 +6426,183 @@ "utils-merge": "1.0.1", "vary": "~1.1.2" }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/express/node_modules/array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", + "dev": true + }, + "node_modules/express/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, "dependencies": { - "array-flatten": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", - "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", - "dev": true - }, - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } + "ms": "2.0.0" + } + }, + "node_modules/express/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "node_modules/express/node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true + { + "type": "patreon", + "url": "https://www.patreon.com/feross" }, - "safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true + { + "type": "consulting", + "url": "https://feross.org/support" } - } + ] }, - "extend": { + "node_modules/extend": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", "dev": true }, - "external-editor": { + "node_modules/external-editor": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz", "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==", "dev": true, - "requires": { + "dependencies": { "chardet": "^0.7.0", "iconv-lite": "^0.4.24", "tmp": "^0.0.33" + }, + "engines": { + "node": ">=4" } }, - "extsprintf": { + "node_modules/extsprintf": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", - "dev": true + "dev": true, + "engines": [ + "node >=0.6.0" + ] }, - "fast-deep-equal": { + "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" }, - "fast-glob": { + "node_modules/fast-glob": { "version": "3.2.12", "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", "dev": true, - "requires": { + "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", "glob-parent": "^5.1.2", "merge2": "^1.3.0", "micromatch": "^4.0.4" }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, "dependencies": { - "glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "requires": { - "is-glob": "^4.0.1" - } - } + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" } }, - "fast-json-stable-stringify": { + "node_modules/fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", "dev": true }, - "fastparse": { + "node_modules/fastparse": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/fastparse/-/fastparse-1.1.2.tgz", "integrity": "sha512-483XLLxTVIwWK3QTrMGRqUfUpoOs/0hbQrl2oz4J0pAcm3A3bu84wxTFqGqkJzewCLdME38xJLJAxBABfQT8sQ==", "dev": true }, - "fastq": { + "node_modules/fastq": { "version": "1.15.0", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", "dev": true, - "requires": { + "dependencies": { "reusify": "^1.0.4" } }, - "faye-websocket": { + "node_modules/faye-websocket": { "version": "0.11.4", "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.4.tgz", "integrity": "sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g==", "dev": true, - "requires": { + "dependencies": { "websocket-driver": ">=0.5.1" + }, + "engines": { + "node": ">=0.8.0" } }, - "figures": { + "node_modules/figures": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", "dev": true, - "requires": { + "dependencies": { "escape-string-regexp": "^1.0.5" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "file-saver": { + "node_modules/file-saver": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/file-saver/-/file-saver-2.0.5.tgz", "integrity": "sha512-P9bmyZ3h/PRG+Nzga+rbdI4OEpNDzAVyy74uVO9ATgzLK6VtAsYybF/+TOCvrc0MO793d6+42lLyZTw7/ArVzA==" }, - "fill-range": { + "node_modules/fill-range": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dev": true, - "requires": { + "dependencies": { "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" } }, - "finalhandler": { + "node_modules/finalhandler": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", "dev": true, - "requires": { + "dependencies": { "debug": "2.6.9", "encodeurl": "~1.0.2", "escape-html": "~1.0.3", @@ -4883,124 +6611,178 @@ "statuses": "2.0.1", "unpipe": "~1.0.0" }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/finalhandler/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - } + "ms": "2.0.0" } }, - "find-cache-dir": { + "node_modules/finalhandler/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "node_modules/find-cache-dir": { "version": "3.3.2", "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz", "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==", "dev": true, - "requires": { + "dependencies": { "commondir": "^1.0.1", "make-dir": "^3.0.2", "pkg-dir": "^4.1.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/avajs/find-cache-dir?sponsor=1" } }, - "find-up": { + "node_modules/find-up": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, - "requires": { + "dependencies": { "locate-path": "^5.0.0", "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "follow-redirects": { + "node_modules/follow-redirects": { "version": "1.15.2", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==", - "dev": true + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } }, - "forever-agent": { + "node_modules/forever-agent": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", - "dev": true + "dev": true, + "engines": { + "node": "*" + } }, - "form-data": { + "node_modules/form-data": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", "dev": true, - "requires": { + "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.6", "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 0.12" } }, - "forwarded": { + "node_modules/forwarded": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.6" + } }, - "fraction.js": { + "node_modules/fraction.js": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz", "integrity": "sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA==", - "dev": true + "dev": true, + "engines": { + "node": "*" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/infusion" + } }, - "fresh": { + "node_modules/fresh": { "version": "0.5.2", "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.6" + } }, - "fs-minipass": { + "node_modules/fs-minipass": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-3.0.1.tgz", "integrity": "sha512-MhaJDcFRTuLidHrIttu0RDGyyXs/IYHVmlcxfLAEFIWjc1vdLAkdwT7Ace2u7DbitWC0toKMl5eJZRYNVreIMw==", "dev": true, - "requires": { + "dependencies": { "minipass": "^4.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, - "fs-monkey": { + "node_modules/fs-monkey": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/fs-monkey/-/fs-monkey-1.0.3.tgz", "integrity": "sha512-cybjIfiiE+pTWicSCLFHSrXZ6EilF30oh91FDP9S2B051prEa7QWfrVTQm10/dDpswBDXZugPa1Ogu8Yh+HV0Q==", "dev": true }, - "fs.realpath": { + "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" }, - "fsevents": { + "node_modules/fsevents": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.3.tgz", "integrity": "sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ==", - "optional": true + "deprecated": "\"Please update to latest v2.3 or v2.2\"", + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } }, - "function-bind": { + "node_modules/function-bind": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", "dev": true }, - "gauge": { + "node_modules/gauge": { "version": "4.0.4", "resolved": "https://registry.npmjs.org/gauge/-/gauge-4.0.4.tgz", "integrity": "sha512-f9m+BEN5jkg6a0fZjleidjN51VE1X+mPFQ2DJ0uv1V39oCLCbsGe6yjbBnp7eK7z/+GAon99a3nHuqbuuthyPg==", "dev": true, - "requires": { + "dependencies": { "aproba": "^1.0.3 || ^2.0.0", "color-support": "^1.1.3", "console-control-strings": "^1.1.0", @@ -5010,503 +6792,660 @@ "strip-ansi": "^6.0.1", "wide-align": "^1.1.5" }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/gauge/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/gauge/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, "dependencies": { - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1" - } - } + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" } }, - "gensync": { + "node_modules/gensync": { "version": "1.0.0-beta.2", "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==" + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "engines": { + "node": ">=6.9.0" + } }, - "get-caller-file": { + "node_modules/get-caller-file": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==" + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } }, - "get-intrinsic": { + "node_modules/get-intrinsic": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.0.tgz", "integrity": "sha512-L049y6nFOuom5wGyRc3/gdTLO94dySVKRACj1RmJZBQXlbTMhtNIgkWkUHq+jYmZvKf14EW1EoJnnjbmoHij0Q==", "dev": true, - "requires": { + "dependencies": { "function-bind": "^1.1.1", "has": "^1.0.3", "has-symbols": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "get-package-type": { + "node_modules/get-package-type": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", - "dev": true + "dev": true, + "engines": { + "node": ">=8.0.0" + } }, - "get-stream": { + "node_modules/get-stream": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", - "dev": true + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "getpass": { + "node_modules/getpass": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", "dev": true, - "requires": { + "dependencies": { "assert-plus": "^1.0.0" } }, - "glob": { + "node_modules/glob": { "version": "7.1.6", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", "dev": true, - "requires": { + "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", "minimatch": "^3.0.4", "once": "^1.3.0", "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "glob-parent": { + "node_modules/glob-parent": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", "dev": true, - "requires": { + "dependencies": { "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" } }, - "glob-to-regexp": { + "node_modules/glob-to-regexp": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", "dev": true }, - "globals": { + "node_modules/globals": { "version": "11.12.0", "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==" + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "engines": { + "node": ">=4" + } }, - "globby": { + "node_modules/globby": { "version": "13.1.3", "resolved": "https://registry.npmjs.org/globby/-/globby-13.1.3.tgz", "integrity": "sha512-8krCNHXvlCgHDpegPzleMq07yMYTO2sXKASmZmquEYWEmCx6J5UTRbp5RwMJkTJGtcQ44YpiUYUiN0b9mzy8Bw==", "dev": true, - "requires": { + "dependencies": { "dir-glob": "^3.0.1", "fast-glob": "^3.2.11", "ignore": "^5.2.0", "merge2": "^1.4.1", "slash": "^4.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "graceful-fs": { + "node_modules/graceful-fs": { "version": "4.2.10", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", "dev": true }, - "handle-thing": { + "node_modules/handle-thing": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-2.0.1.tgz", "integrity": "sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg==", "dev": true }, - "har-schema": { + "node_modules/har-schema": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", - "dev": true + "dev": true, + "engines": { + "node": ">=4" + } }, - "har-validator": { + "node_modules/har-validator": { "version": "5.1.5", "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz", "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==", + "deprecated": "this library is no longer supported", "dev": true, - "requires": { + "dependencies": { "ajv": "^6.12.3", "har-schema": "^2.0.0" }, + "engines": { + "node": ">=6" + } + }, + "node_modules/har-validator/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, "dependencies": { - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - } + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" } }, - "has": { + "node_modules/has": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", "dev": true, - "requires": { + "dependencies": { "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" } }, - "has-ansi": { + "node_modules/has-ansi": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", "dev": true, - "requires": { + "dependencies": { "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "has-flag": { + "node_modules/has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "engines": { + "node": ">=4" + } }, - "has-symbols": { + "node_modules/has-symbols": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "has-unicode": { + "node_modules/has-unicode": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==", "dev": true }, - "hdr-histogram-js": { + "node_modules/hdr-histogram-js": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/hdr-histogram-js/-/hdr-histogram-js-2.0.3.tgz", "integrity": "sha512-Hkn78wwzWHNCp2uarhzQ2SGFLU3JY8SBDDd3TAABK4fc30wm+MuPOrg5QVFVfkKOQd6Bfz3ukJEI+q9sXEkK1g==", "dev": true, - "requires": { + "dependencies": { "@assemblyscript/loader": "^0.10.1", "base64-js": "^1.2.0", "pako": "^1.0.3" } }, - "hdr-histogram-percentiles-obj": { + "node_modules/hdr-histogram-percentiles-obj": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/hdr-histogram-percentiles-obj/-/hdr-histogram-percentiles-obj-3.0.0.tgz", "integrity": "sha512-7kIufnBqdsBGcSZLPJwqHT3yhk1QTsSlFsVD3kx5ixH/AlgBs9yM1q6DPhXZ8f8gtdqgh7N7/5btRLpQsS2gHw==", "dev": true }, - "hosted-git-info": { + "node_modules/hosted-git-info": { "version": "6.1.1", "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-6.1.1.tgz", "integrity": "sha512-r0EI+HBMcXadMrugk0GCQ+6BQV39PiWAZVfq7oIckeGiN7sjRGyQxPdft3nQekFTCQbYxLBH+/axZMeH8UX6+w==", "dev": true, - "requires": { + "dependencies": { "lru-cache": "^7.5.1" }, - "dependencies": { - "lru-cache": { - "version": "7.18.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", - "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", - "dev": true - } + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/hosted-git-info/node_modules/lru-cache": { + "version": "7.18.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", + "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", + "dev": true, + "engines": { + "node": ">=12" } }, - "hpack.js": { + "node_modules/hpack.js": { "version": "2.1.6", "resolved": "https://registry.npmjs.org/hpack.js/-/hpack.js-2.1.6.tgz", "integrity": "sha512-zJxVehUdMGIKsRaNt7apO2Gqp0BdqW5yaiGHXXmbpvxgBYVZnAql+BJb4RO5ad2MgpbZKn5G6nMnegrH1FcNYQ==", "dev": true, - "requires": { + "dependencies": { "inherits": "^2.0.1", "obuf": "^1.0.0", "readable-stream": "^2.0.1", "wbuf": "^1.1.0" } }, - "html-entities": { + "node_modules/html-entities": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.3.3.tgz", "integrity": "sha512-DV5Ln36z34NNTDgnz0EWGBLZENelNAtkiFA4kyNOG2tDI6Mz1uSWiq1wAKdyjnJwyDiDO7Fa2SO1CTxPXL8VxA==", "dev": true }, - "http-cache-semantics": { + "node_modules/http-cache-semantics": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz", "integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==", "dev": true }, - "http-deceiver": { + "node_modules/http-deceiver": { "version": "1.2.7", "resolved": "https://registry.npmjs.org/http-deceiver/-/http-deceiver-1.2.7.tgz", "integrity": "sha512-LmpOGxTfbpgtGVxJrj5k7asXHCgNZp5nLfp+hWc8QQRqtb7fUy6kRY3BO1h9ddF6yIPYUARgxGOwB42DnxIaNw==", "dev": true }, - "http-errors": { + "node_modules/http-errors": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", "dev": true, - "requires": { + "dependencies": { "depd": "2.0.0", "inherits": "2.0.4", "setprototypeof": "1.2.0", "statuses": "2.0.1", "toidentifier": "1.0.1" + }, + "engines": { + "node": ">= 0.8" } }, - "http-parser-js": { + "node_modules/http-parser-js": { "version": "0.5.8", "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.8.tgz", "integrity": "sha512-SGeBX54F94Wgu5RH3X5jsDtf4eHyRogWX1XGT3b4HuW3tQPM4AaBzoUji/4AAJNXCEOWZ5O0DgZmJw1947gD5Q==", "dev": true }, - "http-proxy": { + "node_modules/http-proxy": { "version": "1.18.1", "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz", "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", "dev": true, - "requires": { + "dependencies": { "eventemitter3": "^4.0.0", "follow-redirects": "^1.0.0", "requires-port": "^1.0.0" + }, + "engines": { + "node": ">=8.0.0" } }, - "http-proxy-agent": { + "node_modules/http-proxy-agent": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz", "integrity": "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==", "dev": true, - "requires": { + "dependencies": { "@tootallnate/once": "2", "agent-base": "6", "debug": "4" }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/http-proxy-agent/node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "dev": true, "dependencies": { - "agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "dev": true, - "requires": { - "debug": "4" - } - } + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" } }, - "http-proxy-middleware": { + "node_modules/http-proxy-middleware": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz", "integrity": "sha512-ya/UeJ6HVBYxrgYotAZo1KvPWlgB48kUJLDePFeneHsVujFaW5WNj2NgWCAE//B1Dl02BIfYlpNgBy8Kf8Rjmw==", "dev": true, - "requires": { + "dependencies": { "@types/http-proxy": "^1.17.8", "http-proxy": "^1.18.1", "is-glob": "^4.0.1", "is-plain-obj": "^3.0.0", "micromatch": "^4.0.2" + }, + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "@types/express": "^4.17.13" + }, + "peerDependenciesMeta": { + "@types/express": { + "optional": true + } } }, - "http-signature": { + "node_modules/http-signature": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", "dev": true, - "requires": { + "dependencies": { "assert-plus": "^1.0.0", "jsprim": "^1.2.2", "sshpk": "^1.7.0" + }, + "engines": { + "node": ">=0.8", + "npm": ">=1.3.7" } }, - "https-proxy-agent": { + "node_modules/https-proxy-agent": { "version": "2.2.4", "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-2.2.4.tgz", "integrity": "sha512-OmvfoQ53WLjtA9HeYP9RNrWMJzzAz1JGaSFr1nijg0PVR1JaD/xbJq1mdEIIlxGpXp9eSe/O2LgU9DJmTPd0Eg==", "dev": true, - "requires": { + "dependencies": { "agent-base": "^4.3.0", "debug": "^3.1.0" }, + "engines": { + "node": ">= 4.5.0" + } + }, + "node_modules/https-proxy-agent/node_modules/debug": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", + "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", + "deprecated": "Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)", + "dev": true, "dependencies": { - "debug": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", - "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - } + "ms": "^2.1.1" } }, - "human-signals": { + "node_modules/human-signals": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", - "dev": true + "dev": true, + "engines": { + "node": ">=10.17.0" + } }, - "humanize-ms": { + "node_modules/humanize-ms": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz", "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==", "dev": true, - "requires": { + "dependencies": { "ms": "^2.0.0" } }, - "iconv-lite": { + "node_modules/iconv-lite": { "version": "0.4.24", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", "dev": true, - "requires": { + "dependencies": { "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" } }, - "icss-utils": { + "node_modules/icss-utils": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz", "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==", - "dev": true + "dev": true, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } }, - "ieee754": { + "node_modules/ieee754": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", - "dev": true + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] }, - "ignore": { + "node_modules/ignore": { "version": "5.2.4", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", - "dev": true + "dev": true, + "engines": { + "node": ">= 4" + } }, - "ignore-walk": { + "node_modules/ignore-walk": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-6.0.1.tgz", "integrity": "sha512-/c8MxUAqpRccq+LyDOecwF+9KqajueJHh8fz7g3YqjMZt+NSfJzx05zrKiXwa2sKwFCzaiZ5qUVfRj0pmxixEA==", "dev": true, - "requires": { + "dependencies": { "minimatch": "^6.1.6" }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/ignore-walk/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, "dependencies": { - "brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0" - } - }, - "minimatch": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-6.2.0.tgz", - "integrity": "sha512-sauLxniAmvnhhRjFwPNnJKaPFYyddAgbYdeUpHULtCT/GhzdCx/MDNy+Y40lBxTQUrMzDE8e0S43Z5uqfO0REg==", - "dev": true, - "requires": { - "brace-expansion": "^2.0.1" - } - } + "balanced-match": "^1.0.0" + } + }, + "node_modules/ignore-walk/node_modules/minimatch": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-6.2.0.tgz", + "integrity": "sha512-sauLxniAmvnhhRjFwPNnJKaPFYyddAgbYdeUpHULtCT/GhzdCx/MDNy+Y40lBxTQUrMzDE8e0S43Z5uqfO0REg==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "image-size": { + "node_modules/image-size": { "version": "0.5.5", "resolved": "https://registry.npmjs.org/image-size/-/image-size-0.5.5.tgz", "integrity": "sha512-6TDAlDPZxUFCv+fuOkIoXT/V/f3Qbq8e37p+YOiYrUv3v9cc3/6x78VdfPgFVaB9dZYeLUfKgHRebpkm/oP2VQ==", "dev": true, - "optional": true + "optional": true, + "bin": { + "image-size": "bin/image-size.js" + }, + "engines": { + "node": ">=0.10.0" + } }, - "immediate": { + "node_modules/immediate": { "version": "3.0.6", "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz", "integrity": "sha1-nbHb0Pr43m++D13V5Wu2BigN5ps=", "dev": true }, - "immutable": { + "node_modules/immutable": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.3.0.tgz", "integrity": "sha512-0AOCmOip+xgJwEVTQj1EfiDDOkPmuyllDuTuEX+DDXUgapLAsBIfkg3sxCYyCEA8mQqZrrxPUGjcOQ2JS3WLkg==", "dev": true }, - "import-fresh": { + "node_modules/import-fresh": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", "dev": true, - "requires": { + "dependencies": { "parent-module": "^1.0.0", "resolve-from": "^4.0.0" }, - "dependencies": { - "resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true - } + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "imurmurhash": { + "node_modules/import-fresh/node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/imurmurhash": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.8.19" + } }, - "indent-string": { + "node_modules/indent-string": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "infer-owner": { + "node_modules/infer-owner": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/infer-owner/-/infer-owner-1.0.4.tgz", "integrity": "sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==", "dev": true }, - "inflight": { + "node_modules/inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "requires": { + "dependencies": { "once": "^1.3.0", "wrappy": "1" } }, - "inherits": { + "node_modules/inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, - "ini": { + "node_modules/ini": { "version": "1.3.5", "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", - "dev": true + "deprecated": "Please update to ini >=1.3.6 to avoid a prototype pollution issue", + "dev": true, + "engines": { + "node": "*" + } }, - "inquirer": { + "node_modules/inquirer": { "version": "8.2.4", "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.4.tgz", "integrity": "sha512-nn4F01dxU8VeKfq192IjLsxu0/OmMZ4Lg3xKAns148rCaXP6ntAoEkVYZThWjwON8AlzdZZi6oqnhNbxUG9hVg==", "dev": true, - "requires": { + "dependencies": { "ansi-escapes": "^4.2.1", "chalk": "^4.1.1", "cli-cursor": "^3.1.0", @@ -5523,656 +7462,866 @@ "through": "^2.3.6", "wrap-ansi": "^7.0.0" }, - "dependencies": { - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "rxjs": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.0.tgz", - "integrity": "sha512-F2+gxDshqmIub1KdvZkaEfGDwLNpPvk9Fs6LD/MyQxNgMds/WH9OdDDXOmxUZpME+iSK3rQCctkL0DYyytUqMg==", - "dev": true, - "requires": { - "tslib": "^2.1.0" - } - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1" - } - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - }, - "tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==", - "dev": true - } + "engines": { + "node": ">=12.0.0" } }, - "ip": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz", - "integrity": "sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==", - "dev": true - }, - "ipaddr.js": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.0.1.tgz", - "integrity": "sha512-1qTgH9NG+IIJ4yfKs2e6Pp1bZg8wbDbKHT21HrLIeYBTRLgMYKnMTPAuI3Lcs61nfx5h1xlXnbJtH1kX5/d/ng==", - "dev": true + "node_modules/inquirer/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } }, - "is-arrayish": { - "version": "0.2.1", + "node_modules/inquirer/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/inquirer/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/inquirer/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/inquirer/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/inquirer/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/inquirer/node_modules/rxjs": { + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.0.tgz", + "integrity": "sha512-F2+gxDshqmIub1KdvZkaEfGDwLNpPvk9Fs6LD/MyQxNgMds/WH9OdDDXOmxUZpME+iSK3rQCctkL0DYyytUqMg==", + "dev": true, + "dependencies": { + "tslib": "^2.1.0" + } + }, + "node_modules/inquirer/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/inquirer/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/inquirer/node_modules/tslib": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", + "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==", + "dev": true + }, + "node_modules/ip": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz", + "integrity": "sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==", + "dev": true + }, + "node_modules/ipaddr.js": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.0.1.tgz", + "integrity": "sha512-1qTgH9NG+IIJ4yfKs2e6Pp1bZg8wbDbKHT21HrLIeYBTRLgMYKnMTPAuI3Lcs61nfx5h1xlXnbJtH1kX5/d/ng==", + "dev": true, + "engines": { + "node": ">= 10" + } + }, + "node_modules/is-arrayish": { + "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", "dev": true }, - "is-binary-path": { + "node_modules/is-binary-path": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dev": true, - "requires": { + "dependencies": { "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" } }, - "is-core-module": { + "node_modules/is-core-module": { "version": "2.11.0", "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz", "integrity": "sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==", "dev": true, - "requires": { + "dependencies": { "has": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "is-docker": { + "node_modules/is-docker": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", - "dev": true + "dev": true, + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "is-extglob": { + "node_modules/is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true + "engines": { + "node": ">=0.10.0" + } }, - "is-fullwidth-code-point": { + "node_modules/is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "engines": { + "node": ">=8" + } }, - "is-glob": { + "node_modules/is-glob": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "requires": { + "dependencies": { "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" } }, - "is-interactive": { + "node_modules/is-interactive": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "is-lambda": { + "node_modules/is-lambda": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-lambda/-/is-lambda-1.0.1.tgz", "integrity": "sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ==", "dev": true }, - "is-number": { + "node_modules/is-number": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true + "engines": { + "node": ">=0.12.0" + } }, - "is-plain-obj": { + "node_modules/is-plain-obj": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-3.0.0.tgz", "integrity": "sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA==", - "dev": true + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "is-plain-object": { + "node_modules/is-plain-object": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", "dev": true, - "requires": { + "dependencies": { "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" } }, - "is-stream": { + "node_modules/is-stream": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "is-typedarray": { + "node_modules/is-typedarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", "dev": true }, - "is-unicode-supported": { + "node_modules/is-unicode-supported": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", - "dev": true + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "is-what": { + "node_modules/is-what": { "version": "3.14.1", "resolved": "https://registry.npmjs.org/is-what/-/is-what-3.14.1.tgz", "integrity": "sha512-sNxgpk9793nzSs7bA6JQJGeIuRBQhAaNGG77kzYQgMkrID+lS6SlK07K5LaptscDlSaIgH+GPFzf+d75FVxozA==", "dev": true }, - "is-wsl": { + "node_modules/is-wsl": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", "dev": true, - "requires": { + "dependencies": { "is-docker": "^2.0.0" + }, + "engines": { + "node": ">=8" } }, - "isarray": { + "node_modules/isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", "dev": true }, - "isexe": { + "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", "dev": true }, - "isobject": { + "node_modules/isobject": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "isstream": { + "node_modules/isstream": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", "dev": true }, - "istanbul-lib-coverage": { + "node_modules/istanbul-lib-coverage": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "istanbul-lib-instrument": { + "node_modules/istanbul-lib-instrument": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", "dev": true, - "requires": { + "dependencies": { "@babel/core": "^7.12.3", "@babel/parser": "^7.14.7", "@istanbuljs/schema": "^0.1.2", "istanbul-lib-coverage": "^3.2.0", "semver": "^6.3.0" }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" } }, - "jasmine": { + "node_modules/jasmine": { "version": "2.8.0", "resolved": "https://registry.npmjs.org/jasmine/-/jasmine-2.8.0.tgz", "integrity": "sha1-awicChFXax8W3xG4AUbZHU6Lij4=", "dev": true, - "requires": { + "dependencies": { "exit": "^0.1.2", "glob": "^7.0.6", "jasmine-core": "~2.8.0" }, - "dependencies": { - "jasmine-core": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-2.8.0.tgz", - "integrity": "sha1-vMl5rh+f0FcB5F5S5l06XWPxok4=", - "dev": true - } + "bin": { + "jasmine": "bin/jasmine.js" } }, - "jasminewd2": { + "node_modules/jasmine/node_modules/jasmine-core": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-2.8.0.tgz", + "integrity": "sha1-vMl5rh+f0FcB5F5S5l06XWPxok4=", + "dev": true + }, + "node_modules/jasminewd2": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/jasminewd2/-/jasminewd2-2.2.0.tgz", "integrity": "sha1-43zwsX8ZnM4jvqcbIDk5Uka07E4=", - "dev": true + "dev": true, + "engines": { + "node": ">= 6.9.x" + } }, - "jest-worker": { + "node_modules/jest-worker": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", "dev": true, - "requires": { + "dependencies": { "@types/node": "*", "merge-stream": "^2.0.0", "supports-color": "^8.0.0" }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/jest-worker/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, "dependencies": { - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" } }, - "js-tokens": { + "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" }, - "js-yaml": { + "node_modules/js-yaml": { "version": "3.14.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.0.tgz", "integrity": "sha512-/4IbIeHcD9VMHFqDR/gQ7EdZdLimOvW2DdcxFjdyyZ9NsbS+ccrXqVWDtab/lRl5AlUqmpBx8EhPaWR+OtY17A==", "dev": true, - "requires": { + "dependencies": { "argparse": "^1.0.7", "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" } }, - "jsbn": { + "node_modules/jsbn": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", "dev": true }, - "jsesc": { + "node_modules/jsesc": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==" + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } }, - "json-parse-even-better-errors": { + "node_modules/json-parse-even-better-errors": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", "dev": true }, - "json-schema": { + "node_modules/json-schema": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", "dev": true }, - "json-schema-traverse": { + "node_modules/json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", "dev": true }, - "json-stringify-safe": { + "node_modules/json-stringify-safe": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", "dev": true }, - "json5": { + "node_modules/json5": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==" + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } }, - "jsonc-parser": { + "node_modules/jsonc-parser": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.2.0.tgz", "integrity": "sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==", "dev": true }, - "jsonparse": { + "node_modules/jsonparse": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", "integrity": "sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==", - "dev": true + "dev": true, + "engines": [ + "node >= 0.2.0" + ] }, - "jsprim": { + "node_modules/jsprim": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", "dev": true, - "requires": { + "engines": [ + "node >=0.6.0" + ], + "dependencies": { "assert-plus": "1.0.0", "extsprintf": "1.3.0", "json-schema": "0.2.3", "verror": "1.10.0" } }, - "jszip": { + "node_modules/jszip": { "version": "3.5.0", "resolved": "https://registry.npmjs.org/jszip/-/jszip-3.5.0.tgz", "integrity": "sha512-WRtu7TPCmYePR1nazfrtuF216cIVon/3GWOvHS9QR5bIwSbnxtdpma6un3jyGGNhHsKCSzn5Ypk+EkDRvTGiFA==", "dev": true, - "requires": { + "dependencies": { "lie": "~3.3.0", "pako": "~1.0.2", "readable-stream": "~2.3.6", "set-immediate-shim": "~1.0.1" } }, - "karma-source-map-support": { + "node_modules/karma-source-map-support": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/karma-source-map-support/-/karma-source-map-support-1.4.0.tgz", "integrity": "sha512-RsBECncGO17KAoJCYXjv+ckIz+Ii9NCi+9enk+rq6XC81ezYkb4/RHE6CTXdA7IOJqoF3wcaLfVG0CPmE5ca6A==", "dev": true, - "requires": { + "dependencies": { "source-map-support": "^0.5.5" } }, - "kind-of": { + "node_modules/kind-of": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "klona": { + "node_modules/klona": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/klona/-/klona-2.0.6.tgz", "integrity": "sha512-dhG34DXATL5hSxJbIexCft8FChFXtmskoZYnoPWjXQuebWYCNkVeV3KkGegCK9CP1oswI/vQibS2GY7Em/sJJA==", - "dev": true + "dev": true, + "engines": { + "node": ">= 8" + } }, - "less": { + "node_modules/less": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/less/-/less-4.1.3.tgz", "integrity": "sha512-w16Xk/Ta9Hhyei0Gpz9m7VS8F28nieJaL/VyShID7cYvP6IL5oHeL6p4TXSDJqZE/lNv0oJ2pGVjJsRkfwm5FA==", "dev": true, - "requires": { + "dependencies": { "copy-anything": "^2.0.1", + "parse-node-version": "^1.0.1", + "tslib": "^2.3.0" + }, + "bin": { + "lessc": "bin/lessc" + }, + "engines": { + "node": ">=6" + }, + "optionalDependencies": { "errno": "^0.1.1", "graceful-fs": "^4.1.2", "image-size": "~0.5.0", "make-dir": "^2.1.0", "mime": "^1.4.1", "needle": "^3.1.0", - "parse-node-version": "^1.0.1", - "source-map": "~0.6.0", - "tslib": "^2.3.0" - }, - "dependencies": { - "make-dir": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", - "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", - "dev": true, - "optional": true, - "requires": { - "pify": "^4.0.1", - "semver": "^5.6.0" - } - }, - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true, - "optional": true - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "optional": true - }, - "tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==", - "dev": true - } + "source-map": "~0.6.0" } }, - "less-loader": { + "node_modules/less-loader": { "version": "11.1.0", "resolved": "https://registry.npmjs.org/less-loader/-/less-loader-11.1.0.tgz", "integrity": "sha512-C+uDBV7kS7W5fJlUjq5mPBeBVhYpTIm5gB09APT9o3n/ILeaXVsiSFTbZpTJCJwQ/Crczfn3DmfQFwxYusWFug==", "dev": true, - "requires": { + "dependencies": { "klona": "^2.0.4" + }, + "engines": { + "node": ">= 14.15.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "less": "^3.5.0 || ^4.0.0", + "webpack": "^5.0.0" + } + }, + "node_modules/less/node_modules/make-dir": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", + "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", + "dev": true, + "optional": true, + "dependencies": { + "pify": "^4.0.1", + "semver": "^5.6.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/less/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "optional": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/less/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "optional": true, + "engines": { + "node": ">=0.10.0" } }, - "license-webpack-plugin": { + "node_modules/less/node_modules/tslib": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", + "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==", + "dev": true + }, + "node_modules/license-webpack-plugin": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/license-webpack-plugin/-/license-webpack-plugin-4.0.2.tgz", "integrity": "sha512-771TFWFD70G1wLTC4oU2Cw4qvtmNrIw+wRvBtn+okgHl7slJVi7zfNcdmqDL72BojM30VNJ2UHylr1o77U37Jw==", "dev": true, - "requires": { + "dependencies": { "webpack-sources": "^3.0.0" + }, + "peerDependenciesMeta": { + "webpack": { + "optional": true + }, + "webpack-sources": { + "optional": true + } } }, - "lie": { + "node_modules/lie": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/lie/-/lie-3.3.0.tgz", "integrity": "sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==", "dev": true, - "requires": { + "dependencies": { "immediate": "~3.0.5" } }, - "lines-and-columns": { + "node_modules/lines-and-columns": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", "dev": true }, - "loader-runner": { + "node_modules/loader-runner": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", - "dev": true + "dev": true, + "engines": { + "node": ">=6.11.5" + } }, - "loader-utils": { + "node_modules/loader-utils": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-3.2.1.tgz", "integrity": "sha512-ZvFw1KWS3GVyYBYb7qkmRM/WwL2TQQBxgCK62rlvm4WpVQ23Nb4tYjApUlfjrEGvOs7KHEsmyUn75OHZrJMWPw==", - "dev": true + "dev": true, + "engines": { + "node": ">= 12.13.0" + } }, - "locate-path": { + "node_modules/locate-path": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, - "requires": { + "dependencies": { "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" } }, - "lodash": { + "node_modules/lodash": { "version": "4.17.21", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", "dev": true }, - "lodash.debounce": { + "node_modules/lodash.debounce": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", "dev": true }, - "log-symbols": { + "node_modules/log-symbols": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", "dev": true, - "requires": { + "dependencies": { "chalk": "^4.1.0", "is-unicode-supported": "^0.1.0" }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/log-symbols/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/log-symbols/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/log-symbols/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/log-symbols/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/log-symbols/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/log-symbols/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "lru-cache": { + "node_modules/lru-cache": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "requires": { + "dependencies": { "yallist": "^3.0.2" } }, - "magic-string": { + "node_modules/magic-string": { "version": "0.29.0", "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.29.0.tgz", "integrity": "sha512-WcfidHrDjMY+eLjlU+8OvwREqHwpgCeKVBUpQ3OhYYuvfaYCUgcbuBzappNzZvg/v8onU3oQj+BYpkOJe9Iw4Q==", "dev": true, - "requires": { + "dependencies": { "@jridgewell/sourcemap-codec": "^1.4.13" + }, + "engines": { + "node": ">=12" } }, - "make-dir": { + "node_modules/make-dir": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", "dev": true, - "requires": { + "dependencies": { "semver": "^6.0.0" }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-dir/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" } }, - "make-error": { + "node_modules/make-error": { "version": "1.3.6", "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", "dev": true }, - "make-fetch-happen": { + "node_modules/make-fetch-happen": { "version": "10.2.1", "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-10.2.1.tgz", "integrity": "sha512-NgOPbRiaQM10DYXvN3/hhGVI2M5MtITFryzBGxHM5p4wnFxsVCbxkrBrDsk+EZ5OB4jEOT7AjDxtdF+KVEFT7w==", "dev": true, - "requires": { + "dependencies": { "agentkeepalive": "^4.2.1", "cacache": "^16.1.0", "http-cache-semantics": "^4.1.0", @@ -6190,586 +8339,746 @@ "socks-proxy-agent": "^7.0.0", "ssri": "^9.0.0" }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/make-fetch-happen/node_modules/@npmcli/fs": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-2.1.2.tgz", + "integrity": "sha512-yOJKRvohFOaLqipNtwYB9WugyZKhC/DZC4VYPmpaCzDBrA8YpK3qHZ8/HGscMnE4GqbkLNuVcCnxkeQEdGt6LQ==", + "dev": true, "dependencies": { - "@npmcli/fs": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-2.1.2.tgz", - "integrity": "sha512-yOJKRvohFOaLqipNtwYB9WugyZKhC/DZC4VYPmpaCzDBrA8YpK3qHZ8/HGscMnE4GqbkLNuVcCnxkeQEdGt6LQ==", - "dev": true, - "requires": { - "@gar/promisify": "^1.1.3", - "semver": "^7.3.5" - } - }, - "agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "dev": true, - "requires": { - "debug": "4" - } - }, - "brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0" - } - }, - "cacache": { - "version": "16.1.3", - "resolved": "https://registry.npmjs.org/cacache/-/cacache-16.1.3.tgz", - "integrity": "sha512-/+Emcj9DAXxX4cwlLmRI9c166RuL3w30zp4R7Joiv2cQTtTtA+jeuCAjH3ZlGnYS3tKENSrKhAzVVP9GVyzeYQ==", - "dev": true, - "requires": { - "@npmcli/fs": "^2.1.0", - "@npmcli/move-file": "^2.0.0", - "chownr": "^2.0.0", - "fs-minipass": "^2.1.0", - "glob": "^8.0.1", - "infer-owner": "^1.0.4", - "lru-cache": "^7.7.1", - "minipass": "^3.1.6", - "minipass-collect": "^1.0.2", - "minipass-flush": "^1.0.5", - "minipass-pipeline": "^1.2.4", - "mkdirp": "^1.0.4", - "p-map": "^4.0.0", - "promise-inflight": "^1.0.1", - "rimraf": "^3.0.2", - "ssri": "^9.0.0", - "tar": "^6.1.11", - "unique-filename": "^2.0.0" - } - }, - "fs-minipass": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", - "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", - "dev": true, - "requires": { - "minipass": "^3.0.0" - } - }, - "glob": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", - "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^5.0.1", - "once": "^1.3.0" - } - }, - "https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", - "dev": true, - "requires": { - "agent-base": "6", - "debug": "4" - } - }, - "lru-cache": { - "version": "7.18.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", - "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", - "dev": true - }, - "minimatch": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", - "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", - "dev": true, - "requires": { - "brace-expansion": "^2.0.1" - } - }, - "minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "dev": true - }, - "ssri": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/ssri/-/ssri-9.0.1.tgz", - "integrity": "sha512-o57Wcn66jMQvfHG1FlYbWeZWW/dHZhJXjpIcTfXldXEk5nz5lStPo3mK0OJQfGR3RbZUlbISexbljkJzuEj/8Q==", - "dev": true, - "requires": { - "minipass": "^3.1.1" - } - }, - "unique-filename": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-2.0.1.tgz", - "integrity": "sha512-ODWHtkkdx3IAR+veKxFV+VBkUMcN+FaqzUUd7IZzt+0zhDZFPFxhlqwPF3YQvMHx1TD0tdgYl+kuPnJ8E6ql7A==", - "dev": true, - "requires": { - "unique-slug": "^3.0.0" - } - }, - "unique-slug": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-3.0.0.tgz", - "integrity": "sha512-8EyMynh679x/0gqE9fT9oilG+qEt+ibFyqjuVTsZn1+CMxH+XLlpvr2UZx4nVcCwTpx81nICr2JQFkM+HPLq4w==", - "dev": true, - "requires": { - "imurmurhash": "^0.1.4" - } - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - } + "@gar/promisify": "^1.1.3", + "semver": "^7.3.5" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/make-fetch-happen/node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "dev": true, + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/make-fetch-happen/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/make-fetch-happen/node_modules/cacache": { + "version": "16.1.3", + "resolved": "https://registry.npmjs.org/cacache/-/cacache-16.1.3.tgz", + "integrity": "sha512-/+Emcj9DAXxX4cwlLmRI9c166RuL3w30zp4R7Joiv2cQTtTtA+jeuCAjH3ZlGnYS3tKENSrKhAzVVP9GVyzeYQ==", + "dev": true, + "dependencies": { + "@npmcli/fs": "^2.1.0", + "@npmcli/move-file": "^2.0.0", + "chownr": "^2.0.0", + "fs-minipass": "^2.1.0", + "glob": "^8.0.1", + "infer-owner": "^1.0.4", + "lru-cache": "^7.7.1", + "minipass": "^3.1.6", + "minipass-collect": "^1.0.2", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "mkdirp": "^1.0.4", + "p-map": "^4.0.0", + "promise-inflight": "^1.0.1", + "rimraf": "^3.0.2", + "ssri": "^9.0.0", + "tar": "^6.1.11", + "unique-filename": "^2.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/make-fetch-happen/node_modules/fs-minipass": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", + "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", + "dev": true, + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/make-fetch-happen/node_modules/glob": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", + "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^5.0.1", + "once": "^1.3.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/make-fetch-happen/node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "dev": true, + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/make-fetch-happen/node_modules/lru-cache": { + "version": "7.18.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", + "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/make-fetch-happen/node_modules/minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/make-fetch-happen/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/make-fetch-happen/node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true, + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/make-fetch-happen/node_modules/ssri": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/ssri/-/ssri-9.0.1.tgz", + "integrity": "sha512-o57Wcn66jMQvfHG1FlYbWeZWW/dHZhJXjpIcTfXldXEk5nz5lStPo3mK0OJQfGR3RbZUlbISexbljkJzuEj/8Q==", + "dev": true, + "dependencies": { + "minipass": "^3.1.1" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/make-fetch-happen/node_modules/unique-filename": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-2.0.1.tgz", + "integrity": "sha512-ODWHtkkdx3IAR+veKxFV+VBkUMcN+FaqzUUd7IZzt+0zhDZFPFxhlqwPF3YQvMHx1TD0tdgYl+kuPnJ8E6ql7A==", + "dev": true, + "dependencies": { + "unique-slug": "^3.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/make-fetch-happen/node_modules/unique-slug": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-3.0.0.tgz", + "integrity": "sha512-8EyMynh679x/0gqE9fT9oilG+qEt+ibFyqjuVTsZn1+CMxH+XLlpvr2UZx4nVcCwTpx81nICr2JQFkM+HPLq4w==", + "dev": true, + "dependencies": { + "imurmurhash": "^0.1.4" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } }, - "media-typer": { + "node_modules/make-fetch-happen/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/media-typer": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.6" + } }, - "memfs": { + "node_modules/memfs": { "version": "3.4.13", "resolved": "https://registry.npmjs.org/memfs/-/memfs-3.4.13.tgz", "integrity": "sha512-omTM41g3Skpvx5dSYeZIbXKcXoAVc/AoMNwn9TKx++L/gaen/+4TTttmu8ZSch5vfVJ8uJvGbroTsIlslRg6lg==", "dev": true, - "requires": { + "dependencies": { "fs-monkey": "^1.0.3" + }, + "engines": { + "node": ">= 4.0.0" } }, - "merge-descriptors": { + "node_modules/merge-descriptors": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==", "dev": true }, - "merge-stream": { + "node_modules/merge-stream": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", "dev": true }, - "merge2": { + "node_modules/merge2": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true + "dev": true, + "engines": { + "node": ">= 8" + } }, - "methods": { + "node_modules/methods": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.6" + } }, - "micromatch": { + "node_modules/micromatch": { "version": "4.0.5", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", "dev": true, - "requires": { + "dependencies": { "braces": "^3.0.2", "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" } }, - "mime": { + "node_modules/mime": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "dev": true + "dev": true, + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } }, - "mime-db": { + "node_modules/mime-db": { "version": "1.44.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.44.0.tgz", "integrity": "sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.6" + } }, - "mime-types": { + "node_modules/mime-types": { "version": "2.1.27", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.27.tgz", "integrity": "sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w==", "dev": true, - "requires": { + "dependencies": { "mime-db": "1.44.0" + }, + "engines": { + "node": ">= 0.6" } }, - "mimic-fn": { + "node_modules/mimic-fn": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "dev": true + "dev": true, + "engines": { + "node": ">=6" + } }, - "mini-css-extract-plugin": { + "node_modules/mini-css-extract-plugin": { "version": "2.7.2", "resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-2.7.2.tgz", "integrity": "sha512-EdlUizq13o0Pd+uCp+WO/JpkLvHRVGt97RqfeGhXqAcorYo1ypJSpkV+WDT0vY/kmh/p7wRdJNJtuyK540PXDw==", "dev": true, - "requires": { + "dependencies": { "schema-utils": "^4.0.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" } }, - "minimalistic-assert": { + "node_modules/minimalistic-assert": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", "dev": true }, - "minimatch": { + "node_modules/minimatch": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "dev": true, - "requires": { + "dependencies": { "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" } }, - "minimist": { + "node_modules/minimist": { "version": "1.2.5", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", "dev": true }, - "minipass": { + "node_modules/minipass": { "version": "4.2.5", "resolved": "https://registry.npmjs.org/minipass/-/minipass-4.2.5.tgz", "integrity": "sha512-+yQl7SX3bIT83Lhb4BVorMAHVuqsskxRdlmO9kTpyukp8vsm2Sn/fUOV9xlnG8/a5JsypJzap21lz/y3FBMJ8Q==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "minipass-collect": { + "node_modules/minipass-collect": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/minipass-collect/-/minipass-collect-1.0.2.tgz", "integrity": "sha512-6T6lH0H8OG9kITm/Jm6tdooIbogG9e0tLgpY6mphXSm/A9u8Nq1ryBG+Qspiub9LjWlBPsPS3tWQ/Botq4FdxA==", "dev": true, - "requires": { + "dependencies": { "minipass": "^3.0.0" }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/minipass-collect/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "dev": true, "dependencies": { - "minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - } + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "minipass-fetch": { + "node_modules/minipass-collect/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/minipass-fetch": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-2.1.2.tgz", "integrity": "sha512-LT49Zi2/WMROHYoqGgdlQIZh8mLPZmOrN2NdJjMXxYe4nkN6FUyuPuOAOedNJDrx0IRGg9+4guZewtp8hE6TxA==", "dev": true, - "requires": { - "encoding": "^0.1.13", + "dependencies": { "minipass": "^3.1.6", "minipass-sized": "^1.0.3", "minizlib": "^2.1.2" }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + }, + "optionalDependencies": { + "encoding": "^0.1.13" + } + }, + "node_modules/minipass-fetch/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "dev": true, "dependencies": { - "minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - } + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "minipass-flush": { + "node_modules/minipass-fetch/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/minipass-flush": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/minipass-flush/-/minipass-flush-1.0.5.tgz", "integrity": "sha512-JmQSYYpPUqX5Jyn1mXaRwOda1uQ8HP5KAT/oDSLCzt1BYRhQU0/hDtsB1ufZfEEzMZ9aAVmsBw8+FWsIXlClWw==", "dev": true, - "requires": { + "dependencies": { "minipass": "^3.0.0" }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/minipass-flush/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "dev": true, "dependencies": { - "minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - } + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "minipass-json-stream": { + "node_modules/minipass-flush/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/minipass-json-stream": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/minipass-json-stream/-/minipass-json-stream-1.0.1.tgz", "integrity": "sha512-ODqY18UZt/I8k+b7rl2AENgbWE8IDYam+undIJONvigAz8KR5GWblsFTEfQs0WODsjbSXWlm+JHEv8Gr6Tfdbg==", "dev": true, - "requires": { + "dependencies": { "jsonparse": "^1.3.1", "minipass": "^3.0.0" - }, + } + }, + "node_modules/minipass-json-stream/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "dev": true, "dependencies": { - "minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - } + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "minipass-pipeline": { + "node_modules/minipass-json-stream/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/minipass-pipeline": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/minipass-pipeline/-/minipass-pipeline-1.2.4.tgz", "integrity": "sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==", "dev": true, - "requires": { + "dependencies": { "minipass": "^3.0.0" }, + "engines": { + "node": ">=8" + } + }, + "node_modules/minipass-pipeline/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "dev": true, "dependencies": { - "minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - } + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "minipass-sized": { + "node_modules/minipass-pipeline/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/minipass-sized": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/minipass-sized/-/minipass-sized-1.0.3.tgz", "integrity": "sha512-MbkQQ2CTiBMlA2Dm/5cY+9SWFEN8pzzOXi6rlM5Xxq0Yqbda5ZQy9sU75a673FE9ZK0Zsbr6Y5iP6u9nktfg2g==", "dev": true, - "requires": { + "dependencies": { "minipass": "^3.0.0" }, + "engines": { + "node": ">=8" + } + }, + "node_modules/minipass-sized/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "dev": true, "dependencies": { - "minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - } + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "minizlib": { + "node_modules/minipass-sized/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/minizlib": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", "dev": true, - "requires": { + "dependencies": { "minipass": "^3.0.0", "yallist": "^4.0.0" }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/minizlib/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "dev": true, "dependencies": { - "minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - } + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "mkdirp": { + "node_modules/minizlib/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/mkdirp": { "version": "0.5.5", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", "dev": true, - "requires": { + "dependencies": { "minimist": "^1.2.5" + }, + "bin": { + "mkdirp": "bin/cmd.js" } }, - "ms": { + "node_modules/ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" }, - "multicast-dns": { + "node_modules/multicast-dns": { "version": "7.2.5", "resolved": "https://registry.npmjs.org/multicast-dns/-/multicast-dns-7.2.5.tgz", "integrity": "sha512-2eznPJP8z2BFLX50tf0LuODrpINqP1RVIm/CObbTcBRITQgmC/TjcREF1NeTBzIcR5XO/ukWo+YHOjBbFwIupg==", "dev": true, - "requires": { + "dependencies": { "dns-packet": "^5.2.2", "thunky": "^1.0.2" + }, + "bin": { + "multicast-dns": "cli.js" } }, - "mute-stream": { + "node_modules/mute-stream": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", "dev": true }, - "nanoid": { + "node_modules/nanoid": { "version": "3.3.4", "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz", "integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==", - "dev": true + "dev": true, + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } }, - "needle": { + "node_modules/needle": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/needle/-/needle-3.2.0.tgz", "integrity": "sha512-oUvzXnyLiVyVGoianLijF9O/RecZUf7TkBfimjGrLM4eQhXyeJwM6GeAWccwfQ9aa4gMCZKqhAOuLaMIcQxajQ==", "dev": true, "optional": true, - "requires": { + "dependencies": { "debug": "^3.2.6", "iconv-lite": "^0.6.3", "sax": "^1.2.4" }, + "bin": { + "needle": "bin/needle" + }, + "engines": { + "node": ">= 4.4.x" + } + }, + "node_modules/needle/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "optional": true, "dependencies": { - "debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "optional": true, - "requires": { - "ms": "^2.1.1" - } - }, - "iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "dev": true, - "optional": true, - "requires": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - } - } + "ms": "^2.1.1" + } + }, + "node_modules/needle/node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "dev": true, + "optional": true, + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "negotiator": { + "node_modules/negotiator": { "version": "0.6.3", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.6" + } }, - "neo-async": { + "node_modules/neo-async": { "version": "2.6.2", "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", "dev": true }, - "ngx-file-drop": { + "node_modules/ngx-file-drop": { "version": "13.0.0", "resolved": "https://registry.npmjs.org/ngx-file-drop/-/ngx-file-drop-13.0.0.tgz", "integrity": "sha512-1OF9ln2ZesfNxWEBXMpkkFpUuggejpZtNlGFuyaVAmXyYO4NlCHsOWrgfWB7d8SliHgePD/7s0e60IQs/zqr9g==", - "requires": { + "dependencies": { "tslib": "^2.0.0" + }, + "engines": { + "node": ">= 12.0.0", + "npm": ">= 6.9.0" + }, + "peerDependencies": { + "@angular/common": ">=13.0.0", + "@angular/core": ">=13.0.0" } }, - "ngx-segment-analytics": { + "node_modules/ngx-segment-analytics": { "version": "1.7.0", "resolved": "https://registry.npmjs.org/ngx-segment-analytics/-/ngx-segment-analytics-1.7.0.tgz", "integrity": "sha512-Okr8kFq/DEkU4tRNi9ctUYxhfCvB37sc1jOiEaWNSXDOSwSa7UDOizvVyOFmLmn/SudZ+UObT417vx1B1V7MLQ==", - "requires": { + "dependencies": { "analytics.js": "^2.9.1", "tslib": "^2.0.0" + }, + "peerDependencies": { + "@angular/common": ">=6.0.0 <12.0.0", + "@angular/core": ">=6.0.0 <12.0.0" } }, - "nice-napi": { + "node_modules/nice-napi": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/nice-napi/-/nice-napi-1.0.2.tgz", "integrity": "sha512-px/KnJAJZf5RuBGcfD+Sp2pAKq0ytz8j+1NehvgIGFkvtvFrDM3T8E4x/JJODXK9WZow8RRGrbA9QQ3hs+pDhA==", "dev": true, + "hasInstallScript": true, "optional": true, - "requires": { + "os": [ + "!win32" + ], + "dependencies": { "node-addon-api": "^3.0.0", "node-gyp-build": "^4.2.2" } }, - "node-addon-api": { + "node_modules/node-addon-api": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-3.2.1.tgz", "integrity": "sha512-mmcei9JghVNDYydghQmeDX8KoAm0FAiYyIcUt/N4nhyAipB17pllZQDOJD2fotxABnt4Mdz+dKTO7eftLg4d0A==", "dev": true, "optional": true }, - "node-forge": { + "node_modules/node-forge": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==", - "dev": true + "dev": true, + "engines": { + "node": ">= 6.13.0" + } }, - "node-gyp": { + "node_modules/node-gyp": { "version": "9.3.1", "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-9.3.1.tgz", "integrity": "sha512-4Q16ZCqq3g8awk6UplT7AuxQ35XN4R/yf/+wSAwcBUAjg7l58RTactWaP8fIDTi0FzI7YcVLujwExakZlfWkXg==", "dev": true, - "requires": { + "dependencies": { "env-paths": "^2.2.0", "glob": "^7.1.4", "graceful-fs": "^4.2.6", @@ -6780,116 +9089,159 @@ "semver": "^7.3.5", "tar": "^6.1.2", "which": "^2.0.2" - } + }, + "bin": { + "node-gyp": "bin/node-gyp.js" + }, + "engines": { + "node": "^12.13 || ^14.13 || >=16" + } }, - "node-gyp-build": { + "node_modules/node-gyp-build": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.6.0.tgz", "integrity": "sha512-NTZVKn9IylLwUzaKjkas1e4u2DLNcV4rdYagA4PWdPwW87Bi7z+BznyKSRwS/761tV/lzCGXplWsiaMjLqP2zQ==", "dev": true, - "optional": true + "optional": true, + "bin": { + "node-gyp-build": "bin.js", + "node-gyp-build-optional": "optional.js", + "node-gyp-build-test": "build-test.js" + } }, - "node-releases": { + "node_modules/node-releases": { "version": "2.0.10", "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.10.tgz", "integrity": "sha512-5GFldHPXVG/YZmFzJvKK2zDSzPKhEp0+ZR5SVaoSag9fsL5YgHbUHDfnG5494ISANDcK4KwPXAx2xqVEydmd7w==" }, - "nopt": { + "node_modules/nopt": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/nopt/-/nopt-6.0.0.tgz", "integrity": "sha512-ZwLpbTgdhuZUnZzjd7nb1ZV+4DoiC6/sfiVKok72ym/4Tlf+DFdlHYmT2JPmcNNWV6Pi3SDf1kT+A4r9RTuT9g==", "dev": true, - "requires": { + "dependencies": { "abbrev": "^1.0.0" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } }, - "normalize-package-data": { + "node_modules/normalize-package-data": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-5.0.0.tgz", "integrity": "sha512-h9iPVIfrVZ9wVYQnxFgtw1ugSvGEMOlyPWWtm8BMJhnwyEL/FLbYbTY3V3PpjI/BUK67n9PEWDu6eHzu1fB15Q==", "dev": true, - "requires": { + "dependencies": { "hosted-git-info": "^6.0.0", "is-core-module": "^2.8.1", "semver": "^7.3.5", "validate-npm-package-license": "^3.0.4" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, - "normalize-path": { + "node_modules/normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true + "engines": { + "node": ">=0.10.0" + } }, - "normalize-range": { + "node_modules/normalize-range": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", "integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "npm-bundled": { + "node_modules/npm-bundled": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-3.0.0.tgz", "integrity": "sha512-Vq0eyEQy+elFpzsKjMss9kxqb9tG3YHg4dsyWuUENuzvSUWe1TCnW/vV9FkhvBk/brEDoDiVd+M1Btosa6ImdQ==", "dev": true, - "requires": { + "dependencies": { "npm-normalize-package-bin": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, - "npm-install-checks": { + "node_modules/npm-install-checks": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/npm-install-checks/-/npm-install-checks-6.0.0.tgz", "integrity": "sha512-SBU9oFglRVZnfElwAtF14NivyulDqF1VKqqwNsFW9HDcbHMAPHpRSsVFgKuwFGq/hVvWZExz62Th0kvxn/XE7Q==", "dev": true, - "requires": { + "dependencies": { "semver": "^7.1.1" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, - "npm-normalize-package-bin": { + "node_modules/npm-normalize-package-bin": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/npm-normalize-package-bin/-/npm-normalize-package-bin-3.0.0.tgz", "integrity": "sha512-g+DPQSkusnk7HYXr75NtzkIP4+N81i3RPsGFidF3DzHd9MT9wWngmqoeg/fnHFz5MNdtG4w03s+QnhewSLTT2Q==", - "dev": true + "dev": true, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } }, - "npm-package-arg": { + "node_modules/npm-package-arg": { "version": "10.1.0", "resolved": "https://registry.npmjs.org/npm-package-arg/-/npm-package-arg-10.1.0.tgz", "integrity": "sha512-uFyyCEmgBfZTtrKk/5xDfHp6+MdrqGotX/VoOyEEl3mBwiEE5FlBaePanazJSVMPT7vKepcjYBY2ztg9A3yPIA==", "dev": true, - "requires": { + "dependencies": { "hosted-git-info": "^6.0.0", "proc-log": "^3.0.0", "semver": "^7.3.5", "validate-npm-package-name": "^5.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, - "npm-packlist": { + "node_modules/npm-packlist": { "version": "7.0.4", "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-7.0.4.tgz", "integrity": "sha512-d6RGEuRrNS5/N84iglPivjaJPxhDbZmlbTwTDX2IbcRHG5bZCdtysYMhwiPvcF4GisXHGn7xsxv+GQ7T/02M5Q==", "dev": true, - "requires": { + "dependencies": { "ignore-walk": "^6.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, - "npm-pick-manifest": { + "node_modules/npm-pick-manifest": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/npm-pick-manifest/-/npm-pick-manifest-8.0.1.tgz", "integrity": "sha512-mRtvlBjTsJvfCCdmPtiu2bdlx8d/KXtF7yNXNWe7G0Z36qWA9Ny5zXsI2PfBZEv7SXgoxTmNaTzGSbbzDZChoA==", "dev": true, - "requires": { + "dependencies": { "npm-install-checks": "^6.0.0", "npm-normalize-package-bin": "^3.0.0", "npm-package-arg": "^10.0.0", "semver": "^7.3.5" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, - "npm-registry-fetch": { + "node_modules/npm-registry-fetch": { "version": "14.0.3", "resolved": "https://registry.npmjs.org/npm-registry-fetch/-/npm-registry-fetch-14.0.3.tgz", "integrity": "sha512-YaeRbVNpnWvsGOjX2wk5s85XJ7l1qQBGAp724h8e2CZFFhMSuw9enom7K1mWVUtvXO1uUSFIAPofQK0pPN0ZcA==", "dev": true, - "requires": { + "dependencies": { "make-fetch-happen": "^11.0.0", "minipass": "^4.0.0", "minipass-fetch": "^3.0.0", @@ -6898,172 +9250,226 @@ "npm-package-arg": "^10.0.0", "proc-log": "^3.0.0" }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm-registry-fetch/node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "dev": true, + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/npm-registry-fetch/node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "dev": true, "dependencies": { - "agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "dev": true, - "requires": { - "debug": "4" - } - }, - "https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", - "dev": true, - "requires": { - "agent-base": "6", - "debug": "4" - } - }, - "lru-cache": { - "version": "7.18.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", - "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", - "dev": true - }, - "make-fetch-happen": { - "version": "11.0.3", - "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-11.0.3.tgz", - "integrity": "sha512-oPLh5m10lRNNZDjJ2kP8UpboUx2uFXVaVweVe/lWut4iHWcQEmfqSVJt2ihZsFI8HbpwyyocaXbCAWf0g1ukIA==", - "dev": true, - "requires": { - "agentkeepalive": "^4.2.1", - "cacache": "^17.0.0", - "http-cache-semantics": "^4.1.1", - "http-proxy-agent": "^5.0.0", - "https-proxy-agent": "^5.0.0", - "is-lambda": "^1.0.1", - "lru-cache": "^7.7.1", - "minipass": "^4.0.0", - "minipass-fetch": "^3.0.0", - "minipass-flush": "^1.0.5", - "minipass-pipeline": "^1.2.4", - "negotiator": "^0.6.3", - "promise-retry": "^2.0.1", - "socks-proxy-agent": "^7.0.0", - "ssri": "^10.0.0" - } - }, - "minipass-fetch": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-3.0.1.tgz", - "integrity": "sha512-t9/wowtf7DYkwz8cfMSt0rMwiyNIBXf5CKZ3S5ZMqRqMYT0oLTp0x1WorMI9WTwvaPg21r1JbFxJMum8JrLGfw==", - "dev": true, - "requires": { - "encoding": "^0.1.13", - "minipass": "^4.0.0", - "minipass-sized": "^1.0.3", - "minizlib": "^2.1.2" - } - } + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/npm-registry-fetch/node_modules/lru-cache": { + "version": "7.18.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", + "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/npm-registry-fetch/node_modules/make-fetch-happen": { + "version": "11.0.3", + "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-11.0.3.tgz", + "integrity": "sha512-oPLh5m10lRNNZDjJ2kP8UpboUx2uFXVaVweVe/lWut4iHWcQEmfqSVJt2ihZsFI8HbpwyyocaXbCAWf0g1ukIA==", + "dev": true, + "dependencies": { + "agentkeepalive": "^4.2.1", + "cacache": "^17.0.0", + "http-cache-semantics": "^4.1.1", + "http-proxy-agent": "^5.0.0", + "https-proxy-agent": "^5.0.0", + "is-lambda": "^1.0.1", + "lru-cache": "^7.7.1", + "minipass": "^4.0.0", + "minipass-fetch": "^3.0.0", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "negotiator": "^0.6.3", + "promise-retry": "^2.0.1", + "socks-proxy-agent": "^7.0.0", + "ssri": "^10.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm-registry-fetch/node_modules/minipass-fetch": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-3.0.1.tgz", + "integrity": "sha512-t9/wowtf7DYkwz8cfMSt0rMwiyNIBXf5CKZ3S5ZMqRqMYT0oLTp0x1WorMI9WTwvaPg21r1JbFxJMum8JrLGfw==", + "dev": true, + "dependencies": { + "minipass": "^4.0.0", + "minipass-sized": "^1.0.3", + "minizlib": "^2.1.2" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + }, + "optionalDependencies": { + "encoding": "^0.1.13" } }, - "npm-run-path": { + "node_modules/npm-run-path": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", "dev": true, - "requires": { + "dependencies": { "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" } }, - "npmlog": { + "node_modules/npmlog": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-6.0.2.tgz", "integrity": "sha512-/vBvz5Jfr9dT/aFWd0FIRf+T/Q2WBsLENygUaFUqstqsycmZAP/t5BvFJTK0viFmSUxiUKTUplWy5vt+rvKIxg==", "dev": true, - "requires": { + "dependencies": { "are-we-there-yet": "^3.0.0", "console-control-strings": "^1.1.0", "gauge": "^4.0.3", "set-blocking": "^2.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } }, - "nth-check": { + "node_modules/nth-check": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", "dev": true, - "requires": { + "dependencies": { "boolbase": "^1.0.0" + }, + "funding": { + "url": "https://github.com/fb55/nth-check?sponsor=1" } }, - "oauth-sign": { + "node_modules/oauth-sign": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", - "dev": true + "dev": true, + "engines": { + "node": "*" + } }, - "object-assign": { + "node_modules/object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "object-inspect": { + "node_modules/object-inspect": { "version": "1.12.3", "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==", - "dev": true + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "obuf": { + "node_modules/obuf": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/obuf/-/obuf-1.1.2.tgz", "integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==", "dev": true }, - "on-finished": { + "node_modules/on-finished": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", "dev": true, - "requires": { + "dependencies": { "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" } }, - "on-headers": { + "node_modules/on-headers": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.8" + } }, - "once": { + "node_modules/once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "requires": { + "dependencies": { "wrappy": "1" } }, - "onetime": { + "node_modules/onetime": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", "dev": true, - "requires": { + "dependencies": { "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "open": { + "node_modules/open": { "version": "8.4.1", "resolved": "https://registry.npmjs.org/open/-/open-8.4.1.tgz", "integrity": "sha512-/4b7qZNhv6Uhd7jjnREh1NjnPxlTq+XNWPG88Ydkj5AILcA5m3ajvcg57pB24EQjKv0dK62XnDqk9c/hkIG5Kg==", "dev": true, - "requires": { + "dependencies": { "define-lazy-prop": "^2.0.0", "is-docker": "^2.1.1", "is-wsl": "^2.2.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "ora": { + "node_modules/ora": { "version": "5.4.1", "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", "integrity": "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==", "dev": true, - "requires": { + "dependencies": { "bl": "^4.1.0", "chalk": "^4.1.0", "cli-cursor": "^3.1.0", @@ -7074,128 +9480,183 @@ "strip-ansi": "^6.0.0", "wcwidth": "^1.0.1" }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ora/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ora/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, "dependencies": { - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1" - } - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "os-tmpdir": { + "node_modules/ora/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/ora/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/ora/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/ora/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ora/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/ora/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/os-tmpdir": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "p-limit": { + "node_modules/p-limit": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, - "requires": { + "dependencies": { "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "p-locate": { + "node_modules/p-locate": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, - "requires": { + "dependencies": { "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" } }, - "p-map": { + "node_modules/p-map": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", "dev": true, - "requires": { + "dependencies": { "aggregate-error": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "p-retry": { + "node_modules/p-retry": { "version": "4.6.2", "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-4.6.2.tgz", "integrity": "sha512-312Id396EbJdvRONlngUx0NydfrIQ5lsYu0znKVUzVvArzEIt08V1qhtyESbGVd1FGX7UKtiFp5uwKZdM8wIuQ==", "dev": true, - "requires": { + "dependencies": { "@types/retry": "0.12.0", "retry": "^0.13.1" + }, + "engines": { + "node": ">=8" } }, - "p-try": { + "node_modules/p-try": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true + "dev": true, + "engines": { + "node": ">=6" + } }, - "pacote": { + "node_modules/pacote": { "version": "15.1.0", "resolved": "https://registry.npmjs.org/pacote/-/pacote-15.1.0.tgz", "integrity": "sha512-FFcjtIl+BQNfeliSm7MZz5cpdohvUV1yjGnqgVM4UnVF7JslRY0ImXAygdaCDV0jjUADEWu4y5xsDV8brtrTLg==", "dev": true, - "requires": { + "dependencies": { "@npmcli/git": "^4.0.0", "@npmcli/installed-package-contents": "^2.0.1", "@npmcli/promise-spawn": "^6.0.1", @@ -7214,365 +9675,509 @@ "sigstore": "^1.0.0", "ssri": "^10.0.0", "tar": "^6.1.11" + }, + "bin": { + "pacote": "lib/bin.js" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, - "pako": { + "node_modules/pako": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==", "dev": true }, - "parent-module": { + "node_modules/parent-module": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", "dev": true, - "requires": { + "dependencies": { "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" } }, - "parse-json": { + "node_modules/parse-json": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", "dev": true, - "requires": { + "dependencies": { "@babel/code-frame": "^7.0.0", "error-ex": "^1.3.1", "json-parse-even-better-errors": "^2.3.0", "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "parse-node-version": { + "node_modules/parse-node-version": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/parse-node-version/-/parse-node-version-1.0.1.tgz", "integrity": "sha512-3YHlOa/JgH6Mnpr05jP9eDG254US9ek25LyIxZlDItp2iJtwyaXQb57lBYLdT3MowkUFYEV2XXNAYIPlESvJlA==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.10" + } }, - "parse5": { + "node_modules/parse5": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", "dev": true }, - "parse5-html-rewriting-stream": { + "node_modules/parse5-html-rewriting-stream": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/parse5-html-rewriting-stream/-/parse5-html-rewriting-stream-7.0.0.tgz", "integrity": "sha512-mazCyGWkmCRWDI15Zp+UiCqMp/0dgEmkZRvhlsqqKYr4SsVm/TvnSpD9fCvqCA2zoWJcfRym846ejWBBHRiYEg==", "dev": true, - "requires": { + "dependencies": { "entities": "^4.3.0", "parse5": "^7.0.0", "parse5-sax-parser": "^7.0.0" }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, + "node_modules/parse5-html-rewriting-stream/node_modules/entities": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.4.0.tgz", + "integrity": "sha512-oYp7156SP8LkeGD0GF85ad1X9Ai79WtRsZ2gxJqtBuzH+98YUV6jkHEKlZkMbcrjJjIVJNIDP/3WL9wQkoPbWA==", + "dev": true, + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/parse5-html-rewriting-stream/node_modules/parse5": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz", + "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==", + "dev": true, "dependencies": { - "entities": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-4.4.0.tgz", - "integrity": "sha512-oYp7156SP8LkeGD0GF85ad1X9Ai79WtRsZ2gxJqtBuzH+98YUV6jkHEKlZkMbcrjJjIVJNIDP/3WL9wQkoPbWA==", - "dev": true - }, - "parse5": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz", - "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==", - "dev": true, - "requires": { - "entities": "^4.4.0" - } - } + "entities": "^4.4.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" } }, - "parse5-htmlparser2-tree-adapter": { + "node_modules/parse5-htmlparser2-tree-adapter": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-6.0.1.tgz", "integrity": "sha512-qPuWvbLgvDGilKc5BoicRovlT4MtYT6JfJyBOMDsKoiT+GiuP5qyrPCnR9HcPECIJJmZh5jRndyNThnhhb/vlA==", "dev": true, - "requires": { + "dependencies": { "parse5": "^6.0.1" } }, - "parse5-sax-parser": { + "node_modules/parse5-sax-parser": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/parse5-sax-parser/-/parse5-sax-parser-7.0.0.tgz", "integrity": "sha512-5A+v2SNsq8T6/mG3ahcz8ZtQ0OUFTatxPbeidoMB7tkJSGDY3tdfl4MHovtLQHkEn5CGxijNWRQHhRQ6IRpXKg==", "dev": true, - "requires": { + "dependencies": { "parse5": "^7.0.0" }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, + "node_modules/parse5-sax-parser/node_modules/entities": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.4.0.tgz", + "integrity": "sha512-oYp7156SP8LkeGD0GF85ad1X9Ai79WtRsZ2gxJqtBuzH+98YUV6jkHEKlZkMbcrjJjIVJNIDP/3WL9wQkoPbWA==", + "dev": true, + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/parse5-sax-parser/node_modules/parse5": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz", + "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==", + "dev": true, "dependencies": { - "entities": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-4.4.0.tgz", - "integrity": "sha512-oYp7156SP8LkeGD0GF85ad1X9Ai79WtRsZ2gxJqtBuzH+98YUV6jkHEKlZkMbcrjJjIVJNIDP/3WL9wQkoPbWA==", - "dev": true - }, - "parse5": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz", - "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==", - "dev": true, - "requires": { - "entities": "^4.4.0" - } - } + "entities": "^4.4.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" } }, - "parseurl": { + "node_modules/parseurl": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.8" + } }, - "path-exists": { + "node_modules/path-exists": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "path-is-absolute": { + "node_modules/path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "path-is-inside": { + "node_modules/path-is-inside": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=", "dev": true }, - "path-key": { + "node_modules/path-key": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "path-parse": { + "node_modules/path-parse": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", "dev": true }, - "path-to-regexp": { + "node_modules/path-to-regexp": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==", "dev": true }, - "path-type": { + "node_modules/path-type": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "performance-now": { + "node_modules/performance-now": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", "dev": true }, - "picocolors": { + "node_modules/picocolors": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" }, - "picomatch": { + "node_modules/picomatch": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } }, - "pify": { + "node_modules/pify": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", "dev": true, - "optional": true + "optional": true, + "engines": { + "node": ">=6" + } }, - "pinkie": { + "node_modules/pinkie": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "pinkie-promise": { + "node_modules/pinkie-promise": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", "dev": true, - "requires": { + "dependencies": { "pinkie": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "piscina": { + "node_modules/piscina": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/piscina/-/piscina-3.2.0.tgz", "integrity": "sha512-yn/jMdHRw+q2ZJhFhyqsmANcbF6V2QwmD84c6xRau+QpQOmtrBCoRGdvTfeuFDYXB5W2m6MfLkjkvQa9lUSmIA==", "dev": true, - "requires": { + "dependencies": { "eventemitter-asyncresource": "^1.0.0", "hdr-histogram-js": "^2.0.1", - "hdr-histogram-percentiles-obj": "^3.0.0", + "hdr-histogram-percentiles-obj": "^3.0.0" + }, + "optionalDependencies": { "nice-napi": "^1.0.2" } }, - "pkg-dir": { + "node_modules/pkg-dir": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", "dev": true, - "requires": { + "dependencies": { "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "postcss": { + "node_modules/postcss": { "version": "8.4.21", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.21.tgz", "integrity": "sha512-tP7u/Sn/dVxK2NnruI4H9BG+x+Wxz6oeZ1cJ8P6G/PZY0IKk4k/63TDsQf2kQq3+qoJeLm2kIBUNlZe3zgb4Zg==", "dev": true, - "requires": { + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + } + ], + "dependencies": { "nanoid": "^3.3.4", "picocolors": "^1.0.0", "source-map-js": "^1.0.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" } }, - "postcss-loader": { + "node_modules/postcss-loader": { "version": "7.0.2", "resolved": "https://registry.npmjs.org/postcss-loader/-/postcss-loader-7.0.2.tgz", "integrity": "sha512-fUJzV/QH7NXUAqV8dWJ9Lg4aTkDCezpTS5HgJ2DvqznexTbSTxgi/dTECvTZ15BwKTtk8G/bqI/QTu2HPd3ZCg==", "dev": true, - "requires": { + "dependencies": { "cosmiconfig": "^7.0.0", "klona": "^2.0.5", "semver": "^7.3.8" }, + "engines": { + "node": ">= 14.15.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "postcss": "^7.0.0 || ^8.0.1", + "webpack": "^5.0.0" + } + }, + "node_modules/postcss-loader/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, "dependencies": { - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - } + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" } }, - "postcss-modules-extract-imports": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz", - "integrity": "sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==", + "node_modules/postcss-loader/node_modules/semver": { + "version": "7.3.8", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", + "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/postcss-loader/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", "dev": true }, - "postcss-modules-local-by-default": { + "node_modules/postcss-modules-extract-imports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz", + "integrity": "sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-modules-local-by-default": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.0.tgz", "integrity": "sha512-sT7ihtmGSF9yhm6ggikHdV0hlziDTX7oFoXtuVWeDd3hHObNkcHRo9V3yg7vCAY7cONyxJC/XXCmmiHHcvX7bQ==", "dev": true, - "requires": { + "dependencies": { "icss-utils": "^5.0.0", "postcss-selector-parser": "^6.0.2", "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" } }, - "postcss-modules-scope": { + "node_modules/postcss-modules-scope": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.0.0.tgz", "integrity": "sha512-hncihwFA2yPath8oZ15PZqvWGkWf+XUfQgUGamS4LqoP1anQLOsOJw0vr7J7IwLpoY9fatA2qiGUGmuZL0Iqlg==", "dev": true, - "requires": { + "dependencies": { "postcss-selector-parser": "^6.0.4" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" } }, - "postcss-modules-values": { + "node_modules/postcss-modules-values": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz", "integrity": "sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==", "dev": true, - "requires": { + "dependencies": { "icss-utils": "^5.0.0" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" } }, - "postcss-selector-parser": { + "node_modules/postcss-selector-parser": { "version": "6.0.11", "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.11.tgz", "integrity": "sha512-zbARubNdogI9j7WY4nQJBiNqQf3sLS3wCP4WfOidu+p28LofJqDH1tcXypGrcmMHhDk2t9wGhCsYe/+szLTy1g==", "dev": true, - "requires": { + "dependencies": { "cssesc": "^3.0.0", "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" } }, - "postcss-value-parser": { + "node_modules/postcss-value-parser": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", "dev": true }, - "pretty-bytes": { + "node_modules/pretty-bytes": { "version": "5.6.0", "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-5.6.0.tgz", "integrity": "sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg==", - "dev": true + "dev": true, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "proc-log": { + "node_modules/proc-log": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/proc-log/-/proc-log-3.0.0.tgz", "integrity": "sha512-++Vn7NS4Xf9NacaU9Xq3URUuqZETPsf8L4j5/ckhaRYsfPeRyzGw+iDjFhV/Jr3uNmTvvddEJFWh5R1gRgUH8A==", - "dev": true + "dev": true, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } }, - "process-nextick-args": { + "node_modules/process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", "dev": true }, - "promise-inflight": { + "node_modules/promise-inflight": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz", "integrity": "sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g==", "dev": true }, - "promise-retry": { + "node_modules/promise-retry": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/promise-retry/-/promise-retry-2.0.1.tgz", "integrity": "sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==", "dev": true, - "requires": { + "dependencies": { "err-code": "^2.0.2", "retry": "^0.12.0" }, - "dependencies": { - "retry": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", - "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==", - "dev": true - } + "engines": { + "node": ">=10" + } + }, + "node_modules/promise-retry/node_modules/retry": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", + "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==", + "dev": true, + "engines": { + "node": ">= 4" } }, - "protractor": { + "node_modules/protractor": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/protractor/-/protractor-7.0.0.tgz", "integrity": "sha512-UqkFjivi4GcvUQYzqGYNe0mLzfn5jiLmO8w9nMhQoJRLhy2grJonpga2IWhI6yJO30LibWXJJtA4MOIZD2GgZw==", + "deprecated": "We have news to share - Protractor is deprecated and will reach end-of-life by Summer 2023. To learn more and find out about other options please refer to this post on the Angular blog. Thank you for using and contributing to Protractor. https://goo.gle/state-of-e2e-in-angular", "dev": true, - "requires": { + "dependencies": { "@types/q": "^0.0.32", "@types/selenium-webdriver": "^3.0.0", "blocking-proxy": "^1.0.0", @@ -7589,496 +10194,643 @@ "webdriver-manager": "^12.1.7", "yargs": "^15.3.1" }, + "bin": { + "protractor": "bin/protractor", + "webdriver-manager": "bin/webdriver-manager" + }, + "engines": { + "node": ">=10.13.x" + } + }, + "node_modules/protractor/node_modules/@types/q": { + "version": "0.0.32", + "resolved": "https://registry.npmjs.org/@types/q/-/q-0.0.32.tgz", + "integrity": "sha1-vShOV8hPEyXacCur/IKlMoGQwMU=", + "dev": true + }, + "node_modules/protractor/node_modules/ansi-regex": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", + "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/protractor/node_modules/ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protractor/node_modules/array-union": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", + "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", + "dev": true, "dependencies": { - "@types/q": { - "version": "0.0.32", - "resolved": "https://registry.npmjs.org/@types/q/-/q-0.0.32.tgz", - "integrity": "sha1-vShOV8hPEyXacCur/IKlMoGQwMU=", - "dev": true - }, - "ansi-regex": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", - "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", - "dev": true - }, - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "array-union": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", - "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", - "dev": true, - "requires": { - "array-uniq": "^1.0.1" - } - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "cliui": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", - "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", - "dev": true, - "requires": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^6.2.0" - }, - "dependencies": { - "strip-ansi": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", - "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.0" - } - } - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "del": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/del/-/del-2.2.2.tgz", - "integrity": "sha1-wSyYHQZ4RshLyvhiz/kw2Qf/0ag=", - "dev": true, - "requires": { - "globby": "^5.0.0", - "is-path-cwd": "^1.0.0", - "is-path-in-cwd": "^1.0.0", - "object-assign": "^4.0.1", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0", - "rimraf": "^2.2.8" - } - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "globby": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-5.0.0.tgz", - "integrity": "sha1-69hGZ8oNuzMLmbz8aOrCvFQ3Dg0=", - "dev": true, - "requires": { - "array-union": "^1.0.1", - "arrify": "^1.0.0", - "glob": "^7.0.3", - "object-assign": "^4.0.1", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0" - } - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, - "is-path-cwd": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-1.0.0.tgz", - "integrity": "sha1-0iXsIxMuie3Tj9p2dHLmLmXxEG0=", - "dev": true - }, - "is-path-in-cwd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-1.0.1.tgz", - "integrity": "sha512-FjV1RTW48E7CWM7eE/J2NJvAEEVektecDBVBE5Hh3nM1Jd0kvhHtX68Pr3xsDf857xt3Y4AkwVULK1Vku62aaQ==", - "dev": true, - "requires": { - "is-path-inside": "^1.0.0" - } - }, - "is-path-inside": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.1.tgz", - "integrity": "sha1-jvW33lBDej/cprToZe96pVy0gDY=", - "dev": true, - "requires": { - "path-is-inside": "^1.0.1" - } - }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "requires": { - "p-locate": "^4.1.0" - } - }, - "p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "requires": { - "p-limit": "^2.2.0" - } - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true - }, - "pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", - "dev": true - }, - "q": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/q/-/q-1.4.1.tgz", - "integrity": "sha1-VXBbzZPF82c1MMLCy8DCs63cKG4=", - "dev": true - }, - "rimraf": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", - "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", - "dev": true, - "requires": { - "glob": "^7.1.3" - } - }, - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "source-map-support": { - "version": "0.4.18", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", - "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", - "dev": true, - "requires": { - "source-map": "^0.5.6" - } - }, - "string-width": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz", - "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.0" - }, - "dependencies": { - "strip-ansi": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", - "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.0" - } - } - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - }, - "webdriver-manager": { - "version": "12.1.7", - "resolved": "https://registry.npmjs.org/webdriver-manager/-/webdriver-manager-12.1.7.tgz", - "integrity": "sha512-XINj6b8CYuUYC93SG3xPkxlyUc3IJbD6Vvo75CVGuG9uzsefDzWQrhz0Lq8vbPxtb4d63CZdYophF8k8Or/YiA==", - "dev": true, - "requires": { - "adm-zip": "^0.4.9", - "chalk": "^1.1.1", - "del": "^2.2.0", - "glob": "^7.0.3", - "ini": "^1.3.4", - "minimist": "^1.2.0", - "q": "^1.4.1", - "request": "^2.87.0", - "rimraf": "^2.5.2", - "semver": "^5.3.0", - "xml2js": "^0.4.17" - } - }, - "wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", - "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", - "dev": true, - "requires": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" - } - }, - "strip-ansi": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", - "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.0" - } - } - } - }, - "yargs": { - "version": "15.4.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", - "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", - "dev": true, - "requires": { - "cliui": "^6.0.0", - "decamelize": "^1.2.0", - "find-up": "^4.1.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^4.2.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^18.1.2" - } - }, - "yargs-parser": { - "version": "18.1.3", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", - "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", - "dev": true, - "requires": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - } - } + "array-uniq": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protractor/node_modules/chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "dependencies": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protractor/node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "node_modules/protractor/node_modules/cliui/node_modules/strip-ansi": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", + "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.0" + }, + "engines": { + "node": ">=8" } }, - "proxy-addr": { + "node_modules/protractor/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/protractor/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/protractor/node_modules/del": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/del/-/del-2.2.2.tgz", + "integrity": "sha1-wSyYHQZ4RshLyvhiz/kw2Qf/0ag=", + "dev": true, + "dependencies": { + "globby": "^5.0.0", + "is-path-cwd": "^1.0.0", + "is-path-in-cwd": "^1.0.0", + "object-assign": "^4.0.1", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0", + "rimraf": "^2.2.8" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protractor/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/protractor/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/protractor/node_modules/globby": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-5.0.0.tgz", + "integrity": "sha1-69hGZ8oNuzMLmbz8aOrCvFQ3Dg0=", + "dev": true, + "dependencies": { + "array-union": "^1.0.1", + "arrify": "^1.0.0", + "glob": "^7.0.3", + "object-assign": "^4.0.1", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protractor/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/protractor/node_modules/is-path-cwd": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-1.0.0.tgz", + "integrity": "sha1-0iXsIxMuie3Tj9p2dHLmLmXxEG0=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protractor/node_modules/is-path-in-cwd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-1.0.1.tgz", + "integrity": "sha512-FjV1RTW48E7CWM7eE/J2NJvAEEVektecDBVBE5Hh3nM1Jd0kvhHtX68Pr3xsDf857xt3Y4AkwVULK1Vku62aaQ==", + "dev": true, + "dependencies": { + "is-path-inside": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protractor/node_modules/is-path-inside": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.1.tgz", + "integrity": "sha1-jvW33lBDej/cprToZe96pVy0gDY=", + "dev": true, + "dependencies": { + "path-is-inside": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protractor/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/protractor/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/protractor/node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/protractor/node_modules/pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protractor/node_modules/q": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/q/-/q-1.4.1.tgz", + "integrity": "sha1-VXBbzZPF82c1MMLCy8DCs63cKG4=", + "dev": true, + "engines": { + "node": ">=0.6.0", + "teleport": ">=0.2.0" + } + }, + "node_modules/protractor/node_modules/rimraf": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + } + }, + "node_modules/protractor/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/protractor/node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protractor/node_modules/source-map-support": { + "version": "0.4.18", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", + "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", + "dev": true, + "dependencies": { + "source-map": "^0.5.6" + } + }, + "node_modules/protractor/node_modules/string-width": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz", + "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/protractor/node_modules/string-width/node_modules/strip-ansi": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", + "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/protractor/node_modules/supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/protractor/node_modules/webdriver-manager": { + "version": "12.1.7", + "resolved": "https://registry.npmjs.org/webdriver-manager/-/webdriver-manager-12.1.7.tgz", + "integrity": "sha512-XINj6b8CYuUYC93SG3xPkxlyUc3IJbD6Vvo75CVGuG9uzsefDzWQrhz0Lq8vbPxtb4d63CZdYophF8k8Or/YiA==", + "dev": true, + "dependencies": { + "adm-zip": "^0.4.9", + "chalk": "^1.1.1", + "del": "^2.2.0", + "glob": "^7.0.3", + "ini": "^1.3.4", + "minimist": "^1.2.0", + "q": "^1.4.1", + "request": "^2.87.0", + "rimraf": "^2.5.2", + "semver": "^5.3.0", + "xml2js": "^0.4.17" + }, + "bin": { + "webdriver-manager": "bin/webdriver-manager" + }, + "engines": { + "node": ">=6.9.x" + } + }, + "node_modules/protractor/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/protractor/node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", + "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", + "dev": true, + "dependencies": { + "@types/color-name": "^1.1.1", + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/protractor/node_modules/wrap-ansi/node_modules/strip-ansi": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", + "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/protractor/node_modules/yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "dev": true, + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/protractor/node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/proxy-addr": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", "dev": true, - "requires": { + "dependencies": { "forwarded": "0.2.0", "ipaddr.js": "1.9.1" }, - "dependencies": { - "ipaddr.js": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", - "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", - "dev": true - } + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/proxy-addr/node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "dev": true, + "engines": { + "node": ">= 0.10" } }, - "prr": { + "node_modules/prr": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz", "integrity": "sha512-yPw4Sng1gWghHQWj0B3ZggWUm4qVbPwPFcRG8KyxiU7J2OHFSoEHKS+EZ3fv5l1t9CyCiop6l/ZYeWbrgoQejw==", "dev": true, "optional": true }, - "psl": { + "node_modules/psl": { "version": "1.8.0", "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz", "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==", "dev": true }, - "punycode": { + "node_modules/punycode": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "engines": { + "node": ">=6" + } }, - "qs": { + "node_modules/qs": { "version": "6.11.0", "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", "dev": true, - "requires": { + "dependencies": { "side-channel": "^1.0.4" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "queue-microtask": { + "node_modules/queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] }, - "randombytes": { + "node_modules/randombytes": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", "dev": true, - "requires": { + "dependencies": { "safe-buffer": "^5.1.0" } }, - "range-parser": { + "node_modules/range-parser": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.6" + } }, - "raw-body": { + "node_modules/raw-body": { "version": "2.5.1", "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz", "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", "dev": true, - "requires": { + "dependencies": { "bytes": "3.1.2", "http-errors": "2.0.0", "iconv-lite": "0.4.24", "unpipe": "1.0.0" }, - "dependencies": { - "bytes": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", - "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", - "dev": true - } + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/raw-body/node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "dev": true, + "engines": { + "node": ">= 0.8" } }, - "read-package-json": { + "node_modules/read-package-json": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/read-package-json/-/read-package-json-6.0.0.tgz", "integrity": "sha512-b/9jxWJ8EwogJPpv99ma+QwtqB7FSl3+V6UXS7Aaay8/5VwMY50oIFooY1UKXMWpfNCM6T/PoGqa5GD1g9xf9w==", "dev": true, - "requires": { + "dependencies": { "glob": "^8.0.1", "json-parse-even-better-errors": "^3.0.0", "normalize-package-data": "^5.0.0", "npm-normalize-package-bin": "^3.0.0" }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/read-package-json-fast": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/read-package-json-fast/-/read-package-json-fast-3.0.2.tgz", + "integrity": "sha512-0J+Msgym3vrLOUB3hzQCuZHII0xkNGCtz/HJH9xZshwv9DbDwkw1KaE3gx/e2J5rpEY5rtOy6cyhKOPrkP7FZw==", + "dev": true, "dependencies": { - "brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0" - } - }, - "glob": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", - "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^5.0.1", - "once": "^1.3.0" - } - }, - "json-parse-even-better-errors": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-3.0.0.tgz", - "integrity": "sha512-iZbGHafX/59r39gPwVPRBGw0QQKnA7tte5pSMrhWOW7swGsVvVTjmfyAV9pNqk8YGT7tRCdxRu8uzcgZwoDooA==", - "dev": true - }, - "minimatch": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", - "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", - "dev": true, - "requires": { - "brace-expansion": "^2.0.1" - } - } + "json-parse-even-better-errors": "^3.0.0", + "npm-normalize-package-bin": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/read-package-json-fast/node_modules/json-parse-even-better-errors": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-3.0.0.tgz", + "integrity": "sha512-iZbGHafX/59r39gPwVPRBGw0QQKnA7tte5pSMrhWOW7swGsVvVTjmfyAV9pNqk8YGT7tRCdxRu8uzcgZwoDooA==", + "dev": true, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/read-package-json/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/read-package-json/node_modules/glob": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", + "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^5.0.1", + "once": "^1.3.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "read-package-json-fast": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/read-package-json-fast/-/read-package-json-fast-3.0.2.tgz", - "integrity": "sha512-0J+Msgym3vrLOUB3hzQCuZHII0xkNGCtz/HJH9xZshwv9DbDwkw1KaE3gx/e2J5rpEY5rtOy6cyhKOPrkP7FZw==", + "node_modules/read-package-json/node_modules/json-parse-even-better-errors": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-3.0.0.tgz", + "integrity": "sha512-iZbGHafX/59r39gPwVPRBGw0QQKnA7tte5pSMrhWOW7swGsVvVTjmfyAV9pNqk8YGT7tRCdxRu8uzcgZwoDooA==", + "dev": true, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/read-package-json/node_modules/minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", "dev": true, - "requires": { - "json-parse-even-better-errors": "^3.0.0", - "npm-normalize-package-bin": "^3.0.0" - }, "dependencies": { - "json-parse-even-better-errors": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-3.0.0.tgz", - "integrity": "sha512-iZbGHafX/59r39gPwVPRBGw0QQKnA7tte5pSMrhWOW7swGsVvVTjmfyAV9pNqk8YGT7tRCdxRu8uzcgZwoDooA==", - "dev": true - } + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" } }, - "readable-stream": { + "node_modules/readable-stream": { "version": "2.3.7", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", "dev": true, - "requires": { + "dependencies": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", "isarray": "~1.0.0", @@ -8088,94 +10840,106 @@ "util-deprecate": "~1.0.1" } }, - "readdirp": { + "node_modules/readdirp": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dev": true, - "requires": { + "dependencies": { "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" } }, - "reflect-metadata": { + "node_modules/reflect-metadata": { "version": "0.1.13", "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.13.tgz", - "integrity": "sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg==", - "dev": true + "integrity": "sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg==" }, - "regenerate": { + "node_modules/regenerate": { "version": "1.4.2", "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==", "dev": true }, - "regenerate-unicode-properties": { + "node_modules/regenerate-unicode-properties": { "version": "10.1.0", "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.0.tgz", "integrity": "sha512-d1VudCLoIGitcU/hEg2QqvyGZQmdC0Lf8BqdOMXGFSvJP4bNV1+XqbPQeHHLD51Jh4QJJ225dlIFvY4Ly6MXmQ==", "dev": true, - "requires": { + "dependencies": { "regenerate": "^1.4.2" + }, + "engines": { + "node": ">=4" } }, - "regenerator-runtime": { + "node_modules/regenerator-runtime": { "version": "0.13.11", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==", "dev": true }, - "regenerator-transform": { + "node_modules/regenerator-transform": { "version": "0.15.1", "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.1.tgz", "integrity": "sha512-knzmNAcuyxV+gQCufkYcvOqX/qIIfHLv0u5x79kRxuGojfYVky1f15TzZEu2Avte8QGepvUNTnLskf8E6X6Vyg==", "dev": true, - "requires": { + "dependencies": { "@babel/runtime": "^7.8.4" } }, - "regex-parser": { + "node_modules/regex-parser": { "version": "2.2.11", "resolved": "https://registry.npmjs.org/regex-parser/-/regex-parser-2.2.11.tgz", "integrity": "sha512-jbD/FT0+9MBU2XAZluI7w2OBs1RBi6p9M83nkoZayQXXU9e8Robt69FcZc7wU4eJD/YFTjn1JdCk3rbMJajz8Q==", "dev": true }, - "regexpu-core": { + "node_modules/regexpu-core": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.3.2.tgz", "integrity": "sha512-RAM5FlZz+Lhmo7db9L298p2vHP5ZywrVXmVXpmAD9GuL5MPH6t9ROw1iA/wfHkQ76Qe7AaPF0nGuim96/IrQMQ==", "dev": true, - "requires": { + "dependencies": { "@babel/regjsgen": "^0.8.0", "regenerate": "^1.4.2", "regenerate-unicode-properties": "^10.1.0", "regjsparser": "^0.9.1", "unicode-match-property-ecmascript": "^2.0.0", "unicode-match-property-value-ecmascript": "^2.1.0" + }, + "engines": { + "node": ">=4" } }, - "regjsparser": { + "node_modules/regjsparser": { "version": "0.9.1", "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz", "integrity": "sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==", "dev": true, - "requires": { + "dependencies": { "jsesc": "~0.5.0" }, - "dependencies": { - "jsesc": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", - "integrity": "sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==", - "dev": true - } + "bin": { + "regjsparser": "bin/parser" + } + }, + "node_modules/regjsparser/node_modules/jsesc": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", + "integrity": "sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" } }, - "request": { + "node_modules/request": { "version": "2.88.2", "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", + "deprecated": "request has been deprecated, see https://github.com/request/request/issues/3142", "dev": true, - "requires": { + "dependencies": { "aws-sign2": "~0.7.0", "aws4": "^1.8.0", "caseless": "~0.12.0", @@ -8197,321 +10961,439 @@ "tunnel-agent": "^0.6.0", "uuid": "^3.3.2" }, - "dependencies": { - "qs": { - "version": "6.5.2", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", - "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", - "dev": true - } + "engines": { + "node": ">= 6" + } + }, + "node_modules/request/node_modules/qs": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", + "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", + "dev": true, + "engines": { + "node": ">=0.6" } }, - "require-directory": { + "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=" + "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", + "engines": { + "node": ">=0.10.0" + } }, - "require-from-string": { + "node_modules/require-from-string": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==" + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "engines": { + "node": ">=0.10.0" + } }, - "require-main-filename": { + "node_modules/require-main-filename": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", "dev": true }, - "requires-port": { + "node_modules/requires-port": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", "dev": true }, - "resolve": { + "node_modules/resolve": { "version": "1.17.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz", "integrity": "sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w==", "dev": true, - "requires": { + "dependencies": { "path-parse": "^1.0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "resolve-from": { + "node_modules/resolve-from": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "resolve-url-loader": { + "node_modules/resolve-url-loader": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/resolve-url-loader/-/resolve-url-loader-5.0.0.tgz", "integrity": "sha512-uZtduh8/8srhBoMx//5bwqjQ+rfYOUq8zC9NrMUGtjBiGTtFJM42s58/36+hTqeqINcnYe08Nj3LkK9lW4N8Xg==", "dev": true, - "requires": { + "dependencies": { "adjust-sourcemap-loader": "^4.0.0", "convert-source-map": "^1.7.0", "loader-utils": "^2.0.0", "postcss": "^8.2.14", "source-map": "0.6.1" }, + "engines": { + "node": ">=12" + } + }, + "node_modules/resolve-url-loader/node_modules/loader-utils": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", + "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", + "dev": true, "dependencies": { - "loader-utils": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", - "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", - "dev": true, - "requires": { - "big.js": "^5.2.2", - "emojis-list": "^3.0.0", - "json5": "^2.1.2" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + }, + "engines": { + "node": ">=8.9.0" + } + }, + "node_modules/resolve-url-loader/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" } }, - "restore-cursor": { + "node_modules/restore-cursor": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", "dev": true, - "requires": { + "dependencies": { "onetime": "^5.1.0", "signal-exit": "^3.0.2" + }, + "engines": { + "node": ">=8" } }, - "retry": { + "node_modules/retry": { "version": "0.13.1", "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==", - "dev": true + "dev": true, + "engines": { + "node": ">= 4" + } }, - "reusify": { + "node_modules/reusify": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "dev": true + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } }, - "rimraf": { + "node_modules/rimraf": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", "dev": true, - "requires": { + "dependencies": { "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "run-async": { + "node_modules/run-async": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz", "integrity": "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.12.0" + } }, - "run-parallel": { + "node_modules/run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", "dev": true, - "requires": { + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { "queue-microtask": "^1.2.2" } }, - "rxjs": { + "node_modules/rxjs": { "version": "6.6.3", "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.3.tgz", "integrity": "sha512-trsQc+xYYXZ3urjOiJOuCOa5N3jAZ3eiSpQB5hIT8zGlL2QfnHLJ2r7GMkBGuIausdJN1OneaI6gQlsqNHHmZQ==", - "requires": { + "dependencies": { "tslib": "^1.9.0" }, - "dependencies": { - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - } + "engines": { + "npm": ">=2.0.0" } }, - "safe-buffer": { + "node_modules/rxjs/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + }, + "node_modules/safe-buffer": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", "dev": true }, - "safer-buffer": { + "node_modules/safer-buffer": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", "dev": true }, - "sass": { + "node_modules/sass": { "version": "1.58.1", "resolved": "https://registry.npmjs.org/sass/-/sass-1.58.1.tgz", "integrity": "sha512-bnINi6nPXbP1XNRaranMFEBZWUfdW/AF16Ql5+ypRxfTvCRTTKrLsMIakyDcayUt2t/RZotmL4kgJwNH5xO+bg==", "dev": true, - "requires": { + "dependencies": { "chokidar": ">=3.0.0 <4.0.0", "immutable": "^4.0.0", "source-map-js": ">=0.6.2 <2.0.0" + }, + "bin": { + "sass": "sass.js" + }, + "engines": { + "node": ">=12.0.0" } }, - "sass-loader": { + "node_modules/sass-loader": { "version": "13.2.0", "resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-13.2.0.tgz", "integrity": "sha512-JWEp48djQA4nbZxmgC02/Wh0eroSUutulROUusYJO9P9zltRbNN80JCBHqRGzjd4cmZCa/r88xgfkjGD0TXsHg==", "dev": true, - "requires": { + "dependencies": { "klona": "^2.0.4", "neo-async": "^2.6.2" + }, + "engines": { + "node": ">= 14.15.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "fibers": ">= 3.1.0", + "node-sass": "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0", + "sass": "^1.3.0", + "sass-embedded": "*", + "webpack": "^5.0.0" + }, + "peerDependenciesMeta": { + "fibers": { + "optional": true + }, + "node-sass": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + } } }, - "saucelabs": { + "node_modules/saucelabs": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/saucelabs/-/saucelabs-1.5.0.tgz", "integrity": "sha512-jlX3FGdWvYf4Q3LFfFWS1QvPg3IGCGWxIc8QBFdPTbpTJnt/v17FHXYVAn7C8sHf1yUXo2c7yIM0isDryfYtHQ==", "dev": true, - "requires": { + "dependencies": { "https-proxy-agent": "^2.2.1" + }, + "engines": { + "node": "*" } }, - "sax": { + "node_modules/sax": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", "dev": true }, - "schema-utils": { + "node_modules/schema-utils": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.0.tgz", "integrity": "sha512-1edyXKgh6XnJsJSQ8mKWXnN/BVaIbFMLpouRUrXgVq7WYne5kw3MW7UPhO44uRXQSIpTSXoJbmrR2X0w9kUTyg==", "dev": true, - "requires": { + "dependencies": { "@types/json-schema": "^7.0.9", "ajv": "^8.8.0", "ajv-formats": "^2.1.1", "ajv-keywords": "^5.0.0" }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/schema-utils/node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "dev": true, "dependencies": { - "ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - } - }, - "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true - } + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" } }, - "select-hose": { + "node_modules/schema-utils/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "node_modules/select-hose": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz", "integrity": "sha512-mEugaLK+YfkijB4fx0e6kImuJdCIt2LxCRcbEYPqRGCs4F2ogyfZU5IAZRdjCP8JPq2AtdNoC/Dux63d9Kiryg==", "dev": true }, - "selenium-webdriver": { + "node_modules/selenium-webdriver": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/selenium-webdriver/-/selenium-webdriver-3.6.0.tgz", "integrity": "sha512-WH7Aldse+2P5bbFBO4Gle/nuQOdVwpHMTL6raL3uuBj/vPG07k6uzt3aiahu352ONBr5xXh0hDlM3LhtXPOC4Q==", "dev": true, - "requires": { + "dependencies": { "jszip": "^3.1.3", "rimraf": "^2.5.4", "tmp": "0.0.30", "xml2js": "^0.4.17" }, + "engines": { + "node": ">= 6.9.0" + } + }, + "node_modules/selenium-webdriver/node_modules/rimraf": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "dev": true, "dependencies": { - "rimraf": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", - "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", - "dev": true, - "requires": { - "glob": "^7.1.3" - } - }, - "tmp": { - "version": "0.0.30", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.30.tgz", - "integrity": "sha1-ckGdSovn1s51FI/YsyTlk6cRwu0=", - "dev": true, - "requires": { - "os-tmpdir": "~1.0.1" - } - } + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + } + }, + "node_modules/selenium-webdriver/node_modules/tmp": { + "version": "0.0.30", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.30.tgz", + "integrity": "sha1-ckGdSovn1s51FI/YsyTlk6cRwu0=", + "dev": true, + "dependencies": { + "os-tmpdir": "~1.0.1" + }, + "engines": { + "node": ">=0.4.0" } }, - "selfsigned": { + "node_modules/selfsigned": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-2.1.1.tgz", "integrity": "sha512-GSL3aowiF7wa/WtSFwnUrludWFoNhftq8bUkH9pkzjpN2XSPOAYEgg6e0sS9s0rZwgJzJiQRPU18A6clnoW5wQ==", "dev": true, - "requires": { + "dependencies": { "node-forge": "^1" + }, + "engines": { + "node": ">=10" } }, - "semver": { + "node_modules/semver": { "version": "7.3.7", "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", - "dev": true, - "requires": { + "dependencies": { "lru-cache": "^6.0.0" }, - "dependencies": { - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - } + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" } }, - "semver-dsl": { + "node_modules/semver-dsl": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/semver-dsl/-/semver-dsl-1.0.1.tgz", "integrity": "sha1-02eN5VVeimH2Ke7QJTZq5fJzQKA=", "dev": true, - "requires": { + "dependencies": { "semver": "^5.3.0" - }, + } + }, + "node_modules/semver-dsl/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/semver/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", "dependencies": { - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true - } + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" } }, - "send": { + "node_modules/semver/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + }, + "node_modules/send": { "version": "0.18.0", "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", "dev": true, - "requires": { + "dependencies": { "debug": "2.6.9", "depd": "2.0.0", "destroy": "1.2.0", @@ -8526,47 +11408,46 @@ "range-parser": "~1.2.1", "statuses": "2.0.1" }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/send/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - }, - "dependencies": { - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - } - } - }, - "ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true - } + "ms": "2.0.0" } }, - "serialize-javascript": { + "node_modules/send/node_modules/debug/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "node_modules/send/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true + }, + "node_modules/serialize-javascript": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz", "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==", "dev": true, - "requires": { + "dependencies": { "randombytes": "^2.1.0" } }, - "serve-index": { + "node_modules/serve-index": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.9.1.tgz", "integrity": "sha512-pXHfKNP4qujrtteMrSBb0rc8HJ9Ms/GrXwcUtUtD5s4ewDJI8bT3Cz2zTVRMKtri49pLx2e0Ya8ziP5Ya2pZZw==", "dev": true, - "requires": { + "dependencies": { "accepts": "~1.3.4", "batch": "0.6.1", "debug": "2.6.9", @@ -8575,402 +11456,492 @@ "mime-types": "~2.1.17", "parseurl": "~1.3.2" }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/serve-index/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "depd": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", - "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==", - "dev": true - }, - "http-errors": { - "version": "1.6.3", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", - "integrity": "sha512-lks+lVC8dgGyh97jxvxeYTWQFvh4uw4yC12gVl63Cg30sjPX4wuGcdkICVXDAESr6OJGjqGA8Iz5mkeN6zlD7A==", - "dev": true, - "requires": { - "depd": "~1.1.2", - "inherits": "2.0.3", - "setprototypeof": "1.1.0", - "statuses": ">= 1.4.0 < 2" - } - }, - "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==", - "dev": true - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - }, - "setprototypeof": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", - "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==", - "dev": true - }, - "statuses": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", - "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==", - "dev": true - } + "ms": "2.0.0" + } + }, + "node_modules/serve-index/node_modules/depd": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", + "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/serve-index/node_modules/http-errors": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", + "integrity": "sha512-lks+lVC8dgGyh97jxvxeYTWQFvh4uw4yC12gVl63Cg30sjPX4wuGcdkICVXDAESr6OJGjqGA8Iz5mkeN6zlD7A==", + "dev": true, + "dependencies": { + "depd": "~1.1.2", + "inherits": "2.0.3", + "setprototypeof": "1.1.0", + "statuses": ">= 1.4.0 < 2" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/serve-index/node_modules/inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==", + "dev": true + }, + "node_modules/serve-index/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "node_modules/serve-index/node_modules/setprototypeof": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", + "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==", + "dev": true + }, + "node_modules/serve-index/node_modules/statuses": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", + "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==", + "dev": true, + "engines": { + "node": ">= 0.6" } }, - "serve-static": { + "node_modules/serve-static": { "version": "1.15.0", "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", "dev": true, - "requires": { + "dependencies": { "encodeurl": "~1.0.2", "escape-html": "~1.0.3", "parseurl": "~1.3.3", "send": "0.18.0" + }, + "engines": { + "node": ">= 0.8.0" } }, - "set-blocking": { + "node_modules/set-blocking": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", "dev": true }, - "set-immediate-shim": { + "node_modules/set-immediate-shim": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz", "integrity": "sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "setprototypeof": { + "node_modules/setprototypeof": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", "dev": true }, - "shallow-clone": { + "node_modules/shallow-clone": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", "dev": true, - "requires": { + "dependencies": { "kind-of": "^6.0.2" + }, + "engines": { + "node": ">=8" } }, - "shebang-command": { + "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dev": true, - "requires": { + "dependencies": { "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" } }, - "shebang-regex": { + "node_modules/shebang-regex": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "side-channel": { + "node_modules/side-channel": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", "dev": true, - "requires": { + "dependencies": { "call-bind": "^1.0.0", "get-intrinsic": "^1.0.2", "object-inspect": "^1.9.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, + "node_modules/sigstore": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/sigstore/-/sigstore-1.0.0.tgz", + "integrity": "sha512-e+qfbn/zf1+rCza/BhIA//Awmf0v1pa5HQS8Xk8iXrn9bgytytVLqYD0P7NSqZ6IELTgq+tcDvLPkQjNHyWLNg==", + "dev": true, + "dependencies": { + "make-fetch-happen": "^11.0.1", + "tuf-js": "^1.0.0" + }, + "bin": { + "sigstore": "bin/sigstore.js" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/sigstore/node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "dev": true, + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/sigstore/node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "dev": true, + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/sigstore/node_modules/lru-cache": { + "version": "7.18.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", + "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/sigstore/node_modules/make-fetch-happen": { + "version": "11.0.3", + "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-11.0.3.tgz", + "integrity": "sha512-oPLh5m10lRNNZDjJ2kP8UpboUx2uFXVaVweVe/lWut4iHWcQEmfqSVJt2ihZsFI8HbpwyyocaXbCAWf0g1ukIA==", + "dev": true, + "dependencies": { + "agentkeepalive": "^4.2.1", + "cacache": "^17.0.0", + "http-cache-semantics": "^4.1.1", + "http-proxy-agent": "^5.0.0", + "https-proxy-agent": "^5.0.0", + "is-lambda": "^1.0.1", + "lru-cache": "^7.7.1", + "minipass": "^4.0.0", + "minipass-fetch": "^3.0.0", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "negotiator": "^0.6.3", + "promise-retry": "^2.0.1", + "socks-proxy-agent": "^7.0.0", + "ssri": "^10.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, - "signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", - "dev": true - }, - "sigstore": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/sigstore/-/sigstore-1.0.0.tgz", - "integrity": "sha512-e+qfbn/zf1+rCza/BhIA//Awmf0v1pa5HQS8Xk8iXrn9bgytytVLqYD0P7NSqZ6IELTgq+tcDvLPkQjNHyWLNg==", + "node_modules/sigstore/node_modules/minipass-fetch": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-3.0.1.tgz", + "integrity": "sha512-t9/wowtf7DYkwz8cfMSt0rMwiyNIBXf5CKZ3S5ZMqRqMYT0oLTp0x1WorMI9WTwvaPg21r1JbFxJMum8JrLGfw==", "dev": true, - "requires": { - "make-fetch-happen": "^11.0.1", - "tuf-js": "^1.0.0" - }, "dependencies": { - "agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "dev": true, - "requires": { - "debug": "4" - } - }, - "https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", - "dev": true, - "requires": { - "agent-base": "6", - "debug": "4" - } - }, - "lru-cache": { - "version": "7.18.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", - "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", - "dev": true - }, - "make-fetch-happen": { - "version": "11.0.3", - "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-11.0.3.tgz", - "integrity": "sha512-oPLh5m10lRNNZDjJ2kP8UpboUx2uFXVaVweVe/lWut4iHWcQEmfqSVJt2ihZsFI8HbpwyyocaXbCAWf0g1ukIA==", - "dev": true, - "requires": { - "agentkeepalive": "^4.2.1", - "cacache": "^17.0.0", - "http-cache-semantics": "^4.1.1", - "http-proxy-agent": "^5.0.0", - "https-proxy-agent": "^5.0.0", - "is-lambda": "^1.0.1", - "lru-cache": "^7.7.1", - "minipass": "^4.0.0", - "minipass-fetch": "^3.0.0", - "minipass-flush": "^1.0.5", - "minipass-pipeline": "^1.2.4", - "negotiator": "^0.6.3", - "promise-retry": "^2.0.1", - "socks-proxy-agent": "^7.0.0", - "ssri": "^10.0.0" - } - }, - "minipass-fetch": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-3.0.1.tgz", - "integrity": "sha512-t9/wowtf7DYkwz8cfMSt0rMwiyNIBXf5CKZ3S5ZMqRqMYT0oLTp0x1WorMI9WTwvaPg21r1JbFxJMum8JrLGfw==", - "dev": true, - "requires": { - "encoding": "^0.1.13", - "minipass": "^4.0.0", - "minipass-sized": "^1.0.3", - "minizlib": "^2.1.2" - } - } + "minipass": "^4.0.0", + "minipass-sized": "^1.0.3", + "minizlib": "^2.1.2" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + }, + "optionalDependencies": { + "encoding": "^0.1.13" } }, - "slash": { + "node_modules/slash": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz", "integrity": "sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==", - "dev": true + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "smart-buffer": { + "node_modules/smart-buffer": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", - "dev": true + "dev": true, + "engines": { + "node": ">= 6.0.0", + "npm": ">= 3.0.0" + } }, - "sockjs": { + "node_modules/sockjs": { "version": "0.3.24", "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.24.tgz", "integrity": "sha512-GJgLTZ7vYb/JtPSSZ10hsOYIvEYsjbNU+zPdIHcUaWVNUEPivzxku31865sSSud0Da0W4lEeOPlmw93zLQchuQ==", "dev": true, - "requires": { + "dependencies": { "faye-websocket": "^0.11.3", "uuid": "^8.3.2", "websocket-driver": "^0.7.4" - }, - "dependencies": { - "uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "dev": true - } } }, - "socks": { + "node_modules/sockjs/node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "dev": true, + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/socks": { "version": "2.7.1", "resolved": "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz", "integrity": "sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ==", "dev": true, - "requires": { + "dependencies": { "ip": "^2.0.0", "smart-buffer": "^4.2.0" + }, + "engines": { + "node": ">= 10.13.0", + "npm": ">= 3.0.0" } }, - "socks-proxy-agent": { + "node_modules/socks-proxy-agent": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-7.0.0.tgz", "integrity": "sha512-Fgl0YPZ902wEsAyiQ+idGd1A7rSFx/ayC1CQVMw5P+EQx2V0SgpGtf6OKFhVjPflPUl9YMmEOnmfjCdMUsygww==", "dev": true, - "requires": { + "dependencies": { "agent-base": "^6.0.2", "debug": "^4.3.3", "socks": "^2.6.2" }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/socks-proxy-agent/node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "dev": true, "dependencies": { - "agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "dev": true, - "requires": { - "debug": "4" - } - } + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" } }, - "source-map": { + "node_modules/source-map": { "version": "0.7.4", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", - "dev": true + "dev": true, + "engines": { + "node": ">= 8" + } }, - "source-map-js": { + "node_modules/source-map-js": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "source-map-loader": { + "node_modules/source-map-loader": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/source-map-loader/-/source-map-loader-4.0.1.tgz", "integrity": "sha512-oqXpzDIByKONVY8g1NUPOTQhe0UTU5bWUl32GSkqK2LjJj0HmwTMVKxcUip0RgAYhY1mqgOxjbQM48a0mmeNfA==", "dev": true, - "requires": { + "dependencies": { "abab": "^2.0.6", "iconv-lite": "^0.6.3", "source-map-js": "^1.0.2" }, + "engines": { + "node": ">= 14.15.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.72.1" + } + }, + "node_modules/source-map-loader/node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "dev": true, "dependencies": { - "iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "dev": true, - "requires": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - } - } + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "source-map-support": { + "node_modules/source-map-support": { "version": "0.5.19", "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz", "integrity": "sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==", "dev": true, - "requires": { + "dependencies": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } } }, - "spdx-correct": { + "node_modules/source-map-support/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/spdx-correct": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.2.0.tgz", "integrity": "sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==", "dev": true, - "requires": { + "dependencies": { "spdx-expression-parse": "^3.0.0", "spdx-license-ids": "^3.0.0" } }, - "spdx-exceptions": { + "node_modules/spdx-exceptions": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", "dev": true }, - "spdx-expression-parse": { + "node_modules/spdx-expression-parse": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", "dev": true, - "requires": { + "dependencies": { "spdx-exceptions": "^2.1.0", "spdx-license-ids": "^3.0.0" } }, - "spdx-license-ids": { + "node_modules/spdx-license-ids": { "version": "3.0.13", "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.13.tgz", "integrity": "sha512-XkD+zwiqXHikFZm4AX/7JSCXA98U5Db4AFd5XUg/+9UNtnH75+Z9KxtpYiJZx36mUDVOwH83pl7yvCer6ewM3w==", "dev": true }, - "spdy": { + "node_modules/spdy": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/spdy/-/spdy-4.0.2.tgz", "integrity": "sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA==", "dev": true, - "requires": { + "dependencies": { "debug": "^4.1.0", "handle-thing": "^2.0.0", "http-deceiver": "^1.2.7", "select-hose": "^2.0.0", "spdy-transport": "^3.0.0" + }, + "engines": { + "node": ">=6.0.0" } }, - "spdy-transport": { + "node_modules/spdy-transport": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/spdy-transport/-/spdy-transport-3.0.0.tgz", "integrity": "sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw==", "dev": true, - "requires": { + "dependencies": { "debug": "^4.1.0", "detect-node": "^2.0.4", "hpack.js": "^2.1.6", "obuf": "^1.1.2", "readable-stream": "^3.0.6", "wbuf": "^1.7.3" - }, + } + }, + "node_modules/spdy-transport/node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dev": true, "dependencies": { - "readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } - } + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" } }, - "sprintf-js": { + "node_modules/sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", "dev": true }, - "sshpk": { + "node_modules/sshpk": { "version": "1.16.1", "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", "dev": true, - "requires": { + "dependencies": { "asn1": "~0.2.3", "assert-plus": "^1.0.0", "bcrypt-pbkdf": "^1.0.0", @@ -8980,104 +11951,146 @@ "jsbn": "~0.1.0", "safer-buffer": "^2.0.2", "tweetnacl": "~0.14.0" + }, + "bin": { + "sshpk-conv": "bin/sshpk-conv", + "sshpk-sign": "bin/sshpk-sign", + "sshpk-verify": "bin/sshpk-verify" + }, + "engines": { + "node": ">=0.10.0" } }, - "ssri": { + "node_modules/ssri": { "version": "10.0.1", "resolved": "https://registry.npmjs.org/ssri/-/ssri-10.0.1.tgz", "integrity": "sha512-WVy6di9DlPOeBWEjMScpNipeSX2jIZBGEn5Uuo8Q7aIuFEuDX0pw8RxcOjlD1TWP4obi24ki7m/13+nFpcbXrw==", "dev": true, - "requires": { + "dependencies": { "minipass": "^4.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, - "statuses": { + "node_modules/statuses": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.1.0" + } }, - "string-width": { + "node_modules/string-width": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "requires": { + "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" }, - "dependencies": { - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "requires": { - "ansi-regex": "^5.0.1" - } - } + "engines": { + "node": ">=8" } }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" + "node_modules/string-width/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" } }, - "strip-ansi": { + "node_modules/strip-ansi": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", "dev": true, - "requires": { + "dependencies": { "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "strip-final-newline": { + "node_modules/strip-final-newline": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", - "dev": true + "dev": true, + "engines": { + "node": ">=6" + } }, - "supports-color": { + "node_modules/supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "requires": { + "dependencies": { "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" } }, - "supports-preserve-symlinks-flag": { + "node_modules/supports-preserve-symlinks-flag": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "symbol-observable": { + "node_modules/symbol-observable": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-4.0.0.tgz", "integrity": "sha512-b19dMThMV4HVFynSAM1++gBHAbk2Tc/osgLIBZMKsyqh34jb2e8Os7T6ZW/Bt3pJFdBTd2JwAnAAEQV7rSNvcQ==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10" + } }, - "tapable": { + "node_modules/tapable": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", - "dev": true + "dev": true, + "engines": { + "node": ">=6" + } }, - "tar": { + "node_modules/tar": { "version": "6.1.13", "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.13.tgz", "integrity": "sha512-jdIBIN6LTIe2jqzay/2vtYLlBHa3JF42ot3h1dW8Q0PaAG4v8rm0cvpVePtau5C6OKXGGcgO9q2AMNSWxiLqKw==", "dev": true, - "requires": { + "dependencies": { "chownr": "^2.0.0", "fs-minipass": "^2.0.0", "minipass": "^4.0.0", @@ -9085,241 +12098,334 @@ "mkdirp": "^1.0.3", "yallist": "^4.0.0" }, + "engines": { + "node": ">=10" + } + }, + "node_modules/tar/node_modules/fs-minipass": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", + "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", + "dev": true, "dependencies": { - "fs-minipass": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", - "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", - "dev": true, - "requires": { - "minipass": "^3.0.0" - }, - "dependencies": { - "minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - } - } - }, - "mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "dev": true - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - } + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/tar/node_modules/fs-minipass/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/tar/node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true, + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" } }, - "terser": { + "node_modules/tar/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/terser": { "version": "5.16.3", "resolved": "https://registry.npmjs.org/terser/-/terser-5.16.3.tgz", "integrity": "sha512-v8wWLaS/xt3nE9dgKEWhNUFP6q4kngO5B8eYFUuebsu7Dw/UNAnpUod6UHo04jSSkv8TzKHjZDSd7EXdDQAl8Q==", "dev": true, - "requires": { + "dependencies": { "@jridgewell/source-map": "^0.3.2", "acorn": "^8.5.0", "commander": "^2.20.0", "source-map-support": "~0.5.20" }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dev": true, - "requires": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - } + "bin": { + "terser": "bin/terser" + }, + "engines": { + "node": ">=10" } }, - "terser-webpack-plugin": { + "node_modules/terser-webpack-plugin": { "version": "5.3.7", "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.7.tgz", "integrity": "sha512-AfKwIktyP7Cu50xNjXF/6Qb5lBNzYaWpU6YfoX3uZicTx0zTy0stDDCsvjDapKsSDvOeWo5MEq4TmdBy2cNoHw==", "dev": true, - "requires": { + "dependencies": { "@jridgewell/trace-mapping": "^0.3.17", "jest-worker": "^27.4.5", "schema-utils": "^3.1.1", "serialize-javascript": "^6.0.1", "terser": "^5.16.5" }, - "dependencies": { - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "dev": true - }, - "schema-utils": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", - "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", - "dev": true, - "requires": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.1.0" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true }, - "source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dev": true, - "requires": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } + "esbuild": { + "optional": true }, - "terser": { - "version": "5.16.6", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.16.6.tgz", - "integrity": "sha512-IBZ+ZQIA9sMaXmRZCUMDjNH0D5AQQfdn4WUjHL0+1lF4TP1IHRJbrhb6fNaXWikrYQTSkb7SLxkeXAiy1p7mbg==", - "dev": true, - "requires": { - "@jridgewell/source-map": "^0.3.2", - "acorn": "^8.5.0", - "commander": "^2.20.0", - "source-map-support": "~0.5.20" - } + "uglify-js": { + "optional": true } } }, - "test-exclude": { + "node_modules/terser-webpack-plugin/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/terser-webpack-plugin/node_modules/ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true, + "peerDependencies": { + "ajv": "^6.9.1" + } + }, + "node_modules/terser-webpack-plugin/node_modules/schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/terser-webpack-plugin/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/terser-webpack-plugin/node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/terser-webpack-plugin/node_modules/terser": { + "version": "5.16.6", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.16.6.tgz", + "integrity": "sha512-IBZ+ZQIA9sMaXmRZCUMDjNH0D5AQQfdn4WUjHL0+1lF4TP1IHRJbrhb6fNaXWikrYQTSkb7SLxkeXAiy1p7mbg==", + "dev": true, + "dependencies": { + "@jridgewell/source-map": "^0.3.2", + "acorn": "^8.5.0", + "commander": "^2.20.0", + "source-map-support": "~0.5.20" + }, + "bin": { + "terser": "bin/terser" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/terser/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/terser/node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/test-exclude": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", "dev": true, - "requires": { + "dependencies": { "@istanbuljs/schema": "^0.1.2", "glob": "^7.1.4", "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=8" } }, - "text-table": { + "node_modules/text-table": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", "dev": true }, - "through": { + "node_modules/through": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", "dev": true }, - "thunky": { + "node_modules/thunky": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", "integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==", "dev": true }, - "tmp": { + "node_modules/tmp": { "version": "0.0.33", "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", "dev": true, - "requires": { + "dependencies": { "os-tmpdir": "~1.0.2" + }, + "engines": { + "node": ">=0.6.0" } }, - "to-fast-properties": { + "node_modules/to-fast-properties": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==" + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", + "engines": { + "node": ">=4" + } }, - "to-regex-range": { + "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "requires": { + "dependencies": { "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" } }, - "toidentifier": { + "node_modules/toidentifier": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.6" + } }, - "tough-cookie": { + "node_modules/tough-cookie": { "version": "2.5.0", "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", "dev": true, - "requires": { + "dependencies": { "psl": "^1.1.28", "punycode": "^2.1.1" + }, + "engines": { + "node": ">=0.8" } }, - "tree-kill": { + "node_modules/tree-kill": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz", "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==", - "dev": true + "dev": true, + "bin": { + "tree-kill": "cli.js" + } }, - "ts-node": { + "node_modules/ts-node": { "version": "9.0.0", "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-9.0.0.tgz", "integrity": "sha512-/TqB4SnererCDR/vb4S/QvSZvzQMJN8daAslg7MeaiHvD8rDZsSfXmNeNumyZZzMned72Xoq/isQljYSt8Ynfg==", "dev": true, - "requires": { + "dependencies": { "arg": "^4.1.0", "diff": "^4.0.1", "make-error": "^1.1.1", "source-map-support": "^0.5.17", "yn": "3.1.1" + }, + "bin": { + "ts-node": "dist/bin.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" + }, + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "typescript": ">=2.7" } }, - "tslib": { + "node_modules/tslib": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.0.1.tgz", "integrity": "sha512-SgIkNheinmEBgx1IUNirK0TUD4X9yjjBRTqqjggWCU3pUEqIk3/Uwl3yRixYKT6WjQuGiwDv4NomL3wqRCj+CQ==" }, - "tslint": { + "node_modules/tslint": { "version": "6.1.3", "resolved": "https://registry.npmjs.org/tslint/-/tslint-6.1.3.tgz", "integrity": "sha512-IbR4nkT96EQOvKE2PW/djGz8iGNeJ4rF2mBfiYaR/nvUWYKJhLwimoJKgjIFEIDibBtOevj7BqCRL4oHeWWUCg==", + "deprecated": "TSLint has been deprecated in favor of ESLint. Please see https://github.com/palantir/tslint/issues/4534 for more information.", "dev": true, - "requires": { + "dependencies": { "@babel/code-frame": "^7.0.0", "builtin-modules": "^1.1.1", "chalk": "^2.3.0", @@ -9334,325 +12440,431 @@ "tslib": "^1.13.0", "tsutils": "^2.29.0" }, - "dependencies": { - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true - }, - "tslib": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.13.0.tgz", - "integrity": "sha512-i/6DQjL8Xf3be4K/E6Wgpekn5Qasl1usyw++dAA35Ue5orEn65VIxOA+YvNNl9HV3qv70T7CNwjODHZrLwvd1Q==", - "dev": true - } + "bin": { + "tslint": "bin/tslint" + }, + "engines": { + "node": ">=4.8.0" + }, + "peerDependencies": { + "typescript": ">=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev || >=2.7.0-dev || >=2.8.0-dev || >=2.9.0-dev || >=3.0.0-dev || >= 3.1.0-dev || >= 3.2.0-dev || >= 4.0.0-dev" + } + }, + "node_modules/tslint/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "bin": { + "semver": "bin/semver" } }, - "tsutils": { + "node_modules/tslint/node_modules/tslib": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.13.0.tgz", + "integrity": "sha512-i/6DQjL8Xf3be4K/E6Wgpekn5Qasl1usyw++dAA35Ue5orEn65VIxOA+YvNNl9HV3qv70T7CNwjODHZrLwvd1Q==", + "dev": true + }, + "node_modules/tsutils": { "version": "2.29.0", "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", "dev": true, - "requires": { + "dependencies": { "tslib": "^1.8.1" }, - "dependencies": { - "tslib": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.13.0.tgz", - "integrity": "sha512-i/6DQjL8Xf3be4K/E6Wgpekn5Qasl1usyw++dAA35Ue5orEn65VIxOA+YvNNl9HV3qv70T7CNwjODHZrLwvd1Q==", - "dev": true - } + "peerDependencies": { + "typescript": ">=2.1.0 || >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev || >=2.7.0-dev || >=2.8.0-dev || >=2.9.0-dev || >= 3.0.0-dev || >= 3.1.0-dev" } }, - "tuf-js": { + "node_modules/tsutils/node_modules/tslib": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.13.0.tgz", + "integrity": "sha512-i/6DQjL8Xf3be4K/E6Wgpekn5Qasl1usyw++dAA35Ue5orEn65VIxOA+YvNNl9HV3qv70T7CNwjODHZrLwvd1Q==", + "dev": true + }, + "node_modules/tuf-js": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/tuf-js/-/tuf-js-1.1.1.tgz", "integrity": "sha512-WTp382/PR96k0dI4GD5RdiRhgOU0rAC7+lnoih/5pZg3cyb3aNMqDozleEEWwyfT3+FOg7Qz9JU3n6A44tLSHw==", "dev": true, - "requires": { + "dependencies": { "@tufjs/models": "1.0.0", "make-fetch-happen": "^11.0.1" }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/tuf-js/node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "dev": true, "dependencies": { - "agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "dev": true, - "requires": { - "debug": "4" - } - }, - "https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", - "dev": true, - "requires": { - "agent-base": "6", - "debug": "4" - } - }, - "lru-cache": { - "version": "7.18.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", - "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", - "dev": true - }, - "make-fetch-happen": { - "version": "11.0.3", - "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-11.0.3.tgz", - "integrity": "sha512-oPLh5m10lRNNZDjJ2kP8UpboUx2uFXVaVweVe/lWut4iHWcQEmfqSVJt2ihZsFI8HbpwyyocaXbCAWf0g1ukIA==", - "dev": true, - "requires": { - "agentkeepalive": "^4.2.1", - "cacache": "^17.0.0", - "http-cache-semantics": "^4.1.1", - "http-proxy-agent": "^5.0.0", - "https-proxy-agent": "^5.0.0", - "is-lambda": "^1.0.1", - "lru-cache": "^7.7.1", - "minipass": "^4.0.0", - "minipass-fetch": "^3.0.0", - "minipass-flush": "^1.0.5", - "minipass-pipeline": "^1.2.4", - "negotiator": "^0.6.3", - "promise-retry": "^2.0.1", - "socks-proxy-agent": "^7.0.0", - "ssri": "^10.0.0" - } - }, - "minipass-fetch": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-3.0.1.tgz", - "integrity": "sha512-t9/wowtf7DYkwz8cfMSt0rMwiyNIBXf5CKZ3S5ZMqRqMYT0oLTp0x1WorMI9WTwvaPg21r1JbFxJMum8JrLGfw==", - "dev": true, - "requires": { - "encoding": "^0.1.13", - "minipass": "^4.0.0", - "minipass-sized": "^1.0.3", - "minizlib": "^2.1.2" - } - } + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/tuf-js/node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "dev": true, + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/tuf-js/node_modules/lru-cache": { + "version": "7.18.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", + "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/tuf-js/node_modules/make-fetch-happen": { + "version": "11.0.3", + "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-11.0.3.tgz", + "integrity": "sha512-oPLh5m10lRNNZDjJ2kP8UpboUx2uFXVaVweVe/lWut4iHWcQEmfqSVJt2ihZsFI8HbpwyyocaXbCAWf0g1ukIA==", + "dev": true, + "dependencies": { + "agentkeepalive": "^4.2.1", + "cacache": "^17.0.0", + "http-cache-semantics": "^4.1.1", + "http-proxy-agent": "^5.0.0", + "https-proxy-agent": "^5.0.0", + "is-lambda": "^1.0.1", + "lru-cache": "^7.7.1", + "minipass": "^4.0.0", + "minipass-fetch": "^3.0.0", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "negotiator": "^0.6.3", + "promise-retry": "^2.0.1", + "socks-proxy-agent": "^7.0.0", + "ssri": "^10.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/tuf-js/node_modules/minipass-fetch": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-3.0.1.tgz", + "integrity": "sha512-t9/wowtf7DYkwz8cfMSt0rMwiyNIBXf5CKZ3S5ZMqRqMYT0oLTp0x1WorMI9WTwvaPg21r1JbFxJMum8JrLGfw==", + "dev": true, + "dependencies": { + "minipass": "^4.0.0", + "minipass-sized": "^1.0.3", + "minizlib": "^2.1.2" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + }, + "optionalDependencies": { + "encoding": "^0.1.13" } }, - "tunnel-agent": { + "node_modules/tunnel-agent": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", "dev": true, - "requires": { + "dependencies": { "safe-buffer": "^5.0.1" + }, + "engines": { + "node": "*" } }, - "tweetnacl": { + "node_modules/tweetnacl": { "version": "0.14.5", "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", "dev": true }, - "type-fest": { + "node_modules/type-fest": { "version": "0.21.3", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", - "dev": true + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "type-is": { + "node_modules/type-is": { "version": "1.6.18", "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", "dev": true, - "requires": { + "dependencies": { "media-typer": "0.3.0", "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" } }, - "typed-assert": { + "node_modules/typed-assert": { "version": "1.0.9", "resolved": "https://registry.npmjs.org/typed-assert/-/typed-assert-1.0.9.tgz", "integrity": "sha512-KNNZtayBCtmnNmbo5mG47p1XsCyrx6iVqomjcZnec/1Y5GGARaxPs6r49RnSPeUP3YjNYiU9sQHAtY4BBvnZwg==", "dev": true }, - "typescript": { + "node_modules/typescript": { "version": "4.9.5", "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", - "dev": true + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } }, - "unicode-canonical-property-names-ecmascript": { + "node_modules/unicode-canonical-property-names-ecmascript": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==", - "dev": true + "dev": true, + "engines": { + "node": ">=4" + } }, - "unicode-match-property-ecmascript": { + "node_modules/unicode-match-property-ecmascript": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", "dev": true, - "requires": { + "dependencies": { "unicode-canonical-property-names-ecmascript": "^2.0.0", "unicode-property-aliases-ecmascript": "^2.0.0" + }, + "engines": { + "node": ">=4" } }, - "unicode-match-property-value-ecmascript": { + "node_modules/unicode-match-property-value-ecmascript": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.1.0.tgz", "integrity": "sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA==", - "dev": true + "dev": true, + "engines": { + "node": ">=4" + } }, - "unicode-property-aliases-ecmascript": { + "node_modules/unicode-property-aliases-ecmascript": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz", "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==", - "dev": true + "dev": true, + "engines": { + "node": ">=4" + } }, - "unique-filename": { + "node_modules/unique-filename": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-3.0.0.tgz", "integrity": "sha512-afXhuC55wkAmZ0P18QsVE6kp8JaxrEokN2HGIoIVv2ijHQd419H0+6EigAFcIzXeMIkcIkNBpB3L/DXB3cTS/g==", "dev": true, - "requires": { + "dependencies": { "unique-slug": "^4.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, - "unique-slug": { + "node_modules/unique-slug": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-4.0.0.tgz", "integrity": "sha512-WrcA6AyEfqDX5bWige/4NQfPZMtASNVxdmWR76WESYQVAACSgWcR6e9i0mofqqBxYFtL4oAxPIptY73/0YE1DQ==", "dev": true, - "requires": { + "dependencies": { "imurmurhash": "^0.1.4" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, - "unpipe": { + "node_modules/unpipe": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.8" + } }, - "update-browserslist-db": { + "node_modules/update-browserslist-db": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz", "integrity": "sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ==", - "requires": { + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + } + ], + "dependencies": { "escalade": "^3.1.1", "picocolors": "^1.0.0" + }, + "bin": { + "browserslist-lint": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" } }, - "uri-js": { + "node_modules/uri-js": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", - "requires": { + "dependencies": { "punycode": "^2.1.0" } }, - "util-deprecate": { + "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", "dev": true }, - "utils-merge": { + "node_modules/utils-merge": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.4.0" + } }, - "uuid": { + "node_modules/uuid": { "version": "3.4.0", "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", - "dev": true + "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", + "dev": true, + "bin": { + "uuid": "bin/uuid" + } }, - "validate-npm-package-license": { + "node_modules/validate-npm-package-license": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", "dev": true, - "requires": { + "dependencies": { "spdx-correct": "^3.0.0", "spdx-expression-parse": "^3.0.0" } }, - "validate-npm-package-name": { + "node_modules/validate-npm-package-name": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/validate-npm-package-name/-/validate-npm-package-name-5.0.0.tgz", "integrity": "sha512-YuKoXDAhBYxY7SfOKxHBDoSyENFeW5VvIIQp2TGQuit8gpK6MnWaQelBKxso72DoxTZfZdcP3W90LqpSkgPzLQ==", "dev": true, - "requires": { + "dependencies": { "builtins": "^5.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, - "vanilla-jsoneditor": { + "node_modules/vanilla-jsoneditor": { "version": "0.15.1", "resolved": "https://registry.npmjs.org/vanilla-jsoneditor/-/vanilla-jsoneditor-0.15.1.tgz", "integrity": "sha512-vYA7PCi/ZUqvqhr8hMYLjj5MviWOIMmu/15czcRqmjWEn7DnxcaSNykQUrKF8S55vj0C4m0h0gCynC2zZ/bSfQ==" }, - "vary": { + "node_modules/vary": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.8" + } }, - "verror": { + "node_modules/verror": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", "dev": true, - "requires": { + "engines": [ + "node >=0.6.0" + ], + "dependencies": { "assert-plus": "^1.0.0", "core-util-is": "1.0.2", "extsprintf": "^1.2.0" } }, - "watchpack": { + "node_modules/watchpack": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", "dev": true, - "requires": { + "dependencies": { "glob-to-regexp": "^0.4.1", "graceful-fs": "^4.1.2" + }, + "engines": { + "node": ">=10.13.0" } }, - "wbuf": { + "node_modules/wbuf": { "version": "1.7.3", "resolved": "https://registry.npmjs.org/wbuf/-/wbuf-1.7.3.tgz", "integrity": "sha512-O84QOnr0icsbFGLS0O3bI5FswxzRr8/gHwWkDlQFskhSPryQXvrTMxjxGP4+iWYoauLoBvfDpkrOauZ+0iZpDA==", "dev": true, - "requires": { + "dependencies": { "minimalistic-assert": "^1.0.0" } }, - "wcwidth": { + "node_modules/wcwidth": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", "integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==", "dev": true, - "requires": { + "dependencies": { "defaults": "^1.0.3" } }, - "webdriver-js-extender": { + "node_modules/webdriver-js-extender": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/webdriver-js-extender/-/webdriver-js-extender-2.1.0.tgz", "integrity": "sha512-lcUKrjbBfCK6MNsh7xaY2UAUmZwe+/ib03AjVOpFobX4O7+83BUveSrLfU0Qsyb1DaKJdQRbuU+kM9aZ6QUhiQ==", "dev": true, - "requires": { + "dependencies": { "@types/selenium-webdriver": "^3.0.0", "selenium-webdriver": "^3.0.1" + }, + "engines": { + "node": ">=6.9.x" } }, - "webpack": { + "node_modules/webpack": { "version": "5.75.0", "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.75.0.tgz", "integrity": "sha512-piaIaoVJlqMsPtX/+3KTTO6jfvrSYgauFVdt8cr9LTHKmcq/AMd4mhzsiP7ZF/PGRNPGA8336jldh9l2Kt2ogQ==", "dev": true, - "requires": { + "dependencies": { "@types/eslint-scope": "^3.7.3", "@types/estree": "^0.0.51", "@webassemblyjs/ast": "1.11.1", @@ -9678,74 +12890,72 @@ "watchpack": "^2.4.0", "webpack-sources": "^3.2.3" }, - "dependencies": { - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "dev": true - }, - "schema-utils": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", - "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", - "dev": true, - "requires": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - } + "bin": { + "webpack": "bin/webpack.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependenciesMeta": { + "webpack-cli": { + "optional": true } } }, - "webpack-dev-middleware": { + "node_modules/webpack-dev-middleware": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-6.0.1.tgz", "integrity": "sha512-PZPZ6jFinmqVPJZbisfggDiC+2EeGZ1ZByyMP5sOFJcPPWSexalISz+cvm+j+oYPT7FIJyxT76esjnw9DhE5sw==", "dev": true, - "requires": { + "dependencies": { "colorette": "^2.0.10", "memfs": "^3.4.12", "mime-types": "^2.1.31", "range-parser": "^1.2.1", "schema-utils": "^4.0.0" }, + "engines": { + "node": ">= 14.15.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + } + }, + "node_modules/webpack-dev-middleware/node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/webpack-dev-middleware/node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, "dependencies": { - "mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "dev": true - }, - "mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dev": true, - "requires": { - "mime-db": "1.52.0" - } - } + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" } }, - "webpack-dev-server": { + "node_modules/webpack-dev-server": { "version": "4.11.1", "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-4.11.1.tgz", "integrity": "sha512-lILVz9tAUy1zGFwieuaQtYiadImb5M3d+H+L1zDYalYoDl0cksAB1UNyuE5MMWJrG6zR1tXkCP2fitl7yoUJiw==", "dev": true, - "requires": { + "dependencies": { "@types/bonjour": "^3.5.9", "@types/connect-history-api-fallback": "^1.3.5", "@types/express": "^4.17.13", @@ -9776,204 +12986,352 @@ "webpack-dev-middleware": "^5.3.1", "ws": "^8.4.2" }, - "dependencies": { - "mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "dev": true - }, - "mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dev": true, - "requires": { - "mime-db": "1.52.0" - } - }, - "webpack-dev-middleware": { - "version": "5.3.3", - "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-5.3.3.tgz", - "integrity": "sha512-hj5CYrY0bZLB+eTO+x/j67Pkrquiy7kWepMHmUMoPsmcUaeEnQJqFzHJOyxgWlq746/wUuA64p9ta34Kyb01pA==", - "dev": true, - "requires": { - "colorette": "^2.0.10", - "memfs": "^3.4.3", - "mime-types": "^2.1.31", - "range-parser": "^1.2.1", - "schema-utils": "^4.0.0" - } + "bin": { + "webpack-dev-server": "bin/webpack-dev-server.js" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^4.37.0 || ^5.0.0" + }, + "peerDependenciesMeta": { + "webpack-cli": { + "optional": true } } }, - "webpack-merge": { + "node_modules/webpack-dev-server/node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/webpack-dev-server/node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/webpack-dev-server/node_modules/webpack-dev-middleware": { + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-5.3.3.tgz", + "integrity": "sha512-hj5CYrY0bZLB+eTO+x/j67Pkrquiy7kWepMHmUMoPsmcUaeEnQJqFzHJOyxgWlq746/wUuA64p9ta34Kyb01pA==", + "dev": true, + "dependencies": { + "colorette": "^2.0.10", + "memfs": "^3.4.3", + "mime-types": "^2.1.31", + "range-parser": "^1.2.1", + "schema-utils": "^4.0.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^4.0.0 || ^5.0.0" + } + }, + "node_modules/webpack-merge": { "version": "5.8.0", "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.8.0.tgz", "integrity": "sha512-/SaI7xY0831XwP6kzuwhKWVKDP9t1QY1h65lAFLbZqMPIuYcD9QAW4u9STIbU9kaJbPBB/geU/gLr1wDjOhQ+Q==", "dev": true, - "requires": { + "dependencies": { "clone-deep": "^4.0.1", "wildcard": "^2.0.0" + }, + "engines": { + "node": ">=10.0.0" } }, - "webpack-sources": { + "node_modules/webpack-sources": { "version": "3.2.3", "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", - "dev": true + "dev": true, + "engines": { + "node": ">=10.13.0" + } }, - "webpack-subresource-integrity": { + "node_modules/webpack-subresource-integrity": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/webpack-subresource-integrity/-/webpack-subresource-integrity-5.1.0.tgz", "integrity": "sha512-sacXoX+xd8r4WKsy9MvH/q/vBtEHr86cpImXwyg74pFIpERKt6FmB8cXpeuh0ZLgclOlHI4Wcll7+R5L02xk9Q==", "dev": true, - "requires": { + "dependencies": { "typed-assert": "^1.0.8" + }, + "engines": { + "node": ">= 12" + }, + "peerDependencies": { + "html-webpack-plugin": ">= 5.0.0-beta.1 < 6", + "webpack": "^5.12.0" + }, + "peerDependenciesMeta": { + "html-webpack-plugin": { + "optional": true + } + } + }, + "node_modules/webpack/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/webpack/node_modules/ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true, + "peerDependencies": { + "ajv": "^6.9.1" + } + }, + "node_modules/webpack/node_modules/schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" } }, - "websocket-driver": { + "node_modules/websocket-driver": { "version": "0.7.4", "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz", "integrity": "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==", "dev": true, - "requires": { + "dependencies": { "http-parser-js": ">=0.5.1", "safe-buffer": ">=5.1.0", "websocket-extensions": ">=0.1.1" + }, + "engines": { + "node": ">=0.8.0" } }, - "websocket-extensions": { + "node_modules/websocket-extensions": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz", "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.8.0" + } }, - "which": { + "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dev": true, - "requires": { + "dependencies": { "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" } }, - "which-module": { + "node_modules/which-module": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", "dev": true }, - "wide-align": { + "node_modules/wide-align": { "version": "1.1.5", "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz", "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==", "dev": true, - "requires": { + "dependencies": { "string-width": "^1.0.2 || 2 || 3 || 4" } }, - "wildcard": { + "node_modules/wildcard": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.0.tgz", "integrity": "sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==", "dev": true }, - "wrap-ansi": { + "node_modules/wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "requires": { + "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dependencies": { - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "requires": { - "ansi-regex": "^5.0.1" - } - } + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/wrap-ansi/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/wrap-ansi/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" } }, - "wrappy": { + "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" }, - "ws": { + "node_modules/ws": { "version": "8.13.0", "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", "integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==", - "dev": true + "dev": true, + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } }, - "xml2js": { + "node_modules/xml2js": { "version": "0.4.23", "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.4.23.tgz", "integrity": "sha512-ySPiMjM0+pLDftHgXY4By0uswI3SPKLDw/i3UXbnO8M/p28zqexCUoPmQFrYD+/1BzhGJSs2i1ERWKJAtiLrug==", "dev": true, - "requires": { + "dependencies": { "sax": ">=0.6.0", "xmlbuilder": "~11.0.0" + }, + "engines": { + "node": ">=4.0.0" } }, - "xmlbuilder": { + "node_modules/xmlbuilder": { "version": "11.0.1", "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz", "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==", - "dev": true + "dev": true, + "engines": { + "node": ">=4.0" + } }, - "y18n": { + "node_modules/y18n": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz", "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==", "dev": true }, - "yallist": { + "node_modules/yallist": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" }, - "yaml": { + "node_modules/yaml": { "version": "1.10.2", "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", - "dev": true + "dev": true, + "engines": { + "node": ">= 6" + } }, - "yargs": { + "node_modules/yargs": { "version": "17.7.1", "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.1.tgz", "integrity": "sha512-cwiTb08Xuv5fqF4AovYacTFNxk62th7LKJ6BL9IGUpTJrWoU7/7WdQGTP2SjKf1dUNBGzDd28p/Yfs/GI6JrLw==", - "requires": { + "dependencies": { "cliui": "^8.0.1", "escalade": "^3.1.1", "get-caller-file": "^2.0.5", @@ -9982,39 +13340,47 @@ "y18n": "^5.0.5", "yargs-parser": "^21.1.1" }, - "dependencies": { - "y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==" - } + "engines": { + "node": ">=12" } }, - "yargs-parser": { + "node_modules/yargs-parser": { "version": "21.1.1", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==" + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs/node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "engines": { + "node": ">=10" + } }, - "yn": { + "node_modules/yn": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", - "dev": true + "dev": true, + "engines": { + "node": ">=6" + } }, - "zone.js": { + "node_modules/zone.js": { "version": "0.11.8", "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.11.8.tgz", "integrity": "sha512-82bctBg2hKcEJ21humWIkXRlLBBmrc3nN7DFh5LGGhcyycO2S7FN8NmdvlcKaGFDNVL4/9kFLmwmInTavdJERA==", - "requires": { - "tslib": "^2.3.0" - }, "dependencies": { - "tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" - } + "tslib": "^2.3.0" } + }, + "node_modules/zone.js/node_modules/tslib": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", + "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" } } } -- GitLab